]>
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 | |
6efef468 | 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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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 | |
d6416cdc | 753 | ac_pwd=`pwd` |
b7026657 AC |
754 | ac_env_CC_set=${CC+set} |
755 | ac_env_CC_value=$CC | |
756 | ac_cv_env_CC_set=${CC+set} | |
757 | ac_cv_env_CC_value=$CC | |
758 | ac_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_env_CFLAGS_value=$CFLAGS | |
760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_cv_env_CFLAGS_value=$CFLAGS | |
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_env_CPP_set=${CPP+set} | |
771 | ac_env_CPP_value=$CPP | |
772 | ac_cv_env_CPP_set=${CPP+set} | |
773 | ac_cv_env_CPP_value=$CPP | |
c906108c | 774 | |
b7026657 AC |
775 | # |
776 | # Report the --help message. | |
777 | # | |
778 | if test "$ac_init_help" = "long"; then | |
779 | # Omit some internal or obsolete options to make the list less imposing. | |
780 | # This message is too long to be a string in the A/UX 3.1 sh. | |
781 | cat <<_ACEOF | |
782 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 783 | |
b7026657 | 784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 785 | |
b7026657 AC |
786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
787 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 788 | |
b7026657 | 789 | Defaults for the options are specified in brackets. |
c906108c | 790 | |
b7026657 AC |
791 | Configuration: |
792 | -h, --help display this help and exit | |
793 | --help=short display options specific to this package | |
794 | --help=recursive display the short help of all the included packages | |
795 | -V, --version display version information and exit | |
796 | -q, --quiet, --silent do not print \`checking...' messages | |
797 | --cache-file=FILE cache test results in FILE [disabled] | |
798 | -C, --config-cache alias for \`--cache-file=config.cache' | |
799 | -n, --no-create do not create output files | |
800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
801 | ||
802 | _ACEOF | |
803 | ||
804 | cat <<_ACEOF | |
805 | Installation directories: | |
806 | --prefix=PREFIX install architecture-independent files in PREFIX | |
807 | [$ac_default_prefix] | |
808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
809 | [PREFIX] | |
c906108c | 810 | |
b7026657 AC |
811 | By default, \`make install' will install all the files in |
812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
814 | for instance \`--prefix=\$HOME'. | |
c906108c | 815 | |
b7026657 AC |
816 | For better control, use the options below. |
817 | ||
818 | Fine tuning of the installation directories: | |
819 | --bindir=DIR user executables [EPREFIX/bin] | |
820 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
821 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
826 | --libdir=DIR object code libraries [EPREFIX/lib] | |
827 | --includedir=DIR C header files [PREFIX/include] | |
828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
829 | --infodir=DIR info documentation [PREFIX/info] | |
830 | --mandir=DIR man documentation [PREFIX/man] | |
831 | _ACEOF | |
832 | ||
833 | cat <<\_ACEOF | |
834 | ||
835 | Program names: | |
836 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
837 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
839 | ||
840 | System types: | |
841 | --build=BUILD configure for building on BUILD [guessed] | |
842 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
843 | --target=TARGET configure for building compilers for TARGET [HOST] | |
844 | _ACEOF | |
c906108c | 845 | fi |
b7026657 AC |
846 | |
847 | if test -n "$ac_init_help"; then | |
848 | ||
849 | cat <<\_ACEOF | |
850 | ||
851 | Optional Features: | |
852 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
853 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
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 | ||
6efef468 JM |
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-pkgversion=PKG Use PKG in the version string in place of "GDB" | |
875 | --with-bugurl=URL Direct users to URL to report a bug | |
876 | ||
b7026657 AC |
877 | Some influential environment variables: |
878 | CC C compiler command | |
879 | CFLAGS C compiler flags | |
880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
881 | nonstandard directory <lib dir> | |
882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
883 | headers in a nonstandard directory <include dir> | |
884 | CPP C preprocessor | |
885 | ||
886 | Use these variables to override the choices made by `configure' or to help | |
887 | it to find libraries and programs with nonstandard names/locations. | |
888 | ||
889 | _ACEOF | |
c906108c SS |
890 | fi |
891 | ||
b7026657 AC |
892 | if test "$ac_init_help" = "recursive"; then |
893 | # If there are subdirs, report their specific --help. | |
894 | ac_popdir=`pwd` | |
895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
896 | test -d $ac_dir || continue | |
897 | ac_builddir=. | |
c906108c | 898 | |
b7026657 AC |
899 | if test "$ac_dir" != .; then |
900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
901 | # A "../" for each directory in $ac_dir_suffix. | |
902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
c906108c | 903 | else |
b7026657 | 904 | ac_dir_suffix= ac_top_builddir= |
c906108c SS |
905 | fi |
906 | ||
b7026657 AC |
907 | case $srcdir in |
908 | .) # No --srcdir option. We are building in place. | |
909 | ac_srcdir=. | |
910 | if test -z "$ac_top_builddir"; then | |
911 | ac_top_srcdir=. | |
912 | else | |
913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
914 | fi ;; | |
915 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
916 | ac_srcdir=$srcdir$ac_dir_suffix; | |
917 | ac_top_srcdir=$srcdir ;; | |
918 | *) # Relative path. | |
919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
921 | esac | |
922 | ||
923 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
924 | # the directories may not exist. | |
925 | case `pwd` in | |
926 | .) ac_abs_builddir="$ac_dir";; | |
927 | *) | |
928 | case "$ac_dir" in | |
929 | .) ac_abs_builddir=`pwd`;; | |
930 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
931 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
932 | esac;; | |
933 | esac | |
934 | case $ac_abs_builddir in | |
935 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
936 | *) | |
937 | case ${ac_top_builddir}. in | |
938 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
939 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
940 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
941 | esac;; | |
942 | esac | |
943 | case $ac_abs_builddir in | |
944 | .) ac_abs_srcdir=$ac_srcdir;; | |
945 | *) | |
946 | case $ac_srcdir in | |
947 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
949 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
950 | esac;; | |
951 | esac | |
952 | case $ac_abs_builddir in | |
953 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
954 | *) | |
955 | case $ac_top_srcdir in | |
956 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
957 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
958 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
959 | esac;; | |
960 | esac | |
961 | ||
962 | cd $ac_dir | |
963 | # Check for guested configure; otherwise get Cygnus style configure. | |
964 | if test -f $ac_srcdir/configure.gnu; then | |
965 | echo | |
966 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
967 | elif test -f $ac_srcdir/configure; then | |
968 | echo | |
969 | $SHELL $ac_srcdir/configure --help=recursive | |
970 | elif test -f $ac_srcdir/configure.ac || | |
971 | test -f $ac_srcdir/configure.in; then | |
972 | echo | |
973 | $ac_configure --help | |
974 | else | |
975 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
976 | fi | |
977 | cd $ac_popdir | |
978 | done | |
c906108c | 979 | fi |
b7026657 AC |
980 | |
981 | test -n "$ac_init_help" && exit 0 | |
982 | if $ac_init_version; then | |
983 | cat <<\_ACEOF | |
984 | ||
985 | Copyright (C) 2003 Free Software Foundation, Inc. | |
986 | This configure script is free software; the Free Software Foundation | |
987 | gives unlimited permission to copy, distribute and modify it. | |
988 | _ACEOF | |
989 | exit 0 | |
990 | fi | |
991 | exec 5>config.log | |
992 | cat >&5 <<_ACEOF | |
993 | This file contains any messages produced by compilers while | |
994 | running configure, to aid debugging if configure makes a mistake. | |
995 | ||
996 | It was created by $as_me, which was | |
997 | generated by GNU Autoconf 2.59. Invocation command line was | |
998 | ||
999 | $ $0 $@ | |
1000 | ||
1001 | _ACEOF | |
1002 | { | |
1003 | cat <<_ASUNAME | |
1004 | ## --------- ## | |
1005 | ## Platform. ## | |
1006 | ## --------- ## | |
1007 | ||
1008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1016 | ||
1017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1020 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1024 | ||
1025 | _ASUNAME | |
1026 | ||
1027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1028 | for as_dir in $PATH | |
1029 | do | |
1030 | IFS=$as_save_IFS | |
1031 | test -z "$as_dir" && as_dir=. | |
1032 | echo "PATH: $as_dir" | |
1033 | done | |
1034 | ||
1035 | } >&5 | |
1036 | ||
1037 | cat >&5 <<_ACEOF | |
1038 | ||
1039 | ||
1040 | ## ----------- ## | |
1041 | ## Core tests. ## | |
1042 | ## ----------- ## | |
1043 | ||
1044 | _ACEOF | |
1045 | ||
1046 | ||
1047 | # Keep a trace of the command line. | |
1048 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1049 | # Strip out --silent because we don't want to record it for future runs. | |
1050 | # Also quote any args containing shell meta-characters. | |
1051 | # Make two passes to allow for proper duplicate-argument suppression. | |
1052 | ac_configure_args= | |
1053 | ac_configure_args0= | |
1054 | ac_configure_args1= | |
1055 | ac_sep= | |
1056 | ac_must_keep_next=false | |
1057 | for ac_pass in 1 2 | |
1058 | do | |
1059 | for ac_arg | |
1060 | do | |
1061 | case $ac_arg in | |
1062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | continue ;; | |
1066 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1067 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1068 | esac | |
1069 | case $ac_pass in | |
1070 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1071 | 2) | |
1072 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1073 | if test $ac_must_keep_next = true; then | |
1074 | ac_must_keep_next=false # Got value, back to normal. | |
1075 | else | |
1076 | case $ac_arg in | |
1077 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1080 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1081 | case "$ac_configure_args0 " in | |
1082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1083 | esac | |
1084 | ;; | |
1085 | -* ) ac_must_keep_next=true ;; | |
1086 | esac | |
1087 | fi | |
1088 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1089 | # Get rid of the leading space. | |
1090 | ac_sep=" " | |
1091 | ;; | |
1092 | esac | |
1093 | done | |
1094 | done | |
1095 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1096 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1097 | ||
1098 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1099 | # config.log. We remove comments because anyway the quotes in there | |
1100 | # would cause problems or look ugly. | |
1101 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1102 | # such as our DU 5.0 friend, will then `close' the trap. | |
1103 | trap 'exit_status=$? | |
1104 | # Save into config.log some information that might help in debugging. | |
1105 | { | |
1106 | echo | |
1107 | ||
1108 | cat <<\_ASBOX | |
1109 | ## ---------------- ## | |
1110 | ## Cache variables. ## | |
1111 | ## ---------------- ## | |
1112 | _ASBOX | |
1113 | echo | |
1114 | # The following way of writing the cache mishandles newlines in values, | |
1115 | { | |
1116 | (set) 2>&1 | | |
1117 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1118 | *ac_space=\ *) | |
1119 | sed -n \ | |
1120 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1122 | ;; | |
1123 | *) | |
1124 | sed -n \ | |
1125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1126 | ;; | |
1127 | esac; | |
1128 | } | |
1129 | echo | |
1130 | ||
1131 | cat <<\_ASBOX | |
1132 | ## ----------------- ## | |
1133 | ## Output variables. ## | |
1134 | ## ----------------- ## | |
1135 | _ASBOX | |
1136 | echo | |
1137 | for ac_var in $ac_subst_vars | |
1138 | do | |
1139 | eval ac_val=$`echo $ac_var` | |
1140 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1141 | done | sort | |
1142 | echo | |
1143 | ||
1144 | if test -n "$ac_subst_files"; then | |
1145 | cat <<\_ASBOX | |
1146 | ## ------------- ## | |
1147 | ## Output files. ## | |
1148 | ## ------------- ## | |
1149 | _ASBOX | |
1150 | echo | |
1151 | for ac_var in $ac_subst_files | |
1152 | do | |
1153 | eval ac_val=$`echo $ac_var` | |
1154 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1155 | done | sort | |
1156 | echo | |
1157 | fi | |
1158 | ||
1159 | if test -s confdefs.h; then | |
1160 | cat <<\_ASBOX | |
1161 | ## ----------- ## | |
1162 | ## confdefs.h. ## | |
1163 | ## ----------- ## | |
1164 | _ASBOX | |
1165 | echo | |
1166 | sed "/^$/d" confdefs.h | sort | |
1167 | echo | |
1168 | fi | |
1169 | test "$ac_signal" != 0 && | |
1170 | echo "$as_me: caught signal $ac_signal" | |
1171 | echo "$as_me: exit $exit_status" | |
1172 | } >&5 | |
1173 | rm -f core *.core && | |
1174 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1175 | exit $exit_status | |
1176 | ' 0 | |
1177 | for ac_signal in 1 2 13 15; do | |
1178 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1179 | done | |
1180 | ac_signal=0 | |
1181 | ||
1182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1183 | rm -rf conftest* confdefs.h | |
1184 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1185 | echo >confdefs.h | |
1186 | ||
1187 | # Predefined preprocessor variables. | |
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | # Let the site file select an alternate cache file if it wants to. | |
1215 | # Prefer explicitly selected file to automatically selected ones. | |
1216 | if test -z "$CONFIG_SITE"; then | |
1217 | if test "x$prefix" != xNONE; then | |
1218 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1219 | else | |
1220 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1221 | fi | |
1222 | fi | |
1223 | for ac_site_file in $CONFIG_SITE; do | |
1224 | if test -r "$ac_site_file"; then | |
1225 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1226 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1227 | sed 's/^/| /' "$ac_site_file" >&5 | |
1228 | . "$ac_site_file" | |
1229 | fi | |
1230 | done | |
1231 | ||
1232 | if test -r "$cache_file"; then | |
1233 | # Some versions of bash will fail to source /dev/null (special | |
1234 | # files actually), so we avoid doing that. | |
1235 | if test -f "$cache_file"; then | |
1236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1237 | echo "$as_me: loading cache $cache_file" >&6;} | |
1238 | case $cache_file in | |
1239 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1240 | *) . ./$cache_file;; | |
1241 | esac | |
1242 | fi | |
1243 | else | |
1244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1245 | echo "$as_me: creating cache $cache_file" >&6;} | |
1246 | >$cache_file | |
1247 | fi | |
1248 | ||
1249 | # Check that the precious variables saved in the cache have kept the same | |
1250 | # value. | |
1251 | ac_cache_corrupted=false | |
1252 | for ac_var in `(set) 2>&1 | | |
1253 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1254 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1255 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1256 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1257 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1258 | case $ac_old_set,$ac_new_set in | |
1259 | set,) | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1262 | ac_cache_corrupted=: ;; | |
1263 | ,set) | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1266 | ac_cache_corrupted=: ;; | |
1267 | ,);; | |
1268 | *) | |
1269 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1271 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1272 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1273 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1274 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1275 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1276 | ac_cache_corrupted=: | |
1277 | fi;; | |
1278 | esac | |
1279 | # Pass precious variables to config.status. | |
1280 | if test "$ac_new_set" = set; then | |
1281 | case $ac_new_val in | |
1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1284 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1285 | esac | |
1286 | case " $ac_configure_args " in | |
1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1289 | esac | |
1290 | fi | |
1291 | done | |
1292 | if $ac_cache_corrupted; then | |
1293 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1294 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1295 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1296 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1297 | { (exit 1); exit 1; }; } | |
1298 | fi | |
1299 | ||
1300 | ac_ext=c | |
1301 | ac_cpp='$CPP $CPPFLAGS' | |
1302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
35695fd6 AC |
1324 | ac_config_headers="$ac_config_headers config.h:config.in" |
1325 | ||
1326 | ||
1327 | # This file contains common code used by all simulators. | |
1328 | # | |
1329 | # SIM_AC_COMMON invokes AC macros used by all simulators and by the common | |
1330 | # directory. It is intended to be invoked before any target specific stuff. | |
1331 | # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. | |
1332 | # It is intended to be invoked last. | |
1333 | # | |
1334 | # The simulator's configure.in should look like: | |
1335 | # | |
1336 | # dnl Process this file with autoconf to produce a configure script. | |
1337 | # sinclude(../common/aclocal.m4) | |
1338 | # AC_PREREQ(2.5)dnl | |
1339 | # AC_INIT(Makefile.in) | |
1340 | # | |
1341 | # SIM_AC_COMMON | |
1342 | # | |
1343 | # ... target specific stuff ... | |
1344 | # | |
1345 | # SIM_AC_OUTPUT | |
1346 | ||
d6416cdc RW |
1347 | # Include global overrides and fixes for Autoconf. |
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 | # _AC_OUTPUT_SUBDIRS | |
1379 | # ------------------ | |
1380 | # This is a subroutine of AC_OUTPUT, but it does not go into | |
1381 | # config.status, rather, it is called after running config.status. | |
1382 | # _AC_OUTPUT_SUBDIRS | |
1383 | ||
1384 | ||
1385 | ||
1386 | ||
1387 | # _AC_ARG_VAR_VALIDATE | |
1388 | # -------------------- | |
1389 | # The code is the same as autoconf 2.59, but with a more lenient check | |
1390 | # on precious variables and an output of pwd that have been added in | |
1391 | # autoconf 2.62. | |
1392 | # _AC_ARG_VAR_VALIDATE | |
1393 | ||
1394 | ||
1395 | ||
1396 | ||
1397 | # AC_MSG_FAILURE(ERROR, [EXIT-STATUS = 1]) | |
1398 | # ---------------------------------------- | |
1399 | # This is the same code as in 2.59 and 2.61, except it also outputs pwd. | |
1400 | ||
1401 | ||
1402 | ||
1403 | ||
1404 | ||
1405 | ||
1406 | ||
1407 | ||
1408 | ||
35695fd6 AC |
1409 | |
1410 | ||
1411 | ||
1412 | ||
1413 | ||
1414 | ||
1415 | ||
1416 | ||
1417 | ||
1418 | ||
1419 | ||
1420 | ||
1421 | ||
1422 | ||
1423 | ||
1424 | ||
1425 | ||
1426 | ||
1427 | ||
1428 | ||
1429 | ||
1430 | ||
1431 | ||
1432 | ||
1433 | ||
1434 | ||
1435 | ||
1436 | ||
1437 | ||
1438 | ||
1439 | ||
1440 | ||
1441 | ||
1442 | ||
1443 | ||
1444 | ||
1445 | ||
1446 | ||
1447 | ||
1448 | ||
1449 | ||
1450 | ||
1451 | ||
1452 | ||
1453 | ||
1454 | ||
1455 | ||
1456 | sim_inline="-DDEFAULT_INLINE=0" | |
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
20e95c23 | 1493 | # intl sister-directory configuration rules. |
35695fd6 | 1494 | # |
35695fd6 | 1495 | |
20e95c23 DJ |
1496 | # The idea behind this macro is that there's no need to repeat all the |
1497 | # autoconf probes done by the intl directory - it's already done them | |
1498 | # for us. In fact, there's no need even to look at the cache for the | |
1499 | # answers. All we need to do is nab a few pieces of information. | |
1500 | # The intl directory is set up to make this easy, by generating a | |
1501 | # small file which can be sourced as a shell script; then we produce | |
1502 | # the necessary substitutions and definitions for this directory. | |
35695fd6 AC |
1503 | |
1504 | ||
6efef468 JM |
1505 | |
1506 | # Autoconf M4 include file defining utility macros for complex Canadian | |
1507 | # cross builds. | |
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | #### | |
1518 | # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM | |
1519 | # or AC_INIT. | |
1520 | # These demand that AC_CANONICAL_SYSTEM be called beforehand. | |
1521 | ||
1522 | #### | |
1523 | # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
1524 | # Like plain AC_CHECK_TOOLS, but require prefix if build!=host. | |
1525 | ||
1526 | ||
1527 | #### | |
1528 | # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
1529 | # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target. | |
1530 | ||
1531 | ||
1532 | ||
1533 | # Backported from Autoconf 2.5x; can go away when and if | |
1534 | # we switch. Put the OS path separator in $PATH_SEPARATOR. | |
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | # ACX_HAVE_GCC_FOR_TARGET | |
1540 | # Check if the variable GCC_FOR_TARGET really points to a GCC binary. | |
1541 | ||
1542 | ||
1543 | # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG) | |
1544 | # Searching for installed target binutils. We need to take extra care, | |
1545 | # else we may find the wrong assembler, linker, etc., and lose. | |
1546 | # | |
1547 | # First try --with-build-time-tools, if specified. | |
1548 | # | |
1549 | # For build != host, we ask the installed GCC for the name of the tool it | |
1550 | # uses, and accept it if it is an absolute path. This is because the | |
1551 | # only good choice for a compiler is the same GCC version that is being | |
1552 | # installed (or we couldn't make target libraries), and we assume that | |
1553 | # on the host system we'll have not only the same GCC version, but also | |
1554 | # the same binutils version. | |
1555 | # | |
1556 | # For build == host, search the same directories that the installed | |
1557 | # compiler will search. We used to do this for the assembler, linker, | |
1558 | # and nm only; for simplicity of configuration, however, we extend this | |
1559 | # criterion to tools (such as ar and ranlib) that are never invoked by | |
1560 | # the compiler, to avoid mismatches. | |
1561 | # | |
1562 | # Also note we have to check MD_EXEC_PREFIX before checking the user's path | |
1563 | # if build == target. This makes the most sense only when bootstrapping, | |
1564 | # but we also do so when build != host. In this case, we hope that the | |
1565 | # build and host systems will have similar contents of MD_EXEC_PREFIX. | |
1566 | # | |
1567 | # If we do not find a suitable binary, then try the user's path. | |
1568 | ||
1569 | ||
1570 | ### | |
1571 | # AC_PROG_CPP_WERROR | |
1572 | # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which | |
1573 | # triggers warnings from the preprocessor. Will be in autoconf 2.58. | |
1574 | # For now, using this also overrides header checks to use only the | |
1575 | # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a | |
1576 | # bit harder from here). | |
1577 | # Eventually autoconf will default to checking headers with the compiler | |
1578 | # instead, and we'll have to do this differently. | |
1579 | ||
1580 | # AC_PROG_CPP_WERROR | |
1581 | ||
1582 | # Test for GNAT. | |
1583 | # We require the gnatbind program, and a compiler driver that | |
1584 | # understands Ada. We use the user's CC setting, already found, | |
1585 | # and possibly add $1 to the command-line parameters. | |
1586 | # | |
1587 | # Sets the shell variable have_gnat to yes or no as appropriate, and | |
1588 | # substitutes GNATBIND and GNATMAKE. | |
1589 | ||
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | ||
1595 | ||
1596 | ||
1597 | ||
1598 | ||
1599 | ||
1600 | ||
1601 | ||
1602 | ||
1603 | ||
1604 | ||
1605 | ||
1606 | ||
1607 | ||
1608 | ||
35695fd6 AC |
1609 | |
1610 | ||
1611 | ||
1612 | ||
b7026657 | 1613 | |
35695fd6 AC |
1614 | # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around |
1615 | # it by inlining the macro's contents. | |
f0569246 AC |
1616 | # This file contains common code used by all simulators. |
1617 | # | |
1618 | # common.m4 invokes AC macros used by all simulators and by the common | |
1619 | # directory. It is intended to be included before any target specific | |
1620 | # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate | |
1621 | # the Makefile. It is intended to be invoked last. | |
1622 | # | |
1623 | # The simulator's configure.in should look like: | |
1624 | # | |
1625 | # dnl Process this file with autoconf to produce a configure script. | |
1626 | # AC_PREREQ(2.5)dnl | |
1627 | # AC_INIT(Makefile.in) | |
35695fd6 | 1628 | # AC_CONFIG_HEADER(config.h:config.in) |
f0569246 | 1629 | # |
35695fd6 | 1630 | # sinclude(../common/aclocal.m4) |
f0569246 AC |
1631 | # sinclude(../common/common.m4) |
1632 | # | |
1633 | # ... target specific stuff ... | |
1634 | ||
38f48d72 AC |
1635 | ac_aux_dir= |
1636 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1637 | if test -f $ac_dir/install-sh; then | |
1638 | ac_aux_dir=$ac_dir | |
1639 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1640 | break | |
1641 | elif test -f $ac_dir/install.sh; then | |
1642 | ac_aux_dir=$ac_dir | |
1643 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1644 | break | |
1645 | elif test -f $ac_dir/shtool; then | |
1646 | ac_aux_dir=$ac_dir | |
1647 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1648 | break | |
1649 | fi | |
1650 | done | |
1651 | if test -z "$ac_aux_dir"; then | |
1652 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1653 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1654 | { (exit 1); exit 1; }; } | |
1655 | fi | |
1656 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1657 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1658 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1659 | ||
b7026657 AC |
1660 | # Make sure we can run config.sub. |
1661 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1662 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1663 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1664 | { (exit 1); exit 1; }; } | |
1665 | ||
1666 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1667 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1668 | if test "${ac_cv_build+set}" = set; then | |
1669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1670 | else | |
1671 | ac_cv_build_alias=$build_alias | |
1672 | test -z "$ac_cv_build_alias" && | |
1673 | ac_cv_build_alias=`$ac_config_guess` | |
1674 | test -z "$ac_cv_build_alias" && | |
1675 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1676 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1677 | { (exit 1); exit 1; }; } | |
1678 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1679 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1680 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1681 | { (exit 1); exit 1; }; } | |
1682 | ||
1683 | fi | |
1684 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1685 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1686 | build=$ac_cv_build | |
1687 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1688 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1689 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1690 | ||
1691 | ||
1692 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1693 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1694 | if test "${ac_cv_host+set}" = set; then | |
1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1696 | else | |
1697 | ac_cv_host_alias=$host_alias | |
1698 | test -z "$ac_cv_host_alias" && | |
1699 | ac_cv_host_alias=$ac_cv_build_alias | |
1700 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1701 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1702 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1703 | { (exit 1); exit 1; }; } | |
1704 | ||
1705 | fi | |
1706 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1707 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1708 | host=$ac_cv_host | |
1709 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1710 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1711 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1712 | ||
1713 | ||
f0569246 AC |
1714 | echo "$as_me:$LINENO: checking target system type" >&5 |
1715 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1716 | if test "${ac_cv_target+set}" = set; then | |
b7026657 AC |
1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1718 | else | |
f0569246 AC |
1719 | ac_cv_target_alias=$target_alias |
1720 | test "x$ac_cv_target_alias" = "x" && | |
1721 | ac_cv_target_alias=$ac_cv_host_alias | |
1722 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1723 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1724 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1725 | { (exit 1); exit 1; }; } | |
1726 | ||
1727 | fi | |
1728 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1729 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1730 | target=$ac_cv_target | |
1731 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1732 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1733 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1734 | ||
1735 | ||
1736 | # The aliases save the names the user supplied, while $host etc. | |
1737 | # will get canonicalized. | |
1738 | test -n "$target_alias" && | |
1739 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1740 | NONENONEs,x,x, && | |
1741 | program_prefix=${target_alias}- | |
1742 | test "$program_prefix" != NONE && | |
1743 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1744 | # Use a double $ so make ignores it. | |
1745 | test "$program_suffix" != NONE && | |
1746 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1747 | # Double any \ or $. echo might interpret backslashes. | |
1748 | # By default was `s,x,x', remove it if useless. | |
1749 | cat <<\_ACEOF >conftest.sed | |
1750 | s/[\\$]/&&/g;s/;s,x,x,$// | |
b7026657 | 1751 | _ACEOF |
f0569246 AC |
1752 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1753 | rm conftest.sed | |
1754 | ||
1755 | ac_ext=c | |
1756 | ac_cpp='$CPP $CPPFLAGS' | |
1757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1760 | if test -n "$ac_tool_prefix"; then | |
1761 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1762 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1765 | if test "${ac_cv_prog_CC+set}" = set; then | |
1766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1767 | else |
f0569246 AC |
1768 | if test -n "$CC"; then |
1769 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1770 | else | |
1771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1772 | for as_dir in $PATH | |
1773 | do | |
1774 | IFS=$as_save_IFS | |
1775 | test -z "$as_dir" && as_dir=. | |
1776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1777 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1778 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1779 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1780 | break 2 | |
1781 | fi | |
1782 | done | |
1783 | done | |
1784 | ||
b7026657 | 1785 | fi |
b7026657 | 1786 | fi |
f0569246 AC |
1787 | CC=$ac_cv_prog_CC |
1788 | if test -n "$CC"; then | |
1789 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1790 | echo "${ECHO_T}$CC" >&6 | |
b7026657 AC |
1791 | else |
1792 | echo "$as_me:$LINENO: result: no" >&5 | |
1793 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1794 | fi |
1795 | ||
f0569246 AC |
1796 | fi |
1797 | if test -z "$ac_cv_prog_CC"; then | |
1798 | ac_ct_CC=$CC | |
1799 | # Extract the first word of "gcc", so it can be a program name with args. | |
1800 | set dummy gcc; ac_word=$2 | |
1801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1803 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
b7026657 AC |
1804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1805 | else | |
f0569246 AC |
1806 | if test -n "$ac_ct_CC"; then |
1807 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1808 | else | |
1809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1810 | for as_dir in $PATH | |
1811 | do | |
1812 | IFS=$as_save_IFS | |
1813 | test -z "$as_dir" && as_dir=. | |
1814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1816 | ac_cv_prog_ac_ct_CC="gcc" | |
1817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1818 | break 2 | |
1819 | fi | |
1820 | done | |
1821 | done | |
b7026657 | 1822 | |
f0569246 AC |
1823 | fi |
1824 | fi | |
1825 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1826 | if test -n "$ac_ct_CC"; then | |
1827 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1828 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1829 | else |
f0569246 AC |
1830 | echo "$as_me:$LINENO: result: no" >&5 |
1831 | echo "${ECHO_T}no" >&6 | |
1832 | fi | |
b7026657 | 1833 | |
f0569246 AC |
1834 | CC=$ac_ct_CC |
1835 | else | |
1836 | CC="$ac_cv_prog_CC" | |
b7026657 | 1837 | fi |
b7026657 | 1838 | |
f0569246 AC |
1839 | if test -z "$CC"; then |
1840 | if test -n "$ac_tool_prefix"; then | |
1841 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1842 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1845 | if test "${ac_cv_prog_CC+set}" = set; then | |
1846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1847 | else |
f0569246 AC |
1848 | if test -n "$CC"; then |
1849 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1850 | else | |
1851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1852 | for as_dir in $PATH | |
1853 | do | |
1854 | IFS=$as_save_IFS | |
1855 | test -z "$as_dir" && as_dir=. | |
1856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1857 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1858 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1860 | break 2 | |
1861 | fi | |
1862 | done | |
1863 | done | |
b7026657 AC |
1864 | |
1865 | fi | |
b7026657 | 1866 | fi |
f0569246 AC |
1867 | CC=$ac_cv_prog_CC |
1868 | if test -n "$CC"; then | |
1869 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1870 | echo "${ECHO_T}$CC" >&6 | |
1871 | else | |
1872 | echo "$as_me:$LINENO: result: no" >&5 | |
1873 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1874 | fi |
1875 | ||
b7026657 | 1876 | fi |
f0569246 AC |
1877 | if test -z "$ac_cv_prog_CC"; then |
1878 | ac_ct_CC=$CC | |
1879 | # Extract the first word of "cc", so it can be a program name with args. | |
1880 | set dummy cc; ac_word=$2 | |
1881 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1882 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1883 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1885 | else |
f0569246 AC |
1886 | if test -n "$ac_ct_CC"; then |
1887 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1888 | else | |
1889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1890 | for as_dir in $PATH | |
b7026657 | 1891 | do |
f0569246 AC |
1892 | IFS=$as_save_IFS |
1893 | test -z "$as_dir" && as_dir=. | |
1894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1895 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1896 | ac_cv_prog_ac_ct_CC="cc" | |
1897 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1898 | break 2 | |
b7026657 | 1899 | fi |
f0569246 AC |
1900 | done |
1901 | done | |
1902 | ||
b7026657 | 1903 | fi |
f0569246 AC |
1904 | fi |
1905 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1906 | if test -n "$ac_ct_CC"; then | |
1907 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1908 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1909 | else |
f0569246 AC |
1910 | echo "$as_me:$LINENO: result: no" >&5 |
1911 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1912 | fi |
b7026657 | 1913 | |
f0569246 | 1914 | CC=$ac_ct_CC |
b7026657 | 1915 | else |
f0569246 | 1916 | CC="$ac_cv_prog_CC" |
b7026657 | 1917 | fi |
b7026657 | 1918 | |
b7026657 | 1919 | fi |
f0569246 AC |
1920 | if test -z "$CC"; then |
1921 | # Extract the first word of "cc", so it can be a program name with args. | |
1922 | set dummy cc; ac_word=$2 | |
1923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1925 | if test "${ac_cv_prog_CC+set}" = set; then | |
1926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1927 | else | |
1928 | if test -n "$CC"; then | |
1929 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1930 | else | |
1931 | ac_prog_rejected=no | |
1932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1933 | for as_dir in $PATH | |
1934 | do | |
1935 | IFS=$as_save_IFS | |
1936 | test -z "$as_dir" && as_dir=. | |
1937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1938 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1939 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1940 | ac_prog_rejected=yes | |
1941 | continue | |
1942 | fi | |
1943 | ac_cv_prog_CC="cc" | |
1944 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1945 | break 2 | |
1946 | fi | |
1947 | done | |
b7026657 | 1948 | done |
b7026657 | 1949 | |
f0569246 AC |
1950 | if test $ac_prog_rejected = yes; then |
1951 | # We found a bogon in the path, so make sure we never use it. | |
1952 | set dummy $ac_cv_prog_CC | |
1953 | shift | |
1954 | if test $# != 0; then | |
1955 | # We chose a different compiler from the bogus one. | |
1956 | # However, it has the same basename, so the bogon will be chosen | |
1957 | # first if we set CC to just the basename; use the full file name. | |
1958 | shift | |
1959 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1960 | fi | |
b7026657 | 1961 | fi |
f0569246 AC |
1962 | fi |
1963 | fi | |
1964 | CC=$ac_cv_prog_CC | |
1965 | if test -n "$CC"; then | |
1966 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1967 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 1968 | else |
f0569246 AC |
1969 | echo "$as_me:$LINENO: result: no" >&5 |
1970 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1971 | fi |
f0569246 AC |
1972 | |
1973 | fi | |
1974 | if test -z "$CC"; then | |
1975 | if test -n "$ac_tool_prefix"; then | |
1976 | for ac_prog in cl | |
1977 | do | |
1978 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1979 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1982 | if test "${ac_cv_prog_CC+set}" = set; then | |
1983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1984 | else | |
1985 | if test -n "$CC"; then | |
1986 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1987 | else | |
1988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1989 | for as_dir in $PATH | |
b7026657 | 1990 | do |
f0569246 AC |
1991 | IFS=$as_save_IFS |
1992 | test -z "$as_dir" && as_dir=. | |
1993 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1995 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1997 | break 2 | |
b7026657 | 1998 | fi |
f0569246 AC |
1999 | done |
2000 | done | |
2001 | ||
b7026657 | 2002 | fi |
f0569246 AC |
2003 | fi |
2004 | CC=$ac_cv_prog_CC | |
2005 | if test -n "$CC"; then | |
2006 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2007 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 2008 | else |
f0569246 AC |
2009 | echo "$as_me:$LINENO: result: no" >&5 |
2010 | echo "${ECHO_T}no" >&6 | |
b7026657 | 2011 | fi |
b7026657 | 2012 | |
f0569246 AC |
2013 | test -n "$CC" && break |
2014 | done | |
c906108c | 2015 | fi |
f0569246 AC |
2016 | if test -z "$CC"; then |
2017 | ac_ct_CC=$CC | |
2018 | for ac_prog in cl | |
b7026657 | 2019 | do |
f0569246 AC |
2020 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2021 | set dummy $ac_prog; ac_word=$2 | |
2022 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2024 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 2026 | else |
f0569246 AC |
2027 | if test -n "$ac_ct_CC"; then |
2028 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2029 | else | |
2030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2031 | for as_dir in $PATH | |
2032 | do | |
2033 | IFS=$as_save_IFS | |
2034 | test -z "$as_dir" && as_dir=. | |
2035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2036 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2037 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2039 | break 2 | |
2040 | fi | |
2041 | done | |
2042 | done | |
b7026657 AC |
2043 | |
2044 | fi | |
f0569246 AC |
2045 | fi |
2046 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2047 | if test -n "$ac_ct_CC"; then | |
2048 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2049 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2050 | else | |
2051 | echo "$as_me:$LINENO: result: no" >&5 | |
2052 | echo "${ECHO_T}no" >&6 | |
2053 | fi | |
2054 | ||
2055 | test -n "$ac_ct_CC" && break | |
b7026657 | 2056 | done |
b7026657 | 2057 | |
f0569246 | 2058 | CC=$ac_ct_CC |
b7026657 AC |
2059 | fi |
2060 | ||
f0569246 | 2061 | fi |
b7026657 | 2062 | |
f0569246 | 2063 | |
d6416cdc RW |
2064 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2065 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2066 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
f0569246 AC |
2067 | See \`config.log' for more details." >&5 |
2068 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2069 | See \`config.log' for more details." >&2;} | |
d6416cdc | 2070 | { (exit 1); exit 1; }; }; } |
f0569246 AC |
2071 | |
2072 | # Provide some information about the compiler. | |
2073 | echo "$as_me:$LINENO:" \ | |
2074 | "checking for C compiler version" >&5 | |
2075 | ac_compiler=`set X $ac_compile; echo $2` | |
2076 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2077 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
b7026657 | 2078 | ac_status=$? |
b7026657 | 2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f0569246 AC |
2080 | (exit $ac_status); } |
2081 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2082 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
b7026657 AC |
2083 | ac_status=$? |
2084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2085 | (exit $ac_status); } |
2086 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2087 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
b7026657 AC |
2088 | ac_status=$? |
2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2090 | (exit $ac_status); } |
2091 | ||
2092 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2093 | /* confdefs.h. */ |
2094 | _ACEOF | |
2095 | cat confdefs.h >>conftest.$ac_ext | |
2096 | cat >>conftest.$ac_ext <<_ACEOF | |
2097 | /* end confdefs.h. */ | |
f0569246 | 2098 | |
b7026657 AC |
2099 | int |
2100 | main () | |
2101 | { | |
f0569246 | 2102 | |
b7026657 AC |
2103 | ; |
2104 | return 0; | |
2105 | } | |
2106 | _ACEOF | |
f0569246 AC |
2107 | ac_clean_files_save=$ac_clean_files |
2108 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2109 | # Try to create an executable without -o first, disregard a.out. | |
2110 | # It will help us diagnose broken compilers, and finding out an intuition | |
2111 | # of exeext. | |
2112 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2113 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2114 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2115 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2116 | (eval $ac_link_default) 2>&5 | |
b7026657 | 2117 | ac_status=$? |
b7026657 | 2118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f0569246 AC |
2119 | (exit $ac_status); }; then |
2120 | # Find the output, starting from the most likely. This scheme is | |
2121 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2122 | # resort. | |
2123 | ||
2124 | # Be careful to initialize this variable, since it used to be cached. | |
2125 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2126 | ac_cv_exeext= | |
2127 | # b.out is created by i960 compilers. | |
2128 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2129 | do | |
2130 | test -f "$ac_file" || continue | |
2131 | case $ac_file in | |
2132 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2133 | ;; | |
2134 | conftest.$ac_ext ) | |
2135 | # This is the source file. | |
2136 | ;; | |
2137 | [ab].out ) | |
2138 | # We found the default executable, but exeext='' is most | |
2139 | # certainly right. | |
2140 | break;; | |
2141 | *.* ) | |
2142 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2143 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2144 | # but it would be cool to find out if it's true. Does anybody | |
2145 | # maintain Libtool? --akim. | |
2146 | export ac_cv_exeext | |
2147 | break;; | |
2148 | * ) | |
2149 | break;; | |
2150 | esac | |
2151 | done | |
2152 | else | |
2153 | echo "$as_me: failed program was:" >&5 | |
2154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2155 | ||
d6416cdc RW |
2156 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2157 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f0569246 AC |
2158 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2159 | See \`config.log' for more details." >&5 | |
2160 | echo "$as_me: error: C compiler cannot create executables | |
2161 | See \`config.log' for more details." >&2;} | |
d6416cdc | 2162 | { (exit 77); exit 77; }; }; } |
f0569246 AC |
2163 | fi |
2164 | ||
2165 | ac_exeext=$ac_cv_exeext | |
2166 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2167 | echo "${ECHO_T}$ac_file" >&6 | |
2168 | ||
2169 | # Check the compiler produces executables we can run. If not, either | |
2170 | # the compiler is broken, or we cross compile. | |
2171 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2172 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2173 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2174 | # If not cross compiling, check that we can run a simple program. | |
2175 | if test "$cross_compiling" != yes; then | |
2176 | if { ac_try='./$ac_file' | |
b7026657 AC |
2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2178 | (eval $ac_try) 2>&5 | |
2179 | ac_status=$? | |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2181 | (exit $ac_status); }; }; then |
2182 | cross_compiling=no | |
2183 | else | |
2184 | if test "$cross_compiling" = maybe; then | |
2185 | cross_compiling=yes | |
2186 | else | |
d6416cdc RW |
2187 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2188 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2189 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
f0569246 AC |
2190 | If you meant to cross compile, use \`--host'. |
2191 | See \`config.log' for more details." >&5 | |
2192 | echo "$as_me: error: cannot run C compiled programs. | |
2193 | If you meant to cross compile, use \`--host'. | |
2194 | See \`config.log' for more details." >&2;} | |
d6416cdc | 2195 | { (exit 1); exit 1; }; }; } |
f0569246 AC |
2196 | fi |
2197 | fi | |
2198 | fi | |
2199 | echo "$as_me:$LINENO: result: yes" >&5 | |
2200 | echo "${ECHO_T}yes" >&6 | |
2201 | ||
2202 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2203 | ac_clean_files=$ac_clean_files_save | |
2204 | # Check the compiler produces executables we can run. If not, either | |
2205 | # the compiler is broken, or we cross compile. | |
2206 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2207 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2208 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2209 | echo "${ECHO_T}$cross_compiling" >&6 | |
2210 | ||
2211 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2212 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2214 | (eval $ac_link) 2>&5 | |
2215 | ac_status=$? | |
2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2217 | (exit $ac_status); }; then | |
2218 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2219 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2220 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2221 | # `rm'. | |
2222 | for ac_file in conftest.exe conftest conftest.*; do | |
2223 | test -f "$ac_file" || continue | |
2224 | case $ac_file in | |
2225 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2226 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2227 | export ac_cv_exeext | |
2228 | break;; | |
2229 | * ) break;; | |
2230 | esac | |
2231 | done | |
2232 | else | |
d6416cdc RW |
2233 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2234 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2235 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
f0569246 AC |
2236 | See \`config.log' for more details." >&5 |
2237 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2238 | See \`config.log' for more details." >&2;} | |
d6416cdc | 2239 | { (exit 1); exit 1; }; }; } |
f0569246 AC |
2240 | fi |
2241 | ||
2242 | rm -f conftest$ac_cv_exeext | |
2243 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2244 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2245 | ||
2246 | rm -f conftest.$ac_ext | |
2247 | EXEEXT=$ac_cv_exeext | |
2248 | ac_exeext=$EXEEXT | |
2249 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2250 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2251 | if test "${ac_cv_objext+set}" = set; then | |
2252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2253 | else | |
2254 | cat >conftest.$ac_ext <<_ACEOF | |
2255 | /* confdefs.h. */ | |
2256 | _ACEOF | |
2257 | cat confdefs.h >>conftest.$ac_ext | |
2258 | cat >>conftest.$ac_ext <<_ACEOF | |
2259 | /* end confdefs.h. */ | |
2260 | ||
2261 | int | |
2262 | main () | |
2263 | { | |
2264 | ||
2265 | ; | |
2266 | return 0; | |
2267 | } | |
2268 | _ACEOF | |
2269 | rm -f conftest.o conftest.obj | |
2270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2271 | (eval $ac_compile) 2>&5 | |
b7026657 AC |
2272 | ac_status=$? |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2274 | (exit $ac_status); }; then |
2275 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2276 | case $ac_file in | |
2277 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2278 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2279 | break;; | |
2280 | esac | |
2281 | done | |
b7026657 AC |
2282 | else |
2283 | echo "$as_me: failed program was:" >&5 | |
2284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2285 | ||
d6416cdc RW |
2286 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2287 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
f0569246 AC |
2288 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2289 | See \`config.log' for more details." >&5 | |
2290 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2291 | See \`config.log' for more details." >&2;} | |
d6416cdc | 2292 | { (exit 1); exit 1; }; }; } |
b7026657 | 2293 | fi |
f0569246 AC |
2294 | |
2295 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2296 | fi | |
2297 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2298 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2299 | OBJEXT=$ac_cv_objext | |
2300 | ac_objext=$OBJEXT | |
2301 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2302 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2303 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2305 | else | |
b7026657 AC |
2306 | cat >conftest.$ac_ext <<_ACEOF |
2307 | /* confdefs.h. */ | |
2308 | _ACEOF | |
2309 | cat confdefs.h >>conftest.$ac_ext | |
2310 | cat >>conftest.$ac_ext <<_ACEOF | |
2311 | /* end confdefs.h. */ | |
f0569246 | 2312 | |
b7026657 AC |
2313 | int |
2314 | main () | |
2315 | { | |
f0569246 AC |
2316 | #ifndef __GNUC__ |
2317 | choke me | |
2318 | #endif | |
2319 | ||
b7026657 AC |
2320 | ; |
2321 | return 0; | |
2322 | } | |
2323 | _ACEOF | |
2324 | rm -f conftest.$ac_objext | |
2325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2326 | (eval $ac_compile) 2>conftest.er1 | |
2327 | ac_status=$? | |
2328 | grep -v '^ *+' conftest.er1 >conftest.err | |
2329 | rm -f conftest.er1 | |
2330 | cat conftest.err >&5 | |
2331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2332 | (exit $ac_status); } && | |
2333 | { ac_try='test -z "$ac_c_werror_flag" | |
2334 | || test ! -s conftest.err' | |
2335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2336 | (eval $ac_try) 2>&5 | |
2337 | ac_status=$? | |
2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2339 | (exit $ac_status); }; } && | |
2340 | { ac_try='test -s conftest.$ac_objext' | |
2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2342 | (eval $ac_try) 2>&5 | |
2343 | ac_status=$? | |
2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2345 | (exit $ac_status); }; }; then | |
f0569246 AC |
2346 | ac_compiler_gnu=yes |
2347 | else | |
2348 | echo "$as_me: failed program was:" >&5 | |
2349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 2350 | |
f0569246 AC |
2351 | ac_compiler_gnu=no |
2352 | fi | |
2353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2354 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
b7026657 | 2355 | |
b7026657 | 2356 | fi |
f0569246 AC |
2357 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2358 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2359 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2360 | ac_test_CFLAGS=${CFLAGS+set} | |
2361 | ac_save_CFLAGS=$CFLAGS | |
2362 | CFLAGS="-g" | |
2363 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2364 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2365 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 2367 | else |
f0569246 | 2368 | cat >conftest.$ac_ext <<_ACEOF |
b7026657 AC |
2369 | /* confdefs.h. */ |
2370 | _ACEOF | |
2371 | cat confdefs.h >>conftest.$ac_ext | |
2372 | cat >>conftest.$ac_ext <<_ACEOF | |
2373 | /* end confdefs.h. */ | |
f0569246 AC |
2374 | |
2375 | int | |
2376 | main () | |
2377 | { | |
2378 | ||
2379 | ; | |
2380 | return 0; | |
2381 | } | |
b7026657 AC |
2382 | _ACEOF |
2383 | rm -f conftest.$ac_objext | |
2384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2385 | (eval $ac_compile) 2>conftest.er1 | |
2386 | ac_status=$? | |
2387 | grep -v '^ *+' conftest.er1 >conftest.err | |
2388 | rm -f conftest.er1 | |
2389 | cat conftest.err >&5 | |
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2391 | (exit $ac_status); } && | |
2392 | { ac_try='test -z "$ac_c_werror_flag" | |
2393 | || test ! -s conftest.err' | |
2394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2395 | (eval $ac_try) 2>&5 | |
2396 | ac_status=$? | |
2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2398 | (exit $ac_status); }; } && | |
2399 | { ac_try='test -s conftest.$ac_objext' | |
2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2401 | (eval $ac_try) 2>&5 | |
2402 | ac_status=$? | |
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2404 | (exit $ac_status); }; }; then | |
f0569246 | 2405 | ac_cv_prog_cc_g=yes |
b7026657 AC |
2406 | else |
2407 | echo "$as_me: failed program was:" >&5 | |
2408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2409 | ||
f0569246 | 2410 | ac_cv_prog_cc_g=no |
b7026657 AC |
2411 | fi |
2412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f0569246 AC |
2413 | fi |
2414 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2415 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2416 | if test "$ac_test_CFLAGS" = set; then | |
2417 | CFLAGS=$ac_save_CFLAGS | |
2418 | elif test $ac_cv_prog_cc_g = yes; then | |
2419 | if test "$GCC" = yes; then | |
2420 | CFLAGS="-g -O2" | |
2421 | else | |
2422 | CFLAGS="-g" | |
2423 | fi | |
2424 | else | |
2425 | if test "$GCC" = yes; then | |
2426 | CFLAGS="-O2" | |
2427 | else | |
2428 | CFLAGS= | |
2429 | fi | |
2430 | fi | |
2431 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2432 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2433 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2435 | else | |
2436 | ac_cv_prog_cc_stdc=no | |
2437 | ac_save_CC=$CC | |
b7026657 AC |
2438 | cat >conftest.$ac_ext <<_ACEOF |
2439 | /* confdefs.h. */ | |
2440 | _ACEOF | |
2441 | cat confdefs.h >>conftest.$ac_ext | |
2442 | cat >>conftest.$ac_ext <<_ACEOF | |
2443 | /* end confdefs.h. */ | |
f0569246 AC |
2444 | #include <stdarg.h> |
2445 | #include <stdio.h> | |
2446 | #include <sys/types.h> | |
2447 | #include <sys/stat.h> | |
2448 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2449 | struct buf { int x; }; | |
2450 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2451 | static char *e (p, i) | |
2452 | char **p; | |
2453 | int i; | |
2454 | { | |
2455 | return p[i]; | |
2456 | } | |
2457 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2458 | { | |
2459 | char *s; | |
2460 | va_list v; | |
2461 | va_start (v,p); | |
2462 | s = g (p, va_arg (v,int)); | |
2463 | va_end (v); | |
2464 | return s; | |
2465 | } | |
2466 | ||
2467 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2468 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2469 | These don't provoke an error unfortunately, instead are silently treated | |
2470 | as 'x'. The following induces an error, until -std1 is added to get | |
2471 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2472 | array size at least. It's necessary to write '\x00'==0 to get something | |
2473 | that's true only with -std1. */ | |
2474 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2475 | ||
2476 | int test (int i, double x); | |
2477 | struct s1 {int (*f) (int a);}; | |
2478 | struct s2 {int (*f) (double a);}; | |
2479 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2480 | int argc; | |
2481 | char **argv; | |
2482 | int | |
2483 | main () | |
2484 | { | |
2485 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2486 | ; | |
2487 | return 0; | |
2488 | } | |
b7026657 | 2489 | _ACEOF |
f0569246 AC |
2490 | # Don't try gcc -ansi; that turns off useful extensions and |
2491 | # breaks some systems' header files. | |
2492 | # AIX -qlanglvl=ansi | |
2493 | # Ultrix and OSF/1 -std1 | |
2494 | # HP-UX 10.20 and later -Ae | |
2495 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2496 | # SVR4 -Xc -D__EXTENSIONS__ | |
2497 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2498 | do | |
2499 | CC="$ac_save_CC $ac_arg" | |
2500 | rm -f conftest.$ac_objext | |
2501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2502 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2503 | ac_status=$? |
2504 | grep -v '^ *+' conftest.er1 >conftest.err | |
2505 | rm -f conftest.er1 | |
2506 | cat conftest.err >&5 | |
2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
2508 | (exit $ac_status); } && |
2509 | { ac_try='test -z "$ac_c_werror_flag" | |
2510 | || test ! -s conftest.err' | |
2511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2512 | (eval $ac_try) 2>&5 | |
2513 | ac_status=$? | |
2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2515 | (exit $ac_status); }; } && | |
2516 | { ac_try='test -s conftest.$ac_objext' | |
2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2518 | (eval $ac_try) 2>&5 | |
2519 | ac_status=$? | |
2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2521 | (exit $ac_status); }; }; then | |
2522 | ac_cv_prog_cc_stdc=$ac_arg | |
2523 | break | |
b7026657 AC |
2524 | else |
2525 | echo "$as_me: failed program was:" >&5 | |
2526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2527 | ||
c906108c | 2528 | fi |
f0569246 | 2529 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2530 | done |
f0569246 AC |
2531 | rm -f conftest.$ac_ext conftest.$ac_objext |
2532 | CC=$ac_save_CC | |
c906108c | 2533 | |
f0569246 | 2534 | fi |
b7026657 | 2535 | |
f0569246 AC |
2536 | case "x$ac_cv_prog_cc_stdc" in |
2537 | x|xno) | |
2538 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2539 | echo "${ECHO_T}none needed" >&6 ;; | |
2540 | *) | |
2541 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2542 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2543 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2544 | esac | |
b7026657 | 2545 | |
f0569246 AC |
2546 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2547 | # in C++ we need to declare it. In case someone uses the same compiler | |
2548 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2549 | # the declaration of exit, since it's the most demanding environment. | |
2550 | cat >conftest.$ac_ext <<_ACEOF | |
2551 | #ifndef __cplusplus | |
2552 | choke me | |
2553 | #endif | |
2554 | _ACEOF | |
2555 | rm -f conftest.$ac_objext | |
2556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2557 | (eval $ac_compile) 2>conftest.er1 | |
2558 | ac_status=$? | |
2559 | grep -v '^ *+' conftest.er1 >conftest.err | |
2560 | rm -f conftest.er1 | |
2561 | cat conftest.err >&5 | |
2562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2563 | (exit $ac_status); } && | |
2564 | { ac_try='test -z "$ac_c_werror_flag" | |
2565 | || test ! -s conftest.err' | |
2566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2567 | (eval $ac_try) 2>&5 | |
2568 | ac_status=$? | |
2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2570 | (exit $ac_status); }; } && | |
2571 | { ac_try='test -s conftest.$ac_objext' | |
2572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2573 | (eval $ac_try) 2>&5 | |
2574 | ac_status=$? | |
2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2576 | (exit $ac_status); }; }; then | |
2577 | for ac_declaration in \ | |
2578 | '' \ | |
2579 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2580 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2581 | 'extern "C" void exit (int) throw ();' \ | |
2582 | 'extern "C" void exit (int);' \ | |
2583 | 'void exit (int);' | |
c906108c | 2584 | do |
b7026657 AC |
2585 | cat >conftest.$ac_ext <<_ACEOF |
2586 | /* confdefs.h. */ | |
2587 | _ACEOF | |
2588 | cat confdefs.h >>conftest.$ac_ext | |
2589 | cat >>conftest.$ac_ext <<_ACEOF | |
2590 | /* end confdefs.h. */ | |
f0569246 AC |
2591 | $ac_declaration |
2592 | #include <stdlib.h> | |
b7026657 AC |
2593 | int |
2594 | main () | |
2595 | { | |
f0569246 | 2596 | exit (42); |
b7026657 AC |
2597 | ; |
2598 | return 0; | |
2599 | } | |
2600 | _ACEOF | |
f0569246 AC |
2601 | rm -f conftest.$ac_objext |
2602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2603 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2604 | ac_status=$? |
2605 | grep -v '^ *+' conftest.er1 >conftest.err | |
2606 | rm -f conftest.er1 | |
2607 | cat conftest.err >&5 | |
2608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2609 | (exit $ac_status); } && | |
2610 | { ac_try='test -z "$ac_c_werror_flag" | |
2611 | || test ! -s conftest.err' | |
2612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2613 | (eval $ac_try) 2>&5 | |
2614 | ac_status=$? | |
2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2616 | (exit $ac_status); }; } && | |
f0569246 | 2617 | { ac_try='test -s conftest.$ac_objext' |
b7026657 AC |
2618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2619 | (eval $ac_try) 2>&5 | |
2620 | ac_status=$? | |
2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2622 | (exit $ac_status); }; }; then | |
f0569246 | 2623 | : |
b7026657 AC |
2624 | else |
2625 | echo "$as_me: failed program was:" >&5 | |
2626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2627 | ||
f0569246 | 2628 | continue |
c906108c | 2629 | fi |
f0569246 | 2630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 AC |
2631 | cat >conftest.$ac_ext <<_ACEOF |
2632 | /* confdefs.h. */ | |
2633 | _ACEOF | |
2634 | cat confdefs.h >>conftest.$ac_ext | |
2635 | cat >>conftest.$ac_ext <<_ACEOF | |
2636 | /* end confdefs.h. */ | |
f0569246 | 2637 | $ac_declaration |
b7026657 AC |
2638 | int |
2639 | main () | |
2640 | { | |
f0569246 | 2641 | exit (42); |
b7026657 AC |
2642 | ; |
2643 | return 0; | |
2644 | } | |
2645 | _ACEOF | |
f0569246 AC |
2646 | rm -f conftest.$ac_objext |
2647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2648 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
2649 | ac_status=$? |
2650 | grep -v '^ *+' conftest.er1 >conftest.err | |
2651 | rm -f conftest.er1 | |
2652 | cat conftest.err >&5 | |
2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2654 | (exit $ac_status); } && | |
2655 | { ac_try='test -z "$ac_c_werror_flag" | |
2656 | || test ! -s conftest.err' | |
2657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2658 | (eval $ac_try) 2>&5 | |
2659 | ac_status=$? | |
2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2661 | (exit $ac_status); }; } && | |
f0569246 | 2662 | { ac_try='test -s conftest.$ac_objext' |
b7026657 AC |
2663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2664 | (eval $ac_try) 2>&5 | |
2665 | ac_status=$? | |
2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2667 | (exit $ac_status); }; }; then | |
f0569246 AC |
2668 | break |
2669 | else | |
2670 | echo "$as_me: failed program was:" >&5 | |
2671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2672 | ||
2673 | fi | |
2674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2675 | done | |
2676 | rm -f conftest* | |
2677 | if test -n "$ac_declaration"; then | |
2678 | echo '#ifdef __cplusplus' >>confdefs.h | |
2679 | echo $ac_declaration >>confdefs.h | |
2680 | echo '#endif' >>confdefs.h | |
2681 | fi | |
2682 | ||
b7026657 AC |
2683 | else |
2684 | echo "$as_me: failed program was:" >&5 | |
2685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2686 | ||
f0569246 AC |
2687 | fi |
2688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2689 | ac_ext=c | |
2690 | ac_cpp='$CPP $CPPFLAGS' | |
2691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2694 | ||
2695 | # Find a good install program. We prefer a C program (faster), | |
2696 | # so one script is as good as another. But avoid the broken or | |
2697 | # incompatible versions: | |
2698 | # SysV /etc/install, /usr/sbin/install | |
2699 | # SunOS /usr/etc/install | |
2700 | # IRIX /sbin/install | |
2701 | # AIX /bin/install | |
2702 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2703 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2704 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2705 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2706 | # OS/2's system install, which has a completely different semantic | |
2707 | # ./install, which can be erroneously created by make from ./install.sh. | |
2708 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2709 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2710 | if test -z "$INSTALL"; then | |
2711 | if test "${ac_cv_path_install+set}" = set; then | |
2712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2713 | else | |
2714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2715 | for as_dir in $PATH | |
2716 | do | |
2717 | IFS=$as_save_IFS | |
2718 | test -z "$as_dir" && as_dir=. | |
2719 | # Account for people who put trailing slashes in PATH elements. | |
2720 | case $as_dir/ in | |
2721 | ./ | .// | /cC/* | \ | |
2722 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2723 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2724 | /usr/ucb/* ) ;; | |
2725 | *) | |
2726 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2727 | # Don't use installbsd from OSF since it installs stuff as root | |
2728 | # by default. | |
2729 | for ac_prog in ginstall scoinst install; do | |
2730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2731 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2732 | if test $ac_prog = install && | |
2733 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2734 | # AIX install. It has an incompatible calling convention. | |
2735 | : | |
2736 | elif test $ac_prog = install && | |
2737 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2738 | # program-specific install script used by HP pwplus--don't use. | |
2739 | : | |
2740 | else | |
2741 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2742 | break 3 | |
2743 | fi | |
2744 | fi | |
2745 | done | |
2746 | done | |
2747 | ;; | |
2748 | esac | |
2749 | done | |
2750 | ||
2751 | ||
2752 | fi | |
2753 | if test "${ac_cv_path_install+set}" = set; then | |
2754 | INSTALL=$ac_cv_path_install | |
2755 | else | |
2756 | # As a last resort, use the slow shell script. We don't cache a | |
2757 | # path for INSTALL within a source directory, because that will | |
2758 | # break other packages using the cache if that directory is | |
2759 | # removed, or if the path is relative. | |
2760 | INSTALL=$ac_install_sh | |
2761 | fi | |
2762 | fi | |
2763 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2764 | echo "${ECHO_T}$INSTALL" >&6 | |
2765 | ||
2766 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2767 | # It thinks the first close brace ends the variable substitution. | |
2768 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2769 | ||
2770 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2771 | ||
2772 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2773 | ||
c906108c | 2774 | |
f0569246 AC |
2775 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
2776 | if test "x$cross_compiling" = "xno"; then | |
2777 | CC_FOR_BUILD='$(CC)' | |
2778 | else | |
2779 | CC_FOR_BUILD=gcc | |
c906108c | 2780 | fi |
c906108c | 2781 | |
c906108c | 2782 | |
c906108c | 2783 | |
f0569246 AC |
2784 | |
2785 | AR=${AR-ar} | |
2786 | ||
2787 | if test -n "$ac_tool_prefix"; then | |
2788 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2789 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2792 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
b7026657 AC |
2793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2794 | else | |
f0569246 AC |
2795 | if test -n "$RANLIB"; then |
2796 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 2797 | else |
f0569246 AC |
2798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2799 | for as_dir in $PATH | |
2800 | do | |
2801 | IFS=$as_save_IFS | |
2802 | test -z "$as_dir" && as_dir=. | |
2803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2805 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2807 | break 2 | |
2808 | fi | |
2809 | done | |
2810 | done | |
b7026657 | 2811 | |
c906108c | 2812 | fi |
c906108c | 2813 | fi |
f0569246 AC |
2814 | RANLIB=$ac_cv_prog_RANLIB |
2815 | if test -n "$RANLIB"; then | |
2816 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2817 | echo "${ECHO_T}$RANLIB" >&6 | |
2818 | else | |
2819 | echo "$as_me:$LINENO: result: no" >&5 | |
2820 | echo "${ECHO_T}no" >&6 | |
2821 | fi | |
c906108c | 2822 | |
f0569246 AC |
2823 | fi |
2824 | if test -z "$ac_cv_prog_RANLIB"; then | |
2825 | ac_ct_RANLIB=$RANLIB | |
2826 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2827 | set dummy ranlib; ac_word=$2 | |
2828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2830 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2832 | else | |
2833 | if test -n "$ac_ct_RANLIB"; then | |
2834 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2835 | else | |
2836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2837 | for as_dir in $PATH | |
2838 | do | |
2839 | IFS=$as_save_IFS | |
2840 | test -z "$as_dir" && as_dir=. | |
2841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2843 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2845 | break 2 | |
c906108c | 2846 | fi |
f0569246 AC |
2847 | done |
2848 | done | |
2849 | ||
2850 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2851 | fi | |
2852 | fi | |
2853 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2854 | if test -n "$ac_ct_RANLIB"; then | |
2855 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2856 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2857 | else | |
2858 | echo "$as_me:$LINENO: result: no" >&5 | |
2859 | echo "${ECHO_T}no" >&6 | |
2860 | fi | |
c906108c | 2861 | |
f0569246 AC |
2862 | RANLIB=$ac_ct_RANLIB |
2863 | else | |
2864 | RANLIB="$ac_cv_prog_RANLIB" | |
2865 | fi | |
c906108c | 2866 | |
c906108c | 2867 | |
f0569246 | 2868 | ALL_LINGUAS= |
2f0122dc DJ |
2869 | # If we haven't got the data from the intl directory, |
2870 | # assume NLS is disabled. | |
2871 | USE_NLS=no | |
2872 | LIBINTL= | |
2873 | LIBINTL_DEP= | |
2874 | INCINTL= | |
2875 | XGETTEXT= | |
2876 | GMSGFMT= | |
2877 | POSUB= | |
e85e3205 RE |
2878 | |
2879 | if test -f ../../intl/config.intl; then | |
2880 | . ../../intl/config.intl | |
2f0122dc DJ |
2881 | fi |
2882 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
2883 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
2884 | if test x"$USE_NLS" != xyes; then | |
2885 | echo "$as_me:$LINENO: result: no" >&5 | |
2886 | echo "${ECHO_T}no" >&6 | |
2887 | else | |
2888 | echo "$as_me:$LINENO: result: yes" >&5 | |
2889 | echo "${ECHO_T}yes" >&6 | |
2890 | ||
2891 | cat >>confdefs.h <<\_ACEOF | |
2892 | #define ENABLE_NLS 1 | |
2893 | _ACEOF | |
2894 | ||
2895 | ||
2896 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
2897 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
2898 | # Look for .po and .gmo files in the source directory. | |
2899 | CATALOGS= | |
2900 | XLINGUAS= | |
2901 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
2902 | # If there aren't any .gmo files the shell will give us the | |
2903 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
2904 | # weeded out. | |
2905 | case "$cat" in *\**) | |
2906 | continue;; | |
2907 | esac | |
2908 | # The quadruple backslash is collapsed to a double backslash | |
2909 | # by the backticks, then collapsed again by the double quotes, | |
2910 | # leaving us with one backslash in the sed expression (right | |
2911 | # before the dot that mustn't act as a wildcard). | |
2912 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
2913 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
2914 | # The user is allowed to set LINGUAS to a list of languages to | |
2915 | # install catalogs for. If it's empty that means "all of them." | |
2916 | if test "x$LINGUAS" = x; then | |
2917 | CATALOGS="$CATALOGS $cat" | |
2918 | XLINGUAS="$XLINGUAS $lang" | |
2919 | else | |
2920 | case "$LINGUAS" in *$lang*) | |
2921 | CATALOGS="$CATALOGS $cat" | |
2922 | XLINGUAS="$XLINGUAS $lang" | |
2923 | ;; | |
2924 | esac | |
2925 | fi | |
2926 | done | |
2927 | LINGUAS="$XLINGUAS" | |
2928 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
2929 | echo "${ECHO_T}$LINGUAS" >&6 | |
2930 | ||
2931 | ||
2932 | DATADIRNAME=share | |
2933 | ||
2934 | INSTOBJEXT=.mo | |
2935 | ||
2936 | GENCAT=gencat | |
2937 | ||
2938 | CATOBJEXT=.gmo | |
2939 | ||
2940 | fi | |
35695fd6 | 2941 | |
20e95c23 DJ |
2942 | # Check for common headers. |
2943 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
2944 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
35695fd6 AC |
2945 | |
2946 | ac_ext=c | |
2947 | ac_cpp='$CPP $CPPFLAGS' | |
2948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2951 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2952 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2953 | # On Suns, sometimes $CPP names a directory. | |
2954 | if test -n "$CPP" && test -d "$CPP"; then | |
2955 | CPP= | |
2956 | fi | |
2957 | if test -z "$CPP"; then | |
2958 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2960 | else | |
2961 | # Double quotes because CPP needs to be expanded | |
2962 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2963 | do | |
2964 | ac_preproc_ok=false | |
2965 | for ac_c_preproc_warn_flag in '' yes | |
2966 | do | |
2967 | # Use a header file that comes with gcc, so configuring glibc | |
2968 | # with a fresh cross-compiler works. | |
2969 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2970 | # <limits.h> exists even on freestanding compilers. | |
2971 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2972 | # not just through cpp. "Syntax error" is here to catch this case. | |
2973 | cat >conftest.$ac_ext <<_ACEOF | |
2974 | /* confdefs.h. */ | |
2975 | _ACEOF | |
2976 | cat confdefs.h >>conftest.$ac_ext | |
2977 | cat >>conftest.$ac_ext <<_ACEOF | |
2978 | /* end confdefs.h. */ | |
2979 | #ifdef __STDC__ | |
2980 | # include <limits.h> | |
2981 | #else | |
2982 | # include <assert.h> | |
2983 | #endif | |
2984 | Syntax error | |
2985 | _ACEOF | |
2986 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2987 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2988 | ac_status=$? | |
2989 | grep -v '^ *+' conftest.er1 >conftest.err | |
2990 | rm -f conftest.er1 | |
2991 | cat conftest.err >&5 | |
2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2993 | (exit $ac_status); } >/dev/null; then | |
2994 | if test -s conftest.err; then | |
2995 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2996 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2997 | else | |
2998 | ac_cpp_err= | |
2999 | fi | |
3000 | else | |
3001 | ac_cpp_err=yes | |
3002 | fi | |
3003 | if test -z "$ac_cpp_err"; then | |
3004 | : | |
3005 | else | |
3006 | echo "$as_me: failed program was:" >&5 | |
3007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3008 | ||
3009 | # Broken: fails on valid input. | |
3010 | continue | |
3011 | fi | |
3012 | rm -f conftest.err conftest.$ac_ext | |
3013 | ||
3014 | # OK, works on sane cases. Now check whether non-existent headers | |
3015 | # can be detected and how. | |
3016 | cat >conftest.$ac_ext <<_ACEOF | |
3017 | /* confdefs.h. */ | |
3018 | _ACEOF | |
3019 | cat confdefs.h >>conftest.$ac_ext | |
3020 | cat >>conftest.$ac_ext <<_ACEOF | |
3021 | /* end confdefs.h. */ | |
3022 | #include <ac_nonexistent.h> | |
3023 | _ACEOF | |
3024 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
f0569246 | 3025 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
b7026657 AC |
3026 | ac_status=$? |
3027 | grep -v '^ *+' conftest.er1 >conftest.err | |
3028 | rm -f conftest.er1 | |
3029 | cat conftest.err >&5 | |
3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
3031 | (exit $ac_status); } >/dev/null; then |
3032 | if test -s conftest.err; then | |
3033 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3034 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3035 | else | |
3036 | ac_cpp_err= | |
3037 | fi | |
3038 | else | |
3039 | ac_cpp_err=yes | |
3040 | fi | |
3041 | if test -z "$ac_cpp_err"; then | |
3042 | # Broken: success on invalid input. | |
3043 | continue | |
c906108c | 3044 | else |
b7026657 AC |
3045 | echo "$as_me: failed program was:" >&5 |
3046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3047 | ||
f0569246 AC |
3048 | # Passes both tests. |
3049 | ac_preproc_ok=: | |
3050 | break | |
c906108c | 3051 | fi |
f0569246 AC |
3052 | rm -f conftest.err conftest.$ac_ext |
3053 | ||
3054 | done | |
3055 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3056 | rm -f conftest.err conftest.$ac_ext | |
3057 | if $ac_preproc_ok; then | |
3058 | break | |
c906108c | 3059 | fi |
c906108c | 3060 | |
f0569246 AC |
3061 | done |
3062 | ac_cv_prog_CPP=$CPP | |
3063 | ||
3064 | fi | |
3065 | CPP=$ac_cv_prog_CPP | |
c906108c | 3066 | else |
f0569246 AC |
3067 | ac_cv_prog_CPP=$CPP |
3068 | fi | |
3069 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3070 | echo "${ECHO_T}$CPP" >&6 | |
3071 | ac_preproc_ok=false | |
3072 | for ac_c_preproc_warn_flag in '' yes | |
3073 | do | |
3074 | # Use a header file that comes with gcc, so configuring glibc | |
3075 | # with a fresh cross-compiler works. | |
3076 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3077 | # <limits.h> exists even on freestanding compilers. | |
3078 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3079 | # not just through cpp. "Syntax error" is here to catch this case. | |
3080 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3081 | /* confdefs.h. */ |
3082 | _ACEOF | |
3083 | cat confdefs.h >>conftest.$ac_ext | |
3084 | cat >>conftest.$ac_ext <<_ACEOF | |
3085 | /* end confdefs.h. */ | |
f0569246 AC |
3086 | #ifdef __STDC__ |
3087 | # include <limits.h> | |
3088 | #else | |
3089 | # include <assert.h> | |
b7026657 | 3090 | #endif |
f0569246 | 3091 | Syntax error |
b7026657 | 3092 | _ACEOF |
f0569246 AC |
3093 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3094 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 AC |
3095 | ac_status=$? |
3096 | grep -v '^ *+' conftest.er1 >conftest.err | |
3097 | rm -f conftest.er1 | |
3098 | cat conftest.err >&5 | |
3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
3100 | (exit $ac_status); } >/dev/null; then |
3101 | if test -s conftest.err; then | |
3102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3103 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3104 | else | |
3105 | ac_cpp_err= | |
3106 | fi | |
3107 | else | |
3108 | ac_cpp_err=yes | |
3109 | fi | |
3110 | if test -z "$ac_cpp_err"; then | |
3111 | : | |
b7026657 AC |
3112 | else |
3113 | echo "$as_me: failed program was:" >&5 | |
3114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3115 | ||
f0569246 AC |
3116 | # Broken: fails on valid input. |
3117 | continue | |
b7026657 | 3118 | fi |
f0569246 AC |
3119 | rm -f conftest.err conftest.$ac_ext |
3120 | ||
3121 | # OK, works on sane cases. Now check whether non-existent headers | |
3122 | # can be detected and how. | |
b7026657 AC |
3123 | cat >conftest.$ac_ext <<_ACEOF |
3124 | /* confdefs.h. */ | |
3125 | _ACEOF | |
3126 | cat confdefs.h >>conftest.$ac_ext | |
3127 | cat >>conftest.$ac_ext <<_ACEOF | |
3128 | /* end confdefs.h. */ | |
f0569246 | 3129 | #include <ac_nonexistent.h> |
b7026657 | 3130 | _ACEOF |
f0569246 AC |
3131 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3132 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 AC |
3133 | ac_status=$? |
3134 | grep -v '^ *+' conftest.er1 >conftest.err | |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 AC |
3138 | (exit $ac_status); } >/dev/null; then |
3139 | if test -s conftest.err; then | |
3140 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3141 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3142 | else | |
3143 | ac_cpp_err= | |
3144 | fi | |
3145 | else | |
3146 | ac_cpp_err=yes | |
3147 | fi | |
3148 | if test -z "$ac_cpp_err"; then | |
3149 | # Broken: success on invalid input. | |
3150 | continue | |
c906108c | 3151 | else |
b7026657 AC |
3152 | echo "$as_me: failed program was:" >&5 |
3153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3154 | ||
f0569246 AC |
3155 | # Passes both tests. |
3156 | ac_preproc_ok=: | |
3157 | break | |
c906108c | 3158 | fi |
f0569246 | 3159 | rm -f conftest.err conftest.$ac_ext |
c906108c | 3160 | |
f0569246 AC |
3161 | done |
3162 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3163 | rm -f conftest.err conftest.$ac_ext | |
3164 | if $ac_preproc_ok; then | |
3165 | : | |
c906108c | 3166 | else |
d6416cdc RW |
3167 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3168 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3169 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
f0569246 AC |
3170 | See \`config.log' for more details." >&5 |
3171 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3172 | See \`config.log' for more details." >&2;} | |
d6416cdc | 3173 | { (exit 1); exit 1; }; }; } |
c906108c | 3174 | fi |
b7026657 | 3175 | |
f0569246 AC |
3176 | ac_ext=c |
3177 | ac_cpp='$CPP $CPPFLAGS' | |
3178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3181 | ||
3182 | ||
3183 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3184 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3185 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3187 | else | |
3188 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3189 | then ac_cv_prog_egrep='grep -E' | |
3190 | else ac_cv_prog_egrep='egrep' | |
3191 | fi | |
3192 | fi | |
3193 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3194 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3195 | EGREP=$ac_cv_prog_egrep | |
3196 | ||
3197 | ||
3198 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3199 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3200 | if test "${ac_cv_header_stdc+set}" = set; then | |
3201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3202 | else | |
3203 | cat >conftest.$ac_ext <<_ACEOF | |
3204 | /* confdefs.h. */ | |
3205 | _ACEOF | |
3206 | cat confdefs.h >>conftest.$ac_ext | |
3207 | cat >>conftest.$ac_ext <<_ACEOF | |
3208 | /* end confdefs.h. */ | |
3209 | #include <stdlib.h> | |
3210 | #include <stdarg.h> | |
3211 | #include <string.h> | |
3212 | #include <float.h> | |
c906108c | 3213 | |
b7026657 AC |
3214 | int |
3215 | main () | |
3216 | { | |
f0569246 | 3217 | |
b7026657 AC |
3218 | ; |
3219 | return 0; | |
3220 | } | |
3221 | _ACEOF | |
f0569246 AC |
3222 | rm -f conftest.$ac_objext |
3223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3224 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
3225 | ac_status=$? |
3226 | grep -v '^ *+' conftest.er1 >conftest.err | |
3227 | rm -f conftest.er1 | |
3228 | cat conftest.err >&5 | |
3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3230 | (exit $ac_status); } && | |
3231 | { ac_try='test -z "$ac_c_werror_flag" | |
3232 | || test ! -s conftest.err' | |
3233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3234 | (eval $ac_try) 2>&5 | |
3235 | ac_status=$? | |
3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3237 | (exit $ac_status); }; } && | |
f0569246 | 3238 | { ac_try='test -s conftest.$ac_objext' |
b7026657 AC |
3239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3240 | (eval $ac_try) 2>&5 | |
3241 | ac_status=$? | |
3242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3243 | (exit $ac_status); }; }; then | |
f0569246 | 3244 | ac_cv_header_stdc=yes |
b7026657 AC |
3245 | else |
3246 | echo "$as_me: failed program was:" >&5 | |
3247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3248 | ||
f0569246 | 3249 | ac_cv_header_stdc=no |
b7026657 | 3250 | fi |
f0569246 | 3251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3252 | |
f0569246 AC |
3253 | if test $ac_cv_header_stdc = yes; then |
3254 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3255 | cat >conftest.$ac_ext <<_ACEOF | |
3256 | /* confdefs.h. */ | |
3257 | _ACEOF | |
3258 | cat confdefs.h >>conftest.$ac_ext | |
3259 | cat >>conftest.$ac_ext <<_ACEOF | |
3260 | /* end confdefs.h. */ | |
3261 | #include <string.h> | |
c906108c | 3262 | |
f0569246 AC |
3263 | _ACEOF |
3264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3265 | $EGREP "memchr" >/dev/null 2>&1; then | |
3266 | : | |
c906108c | 3267 | else |
f0569246 | 3268 | ac_cv_header_stdc=no |
c906108c | 3269 | fi |
f0569246 | 3270 | rm -f conftest* |
b7026657 | 3271 | |
c906108c SS |
3272 | fi |
3273 | ||
f0569246 AC |
3274 | if test $ac_cv_header_stdc = yes; then |
3275 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3276 | cat >conftest.$ac_ext <<_ACEOF | |
3277 | /* confdefs.h. */ | |
3278 | _ACEOF | |
3279 | cat confdefs.h >>conftest.$ac_ext | |
3280 | cat >>conftest.$ac_ext <<_ACEOF | |
3281 | /* end confdefs.h. */ | |
3282 | #include <stdlib.h> | |
3283 | ||
3284 | _ACEOF | |
3285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3286 | $EGREP "free" >/dev/null 2>&1; then | |
3287 | : | |
c906108c | 3288 | else |
f0569246 | 3289 | ac_cv_header_stdc=no |
c906108c | 3290 | fi |
f0569246 AC |
3291 | rm -f conftest* |
3292 | ||
c906108c SS |
3293 | fi |
3294 | ||
f0569246 AC |
3295 | if test $ac_cv_header_stdc = yes; then |
3296 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3297 | if test "$cross_compiling" = yes; then | |
3298 | : | |
3299 | else | |
3300 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3301 | /* confdefs.h. */ |
3302 | _ACEOF | |
3303 | cat confdefs.h >>conftest.$ac_ext | |
3304 | cat >>conftest.$ac_ext <<_ACEOF | |
3305 | /* end confdefs.h. */ | |
f0569246 AC |
3306 | #include <ctype.h> |
3307 | #if ((' ' & 0x0FF) == 0x020) | |
3308 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3309 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3310 | #else | |
3311 | # define ISLOWER(c) \ | |
3312 | (('a' <= (c) && (c) <= 'i') \ | |
3313 | || ('j' <= (c) && (c) <= 'r') \ | |
3314 | || ('s' <= (c) && (c) <= 'z')) | |
3315 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3316 | #endif | |
c906108c | 3317 | |
f0569246 | 3318 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b7026657 AC |
3319 | int |
3320 | main () | |
3321 | { | |
f0569246 AC |
3322 | int i; |
3323 | for (i = 0; i < 256; i++) | |
3324 | if (XOR (islower (i), ISLOWER (i)) | |
3325 | || toupper (i) != TOUPPER (i)) | |
3326 | exit(2); | |
3327 | exit (0); | |
b7026657 AC |
3328 | } |
3329 | _ACEOF | |
f0569246 | 3330 | rm -f conftest$ac_exeext |
b7026657 | 3331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f0569246 | 3332 | (eval $ac_link) 2>&5 |
b7026657 AC |
3333 | ac_status=$? |
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f0569246 | 3335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
b7026657 AC |
3336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3337 | (eval $ac_try) 2>&5 | |
3338 | ac_status=$? | |
3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3340 | (exit $ac_status); }; }; then | |
f0569246 | 3341 | : |
c906108c | 3342 | else |
f0569246 AC |
3343 | echo "$as_me: program exited with status $ac_status" >&5 |
3344 | echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3345 | sed 's/^/| /' conftest.$ac_ext >&5 |
3346 | ||
f0569246 AC |
3347 | ( exit $ac_status ) |
3348 | ac_cv_header_stdc=no | |
c906108c | 3349 | fi |
f0569246 | 3350 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 3351 | fi |
c906108c | 3352 | fi |
c906108c | 3353 | fi |
f0569246 AC |
3354 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3355 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3356 | if test $ac_cv_header_stdc = yes; then | |
b7026657 | 3357 | |
f0569246 AC |
3358 | cat >>confdefs.h <<\_ACEOF |
3359 | #define STDC_HEADERS 1 | |
3360 | _ACEOF | |
c906108c | 3361 | |
c906108c SS |
3362 | fi |
3363 | ||
f0569246 | 3364 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b7026657 AC |
3365 | |
3366 | ||
3367 | ||
3368 | ||
3369 | ||
3370 | ||
3371 | ||
c906108c | 3372 | |
c906108c | 3373 | |
35695fd6 AC |
3374 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3375 | inttypes.h stdint.h unistd.h | |
3376 | do | |
3377 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3378 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3379 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3382 | else | |
3383 | cat >conftest.$ac_ext <<_ACEOF | |
3384 | /* confdefs.h. */ | |
3385 | _ACEOF | |
3386 | cat confdefs.h >>conftest.$ac_ext | |
3387 | cat >>conftest.$ac_ext <<_ACEOF | |
3388 | /* end confdefs.h. */ | |
3389 | $ac_includes_default | |
3390 | ||
3391 | #include <$ac_header> | |
3392 | _ACEOF | |
3393 | rm -f conftest.$ac_objext | |
3394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3395 | (eval $ac_compile) 2>conftest.er1 | |
3396 | ac_status=$? | |
3397 | grep -v '^ *+' conftest.er1 >conftest.err | |
3398 | rm -f conftest.er1 | |
3399 | cat conftest.err >&5 | |
3400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3401 | (exit $ac_status); } && | |
3402 | { ac_try='test -z "$ac_c_werror_flag" | |
3403 | || test ! -s conftest.err' | |
3404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3405 | (eval $ac_try) 2>&5 | |
3406 | ac_status=$? | |
3407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3408 | (exit $ac_status); }; } && | |
3409 | { ac_try='test -s conftest.$ac_objext' | |
3410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3411 | (eval $ac_try) 2>&5 | |
3412 | ac_status=$? | |
3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3414 | (exit $ac_status); }; }; then | |
3415 | eval "$as_ac_Header=yes" | |
3416 | else | |
3417 | echo "$as_me: failed program was:" >&5 | |
3418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3419 | ||
3420 | eval "$as_ac_Header=no" | |
3421 | fi | |
3422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3423 | fi | |
3424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3426 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3427 | cat >>confdefs.h <<_ACEOF | |
3428 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3429 | _ACEOF | |
3430 | ||
3431 | fi | |
3432 | ||
3433 | done | |
3434 | ||
3435 | ||
b7026657 AC |
3436 | |
3437 | ||
3438 | ||
3439 | ||
3440 | ||
3441 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
c906108c | 3442 | do |
b7026657 AC |
3443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3449 | fi | |
3450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3452 | else | |
3453 | # Is the header compilable? | |
3454 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3455 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3456 | cat >conftest.$ac_ext <<_ACEOF | |
3457 | /* confdefs.h. */ | |
3458 | _ACEOF | |
3459 | cat confdefs.h >>conftest.$ac_ext | |
3460 | cat >>conftest.$ac_ext <<_ACEOF | |
3461 | /* end confdefs.h. */ | |
3462 | $ac_includes_default | |
3463 | #include <$ac_header> | |
3464 | _ACEOF | |
3465 | rm -f conftest.$ac_objext | |
3466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3467 | (eval $ac_compile) 2>conftest.er1 | |
3468 | ac_status=$? | |
3469 | grep -v '^ *+' conftest.er1 >conftest.err | |
3470 | rm -f conftest.er1 | |
3471 | cat conftest.err >&5 | |
3472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3473 | (exit $ac_status); } && | |
3474 | { ac_try='test -z "$ac_c_werror_flag" | |
3475 | || test ! -s conftest.err' | |
3476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3477 | (eval $ac_try) 2>&5 | |
3478 | ac_status=$? | |
3479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3480 | (exit $ac_status); }; } && | |
3481 | { ac_try='test -s conftest.$ac_objext' | |
3482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3483 | (eval $ac_try) 2>&5 | |
3484 | ac_status=$? | |
3485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3486 | (exit $ac_status); }; }; then | |
3487 | ac_header_compiler=yes | |
3488 | else | |
3489 | echo "$as_me: failed program was:" >&5 | |
3490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3491 | ||
3492 | ac_header_compiler=no | |
3493 | fi | |
3494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3496 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3497 | ||
3498 | # Is the header present? | |
3499 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3501 | cat >conftest.$ac_ext <<_ACEOF | |
3502 | /* confdefs.h. */ | |
3503 | _ACEOF | |
3504 | cat confdefs.h >>conftest.$ac_ext | |
3505 | cat >>conftest.$ac_ext <<_ACEOF | |
3506 | /* end confdefs.h. */ | |
3507 | #include <$ac_header> | |
3508 | _ACEOF | |
3509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3511 | ac_status=$? | |
3512 | grep -v '^ *+' conftest.er1 >conftest.err | |
3513 | rm -f conftest.er1 | |
3514 | cat conftest.err >&5 | |
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3516 | (exit $ac_status); } >/dev/null; then | |
3517 | if test -s conftest.err; then | |
3518 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3520 | else | |
3521 | ac_cpp_err= | |
3522 | fi | |
3523 | else | |
3524 | ac_cpp_err=yes | |
c906108c | 3525 | fi |
b7026657 AC |
3526 | if test -z "$ac_cpp_err"; then |
3527 | ac_header_preproc=yes | |
3528 | else | |
3529 | echo "$as_me: failed program was:" >&5 | |
3530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3531 | ||
3532 | ac_header_preproc=no | |
c906108c | 3533 | fi |
b7026657 AC |
3534 | rm -f conftest.err conftest.$ac_ext |
3535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3536 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3537 | ||
3538 | # So? What about this header? | |
3539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3540 | yes:no: ) | |
3541 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3542 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3544 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3545 | ac_header_preproc=yes | |
3546 | ;; | |
3547 | no:yes:* ) | |
3548 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3549 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3550 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3551 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3552 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3553 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3554 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3555 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3557 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3558 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3559 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3560 | ( | |
3561 | cat <<\_ASBOX | |
3562 | ## ------------------------------------------ ## | |
3563 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3564 | ## ------------------------------------------ ## | |
3565 | _ASBOX | |
3566 | ) | | |
3567 | sed "s/^/$as_me: WARNING: /" >&2 | |
3568 | ;; | |
3569 | esac | |
3570 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3574 | else |
b7026657 AC |
3575 | eval "$as_ac_Header=\$ac_header_preproc" |
3576 | fi | |
3577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3579 | ||
3580 | fi | |
3581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3582 | cat >>confdefs.h <<_ACEOF | |
3583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3584 | _ACEOF | |
3585 | ||
c906108c | 3586 | fi |
b7026657 | 3587 | |
c906108c SS |
3588 | done |
3589 | ||
b7026657 AC |
3590 | |
3591 | ||
3592 | for ac_header in sys/time.h sys/resource.h | |
c906108c | 3593 | do |
b7026657 AC |
3594 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3595 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3596 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3597 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3598 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3600 | fi | |
3601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3602 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3603 | else | |
3604 | # Is the header compilable? | |
3605 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3606 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3607 | cat >conftest.$ac_ext <<_ACEOF | |
3608 | /* confdefs.h. */ | |
3609 | _ACEOF | |
3610 | cat confdefs.h >>conftest.$ac_ext | |
3611 | cat >>conftest.$ac_ext <<_ACEOF | |
3612 | /* end confdefs.h. */ | |
3613 | $ac_includes_default | |
3614 | #include <$ac_header> | |
3615 | _ACEOF | |
3616 | rm -f conftest.$ac_objext | |
3617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3618 | (eval $ac_compile) 2>conftest.er1 | |
3619 | ac_status=$? | |
3620 | grep -v '^ *+' conftest.er1 >conftest.err | |
3621 | rm -f conftest.er1 | |
3622 | cat conftest.err >&5 | |
3623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3624 | (exit $ac_status); } && | |
3625 | { ac_try='test -z "$ac_c_werror_flag" | |
3626 | || test ! -s conftest.err' | |
3627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3628 | (eval $ac_try) 2>&5 | |
3629 | ac_status=$? | |
3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3631 | (exit $ac_status); }; } && | |
3632 | { ac_try='test -s conftest.$ac_objext' | |
3633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3634 | (eval $ac_try) 2>&5 | |
3635 | ac_status=$? | |
3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3637 | (exit $ac_status); }; }; then | |
3638 | ac_header_compiler=yes | |
3639 | else | |
3640 | echo "$as_me: failed program was:" >&5 | |
3641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3642 | ||
3643 | ac_header_compiler=no | |
3644 | fi | |
3645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3646 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3647 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3648 | ||
3649 | # Is the header present? | |
3650 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3651 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3652 | cat >conftest.$ac_ext <<_ACEOF | |
3653 | /* confdefs.h. */ | |
3654 | _ACEOF | |
3655 | cat confdefs.h >>conftest.$ac_ext | |
3656 | cat >>conftest.$ac_ext <<_ACEOF | |
3657 | /* end confdefs.h. */ | |
3658 | #include <$ac_header> | |
3659 | _ACEOF | |
3660 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3661 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3662 | ac_status=$? | |
3663 | grep -v '^ *+' conftest.er1 >conftest.err | |
3664 | rm -f conftest.er1 | |
3665 | cat conftest.err >&5 | |
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3667 | (exit $ac_status); } >/dev/null; then | |
3668 | if test -s conftest.err; then | |
3669 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3670 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3671 | else | |
3672 | ac_cpp_err= | |
3673 | fi | |
3674 | else | |
3675 | ac_cpp_err=yes | |
c906108c | 3676 | fi |
b7026657 AC |
3677 | if test -z "$ac_cpp_err"; then |
3678 | ac_header_preproc=yes | |
3679 | else | |
3680 | echo "$as_me: failed program was:" >&5 | |
3681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3682 | ||
3683 | ac_header_preproc=no | |
c906108c | 3684 | fi |
b7026657 AC |
3685 | rm -f conftest.err conftest.$ac_ext |
3686 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3687 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3688 | ||
3689 | # So? What about this header? | |
3690 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3691 | yes:no: ) | |
3692 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3693 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3695 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3696 | ac_header_preproc=yes | |
3697 | ;; | |
3698 | no:yes:* ) | |
3699 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3700 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3701 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3702 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3703 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3704 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3705 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3706 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3708 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3709 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3710 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3711 | ( | |
3712 | cat <<\_ASBOX | |
3713 | ## ------------------------------------------ ## | |
3714 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3715 | ## ------------------------------------------ ## | |
3716 | _ASBOX | |
3717 | ) | | |
3718 | sed "s/^/$as_me: WARNING: /" >&2 | |
3719 | ;; | |
3720 | esac | |
3721 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3723 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3725 | else |
b7026657 | 3726 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 3727 | fi |
b7026657 AC |
3728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3730 | ||
3731 | fi | |
3732 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3733 | cat >>confdefs.h <<_ACEOF | |
3734 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3735 | _ACEOF | |
3736 | ||
3737 | fi | |
3738 | ||
c906108c SS |
3739 | done |
3740 | ||
b7026657 AC |
3741 | |
3742 | ||
3743 | for ac_header in fcntl.h fpu_control.h | |
c906108c | 3744 | do |
b7026657 AC |
3745 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3747 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3751 | fi | |
3752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3753 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3754 | else | |
3755 | # Is the header compilable? | |
3756 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3757 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3758 | cat >conftest.$ac_ext <<_ACEOF | |
3759 | /* confdefs.h. */ | |
3760 | _ACEOF | |
3761 | cat confdefs.h >>conftest.$ac_ext | |
3762 | cat >>conftest.$ac_ext <<_ACEOF | |
3763 | /* end confdefs.h. */ | |
3764 | $ac_includes_default | |
3765 | #include <$ac_header> | |
3766 | _ACEOF | |
3767 | rm -f conftest.$ac_objext | |
3768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3769 | (eval $ac_compile) 2>conftest.er1 | |
3770 | ac_status=$? | |
3771 | grep -v '^ *+' conftest.er1 >conftest.err | |
3772 | rm -f conftest.er1 | |
3773 | cat conftest.err >&5 | |
3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3775 | (exit $ac_status); } && | |
3776 | { ac_try='test -z "$ac_c_werror_flag" | |
3777 | || test ! -s conftest.err' | |
3778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3779 | (eval $ac_try) 2>&5 | |
3780 | ac_status=$? | |
3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3782 | (exit $ac_status); }; } && | |
3783 | { ac_try='test -s conftest.$ac_objext' | |
3784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3785 | (eval $ac_try) 2>&5 | |
3786 | ac_status=$? | |
3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3788 | (exit $ac_status); }; }; then | |
3789 | ac_header_compiler=yes | |
3790 | else | |
3791 | echo "$as_me: failed program was:" >&5 | |
3792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3793 | ||
3794 | ac_header_compiler=no | |
3795 | fi | |
3796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3797 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3798 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3799 | ||
3800 | # Is the header present? | |
3801 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3802 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3803 | cat >conftest.$ac_ext <<_ACEOF | |
3804 | /* confdefs.h. */ | |
3805 | _ACEOF | |
3806 | cat confdefs.h >>conftest.$ac_ext | |
3807 | cat >>conftest.$ac_ext <<_ACEOF | |
3808 | /* end confdefs.h. */ | |
3809 | #include <$ac_header> | |
3810 | _ACEOF | |
3811 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3812 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3813 | ac_status=$? | |
3814 | grep -v '^ *+' conftest.er1 >conftest.err | |
3815 | rm -f conftest.er1 | |
3816 | cat conftest.err >&5 | |
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); } >/dev/null; then | |
3819 | if test -s conftest.err; then | |
3820 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3822 | else | |
3823 | ac_cpp_err= | |
3824 | fi | |
3825 | else | |
3826 | ac_cpp_err=yes | |
cd0fc7c3 | 3827 | fi |
b7026657 AC |
3828 | if test -z "$ac_cpp_err"; then |
3829 | ac_header_preproc=yes | |
3830 | else | |
3831 | echo "$as_me: failed program was:" >&5 | |
3832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3833 | ||
3834 | ac_header_preproc=no | |
cd0fc7c3 | 3835 | fi |
b7026657 AC |
3836 | rm -f conftest.err conftest.$ac_ext |
3837 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3838 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3839 | ||
3840 | # So? What about this header? | |
3841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3842 | yes:no: ) | |
3843 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3844 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3846 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3847 | ac_header_preproc=yes | |
3848 | ;; | |
3849 | no:yes:* ) | |
3850 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3852 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3853 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3854 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3855 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3856 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3857 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3859 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3860 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3861 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3862 | ( | |
3863 | cat <<\_ASBOX | |
3864 | ## ------------------------------------------ ## | |
3865 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3866 | ## ------------------------------------------ ## | |
3867 | _ASBOX | |
3868 | ) | | |
3869 | sed "s/^/$as_me: WARNING: /" >&2 | |
3870 | ;; | |
3871 | esac | |
3872 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd0fc7c3 | 3876 | else |
b7026657 AC |
3877 | eval "$as_ac_Header=\$ac_header_preproc" |
3878 | fi | |
3879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3881 | ||
3882 | fi | |
3883 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3884 | cat >>confdefs.h <<_ACEOF | |
3885 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3886 | _ACEOF | |
3887 | ||
cd0fc7c3 | 3888 | fi |
b7026657 | 3889 | |
cd0fc7c3 SS |
3890 | done |
3891 | ||
b7026657 AC |
3892 | |
3893 | ||
3894 | ||
3895 | for ac_header in dlfcn.h errno.h sys/stat.h | |
cd0fc7c3 | 3896 | do |
b7026657 AC |
3897 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3903 | fi | |
3904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3905 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3906 | else | |
3907 | # Is the header compilable? | |
3908 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3909 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3910 | cat >conftest.$ac_ext <<_ACEOF | |
3911 | /* confdefs.h. */ | |
3912 | _ACEOF | |
3913 | cat confdefs.h >>conftest.$ac_ext | |
3914 | cat >>conftest.$ac_ext <<_ACEOF | |
3915 | /* end confdefs.h. */ | |
3916 | $ac_includes_default | |
3917 | #include <$ac_header> | |
3918 | _ACEOF | |
3919 | rm -f conftest.$ac_objext | |
3920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3921 | (eval $ac_compile) 2>conftest.er1 | |
3922 | ac_status=$? | |
3923 | grep -v '^ *+' conftest.er1 >conftest.err | |
3924 | rm -f conftest.er1 | |
3925 | cat conftest.err >&5 | |
3926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3927 | (exit $ac_status); } && | |
3928 | { ac_try='test -z "$ac_c_werror_flag" | |
3929 | || test ! -s conftest.err' | |
3930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3931 | (eval $ac_try) 2>&5 | |
3932 | ac_status=$? | |
3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3934 | (exit $ac_status); }; } && | |
3935 | { ac_try='test -s conftest.$ac_objext' | |
3936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3937 | (eval $ac_try) 2>&5 | |
3938 | ac_status=$? | |
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3940 | (exit $ac_status); }; }; then | |
3941 | ac_header_compiler=yes | |
3942 | else | |
3943 | echo "$as_me: failed program was:" >&5 | |
3944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3945 | ||
3946 | ac_header_compiler=no | |
3947 | fi | |
3948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3949 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3950 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3951 | ||
3952 | # Is the header present? | |
3953 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3955 | cat >conftest.$ac_ext <<_ACEOF | |
3956 | /* confdefs.h. */ | |
3957 | _ACEOF | |
3958 | cat confdefs.h >>conftest.$ac_ext | |
3959 | cat >>conftest.$ac_ext <<_ACEOF | |
3960 | /* end confdefs.h. */ | |
3961 | #include <$ac_header> | |
3962 | _ACEOF | |
3963 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3965 | ac_status=$? | |
3966 | grep -v '^ *+' conftest.er1 >conftest.err | |
3967 | rm -f conftest.er1 | |
3968 | cat conftest.err >&5 | |
3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3970 | (exit $ac_status); } >/dev/null; then | |
3971 | if test -s conftest.err; then | |
3972 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3974 | else | |
3975 | ac_cpp_err= | |
3976 | fi | |
3977 | else | |
3978 | ac_cpp_err=yes | |
c906108c | 3979 | fi |
b7026657 AC |
3980 | if test -z "$ac_cpp_err"; then |
3981 | ac_header_preproc=yes | |
3982 | else | |
3983 | echo "$as_me: failed program was:" >&5 | |
3984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3985 | ||
3986 | ac_header_preproc=no | |
c906108c | 3987 | fi |
b7026657 AC |
3988 | rm -f conftest.err conftest.$ac_ext |
3989 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3990 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3991 | ||
3992 | # So? What about this header? | |
3993 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3994 | yes:no: ) | |
3995 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3996 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3998 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3999 | ac_header_preproc=yes | |
4000 | ;; | |
4001 | no:yes:* ) | |
4002 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4003 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4004 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4005 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4006 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4007 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4008 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4009 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4011 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4012 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4013 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4014 | ( | |
4015 | cat <<\_ASBOX | |
4016 | ## ------------------------------------------ ## | |
4017 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4018 | ## ------------------------------------------ ## | |
4019 | _ASBOX | |
4020 | ) | | |
4021 | sed "s/^/$as_me: WARNING: /" >&2 | |
4022 | ;; | |
4023 | esac | |
4024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4028 | else |
b7026657 AC |
4029 | eval "$as_ac_Header=\$ac_header_preproc" |
4030 | fi | |
4031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4033 | ||
4034 | fi | |
4035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4036 | cat >>confdefs.h <<_ACEOF | |
4037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4038 | _ACEOF | |
4039 | ||
c906108c | 4040 | fi |
b7026657 | 4041 | |
c906108c SS |
4042 | done |
4043 | ||
b7026657 AC |
4044 | |
4045 | ||
4046 | ||
4047 | ||
c906108c SS |
4048 | for ac_func in getrusage time sigaction __setfpucw |
4049 | do | |
b7026657 AC |
4050 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4051 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4052 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4053 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4055 | else | |
4056 | cat >conftest.$ac_ext <<_ACEOF | |
4057 | /* confdefs.h. */ | |
4058 | _ACEOF | |
4059 | cat confdefs.h >>conftest.$ac_ext | |
4060 | cat >>conftest.$ac_ext <<_ACEOF | |
4061 | /* end confdefs.h. */ | |
4062 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4063 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4064 | #define $ac_func innocuous_$ac_func | |
4065 | ||
c906108c | 4066 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4067 | which can conflict with char $ac_func (); below. |
4068 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4069 | <limits.h> exists even on freestanding compilers. */ | |
4070 | ||
4071 | #ifdef __STDC__ | |
4072 | # include <limits.h> | |
4073 | #else | |
4074 | # include <assert.h> | |
4075 | #endif | |
c906108c | 4076 | |
b7026657 | 4077 | #undef $ac_func |
c906108c | 4078 | |
b7026657 AC |
4079 | /* Override any gcc2 internal prototype to avoid an error. */ |
4080 | #ifdef __cplusplus | |
4081 | extern "C" | |
4082 | { | |
4083 | #endif | |
4084 | /* We use char because int might match the return type of a gcc2 | |
4085 | builtin and then its argument prototype would still apply. */ | |
4086 | char $ac_func (); | |
c906108c SS |
4087 | /* The GNU C library defines this for functions which it implements |
4088 | to always fail with ENOSYS. Some functions are actually named | |
4089 | something starting with __ and the normal name is an alias. */ | |
4090 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4091 | choke me | |
4092 | #else | |
b7026657 AC |
4093 | char (*f) () = $ac_func; |
4094 | #endif | |
4095 | #ifdef __cplusplus | |
4096 | } | |
c906108c SS |
4097 | #endif |
4098 | ||
b7026657 AC |
4099 | int |
4100 | main () | |
4101 | { | |
4102 | return f != $ac_func; | |
4103 | ; | |
4104 | return 0; | |
4105 | } | |
4106 | _ACEOF | |
4107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4109 | (eval $ac_link) 2>conftest.er1 | |
4110 | ac_status=$? | |
4111 | grep -v '^ *+' conftest.er1 >conftest.err | |
4112 | rm -f conftest.er1 | |
4113 | cat conftest.err >&5 | |
4114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4115 | (exit $ac_status); } && | |
4116 | { ac_try='test -z "$ac_c_werror_flag" | |
4117 | || test ! -s conftest.err' | |
4118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4119 | (eval $ac_try) 2>&5 | |
4120 | ac_status=$? | |
4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4122 | (exit $ac_status); }; } && | |
4123 | { ac_try='test -s conftest$ac_exeext' | |
4124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4125 | (eval $ac_try) 2>&5 | |
4126 | ac_status=$? | |
4127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4128 | (exit $ac_status); }; }; then | |
4129 | eval "$as_ac_var=yes" | |
4130 | else | |
4131 | echo "$as_me: failed program was:" >&5 | |
4132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4133 | ||
4134 | eval "$as_ac_var=no" | |
4135 | fi | |
4136 | rm -f conftest.err conftest.$ac_objext \ | |
4137 | conftest$ac_exeext conftest.$ac_ext | |
4138 | fi | |
4139 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4140 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4141 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4142 | cat >>confdefs.h <<_ACEOF | |
4143 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4144 | _ACEOF | |
c906108c | 4145 | |
c906108c SS |
4146 | fi |
4147 | done | |
4148 | ||
4149 | ||
4150 | # Check for socket libraries | |
b7026657 AC |
4151 | |
4152 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
4153 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
4154 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
4155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4156 | else |
b7026657 | 4157 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4158 | LIBS="-lsocket $LIBS" |
b7026657 AC |
4159 | cat >conftest.$ac_ext <<_ACEOF |
4160 | /* confdefs.h. */ | |
4161 | _ACEOF | |
4162 | cat confdefs.h >>conftest.$ac_ext | |
4163 | cat >>conftest.$ac_ext <<_ACEOF | |
4164 | /* end confdefs.h. */ | |
c906108c | 4165 | |
b7026657 AC |
4166 | /* Override any gcc2 internal prototype to avoid an error. */ |
4167 | #ifdef __cplusplus | |
4168 | extern "C" | |
4169 | #endif | |
4170 | /* We use char because int might match the return type of a gcc2 | |
4171 | builtin and then its argument prototype would still apply. */ | |
4172 | char bind (); | |
4173 | int | |
4174 | main () | |
4175 | { | |
4176 | bind (); | |
4177 | ; | |
4178 | return 0; | |
4179 | } | |
4180 | _ACEOF | |
4181 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4183 | (eval $ac_link) 2>conftest.er1 | |
4184 | ac_status=$? | |
4185 | grep -v '^ *+' conftest.er1 >conftest.err | |
4186 | rm -f conftest.er1 | |
4187 | cat conftest.err >&5 | |
4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4189 | (exit $ac_status); } && | |
4190 | { ac_try='test -z "$ac_c_werror_flag" | |
4191 | || test ! -s conftest.err' | |
4192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4193 | (eval $ac_try) 2>&5 | |
4194 | ac_status=$? | |
4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4196 | (exit $ac_status); }; } && | |
4197 | { ac_try='test -s conftest$ac_exeext' | |
4198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4199 | (eval $ac_try) 2>&5 | |
4200 | ac_status=$? | |
4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4202 | (exit $ac_status); }; }; then | |
4203 | ac_cv_lib_socket_bind=yes | |
4204 | else | |
4205 | echo "$as_me: failed program was:" >&5 | |
4206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4207 | ||
4208 | ac_cv_lib_socket_bind=no | |
4209 | fi | |
4210 | rm -f conftest.err conftest.$ac_objext \ | |
4211 | conftest$ac_exeext conftest.$ac_ext | |
4212 | LIBS=$ac_check_lib_save_LIBS | |
4213 | fi | |
4214 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
4215 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
4216 | if test $ac_cv_lib_socket_bind = yes; then | |
4217 | cat >>confdefs.h <<_ACEOF | |
4218 | #define HAVE_LIBSOCKET 1 | |
4219 | _ACEOF | |
c906108c SS |
4220 | |
4221 | LIBS="-lsocket $LIBS" | |
4222 | ||
c906108c SS |
4223 | fi |
4224 | ||
b7026657 AC |
4225 | |
4226 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
4227 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
4228 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
4229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4230 | else |
b7026657 | 4231 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4232 | LIBS="-lnsl $LIBS" |
b7026657 AC |
4233 | cat >conftest.$ac_ext <<_ACEOF |
4234 | /* confdefs.h. */ | |
4235 | _ACEOF | |
4236 | cat confdefs.h >>conftest.$ac_ext | |
4237 | cat >>conftest.$ac_ext <<_ACEOF | |
4238 | /* end confdefs.h. */ | |
4239 | ||
c906108c | 4240 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4241 | #ifdef __cplusplus |
4242 | extern "C" | |
4243 | #endif | |
c906108c | 4244 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
4245 | builtin and then its argument prototype would still apply. */ |
4246 | char gethostbyname (); | |
4247 | int | |
4248 | main () | |
4249 | { | |
4250 | gethostbyname (); | |
4251 | ; | |
4252 | return 0; | |
4253 | } | |
4254 | _ACEOF | |
4255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4257 | (eval $ac_link) 2>conftest.er1 | |
4258 | ac_status=$? | |
4259 | grep -v '^ *+' conftest.er1 >conftest.err | |
4260 | rm -f conftest.er1 | |
4261 | cat conftest.err >&5 | |
4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4263 | (exit $ac_status); } && | |
4264 | { ac_try='test -z "$ac_c_werror_flag" | |
4265 | || test ! -s conftest.err' | |
4266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4267 | (eval $ac_try) 2>&5 | |
4268 | ac_status=$? | |
4269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4270 | (exit $ac_status); }; } && | |
4271 | { ac_try='test -s conftest$ac_exeext' | |
4272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4273 | (eval $ac_try) 2>&5 | |
4274 | ac_status=$? | |
4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4276 | (exit $ac_status); }; }; then | |
4277 | ac_cv_lib_nsl_gethostbyname=yes | |
4278 | else | |
4279 | echo "$as_me: failed program was:" >&5 | |
4280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4281 | ||
4282 | ac_cv_lib_nsl_gethostbyname=no | |
4283 | fi | |
4284 | rm -f conftest.err conftest.$ac_objext \ | |
4285 | conftest$ac_exeext conftest.$ac_ext | |
4286 | LIBS=$ac_check_lib_save_LIBS | |
4287 | fi | |
4288 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
4289 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
4290 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
4291 | cat >>confdefs.h <<_ACEOF | |
4292 | #define HAVE_LIBNSL 1 | |
4293 | _ACEOF | |
c906108c SS |
4294 | |
4295 | LIBS="-lnsl $LIBS" | |
4296 | ||
c906108c SS |
4297 | fi |
4298 | ||
4299 | ||
b5bd9624 HPN |
4300 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by |
4301 | # using the same condition. | |
4302 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 | |
4303 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 | |
4304 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4306 | else | |
4307 | ac_func_search_save_LIBS=$LIBS | |
4308 | ac_cv_search_zlibVersion=no | |
4309 | cat >conftest.$ac_ext <<_ACEOF | |
4310 | /* confdefs.h. */ | |
4311 | _ACEOF | |
4312 | cat confdefs.h >>conftest.$ac_ext | |
4313 | cat >>conftest.$ac_ext <<_ACEOF | |
4314 | /* end confdefs.h. */ | |
4315 | ||
4316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4317 | #ifdef __cplusplus | |
4318 | extern "C" | |
4319 | #endif | |
4320 | /* We use char because int might match the return type of a gcc2 | |
4321 | builtin and then its argument prototype would still apply. */ | |
4322 | char zlibVersion (); | |
4323 | int | |
4324 | main () | |
4325 | { | |
4326 | zlibVersion (); | |
4327 | ; | |
4328 | return 0; | |
4329 | } | |
4330 | _ACEOF | |
4331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4333 | (eval $ac_link) 2>conftest.er1 | |
4334 | ac_status=$? | |
4335 | grep -v '^ *+' conftest.er1 >conftest.err | |
4336 | rm -f conftest.er1 | |
4337 | cat conftest.err >&5 | |
4338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4339 | (exit $ac_status); } && | |
4340 | { ac_try='test -z "$ac_c_werror_flag" | |
4341 | || test ! -s conftest.err' | |
4342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4343 | (eval $ac_try) 2>&5 | |
4344 | ac_status=$? | |
4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4346 | (exit $ac_status); }; } && | |
4347 | { ac_try='test -s conftest$ac_exeext' | |
4348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4349 | (eval $ac_try) 2>&5 | |
4350 | ac_status=$? | |
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4352 | (exit $ac_status); }; }; then | |
4353 | ac_cv_search_zlibVersion="none required" | |
4354 | else | |
4355 | echo "$as_me: failed program was:" >&5 | |
4356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4357 | ||
4358 | fi | |
4359 | rm -f conftest.err conftest.$ac_objext \ | |
4360 | conftest$ac_exeext conftest.$ac_ext | |
4361 | if test "$ac_cv_search_zlibVersion" = no; then | |
4362 | for ac_lib in z; do | |
4363 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4364 | cat >conftest.$ac_ext <<_ACEOF | |
4365 | /* confdefs.h. */ | |
4366 | _ACEOF | |
4367 | cat confdefs.h >>conftest.$ac_ext | |
4368 | cat >>conftest.$ac_ext <<_ACEOF | |
4369 | /* end confdefs.h. */ | |
4370 | ||
4371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4372 | #ifdef __cplusplus | |
4373 | extern "C" | |
4374 | #endif | |
4375 | /* We use char because int might match the return type of a gcc2 | |
4376 | builtin and then its argument prototype would still apply. */ | |
4377 | char zlibVersion (); | |
4378 | int | |
4379 | main () | |
4380 | { | |
4381 | zlibVersion (); | |
4382 | ; | |
4383 | return 0; | |
4384 | } | |
4385 | _ACEOF | |
4386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4388 | (eval $ac_link) 2>conftest.er1 | |
4389 | ac_status=$? | |
4390 | grep -v '^ *+' conftest.er1 >conftest.err | |
4391 | rm -f conftest.er1 | |
4392 | cat conftest.err >&5 | |
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4394 | (exit $ac_status); } && | |
4395 | { ac_try='test -z "$ac_c_werror_flag" | |
4396 | || test ! -s conftest.err' | |
4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4398 | (eval $ac_try) 2>&5 | |
4399 | ac_status=$? | |
4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4401 | (exit $ac_status); }; } && | |
4402 | { ac_try='test -s conftest$ac_exeext' | |
4403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4404 | (eval $ac_try) 2>&5 | |
4405 | ac_status=$? | |
4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4407 | (exit $ac_status); }; }; then | |
4408 | ac_cv_search_zlibVersion="-l$ac_lib" | |
4409 | break | |
4410 | else | |
4411 | echo "$as_me: failed program was:" >&5 | |
4412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4413 | ||
4414 | fi | |
4415 | rm -f conftest.err conftest.$ac_objext \ | |
4416 | conftest$ac_exeext conftest.$ac_ext | |
4417 | done | |
4418 | fi | |
4419 | LIBS=$ac_func_search_save_LIBS | |
4420 | fi | |
4421 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
4422 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 | |
4423 | if test "$ac_cv_search_zlibVersion" != no; then | |
4424 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" | |
4425 | ||
4426 | for ac_header in zlib.h | |
4427 | do | |
4428 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4429 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4434 | fi | |
4435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4437 | else | |
4438 | # Is the header compilable? | |
4439 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4440 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4441 | cat >conftest.$ac_ext <<_ACEOF | |
4442 | /* confdefs.h. */ | |
4443 | _ACEOF | |
4444 | cat confdefs.h >>conftest.$ac_ext | |
4445 | cat >>conftest.$ac_ext <<_ACEOF | |
4446 | /* end confdefs.h. */ | |
4447 | $ac_includes_default | |
4448 | #include <$ac_header> | |
4449 | _ACEOF | |
4450 | rm -f conftest.$ac_objext | |
4451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4452 | (eval $ac_compile) 2>conftest.er1 | |
4453 | ac_status=$? | |
4454 | grep -v '^ *+' conftest.er1 >conftest.err | |
4455 | rm -f conftest.er1 | |
4456 | cat conftest.err >&5 | |
4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4458 | (exit $ac_status); } && | |
4459 | { ac_try='test -z "$ac_c_werror_flag" | |
4460 | || test ! -s conftest.err' | |
4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4462 | (eval $ac_try) 2>&5 | |
4463 | ac_status=$? | |
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4465 | (exit $ac_status); }; } && | |
4466 | { ac_try='test -s conftest.$ac_objext' | |
4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4468 | (eval $ac_try) 2>&5 | |
4469 | ac_status=$? | |
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4471 | (exit $ac_status); }; }; then | |
4472 | ac_header_compiler=yes | |
4473 | else | |
4474 | echo "$as_me: failed program was:" >&5 | |
4475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4476 | ||
4477 | ac_header_compiler=no | |
4478 | fi | |
4479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4480 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4481 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4482 | ||
4483 | # Is the header present? | |
4484 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4485 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4486 | cat >conftest.$ac_ext <<_ACEOF | |
4487 | /* confdefs.h. */ | |
4488 | _ACEOF | |
4489 | cat confdefs.h >>conftest.$ac_ext | |
4490 | cat >>conftest.$ac_ext <<_ACEOF | |
4491 | /* end confdefs.h. */ | |
4492 | #include <$ac_header> | |
4493 | _ACEOF | |
4494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4496 | ac_status=$? | |
4497 | grep -v '^ *+' conftest.er1 >conftest.err | |
4498 | rm -f conftest.er1 | |
4499 | cat conftest.err >&5 | |
4500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4501 | (exit $ac_status); } >/dev/null; then | |
4502 | if test -s conftest.err; then | |
4503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4505 | else | |
4506 | ac_cpp_err= | |
4507 | fi | |
4508 | else | |
4509 | ac_cpp_err=yes | |
4510 | fi | |
4511 | if test -z "$ac_cpp_err"; then | |
4512 | ac_header_preproc=yes | |
4513 | else | |
4514 | echo "$as_me: failed program was:" >&5 | |
4515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4516 | ||
4517 | ac_header_preproc=no | |
4518 | fi | |
4519 | rm -f conftest.err conftest.$ac_ext | |
4520 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4521 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4522 | ||
4523 | # So? What about this header? | |
4524 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4525 | yes:no: ) | |
4526 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4527 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4528 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4529 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4530 | ac_header_preproc=yes | |
4531 | ;; | |
4532 | no:yes:* ) | |
4533 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4534 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4535 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4536 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4537 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4538 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4539 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4540 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4541 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4542 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4543 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4544 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4545 | ( | |
4546 | cat <<\_ASBOX | |
4547 | ## ------------------------------------------ ## | |
4548 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4549 | ## ------------------------------------------ ## | |
4550 | _ASBOX | |
4551 | ) | | |
4552 | sed "s/^/$as_me: WARNING: /" >&2 | |
4553 | ;; | |
4554 | esac | |
4555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4559 | else | |
4560 | eval "$as_ac_Header=\$ac_header_preproc" | |
4561 | fi | |
4562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4564 | ||
4565 | fi | |
4566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4567 | cat >>confdefs.h <<_ACEOF | |
4568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4569 | _ACEOF | |
4570 | ||
4571 | fi | |
4572 | ||
4573 | done | |
4574 | ||
4575 | fi | |
4576 | ||
4577 | ||
c906108c SS |
4578 | . ${srcdir}/../../bfd/configure.host |
4579 | ||
4580 | ||
4581 | ||
4582 | USE_MAINTAINER_MODE=no | |
4583 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
4584 | if test "${enable_maintainer_mode+set}" = set; then | |
4585 | enableval="$enable_maintainer_mode" | |
4586 | case "${enableval}" in | |
4587 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
4588 | no) MAINT="#" ;; | |
b7026657 AC |
4589 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
4590 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
4591 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
c906108c SS |
4592 | esac |
4593 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
4594 | echo "Setting maintainer mode" 6>&1 | |
4595 | fi | |
4596 | else | |
4597 | MAINT="#" | |
b7026657 | 4598 | fi; |
c906108c SS |
4599 | |
4600 | ||
4601 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
4602 | if test "${enable_sim_bswap+set}" = set; then | |
4603 | enableval="$enable_sim_bswap" | |
4604 | case "${enableval}" in | |
4605 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
4606 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
4607 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
4608 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
4609 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
4610 | esac |
4611 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
4612 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
4613 | fi | |
4614 | else | |
4615 | sim_bswap="" | |
b7026657 | 4616 | fi; |
c906108c SS |
4617 | |
4618 | ||
4619 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
4620 | if test "${enable_sim_cflags+set}" = set; then | |
4621 | enableval="$enable_sim_cflags" | |
4622 | case "${enableval}" in | |
4623 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
4624 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
4625 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
4626 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
c906108c SS |
4627 | no) sim_cflags="";; |
4628 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4629 | esac | |
4630 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
4631 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
4632 | fi | |
4633 | else | |
4634 | sim_cflags="" | |
b7026657 | 4635 | fi; |
c906108c SS |
4636 | |
4637 | ||
4638 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
4639 | if test "${enable_sim_debug+set}" = set; then | |
4640 | enableval="$enable_sim_debug" | |
4641 | case "${enableval}" in | |
4642 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
4643 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
4644 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
4645 | esac | |
4646 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
4647 | echo "Setting sim debug = $sim_debug" 6>&1 | |
4648 | fi | |
4649 | else | |
4650 | sim_debug="" | |
b7026657 | 4651 | fi; |
c906108c SS |
4652 | |
4653 | ||
4654 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
4655 | if test "${enable_sim_stdio+set}" = set; then | |
4656 | enableval="$enable_sim_stdio" | |
4657 | case "${enableval}" in | |
4658 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
4659 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
4660 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
4661 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
4662 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
4663 | esac |
4664 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
4665 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
4666 | fi | |
4667 | else | |
4668 | sim_stdio="" | |
b7026657 | 4669 | fi; |
c906108c SS |
4670 | |
4671 | ||
4672 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
4673 | if test "${enable_sim_trace+set}" = set; then | |
4674 | enableval="$enable_sim_trace" | |
4675 | case "${enableval}" in | |
4676 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
4677 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
4678 | [-0-9]*) | |
4679 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
4680 | [a-z]*) | |
4681 | sim_trace="" | |
4682 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4683 | if test x"$sim_trace" = x; then | |
4684 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
4685 | else | |
4686 | sim_trace="${sim_trace}|TRACE_$x" | |
4687 | fi | |
4688 | done | |
4689 | sim_trace="$sim_trace)'" ;; | |
4690 | esac | |
4691 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
4692 | echo "Setting sim trace = $sim_trace" 6>&1 | |
4693 | fi | |
4694 | else | |
4695 | sim_trace="" | |
b7026657 | 4696 | fi; |
c906108c SS |
4697 | |
4698 | ||
4699 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
4700 | if test "${enable_sim_profile+set}" = set; then | |
4701 | enableval="$enable_sim_profile" | |
4702 | case "${enableval}" in | |
4703 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
4704 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
4705 | [-0-9]*) | |
4706 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
4707 | [a-z]*) | |
4708 | sim_profile="" | |
4709 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4710 | if test x"$sim_profile" = x; then | |
4711 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
4712 | else | |
4713 | sim_profile="${sim_profile}|PROFILE_$x" | |
4714 | fi | |
4715 | done | |
4716 | sim_profile="$sim_profile)'" ;; | |
4717 | esac | |
4718 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
4719 | echo "Setting sim profile = $sim_profile" 6>&1 | |
4720 | fi | |
4721 | else | |
eb2d80b4 | 4722 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
b7026657 | 4723 | fi; |
c906108c SS |
4724 | |
4725 | ||
6efef468 JM |
4726 | |
4727 | # Check whether --with-pkgversion or --without-pkgversion was given. | |
4728 | if test "${with_pkgversion+set}" = set; then | |
4729 | withval="$with_pkgversion" | |
4730 | case "$withval" in | |
4731 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
4732 | echo "$as_me: error: package version not specified" >&2;} | |
4733 | { (exit 1); exit 1; }; } ;; | |
4734 | no) PKGVERSION= ;; | |
4735 | *) PKGVERSION="($withval) " ;; | |
4736 | esac | |
4737 | else | |
4738 | PKGVERSION="(GDB) " | |
4739 | ||
4740 | fi; | |
4741 | ||
4742 | ||
4743 | ||
4744 | ||
4745 | # Check whether --with-bugurl or --without-bugurl was given. | |
4746 | if test "${with_bugurl+set}" = set; then | |
4747 | withval="$with_bugurl" | |
4748 | case "$withval" in | |
4749 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
4750 | echo "$as_me: error: bug URL not specified" >&2;} | |
4751 | { (exit 1); exit 1; }; } ;; | |
4752 | no) BUGURL= | |
4753 | ;; | |
4754 | *) BUGURL="$withval" | |
4755 | ;; | |
4756 | esac | |
4757 | else | |
4758 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
4759 | ||
4760 | fi; | |
4761 | case ${BUGURL} in | |
4762 | "") | |
4763 | REPORT_BUGS_TO= | |
4764 | REPORT_BUGS_TEXI= | |
4765 | ;; | |
4766 | *) | |
4767 | REPORT_BUGS_TO="<$BUGURL>" | |
4768 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
4769 | ;; | |
4770 | esac; | |
4771 | ||
4772 | ||
4773 | ||
4774 | ||
4775 | cat >>confdefs.h <<_ACEOF | |
4776 | #define PKGVERSION "$PKGVERSION" | |
4777 | _ACEOF | |
4778 | ||
4779 | ||
4780 | cat >>confdefs.h <<_ACEOF | |
4781 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
4782 | _ACEOF | |
4783 | ||
4784 | ||
b7026657 AC |
4785 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
4786 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4787 | if test "${ac_cv_type_signal+set}" = set; then | |
4788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4789 | else |
b7026657 AC |
4790 | cat >conftest.$ac_ext <<_ACEOF |
4791 | /* confdefs.h. */ | |
4792 | _ACEOF | |
4793 | cat confdefs.h >>conftest.$ac_ext | |
4794 | cat >>conftest.$ac_ext <<_ACEOF | |
4795 | /* end confdefs.h. */ | |
c906108c SS |
4796 | #include <sys/types.h> |
4797 | #include <signal.h> | |
4798 | #ifdef signal | |
b7026657 | 4799 | # undef signal |
c906108c SS |
4800 | #endif |
4801 | #ifdef __cplusplus | |
4802 | extern "C" void (*signal (int, void (*)(int)))(int); | |
4803 | #else | |
4804 | void (*signal ()) (); | |
4805 | #endif | |
4806 | ||
b7026657 AC |
4807 | int |
4808 | main () | |
4809 | { | |
c906108c | 4810 | int i; |
b7026657 AC |
4811 | ; |
4812 | return 0; | |
4813 | } | |
4814 | _ACEOF | |
4815 | rm -f conftest.$ac_objext | |
4816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4817 | (eval $ac_compile) 2>conftest.er1 | |
4818 | ac_status=$? | |
4819 | grep -v '^ *+' conftest.er1 >conftest.err | |
4820 | rm -f conftest.er1 | |
4821 | cat conftest.err >&5 | |
4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4823 | (exit $ac_status); } && | |
4824 | { ac_try='test -z "$ac_c_werror_flag" | |
4825 | || test ! -s conftest.err' | |
4826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4827 | (eval $ac_try) 2>&5 | |
4828 | ac_status=$? | |
4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4830 | (exit $ac_status); }; } && | |
4831 | { ac_try='test -s conftest.$ac_objext' | |
4832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4833 | (eval $ac_try) 2>&5 | |
4834 | ac_status=$? | |
4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4836 | (exit $ac_status); }; }; then | |
c906108c SS |
4837 | ac_cv_type_signal=void |
4838 | else | |
b7026657 AC |
4839 | echo "$as_me: failed program was:" >&5 |
4840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4841 | ||
4842 | ac_cv_type_signal=int | |
c906108c | 4843 | fi |
b7026657 | 4844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4845 | fi |
b7026657 AC |
4846 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
4847 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 4848 | |
b7026657 | 4849 | cat >>confdefs.h <<_ACEOF |
c906108c | 4850 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 4851 | _ACEOF |
c906108c SS |
4852 | |
4853 | ||
cd0fc7c3 SS |
4854 | |
4855 | ||
c906108c SS |
4856 | |
4857 | sim_link_files= | |
4858 | sim_link_links= | |
4859 | ||
4860 | sim_link_links=tconfig.h | |
4861 | if test -f ${srcdir}/tconfig.in | |
4862 | then | |
4863 | sim_link_files=tconfig.in | |
4864 | else | |
4865 | sim_link_files=../common/tconfig.in | |
4866 | fi | |
4867 | ||
4868 | # targ-vals.def points to the libc macro description file. | |
4869 | case "${target}" in | |
4870 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
4871 | esac | |
4872 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
4873 | sim_link_links="${sim_link_links} targ-vals.def" | |
4874 | ||
c906108c SS |
4875 | |
4876 | ||
4877 | wire_endian="LITTLE_ENDIAN" | |
4878 | default_endian="" | |
4879 | # Check whether --enable-sim-endian or --disable-sim-endian was given. | |
4880 | if test "${enable_sim_endian+set}" = set; then | |
4881 | enableval="$enable_sim_endian" | |
4882 | case "${enableval}" in | |
4883 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
4884 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
4885 | yes) if test x"$wire_endian" != x; then | |
4886 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
4887 | else | |
4888 | if test x"$default_endian" != x; then | |
4889 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}" | |
4890 | else | |
4891 | echo "No hard-wired endian for target $target" 1>&6 | |
4892 | sim_endian="-DWITH_TARGET_BYTE_ORDER=0" | |
4893 | fi | |
4894 | fi;; | |
4895 | no) if test x"$default_endian" != x; then | |
4896 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
4897 | else | |
4898 | if test x"$wire_endian" != x; then | |
4899 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}" | |
4900 | else | |
4901 | echo "No default endian for target $target" 1>&6 | |
4902 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0" | |
4903 | fi | |
4904 | fi;; | |
b7026657 AC |
4905 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5 |
4906 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;} | |
4907 | { (exit 1); exit 1; }; }; sim_endian="";; | |
c906108c SS |
4908 | esac |
4909 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
4910 | echo "Setting endian flags = $sim_endian" 6>&1 | |
4911 | fi | |
4912 | else | |
4913 | if test x"$default_endian" != x; then | |
4914 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
4915 | else | |
4916 | if test x"$wire_endian" != x; then | |
4917 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
4918 | else | |
4919 | sim_endian= | |
4920 | fi | |
4921 | fi | |
b7026657 | 4922 | fi; |
c906108c SS |
4923 | wire_alignment="NONSTRICT_ALIGNMENT" |
4924 | default_alignment="" | |
4925 | ||
4926 | # Check whether --enable-sim-alignment or --disable-sim-alignment was given. | |
4927 | if test "${enable_sim_alignment+set}" = set; then | |
4928 | enableval="$enable_sim_alignment" | |
4929 | case "${enableval}" in | |
4930 | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; | |
4931 | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
4932 | forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";; | |
4933 | yes) if test x"$wire_alignment" != x; then | |
4934 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
4935 | else | |
4936 | if test x"$default_alignment" != x; then | |
4937 | sim_alignment="-DWITH_ALIGNMENT=${default_alignment}" | |
4938 | else | |
4939 | echo "No hard-wired alignment for target $target" 1>&6 | |
4940 | sim_alignment="-DWITH_ALIGNMENT=0" | |
4941 | fi | |
4942 | fi;; | |
4943 | no) if test x"$default_alignment" != x; then | |
4944 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
4945 | else | |
4946 | if test x"$wire_alignment" != x; then | |
4947 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}" | |
4948 | else | |
4949 | echo "No default alignment for target $target" 1>&6 | |
4950 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0" | |
4951 | fi | |
4952 | fi;; | |
b7026657 AC |
4953 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5 |
4954 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;} | |
4955 | { (exit 1); exit 1; }; }; sim_alignment="";; | |
c906108c SS |
4956 | esac |
4957 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
4958 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
4959 | fi | |
4960 | else | |
4961 | if test x"$default_alignment" != x; then | |
4962 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
4963 | else | |
4964 | if test x"$wire_alignment" != x; then | |
4965 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
4966 | else | |
4967 | sim_alignment= | |
4968 | fi | |
4969 | fi | |
b7026657 | 4970 | fi; |
c906108c SS |
4971 | |
4972 | # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given. | |
4973 | if test "${enable_sim_hostendian+set}" = set; then | |
4974 | enableval="$enable_sim_hostendian" | |
4975 | case "${enableval}" in | |
4976 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; | |
4977 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
4978 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
b7026657 AC |
4979 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5 |
4980 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;} | |
4981 | { (exit 1); exit 1; }; }; sim_hostendian="";; | |
c906108c SS |
4982 | esac |
4983 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
4984 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
4985 | fi | |
4986 | else | |
b7026657 | 4987 | |
c906108c | 4988 | if test "x$cross_compiling" = "xno"; then |
b7026657 AC |
4989 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4990 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
4991 | if test "${ac_cv_c_bigendian+set}" = set; then | |
4992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4993 | else | |
4994 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4995 | cat >conftest.$ac_ext <<_ACEOF | |
4996 | /* confdefs.h. */ | |
4997 | _ACEOF | |
4998 | cat confdefs.h >>conftest.$ac_ext | |
4999 | cat >>conftest.$ac_ext <<_ACEOF | |
5000 | /* end confdefs.h. */ | |
c906108c SS |
5001 | #include <sys/types.h> |
5002 | #include <sys/param.h> | |
c906108c | 5003 | |
b7026657 AC |
5004 | int |
5005 | main () | |
5006 | { | |
c906108c SS |
5007 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
5008 | bogus endian macros | |
5009 | #endif | |
b7026657 AC |
5010 | |
5011 | ; | |
5012 | return 0; | |
5013 | } | |
5014 | _ACEOF | |
5015 | rm -f conftest.$ac_objext | |
5016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5017 | (eval $ac_compile) 2>conftest.er1 | |
5018 | ac_status=$? | |
5019 | grep -v '^ *+' conftest.er1 >conftest.err | |
5020 | rm -f conftest.er1 | |
5021 | cat conftest.err >&5 | |
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5023 | (exit $ac_status); } && | |
5024 | { ac_try='test -z "$ac_c_werror_flag" | |
5025 | || test ! -s conftest.err' | |
5026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5027 | (eval $ac_try) 2>&5 | |
5028 | ac_status=$? | |
5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5030 | (exit $ac_status); }; } && | |
5031 | { ac_try='test -s conftest.$ac_objext' | |
5032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5033 | (eval $ac_try) 2>&5 | |
5034 | ac_status=$? | |
5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5036 | (exit $ac_status); }; }; then | |
c906108c | 5037 | # It does; now see whether it defined to BIG_ENDIAN or not. |
b7026657 AC |
5038 | cat >conftest.$ac_ext <<_ACEOF |
5039 | /* confdefs.h. */ | |
5040 | _ACEOF | |
5041 | cat confdefs.h >>conftest.$ac_ext | |
5042 | cat >>conftest.$ac_ext <<_ACEOF | |
5043 | /* end confdefs.h. */ | |
c906108c SS |
5044 | #include <sys/types.h> |
5045 | #include <sys/param.h> | |
c906108c | 5046 | |
b7026657 AC |
5047 | int |
5048 | main () | |
5049 | { | |
c906108c SS |
5050 | #if BYTE_ORDER != BIG_ENDIAN |
5051 | not big endian | |
5052 | #endif | |
b7026657 AC |
5053 | |
5054 | ; | |
5055 | return 0; | |
5056 | } | |
5057 | _ACEOF | |
5058 | rm -f conftest.$ac_objext | |
5059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5060 | (eval $ac_compile) 2>conftest.er1 | |
5061 | ac_status=$? | |
5062 | grep -v '^ *+' conftest.er1 >conftest.err | |
5063 | rm -f conftest.er1 | |
5064 | cat conftest.err >&5 | |
5065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5066 | (exit $ac_status); } && | |
5067 | { ac_try='test -z "$ac_c_werror_flag" | |
5068 | || test ! -s conftest.err' | |
5069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5070 | (eval $ac_try) 2>&5 | |
5071 | ac_status=$? | |
5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5073 | (exit $ac_status); }; } && | |
5074 | { ac_try='test -s conftest.$ac_objext' | |
5075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5076 | (eval $ac_try) 2>&5 | |
5077 | ac_status=$? | |
5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5079 | (exit $ac_status); }; }; then | |
c906108c SS |
5080 | ac_cv_c_bigendian=yes |
5081 | else | |
b7026657 AC |
5082 | echo "$as_me: failed program was:" >&5 |
5083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5084 | ||
5085 | ac_cv_c_bigendian=no | |
c906108c | 5086 | fi |
b7026657 | 5087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 5088 | else |
b7026657 AC |
5089 | echo "$as_me: failed program was:" >&5 |
5090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5091 | ||
5092 | # It does not; compile a test program. | |
c906108c | 5093 | if test "$cross_compiling" = yes; then |
b7026657 AC |
5094 | # try to guess the endianness by grepping values into an object file |
5095 | ac_cv_c_bigendian=unknown | |
5096 | cat >conftest.$ac_ext <<_ACEOF | |
5097 | /* confdefs.h. */ | |
5098 | _ACEOF | |
5099 | cat confdefs.h >>conftest.$ac_ext | |
5100 | cat >>conftest.$ac_ext <<_ACEOF | |
5101 | /* end confdefs.h. */ | |
5102 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5103 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5104 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
5105 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5106 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5107 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
5108 | int | |
5109 | main () | |
5110 | { | |
5111 | _ascii (); _ebcdic (); | |
5112 | ; | |
5113 | return 0; | |
5114 | } | |
5115 | _ACEOF | |
5116 | rm -f conftest.$ac_objext | |
5117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5118 | (eval $ac_compile) 2>conftest.er1 | |
5119 | ac_status=$? | |
5120 | grep -v '^ *+' conftest.er1 >conftest.err | |
5121 | rm -f conftest.er1 | |
5122 | cat conftest.err >&5 | |
5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5124 | (exit $ac_status); } && | |
5125 | { ac_try='test -z "$ac_c_werror_flag" | |
5126 | || test ! -s conftest.err' | |
5127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5128 | (eval $ac_try) 2>&5 | |
5129 | ac_status=$? | |
5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5131 | (exit $ac_status); }; } && | |
5132 | { ac_try='test -s conftest.$ac_objext' | |
5133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5134 | (eval $ac_try) 2>&5 | |
5135 | ac_status=$? | |
5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5137 | (exit $ac_status); }; }; then | |
5138 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
5139 | ac_cv_c_bigendian=yes | |
5140 | fi | |
5141 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5142 | if test "$ac_cv_c_bigendian" = unknown; then | |
5143 | ac_cv_c_bigendian=no | |
5144 | else | |
5145 | # finding both strings is unlikely to happen, but who knows? | |
5146 | ac_cv_c_bigendian=unknown | |
5147 | fi | |
5148 | fi | |
c906108c | 5149 | else |
b7026657 AC |
5150 | echo "$as_me: failed program was:" >&5 |
5151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5152 | ||
5153 | fi | |
5154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5155 | else | |
5156 | cat >conftest.$ac_ext <<_ACEOF | |
5157 | /* confdefs.h. */ | |
5158 | _ACEOF | |
5159 | cat confdefs.h >>conftest.$ac_ext | |
5160 | cat >>conftest.$ac_ext <<_ACEOF | |
5161 | /* end confdefs.h. */ | |
5162 | int | |
5163 | main () | |
5164 | { | |
c906108c SS |
5165 | /* Are we little or big endian? From Harbison&Steele. */ |
5166 | union | |
5167 | { | |
5168 | long l; | |
5169 | char c[sizeof (long)]; | |
5170 | } u; | |
5171 | u.l = 1; | |
5172 | exit (u.c[sizeof (long) - 1] == 1); | |
5173 | } | |
b7026657 AC |
5174 | _ACEOF |
5175 | rm -f conftest$ac_exeext | |
5176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5177 | (eval $ac_link) 2>&5 | |
5178 | ac_status=$? | |
5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5182 | (eval $ac_try) 2>&5 | |
5183 | ac_status=$? | |
5184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5185 | (exit $ac_status); }; }; then | |
c906108c SS |
5186 | ac_cv_c_bigendian=no |
5187 | else | |
b7026657 AC |
5188 | echo "$as_me: program exited with status $ac_status" >&5 |
5189 | echo "$as_me: failed program was:" >&5 | |
5190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5191 | ||
5192 | ( exit $ac_status ) | |
5193 | ac_cv_c_bigendian=yes | |
c906108c | 5194 | fi |
b7026657 | 5195 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 5196 | fi |
c906108c | 5197 | fi |
b7026657 | 5198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 5199 | fi |
b7026657 AC |
5200 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5201 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
5202 | case $ac_cv_c_bigendian in | |
5203 | yes) | |
c906108c | 5204 | |
b7026657 | 5205 | cat >>confdefs.h <<\_ACEOF |
c906108c | 5206 | #define WORDS_BIGENDIAN 1 |
b7026657 AC |
5207 | _ACEOF |
5208 | ;; | |
5209 | no) | |
5210 | ;; | |
5211 | *) | |
5212 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5213 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5214 | echo "$as_me: error: unknown endianness | |
5215 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5216 | { (exit 1); exit 1; }; } ;; | |
5217 | esac | |
c906108c SS |
5218 | |
5219 | if test $ac_cv_c_bigendian = yes; then | |
5220 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
5221 | else | |
5222 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
5223 | fi | |
5224 | else | |
5225 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
5226 | fi | |
b7026657 | 5227 | fi; |
c906108c | 5228 | |
c8cca39f AC |
5229 | # NOTE: Don't add -Wall or -Wunused, they both include |
5230 | # -Wunused-parameter which reports bogus warnings. | |
5231 | # NOTE: If you add to this list, remember to update | |
5232 | # gdb/doc/gdbint.texinfo. | |
5233 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ | |
51216631 JB |
5234 | -Wformat -Wparentheses -Wpointer-arith" |
5235 | # GCC supports -Wuninitialized only with -O or -On, n != 0. | |
5236 | if test x${CFLAGS+set} = xset; then | |
5237 | case "${CFLAGS}" in | |
5238 | *"-O0"* ) ;; | |
5239 | *"-O"* ) | |
5240 | build_warnings="${build_warnings} -Wuninitialized" | |
5241 | ;; | |
5242 | esac | |
5243 | else | |
5244 | build_warnings="${build_warnings} -Wuninitialized" | |
5245 | fi | |
c8cca39f AC |
5246 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
5247 | # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value | |
5248 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual | |
5249 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes | |
5250 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
5251 | # -Woverloaded-virtual -Winline -Werror" | |
c906108c SS |
5252 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
5253 | if test "${enable_build_warnings+set}" = set; then | |
5254 | enableval="$enable_build_warnings" | |
c8cca39f AC |
5255 | case "${enableval}" in |
5256 | yes) ;; | |
5257 | no) build_warnings="-w";; | |
5258 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
5259 | build_warnings="${build_warnings} ${t}";; | |
5260 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
5261 | build_warnings="${t} ${build_warnings}";; | |
5262 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
5263 | esac | |
5264 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
5265 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
5266 | fi | |
b7026657 | 5267 | fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given. |
c8cca39f AC |
5268 | if test "${enable_sim_build_warnings+set}" = set; then |
5269 | enableval="$enable_sim_build_warnings" | |
5270 | case "${enableval}" in | |
c906108c SS |
5271 | yes) ;; |
5272 | no) build_warnings="-w";; | |
5273 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c8cca39f | 5274 | build_warnings="${build_warnings} ${t}";; |
c906108c | 5275 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c8cca39f AC |
5276 | build_warnings="${t} ${build_warnings}";; |
5277 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
c906108c SS |
5278 | esac |
5279 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
c8cca39f AC |
5280 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
5281 | fi | |
b7026657 | 5282 | fi; WARN_CFLAGS="" |
d4f3574e SS |
5283 | WERROR_CFLAGS="" |
5284 | if test "x${build_warnings}" != x -a "x$GCC" = xyes | |
5285 | then | |
b7026657 AC |
5286 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
5287 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
c8cca39f AC |
5288 | # Separate out the -Werror flag as some files just cannot be |
5289 | # compiled with it enabled. | |
5290 | for w in ${build_warnings}; do | |
5291 | case $w in | |
5292 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
5293 | *) # Check that GCC accepts it | |
5294 | saved_CFLAGS="$CFLAGS" | |
5295 | CFLAGS="$CFLAGS $w" | |
b7026657 AC |
5296 | cat >conftest.$ac_ext <<_ACEOF |
5297 | /* confdefs.h. */ | |
5298 | _ACEOF | |
5299 | cat confdefs.h >>conftest.$ac_ext | |
5300 | cat >>conftest.$ac_ext <<_ACEOF | |
5301 | /* end confdefs.h. */ | |
c8cca39f | 5302 | |
b7026657 AC |
5303 | int |
5304 | main () | |
5305 | { | |
c8cca39f | 5306 | |
b7026657 AC |
5307 | ; |
5308 | return 0; | |
5309 | } | |
5310 | _ACEOF | |
5311 | rm -f conftest.$ac_objext | |
5312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5313 | (eval $ac_compile) 2>conftest.er1 | |
5314 | ac_status=$? | |
5315 | grep -v '^ *+' conftest.er1 >conftest.err | |
5316 | rm -f conftest.er1 | |
5317 | cat conftest.err >&5 | |
5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5319 | (exit $ac_status); } && | |
5320 | { ac_try='test -z "$ac_c_werror_flag" | |
5321 | || test ! -s conftest.err' | |
5322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5323 | (eval $ac_try) 2>&5 | |
5324 | ac_status=$? | |
5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5326 | (exit $ac_status); }; } && | |
5327 | { ac_try='test -s conftest.$ac_objext' | |
5328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5329 | (eval $ac_try) 2>&5 | |
5330 | ac_status=$? | |
5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5332 | (exit $ac_status); }; }; then | |
c8cca39f | 5333 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
c906108c | 5334 | else |
b7026657 AC |
5335 | echo "$as_me: failed program was:" >&5 |
5336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5337 | ||
c8cca39f | 5338 | fi |
b7026657 | 5339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c8cca39f AC |
5340 | CFLAGS="$saved_CFLAGS" |
5341 | esac | |
5342 | done | |
b7026657 AC |
5343 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
5344 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
c906108c SS |
5345 | fi |
5346 | ||
5347 | ||
5348 | default_sim_reserved_bits="1" | |
5349 | # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given. | |
5350 | if test "${enable_sim_reserved_bits+set}" = set; then | |
5351 | enableval="$enable_sim_reserved_bits" | |
5352 | case "${enableval}" in | |
5353 | yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";; | |
5354 | no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";; | |
b7026657 AC |
5355 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5 |
5356 | echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;} | |
5357 | { (exit 1); exit 1; }; }; sim_reserved_bits="";; | |
c906108c SS |
5358 | esac |
5359 | if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then | |
5360 | echo "Setting reserved flags = $sim_reserved_bits" 6>&1 | |
5361 | fi | |
5362 | else | |
5363 | sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}" | |
b7026657 | 5364 | fi; |
c906108c SS |
5365 | wire_word_bitsize="32" |
5366 | wire_word_msb="31" | |
5367 | wire_address_bitsize="" | |
5368 | wire_cell_bitsize="" | |
5369 | # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given. | |
5370 | if test "${enable_sim_bitsize+set}" = set; then | |
5371 | enableval="$enable_sim_bitsize" | |
5372 | sim_bitsize= | |
5373 | case "${enableval}" in | |
5374 | 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";; | |
5375 | 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";; | |
5376 | 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";; | |
5377 | 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";; | |
5378 | 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then | |
5379 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31" | |
5380 | else | |
5381 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0" | |
5382 | fi ;; | |
5383 | 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then | |
5384 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63" | |
5385 | else | |
5386 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0" | |
5387 | fi ;; | |
b7026657 AC |
5388 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5 |
5389 | echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;} | |
5390 | { (exit 1); exit 1; }; } ;; | |
c906108c SS |
5391 | esac |
5392 | # address bitsize | |
5393 | tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"` | |
5394 | case x"${tmp}" in | |
5395 | x ) ;; | |
5396 | x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;; | |
5397 | x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;; | |
b7026657 AC |
5398 | * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5 |
5399 | echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;} | |
5400 | { (exit 1); exit 1; }; } ;; | |
c906108c SS |
5401 | esac |
5402 | # cell bitsize | |
5403 | tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"` | |
5404 | case x"${tmp}" in | |
5405 | x ) ;; | |
5406 | x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;; | |
5407 | x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;; | |
b7026657 AC |
5408 | * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5 |
5409 | echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;} | |
5410 | { (exit 1); exit 1; }; } ;; | |
c906108c SS |
5411 | esac |
5412 | if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then | |
5413 | echo "Setting bitsize flags = $sim_bitsize" 6>&1 | |
5414 | fi | |
5415 | else | |
5416 | sim_bitsize="" | |
5417 | if test x"$wire_word_bitsize" != x; then | |
5418 | sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize" | |
5419 | fi | |
5420 | if test x"$wire_word_msb" != x; then | |
5421 | sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb" | |
5422 | fi | |
5423 | if test x"$wire_address_bitsize" != x; then | |
5424 | sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize" | |
5425 | fi | |
5426 | if test x"$wire_cell_bitsize" != x; then | |
5427 | sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize" | |
5428 | fi | |
b7026657 | 5429 | fi; |
c906108c SS |
5430 | |
5431 | default_sim_inline="" | |
5432 | # Check whether --enable-sim-inline or --disable-sim-inline was given. | |
5433 | if test "${enable_sim_inline+set}" = set; then | |
5434 | enableval="$enable_sim_inline" | |
5435 | sim_inline="" | |
5436 | case "$enableval" in | |
5437 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
5438 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
5439 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
5440 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
5441 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
5442 | new_flag="" | |
5443 | case "$x" in | |
5444 | *_INLINE=*) new_flag="-D$x";; | |
5445 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
5446 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
5447 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
5448 | esac | |
5449 | if test x"$sim_inline" = x""; then | |
5450 | sim_inline="$new_flag" | |
5451 | else | |
5452 | sim_inline="$sim_inline $new_flag" | |
5453 | fi | |
5454 | done;; | |
5455 | esac | |
5456 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
5457 | echo "Setting inline flags = $sim_inline" 6>&1 | |
5458 | fi | |
5459 | else | |
b7026657 | 5460 | |
c906108c SS |
5461 | if test "x$cross_compiling" = "xno"; then |
5462 | if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then | |
5463 | sim_inline="${default_sim_inline}" | |
5464 | if test x"$silent" != x"yes"; then | |
5465 | echo "Setting inline flags = $sim_inline" 6>&1 | |
5466 | fi | |
5467 | else | |
5468 | sim_inline="" | |
5469 | fi | |
5470 | else | |
5471 | sim_inline="-DDEFAULT_INLINE=0" | |
5472 | fi | |
b7026657 | 5473 | fi; |
c906108c SS |
5474 | |
5475 | if test x"yes" = x"yes"; then | |
5476 | sim_hw_p=yes | |
5477 | else | |
5478 | sim_hw_p=no | |
5479 | fi | |
5480 | if test ""; then | |
5481 | hardware="core pal glue" | |
5482 | else | |
5483 | hardware="core pal glue mn103cpu mn103int mn103tim mn103ser mn103iop" | |
5484 | fi | |
5485 | sim_hw_cflags="-DWITH_HW=1" | |
5486 | sim_hw="$hardware" | |
5487 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
5488 | # Check whether --enable-sim-hardware or --disable-sim-hardware was given. | |
5489 | if test "${enable_sim_hardware+set}" = set; then | |
5490 | enableval="$enable_sim_hardware" | |
b7026657 | 5491 | |
c906108c SS |
5492 | case "${enableval}" in |
5493 | yes) sim_hw_p=yes;; | |
5494 | no) sim_hw_p=no;; | |
5495 | ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
5496 | *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
5497 | *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
5498 | esac | |
5499 | if test "$sim_hw_p" != yes; then | |
5500 | sim_hw_objs= | |
5501 | sim_hw_cflags="-DWITH_HW=0" | |
5502 | sim_hw= | |
5503 | else | |
5504 | sim_hw_cflags="-DWITH_HW=1" | |
5505 | # remove duplicates | |
5506 | sim_hw="" | |
5507 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
b3a3ffef HPN |
5508 | for i in $hardware ; do |
5509 | case " $sim_hw " in | |
c906108c SS |
5510 | *" $i "*) ;; |
5511 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
5512 | esac | |
5513 | done | |
5514 | fi | |
5515 | if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then | |
5516 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
5517 | fi | |
5518 | else | |
b7026657 AC |
5519 | |
5520 | if test "$sim_hw_p" != yes; then | |
5521 | sim_hw_objs= | |
5522 | sim_hw_cflags="-DWITH_HW=0" | |
5523 | sim_hw= | |
5524 | fi | |
5525 | if test x"$silent" != x"yes"; then | |
5526 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
5527 | fi | |
5528 | fi; | |
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | for ac_func in time chmod utime fork execve execv chown | |
5538 | do | |
5539 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5540 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5541 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5542 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5544 | else | |
5545 | cat >conftest.$ac_ext <<_ACEOF | |
5546 | /* confdefs.h. */ | |
5547 | _ACEOF | |
5548 | cat confdefs.h >>conftest.$ac_ext | |
5549 | cat >>conftest.$ac_ext <<_ACEOF | |
5550 | /* end confdefs.h. */ | |
5551 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5552 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5553 | #define $ac_func innocuous_$ac_func | |
5554 | ||
5555 | /* System header to define __stub macros and hopefully few prototypes, | |
5556 | which can conflict with char $ac_func (); below. | |
5557 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5558 | <limits.h> exists even on freestanding compilers. */ | |
5559 | ||
5560 | #ifdef __STDC__ | |
5561 | # include <limits.h> | |
5562 | #else | |
5563 | # include <assert.h> | |
5564 | #endif | |
5565 | ||
5566 | #undef $ac_func | |
5567 | ||
5568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5569 | #ifdef __cplusplus | |
5570 | extern "C" | |
5571 | { | |
5572 | #endif | |
5573 | /* We use char because int might match the return type of a gcc2 | |
5574 | builtin and then its argument prototype would still apply. */ | |
5575 | char $ac_func (); | |
5576 | /* The GNU C library defines this for functions which it implements | |
5577 | to always fail with ENOSYS. Some functions are actually named | |
5578 | something starting with __ and the normal name is an alias. */ | |
5579 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5580 | choke me | |
5581 | #else | |
5582 | char (*f) () = $ac_func; | |
5583 | #endif | |
5584 | #ifdef __cplusplus | |
5585 | } | |
5586 | #endif | |
5587 | ||
5588 | int | |
5589 | main () | |
5590 | { | |
5591 | return f != $ac_func; | |
5592 | ; | |
5593 | return 0; | |
5594 | } | |
5595 | _ACEOF | |
5596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5598 | (eval $ac_link) 2>conftest.er1 | |
5599 | ac_status=$? | |
5600 | grep -v '^ *+' conftest.er1 >conftest.err | |
5601 | rm -f conftest.er1 | |
5602 | cat conftest.err >&5 | |
5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5604 | (exit $ac_status); } && | |
5605 | { ac_try='test -z "$ac_c_werror_flag" | |
5606 | || test ! -s conftest.err' | |
5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5608 | (eval $ac_try) 2>&5 | |
5609 | ac_status=$? | |
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5611 | (exit $ac_status); }; } && | |
5612 | { ac_try='test -s conftest$ac_exeext' | |
5613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5614 | (eval $ac_try) 2>&5 | |
5615 | ac_status=$? | |
5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5617 | (exit $ac_status); }; }; then | |
5618 | eval "$as_ac_var=yes" | |
5619 | else | |
5620 | echo "$as_me: failed program was:" >&5 | |
5621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5622 | ||
5623 | eval "$as_ac_var=no" | |
5624 | fi | |
5625 | rm -f conftest.err conftest.$ac_objext \ | |
5626 | conftest$ac_exeext conftest.$ac_ext | |
5627 | fi | |
5628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5629 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5630 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5631 | cat >>confdefs.h <<_ACEOF | |
5632 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5633 | _ACEOF | |
5634 | ||
5635 | fi | |
5636 | done | |
5637 | ||
5638 | ||
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
5644 | for ac_header in unistd.h stdlib.h string.h strings.h utime.h time.h | |
5645 | do | |
5646 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5648 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5649 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5652 | fi | |
5653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5654 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5655 | else | |
5656 | # Is the header compilable? | |
5657 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5658 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5659 | cat >conftest.$ac_ext <<_ACEOF | |
5660 | /* confdefs.h. */ | |
5661 | _ACEOF | |
5662 | cat confdefs.h >>conftest.$ac_ext | |
5663 | cat >>conftest.$ac_ext <<_ACEOF | |
5664 | /* end confdefs.h. */ | |
5665 | $ac_includes_default | |
5666 | #include <$ac_header> | |
5667 | _ACEOF | |
5668 | rm -f conftest.$ac_objext | |
5669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5670 | (eval $ac_compile) 2>conftest.er1 | |
5671 | ac_status=$? | |
5672 | grep -v '^ *+' conftest.er1 >conftest.err | |
5673 | rm -f conftest.er1 | |
5674 | cat conftest.err >&5 | |
5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5676 | (exit $ac_status); } && | |
5677 | { ac_try='test -z "$ac_c_werror_flag" | |
5678 | || test ! -s conftest.err' | |
5679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5680 | (eval $ac_try) 2>&5 | |
5681 | ac_status=$? | |
5682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5683 | (exit $ac_status); }; } && | |
5684 | { ac_try='test -s conftest.$ac_objext' | |
5685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5686 | (eval $ac_try) 2>&5 | |
5687 | ac_status=$? | |
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5689 | (exit $ac_status); }; }; then | |
5690 | ac_header_compiler=yes | |
5691 | else | |
5692 | echo "$as_me: failed program was:" >&5 | |
5693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5694 | ||
5695 | ac_header_compiler=no | |
5696 | fi | |
5697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5698 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5699 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5700 | ||
5701 | # Is the header present? | |
5702 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5703 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5704 | cat >conftest.$ac_ext <<_ACEOF | |
5705 | /* confdefs.h. */ | |
5706 | _ACEOF | |
5707 | cat confdefs.h >>conftest.$ac_ext | |
5708 | cat >>conftest.$ac_ext <<_ACEOF | |
5709 | /* end confdefs.h. */ | |
5710 | #include <$ac_header> | |
5711 | _ACEOF | |
5712 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5713 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5714 | ac_status=$? | |
5715 | grep -v '^ *+' conftest.er1 >conftest.err | |
5716 | rm -f conftest.er1 | |
5717 | cat conftest.err >&5 | |
5718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5719 | (exit $ac_status); } >/dev/null; then | |
5720 | if test -s conftest.err; then | |
5721 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5722 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5723 | else | |
5724 | ac_cpp_err= | |
5725 | fi | |
5726 | else | |
5727 | ac_cpp_err=yes | |
5728 | fi | |
5729 | if test -z "$ac_cpp_err"; then | |
5730 | ac_header_preproc=yes | |
5731 | else | |
5732 | echo "$as_me: failed program was:" >&5 | |
5733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5734 | ||
5735 | ac_header_preproc=no | |
5736 | fi | |
5737 | rm -f conftest.err conftest.$ac_ext | |
5738 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5739 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5740 | ||
5741 | # So? What about this header? | |
5742 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5743 | yes:no: ) | |
5744 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5745 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5747 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5748 | ac_header_preproc=yes | |
5749 | ;; | |
5750 | no:yes:* ) | |
5751 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5752 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5753 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5754 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5755 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5756 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5757 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5758 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5760 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5761 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5762 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5763 | ( | |
5764 | cat <<\_ASBOX | |
5765 | ## ------------------------------------------ ## | |
5766 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5767 | ## ------------------------------------------ ## | |
5768 | _ASBOX | |
5769 | ) | | |
5770 | sed "s/^/$as_me: WARNING: /" >&2 | |
5771 | ;; | |
5772 | esac | |
5773 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5774 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5777 | else | |
5778 | eval "$as_ac_Header=\$ac_header_preproc" | |
5779 | fi | |
5780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5782 | ||
5783 | fi | |
5784 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5785 | cat >>confdefs.h <<_ACEOF | |
5786 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5787 | _ACEOF | |
5788 | ||
5789 | fi | |
5790 | ||
5791 | done | |
5792 | ||
5793 | ||
5794 | ||
5795 | ac_sources="$sim_link_files" | |
5796 | ac_dests="$sim_link_links" | |
5797 | while test -n "$ac_sources"; do | |
5798 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
5799 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
5800 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
5801 | done | |
5802 | ac_config_links="$ac_config_links $ac_config_links_1" | |
5803 | ||
5804 | cgen_breaks="" | |
5805 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
5806 | cgen_breaks="break cgen_rtx_error"; | |
5807 | fi | |
5808 | ||
38f48d72 AC |
5809 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" |
5810 | ||
5811 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" | |
5812 | ||
5813 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" | |
5814 | ||
5815 | ac_config_commands="$ac_config_commands Makefile" | |
5816 | ||
5817 | ac_config_commands="$ac_config_commands stamp-h" | |
5818 | ||
b7026657 AC |
5819 | cat >confcache <<\_ACEOF |
5820 | # This file is a shell script that caches the results of configure | |
5821 | # tests run on this system so they can be shared between configure | |
5822 | # scripts and configure runs, see configure's option --config-cache. | |
5823 | # It is not useful on other systems. If it contains results you don't | |
5824 | # want to keep, you may remove or edit it. | |
5825 | # | |
5826 | # config.status only pays attention to the cache file if you give it | |
5827 | # the --recheck option to rerun configure. | |
5828 | # | |
5829 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
5830 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5831 | # following values. | |
5832 | ||
5833 | _ACEOF | |
5834 | ||
5835 | # The following way of writing the cache mishandles newlines in values, | |
5836 | # but we know of no workaround that is simple, portable, and efficient. | |
5837 | # So, don't put newlines in cache variables' values. | |
5838 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5839 | # and sets the high bit in the cache file unless we assign to the vars. | |
5840 | { | |
5841 | (set) 2>&1 | | |
5842 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5843 | *ac_space=\ *) | |
5844 | # `set' does not quote correctly, so add quotes (double-quote | |
5845 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5846 | sed -n \ | |
5847 | "s/'/'\\\\''/g; | |
5848 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5849 | ;; | |
5850 | *) | |
5851 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5852 | sed -n \ | |
5853 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
5854 | ;; | |
5855 | esac; | |
5856 | } | | |
5857 | sed ' | |
5858 | t clear | |
5859 | : clear | |
5860 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5861 | t end | |
5862 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5863 | : end' >>confcache | |
5864 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
5865 | if test -w $cache_file; then | |
5866 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
5867 | cat confcache >$cache_file | |
5868 | else | |
5869 | echo "not updating unwritable cache $cache_file" | |
5870 | fi | |
5871 | fi | |
5872 | rm -f confcache | |
5873 | ||
5874 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5875 | # Let make expand exec_prefix. | |
5876 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5877 | ||
5878 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
5879 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
5880 | # trailing colons and then remove the whole line if VPATH becomes empty | |
5881 | # (actually we leave an empty line to preserve line numbers). | |
5882 | if test "x$srcdir" = x.; then | |
5883 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
5884 | s/:*\$(srcdir):*/:/; | |
5885 | s/:*\${srcdir}:*/:/; | |
5886 | s/:*@srcdir@:*/:/; | |
5887 | s/^\([^=]*=[ ]*\):*/\1/; | |
5888 | s/:*$//; | |
5889 | s/^[^=]*=[ ]*$//; | |
5890 | }' | |
5891 | fi | |
5892 | ||
5893 | DEFS=-DHAVE_CONFIG_H | |
5894 | ||
5895 | ac_libobjs= | |
5896 | ac_ltlibobjs= | |
5897 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5898 | # 1. Remove the extension, and $U if already installed. | |
5899 | ac_i=`echo "$ac_i" | | |
5900 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
5901 | # 2. Add them. | |
5902 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
5903 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
5904 | done | |
5905 | LIBOBJS=$ac_libobjs | |
5906 | ||
5907 | LTLIBOBJS=$ac_ltlibobjs | |
5908 | ||
5909 | ||
5910 | ||
5911 | : ${CONFIG_STATUS=./config.status} | |
5912 | ac_clean_files_save=$ac_clean_files | |
5913 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5914 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5915 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5916 | cat >$CONFIG_STATUS <<_ACEOF | |
5917 | #! $SHELL | |
5918 | # Generated by $as_me. | |
5919 | # Run this file to recreate the current configuration. | |
5920 | # Compiler output produced by configure, useful for debugging | |
5921 | # configure, is in config.log if it exists. | |
5922 | ||
5923 | debug=false | |
5924 | ac_cs_recheck=false | |
5925 | ac_cs_silent=false | |
5926 | SHELL=\${CONFIG_SHELL-$SHELL} | |
5927 | _ACEOF | |
5928 | ||
5929 | cat >>$CONFIG_STATUS <<\_ACEOF | |
5930 | ## --------------------- ## | |
5931 | ## M4sh Initialization. ## | |
5932 | ## --------------------- ## | |
5933 | ||
5934 | # Be Bourne compatible | |
5935 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5936 | emulate sh | |
5937 | NULLCMD=: | |
5938 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
5939 | # is contrary to our usage. Disable this feature. | |
5940 | alias -g '${1+"$@"}'='"$@"' | |
5941 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
5942 | set -o posix | |
5943 | fi | |
5944 | DUALCASE=1; export DUALCASE # for MKS sh | |
5945 | ||
5946 | # Support unset when possible. | |
5947 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5948 | as_unset=unset | |
5949 | else | |
5950 | as_unset=false | |
c906108c | 5951 | fi |
b7026657 AC |
5952 | |
5953 | ||
5954 | # Work around bugs in pre-3.0 UWIN ksh. | |
5955 | $as_unset ENV MAIL MAILPATH | |
5956 | PS1='$ ' | |
5957 | PS2='> ' | |
5958 | PS4='+ ' | |
5959 | ||
5960 | # NLS nuisances. | |
5961 | for as_var in \ | |
5962 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
5963 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
5964 | LC_TELEPHONE LC_TIME | |
5965 | do | |
5966 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
5967 | eval $as_var=C; export $as_var | |
5968 | else | |
5969 | $as_unset $as_var | |
5970 | fi | |
5971 | done | |
5972 | ||
5973 | # Required to use basename. | |
5974 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
5975 | as_expr=expr | |
5976 | else | |
5977 | as_expr=false | |
c906108c | 5978 | fi |
b7026657 AC |
5979 | |
5980 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
5981 | as_basename=basename | |
5982 | else | |
5983 | as_basename=false | |
c906108c SS |
5984 | fi |
5985 | ||
5986 | ||
b7026657 AC |
5987 | # Name of the executable. |
5988 | as_me=`$as_basename "$0" || | |
5989 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5990 | X"$0" : 'X\(//\)$' \| \ | |
5991 | X"$0" : 'X\(/\)$' \| \ | |
5992 | . : '\(.\)' 2>/dev/null || | |
5993 | echo X/"$0" | | |
5994 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
5995 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
5996 | /^X\/\(\/\).*/{ s//\1/; q; } | |
5997 | s/.*/./; q'` | |
5998 | ||
5999 | ||
6000 | # PATH needs CR, and LINENO needs CR and PATH. | |
6001 | # Avoid depending upon Character Ranges. | |
6002 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6003 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6004 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6005 | as_cr_digits='0123456789' | |
6006 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6007 | ||
6008 | # The user is always right. | |
6009 | if test "${PATH_SEPARATOR+set}" != set; then | |
6010 | echo "#! /bin/sh" >conf$$.sh | |
6011 | echo "exit 0" >>conf$$.sh | |
6012 | chmod +x conf$$.sh | |
6013 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6014 | PATH_SEPARATOR=';' | |
6015 | else | |
6016 | PATH_SEPARATOR=: | |
6017 | fi | |
6018 | rm -f conf$$.sh | |
6019 | fi | |
6020 | ||
6021 | ||
6022 | as_lineno_1=$LINENO | |
6023 | as_lineno_2=$LINENO | |
6024 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6025 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6026 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6027 | # Find who we are. Look in the path if we contain no path at all | |
6028 | # relative or not. | |
6029 | case $0 in | |
6030 | *[\\/]* ) as_myself=$0 ;; | |
6031 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6032 | for as_dir in $PATH | |
c906108c | 6033 | do |
b7026657 AC |
6034 | IFS=$as_save_IFS |
6035 | test -z "$as_dir" && as_dir=. | |
6036 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6037 | done | |
c906108c | 6038 | |
b7026657 AC |
6039 | ;; |
6040 | esac | |
6041 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6042 | # in which case we are not to be found in the path. | |
6043 | if test "x$as_myself" = x; then | |
6044 | as_myself=$0 | |
6045 | fi | |
6046 | if test ! -f "$as_myself"; then | |
6047 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
6048 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
6049 | { (exit 1); exit 1; }; } | |
6050 | fi | |
6051 | case $CONFIG_SHELL in | |
6052 | '') | |
6053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6054 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6055 | do | |
6056 | IFS=$as_save_IFS | |
6057 | test -z "$as_dir" && as_dir=. | |
6058 | for as_base in sh bash ksh sh5; do | |
6059 | case $as_dir in | |
6060 | /*) | |
6061 | if ("$as_dir/$as_base" -c ' | |
6062 | as_lineno_1=$LINENO | |
6063 | as_lineno_2=$LINENO | |
6064 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6065 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6066 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6067 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
6068 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
6069 | CONFIG_SHELL=$as_dir/$as_base | |
6070 | export CONFIG_SHELL | |
6071 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
6072 | fi;; | |
6073 | esac | |
6074 | done | |
6075 | done | |
6076 | ;; | |
6077 | esac | |
6078 | ||
6079 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6080 | # uniformly replaced by the line number. The first 'sed' inserts a | |
6081 | # line-number line before each line; the second 'sed' does the real | |
6082 | # work. The second script uses 'N' to pair each line-number line | |
6083 | # with the numbered line, and appends trailing '-' during | |
6084 | # substitution so that $LINENO is not a special case at line end. | |
6085 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
6086 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
6087 | sed '=' <$as_myself | | |
6088 | sed ' | |
6089 | N | |
6090 | s,$,-, | |
6091 | : loop | |
6092 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6093 | t loop | |
6094 | s,-$,, | |
6095 | s,^['$as_cr_digits']*\n,, | |
6096 | ' >$as_me.lineno && | |
6097 | chmod +x $as_me.lineno || | |
6098 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
6099 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6100 | { (exit 1); exit 1; }; } | |
6101 | ||
6102 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6103 | # (the dirname of $[0] is not the place where we might find the | |
6104 | # original and so on. Autoconf is especially sensible to this). | |
6105 | . ./$as_me.lineno | |
6106 | # Exit status is that of the last command. | |
6107 | exit | |
6108 | } | |
c906108c | 6109 | |
c906108c | 6110 | |
b7026657 AC |
6111 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
6112 | *c*,-n*) ECHO_N= ECHO_C=' | |
6113 | ' ECHO_T=' ' ;; | |
6114 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
6115 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6116 | esac | |
6117 | ||
6118 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6119 | as_expr=expr | |
c906108c | 6120 | else |
b7026657 | 6121 | as_expr=false |
c906108c | 6122 | fi |
b7026657 AC |
6123 | |
6124 | rm -f conf$$ conf$$.exe conf$$.file | |
6125 | echo >conf$$.file | |
6126 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6127 | # We could just check for DJGPP; but this test a) works b) is more generic | |
6128 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
6129 | if test -f conf$$.exe; then | |
6130 | # Don't use ln at all; we don't have any links | |
6131 | as_ln_s='cp -p' | |
6132 | else | |
6133 | as_ln_s='ln -s' | |
6134 | fi | |
6135 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6136 | as_ln_s=ln | |
6137 | else | |
6138 | as_ln_s='cp -p' | |
c906108c | 6139 | fi |
b7026657 | 6140 | rm -f conf$$ conf$$.exe conf$$.file |
c906108c | 6141 | |
b7026657 AC |
6142 | if mkdir -p . 2>/dev/null; then |
6143 | as_mkdir_p=: | |
c906108c | 6144 | else |
b7026657 AC |
6145 | test -d ./-p && rmdir ./-p |
6146 | as_mkdir_p=false | |
c906108c | 6147 | fi |
c906108c | 6148 | |
b7026657 AC |
6149 | as_executable_p="test -f" |
6150 | ||
6151 | # Sed expression to map a string onto a valid CPP name. | |
6152 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6153 | ||
6154 | # Sed expression to map a string onto a valid variable name. | |
6155 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6156 | ||
6157 | ||
6158 | # IFS | |
6159 | # We need space, tab and new line, in precisely that order. | |
6160 | as_nl=' | |
6161 | ' | |
6162 | IFS=" $as_nl" | |
6163 | ||
6164 | # CDPATH. | |
6165 | $as_unset CDPATH | |
6166 | ||
6167 | exec 6>&1 | |
6168 | ||
6169 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
6170 | # report actual input values of CONFIG_FILES etc. instead of their | |
6171 | # values after options handling. Logging --version etc. is OK. | |
6172 | exec 5>>config.log | |
6173 | { | |
6174 | echo | |
6175 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6176 | ## Running $as_me. ## | |
6177 | _ASBOX | |
6178 | } >&5 | |
6179 | cat >&5 <<_CSEOF | |
6180 | ||
6181 | This file was extended by $as_me, which was | |
6182 | generated by GNU Autoconf 2.59. Invocation command line was | |
6183 | ||
6184 | CONFIG_FILES = $CONFIG_FILES | |
6185 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6186 | CONFIG_LINKS = $CONFIG_LINKS | |
6187 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6188 | $ $0 $@ | |
6189 | ||
6190 | _CSEOF | |
6191 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
6192 | echo >&5 | |
6193 | _ACEOF | |
6194 | ||
6195 | # Files that config.status was made for. | |
6196 | if test -n "$ac_config_files"; then | |
6197 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
c906108c | 6198 | fi |
b7026657 AC |
6199 | |
6200 | if test -n "$ac_config_headers"; then | |
6201 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
c906108c | 6202 | fi |
b7026657 AC |
6203 | |
6204 | if test -n "$ac_config_links"; then | |
6205 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
c906108c | 6206 | fi |
c906108c | 6207 | |
b7026657 AC |
6208 | if test -n "$ac_config_commands"; then |
6209 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
6210 | fi | |
c906108c | 6211 | |
b7026657 | 6212 | cat >>$CONFIG_STATUS <<\_ACEOF |
c906108c | 6213 | |
b7026657 AC |
6214 | ac_cs_usage="\ |
6215 | \`$as_me' instantiates files from templates according to the | |
6216 | current configuration. | |
c906108c | 6217 | |
b7026657 | 6218 | Usage: $0 [OPTIONS] [FILE]... |
c906108c | 6219 | |
b7026657 AC |
6220 | -h, --help print this help, then exit |
6221 | -V, --version print version number, then exit | |
6222 | -q, --quiet do not print progress messages | |
6223 | -d, --debug don't remove temporary files | |
6224 | --recheck update $as_me by reconfiguring in the same conditions | |
6225 | --file=FILE[:TEMPLATE] | |
6226 | instantiate the configuration file FILE | |
6227 | --header=FILE[:TEMPLATE] | |
6228 | instantiate the configuration header FILE | |
6229 | ||
6230 | Configuration files: | |
6231 | $config_files | |
6232 | ||
6233 | Configuration headers: | |
6234 | $config_headers | |
6235 | ||
6236 | Configuration links: | |
6237 | $config_links | |
6238 | ||
6239 | Configuration commands: | |
6240 | $config_commands | |
6241 | ||
6242 | Report bugs to <[email protected]>." | |
6243 | _ACEOF | |
6244 | ||
6245 | cat >>$CONFIG_STATUS <<_ACEOF | |
6246 | ac_cs_version="\\ | |
6247 | config.status | |
6248 | configured by $0, generated by GNU Autoconf 2.59, | |
6249 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
6250 | ||
6251 | Copyright (C) 2003 Free Software Foundation, Inc. | |
6252 | This config.status script is free software; the Free Software Foundation | |
6253 | gives unlimited permission to copy, distribute and modify it." | |
6254 | srcdir=$srcdir | |
6255 | INSTALL="$INSTALL" | |
6256 | _ACEOF | |
6257 | ||
6258 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6259 | # If no file are specified by the user, then we need to provide default | |
6260 | # value. By we need to know if files were specified by the user. | |
6261 | ac_need_defaults=: | |
6262 | while test $# != 0 | |
6263 | do | |
6264 | case $1 in | |
6265 | --*=*) | |
6266 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
6267 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
6268 | ac_shift=: | |
c906108c | 6269 | ;; |
b7026657 AC |
6270 | -*) |
6271 | ac_option=$1 | |
6272 | ac_optarg=$2 | |
6273 | ac_shift=shift | |
c906108c | 6274 | ;; |
b7026657 AC |
6275 | *) # This is not an option, so the user has probably given explicit |
6276 | # arguments. | |
6277 | ac_option=$1 | |
6278 | ac_need_defaults=false;; | |
6279 | esac | |
c906108c | 6280 | |
b7026657 AC |
6281 | case $ac_option in |
6282 | # Handling of the options. | |
6283 | _ACEOF | |
6284 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6285 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6286 | ac_cs_recheck=: ;; | |
6287 | --version | --vers* | -V ) | |
6288 | echo "$ac_cs_version"; exit 0 ;; | |
6289 | --he | --h) | |
6290 | # Conflict between --help and --header | |
6291 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
6292 | Try \`$0 --help' for more information." >&5 | |
6293 | echo "$as_me: error: ambiguous option: $1 | |
6294 | Try \`$0 --help' for more information." >&2;} | |
6295 | { (exit 1); exit 1; }; };; | |
6296 | --help | --hel | -h ) | |
6297 | echo "$ac_cs_usage"; exit 0 ;; | |
6298 | --debug | --d* | -d ) | |
6299 | debug=: ;; | |
6300 | --file | --fil | --fi | --f ) | |
6301 | $ac_shift | |
6302 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
6303 | ac_need_defaults=false;; | |
6304 | --header | --heade | --head | --hea ) | |
6305 | $ac_shift | |
6306 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
6307 | ac_need_defaults=false;; | |
6308 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
6309 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6310 | ac_cs_silent=: ;; | |
c906108c | 6311 | |
b7026657 AC |
6312 | # This is an error. |
6313 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
6314 | Try \`$0 --help' for more information." >&5 | |
6315 | echo "$as_me: error: unrecognized option: $1 | |
6316 | Try \`$0 --help' for more information." >&2;} | |
6317 | { (exit 1); exit 1; }; } ;; | |
c906108c | 6318 | |
b7026657 AC |
6319 | *) ac_config_targets="$ac_config_targets $1" ;; |
6320 | ||
6321 | esac | |
6322 | shift | |
6323 | done | |
6324 | ||
6325 | ac_configure_extra_args= | |
6326 | ||
6327 | if $ac_cs_silent; then | |
6328 | exec 6>/dev/null | |
6329 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c SS |
6330 | fi |
6331 | ||
b7026657 AC |
6332 | _ACEOF |
6333 | cat >>$CONFIG_STATUS <<_ACEOF | |
6334 | if \$ac_cs_recheck; then | |
6335 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
6336 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
6337 | fi | |
c906108c | 6338 | |
b7026657 | 6339 | _ACEOF |
c906108c | 6340 | |
c906108c | 6341 | |
c906108c | 6342 | |
b7026657 AC |
6343 | |
6344 | ||
6345 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6346 | for ac_config_target in $ac_config_targets | |
c906108c | 6347 | do |
b7026657 AC |
6348 | case "$ac_config_target" in |
6349 | # Handling of arguments. | |
6350 | "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
6351 | "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
6352 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
6353 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
38f48d72 AC |
6354 | "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
6355 | "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
b7026657 AC |
6356 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
6357 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
6358 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6359 | { (exit 1); exit 1; }; };; | |
c906108c SS |
6360 | esac |
6361 | done | |
6362 | ||
b7026657 AC |
6363 | # If the user did not use the arguments to specify the items to instantiate, |
6364 | # then the envvar interface is used. Set only those that are not. | |
6365 | # We use the long form for the default assignment because of an extremely | |
6366 | # bizarre bug on SunOS 4.1.3. | |
6367 | if $ac_need_defaults; then | |
6368 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6369 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6370 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
6371 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6372 | fi | |
6373 | ||
6374 | # Have a temporary directory for convenience. Make it in the build tree | |
6375 | # simply because there is no reason to put it here, and in addition, | |
6376 | # creating and moving files from /tmp can sometimes cause problems. | |
6377 | # Create a temporary directory, and hook for its removal unless debugging. | |
6378 | $debug || | |
6379 | { | |
6380 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
6381 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6382 | } | |
c906108c | 6383 | |
b7026657 | 6384 | # Create a (secure) tmp directory for tmp files. |
c906108c | 6385 | |
b7026657 AC |
6386 | { |
6387 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
6388 | test -n "$tmp" && test -d "$tmp" | |
6389 | } || | |
6390 | { | |
6391 | tmp=./confstat$$-$RANDOM | |
6392 | (umask 077 && mkdir $tmp) | |
6393 | } || | |
6394 | { | |
6395 | echo "$me: cannot create a temporary directory in ." >&2 | |
6396 | { (exit 1); exit 1; } | |
6397 | } | |
6398 | ||
6399 | _ACEOF | |
6400 | ||
6401 | cat >>$CONFIG_STATUS <<_ACEOF | |
6402 | ||
6403 | # | |
6404 | # CONFIG_FILES section. | |
6405 | # | |
c906108c | 6406 | |
b7026657 AC |
6407 | # No need to generate the scripts if there are no CONFIG_FILES. |
6408 | # This happens for instance when ./config.status config.h | |
6409 | if test -n "\$CONFIG_FILES"; then | |
6410 | # Protect against being on the right side of a sed subst in config.status. | |
6411 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
6412 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
b7026657 AC |
6413 | s,@SHELL@,$SHELL,;t t |
6414 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
6415 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
6416 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
6417 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
6418 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
6419 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
6420 | s,@exec_prefix@,$exec_prefix,;t t | |
6421 | s,@prefix@,$prefix,;t t | |
6422 | s,@program_transform_name@,$program_transform_name,;t t | |
6423 | s,@bindir@,$bindir,;t t | |
6424 | s,@sbindir@,$sbindir,;t t | |
6425 | s,@libexecdir@,$libexecdir,;t t | |
6426 | s,@datadir@,$datadir,;t t | |
6427 | s,@sysconfdir@,$sysconfdir,;t t | |
6428 | s,@sharedstatedir@,$sharedstatedir,;t t | |
6429 | s,@localstatedir@,$localstatedir,;t t | |
6430 | s,@libdir@,$libdir,;t t | |
6431 | s,@includedir@,$includedir,;t t | |
6432 | s,@oldincludedir@,$oldincludedir,;t t | |
6433 | s,@infodir@,$infodir,;t t | |
6434 | s,@mandir@,$mandir,;t t | |
6435 | s,@build_alias@,$build_alias,;t t | |
6436 | s,@host_alias@,$host_alias,;t t | |
6437 | s,@target_alias@,$target_alias,;t t | |
6438 | s,@DEFS@,$DEFS,;t t | |
6439 | s,@ECHO_C@,$ECHO_C,;t t | |
6440 | s,@ECHO_N@,$ECHO_N,;t t | |
6441 | s,@ECHO_T@,$ECHO_T,;t t | |
6442 | s,@LIBS@,$LIBS,;t t | |
35695fd6 AC |
6443 | s,@sim_environment@,$sim_environment,;t t |
6444 | s,@sim_alignment@,$sim_alignment,;t t | |
6445 | s,@sim_assert@,$sim_assert,;t t | |
6446 | s,@sim_bitsize@,$sim_bitsize,;t t | |
6447 | s,@sim_endian@,$sim_endian,;t t | |
6448 | s,@sim_hostendian@,$sim_hostendian,;t t | |
6449 | s,@sim_float@,$sim_float,;t t | |
6450 | s,@sim_scache@,$sim_scache,;t t | |
6451 | s,@sim_default_model@,$sim_default_model,;t t | |
6452 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
6453 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
6454 | s,@sim_hw@,$sim_hw,;t t | |
6455 | s,@sim_inline@,$sim_inline,;t t | |
6456 | s,@sim_packages@,$sim_packages,;t t | |
6457 | s,@sim_regparm@,$sim_regparm,;t t | |
6458 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
6459 | s,@sim_smp@,$sim_smp,;t t | |
6460 | s,@sim_stdcall@,$sim_stdcall,;t t | |
6461 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
6462 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
6463 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
b7026657 AC |
6464 | s,@build@,$build,;t t |
6465 | s,@build_cpu@,$build_cpu,;t t | |
6466 | s,@build_vendor@,$build_vendor,;t t | |
6467 | s,@build_os@,$build_os,;t t | |
6468 | s,@host@,$host,;t t | |
6469 | s,@host_cpu@,$host_cpu,;t t | |
6470 | s,@host_vendor@,$host_vendor,;t t | |
6471 | s,@host_os@,$host_os,;t t | |
6472 | s,@target@,$target,;t t | |
6473 | s,@target_cpu@,$target_cpu,;t t | |
6474 | s,@target_vendor@,$target_vendor,;t t | |
6475 | s,@target_os@,$target_os,;t t | |
6476 | s,@CC@,$CC,;t t | |
6477 | s,@CFLAGS@,$CFLAGS,;t t | |
6478 | s,@LDFLAGS@,$LDFLAGS,;t t | |
6479 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
6480 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
6481 | s,@EXEEXT@,$EXEEXT,;t t | |
6482 | s,@OBJEXT@,$OBJEXT,;t t | |
6483 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
6484 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
6485 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
6486 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
6487 | s,@HDEFINES@,$HDEFINES,;t t | |
6488 | s,@AR@,$AR,;t t | |
6489 | s,@RANLIB@,$RANLIB,;t t | |
6490 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
2f0122dc DJ |
6491 | s,@USE_NLS@,$USE_NLS,;t t |
6492 | s,@LIBINTL@,$LIBINTL,;t t | |
6493 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
6494 | s,@INCINTL@,$INCINTL,;t t | |
6495 | s,@XGETTEXT@,$XGETTEXT,;t t | |
6496 | s,@GMSGFMT@,$GMSGFMT,;t t | |
6497 | s,@POSUB@,$POSUB,;t t | |
6498 | s,@CATALOGS@,$CATALOGS,;t t | |
6499 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
6500 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
6501 | s,@GENCAT@,$GENCAT,;t t | |
6502 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b7026657 AC |
6503 | s,@CPP@,$CPP,;t t |
6504 | s,@EGREP@,$EGREP,;t t | |
b7026657 AC |
6505 | s,@MAINT@,$MAINT,;t t |
6506 | s,@sim_bswap@,$sim_bswap,;t t | |
6507 | s,@sim_cflags@,$sim_cflags,;t t | |
6508 | s,@sim_debug@,$sim_debug,;t t | |
6509 | s,@sim_stdio@,$sim_stdio,;t t | |
6510 | s,@sim_trace@,$sim_trace,;t t | |
6511 | s,@sim_profile@,$sim_profile,;t t | |
6efef468 JM |
6512 | s,@PKGVERSION@,$PKGVERSION,;t t |
6513 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t | |
6514 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
b7026657 AC |
6515 | s,@cgen_breaks@,$cgen_breaks,;t t |
6516 | s,@LIBOBJS@,$LIBOBJS,;t t | |
6517 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 6518 | CEOF |
b7026657 AC |
6519 | |
6520 | _ACEOF | |
6521 | ||
6522 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6523 | # Split the substitutions into bite-sized pieces for seds with | |
6524 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
6525 | ac_max_sed_lines=48 | |
6526 | ac_sed_frag=1 # Number of current file. | |
6527 | ac_beg=1 # First line for current file. | |
6528 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
6529 | ac_more_lines=: | |
6530 | ac_sed_cmds= | |
6531 | while $ac_more_lines; do | |
6532 | if test $ac_beg -gt 1; then | |
6533 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
c906108c | 6534 | else |
b7026657 AC |
6535 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
6536 | fi | |
6537 | if test ! -s $tmp/subs.frag; then | |
6538 | ac_more_lines=false | |
6539 | else | |
6540 | # The purpose of the label and of the branching condition is to | |
6541 | # speed up the sed processing (if there are no `@' at all, there | |
6542 | # is no need to browse any of the substitutions). | |
6543 | # These are the two extra sed commands mentioned above. | |
6544 | (echo ':t | |
6545 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
6546 | if test -z "$ac_sed_cmds"; then | |
6547 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
6548 | else | |
6549 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
6550 | fi | |
6551 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
6552 | ac_beg=$ac_end | |
6553 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 6554 | fi |
b7026657 AC |
6555 | done |
6556 | if test -z "$ac_sed_cmds"; then | |
6557 | ac_sed_cmds=cat | |
c906108c | 6558 | fi |
b7026657 | 6559 | fi # test -n "$CONFIG_FILES" |
c906108c | 6560 | |
b7026657 AC |
6561 | _ACEOF |
6562 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6563 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 6564 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
6565 | case $ac_file in |
6566 | - | *:- | *:-:* ) # input from stdin | |
6567 | cat >$tmp/stdin | |
6568 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6569 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6570 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6571 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6572 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
6573 | esac |
6574 | ||
b7026657 AC |
6575 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
6576 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6577 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6578 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6579 | X"$ac_file" : 'X\(//\)$' \| \ | |
6580 | X"$ac_file" : 'X\(/\)' \| \ | |
6581 | . : '\(.\)' 2>/dev/null || | |
6582 | echo X"$ac_file" | | |
6583 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6584 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6585 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6586 | /^X\(\/\).*/{ s//\1/; q; } | |
6587 | s/.*/./; q'` | |
6588 | { if $as_mkdir_p; then | |
6589 | mkdir -p "$ac_dir" | |
c906108c | 6590 | else |
b7026657 AC |
6591 | as_dir="$ac_dir" |
6592 | as_dirs= | |
6593 | while test ! -d "$as_dir"; do | |
6594 | as_dirs="$as_dir $as_dirs" | |
6595 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6596 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6597 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6598 | X"$as_dir" : 'X\(//\)$' \| \ | |
6599 | X"$as_dir" : 'X\(/\)' \| \ | |
6600 | . : '\(.\)' 2>/dev/null || | |
6601 | echo X"$as_dir" | | |
6602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6603 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6604 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6605 | /^X\(\/\).*/{ s//\1/; q; } | |
6606 | s/.*/./; q'` | |
6607 | done | |
6608 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6609 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6610 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6611 | { (exit 1); exit 1; }; }; } | |
6612 | ||
6613 | ac_builddir=. | |
c906108c | 6614 | |
b7026657 AC |
6615 | if test "$ac_dir" != .; then |
6616 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6617 | # A "../" for each directory in $ac_dir_suffix. | |
6618 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
6619 | else | |
6620 | ac_dir_suffix= ac_top_builddir= | |
6621 | fi | |
6622 | ||
6623 | case $srcdir in | |
6624 | .) # No --srcdir option. We are building in place. | |
6625 | ac_srcdir=. | |
6626 | if test -z "$ac_top_builddir"; then | |
6627 | ac_top_srcdir=. | |
6628 | else | |
6629 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
6630 | fi ;; | |
6631 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
6632 | ac_srcdir=$srcdir$ac_dir_suffix; | |
6633 | ac_top_srcdir=$srcdir ;; | |
c906108c | 6634 | *) # Relative path. |
b7026657 AC |
6635 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
6636 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6637 | esac | |
c906108c | 6638 | |
b7026657 AC |
6639 | # Do not use `cd foo && pwd` to compute absolute paths, because |
6640 | # the directories may not exist. | |
6641 | case `pwd` in | |
6642 | .) ac_abs_builddir="$ac_dir";; | |
6643 | *) | |
6644 | case "$ac_dir" in | |
6645 | .) ac_abs_builddir=`pwd`;; | |
6646 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
6647 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
6648 | esac;; | |
6649 | esac | |
6650 | case $ac_abs_builddir in | |
6651 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6652 | *) | |
6653 | case ${ac_top_builddir}. in | |
6654 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
6655 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
6656 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
6657 | esac;; | |
6658 | esac | |
6659 | case $ac_abs_builddir in | |
6660 | .) ac_abs_srcdir=$ac_srcdir;; | |
6661 | *) | |
6662 | case $ac_srcdir in | |
6663 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
6664 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
6665 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
6666 | esac;; | |
6667 | esac | |
6668 | case $ac_abs_builddir in | |
6669 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
6670 | *) | |
6671 | case $ac_top_srcdir in | |
6672 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
6673 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
6674 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
6675 | esac;; | |
6676 | esac | |
c906108c | 6677 | |
b7026657 AC |
6678 | |
6679 | case $INSTALL in | |
6680 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
6681 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
6682 | esac |
6683 | ||
b7026657 AC |
6684 | if test x"$ac_file" != x-; then |
6685 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6686 | echo "$as_me: creating $ac_file" >&6;} | |
6687 | rm -f "$ac_file" | |
6688 | fi | |
6689 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6690 | # use $as_me), people would be surprised to read: | |
6691 | # /* config.h. Generated by config.status. */ | |
6692 | if test x"$ac_file" = x-; then | |
6693 | configure_input= | |
6694 | else | |
6695 | configure_input="$ac_file. " | |
6696 | fi | |
6697 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
6698 | sed 's,.*/,,'` by configure." | |
6699 | ||
6700 | # First look for the input files in the build tree, otherwise in the | |
6701 | # src tree. | |
6702 | ac_file_inputs=`IFS=: | |
6703 | for f in $ac_file_in; do | |
6704 | case $f in | |
6705 | -) echo $tmp/stdin ;; | |
6706 | [\\/$]*) | |
6707 | # Absolute (can't be DOS-style, as IFS=:) | |
6708 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6709 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6710 | { (exit 1); exit 1; }; } | |
6711 | echo "$f";; | |
6712 | *) # Relative | |
6713 | if test -f "$f"; then | |
6714 | # Build tree | |
6715 | echo "$f" | |
6716 | elif test -f "$srcdir/$f"; then | |
6717 | # Source tree | |
6718 | echo "$srcdir/$f" | |
6719 | else | |
6720 | # /dev/null tree | |
6721 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6722 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6723 | { (exit 1); exit 1; }; } | |
6724 | fi;; | |
6725 | esac | |
6726 | done` || { (exit 1); exit 1; } | |
6727 | _ACEOF | |
6728 | cat >>$CONFIG_STATUS <<_ACEOF | |
6729 | sed "$ac_vpsub | |
6730 | $extrasub | |
6731 | _ACEOF | |
6732 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6733 | :t | |
6734 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
6735 | s,@configure_input@,$configure_input,;t t | |
6736 | s,@srcdir@,$ac_srcdir,;t t | |
6737 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
6738 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
6739 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
6740 | s,@builddir@,$ac_builddir,;t t | |
6741 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
6742 | s,@top_builddir@,$ac_top_builddir,;t t | |
6743 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
6744 | s,@INSTALL@,$ac_INSTALL,;t t | |
6745 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
6746 | rm -f $tmp/stdin | |
6747 | if test x"$ac_file" != x-; then | |
6748 | mv $tmp/out $ac_file | |
6749 | else | |
6750 | cat $tmp/out | |
6751 | rm -f $tmp/out | |
6752 | fi | |
6753 | ||
6754 | done | |
6755 | _ACEOF | |
6756 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6757 | ||
6758 | # | |
6759 | # CONFIG_HEADER section. | |
6760 | # | |
c906108c SS |
6761 | |
6762 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
6763 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
6764 | # | |
6765 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
6766 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
6767 | ac_dB='[ ].*$,\1#\2' | |
6768 | ac_dC=' ' | |
6769 | ac_dD=',;t' | |
6770 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
6771 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
6772 | ac_uB='$,\1#\2define\3' | |
c906108c | 6773 | ac_uC=' ' |
b7026657 AC |
6774 | ac_uD=',;t' |
6775 | ||
6776 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 6777 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
6778 | case $ac_file in |
6779 | - | *:- | *:-:* ) # input from stdin | |
6780 | cat >$tmp/stdin | |
6781 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6782 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6783 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
6784 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
6785 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
6786 | esac |
6787 | ||
b7026657 AC |
6788 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
6789 | echo "$as_me: creating $ac_file" >&6;} | |
6790 | ||
6791 | # First look for the input files in the build tree, otherwise in the | |
6792 | # src tree. | |
6793 | ac_file_inputs=`IFS=: | |
6794 | for f in $ac_file_in; do | |
6795 | case $f in | |
6796 | -) echo $tmp/stdin ;; | |
6797 | [\\/$]*) | |
6798 | # Absolute (can't be DOS-style, as IFS=:) | |
6799 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6800 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6801 | { (exit 1); exit 1; }; } | |
6802 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
6803 | echo "$f";; | |
6804 | *) # Relative | |
6805 | if test -f "$f"; then | |
6806 | # Build tree | |
6807 | echo "$f" | |
6808 | elif test -f "$srcdir/$f"; then | |
6809 | # Source tree | |
6810 | echo "$srcdir/$f" | |
6811 | else | |
6812 | # /dev/null tree | |
6813 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
6814 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
6815 | { (exit 1); exit 1; }; } | |
6816 | fi;; | |
6817 | esac | |
6818 | done` || { (exit 1); exit 1; } | |
6819 | # Remove the trailing spaces. | |
6820 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
6821 | ||
6822 | _ACEOF | |
6823 | ||
6824 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
6825 | # `conftest.undefs', that substitutes the proper values into | |
6826 | # config.h.in to produce config.h. The first handles `#define' | |
6827 | # templates, and the second `#undef' templates. | |
6828 | # And first: Protect against being on the right side of a sed subst in | |
6829 | # config.status. Protect against being in an unquoted here document | |
6830 | # in config.status. | |
6831 | rm -f conftest.defines conftest.undefs | |
6832 | # Using a here document instead of a string reduces the quoting nightmare. | |
6833 | # Putting comments in sed scripts is not portable. | |
6834 | # | |
6835 | # `end' is used to avoid that the second main sed command (meant for | |
6836 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
6837 | # See the Autoconf documentation for `clear'. | |
6838 | cat >confdef2sed.sed <<\_ACEOF | |
6839 | s/[\\&,]/\\&/g | |
6840 | s,[\\$`],\\&,g | |
6841 | t clear | |
6842 | : clear | |
6843 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
6844 | t end | |
6845 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
6846 | : end | |
6847 | _ACEOF | |
6848 | # If some macros were called several times there might be several times | |
6849 | # the same #defines, which is useless. Nevertheless, we may not want to | |
6850 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
6851 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
6852 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
6853 | rm -f confdef2sed.sed | |
c906108c SS |
6854 | |
6855 | # This sed command replaces #undef with comments. This is necessary, for | |
6856 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6857 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
6858 | cat >>conftest.undefs <<\_ACEOF |
6859 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
6860 | _ACEOF | |
6861 | ||
6862 | # Break up conftest.defines because some shells have a limit on the size | |
6863 | # of here documents, and old seds have small limits too (100 cmds). | |
6864 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
6865 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
6866 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
6867 | echo ' :' >>$CONFIG_STATUS | |
6868 | rm -f conftest.tail | |
6869 | while grep . conftest.defines >/dev/null | |
6870 | do | |
6871 | # Write a limited-size here document to $tmp/defines.sed. | |
6872 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
6873 | # Speed up: don't consider the non `#define' lines. | |
6874 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
6875 | # Work around the forget-to-reset-the-flag bug. | |
6876 | echo 't clr' >>$CONFIG_STATUS | |
6877 | echo ': clr' >>$CONFIG_STATUS | |
6878 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
6879 | echo 'CEOF | |
6880 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
6881 | rm -f $tmp/in | |
6882 | mv $tmp/out $tmp/in | |
6883 | ' >>$CONFIG_STATUS | |
6884 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
6885 | rm -f conftest.defines | |
6886 | mv conftest.tail conftest.defines | |
6887 | done | |
6888 | rm -f conftest.defines | |
6889 | echo ' fi # grep' >>$CONFIG_STATUS | |
6890 | echo >>$CONFIG_STATUS | |
c906108c | 6891 | |
b7026657 AC |
6892 | # Break up conftest.undefs because some shells have a limit on the size |
6893 | # of here documents, and old seds have small limits too (100 cmds). | |
6894 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 6895 | rm -f conftest.tail |
b7026657 | 6896 | while grep . conftest.undefs >/dev/null |
c906108c | 6897 | do |
b7026657 AC |
6898 | # Write a limited-size here document to $tmp/undefs.sed. |
6899 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
6900 | # Speed up: don't consider the non `#undef' | |
6901 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
6902 | # Work around the forget-to-reset-the-flag bug. | |
6903 | echo 't clr' >>$CONFIG_STATUS | |
6904 | echo ': clr' >>$CONFIG_STATUS | |
6905 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 6906 | echo 'CEOF |
b7026657 AC |
6907 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
6908 | rm -f $tmp/in | |
6909 | mv $tmp/out $tmp/in | |
6910 | ' >>$CONFIG_STATUS | |
6911 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
6912 | rm -f conftest.undefs | |
6913 | mv conftest.tail conftest.undefs | |
c906108c | 6914 | done |
b7026657 AC |
6915 | rm -f conftest.undefs |
6916 | ||
6917 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6918 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6919 | # use $as_me), people would be surprised to read: | |
6920 | # /* config.h. Generated by config.status. */ | |
6921 | if test x"$ac_file" = x-; then | |
6922 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 6923 | else |
b7026657 | 6924 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 6925 | fi |
b7026657 AC |
6926 | cat $tmp/in >>$tmp/config.h |
6927 | rm -f $tmp/in | |
6928 | if test x"$ac_file" != x-; then | |
6929 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
6930 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
6931 | echo "$as_me: $ac_file is unchanged" >&6;} | |
6932 | else | |
6933 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
6934 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6935 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6936 | X"$ac_file" : 'X\(//\)$' \| \ | |
6937 | X"$ac_file" : 'X\(/\)' \| \ | |
6938 | . : '\(.\)' 2>/dev/null || | |
6939 | echo X"$ac_file" | | |
6940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6941 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6942 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6943 | /^X\(\/\).*/{ s//\1/; q; } | |
6944 | s/.*/./; q'` | |
6945 | { if $as_mkdir_p; then | |
6946 | mkdir -p "$ac_dir" | |
6947 | else | |
6948 | as_dir="$ac_dir" | |
6949 | as_dirs= | |
6950 | while test ! -d "$as_dir"; do | |
6951 | as_dirs="$as_dir $as_dirs" | |
6952 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
6953 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6954 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6955 | X"$as_dir" : 'X\(//\)$' \| \ | |
6956 | X"$as_dir" : 'X\(/\)' \| \ | |
6957 | . : '\(.\)' 2>/dev/null || | |
6958 | echo X"$as_dir" | | |
6959 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
6960 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
6961 | /^X\(\/\/\)$/{ s//\1/; q; } | |
6962 | /^X\(\/\).*/{ s//\1/; q; } | |
6963 | s/.*/./; q'` | |
6964 | done | |
6965 | test ! -n "$as_dirs" || mkdir $as_dirs | |
6966 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
6967 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
6968 | { (exit 1); exit 1; }; }; } | |
c906108c | 6969 | |
b7026657 AC |
6970 | rm -f $ac_file |
6971 | mv $tmp/config.h $ac_file | |
6972 | fi | |
6973 | else | |
6974 | cat $tmp/config.h | |
6975 | rm -f $tmp/config.h | |
6976 | fi | |
6977 | done | |
6978 | _ACEOF | |
6979 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 6980 | |
b7026657 AC |
6981 | # |
6982 | # CONFIG_LINKS section. | |
6983 | # | |
c906108c | 6984 | |
b7026657 AC |
6985 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
6986 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
6987 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 6988 | |
b7026657 AC |
6989 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
6990 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
6991 | |
6992 | if test ! -r $srcdir/$ac_source; then | |
b7026657 AC |
6993 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
6994 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
6995 | { (exit 1); exit 1; }; } | |
c906108c SS |
6996 | fi |
6997 | rm -f $ac_dest | |
6998 | ||
6999 | # Make relative symlinks. | |
b7026657 AC |
7000 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
7001 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7002 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
7003 | X"$ac_dest" : 'X\(//\)$' \| \ | |
7004 | X"$ac_dest" : 'X\(/\)' \| \ | |
7005 | . : '\(.\)' 2>/dev/null || | |
7006 | echo X"$ac_dest" | | |
7007 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7008 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7009 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7010 | /^X\(\/\).*/{ s//\1/; q; } | |
7011 | s/.*/./; q'` | |
7012 | { if $as_mkdir_p; then | |
7013 | mkdir -p "$ac_dest_dir" | |
c906108c | 7014 | else |
b7026657 AC |
7015 | as_dir="$ac_dest_dir" |
7016 | as_dirs= | |
7017 | while test ! -d "$as_dir"; do | |
7018 | as_dirs="$as_dir $as_dirs" | |
7019 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7020 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7021 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7022 | X"$as_dir" : 'X\(//\)$' \| \ | |
7023 | X"$as_dir" : 'X\(/\)' \| \ | |
7024 | . : '\(.\)' 2>/dev/null || | |
7025 | echo X"$as_dir" | | |
7026 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7027 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7028 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7029 | /^X\(\/\).*/{ s//\1/; q; } | |
7030 | s/.*/./; q'` | |
7031 | done | |
7032 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7033 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
7034 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
7035 | { (exit 1); exit 1; }; }; } | |
7036 | ||
7037 | ac_builddir=. | |
7038 | ||
7039 | if test "$ac_dest_dir" != .; then | |
7040 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
7041 | # A "../" for each directory in $ac_dir_suffix. | |
7042 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7043 | else | |
7044 | ac_dir_suffix= ac_top_builddir= | |
7045 | fi | |
7046 | ||
7047 | case $srcdir in | |
7048 | .) # No --srcdir option. We are building in place. | |
7049 | ac_srcdir=. | |
7050 | if test -z "$ac_top_builddir"; then | |
7051 | ac_top_srcdir=. | |
7052 | else | |
7053 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7054 | fi ;; | |
7055 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7056 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7057 | ac_top_srcdir=$srcdir ;; | |
7058 | *) # Relative path. | |
7059 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7060 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7061 | esac | |
7062 | ||
7063 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7064 | # the directories may not exist. | |
7065 | case `pwd` in | |
7066 | .) ac_abs_builddir="$ac_dest_dir";; | |
7067 | *) | |
7068 | case "$ac_dest_dir" in | |
7069 | .) ac_abs_builddir=`pwd`;; | |
7070 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
7071 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
7072 | esac;; | |
7073 | esac | |
7074 | case $ac_abs_builddir in | |
7075 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7076 | *) | |
7077 | case ${ac_top_builddir}. in | |
7078 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7079 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7080 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7081 | esac;; | |
7082 | esac | |
7083 | case $ac_abs_builddir in | |
7084 | .) ac_abs_srcdir=$ac_srcdir;; | |
7085 | *) | |
7086 | case $ac_srcdir in | |
7087 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7088 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7089 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7090 | esac;; | |
7091 | esac | |
7092 | case $ac_abs_builddir in | |
7093 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7094 | *) | |
7095 | case $ac_top_srcdir in | |
7096 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7097 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7098 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7099 | esac;; | |
7100 | esac | |
c906108c | 7101 | |
b7026657 AC |
7102 | |
7103 | case $srcdir in | |
7104 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
7105 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
7106 | esac |
7107 | ||
b7026657 AC |
7108 | # Try a symlink, then a hard link, then a copy. |
7109 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
7110 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
7111 | cp -p $srcdir/$ac_source $ac_dest || | |
7112 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
7113 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
7114 | { (exit 1); exit 1; }; } | |
c906108c | 7115 | done |
b7026657 AC |
7116 | _ACEOF |
7117 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7118 | ||
7119 | # | |
7120 | # CONFIG_COMMANDS section. | |
7121 | # | |
7122 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7123 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7124 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7125 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
7126 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7127 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
7128 | X"$ac_dest" : 'X\(//\)$' \| \ | |
7129 | X"$ac_dest" : 'X\(/\)' \| \ | |
7130 | . : '\(.\)' 2>/dev/null || | |
7131 | echo X"$ac_dest" | | |
7132 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7133 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7134 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7135 | /^X\(\/\).*/{ s//\1/; q; } | |
7136 | s/.*/./; q'` | |
7137 | { if $as_mkdir_p; then | |
7138 | mkdir -p "$ac_dir" | |
7139 | else | |
7140 | as_dir="$ac_dir" | |
7141 | as_dirs= | |
7142 | while test ! -d "$as_dir"; do | |
7143 | as_dirs="$as_dir $as_dirs" | |
7144 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7145 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7146 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7147 | X"$as_dir" : 'X\(//\)$' \| \ | |
7148 | X"$as_dir" : 'X\(/\)' \| \ | |
7149 | . : '\(.\)' 2>/dev/null || | |
7150 | echo X"$as_dir" | | |
7151 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7152 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7153 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7154 | /^X\(\/\).*/{ s//\1/; q; } | |
7155 | s/.*/./; q'` | |
7156 | done | |
7157 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7158 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7159 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7160 | { (exit 1); exit 1; }; }; } | |
7161 | ||
7162 | ac_builddir=. | |
7163 | ||
7164 | if test "$ac_dir" != .; then | |
7165 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7166 | # A "../" for each directory in $ac_dir_suffix. | |
7167 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7168 | else | |
7169 | ac_dir_suffix= ac_top_builddir= | |
7170 | fi | |
c906108c | 7171 | |
b7026657 AC |
7172 | case $srcdir in |
7173 | .) # No --srcdir option. We are building in place. | |
7174 | ac_srcdir=. | |
7175 | if test -z "$ac_top_builddir"; then | |
7176 | ac_top_srcdir=. | |
7177 | else | |
7178 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7179 | fi ;; | |
7180 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7181 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7182 | ac_top_srcdir=$srcdir ;; | |
7183 | *) # Relative path. | |
7184 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7185 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7186 | esac | |
7187 | ||
7188 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7189 | # the directories may not exist. | |
7190 | case `pwd` in | |
7191 | .) ac_abs_builddir="$ac_dir";; | |
7192 | *) | |
7193 | case "$ac_dir" in | |
7194 | .) ac_abs_builddir=`pwd`;; | |
7195 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7196 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7197 | esac;; | |
7198 | esac | |
7199 | case $ac_abs_builddir in | |
7200 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7201 | *) | |
7202 | case ${ac_top_builddir}. in | |
7203 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7204 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7205 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7206 | esac;; | |
7207 | esac | |
7208 | case $ac_abs_builddir in | |
7209 | .) ac_abs_srcdir=$ac_srcdir;; | |
7210 | *) | |
7211 | case $ac_srcdir in | |
7212 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7213 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7214 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7215 | esac;; | |
7216 | esac | |
7217 | case $ac_abs_builddir in | |
7218 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7219 | *) | |
7220 | case $ac_top_srcdir in | |
7221 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7222 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7223 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7224 | esac;; | |
7225 | esac | |
7226 | ||
7227 | ||
7228 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
7229 | echo "$as_me: executing $ac_dest commands" >&6;} | |
7230 | case $ac_dest in | |
38f48d72 AC |
7231 | Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." |
7232 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
7233 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
7234 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
7235 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
c906108c SS |
7236 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ |
7237 | <Makefile.sim >Makefile | |
38f48d72 | 7238 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp |
b7026657 | 7239 | ;; |
38f48d72 | 7240 | stamp-h ) echo > stamp-h ;; |
b7026657 AC |
7241 | esac |
7242 | done | |
7243 | _ACEOF | |
c906108c | 7244 | |
b7026657 AC |
7245 | cat >>$CONFIG_STATUS <<\_ACEOF |
7246 | ||
7247 | { (exit 0); exit 0; } | |
7248 | _ACEOF | |
c906108c | 7249 | chmod +x $CONFIG_STATUS |
b7026657 AC |
7250 | ac_clean_files=$ac_clean_files_save |
7251 | ||
7252 | ||
7253 | # configure is writing to config.log, and then calls config.status. | |
7254 | # config.status does its own redirection, appending to config.log. | |
7255 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7256 | # by configure, so config.status won't be able to write to it; its | |
7257 | # output is simply discarded. So we exec the FD to /dev/null, | |
7258 | # effectively closing config.log, so it can be properly (re)opened and | |
7259 | # appended to by config.status. When coming back to configure, we | |
7260 | # need to make the FD available again. | |
7261 | if test "$no_create" != yes; then | |
7262 | ac_cs_success=: | |
7263 | ac_config_status_args= | |
7264 | test "$silent" = yes && | |
7265 | ac_config_status_args="$ac_config_status_args --quiet" | |
7266 | exec 5>/dev/null | |
7267 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7268 | exec 5>>config.log | |
7269 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7270 | # would make configure fail if this is the last instruction. | |
7271 | $ac_cs_success || { (exit 1); exit 1; } | |
7272 | fi | |
c906108c SS |
7273 | |
7274 |