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 | |
35695fd6 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS' |
b7026657 | 313 | ac_subst_files='' |
c906108c SS |
314 | |
315 | # Initialize some variables set by options. | |
b7026657 AC |
316 | ac_init_help= |
317 | ac_init_version=false | |
c906108c SS |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
b7026657 | 320 | cache_file=/dev/null |
c906108c | 321 | exec_prefix=NONE |
c906108c | 322 | no_create= |
c906108c SS |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
c906108c SS |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
b7026657 AC |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
c906108c SS |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
c906108c SS |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
b7026657 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
b7026657 | 367 | case $ac_option in |
c906108c SS |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 372 | bindir=$ac_optarg ;; |
c906108c SS |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 375 | ac_prev=build_alias ;; |
c906108c | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 377 | build_alias=$ac_optarg ;; |
c906108c SS |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
c906108c SS |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
b7026657 | 393 | datadir=$ac_optarg ;; |
c906108c SS |
394 | |
395 | -disable-* | --disable-*) | |
b7026657 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 397 | # Reject names that are not valid shell variable names. |
b7026657 AC |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
c906108c SS |
403 | |
404 | -enable-* | --enable-*) | |
b7026657 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 406 | # Reject names that are not valid shell variable names. |
b7026657 AC |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
413 | *) ac_optarg=yes ;; |
414 | esac | |
b7026657 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
c906108c SS |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 424 | exec_prefix=$ac_optarg ;; |
c906108c SS |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
b7026657 AC |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
c906108c SS |
436 | |
437 | -host | --host | --hos | --ho) | |
b7026657 | 438 | ac_prev=host_alias ;; |
c906108c | 439 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 440 | host_alias=$ac_optarg ;; |
c906108c SS |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 447 | includedir=$ac_optarg ;; |
c906108c SS |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 452 | infodir=$ac_optarg ;; |
c906108c SS |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 457 | libdir=$ac_optarg ;; |
c906108c SS |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 464 | libexecdir=$ac_optarg ;; |
c906108c SS |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
b7026657 | 473 | localstatedir=$ac_optarg ;; |
c906108c SS |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 478 | mandir=$ac_optarg ;; |
c906108c SS |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 485 | | --no-cr | --no-c | -n) |
c906108c SS |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 499 | oldincludedir=$ac_optarg ;; |
c906108c SS |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 504 | prefix=$ac_optarg ;; |
c906108c SS |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 511 | program_prefix=$ac_optarg ;; |
c906108c SS |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 518 | program_suffix=$ac_optarg ;; |
c906108c SS |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 535 | program_transform_name=$ac_optarg ;; |
c906108c SS |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
b7026657 | 545 | sbindir=$ac_optarg ;; |
c906108c SS |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
b7026657 | 556 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
b7026657 | 561 | site=$ac_optarg ;; |
eb2d80b4 | 562 | |
c906108c SS |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 566 | srcdir=$ac_optarg ;; |
c906108c SS |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 573 | sysconfdir=$ac_optarg ;; |
c906108c SS |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 576 | ac_prev=target_alias ;; |
c906108c | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 578 | target_alias=$ac_optarg ;; |
c906108c SS |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
b7026657 AC |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
c906108c SS |
585 | |
586 | -with-* | --with-*) | |
b7026657 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 588 | # Reject names that are not valid shell variable names. |
b7026657 AC |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
c906108c | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b7026657 AC |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
595 | *) ac_optarg=yes ;; |
596 | esac | |
b7026657 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
c906108c SS |
598 | |
599 | -without-* | --without-*) | |
b7026657 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 601 | # Reject names that are not valid shell variable names. |
b7026657 AC |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
c906108c SS |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 617 | x_includes=$ac_optarg ;; |
c906108c SS |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 624 | x_libraries=$ac_optarg ;; |
c906108c | 625 | |
b7026657 AC |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
c906108c SS |
629 | ;; |
630 | ||
b7026657 AC |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
c906108c | 641 | *) |
b7026657 AC |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
b7026657 AC |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
c906108c | 656 | fi |
c906108c | 657 | |
b7026657 AC |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
c906108c | 668 | |
b7026657 AC |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
c906108c | 672 | do |
b7026657 AC |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
c906108c SS |
678 | esac |
679 | done | |
680 | ||
b7026657 AC |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
c906108c | 698 | |
b7026657 AC |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 703 | |
c906108c SS |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
b7026657 AC |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
c906108c SS |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
b7026657 AC |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
c906108c | 732 | else |
b7026657 AC |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
c906108c SS |
735 | fi |
736 | fi | |
b7026657 AC |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
c906108c | 773 | |
b7026657 AC |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 782 | |
b7026657 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 784 | |
b7026657 AC |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 787 | |
b7026657 | 788 | Defaults for the options are specified in brackets. |
c906108c | 789 | |
b7026657 AC |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
c906108c | 809 | |
b7026657 AC |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
c906108c | 814 | |
b7026657 AC |
815 | For better control, use the options below. |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | Program names: | |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
838 | ||
839 | System types: | |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
c906108c | 844 | fi |
b7026657 AC |
845 | |
846 | if test -n "$ac_init_help"; then | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | Optional Features: | |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
35695fd6 | 853 | --disable-nls do not use Native Language Support |
b7026657 AC |
854 | --enable-maintainer-mode Enable developer functionality. |
855 | --enable-sim-bswap Use Host specific BSWAP instruction. | |
856 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
857 | --enable-sim-debug=opts Enable debugging flags | |
858 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
859 | --enable-sim-trace=opts Enable tracing flags | |
860 | --enable-sim-profile=opts Enable profiling flags | |
861 | --enable-sim-endian=endian Specify target byte endian orientation. | |
862 | --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses. | |
863 | --enable-sim-hostendian=end Specify host byte endian orientation. | |
864 | --enable-build-warnings Enable build-time compiler warnings if gcc is used | |
865 | --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used | |
866 | --enable-sim-reserved-bits Specify whether to check reserved bits in instruction. | |
867 | --enable-sim-bitsize=N Specify target bitsize (32 or 64). | |
868 | --enable-sim-inline=inlines Specify which functions should be inlined. | |
869 | --enable-sim-hardware=LIST Specify the hardware to be included in the build. | |
870 | ||
35695fd6 AC |
871 | Optional Packages: |
872 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
873 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
874 | --with-included-gettext use the GNU gettext library included here | |
875 | ||
b7026657 AC |
876 | Some influential environment variables: |
877 | CC C compiler command | |
878 | CFLAGS C compiler flags | |
879 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
880 | nonstandard directory <lib dir> | |
881 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
882 | headers in a nonstandard directory <include dir> | |
883 | CPP C preprocessor | |
884 | ||
885 | Use these variables to override the choices made by `configure' or to help | |
886 | it to find libraries and programs with nonstandard names/locations. | |
887 | ||
888 | _ACEOF | |
c906108c SS |
889 | fi |
890 | ||
b7026657 AC |
891 | if test "$ac_init_help" = "recursive"; then |
892 | # If there are subdirs, report their specific --help. | |
893 | ac_popdir=`pwd` | |
894 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
895 | test -d $ac_dir || continue | |
896 | ac_builddir=. | |
c906108c | 897 | |
b7026657 AC |
898 | if test "$ac_dir" != .; then |
899 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
900 | # A "../" for each directory in $ac_dir_suffix. | |
901 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
c906108c | 902 | else |
b7026657 | 903 | ac_dir_suffix= ac_top_builddir= |
c906108c SS |
904 | fi |
905 | ||
b7026657 AC |
906 | case $srcdir in |
907 | .) # No --srcdir option. We are building in place. | |
908 | ac_srcdir=. | |
909 | if test -z "$ac_top_builddir"; then | |
910 | ac_top_srcdir=. | |
911 | else | |
912 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
913 | fi ;; | |
914 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
915 | ac_srcdir=$srcdir$ac_dir_suffix; | |
916 | ac_top_srcdir=$srcdir ;; | |
917 | *) # Relative path. | |
918 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
919 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
920 | esac | |
921 | ||
922 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
923 | # the directories may not exist. | |
924 | case `pwd` in | |
925 | .) ac_abs_builddir="$ac_dir";; | |
926 | *) | |
927 | case "$ac_dir" in | |
928 | .) ac_abs_builddir=`pwd`;; | |
929 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
930 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
931 | esac;; | |
932 | esac | |
933 | case $ac_abs_builddir in | |
934 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
935 | *) | |
936 | case ${ac_top_builddir}. in | |
937 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
938 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
939 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
940 | esac;; | |
941 | esac | |
942 | case $ac_abs_builddir in | |
943 | .) ac_abs_srcdir=$ac_srcdir;; | |
944 | *) | |
945 | case $ac_srcdir in | |
946 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
948 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
949 | esac;; | |
950 | esac | |
951 | case $ac_abs_builddir in | |
952 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
953 | *) | |
954 | case $ac_top_srcdir in | |
955 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
956 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
957 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
958 | esac;; | |
959 | esac | |
960 | ||
961 | cd $ac_dir | |
962 | # Check for guested configure; otherwise get Cygnus style configure. | |
963 | if test -f $ac_srcdir/configure.gnu; then | |
964 | echo | |
965 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
966 | elif test -f $ac_srcdir/configure; then | |
967 | echo | |
968 | $SHELL $ac_srcdir/configure --help=recursive | |
969 | elif test -f $ac_srcdir/configure.ac || | |
970 | test -f $ac_srcdir/configure.in; then | |
971 | echo | |
972 | $ac_configure --help | |
973 | else | |
974 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
975 | fi | |
976 | cd $ac_popdir | |
977 | done | |
c906108c | 978 | fi |
b7026657 AC |
979 | |
980 | test -n "$ac_init_help" && exit 0 | |
981 | if $ac_init_version; then | |
982 | cat <<\_ACEOF | |
983 | ||
984 | Copyright (C) 2003 Free Software Foundation, Inc. | |
985 | This configure script is free software; the Free Software Foundation | |
986 | gives unlimited permission to copy, distribute and modify it. | |
987 | _ACEOF | |
988 | exit 0 | |
989 | fi | |
990 | exec 5>config.log | |
991 | cat >&5 <<_ACEOF | |
992 | This file contains any messages produced by compilers while | |
993 | running configure, to aid debugging if configure makes a mistake. | |
994 | ||
995 | It was created by $as_me, which was | |
996 | generated by GNU Autoconf 2.59. Invocation command line was | |
997 | ||
998 | $ $0 $@ | |
999 | ||
1000 | _ACEOF | |
1001 | { | |
1002 | cat <<_ASUNAME | |
1003 | ## --------- ## | |
1004 | ## Platform. ## | |
1005 | ## --------- ## | |
1006 | ||
1007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1008 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1009 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1010 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1011 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1012 | ||
1013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1015 | ||
1016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1019 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | _ASUNAME | |
1025 | ||
1026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1027 | for as_dir in $PATH | |
1028 | do | |
1029 | IFS=$as_save_IFS | |
1030 | test -z "$as_dir" && as_dir=. | |
1031 | echo "PATH: $as_dir" | |
1032 | done | |
1033 | ||
1034 | } >&5 | |
1035 | ||
1036 | cat >&5 <<_ACEOF | |
1037 | ||
1038 | ||
1039 | ## ----------- ## | |
1040 | ## Core tests. ## | |
1041 | ## ----------- ## | |
1042 | ||
1043 | _ACEOF | |
1044 | ||
1045 | ||
1046 | # Keep a trace of the command line. | |
1047 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1048 | # Strip out --silent because we don't want to record it for future runs. | |
1049 | # Also quote any args containing shell meta-characters. | |
1050 | # Make two passes to allow for proper duplicate-argument suppression. | |
1051 | ac_configure_args= | |
1052 | ac_configure_args0= | |
1053 | ac_configure_args1= | |
1054 | ac_sep= | |
1055 | ac_must_keep_next=false | |
1056 | for ac_pass in 1 2 | |
1057 | do | |
1058 | for ac_arg | |
1059 | do | |
1060 | case $ac_arg in | |
1061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1063 | | -silent | --silent | --silen | --sile | --sil) | |
1064 | continue ;; | |
1065 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1066 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1067 | esac | |
1068 | case $ac_pass in | |
1069 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1070 | 2) | |
1071 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1072 | if test $ac_must_keep_next = true; then | |
1073 | ac_must_keep_next=false # Got value, back to normal. | |
1074 | else | |
1075 | case $ac_arg in | |
1076 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1079 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1080 | case "$ac_configure_args0 " in | |
1081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1082 | esac | |
1083 | ;; | |
1084 | -* ) ac_must_keep_next=true ;; | |
1085 | esac | |
1086 | fi | |
1087 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1088 | # Get rid of the leading space. | |
1089 | ac_sep=" " | |
1090 | ;; | |
1091 | esac | |
1092 | done | |
1093 | done | |
1094 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1095 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1096 | ||
1097 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1098 | # config.log. We remove comments because anyway the quotes in there | |
1099 | # would cause problems or look ugly. | |
1100 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1101 | # such as our DU 5.0 friend, will then `close' the trap. | |
1102 | trap 'exit_status=$? | |
1103 | # Save into config.log some information that might help in debugging. | |
1104 | { | |
1105 | echo | |
1106 | ||
1107 | cat <<\_ASBOX | |
1108 | ## ---------------- ## | |
1109 | ## Cache variables. ## | |
1110 | ## ---------------- ## | |
1111 | _ASBOX | |
1112 | echo | |
1113 | # The following way of writing the cache mishandles newlines in values, | |
1114 | { | |
1115 | (set) 2>&1 | | |
1116 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1117 | *ac_space=\ *) | |
1118 | sed -n \ | |
1119 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1121 | ;; | |
1122 | *) | |
1123 | sed -n \ | |
1124 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1125 | ;; | |
1126 | esac; | |
1127 | } | |
1128 | echo | |
1129 | ||
1130 | cat <<\_ASBOX | |
1131 | ## ----------------- ## | |
1132 | ## Output variables. ## | |
1133 | ## ----------------- ## | |
1134 | _ASBOX | |
1135 | echo | |
1136 | for ac_var in $ac_subst_vars | |
1137 | do | |
1138 | eval ac_val=$`echo $ac_var` | |
1139 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1140 | done | sort | |
1141 | echo | |
1142 | ||
1143 | if test -n "$ac_subst_files"; then | |
1144 | cat <<\_ASBOX | |
1145 | ## ------------- ## | |
1146 | ## Output files. ## | |
1147 | ## ------------- ## | |
1148 | _ASBOX | |
1149 | echo | |
1150 | for ac_var in $ac_subst_files | |
1151 | do | |
1152 | eval ac_val=$`echo $ac_var` | |
1153 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1154 | done | sort | |
1155 | echo | |
1156 | fi | |
1157 | ||
1158 | if test -s confdefs.h; then | |
1159 | cat <<\_ASBOX | |
1160 | ## ----------- ## | |
1161 | ## confdefs.h. ## | |
1162 | ## ----------- ## | |
1163 | _ASBOX | |
1164 | echo | |
1165 | sed "/^$/d" confdefs.h | sort | |
1166 | echo | |
1167 | fi | |
1168 | test "$ac_signal" != 0 && | |
1169 | echo "$as_me: caught signal $ac_signal" | |
1170 | echo "$as_me: exit $exit_status" | |
1171 | } >&5 | |
1172 | rm -f core *.core && | |
1173 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1174 | exit $exit_status | |
1175 | ' 0 | |
1176 | for ac_signal in 1 2 13 15; do | |
1177 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1178 | done | |
1179 | ac_signal=0 | |
1180 | ||
1181 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1182 | rm -rf conftest* confdefs.h | |
1183 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1184 | echo >confdefs.h | |
1185 | ||
1186 | # Predefined preprocessor variables. | |
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | # Let the site file select an alternate cache file if it wants to. | |
1214 | # Prefer explicitly selected file to automatically selected ones. | |
1215 | if test -z "$CONFIG_SITE"; then | |
1216 | if test "x$prefix" != xNONE; then | |
1217 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1218 | else | |
1219 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1220 | fi | |
1221 | fi | |
1222 | for ac_site_file in $CONFIG_SITE; do | |
1223 | if test -r "$ac_site_file"; then | |
1224 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1225 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1226 | sed 's/^/| /' "$ac_site_file" >&5 | |
1227 | . "$ac_site_file" | |
1228 | fi | |
1229 | done | |
1230 | ||
1231 | if test -r "$cache_file"; then | |
1232 | # Some versions of bash will fail to source /dev/null (special | |
1233 | # files actually), so we avoid doing that. | |
1234 | if test -f "$cache_file"; then | |
1235 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1236 | echo "$as_me: loading cache $cache_file" >&6;} | |
1237 | case $cache_file in | |
1238 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1239 | *) . ./$cache_file;; | |
1240 | esac | |
1241 | fi | |
1242 | else | |
1243 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1244 | echo "$as_me: creating cache $cache_file" >&6;} | |
1245 | >$cache_file | |
1246 | fi | |
1247 | ||
1248 | # Check that the precious variables saved in the cache have kept the same | |
1249 | # value. | |
1250 | ac_cache_corrupted=false | |
1251 | for ac_var in `(set) 2>&1 | | |
1252 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1253 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1254 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1255 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1256 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1257 | case $ac_old_set,$ac_new_set in | |
1258 | set,) | |
1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1260 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1261 | ac_cache_corrupted=: ;; | |
1262 | ,set) | |
1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1264 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1265 | ac_cache_corrupted=: ;; | |
1266 | ,);; | |
1267 | *) | |
1268 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1271 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1272 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1273 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1274 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1275 | ac_cache_corrupted=: | |
1276 | fi;; | |
1277 | esac | |
1278 | # Pass precious variables to config.status. | |
1279 | if test "$ac_new_set" = set; then | |
1280 | case $ac_new_val in | |
1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1282 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1283 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1284 | esac | |
1285 | case " $ac_configure_args " in | |
1286 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1287 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1288 | esac | |
1289 | fi | |
1290 | done | |
1291 | if $ac_cache_corrupted; then | |
1292 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1293 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1294 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1295 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1296 | { (exit 1); exit 1; }; } | |
1297 | fi | |
1298 | ||
1299 | ac_ext=c | |
1300 | ac_cpp='$CPP $CPPFLAGS' | |
1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
35695fd6 AC |
1323 | ac_config_headers="$ac_config_headers config.h:config.in" |
1324 | ||
1325 | ||
1326 | # This file contains common code used by all simulators. | |
1327 | # | |
1328 | # SIM_AC_COMMON invokes AC macros used by all simulators and by the common | |
1329 | # directory. It is intended to be invoked before any target specific stuff. | |
1330 | # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. | |
1331 | # It is intended to be invoked last. | |
1332 | # | |
1333 | # The simulator's configure.in should look like: | |
1334 | # | |
1335 | # dnl Process this file with autoconf to produce a configure script. | |
1336 | # sinclude(../common/aclocal.m4) | |
1337 | # AC_PREREQ(2.5)dnl | |
1338 | # AC_INIT(Makefile.in) | |
1339 | # | |
1340 | # SIM_AC_COMMON | |
1341 | # | |
1342 | # ... target specific stuff ... | |
1343 | # | |
1344 | # SIM_AC_OUTPUT | |
1345 | ||
1346 | ||
1347 | ||
1348 | ||
1349 | ||
1350 | ||
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | ||
1369 | ||
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | ||
1377 | ||
1378 | ||
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | ||
1385 | ||
1386 | ||
1387 | ||
1388 | ||
1389 | ||
1390 | ||
1391 | ||
1392 | ||
1393 | sim_inline="-DDEFAULT_INLINE=0" | |
1394 | ||
1395 | ||
1396 | ||
1397 | ||
1398 | ||
1399 | ||
1400 | ||
1401 | ||
1402 | ||
1403 | ||
1404 | ||
1405 | ||
1406 | ||
1407 | ||
1408 | ||
1409 | ||
1410 | ||
1411 | ||
1412 | ||
1413 | ||
1414 | ||
1415 | ||
1416 | ||
1417 | ||
1418 | ||
1419 | ||
1420 | ||
1421 | ||
1422 | ||
1423 | ||
1424 | ||
1425 | ||
1426 | ||
1427 | ||
1428 | ||
1429 | ||
1430 | # This file is derived from `gettext.m4'. The difference is that the | |
1431 | # included macros assume Cygnus-style source and build trees. | |
1432 | ||
1433 | # Macro to add for using GNU gettext. | |
1434 | # Ulrich Drepper <drepper@cygnus.com>, 1995. | |
1435 | # | |
1436 | # This file file be copied and used freely without restrictions. It can | |
1437 | # be used in projects which are not available under the GNU Public License | |
1438 | # but which still want to provide support for the GNU gettext functionality. | |
1439 | # Please note that the actual code is *not* freely available. | |
1440 | ||
1441 | # serial 3 | |
1442 | ||
1443 | ||
1444 | ||
1445 | ||
1446 | ||
1447 | # Search path for a program which passes the given test. | |
1448 | # Ulrich Drepper <drepper@cygnus.com>, 1996. | |
1449 | # | |
1450 | # This file file be copied and used freely without restrictions. It can | |
1451 | # be used in projects which are not available under the GNU Public License | |
1452 | # but which still want to provide support for the GNU gettext functionality. | |
1453 | # Please note that the actual code is *not* freely available. | |
1454 | ||
1455 | # serial 1 | |
1456 | ||
1457 | ||
1458 | ||
1459 | # Check whether LC_MESSAGES is available in <locale.h>. | |
1460 | # Ulrich Drepper <drepper@cygnus.com>, 1995. | |
1461 | # | |
1462 | # This file file be copied and used freely without restrictions. It can | |
1463 | # be used in projects which are not available under the GNU Public License | |
1464 | # but which still want to provide support for the GNU gettext functionality. | |
1465 | # Please note that the actual code is *not* freely available. | |
1466 | ||
1467 | # serial 1 | |
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
b7026657 | 1474 | |
35695fd6 AC |
1475 | # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around |
1476 | # it by inlining the macro's contents. | |
f0569246 AC |
1477 | # This file contains common code used by all simulators. |
1478 | # | |
1479 | # common.m4 invokes AC macros used by all simulators and by the common | |
1480 | # directory. It is intended to be included before any target specific | |
1481 | # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate | |
1482 | # the Makefile. It is intended to be invoked last. | |
1483 | # | |
1484 | # The simulator's configure.in should look like: | |
1485 | # | |
1486 | # dnl Process this file with autoconf to produce a configure script. | |
1487 | # AC_PREREQ(2.5)dnl | |
1488 | # AC_INIT(Makefile.in) | |
35695fd6 | 1489 | # AC_CONFIG_HEADER(config.h:config.in) |
f0569246 | 1490 | # |
35695fd6 | 1491 | # sinclude(../common/aclocal.m4) |
f0569246 AC |
1492 | # sinclude(../common/common.m4) |
1493 | # | |
1494 | # ... target specific stuff ... | |
1495 | ||
38f48d72 AC |
1496 | ac_aux_dir= |
1497 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1498 | if test -f $ac_dir/install-sh; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1501 | break | |
1502 | elif test -f $ac_dir/install.sh; then | |
1503 | ac_aux_dir=$ac_dir | |
1504 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1505 | break | |
1506 | elif test -f $ac_dir/shtool; then | |
1507 | ac_aux_dir=$ac_dir | |
1508 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1509 | break | |
1510 | fi | |
1511 | done | |
1512 | if test -z "$ac_aux_dir"; then | |
1513 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1514 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1515 | { (exit 1); exit 1; }; } | |
1516 | fi | |
1517 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1518 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1519 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1520 | ||
b7026657 AC |
1521 | # Make sure we can run config.sub. |
1522 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1523 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1524 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1525 | { (exit 1); exit 1; }; } | |
1526 | ||
1527 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1528 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1529 | if test "${ac_cv_build+set}" = set; then | |
1530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1531 | else | |
1532 | ac_cv_build_alias=$build_alias | |
1533 | test -z "$ac_cv_build_alias" && | |
1534 | ac_cv_build_alias=`$ac_config_guess` | |
1535 | test -z "$ac_cv_build_alias" && | |
1536 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1537 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1538 | { (exit 1); exit 1; }; } | |
1539 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1540 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1541 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1542 | { (exit 1); exit 1; }; } | |
1543 | ||
1544 | fi | |
1545 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1546 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1547 | build=$ac_cv_build | |
1548 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1549 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1550 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1551 | ||
1552 | ||
1553 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1554 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1555 | if test "${ac_cv_host+set}" = set; then | |
1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1557 | else | |
1558 | ac_cv_host_alias=$host_alias | |
1559 | test -z "$ac_cv_host_alias" && | |
1560 | ac_cv_host_alias=$ac_cv_build_alias | |
1561 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1562 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1563 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1564 | { (exit 1); exit 1; }; } | |
1565 | ||
1566 | fi | |
1567 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1568 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1569 | host=$ac_cv_host | |
1570 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1571 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1572 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1573 | ||
1574 | ||
f0569246 AC |
1575 | echo "$as_me:$LINENO: checking target system type" >&5 |
1576 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1577 | if test "${ac_cv_target+set}" = set; then | |
b7026657 AC |
1578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1579 | else | |
f0569246 AC |
1580 | ac_cv_target_alias=$target_alias |
1581 | test "x$ac_cv_target_alias" = "x" && | |
1582 | ac_cv_target_alias=$ac_cv_host_alias | |
1583 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1584 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1585 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ||
1588 | fi | |
1589 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1590 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1591 | target=$ac_cv_target | |
1592 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1593 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1594 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1595 | ||
1596 | ||
1597 | # The aliases save the names the user supplied, while $host etc. | |
1598 | # will get canonicalized. | |
1599 | test -n "$target_alias" && | |
1600 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1601 | NONENONEs,x,x, && | |
1602 | program_prefix=${target_alias}- | |
1603 | test "$program_prefix" != NONE && | |
1604 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1605 | # Use a double $ so make ignores it. | |
1606 | test "$program_suffix" != NONE && | |
1607 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1608 | # Double any \ or $. echo might interpret backslashes. | |
1609 | # By default was `s,x,x', remove it if useless. | |
1610 | cat <<\_ACEOF >conftest.sed | |
1611 | s/[\\$]/&&/g;s/;s,x,x,$// | |
b7026657 | 1612 | _ACEOF |
f0569246 AC |
1613 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1614 | rm conftest.sed | |
1615 | ||
1616 | ac_ext=c | |
1617 | ac_cpp='$CPP $CPPFLAGS' | |
1618 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1619 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1620 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1621 | if test -n "$ac_tool_prefix"; then | |
1622 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1623 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1624 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1626 | if test "${ac_cv_prog_CC+set}" = set; then | |
1627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1628 | else |
f0569246 AC |
1629 | if test -n "$CC"; then |
1630 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1631 | else | |
1632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1633 | for as_dir in $PATH | |
1634 | do | |
1635 | IFS=$as_save_IFS | |
1636 | test -z "$as_dir" && as_dir=. | |
1637 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1639 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1641 | break 2 | |
1642 | fi | |
1643 | done | |
1644 | done | |
1645 | ||
b7026657 | 1646 | fi |
b7026657 | 1647 | fi |
f0569246 AC |
1648 | CC=$ac_cv_prog_CC |
1649 | if test -n "$CC"; then | |
1650 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1651 | echo "${ECHO_T}$CC" >&6 | |
b7026657 AC |
1652 | else |
1653 | echo "$as_me:$LINENO: result: no" >&5 | |
1654 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1655 | fi |
1656 | ||
f0569246 AC |
1657 | fi |
1658 | if test -z "$ac_cv_prog_CC"; then | |
1659 | ac_ct_CC=$CC | |
1660 | # Extract the first word of "gcc", so it can be a program name with args. | |
1661 | set dummy gcc; ac_word=$2 | |
1662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1664 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
b7026657 AC |
1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1666 | else | |
f0569246 AC |
1667 | if test -n "$ac_ct_CC"; then |
1668 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1669 | else | |
1670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1671 | for as_dir in $PATH | |
1672 | do | |
1673 | IFS=$as_save_IFS | |
1674 | test -z "$as_dir" && as_dir=. | |
1675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1677 | ac_cv_prog_ac_ct_CC="gcc" | |
1678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1679 | break 2 | |
1680 | fi | |
1681 | done | |
1682 | done | |
b7026657 | 1683 | |
f0569246 AC |
1684 | fi |
1685 | fi | |
1686 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1687 | if test -n "$ac_ct_CC"; then | |
1688 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1689 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1690 | else |
f0569246 AC |
1691 | echo "$as_me:$LINENO: result: no" >&5 |
1692 | echo "${ECHO_T}no" >&6 | |
1693 | fi | |
b7026657 | 1694 | |
f0569246 AC |
1695 | CC=$ac_ct_CC |
1696 | else | |
1697 | CC="$ac_cv_prog_CC" | |
b7026657 | 1698 | fi |
b7026657 | 1699 | |
f0569246 AC |
1700 | if test -z "$CC"; then |
1701 | if test -n "$ac_tool_prefix"; then | |
1702 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1703 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1706 | if test "${ac_cv_prog_CC+set}" = set; then | |
1707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1708 | else |
f0569246 AC |
1709 | if test -n "$CC"; then |
1710 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1711 | else | |
1712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1713 | for as_dir in $PATH | |
1714 | do | |
1715 | IFS=$as_save_IFS | |
1716 | test -z "$as_dir" && as_dir=. | |
1717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1719 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1721 | break 2 | |
1722 | fi | |
1723 | done | |
1724 | done | |
b7026657 AC |
1725 | |
1726 | fi | |
b7026657 | 1727 | fi |
f0569246 AC |
1728 | CC=$ac_cv_prog_CC |
1729 | if test -n "$CC"; then | |
1730 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1731 | echo "${ECHO_T}$CC" >&6 | |
1732 | else | |
1733 | echo "$as_me:$LINENO: result: no" >&5 | |
1734 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1735 | fi |
1736 | ||
b7026657 | 1737 | fi |
f0569246 AC |
1738 | if test -z "$ac_cv_prog_CC"; then |
1739 | ac_ct_CC=$CC | |
1740 | # Extract the first word of "cc", so it can be a program name with args. | |
1741 | set dummy cc; ac_word=$2 | |
1742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1744 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1746 | else |
f0569246 AC |
1747 | if test -n "$ac_ct_CC"; then |
1748 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1749 | else | |
1750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1751 | for as_dir in $PATH | |
b7026657 | 1752 | do |
f0569246 AC |
1753 | IFS=$as_save_IFS |
1754 | test -z "$as_dir" && as_dir=. | |
1755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1757 | ac_cv_prog_ac_ct_CC="cc" | |
1758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1759 | break 2 | |
b7026657 | 1760 | fi |
f0569246 AC |
1761 | done |
1762 | done | |
1763 | ||
b7026657 | 1764 | fi |
f0569246 AC |
1765 | fi |
1766 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1767 | if test -n "$ac_ct_CC"; then | |
1768 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1769 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1770 | else |
f0569246 AC |
1771 | echo "$as_me:$LINENO: result: no" >&5 |
1772 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1773 | fi |
b7026657 | 1774 | |
f0569246 | 1775 | CC=$ac_ct_CC |
b7026657 | 1776 | else |
f0569246 | 1777 | CC="$ac_cv_prog_CC" |
b7026657 | 1778 | fi |
b7026657 | 1779 | |
b7026657 | 1780 | fi |
f0569246 AC |
1781 | if test -z "$CC"; then |
1782 | # Extract the first word of "cc", so it can be a program name with args. | |
1783 | set dummy cc; ac_word=$2 | |
1784 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1786 | if test "${ac_cv_prog_CC+set}" = set; then | |
1787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1788 | else | |
1789 | if test -n "$CC"; then | |
1790 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1791 | else | |
1792 | ac_prog_rejected=no | |
1793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1794 | for as_dir in $PATH | |
1795 | do | |
1796 | IFS=$as_save_IFS | |
1797 | test -z "$as_dir" && as_dir=. | |
1798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1799 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1800 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1801 | ac_prog_rejected=yes | |
1802 | continue | |
1803 | fi | |
1804 | ac_cv_prog_CC="cc" | |
1805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1806 | break 2 | |
1807 | fi | |
1808 | done | |
b7026657 | 1809 | done |
b7026657 | 1810 | |
f0569246 AC |
1811 | if test $ac_prog_rejected = yes; then |
1812 | # We found a bogon in the path, so make sure we never use it. | |
1813 | set dummy $ac_cv_prog_CC | |
1814 | shift | |
1815 | if test $# != 0; then | |
1816 | # We chose a different compiler from the bogus one. | |
1817 | # However, it has the same basename, so the bogon will be chosen | |
1818 | # first if we set CC to just the basename; use the full file name. | |
1819 | shift | |
1820 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1821 | fi | |
b7026657 | 1822 | fi |
f0569246 AC |
1823 | fi |
1824 | fi | |
1825 | CC=$ac_cv_prog_CC | |
1826 | if test -n "$CC"; then | |
1827 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1828 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 1829 | else |
f0569246 AC |
1830 | echo "$as_me:$LINENO: result: no" >&5 |
1831 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1832 | fi |
f0569246 AC |
1833 | |
1834 | fi | |
1835 | if test -z "$CC"; then | |
1836 | if test -n "$ac_tool_prefix"; then | |
1837 | for ac_prog in cl | |
1838 | do | |
1839 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1840 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1843 | if test "${ac_cv_prog_CC+set}" = set; then | |
1844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1845 | else | |
1846 | if test -n "$CC"; then | |
1847 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1848 | else | |
1849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1850 | for as_dir in $PATH | |
b7026657 | 1851 | do |
f0569246 AC |
1852 | IFS=$as_save_IFS |
1853 | test -z "$as_dir" && as_dir=. | |
1854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1855 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1856 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1858 | break 2 | |
b7026657 | 1859 | fi |
f0569246 AC |
1860 | done |
1861 | done | |
1862 | ||
b7026657 | 1863 | fi |
f0569246 AC |
1864 | fi |
1865 | CC=$ac_cv_prog_CC | |
1866 | if test -n "$CC"; then | |
1867 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1868 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 1869 | else |
f0569246 AC |
1870 | echo "$as_me:$LINENO: result: no" >&5 |
1871 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1872 | fi |
b7026657 | 1873 | |
f0569246 AC |
1874 | test -n "$CC" && break |
1875 | done | |
c906108c | 1876 | fi |
f0569246 AC |
1877 | if test -z "$CC"; then |
1878 | ac_ct_CC=$CC | |
1879 | for ac_prog in cl | |
b7026657 | 1880 | do |
f0569246 AC |
1881 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1882 | set dummy $ac_prog; ac_word=$2 | |
1883 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1885 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1887 | else |
f0569246 AC |
1888 | if test -n "$ac_ct_CC"; then |
1889 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1890 | else | |
1891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1892 | for as_dir in $PATH | |
1893 | do | |
1894 | IFS=$as_save_IFS | |
1895 | test -z "$as_dir" && as_dir=. | |
1896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1897 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1898 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1900 | break 2 | |
1901 | fi | |
1902 | done | |
1903 | done | |
b7026657 AC |
1904 | |
1905 | fi | |
f0569246 AC |
1906 | fi |
1907 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1908 | if test -n "$ac_ct_CC"; then | |
1909 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1910 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1911 | else | |
1912 | echo "$as_me:$LINENO: result: no" >&5 | |
1913 | echo "${ECHO_T}no" >&6 | |
1914 | fi | |
1915 | ||
1916 | test -n "$ac_ct_CC" && break | |
b7026657 | 1917 | done |
b7026657 | 1918 | |
f0569246 | 1919 | CC=$ac_ct_CC |
b7026657 AC |
1920 | fi |
1921 | ||
f0569246 | 1922 | fi |
b7026657 | 1923 | |
f0569246 AC |
1924 | |
1925 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1926 | See \`config.log' for more details." >&5 | |
1927 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1928 | See \`config.log' for more details." >&2;} | |
1929 | { (exit 1); exit 1; }; } | |
1930 | ||
1931 | # Provide some information about the compiler. | |
1932 | echo "$as_me:$LINENO:" \ | |
1933 | "checking for C compiler version" >&5 | |
1934 | ac_compiler=`set X $ac_compile; echo $2` | |
1935 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1936 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
b7026657 | 1937 | ac_status=$? |
b7026657 | 1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f0569246 AC |
1939 | (exit $ac_status); } |
1940 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1941 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
b7026657 AC |
1942 | ac_status=$? |
1943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
1944 | (exit $ac_status); } |
1945 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1946 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
b7026657 AC |
1947 | ac_status=$? |
1948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
1949 | (exit $ac_status); } |
1950 | ||
1951 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
1952 | /* confdefs.h. */ |
1953 | _ACEOF | |
1954 | cat confdefs.h >>conftest.$ac_ext | |
1955 | cat >>conftest.$ac_ext <<_ACEOF | |
1956 | /* end confdefs.h. */ | |
f0569246 | 1957 | |
b7026657 AC |
1958 | int |
1959 | main () | |
1960 | { | |
f0569246 | 1961 | |
b7026657 AC |
1962 | ; |
1963 | return 0; | |
1964 | } | |
1965 | _ACEOF | |
f0569246 AC |
1966 | ac_clean_files_save=$ac_clean_files |
1967 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1968 | # Try to create an executable without -o first, disregard a.out. | |
1969 | # It will help us diagnose broken compilers, and finding out an intuition | |
1970 | # of exeext. | |
1971 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1972 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1973 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1974 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1975 | (eval $ac_link_default) 2>&5 | |
b7026657 | 1976 | ac_status=$? |
b7026657 | 1977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f0569246 AC |
1978 | (exit $ac_status); }; then |
1979 | # Find the output, starting from the most likely. This scheme is | |
1980 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1981 | # resort. | |
1982 | ||
1983 | # Be careful to initialize this variable, since it used to be cached. | |
1984 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1985 | ac_cv_exeext= | |
1986 | # b.out is created by i960 compilers. | |
1987 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1988 | do | |
1989 | test -f "$ac_file" || continue | |
1990 | case $ac_file in | |
1991 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1992 | ;; | |
1993 | conftest.$ac_ext ) | |
1994 | # This is the source file. | |
1995 | ;; | |
1996 | [ab].out ) | |
1997 | # We found the default executable, but exeext='' is most | |
1998 | # certainly right. | |
1999 | break;; | |
2000 | *.* ) | |
2001 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2002 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2003 | # but it would be cool to find out if it's true. Does anybody | |
2004 | # maintain Libtool? --akim. | |
2005 | export ac_cv_exeext | |
2006 | break;; | |
2007 | * ) | |
2008 | break;; | |
2009 | esac | |
2010 | done | |
2011 | else | |
2012 | echo "$as_me: failed program was:" >&5 | |
2013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2014 | ||
2015 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2016 | See \`config.log' for more details." >&5 | |
2017 | echo "$as_me: error: C compiler cannot create executables | |
2018 | See \`config.log' for more details." >&2;} | |
2019 | { (exit 77); exit 77; }; } | |
2020 | fi | |
2021 | ||
2022 | ac_exeext=$ac_cv_exeext | |
2023 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2024 | echo "${ECHO_T}$ac_file" >&6 | |
2025 | ||
2026 | # Check the compiler produces executables we can run. If not, either | |
2027 | # the compiler is broken, or we cross compile. | |
2028 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2029 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2030 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2031 | # If not cross compiling, check that we can run a simple program. | |
2032 | if test "$cross_compiling" != yes; then | |
2033 | if { ac_try='./$ac_file' | |
b7026657 AC |
2034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2035 | (eval $ac_try) 2>&5 | |
2036 | ac_status=$? | |
2037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2038 | (exit $ac_status); }; }; then |
2039 | cross_compiling=no | |
2040 | else | |
2041 | if test "$cross_compiling" = maybe; then | |
2042 | cross_compiling=yes | |
2043 | else | |
2044 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2045 | If you meant to cross compile, use \`--host'. | |
2046 | See \`config.log' for more details." >&5 | |
2047 | echo "$as_me: error: cannot run C compiled programs. | |
2048 | If you meant to cross compile, use \`--host'. | |
2049 | See \`config.log' for more details." >&2;} | |
2050 | { (exit 1); exit 1; }; } | |
2051 | fi | |
2052 | fi | |
2053 | fi | |
2054 | echo "$as_me:$LINENO: result: yes" >&5 | |
2055 | echo "${ECHO_T}yes" >&6 | |
2056 | ||
2057 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2058 | ac_clean_files=$ac_clean_files_save | |
2059 | # Check the compiler produces executables we can run. If not, either | |
2060 | # the compiler is broken, or we cross compile. | |
2061 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2062 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2063 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2064 | echo "${ECHO_T}$cross_compiling" >&6 | |
2065 | ||
2066 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2067 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2069 | (eval $ac_link) 2>&5 | |
2070 | ac_status=$? | |
2071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2072 | (exit $ac_status); }; then | |
2073 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2074 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2075 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2076 | # `rm'. | |
2077 | for ac_file in conftest.exe conftest conftest.*; do | |
2078 | test -f "$ac_file" || continue | |
2079 | case $ac_file in | |
2080 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2081 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2082 | export ac_cv_exeext | |
2083 | break;; | |
2084 | * ) break;; | |
2085 | esac | |
2086 | done | |
2087 | else | |
2088 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2089 | See \`config.log' for more details." >&5 | |
2090 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2091 | See \`config.log' for more details." >&2;} | |
2092 | { (exit 1); exit 1; }; } | |
2093 | fi | |
2094 | ||
2095 | rm -f conftest$ac_cv_exeext | |
2096 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2097 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2098 | ||
2099 | rm -f conftest.$ac_ext | |
2100 | EXEEXT=$ac_cv_exeext | |
2101 | ac_exeext=$EXEEXT | |
2102 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2103 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2104 | if test "${ac_cv_objext+set}" = set; then | |
2105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2106 | else | |
2107 | cat >conftest.$ac_ext <<_ACEOF | |
2108 | /* confdefs.h. */ | |
2109 | _ACEOF | |
2110 | cat confdefs.h >>conftest.$ac_ext | |
2111 | cat >>conftest.$ac_ext <<_ACEOF | |
2112 | /* end confdefs.h. */ | |
2113 | ||
2114 | int | |
2115 | main () | |
2116 | { | |
2117 | ||
2118 | ; | |
2119 | return 0; | |
2120 | } | |
2121 | _ACEOF | |
2122 | rm -f conftest.o conftest.obj | |
2123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2124 | (eval $ac_compile) 2>&5 | |
b7026657 AC |
2125 | ac_status=$? |
2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2127 | (exit $ac_status); }; then |
2128 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2129 | case $ac_file in | |
2130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2131 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2132 | break;; | |
2133 | esac | |
2134 | done | |
b7026657 AC |
2135 | else |
2136 | echo "$as_me: failed program was:" >&5 | |
2137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2138 | ||
f0569246 AC |
2139 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2140 | See \`config.log' for more details." >&5 | |
2141 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2142 | See \`config.log' for more details." >&2;} | |
2143 | { (exit 1); exit 1; }; } | |
b7026657 | 2144 | fi |
f0569246 AC |
2145 | |
2146 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2147 | fi | |
2148 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2149 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2150 | OBJEXT=$ac_cv_objext | |
2151 | ac_objext=$OBJEXT | |
2152 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2153 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2154 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2156 | else | |
b7026657 AC |
2157 | cat >conftest.$ac_ext <<_ACEOF |
2158 | /* confdefs.h. */ | |
2159 | _ACEOF | |
2160 | cat confdefs.h >>conftest.$ac_ext | |
2161 | cat >>conftest.$ac_ext <<_ACEOF | |
2162 | /* end confdefs.h. */ | |
f0569246 | 2163 | |
b7026657 AC |
2164 | int |
2165 | main () | |
2166 | { | |
f0569246 AC |
2167 | #ifndef __GNUC__ |
2168 | choke me | |
2169 | #endif | |
2170 | ||
b7026657 AC |
2171 | ; |
2172 | return 0; | |
2173 | } | |
2174 | _ACEOF | |
2175 | rm -f conftest.$ac_objext | |
2176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2177 | (eval $ac_compile) 2>conftest.er1 | |
2178 | ac_status=$? | |
2179 | grep -v '^ *+' conftest.er1 >conftest.err | |
2180 | rm -f conftest.er1 | |
2181 | cat conftest.err >&5 | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); } && | |
2184 | { ac_try='test -z "$ac_c_werror_flag" | |
2185 | || test ! -s conftest.err' | |
2186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2187 | (eval $ac_try) 2>&5 | |
2188 | ac_status=$? | |
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2190 | (exit $ac_status); }; } && | |
2191 | { ac_try='test -s conftest.$ac_objext' | |
2192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2193 | (eval $ac_try) 2>&5 | |
2194 | ac_status=$? | |
2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2196 | (exit $ac_status); }; }; then | |
f0569246 AC |
2197 | ac_compiler_gnu=yes |
2198 | else | |
2199 | echo "$as_me: failed program was:" >&5 | |
2200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 2201 | |
f0569246 AC |
2202 | ac_compiler_gnu=no |
2203 | fi | |
2204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2205 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
b7026657 | 2206 | |
b7026657 | 2207 | fi |
f0569246 AC |
2208 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2209 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2210 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2211 | ac_test_CFLAGS=${CFLAGS+set} | |
2212 | ac_save_CFLAGS=$CFLAGS | |
2213 | CFLAGS="-g" | |
2214 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2215 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2216 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 2218 | else |
f0569246 | 2219 | cat >conftest.$ac_ext <<_ACEOF |
b7026657 AC |
2220 | /* confdefs.h. */ |
2221 | _ACEOF | |
2222 | cat confdefs.h >>conftest.$ac_ext | |
2223 | cat >>conftest.$ac_ext <<_ACEOF | |
2224 | /* end confdefs.h. */ | |
f0569246 AC |
2225 | |
2226 | int | |
2227 | main () | |
2228 | { | |
2229 | ||
2230 | ; | |
2231 | return 0; | |
2232 | } | |
b7026657 AC |
2233 | _ACEOF |
2234 | rm -f conftest.$ac_objext | |
2235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2236 | (eval $ac_compile) 2>conftest.er1 | |
2237 | ac_status=$? | |
2238 | grep -v '^ *+' conftest.er1 >conftest.err | |
2239 | rm -f conftest.er1 | |
2240 | cat conftest.err >&5 | |
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2242 | (exit $ac_status); } && | |
2243 | { ac_try='test -z "$ac_c_werror_flag" | |
2244 | || test ! -s conftest.err' | |
2245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2246 | (eval $ac_try) 2>&5 | |
2247 | ac_status=$? | |
2248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2249 | (exit $ac_status); }; } && | |
2250 | { ac_try='test -s conftest.$ac_objext' | |
2251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2252 | (eval $ac_try) 2>&5 | |
2253 | ac_status=$? | |
2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2255 | (exit $ac_status); }; }; then | |
f0569246 | 2256 | ac_cv_prog_cc_g=yes |
b7026657 AC |
2257 | else |
2258 | echo "$as_me: failed program was:" >&5 | |
2259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2260 | ||
f0569246 | 2261 | ac_cv_prog_cc_g=no |
b7026657 AC |
2262 | fi |
2263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f0569246 AC |
2264 | fi |
2265 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2266 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2267 | if test "$ac_test_CFLAGS" = set; then | |
2268 | CFLAGS=$ac_save_CFLAGS | |
2269 | elif test $ac_cv_prog_cc_g = yes; then | |
2270 | if test "$GCC" = yes; then | |
2271 | CFLAGS="-g -O2" | |
2272 | else | |
2273 | CFLAGS="-g" | |
2274 | fi | |
2275 | else | |
2276 | if test "$GCC" = yes; then | |
2277 | CFLAGS="-O2" | |
2278 | else | |
2279 | CFLAGS= | |
2280 | fi | |
2281 | fi | |
2282 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2283 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2284 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2286 | else | |
2287 | ac_cv_prog_cc_stdc=no | |
2288 | ac_save_CC=$CC | |
b7026657 AC |
2289 | cat >conftest.$ac_ext <<_ACEOF |
2290 | /* confdefs.h. */ | |
2291 | _ACEOF | |
2292 | cat confdefs.h >>conftest.$ac_ext | |
2293 | cat >>conftest.$ac_ext <<_ACEOF | |
2294 | /* end confdefs.h. */ | |
f0569246 AC |
2295 | #include <stdarg.h> |
2296 | #include <stdio.h> | |
2297 | #include <sys/types.h> | |
2298 | #include <sys/stat.h> | |
2299 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2300 | struct buf { int x; }; | |
2301 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2302 | static char *e (p, i) | |
2303 | char **p; | |
2304 | int i; | |
2305 | { | |
2306 | return p[i]; | |
2307 | } | |
2308 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2309 | { | |
2310 | char *s; | |
2311 | va_list v; | |
2312 | va_start (v,p); | |
2313 | s = g (p, va_arg (v,int)); | |
2314 | va_end (v); | |
2315 | return s; | |
2316 | } | |
2317 | ||
2318 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2319 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2320 | These don't provoke an error unfortunately, instead are silently treated | |
2321 | as 'x'. The following induces an error, until -std1 is added to get | |
2322 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2323 | array size at least. It's necessary to write '\x00'==0 to get something | |
2324 | that's true only with -std1. */ | |
2325 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2326 | ||
2327 | int test (int i, double x); | |
2328 | struct s1 {int (*f) (int a);}; | |
2329 | struct s2 {int (*f) (double a);}; | |
2330 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2331 | int argc; | |
2332 | char **argv; | |
2333 | int | |
2334 | main () | |
2335 | { | |
2336 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2337 | ; | |
2338 | return 0; | |
2339 | } | |
b7026657 | 2340 | _ACEOF |
f0569246 AC |
2341 | # Don't try gcc -ansi; that turns off useful extensions and |
2342 | # breaks some systems' header files. | |
2343 | # AIX -qlanglvl=ansi | |
2344 | # Ultrix and OSF/1 -std1 | |
2345 | # HP-UX 10.20 and later -Ae | |
2346 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2347 | # SVR4 -Xc -D__EXTENSIONS__ | |
2348 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2349 | do | |
2350 | CC="$ac_save_CC $ac_arg" | |
2351 | rm -f conftest.$ac_objext | |
2352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2353 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2354 | ac_status=$? |
2355 | grep -v '^ *+' conftest.er1 >conftest.err | |
2356 | rm -f conftest.er1 | |
2357 | cat conftest.err >&5 | |
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2359 | (exit $ac_status); } && |
2360 | { ac_try='test -z "$ac_c_werror_flag" | |
2361 | || test ! -s conftest.err' | |
2362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2363 | (eval $ac_try) 2>&5 | |
2364 | ac_status=$? | |
2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2366 | (exit $ac_status); }; } && | |
2367 | { ac_try='test -s conftest.$ac_objext' | |
2368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2369 | (eval $ac_try) 2>&5 | |
2370 | ac_status=$? | |
2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2372 | (exit $ac_status); }; }; then | |
2373 | ac_cv_prog_cc_stdc=$ac_arg | |
2374 | break | |
b7026657 AC |
2375 | else |
2376 | echo "$as_me: failed program was:" >&5 | |
2377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2378 | ||
c906108c | 2379 | fi |
f0569246 | 2380 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2381 | done |
f0569246 AC |
2382 | rm -f conftest.$ac_ext conftest.$ac_objext |
2383 | CC=$ac_save_CC | |
c906108c | 2384 | |
f0569246 | 2385 | fi |
b7026657 | 2386 | |
f0569246 AC |
2387 | case "x$ac_cv_prog_cc_stdc" in |
2388 | x|xno) | |
2389 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2390 | echo "${ECHO_T}none needed" >&6 ;; | |
2391 | *) | |
2392 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2393 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2394 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2395 | esac | |
b7026657 | 2396 | |
f0569246 AC |
2397 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2398 | # in C++ we need to declare it. In case someone uses the same compiler | |
2399 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2400 | # the declaration of exit, since it's the most demanding environment. | |
2401 | cat >conftest.$ac_ext <<_ACEOF | |
2402 | #ifndef __cplusplus | |
2403 | choke me | |
2404 | #endif | |
2405 | _ACEOF | |
2406 | rm -f conftest.$ac_objext | |
2407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2408 | (eval $ac_compile) 2>conftest.er1 | |
2409 | ac_status=$? | |
2410 | grep -v '^ *+' conftest.er1 >conftest.err | |
2411 | rm -f conftest.er1 | |
2412 | cat conftest.err >&5 | |
2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2414 | (exit $ac_status); } && | |
2415 | { ac_try='test -z "$ac_c_werror_flag" | |
2416 | || test ! -s conftest.err' | |
2417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2418 | (eval $ac_try) 2>&5 | |
2419 | ac_status=$? | |
2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2421 | (exit $ac_status); }; } && | |
2422 | { ac_try='test -s conftest.$ac_objext' | |
2423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2424 | (eval $ac_try) 2>&5 | |
2425 | ac_status=$? | |
2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2427 | (exit $ac_status); }; }; then | |
2428 | for ac_declaration in \ | |
2429 | '' \ | |
2430 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2431 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2432 | 'extern "C" void exit (int) throw ();' \ | |
2433 | 'extern "C" void exit (int);' \ | |
2434 | 'void exit (int);' | |
c906108c | 2435 | do |
b7026657 AC |
2436 | cat >conftest.$ac_ext <<_ACEOF |
2437 | /* confdefs.h. */ | |
2438 | _ACEOF | |
2439 | cat confdefs.h >>conftest.$ac_ext | |
2440 | cat >>conftest.$ac_ext <<_ACEOF | |
2441 | /* end confdefs.h. */ | |
f0569246 AC |
2442 | $ac_declaration |
2443 | #include <stdlib.h> | |
b7026657 AC |
2444 | int |
2445 | main () | |
2446 | { | |
f0569246 | 2447 | exit (42); |
b7026657 AC |
2448 | ; |
2449 | return 0; | |
2450 | } | |
2451 | _ACEOF | |
f0569246 AC |
2452 | rm -f conftest.$ac_objext |
2453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2454 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2455 | ac_status=$? |
2456 | grep -v '^ *+' conftest.er1 >conftest.err | |
2457 | rm -f conftest.er1 | |
2458 | cat conftest.err >&5 | |
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2460 | (exit $ac_status); } && | |
2461 | { ac_try='test -z "$ac_c_werror_flag" | |
2462 | || test ! -s conftest.err' | |
2463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2464 | (eval $ac_try) 2>&5 | |
2465 | ac_status=$? | |
2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2467 | (exit $ac_status); }; } && | |
f0569246 | 2468 | { ac_try='test -s conftest.$ac_objext' |
b7026657 AC |
2469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2470 | (eval $ac_try) 2>&5 | |
2471 | ac_status=$? | |
2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2473 | (exit $ac_status); }; }; then | |
f0569246 | 2474 | : |
b7026657 AC |
2475 | else |
2476 | echo "$as_me: failed program was:" >&5 | |
2477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2478 | ||
f0569246 | 2479 | continue |
c906108c | 2480 | fi |
f0569246 | 2481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 AC |
2482 | cat >conftest.$ac_ext <<_ACEOF |
2483 | /* confdefs.h. */ | |
2484 | _ACEOF | |
2485 | cat confdefs.h >>conftest.$ac_ext | |
2486 | cat >>conftest.$ac_ext <<_ACEOF | |
2487 | /* end confdefs.h. */ | |
f0569246 | 2488 | $ac_declaration |
b7026657 AC |
2489 | int |
2490 | main () | |
2491 | { | |
f0569246 | 2492 | exit (42); |
b7026657 AC |
2493 | ; |
2494 | return 0; | |
2495 | } | |
2496 | _ACEOF | |
f0569246 AC |
2497 | rm -f conftest.$ac_objext |
2498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2499 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2500 | ac_status=$? |
2501 | grep -v '^ *+' conftest.er1 >conftest.err | |
2502 | rm -f conftest.er1 | |
2503 | cat conftest.err >&5 | |
2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2505 | (exit $ac_status); } && | |
2506 | { ac_try='test -z "$ac_c_werror_flag" | |
2507 | || test ! -s conftest.err' | |
2508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2509 | (eval $ac_try) 2>&5 | |
2510 | ac_status=$? | |
2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2512 | (exit $ac_status); }; } && | |
f0569246 | 2513 | { ac_try='test -s conftest.$ac_objext' |
b7026657 AC |
2514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2515 | (eval $ac_try) 2>&5 | |
2516 | ac_status=$? | |
2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2518 | (exit $ac_status); }; }; then | |
f0569246 AC |
2519 | break |
2520 | else | |
2521 | echo "$as_me: failed program was:" >&5 | |
2522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2523 | ||
2524 | fi | |
2525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2526 | done | |
2527 | rm -f conftest* | |
2528 | if test -n "$ac_declaration"; then | |
2529 | echo '#ifdef __cplusplus' >>confdefs.h | |
2530 | echo $ac_declaration >>confdefs.h | |
2531 | echo '#endif' >>confdefs.h | |
2532 | fi | |
2533 | ||
b7026657 AC |
2534 | else |
2535 | echo "$as_me: failed program was:" >&5 | |
2536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2537 | ||
f0569246 AC |
2538 | fi |
2539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2540 | ac_ext=c | |
2541 | ac_cpp='$CPP $CPPFLAGS' | |
2542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2545 | ||
2546 | # Find a good install program. We prefer a C program (faster), | |
2547 | # so one script is as good as another. But avoid the broken or | |
2548 | # incompatible versions: | |
2549 | # SysV /etc/install, /usr/sbin/install | |
2550 | # SunOS /usr/etc/install | |
2551 | # IRIX /sbin/install | |
2552 | # AIX /bin/install | |
2553 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2554 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2555 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2556 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2557 | # OS/2's system install, which has a completely different semantic | |
2558 | # ./install, which can be erroneously created by make from ./install.sh. | |
2559 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2560 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2561 | if test -z "$INSTALL"; then | |
2562 | if test "${ac_cv_path_install+set}" = set; then | |
2563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2564 | else | |
2565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2566 | for as_dir in $PATH | |
2567 | do | |
2568 | IFS=$as_save_IFS | |
2569 | test -z "$as_dir" && as_dir=. | |
2570 | # Account for people who put trailing slashes in PATH elements. | |
2571 | case $as_dir/ in | |
2572 | ./ | .// | /cC/* | \ | |
2573 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2574 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2575 | /usr/ucb/* ) ;; | |
2576 | *) | |
2577 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2578 | # Don't use installbsd from OSF since it installs stuff as root | |
2579 | # by default. | |
2580 | for ac_prog in ginstall scoinst install; do | |
2581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2582 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2583 | if test $ac_prog = install && | |
2584 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2585 | # AIX install. It has an incompatible calling convention. | |
2586 | : | |
2587 | elif test $ac_prog = install && | |
2588 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2589 | # program-specific install script used by HP pwplus--don't use. | |
2590 | : | |
2591 | else | |
2592 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2593 | break 3 | |
2594 | fi | |
2595 | fi | |
2596 | done | |
2597 | done | |
2598 | ;; | |
2599 | esac | |
2600 | done | |
2601 | ||
2602 | ||
2603 | fi | |
2604 | if test "${ac_cv_path_install+set}" = set; then | |
2605 | INSTALL=$ac_cv_path_install | |
2606 | else | |
2607 | # As a last resort, use the slow shell script. We don't cache a | |
2608 | # path for INSTALL within a source directory, because that will | |
2609 | # break other packages using the cache if that directory is | |
2610 | # removed, or if the path is relative. | |
2611 | INSTALL=$ac_install_sh | |
2612 | fi | |
2613 | fi | |
2614 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2615 | echo "${ECHO_T}$INSTALL" >&6 | |
2616 | ||
2617 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2618 | # It thinks the first close brace ends the variable substitution. | |
2619 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2620 | ||
2621 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2622 | ||
2623 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2624 | ||
c906108c | 2625 | |
f0569246 AC |
2626 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
2627 | if test "x$cross_compiling" = "xno"; then | |
2628 | CC_FOR_BUILD='$(CC)' | |
2629 | else | |
2630 | CC_FOR_BUILD=gcc | |
c906108c | 2631 | fi |
c906108c | 2632 | |
c906108c | 2633 | |
c906108c | 2634 | |
f0569246 AC |
2635 | |
2636 | AR=${AR-ar} | |
2637 | ||
2638 | if test -n "$ac_tool_prefix"; then | |
2639 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2640 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2643 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
b7026657 AC |
2644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2645 | else | |
f0569246 AC |
2646 | if test -n "$RANLIB"; then |
2647 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 2648 | else |
f0569246 AC |
2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2650 | for as_dir in $PATH | |
2651 | do | |
2652 | IFS=$as_save_IFS | |
2653 | test -z "$as_dir" && as_dir=. | |
2654 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2655 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2656 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2658 | break 2 | |
2659 | fi | |
2660 | done | |
2661 | done | |
b7026657 | 2662 | |
c906108c | 2663 | fi |
c906108c | 2664 | fi |
f0569246 AC |
2665 | RANLIB=$ac_cv_prog_RANLIB |
2666 | if test -n "$RANLIB"; then | |
2667 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2668 | echo "${ECHO_T}$RANLIB" >&6 | |
2669 | else | |
2670 | echo "$as_me:$LINENO: result: no" >&5 | |
2671 | echo "${ECHO_T}no" >&6 | |
2672 | fi | |
c906108c | 2673 | |
f0569246 AC |
2674 | fi |
2675 | if test -z "$ac_cv_prog_RANLIB"; then | |
2676 | ac_ct_RANLIB=$RANLIB | |
2677 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2678 | set dummy ranlib; ac_word=$2 | |
2679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2681 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2683 | else | |
2684 | if test -n "$ac_ct_RANLIB"; then | |
2685 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2686 | else | |
2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2688 | for as_dir in $PATH | |
2689 | do | |
2690 | IFS=$as_save_IFS | |
2691 | test -z "$as_dir" && as_dir=. | |
2692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2694 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2696 | break 2 | |
c906108c | 2697 | fi |
f0569246 AC |
2698 | done |
2699 | done | |
2700 | ||
2701 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2702 | fi | |
2703 | fi | |
2704 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2705 | if test -n "$ac_ct_RANLIB"; then | |
2706 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2707 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2708 | else | |
2709 | echo "$as_me:$LINENO: result: no" >&5 | |
2710 | echo "${ECHO_T}no" >&6 | |
2711 | fi | |
c906108c | 2712 | |
f0569246 AC |
2713 | RANLIB=$ac_ct_RANLIB |
2714 | else | |
2715 | RANLIB="$ac_cv_prog_RANLIB" | |
2716 | fi | |
c906108c | 2717 | |
c906108c | 2718 | |
f0569246 | 2719 | ALL_LINGUAS= |
35695fd6 AC |
2720 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2721 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2722 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2723 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2725 | else | |
2726 | cat >conftest.make <<\_ACEOF | |
2727 | all: | |
2728 | @echo 'ac_maketemp="$(MAKE)"' | |
2729 | _ACEOF | |
2730 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2731 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2732 | if test -n "$ac_maketemp"; then | |
2733 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2734 | else | |
2735 | eval ac_cv_prog_make_${ac_make}_set=no | |
2736 | fi | |
2737 | rm -f conftest.make | |
2738 | fi | |
2739 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2740 | echo "$as_me:$LINENO: result: yes" >&5 | |
2741 | echo "${ECHO_T}yes" >&6 | |
2742 | SET_MAKE= | |
2743 | else | |
2744 | echo "$as_me:$LINENO: result: no" >&5 | |
2745 | echo "${ECHO_T}no" >&6 | |
2746 | SET_MAKE="MAKE=${MAKE-make}" | |
2747 | fi | |
b7026657 | 2748 | |
c906108c | 2749 | |
35695fd6 AC |
2750 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2751 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2752 | if test "${ac_cv_search_strerror+set}" = set; then | |
f0569246 | 2753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b7026657 | 2754 | else |
35695fd6 AC |
2755 | ac_func_search_save_LIBS=$LIBS |
2756 | ac_cv_search_strerror=no | |
2757 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2758 | /* confdefs.h. */ |
2759 | _ACEOF | |
2760 | cat confdefs.h >>conftest.$ac_ext | |
2761 | cat >>conftest.$ac_ext <<_ACEOF | |
2762 | /* end confdefs.h. */ | |
35695fd6 AC |
2763 | |
2764 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2765 | #ifdef __cplusplus | |
2766 | extern "C" | |
f0569246 | 2767 | #endif |
35695fd6 AC |
2768 | /* We use char because int might match the return type of a gcc2 |
2769 | builtin and then its argument prototype would still apply. */ | |
2770 | char strerror (); | |
2771 | int | |
2772 | main () | |
2773 | { | |
2774 | strerror (); | |
2775 | ; | |
2776 | return 0; | |
2777 | } | |
b7026657 | 2778 | _ACEOF |
35695fd6 AC |
2779 | rm -f conftest.$ac_objext conftest$ac_exeext |
2780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2781 | (eval $ac_link) 2>conftest.er1 | |
b7026657 AC |
2782 | ac_status=$? |
2783 | grep -v '^ *+' conftest.er1 >conftest.err | |
2784 | rm -f conftest.er1 | |
2785 | cat conftest.err >&5 | |
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
2787 | (exit $ac_status); } && |
2788 | { ac_try='test -z "$ac_c_werror_flag" | |
2789 | || test ! -s conftest.err' | |
2790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2791 | (eval $ac_try) 2>&5 | |
2792 | ac_status=$? | |
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2794 | (exit $ac_status); }; } && | |
2795 | { ac_try='test -s conftest$ac_exeext' | |
2796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2797 | (eval $ac_try) 2>&5 | |
2798 | ac_status=$? | |
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2800 | (exit $ac_status); }; }; then | |
2801 | ac_cv_search_strerror="none required" | |
b7026657 AC |
2802 | else |
2803 | echo "$as_me: failed program was:" >&5 | |
2804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2805 | ||
b7026657 | 2806 | fi |
35695fd6 AC |
2807 | rm -f conftest.err conftest.$ac_objext \ |
2808 | conftest$ac_exeext conftest.$ac_ext | |
2809 | if test "$ac_cv_search_strerror" = no; then | |
2810 | for ac_lib in cposix; do | |
2811 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2812 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2813 | /* confdefs.h. */ |
2814 | _ACEOF | |
2815 | cat confdefs.h >>conftest.$ac_ext | |
2816 | cat >>conftest.$ac_ext <<_ACEOF | |
f0569246 | 2817 | /* end confdefs.h. */ |
35695fd6 AC |
2818 | |
2819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2820 | #ifdef __cplusplus | |
2821 | extern "C" | |
2822 | #endif | |
2823 | /* We use char because int might match the return type of a gcc2 | |
2824 | builtin and then its argument prototype would still apply. */ | |
2825 | char strerror (); | |
2826 | int | |
2827 | main () | |
2828 | { | |
2829 | strerror (); | |
2830 | ; | |
2831 | return 0; | |
2832 | } | |
2833 | _ACEOF | |
2834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2836 | (eval $ac_link) 2>conftest.er1 | |
2837 | ac_status=$? | |
2838 | grep -v '^ *+' conftest.er1 >conftest.err | |
2839 | rm -f conftest.er1 | |
2840 | cat conftest.err >&5 | |
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2842 | (exit $ac_status); } && | |
2843 | { ac_try='test -z "$ac_c_werror_flag" | |
2844 | || test ! -s conftest.err' | |
2845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2846 | (eval $ac_try) 2>&5 | |
2847 | ac_status=$? | |
2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2849 | (exit $ac_status); }; } && | |
2850 | { ac_try='test -s conftest$ac_exeext' | |
2851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2852 | (eval $ac_try) 2>&5 | |
2853 | ac_status=$? | |
2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2855 | (exit $ac_status); }; }; then | |
2856 | ac_cv_search_strerror="-l$ac_lib" | |
2857 | break | |
2858 | else | |
2859 | echo "$as_me: failed program was:" >&5 | |
2860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2861 | ||
2862 | fi | |
2863 | rm -f conftest.err conftest.$ac_objext \ | |
2864 | conftest$ac_exeext conftest.$ac_ext | |
2865 | done | |
2866 | fi | |
2867 | LIBS=$ac_func_search_save_LIBS | |
2868 | fi | |
2869 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2870 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2871 | if test "$ac_cv_search_strerror" != no; then | |
2872 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2873 | ||
2874 | fi | |
2875 | ||
2876 | ac_ext=c | |
2877 | ac_cpp='$CPP $CPPFLAGS' | |
2878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2881 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2882 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2883 | # On Suns, sometimes $CPP names a directory. | |
2884 | if test -n "$CPP" && test -d "$CPP"; then | |
2885 | CPP= | |
2886 | fi | |
2887 | if test -z "$CPP"; then | |
2888 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2890 | else | |
2891 | # Double quotes because CPP needs to be expanded | |
2892 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2893 | do | |
2894 | ac_preproc_ok=false | |
2895 | for ac_c_preproc_warn_flag in '' yes | |
2896 | do | |
2897 | # Use a header file that comes with gcc, so configuring glibc | |
2898 | # with a fresh cross-compiler works. | |
2899 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2900 | # <limits.h> exists even on freestanding compilers. | |
2901 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2902 | # not just through cpp. "Syntax error" is here to catch this case. | |
2903 | cat >conftest.$ac_ext <<_ACEOF | |
2904 | /* confdefs.h. */ | |
2905 | _ACEOF | |
2906 | cat confdefs.h >>conftest.$ac_ext | |
2907 | cat >>conftest.$ac_ext <<_ACEOF | |
2908 | /* end confdefs.h. */ | |
2909 | #ifdef __STDC__ | |
2910 | # include <limits.h> | |
2911 | #else | |
2912 | # include <assert.h> | |
2913 | #endif | |
2914 | Syntax error | |
2915 | _ACEOF | |
2916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2918 | ac_status=$? | |
2919 | grep -v '^ *+' conftest.er1 >conftest.err | |
2920 | rm -f conftest.er1 | |
2921 | cat conftest.err >&5 | |
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2923 | (exit $ac_status); } >/dev/null; then | |
2924 | if test -s conftest.err; then | |
2925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2926 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2927 | else | |
2928 | ac_cpp_err= | |
2929 | fi | |
2930 | else | |
2931 | ac_cpp_err=yes | |
2932 | fi | |
2933 | if test -z "$ac_cpp_err"; then | |
2934 | : | |
2935 | else | |
2936 | echo "$as_me: failed program was:" >&5 | |
2937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2938 | ||
2939 | # Broken: fails on valid input. | |
2940 | continue | |
2941 | fi | |
2942 | rm -f conftest.err conftest.$ac_ext | |
2943 | ||
2944 | # OK, works on sane cases. Now check whether non-existent headers | |
2945 | # can be detected and how. | |
2946 | cat >conftest.$ac_ext <<_ACEOF | |
2947 | /* confdefs.h. */ | |
2948 | _ACEOF | |
2949 | cat confdefs.h >>conftest.$ac_ext | |
2950 | cat >>conftest.$ac_ext <<_ACEOF | |
2951 | /* end confdefs.h. */ | |
2952 | #include <ac_nonexistent.h> | |
2953 | _ACEOF | |
2954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
f0569246 | 2955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
b7026657 AC |
2956 | ac_status=$? |
2957 | grep -v '^ *+' conftest.er1 >conftest.err | |
2958 | rm -f conftest.er1 | |
2959 | cat conftest.err >&5 | |
2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2961 | (exit $ac_status); } >/dev/null; then |
2962 | if test -s conftest.err; then | |
2963 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2964 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2965 | else | |
2966 | ac_cpp_err= | |
2967 | fi | |
2968 | else | |
2969 | ac_cpp_err=yes | |
2970 | fi | |
2971 | if test -z "$ac_cpp_err"; then | |
2972 | # Broken: success on invalid input. | |
2973 | continue | |
c906108c | 2974 | else |
b7026657 AC |
2975 | echo "$as_me: failed program was:" >&5 |
2976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2977 | ||
f0569246 AC |
2978 | # Passes both tests. |
2979 | ac_preproc_ok=: | |
2980 | break | |
c906108c | 2981 | fi |
f0569246 AC |
2982 | rm -f conftest.err conftest.$ac_ext |
2983 | ||
2984 | done | |
2985 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2986 | rm -f conftest.err conftest.$ac_ext | |
2987 | if $ac_preproc_ok; then | |
2988 | break | |
c906108c | 2989 | fi |
c906108c | 2990 | |
f0569246 AC |
2991 | done |
2992 | ac_cv_prog_CPP=$CPP | |
2993 | ||
2994 | fi | |
2995 | CPP=$ac_cv_prog_CPP | |
c906108c | 2996 | else |
f0569246 AC |
2997 | ac_cv_prog_CPP=$CPP |
2998 | fi | |
2999 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3000 | echo "${ECHO_T}$CPP" >&6 | |
3001 | ac_preproc_ok=false | |
3002 | for ac_c_preproc_warn_flag in '' yes | |
3003 | do | |
3004 | # Use a header file that comes with gcc, so configuring glibc | |
3005 | # with a fresh cross-compiler works. | |
3006 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3007 | # <limits.h> exists even on freestanding compilers. | |
3008 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3009 | # not just through cpp. "Syntax error" is here to catch this case. | |
3010 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3011 | /* confdefs.h. */ |
3012 | _ACEOF | |
3013 | cat confdefs.h >>conftest.$ac_ext | |
3014 | cat >>conftest.$ac_ext <<_ACEOF | |
3015 | /* end confdefs.h. */ | |
f0569246 AC |
3016 | #ifdef __STDC__ |
3017 | # include <limits.h> | |
3018 | #else | |
3019 | # include <assert.h> | |
b7026657 | 3020 | #endif |
f0569246 | 3021 | Syntax error |
b7026657 | 3022 | _ACEOF |
f0569246 AC |
3023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 AC |
3025 | ac_status=$? |
3026 | grep -v '^ *+' conftest.er1 >conftest.err | |
3027 | rm -f conftest.er1 | |
3028 | cat conftest.err >&5 | |
3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
3030 | (exit $ac_status); } >/dev/null; then |
3031 | if test -s conftest.err; then | |
3032 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3033 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3034 | else | |
3035 | ac_cpp_err= | |
3036 | fi | |
3037 | else | |
3038 | ac_cpp_err=yes | |
3039 | fi | |
3040 | if test -z "$ac_cpp_err"; then | |
3041 | : | |
b7026657 AC |
3042 | else |
3043 | echo "$as_me: failed program was:" >&5 | |
3044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3045 | ||
f0569246 AC |
3046 | # Broken: fails on valid input. |
3047 | continue | |
b7026657 | 3048 | fi |
f0569246 AC |
3049 | rm -f conftest.err conftest.$ac_ext |
3050 | ||
3051 | # OK, works on sane cases. Now check whether non-existent headers | |
3052 | # can be detected and how. | |
b7026657 AC |
3053 | cat >conftest.$ac_ext <<_ACEOF |
3054 | /* confdefs.h. */ | |
3055 | _ACEOF | |
3056 | cat confdefs.h >>conftest.$ac_ext | |
3057 | cat >>conftest.$ac_ext <<_ACEOF | |
3058 | /* end confdefs.h. */ | |
f0569246 | 3059 | #include <ac_nonexistent.h> |
b7026657 | 3060 | _ACEOF |
f0569246 AC |
3061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 AC |
3063 | ac_status=$? |
3064 | grep -v '^ *+' conftest.er1 >conftest.err | |
3065 | rm -f conftest.er1 | |
3066 | cat conftest.err >&5 | |
3067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
3068 | (exit $ac_status); } >/dev/null; then |
3069 | if test -s conftest.err; then | |
3070 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3071 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3072 | else | |
3073 | ac_cpp_err= | |
3074 | fi | |
3075 | else | |
3076 | ac_cpp_err=yes | |
3077 | fi | |
3078 | if test -z "$ac_cpp_err"; then | |
3079 | # Broken: success on invalid input. | |
3080 | continue | |
c906108c | 3081 | else |
b7026657 AC |
3082 | echo "$as_me: failed program was:" >&5 |
3083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3084 | ||
f0569246 AC |
3085 | # Passes both tests. |
3086 | ac_preproc_ok=: | |
3087 | break | |
c906108c | 3088 | fi |
f0569246 | 3089 | rm -f conftest.err conftest.$ac_ext |
c906108c | 3090 | |
f0569246 AC |
3091 | done |
3092 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3093 | rm -f conftest.err conftest.$ac_ext | |
3094 | if $ac_preproc_ok; then | |
3095 | : | |
c906108c | 3096 | else |
f0569246 AC |
3097 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3098 | See \`config.log' for more details." >&5 | |
3099 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3100 | See \`config.log' for more details." >&2;} | |
3101 | { (exit 1); exit 1; }; } | |
c906108c | 3102 | fi |
b7026657 | 3103 | |
f0569246 AC |
3104 | ac_ext=c |
3105 | ac_cpp='$CPP $CPPFLAGS' | |
3106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3109 | ||
3110 | ||
3111 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3112 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3113 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3115 | else | |
3116 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3117 | then ac_cv_prog_egrep='grep -E' | |
3118 | else ac_cv_prog_egrep='egrep' | |
3119 | fi | |
3120 | fi | |
3121 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3122 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3123 | EGREP=$ac_cv_prog_egrep | |
3124 | ||
3125 | ||
3126 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3127 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3128 | if test "${ac_cv_header_stdc+set}" = set; then | |
3129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3130 | else | |
3131 | cat >conftest.$ac_ext <<_ACEOF | |
3132 | /* confdefs.h. */ | |
3133 | _ACEOF | |
3134 | cat confdefs.h >>conftest.$ac_ext | |
3135 | cat >>conftest.$ac_ext <<_ACEOF | |
3136 | /* end confdefs.h. */ | |
3137 | #include <stdlib.h> | |
3138 | #include <stdarg.h> | |
3139 | #include <string.h> | |
3140 | #include <float.h> | |
c906108c | 3141 | |
b7026657 AC |
3142 | int |
3143 | main () | |
3144 | { | |
f0569246 | 3145 | |
b7026657 AC |
3146 | ; |
3147 | return 0; | |
3148 | } | |
3149 | _ACEOF | |
f0569246 AC |
3150 | rm -f conftest.$ac_objext |
3151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3152 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
3153 | ac_status=$? |
3154 | grep -v '^ *+' conftest.er1 >conftest.err | |
3155 | rm -f conftest.er1 | |
3156 | cat conftest.err >&5 | |
3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3158 | (exit $ac_status); } && | |
3159 | { ac_try='test -z "$ac_c_werror_flag" | |
3160 | || test ! -s conftest.err' | |
3161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3162 | (eval $ac_try) 2>&5 | |
3163 | ac_status=$? | |
3164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3165 | (exit $ac_status); }; } && | |
f0569246 | 3166 | { ac_try='test -s conftest.$ac_objext' |
b7026657 AC |
3167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3168 | (eval $ac_try) 2>&5 | |
3169 | ac_status=$? | |
3170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3171 | (exit $ac_status); }; }; then | |
f0569246 | 3172 | ac_cv_header_stdc=yes |
b7026657 AC |
3173 | else |
3174 | echo "$as_me: failed program was:" >&5 | |
3175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3176 | ||
f0569246 | 3177 | ac_cv_header_stdc=no |
b7026657 | 3178 | fi |
f0569246 | 3179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3180 | |
f0569246 AC |
3181 | if test $ac_cv_header_stdc = yes; then |
3182 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3183 | cat >conftest.$ac_ext <<_ACEOF | |
3184 | /* confdefs.h. */ | |
3185 | _ACEOF | |
3186 | cat confdefs.h >>conftest.$ac_ext | |
3187 | cat >>conftest.$ac_ext <<_ACEOF | |
3188 | /* end confdefs.h. */ | |
3189 | #include <string.h> | |
c906108c | 3190 | |
f0569246 AC |
3191 | _ACEOF |
3192 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3193 | $EGREP "memchr" >/dev/null 2>&1; then | |
3194 | : | |
c906108c | 3195 | else |
f0569246 | 3196 | ac_cv_header_stdc=no |
c906108c | 3197 | fi |
f0569246 | 3198 | rm -f conftest* |
b7026657 | 3199 | |
c906108c SS |
3200 | fi |
3201 | ||
f0569246 AC |
3202 | if test $ac_cv_header_stdc = yes; then |
3203 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3204 | cat >conftest.$ac_ext <<_ACEOF | |
3205 | /* confdefs.h. */ | |
3206 | _ACEOF | |
3207 | cat confdefs.h >>conftest.$ac_ext | |
3208 | cat >>conftest.$ac_ext <<_ACEOF | |
3209 | /* end confdefs.h. */ | |
3210 | #include <stdlib.h> | |
3211 | ||
3212 | _ACEOF | |
3213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3214 | $EGREP "free" >/dev/null 2>&1; then | |
3215 | : | |
c906108c | 3216 | else |
f0569246 | 3217 | ac_cv_header_stdc=no |
c906108c | 3218 | fi |
f0569246 AC |
3219 | rm -f conftest* |
3220 | ||
c906108c SS |
3221 | fi |
3222 | ||
f0569246 AC |
3223 | if test $ac_cv_header_stdc = yes; then |
3224 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3225 | if test "$cross_compiling" = yes; then | |
3226 | : | |
3227 | else | |
3228 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3229 | /* confdefs.h. */ |
3230 | _ACEOF | |
3231 | cat confdefs.h >>conftest.$ac_ext | |
3232 | cat >>conftest.$ac_ext <<_ACEOF | |
3233 | /* end confdefs.h. */ | |
f0569246 AC |
3234 | #include <ctype.h> |
3235 | #if ((' ' & 0x0FF) == 0x020) | |
3236 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3237 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3238 | #else | |
3239 | # define ISLOWER(c) \ | |
3240 | (('a' <= (c) && (c) <= 'i') \ | |
3241 | || ('j' <= (c) && (c) <= 'r') \ | |
3242 | || ('s' <= (c) && (c) <= 'z')) | |
3243 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3244 | #endif | |
c906108c | 3245 | |
f0569246 | 3246 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b7026657 AC |
3247 | int |
3248 | main () | |
3249 | { | |
f0569246 AC |
3250 | int i; |
3251 | for (i = 0; i < 256; i++) | |
3252 | if (XOR (islower (i), ISLOWER (i)) | |
3253 | || toupper (i) != TOUPPER (i)) | |
3254 | exit(2); | |
3255 | exit (0); | |
b7026657 AC |
3256 | } |
3257 | _ACEOF | |
f0569246 | 3258 | rm -f conftest$ac_exeext |
b7026657 | 3259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f0569246 | 3260 | (eval $ac_link) 2>&5 |
b7026657 AC |
3261 | ac_status=$? |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 | 3263 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
b7026657 AC |
3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3265 | (eval $ac_try) 2>&5 | |
3266 | ac_status=$? | |
3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3268 | (exit $ac_status); }; }; then | |
f0569246 | 3269 | : |
c906108c | 3270 | else |
f0569246 AC |
3271 | echo "$as_me: program exited with status $ac_status" >&5 |
3272 | echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3273 | sed 's/^/| /' conftest.$ac_ext >&5 |
3274 | ||
f0569246 AC |
3275 | ( exit $ac_status ) |
3276 | ac_cv_header_stdc=no | |
c906108c | 3277 | fi |
f0569246 | 3278 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 3279 | fi |
c906108c | 3280 | fi |
c906108c | 3281 | fi |
f0569246 AC |
3282 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3283 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3284 | if test $ac_cv_header_stdc = yes; then | |
b7026657 | 3285 | |
f0569246 AC |
3286 | cat >>confdefs.h <<\_ACEOF |
3287 | #define STDC_HEADERS 1 | |
3288 | _ACEOF | |
c906108c | 3289 | |
c906108c SS |
3290 | fi |
3291 | ||
35695fd6 AC |
3292 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3293 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3294 | if test "${ac_cv_c_const+set}" = set; then | |
3295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3296 | else | |
3297 | cat >conftest.$ac_ext <<_ACEOF | |
3298 | /* confdefs.h. */ | |
3299 | _ACEOF | |
3300 | cat confdefs.h >>conftest.$ac_ext | |
3301 | cat >>conftest.$ac_ext <<_ACEOF | |
3302 | /* end confdefs.h. */ | |
3303 | ||
3304 | int | |
3305 | main () | |
3306 | { | |
3307 | /* FIXME: Include the comments suggested by Paul. */ | |
3308 | #ifndef __cplusplus | |
3309 | /* Ultrix mips cc rejects this. */ | |
3310 | typedef int charset[2]; | |
3311 | const charset x; | |
3312 | /* SunOS 4.1.1 cc rejects this. */ | |
3313 | char const *const *ccp; | |
3314 | char **p; | |
3315 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3316 | struct point {int x, y;}; | |
3317 | static struct point const zero = {0,0}; | |
3318 | /* AIX XL C 1.02.0.0 rejects this. | |
3319 | It does not let you subtract one const X* pointer from another in | |
3320 | an arm of an if-expression whose if-part is not a constant | |
3321 | expression */ | |
3322 | const char *g = "string"; | |
3323 | ccp = &g + (g ? g-g : 0); | |
3324 | /* HPUX 7.0 cc rejects these. */ | |
3325 | ++ccp; | |
3326 | p = (char**) ccp; | |
3327 | ccp = (char const *const *) p; | |
3328 | { /* SCO 3.2v4 cc rejects this. */ | |
3329 | char *t; | |
3330 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3331 | ||
3332 | *t++ = 0; | |
3333 | } | |
3334 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3335 | int x[] = {25, 17}; | |
3336 | const int *foo = &x[0]; | |
3337 | ++foo; | |
3338 | } | |
3339 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3340 | typedef const int *iptr; | |
3341 | iptr p = 0; | |
3342 | ++p; | |
3343 | } | |
3344 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3345 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3346 | struct s { int j; const int *ap[3]; }; | |
3347 | struct s *b; b->j = 5; | |
3348 | } | |
3349 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3350 | const int foo = 10; | |
3351 | } | |
3352 | #endif | |
3353 | ||
3354 | ; | |
3355 | return 0; | |
3356 | } | |
3357 | _ACEOF | |
3358 | rm -f conftest.$ac_objext | |
3359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3360 | (eval $ac_compile) 2>conftest.er1 | |
3361 | ac_status=$? | |
3362 | grep -v '^ *+' conftest.er1 >conftest.err | |
3363 | rm -f conftest.er1 | |
3364 | cat conftest.err >&5 | |
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3366 | (exit $ac_status); } && | |
3367 | { ac_try='test -z "$ac_c_werror_flag" | |
3368 | || test ! -s conftest.err' | |
3369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3370 | (eval $ac_try) 2>&5 | |
3371 | ac_status=$? | |
3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3373 | (exit $ac_status); }; } && | |
3374 | { ac_try='test -s conftest.$ac_objext' | |
3375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3376 | (eval $ac_try) 2>&5 | |
3377 | ac_status=$? | |
3378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3379 | (exit $ac_status); }; }; then | |
3380 | ac_cv_c_const=yes | |
3381 | else | |
3382 | echo "$as_me: failed program was:" >&5 | |
3383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3384 | ||
3385 | ac_cv_c_const=no | |
3386 | fi | |
3387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3388 | fi | |
3389 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
3390 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3391 | if test $ac_cv_c_const = no; then | |
3392 | ||
3393 | cat >>confdefs.h <<\_ACEOF | |
3394 | #define const | |
3395 | _ACEOF | |
3396 | ||
3397 | fi | |
3398 | ||
3399 | echo "$as_me:$LINENO: checking for inline" >&5 | |
3400 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3401 | if test "${ac_cv_c_inline+set}" = set; then | |
3402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3403 | else | |
3404 | ac_cv_c_inline=no | |
3405 | for ac_kw in inline __inline__ __inline; do | |
3406 | cat >conftest.$ac_ext <<_ACEOF | |
3407 | /* confdefs.h. */ | |
3408 | _ACEOF | |
3409 | cat confdefs.h >>conftest.$ac_ext | |
3410 | cat >>conftest.$ac_ext <<_ACEOF | |
3411 | /* end confdefs.h. */ | |
3412 | #ifndef __cplusplus | |
3413 | typedef int foo_t; | |
3414 | static $ac_kw foo_t static_foo () {return 0; } | |
3415 | $ac_kw foo_t foo () {return 0; } | |
3416 | #endif | |
3417 | ||
3418 | _ACEOF | |
3419 | rm -f conftest.$ac_objext | |
3420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3421 | (eval $ac_compile) 2>conftest.er1 | |
3422 | ac_status=$? | |
3423 | grep -v '^ *+' conftest.er1 >conftest.err | |
3424 | rm -f conftest.er1 | |
3425 | cat conftest.err >&5 | |
3426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3427 | (exit $ac_status); } && | |
3428 | { ac_try='test -z "$ac_c_werror_flag" | |
3429 | || test ! -s conftest.err' | |
3430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3431 | (eval $ac_try) 2>&5 | |
3432 | ac_status=$? | |
3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3434 | (exit $ac_status); }; } && | |
3435 | { ac_try='test -s conftest.$ac_objext' | |
3436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3437 | (eval $ac_try) 2>&5 | |
3438 | ac_status=$? | |
3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3440 | (exit $ac_status); }; }; then | |
3441 | ac_cv_c_inline=$ac_kw; break | |
3442 | else | |
3443 | echo "$as_me: failed program was:" >&5 | |
3444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3445 | ||
3446 | fi | |
3447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3448 | done | |
3449 | ||
3450 | fi | |
3451 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3452 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
3453 | ||
3454 | ||
3455 | case $ac_cv_c_inline in | |
3456 | inline | yes) ;; | |
3457 | *) | |
3458 | case $ac_cv_c_inline in | |
3459 | no) ac_val=;; | |
3460 | *) ac_val=$ac_cv_c_inline;; | |
3461 | esac | |
3462 | cat >>confdefs.h <<_ACEOF | |
3463 | #ifndef __cplusplus | |
3464 | #define inline $ac_val | |
3465 | #endif | |
3466 | _ACEOF | |
3467 | ;; | |
3468 | esac | |
3469 | ||
f0569246 | 3470 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b7026657 AC |
3471 | |
3472 | ||
3473 | ||
3474 | ||
3475 | ||
3476 | ||
3477 | ||
c906108c | 3478 | |
c906108c | 3479 | |
35695fd6 AC |
3480 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3481 | inttypes.h stdint.h unistd.h | |
3482 | do | |
3483 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3484 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3486 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3488 | else | |
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. */ | |
3495 | $ac_includes_default | |
3496 | ||
3497 | #include <$ac_header> | |
3498 | _ACEOF | |
3499 | rm -f conftest.$ac_objext | |
3500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3501 | (eval $ac_compile) 2>conftest.er1 | |
3502 | ac_status=$? | |
3503 | grep -v '^ *+' conftest.er1 >conftest.err | |
3504 | rm -f conftest.er1 | |
3505 | cat conftest.err >&5 | |
3506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3507 | (exit $ac_status); } && | |
3508 | { ac_try='test -z "$ac_c_werror_flag" | |
3509 | || test ! -s conftest.err' | |
3510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3511 | (eval $ac_try) 2>&5 | |
3512 | ac_status=$? | |
3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3514 | (exit $ac_status); }; } && | |
3515 | { ac_try='test -s conftest.$ac_objext' | |
3516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3517 | (eval $ac_try) 2>&5 | |
3518 | ac_status=$? | |
3519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3520 | (exit $ac_status); }; }; then | |
3521 | eval "$as_ac_Header=yes" | |
3522 | else | |
3523 | echo "$as_me: failed program was:" >&5 | |
3524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3525 | ||
3526 | eval "$as_ac_Header=no" | |
3527 | fi | |
3528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3529 | fi | |
3530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3531 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3532 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3533 | cat >>confdefs.h <<_ACEOF | |
3534 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3535 | _ACEOF | |
3536 | ||
3537 | fi | |
3538 | ||
3539 | done | |
3540 | ||
3541 | ||
3542 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
3543 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3544 | if test "${ac_cv_type_off_t+set}" = set; then | |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3546 | else | |
3547 | cat >conftest.$ac_ext <<_ACEOF | |
3548 | /* confdefs.h. */ | |
3549 | _ACEOF | |
3550 | cat confdefs.h >>conftest.$ac_ext | |
3551 | cat >>conftest.$ac_ext <<_ACEOF | |
3552 | /* end confdefs.h. */ | |
3553 | $ac_includes_default | |
3554 | int | |
3555 | main () | |
3556 | { | |
3557 | if ((off_t *) 0) | |
3558 | return 0; | |
3559 | if (sizeof (off_t)) | |
3560 | return 0; | |
3561 | ; | |
3562 | return 0; | |
3563 | } | |
3564 | _ACEOF | |
3565 | rm -f conftest.$ac_objext | |
3566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3567 | (eval $ac_compile) 2>conftest.er1 | |
3568 | ac_status=$? | |
3569 | grep -v '^ *+' conftest.er1 >conftest.err | |
3570 | rm -f conftest.er1 | |
3571 | cat conftest.err >&5 | |
3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3573 | (exit $ac_status); } && | |
3574 | { ac_try='test -z "$ac_c_werror_flag" | |
3575 | || test ! -s conftest.err' | |
3576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3577 | (eval $ac_try) 2>&5 | |
3578 | ac_status=$? | |
3579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3580 | (exit $ac_status); }; } && | |
3581 | { ac_try='test -s conftest.$ac_objext' | |
3582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3583 | (eval $ac_try) 2>&5 | |
3584 | ac_status=$? | |
3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3586 | (exit $ac_status); }; }; then | |
3587 | ac_cv_type_off_t=yes | |
3588 | else | |
3589 | echo "$as_me: failed program was:" >&5 | |
3590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3591 | ||
3592 | ac_cv_type_off_t=no | |
3593 | fi | |
3594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3595 | fi | |
3596 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
3597 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3598 | if test $ac_cv_type_off_t = yes; then | |
3599 | : | |
3600 | else | |
3601 | ||
3602 | cat >>confdefs.h <<_ACEOF | |
3603 | #define off_t long | |
3604 | _ACEOF | |
3605 | ||
3606 | fi | |
3607 | ||
3608 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
3609 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3610 | if test "${ac_cv_type_size_t+set}" = set; then | |
3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3612 | else | |
3613 | cat >conftest.$ac_ext <<_ACEOF | |
3614 | /* confdefs.h. */ | |
3615 | _ACEOF | |
3616 | cat confdefs.h >>conftest.$ac_ext | |
3617 | cat >>conftest.$ac_ext <<_ACEOF | |
3618 | /* end confdefs.h. */ | |
3619 | $ac_includes_default | |
3620 | int | |
3621 | main () | |
3622 | { | |
3623 | if ((size_t *) 0) | |
3624 | return 0; | |
3625 | if (sizeof (size_t)) | |
3626 | return 0; | |
3627 | ; | |
3628 | return 0; | |
3629 | } | |
3630 | _ACEOF | |
3631 | rm -f conftest.$ac_objext | |
3632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3633 | (eval $ac_compile) 2>conftest.er1 | |
3634 | ac_status=$? | |
3635 | grep -v '^ *+' conftest.er1 >conftest.err | |
3636 | rm -f conftest.er1 | |
3637 | cat conftest.err >&5 | |
3638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3639 | (exit $ac_status); } && | |
3640 | { ac_try='test -z "$ac_c_werror_flag" | |
3641 | || test ! -s conftest.err' | |
3642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3643 | (eval $ac_try) 2>&5 | |
3644 | ac_status=$? | |
3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3646 | (exit $ac_status); }; } && | |
3647 | { ac_try='test -s conftest.$ac_objext' | |
3648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3649 | (eval $ac_try) 2>&5 | |
3650 | ac_status=$? | |
3651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3652 | (exit $ac_status); }; }; then | |
3653 | ac_cv_type_size_t=yes | |
3654 | else | |
3655 | echo "$as_me: failed program was:" >&5 | |
3656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3657 | ||
3658 | ac_cv_type_size_t=no | |
3659 | fi | |
3660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3661 | fi | |
3662 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
3663 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3664 | if test $ac_cv_type_size_t = yes; then | |
3665 | : | |
3666 | else | |
3667 | ||
3668 | cat >>confdefs.h <<_ACEOF | |
3669 | #define size_t unsigned | |
3670 | _ACEOF | |
3671 | ||
3672 | fi | |
3673 | ||
3674 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3675 | # for constant arguments. Useless! | |
3676 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
3677 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3678 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3680 | else | |
3681 | cat >conftest.$ac_ext <<_ACEOF | |
3682 | /* confdefs.h. */ | |
3683 | _ACEOF | |
3684 | cat confdefs.h >>conftest.$ac_ext | |
3685 | cat >>conftest.$ac_ext <<_ACEOF | |
3686 | /* end confdefs.h. */ | |
3687 | #include <alloca.h> | |
3688 | int | |
3689 | main () | |
3690 | { | |
3691 | char *p = (char *) alloca (2 * sizeof (int)); | |
3692 | ; | |
3693 | return 0; | |
3694 | } | |
3695 | _ACEOF | |
3696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3698 | (eval $ac_link) 2>conftest.er1 | |
3699 | ac_status=$? | |
3700 | grep -v '^ *+' conftest.er1 >conftest.err | |
3701 | rm -f conftest.er1 | |
3702 | cat conftest.err >&5 | |
3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3704 | (exit $ac_status); } && | |
3705 | { ac_try='test -z "$ac_c_werror_flag" | |
3706 | || test ! -s conftest.err' | |
3707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3708 | (eval $ac_try) 2>&5 | |
3709 | ac_status=$? | |
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3711 | (exit $ac_status); }; } && | |
3712 | { ac_try='test -s conftest$ac_exeext' | |
3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3714 | (eval $ac_try) 2>&5 | |
3715 | ac_status=$? | |
3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3717 | (exit $ac_status); }; }; then | |
3718 | ac_cv_working_alloca_h=yes | |
3719 | else | |
3720 | echo "$as_me: failed program was:" >&5 | |
3721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3722 | ||
3723 | ac_cv_working_alloca_h=no | |
3724 | fi | |
3725 | rm -f conftest.err conftest.$ac_objext \ | |
3726 | conftest$ac_exeext conftest.$ac_ext | |
3727 | fi | |
3728 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
3729 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3730 | if test $ac_cv_working_alloca_h = yes; then | |
3731 | ||
3732 | cat >>confdefs.h <<\_ACEOF | |
3733 | #define HAVE_ALLOCA_H 1 | |
3734 | _ACEOF | |
3735 | ||
3736 | fi | |
3737 | ||
3738 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
3739 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3740 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3742 | else | |
3743 | cat >conftest.$ac_ext <<_ACEOF | |
3744 | /* confdefs.h. */ | |
3745 | _ACEOF | |
3746 | cat confdefs.h >>conftest.$ac_ext | |
3747 | cat >>conftest.$ac_ext <<_ACEOF | |
3748 | /* end confdefs.h. */ | |
3749 | #ifdef __GNUC__ | |
3750 | # define alloca __builtin_alloca | |
3751 | #else | |
3752 | # ifdef _MSC_VER | |
3753 | # include <malloc.h> | |
3754 | # define alloca _alloca | |
3755 | # else | |
3756 | # if HAVE_ALLOCA_H | |
3757 | # include <alloca.h> | |
3758 | # else | |
3759 | # ifdef _AIX | |
3760 | #pragma alloca | |
3761 | # else | |
3762 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3763 | char *alloca (); | |
3764 | # endif | |
3765 | # endif | |
3766 | # endif | |
3767 | # endif | |
3768 | #endif | |
3769 | ||
3770 | int | |
3771 | main () | |
3772 | { | |
3773 | char *p = (char *) alloca (1); | |
3774 | ; | |
3775 | return 0; | |
3776 | } | |
3777 | _ACEOF | |
3778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3780 | (eval $ac_link) 2>conftest.er1 | |
3781 | ac_status=$? | |
3782 | grep -v '^ *+' conftest.er1 >conftest.err | |
3783 | rm -f conftest.er1 | |
3784 | cat conftest.err >&5 | |
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3786 | (exit $ac_status); } && | |
3787 | { ac_try='test -z "$ac_c_werror_flag" | |
3788 | || test ! -s conftest.err' | |
3789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3790 | (eval $ac_try) 2>&5 | |
3791 | ac_status=$? | |
3792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3793 | (exit $ac_status); }; } && | |
3794 | { ac_try='test -s conftest$ac_exeext' | |
3795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3796 | (eval $ac_try) 2>&5 | |
3797 | ac_status=$? | |
3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3799 | (exit $ac_status); }; }; then | |
3800 | ac_cv_func_alloca_works=yes | |
3801 | else | |
3802 | echo "$as_me: failed program was:" >&5 | |
3803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3804 | ||
3805 | ac_cv_func_alloca_works=no | |
3806 | fi | |
3807 | rm -f conftest.err conftest.$ac_objext \ | |
3808 | conftest$ac_exeext conftest.$ac_ext | |
3809 | fi | |
3810 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
3811 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
3812 | ||
3813 | if test $ac_cv_func_alloca_works = yes; then | |
3814 | ||
3815 | cat >>confdefs.h <<\_ACEOF | |
3816 | #define HAVE_ALLOCA 1 | |
3817 | _ACEOF | |
3818 | ||
3819 | else | |
3820 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3821 | # that cause trouble. Some versions do not even contain alloca or | |
3822 | # contain a buggy version. If you still want to use their alloca, | |
3823 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3824 | ||
3825 | ALLOCA=alloca.$ac_objext | |
3826 | ||
3827 | cat >>confdefs.h <<\_ACEOF | |
3828 | #define C_ALLOCA 1 | |
3829 | _ACEOF | |
3830 | ||
3831 | ||
3832 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
3833 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3834 | if test "${ac_cv_os_cray+set}" = set; then | |
3835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3836 | else | |
3837 | cat >conftest.$ac_ext <<_ACEOF | |
3838 | /* confdefs.h. */ | |
3839 | _ACEOF | |
3840 | cat confdefs.h >>conftest.$ac_ext | |
3841 | cat >>conftest.$ac_ext <<_ACEOF | |
3842 | /* end confdefs.h. */ | |
3843 | #if defined(CRAY) && ! defined(CRAY2) | |
3844 | webecray | |
3845 | #else | |
3846 | wenotbecray | |
3847 | #endif | |
3848 | ||
3849 | _ACEOF | |
3850 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3851 | $EGREP "webecray" >/dev/null 2>&1; then | |
3852 | ac_cv_os_cray=yes | |
3853 | else | |
3854 | ac_cv_os_cray=no | |
3855 | fi | |
3856 | rm -f conftest* | |
3857 | ||
3858 | fi | |
3859 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
3860 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
3861 | if test $ac_cv_os_cray = yes; then | |
3862 | for ac_func in _getb67 GETB67 getb67; do | |
3863 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3864 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3865 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3866 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3868 | else | |
3869 | cat >conftest.$ac_ext <<_ACEOF | |
3870 | /* confdefs.h. */ | |
3871 | _ACEOF | |
3872 | cat confdefs.h >>conftest.$ac_ext | |
3873 | cat >>conftest.$ac_ext <<_ACEOF | |
3874 | /* end confdefs.h. */ | |
3875 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3876 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3877 | #define $ac_func innocuous_$ac_func | |
3878 | ||
3879 | /* System header to define __stub macros and hopefully few prototypes, | |
3880 | which can conflict with char $ac_func (); below. | |
3881 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3882 | <limits.h> exists even on freestanding compilers. */ | |
3883 | ||
3884 | #ifdef __STDC__ | |
3885 | # include <limits.h> | |
3886 | #else | |
3887 | # include <assert.h> | |
3888 | #endif | |
3889 | ||
3890 | #undef $ac_func | |
3891 | ||
3892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3893 | #ifdef __cplusplus | |
3894 | extern "C" | |
3895 | { | |
3896 | #endif | |
3897 | /* We use char because int might match the return type of a gcc2 | |
3898 | builtin and then its argument prototype would still apply. */ | |
3899 | char $ac_func (); | |
3900 | /* The GNU C library defines this for functions which it implements | |
3901 | to always fail with ENOSYS. Some functions are actually named | |
3902 | something starting with __ and the normal name is an alias. */ | |
3903 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3904 | choke me | |
3905 | #else | |
3906 | char (*f) () = $ac_func; | |
3907 | #endif | |
3908 | #ifdef __cplusplus | |
3909 | } | |
3910 | #endif | |
3911 | ||
3912 | int | |
3913 | main () | |
3914 | { | |
3915 | return f != $ac_func; | |
3916 | ; | |
3917 | return 0; | |
3918 | } | |
3919 | _ACEOF | |
3920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3922 | (eval $ac_link) 2>conftest.er1 | |
3923 | ac_status=$? | |
3924 | grep -v '^ *+' conftest.er1 >conftest.err | |
3925 | rm -f conftest.er1 | |
3926 | cat conftest.err >&5 | |
3927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3928 | (exit $ac_status); } && | |
3929 | { ac_try='test -z "$ac_c_werror_flag" | |
3930 | || test ! -s conftest.err' | |
3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3932 | (eval $ac_try) 2>&5 | |
3933 | ac_status=$? | |
3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3935 | (exit $ac_status); }; } && | |
3936 | { ac_try='test -s conftest$ac_exeext' | |
3937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3938 | (eval $ac_try) 2>&5 | |
3939 | ac_status=$? | |
3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3941 | (exit $ac_status); }; }; then | |
3942 | eval "$as_ac_var=yes" | |
3943 | else | |
3944 | echo "$as_me: failed program was:" >&5 | |
3945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3946 | ||
3947 | eval "$as_ac_var=no" | |
3948 | fi | |
3949 | rm -f conftest.err conftest.$ac_objext \ | |
3950 | conftest$ac_exeext conftest.$ac_ext | |
3951 | fi | |
3952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3953 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3954 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3955 | ||
3956 | cat >>confdefs.h <<_ACEOF | |
3957 | #define CRAY_STACKSEG_END $ac_func | |
3958 | _ACEOF | |
3959 | ||
3960 | break | |
3961 | fi | |
3962 | ||
3963 | done | |
3964 | fi | |
3965 | ||
3966 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
3967 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3968 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3970 | else | |
3971 | if test "$cross_compiling" = yes; then | |
3972 | ac_cv_c_stack_direction=0 | |
3973 | else | |
3974 | cat >conftest.$ac_ext <<_ACEOF | |
3975 | /* confdefs.h. */ | |
3976 | _ACEOF | |
3977 | cat confdefs.h >>conftest.$ac_ext | |
3978 | cat >>conftest.$ac_ext <<_ACEOF | |
3979 | /* end confdefs.h. */ | |
3980 | int | |
3981 | find_stack_direction () | |
3982 | { | |
3983 | static char *addr = 0; | |
3984 | auto char dummy; | |
3985 | if (addr == 0) | |
3986 | { | |
3987 | addr = &dummy; | |
3988 | return find_stack_direction (); | |
3989 | } | |
3990 | else | |
3991 | return (&dummy > addr) ? 1 : -1; | |
3992 | } | |
3993 | ||
3994 | int | |
3995 | main () | |
3996 | { | |
3997 | exit (find_stack_direction () < 0); | |
3998 | } | |
3999 | _ACEOF | |
4000 | rm -f conftest$ac_exeext | |
4001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4002 | (eval $ac_link) 2>&5 | |
4003 | ac_status=$? | |
4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4007 | (eval $ac_try) 2>&5 | |
4008 | ac_status=$? | |
4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4010 | (exit $ac_status); }; }; then | |
4011 | ac_cv_c_stack_direction=1 | |
4012 | else | |
4013 | echo "$as_me: program exited with status $ac_status" >&5 | |
4014 | echo "$as_me: failed program was:" >&5 | |
4015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4016 | ||
4017 | ( exit $ac_status ) | |
4018 | ac_cv_c_stack_direction=-1 | |
4019 | fi | |
4020 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4021 | fi | |
4022 | fi | |
4023 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
4024 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
4025 | ||
4026 | cat >>confdefs.h <<_ACEOF | |
4027 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4028 | _ACEOF | |
4029 | ||
4030 | ||
4031 | fi | |
4032 | ||
4033 | ||
4034 | ||
4035 | for ac_header in stdlib.h unistd.h | |
4036 | do | |
4037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4039 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4043 | fi | |
4044 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4045 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4046 | else | |
4047 | # Is the header compilable? | |
4048 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4049 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4050 | cat >conftest.$ac_ext <<_ACEOF | |
4051 | /* confdefs.h. */ | |
4052 | _ACEOF | |
4053 | cat confdefs.h >>conftest.$ac_ext | |
4054 | cat >>conftest.$ac_ext <<_ACEOF | |
4055 | /* end confdefs.h. */ | |
4056 | $ac_includes_default | |
4057 | #include <$ac_header> | |
4058 | _ACEOF | |
4059 | rm -f conftest.$ac_objext | |
4060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4061 | (eval $ac_compile) 2>conftest.er1 | |
4062 | ac_status=$? | |
4063 | grep -v '^ *+' conftest.er1 >conftest.err | |
4064 | rm -f conftest.er1 | |
4065 | cat conftest.err >&5 | |
4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4067 | (exit $ac_status); } && | |
4068 | { ac_try='test -z "$ac_c_werror_flag" | |
4069 | || test ! -s conftest.err' | |
4070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4071 | (eval $ac_try) 2>&5 | |
4072 | ac_status=$? | |
4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4074 | (exit $ac_status); }; } && | |
4075 | { ac_try='test -s conftest.$ac_objext' | |
4076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4077 | (eval $ac_try) 2>&5 | |
4078 | ac_status=$? | |
4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4080 | (exit $ac_status); }; }; then | |
4081 | ac_header_compiler=yes | |
4082 | else | |
4083 | echo "$as_me: failed program was:" >&5 | |
4084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4085 | ||
4086 | ac_header_compiler=no | |
4087 | fi | |
4088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4089 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4090 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4091 | ||
4092 | # Is the header present? | |
4093 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4094 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4095 | cat >conftest.$ac_ext <<_ACEOF | |
4096 | /* confdefs.h. */ | |
4097 | _ACEOF | |
4098 | cat confdefs.h >>conftest.$ac_ext | |
4099 | cat >>conftest.$ac_ext <<_ACEOF | |
4100 | /* end confdefs.h. */ | |
4101 | #include <$ac_header> | |
4102 | _ACEOF | |
4103 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4104 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4105 | ac_status=$? | |
4106 | grep -v '^ *+' conftest.er1 >conftest.err | |
4107 | rm -f conftest.er1 | |
4108 | cat conftest.err >&5 | |
4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4110 | (exit $ac_status); } >/dev/null; then | |
4111 | if test -s conftest.err; then | |
4112 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4113 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4114 | else | |
4115 | ac_cpp_err= | |
4116 | fi | |
4117 | else | |
4118 | ac_cpp_err=yes | |
4119 | fi | |
4120 | if test -z "$ac_cpp_err"; then | |
4121 | ac_header_preproc=yes | |
4122 | else | |
4123 | echo "$as_me: failed program was:" >&5 | |
4124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4125 | ||
4126 | ac_header_preproc=no | |
4127 | fi | |
4128 | rm -f conftest.err conftest.$ac_ext | |
4129 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4130 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4131 | ||
4132 | # So? What about this header? | |
4133 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4134 | yes:no: ) | |
4135 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4136 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4137 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4138 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4139 | ac_header_preproc=yes | |
4140 | ;; | |
4141 | no:yes:* ) | |
4142 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4143 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4144 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4145 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4146 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4147 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4148 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4149 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4151 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4152 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4153 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4154 | ( | |
4155 | cat <<\_ASBOX | |
4156 | ## ------------------------------------------ ## | |
4157 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4158 | ## ------------------------------------------ ## | |
4159 | _ASBOX | |
4160 | ) | | |
4161 | sed "s/^/$as_me: WARNING: /" >&2 | |
4162 | ;; | |
4163 | esac | |
4164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4168 | else | |
4169 | eval "$as_ac_Header=\$ac_header_preproc" | |
4170 | fi | |
4171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4172 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4173 | ||
4174 | fi | |
4175 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4176 | cat >>confdefs.h <<_ACEOF | |
4177 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4178 | _ACEOF | |
4179 | ||
4180 | fi | |
4181 | ||
4182 | done | |
4183 | ||
4184 | ||
4185 | for ac_func in getpagesize | |
4186 | do | |
4187 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4188 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4189 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4190 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4192 | else | |
4193 | cat >conftest.$ac_ext <<_ACEOF | |
4194 | /* confdefs.h. */ | |
4195 | _ACEOF | |
4196 | cat confdefs.h >>conftest.$ac_ext | |
4197 | cat >>conftest.$ac_ext <<_ACEOF | |
4198 | /* end confdefs.h. */ | |
4199 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4200 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4201 | #define $ac_func innocuous_$ac_func | |
4202 | ||
4203 | /* System header to define __stub macros and hopefully few prototypes, | |
4204 | which can conflict with char $ac_func (); below. | |
4205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4206 | <limits.h> exists even on freestanding compilers. */ | |
4207 | ||
4208 | #ifdef __STDC__ | |
4209 | # include <limits.h> | |
4210 | #else | |
4211 | # include <assert.h> | |
4212 | #endif | |
4213 | ||
4214 | #undef $ac_func | |
4215 | ||
4216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4217 | #ifdef __cplusplus | |
4218 | extern "C" | |
4219 | { | |
4220 | #endif | |
4221 | /* We use char because int might match the return type of a gcc2 | |
4222 | builtin and then its argument prototype would still apply. */ | |
4223 | char $ac_func (); | |
4224 | /* The GNU C library defines this for functions which it implements | |
4225 | to always fail with ENOSYS. Some functions are actually named | |
4226 | something starting with __ and the normal name is an alias. */ | |
4227 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4228 | choke me | |
4229 | #else | |
4230 | char (*f) () = $ac_func; | |
4231 | #endif | |
4232 | #ifdef __cplusplus | |
4233 | } | |
4234 | #endif | |
4235 | ||
4236 | int | |
4237 | main () | |
4238 | { | |
4239 | return f != $ac_func; | |
4240 | ; | |
4241 | return 0; | |
4242 | } | |
4243 | _ACEOF | |
4244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4246 | (eval $ac_link) 2>conftest.er1 | |
4247 | ac_status=$? | |
4248 | grep -v '^ *+' conftest.er1 >conftest.err | |
4249 | rm -f conftest.er1 | |
4250 | cat conftest.err >&5 | |
4251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4252 | (exit $ac_status); } && | |
4253 | { ac_try='test -z "$ac_c_werror_flag" | |
4254 | || test ! -s conftest.err' | |
4255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4256 | (eval $ac_try) 2>&5 | |
4257 | ac_status=$? | |
4258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4259 | (exit $ac_status); }; } && | |
4260 | { ac_try='test -s conftest$ac_exeext' | |
4261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4262 | (eval $ac_try) 2>&5 | |
4263 | ac_status=$? | |
4264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4265 | (exit $ac_status); }; }; then | |
4266 | eval "$as_ac_var=yes" | |
4267 | else | |
4268 | echo "$as_me: failed program was:" >&5 | |
4269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4270 | ||
4271 | eval "$as_ac_var=no" | |
4272 | fi | |
4273 | rm -f conftest.err conftest.$ac_objext \ | |
4274 | conftest$ac_exeext conftest.$ac_ext | |
4275 | fi | |
4276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4277 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4278 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4279 | cat >>confdefs.h <<_ACEOF | |
4280 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4281 | _ACEOF | |
4282 | ||
4283 | fi | |
4284 | done | |
4285 | ||
4286 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
4287 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4288 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4290 | else | |
4291 | if test "$cross_compiling" = yes; then | |
4292 | ac_cv_func_mmap_fixed_mapped=no | |
4293 | else | |
4294 | cat >conftest.$ac_ext <<_ACEOF | |
4295 | /* confdefs.h. */ | |
4296 | _ACEOF | |
4297 | cat confdefs.h >>conftest.$ac_ext | |
4298 | cat >>conftest.$ac_ext <<_ACEOF | |
4299 | /* end confdefs.h. */ | |
4300 | $ac_includes_default | |
4301 | /* malloc might have been renamed as rpl_malloc. */ | |
4302 | #undef malloc | |
4303 | ||
4304 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4305 | Here is a matrix of mmap possibilities: | |
4306 | mmap private not fixed | |
4307 | mmap private fixed at somewhere currently unmapped | |
4308 | mmap private fixed at somewhere already mapped | |
4309 | mmap shared not fixed | |
4310 | mmap shared fixed at somewhere currently unmapped | |
4311 | mmap shared fixed at somewhere already mapped | |
4312 | For private mappings, we should verify that changes cannot be read() | |
4313 | back from the file, nor mmap's back from the file at a different | |
4314 | address. (There have been systems where private was not correctly | |
4315 | implemented like the infamous i386 svr4.0, and systems where the | |
4316 | VM page cache was not coherent with the file system buffer cache | |
4317 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4318 | For shared mappings, we should conversely verify that changes get | |
4319 | propagated back to all the places they're supposed to be. | |
4320 | ||
4321 | Grep wants private fixed already mapped. | |
4322 | The main things grep needs to know about mmap are: | |
4323 | * does it exist and is it safe to write into the mmap'd area | |
4324 | * how to use it (BSD variants) */ | |
4325 | ||
4326 | #include <fcntl.h> | |
4327 | #include <sys/mman.h> | |
4328 | ||
4329 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
4330 | char *malloc (); | |
4331 | #endif | |
4332 | ||
4333 | /* This mess was copied from the GNU getpagesize.h. */ | |
4334 | #if !HAVE_GETPAGESIZE | |
4335 | /* Assume that all systems that can run configure have sys/param.h. */ | |
4336 | # if !HAVE_SYS_PARAM_H | |
4337 | # define HAVE_SYS_PARAM_H 1 | |
4338 | # endif | |
4339 | ||
4340 | # ifdef _SC_PAGESIZE | |
4341 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4342 | # else /* no _SC_PAGESIZE */ | |
4343 | # if HAVE_SYS_PARAM_H | |
4344 | # include <sys/param.h> | |
4345 | # ifdef EXEC_PAGESIZE | |
4346 | # define getpagesize() EXEC_PAGESIZE | |
4347 | # else /* no EXEC_PAGESIZE */ | |
4348 | # ifdef NBPG | |
4349 | # define getpagesize() NBPG * CLSIZE | |
4350 | # ifndef CLSIZE | |
4351 | # define CLSIZE 1 | |
4352 | # endif /* no CLSIZE */ | |
4353 | # else /* no NBPG */ | |
4354 | # ifdef NBPC | |
4355 | # define getpagesize() NBPC | |
4356 | # else /* no NBPC */ | |
4357 | # ifdef PAGESIZE | |
4358 | # define getpagesize() PAGESIZE | |
4359 | # endif /* PAGESIZE */ | |
4360 | # endif /* no NBPC */ | |
4361 | # endif /* no NBPG */ | |
4362 | # endif /* no EXEC_PAGESIZE */ | |
4363 | # else /* no HAVE_SYS_PARAM_H */ | |
4364 | # define getpagesize() 8192 /* punt totally */ | |
4365 | # endif /* no HAVE_SYS_PARAM_H */ | |
4366 | # endif /* no _SC_PAGESIZE */ | |
4367 | ||
4368 | #endif /* no HAVE_GETPAGESIZE */ | |
4369 | ||
4370 | int | |
4371 | main () | |
4372 | { | |
4373 | char *data, *data2, *data3; | |
4374 | int i, pagesize; | |
4375 | int fd; | |
4376 | ||
4377 | pagesize = getpagesize (); | |
4378 | ||
4379 | /* First, make a file with some known garbage in it. */ | |
4380 | data = (char *) malloc (pagesize); | |
4381 | if (!data) | |
4382 | exit (1); | |
4383 | for (i = 0; i < pagesize; ++i) | |
4384 | *(data + i) = rand (); | |
4385 | umask (0); | |
4386 | fd = creat ("conftest.mmap", 0600); | |
4387 | if (fd < 0) | |
4388 | exit (1); | |
4389 | if (write (fd, data, pagesize) != pagesize) | |
4390 | exit (1); | |
4391 | close (fd); | |
4392 | ||
4393 | /* Next, try to mmap the file at a fixed address which already has | |
4394 | something else allocated at it. If we can, also make sure that | |
4395 | we see the same garbage. */ | |
4396 | fd = open ("conftest.mmap", O_RDWR); | |
4397 | if (fd < 0) | |
4398 | exit (1); | |
4399 | data2 = (char *) malloc (2 * pagesize); | |
4400 | if (!data2) | |
4401 | exit (1); | |
4402 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
4403 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4404 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4405 | exit (1); | |
4406 | for (i = 0; i < pagesize; ++i) | |
4407 | if (*(data + i) != *(data2 + i)) | |
4408 | exit (1); | |
4409 | ||
4410 | /* Finally, make sure that changes to the mapped area do not | |
4411 | percolate back to the file as seen by read(). (This is a bug on | |
4412 | some variants of i386 svr4.0.) */ | |
4413 | for (i = 0; i < pagesize; ++i) | |
4414 | *(data2 + i) = *(data2 + i) + 1; | |
4415 | data3 = (char *) malloc (pagesize); | |
4416 | if (!data3) | |
4417 | exit (1); | |
4418 | if (read (fd, data3, pagesize) != pagesize) | |
4419 | exit (1); | |
4420 | for (i = 0; i < pagesize; ++i) | |
4421 | if (*(data + i) != *(data3 + i)) | |
4422 | exit (1); | |
4423 | close (fd); | |
4424 | exit (0); | |
4425 | } | |
4426 | _ACEOF | |
4427 | rm -f conftest$ac_exeext | |
4428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4429 | (eval $ac_link) 2>&5 | |
4430 | ac_status=$? | |
4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4432 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4434 | (eval $ac_try) 2>&5 | |
4435 | ac_status=$? | |
4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4437 | (exit $ac_status); }; }; then | |
4438 | ac_cv_func_mmap_fixed_mapped=yes | |
4439 | else | |
4440 | echo "$as_me: program exited with status $ac_status" >&5 | |
4441 | echo "$as_me: failed program was:" >&5 | |
4442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4443 | ||
4444 | ( exit $ac_status ) | |
4445 | ac_cv_func_mmap_fixed_mapped=no | |
4446 | fi | |
4447 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4448 | fi | |
4449 | fi | |
4450 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
4451 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
4452 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4453 | ||
4454 | cat >>confdefs.h <<\_ACEOF | |
4455 | #define HAVE_MMAP 1 | |
4456 | _ACEOF | |
4457 | ||
4458 | fi | |
4459 | rm -f conftest.mmap | |
4460 | ||
4461 | ||
4462 | ||
4463 | ||
4464 | ||
4465 | ||
4466 | ||
4467 | ||
4468 | ||
4469 | ||
4470 | ||
4471 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
4472 | unistd.h values.h sys/param.h | |
4473 | do | |
4474 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4475 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4476 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4480 | fi | |
4481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4482 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4483 | else | |
4484 | # Is the header compilable? | |
4485 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4486 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4487 | cat >conftest.$ac_ext <<_ACEOF | |
4488 | /* confdefs.h. */ | |
4489 | _ACEOF | |
4490 | cat confdefs.h >>conftest.$ac_ext | |
4491 | cat >>conftest.$ac_ext <<_ACEOF | |
4492 | /* end confdefs.h. */ | |
4493 | $ac_includes_default | |
4494 | #include <$ac_header> | |
4495 | _ACEOF | |
4496 | rm -f conftest.$ac_objext | |
4497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4498 | (eval $ac_compile) 2>conftest.er1 | |
4499 | ac_status=$? | |
4500 | grep -v '^ *+' conftest.er1 >conftest.err | |
4501 | rm -f conftest.er1 | |
4502 | cat conftest.err >&5 | |
4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4504 | (exit $ac_status); } && | |
4505 | { ac_try='test -z "$ac_c_werror_flag" | |
4506 | || test ! -s conftest.err' | |
4507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4508 | (eval $ac_try) 2>&5 | |
4509 | ac_status=$? | |
4510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4511 | (exit $ac_status); }; } && | |
4512 | { ac_try='test -s conftest.$ac_objext' | |
4513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4514 | (eval $ac_try) 2>&5 | |
4515 | ac_status=$? | |
4516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4517 | (exit $ac_status); }; }; then | |
4518 | ac_header_compiler=yes | |
4519 | else | |
4520 | echo "$as_me: failed program was:" >&5 | |
4521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4522 | ||
4523 | ac_header_compiler=no | |
4524 | fi | |
4525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4526 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4527 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4528 | ||
4529 | # Is the header present? | |
4530 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4531 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4532 | cat >conftest.$ac_ext <<_ACEOF | |
4533 | /* confdefs.h. */ | |
4534 | _ACEOF | |
4535 | cat confdefs.h >>conftest.$ac_ext | |
4536 | cat >>conftest.$ac_ext <<_ACEOF | |
4537 | /* end confdefs.h. */ | |
4538 | #include <$ac_header> | |
4539 | _ACEOF | |
4540 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4541 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4542 | ac_status=$? | |
4543 | grep -v '^ *+' conftest.er1 >conftest.err | |
4544 | rm -f conftest.er1 | |
4545 | cat conftest.err >&5 | |
4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4547 | (exit $ac_status); } >/dev/null; then | |
4548 | if test -s conftest.err; then | |
4549 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4550 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4551 | else | |
4552 | ac_cpp_err= | |
4553 | fi | |
4554 | else | |
4555 | ac_cpp_err=yes | |
4556 | fi | |
4557 | if test -z "$ac_cpp_err"; then | |
4558 | ac_header_preproc=yes | |
4559 | else | |
4560 | echo "$as_me: failed program was:" >&5 | |
4561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4562 | ||
4563 | ac_header_preproc=no | |
4564 | fi | |
4565 | rm -f conftest.err conftest.$ac_ext | |
4566 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4567 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4568 | ||
4569 | # So? What about this header? | |
4570 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4571 | yes:no: ) | |
4572 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4573 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4574 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4575 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4576 | ac_header_preproc=yes | |
4577 | ;; | |
4578 | no:yes:* ) | |
4579 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4580 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4581 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4582 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4583 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4584 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4585 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4586 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4588 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4589 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4590 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4591 | ( | |
4592 | cat <<\_ASBOX | |
4593 | ## ------------------------------------------ ## | |
4594 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4595 | ## ------------------------------------------ ## | |
4596 | _ASBOX | |
4597 | ) | | |
4598 | sed "s/^/$as_me: WARNING: /" >&2 | |
4599 | ;; | |
4600 | esac | |
4601 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4605 | else | |
4606 | eval "$as_ac_Header=\$ac_header_preproc" | |
4607 | fi | |
4608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4609 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4610 | ||
4611 | fi | |
4612 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4613 | cat >>confdefs.h <<_ACEOF | |
4614 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4615 | _ACEOF | |
4616 | ||
4617 | fi | |
4618 | ||
4619 | done | |
4620 | ||
4621 | ||
4622 | ||
4623 | ||
4624 | ||
4625 | ||
4626 | ||
4627 | ||
4628 | ||
4629 | ||
4630 | ||
4631 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
4632 | __argz_count __argz_stringify __argz_next | |
4633 | do | |
4634 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4635 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4636 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4637 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4639 | else | |
4640 | cat >conftest.$ac_ext <<_ACEOF | |
4641 | /* confdefs.h. */ | |
4642 | _ACEOF | |
4643 | cat confdefs.h >>conftest.$ac_ext | |
4644 | cat >>conftest.$ac_ext <<_ACEOF | |
4645 | /* end confdefs.h. */ | |
4646 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4647 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4648 | #define $ac_func innocuous_$ac_func | |
4649 | ||
4650 | /* System header to define __stub macros and hopefully few prototypes, | |
4651 | which can conflict with char $ac_func (); below. | |
4652 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4653 | <limits.h> exists even on freestanding compilers. */ | |
4654 | ||
4655 | #ifdef __STDC__ | |
4656 | # include <limits.h> | |
4657 | #else | |
4658 | # include <assert.h> | |
4659 | #endif | |
4660 | ||
4661 | #undef $ac_func | |
4662 | ||
4663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4664 | #ifdef __cplusplus | |
4665 | extern "C" | |
4666 | { | |
4667 | #endif | |
4668 | /* We use char because int might match the return type of a gcc2 | |
4669 | builtin and then its argument prototype would still apply. */ | |
4670 | char $ac_func (); | |
4671 | /* The GNU C library defines this for functions which it implements | |
4672 | to always fail with ENOSYS. Some functions are actually named | |
4673 | something starting with __ and the normal name is an alias. */ | |
4674 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4675 | choke me | |
4676 | #else | |
4677 | char (*f) () = $ac_func; | |
4678 | #endif | |
4679 | #ifdef __cplusplus | |
4680 | } | |
4681 | #endif | |
4682 | ||
4683 | int | |
4684 | main () | |
4685 | { | |
4686 | return f != $ac_func; | |
4687 | ; | |
4688 | return 0; | |
4689 | } | |
4690 | _ACEOF | |
4691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4693 | (eval $ac_link) 2>conftest.er1 | |
4694 | ac_status=$? | |
4695 | grep -v '^ *+' conftest.er1 >conftest.err | |
4696 | rm -f conftest.er1 | |
4697 | cat conftest.err >&5 | |
4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4699 | (exit $ac_status); } && | |
4700 | { ac_try='test -z "$ac_c_werror_flag" | |
4701 | || test ! -s conftest.err' | |
4702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4703 | (eval $ac_try) 2>&5 | |
4704 | ac_status=$? | |
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4706 | (exit $ac_status); }; } && | |
4707 | { ac_try='test -s conftest$ac_exeext' | |
4708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4709 | (eval $ac_try) 2>&5 | |
4710 | ac_status=$? | |
4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4712 | (exit $ac_status); }; }; then | |
4713 | eval "$as_ac_var=yes" | |
4714 | else | |
4715 | echo "$as_me: failed program was:" >&5 | |
4716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4717 | ||
4718 | eval "$as_ac_var=no" | |
4719 | fi | |
4720 | rm -f conftest.err conftest.$ac_objext \ | |
4721 | conftest$ac_exeext conftest.$ac_ext | |
4722 | fi | |
4723 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4724 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4725 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4726 | cat >>confdefs.h <<_ACEOF | |
4727 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4728 | _ACEOF | |
4729 | ||
4730 | fi | |
4731 | done | |
4732 | ||
4733 | ||
4734 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
4735 | ||
4736 | for ac_func in stpcpy | |
4737 | do | |
4738 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4739 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4740 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4741 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4743 | else | |
4744 | cat >conftest.$ac_ext <<_ACEOF | |
4745 | /* confdefs.h. */ | |
4746 | _ACEOF | |
4747 | cat confdefs.h >>conftest.$ac_ext | |
4748 | cat >>conftest.$ac_ext <<_ACEOF | |
4749 | /* end confdefs.h. */ | |
4750 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4751 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4752 | #define $ac_func innocuous_$ac_func | |
4753 | ||
4754 | /* System header to define __stub macros and hopefully few prototypes, | |
4755 | which can conflict with char $ac_func (); below. | |
4756 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4757 | <limits.h> exists even on freestanding compilers. */ | |
4758 | ||
4759 | #ifdef __STDC__ | |
4760 | # include <limits.h> | |
4761 | #else | |
4762 | # include <assert.h> | |
4763 | #endif | |
4764 | ||
4765 | #undef $ac_func | |
4766 | ||
4767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4768 | #ifdef __cplusplus | |
4769 | extern "C" | |
4770 | { | |
4771 | #endif | |
4772 | /* We use char because int might match the return type of a gcc2 | |
4773 | builtin and then its argument prototype would still apply. */ | |
4774 | char $ac_func (); | |
4775 | /* The GNU C library defines this for functions which it implements | |
4776 | to always fail with ENOSYS. Some functions are actually named | |
4777 | something starting with __ and the normal name is an alias. */ | |
4778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4779 | choke me | |
4780 | #else | |
4781 | char (*f) () = $ac_func; | |
4782 | #endif | |
4783 | #ifdef __cplusplus | |
4784 | } | |
4785 | #endif | |
4786 | ||
4787 | int | |
4788 | main () | |
4789 | { | |
4790 | return f != $ac_func; | |
4791 | ; | |
4792 | return 0; | |
4793 | } | |
4794 | _ACEOF | |
4795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4797 | (eval $ac_link) 2>conftest.er1 | |
4798 | ac_status=$? | |
4799 | grep -v '^ *+' conftest.er1 >conftest.err | |
4800 | rm -f conftest.er1 | |
4801 | cat conftest.err >&5 | |
4802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4803 | (exit $ac_status); } && | |
4804 | { ac_try='test -z "$ac_c_werror_flag" | |
4805 | || test ! -s conftest.err' | |
4806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4807 | (eval $ac_try) 2>&5 | |
4808 | ac_status=$? | |
4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4810 | (exit $ac_status); }; } && | |
4811 | { ac_try='test -s conftest$ac_exeext' | |
4812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4813 | (eval $ac_try) 2>&5 | |
4814 | ac_status=$? | |
4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4816 | (exit $ac_status); }; }; then | |
4817 | eval "$as_ac_var=yes" | |
4818 | else | |
4819 | echo "$as_me: failed program was:" >&5 | |
4820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4821 | ||
4822 | eval "$as_ac_var=no" | |
4823 | fi | |
4824 | rm -f conftest.err conftest.$ac_objext \ | |
4825 | conftest$ac_exeext conftest.$ac_ext | |
4826 | fi | |
4827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4828 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4829 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4830 | cat >>confdefs.h <<_ACEOF | |
4831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4832 | _ACEOF | |
4833 | ||
4834 | fi | |
4835 | done | |
4836 | ||
4837 | fi | |
4838 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
4839 | cat >>confdefs.h <<\_ACEOF | |
4840 | #define HAVE_STPCPY 1 | |
4841 | _ACEOF | |
4842 | ||
4843 | fi | |
4844 | ||
4845 | if test $ac_cv_header_locale_h = yes; then | |
4846 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | |
4847 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4848 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4850 | else | |
4851 | cat >conftest.$ac_ext <<_ACEOF | |
4852 | /* confdefs.h. */ | |
4853 | _ACEOF | |
4854 | cat confdefs.h >>conftest.$ac_ext | |
4855 | cat >>conftest.$ac_ext <<_ACEOF | |
4856 | /* end confdefs.h. */ | |
4857 | #include <locale.h> | |
4858 | int | |
4859 | main () | |
4860 | { | |
4861 | return LC_MESSAGES | |
4862 | ; | |
4863 | return 0; | |
4864 | } | |
4865 | _ACEOF | |
4866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4868 | (eval $ac_link) 2>conftest.er1 | |
4869 | ac_status=$? | |
4870 | grep -v '^ *+' conftest.er1 >conftest.err | |
4871 | rm -f conftest.er1 | |
4872 | cat conftest.err >&5 | |
4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4874 | (exit $ac_status); } && | |
4875 | { ac_try='test -z "$ac_c_werror_flag" | |
4876 | || test ! -s conftest.err' | |
4877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4878 | (eval $ac_try) 2>&5 | |
4879 | ac_status=$? | |
4880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4881 | (exit $ac_status); }; } && | |
4882 | { ac_try='test -s conftest$ac_exeext' | |
4883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4884 | (eval $ac_try) 2>&5 | |
4885 | ac_status=$? | |
4886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4887 | (exit $ac_status); }; }; then | |
4888 | am_cv_val_LC_MESSAGES=yes | |
4889 | else | |
4890 | echo "$as_me: failed program was:" >&5 | |
4891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4892 | ||
4893 | am_cv_val_LC_MESSAGES=no | |
4894 | fi | |
4895 | rm -f conftest.err conftest.$ac_objext \ | |
4896 | conftest$ac_exeext conftest.$ac_ext | |
4897 | fi | |
4898 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | |
4899 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
4900 | if test $am_cv_val_LC_MESSAGES = yes; then | |
4901 | cat >>confdefs.h <<\_ACEOF | |
4902 | #define HAVE_LC_MESSAGES 1 | |
4903 | _ACEOF | |
4904 | ||
4905 | fi | |
4906 | fi | |
4907 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
4908 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
4909 | # Check whether --enable-nls or --disable-nls was given. | |
4910 | if test "${enable_nls+set}" = set; then | |
4911 | enableval="$enable_nls" | |
4912 | USE_NLS=$enableval | |
4913 | else | |
4914 | USE_NLS=yes | |
4915 | fi; | |
4916 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4917 | echo "${ECHO_T}$USE_NLS" >&6 | |
4918 | ||
4919 | ||
4920 | USE_INCLUDED_LIBINTL=no | |
4921 | ||
4922 | if test "$USE_NLS" = "yes"; then | |
4923 | cat >>confdefs.h <<\_ACEOF | |
4924 | #define ENABLE_NLS 1 | |
4925 | _ACEOF | |
4926 | ||
4927 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
4928 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4929 | ||
4930 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
4931 | if test "${with_included_gettext+set}" = set; then | |
4932 | withval="$with_included_gettext" | |
4933 | nls_cv_force_use_gnu_gettext=$withval | |
4934 | else | |
4935 | nls_cv_force_use_gnu_gettext=no | |
4936 | fi; | |
4937 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4938 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
4939 | ||
4940 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4941 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4942 | nls_cv_header_intl= | |
4943 | nls_cv_header_libgt= | |
4944 | CATOBJEXT=NONE | |
4945 | ||
4946 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4947 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4948 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4949 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4951 | fi | |
4952 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4953 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4954 | else | |
4955 | # Is the header compilable? | |
4956 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4957 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4958 | cat >conftest.$ac_ext <<_ACEOF | |
4959 | /* confdefs.h. */ | |
4960 | _ACEOF | |
4961 | cat confdefs.h >>conftest.$ac_ext | |
4962 | cat >>conftest.$ac_ext <<_ACEOF | |
4963 | /* end confdefs.h. */ | |
4964 | $ac_includes_default | |
4965 | #include <libintl.h> | |
4966 | _ACEOF | |
4967 | rm -f conftest.$ac_objext | |
4968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4969 | (eval $ac_compile) 2>conftest.er1 | |
4970 | ac_status=$? | |
4971 | grep -v '^ *+' conftest.er1 >conftest.err | |
4972 | rm -f conftest.er1 | |
4973 | cat conftest.err >&5 | |
4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4975 | (exit $ac_status); } && | |
4976 | { ac_try='test -z "$ac_c_werror_flag" | |
4977 | || test ! -s conftest.err' | |
4978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4979 | (eval $ac_try) 2>&5 | |
4980 | ac_status=$? | |
4981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4982 | (exit $ac_status); }; } && | |
4983 | { ac_try='test -s conftest.$ac_objext' | |
4984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4985 | (eval $ac_try) 2>&5 | |
4986 | ac_status=$? | |
4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4988 | (exit $ac_status); }; }; then | |
4989 | ac_header_compiler=yes | |
4990 | else | |
4991 | echo "$as_me: failed program was:" >&5 | |
4992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4993 | ||
4994 | ac_header_compiler=no | |
4995 | fi | |
4996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4998 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4999 | ||
5000 | # Is the header present? | |
5001 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
5002 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
5003 | cat >conftest.$ac_ext <<_ACEOF | |
5004 | /* confdefs.h. */ | |
5005 | _ACEOF | |
5006 | cat confdefs.h >>conftest.$ac_ext | |
5007 | cat >>conftest.$ac_ext <<_ACEOF | |
5008 | /* end confdefs.h. */ | |
5009 | #include <libintl.h> | |
5010 | _ACEOF | |
5011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5013 | ac_status=$? | |
5014 | grep -v '^ *+' conftest.er1 >conftest.err | |
5015 | rm -f conftest.er1 | |
5016 | cat conftest.err >&5 | |
5017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5018 | (exit $ac_status); } >/dev/null; then | |
5019 | if test -s conftest.err; then | |
5020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5022 | else | |
5023 | ac_cpp_err= | |
5024 | fi | |
5025 | else | |
5026 | ac_cpp_err=yes | |
5027 | fi | |
5028 | if test -z "$ac_cpp_err"; then | |
5029 | ac_header_preproc=yes | |
5030 | else | |
5031 | echo "$as_me: failed program was:" >&5 | |
5032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5033 | ||
5034 | ac_header_preproc=no | |
5035 | fi | |
5036 | rm -f conftest.err conftest.$ac_ext | |
5037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5038 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5039 | ||
5040 | # So? What about this header? | |
5041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5042 | yes:no: ) | |
5043 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5044 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5045 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
5046 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
5047 | ac_header_preproc=yes | |
5048 | ;; | |
5049 | no:yes:* ) | |
5050 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
5051 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
5052 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
5053 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
5054 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
5055 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
5056 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5057 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5058 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
5059 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
5060 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
5061 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
5062 | ( | |
5063 | cat <<\_ASBOX | |
5064 | ## ------------------------------------------ ## | |
5065 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5066 | ## ------------------------------------------ ## | |
5067 | _ASBOX | |
5068 | ) | | |
5069 | sed "s/^/$as_me: WARNING: /" >&2 | |
5070 | ;; | |
5071 | esac | |
5072 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
5073 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
5074 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5076 | else | |
5077 | ac_cv_header_libintl_h=$ac_header_preproc | |
5078 | fi | |
5079 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
5080 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
5081 | ||
5082 | fi | |
5083 | if test $ac_cv_header_libintl_h = yes; then | |
5084 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
5085 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
5086 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
5087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5088 | else | |
5089 | cat >conftest.$ac_ext <<_ACEOF | |
5090 | /* confdefs.h. */ | |
5091 | _ACEOF | |
5092 | cat confdefs.h >>conftest.$ac_ext | |
5093 | cat >>conftest.$ac_ext <<_ACEOF | |
5094 | /* end confdefs.h. */ | |
5095 | #include <libintl.h> | |
5096 | int | |
5097 | main () | |
5098 | { | |
5099 | return (int) gettext ("") | |
5100 | ; | |
5101 | return 0; | |
5102 | } | |
5103 | _ACEOF | |
5104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5106 | (eval $ac_link) 2>conftest.er1 | |
5107 | ac_status=$? | |
5108 | grep -v '^ *+' conftest.er1 >conftest.err | |
5109 | rm -f conftest.er1 | |
5110 | cat conftest.err >&5 | |
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5112 | (exit $ac_status); } && | |
5113 | { ac_try='test -z "$ac_c_werror_flag" | |
5114 | || test ! -s conftest.err' | |
5115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5116 | (eval $ac_try) 2>&5 | |
5117 | ac_status=$? | |
5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5119 | (exit $ac_status); }; } && | |
5120 | { ac_try='test -s conftest$ac_exeext' | |
5121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5122 | (eval $ac_try) 2>&5 | |
5123 | ac_status=$? | |
5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5125 | (exit $ac_status); }; }; then | |
5126 | gt_cv_func_gettext_libc=yes | |
5127 | else | |
5128 | echo "$as_me: failed program was:" >&5 | |
5129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5130 | ||
5131 | gt_cv_func_gettext_libc=no | |
5132 | fi | |
5133 | rm -f conftest.err conftest.$ac_objext \ | |
5134 | conftest$ac_exeext conftest.$ac_ext | |
5135 | fi | |
5136 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 | |
5137 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
5138 | ||
5139 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5140 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 | |
5141 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
5142 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
5143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5144 | else | |
5145 | ac_check_lib_save_LIBS=$LIBS | |
5146 | LIBS="-lintl $LIBS" | |
5147 | cat >conftest.$ac_ext <<_ACEOF | |
5148 | /* confdefs.h. */ | |
5149 | _ACEOF | |
5150 | cat confdefs.h >>conftest.$ac_ext | |
5151 | cat >>conftest.$ac_ext <<_ACEOF | |
5152 | /* end confdefs.h. */ | |
5153 | ||
5154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5155 | #ifdef __cplusplus | |
5156 | extern "C" | |
5157 | #endif | |
5158 | /* We use char because int might match the return type of a gcc2 | |
5159 | builtin and then its argument prototype would still apply. */ | |
5160 | char bindtextdomain (); | |
5161 | int | |
5162 | main () | |
5163 | { | |
5164 | bindtextdomain (); | |
5165 | ; | |
5166 | return 0; | |
5167 | } | |
5168 | _ACEOF | |
5169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5171 | (eval $ac_link) 2>conftest.er1 | |
5172 | ac_status=$? | |
5173 | grep -v '^ *+' conftest.er1 >conftest.err | |
5174 | rm -f conftest.er1 | |
5175 | cat conftest.err >&5 | |
5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5177 | (exit $ac_status); } && | |
5178 | { ac_try='test -z "$ac_c_werror_flag" | |
5179 | || test ! -s conftest.err' | |
5180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5181 | (eval $ac_try) 2>&5 | |
5182 | ac_status=$? | |
5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5184 | (exit $ac_status); }; } && | |
5185 | { ac_try='test -s conftest$ac_exeext' | |
5186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5187 | (eval $ac_try) 2>&5 | |
5188 | ac_status=$? | |
5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5190 | (exit $ac_status); }; }; then | |
5191 | ac_cv_lib_intl_bindtextdomain=yes | |
5192 | else | |
5193 | echo "$as_me: failed program was:" >&5 | |
5194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5195 | ||
5196 | ac_cv_lib_intl_bindtextdomain=no | |
5197 | fi | |
5198 | rm -f conftest.err conftest.$ac_objext \ | |
5199 | conftest$ac_exeext conftest.$ac_ext | |
5200 | LIBS=$ac_check_lib_save_LIBS | |
5201 | fi | |
5202 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5203 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5204 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5205 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5206 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5207 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5209 | else | |
5210 | cat >conftest.$ac_ext <<_ACEOF | |
5211 | /* confdefs.h. */ | |
5212 | _ACEOF | |
5213 | cat confdefs.h >>conftest.$ac_ext | |
5214 | cat >>conftest.$ac_ext <<_ACEOF | |
5215 | /* end confdefs.h. */ | |
5216 | ||
5217 | int | |
5218 | main () | |
5219 | { | |
5220 | return (int) gettext ("") | |
5221 | ; | |
5222 | return 0; | |
5223 | } | |
5224 | _ACEOF | |
5225 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5227 | (eval $ac_link) 2>conftest.er1 | |
5228 | ac_status=$? | |
5229 | grep -v '^ *+' conftest.er1 >conftest.err | |
5230 | rm -f conftest.er1 | |
5231 | cat conftest.err >&5 | |
5232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5233 | (exit $ac_status); } && | |
5234 | { ac_try='test -z "$ac_c_werror_flag" | |
5235 | || test ! -s conftest.err' | |
5236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5237 | (eval $ac_try) 2>&5 | |
5238 | ac_status=$? | |
5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5240 | (exit $ac_status); }; } && | |
5241 | { ac_try='test -s conftest$ac_exeext' | |
5242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5243 | (eval $ac_try) 2>&5 | |
5244 | ac_status=$? | |
5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5246 | (exit $ac_status); }; }; then | |
5247 | gt_cv_func_gettext_libintl=yes | |
5248 | else | |
5249 | echo "$as_me: failed program was:" >&5 | |
5250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5251 | ||
5252 | gt_cv_func_gettext_libintl=no | |
5253 | fi | |
5254 | rm -f conftest.err conftest.$ac_objext \ | |
5255 | conftest$ac_exeext conftest.$ac_ext | |
5256 | fi | |
5257 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 | |
5258 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
5259 | fi | |
5260 | ||
5261 | fi | |
5262 | ||
5263 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5264 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5265 | cat >>confdefs.h <<\_ACEOF | |
5266 | #define HAVE_GETTEXT 1 | |
5267 | _ACEOF | |
5268 | ||
5269 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5270 | set dummy msgfmt; ac_word=$2 | |
5271 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5273 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5275 | else | |
5276 | case "$MSGFMT" in | |
5277 | /*) | |
5278 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5279 | ;; | |
5280 | *) | |
5281 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5282 | for ac_dir in $PATH; do | |
5283 | test -z "$ac_dir" && ac_dir=. | |
5284 | if test -f $ac_dir/$ac_word; then | |
5285 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5286 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5287 | break | |
5288 | fi | |
5289 | fi | |
5290 | done | |
5291 | IFS="$ac_save_ifs" | |
5292 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5293 | ;; | |
5294 | esac | |
5295 | fi | |
5296 | MSGFMT="$ac_cv_path_MSGFMT" | |
5297 | if test -n "$MSGFMT"; then | |
5298 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5299 | echo "${ECHO_T}$MSGFMT" >&6 | |
5300 | else | |
5301 | echo "$as_me:$LINENO: result: no" >&5 | |
5302 | echo "${ECHO_T}no" >&6 | |
5303 | fi | |
5304 | if test "$MSGFMT" != "no"; then | |
5305 | ||
5306 | for ac_func in dcgettext | |
5307 | do | |
5308 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5309 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5310 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5311 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5313 | else | |
5314 | cat >conftest.$ac_ext <<_ACEOF | |
5315 | /* confdefs.h. */ | |
5316 | _ACEOF | |
5317 | cat confdefs.h >>conftest.$ac_ext | |
5318 | cat >>conftest.$ac_ext <<_ACEOF | |
5319 | /* end confdefs.h. */ | |
5320 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5322 | #define $ac_func innocuous_$ac_func | |
5323 | ||
5324 | /* System header to define __stub macros and hopefully few prototypes, | |
5325 | which can conflict with char $ac_func (); below. | |
5326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5327 | <limits.h> exists even on freestanding compilers. */ | |
5328 | ||
5329 | #ifdef __STDC__ | |
5330 | # include <limits.h> | |
5331 | #else | |
5332 | # include <assert.h> | |
5333 | #endif | |
5334 | ||
5335 | #undef $ac_func | |
5336 | ||
5337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5338 | #ifdef __cplusplus | |
5339 | extern "C" | |
5340 | { | |
5341 | #endif | |
5342 | /* We use char because int might match the return type of a gcc2 | |
5343 | builtin and then its argument prototype would still apply. */ | |
5344 | char $ac_func (); | |
5345 | /* The GNU C library defines this for functions which it implements | |
5346 | to always fail with ENOSYS. Some functions are actually named | |
5347 | something starting with __ and the normal name is an alias. */ | |
5348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5349 | choke me | |
5350 | #else | |
5351 | char (*f) () = $ac_func; | |
5352 | #endif | |
5353 | #ifdef __cplusplus | |
5354 | } | |
5355 | #endif | |
5356 | ||
5357 | int | |
5358 | main () | |
5359 | { | |
5360 | return f != $ac_func; | |
5361 | ; | |
5362 | return 0; | |
5363 | } | |
5364 | _ACEOF | |
5365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5367 | (eval $ac_link) 2>conftest.er1 | |
5368 | ac_status=$? | |
5369 | grep -v '^ *+' conftest.er1 >conftest.err | |
5370 | rm -f conftest.er1 | |
5371 | cat conftest.err >&5 | |
5372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5373 | (exit $ac_status); } && | |
5374 | { ac_try='test -z "$ac_c_werror_flag" | |
5375 | || test ! -s conftest.err' | |
5376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5377 | (eval $ac_try) 2>&5 | |
5378 | ac_status=$? | |
5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5380 | (exit $ac_status); }; } && | |
5381 | { ac_try='test -s conftest$ac_exeext' | |
5382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5383 | (eval $ac_try) 2>&5 | |
5384 | ac_status=$? | |
5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5386 | (exit $ac_status); }; }; then | |
5387 | eval "$as_ac_var=yes" | |
5388 | else | |
5389 | echo "$as_me: failed program was:" >&5 | |
5390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5391 | ||
5392 | eval "$as_ac_var=no" | |
5393 | fi | |
5394 | rm -f conftest.err conftest.$ac_objext \ | |
5395 | conftest$ac_exeext conftest.$ac_ext | |
5396 | fi | |
5397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5398 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5399 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5400 | cat >>confdefs.h <<_ACEOF | |
5401 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5402 | _ACEOF | |
5403 | ||
5404 | fi | |
5405 | done | |
5406 | ||
5407 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5408 | set dummy gmsgfmt; ac_word=$2 | |
5409 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5410 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5411 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5413 | else | |
5414 | case $GMSGFMT in | |
5415 | [\\/]* | ?:[\\/]*) | |
5416 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5417 | ;; | |
5418 | *) | |
5419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5420 | for as_dir in $PATH | |
5421 | do | |
5422 | IFS=$as_save_IFS | |
5423 | test -z "$as_dir" && as_dir=. | |
5424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5425 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5426 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5428 | break 2 | |
5429 | fi | |
5430 | done | |
5431 | done | |
5432 | ||
5433 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5434 | ;; | |
5435 | esac | |
5436 | fi | |
5437 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5438 | ||
5439 | if test -n "$GMSGFMT"; then | |
5440 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5441 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5442 | else | |
5443 | echo "$as_me:$LINENO: result: no" >&5 | |
5444 | echo "${ECHO_T}no" >&6 | |
5445 | fi | |
5446 | ||
5447 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5448 | set dummy xgettext; ac_word=$2 | |
5449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5451 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5453 | else | |
5454 | case "$XGETTEXT" in | |
5455 | /*) | |
5456 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5457 | ;; | |
5458 | *) | |
5459 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5460 | for ac_dir in $PATH; do | |
5461 | test -z "$ac_dir" && ac_dir=. | |
5462 | if test -f $ac_dir/$ac_word; then | |
5463 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5464 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5465 | break | |
5466 | fi | |
5467 | fi | |
5468 | done | |
5469 | IFS="$ac_save_ifs" | |
5470 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5471 | ;; | |
5472 | esac | |
5473 | fi | |
5474 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5475 | if test -n "$XGETTEXT"; then | |
5476 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5477 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5478 | else | |
5479 | echo "$as_me:$LINENO: result: no" >&5 | |
5480 | echo "${ECHO_T}no" >&6 | |
5481 | fi | |
5482 | ||
5483 | cat >conftest.$ac_ext <<_ACEOF | |
5484 | /* confdefs.h. */ | |
5485 | _ACEOF | |
5486 | cat confdefs.h >>conftest.$ac_ext | |
5487 | cat >>conftest.$ac_ext <<_ACEOF | |
5488 | /* end confdefs.h. */ | |
5489 | ||
5490 | int | |
5491 | main () | |
5492 | { | |
5493 | extern int _nl_msg_cat_cntr; | |
5494 | return _nl_msg_cat_cntr | |
5495 | ; | |
5496 | return 0; | |
5497 | } | |
5498 | _ACEOF | |
5499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5501 | (eval $ac_link) 2>conftest.er1 | |
5502 | ac_status=$? | |
5503 | grep -v '^ *+' conftest.er1 >conftest.err | |
5504 | rm -f conftest.er1 | |
5505 | cat conftest.err >&5 | |
5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5507 | (exit $ac_status); } && | |
5508 | { ac_try='test -z "$ac_c_werror_flag" | |
5509 | || test ! -s conftest.err' | |
5510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5511 | (eval $ac_try) 2>&5 | |
5512 | ac_status=$? | |
5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5514 | (exit $ac_status); }; } && | |
5515 | { ac_try='test -s conftest$ac_exeext' | |
5516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5517 | (eval $ac_try) 2>&5 | |
5518 | ac_status=$? | |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5520 | (exit $ac_status); }; }; then | |
5521 | CATOBJEXT=.gmo | |
5522 | DATADIRNAME=share | |
5523 | else | |
5524 | echo "$as_me: failed program was:" >&5 | |
5525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5526 | ||
5527 | CATOBJEXT=.mo | |
5528 | DATADIRNAME=lib | |
5529 | fi | |
5530 | rm -f conftest.err conftest.$ac_objext \ | |
5531 | conftest$ac_exeext conftest.$ac_ext | |
5532 | INSTOBJEXT=.mo | |
5533 | fi | |
5534 | fi | |
5535 | ||
5536 | fi | |
5537 | ||
5538 | ||
5539 | ||
5540 | ||
5541 | if test "$CATOBJEXT" = "NONE"; then | |
5542 | nls_cv_use_gnu_gettext=yes | |
5543 | fi | |
5544 | fi | |
5545 | ||
5546 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5547 | INTLOBJS="\$(GETTOBJS)" | |
5548 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5549 | set dummy msgfmt; ac_word=$2 | |
5550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5552 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5554 | else | |
5555 | case "$MSGFMT" in | |
5556 | /*) | |
5557 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5558 | ;; | |
5559 | *) | |
5560 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5561 | for ac_dir in $PATH; do | |
5562 | test -z "$ac_dir" && ac_dir=. | |
5563 | if test -f $ac_dir/$ac_word; then | |
5564 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5565 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5566 | break | |
5567 | fi | |
5568 | fi | |
5569 | done | |
5570 | IFS="$ac_save_ifs" | |
5571 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5572 | ;; | |
5573 | esac | |
5574 | fi | |
5575 | MSGFMT="$ac_cv_path_MSGFMT" | |
5576 | if test -n "$MSGFMT"; then | |
5577 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5578 | echo "${ECHO_T}$MSGFMT" >&6 | |
5579 | else | |
5580 | echo "$as_me:$LINENO: result: no" >&5 | |
5581 | echo "${ECHO_T}no" >&6 | |
5582 | fi | |
5583 | ||
5584 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5585 | set dummy gmsgfmt; ac_word=$2 | |
5586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5588 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5590 | else | |
5591 | case $GMSGFMT in | |
5592 | [\\/]* | ?:[\\/]*) | |
5593 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5594 | ;; | |
5595 | *) | |
5596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5597 | for as_dir in $PATH | |
5598 | do | |
5599 | IFS=$as_save_IFS | |
5600 | test -z "$as_dir" && as_dir=. | |
5601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5603 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5605 | break 2 | |
5606 | fi | |
5607 | done | |
5608 | done | |
5609 | ||
5610 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5611 | ;; | |
5612 | esac | |
5613 | fi | |
5614 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5615 | ||
5616 | if test -n "$GMSGFMT"; then | |
5617 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5618 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5619 | else | |
5620 | echo "$as_me:$LINENO: result: no" >&5 | |
5621 | echo "${ECHO_T}no" >&6 | |
5622 | fi | |
5623 | ||
5624 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5625 | set dummy xgettext; ac_word=$2 | |
5626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5628 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5630 | else | |
5631 | case "$XGETTEXT" in | |
5632 | /*) | |
5633 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5634 | ;; | |
5635 | *) | |
5636 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5637 | for ac_dir in $PATH; do | |
5638 | test -z "$ac_dir" && ac_dir=. | |
5639 | if test -f $ac_dir/$ac_word; then | |
5640 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5641 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5642 | break | |
5643 | fi | |
5644 | fi | |
5645 | done | |
5646 | IFS="$ac_save_ifs" | |
5647 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5648 | ;; | |
5649 | esac | |
5650 | fi | |
5651 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5652 | if test -n "$XGETTEXT"; then | |
5653 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5654 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5655 | else | |
5656 | echo "$as_me:$LINENO: result: no" >&5 | |
5657 | echo "${ECHO_T}no" >&6 | |
5658 | fi | |
5659 | ||
5660 | ||
5661 | USE_INCLUDED_LIBINTL=yes | |
5662 | CATOBJEXT=.gmo | |
5663 | INSTOBJEXT=.mo | |
5664 | DATADIRNAME=share | |
5665 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5666 | INTLLIBS=$INTLDEPS | |
5667 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5668 | nls_cv_header_intl=libintl.h | |
5669 | nls_cv_header_libgt=libgettext.h | |
5670 | fi | |
5671 | ||
5672 | if test "$XGETTEXT" != ":"; then | |
5673 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5674 | : ; | |
5675 | else | |
5676 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 | |
5677 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
5678 | XGETTEXT=":" | |
5679 | fi | |
5680 | fi | |
5681 | ||
5682 | # We need to process the po/ directory. | |
5683 | POSUB=po | |
5684 | else | |
5685 | DATADIRNAME=share | |
5686 | nls_cv_header_intl=libintl.h | |
5687 | nls_cv_header_libgt=libgettext.h | |
5688 | fi | |
5689 | ||
5690 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5691 | # because some of the sources are only built for this goal. | |
5692 | if test "$PACKAGE" = gettext; then | |
5693 | USE_NLS=yes | |
5694 | USE_INCLUDED_LIBINTL=yes | |
5695 | fi | |
5696 | ||
5697 | for lang in $ALL_LINGUAS; do | |
5698 | GMOFILES="$GMOFILES $lang.gmo" | |
5699 | POFILES="$POFILES $lang.po" | |
5700 | done | |
5701 | ||
5702 | ||
5703 | ||
5704 | ||
5705 | ||
5706 | ||
5707 | ||
5708 | ||
5709 | ||
5710 | ||
5711 | ||
5712 | ||
5713 | ||
5714 | ||
5715 | if test "x$CATOBJEXT" != "x"; then | |
5716 | if test "x$ALL_LINGUAS" = "x"; then | |
5717 | LINGUAS= | |
5718 | else | |
5719 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5720 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5721 | NEW_LINGUAS= | |
5722 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5723 | case "$ALL_LINGUAS" in | |
5724 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5725 | esac | |
5726 | done | |
5727 | LINGUAS=$NEW_LINGUAS | |
5728 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5729 | echo "${ECHO_T}$LINGUAS" >&6 | |
5730 | fi | |
5731 | ||
5732 | if test -n "$LINGUAS"; then | |
5733 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5734 | fi | |
5735 | fi | |
5736 | ||
5737 | if test $ac_cv_header_locale_h = yes; then | |
5738 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5739 | else | |
5740 | INCLUDE_LOCALE_H="\ | |
5741 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5742 | fi | |
5743 | ||
5744 | ||
5745 | if test -f $srcdir/po2tbl.sed.in; then | |
5746 | if test "$CATOBJEXT" = ".cat"; then | |
5747 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5748 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5749 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5750 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5752 | fi | |
5753 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5754 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5755 | else | |
5756 | # Is the header compilable? | |
5757 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5758 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5759 | cat >conftest.$ac_ext <<_ACEOF | |
5760 | /* confdefs.h. */ | |
5761 | _ACEOF | |
5762 | cat confdefs.h >>conftest.$ac_ext | |
5763 | cat >>conftest.$ac_ext <<_ACEOF | |
5764 | /* end confdefs.h. */ | |
5765 | $ac_includes_default | |
5766 | #include <linux/version.h> | |
5767 | _ACEOF | |
5768 | rm -f conftest.$ac_objext | |
5769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5770 | (eval $ac_compile) 2>conftest.er1 | |
5771 | ac_status=$? | |
5772 | grep -v '^ *+' conftest.er1 >conftest.err | |
5773 | rm -f conftest.er1 | |
5774 | cat conftest.err >&5 | |
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5776 | (exit $ac_status); } && | |
5777 | { ac_try='test -z "$ac_c_werror_flag" | |
5778 | || test ! -s conftest.err' | |
5779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5780 | (eval $ac_try) 2>&5 | |
5781 | ac_status=$? | |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5783 | (exit $ac_status); }; } && | |
5784 | { ac_try='test -s conftest.$ac_objext' | |
5785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5786 | (eval $ac_try) 2>&5 | |
5787 | ac_status=$? | |
5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5789 | (exit $ac_status); }; }; then | |
5790 | ac_header_compiler=yes | |
5791 | else | |
5792 | echo "$as_me: failed program was:" >&5 | |
5793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5794 | ||
5795 | ac_header_compiler=no | |
5796 | fi | |
5797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5798 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5799 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5800 | ||
5801 | # Is the header present? | |
5802 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5803 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5804 | cat >conftest.$ac_ext <<_ACEOF | |
5805 | /* confdefs.h. */ | |
5806 | _ACEOF | |
5807 | cat confdefs.h >>conftest.$ac_ext | |
5808 | cat >>conftest.$ac_ext <<_ACEOF | |
5809 | /* end confdefs.h. */ | |
5810 | #include <linux/version.h> | |
5811 | _ACEOF | |
5812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5814 | ac_status=$? | |
5815 | grep -v '^ *+' conftest.er1 >conftest.err | |
5816 | rm -f conftest.er1 | |
5817 | cat conftest.err >&5 | |
5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5819 | (exit $ac_status); } >/dev/null; then | |
5820 | if test -s conftest.err; then | |
5821 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5822 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5823 | else | |
5824 | ac_cpp_err= | |
5825 | fi | |
5826 | else | |
5827 | ac_cpp_err=yes | |
5828 | fi | |
5829 | if test -z "$ac_cpp_err"; then | |
5830 | ac_header_preproc=yes | |
5831 | else | |
5832 | echo "$as_me: failed program was:" >&5 | |
5833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5834 | ||
5835 | ac_header_preproc=no | |
5836 | fi | |
5837 | rm -f conftest.err conftest.$ac_ext | |
5838 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5839 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5840 | ||
5841 | # So? What about this header? | |
5842 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5843 | yes:no: ) | |
5844 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5845 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5846 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5847 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5848 | ac_header_preproc=yes | |
5849 | ;; | |
5850 | no:yes:* ) | |
5851 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5852 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5853 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5854 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5855 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5856 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5857 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5858 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5859 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5860 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5861 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5862 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5863 | ( | |
5864 | cat <<\_ASBOX | |
5865 | ## ------------------------------------------ ## | |
5866 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5867 | ## ------------------------------------------ ## | |
5868 | _ASBOX | |
5869 | ) | | |
5870 | sed "s/^/$as_me: WARNING: /" >&2 | |
5871 | ;; | |
5872 | esac | |
5873 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5874 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5875 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5877 | else | |
5878 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5879 | fi | |
5880 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5881 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5882 | ||
5883 | fi | |
5884 | if test $ac_cv_header_linux_version_h = yes; then | |
5885 | msgformat=linux | |
5886 | else | |
5887 | msgformat=xopen | |
5888 | fi | |
5889 | ||
5890 | ||
5891 | ||
5892 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
5893 | fi | |
5894 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5895 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5896 | fi | |
5897 | ||
5898 | if test "$PACKAGE" = "gettext"; then | |
5899 | GT_NO="#NO#" | |
5900 | GT_YES= | |
5901 | else | |
5902 | GT_NO= | |
5903 | GT_YES="#YES#" | |
5904 | fi | |
5905 | ||
5906 | ||
5907 | ||
5908 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
f0569246 | 5909 | |
b7026657 | 5910 | |
35695fd6 | 5911 | l= |
b7026657 | 5912 | |
b7026657 | 5913 | |
35695fd6 AC |
5914 | if test -d $srcdir/po; then |
5915 | test -d po || mkdir po | |
5916 | if test "x$srcdir" != "x."; then | |
5917 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5918 | posrcprefix="$srcdir/" | |
5919 | else | |
5920 | posrcprefix="../$srcdir/" | |
5921 | fi | |
5922 | else | |
5923 | posrcprefix="../" | |
5924 | fi | |
5925 | rm -f po/POTFILES | |
5926 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5927 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5928 | fi | |
b7026657 | 5929 | |
c906108c | 5930 | |
35695fd6 AC |
5931 | # Check for common headers. |
5932 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
5933 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
b7026657 AC |
5934 | |
5935 | ||
5936 | ||
5937 | ||
5938 | ||
5939 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
c906108c | 5940 | do |
b7026657 AC |
5941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5947 | fi | |
5948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5950 | else | |
5951 | # Is the header compilable? | |
5952 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5953 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5954 | cat >conftest.$ac_ext <<_ACEOF | |
5955 | /* confdefs.h. */ | |
5956 | _ACEOF | |
5957 | cat confdefs.h >>conftest.$ac_ext | |
5958 | cat >>conftest.$ac_ext <<_ACEOF | |
5959 | /* end confdefs.h. */ | |
5960 | $ac_includes_default | |
5961 | #include <$ac_header> | |
5962 | _ACEOF | |
5963 | rm -f conftest.$ac_objext | |
5964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5965 | (eval $ac_compile) 2>conftest.er1 | |
5966 | ac_status=$? | |
5967 | grep -v '^ *+' conftest.er1 >conftest.err | |
5968 | rm -f conftest.er1 | |
5969 | cat conftest.err >&5 | |
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5971 | (exit $ac_status); } && | |
5972 | { ac_try='test -z "$ac_c_werror_flag" | |
5973 | || test ! -s conftest.err' | |
5974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5975 | (eval $ac_try) 2>&5 | |
5976 | ac_status=$? | |
5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5978 | (exit $ac_status); }; } && | |
5979 | { ac_try='test -s conftest.$ac_objext' | |
5980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5981 | (eval $ac_try) 2>&5 | |
5982 | ac_status=$? | |
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5984 | (exit $ac_status); }; }; then | |
5985 | ac_header_compiler=yes | |
5986 | else | |
5987 | echo "$as_me: failed program was:" >&5 | |
5988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5989 | ||
5990 | ac_header_compiler=no | |
5991 | fi | |
5992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5993 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5994 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5995 | ||
5996 | # Is the header present? | |
5997 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5998 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5999 | cat >conftest.$ac_ext <<_ACEOF | |
6000 | /* confdefs.h. */ | |
6001 | _ACEOF | |
6002 | cat confdefs.h >>conftest.$ac_ext | |
6003 | cat >>conftest.$ac_ext <<_ACEOF | |
6004 | /* end confdefs.h. */ | |
6005 | #include <$ac_header> | |
6006 | _ACEOF | |
6007 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6008 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6009 | ac_status=$? | |
6010 | grep -v '^ *+' conftest.er1 >conftest.err | |
6011 | rm -f conftest.er1 | |
6012 | cat conftest.err >&5 | |
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6014 | (exit $ac_status); } >/dev/null; then | |
6015 | if test -s conftest.err; then | |
6016 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6017 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6018 | else | |
6019 | ac_cpp_err= | |
6020 | fi | |
6021 | else | |
6022 | ac_cpp_err=yes | |
c906108c | 6023 | fi |
b7026657 AC |
6024 | if test -z "$ac_cpp_err"; then |
6025 | ac_header_preproc=yes | |
6026 | else | |
6027 | echo "$as_me: failed program was:" >&5 | |
6028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6029 | ||
6030 | ac_header_preproc=no | |
c906108c | 6031 | fi |
b7026657 AC |
6032 | rm -f conftest.err conftest.$ac_ext |
6033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6034 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6035 | ||
6036 | # So? What about this header? | |
6037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6038 | yes:no: ) | |
6039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6042 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6043 | ac_header_preproc=yes | |
6044 | ;; | |
6045 | no:yes:* ) | |
6046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6050 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6051 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6052 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6053 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6056 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6057 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6058 | ( | |
6059 | cat <<\_ASBOX | |
6060 | ## ------------------------------------------ ## | |
6061 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6062 | ## ------------------------------------------ ## | |
6063 | _ASBOX | |
6064 | ) | | |
6065 | sed "s/^/$as_me: WARNING: /" >&2 | |
6066 | ;; | |
6067 | esac | |
6068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6072 | else |
b7026657 AC |
6073 | eval "$as_ac_Header=\$ac_header_preproc" |
6074 | fi | |
6075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6077 | ||
6078 | fi | |
6079 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6080 | cat >>confdefs.h <<_ACEOF | |
6081 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6082 | _ACEOF | |
6083 | ||
c906108c | 6084 | fi |
b7026657 | 6085 | |
c906108c SS |
6086 | done |
6087 | ||
b7026657 AC |
6088 | |
6089 | ||
6090 | for ac_header in sys/time.h sys/resource.h | |
c906108c | 6091 | do |
b7026657 AC |
6092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6098 | fi | |
6099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6101 | else | |
6102 | # Is the header compilable? | |
6103 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6105 | cat >conftest.$ac_ext <<_ACEOF | |
6106 | /* confdefs.h. */ | |
6107 | _ACEOF | |
6108 | cat confdefs.h >>conftest.$ac_ext | |
6109 | cat >>conftest.$ac_ext <<_ACEOF | |
6110 | /* end confdefs.h. */ | |
6111 | $ac_includes_default | |
6112 | #include <$ac_header> | |
6113 | _ACEOF | |
6114 | rm -f conftest.$ac_objext | |
6115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6116 | (eval $ac_compile) 2>conftest.er1 | |
6117 | ac_status=$? | |
6118 | grep -v '^ *+' conftest.er1 >conftest.err | |
6119 | rm -f conftest.er1 | |
6120 | cat conftest.err >&5 | |
6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6122 | (exit $ac_status); } && | |
6123 | { ac_try='test -z "$ac_c_werror_flag" | |
6124 | || test ! -s conftest.err' | |
6125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6126 | (eval $ac_try) 2>&5 | |
6127 | ac_status=$? | |
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6129 | (exit $ac_status); }; } && | |
6130 | { ac_try='test -s conftest.$ac_objext' | |
6131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6132 | (eval $ac_try) 2>&5 | |
6133 | ac_status=$? | |
6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6135 | (exit $ac_status); }; }; then | |
6136 | ac_header_compiler=yes | |
6137 | else | |
6138 | echo "$as_me: failed program was:" >&5 | |
6139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6140 | ||
6141 | ac_header_compiler=no | |
6142 | fi | |
6143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6145 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6146 | ||
6147 | # Is the header present? | |
6148 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6150 | cat >conftest.$ac_ext <<_ACEOF | |
6151 | /* confdefs.h. */ | |
6152 | _ACEOF | |
6153 | cat confdefs.h >>conftest.$ac_ext | |
6154 | cat >>conftest.$ac_ext <<_ACEOF | |
6155 | /* end confdefs.h. */ | |
6156 | #include <$ac_header> | |
6157 | _ACEOF | |
6158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6160 | ac_status=$? | |
6161 | grep -v '^ *+' conftest.er1 >conftest.err | |
6162 | rm -f conftest.er1 | |
6163 | cat conftest.err >&5 | |
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6165 | (exit $ac_status); } >/dev/null; then | |
6166 | if test -s conftest.err; then | |
6167 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6169 | else | |
6170 | ac_cpp_err= | |
6171 | fi | |
6172 | else | |
6173 | ac_cpp_err=yes | |
c906108c | 6174 | fi |
b7026657 AC |
6175 | if test -z "$ac_cpp_err"; then |
6176 | ac_header_preproc=yes | |
6177 | else | |
6178 | echo "$as_me: failed program was:" >&5 | |
6179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6180 | ||
6181 | ac_header_preproc=no | |
c906108c | 6182 | fi |
b7026657 AC |
6183 | rm -f conftest.err conftest.$ac_ext |
6184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6185 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6186 | ||
6187 | # So? What about this header? | |
6188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6189 | yes:no: ) | |
6190 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6191 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6193 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6194 | ac_header_preproc=yes | |
6195 | ;; | |
6196 | no:yes:* ) | |
6197 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6198 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6199 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6200 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6201 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6202 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6203 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6204 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6206 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6207 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6208 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6209 | ( | |
6210 | cat <<\_ASBOX | |
6211 | ## ------------------------------------------ ## | |
6212 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6213 | ## ------------------------------------------ ## | |
6214 | _ASBOX | |
6215 | ) | | |
6216 | sed "s/^/$as_me: WARNING: /" >&2 | |
6217 | ;; | |
6218 | esac | |
6219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6223 | else |
b7026657 | 6224 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 6225 | fi |
b7026657 AC |
6226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6228 | ||
6229 | fi | |
6230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6231 | cat >>confdefs.h <<_ACEOF | |
6232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6233 | _ACEOF | |
6234 | ||
6235 | fi | |
6236 | ||
c906108c SS |
6237 | done |
6238 | ||
b7026657 AC |
6239 | |
6240 | ||
6241 | for ac_header in fcntl.h fpu_control.h | |
c906108c | 6242 | do |
b7026657 AC |
6243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6249 | fi | |
6250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6252 | else | |
6253 | # Is the header compilable? | |
6254 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6255 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6256 | cat >conftest.$ac_ext <<_ACEOF | |
6257 | /* confdefs.h. */ | |
6258 | _ACEOF | |
6259 | cat confdefs.h >>conftest.$ac_ext | |
6260 | cat >>conftest.$ac_ext <<_ACEOF | |
6261 | /* end confdefs.h. */ | |
6262 | $ac_includes_default | |
6263 | #include <$ac_header> | |
6264 | _ACEOF | |
6265 | rm -f conftest.$ac_objext | |
6266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6267 | (eval $ac_compile) 2>conftest.er1 | |
6268 | ac_status=$? | |
6269 | grep -v '^ *+' conftest.er1 >conftest.err | |
6270 | rm -f conftest.er1 | |
6271 | cat conftest.err >&5 | |
6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6273 | (exit $ac_status); } && | |
6274 | { ac_try='test -z "$ac_c_werror_flag" | |
6275 | || test ! -s conftest.err' | |
6276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6277 | (eval $ac_try) 2>&5 | |
6278 | ac_status=$? | |
6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6280 | (exit $ac_status); }; } && | |
6281 | { ac_try='test -s conftest.$ac_objext' | |
6282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6283 | (eval $ac_try) 2>&5 | |
6284 | ac_status=$? | |
6285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6286 | (exit $ac_status); }; }; then | |
6287 | ac_header_compiler=yes | |
6288 | else | |
6289 | echo "$as_me: failed program was:" >&5 | |
6290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6291 | ||
6292 | ac_header_compiler=no | |
6293 | fi | |
6294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6297 | ||
6298 | # Is the header present? | |
6299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6301 | cat >conftest.$ac_ext <<_ACEOF | |
6302 | /* confdefs.h. */ | |
6303 | _ACEOF | |
6304 | cat confdefs.h >>conftest.$ac_ext | |
6305 | cat >>conftest.$ac_ext <<_ACEOF | |
6306 | /* end confdefs.h. */ | |
6307 | #include <$ac_header> | |
6308 | _ACEOF | |
6309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6311 | ac_status=$? | |
6312 | grep -v '^ *+' conftest.er1 >conftest.err | |
6313 | rm -f conftest.er1 | |
6314 | cat conftest.err >&5 | |
6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6316 | (exit $ac_status); } >/dev/null; then | |
6317 | if test -s conftest.err; then | |
6318 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6320 | else | |
6321 | ac_cpp_err= | |
6322 | fi | |
6323 | else | |
6324 | ac_cpp_err=yes | |
cd0fc7c3 | 6325 | fi |
b7026657 AC |
6326 | if test -z "$ac_cpp_err"; then |
6327 | ac_header_preproc=yes | |
6328 | else | |
6329 | echo "$as_me: failed program was:" >&5 | |
6330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6331 | ||
6332 | ac_header_preproc=no | |
cd0fc7c3 | 6333 | fi |
b7026657 AC |
6334 | rm -f conftest.err conftest.$ac_ext |
6335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6337 | ||
6338 | # So? What about this header? | |
6339 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6340 | yes:no: ) | |
6341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6344 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6345 | ac_header_preproc=yes | |
6346 | ;; | |
6347 | no:yes:* ) | |
6348 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6349 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6350 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6351 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6352 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6353 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6354 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6355 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6357 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6358 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6359 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6360 | ( | |
6361 | cat <<\_ASBOX | |
6362 | ## ------------------------------------------ ## | |
6363 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6364 | ## ------------------------------------------ ## | |
6365 | _ASBOX | |
6366 | ) | | |
6367 | sed "s/^/$as_me: WARNING: /" >&2 | |
6368 | ;; | |
6369 | esac | |
6370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd0fc7c3 | 6374 | else |
b7026657 AC |
6375 | eval "$as_ac_Header=\$ac_header_preproc" |
6376 | fi | |
6377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6378 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6379 | ||
6380 | fi | |
6381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6382 | cat >>confdefs.h <<_ACEOF | |
6383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6384 | _ACEOF | |
6385 | ||
cd0fc7c3 | 6386 | fi |
b7026657 | 6387 | |
cd0fc7c3 SS |
6388 | done |
6389 | ||
b7026657 AC |
6390 | |
6391 | ||
6392 | ||
6393 | for ac_header in dlfcn.h errno.h sys/stat.h | |
cd0fc7c3 | 6394 | do |
b7026657 AC |
6395 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6397 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6398 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6401 | fi | |
6402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6403 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6404 | else | |
6405 | # Is the header compilable? | |
6406 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6408 | cat >conftest.$ac_ext <<_ACEOF | |
6409 | /* confdefs.h. */ | |
6410 | _ACEOF | |
6411 | cat confdefs.h >>conftest.$ac_ext | |
6412 | cat >>conftest.$ac_ext <<_ACEOF | |
6413 | /* end confdefs.h. */ | |
6414 | $ac_includes_default | |
6415 | #include <$ac_header> | |
6416 | _ACEOF | |
6417 | rm -f conftest.$ac_objext | |
6418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6419 | (eval $ac_compile) 2>conftest.er1 | |
6420 | ac_status=$? | |
6421 | grep -v '^ *+' conftest.er1 >conftest.err | |
6422 | rm -f conftest.er1 | |
6423 | cat conftest.err >&5 | |
6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6425 | (exit $ac_status); } && | |
6426 | { ac_try='test -z "$ac_c_werror_flag" | |
6427 | || test ! -s conftest.err' | |
6428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6429 | (eval $ac_try) 2>&5 | |
6430 | ac_status=$? | |
6431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6432 | (exit $ac_status); }; } && | |
6433 | { ac_try='test -s conftest.$ac_objext' | |
6434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6435 | (eval $ac_try) 2>&5 | |
6436 | ac_status=$? | |
6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6438 | (exit $ac_status); }; }; then | |
6439 | ac_header_compiler=yes | |
6440 | else | |
6441 | echo "$as_me: failed program was:" >&5 | |
6442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6443 | ||
6444 | ac_header_compiler=no | |
6445 | fi | |
6446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6447 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6448 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6449 | ||
6450 | # Is the header present? | |
6451 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6452 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6453 | cat >conftest.$ac_ext <<_ACEOF | |
6454 | /* confdefs.h. */ | |
6455 | _ACEOF | |
6456 | cat confdefs.h >>conftest.$ac_ext | |
6457 | cat >>conftest.$ac_ext <<_ACEOF | |
6458 | /* end confdefs.h. */ | |
6459 | #include <$ac_header> | |
6460 | _ACEOF | |
6461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6463 | ac_status=$? | |
6464 | grep -v '^ *+' conftest.er1 >conftest.err | |
6465 | rm -f conftest.er1 | |
6466 | cat conftest.err >&5 | |
6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6468 | (exit $ac_status); } >/dev/null; then | |
6469 | if test -s conftest.err; then | |
6470 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6471 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6472 | else | |
6473 | ac_cpp_err= | |
6474 | fi | |
6475 | else | |
6476 | ac_cpp_err=yes | |
c906108c | 6477 | fi |
b7026657 AC |
6478 | if test -z "$ac_cpp_err"; then |
6479 | ac_header_preproc=yes | |
6480 | else | |
6481 | echo "$as_me: failed program was:" >&5 | |
6482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6483 | ||
6484 | ac_header_preproc=no | |
c906108c | 6485 | fi |
b7026657 AC |
6486 | rm -f conftest.err conftest.$ac_ext |
6487 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6488 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6489 | ||
6490 | # So? What about this header? | |
6491 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6492 | yes:no: ) | |
6493 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6494 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6495 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6496 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6497 | ac_header_preproc=yes | |
6498 | ;; | |
6499 | no:yes:* ) | |
6500 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6501 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6502 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6503 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6504 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6505 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6506 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6507 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6508 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6509 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6510 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6511 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6512 | ( | |
6513 | cat <<\_ASBOX | |
6514 | ## ------------------------------------------ ## | |
6515 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6516 | ## ------------------------------------------ ## | |
6517 | _ASBOX | |
6518 | ) | | |
6519 | sed "s/^/$as_me: WARNING: /" >&2 | |
6520 | ;; | |
6521 | esac | |
6522 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6526 | else |
b7026657 AC |
6527 | eval "$as_ac_Header=\$ac_header_preproc" |
6528 | fi | |
6529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6531 | ||
6532 | fi | |
6533 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6534 | cat >>confdefs.h <<_ACEOF | |
6535 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6536 | _ACEOF | |
6537 | ||
c906108c | 6538 | fi |
b7026657 | 6539 | |
c906108c SS |
6540 | done |
6541 | ||
b7026657 AC |
6542 | |
6543 | ||
6544 | ||
6545 | ||
c906108c SS |
6546 | for ac_func in getrusage time sigaction __setfpucw |
6547 | do | |
b7026657 AC |
6548 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6549 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6550 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6551 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6553 | else | |
6554 | cat >conftest.$ac_ext <<_ACEOF | |
6555 | /* confdefs.h. */ | |
6556 | _ACEOF | |
6557 | cat confdefs.h >>conftest.$ac_ext | |
6558 | cat >>conftest.$ac_ext <<_ACEOF | |
6559 | /* end confdefs.h. */ | |
6560 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6561 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6562 | #define $ac_func innocuous_$ac_func | |
6563 | ||
c906108c | 6564 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
6565 | which can conflict with char $ac_func (); below. |
6566 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6567 | <limits.h> exists even on freestanding compilers. */ | |
6568 | ||
6569 | #ifdef __STDC__ | |
6570 | # include <limits.h> | |
6571 | #else | |
6572 | # include <assert.h> | |
6573 | #endif | |
c906108c | 6574 | |
b7026657 | 6575 | #undef $ac_func |
c906108c | 6576 | |
b7026657 AC |
6577 | /* Override any gcc2 internal prototype to avoid an error. */ |
6578 | #ifdef __cplusplus | |
6579 | extern "C" | |
6580 | { | |
6581 | #endif | |
6582 | /* We use char because int might match the return type of a gcc2 | |
6583 | builtin and then its argument prototype would still apply. */ | |
6584 | char $ac_func (); | |
c906108c SS |
6585 | /* The GNU C library defines this for functions which it implements |
6586 | to always fail with ENOSYS. Some functions are actually named | |
6587 | something starting with __ and the normal name is an alias. */ | |
6588 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6589 | choke me | |
6590 | #else | |
b7026657 AC |
6591 | char (*f) () = $ac_func; |
6592 | #endif | |
6593 | #ifdef __cplusplus | |
6594 | } | |
c906108c SS |
6595 | #endif |
6596 | ||
b7026657 AC |
6597 | int |
6598 | main () | |
6599 | { | |
6600 | return f != $ac_func; | |
6601 | ; | |
6602 | return 0; | |
6603 | } | |
6604 | _ACEOF | |
6605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6607 | (eval $ac_link) 2>conftest.er1 | |
6608 | ac_status=$? | |
6609 | grep -v '^ *+' conftest.er1 >conftest.err | |
6610 | rm -f conftest.er1 | |
6611 | cat conftest.err >&5 | |
6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6613 | (exit $ac_status); } && | |
6614 | { ac_try='test -z "$ac_c_werror_flag" | |
6615 | || test ! -s conftest.err' | |
6616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6617 | (eval $ac_try) 2>&5 | |
6618 | ac_status=$? | |
6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6620 | (exit $ac_status); }; } && | |
6621 | { ac_try='test -s conftest$ac_exeext' | |
6622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6623 | (eval $ac_try) 2>&5 | |
6624 | ac_status=$? | |
6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6626 | (exit $ac_status); }; }; then | |
6627 | eval "$as_ac_var=yes" | |
6628 | else | |
6629 | echo "$as_me: failed program was:" >&5 | |
6630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6631 | ||
6632 | eval "$as_ac_var=no" | |
6633 | fi | |
6634 | rm -f conftest.err conftest.$ac_objext \ | |
6635 | conftest$ac_exeext conftest.$ac_ext | |
6636 | fi | |
6637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6638 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6639 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6640 | cat >>confdefs.h <<_ACEOF | |
6641 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6642 | _ACEOF | |
c906108c | 6643 | |
c906108c SS |
6644 | fi |
6645 | done | |
6646 | ||
6647 | ||
6648 | # Check for socket libraries | |
b7026657 AC |
6649 | |
6650 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
6651 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
6652 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
6653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6654 | else |
b7026657 | 6655 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6656 | LIBS="-lsocket $LIBS" |
b7026657 AC |
6657 | cat >conftest.$ac_ext <<_ACEOF |
6658 | /* confdefs.h. */ | |
6659 | _ACEOF | |
6660 | cat confdefs.h >>conftest.$ac_ext | |
6661 | cat >>conftest.$ac_ext <<_ACEOF | |
6662 | /* end confdefs.h. */ | |
c906108c | 6663 | |
b7026657 AC |
6664 | /* Override any gcc2 internal prototype to avoid an error. */ |
6665 | #ifdef __cplusplus | |
6666 | extern "C" | |
6667 | #endif | |
6668 | /* We use char because int might match the return type of a gcc2 | |
6669 | builtin and then its argument prototype would still apply. */ | |
6670 | char bind (); | |
6671 | int | |
6672 | main () | |
6673 | { | |
6674 | bind (); | |
6675 | ; | |
6676 | return 0; | |
6677 | } | |
6678 | _ACEOF | |
6679 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6681 | (eval $ac_link) 2>conftest.er1 | |
6682 | ac_status=$? | |
6683 | grep -v '^ *+' conftest.er1 >conftest.err | |
6684 | rm -f conftest.er1 | |
6685 | cat conftest.err >&5 | |
6686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6687 | (exit $ac_status); } && | |
6688 | { ac_try='test -z "$ac_c_werror_flag" | |
6689 | || test ! -s conftest.err' | |
6690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6691 | (eval $ac_try) 2>&5 | |
6692 | ac_status=$? | |
6693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6694 | (exit $ac_status); }; } && | |
6695 | { ac_try='test -s conftest$ac_exeext' | |
6696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6697 | (eval $ac_try) 2>&5 | |
6698 | ac_status=$? | |
6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6700 | (exit $ac_status); }; }; then | |
6701 | ac_cv_lib_socket_bind=yes | |
6702 | else | |
6703 | echo "$as_me: failed program was:" >&5 | |
6704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6705 | ||
6706 | ac_cv_lib_socket_bind=no | |
6707 | fi | |
6708 | rm -f conftest.err conftest.$ac_objext \ | |
6709 | conftest$ac_exeext conftest.$ac_ext | |
6710 | LIBS=$ac_check_lib_save_LIBS | |
6711 | fi | |
6712 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
6713 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
6714 | if test $ac_cv_lib_socket_bind = yes; then | |
6715 | cat >>confdefs.h <<_ACEOF | |
6716 | #define HAVE_LIBSOCKET 1 | |
6717 | _ACEOF | |
c906108c SS |
6718 | |
6719 | LIBS="-lsocket $LIBS" | |
6720 | ||
c906108c SS |
6721 | fi |
6722 | ||
b7026657 AC |
6723 | |
6724 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
6725 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
6726 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
6727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6728 | else |
b7026657 | 6729 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6730 | LIBS="-lnsl $LIBS" |
b7026657 AC |
6731 | cat >conftest.$ac_ext <<_ACEOF |
6732 | /* confdefs.h. */ | |
6733 | _ACEOF | |
6734 | cat confdefs.h >>conftest.$ac_ext | |
6735 | cat >>conftest.$ac_ext <<_ACEOF | |
6736 | /* end confdefs.h. */ | |
6737 | ||
c906108c | 6738 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6739 | #ifdef __cplusplus |
6740 | extern "C" | |
6741 | #endif | |
c906108c | 6742 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6743 | builtin and then its argument prototype would still apply. */ |
6744 | char gethostbyname (); | |
6745 | int | |
6746 | main () | |
6747 | { | |
6748 | gethostbyname (); | |
6749 | ; | |
6750 | return 0; | |
6751 | } | |
6752 | _ACEOF | |
6753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6755 | (eval $ac_link) 2>conftest.er1 | |
6756 | ac_status=$? | |
6757 | grep -v '^ *+' conftest.er1 >conftest.err | |
6758 | rm -f conftest.er1 | |
6759 | cat conftest.err >&5 | |
6760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6761 | (exit $ac_status); } && | |
6762 | { ac_try='test -z "$ac_c_werror_flag" | |
6763 | || test ! -s conftest.err' | |
6764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6765 | (eval $ac_try) 2>&5 | |
6766 | ac_status=$? | |
6767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6768 | (exit $ac_status); }; } && | |
6769 | { ac_try='test -s conftest$ac_exeext' | |
6770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6771 | (eval $ac_try) 2>&5 | |
6772 | ac_status=$? | |
6773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6774 | (exit $ac_status); }; }; then | |
6775 | ac_cv_lib_nsl_gethostbyname=yes | |
6776 | else | |
6777 | echo "$as_me: failed program was:" >&5 | |
6778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6779 | ||
6780 | ac_cv_lib_nsl_gethostbyname=no | |
6781 | fi | |
6782 | rm -f conftest.err conftest.$ac_objext \ | |
6783 | conftest$ac_exeext conftest.$ac_ext | |
6784 | LIBS=$ac_check_lib_save_LIBS | |
6785 | fi | |
6786 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
6787 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
6788 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
6789 | cat >>confdefs.h <<_ACEOF | |
6790 | #define HAVE_LIBNSL 1 | |
6791 | _ACEOF | |
c906108c SS |
6792 | |
6793 | LIBS="-lnsl $LIBS" | |
6794 | ||
c906108c SS |
6795 | fi |
6796 | ||
6797 | ||
6798 | . ${srcdir}/../../bfd/configure.host | |
6799 | ||
6800 | ||
6801 | ||
6802 | USE_MAINTAINER_MODE=no | |
6803 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
6804 | if test "${enable_maintainer_mode+set}" = set; then | |
6805 | enableval="$enable_maintainer_mode" | |
6806 | case "${enableval}" in | |
6807 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
6808 | no) MAINT="#" ;; | |
b7026657 AC |
6809 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
6810 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
6811 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
c906108c SS |
6812 | esac |
6813 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
6814 | echo "Setting maintainer mode" 6>&1 | |
6815 | fi | |
6816 | else | |
6817 | MAINT="#" | |
b7026657 | 6818 | fi; |
c906108c SS |
6819 | |
6820 | ||
6821 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
6822 | if test "${enable_sim_bswap+set}" = set; then | |
6823 | enableval="$enable_sim_bswap" | |
6824 | case "${enableval}" in | |
6825 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
6826 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
6827 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
6828 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
6829 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
6830 | esac |
6831 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
6832 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
6833 | fi | |
6834 | else | |
6835 | sim_bswap="" | |
b7026657 | 6836 | fi; |
c906108c SS |
6837 | |
6838 | ||
6839 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
6840 | if test "${enable_sim_cflags+set}" = set; then | |
6841 | enableval="$enable_sim_cflags" | |
6842 | case "${enableval}" in | |
6843 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
6844 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
6845 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
6846 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
c906108c SS |
6847 | no) sim_cflags="";; |
6848 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6849 | esac | |
6850 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
6851 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
6852 | fi | |
6853 | else | |
6854 | sim_cflags="" | |
b7026657 | 6855 | fi; |
c906108c SS |
6856 | |
6857 | ||
6858 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
6859 | if test "${enable_sim_debug+set}" = set; then | |
6860 | enableval="$enable_sim_debug" | |
6861 | case "${enableval}" in | |
6862 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
6863 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
6864 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
6865 | esac | |
6866 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
6867 | echo "Setting sim debug = $sim_debug" 6>&1 | |
6868 | fi | |
6869 | else | |
6870 | sim_debug="" | |
b7026657 | 6871 | fi; |
c906108c SS |
6872 | |
6873 | ||
6874 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
6875 | if test "${enable_sim_stdio+set}" = set; then | |
6876 | enableval="$enable_sim_stdio" | |
6877 | case "${enableval}" in | |
6878 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
6879 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
6880 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
6881 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
6882 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
6883 | esac |
6884 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
6885 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
6886 | fi | |
6887 | else | |
6888 | sim_stdio="" | |
b7026657 | 6889 | fi; |
c906108c SS |
6890 | |
6891 | ||
6892 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
6893 | if test "${enable_sim_trace+set}" = set; then | |
6894 | enableval="$enable_sim_trace" | |
6895 | case "${enableval}" in | |
6896 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
6897 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
6898 | [-0-9]*) | |
6899 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
6900 | [a-z]*) | |
6901 | sim_trace="" | |
6902 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6903 | if test x"$sim_trace" = x; then | |
6904 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
6905 | else | |
6906 | sim_trace="${sim_trace}|TRACE_$x" | |
6907 | fi | |
6908 | done | |
6909 | sim_trace="$sim_trace)'" ;; | |
6910 | esac | |
6911 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
6912 | echo "Setting sim trace = $sim_trace" 6>&1 | |
6913 | fi | |
6914 | else | |
6915 | sim_trace="" | |
b7026657 | 6916 | fi; |
c906108c SS |
6917 | |
6918 | ||
6919 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
6920 | if test "${enable_sim_profile+set}" = set; then | |
6921 | enableval="$enable_sim_profile" | |
6922 | case "${enableval}" in | |
6923 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
6924 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
6925 | [-0-9]*) | |
6926 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
6927 | [a-z]*) | |
6928 | sim_profile="" | |
6929 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6930 | if test x"$sim_profile" = x; then | |
6931 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
6932 | else | |
6933 | sim_profile="${sim_profile}|PROFILE_$x" | |
6934 | fi | |
6935 | done | |
6936 | sim_profile="$sim_profile)'" ;; | |
6937 | esac | |
6938 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
6939 | echo "Setting sim profile = $sim_profile" 6>&1 | |
6940 | fi | |
6941 | else | |
eb2d80b4 | 6942 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
b7026657 | 6943 | fi; |
c906108c SS |
6944 | |
6945 | ||
b7026657 AC |
6946 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
6947 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
6948 | if test "${ac_cv_type_signal+set}" = set; then | |
6949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6950 | else |
b7026657 AC |
6951 | cat >conftest.$ac_ext <<_ACEOF |
6952 | /* confdefs.h. */ | |
6953 | _ACEOF | |
6954 | cat confdefs.h >>conftest.$ac_ext | |
6955 | cat >>conftest.$ac_ext <<_ACEOF | |
6956 | /* end confdefs.h. */ | |
c906108c SS |
6957 | #include <sys/types.h> |
6958 | #include <signal.h> | |
6959 | #ifdef signal | |
b7026657 | 6960 | # undef signal |
c906108c SS |
6961 | #endif |
6962 | #ifdef __cplusplus | |
6963 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6964 | #else | |
6965 | void (*signal ()) (); | |
6966 | #endif | |
6967 | ||
b7026657 AC |
6968 | int |
6969 | main () | |
6970 | { | |
c906108c | 6971 | int i; |
b7026657 AC |
6972 | ; |
6973 | return 0; | |
6974 | } | |
6975 | _ACEOF | |
6976 | rm -f conftest.$ac_objext | |
6977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6978 | (eval $ac_compile) 2>conftest.er1 | |
6979 | ac_status=$? | |
6980 | grep -v '^ *+' conftest.er1 >conftest.err | |
6981 | rm -f conftest.er1 | |
6982 | cat conftest.err >&5 | |
6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6984 | (exit $ac_status); } && | |
6985 | { ac_try='test -z "$ac_c_werror_flag" | |
6986 | || test ! -s conftest.err' | |
6987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6988 | (eval $ac_try) 2>&5 | |
6989 | ac_status=$? | |
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6991 | (exit $ac_status); }; } && | |
6992 | { ac_try='test -s conftest.$ac_objext' | |
6993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6994 | (eval $ac_try) 2>&5 | |
6995 | ac_status=$? | |
6996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6997 | (exit $ac_status); }; }; then | |
c906108c SS |
6998 | ac_cv_type_signal=void |
6999 | else | |
b7026657 AC |
7000 | echo "$as_me: failed program was:" >&5 |
7001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7002 | ||
7003 | ac_cv_type_signal=int | |
c906108c | 7004 | fi |
b7026657 | 7005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7006 | fi |
b7026657 AC |
7007 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7008 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 7009 | |
b7026657 | 7010 | cat >>confdefs.h <<_ACEOF |
c906108c | 7011 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 7012 | _ACEOF |
c906108c SS |
7013 | |
7014 | ||
cd0fc7c3 SS |
7015 | |
7016 | ||
c906108c SS |
7017 | |
7018 | sim_link_files= | |
7019 | sim_link_links= | |
7020 | ||
7021 | sim_link_links=tconfig.h | |
7022 | if test -f ${srcdir}/tconfig.in | |
7023 | then | |
7024 | sim_link_files=tconfig.in | |
7025 | else | |
7026 | sim_link_files=../common/tconfig.in | |
7027 | fi | |
7028 | ||
7029 | # targ-vals.def points to the libc macro description file. | |
7030 | case "${target}" in | |
7031 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
7032 | esac | |
7033 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
7034 | sim_link_links="${sim_link_links} targ-vals.def" | |
7035 | ||
c906108c SS |
7036 | |
7037 | ||
7038 | wire_endian="LITTLE_ENDIAN" | |
7039 | default_endian="" | |
7040 | # Check whether --enable-sim-endian or --disable-sim-endian was given. | |
7041 | if test "${enable_sim_endian+set}" = set; then | |
7042 | enableval="$enable_sim_endian" | |
7043 | case "${enableval}" in | |
7044 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
7045 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
7046 | yes) if test x"$wire_endian" != x; then | |
7047 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
7048 | else | |
7049 | if test x"$default_endian" != x; then | |
7050 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}" | |
7051 | else | |
7052 | echo "No hard-wired endian for target $target" 1>&6 | |
7053 | sim_endian="-DWITH_TARGET_BYTE_ORDER=0" | |
7054 | fi | |
7055 | fi;; | |
7056 | no) if test x"$default_endian" != x; then | |
7057 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
7058 | else | |
7059 | if test x"$wire_endian" != x; then | |
7060 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}" | |
7061 | else | |
7062 | echo "No default endian for target $target" 1>&6 | |
7063 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0" | |
7064 | fi | |
7065 | fi;; | |
b7026657 AC |
7066 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5 |
7067 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;} | |
7068 | { (exit 1); exit 1; }; }; sim_endian="";; | |
c906108c SS |
7069 | esac |
7070 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
7071 | echo "Setting endian flags = $sim_endian" 6>&1 | |
7072 | fi | |
7073 | else | |
7074 | if test x"$default_endian" != x; then | |
7075 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
7076 | else | |
7077 | if test x"$wire_endian" != x; then | |
7078 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
7079 | else | |
7080 | sim_endian= | |
7081 | fi | |
7082 | fi | |
b7026657 | 7083 | fi; |
c906108c SS |
7084 | wire_alignment="NONSTRICT_ALIGNMENT" |
7085 | default_alignment="" | |
7086 | ||
7087 | # Check whether --enable-sim-alignment or --disable-sim-alignment was given. | |
7088 | if test "${enable_sim_alignment+set}" = set; then | |
7089 | enableval="$enable_sim_alignment" | |
7090 | case "${enableval}" in | |
7091 | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; | |
7092 | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
7093 | forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";; | |
7094 | yes) if test x"$wire_alignment" != x; then | |
7095 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
7096 | else | |
7097 | if test x"$default_alignment" != x; then | |
7098 | sim_alignment="-DWITH_ALIGNMENT=${default_alignment}" | |
7099 | else | |
7100 | echo "No hard-wired alignment for target $target" 1>&6 | |
7101 | sim_alignment="-DWITH_ALIGNMENT=0" | |
7102 | fi | |
7103 | fi;; | |
7104 | no) if test x"$default_alignment" != x; then | |
7105 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
7106 | else | |
7107 | if test x"$wire_alignment" != x; then | |
7108 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}" | |
7109 | else | |
7110 | echo "No default alignment for target $target" 1>&6 | |
7111 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0" | |
7112 | fi | |
7113 | fi;; | |
b7026657 AC |
7114 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5 |
7115 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;} | |
7116 | { (exit 1); exit 1; }; }; sim_alignment="";; | |
c906108c SS |
7117 | esac |
7118 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
7119 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
7120 | fi | |
7121 | else | |
7122 | if test x"$default_alignment" != x; then | |
7123 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
7124 | else | |
7125 | if test x"$wire_alignment" != x; then | |
7126 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
7127 | else | |
7128 | sim_alignment= | |
7129 | fi | |
7130 | fi | |
b7026657 | 7131 | fi; |
c906108c SS |
7132 | |
7133 | # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given. | |
7134 | if test "${enable_sim_hostendian+set}" = set; then | |
7135 | enableval="$enable_sim_hostendian" | |
7136 | case "${enableval}" in | |
7137 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; | |
7138 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
7139 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
b7026657 AC |
7140 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5 |
7141 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;} | |
7142 | { (exit 1); exit 1; }; }; sim_hostendian="";; | |
c906108c SS |
7143 | esac |
7144 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
7145 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
7146 | fi | |
7147 | else | |
b7026657 | 7148 | |
c906108c | 7149 | if test "x$cross_compiling" = "xno"; then |
b7026657 AC |
7150 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
7151 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
7152 | if test "${ac_cv_c_bigendian+set}" = set; then | |
7153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7154 | else | |
7155 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7156 | cat >conftest.$ac_ext <<_ACEOF | |
7157 | /* confdefs.h. */ | |
7158 | _ACEOF | |
7159 | cat confdefs.h >>conftest.$ac_ext | |
7160 | cat >>conftest.$ac_ext <<_ACEOF | |
7161 | /* end confdefs.h. */ | |
c906108c SS |
7162 | #include <sys/types.h> |
7163 | #include <sys/param.h> | |
c906108c | 7164 | |
b7026657 AC |
7165 | int |
7166 | main () | |
7167 | { | |
c906108c SS |
7168 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
7169 | bogus endian macros | |
7170 | #endif | |
b7026657 AC |
7171 | |
7172 | ; | |
7173 | return 0; | |
7174 | } | |
7175 | _ACEOF | |
7176 | rm -f conftest.$ac_objext | |
7177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7178 | (eval $ac_compile) 2>conftest.er1 | |
7179 | ac_status=$? | |
7180 | grep -v '^ *+' conftest.er1 >conftest.err | |
7181 | rm -f conftest.er1 | |
7182 | cat conftest.err >&5 | |
7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7184 | (exit $ac_status); } && | |
7185 | { ac_try='test -z "$ac_c_werror_flag" | |
7186 | || test ! -s conftest.err' | |
7187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7188 | (eval $ac_try) 2>&5 | |
7189 | ac_status=$? | |
7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7191 | (exit $ac_status); }; } && | |
7192 | { ac_try='test -s conftest.$ac_objext' | |
7193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7194 | (eval $ac_try) 2>&5 | |
7195 | ac_status=$? | |
7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7197 | (exit $ac_status); }; }; then | |
c906108c | 7198 | # It does; now see whether it defined to BIG_ENDIAN or not. |
b7026657 AC |
7199 | cat >conftest.$ac_ext <<_ACEOF |
7200 | /* confdefs.h. */ | |
7201 | _ACEOF | |
7202 | cat confdefs.h >>conftest.$ac_ext | |
7203 | cat >>conftest.$ac_ext <<_ACEOF | |
7204 | /* end confdefs.h. */ | |
c906108c SS |
7205 | #include <sys/types.h> |
7206 | #include <sys/param.h> | |
c906108c | 7207 | |
b7026657 AC |
7208 | int |
7209 | main () | |
7210 | { | |
c906108c SS |
7211 | #if BYTE_ORDER != BIG_ENDIAN |
7212 | not big endian | |
7213 | #endif | |
b7026657 AC |
7214 | |
7215 | ; | |
7216 | return 0; | |
7217 | } | |
7218 | _ACEOF | |
7219 | rm -f conftest.$ac_objext | |
7220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7221 | (eval $ac_compile) 2>conftest.er1 | |
7222 | ac_status=$? | |
7223 | grep -v '^ *+' conftest.er1 >conftest.err | |
7224 | rm -f conftest.er1 | |
7225 | cat conftest.err >&5 | |
7226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7227 | (exit $ac_status); } && | |
7228 | { ac_try='test -z "$ac_c_werror_flag" | |
7229 | || test ! -s conftest.err' | |
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); }; } && | |
7235 | { ac_try='test -s conftest.$ac_objext' | |
7236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7237 | (eval $ac_try) 2>&5 | |
7238 | ac_status=$? | |
7239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7240 | (exit $ac_status); }; }; then | |
c906108c SS |
7241 | ac_cv_c_bigendian=yes |
7242 | else | |
b7026657 AC |
7243 | echo "$as_me: failed program was:" >&5 |
7244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7245 | ||
7246 | ac_cv_c_bigendian=no | |
c906108c | 7247 | fi |
b7026657 | 7248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7249 | else |
b7026657 AC |
7250 | echo "$as_me: failed program was:" >&5 |
7251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7252 | ||
7253 | # It does not; compile a test program. | |
c906108c | 7254 | if test "$cross_compiling" = yes; then |
b7026657 AC |
7255 | # try to guess the endianness by grepping values into an object file |
7256 | ac_cv_c_bigendian=unknown | |
7257 | cat >conftest.$ac_ext <<_ACEOF | |
7258 | /* confdefs.h. */ | |
7259 | _ACEOF | |
7260 | cat confdefs.h >>conftest.$ac_ext | |
7261 | cat >>conftest.$ac_ext <<_ACEOF | |
7262 | /* end confdefs.h. */ | |
7263 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
7264 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
7265 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
7266 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
7267 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
7268 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
7269 | int | |
7270 | main () | |
7271 | { | |
7272 | _ascii (); _ebcdic (); | |
7273 | ; | |
7274 | return 0; | |
7275 | } | |
7276 | _ACEOF | |
7277 | rm -f conftest.$ac_objext | |
7278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7279 | (eval $ac_compile) 2>conftest.er1 | |
7280 | ac_status=$? | |
7281 | grep -v '^ *+' conftest.er1 >conftest.err | |
7282 | rm -f conftest.er1 | |
7283 | cat conftest.err >&5 | |
7284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7285 | (exit $ac_status); } && | |
7286 | { ac_try='test -z "$ac_c_werror_flag" | |
7287 | || test ! -s conftest.err' | |
7288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7289 | (eval $ac_try) 2>&5 | |
7290 | ac_status=$? | |
7291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7292 | (exit $ac_status); }; } && | |
7293 | { ac_try='test -s conftest.$ac_objext' | |
7294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7295 | (eval $ac_try) 2>&5 | |
7296 | ac_status=$? | |
7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7298 | (exit $ac_status); }; }; then | |
7299 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
7300 | ac_cv_c_bigendian=yes | |
7301 | fi | |
7302 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7303 | if test "$ac_cv_c_bigendian" = unknown; then | |
7304 | ac_cv_c_bigendian=no | |
7305 | else | |
7306 | # finding both strings is unlikely to happen, but who knows? | |
7307 | ac_cv_c_bigendian=unknown | |
7308 | fi | |
7309 | fi | |
c906108c | 7310 | else |
b7026657 AC |
7311 | echo "$as_me: failed program was:" >&5 |
7312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7313 | ||
7314 | fi | |
7315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7316 | else | |
7317 | cat >conftest.$ac_ext <<_ACEOF | |
7318 | /* confdefs.h. */ | |
7319 | _ACEOF | |
7320 | cat confdefs.h >>conftest.$ac_ext | |
7321 | cat >>conftest.$ac_ext <<_ACEOF | |
7322 | /* end confdefs.h. */ | |
7323 | int | |
7324 | main () | |
7325 | { | |
c906108c SS |
7326 | /* Are we little or big endian? From Harbison&Steele. */ |
7327 | union | |
7328 | { | |
7329 | long l; | |
7330 | char c[sizeof (long)]; | |
7331 | } u; | |
7332 | u.l = 1; | |
7333 | exit (u.c[sizeof (long) - 1] == 1); | |
7334 | } | |
b7026657 AC |
7335 | _ACEOF |
7336 | rm -f conftest$ac_exeext | |
7337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7338 | (eval $ac_link) 2>&5 | |
7339 | ac_status=$? | |
7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7341 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7343 | (eval $ac_try) 2>&5 | |
7344 | ac_status=$? | |
7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7346 | (exit $ac_status); }; }; then | |
c906108c SS |
7347 | ac_cv_c_bigendian=no |
7348 | else | |
b7026657 AC |
7349 | echo "$as_me: program exited with status $ac_status" >&5 |
7350 | echo "$as_me: failed program was:" >&5 | |
7351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7352 | ||
7353 | ( exit $ac_status ) | |
7354 | ac_cv_c_bigendian=yes | |
c906108c | 7355 | fi |
b7026657 | 7356 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7357 | fi |
c906108c | 7358 | fi |
b7026657 | 7359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7360 | fi |
b7026657 AC |
7361 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7362 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
7363 | case $ac_cv_c_bigendian in | |
7364 | yes) | |
c906108c | 7365 | |
b7026657 | 7366 | cat >>confdefs.h <<\_ACEOF |
c906108c | 7367 | #define WORDS_BIGENDIAN 1 |
b7026657 AC |
7368 | _ACEOF |
7369 | ;; | |
7370 | no) | |
7371 | ;; | |
7372 | *) | |
7373 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7374 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7375 | echo "$as_me: error: unknown endianness | |
7376 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7377 | { (exit 1); exit 1; }; } ;; | |
7378 | esac | |
c906108c SS |
7379 | |
7380 | if test $ac_cv_c_bigendian = yes; then | |
7381 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
7382 | else | |
7383 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
7384 | fi | |
7385 | else | |
7386 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
7387 | fi | |
b7026657 | 7388 | fi; |
c906108c | 7389 | |
c8cca39f AC |
7390 | # NOTE: Don't add -Wall or -Wunused, they both include |
7391 | # -Wunused-parameter which reports bogus warnings. | |
7392 | # NOTE: If you add to this list, remember to update | |
7393 | # gdb/doc/gdbint.texinfo. | |
7394 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ | |
7395 | -Wformat -Wparentheses -Wpointer-arith -Wuninitialized" | |
7396 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs | |
7397 | # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value | |
7398 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual | |
7399 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes | |
7400 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
7401 | # -Woverloaded-virtual -Winline -Werror" | |
c906108c SS |
7402 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
7403 | if test "${enable_build_warnings+set}" = set; then | |
7404 | enableval="$enable_build_warnings" | |
c8cca39f AC |
7405 | case "${enableval}" in |
7406 | yes) ;; | |
7407 | no) build_warnings="-w";; | |
7408 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
7409 | build_warnings="${build_warnings} ${t}";; | |
7410 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
7411 | build_warnings="${t} ${build_warnings}";; | |
7412 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
7413 | esac | |
7414 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
7415 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
7416 | fi | |
b7026657 | 7417 | fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given. |
c8cca39f AC |
7418 | if test "${enable_sim_build_warnings+set}" = set; then |
7419 | enableval="$enable_sim_build_warnings" | |
7420 | case "${enableval}" in | |
c906108c SS |
7421 | yes) ;; |
7422 | no) build_warnings="-w";; | |
7423 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c8cca39f | 7424 | build_warnings="${build_warnings} ${t}";; |
c906108c | 7425 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c8cca39f AC |
7426 | build_warnings="${t} ${build_warnings}";; |
7427 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
c906108c SS |
7428 | esac |
7429 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
c8cca39f AC |
7430 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
7431 | fi | |
b7026657 | 7432 | fi; WARN_CFLAGS="" |
d4f3574e SS |
7433 | WERROR_CFLAGS="" |
7434 | if test "x${build_warnings}" != x -a "x$GCC" = xyes | |
7435 | then | |
b7026657 AC |
7436 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
7437 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
c8cca39f AC |
7438 | # Separate out the -Werror flag as some files just cannot be |
7439 | # compiled with it enabled. | |
7440 | for w in ${build_warnings}; do | |
7441 | case $w in | |
7442 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
7443 | *) # Check that GCC accepts it | |
7444 | saved_CFLAGS="$CFLAGS" | |
7445 | CFLAGS="$CFLAGS $w" | |
b7026657 AC |
7446 | cat >conftest.$ac_ext <<_ACEOF |
7447 | /* confdefs.h. */ | |
7448 | _ACEOF | |
7449 | cat confdefs.h >>conftest.$ac_ext | |
7450 | cat >>conftest.$ac_ext <<_ACEOF | |
7451 | /* end confdefs.h. */ | |
c8cca39f | 7452 | |
b7026657 AC |
7453 | int |
7454 | main () | |
7455 | { | |
c8cca39f | 7456 | |
b7026657 AC |
7457 | ; |
7458 | return 0; | |
7459 | } | |
7460 | _ACEOF | |
7461 | rm -f conftest.$ac_objext | |
7462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7463 | (eval $ac_compile) 2>conftest.er1 | |
7464 | ac_status=$? | |
7465 | grep -v '^ *+' conftest.er1 >conftest.err | |
7466 | rm -f conftest.er1 | |
7467 | cat conftest.err >&5 | |
7468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7469 | (exit $ac_status); } && | |
7470 | { ac_try='test -z "$ac_c_werror_flag" | |
7471 | || test ! -s conftest.err' | |
7472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7473 | (eval $ac_try) 2>&5 | |
7474 | ac_status=$? | |
7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7476 | (exit $ac_status); }; } && | |
7477 | { ac_try='test -s conftest.$ac_objext' | |
7478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7479 | (eval $ac_try) 2>&5 | |
7480 | ac_status=$? | |
7481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7482 | (exit $ac_status); }; }; then | |
c8cca39f | 7483 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
c906108c | 7484 | else |
b7026657 AC |
7485 | echo "$as_me: failed program was:" >&5 |
7486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7487 | ||
c8cca39f | 7488 | fi |
b7026657 | 7489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c8cca39f AC |
7490 | CFLAGS="$saved_CFLAGS" |
7491 | esac | |
7492 | done | |
b7026657 AC |
7493 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
7494 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
c906108c SS |
7495 | fi |
7496 | ||
7497 | ||
7498 | default_sim_reserved_bits="1" | |
7499 | # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given. | |
7500 | if test "${enable_sim_reserved_bits+set}" = set; then | |
7501 | enableval="$enable_sim_reserved_bits" | |
7502 | case "${enableval}" in | |
7503 | yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";; | |
7504 | no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";; | |
b7026657 AC |
7505 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5 |
7506 | echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;} | |
7507 | { (exit 1); exit 1; }; }; sim_reserved_bits="";; | |
c906108c SS |
7508 | esac |
7509 | if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then | |
7510 | echo "Setting reserved flags = $sim_reserved_bits" 6>&1 | |
7511 | fi | |
7512 | else | |
7513 | sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}" | |
b7026657 | 7514 | fi; |
c906108c SS |
7515 | wire_word_bitsize="32" |
7516 | wire_word_msb="31" | |
7517 | wire_address_bitsize="" | |
7518 | wire_cell_bitsize="" | |
7519 | # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given. | |
7520 | if test "${enable_sim_bitsize+set}" = set; then | |
7521 | enableval="$enable_sim_bitsize" | |
7522 | sim_bitsize= | |
7523 | case "${enableval}" in | |
7524 | 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";; | |
7525 | 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";; | |
7526 | 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";; | |
7527 | 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";; | |
7528 | 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then | |
7529 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31" | |
7530 | else | |
7531 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0" | |
7532 | fi ;; | |
7533 | 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then | |
7534 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63" | |
7535 | else | |
7536 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0" | |
7537 | fi ;; | |
b7026657 AC |
7538 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5 |
7539 | echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;} | |
7540 | { (exit 1); exit 1; }; } ;; | |
c906108c SS |
7541 | esac |
7542 | # address bitsize | |
7543 | tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"` | |
7544 | case x"${tmp}" in | |
7545 | x ) ;; | |
7546 | x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;; | |
7547 | x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;; | |
b7026657 AC |
7548 | * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5 |
7549 | echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;} | |
7550 | { (exit 1); exit 1; }; } ;; | |
c906108c SS |
7551 | esac |
7552 | # cell bitsize | |
7553 | tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"` | |
7554 | case x"${tmp}" in | |
7555 | x ) ;; | |
7556 | x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;; | |
7557 | x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;; | |
b7026657 AC |
7558 | * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5 |
7559 | echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;} | |
7560 | { (exit 1); exit 1; }; } ;; | |
c906108c SS |
7561 | esac |
7562 | if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then | |
7563 | echo "Setting bitsize flags = $sim_bitsize" 6>&1 | |
7564 | fi | |
7565 | else | |
7566 | sim_bitsize="" | |
7567 | if test x"$wire_word_bitsize" != x; then | |
7568 | sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize" | |
7569 | fi | |
7570 | if test x"$wire_word_msb" != x; then | |
7571 | sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb" | |
7572 | fi | |
7573 | if test x"$wire_address_bitsize" != x; then | |
7574 | sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize" | |
7575 | fi | |
7576 | if test x"$wire_cell_bitsize" != x; then | |
7577 | sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize" | |
7578 | fi | |
b7026657 | 7579 | fi; |
c906108c SS |
7580 | |
7581 | default_sim_inline="" | |
7582 | # Check whether --enable-sim-inline or --disable-sim-inline was given. | |
7583 | if test "${enable_sim_inline+set}" = set; then | |
7584 | enableval="$enable_sim_inline" | |
7585 | sim_inline="" | |
7586 | case "$enableval" in | |
7587 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
7588 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
7589 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
7590 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
7591 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
7592 | new_flag="" | |
7593 | case "$x" in | |
7594 | *_INLINE=*) new_flag="-D$x";; | |
7595 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
7596 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
7597 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
7598 | esac | |
7599 | if test x"$sim_inline" = x""; then | |
7600 | sim_inline="$new_flag" | |
7601 | else | |
7602 | sim_inline="$sim_inline $new_flag" | |
7603 | fi | |
7604 | done;; | |
7605 | esac | |
7606 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
7607 | echo "Setting inline flags = $sim_inline" 6>&1 | |
7608 | fi | |
7609 | else | |
b7026657 | 7610 | |
c906108c SS |
7611 | if test "x$cross_compiling" = "xno"; then |
7612 | if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then | |
7613 | sim_inline="${default_sim_inline}" | |
7614 | if test x"$silent" != x"yes"; then | |
7615 | echo "Setting inline flags = $sim_inline" 6>&1 | |
7616 | fi | |
7617 | else | |
7618 | sim_inline="" | |
7619 | fi | |
7620 | else | |
7621 | sim_inline="-DDEFAULT_INLINE=0" | |
7622 | fi | |
b7026657 | 7623 | fi; |
c906108c SS |
7624 | |
7625 | if test x"yes" = x"yes"; then | |
7626 | sim_hw_p=yes | |
7627 | else | |
7628 | sim_hw_p=no | |
7629 | fi | |
7630 | if test ""; then | |
7631 | hardware="core pal glue" | |
7632 | else | |
7633 | hardware="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop" | |
7634 | fi | |
7635 | sim_hw_cflags="-DWITH_HW=1" | |
7636 | sim_hw="$hardware" | |
7637 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
7638 | # Check whether --enable-sim-hardware or --disable-sim-hardware was given. | |
7639 | if test "${enable_sim_hardware+set}" = set; then | |
7640 | enableval="$enable_sim_hardware" | |
b7026657 | 7641 | |
c906108c SS |
7642 | case "${enableval}" in |
7643 | yes) sim_hw_p=yes;; | |
7644 | no) sim_hw_p=no;; | |
7645 | ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
7646 | *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
7647 | *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
7648 | esac | |
7649 | if test "$sim_hw_p" != yes; then | |
7650 | sim_hw_objs= | |
7651 | sim_hw_cflags="-DWITH_HW=0" | |
7652 | sim_hw= | |
7653 | else | |
7654 | sim_hw_cflags="-DWITH_HW=1" | |
7655 | # remove duplicates | |
7656 | sim_hw="" | |
7657 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
7658 | for i in x $hardware ; do | |
7659 | case " $f " in | |
7660 | x) ;; | |
7661 | *" $i "*) ;; | |
7662 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
7663 | esac | |
7664 | done | |
7665 | fi | |
7666 | if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then | |
7667 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
7668 | fi | |
7669 | else | |
b7026657 AC |
7670 | |
7671 | if test "$sim_hw_p" != yes; then | |
7672 | sim_hw_objs= | |
7673 | sim_hw_cflags="-DWITH_HW=0" | |
7674 | sim_hw= | |
7675 | fi | |
7676 | if test x"$silent" != x"yes"; then | |
7677 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
7678 | fi | |
7679 | fi; | |
7680 | ||
7681 | ||
7682 | ||
7683 | ||
7684 | ||
7685 | ||
7686 | ||
7687 | ||
7688 | for ac_func in time chmod utime fork execve execv chown | |
7689 | do | |
7690 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7691 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7692 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7693 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7695 | else | |
7696 | cat >conftest.$ac_ext <<_ACEOF | |
7697 | /* confdefs.h. */ | |
7698 | _ACEOF | |
7699 | cat confdefs.h >>conftest.$ac_ext | |
7700 | cat >>conftest.$ac_ext <<_ACEOF | |
7701 | /* end confdefs.h. */ | |
7702 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7704 | #define $ac_func innocuous_$ac_func | |
7705 | ||
7706 | /* System header to define __stub macros and hopefully few prototypes, | |
7707 | which can conflict with char $ac_func (); below. | |
7708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7709 | <limits.h> exists even on freestanding compilers. */ | |
7710 | ||
7711 | #ifdef __STDC__ | |
7712 | # include <limits.h> | |
7713 | #else | |
7714 | # include <assert.h> | |
7715 | #endif | |
7716 | ||
7717 | #undef $ac_func | |
7718 | ||
7719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7720 | #ifdef __cplusplus | |
7721 | extern "C" | |
7722 | { | |
7723 | #endif | |
7724 | /* We use char because int might match the return type of a gcc2 | |
7725 | builtin and then its argument prototype would still apply. */ | |
7726 | char $ac_func (); | |
7727 | /* The GNU C library defines this for functions which it implements | |
7728 | to always fail with ENOSYS. Some functions are actually named | |
7729 | something starting with __ and the normal name is an alias. */ | |
7730 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7731 | choke me | |
7732 | #else | |
7733 | char (*f) () = $ac_func; | |
7734 | #endif | |
7735 | #ifdef __cplusplus | |
7736 | } | |
7737 | #endif | |
7738 | ||
7739 | int | |
7740 | main () | |
7741 | { | |
7742 | return f != $ac_func; | |
7743 | ; | |
7744 | return 0; | |
7745 | } | |
7746 | _ACEOF | |
7747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7749 | (eval $ac_link) 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_exeext' | |
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 | |
7769 | eval "$as_ac_var=yes" | |
7770 | else | |
7771 | echo "$as_me: failed program was:" >&5 | |
7772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7773 | ||
7774 | eval "$as_ac_var=no" | |
7775 | fi | |
7776 | rm -f conftest.err conftest.$ac_objext \ | |
7777 | conftest$ac_exeext conftest.$ac_ext | |
7778 | fi | |
7779 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7780 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7781 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7782 | cat >>confdefs.h <<_ACEOF | |
7783 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7784 | _ACEOF | |
7785 | ||
7786 | fi | |
7787 | done | |
7788 | ||
7789 | ||
7790 | ||
7791 | ||
7792 | ||
7793 | ||
7794 | ||
7795 | for ac_header in unistd.h stdlib.h string.h strings.h utime.h time.h | |
7796 | do | |
7797 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7803 | fi | |
7804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7805 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7806 | else | |
7807 | # Is the header compilable? | |
7808 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7809 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7810 | cat >conftest.$ac_ext <<_ACEOF | |
7811 | /* confdefs.h. */ | |
7812 | _ACEOF | |
7813 | cat confdefs.h >>conftest.$ac_ext | |
7814 | cat >>conftest.$ac_ext <<_ACEOF | |
7815 | /* end confdefs.h. */ | |
7816 | $ac_includes_default | |
7817 | #include <$ac_header> | |
7818 | _ACEOF | |
7819 | rm -f conftest.$ac_objext | |
7820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7821 | (eval $ac_compile) 2>conftest.er1 | |
7822 | ac_status=$? | |
7823 | grep -v '^ *+' conftest.er1 >conftest.err | |
7824 | rm -f conftest.er1 | |
7825 | cat conftest.err >&5 | |
7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7827 | (exit $ac_status); } && | |
7828 | { ac_try='test -z "$ac_c_werror_flag" | |
7829 | || test ! -s conftest.err' | |
7830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7831 | (eval $ac_try) 2>&5 | |
7832 | ac_status=$? | |
7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7834 | (exit $ac_status); }; } && | |
7835 | { ac_try='test -s conftest.$ac_objext' | |
7836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7837 | (eval $ac_try) 2>&5 | |
7838 | ac_status=$? | |
7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7840 | (exit $ac_status); }; }; then | |
7841 | ac_header_compiler=yes | |
7842 | else | |
7843 | echo "$as_me: failed program was:" >&5 | |
7844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7845 | ||
7846 | ac_header_compiler=no | |
7847 | fi | |
7848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7849 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7850 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7851 | ||
7852 | # Is the header present? | |
7853 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7854 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7855 | cat >conftest.$ac_ext <<_ACEOF | |
7856 | /* confdefs.h. */ | |
7857 | _ACEOF | |
7858 | cat confdefs.h >>conftest.$ac_ext | |
7859 | cat >>conftest.$ac_ext <<_ACEOF | |
7860 | /* end confdefs.h. */ | |
7861 | #include <$ac_header> | |
7862 | _ACEOF | |
7863 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7864 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7865 | ac_status=$? | |
7866 | grep -v '^ *+' conftest.er1 >conftest.err | |
7867 | rm -f conftest.er1 | |
7868 | cat conftest.err >&5 | |
7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7870 | (exit $ac_status); } >/dev/null; then | |
7871 | if test -s conftest.err; then | |
7872 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7873 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7874 | else | |
7875 | ac_cpp_err= | |
7876 | fi | |
7877 | else | |
7878 | ac_cpp_err=yes | |
7879 | fi | |
7880 | if test -z "$ac_cpp_err"; then | |
7881 | ac_header_preproc=yes | |
7882 | else | |
7883 | echo "$as_me: failed program was:" >&5 | |
7884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7885 | ||
7886 | ac_header_preproc=no | |
7887 | fi | |
7888 | rm -f conftest.err conftest.$ac_ext | |
7889 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7890 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7891 | ||
7892 | # So? What about this header? | |
7893 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7894 | yes:no: ) | |
7895 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7896 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7897 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7898 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7899 | ac_header_preproc=yes | |
7900 | ;; | |
7901 | no:yes:* ) | |
7902 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7903 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7904 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7905 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7906 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7907 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7908 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7909 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7911 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7912 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7913 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7914 | ( | |
7915 | cat <<\_ASBOX | |
7916 | ## ------------------------------------------ ## | |
7917 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7918 | ## ------------------------------------------ ## | |
7919 | _ASBOX | |
7920 | ) | | |
7921 | sed "s/^/$as_me: WARNING: /" >&2 | |
7922 | ;; | |
7923 | esac | |
7924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7928 | else | |
7929 | eval "$as_ac_Header=\$ac_header_preproc" | |
7930 | fi | |
7931 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7932 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7933 | ||
7934 | fi | |
7935 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7936 | cat >>confdefs.h <<_ACEOF | |
7937 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7938 | _ACEOF | |
7939 | ||
7940 | fi | |
7941 | ||
7942 | done | |
7943 | ||
7944 | ||
7945 | ||
7946 | ac_sources="$sim_link_files" | |
7947 | ac_dests="$sim_link_links" | |
7948 | while test -n "$ac_sources"; do | |
7949 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
7950 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
7951 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
7952 | done | |
7953 | ac_config_links="$ac_config_links $ac_config_links_1" | |
7954 | ||
7955 | cgen_breaks="" | |
7956 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
7957 | cgen_breaks="break cgen_rtx_error"; | |
7958 | fi | |
7959 | ||
38f48d72 AC |
7960 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" |
7961 | ||
7962 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" | |
7963 | ||
7964 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" | |
7965 | ||
7966 | ac_config_commands="$ac_config_commands Makefile" | |
7967 | ||
7968 | ac_config_commands="$ac_config_commands stamp-h" | |
7969 | ||
b7026657 AC |
7970 | cat >confcache <<\_ACEOF |
7971 | # This file is a shell script that caches the results of configure | |
7972 | # tests run on this system so they can be shared between configure | |
7973 | # scripts and configure runs, see configure's option --config-cache. | |
7974 | # It is not useful on other systems. If it contains results you don't | |
7975 | # want to keep, you may remove or edit it. | |
7976 | # | |
7977 | # config.status only pays attention to the cache file if you give it | |
7978 | # the --recheck option to rerun configure. | |
7979 | # | |
7980 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7981 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7982 | # following values. | |
7983 | ||
7984 | _ACEOF | |
7985 | ||
7986 | # The following way of writing the cache mishandles newlines in values, | |
7987 | # but we know of no workaround that is simple, portable, and efficient. | |
7988 | # So, don't put newlines in cache variables' values. | |
7989 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7990 | # and sets the high bit in the cache file unless we assign to the vars. | |
7991 | { | |
7992 | (set) 2>&1 | | |
7993 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7994 | *ac_space=\ *) | |
7995 | # `set' does not quote correctly, so add quotes (double-quote | |
7996 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7997 | sed -n \ | |
7998 | "s/'/'\\\\''/g; | |
7999 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8000 | ;; | |
8001 | *) | |
8002 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8003 | sed -n \ | |
8004 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8005 | ;; | |
8006 | esac; | |
8007 | } | | |
8008 | sed ' | |
8009 | t clear | |
8010 | : clear | |
8011 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8012 | t end | |
8013 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8014 | : end' >>confcache | |
8015 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
8016 | if test -w $cache_file; then | |
8017 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
8018 | cat confcache >$cache_file | |
8019 | else | |
8020 | echo "not updating unwritable cache $cache_file" | |
8021 | fi | |
8022 | fi | |
8023 | rm -f confcache | |
8024 | ||
8025 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8026 | # Let make expand exec_prefix. | |
8027 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8028 | ||
8029 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8030 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8031 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8032 | # (actually we leave an empty line to preserve line numbers). | |
8033 | if test "x$srcdir" = x.; then | |
8034 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8035 | s/:*\$(srcdir):*/:/; | |
8036 | s/:*\${srcdir}:*/:/; | |
8037 | s/:*@srcdir@:*/:/; | |
8038 | s/^\([^=]*=[ ]*\):*/\1/; | |
8039 | s/:*$//; | |
8040 | s/^[^=]*=[ ]*$//; | |
8041 | }' | |
8042 | fi | |
8043 | ||
8044 | DEFS=-DHAVE_CONFIG_H | |
8045 | ||
8046 | ac_libobjs= | |
8047 | ac_ltlibobjs= | |
8048 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8049 | # 1. Remove the extension, and $U if already installed. | |
8050 | ac_i=`echo "$ac_i" | | |
8051 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
8052 | # 2. Add them. | |
8053 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
8054 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
8055 | done | |
8056 | LIBOBJS=$ac_libobjs | |
8057 | ||
8058 | LTLIBOBJS=$ac_ltlibobjs | |
8059 | ||
8060 | ||
8061 | ||
8062 | : ${CONFIG_STATUS=./config.status} | |
8063 | ac_clean_files_save=$ac_clean_files | |
8064 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8065 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8066 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8067 | cat >$CONFIG_STATUS <<_ACEOF | |
8068 | #! $SHELL | |
8069 | # Generated by $as_me. | |
8070 | # Run this file to recreate the current configuration. | |
8071 | # Compiler output produced by configure, useful for debugging | |
8072 | # configure, is in config.log if it exists. | |
8073 | ||
8074 | debug=false | |
8075 | ac_cs_recheck=false | |
8076 | ac_cs_silent=false | |
8077 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8078 | _ACEOF | |
8079 | ||
8080 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8081 | ## --------------------- ## | |
8082 | ## M4sh Initialization. ## | |
8083 | ## --------------------- ## | |
8084 | ||
8085 | # Be Bourne compatible | |
8086 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8087 | emulate sh | |
8088 | NULLCMD=: | |
8089 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
8090 | # is contrary to our usage. Disable this feature. | |
8091 | alias -g '${1+"$@"}'='"$@"' | |
8092 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8093 | set -o posix | |
8094 | fi | |
8095 | DUALCASE=1; export DUALCASE # for MKS sh | |
8096 | ||
8097 | # Support unset when possible. | |
8098 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8099 | as_unset=unset | |
8100 | else | |
8101 | as_unset=false | |
c906108c | 8102 | fi |
b7026657 AC |
8103 | |
8104 | ||
8105 | # Work around bugs in pre-3.0 UWIN ksh. | |
8106 | $as_unset ENV MAIL MAILPATH | |
8107 | PS1='$ ' | |
8108 | PS2='> ' | |
8109 | PS4='+ ' | |
8110 | ||
8111 | # NLS nuisances. | |
8112 | for as_var in \ | |
8113 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
8114 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
8115 | LC_TELEPHONE LC_TIME | |
8116 | do | |
8117 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
8118 | eval $as_var=C; export $as_var | |
8119 | else | |
8120 | $as_unset $as_var | |
8121 | fi | |
8122 | done | |
8123 | ||
8124 | # Required to use basename. | |
8125 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8126 | as_expr=expr | |
8127 | else | |
8128 | as_expr=false | |
c906108c | 8129 | fi |
b7026657 AC |
8130 | |
8131 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
8132 | as_basename=basename | |
8133 | else | |
8134 | as_basename=false | |
c906108c SS |
8135 | fi |
8136 | ||
8137 | ||
b7026657 AC |
8138 | # Name of the executable. |
8139 | as_me=`$as_basename "$0" || | |
8140 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8141 | X"$0" : 'X\(//\)$' \| \ | |
8142 | X"$0" : 'X\(/\)$' \| \ | |
8143 | . : '\(.\)' 2>/dev/null || | |
8144 | echo X/"$0" | | |
8145 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
8146 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
8147 | /^X\/\(\/\).*/{ s//\1/; q; } | |
8148 | s/.*/./; q'` | |
8149 | ||
8150 | ||
8151 | # PATH needs CR, and LINENO needs CR and PATH. | |
8152 | # Avoid depending upon Character Ranges. | |
8153 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8154 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8155 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8156 | as_cr_digits='0123456789' | |
8157 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8158 | ||
8159 | # The user is always right. | |
8160 | if test "${PATH_SEPARATOR+set}" != set; then | |
8161 | echo "#! /bin/sh" >conf$$.sh | |
8162 | echo "exit 0" >>conf$$.sh | |
8163 | chmod +x conf$$.sh | |
8164 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8165 | PATH_SEPARATOR=';' | |
8166 | else | |
8167 | PATH_SEPARATOR=: | |
8168 | fi | |
8169 | rm -f conf$$.sh | |
8170 | fi | |
8171 | ||
8172 | ||
8173 | as_lineno_1=$LINENO | |
8174 | as_lineno_2=$LINENO | |
8175 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8176 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8177 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
8178 | # Find who we are. Look in the path if we contain no path at all | |
8179 | # relative or not. | |
8180 | case $0 in | |
8181 | *[\\/]* ) as_myself=$0 ;; | |
8182 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8183 | for as_dir in $PATH | |
c906108c | 8184 | do |
b7026657 AC |
8185 | IFS=$as_save_IFS |
8186 | test -z "$as_dir" && as_dir=. | |
8187 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8188 | done | |
c906108c | 8189 | |
b7026657 AC |
8190 | ;; |
8191 | esac | |
8192 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8193 | # in which case we are not to be found in the path. | |
8194 | if test "x$as_myself" = x; then | |
8195 | as_myself=$0 | |
8196 | fi | |
8197 | if test ! -f "$as_myself"; then | |
8198 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
8199 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
8200 | { (exit 1); exit 1; }; } | |
8201 | fi | |
8202 | case $CONFIG_SHELL in | |
8203 | '') | |
8204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8205 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
8206 | do | |
8207 | IFS=$as_save_IFS | |
8208 | test -z "$as_dir" && as_dir=. | |
8209 | for as_base in sh bash ksh sh5; do | |
8210 | case $as_dir in | |
8211 | /*) | |
8212 | if ("$as_dir/$as_base" -c ' | |
8213 | as_lineno_1=$LINENO | |
8214 | as_lineno_2=$LINENO | |
8215 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8216 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8217 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
8218 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
8219 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
8220 | CONFIG_SHELL=$as_dir/$as_base | |
8221 | export CONFIG_SHELL | |
8222 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
8223 | fi;; | |
8224 | esac | |
8225 | done | |
8226 | done | |
8227 | ;; | |
8228 | esac | |
8229 | ||
8230 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8231 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8232 | # line-number line before each line; the second 'sed' does the real | |
8233 | # work. The second script uses 'N' to pair each line-number line | |
8234 | # with the numbered line, and appends trailing '-' during | |
8235 | # substitution so that $LINENO is not a special case at line end. | |
8236 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
8237 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
8238 | sed '=' <$as_myself | | |
8239 | sed ' | |
8240 | N | |
8241 | s,$,-, | |
8242 | : loop | |
8243 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
8244 | t loop | |
8245 | s,-$,, | |
8246 | s,^['$as_cr_digits']*\n,, | |
8247 | ' >$as_me.lineno && | |
8248 | chmod +x $as_me.lineno || | |
8249 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
8250 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
8251 | { (exit 1); exit 1; }; } | |
8252 | ||
8253 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8254 | # (the dirname of $[0] is not the place where we might find the | |
8255 | # original and so on. Autoconf is especially sensible to this). | |
8256 | . ./$as_me.lineno | |
8257 | # Exit status is that of the last command. | |
8258 | exit | |
8259 | } | |
c906108c | 8260 | |
c906108c | 8261 | |
b7026657 AC |
8262 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
8263 | *c*,-n*) ECHO_N= ECHO_C=' | |
8264 | ' ECHO_T=' ' ;; | |
8265 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
8266 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
8267 | esac | |
8268 | ||
8269 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8270 | as_expr=expr | |
c906108c | 8271 | else |
b7026657 | 8272 | as_expr=false |
c906108c | 8273 | fi |
b7026657 AC |
8274 | |
8275 | rm -f conf$$ conf$$.exe conf$$.file | |
8276 | echo >conf$$.file | |
8277 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8278 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8279 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8280 | if test -f conf$$.exe; then | |
8281 | # Don't use ln at all; we don't have any links | |
8282 | as_ln_s='cp -p' | |
8283 | else | |
8284 | as_ln_s='ln -s' | |
8285 | fi | |
8286 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8287 | as_ln_s=ln | |
8288 | else | |
8289 | as_ln_s='cp -p' | |
c906108c | 8290 | fi |
b7026657 | 8291 | rm -f conf$$ conf$$.exe conf$$.file |
c906108c | 8292 | |
b7026657 AC |
8293 | if mkdir -p . 2>/dev/null; then |
8294 | as_mkdir_p=: | |
c906108c | 8295 | else |
b7026657 AC |
8296 | test -d ./-p && rmdir ./-p |
8297 | as_mkdir_p=false | |
c906108c | 8298 | fi |
c906108c | 8299 | |
b7026657 AC |
8300 | as_executable_p="test -f" |
8301 | ||
8302 | # Sed expression to map a string onto a valid CPP name. | |
8303 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8304 | ||
8305 | # Sed expression to map a string onto a valid variable name. | |
8306 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8307 | ||
8308 | ||
8309 | # IFS | |
8310 | # We need space, tab and new line, in precisely that order. | |
8311 | as_nl=' | |
8312 | ' | |
8313 | IFS=" $as_nl" | |
8314 | ||
8315 | # CDPATH. | |
8316 | $as_unset CDPATH | |
8317 | ||
8318 | exec 6>&1 | |
8319 | ||
8320 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
8321 | # report actual input values of CONFIG_FILES etc. instead of their | |
8322 | # values after options handling. Logging --version etc. is OK. | |
8323 | exec 5>>config.log | |
8324 | { | |
8325 | echo | |
8326 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8327 | ## Running $as_me. ## | |
8328 | _ASBOX | |
8329 | } >&5 | |
8330 | cat >&5 <<_CSEOF | |
8331 | ||
8332 | This file was extended by $as_me, which was | |
8333 | generated by GNU Autoconf 2.59. Invocation command line was | |
8334 | ||
8335 | CONFIG_FILES = $CONFIG_FILES | |
8336 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8337 | CONFIG_LINKS = $CONFIG_LINKS | |
8338 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8339 | $ $0 $@ | |
8340 | ||
8341 | _CSEOF | |
8342 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
8343 | echo >&5 | |
8344 | _ACEOF | |
8345 | ||
8346 | # Files that config.status was made for. | |
8347 | if test -n "$ac_config_files"; then | |
8348 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
c906108c | 8349 | fi |
b7026657 AC |
8350 | |
8351 | if test -n "$ac_config_headers"; then | |
8352 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
c906108c | 8353 | fi |
b7026657 AC |
8354 | |
8355 | if test -n "$ac_config_links"; then | |
8356 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
c906108c | 8357 | fi |
c906108c | 8358 | |
b7026657 AC |
8359 | if test -n "$ac_config_commands"; then |
8360 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8361 | fi | |
c906108c | 8362 | |
b7026657 | 8363 | cat >>$CONFIG_STATUS <<\_ACEOF |
c906108c | 8364 | |
b7026657 AC |
8365 | ac_cs_usage="\ |
8366 | \`$as_me' instantiates files from templates according to the | |
8367 | current configuration. | |
c906108c | 8368 | |
b7026657 | 8369 | Usage: $0 [OPTIONS] [FILE]... |
c906108c | 8370 | |
b7026657 AC |
8371 | -h, --help print this help, then exit |
8372 | -V, --version print version number, then exit | |
8373 | -q, --quiet do not print progress messages | |
8374 | -d, --debug don't remove temporary files | |
8375 | --recheck update $as_me by reconfiguring in the same conditions | |
8376 | --file=FILE[:TEMPLATE] | |
8377 | instantiate the configuration file FILE | |
8378 | --header=FILE[:TEMPLATE] | |
8379 | instantiate the configuration header FILE | |
8380 | ||
8381 | Configuration files: | |
8382 | $config_files | |
8383 | ||
8384 | Configuration headers: | |
8385 | $config_headers | |
8386 | ||
8387 | Configuration links: | |
8388 | $config_links | |
8389 | ||
8390 | Configuration commands: | |
8391 | $config_commands | |
8392 | ||
8393 | Report bugs to <bug-autoconf@gnu.org>." | |
8394 | _ACEOF | |
8395 | ||
8396 | cat >>$CONFIG_STATUS <<_ACEOF | |
8397 | ac_cs_version="\\ | |
8398 | config.status | |
8399 | configured by $0, generated by GNU Autoconf 2.59, | |
8400 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8401 | ||
8402 | Copyright (C) 2003 Free Software Foundation, Inc. | |
8403 | This config.status script is free software; the Free Software Foundation | |
8404 | gives unlimited permission to copy, distribute and modify it." | |
8405 | srcdir=$srcdir | |
8406 | INSTALL="$INSTALL" | |
8407 | _ACEOF | |
8408 | ||
8409 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8410 | # If no file are specified by the user, then we need to provide default | |
8411 | # value. By we need to know if files were specified by the user. | |
8412 | ac_need_defaults=: | |
8413 | while test $# != 0 | |
8414 | do | |
8415 | case $1 in | |
8416 | --*=*) | |
8417 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8418 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8419 | ac_shift=: | |
c906108c | 8420 | ;; |
b7026657 AC |
8421 | -*) |
8422 | ac_option=$1 | |
8423 | ac_optarg=$2 | |
8424 | ac_shift=shift | |
c906108c | 8425 | ;; |
b7026657 AC |
8426 | *) # This is not an option, so the user has probably given explicit |
8427 | # arguments. | |
8428 | ac_option=$1 | |
8429 | ac_need_defaults=false;; | |
8430 | esac | |
c906108c | 8431 | |
b7026657 AC |
8432 | case $ac_option in |
8433 | # Handling of the options. | |
8434 | _ACEOF | |
8435 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8436 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8437 | ac_cs_recheck=: ;; | |
8438 | --version | --vers* | -V ) | |
8439 | echo "$ac_cs_version"; exit 0 ;; | |
8440 | --he | --h) | |
8441 | # Conflict between --help and --header | |
8442 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8443 | Try \`$0 --help' for more information." >&5 | |
8444 | echo "$as_me: error: ambiguous option: $1 | |
8445 | Try \`$0 --help' for more information." >&2;} | |
8446 | { (exit 1); exit 1; }; };; | |
8447 | --help | --hel | -h ) | |
8448 | echo "$ac_cs_usage"; exit 0 ;; | |
8449 | --debug | --d* | -d ) | |
8450 | debug=: ;; | |
8451 | --file | --fil | --fi | --f ) | |
8452 | $ac_shift | |
8453 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8454 | ac_need_defaults=false;; | |
8455 | --header | --heade | --head | --hea ) | |
8456 | $ac_shift | |
8457 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8458 | ac_need_defaults=false;; | |
8459 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8460 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8461 | ac_cs_silent=: ;; | |
c906108c | 8462 | |
b7026657 AC |
8463 | # This is an error. |
8464 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8465 | Try \`$0 --help' for more information." >&5 | |
8466 | echo "$as_me: error: unrecognized option: $1 | |
8467 | Try \`$0 --help' for more information." >&2;} | |
8468 | { (exit 1); exit 1; }; } ;; | |
c906108c | 8469 | |
b7026657 AC |
8470 | *) ac_config_targets="$ac_config_targets $1" ;; |
8471 | ||
8472 | esac | |
8473 | shift | |
8474 | done | |
8475 | ||
8476 | ac_configure_extra_args= | |
8477 | ||
8478 | if $ac_cs_silent; then | |
8479 | exec 6>/dev/null | |
8480 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c SS |
8481 | fi |
8482 | ||
b7026657 AC |
8483 | _ACEOF |
8484 | cat >>$CONFIG_STATUS <<_ACEOF | |
8485 | if \$ac_cs_recheck; then | |
8486 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
8487 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
8488 | fi | |
c906108c | 8489 | |
b7026657 | 8490 | _ACEOF |
c906108c | 8491 | |
c906108c | 8492 | |
c906108c | 8493 | |
b7026657 AC |
8494 | |
8495 | ||
8496 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8497 | for ac_config_target in $ac_config_targets | |
c906108c | 8498 | do |
b7026657 AC |
8499 | case "$ac_config_target" in |
8500 | # Handling of arguments. | |
8501 | "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
8502 | "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
8503 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
8504 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
38f48d72 AC |
8505 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
8506 | "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
b7026657 AC |
8507 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
8508 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
8509 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8510 | { (exit 1); exit 1; }; };; | |
c906108c SS |
8511 | esac |
8512 | done | |
8513 | ||
b7026657 AC |
8514 | # If the user did not use the arguments to specify the items to instantiate, |
8515 | # then the envvar interface is used. Set only those that are not. | |
8516 | # We use the long form for the default assignment because of an extremely | |
8517 | # bizarre bug on SunOS 4.1.3. | |
8518 | if $ac_need_defaults; then | |
8519 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8520 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8521 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
8522 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8523 | fi | |
8524 | ||
8525 | # Have a temporary directory for convenience. Make it in the build tree | |
8526 | # simply because there is no reason to put it here, and in addition, | |
8527 | # creating and moving files from /tmp can sometimes cause problems. | |
8528 | # Create a temporary directory, and hook for its removal unless debugging. | |
8529 | $debug || | |
8530 | { | |
8531 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8532 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
8533 | } | |
c906108c | 8534 | |
b7026657 | 8535 | # Create a (secure) tmp directory for tmp files. |
c906108c | 8536 | |
b7026657 AC |
8537 | { |
8538 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
8539 | test -n "$tmp" && test -d "$tmp" | |
8540 | } || | |
8541 | { | |
8542 | tmp=./confstat$$-$RANDOM | |
8543 | (umask 077 && mkdir $tmp) | |
8544 | } || | |
8545 | { | |
8546 | echo "$me: cannot create a temporary directory in ." >&2 | |
8547 | { (exit 1); exit 1; } | |
8548 | } | |
8549 | ||
8550 | _ACEOF | |
8551 | ||
8552 | cat >>$CONFIG_STATUS <<_ACEOF | |
8553 | ||
8554 | # | |
8555 | # CONFIG_FILES section. | |
8556 | # | |
c906108c | 8557 | |
b7026657 AC |
8558 | # No need to generate the scripts if there are no CONFIG_FILES. |
8559 | # This happens for instance when ./config.status config.h | |
8560 | if test -n "\$CONFIG_FILES"; then | |
8561 | # Protect against being on the right side of a sed subst in config.status. | |
8562 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8563 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
b7026657 AC |
8564 | s,@SHELL@,$SHELL,;t t |
8565 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8566 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8567 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8568 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8569 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8570 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8571 | s,@exec_prefix@,$exec_prefix,;t t | |
8572 | s,@prefix@,$prefix,;t t | |
8573 | s,@program_transform_name@,$program_transform_name,;t t | |
8574 | s,@bindir@,$bindir,;t t | |
8575 | s,@sbindir@,$sbindir,;t t | |
8576 | s,@libexecdir@,$libexecdir,;t t | |
8577 | s,@datadir@,$datadir,;t t | |
8578 | s,@sysconfdir@,$sysconfdir,;t t | |
8579 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8580 | s,@localstatedir@,$localstatedir,;t t | |
8581 | s,@libdir@,$libdir,;t t | |
8582 | s,@includedir@,$includedir,;t t | |
8583 | s,@oldincludedir@,$oldincludedir,;t t | |
8584 | s,@infodir@,$infodir,;t t | |
8585 | s,@mandir@,$mandir,;t t | |
8586 | s,@build_alias@,$build_alias,;t t | |
8587 | s,@host_alias@,$host_alias,;t t | |
8588 | s,@target_alias@,$target_alias,;t t | |
8589 | s,@DEFS@,$DEFS,;t t | |
8590 | s,@ECHO_C@,$ECHO_C,;t t | |
8591 | s,@ECHO_N@,$ECHO_N,;t t | |
8592 | s,@ECHO_T@,$ECHO_T,;t t | |
8593 | s,@LIBS@,$LIBS,;t t | |
35695fd6 AC |
8594 | s,@sim_environment@,$sim_environment,;t t |
8595 | s,@sim_alignment@,$sim_alignment,;t t | |
8596 | s,@sim_assert@,$sim_assert,;t t | |
8597 | s,@sim_bitsize@,$sim_bitsize,;t t | |
8598 | s,@sim_endian@,$sim_endian,;t t | |
8599 | s,@sim_hostendian@,$sim_hostendian,;t t | |
8600 | s,@sim_float@,$sim_float,;t t | |
8601 | s,@sim_scache@,$sim_scache,;t t | |
8602 | s,@sim_default_model@,$sim_default_model,;t t | |
8603 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
8604 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
8605 | s,@sim_hw@,$sim_hw,;t t | |
8606 | s,@sim_inline@,$sim_inline,;t t | |
8607 | s,@sim_packages@,$sim_packages,;t t | |
8608 | s,@sim_regparm@,$sim_regparm,;t t | |
8609 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
8610 | s,@sim_smp@,$sim_smp,;t t | |
8611 | s,@sim_stdcall@,$sim_stdcall,;t t | |
8612 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
8613 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
8614 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
b7026657 AC |
8615 | s,@build@,$build,;t t |
8616 | s,@build_cpu@,$build_cpu,;t t | |
8617 | s,@build_vendor@,$build_vendor,;t t | |
8618 | s,@build_os@,$build_os,;t t | |
8619 | s,@host@,$host,;t t | |
8620 | s,@host_cpu@,$host_cpu,;t t | |
8621 | s,@host_vendor@,$host_vendor,;t t | |
8622 | s,@host_os@,$host_os,;t t | |
8623 | s,@target@,$target,;t t | |
8624 | s,@target_cpu@,$target_cpu,;t t | |
8625 | s,@target_vendor@,$target_vendor,;t t | |
8626 | s,@target_os@,$target_os,;t t | |
8627 | s,@CC@,$CC,;t t | |
8628 | s,@CFLAGS@,$CFLAGS,;t t | |
8629 | s,@LDFLAGS@,$LDFLAGS,;t t | |
8630 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
8631 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
8632 | s,@EXEEXT@,$EXEEXT,;t t | |
8633 | s,@OBJEXT@,$OBJEXT,;t t | |
8634 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8635 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8636 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
8637 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
8638 | s,@HDEFINES@,$HDEFINES,;t t | |
8639 | s,@AR@,$AR,;t t | |
8640 | s,@RANLIB@,$RANLIB,;t t | |
8641 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
35695fd6 | 8642 | s,@SET_MAKE@,$SET_MAKE,;t t |
b7026657 AC |
8643 | s,@CPP@,$CPP,;t t |
8644 | s,@EGREP@,$EGREP,;t t | |
35695fd6 AC |
8645 | s,@ALLOCA@,$ALLOCA,;t t |
8646 | s,@USE_NLS@,$USE_NLS,;t t | |
8647 | s,@MSGFMT@,$MSGFMT,;t t | |
8648 | s,@GMSGFMT@,$GMSGFMT,;t t | |
8649 | s,@XGETTEXT@,$XGETTEXT,;t t | |
8650 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
8651 | s,@CATALOGS@,$CATALOGS,;t t | |
8652 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
8653 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
8654 | s,@GMOFILES@,$GMOFILES,;t t | |
8655 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
8656 | s,@INTLDEPS@,$INTLDEPS,;t t | |
8657 | s,@INTLLIBS@,$INTLLIBS,;t t | |
8658 | s,@INTLOBJS@,$INTLOBJS,;t t | |
8659 | s,@POFILES@,$POFILES,;t t | |
8660 | s,@POSUB@,$POSUB,;t t | |
8661 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
8662 | s,@GT_NO@,$GT_NO,;t t | |
8663 | s,@GT_YES@,$GT_YES,;t t | |
8664 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
8665 | s,@l@,$l,;t t | |
b7026657 AC |
8666 | s,@MAINT@,$MAINT,;t t |
8667 | s,@sim_bswap@,$sim_bswap,;t t | |
8668 | s,@sim_cflags@,$sim_cflags,;t t | |
8669 | s,@sim_debug@,$sim_debug,;t t | |
8670 | s,@sim_stdio@,$sim_stdio,;t t | |
8671 | s,@sim_trace@,$sim_trace,;t t | |
8672 | s,@sim_profile@,$sim_profile,;t t | |
8673 | s,@cgen_breaks@,$cgen_breaks,;t t | |
8674 | s,@LIBOBJS@,$LIBOBJS,;t t | |
8675 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 8676 | CEOF |
b7026657 AC |
8677 | |
8678 | _ACEOF | |
8679 | ||
8680 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8681 | # Split the substitutions into bite-sized pieces for seds with | |
8682 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8683 | ac_max_sed_lines=48 | |
8684 | ac_sed_frag=1 # Number of current file. | |
8685 | ac_beg=1 # First line for current file. | |
8686 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8687 | ac_more_lines=: | |
8688 | ac_sed_cmds= | |
8689 | while $ac_more_lines; do | |
8690 | if test $ac_beg -gt 1; then | |
8691 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
c906108c | 8692 | else |
b7026657 AC |
8693 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
8694 | fi | |
8695 | if test ! -s $tmp/subs.frag; then | |
8696 | ac_more_lines=false | |
8697 | else | |
8698 | # The purpose of the label and of the branching condition is to | |
8699 | # speed up the sed processing (if there are no `@' at all, there | |
8700 | # is no need to browse any of the substitutions). | |
8701 | # These are the two extra sed commands mentioned above. | |
8702 | (echo ':t | |
8703 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8704 | if test -z "$ac_sed_cmds"; then | |
8705 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8706 | else | |
8707 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8708 | fi | |
8709 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8710 | ac_beg=$ac_end | |
8711 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 8712 | fi |
b7026657 AC |
8713 | done |
8714 | if test -z "$ac_sed_cmds"; then | |
8715 | ac_sed_cmds=cat | |
c906108c | 8716 | fi |
b7026657 | 8717 | fi # test -n "$CONFIG_FILES" |
c906108c | 8718 | |
b7026657 AC |
8719 | _ACEOF |
8720 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8721 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 8722 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
8723 | case $ac_file in |
8724 | - | *:- | *:-:* ) # input from stdin | |
8725 | cat >$tmp/stdin | |
8726 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8727 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8728 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8729 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8730 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
8731 | esac |
8732 | ||
b7026657 AC |
8733 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8734 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8735 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8736 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8737 | X"$ac_file" : 'X\(//\)$' \| \ | |
8738 | X"$ac_file" : 'X\(/\)' \| \ | |
8739 | . : '\(.\)' 2>/dev/null || | |
8740 | echo X"$ac_file" | | |
8741 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8742 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8743 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8744 | /^X\(\/\).*/{ s//\1/; q; } | |
8745 | s/.*/./; q'` | |
8746 | { if $as_mkdir_p; then | |
8747 | mkdir -p "$ac_dir" | |
c906108c | 8748 | else |
b7026657 AC |
8749 | as_dir="$ac_dir" |
8750 | as_dirs= | |
8751 | while test ! -d "$as_dir"; do | |
8752 | as_dirs="$as_dir $as_dirs" | |
8753 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8754 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8755 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8756 | X"$as_dir" : 'X\(//\)$' \| \ | |
8757 | X"$as_dir" : 'X\(/\)' \| \ | |
8758 | . : '\(.\)' 2>/dev/null || | |
8759 | echo X"$as_dir" | | |
8760 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8761 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8762 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8763 | /^X\(\/\).*/{ s//\1/; q; } | |
8764 | s/.*/./; q'` | |
8765 | done | |
8766 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8767 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8768 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8769 | { (exit 1); exit 1; }; }; } | |
8770 | ||
8771 | ac_builddir=. | |
c906108c | 8772 | |
b7026657 AC |
8773 | if test "$ac_dir" != .; then |
8774 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8775 | # A "../" for each directory in $ac_dir_suffix. | |
8776 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8777 | else | |
8778 | ac_dir_suffix= ac_top_builddir= | |
8779 | fi | |
8780 | ||
8781 | case $srcdir in | |
8782 | .) # No --srcdir option. We are building in place. | |
8783 | ac_srcdir=. | |
8784 | if test -z "$ac_top_builddir"; then | |
8785 | ac_top_srcdir=. | |
8786 | else | |
8787 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8788 | fi ;; | |
8789 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8790 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8791 | ac_top_srcdir=$srcdir ;; | |
c906108c | 8792 | *) # Relative path. |
b7026657 AC |
8793 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8794 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8795 | esac | |
c906108c | 8796 | |
b7026657 AC |
8797 | # Do not use `cd foo && pwd` to compute absolute paths, because |
8798 | # the directories may not exist. | |
8799 | case `pwd` in | |
8800 | .) ac_abs_builddir="$ac_dir";; | |
8801 | *) | |
8802 | case "$ac_dir" in | |
8803 | .) ac_abs_builddir=`pwd`;; | |
8804 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8805 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8806 | esac;; | |
8807 | esac | |
8808 | case $ac_abs_builddir in | |
8809 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8810 | *) | |
8811 | case ${ac_top_builddir}. in | |
8812 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8813 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8814 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8815 | esac;; | |
8816 | esac | |
8817 | case $ac_abs_builddir in | |
8818 | .) ac_abs_srcdir=$ac_srcdir;; | |
8819 | *) | |
8820 | case $ac_srcdir in | |
8821 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8822 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8823 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8824 | esac;; | |
8825 | esac | |
8826 | case $ac_abs_builddir in | |
8827 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8828 | *) | |
8829 | case $ac_top_srcdir in | |
8830 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8831 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8832 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8833 | esac;; | |
8834 | esac | |
c906108c | 8835 | |
b7026657 AC |
8836 | |
8837 | case $INSTALL in | |
8838 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8839 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
8840 | esac |
8841 | ||
b7026657 AC |
8842 | if test x"$ac_file" != x-; then |
8843 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8844 | echo "$as_me: creating $ac_file" >&6;} | |
8845 | rm -f "$ac_file" | |
8846 | fi | |
8847 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8848 | # use $as_me), people would be surprised to read: | |
8849 | # /* config.h. Generated by config.status. */ | |
8850 | if test x"$ac_file" = x-; then | |
8851 | configure_input= | |
8852 | else | |
8853 | configure_input="$ac_file. " | |
8854 | fi | |
8855 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8856 | sed 's,.*/,,'` by configure." | |
8857 | ||
8858 | # First look for the input files in the build tree, otherwise in the | |
8859 | # src tree. | |
8860 | ac_file_inputs=`IFS=: | |
8861 | for f in $ac_file_in; do | |
8862 | case $f in | |
8863 | -) echo $tmp/stdin ;; | |
8864 | [\\/$]*) | |
8865 | # Absolute (can't be DOS-style, as IFS=:) | |
8866 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8867 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8868 | { (exit 1); exit 1; }; } | |
8869 | echo "$f";; | |
8870 | *) # Relative | |
8871 | if test -f "$f"; then | |
8872 | # Build tree | |
8873 | echo "$f" | |
8874 | elif test -f "$srcdir/$f"; then | |
8875 | # Source tree | |
8876 | echo "$srcdir/$f" | |
8877 | else | |
8878 | # /dev/null tree | |
8879 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8880 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8881 | { (exit 1); exit 1; }; } | |
8882 | fi;; | |
8883 | esac | |
8884 | done` || { (exit 1); exit 1; } | |
8885 | _ACEOF | |
8886 | cat >>$CONFIG_STATUS <<_ACEOF | |
8887 | sed "$ac_vpsub | |
8888 | $extrasub | |
8889 | _ACEOF | |
8890 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8891 | :t | |
8892 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8893 | s,@configure_input@,$configure_input,;t t | |
8894 | s,@srcdir@,$ac_srcdir,;t t | |
8895 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8896 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8897 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8898 | s,@builddir@,$ac_builddir,;t t | |
8899 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8900 | s,@top_builddir@,$ac_top_builddir,;t t | |
8901 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8902 | s,@INSTALL@,$ac_INSTALL,;t t | |
8903 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8904 | rm -f $tmp/stdin | |
8905 | if test x"$ac_file" != x-; then | |
8906 | mv $tmp/out $ac_file | |
8907 | else | |
8908 | cat $tmp/out | |
8909 | rm -f $tmp/out | |
8910 | fi | |
8911 | ||
8912 | done | |
8913 | _ACEOF | |
8914 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8915 | ||
8916 | # | |
8917 | # CONFIG_HEADER section. | |
8918 | # | |
c906108c SS |
8919 | |
8920 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8921 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8922 | # | |
8923 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
8924 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
8925 | ac_dB='[ ].*$,\1#\2' | |
8926 | ac_dC=' ' | |
8927 | ac_dD=',;t' | |
8928 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8929 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
8930 | ac_uB='$,\1#\2define\3' | |
c906108c | 8931 | ac_uC=' ' |
b7026657 AC |
8932 | ac_uD=',;t' |
8933 | ||
8934 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 8935 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
8936 | case $ac_file in |
8937 | - | *:- | *:-:* ) # input from stdin | |
8938 | cat >$tmp/stdin | |
8939 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8940 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8941 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8942 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8943 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
8944 | esac |
8945 | ||
b7026657 AC |
8946 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
8947 | echo "$as_me: creating $ac_file" >&6;} | |
8948 | ||
8949 | # First look for the input files in the build tree, otherwise in the | |
8950 | # src tree. | |
8951 | ac_file_inputs=`IFS=: | |
8952 | for f in $ac_file_in; do | |
8953 | case $f in | |
8954 | -) echo $tmp/stdin ;; | |
8955 | [\\/$]*) | |
8956 | # Absolute (can't be DOS-style, as IFS=:) | |
8957 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8958 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8959 | { (exit 1); exit 1; }; } | |
8960 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
8961 | echo "$f";; | |
8962 | *) # Relative | |
8963 | if test -f "$f"; then | |
8964 | # Build tree | |
8965 | echo "$f" | |
8966 | elif test -f "$srcdir/$f"; then | |
8967 | # Source tree | |
8968 | echo "$srcdir/$f" | |
8969 | else | |
8970 | # /dev/null tree | |
8971 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8972 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8973 | { (exit 1); exit 1; }; } | |
8974 | fi;; | |
8975 | esac | |
8976 | done` || { (exit 1); exit 1; } | |
8977 | # Remove the trailing spaces. | |
8978 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
8979 | ||
8980 | _ACEOF | |
8981 | ||
8982 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
8983 | # `conftest.undefs', that substitutes the proper values into | |
8984 | # config.h.in to produce config.h. The first handles `#define' | |
8985 | # templates, and the second `#undef' templates. | |
8986 | # And first: Protect against being on the right side of a sed subst in | |
8987 | # config.status. Protect against being in an unquoted here document | |
8988 | # in config.status. | |
8989 | rm -f conftest.defines conftest.undefs | |
8990 | # Using a here document instead of a string reduces the quoting nightmare. | |
8991 | # Putting comments in sed scripts is not portable. | |
8992 | # | |
8993 | # `end' is used to avoid that the second main sed command (meant for | |
8994 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
8995 | # See the Autoconf documentation for `clear'. | |
8996 | cat >confdef2sed.sed <<\_ACEOF | |
8997 | s/[\\&,]/\\&/g | |
8998 | s,[\\$`],\\&,g | |
8999 | t clear | |
9000 | : clear | |
9001 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
9002 | t end | |
9003 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9004 | : end | |
9005 | _ACEOF | |
9006 | # If some macros were called several times there might be several times | |
9007 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9008 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9009 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9010 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9011 | rm -f confdef2sed.sed | |
c906108c SS |
9012 | |
9013 | # This sed command replaces #undef with comments. This is necessary, for | |
9014 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9015 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
9016 | cat >>conftest.undefs <<\_ACEOF |
9017 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
9018 | _ACEOF | |
9019 | ||
9020 | # Break up conftest.defines because some shells have a limit on the size | |
9021 | # of here documents, and old seds have small limits too (100 cmds). | |
9022 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9023 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9024 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9025 | echo ' :' >>$CONFIG_STATUS | |
9026 | rm -f conftest.tail | |
9027 | while grep . conftest.defines >/dev/null | |
9028 | do | |
9029 | # Write a limited-size here document to $tmp/defines.sed. | |
9030 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9031 | # Speed up: don't consider the non `#define' lines. | |
9032 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9033 | # Work around the forget-to-reset-the-flag bug. | |
9034 | echo 't clr' >>$CONFIG_STATUS | |
9035 | echo ': clr' >>$CONFIG_STATUS | |
9036 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9037 | echo 'CEOF | |
9038 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9039 | rm -f $tmp/in | |
9040 | mv $tmp/out $tmp/in | |
9041 | ' >>$CONFIG_STATUS | |
9042 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9043 | rm -f conftest.defines | |
9044 | mv conftest.tail conftest.defines | |
9045 | done | |
9046 | rm -f conftest.defines | |
9047 | echo ' fi # grep' >>$CONFIG_STATUS | |
9048 | echo >>$CONFIG_STATUS | |
c906108c | 9049 | |
b7026657 AC |
9050 | # Break up conftest.undefs because some shells have a limit on the size |
9051 | # of here documents, and old seds have small limits too (100 cmds). | |
9052 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 9053 | rm -f conftest.tail |
b7026657 | 9054 | while grep . conftest.undefs >/dev/null |
c906108c | 9055 | do |
b7026657 AC |
9056 | # Write a limited-size here document to $tmp/undefs.sed. |
9057 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9058 | # Speed up: don't consider the non `#undef' | |
9059 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9060 | # Work around the forget-to-reset-the-flag bug. | |
9061 | echo 't clr' >>$CONFIG_STATUS | |
9062 | echo ': clr' >>$CONFIG_STATUS | |
9063 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 9064 | echo 'CEOF |
b7026657 AC |
9065 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
9066 | rm -f $tmp/in | |
9067 | mv $tmp/out $tmp/in | |
9068 | ' >>$CONFIG_STATUS | |
9069 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9070 | rm -f conftest.undefs | |
9071 | mv conftest.tail conftest.undefs | |
c906108c | 9072 | done |
b7026657 AC |
9073 | rm -f conftest.undefs |
9074 | ||
9075 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9076 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9077 | # use $as_me), people would be surprised to read: | |
9078 | # /* config.h. Generated by config.status. */ | |
9079 | if test x"$ac_file" = x-; then | |
9080 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 9081 | else |
b7026657 | 9082 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 9083 | fi |
b7026657 AC |
9084 | cat $tmp/in >>$tmp/config.h |
9085 | rm -f $tmp/in | |
9086 | if test x"$ac_file" != x-; then | |
9087 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
9088 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9089 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9090 | else | |
9091 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9092 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9093 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9094 | X"$ac_file" : 'X\(//\)$' \| \ | |
9095 | X"$ac_file" : 'X\(/\)' \| \ | |
9096 | . : '\(.\)' 2>/dev/null || | |
9097 | echo X"$ac_file" | | |
9098 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9099 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9100 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9101 | /^X\(\/\).*/{ s//\1/; q; } | |
9102 | s/.*/./; q'` | |
9103 | { if $as_mkdir_p; then | |
9104 | mkdir -p "$ac_dir" | |
9105 | else | |
9106 | as_dir="$ac_dir" | |
9107 | as_dirs= | |
9108 | while test ! -d "$as_dir"; do | |
9109 | as_dirs="$as_dir $as_dirs" | |
9110 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9111 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9112 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9113 | X"$as_dir" : 'X\(//\)$' \| \ | |
9114 | X"$as_dir" : 'X\(/\)' \| \ | |
9115 | . : '\(.\)' 2>/dev/null || | |
9116 | echo X"$as_dir" | | |
9117 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9118 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9119 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9120 | /^X\(\/\).*/{ s//\1/; q; } | |
9121 | s/.*/./; q'` | |
9122 | done | |
9123 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9124 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9125 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9126 | { (exit 1); exit 1; }; }; } | |
c906108c | 9127 | |
b7026657 AC |
9128 | rm -f $ac_file |
9129 | mv $tmp/config.h $ac_file | |
9130 | fi | |
9131 | else | |
9132 | cat $tmp/config.h | |
9133 | rm -f $tmp/config.h | |
9134 | fi | |
9135 | done | |
9136 | _ACEOF | |
9137 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 9138 | |
b7026657 AC |
9139 | # |
9140 | # CONFIG_LINKS section. | |
9141 | # | |
c906108c | 9142 | |
b7026657 AC |
9143 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
9144 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9145 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 9146 | |
b7026657 AC |
9147 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
9148 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
9149 | |
9150 | if test ! -r $srcdir/$ac_source; then | |
b7026657 AC |
9151 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
9152 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
9153 | { (exit 1); exit 1; }; } | |
c906108c SS |
9154 | fi |
9155 | rm -f $ac_dest | |
9156 | ||
9157 | # Make relative symlinks. | |
b7026657 AC |
9158 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
9159 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9160 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9161 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9162 | X"$ac_dest" : 'X\(/\)' \| \ | |
9163 | . : '\(.\)' 2>/dev/null || | |
9164 | echo X"$ac_dest" | | |
9165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9166 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9167 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9168 | /^X\(\/\).*/{ s//\1/; q; } | |
9169 | s/.*/./; q'` | |
9170 | { if $as_mkdir_p; then | |
9171 | mkdir -p "$ac_dest_dir" | |
c906108c | 9172 | else |
b7026657 AC |
9173 | as_dir="$ac_dest_dir" |
9174 | as_dirs= | |
9175 | while test ! -d "$as_dir"; do | |
9176 | as_dirs="$as_dir $as_dirs" | |
9177 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9178 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9179 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9180 | X"$as_dir" : 'X\(//\)$' \| \ | |
9181 | X"$as_dir" : 'X\(/\)' \| \ | |
9182 | . : '\(.\)' 2>/dev/null || | |
9183 | echo X"$as_dir" | | |
9184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9185 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9186 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9187 | /^X\(\/\).*/{ s//\1/; q; } | |
9188 | s/.*/./; q'` | |
9189 | done | |
9190 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9191 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
9192 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
9193 | { (exit 1); exit 1; }; }; } | |
9194 | ||
9195 | ac_builddir=. | |
9196 | ||
9197 | if test "$ac_dest_dir" != .; then | |
9198 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
9199 | # A "../" for each directory in $ac_dir_suffix. | |
9200 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9201 | else | |
9202 | ac_dir_suffix= ac_top_builddir= | |
9203 | fi | |
9204 | ||
9205 | case $srcdir in | |
9206 | .) # No --srcdir option. We are building in place. | |
9207 | ac_srcdir=. | |
9208 | if test -z "$ac_top_builddir"; then | |
9209 | ac_top_srcdir=. | |
9210 | else | |
9211 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9212 | fi ;; | |
9213 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9214 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9215 | ac_top_srcdir=$srcdir ;; | |
9216 | *) # Relative path. | |
9217 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9218 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9219 | esac | |
9220 | ||
9221 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9222 | # the directories may not exist. | |
9223 | case `pwd` in | |
9224 | .) ac_abs_builddir="$ac_dest_dir";; | |
9225 | *) | |
9226 | case "$ac_dest_dir" in | |
9227 | .) ac_abs_builddir=`pwd`;; | |
9228 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
9229 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
9230 | esac;; | |
9231 | esac | |
9232 | case $ac_abs_builddir in | |
9233 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9234 | *) | |
9235 | case ${ac_top_builddir}. in | |
9236 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9237 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9238 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9239 | esac;; | |
9240 | esac | |
9241 | case $ac_abs_builddir in | |
9242 | .) ac_abs_srcdir=$ac_srcdir;; | |
9243 | *) | |
9244 | case $ac_srcdir in | |
9245 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9246 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9247 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9248 | esac;; | |
9249 | esac | |
9250 | case $ac_abs_builddir in | |
9251 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9252 | *) | |
9253 | case $ac_top_srcdir in | |
9254 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9255 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9256 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9257 | esac;; | |
9258 | esac | |
c906108c | 9259 | |
b7026657 AC |
9260 | |
9261 | case $srcdir in | |
9262 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
9263 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
9264 | esac |
9265 | ||
b7026657 AC |
9266 | # Try a symlink, then a hard link, then a copy. |
9267 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
9268 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
9269 | cp -p $srcdir/$ac_source $ac_dest || | |
9270 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
9271 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
9272 | { (exit 1); exit 1; }; } | |
c906108c | 9273 | done |
b7026657 AC |
9274 | _ACEOF |
9275 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9276 | ||
9277 | # | |
9278 | # CONFIG_COMMANDS section. | |
9279 | # | |
9280 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9281 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9282 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9283 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
9284 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9285 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9286 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9287 | X"$ac_dest" : 'X\(/\)' \| \ | |
9288 | . : '\(.\)' 2>/dev/null || | |
9289 | echo X"$ac_dest" | | |
9290 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9291 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9292 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9293 | /^X\(\/\).*/{ s//\1/; q; } | |
9294 | s/.*/./; q'` | |
9295 | { if $as_mkdir_p; then | |
9296 | mkdir -p "$ac_dir" | |
9297 | else | |
9298 | as_dir="$ac_dir" | |
9299 | as_dirs= | |
9300 | while test ! -d "$as_dir"; do | |
9301 | as_dirs="$as_dir $as_dirs" | |
9302 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9303 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9304 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9305 | X"$as_dir" : 'X\(//\)$' \| \ | |
9306 | X"$as_dir" : 'X\(/\)' \| \ | |
9307 | . : '\(.\)' 2>/dev/null || | |
9308 | echo X"$as_dir" | | |
9309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9310 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9311 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9312 | /^X\(\/\).*/{ s//\1/; q; } | |
9313 | s/.*/./; q'` | |
9314 | done | |
9315 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9316 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9317 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9318 | { (exit 1); exit 1; }; }; } | |
9319 | ||
9320 | ac_builddir=. | |
9321 | ||
9322 | if test "$ac_dir" != .; then | |
9323 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9324 | # A "../" for each directory in $ac_dir_suffix. | |
9325 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9326 | else | |
9327 | ac_dir_suffix= ac_top_builddir= | |
9328 | fi | |
c906108c | 9329 | |
b7026657 AC |
9330 | case $srcdir in |
9331 | .) # No --srcdir option. We are building in place. | |
9332 | ac_srcdir=. | |
9333 | if test -z "$ac_top_builddir"; then | |
9334 | ac_top_srcdir=. | |
9335 | else | |
9336 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9337 | fi ;; | |
9338 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9339 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9340 | ac_top_srcdir=$srcdir ;; | |
9341 | *) # Relative path. | |
9342 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9343 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9344 | esac | |
9345 | ||
9346 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9347 | # the directories may not exist. | |
9348 | case `pwd` in | |
9349 | .) ac_abs_builddir="$ac_dir";; | |
9350 | *) | |
9351 | case "$ac_dir" in | |
9352 | .) ac_abs_builddir=`pwd`;; | |
9353 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9354 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9355 | esac;; | |
9356 | esac | |
9357 | case $ac_abs_builddir in | |
9358 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9359 | *) | |
9360 | case ${ac_top_builddir}. in | |
9361 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9362 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9363 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9364 | esac;; | |
9365 | esac | |
9366 | case $ac_abs_builddir in | |
9367 | .) ac_abs_srcdir=$ac_srcdir;; | |
9368 | *) | |
9369 | case $ac_srcdir in | |
9370 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9371 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9372 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9373 | esac;; | |
9374 | esac | |
9375 | case $ac_abs_builddir in | |
9376 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9377 | *) | |
9378 | case $ac_top_srcdir in | |
9379 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9380 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9381 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9382 | esac;; | |
9383 | esac | |
9384 | ||
9385 | ||
9386 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
9387 | echo "$as_me: executing $ac_dest commands" >&6;} | |
9388 | case $ac_dest in | |
38f48d72 AC |
9389 | Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." |
9390 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
9391 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
9392 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
9393 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
c906108c SS |
9394 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ |
9395 | <Makefile.sim >Makefile | |
38f48d72 | 9396 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp |
b7026657 | 9397 | ;; |
38f48d72 | 9398 | stamp-h ) echo > stamp-h ;; |
b7026657 AC |
9399 | esac |
9400 | done | |
9401 | _ACEOF | |
c906108c | 9402 | |
b7026657 AC |
9403 | cat >>$CONFIG_STATUS <<\_ACEOF |
9404 | ||
9405 | { (exit 0); exit 0; } | |
9406 | _ACEOF | |
c906108c | 9407 | chmod +x $CONFIG_STATUS |
b7026657 AC |
9408 | ac_clean_files=$ac_clean_files_save |
9409 | ||
9410 | ||
9411 | # configure is writing to config.log, and then calls config.status. | |
9412 | # config.status does its own redirection, appending to config.log. | |
9413 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9414 | # by configure, so config.status won't be able to write to it; its | |
9415 | # output is simply discarded. So we exec the FD to /dev/null, | |
9416 | # effectively closing config.log, so it can be properly (re)opened and | |
9417 | # appended to by config.status. When coming back to configure, we | |
9418 | # need to make the FD available again. | |
9419 | if test "$no_create" != yes; then | |
9420 | ac_cs_success=: | |
9421 | ac_config_status_args= | |
9422 | test "$silent" = yes && | |
9423 | ac_config_status_args="$ac_config_status_args --quiet" | |
9424 | exec 5>/dev/null | |
9425 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9426 | exec 5>>config.log | |
9427 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9428 | # would make configure fail if this is the last instruction. | |
9429 | $ac_cs_success || { (exit 1); exit 1; } | |
9430 | fi | |
c906108c SS |
9431 | |
9432 |