Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
b7026657 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
b7026657 | 8 | # |
b7026657 AC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c906108c | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
b7026657 | 31 | fi |
c906108c | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
b7026657 | 79 | fi |
c906108c SS |
80 | |
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
b7026657 AC |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
c906108c | 124 | |
b7026657 | 125 | # NLS nuisances. |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
173 | if (eval "$as_required") 2>/dev/null; then : | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b7026657 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b7026657 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
b7026657 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
263 | ||
264 | # as_fn_exit STATUS | |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
c906108c | 372 | |
81ecdfbb RW |
373 | if expr a : '\(a\)' >/dev/null 2>&1 && |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
c906108c | 379 | |
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
c906108c | 385 | |
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c906108c | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c906108c | 410 | |
b7026657 AC |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
c906108c | 417 | |
c906108c | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
b7026657 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
b7026657 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b7026657 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
b7026657 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b7026657 AC |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
b7026657 AC |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
c906108c | 449 | |
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
b7026657 | 461 | esac |
c906108c | 462 | |
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b7026657 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
b7026657 | 483 | fi |
b7026657 AC |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c906108c | 489 | |
b7026657 | 490 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
c906108c | 496 | |
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c906108c | 519 | |
b7026657 AC |
520 | # Sed expression to map a string onto a valid CPP name. |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 522 | |
b7026657 AC |
523 | # Sed expression to map a string onto a valid variable name. |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c SS |
525 | |
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
c906108c | 528 | |
b7026657 AC |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
c906108c | 533 | |
c906108c | 534 | # |
b7026657 | 535 | # Initializations. |
c906108c | 536 | # |
b7026657 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
b7026657 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
b7026657 AC |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
b7026657 AC |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
b7026657 AC |
553 | |
554 | ac_unique_file="Makefile.in" | |
555 | # Factoring default headers for most tests. | |
556 | ac_includes_default="\ | |
557 | #include <stdio.h> | |
81ecdfbb | 558 | #ifdef HAVE_SYS_TYPES_H |
b7026657 AC |
559 | # include <sys/types.h> |
560 | #endif | |
81ecdfbb | 561 | #ifdef HAVE_SYS_STAT_H |
b7026657 AC |
562 | # include <sys/stat.h> |
563 | #endif | |
81ecdfbb | 564 | #ifdef STDC_HEADERS |
b7026657 AC |
565 | # include <stdlib.h> |
566 | # include <stddef.h> | |
567 | #else | |
81ecdfbb | 568 | # ifdef HAVE_STDLIB_H |
b7026657 AC |
569 | # include <stdlib.h> |
570 | # endif | |
571 | #endif | |
81ecdfbb RW |
572 | #ifdef HAVE_STRING_H |
573 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b7026657 AC |
574 | # include <memory.h> |
575 | # endif | |
576 | # include <string.h> | |
577 | #endif | |
81ecdfbb | 578 | #ifdef HAVE_STRINGS_H |
b7026657 AC |
579 | # include <strings.h> |
580 | #endif | |
81ecdfbb | 581 | #ifdef HAVE_INTTYPES_H |
b7026657 | 582 | # include <inttypes.h> |
b7026657 | 583 | #endif |
81ecdfbb RW |
584 | #ifdef HAVE_STDINT_H |
585 | # include <stdint.h> | |
586 | #endif | |
587 | #ifdef HAVE_UNISTD_H | |
b7026657 AC |
588 | # include <unistd.h> |
589 | #endif" | |
c906108c | 590 | |
81ecdfbb RW |
591 | ac_subst_vars='LTLIBOBJS |
592 | LIBOBJS | |
593 | cgen_breaks | |
594 | mips_extra_libs | |
595 | XMKMF | |
596 | mips_igen_engine | |
597 | mips_extra_objs | |
598 | sim_multi_obj | |
599 | sim_multi_src | |
600 | sim_multi_igen_configs | |
601 | sim_multi_flags | |
602 | sim_gen | |
603 | sim_m16_flags | |
604 | sim_igen_flags | |
605 | SIM_SUBTARGET | |
606 | REPORT_BUGS_TEXI | |
607 | REPORT_BUGS_TO | |
608 | PKGVERSION | |
609 | sim_profile | |
610 | sim_trace | |
611 | sim_stdio | |
612 | sim_debug | |
613 | sim_cflags | |
614 | sim_bswap | |
615 | MAINT | |
81ecdfbb RW |
616 | CATOBJEXT |
617 | GENCAT | |
618 | INSTOBJEXT | |
619 | DATADIRNAME | |
620 | CATALOGS | |
621 | POSUB | |
622 | GMSGFMT | |
623 | XGETTEXT | |
624 | INCINTL | |
625 | LIBINTL_DEP | |
626 | LIBINTL | |
627 | USE_NLS | |
db2e4d67 MF |
628 | GMAKE_FALSE |
629 | GMAKE_TRUE | |
630 | MAKE | |
631 | CCDEPMODE | |
632 | DEPDIR | |
633 | am__leading_dot | |
81ecdfbb RW |
634 | RANLIB |
635 | AR | |
636 | HDEFINES | |
637 | CC_FOR_BUILD | |
638 | INSTALL_DATA | |
639 | INSTALL_SCRIPT | |
640 | INSTALL_PROGRAM | |
2232061b MF |
641 | EGREP |
642 | GREP | |
643 | CPP | |
81ecdfbb RW |
644 | target_os |
645 | target_vendor | |
646 | target_cpu | |
647 | target | |
648 | host_os | |
649 | host_vendor | |
650 | host_cpu | |
651 | host | |
652 | build_os | |
653 | build_vendor | |
654 | build_cpu | |
655 | build | |
6ffe910a MF |
656 | OBJEXT |
657 | EXEEXT | |
658 | ac_ct_CC | |
659 | CPPFLAGS | |
660 | LDFLAGS | |
661 | CFLAGS | |
662 | CC | |
81ecdfbb RW |
663 | WERROR_CFLAGS |
664 | WARN_CFLAGS | |
665 | sim_xor_endian | |
666 | sim_stdcall | |
667 | sim_smp | |
668 | sim_reserved_bits | |
669 | sim_regparm | |
670 | sim_packages | |
671 | sim_inline | |
672 | sim_hw | |
673 | sim_hw_objs | |
674 | sim_hw_cflags | |
675 | sim_default_model | |
676 | sim_scache | |
677 | sim_float | |
678 | sim_hostendian | |
679 | sim_endian | |
680 | sim_bitsize | |
681 | sim_assert | |
682 | sim_alignment | |
683 | sim_environment | |
684 | target_alias | |
685 | host_alias | |
686 | build_alias | |
687 | LIBS | |
688 | ECHO_T | |
689 | ECHO_N | |
690 | ECHO_C | |
691 | DEFS | |
692 | mandir | |
693 | localedir | |
694 | libdir | |
695 | psdir | |
696 | pdfdir | |
697 | dvidir | |
698 | htmldir | |
699 | infodir | |
700 | docdir | |
701 | oldincludedir | |
702 | includedir | |
703 | localstatedir | |
704 | sharedstatedir | |
705 | sysconfdir | |
706 | datadir | |
707 | datarootdir | |
708 | libexecdir | |
709 | sbindir | |
710 | bindir | |
711 | program_transform_name | |
712 | prefix | |
713 | exec_prefix | |
714 | PACKAGE_URL | |
715 | PACKAGE_BUGREPORT | |
716 | PACKAGE_STRING | |
717 | PACKAGE_VERSION | |
718 | PACKAGE_TARNAME | |
719 | PACKAGE_NAME | |
720 | PATH_SEPARATOR | |
721 | SHELL' | |
b7026657 | 722 | ac_subst_files='' |
81ecdfbb RW |
723 | ac_user_opts=' |
724 | enable_option_checking | |
5912fadd | 725 | with_zlib |
81ecdfbb RW |
726 | enable_maintainer_mode |
727 | enable_sim_bswap | |
728 | enable_sim_cflags | |
729 | enable_sim_debug | |
730 | enable_sim_stdio | |
731 | enable_sim_trace | |
732 | enable_sim_profile | |
733 | with_pkgversion | |
734 | with_bugurl | |
735 | enable_sim_inline | |
736 | enable_sim_alignment | |
737 | enable_sim_hostendian | |
2232061b | 738 | enable_werror |
81ecdfbb RW |
739 | enable_build_warnings |
740 | enable_sim_build_warnings | |
741 | enable_sim_reserved_bits | |
742 | enable_sim_endian | |
743 | enable_sim_bitsize | |
744 | enable_sim_float | |
745 | enable_sim_smp | |
746 | enable_sim_hardware | |
747 | with_x | |
748 | ' | |
749 | ac_precious_vars='build_alias | |
750 | host_alias | |
751 | target_alias | |
752 | CC | |
753 | CFLAGS | |
754 | LDFLAGS | |
755 | LIBS | |
756 | CPPFLAGS | |
757 | CPP | |
758 | XMKMF' | |
759 | ||
c906108c SS |
760 | |
761 | # Initialize some variables set by options. | |
b7026657 AC |
762 | ac_init_help= |
763 | ac_init_version=false | |
81ecdfbb RW |
764 | ac_unrecognized_opts= |
765 | ac_unrecognized_sep= | |
c906108c SS |
766 | # The variables have the same names as the options, with |
767 | # dashes changed to underlines. | |
b7026657 | 768 | cache_file=/dev/null |
c906108c | 769 | exec_prefix=NONE |
c906108c | 770 | no_create= |
c906108c SS |
771 | no_recursion= |
772 | prefix=NONE | |
773 | program_prefix=NONE | |
774 | program_suffix=NONE | |
775 | program_transform_name=s,x,x, | |
776 | silent= | |
777 | site= | |
778 | srcdir= | |
c906108c SS |
779 | verbose= |
780 | x_includes=NONE | |
781 | x_libraries=NONE | |
b7026657 AC |
782 | |
783 | # Installation directory options. | |
784 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
785 | # and all the variables that are supposed to be based on exec_prefix | |
786 | # by default will actually change. | |
787 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 788 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
789 | bindir='${exec_prefix}/bin' |
790 | sbindir='${exec_prefix}/sbin' | |
791 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
792 | datarootdir='${prefix}/share' |
793 | datadir='${datarootdir}' | |
c906108c SS |
794 | sysconfdir='${prefix}/etc' |
795 | sharedstatedir='${prefix}/com' | |
796 | localstatedir='${prefix}/var' | |
c906108c SS |
797 | includedir='${prefix}/include' |
798 | oldincludedir='/usr/include' | |
81ecdfbb RW |
799 | docdir='${datarootdir}/doc/${PACKAGE}' |
800 | infodir='${datarootdir}/info' | |
801 | htmldir='${docdir}' | |
802 | dvidir='${docdir}' | |
803 | pdfdir='${docdir}' | |
804 | psdir='${docdir}' | |
805 | libdir='${exec_prefix}/lib' | |
806 | localedir='${datarootdir}/locale' | |
807 | mandir='${datarootdir}/man' | |
c906108c | 808 | |
c906108c | 809 | ac_prev= |
81ecdfbb | 810 | ac_dashdash= |
c906108c SS |
811 | for ac_option |
812 | do | |
c906108c SS |
813 | # If the previous option needs an argument, assign it. |
814 | if test -n "$ac_prev"; then | |
81ecdfbb | 815 | eval $ac_prev=\$ac_option |
c906108c SS |
816 | ac_prev= |
817 | continue | |
818 | fi | |
819 | ||
81ecdfbb RW |
820 | case $ac_option in |
821 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
822 | *) ac_optarg=yes ;; | |
823 | esac | |
c906108c SS |
824 | |
825 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
826 | ||
81ecdfbb RW |
827 | case $ac_dashdash$ac_option in |
828 | --) | |
829 | ac_dashdash=yes ;; | |
c906108c SS |
830 | |
831 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
832 | ac_prev=bindir ;; | |
833 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 834 | bindir=$ac_optarg ;; |
c906108c SS |
835 | |
836 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 837 | ac_prev=build_alias ;; |
c906108c | 838 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 839 | build_alias=$ac_optarg ;; |
c906108c SS |
840 | |
841 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
842 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
843 | ac_prev=cache_file ;; | |
844 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
845 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
846 | cache_file=$ac_optarg ;; |
847 | ||
848 | --config-cache | -C) | |
849 | cache_file=config.cache ;; | |
c906108c | 850 | |
81ecdfbb | 851 | -datadir | --datadir | --datadi | --datad) |
c906108c | 852 | ac_prev=datadir ;; |
81ecdfbb | 853 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 854 | datadir=$ac_optarg ;; |
c906108c | 855 | |
81ecdfbb RW |
856 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
857 | | --dataroo | --dataro | --datar) | |
858 | ac_prev=datarootdir ;; | |
859 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
860 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
861 | datarootdir=$ac_optarg ;; | |
862 | ||
c906108c | 863 | -disable-* | --disable-*) |
81ecdfbb | 864 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 865 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
866 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
867 | as_fn_error "invalid feature name: $ac_useropt" | |
868 | ac_useropt_orig=$ac_useropt | |
869 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
870 | case $ac_user_opts in | |
871 | *" | |
872 | "enable_$ac_useropt" | |
873 | "*) ;; | |
874 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
875 | ac_unrecognized_sep=', ';; | |
876 | esac | |
877 | eval enable_$ac_useropt=no ;; | |
878 | ||
879 | -docdir | --docdir | --docdi | --doc | --do) | |
880 | ac_prev=docdir ;; | |
881 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
882 | docdir=$ac_optarg ;; | |
883 | ||
884 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
885 | ac_prev=dvidir ;; | |
886 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
887 | dvidir=$ac_optarg ;; | |
c906108c SS |
888 | |
889 | -enable-* | --enable-*) | |
81ecdfbb | 890 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 891 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
892 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
893 | as_fn_error "invalid feature name: $ac_useropt" | |
894 | ac_useropt_orig=$ac_useropt | |
895 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
896 | case $ac_user_opts in | |
897 | *" | |
898 | "enable_$ac_useropt" | |
899 | "*) ;; | |
900 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
901 | ac_unrecognized_sep=', ';; | |
c906108c | 902 | esac |
81ecdfbb | 903 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
904 | |
905 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
906 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
907 | | --exec | --exe | --ex) | |
908 | ac_prev=exec_prefix ;; | |
909 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
910 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
911 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 912 | exec_prefix=$ac_optarg ;; |
c906108c SS |
913 | |
914 | -gas | --gas | --ga | --g) | |
915 | # Obsolete; use --with-gas. | |
916 | with_gas=yes ;; | |
917 | ||
b7026657 AC |
918 | -help | --help | --hel | --he | -h) |
919 | ac_init_help=long ;; | |
920 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
921 | ac_init_help=recursive ;; | |
922 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
923 | ac_init_help=short ;; | |
c906108c SS |
924 | |
925 | -host | --host | --hos | --ho) | |
b7026657 | 926 | ac_prev=host_alias ;; |
c906108c | 927 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 928 | host_alias=$ac_optarg ;; |
c906108c | 929 | |
81ecdfbb RW |
930 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
931 | ac_prev=htmldir ;; | |
932 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
933 | | --ht=*) | |
934 | htmldir=$ac_optarg ;; | |
935 | ||
c906108c SS |
936 | -includedir | --includedir | --includedi | --included | --include \ |
937 | | --includ | --inclu | --incl | --inc) | |
938 | ac_prev=includedir ;; | |
939 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
940 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 941 | includedir=$ac_optarg ;; |
c906108c SS |
942 | |
943 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
944 | ac_prev=infodir ;; | |
945 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 946 | infodir=$ac_optarg ;; |
c906108c SS |
947 | |
948 | -libdir | --libdir | --libdi | --libd) | |
949 | ac_prev=libdir ;; | |
950 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 951 | libdir=$ac_optarg ;; |
c906108c SS |
952 | |
953 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
954 | | --libexe | --libex | --libe) | |
955 | ac_prev=libexecdir ;; | |
956 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
957 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 958 | libexecdir=$ac_optarg ;; |
c906108c | 959 | |
81ecdfbb RW |
960 | -localedir | --localedir | --localedi | --localed | --locale) |
961 | ac_prev=localedir ;; | |
962 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
963 | localedir=$ac_optarg ;; | |
964 | ||
c906108c | 965 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 966 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
967 | ac_prev=localstatedir ;; |
968 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 969 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 970 | localstatedir=$ac_optarg ;; |
c906108c SS |
971 | |
972 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
973 | ac_prev=mandir ;; | |
974 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 975 | mandir=$ac_optarg ;; |
c906108c SS |
976 | |
977 | -nfp | --nfp | --nf) | |
978 | # Obsolete; use --without-fp. | |
979 | with_fp=no ;; | |
980 | ||
981 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 982 | | --no-cr | --no-c | -n) |
c906108c SS |
983 | no_create=yes ;; |
984 | ||
985 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
986 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
987 | no_recursion=yes ;; | |
988 | ||
989 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
990 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
991 | | --oldin | --oldi | --old | --ol | --o) | |
992 | ac_prev=oldincludedir ;; | |
993 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
994 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
995 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 996 | oldincludedir=$ac_optarg ;; |
c906108c SS |
997 | |
998 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
999 | ac_prev=prefix ;; | |
1000 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1001 | prefix=$ac_optarg ;; |
c906108c SS |
1002 | |
1003 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1004 | | --program-pre | --program-pr | --program-p) | |
1005 | ac_prev=program_prefix ;; | |
1006 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1007 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1008 | program_prefix=$ac_optarg ;; |
c906108c SS |
1009 | |
1010 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1011 | | --program-suf | --program-su | --program-s) | |
1012 | ac_prev=program_suffix ;; | |
1013 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1014 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1015 | program_suffix=$ac_optarg ;; |
c906108c SS |
1016 | |
1017 | -program-transform-name | --program-transform-name \ | |
1018 | | --program-transform-nam | --program-transform-na \ | |
1019 | | --program-transform-n | --program-transform- \ | |
1020 | | --program-transform | --program-transfor \ | |
1021 | | --program-transfo | --program-transf \ | |
1022 | | --program-trans | --program-tran \ | |
1023 | | --progr-tra | --program-tr | --program-t) | |
1024 | ac_prev=program_transform_name ;; | |
1025 | -program-transform-name=* | --program-transform-name=* \ | |
1026 | | --program-transform-nam=* | --program-transform-na=* \ | |
1027 | | --program-transform-n=* | --program-transform-=* \ | |
1028 | | --program-transform=* | --program-transfor=* \ | |
1029 | | --program-transfo=* | --program-transf=* \ | |
1030 | | --program-trans=* | --program-tran=* \ | |
1031 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1032 | program_transform_name=$ac_optarg ;; |
c906108c | 1033 | |
81ecdfbb RW |
1034 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1035 | ac_prev=pdfdir ;; | |
1036 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1037 | pdfdir=$ac_optarg ;; | |
1038 | ||
1039 | -psdir | --psdir | --psdi | --psd | --ps) | |
1040 | ac_prev=psdir ;; | |
1041 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1042 | psdir=$ac_optarg ;; | |
1043 | ||
c906108c SS |
1044 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1045 | | -silent | --silent | --silen | --sile | --sil) | |
1046 | silent=yes ;; | |
1047 | ||
1048 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1049 | ac_prev=sbindir ;; | |
1050 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1051 | | --sbi=* | --sb=*) | |
b7026657 | 1052 | sbindir=$ac_optarg ;; |
c906108c SS |
1053 | |
1054 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1055 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1056 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1057 | | --sha | --sh) | |
1058 | ac_prev=sharedstatedir ;; | |
1059 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1060 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1061 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1062 | | --sha=* | --sh=*) | |
b7026657 | 1063 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1064 | |
1065 | -site | --site | --sit) | |
1066 | ac_prev=site ;; | |
1067 | -site=* | --site=* | --sit=*) | |
b7026657 | 1068 | site=$ac_optarg ;; |
e514a9d6 | 1069 | |
c906108c SS |
1070 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1071 | ac_prev=srcdir ;; | |
1072 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1073 | srcdir=$ac_optarg ;; |
c906108c SS |
1074 | |
1075 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1076 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1077 | ac_prev=sysconfdir ;; | |
1078 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1079 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1080 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1081 | |
1082 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1083 | ac_prev=target_alias ;; |
c906108c | 1084 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1085 | target_alias=$ac_optarg ;; |
c906108c SS |
1086 | |
1087 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1088 | verbose=yes ;; | |
1089 | ||
b7026657 AC |
1090 | -version | --version | --versio | --versi | --vers | -V) |
1091 | ac_init_version=: ;; | |
c906108c SS |
1092 | |
1093 | -with-* | --with-*) | |
81ecdfbb | 1094 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1095 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1096 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1097 | as_fn_error "invalid package name: $ac_useropt" | |
1098 | ac_useropt_orig=$ac_useropt | |
1099 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1100 | case $ac_user_opts in | |
1101 | *" | |
1102 | "with_$ac_useropt" | |
1103 | "*) ;; | |
1104 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1105 | ac_unrecognized_sep=', ';; | |
c906108c | 1106 | esac |
81ecdfbb | 1107 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1108 | |
1109 | -without-* | --without-*) | |
81ecdfbb | 1110 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1111 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1112 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1113 | as_fn_error "invalid package name: $ac_useropt" | |
1114 | ac_useropt_orig=$ac_useropt | |
1115 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1116 | case $ac_user_opts in | |
1117 | *" | |
1118 | "with_$ac_useropt" | |
1119 | "*) ;; | |
1120 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1121 | ac_unrecognized_sep=', ';; | |
1122 | esac | |
1123 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1124 | |
1125 | --x) | |
1126 | # Obsolete; use --with-x. | |
1127 | with_x=yes ;; | |
1128 | ||
1129 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1130 | | --x-incl | --x-inc | --x-in | --x-i) | |
1131 | ac_prev=x_includes ;; | |
1132 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1133 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1134 | x_includes=$ac_optarg ;; |
c906108c SS |
1135 | |
1136 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1137 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1138 | ac_prev=x_libraries ;; | |
1139 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1140 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1141 | x_libraries=$ac_optarg ;; |
c906108c | 1142 | |
81ecdfbb RW |
1143 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1144 | Try \`$0 --help' for more information." | |
c906108c SS |
1145 | ;; |
1146 | ||
b7026657 AC |
1147 | *=*) |
1148 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1149 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1150 | case $ac_envvar in #( |
1151 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1152 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1153 | esac | |
1154 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1155 | export $ac_envvar ;; |
1156 | ||
c906108c | 1157 | *) |
b7026657 | 1158 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1159 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1160 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1161 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b7026657 | 1162 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
c906108c SS |
1163 | ;; |
1164 | ||
1165 | esac | |
1166 | done | |
1167 | ||
1168 | if test -n "$ac_prev"; then | |
b7026657 | 1169 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1170 | as_fn_error "missing argument to $ac_option" |
c906108c | 1171 | fi |
c906108c | 1172 | |
81ecdfbb RW |
1173 | if test -n "$ac_unrecognized_opts"; then |
1174 | case $enable_option_checking in | |
1175 | no) ;; | |
1176 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1177 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
b7026657 | 1178 | esac |
81ecdfbb | 1179 | fi |
c906108c | 1180 | |
81ecdfbb RW |
1181 | # Check all directory arguments for consistency. |
1182 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1183 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1184 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1185 | libdir localedir mandir | |
c906108c | 1186 | do |
81ecdfbb RW |
1187 | eval ac_val=\$$ac_var |
1188 | # Remove trailing slashes. | |
1189 | case $ac_val in | |
1190 | */ ) | |
1191 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1192 | eval $ac_var=\$ac_val;; | |
1193 | esac | |
1194 | # Be sure to have absolute directory names. | |
b7026657 | 1195 | case $ac_val in |
81ecdfbb RW |
1196 | [\\/$]* | ?:[\\/]* ) continue;; |
1197 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1198 | esac |
81ecdfbb | 1199 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1200 | done |
1201 | ||
b7026657 AC |
1202 | # There might be people who depend on the old broken behavior: `$host' |
1203 | # used to hold the argument of --host etc. | |
1204 | # FIXME: To remove some day. | |
1205 | build=$build_alias | |
1206 | host=$host_alias | |
1207 | target=$target_alias | |
1208 | ||
1209 | # FIXME: To remove some day. | |
1210 | if test "x$host_alias" != x; then | |
1211 | if test "x$build_alias" = x; then | |
1212 | cross_compiling=maybe | |
81ecdfbb | 1213 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
b7026657 AC |
1214 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1215 | elif test "x$build_alias" != "x$host_alias"; then | |
1216 | cross_compiling=yes | |
1217 | fi | |
1218 | fi | |
c906108c | 1219 | |
b7026657 AC |
1220 | ac_tool_prefix= |
1221 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1222 | ||
1223 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1224 | |
c906108c | 1225 | |
81ecdfbb RW |
1226 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1227 | ac_ls_di=`ls -di .` && | |
1228 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1229 | as_fn_error "working directory cannot be determined" | |
1230 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1231 | as_fn_error "pwd does not report name of working directory" | |
1232 | ||
1233 | ||
c906108c SS |
1234 | # Find the source files, if location was not specified. |
1235 | if test -z "$srcdir"; then | |
1236 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1237 | # Try the directory containing this script, then the parent directory. |
1238 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1239 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1240 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1241 | X"$as_myself" : 'X\(//\)$' \| \ | |
1242 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1243 | $as_echo X"$as_myself" | | |
1244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1245 | s//\1/ | |
1246 | q | |
1247 | } | |
1248 | /^X\(\/\/\)[^/].*/{ | |
1249 | s//\1/ | |
1250 | q | |
1251 | } | |
1252 | /^X\(\/\/\)$/{ | |
1253 | s//\1/ | |
1254 | q | |
1255 | } | |
1256 | /^X\(\/\).*/{ | |
1257 | s//\1/ | |
1258 | q | |
1259 | } | |
1260 | s/.*/./; q'` | |
c906108c | 1261 | srcdir=$ac_confdir |
81ecdfbb | 1262 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1263 | srcdir=.. |
1264 | fi | |
1265 | else | |
1266 | ac_srcdir_defaulted=no | |
1267 | fi | |
81ecdfbb RW |
1268 | if test ! -r "$srcdir/$ac_unique_file"; then |
1269 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1270 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1271 | fi | |
1272 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1273 | ac_abs_confdir=`( | |
1274 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1275 | pwd)` | |
1276 | # When building in place, set srcdir=. | |
1277 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1278 | srcdir=. | |
1279 | fi | |
1280 | # Remove unnecessary trailing slashes from srcdir. | |
1281 | # Double slashes in file names in object file debugging info | |
1282 | # mess up M-x gdb in Emacs. | |
1283 | case $srcdir in | |
1284 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1285 | esac | |
1286 | for ac_var in $ac_precious_vars; do | |
1287 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1288 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1289 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1290 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1291 | done | |
c906108c | 1292 | |
b7026657 AC |
1293 | # |
1294 | # Report the --help message. | |
1295 | # | |
1296 | if test "$ac_init_help" = "long"; then | |
1297 | # Omit some internal or obsolete options to make the list less imposing. | |
1298 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1299 | cat <<_ACEOF | |
1300 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 1301 | |
b7026657 | 1302 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 1303 | |
b7026657 AC |
1304 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1305 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 1306 | |
b7026657 | 1307 | Defaults for the options are specified in brackets. |
c906108c | 1308 | |
b7026657 AC |
1309 | Configuration: |
1310 | -h, --help display this help and exit | |
1311 | --help=short display options specific to this package | |
1312 | --help=recursive display the short help of all the included packages | |
1313 | -V, --version display version information and exit | |
1314 | -q, --quiet, --silent do not print \`checking...' messages | |
1315 | --cache-file=FILE cache test results in FILE [disabled] | |
1316 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1317 | -n, --no-create do not create output files | |
1318 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1319 | ||
b7026657 AC |
1320 | Installation directories: |
1321 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1322 | [$ac_default_prefix] |
b7026657 | 1323 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1324 | [PREFIX] |
c906108c | 1325 | |
b7026657 AC |
1326 | By default, \`make install' will install all the files in |
1327 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1328 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1329 | for instance \`--prefix=\$HOME'. | |
c906108c | 1330 | |
b7026657 AC |
1331 | For better control, use the options below. |
1332 | ||
1333 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1334 | --bindir=DIR user executables [EPREFIX/bin] |
1335 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1336 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1337 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1338 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1339 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1340 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1341 | --includedir=DIR C header files [PREFIX/include] | |
1342 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1343 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1344 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1345 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1346 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1347 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1348 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1349 | --htmldir=DIR html documentation [DOCDIR] | |
1350 | --dvidir=DIR dvi documentation [DOCDIR] | |
1351 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1352 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1353 | _ACEOF |
1354 | ||
1355 | cat <<\_ACEOF | |
1356 | ||
1357 | Program names: | |
1358 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1359 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1360 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1361 | ||
1362 | X features: | |
1363 | --x-includes=DIR X include files are in DIR | |
1364 | --x-libraries=DIR X library files are in DIR | |
1365 | ||
1366 | System types: | |
1367 | --build=BUILD configure for building on BUILD [guessed] | |
1368 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1369 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1370 | _ACEOF | |
c906108c | 1371 | fi |
b7026657 AC |
1372 | |
1373 | if test -n "$ac_init_help"; then | |
1374 | ||
1375 | cat <<\_ACEOF | |
1376 | ||
1377 | Optional Features: | |
81ecdfbb | 1378 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1379 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1380 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b7026657 AC |
1381 | --enable-maintainer-mode Enable developer functionality. |
1382 | --enable-sim-bswap Use Host specific BSWAP instruction. | |
1383 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
1384 | --enable-sim-debug=opts Enable debugging flags | |
1385 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
1386 | --enable-sim-trace=opts Enable tracing flags | |
1387 | --enable-sim-profile=opts Enable profiling flags | |
1388 | --enable-sim-inline=inlines Specify which functions should be inlined. | |
1389 | --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses. | |
1390 | --enable-sim-hostendian=end Specify host byte endian orientation. | |
2232061b MF |
1391 | --enable-werror treat compile warnings as errors |
1392 | --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1393 | --enable-sim-build-warnings | |
1394 | enable SIM specific build-time compiler warnings if | |
1395 | gcc is used | |
b7026657 AC |
1396 | --enable-sim-reserved-bits Specify whether to check reserved bits in instruction. |
1397 | --enable-sim-endian=endian Specify target byte endian orientation. | |
1398 | --enable-sim-bitsize=N Specify target bitsize (32 or 64). | |
1399 | --enable-sim-float Specify that the target processor has floating point hardware. | |
1400 | --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp}). | |
1401 | --enable-sim-hardware=LIST Specify the hardware to be included in the build. | |
1402 | ||
1403 | Optional Packages: | |
1404 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1405 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3725885a | 1406 | --with-zlib include zlib support (auto/yes/no) default=auto |
6efef468 JM |
1407 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" |
1408 | --with-bugurl=URL Direct users to URL to report a bug | |
b7026657 AC |
1409 | --with-x use the X Window System |
1410 | ||
1411 | Some influential environment variables: | |
1412 | CC C compiler command | |
1413 | CFLAGS C compiler flags | |
1414 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1415 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1416 | LIBS libraries to pass to the linker, e.g. -l<library> |
1417 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1418 | you have headers in a nonstandard directory <include dir> | |
b7026657 | 1419 | CPP C preprocessor |
81ecdfbb | 1420 | XMKMF Path to xmkmf, Makefile generator for X Window System |
b7026657 AC |
1421 | |
1422 | Use these variables to override the choices made by `configure' or to help | |
1423 | it to find libraries and programs with nonstandard names/locations. | |
1424 | ||
81ecdfbb | 1425 | Report bugs to the package provider. |
b7026657 | 1426 | _ACEOF |
81ecdfbb | 1427 | ac_status=$? |
c906108c SS |
1428 | fi |
1429 | ||
b7026657 AC |
1430 | if test "$ac_init_help" = "recursive"; then |
1431 | # If there are subdirs, report their specific --help. | |
b7026657 | 1432 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1433 | test -d "$ac_dir" || |
1434 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1435 | continue | |
b7026657 | 1436 | ac_builddir=. |
c906108c | 1437 | |
81ecdfbb RW |
1438 | case "$ac_dir" in |
1439 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1440 | *) | |
1441 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1442 | # A ".." for each directory in $ac_dir_suffix. | |
1443 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1444 | case $ac_top_builddir_sub in | |
1445 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1446 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1447 | esac ;; | |
1448 | esac | |
1449 | ac_abs_top_builddir=$ac_pwd | |
1450 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1451 | # for backward compatibility: | |
1452 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 1453 | |
b7026657 | 1454 | case $srcdir in |
81ecdfbb | 1455 | .) # We are building in place. |
b7026657 | 1456 | ac_srcdir=. |
81ecdfbb RW |
1457 | ac_top_srcdir=$ac_top_builddir_sub |
1458 | ac_abs_top_srcdir=$ac_pwd ;; | |
1459 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 1460 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1461 | ac_top_srcdir=$srcdir |
1462 | ac_abs_top_srcdir=$srcdir ;; | |
1463 | *) # Relative name. | |
1464 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1465 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1466 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 1467 | esac |
81ecdfbb RW |
1468 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1469 | ||
1470 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1471 | # Check for guested configure. | |
1472 | if test -f "$ac_srcdir/configure.gnu"; then | |
1473 | echo && | |
1474 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1475 | elif test -f "$ac_srcdir/configure"; then | |
1476 | echo && | |
1477 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b7026657 | 1478 | else |
81ecdfbb RW |
1479 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1480 | fi || ac_status=$? | |
1481 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
1482 | done |
1483 | fi | |
1484 | ||
81ecdfbb | 1485 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
1486 | if $ac_init_version; then |
1487 | cat <<\_ACEOF | |
81ecdfbb RW |
1488 | configure |
1489 | generated by GNU Autoconf 2.64 | |
b7026657 | 1490 | |
81ecdfbb | 1491 | Copyright (C) 2009 Free Software Foundation, Inc. |
b7026657 AC |
1492 | This configure script is free software; the Free Software Foundation |
1493 | gives unlimited permission to copy, distribute and modify it. | |
1494 | _ACEOF | |
81ecdfbb | 1495 | exit |
b7026657 | 1496 | fi |
b7026657 | 1497 | |
81ecdfbb RW |
1498 | ## ------------------------ ## |
1499 | ## Autoconf initialization. ## | |
1500 | ## ------------------------ ## | |
b7026657 | 1501 | |
81ecdfbb RW |
1502 | # ac_fn_c_try_compile LINENO |
1503 | # -------------------------- | |
1504 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1505 | ac_fn_c_try_compile () | |
b7026657 | 1506 | { |
81ecdfbb RW |
1507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1508 | rm -f conftest.$ac_objext | |
1509 | if { { ac_try="$ac_compile" | |
1510 | case "(($ac_try" in | |
1511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1512 | *) ac_try_echo=$ac_try;; | |
1513 | esac | |
1514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1515 | $as_echo "$ac_try_echo"; } >&5 | |
1516 | (eval "$ac_compile") 2>conftest.err | |
1517 | ac_status=$? | |
1518 | if test -s conftest.err; then | |
1519 | grep -v '^ *+' conftest.err >conftest.er1 | |
1520 | cat conftest.er1 >&5 | |
1521 | mv -f conftest.er1 conftest.err | |
1522 | fi | |
1523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1524 | test $ac_status = 0; } && { | |
1525 | test -z "$ac_c_werror_flag" || | |
1526 | test ! -s conftest.err | |
1527 | } && test -s conftest.$ac_objext; then : | |
1528 | ac_retval=0 | |
1529 | else | |
1530 | $as_echo "$as_me: failed program was:" >&5 | |
1531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1532 | |
81ecdfbb RW |
1533 | ac_retval=1 |
1534 | fi | |
1535 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1536 | return $ac_retval | |
b7026657 | 1537 | |
81ecdfbb | 1538 | } # ac_fn_c_try_compile |
b7026657 | 1539 | |
81ecdfbb RW |
1540 | # ac_fn_c_try_cpp LINENO |
1541 | # ---------------------- | |
1542 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1543 | ac_fn_c_try_cpp () | |
1544 | { | |
1545 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1546 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1547 | case "(($ac_try" in | |
1548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1549 | *) ac_try_echo=$ac_try;; | |
1550 | esac | |
1551 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1552 | $as_echo "$ac_try_echo"; } >&5 | |
1553 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1554 | ac_status=$? | |
1555 | if test -s conftest.err; then | |
1556 | grep -v '^ *+' conftest.err >conftest.er1 | |
1557 | cat conftest.er1 >&5 | |
1558 | mv -f conftest.er1 conftest.err | |
1559 | fi | |
1560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1561 | test $ac_status = 0; } >/dev/null && { | |
1562 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1563 | test ! -s conftest.err | |
1564 | }; then : | |
1565 | ac_retval=0 | |
1566 | else | |
1567 | $as_echo "$as_me: failed program was:" >&5 | |
1568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1569 | |
81ecdfbb RW |
1570 | ac_retval=1 |
1571 | fi | |
1572 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1573 | return $ac_retval | |
b7026657 | 1574 | |
81ecdfbb RW |
1575 | } # ac_fn_c_try_cpp |
1576 | ||
1577 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1578 | # ------------------------------------------------------- | |
1579 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1580 | # the include files in INCLUDES and setting the cache variable VAR | |
1581 | # accordingly. | |
1582 | ac_fn_c_check_header_mongrel () | |
1583 | { | |
1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1585 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1587 | $as_echo_n "checking for $2... " >&6; } | |
1588 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1589 | $as_echo_n "(cached) " >&6 | |
1590 | fi | |
1591 | eval ac_res=\$$3 | |
1592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1593 | $as_echo "$ac_res" >&6; } | |
1594 | else | |
1595 | # Is the header compilable? | |
1596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1597 | $as_echo_n "checking $2 usability... " >&6; } | |
1598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1599 | /* end confdefs.h. */ | |
1600 | $4 | |
1601 | #include <$2> | |
1602 | _ACEOF | |
1603 | if ac_fn_c_try_compile "$LINENO"; then : | |
1604 | ac_header_compiler=yes | |
1605 | else | |
1606 | ac_header_compiler=no | |
1607 | fi | |
1608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1610 | $as_echo "$ac_header_compiler" >&6; } | |
1611 | ||
1612 | # Is the header present? | |
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1614 | $as_echo_n "checking $2 presence... " >&6; } | |
1615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1616 | /* end confdefs.h. */ | |
1617 | #include <$2> | |
1618 | _ACEOF | |
1619 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1620 | ac_header_preproc=yes | |
1621 | else | |
1622 | ac_header_preproc=no | |
1623 | fi | |
1624 | rm -f conftest.err conftest.$ac_ext | |
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1626 | $as_echo "$ac_header_preproc" >&6; } | |
1627 | ||
1628 | # So? What about this header? | |
1629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1630 | yes:no: ) | |
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1632 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1634 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1635 | ;; | |
1636 | no:yes:* ) | |
1637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1638 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1640 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1642 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1643 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1644 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1646 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1647 | ;; | |
1648 | esac | |
1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1650 | $as_echo_n "checking for $2... " >&6; } | |
1651 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1652 | $as_echo_n "(cached) " >&6 | |
1653 | else | |
1654 | eval "$3=\$ac_header_compiler" | |
1655 | fi | |
1656 | eval ac_res=\$$3 | |
1657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1658 | $as_echo "$ac_res" >&6; } | |
1659 | fi | |
1660 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1661 | ||
1662 | } # ac_fn_c_check_header_mongrel | |
1663 | ||
1664 | # ac_fn_c_try_run LINENO | |
1665 | # ---------------------- | |
1666 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1667 | # that executables *can* be run. | |
1668 | ac_fn_c_try_run () | |
1669 | { | |
1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1671 | if { { ac_try="$ac_link" | |
1672 | case "(($ac_try" in | |
1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1674 | *) ac_try_echo=$ac_try;; | |
1675 | esac | |
1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1677 | $as_echo "$ac_try_echo"; } >&5 | |
1678 | (eval "$ac_link") 2>&5 | |
1679 | ac_status=$? | |
1680 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1681 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1682 | { { case "(($ac_try" in | |
1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1684 | *) ac_try_echo=$ac_try;; | |
1685 | esac | |
1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1687 | $as_echo "$ac_try_echo"; } >&5 | |
1688 | (eval "$ac_try") 2>&5 | |
1689 | ac_status=$? | |
1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1691 | test $ac_status = 0; }; }; then : | |
1692 | ac_retval=0 | |
1693 | else | |
1694 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1695 | $as_echo "$as_me: failed program was:" >&5 | |
1696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1697 | ||
1698 | ac_retval=$ac_status | |
1699 | fi | |
1700 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1701 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1702 | return $ac_retval | |
1703 | ||
1704 | } # ac_fn_c_try_run | |
1705 | ||
1706 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1707 | # ------------------------------------------------------- | |
1708 | # Tests whether HEADER exists and can be compiled using the include files in | |
1709 | # INCLUDES, setting the cache variable VAR accordingly. | |
1710 | ac_fn_c_check_header_compile () | |
1711 | { | |
1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1714 | $as_echo_n "checking for $2... " >&6; } | |
1715 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1716 | $as_echo_n "(cached) " >&6 | |
1717 | else | |
1718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1719 | /* end confdefs.h. */ | |
1720 | $4 | |
1721 | #include <$2> | |
1722 | _ACEOF | |
1723 | if ac_fn_c_try_compile "$LINENO"; then : | |
1724 | eval "$3=yes" | |
1725 | else | |
1726 | eval "$3=no" | |
1727 | fi | |
1728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1729 | fi | |
1730 | eval ac_res=\$$3 | |
1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1732 | $as_echo "$ac_res" >&6; } | |
1733 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1734 | ||
1735 | } # ac_fn_c_check_header_compile | |
1736 | ||
1737 | # ac_fn_c_try_link LINENO | |
1738 | # ----------------------- | |
1739 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1740 | ac_fn_c_try_link () | |
1741 | { | |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1744 | if { { ac_try="$ac_link" | |
1745 | case "(($ac_try" in | |
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1747 | *) ac_try_echo=$ac_try;; | |
1748 | esac | |
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1750 | $as_echo "$ac_try_echo"; } >&5 | |
1751 | (eval "$ac_link") 2>conftest.err | |
1752 | ac_status=$? | |
1753 | if test -s conftest.err; then | |
1754 | grep -v '^ *+' conftest.err >conftest.er1 | |
1755 | cat conftest.er1 >&5 | |
1756 | mv -f conftest.er1 conftest.err | |
1757 | fi | |
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1759 | test $ac_status = 0; } && { | |
1760 | test -z "$ac_c_werror_flag" || | |
1761 | test ! -s conftest.err | |
1762 | } && test -s conftest$ac_exeext && { | |
1763 | test "$cross_compiling" = yes || | |
1764 | $as_test_x conftest$ac_exeext | |
1765 | }; then : | |
1766 | ac_retval=0 | |
1767 | else | |
1768 | $as_echo "$as_me: failed program was:" >&5 | |
1769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1770 | ||
1771 | ac_retval=1 | |
1772 | fi | |
1773 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1774 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1775 | # interfere with the next link command; also delete a directory that is | |
1776 | # left behind by Apple's compiler. We do this before executing the actions. | |
1777 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1778 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1779 | return $ac_retval | |
1780 | ||
1781 | } # ac_fn_c_try_link | |
1782 | ||
1783 | # ac_fn_c_check_func LINENO FUNC VAR | |
1784 | # ---------------------------------- | |
1785 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1786 | ac_fn_c_check_func () | |
1787 | { | |
1788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1790 | $as_echo_n "checking for $2... " >&6; } | |
1791 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1792 | $as_echo_n "(cached) " >&6 | |
1793 | else | |
1794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1795 | /* end confdefs.h. */ | |
1796 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1798 | #define $2 innocuous_$2 | |
1799 | ||
1800 | /* System header to define __stub macros and hopefully few prototypes, | |
1801 | which can conflict with char $2 (); below. | |
1802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1803 | <limits.h> exists even on freestanding compilers. */ | |
1804 | ||
1805 | #ifdef __STDC__ | |
1806 | # include <limits.h> | |
1807 | #else | |
1808 | # include <assert.h> | |
1809 | #endif | |
1810 | ||
1811 | #undef $2 | |
1812 | ||
1813 | /* Override any GCC internal prototype to avoid an error. | |
1814 | Use char because int might match the return type of a GCC | |
1815 | builtin and then its argument prototype would still apply. */ | |
1816 | #ifdef __cplusplus | |
1817 | extern "C" | |
1818 | #endif | |
1819 | char $2 (); | |
1820 | /* The GNU C library defines this for functions which it implements | |
1821 | to always fail with ENOSYS. Some functions are actually named | |
1822 | something starting with __ and the normal name is an alias. */ | |
1823 | #if defined __stub_$2 || defined __stub___$2 | |
1824 | choke me | |
1825 | #endif | |
1826 | ||
1827 | int | |
1828 | main () | |
1829 | { | |
1830 | return $2 (); | |
1831 | ; | |
1832 | return 0; | |
1833 | } | |
1834 | _ACEOF | |
1835 | if ac_fn_c_try_link "$LINENO"; then : | |
1836 | eval "$3=yes" | |
1837 | else | |
1838 | eval "$3=no" | |
1839 | fi | |
1840 | rm -f core conftest.err conftest.$ac_objext \ | |
1841 | conftest$ac_exeext conftest.$ac_ext | |
1842 | fi | |
1843 | eval ac_res=\$$3 | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1845 | $as_echo "$ac_res" >&6; } | |
1846 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1847 | ||
1848 | } # ac_fn_c_check_func | |
1849 | cat >config.log <<_ACEOF | |
1850 | This file contains any messages produced by compilers while | |
1851 | running configure, to aid debugging if configure makes a mistake. | |
1852 | ||
1853 | It was created by $as_me, which was | |
1854 | generated by GNU Autoconf 2.64. Invocation command line was | |
1855 | ||
1856 | $ $0 $@ | |
1857 | ||
1858 | _ACEOF | |
1859 | exec 5>>config.log | |
1860 | { | |
1861 | cat <<_ASUNAME | |
1862 | ## --------- ## | |
1863 | ## Platform. ## | |
1864 | ## --------- ## | |
1865 | ||
1866 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1867 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1868 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1869 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1870 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1871 | ||
1872 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1873 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1874 | ||
1875 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1876 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1877 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1878 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1879 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1880 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1881 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1882 | ||
1883 | _ASUNAME | |
1884 | ||
1885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1886 | for as_dir in $PATH | |
1887 | do | |
1888 | IFS=$as_save_IFS | |
1889 | test -z "$as_dir" && as_dir=. | |
1890 | $as_echo "PATH: $as_dir" | |
1891 | done | |
1892 | IFS=$as_save_IFS | |
1893 | ||
1894 | } >&5 | |
1895 | ||
1896 | cat >&5 <<_ACEOF | |
b7026657 AC |
1897 | |
1898 | ||
1899 | ## ----------- ## | |
1900 | ## Core tests. ## | |
1901 | ## ----------- ## | |
1902 | ||
1903 | _ACEOF | |
1904 | ||
1905 | ||
1906 | # Keep a trace of the command line. | |
1907 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1908 | # Strip out --silent because we don't want to record it for future runs. | |
1909 | # Also quote any args containing shell meta-characters. | |
1910 | # Make two passes to allow for proper duplicate-argument suppression. | |
1911 | ac_configure_args= | |
1912 | ac_configure_args0= | |
1913 | ac_configure_args1= | |
b7026657 AC |
1914 | ac_must_keep_next=false |
1915 | for ac_pass in 1 2 | |
1916 | do | |
1917 | for ac_arg | |
1918 | do | |
1919 | case $ac_arg in | |
1920 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1921 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1922 | | -silent | --silent | --silen | --sile | --sil) | |
1923 | continue ;; | |
81ecdfbb RW |
1924 | *\'*) |
1925 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
1926 | esac |
1927 | case $ac_pass in | |
81ecdfbb | 1928 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 1929 | 2) |
81ecdfbb | 1930 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
1931 | if test $ac_must_keep_next = true; then |
1932 | ac_must_keep_next=false # Got value, back to normal. | |
1933 | else | |
1934 | case $ac_arg in | |
1935 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1936 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1937 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1938 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1939 | case "$ac_configure_args0 " in | |
1940 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1941 | esac | |
1942 | ;; | |
1943 | -* ) ac_must_keep_next=true ;; | |
1944 | esac | |
1945 | fi | |
81ecdfbb | 1946 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
1947 | ;; |
1948 | esac | |
1949 | done | |
1950 | done | |
81ecdfbb RW |
1951 | { ac_configure_args0=; unset ac_configure_args0;} |
1952 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
1953 | |
1954 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1955 | # config.log. We remove comments because anyway the quotes in there | |
1956 | # would cause problems or look ugly. | |
81ecdfbb RW |
1957 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1958 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
1959 | trap 'exit_status=$? |
1960 | # Save into config.log some information that might help in debugging. | |
1961 | { | |
1962 | echo | |
1963 | ||
1964 | cat <<\_ASBOX | |
1965 | ## ---------------- ## | |
1966 | ## Cache variables. ## | |
1967 | ## ---------------- ## | |
1968 | _ASBOX | |
1969 | echo | |
1970 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1971 | ( |
1972 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1973 | eval ac_val=\$$ac_var | |
1974 | case $ac_val in #( | |
1975 | *${as_nl}*) | |
1976 | case $ac_var in #( | |
1977 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1978 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1979 | esac | |
1980 | case $ac_var in #( | |
1981 | _ | IFS | as_nl) ;; #( | |
1982 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1983 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1984 | esac ;; | |
1985 | esac | |
1986 | done | |
b7026657 | 1987 | (set) 2>&1 | |
81ecdfbb RW |
1988 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1989 | *${as_nl}ac_space=\ *) | |
b7026657 | 1990 | sed -n \ |
81ecdfbb RW |
1991 | "s/'\''/'\''\\\\'\'''\''/g; |
1992 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1993 | ;; #( | |
b7026657 | 1994 | *) |
81ecdfbb | 1995 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 1996 | ;; |
81ecdfbb RW |
1997 | esac | |
1998 | sort | |
1999 | ) | |
b7026657 AC |
2000 | echo |
2001 | ||
2002 | cat <<\_ASBOX | |
2003 | ## ----------------- ## | |
2004 | ## Output variables. ## | |
2005 | ## ----------------- ## | |
2006 | _ASBOX | |
2007 | echo | |
2008 | for ac_var in $ac_subst_vars | |
2009 | do | |
81ecdfbb RW |
2010 | eval ac_val=\$$ac_var |
2011 | case $ac_val in | |
2012 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2013 | esac | |
2014 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2015 | done | sort |
2016 | echo | |
2017 | ||
2018 | if test -n "$ac_subst_files"; then | |
2019 | cat <<\_ASBOX | |
81ecdfbb RW |
2020 | ## ------------------- ## |
2021 | ## File substitutions. ## | |
2022 | ## ------------------- ## | |
b7026657 AC |
2023 | _ASBOX |
2024 | echo | |
2025 | for ac_var in $ac_subst_files | |
2026 | do | |
81ecdfbb RW |
2027 | eval ac_val=\$$ac_var |
2028 | case $ac_val in | |
2029 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2030 | esac | |
2031 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2032 | done | sort |
2033 | echo | |
2034 | fi | |
2035 | ||
2036 | if test -s confdefs.h; then | |
2037 | cat <<\_ASBOX | |
2038 | ## ----------- ## | |
2039 | ## confdefs.h. ## | |
2040 | ## ----------- ## | |
2041 | _ASBOX | |
2042 | echo | |
81ecdfbb | 2043 | cat confdefs.h |
b7026657 AC |
2044 | echo |
2045 | fi | |
2046 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2047 | $as_echo "$as_me: caught signal $ac_signal" |
2048 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2049 | } >&5 |
81ecdfbb RW |
2050 | rm -f core *.core core.conftest.* && |
2051 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2052 | exit $exit_status |
81ecdfbb | 2053 | ' 0 |
b7026657 | 2054 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2055 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2056 | done |
2057 | ac_signal=0 | |
2058 | ||
2059 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2060 | rm -f -r conftest* confdefs.h |
2061 | ||
2062 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2063 | |
2064 | # Predefined preprocessor variables. | |
2065 | ||
2066 | cat >>confdefs.h <<_ACEOF | |
2067 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2068 | _ACEOF | |
2069 | ||
b7026657 AC |
2070 | cat >>confdefs.h <<_ACEOF |
2071 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2072 | _ACEOF | |
2073 | ||
b7026657 AC |
2074 | cat >>confdefs.h <<_ACEOF |
2075 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2076 | _ACEOF | |
2077 | ||
b7026657 AC |
2078 | cat >>confdefs.h <<_ACEOF |
2079 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2080 | _ACEOF | |
2081 | ||
b7026657 AC |
2082 | cat >>confdefs.h <<_ACEOF |
2083 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2084 | _ACEOF | |
2085 | ||
81ecdfbb RW |
2086 | cat >>confdefs.h <<_ACEOF |
2087 | #define PACKAGE_URL "$PACKAGE_URL" | |
2088 | _ACEOF | |
2089 | ||
b7026657 AC |
2090 | |
2091 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2092 | # Prefer an explicitly selected file to automatically selected ones. |
2093 | ac_site_file1=NONE | |
2094 | ac_site_file2=NONE | |
2095 | if test -n "$CONFIG_SITE"; then | |
2096 | ac_site_file1=$CONFIG_SITE | |
2097 | elif test "x$prefix" != xNONE; then | |
2098 | ac_site_file1=$prefix/share/config.site | |
2099 | ac_site_file2=$prefix/etc/config.site | |
2100 | else | |
2101 | ac_site_file1=$ac_default_prefix/share/config.site | |
2102 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2103 | fi | |
2104 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2105 | do | |
2106 | test "x$ac_site_file" = xNONE && continue | |
b7026657 | 2107 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2109 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 AC |
2110 | sed 's/^/| /' "$ac_site_file" >&5 |
2111 | . "$ac_site_file" | |
2112 | fi | |
2113 | done | |
2114 | ||
2115 | if test -r "$cache_file"; then | |
2116 | # Some versions of bash will fail to source /dev/null (special | |
2117 | # files actually), so we avoid doing that. | |
2118 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2120 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2121 | case $cache_file in |
81ecdfbb RW |
2122 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2123 | *) . "./$cache_file";; | |
b7026657 AC |
2124 | esac |
2125 | fi | |
c906108c | 2126 | else |
81ecdfbb RW |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2128 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 AC |
2129 | >$cache_file |
2130 | fi | |
2131 | ||
2132 | # Check that the precious variables saved in the cache have kept the same | |
2133 | # value. | |
2134 | ac_cache_corrupted=false | |
81ecdfbb | 2135 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2136 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2137 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2138 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2139 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2140 | case $ac_old_set,$ac_new_set in |
2141 | set,) | |
81ecdfbb RW |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2143 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2144 | ac_cache_corrupted=: ;; |
2145 | ,set) | |
81ecdfbb RW |
2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2147 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2148 | ac_cache_corrupted=: ;; |
2149 | ,);; | |
2150 | *) | |
2151 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2152 | # differences in whitespace do not lead to failure. |
2153 | ac_old_val_w=`echo x $ac_old_val` | |
2154 | ac_new_val_w=`echo x $ac_new_val` | |
2155 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2157 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2158 | ac_cache_corrupted=: | |
2159 | else | |
2160 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2161 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2162 | eval $ac_var=\$ac_old_val | |
2163 | fi | |
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2165 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2167 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
2168 | fi;; |
2169 | esac | |
2170 | # Pass precious variables to config.status. | |
2171 | if test "$ac_new_set" = set; then | |
2172 | case $ac_new_val in | |
81ecdfbb | 2173 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
2174 | *) ac_arg=$ac_var=$ac_new_val ;; |
2175 | esac | |
2176 | case " $ac_configure_args " in | |
2177 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2178 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 AC |
2179 | esac |
2180 | fi | |
2181 | done | |
2182 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2183 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2184 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2186 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2187 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
c906108c | 2188 | fi |
81ecdfbb RW |
2189 | ## -------------------- ## |
2190 | ## Main body of script. ## | |
2191 | ## -------------------- ## | |
b7026657 AC |
2192 | |
2193 | ac_ext=c | |
2194 | ac_cpp='$CPP $CPPFLAGS' | |
2195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2198 | ||
2199 | ||
35695fd6 AC |
2200 | # This file contains common code used by all simulators. |
2201 | # | |
2202 | # SIM_AC_COMMON invokes AC macros used by all simulators and by the common | |
2203 | # directory. It is intended to be invoked before any target specific stuff. | |
2204 | # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. | |
2205 | # It is intended to be invoked last. | |
2206 | # | |
2207 | # The simulator's configure.in should look like: | |
2208 | # | |
2209 | # dnl Process this file with autoconf to produce a configure script. | |
6ffe910a | 2210 | # AC_PREREQ(2.64)dnl |
35695fd6 | 2211 | # AC_INIT(Makefile.in) |
6ffe910a | 2212 | # sinclude(../common/aclocal.m4) |
35695fd6 AC |
2213 | # |
2214 | # SIM_AC_COMMON | |
2215 | # | |
2216 | # ... target specific stuff ... | |
2217 | # | |
2218 | # SIM_AC_OUTPUT | |
2219 | ||
d6416cdc RW |
2220 | # Include global overrides and fixes for Autoconf. |
2221 | ||
2222 | ||
2223 | ||
2224 | ||
2225 | ||
2226 | ||
2227 | ||
2228 | ||
2229 | ||
2230 | ||
2231 | ||
2232 | ||
2233 | ||
2234 | ||
2235 | ||
2236 | ||
2237 | ||
2238 | ||
2239 | ||
2240 | ||
2241 | ||
2242 | ||
2243 | ||
2244 | ||
2245 | ||
2246 | ||
6ffe910a MF |
2247 | # _AC_CHECK_DECL_BODY |
2248 | # ------------------- | |
2249 | # Shell function body for AC_CHECK_DECL. | |
2250 | # _AC_CHECK_DECL_BODY | |
d6416cdc | 2251 | |
6ffe910a MF |
2252 | # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND, |
2253 | # INCLUDES) | |
2254 | # ------------------------------------------------------------- | |
2255 | # Helper to AC_CHECK_DECLS, which generates the check for a single | |
2256 | # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands | |
2257 | # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND. | |
d6416cdc | 2258 | |
d6416cdc RW |
2259 | |
2260 | ||
2261 | ||
2262 | ||
2263 | ||
2264 | ||
35695fd6 AC |
2265 | |
2266 | ||
2267 | ||
db2e4d67 MF |
2268 | ## -*- Autoconf -*- |
2269 | ||
2270 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 | |
2271 | # Free Software Foundation, Inc. | |
2272 | # | |
2273 | # This file is free software; the Free Software Foundation | |
2274 | # gives unlimited permission to copy and/or distribute it, | |
2275 | # with or without modifications, as long as this notice is preserved. | |
2276 | ||
2277 | # serial 8 | |
2278 | ||
2279 | # Based on depend.m4 from automake 1.9, modified for standalone use in | |
2280 | # an environment where GNU make is required. | |
2281 | ||
2282 | # ZW_PROG_COMPILER_DEPENDENCIES | |
2283 | # ----------------------------- | |
2284 | # Variant of _AM_DEPENDENCIES which just does the dependency probe and | |
2285 | # sets fooDEPMODE accordingly. Cache-variable compatible with | |
2286 | # original; not side-effect compatible. As the users of this macro | |
2287 | # may require accurate dependencies for correct builds, it does *not* | |
2288 | # honor --disable-dependency-checking, and failure to detect a usable | |
2289 | # method is an error. depcomp is assumed to be located in | |
2290 | # $ac_aux_dir. | |
2291 | # | |
2292 | # FIXME: Should use the Autoconf 2.5x language-selection mechanism. | |
2293 | ||
2294 | ||
2295 | ||
2296 | # AM_SET_DEPDIR | |
2297 | # ------------- | |
2298 | # Choose a directory name for dependency files. | |
2299 | ||
2300 | ||
2301 | # ZW_CREATE_DEPDIR | |
2302 | # ---------------- | |
2303 | # As AM_SET_DEPDIR, but also create the directory at config.status time. | |
2304 | ||
2305 | ||
35695fd6 AC |
2306 | |
2307 | ||
2308 | ||
2309 | ||
2310 | ||
2311 | ||
2312 | ||
2313 | ||
2314 | ||
2315 | ||
2316 | ||
2317 | ||
2318 | ||
2319 | ||
2320 | ||
2321 | ||
2322 | ||
2323 | ||
2324 | ||
2325 | ||
2326 | ||
2327 | ||
2328 | ||
2329 | ||
2330 | ||
2331 | ||
2332 | ||
2333 | ||
2334 | ||
2335 | ||
2336 | ||
2337 | ||
2338 | ||
2339 | ||
2340 | ||
2341 | ||
2342 | ||
2343 | ||
2344 | ||
5912fadd JB |
2345 | |
2346 | ||
2347 | ||
2348 | ||
35695fd6 AC |
2349 | |
2350 | ||
2351 | ||
2352 | ||
2353 | ||
2354 | sim_inline="-DDEFAULT_INLINE=0" | |
2355 | ||
2356 | ||
2357 | ||
2358 | ||
2359 | ||
2360 | ||
2361 | ||
2362 | ||
2363 | ||
2364 | ||
2365 | ||
2366 | ||
2367 | ||
2368 | ||
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | ||
2374 | ||
2375 | ||
2376 | ||
2377 | ||
2378 | ||
2379 | ||
2380 | ||
2381 | ||
2382 | ||
2383 | ||
2384 | ||
2385 | ||
2386 | ||
2387 | ||
2388 | ||
2389 | ||
2390 | ||
20e95c23 | 2391 | # intl sister-directory configuration rules. |
35695fd6 | 2392 | # |
35695fd6 | 2393 | |
20e95c23 DJ |
2394 | # The idea behind this macro is that there's no need to repeat all the |
2395 | # autoconf probes done by the intl directory - it's already done them | |
2396 | # for us. In fact, there's no need even to look at the cache for the | |
2397 | # answers. All we need to do is nab a few pieces of information. | |
2398 | # The intl directory is set up to make this easy, by generating a | |
2399 | # small file which can be sourced as a shell script; then we produce | |
2400 | # the necessary substitutions and definitions for this directory. | |
35695fd6 AC |
2401 | |
2402 | ||
6efef468 JM |
2403 | |
2404 | # Autoconf M4 include file defining utility macros for complex Canadian | |
2405 | # cross builds. | |
2406 | ||
2407 | ||
2408 | ||
2409 | ||
2410 | ||
2411 | ||
2412 | ||
2413 | ||
2414 | ||
2415 | #### | |
2416 | # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM | |
2417 | # or AC_INIT. | |
2418 | # These demand that AC_CANONICAL_SYSTEM be called beforehand. | |
2419 | ||
2420 | #### | |
2421 | # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
2422 | # Like plain AC_CHECK_TOOLS, but require prefix if build!=host. | |
2423 | ||
2424 | ||
2425 | #### | |
2426 | # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
2427 | # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target. | |
2428 | ||
2429 | ||
2430 | ||
2431 | # Backported from Autoconf 2.5x; can go away when and if | |
2432 | # we switch. Put the OS path separator in $PATH_SEPARATOR. | |
2433 | ||
2434 | ||
2435 | ||
2436 | ||
2437 | # ACX_HAVE_GCC_FOR_TARGET | |
2438 | # Check if the variable GCC_FOR_TARGET really points to a GCC binary. | |
2439 | ||
2440 | ||
2441 | # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG) | |
2442 | # Searching for installed target binutils. We need to take extra care, | |
2443 | # else we may find the wrong assembler, linker, etc., and lose. | |
2444 | # | |
2445 | # First try --with-build-time-tools, if specified. | |
2446 | # | |
2447 | # For build != host, we ask the installed GCC for the name of the tool it | |
2448 | # uses, and accept it if it is an absolute path. This is because the | |
2449 | # only good choice for a compiler is the same GCC version that is being | |
2450 | # installed (or we couldn't make target libraries), and we assume that | |
2451 | # on the host system we'll have not only the same GCC version, but also | |
2452 | # the same binutils version. | |
2453 | # | |
2454 | # For build == host, search the same directories that the installed | |
2455 | # compiler will search. We used to do this for the assembler, linker, | |
2456 | # and nm only; for simplicity of configuration, however, we extend this | |
2457 | # criterion to tools (such as ar and ranlib) that are never invoked by | |
2458 | # the compiler, to avoid mismatches. | |
2459 | # | |
2460 | # Also note we have to check MD_EXEC_PREFIX before checking the user's path | |
2461 | # if build == target. This makes the most sense only when bootstrapping, | |
2462 | # but we also do so when build != host. In this case, we hope that the | |
2463 | # build and host systems will have similar contents of MD_EXEC_PREFIX. | |
2464 | # | |
2465 | # If we do not find a suitable binary, then try the user's path. | |
2466 | ||
2467 | ||
2468 | ### | |
2469 | # AC_PROG_CPP_WERROR | |
2470 | # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which | |
2471 | # triggers warnings from the preprocessor. Will be in autoconf 2.58. | |
2472 | # For now, using this also overrides header checks to use only the | |
2473 | # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a | |
2474 | # bit harder from here). | |
2475 | # Eventually autoconf will default to checking headers with the compiler | |
2476 | # instead, and we'll have to do this differently. | |
2477 | ||
2478 | # AC_PROG_CPP_WERROR | |
2479 | ||
2480 | # Test for GNAT. | |
2232061b MF |
2481 | # We require the gnatbind & gnatmake programs, as well as a compiler driver |
2482 | # that understands Ada. We use the user's CC setting, already found, and | |
2483 | # possibly add $1 to the command-line parameters. | |
6efef468 JM |
2484 | # |
2485 | # Sets the shell variable have_gnat to yes or no as appropriate, and | |
2486 | # substitutes GNATBIND and GNATMAKE. | |
2487 | ||
2488 | ||
2489 | ||
2490 | ||
2491 | ||
2492 | ||
2493 | ||
2494 | ||
2495 | ||
2496 | ||
2497 | ||
2498 | ||
2499 | ||
2500 | ||
2501 | ||
2502 | ||
2503 | ||
2504 | ||
2505 | ||
2506 | ||
35695fd6 | 2507 | |
b7026657 | 2508 | |
35695fd6 AC |
2509 | |
2510 | ||
f0569246 AC |
2511 | |
2512 | ac_ext=c | |
2513 | ac_cpp='$CPP $CPPFLAGS' | |
2514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2517 | if test -n "$ac_tool_prefix"; then | |
2518 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2519 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2521 | $as_echo_n "checking for $ac_word... " >&6; } | |
2522 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2523 | $as_echo_n "(cached) " >&6 | |
f0569246 AC |
2524 | else |
2525 | if test -n "$CC"; then | |
2526 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b7026657 | 2527 | else |
f0569246 AC |
2528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2529 | for as_dir in $PATH | |
2530 | do | |
2531 | IFS=$as_save_IFS | |
2532 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2533 | for ac_exec_ext in '' $ac_executable_extensions; do |
2534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f0569246 | 2535 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f0569246 AC |
2537 | break 2 |
2538 | fi | |
2539 | done | |
81ecdfbb RW |
2540 | done |
2541 | IFS=$as_save_IFS | |
f0569246 | 2542 | |
b7026657 | 2543 | fi |
b7026657 | 2544 | fi |
f0569246 AC |
2545 | CC=$ac_cv_prog_CC |
2546 | if test -n "$CC"; then | |
81ecdfbb RW |
2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2548 | $as_echo "$CC" >&6; } | |
b7026657 | 2549 | else |
81ecdfbb RW |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2551 | $as_echo "no" >&6; } | |
b7026657 AC |
2552 | fi |
2553 | ||
81ecdfbb | 2554 | |
f0569246 AC |
2555 | fi |
2556 | if test -z "$ac_cv_prog_CC"; then | |
2557 | ac_ct_CC=$CC | |
2558 | # Extract the first word of "gcc", so it can be a program name with args. | |
2559 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2561 | $as_echo_n "checking for $ac_word... " >&6; } | |
2562 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2563 | $as_echo_n "(cached) " >&6 | |
b7026657 | 2564 | else |
f0569246 AC |
2565 | if test -n "$ac_ct_CC"; then |
2566 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2567 | else | |
2568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2569 | for as_dir in $PATH | |
2570 | do | |
2571 | IFS=$as_save_IFS | |
2572 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2573 | for ac_exec_ext in '' $ac_executable_extensions; do |
2574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f0569246 | 2575 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f0569246 AC |
2577 | break 2 |
2578 | fi | |
2579 | done | |
81ecdfbb RW |
2580 | done |
2581 | IFS=$as_save_IFS | |
b7026657 | 2582 | |
f0569246 AC |
2583 | fi |
2584 | fi | |
2585 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2586 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2588 | $as_echo "$ac_ct_CC" >&6; } | |
b7026657 | 2589 | else |
81ecdfbb RW |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2591 | $as_echo "no" >&6; } | |
f0569246 | 2592 | fi |
b7026657 | 2593 | |
81ecdfbb RW |
2594 | if test "x$ac_ct_CC" = x; then |
2595 | CC="" | |
2596 | else | |
2597 | case $cross_compiling:$ac_tool_warned in | |
2598 | yes:) | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2600 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2601 | ac_tool_warned=yes ;; | |
2602 | esac | |
2603 | CC=$ac_ct_CC | |
2604 | fi | |
f0569246 AC |
2605 | else |
2606 | CC="$ac_cv_prog_CC" | |
b7026657 | 2607 | fi |
b7026657 | 2608 | |
f0569246 | 2609 | if test -z "$CC"; then |
81ecdfbb RW |
2610 | if test -n "$ac_tool_prefix"; then |
2611 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
f0569246 | 2612 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2614 | $as_echo_n "checking for $ac_word... " >&6; } | |
2615 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2616 | $as_echo_n "(cached) " >&6 | |
b7026657 | 2617 | else |
f0569246 AC |
2618 | if test -n "$CC"; then |
2619 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2620 | else | |
2621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2622 | for as_dir in $PATH | |
2623 | do | |
2624 | IFS=$as_save_IFS | |
2625 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2626 | for ac_exec_ext in '' $ac_executable_extensions; do |
2627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f0569246 | 2628 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f0569246 AC |
2630 | break 2 |
2631 | fi | |
2632 | done | |
81ecdfbb RW |
2633 | done |
2634 | IFS=$as_save_IFS | |
b7026657 AC |
2635 | |
2636 | fi | |
b7026657 | 2637 | fi |
f0569246 AC |
2638 | CC=$ac_cv_prog_CC |
2639 | if test -n "$CC"; then | |
81ecdfbb RW |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2641 | $as_echo "$CC" >&6; } | |
b7026657 | 2642 | else |
81ecdfbb RW |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2644 | $as_echo "no" >&6; } | |
b7026657 | 2645 | fi |
b7026657 | 2646 | |
b7026657 | 2647 | |
81ecdfbb | 2648 | fi |
b7026657 | 2649 | fi |
f0569246 AC |
2650 | if test -z "$CC"; then |
2651 | # Extract the first word of "cc", so it can be a program name with args. | |
2652 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2654 | $as_echo_n "checking for $ac_word... " >&6; } | |
2655 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2656 | $as_echo_n "(cached) " >&6 | |
f0569246 AC |
2657 | else |
2658 | if test -n "$CC"; then | |
2659 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2660 | else | |
2661 | ac_prog_rejected=no | |
2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2663 | for as_dir in $PATH | |
2664 | do | |
2665 | IFS=$as_save_IFS | |
2666 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2667 | for ac_exec_ext in '' $ac_executable_extensions; do |
2668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f0569246 AC |
2669 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2670 | ac_prog_rejected=yes | |
2671 | continue | |
2672 | fi | |
2673 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f0569246 AC |
2675 | break 2 |
2676 | fi | |
2677 | done | |
81ecdfbb RW |
2678 | done |
2679 | IFS=$as_save_IFS | |
b7026657 | 2680 | |
f0569246 AC |
2681 | if test $ac_prog_rejected = yes; then |
2682 | # We found a bogon in the path, so make sure we never use it. | |
2683 | set dummy $ac_cv_prog_CC | |
2684 | shift | |
2685 | if test $# != 0; then | |
2686 | # We chose a different compiler from the bogus one. | |
2687 | # However, it has the same basename, so the bogon will be chosen | |
2688 | # first if we set CC to just the basename; use the full file name. | |
2689 | shift | |
2690 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2691 | fi | |
b7026657 | 2692 | fi |
f0569246 AC |
2693 | fi |
2694 | fi | |
2695 | CC=$ac_cv_prog_CC | |
2696 | if test -n "$CC"; then | |
81ecdfbb RW |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2698 | $as_echo "$CC" >&6; } | |
b7026657 | 2699 | else |
81ecdfbb RW |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2701 | $as_echo "no" >&6; } | |
b7026657 | 2702 | fi |
f0569246 | 2703 | |
81ecdfbb | 2704 | |
f0569246 AC |
2705 | fi |
2706 | if test -z "$CC"; then | |
2707 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2708 | for ac_prog in cl.exe |
f0569246 AC |
2709 | do |
2710 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2711 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2713 | $as_echo_n "checking for $ac_word... " >&6; } | |
2714 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2715 | $as_echo_n "(cached) " >&6 | |
f0569246 AC |
2716 | else |
2717 | if test -n "$CC"; then | |
2718 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2719 | else | |
2720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2721 | for as_dir in $PATH | |
b7026657 | 2722 | do |
f0569246 AC |
2723 | IFS=$as_save_IFS |
2724 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2725 | for ac_exec_ext in '' $ac_executable_extensions; do |
2726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f0569246 | 2727 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f0569246 | 2729 | break 2 |
b7026657 | 2730 | fi |
f0569246 | 2731 | done |
81ecdfbb RW |
2732 | done |
2733 | IFS=$as_save_IFS | |
f0569246 | 2734 | |
b7026657 | 2735 | fi |
f0569246 AC |
2736 | fi |
2737 | CC=$ac_cv_prog_CC | |
2738 | if test -n "$CC"; then | |
81ecdfbb RW |
2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2740 | $as_echo "$CC" >&6; } | |
b7026657 | 2741 | else |
81ecdfbb RW |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2743 | $as_echo "no" >&6; } | |
b7026657 | 2744 | fi |
b7026657 | 2745 | |
81ecdfbb | 2746 | |
f0569246 AC |
2747 | test -n "$CC" && break |
2748 | done | |
c906108c | 2749 | fi |
f0569246 AC |
2750 | if test -z "$CC"; then |
2751 | ac_ct_CC=$CC | |
81ecdfbb | 2752 | for ac_prog in cl.exe |
b7026657 | 2753 | do |
f0569246 AC |
2754 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2755 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2757 | $as_echo_n "checking for $ac_word... " >&6; } | |
2758 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2759 | $as_echo_n "(cached) " >&6 | |
b7026657 | 2760 | else |
f0569246 AC |
2761 | if test -n "$ac_ct_CC"; then |
2762 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2763 | else | |
2764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2765 | for as_dir in $PATH | |
2766 | do | |
2767 | IFS=$as_save_IFS | |
2768 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2769 | for ac_exec_ext in '' $ac_executable_extensions; do |
2770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
f0569246 | 2771 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f0569246 AC |
2773 | break 2 |
2774 | fi | |
2775 | done | |
81ecdfbb RW |
2776 | done |
2777 | IFS=$as_save_IFS | |
b7026657 AC |
2778 | |
2779 | fi | |
f0569246 AC |
2780 | fi |
2781 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2782 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2784 | $as_echo "$ac_ct_CC" >&6; } | |
f0569246 | 2785 | else |
81ecdfbb RW |
2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2787 | $as_echo "no" >&6; } | |
f0569246 AC |
2788 | fi |
2789 | ||
81ecdfbb | 2790 | |
f0569246 | 2791 | test -n "$ac_ct_CC" && break |
b7026657 | 2792 | done |
b7026657 | 2793 | |
81ecdfbb RW |
2794 | if test "x$ac_ct_CC" = x; then |
2795 | CC="" | |
2796 | else | |
2797 | case $cross_compiling:$ac_tool_warned in | |
2798 | yes:) | |
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2801 | ac_tool_warned=yes ;; | |
2802 | esac | |
2803 | CC=$ac_ct_CC | |
2804 | fi | |
b7026657 AC |
2805 | fi |
2806 | ||
f0569246 | 2807 | fi |
b7026657 | 2808 | |
f0569246 | 2809 | |
81ecdfbb RW |
2810 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2811 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2812 | as_fn_error "no acceptable C compiler found in \$PATH | |
2813 | See \`config.log' for more details." "$LINENO" 5; } | |
f0569246 AC |
2814 | |
2815 | # Provide some information about the compiler. | |
81ecdfbb RW |
2816 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2817 | set X $ac_compile | |
2818 | ac_compiler=$2 | |
2819 | for ac_option in --version -v -V -qversion; do | |
2820 | { { ac_try="$ac_compiler $ac_option >&5" | |
2821 | case "(($ac_try" in | |
2822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2823 | *) ac_try_echo=$ac_try;; | |
2824 | esac | |
2825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2826 | $as_echo "$ac_try_echo"; } >&5 | |
2827 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b7026657 | 2828 | ac_status=$? |
81ecdfbb RW |
2829 | if test -s conftest.err; then |
2830 | sed '10a\ | |
2831 | ... rest of stderr output deleted ... | |
2832 | 10q' conftest.err >conftest.er1 | |
2833 | cat conftest.er1 >&5 | |
2834 | rm -f conftest.er1 conftest.err | |
2835 | fi | |
2836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2837 | test $ac_status = 0; } | |
2838 | done | |
f0569246 | 2839 | |
81ecdfbb | 2840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 2841 | /* end confdefs.h. */ |
f0569246 | 2842 | |
b7026657 AC |
2843 | int |
2844 | main () | |
2845 | { | |
f0569246 | 2846 | |
b7026657 AC |
2847 | ; |
2848 | return 0; | |
2849 | } | |
2850 | _ACEOF | |
f0569246 | 2851 | ac_clean_files_save=$ac_clean_files |
81ecdfbb | 2852 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
f0569246 AC |
2853 | # Try to create an executable without -o first, disregard a.out. |
2854 | # It will help us diagnose broken compilers, and finding out an intuition | |
2855 | # of exeext. | |
81ecdfbb RW |
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2857 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2858 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2859 | ||
2860 | # The possible output files: | |
2861 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2862 | ||
2863 | ac_rmfiles= | |
2864 | for ac_file in $ac_files | |
2865 | do | |
2866 | case $ac_file in | |
2867 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2868 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2869 | esac | |
2870 | done | |
2871 | rm -f $ac_rmfiles | |
2872 | ||
2873 | if { { ac_try="$ac_link_default" | |
2874 | case "(($ac_try" in | |
2875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2876 | *) ac_try_echo=$ac_try;; | |
2877 | esac | |
2878 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2879 | $as_echo "$ac_try_echo"; } >&5 | |
2880 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 2881 | ac_status=$? |
81ecdfbb RW |
2882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2883 | test $ac_status = 0; }; then : | |
2884 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2885 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2886 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2887 | # so that the user can short-circuit this test for compilers unknown to | |
2888 | # Autoconf. | |
2889 | for ac_file in $ac_files '' | |
f0569246 AC |
2890 | do |
2891 | test -f "$ac_file" || continue | |
2892 | case $ac_file in | |
81ecdfbb | 2893 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
f0569246 AC |
2894 | ;; |
2895 | [ab].out ) | |
2896 | # We found the default executable, but exeext='' is most | |
2897 | # certainly right. | |
2898 | break;; | |
2899 | *.* ) | |
81ecdfbb RW |
2900 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2901 | then :; else | |
2902 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2903 | fi | |
2904 | # We set ac_cv_exeext here because the later test for it is not | |
2905 | # safe: cross compilers may not add the suffix if given an `-o' | |
2906 | # argument, so we may need to know it at that point already. | |
2907 | # Even if this section looks crufty: it has the advantage of | |
2908 | # actually working. | |
f0569246 AC |
2909 | break;; |
2910 | * ) | |
2911 | break;; | |
2912 | esac | |
2913 | done | |
81ecdfbb RW |
2914 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2915 | ||
f0569246 | 2916 | else |
81ecdfbb RW |
2917 | ac_file='' |
2918 | fi | |
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2920 | $as_echo "$ac_file" >&6; } | |
2921 | if test -z "$ac_file"; then : | |
2922 | $as_echo "$as_me: failed program was:" >&5 | |
f0569246 AC |
2923 | sed 's/^/| /' conftest.$ac_ext >&5 |
2924 | ||
81ecdfbb RW |
2925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2927 | { as_fn_set_status 77 | |
2928 | as_fn_error "C compiler cannot create executables | |
2929 | See \`config.log' for more details." "$LINENO" 5; }; } | |
f0569246 | 2930 | fi |
f0569246 | 2931 | ac_exeext=$ac_cv_exeext |
f0569246 | 2932 | |
81ecdfbb | 2933 | # Check that the compiler produces executables we can run. If not, either |
f0569246 | 2934 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2936 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
f0569246 AC |
2937 | # If not cross compiling, check that we can run a simple program. |
2938 | if test "$cross_compiling" != yes; then | |
2939 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
2940 | { { case "(($ac_try" in |
2941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2942 | *) ac_try_echo=$ac_try;; | |
2943 | esac | |
2944 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2945 | $as_echo "$ac_try_echo"; } >&5 | |
2946 | (eval "$ac_try") 2>&5 | |
b7026657 | 2947 | ac_status=$? |
81ecdfbb RW |
2948 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2949 | test $ac_status = 0; }; }; then | |
f0569246 AC |
2950 | cross_compiling=no |
2951 | else | |
2952 | if test "$cross_compiling" = maybe; then | |
2953 | cross_compiling=yes | |
2954 | else | |
81ecdfbb RW |
2955 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2956 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2957 | as_fn_error "cannot run C compiled programs. | |
f0569246 | 2958 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 2959 | See \`config.log' for more details." "$LINENO" 5; } |
f0569246 AC |
2960 | fi |
2961 | fi | |
2962 | fi | |
81ecdfbb RW |
2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2964 | $as_echo "yes" >&6; } | |
f0569246 | 2965 | |
81ecdfbb | 2966 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
f0569246 | 2967 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 2968 | # Check that the compiler produces executables we can run. If not, either |
f0569246 | 2969 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2971 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2973 | $as_echo "$cross_compiling" >&6; } | |
2974 | ||
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2976 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2977 | if { { ac_try="$ac_link" | |
2978 | case "(($ac_try" in | |
2979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2980 | *) ac_try_echo=$ac_try;; | |
2981 | esac | |
2982 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2983 | $as_echo "$ac_try_echo"; } >&5 | |
2984 | (eval "$ac_link") 2>&5 | |
f0569246 | 2985 | ac_status=$? |
81ecdfbb RW |
2986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2987 | test $ac_status = 0; }; then : | |
f0569246 AC |
2988 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2989 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2990 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2991 | # `rm'. | |
2992 | for ac_file in conftest.exe conftest conftest.*; do | |
2993 | test -f "$ac_file" || continue | |
2994 | case $ac_file in | |
81ecdfbb | 2995 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
f0569246 | 2996 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
f0569246 AC |
2997 | break;; |
2998 | * ) break;; | |
2999 | esac | |
3000 | done | |
3001 | else | |
81ecdfbb RW |
3002 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3003 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3004 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3005 | See \`config.log' for more details." "$LINENO" 5; } | |
f0569246 | 3006 | fi |
f0569246 | 3007 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3009 | $as_echo "$ac_cv_exeext" >&6; } | |
f0569246 AC |
3010 | |
3011 | rm -f conftest.$ac_ext | |
3012 | EXEEXT=$ac_cv_exeext | |
3013 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3015 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3016 | if test "${ac_cv_objext+set}" = set; then : | |
3017 | $as_echo_n "(cached) " >&6 | |
f0569246 | 3018 | else |
81ecdfbb | 3019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f0569246 AC |
3020 | /* end confdefs.h. */ |
3021 | ||
3022 | int | |
3023 | main () | |
3024 | { | |
3025 | ||
3026 | ; | |
3027 | return 0; | |
3028 | } | |
3029 | _ACEOF | |
3030 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3031 | if { { ac_try="$ac_compile" |
3032 | case "(($ac_try" in | |
3033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3034 | *) ac_try_echo=$ac_try;; | |
3035 | esac | |
3036 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3037 | $as_echo "$ac_try_echo"; } >&5 | |
3038 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3039 | ac_status=$? |
81ecdfbb RW |
3040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3041 | test $ac_status = 0; }; then : | |
3042 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3043 | test -f "$ac_file" || continue; | |
f0569246 | 3044 | case $ac_file in |
81ecdfbb | 3045 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
f0569246 AC |
3046 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3047 | break;; | |
3048 | esac | |
3049 | done | |
b7026657 | 3050 | else |
81ecdfbb | 3051 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3052 | sed 's/^/| /' conftest.$ac_ext >&5 |
3053 | ||
81ecdfbb RW |
3054 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3055 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3056 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3057 | See \`config.log' for more details." "$LINENO" 5; } | |
b7026657 | 3058 | fi |
f0569246 AC |
3059 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3060 | fi | |
81ecdfbb RW |
3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3062 | $as_echo "$ac_cv_objext" >&6; } | |
f0569246 AC |
3063 | OBJEXT=$ac_cv_objext |
3064 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3066 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3067 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3068 | $as_echo_n "(cached) " >&6 | |
f0569246 | 3069 | else |
81ecdfbb | 3070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 3071 | /* end confdefs.h. */ |
f0569246 | 3072 | |
b7026657 AC |
3073 | int |
3074 | main () | |
3075 | { | |
f0569246 AC |
3076 | #ifndef __GNUC__ |
3077 | choke me | |
3078 | #endif | |
3079 | ||
b7026657 AC |
3080 | ; |
3081 | return 0; | |
3082 | } | |
3083 | _ACEOF | |
81ecdfbb | 3084 | if ac_fn_c_try_compile "$LINENO"; then : |
f0569246 AC |
3085 | ac_compiler_gnu=yes |
3086 | else | |
81ecdfbb | 3087 | ac_compiler_gnu=no |
f0569246 | 3088 | fi |
81ecdfbb | 3089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f0569246 | 3090 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
b7026657 | 3091 | |
b7026657 | 3092 | fi |
81ecdfbb RW |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3094 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3095 | if test $ac_compiler_gnu = yes; then | |
3096 | GCC=yes | |
3097 | else | |
3098 | GCC= | |
3099 | fi | |
f0569246 AC |
3100 | ac_test_CFLAGS=${CFLAGS+set} |
3101 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3103 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3104 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3105 | $as_echo_n "(cached) " >&6 | |
3106 | else | |
3107 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3108 | ac_c_werror_flag=yes | |
3109 | ac_cv_prog_cc_g=no | |
3110 | CFLAGS="-g" | |
3111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 3112 | /* end confdefs.h. */ |
f0569246 AC |
3113 | |
3114 | int | |
3115 | main () | |
3116 | { | |
3117 | ||
3118 | ; | |
3119 | return 0; | |
3120 | } | |
b7026657 | 3121 | _ACEOF |
81ecdfbb | 3122 | if ac_fn_c_try_compile "$LINENO"; then : |
f0569246 | 3123 | ac_cv_prog_cc_g=yes |
b7026657 | 3124 | else |
81ecdfbb RW |
3125 | CFLAGS="" |
3126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3127 | /* end confdefs.h. */ | |
3128 | ||
3129 | int | |
3130 | main () | |
3131 | { | |
3132 | ||
3133 | ; | |
3134 | return 0; | |
3135 | } | |
3136 | _ACEOF | |
3137 | if ac_fn_c_try_compile "$LINENO"; then : | |
3138 | ||
3139 | else | |
3140 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3141 | CFLAGS="-g" | |
3142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3143 | /* end confdefs.h. */ | |
3144 | ||
3145 | int | |
3146 | main () | |
3147 | { | |
b7026657 | 3148 | |
81ecdfbb RW |
3149 | ; |
3150 | return 0; | |
3151 | } | |
3152 | _ACEOF | |
3153 | if ac_fn_c_try_compile "$LINENO"; then : | |
3154 | ac_cv_prog_cc_g=yes | |
3155 | fi | |
3156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 3157 | fi |
81ecdfbb | 3158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f0569246 | 3159 | fi |
81ecdfbb RW |
3160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3161 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3162 | fi | |
3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3164 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
f0569246 AC |
3165 | if test "$ac_test_CFLAGS" = set; then |
3166 | CFLAGS=$ac_save_CFLAGS | |
3167 | elif test $ac_cv_prog_cc_g = yes; then | |
3168 | if test "$GCC" = yes; then | |
3169 | CFLAGS="-g -O2" | |
3170 | else | |
3171 | CFLAGS="-g" | |
3172 | fi | |
3173 | else | |
3174 | if test "$GCC" = yes; then | |
3175 | CFLAGS="-O2" | |
3176 | else | |
3177 | CFLAGS= | |
3178 | fi | |
3179 | fi | |
81ecdfbb RW |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3181 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3182 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3183 | $as_echo_n "(cached) " >&6 | |
f0569246 | 3184 | else |
81ecdfbb | 3185 | ac_cv_prog_cc_c89=no |
f0569246 | 3186 | ac_save_CC=$CC |
81ecdfbb | 3187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 3188 | /* end confdefs.h. */ |
f0569246 AC |
3189 | #include <stdarg.h> |
3190 | #include <stdio.h> | |
3191 | #include <sys/types.h> | |
3192 | #include <sys/stat.h> | |
3193 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3194 | struct buf { int x; }; | |
3195 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3196 | static char *e (p, i) | |
3197 | char **p; | |
3198 | int i; | |
3199 | { | |
3200 | return p[i]; | |
3201 | } | |
3202 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3203 | { | |
3204 | char *s; | |
3205 | va_list v; | |
3206 | va_start (v,p); | |
3207 | s = g (p, va_arg (v,int)); | |
3208 | va_end (v); | |
3209 | return s; | |
3210 | } | |
3211 | ||
3212 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3213 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3214 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3215 | as 'x'. The following induces an error, until -std is added to get |
f0569246 AC |
3216 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3217 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3218 | that's true only with -std. */ |
f0569246 AC |
3219 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3220 | ||
81ecdfbb RW |
3221 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3222 | inside strings and character constants. */ | |
3223 | #define FOO(x) 'x' | |
3224 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3225 | ||
f0569246 AC |
3226 | int test (int i, double x); |
3227 | struct s1 {int (*f) (int a);}; | |
3228 | struct s2 {int (*f) (double a);}; | |
3229 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3230 | int argc; | |
3231 | char **argv; | |
3232 | int | |
3233 | main () | |
3234 | { | |
3235 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3236 | ; | |
3237 | return 0; | |
3238 | } | |
b7026657 | 3239 | _ACEOF |
81ecdfbb RW |
3240 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3241 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
f0569246 AC |
3242 | do |
3243 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3244 | if ac_fn_c_try_compile "$LINENO"; then : |
3245 | ac_cv_prog_cc_c89=$ac_arg | |
c906108c | 3246 | fi |
81ecdfbb RW |
3247 | rm -f core conftest.err conftest.$ac_objext |
3248 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c906108c | 3249 | done |
81ecdfbb | 3250 | rm -f conftest.$ac_ext |
f0569246 | 3251 | CC=$ac_save_CC |
c906108c | 3252 | |
f0569246 | 3253 | fi |
81ecdfbb RW |
3254 | # AC_CACHE_VAL |
3255 | case "x$ac_cv_prog_cc_c89" in | |
3256 | x) | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3258 | $as_echo "none needed" >&6; } ;; | |
3259 | xno) | |
3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3261 | $as_echo "unsupported" >&6; } ;; | |
f0569246 | 3262 | *) |
81ecdfbb RW |
3263 | CC="$CC $ac_cv_prog_cc_c89" |
3264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3265 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
f0569246 | 3266 | esac |
81ecdfbb | 3267 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
f0569246 AC |
3268 | |
3269 | fi | |
b7026657 | 3270 | |
f0569246 AC |
3271 | ac_ext=c |
3272 | ac_cpp='$CPP $CPPFLAGS' | |
3273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3276 | ||
6ffe910a MF |
3277 | ac_aux_dir= |
3278 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3279 | for ac_t in install-sh install.sh shtool; do | |
3280 | if test -f "$ac_dir/$ac_t"; then | |
3281 | ac_aux_dir=$ac_dir | |
3282 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
3283 | break 2 | |
3284 | fi | |
3285 | done | |
3286 | done | |
3287 | if test -z "$ac_aux_dir"; then | |
3288 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
3289 | fi | |
3290 | ||
3291 | # These three variables are undocumented and unsupported, | |
3292 | # and are intended to be withdrawn in a future Autoconf release. | |
3293 | # They can cause serious problems if a builder's source tree is in a directory | |
3294 | # whose full name contains unusual characters. | |
3295 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3296 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3297 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3298 | ||
3299 | ||
3300 | # Make sure we can run config.sub. | |
3301 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3302 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3303 | ||
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3305 | $as_echo_n "checking build system type... " >&6; } | |
3306 | if test "${ac_cv_build+set}" = set; then : | |
81ecdfbb | 3307 | $as_echo_n "(cached) " >&6 |
f0569246 | 3308 | else |
6ffe910a MF |
3309 | ac_build_alias=$build_alias |
3310 | test "x$ac_build_alias" = x && | |
3311 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3312 | test "x$ac_build_alias" = x && | |
3313 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
3314 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3315 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
f0569246 AC |
3316 | |
3317 | fi | |
6ffe910a MF |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3319 | $as_echo "$ac_cv_build" >&6; } | |
3320 | case $ac_cv_build in | |
3321 | *-*-*) ;; | |
3322 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
3323 | esac | |
3324 | build=$ac_cv_build | |
3325 | ac_save_IFS=$IFS; IFS='-' | |
3326 | set x $ac_cv_build | |
3327 | shift | |
3328 | build_cpu=$1 | |
3329 | build_vendor=$2 | |
3330 | shift; shift | |
3331 | # Remember, the first character of IFS is used to create $*, | |
3332 | # except with old shells: | |
3333 | build_os=$* | |
3334 | IFS=$ac_save_IFS | |
3335 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
f0569246 | 3336 | |
c906108c | 3337 | |
6ffe910a MF |
3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3339 | $as_echo_n "checking host system type... " >&6; } | |
3340 | if test "${ac_cv_host+set}" = set; then : | |
3341 | $as_echo_n "(cached) " >&6 | |
f0569246 | 3342 | else |
6ffe910a MF |
3343 | if test "x$host_alias" = x; then |
3344 | ac_cv_host=$ac_cv_build | |
3345 | else | |
3346 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3347 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
c906108c | 3348 | fi |
c906108c | 3349 | |
6ffe910a MF |
3350 | fi |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3352 | $as_echo "$ac_cv_host" >&6; } | |
3353 | case $ac_cv_host in | |
3354 | *-*-*) ;; | |
3355 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3356 | esac | |
3357 | host=$ac_cv_host | |
3358 | ac_save_IFS=$IFS; IFS='-' | |
3359 | set x $ac_cv_host | |
3360 | shift | |
3361 | host_cpu=$1 | |
3362 | host_vendor=$2 | |
3363 | shift; shift | |
3364 | # Remember, the first character of IFS is used to create $*, | |
3365 | # except with old shells: | |
3366 | host_os=$* | |
3367 | IFS=$ac_save_IFS | |
3368 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c906108c | 3369 | |
c906108c | 3370 | |
6ffe910a MF |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3372 | $as_echo_n "checking target system type... " >&6; } | |
3373 | if test "${ac_cv_target+set}" = set; then : | |
81ecdfbb | 3374 | $as_echo_n "(cached) " >&6 |
b7026657 | 3375 | else |
6ffe910a MF |
3376 | if test "x$target_alias" = x; then |
3377 | ac_cv_target=$ac_cv_host | |
c906108c | 3378 | else |
6ffe910a MF |
3379 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
3380 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
c906108c | 3381 | fi |
6ffe910a | 3382 | |
f0569246 | 3383 | fi |
6ffe910a MF |
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3385 | $as_echo "$ac_cv_target" >&6; } | |
3386 | case $ac_cv_target in | |
3387 | *-*-*) ;; | |
3388 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
3389 | esac | |
3390 | target=$ac_cv_target | |
3391 | ac_save_IFS=$IFS; IFS='-' | |
3392 | set x $ac_cv_target | |
3393 | shift | |
3394 | target_cpu=$1 | |
3395 | target_vendor=$2 | |
3396 | shift; shift | |
3397 | # Remember, the first character of IFS is used to create $*, | |
3398 | # except with old shells: | |
3399 | target_os=$* | |
3400 | IFS=$ac_save_IFS | |
3401 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c906108c | 3402 | |
81ecdfbb | 3403 | |
6ffe910a MF |
3404 | # The aliases save the names the user supplied, while $host etc. |
3405 | # will get canonicalized. | |
3406 | test -n "$target_alias" && | |
3407 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3408 | NONENONEs,x,x, && | |
3409 | program_prefix=${target_alias}- | |
35695fd6 AC |
3410 | |
3411 | ac_ext=c | |
3412 | ac_cpp='$CPP $CPPFLAGS' | |
3413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3417 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
35695fd6 AC |
3418 | # On Suns, sometimes $CPP names a directory. |
3419 | if test -n "$CPP" && test -d "$CPP"; then | |
3420 | CPP= | |
3421 | fi | |
3422 | if test -z "$CPP"; then | |
81ecdfbb RW |
3423 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3424 | $as_echo_n "(cached) " >&6 | |
35695fd6 AC |
3425 | else |
3426 | # Double quotes because CPP needs to be expanded | |
3427 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3428 | do | |
3429 | ac_preproc_ok=false | |
3430 | for ac_c_preproc_warn_flag in '' yes | |
3431 | do | |
3432 | # Use a header file that comes with gcc, so configuring glibc | |
3433 | # with a fresh cross-compiler works. | |
3434 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3435 | # <limits.h> exists even on freestanding compilers. | |
3436 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3437 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 3438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
35695fd6 AC |
3439 | /* end confdefs.h. */ |
3440 | #ifdef __STDC__ | |
3441 | # include <limits.h> | |
3442 | #else | |
3443 | # include <assert.h> | |
3444 | #endif | |
3445 | Syntax error | |
3446 | _ACEOF | |
81ecdfbb | 3447 | if ac_fn_c_try_cpp "$LINENO"; then : |
35695fd6 | 3448 | |
81ecdfbb | 3449 | else |
35695fd6 AC |
3450 | # Broken: fails on valid input. |
3451 | continue | |
3452 | fi | |
3453 | rm -f conftest.err conftest.$ac_ext | |
3454 | ||
81ecdfbb | 3455 | # OK, works on sane cases. Now check whether nonexistent headers |
35695fd6 | 3456 | # can be detected and how. |
81ecdfbb | 3457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
35695fd6 AC |
3458 | /* end confdefs.h. */ |
3459 | #include <ac_nonexistent.h> | |
3460 | _ACEOF | |
81ecdfbb | 3461 | if ac_fn_c_try_cpp "$LINENO"; then : |
f0569246 AC |
3462 | # Broken: success on invalid input. |
3463 | continue | |
c906108c | 3464 | else |
f0569246 AC |
3465 | # Passes both tests. |
3466 | ac_preproc_ok=: | |
3467 | break | |
c906108c | 3468 | fi |
f0569246 AC |
3469 | rm -f conftest.err conftest.$ac_ext |
3470 | ||
3471 | done | |
3472 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3473 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb | 3474 | if $ac_preproc_ok; then : |
f0569246 | 3475 | break |
c906108c | 3476 | fi |
c906108c | 3477 | |
f0569246 AC |
3478 | done |
3479 | ac_cv_prog_CPP=$CPP | |
3480 | ||
3481 | fi | |
3482 | CPP=$ac_cv_prog_CPP | |
c906108c | 3483 | else |
f0569246 AC |
3484 | ac_cv_prog_CPP=$CPP |
3485 | fi | |
81ecdfbb RW |
3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3487 | $as_echo "$CPP" >&6; } | |
f0569246 AC |
3488 | ac_preproc_ok=false |
3489 | for ac_c_preproc_warn_flag in '' yes | |
3490 | do | |
3491 | # Use a header file that comes with gcc, so configuring glibc | |
3492 | # with a fresh cross-compiler works. | |
3493 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3494 | # <limits.h> exists even on freestanding compilers. | |
3495 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3496 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 3497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 3498 | /* end confdefs.h. */ |
f0569246 AC |
3499 | #ifdef __STDC__ |
3500 | # include <limits.h> | |
3501 | #else | |
3502 | # include <assert.h> | |
b7026657 | 3503 | #endif |
f0569246 | 3504 | Syntax error |
b7026657 | 3505 | _ACEOF |
81ecdfbb | 3506 | if ac_fn_c_try_cpp "$LINENO"; then : |
b7026657 | 3507 | |
81ecdfbb | 3508 | else |
f0569246 AC |
3509 | # Broken: fails on valid input. |
3510 | continue | |
b7026657 | 3511 | fi |
f0569246 AC |
3512 | rm -f conftest.err conftest.$ac_ext |
3513 | ||
81ecdfbb | 3514 | # OK, works on sane cases. Now check whether nonexistent headers |
f0569246 | 3515 | # can be detected and how. |
81ecdfbb | 3516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 3517 | /* end confdefs.h. */ |
f0569246 | 3518 | #include <ac_nonexistent.h> |
b7026657 | 3519 | _ACEOF |
81ecdfbb | 3520 | if ac_fn_c_try_cpp "$LINENO"; then : |
f0569246 AC |
3521 | # Broken: success on invalid input. |
3522 | continue | |
c906108c | 3523 | else |
f0569246 AC |
3524 | # Passes both tests. |
3525 | ac_preproc_ok=: | |
3526 | break | |
c906108c | 3527 | fi |
f0569246 | 3528 | rm -f conftest.err conftest.$ac_ext |
c906108c | 3529 | |
f0569246 AC |
3530 | done |
3531 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3532 | rm -f conftest.err conftest.$ac_ext | |
81ecdfbb RW |
3533 | if $ac_preproc_ok; then : |
3534 | ||
c906108c | 3535 | else |
81ecdfbb RW |
3536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3538 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3539 | See \`config.log' for more details." "$LINENO" 5; } | |
c906108c | 3540 | fi |
b7026657 | 3541 | |
f0569246 AC |
3542 | ac_ext=c |
3543 | ac_cpp='$CPP $CPPFLAGS' | |
3544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3547 | ||
3548 | ||
81ecdfbb RW |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3550 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3551 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3552 | $as_echo_n "(cached) " >&6 | |
3553 | else | |
3554 | if test -z "$GREP"; then | |
3555 | ac_path_GREP_found=false | |
3556 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3558 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3559 | do | |
3560 | IFS=$as_save_IFS | |
3561 | test -z "$as_dir" && as_dir=. | |
3562 | for ac_prog in grep ggrep; do | |
3563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3564 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3565 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3566 | # Check for GNU ac_path_GREP and select it if it is found. | |
3567 | # Check for GNU $ac_path_GREP | |
3568 | case `"$ac_path_GREP" --version 2>&1` in | |
3569 | *GNU*) | |
3570 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3571 | *) | |
3572 | ac_count=0 | |
3573 | $as_echo_n 0123456789 >"conftest.in" | |
3574 | while : | |
3575 | do | |
3576 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3577 | mv "conftest.tmp" "conftest.in" | |
3578 | cp "conftest.in" "conftest.nl" | |
3579 | $as_echo 'GREP' >> "conftest.nl" | |
3580 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3581 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3582 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3583 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3584 | # Best one so far, save it but keep looking for a better one | |
3585 | ac_cv_path_GREP="$ac_path_GREP" | |
3586 | ac_path_GREP_max=$ac_count | |
3587 | fi | |
3588 | # 10*(2^10) chars as input seems more than enough | |
3589 | test $ac_count -gt 10 && break | |
3590 | done | |
3591 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3592 | esac | |
3593 | ||
3594 | $ac_path_GREP_found && break 3 | |
3595 | done | |
3596 | done | |
3597 | done | |
3598 | IFS=$as_save_IFS | |
3599 | if test -z "$ac_cv_path_GREP"; then | |
3600 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3601 | fi | |
3602 | else | |
3603 | ac_cv_path_GREP=$GREP | |
3604 | fi | |
3605 | ||
3606 | fi | |
3607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3608 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3609 | GREP="$ac_cv_path_GREP" | |
3610 | ||
3611 | ||
3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3613 | $as_echo_n "checking for egrep... " >&6; } | |
3614 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3615 | $as_echo_n "(cached) " >&6 | |
f0569246 | 3616 | else |
81ecdfbb RW |
3617 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3618 | then ac_cv_path_EGREP="$GREP -E" | |
3619 | else | |
3620 | if test -z "$EGREP"; then | |
3621 | ac_path_EGREP_found=false | |
3622 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3624 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3625 | do | |
3626 | IFS=$as_save_IFS | |
3627 | test -z "$as_dir" && as_dir=. | |
3628 | for ac_prog in egrep; do | |
3629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3630 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3631 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3632 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3633 | # Check for GNU $ac_path_EGREP | |
3634 | case `"$ac_path_EGREP" --version 2>&1` in | |
3635 | *GNU*) | |
3636 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3637 | *) | |
3638 | ac_count=0 | |
3639 | $as_echo_n 0123456789 >"conftest.in" | |
3640 | while : | |
3641 | do | |
3642 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3643 | mv "conftest.tmp" "conftest.in" | |
3644 | cp "conftest.in" "conftest.nl" | |
3645 | $as_echo 'EGREP' >> "conftest.nl" | |
3646 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3647 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3648 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3649 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3650 | # Best one so far, save it but keep looking for a better one | |
3651 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3652 | ac_path_EGREP_max=$ac_count | |
f0569246 | 3653 | fi |
81ecdfbb RW |
3654 | # 10*(2^10) chars as input seems more than enough |
3655 | test $ac_count -gt 10 && break | |
3656 | done | |
3657 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3658 | esac | |
3659 | ||
3660 | $ac_path_EGREP_found && break 3 | |
3661 | done | |
3662 | done | |
3663 | done | |
3664 | IFS=$as_save_IFS | |
3665 | if test -z "$ac_cv_path_EGREP"; then | |
3666 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3667 | fi | |
3668 | else | |
3669 | ac_cv_path_EGREP=$EGREP | |
f0569246 | 3670 | fi |
81ecdfbb RW |
3671 | |
3672 | fi | |
3673 | fi | |
3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3675 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3676 | EGREP="$ac_cv_path_EGREP" | |
f0569246 AC |
3677 | |
3678 | ||
81ecdfbb RW |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3680 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3681 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3682 | $as_echo_n "(cached) " >&6 | |
f0569246 | 3683 | else |
81ecdfbb | 3684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f0569246 AC |
3685 | /* end confdefs.h. */ |
3686 | #include <stdlib.h> | |
3687 | #include <stdarg.h> | |
3688 | #include <string.h> | |
3689 | #include <float.h> | |
c906108c | 3690 | |
b7026657 AC |
3691 | int |
3692 | main () | |
3693 | { | |
f0569246 | 3694 | |
b7026657 AC |
3695 | ; |
3696 | return 0; | |
3697 | } | |
3698 | _ACEOF | |
81ecdfbb | 3699 | if ac_fn_c_try_compile "$LINENO"; then : |
f0569246 | 3700 | ac_cv_header_stdc=yes |
b7026657 | 3701 | else |
81ecdfbb | 3702 | ac_cv_header_stdc=no |
b7026657 | 3703 | fi |
81ecdfbb | 3704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3705 | |
f0569246 AC |
3706 | if test $ac_cv_header_stdc = yes; then |
3707 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 3708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f0569246 AC |
3709 | /* end confdefs.h. */ |
3710 | #include <string.h> | |
c906108c | 3711 | |
f0569246 AC |
3712 | _ACEOF |
3713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3714 | $EGREP "memchr" >/dev/null 2>&1; then : |
3715 | ||
c906108c | 3716 | else |
f0569246 | 3717 | ac_cv_header_stdc=no |
c906108c | 3718 | fi |
f0569246 | 3719 | rm -f conftest* |
b7026657 | 3720 | |
c906108c SS |
3721 | fi |
3722 | ||
f0569246 AC |
3723 | if test $ac_cv_header_stdc = yes; then |
3724 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 3725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f0569246 AC |
3726 | /* end confdefs.h. */ |
3727 | #include <stdlib.h> | |
3728 | ||
3729 | _ACEOF | |
3730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
3731 | $EGREP "free" >/dev/null 2>&1; then : |
3732 | ||
c906108c | 3733 | else |
f0569246 | 3734 | ac_cv_header_stdc=no |
c906108c | 3735 | fi |
f0569246 AC |
3736 | rm -f conftest* |
3737 | ||
c906108c SS |
3738 | fi |
3739 | ||
f0569246 AC |
3740 | if test $ac_cv_header_stdc = yes; then |
3741 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 3742 | if test "$cross_compiling" = yes; then : |
f0569246 AC |
3743 | : |
3744 | else | |
81ecdfbb | 3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 3746 | /* end confdefs.h. */ |
f0569246 | 3747 | #include <ctype.h> |
81ecdfbb | 3748 | #include <stdlib.h> |
f0569246 AC |
3749 | #if ((' ' & 0x0FF) == 0x020) |
3750 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3751 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3752 | #else | |
3753 | # define ISLOWER(c) \ | |
3754 | (('a' <= (c) && (c) <= 'i') \ | |
3755 | || ('j' <= (c) && (c) <= 'r') \ | |
3756 | || ('s' <= (c) && (c) <= 'z')) | |
3757 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3758 | #endif | |
c906108c | 3759 | |
f0569246 | 3760 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b7026657 AC |
3761 | int |
3762 | main () | |
3763 | { | |
f0569246 AC |
3764 | int i; |
3765 | for (i = 0; i < 256; i++) | |
3766 | if (XOR (islower (i), ISLOWER (i)) | |
3767 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
3768 | return 2; |
3769 | return 0; | |
b7026657 AC |
3770 | } |
3771 | _ACEOF | |
81ecdfbb | 3772 | if ac_fn_c_try_run "$LINENO"; then : |
b7026657 | 3773 | |
81ecdfbb RW |
3774 | else |
3775 | ac_cv_header_stdc=no | |
c906108c | 3776 | fi |
81ecdfbb RW |
3777 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3778 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 3779 | fi |
81ecdfbb | 3780 | |
c906108c | 3781 | fi |
c906108c | 3782 | fi |
81ecdfbb RW |
3783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
3784 | $as_echo "$ac_cv_header_stdc" >&6; } | |
f0569246 | 3785 | if test $ac_cv_header_stdc = yes; then |
b7026657 | 3786 | |
81ecdfbb | 3787 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
c906108c | 3788 | |
c906108c SS |
3789 | fi |
3790 | ||
f0569246 | 3791 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
81ecdfbb RW |
3792 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3793 | inttypes.h stdint.h unistd.h | |
3794 | do : | |
3795 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3796 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3797 | " | |
3798 | eval as_val=\$$as_ac_Header | |
3799 | if test "x$as_val" = x""yes; then : | |
3800 | cat >>confdefs.h <<_ACEOF | |
3801 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3802 | _ACEOF | |
b7026657 | 3803 | |
81ecdfbb | 3804 | fi |
b7026657 | 3805 | |
81ecdfbb | 3806 | done |
b7026657 AC |
3807 | |
3808 | ||
6ffe910a | 3809 | |
2232061b MF |
3810 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
3811 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3812 | MINIX=yes | |
3813 | else | |
3814 | MINIX= | |
3815 | fi | |
3816 | ||
3817 | ||
3818 | if test "$MINIX" = yes; then | |
3819 | ||
3820 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3821 | ||
3822 | ||
3823 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3824 | ||
3825 | ||
3826 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3827 | ||
3828 | fi | |
3829 | ||
3830 | ||
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3832 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3833 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
3834 | $as_echo_n "(cached) " >&6 | |
3835 | else | |
3836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3837 | /* end confdefs.h. */ | |
3838 | ||
3839 | # define __EXTENSIONS__ 1 | |
3840 | $ac_includes_default | |
3841 | int | |
3842 | main () | |
3843 | { | |
3844 | ||
3845 | ; | |
3846 | return 0; | |
3847 | } | |
3848 | _ACEOF | |
3849 | if ac_fn_c_try_compile "$LINENO"; then : | |
3850 | ac_cv_safe_to_define___extensions__=yes | |
3851 | else | |
3852 | ac_cv_safe_to_define___extensions__=no | |
3853 | fi | |
3854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3855 | fi | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3857 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3858 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3859 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3860 | ||
3861 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3862 | ||
3863 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3864 | ||
3865 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3866 | ||
3867 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3868 | ||
3869 | ||
3870 | test "$program_prefix" != NONE && | |
3871 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3872 | # Use a double $ so make ignores it. | |
3873 | test "$program_suffix" != NONE && | |
3874 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3875 | # Double any \ or $. | |
3876 | # By default was `s,x,x', remove it if useless. | |
3877 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3878 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3879 | ||
3880 | # Find a good install program. We prefer a C program (faster), | |
3881 | # so one script is as good as another. But avoid the broken or | |
3882 | # incompatible versions: | |
3883 | # SysV /etc/install, /usr/sbin/install | |
3884 | # SunOS /usr/etc/install | |
3885 | # IRIX /sbin/install | |
3886 | # AIX /bin/install | |
3887 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3888 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3889 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3890 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3891 | # OS/2's system install, which has a completely different semantic | |
3892 | # ./install, which can be erroneously created by make from ./install.sh. | |
3893 | # Reject install programs that cannot install multiple files. | |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3895 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3896 | if test -z "$INSTALL"; then | |
3897 | if test "${ac_cv_path_install+set}" = set; then : | |
3898 | $as_echo_n "(cached) " >&6 | |
3899 | else | |
3900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3901 | for as_dir in $PATH | |
3902 | do | |
3903 | IFS=$as_save_IFS | |
3904 | test -z "$as_dir" && as_dir=. | |
3905 | # Account for people who put trailing slashes in PATH elements. | |
3906 | case $as_dir/ in #(( | |
3907 | ./ | .// | /[cC]/* | \ | |
3908 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3909 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3910 | /usr/ucb/* ) ;; | |
3911 | *) | |
3912 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3913 | # Don't use installbsd from OSF since it installs stuff as root | |
3914 | # by default. | |
3915 | for ac_prog in ginstall scoinst install; do | |
3916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3917 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3918 | if test $ac_prog = install && | |
3919 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3920 | # AIX install. It has an incompatible calling convention. | |
3921 | : | |
3922 | elif test $ac_prog = install && | |
3923 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3924 | # program-specific install script used by HP pwplus--don't use. | |
3925 | : | |
3926 | else | |
3927 | rm -rf conftest.one conftest.two conftest.dir | |
3928 | echo one > conftest.one | |
3929 | echo two > conftest.two | |
3930 | mkdir conftest.dir | |
3931 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3932 | test -s conftest.one && test -s conftest.two && | |
3933 | test -s conftest.dir/conftest.one && | |
3934 | test -s conftest.dir/conftest.two | |
3935 | then | |
3936 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3937 | break 3 | |
3938 | fi | |
3939 | fi | |
3940 | fi | |
3941 | done | |
3942 | done | |
3943 | ;; | |
3944 | esac | |
3945 | ||
3946 | done | |
3947 | IFS=$as_save_IFS | |
3948 | ||
3949 | rm -rf conftest.one conftest.two conftest.dir | |
3950 | ||
3951 | fi | |
3952 | if test "${ac_cv_path_install+set}" = set; then | |
3953 | INSTALL=$ac_cv_path_install | |
3954 | else | |
3955 | # As a last resort, use the slow shell script. Don't cache a | |
3956 | # value for INSTALL within a source directory, because that will | |
3957 | # break other packages using the cache if that directory is | |
3958 | # removed, or if the value is a relative name. | |
3959 | INSTALL=$ac_install_sh | |
3960 | fi | |
3961 | fi | |
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3963 | $as_echo "$INSTALL" >&6; } | |
3964 | ||
3965 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3966 | # It thinks the first close brace ends the variable substitution. | |
3967 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3968 | ||
3969 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3970 | ||
3971 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3972 | ||
3973 | rm -rf .tst 2>/dev/null | |
3974 | mkdir .tst 2>/dev/null | |
3975 | if test -d .tst; then | |
3976 | am__leading_dot=. | |
3977 | else | |
3978 | am__leading_dot=_ | |
3979 | fi | |
3980 | rmdir .tst 2>/dev/null | |
3981 | ||
3982 | DEPDIR="${am__leading_dot}deps" | |
3983 | ||
3984 | ||
6ffe910a MF |
3985 | |
3986 | # autoconf.info says this should be called right after AC_INIT. | |
3987 | ac_config_headers="$ac_config_headers config.h:config.in" | |
3988 | ||
3989 | ||
3990 | ||
3991 | ||
3992 | ||
2232061b | 3993 | |
6ffe910a MF |
3994 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
3995 | if test "x$cross_compiling" = "xno"; then | |
3996 | CC_FOR_BUILD='$(CC)' | |
3997 | else | |
3998 | CC_FOR_BUILD=gcc | |
3999 | fi | |
4000 | ||
4001 | ||
4002 | ||
4003 | ||
4004 | AR=${AR-ar} | |
4005 | ||
4006 | if test -n "$ac_tool_prefix"; then | |
4007 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4008 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4010 | $as_echo_n "checking for $ac_word... " >&6; } | |
4011 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4012 | $as_echo_n "(cached) " >&6 | |
4013 | else | |
4014 | if test -n "$RANLIB"; then | |
4015 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4016 | else | |
4017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4018 | for as_dir in $PATH | |
4019 | do | |
4020 | IFS=$as_save_IFS | |
4021 | test -z "$as_dir" && as_dir=. | |
4022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4023 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4024 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4026 | break 2 | |
4027 | fi | |
4028 | done | |
4029 | done | |
4030 | IFS=$as_save_IFS | |
4031 | ||
4032 | fi | |
4033 | fi | |
4034 | RANLIB=$ac_cv_prog_RANLIB | |
4035 | if test -n "$RANLIB"; then | |
4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4037 | $as_echo "$RANLIB" >&6; } | |
4038 | else | |
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4040 | $as_echo "no" >&6; } | |
4041 | fi | |
4042 | ||
4043 | ||
4044 | fi | |
4045 | if test -z "$ac_cv_prog_RANLIB"; then | |
4046 | ac_ct_RANLIB=$RANLIB | |
4047 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4048 | set dummy ranlib; ac_word=$2 | |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4050 | $as_echo_n "checking for $ac_word... " >&6; } | |
4051 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4052 | $as_echo_n "(cached) " >&6 | |
4053 | else | |
4054 | if test -n "$ac_ct_RANLIB"; then | |
4055 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4056 | else | |
4057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4058 | for as_dir in $PATH | |
4059 | do | |
4060 | IFS=$as_save_IFS | |
4061 | test -z "$as_dir" && as_dir=. | |
4062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4064 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4066 | break 2 | |
4067 | fi | |
4068 | done | |
4069 | done | |
4070 | IFS=$as_save_IFS | |
4071 | ||
4072 | fi | |
4073 | fi | |
4074 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4075 | if test -n "$ac_ct_RANLIB"; then | |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4077 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4078 | else | |
4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4080 | $as_echo "no" >&6; } | |
4081 | fi | |
4082 | ||
4083 | if test "x$ac_ct_RANLIB" = x; then | |
4084 | RANLIB=":" | |
4085 | else | |
4086 | case $cross_compiling:$ac_tool_warned in | |
4087 | yes:) | |
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4090 | ac_tool_warned=yes ;; | |
4091 | esac | |
4092 | RANLIB=$ac_ct_RANLIB | |
4093 | fi | |
4094 | else | |
4095 | RANLIB="$ac_cv_prog_RANLIB" | |
4096 | fi | |
4097 | ||
4098 | ||
db2e4d67 MF |
4099 | # Dependency checking. |
4100 | ac_config_commands="$ac_config_commands depdir" | |
4101 | ||
4102 | ||
4103 | depcc="$CC" am_compiler_list= | |
4104 | ||
4105 | am_depcomp=$ac_aux_dir/depcomp | |
4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4107 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4108 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4109 | $as_echo_n "(cached) " >&6 | |
4110 | else | |
4111 | if test -f "$am_depcomp"; then | |
4112 | # We make a subdir and do the tests there. Otherwise we can end up | |
4113 | # making bogus files that we don't know about and never remove. For | |
4114 | # instance it was reported that on HP-UX the gcc test will end up | |
4115 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4116 | # in D'. | |
4117 | mkdir conftest.dir | |
4118 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4119 | # using a relative directory. | |
4120 | cp "$am_depcomp" conftest.dir | |
4121 | cd conftest.dir | |
4122 | # We will build objects and dependencies in a subdirectory because | |
4123 | # it helps to detect inapplicable dependency modes. For instance | |
4124 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4125 | # side effect of compilation, but ICC will put the dependencies in | |
4126 | # the current directory while Tru64 will put them in the object | |
4127 | # directory. | |
4128 | mkdir sub | |
4129 | ||
4130 | am_cv_CC_dependencies_compiler_type=none | |
4131 | if test "$am_compiler_list" = ""; then | |
4132 | am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4133 | fi | |
4134 | for depmode in $am_compiler_list; do | |
4135 | if test $depmode = none; then break; fi | |
4136 | ||
4137 | $as_echo "$as_me:$LINENO: trying $depmode" >&5 | |
4138 | # Setup a source with many dependencies, because some compilers | |
4139 | # like to wrap large dependency lists on column 80 (with \), and | |
4140 | # we should not choose a depcomp mode which is confused by this. | |
4141 | # | |
4142 | # We need to recreate these files for each test, as the compiler may | |
4143 | # overwrite some of them when testing with obscure command lines. | |
4144 | # This happens at least with the AIX C compiler. | |
4145 | : > sub/conftest.c | |
4146 | for i in 1 2 3 4 5 6; do | |
4147 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4148 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4149 | # Solaris 8's {/usr,}/bin/sh. | |
4150 | touch sub/conftst$i.h | |
4151 | done | |
4152 | echo "include sub/conftest.Po" > confmf | |
4153 | ||
4154 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4155 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4156 | # handle `-M -o', and we need to detect this. | |
4157 | depcmd="depmode=$depmode \ | |
4158 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4159 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4160 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" | |
4161 | echo "| $depcmd" | sed -e 's/ */ /g' >&5 | |
4162 | if env $depcmd > conftest.err 2>&1 && | |
4163 | grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && | |
4164 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && | |
4165 | ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then | |
4166 | # icc doesn't choke on unknown options, it will just issue warnings | |
4167 | # or remarks (even with -Werror). So we grep stderr for any message | |
4168 | # that says an option was ignored or not supported. | |
4169 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4170 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4171 | # The diagnosis changed in icc 8.0: | |
4172 | # icc: Command line remark: option '-MP' not supported | |
4173 | if (grep 'ignoring option' conftest.err || | |
4174 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4175 | am_cv_CC_dependencies_compiler_type=$depmode | |
4176 | $as_echo "$as_me:$LINENO: success" >&5 | |
4177 | break | |
4178 | fi | |
4179 | fi | |
4180 | $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 | |
4181 | sed -e 's/^/| /' < conftest.err >&5 | |
4182 | done | |
4183 | ||
4184 | cd .. | |
4185 | rm -rf conftest.dir | |
4186 | else | |
4187 | am_cv_CC_dependencies_compiler_type=none | |
4188 | fi | |
4189 | ||
4190 | fi | |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4192 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4193 | if test x${am_cv_CC_dependencies_compiler_type-none} = xnone | |
4194 | then as_fn_error "no usable dependency style found" "$LINENO" 5 | |
4195 | else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4196 | ||
4197 | fi | |
4198 | ||
4199 | ||
4200 | # Check for the 'make' the user wants to use. | |
4201 | for ac_prog in make | |
4202 | do | |
4203 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4204 | set dummy $ac_prog; ac_word=$2 | |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4206 | $as_echo_n "checking for $ac_word... " >&6; } | |
4207 | if test "${ac_cv_prog_MAKE+set}" = set; then : | |
4208 | $as_echo_n "(cached) " >&6 | |
4209 | else | |
4210 | if test -n "$MAKE"; then | |
4211 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
4212 | else | |
4213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4214 | for as_dir in $PATH | |
4215 | do | |
4216 | IFS=$as_save_IFS | |
4217 | test -z "$as_dir" && as_dir=. | |
4218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4220 | ac_cv_prog_MAKE="$ac_prog" | |
4221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4222 | break 2 | |
4223 | fi | |
4224 | done | |
4225 | done | |
4226 | IFS=$as_save_IFS | |
4227 | ||
4228 | fi | |
4229 | fi | |
4230 | MAKE=$ac_cv_prog_MAKE | |
4231 | if test -n "$MAKE"; then | |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
4233 | $as_echo "$MAKE" >&6; } | |
4234 | else | |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4236 | $as_echo "no" >&6; } | |
4237 | fi | |
4238 | ||
4239 | ||
4240 | test -n "$MAKE" && break | |
4241 | done | |
4242 | ||
4243 | MAKE_IS_GNU= | |
4244 | case "`$MAKE --version 2>&1 | sed 1q`" in | |
4245 | *GNU*) | |
4246 | MAKE_IS_GNU=yes | |
4247 | ;; | |
4248 | esac | |
4249 | if test "$MAKE_IS_GNU" = yes; then | |
4250 | GMAKE_TRUE= | |
4251 | GMAKE_FALSE='#' | |
4252 | else | |
4253 | GMAKE_TRUE='#' | |
4254 | GMAKE_FALSE= | |
4255 | fi | |
4256 | ||
4257 | ||
6ffe910a MF |
4258 | ALL_LINGUAS= |
4259 | # If we haven't got the data from the intl directory, | |
4260 | # assume NLS is disabled. | |
4261 | USE_NLS=no | |
4262 | LIBINTL= | |
4263 | LIBINTL_DEP= | |
4264 | INCINTL= | |
4265 | XGETTEXT= | |
4266 | GMSGFMT= | |
4267 | POSUB= | |
4268 | ||
4269 | if test -f ../../intl/config.intl; then | |
4270 | . ../../intl/config.intl | |
4271 | fi | |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
4273 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
4274 | if test x"$USE_NLS" != xyes; then | |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4276 | $as_echo "no" >&6; } | |
4277 | else | |
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4279 | $as_echo "yes" >&6; } | |
4280 | ||
4281 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
4282 | ||
4283 | ||
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
4285 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
4286 | # Look for .po and .gmo files in the source directory. | |
4287 | CATALOGS= | |
4288 | XLINGUAS= | |
4289 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
4290 | # If there aren't any .gmo files the shell will give us the | |
4291 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
4292 | # weeded out. | |
4293 | case "$cat" in *\**) | |
4294 | continue;; | |
4295 | esac | |
4296 | # The quadruple backslash is collapsed to a double backslash | |
4297 | # by the backticks, then collapsed again by the double quotes, | |
4298 | # leaving us with one backslash in the sed expression (right | |
4299 | # before the dot that mustn't act as a wildcard). | |
4300 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
4301 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
4302 | # The user is allowed to set LINGUAS to a list of languages to | |
4303 | # install catalogs for. If it's empty that means "all of them." | |
4304 | if test "x$LINGUAS" = x; then | |
4305 | CATALOGS="$CATALOGS $cat" | |
4306 | XLINGUAS="$XLINGUAS $lang" | |
4307 | else | |
4308 | case "$LINGUAS" in *$lang*) | |
4309 | CATALOGS="$CATALOGS $cat" | |
4310 | XLINGUAS="$XLINGUAS $lang" | |
4311 | ;; | |
4312 | esac | |
4313 | fi | |
4314 | done | |
4315 | LINGUAS="$XLINGUAS" | |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
4317 | $as_echo "$LINGUAS" >&6; } | |
4318 | ||
4319 | ||
4320 | DATADIRNAME=share | |
4321 | ||
4322 | INSTOBJEXT=.mo | |
4323 | ||
4324 | GENCAT=gencat | |
4325 | ||
4326 | CATOBJEXT=.gmo | |
4327 | ||
4328 | fi | |
4329 | ||
4330 | # Check for common headers. | |
4331 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
4332 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
81ecdfbb RW |
4333 | for ac_header in stdlib.h string.h strings.h unistd.h time.h |
4334 | do : | |
4335 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4336 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4337 | eval as_val=\$$as_ac_Header | |
4338 | if test "x$as_val" = x""yes; then : | |
4339 | cat >>confdefs.h <<_ACEOF | |
4340 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4341 | _ACEOF | |
35695fd6 AC |
4342 | |
4343 | fi | |
4344 | ||
4345 | done | |
4346 | ||
b7026657 | 4347 | for ac_header in sys/time.h sys/resource.h |
81ecdfbb RW |
4348 | do : |
4349 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4350 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4351 | eval as_val=\$$as_ac_Header | |
4352 | if test "x$as_val" = x""yes; then : | |
b7026657 | 4353 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4354 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b7026657 AC |
4355 | _ACEOF |
4356 | ||
4357 | fi | |
4358 | ||
c906108c SS |
4359 | done |
4360 | ||
b7026657 | 4361 | for ac_header in fcntl.h fpu_control.h |
81ecdfbb RW |
4362 | do : |
4363 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4364 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4365 | eval as_val=\$$as_ac_Header | |
4366 | if test "x$as_val" = x""yes; then : | |
b7026657 | 4367 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4368 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b7026657 AC |
4369 | _ACEOF |
4370 | ||
c906108c | 4371 | fi |
b7026657 | 4372 | |
c906108c SS |
4373 | done |
4374 | ||
b7026657 | 4375 | for ac_header in dlfcn.h errno.h sys/stat.h |
81ecdfbb RW |
4376 | do : |
4377 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4378 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4379 | eval as_val=\$$as_ac_Header | |
4380 | if test "x$as_val" = x""yes; then : | |
b7026657 | 4381 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4382 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b7026657 AC |
4383 | _ACEOF |
4384 | ||
c906108c | 4385 | fi |
b7026657 | 4386 | |
c906108c SS |
4387 | done |
4388 | ||
4389 | for ac_func in getrusage time sigaction __setfpucw | |
81ecdfbb RW |
4390 | do : |
4391 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4392 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4393 | eval as_val=\$$as_ac_var | |
4394 | if test "x$as_val" = x""yes; then : | |
b7026657 | 4395 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4396 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b7026657 | 4397 | _ACEOF |
c906108c | 4398 | |
c906108c SS |
4399 | fi |
4400 | done | |
4401 | ||
4402 | ||
4403 | # Check for socket libraries | |
81ecdfbb RW |
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 |
4405 | $as_echo_n "checking for bind in -lsocket... " >&6; } | |
4406 | if test "${ac_cv_lib_socket_bind+set}" = set; then : | |
4407 | $as_echo_n "(cached) " >&6 | |
c906108c | 4408 | else |
b7026657 | 4409 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4410 | LIBS="-lsocket $LIBS" |
81ecdfbb | 4411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
4412 | /* end confdefs.h. */ |
4413 | ||
81ecdfbb RW |
4414 | /* Override any GCC internal prototype to avoid an error. |
4415 | Use char because int might match the return type of a GCC | |
4416 | builtin and then its argument prototype would still apply. */ | |
b7026657 AC |
4417 | #ifdef __cplusplus |
4418 | extern "C" | |
4419 | #endif | |
b7026657 AC |
4420 | char bind (); |
4421 | int | |
4422 | main () | |
4423 | { | |
81ecdfbb | 4424 | return bind (); |
b7026657 AC |
4425 | ; |
4426 | return 0; | |
4427 | } | |
4428 | _ACEOF | |
81ecdfbb | 4429 | if ac_fn_c_try_link "$LINENO"; then : |
b7026657 AC |
4430 | ac_cv_lib_socket_bind=yes |
4431 | else | |
81ecdfbb | 4432 | ac_cv_lib_socket_bind=no |
b7026657 | 4433 | fi |
81ecdfbb RW |
4434 | rm -f core conftest.err conftest.$ac_objext \ |
4435 | conftest$ac_exeext conftest.$ac_ext | |
b7026657 AC |
4436 | LIBS=$ac_check_lib_save_LIBS |
4437 | fi | |
81ecdfbb RW |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5 |
4439 | $as_echo "$ac_cv_lib_socket_bind" >&6; } | |
4440 | if test "x$ac_cv_lib_socket_bind" = x""yes; then : | |
b7026657 AC |
4441 | cat >>confdefs.h <<_ACEOF |
4442 | #define HAVE_LIBSOCKET 1 | |
4443 | _ACEOF | |
c906108c SS |
4444 | |
4445 | LIBS="-lsocket $LIBS" | |
4446 | ||
c906108c SS |
4447 | fi |
4448 | ||
81ecdfbb RW |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
4450 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
4451 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : | |
4452 | $as_echo_n "(cached) " >&6 | |
c906108c | 4453 | else |
b7026657 | 4454 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4455 | LIBS="-lnsl $LIBS" |
81ecdfbb | 4456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
4457 | /* end confdefs.h. */ |
4458 | ||
81ecdfbb RW |
4459 | /* Override any GCC internal prototype to avoid an error. |
4460 | Use char because int might match the return type of a GCC | |
4461 | builtin and then its argument prototype would still apply. */ | |
b7026657 AC |
4462 | #ifdef __cplusplus |
4463 | extern "C" | |
4464 | #endif | |
b7026657 AC |
4465 | char gethostbyname (); |
4466 | int | |
4467 | main () | |
4468 | { | |
81ecdfbb | 4469 | return gethostbyname (); |
b7026657 AC |
4470 | ; |
4471 | return 0; | |
4472 | } | |
4473 | _ACEOF | |
81ecdfbb | 4474 | if ac_fn_c_try_link "$LINENO"; then : |
b7026657 AC |
4475 | ac_cv_lib_nsl_gethostbyname=yes |
4476 | else | |
81ecdfbb | 4477 | ac_cv_lib_nsl_gethostbyname=no |
b7026657 | 4478 | fi |
81ecdfbb RW |
4479 | rm -f core conftest.err conftest.$ac_objext \ |
4480 | conftest$ac_exeext conftest.$ac_ext | |
b7026657 AC |
4481 | LIBS=$ac_check_lib_save_LIBS |
4482 | fi | |
81ecdfbb RW |
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
4484 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
4485 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : | |
4486 | cat >>confdefs.h <<_ACEOF | |
4487 | #define HAVE_LIBNSL 1 | |
4488 | _ACEOF | |
4489 | ||
4490 | LIBS="-lnsl $LIBS" | |
b5bd9624 | 4491 | |
b5bd9624 | 4492 | fi |
b5bd9624 | 4493 | |
81ecdfbb RW |
4494 | |
4495 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by | |
4496 | # using the same condition. | |
5912fadd JB |
4497 | |
4498 | # See if the user specified whether he wants zlib support or not. | |
4499 | ||
4500 | # Check whether --with-zlib was given. | |
4501 | if test "${with_zlib+set}" = set; then : | |
4502 | withval=$with_zlib; | |
4503 | else | |
4504 | with_zlib=auto | |
4505 | fi | |
4506 | ||
4507 | ||
4508 | if test "$with_zlib" != "no"; then | |
4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5 | |
81ecdfbb RW |
4510 | $as_echo_n "checking for library containing zlibVersion... " >&6; } |
4511 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
4512 | $as_echo_n "(cached) " >&6 | |
4513 | else | |
4514 | ac_func_search_save_LIBS=$LIBS | |
4515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b5bd9624 | 4516 | /* end confdefs.h. */ |
81ecdfbb RW |
4517 | |
4518 | /* Override any GCC internal prototype to avoid an error. | |
4519 | Use char because int might match the return type of a GCC | |
4520 | builtin and then its argument prototype would still apply. */ | |
4521 | #ifdef __cplusplus | |
4522 | extern "C" | |
4523 | #endif | |
4524 | char zlibVersion (); | |
4525 | int | |
4526 | main () | |
4527 | { | |
4528 | return zlibVersion (); | |
4529 | ; | |
4530 | return 0; | |
4531 | } | |
b5bd9624 | 4532 | _ACEOF |
81ecdfbb RW |
4533 | for ac_lib in '' z; do |
4534 | if test -z "$ac_lib"; then | |
4535 | ac_res="none required" | |
b5bd9624 | 4536 | else |
81ecdfbb RW |
4537 | ac_res=-l$ac_lib |
4538 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
b5bd9624 | 4539 | fi |
81ecdfbb RW |
4540 | if ac_fn_c_try_link "$LINENO"; then : |
4541 | ac_cv_search_zlibVersion=$ac_res | |
b5bd9624 | 4542 | fi |
81ecdfbb RW |
4543 | rm -f core conftest.err conftest.$ac_objext \ |
4544 | conftest$ac_exeext | |
4545 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
4546 | break | |
b5bd9624 | 4547 | fi |
81ecdfbb RW |
4548 | done |
4549 | if test "${ac_cv_search_zlibVersion+set}" = set; then : | |
b5bd9624 | 4550 | |
b5bd9624 | 4551 | else |
81ecdfbb | 4552 | ac_cv_search_zlibVersion=no |
b5bd9624 | 4553 | fi |
81ecdfbb RW |
4554 | rm conftest.$ac_ext |
4555 | LIBS=$ac_func_search_save_LIBS | |
b5bd9624 | 4556 | fi |
81ecdfbb RW |
4557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5 |
4558 | $as_echo "$ac_cv_search_zlibVersion" >&6; } | |
4559 | ac_res=$ac_cv_search_zlibVersion | |
4560 | if test "$ac_res" != no; then : | |
4561 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4562 | for ac_header in zlib.h | |
4563 | do : | |
4564 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
4565 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | |
b5bd9624 | 4566 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4567 | #define HAVE_ZLIB_H 1 |
b5bd9624 HPN |
4568 | _ACEOF |
4569 | ||
4570 | fi | |
4571 | ||
4572 | done | |
4573 | ||
4574 | fi | |
4575 | ||
5912fadd JB |
4576 | if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then |
4577 | as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5 | |
4578 | fi | |
4579 | fi | |
4580 | ||
b5bd9624 | 4581 | |
c906108c SS |
4582 | . ${srcdir}/../../bfd/configure.host |
4583 | ||
4584 | ||
4585 | ||
4586 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
4587 | # Check whether --enable-maintainer-mode was given. |
4588 | if test "${enable_maintainer_mode+set}" = set; then : | |
4589 | enableval=$enable_maintainer_mode; case "${enableval}" in | |
c906108c SS |
4590 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; |
4591 | no) MAINT="#" ;; | |
81ecdfbb | 4592 | *) as_fn_error "\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT="#" ;; |
c906108c SS |
4593 | esac |
4594 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
4595 | echo "Setting maintainer mode" 6>&1 | |
4596 | fi | |
4597 | else | |
4598 | MAINT="#" | |
81ecdfbb RW |
4599 | fi |
4600 | ||
c906108c SS |
4601 | |
4602 | ||
81ecdfbb RW |
4603 | # Check whether --enable-sim-bswap was given. |
4604 | if test "${enable_sim_bswap+set}" = set; then : | |
4605 | enableval=$enable_sim_bswap; case "${enableval}" in | |
c906108c SS |
4606 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; |
4607 | no) sim_bswap="-DWITH_BSWAP=0";; | |
81ecdfbb | 4608 | *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";; |
c906108c SS |
4609 | esac |
4610 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
4611 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
4612 | fi | |
4613 | else | |
4614 | sim_bswap="" | |
81ecdfbb RW |
4615 | fi |
4616 | ||
c906108c SS |
4617 | |
4618 | ||
81ecdfbb RW |
4619 | # Check whether --enable-sim-cflags was given. |
4620 | if test "${enable_sim_cflags+set}" = set; then : | |
4621 | enableval=$enable_sim_cflags; case "${enableval}" in | |
c906108c | 4622 | yes) sim_cflags="-O2 -fomit-frame-pointer";; |
81ecdfbb | 4623 | trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";; |
c906108c SS |
4624 | no) sim_cflags="";; |
4625 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4626 | esac | |
4627 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
4628 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
4629 | fi | |
4630 | else | |
4631 | sim_cflags="" | |
81ecdfbb RW |
4632 | fi |
4633 | ||
c906108c SS |
4634 | |
4635 | ||
81ecdfbb RW |
4636 | # Check whether --enable-sim-debug was given. |
4637 | if test "${enable_sim_debug+set}" = set; then : | |
4638 | enableval=$enable_sim_debug; case "${enableval}" in | |
c906108c SS |
4639 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; |
4640 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
4641 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
4642 | esac | |
4643 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
4644 | echo "Setting sim debug = $sim_debug" 6>&1 | |
4645 | fi | |
4646 | else | |
4647 | sim_debug="" | |
81ecdfbb RW |
4648 | fi |
4649 | ||
c906108c SS |
4650 | |
4651 | ||
81ecdfbb RW |
4652 | # Check whether --enable-sim-stdio was given. |
4653 | if test "${enable_sim_stdio+set}" = set; then : | |
4654 | enableval=$enable_sim_stdio; case "${enableval}" in | |
c906108c SS |
4655 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; |
4656 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
81ecdfbb | 4657 | *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";; |
c906108c SS |
4658 | esac |
4659 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
4660 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
4661 | fi | |
4662 | else | |
b7026657 | 4663 | sim_stdio="" |
81ecdfbb RW |
4664 | fi |
4665 | ||
c906108c SS |
4666 | |
4667 | ||
81ecdfbb RW |
4668 | # Check whether --enable-sim-trace was given. |
4669 | if test "${enable_sim_trace+set}" = set; then : | |
4670 | enableval=$enable_sim_trace; case "${enableval}" in | |
c906108c SS |
4671 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; |
4672 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
4673 | [-0-9]*) | |
4674 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
2232061b | 4675 | [[:lower:]]*) |
c906108c SS |
4676 | sim_trace="" |
4677 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4678 | if test x"$sim_trace" = x; then | |
4679 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
4680 | else | |
4681 | sim_trace="${sim_trace}|TRACE_$x" | |
4682 | fi | |
4683 | done | |
4684 | sim_trace="$sim_trace)'" ;; | |
4685 | esac | |
4686 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
4687 | echo "Setting sim trace = $sim_trace" 6>&1 | |
4688 | fi | |
4689 | else | |
4690 | sim_trace="" | |
81ecdfbb RW |
4691 | fi |
4692 | ||
c906108c SS |
4693 | |
4694 | ||
81ecdfbb RW |
4695 | # Check whether --enable-sim-profile was given. |
4696 | if test "${enable_sim_profile+set}" = set; then : | |
4697 | enableval=$enable_sim_profile; case "${enableval}" in | |
c906108c SS |
4698 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; |
4699 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
4700 | [-0-9]*) | |
4701 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
4702 | [a-z]*) | |
4703 | sim_profile="" | |
4704 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4705 | if test x"$sim_profile" = x; then | |
4706 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
4707 | else | |
4708 | sim_profile="${sim_profile}|PROFILE_$x" | |
4709 | fi | |
4710 | done | |
4711 | sim_profile="$sim_profile)'" ;; | |
4712 | esac | |
4713 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
4714 | echo "Setting sim profile = $sim_profile" 6>&1 | |
4715 | fi | |
4716 | else | |
eb2d80b4 | 4717 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
81ecdfbb RW |
4718 | fi |
4719 | ||
c906108c SS |
4720 | |
4721 | ||
6efef468 | 4722 | |
81ecdfbb RW |
4723 | # Check whether --with-pkgversion was given. |
4724 | if test "${with_pkgversion+set}" = set; then : | |
4725 | withval=$with_pkgversion; case "$withval" in | |
4726 | yes) as_fn_error "package version not specified" "$LINENO" 5 ;; | |
6efef468 JM |
4727 | no) PKGVERSION= ;; |
4728 | *) PKGVERSION="($withval) " ;; | |
4729 | esac | |
4730 | else | |
4731 | PKGVERSION="(GDB) " | |
4732 | ||
81ecdfbb RW |
4733 | fi |
4734 | ||
6efef468 JM |
4735 | |
4736 | ||
4737 | ||
4738 | ||
81ecdfbb RW |
4739 | # Check whether --with-bugurl was given. |
4740 | if test "${with_bugurl+set}" = set; then : | |
4741 | withval=$with_bugurl; case "$withval" in | |
4742 | yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; | |
6efef468 JM |
4743 | no) BUGURL= |
4744 | ;; | |
4745 | *) BUGURL="$withval" | |
4746 | ;; | |
4747 | esac | |
4748 | else | |
4749 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
4750 | ||
81ecdfbb RW |
4751 | fi |
4752 | ||
6efef468 JM |
4753 | case ${BUGURL} in |
4754 | "") | |
4755 | REPORT_BUGS_TO= | |
4756 | REPORT_BUGS_TEXI= | |
4757 | ;; | |
4758 | *) | |
4759 | REPORT_BUGS_TO="<$BUGURL>" | |
4760 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
4761 | ;; | |
4762 | esac; | |
4763 | ||
4764 | ||
4765 | ||
4766 | ||
4767 | cat >>confdefs.h <<_ACEOF | |
4768 | #define PKGVERSION "$PKGVERSION" | |
4769 | _ACEOF | |
4770 | ||
4771 | ||
4772 | cat >>confdefs.h <<_ACEOF | |
4773 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
4774 | _ACEOF | |
4775 | ||
4776 | ||
81ecdfbb RW |
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
4778 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
4779 | if test "${ac_cv_type_signal+set}" = set; then : | |
4780 | $as_echo_n "(cached) " >&6 | |
c906108c | 4781 | else |
81ecdfbb | 4782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 4783 | /* end confdefs.h. */ |
c906108c SS |
4784 | #include <sys/types.h> |
4785 | #include <signal.h> | |
c906108c | 4786 | |
b7026657 AC |
4787 | int |
4788 | main () | |
4789 | { | |
81ecdfbb | 4790 | return *(signal (0, 0)) (0) == 1; |
b7026657 AC |
4791 | ; |
4792 | return 0; | |
4793 | } | |
4794 | _ACEOF | |
81ecdfbb RW |
4795 | if ac_fn_c_try_compile "$LINENO"; then : |
4796 | ac_cv_type_signal=int | |
c906108c | 4797 | else |
81ecdfbb | 4798 | ac_cv_type_signal=void |
c906108c | 4799 | fi |
81ecdfbb | 4800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4801 | fi |
81ecdfbb RW |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
4803 | $as_echo "$ac_cv_type_signal" >&6; } | |
c906108c | 4804 | |
b7026657 | 4805 | cat >>confdefs.h <<_ACEOF |
c906108c | 4806 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 4807 | _ACEOF |
c906108c SS |
4808 | |
4809 | ||
cd0fc7c3 SS |
4810 | |
4811 | ||
c906108c SS |
4812 | |
4813 | sim_link_files= | |
4814 | sim_link_links= | |
4815 | ||
4816 | sim_link_links=tconfig.h | |
4817 | if test -f ${srcdir}/tconfig.in | |
4818 | then | |
4819 | sim_link_files=tconfig.in | |
4820 | else | |
4821 | sim_link_files=../common/tconfig.in | |
4822 | fi | |
4823 | ||
4824 | # targ-vals.def points to the libc macro description file. | |
4825 | case "${target}" in | |
4826 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
4827 | esac | |
4828 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
4829 | sim_link_links="${sim_link_links} targ-vals.def" | |
4830 | ||
c906108c SS |
4831 | |
4832 | ||
6ffe910a | 4833 | |
c906108c | 4834 | default_sim_inline="" |
81ecdfbb RW |
4835 | # Check whether --enable-sim-inline was given. |
4836 | if test "${enable_sim_inline+set}" = set; then : | |
4837 | enableval=$enable_sim_inline; sim_inline="" | |
c906108c SS |
4838 | case "$enableval" in |
4839 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
4840 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
4841 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
4842 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
4843 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
4844 | new_flag="" | |
4845 | case "$x" in | |
4846 | *_INLINE=*) new_flag="-D$x";; | |
4847 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
4848 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
4849 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
4850 | esac | |
4851 | if test x"$sim_inline" = x""; then | |
4852 | sim_inline="$new_flag" | |
4853 | else | |
4854 | sim_inline="$sim_inline $new_flag" | |
4855 | fi | |
4856 | done;; | |
4857 | esac | |
4858 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
4859 | echo "Setting inline flags = $sim_inline" 6>&1 | |
4860 | fi | |
4861 | else | |
b7026657 | 4862 | |
c906108c SS |
4863 | if test "x$cross_compiling" = "xno"; then |
4864 | if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then | |
4865 | sim_inline="${default_sim_inline}" | |
4866 | if test x"$silent" != x"yes"; then | |
4867 | echo "Setting inline flags = $sim_inline" 6>&1 | |
4868 | fi | |
4869 | else | |
4870 | sim_inline="" | |
4871 | fi | |
4872 | else | |
4873 | sim_inline="-DDEFAULT_INLINE=0" | |
4874 | fi | |
81ecdfbb RW |
4875 | fi |
4876 | ||
c906108c SS |
4877 | wire_alignment="NONSTRICT_ALIGNMENT" |
4878 | default_alignment="" | |
4879 | ||
81ecdfbb RW |
4880 | # Check whether --enable-sim-alignment was given. |
4881 | if test "${enable_sim_alignment+set}" = set; then : | |
4882 | enableval=$enable_sim_alignment; case "${enableval}" in | |
c906108c SS |
4883 | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; |
4884 | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
4885 | forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";; | |
4886 | yes) if test x"$wire_alignment" != x; then | |
4887 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
4888 | else | |
4889 | if test x"$default_alignment" != x; then | |
4890 | sim_alignment="-DWITH_ALIGNMENT=${default_alignment}" | |
4891 | else | |
4892 | echo "No hard-wired alignment for target $target" 1>&6 | |
4893 | sim_alignment="-DWITH_ALIGNMENT=0" | |
4894 | fi | |
4895 | fi;; | |
4896 | no) if test x"$default_alignment" != x; then | |
4897 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
4898 | else | |
4899 | if test x"$wire_alignment" != x; then | |
4900 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}" | |
4901 | else | |
4902 | echo "No default alignment for target $target" 1>&6 | |
4903 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0" | |
4904 | fi | |
4905 | fi;; | |
81ecdfbb | 4906 | *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";; |
c906108c SS |
4907 | esac |
4908 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
4909 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
4910 | fi | |
4911 | else | |
4912 | if test x"$default_alignment" != x; then | |
4913 | sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}" | |
4914 | else | |
4915 | if test x"$wire_alignment" != x; then | |
4916 | sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}" | |
4917 | else | |
4918 | sim_alignment= | |
4919 | fi | |
4920 | fi | |
81ecdfbb RW |
4921 | fi |
4922 | ||
c906108c | 4923 | |
81ecdfbb RW |
4924 | # Check whether --enable-sim-hostendian was given. |
4925 | if test "${enable_sim_hostendian+set}" = set; then : | |
4926 | enableval=$enable_sim_hostendian; case "${enableval}" in | |
c906108c SS |
4927 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; |
4928 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
4929 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
81ecdfbb | 4930 | *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";; |
c906108c SS |
4931 | esac |
4932 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
4933 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
4934 | fi | |
4935 | else | |
b7026657 | 4936 | |
c906108c | 4937 | if test "x$cross_compiling" = "xno"; then |
81ecdfbb RW |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
4939 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4940 | if test "${ac_cv_c_bigendian+set}" = set; then : | |
4941 | $as_echo_n "(cached) " >&6 | |
4942 | else | |
4943 | ac_cv_c_bigendian=unknown | |
4944 | # See if we're dealing with a universal compiler. | |
4945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4946 | /* end confdefs.h. */ | |
4947 | #ifndef __APPLE_CC__ | |
4948 | not a universal capable compiler | |
4949 | #endif | |
4950 | typedef int dummy; | |
4951 | ||
4952 | _ACEOF | |
4953 | if ac_fn_c_try_compile "$LINENO"; then : | |
4954 | ||
4955 | # Check for potential -arch flags. It is not universal unless | |
4956 | # there are at least two -arch flags with different values. | |
4957 | ac_arch= | |
4958 | ac_prev= | |
4959 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4960 | if test -n "$ac_prev"; then | |
4961 | case $ac_word in | |
4962 | i?86 | x86_64 | ppc | ppc64) | |
4963 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4964 | ac_arch=$ac_word | |
4965 | else | |
4966 | ac_cv_c_bigendian=universal | |
4967 | break | |
4968 | fi | |
4969 | ;; | |
4970 | esac | |
4971 | ac_prev= | |
4972 | elif test "x$ac_word" = "x-arch"; then | |
4973 | ac_prev=arch | |
4974 | fi | |
4975 | done | |
4976 | fi | |
4977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4978 | if test $ac_cv_c_bigendian = unknown; then | |
4979 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 4981 | /* end confdefs.h. */ |
c906108c | 4982 | #include <sys/types.h> |
81ecdfbb | 4983 | #include <sys/param.h> |
c906108c | 4984 | |
b7026657 AC |
4985 | int |
4986 | main () | |
4987 | { | |
81ecdfbb RW |
4988 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
4989 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4990 | && LITTLE_ENDIAN) | |
4991 | bogus endian macros | |
4992 | #endif | |
b7026657 AC |
4993 | |
4994 | ; | |
4995 | return 0; | |
4996 | } | |
4997 | _ACEOF | |
81ecdfbb | 4998 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c | 4999 | # It does; now see whether it defined to BIG_ENDIAN or not. |
81ecdfbb | 5000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 5001 | /* end confdefs.h. */ |
c906108c | 5002 | #include <sys/types.h> |
81ecdfbb | 5003 | #include <sys/param.h> |
c906108c | 5004 | |
b7026657 AC |
5005 | int |
5006 | main () | |
5007 | { | |
c906108c | 5008 | #if BYTE_ORDER != BIG_ENDIAN |
81ecdfbb RW |
5009 | not big endian |
5010 | #endif | |
b7026657 AC |
5011 | |
5012 | ; | |
5013 | return 0; | |
5014 | } | |
5015 | _ACEOF | |
81ecdfbb | 5016 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
5017 | ac_cv_c_bigendian=yes |
5018 | else | |
81ecdfbb | 5019 | ac_cv_c_bigendian=no |
c906108c | 5020 | fi |
81ecdfbb RW |
5021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5022 | fi | |
5023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5024 | fi | |
5025 | if test $ac_cv_c_bigendian = unknown; then | |
5026 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5028 | /* end confdefs.h. */ | |
5029 | #include <limits.h> | |
b7026657 | 5030 | |
81ecdfbb RW |
5031 | int |
5032 | main () | |
5033 | { | |
5034 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5035 | bogus endian macros | |
5036 | #endif | |
5037 | ||
5038 | ; | |
5039 | return 0; | |
5040 | } | |
b7026657 | 5041 | _ACEOF |
81ecdfbb RW |
5042 | if ac_fn_c_try_compile "$LINENO"; then : |
5043 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 5045 | /* end confdefs.h. */ |
81ecdfbb RW |
5046 | #include <limits.h> |
5047 | ||
b7026657 AC |
5048 | int |
5049 | main () | |
5050 | { | |
81ecdfbb RW |
5051 | #ifndef _BIG_ENDIAN |
5052 | not big endian | |
5053 | #endif | |
5054 | ||
b7026657 AC |
5055 | ; |
5056 | return 0; | |
5057 | } | |
5058 | _ACEOF | |
81ecdfbb | 5059 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 5060 | ac_cv_c_bigendian=yes |
81ecdfbb RW |
5061 | else |
5062 | ac_cv_c_bigendian=no | |
b7026657 | 5063 | fi |
81ecdfbb | 5064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 5065 | fi |
81ecdfbb RW |
5066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5067 | fi | |
5068 | if test $ac_cv_c_bigendian = unknown; then | |
5069 | # Compile a test program. | |
5070 | if test "$cross_compiling" = yes; then : | |
5071 | # Try to guess by grepping values from an object file. | |
5072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5073 | /* end confdefs.h. */ | |
5074 | short int ascii_mm[] = | |
5075 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5076 | short int ascii_ii[] = | |
5077 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5078 | int use_ascii (int i) { | |
5079 | return ascii_mm[i] + ascii_ii[i]; | |
5080 | } | |
5081 | short int ebcdic_ii[] = | |
5082 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5083 | short int ebcdic_mm[] = | |
5084 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5085 | int use_ebcdic (int i) { | |
5086 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5087 | } | |
5088 | extern int foo; | |
b7026657 | 5089 | |
81ecdfbb RW |
5090 | int |
5091 | main () | |
5092 | { | |
5093 | return use_ascii (foo) == use_ebcdic (foo); | |
5094 | ; | |
5095 | return 0; | |
5096 | } | |
b7026657 | 5097 | _ACEOF |
81ecdfbb RW |
5098 | if ac_fn_c_try_compile "$LINENO"; then : |
5099 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5100 | ac_cv_c_bigendian=yes | |
5101 | fi | |
5102 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5103 | if test "$ac_cv_c_bigendian" = unknown; then | |
5104 | ac_cv_c_bigendian=no | |
5105 | else | |
5106 | # finding both strings is unlikely to happen, but who knows? | |
5107 | ac_cv_c_bigendian=unknown | |
5108 | fi | |
5109 | fi | |
5110 | fi | |
5111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5112 | else | |
5113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 5114 | /* end confdefs.h. */ |
81ecdfbb | 5115 | $ac_includes_default |
b7026657 AC |
5116 | int |
5117 | main () | |
5118 | { | |
81ecdfbb RW |
5119 | |
5120 | /* Are we little or big endian? From Harbison&Steele. */ | |
5121 | union | |
5122 | { | |
5123 | long int l; | |
5124 | char c[sizeof (long int)]; | |
5125 | } u; | |
5126 | u.l = 1; | |
5127 | return u.c[sizeof (long int) - 1] == 1; | |
5128 | ||
5129 | ; | |
5130 | return 0; | |
c906108c | 5131 | } |
b7026657 | 5132 | _ACEOF |
81ecdfbb | 5133 | if ac_fn_c_try_run "$LINENO"; then : |
c906108c SS |
5134 | ac_cv_c_bigendian=no |
5135 | else | |
81ecdfbb | 5136 | ac_cv_c_bigendian=yes |
c906108c | 5137 | fi |
81ecdfbb RW |
5138 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5139 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 5140 | fi |
81ecdfbb RW |
5141 | |
5142 | fi | |
c906108c | 5143 | fi |
81ecdfbb RW |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5145 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5146 | case $ac_cv_c_bigendian in #( | |
5147 | yes) | |
5148 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5149 | ;; #( | |
5150 | no) | |
5151 | ;; #( | |
5152 | universal) | |
c906108c | 5153 | |
81ecdfbb RW |
5154 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
5155 | ||
5156 | ;; #( | |
5157 | *) | |
5158 | as_fn_error "unknown endianness | |
5159 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5160 | esac | |
c906108c SS |
5161 | |
5162 | if test $ac_cv_c_bigendian = yes; then | |
5163 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
5164 | else | |
5165 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
5166 | fi | |
5167 | else | |
5168 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
5169 | fi | |
81ecdfbb RW |
5170 | fi |
5171 | ||
c906108c | 5172 | |
2232061b MF |
5173 | # Check whether --enable-werror was given. |
5174 | if test "${enable_werror+set}" = set; then : | |
5175 | enableval=$enable_werror; case "${enableval}" in | |
5176 | yes | y) ERROR_ON_WARNING="yes" ;; | |
5177 | no | n) ERROR_ON_WARNING="no" ;; | |
5178 | *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
5179 | esac | |
5180 | fi | |
5181 | ||
5182 | ||
5183 | # Enable -Werror by default when using gcc | |
5184 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
5185 | ERROR_ON_WARNING=yes | |
51216631 | 5186 | fi |
2232061b MF |
5187 | |
5188 | WERROR_CFLAGS="" | |
5189 | if test "${ERROR_ON_WARNING}" = yes ; then | |
5190 | # NOTE: Disabled in the sim dir due to most sims generating warnings. | |
5191 | # WERROR_CFLAGS="-Werror" | |
5192 | true | |
5193 | fi | |
5194 | ||
5195 | # The entries after -Wno-pointer-sign are disabled warnings which may | |
5196 | # be enabled in the future, which can not currently be used to build | |
5197 | # GDB. | |
5198 | # NOTE: If you change this list, remember to update | |
5199 | # gdb/doc/gdbint.texinfo. | |
5200 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ | |
5201 | -Wformat-nonliteral -Wno-pointer-sign \ | |
5202 | -Wno-unused -Wunused-value -Wunused-function \ | |
5203 | -Wno-switch -Wno-char-subscripts -Wmissing-prototypes" | |
5204 | ||
5205 | # Enable -Wno-format by default when using gcc on mingw since many | |
5206 | # GCC versions complain about %I64. | |
5207 | case "${host}" in | |
5208 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
5209 | esac | |
5210 | ||
81ecdfbb RW |
5211 | # Check whether --enable-build-warnings was given. |
5212 | if test "${enable_build_warnings+set}" = set; then : | |
5213 | enableval=$enable_build_warnings; case "${enableval}" in | |
c8cca39f AC |
5214 | yes) ;; |
5215 | no) build_warnings="-w";; | |
5216 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
5217 | build_warnings="${build_warnings} ${t}";; | |
5218 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
5219 | build_warnings="${t} ${build_warnings}";; | |
5220 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
5221 | esac | |
5222 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
5223 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
5224 | fi | |
81ecdfbb RW |
5225 | fi |
5226 | # Check whether --enable-sim-build-warnings was given. | |
5227 | if test "${enable_sim_build_warnings+set}" = set; then : | |
5228 | enableval=$enable_sim_build_warnings; case "${enableval}" in | |
c906108c SS |
5229 | yes) ;; |
5230 | no) build_warnings="-w";; | |
5231 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c8cca39f | 5232 | build_warnings="${build_warnings} ${t}";; |
c906108c | 5233 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c8cca39f AC |
5234 | build_warnings="${t} ${build_warnings}";; |
5235 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
c906108c SS |
5236 | esac |
5237 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
c8cca39f AC |
5238 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 |
5239 | fi | |
81ecdfbb RW |
5240 | fi |
5241 | WARN_CFLAGS="" | |
d4f3574e SS |
5242 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
5243 | then | |
81ecdfbb RW |
5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 |
5245 | $as_echo_n "checking compiler warning flags... " >&6; } | |
c8cca39f AC |
5246 | # Separate out the -Werror flag as some files just cannot be |
5247 | # compiled with it enabled. | |
5248 | for w in ${build_warnings}; do | |
5249 | case $w in | |
5250 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
5251 | *) # Check that GCC accepts it | |
5252 | saved_CFLAGS="$CFLAGS" | |
5253 | CFLAGS="$CFLAGS $w" | |
81ecdfbb | 5254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 5255 | /* end confdefs.h. */ |
c8cca39f | 5256 | |
b7026657 AC |
5257 | int |
5258 | main () | |
5259 | { | |
c8cca39f | 5260 | |
b7026657 AC |
5261 | ; |
5262 | return 0; | |
5263 | } | |
5264 | _ACEOF | |
81ecdfbb | 5265 | if ac_fn_c_try_compile "$LINENO"; then : |
c8cca39f | 5266 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
c8cca39f | 5267 | fi |
81ecdfbb | 5268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c8cca39f AC |
5269 | CFLAGS="$saved_CFLAGS" |
5270 | esac | |
5271 | done | |
2232061b MF |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
5273 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
c906108c SS |
5274 | fi |
5275 | ||
5276 | ||
e6c674b8 | 5277 | default_sim_reserved_bits="1" |
81ecdfbb RW |
5278 | # Check whether --enable-sim-reserved-bits was given. |
5279 | if test "${enable_sim_reserved_bits+set}" = set; then : | |
5280 | enableval=$enable_sim_reserved_bits; case "${enableval}" in | |
e6c674b8 CD |
5281 | yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";; |
5282 | no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";; | |
81ecdfbb | 5283 | *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";; |
e6c674b8 CD |
5284 | esac |
5285 | if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then | |
5286 | echo "Setting reserved flags = $sim_reserved_bits" 6>&1 | |
5287 | fi | |
5288 | else | |
5289 | sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}" | |
81ecdfbb RW |
5290 | fi |
5291 | ||
e6c674b8 | 5292 | |
c906108c SS |
5293 | # DEPRECATED |
5294 | # | |
5295 | # Instead of defining a `subtarget' macro, code should be checking | |
5296 | # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture | |
5297 | # in question. | |
5298 | # | |
5299 | case "${target}" in | |
4c54fc26 | 5300 | mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; |
c906108c | 5301 | mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";; |
109ad085 | 5302 | mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";; |
1e799e28 CD |
5303 | mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";; |
5304 | mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";; | |
c906108c SS |
5305 | *) SIM_SUBTARGET="";; |
5306 | esac | |
5307 | ||
5308 | ||
5309 | ||
5310 | ||
5311 | # | |
5312 | # Select the byte order of the target | |
5313 | # | |
5314 | mips_endian= | |
5315 | default_endian= | |
5316 | case "${target}" in | |
5317 | mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;; | |
7a292a7a | 5318 | mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;; |
c906108c SS |
5319 | mips64*-*-*) default_endian=BIG_ENDIAN ;; |
5320 | mips16*-*-*) default_endian=BIG_ENDIAN ;; | |
1e799e28 CD |
5321 | mipsisa32*-*-*) default_endian=BIG_ENDIAN ;; |
5322 | mipsisa64*-*-*) default_endian=BIG_ENDIAN ;; | |
c906108c SS |
5323 | mips*-*-*) default_endian=BIG_ENDIAN ;; |
5324 | *) default_endian=BIG_ENDIAN ;; | |
5325 | esac | |
5326 | ||
5327 | wire_endian="$mips_endian" | |
5328 | default_endian="$default_endian" | |
81ecdfbb RW |
5329 | # Check whether --enable-sim-endian was given. |
5330 | if test "${enable_sim_endian+set}" = set; then : | |
5331 | enableval=$enable_sim_endian; case "${enableval}" in | |
c906108c SS |
5332 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; |
5333 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
5334 | yes) if test x"$wire_endian" != x; then | |
5335 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
5336 | else | |
5337 | if test x"$default_endian" != x; then | |
5338 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}" | |
5339 | else | |
5340 | echo "No hard-wired endian for target $target" 1>&6 | |
5341 | sim_endian="-DWITH_TARGET_BYTE_ORDER=0" | |
5342 | fi | |
5343 | fi;; | |
5344 | no) if test x"$default_endian" != x; then | |
5345 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
5346 | else | |
5347 | if test x"$wire_endian" != x; then | |
5348 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}" | |
5349 | else | |
5350 | echo "No default endian for target $target" 1>&6 | |
5351 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0" | |
5352 | fi | |
5353 | fi;; | |
81ecdfbb | 5354 | *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";; |
c906108c SS |
5355 | esac |
5356 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
5357 | echo "Setting endian flags = $sim_endian" 6>&1 | |
5358 | fi | |
5359 | else | |
5360 | if test x"$default_endian" != x; then | |
5361 | sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}" | |
5362 | else | |
5363 | if test x"$wire_endian" != x; then | |
5364 | sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}" | |
5365 | else | |
5366 | sim_endian= | |
5367 | fi | |
5368 | fi | |
81ecdfbb RW |
5369 | fi |
5370 | ||
c906108c SS |
5371 | |
5372 | ||
5373 | ||
5374 | # | |
5375 | # Select the bitsize of the target | |
5376 | # | |
5377 | mips_addr_bitsize= | |
5378 | case "${target}" in | |
109ad085 | 5379 | mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;; |
c906108c SS |
5380 | mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;; |
5381 | mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;; | |
1e799e28 CD |
5382 | mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;; |
5383 | mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;; | |
c906108c SS |
5384 | mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;; |
5385 | *) mips_bitsize=64 ; mips_msb=63 ;; | |
5386 | esac | |
5387 | wire_word_bitsize="$mips_bitsize" | |
5388 | wire_word_msb="$mips_msb" | |
5389 | wire_address_bitsize="$mips_addr_bitsize" | |
5390 | wire_cell_bitsize="" | |
81ecdfbb RW |
5391 | # Check whether --enable-sim-bitsize was given. |
5392 | if test "${enable_sim_bitsize+set}" = set; then : | |
5393 | enableval=$enable_sim_bitsize; sim_bitsize= | |
c906108c SS |
5394 | case "${enableval}" in |
5395 | 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";; | |
5396 | 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";; | |
5397 | 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";; | |
5398 | 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";; | |
5399 | 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then | |
5400 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31" | |
5401 | else | |
5402 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0" | |
5403 | fi ;; | |
5404 | 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then | |
5405 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63" | |
5406 | else | |
5407 | sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0" | |
5408 | fi ;; | |
81ecdfbb | 5409 | *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;; |
c906108c SS |
5410 | esac |
5411 | # address bitsize | |
5412 | tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"` | |
5413 | case x"${tmp}" in | |
5414 | x ) ;; | |
5415 | x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;; | |
5416 | x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;; | |
81ecdfbb | 5417 | * ) as_fn_error "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;; |
c906108c SS |
5418 | esac |
5419 | # cell bitsize | |
5420 | tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"` | |
5421 | case x"${tmp}" in | |
5422 | x ) ;; | |
5423 | x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;; | |
5424 | x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;; | |
81ecdfbb | 5425 | * ) as_fn_error "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;; |
c906108c SS |
5426 | esac |
5427 | if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then | |
5428 | echo "Setting bitsize flags = $sim_bitsize" 6>&1 | |
5429 | fi | |
5430 | else | |
5431 | sim_bitsize="" | |
5432 | if test x"$wire_word_bitsize" != x; then | |
5433 | sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize" | |
5434 | fi | |
5435 | if test x"$wire_word_msb" != x; then | |
5436 | sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb" | |
5437 | fi | |
5438 | if test x"$wire_address_bitsize" != x; then | |
5439 | sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize" | |
5440 | fi | |
5441 | if test x"$wire_cell_bitsize" != x; then | |
5442 | sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize" | |
5443 | fi | |
81ecdfbb RW |
5444 | fi |
5445 | ||
c906108c SS |
5446 | |
5447 | ||
5448 | ||
5449 | # | |
5450 | # Select the floating hardware support of the target | |
5451 | # | |
5452 | mips_fpu=HARDWARE_FLOATING_POINT | |
5453 | mips_fpu_bitsize= | |
5454 | case "${target}" in | |
4b5d35ee | 5455 | mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;; |
109ad085 | 5456 | mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; |
c906108c SS |
5457 | mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;; |
5458 | mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;; | |
1e799e28 CD |
5459 | mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; |
5460 | mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;; | |
c906108c SS |
5461 | mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;; |
5462 | *) mips_fpu=HARD_FLOATING_POINT ;; | |
5463 | esac | |
5464 | ||
5465 | default_sim_float="$mips_fpu" | |
5466 | default_sim_float_bitsize="$mips_fpu_bitsize" | |
81ecdfbb RW |
5467 | # Check whether --enable-sim-float was given. |
5468 | if test "${enable_sim_float+set}" = set; then : | |
5469 | enableval=$enable_sim_float; case "${enableval}" in | |
c906108c SS |
5470 | yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";; |
5471 | no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; | |
5472 | 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";; | |
5473 | 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";; | |
81ecdfbb | 5474 | *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";; |
c906108c SS |
5475 | esac |
5476 | if test x"$silent" != x"yes" && test x"$sim_float" != x""; then | |
5477 | echo "Setting float flags = $sim_float" 6>&1 | |
5478 | fi | |
5479 | else | |
b7026657 | 5480 | |
c906108c SS |
5481 | sim_float= |
5482 | if test x"${default_sim_float}" != x""; then | |
5483 | sim_float="-DWITH_FLOATING_POINT=${default_sim_float}" | |
5484 | fi | |
5485 | if test x"${default_sim_float_bitsize}" != x""; then | |
5486 | sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}" | |
5487 | fi | |
5488 | ||
81ecdfbb RW |
5489 | fi |
5490 | ||
c906108c SS |
5491 | |
5492 | ||
5493 | ||
5494 | # | |
5495 | # Select the level of SMP support | |
5496 | # | |
5497 | case "${target}" in | |
5498 | *) mips_smp=0 ;; | |
5499 | esac | |
5500 | ||
5501 | default_sim_smp="$mips_smp" | |
81ecdfbb RW |
5502 | # Check whether --enable-sim-smp was given. |
5503 | if test "${enable_sim_smp+set}" = set; then : | |
5504 | enableval=$enable_sim_smp; case "${enableval}" in | |
c906108c SS |
5505 | yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";; |
5506 | no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";; | |
5507 | *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";; | |
5508 | esac | |
5509 | if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then | |
5510 | echo "Setting smp flags = $sim_smp" 6>&1 | |
5511 | fi | |
5512 | else | |
5513 | sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}" | |
5514 | if test x"$silent" != x"yes"; then | |
5515 | echo "Setting smp flags = $sim_smp" 6>&1 | |
5516 | fi | |
81ecdfbb RW |
5517 | fi |
5518 | ||
c906108c SS |
5519 | |
5520 | ||
5521 | ||
5522 | # | |
5523 | # Select the IGEN architecture | |
5524 | # | |
5525 | sim_gen=IGEN | |
5526 | sim_igen_machine="-M mipsIV" | |
139181c8 | 5527 | sim_m16_machine="-M mips16,mipsIII" |
c906108c SS |
5528 | sim_igen_filter="32,64,f" |
5529 | sim_m16_filter="16" | |
4c54fc26 CD |
5530 | sim_mach_default="mips8000" |
5531 | ||
c906108c SS |
5532 | case "${target}" in |
5533 | mips*tx39*) sim_gen=IGEN | |
5534 | sim_igen_filter="32,f" | |
5535 | sim_igen_machine="-M r3900" | |
5536 | ;; | |
5537 | mips64vr43*-*-*) sim_gen=IGEN | |
5538 | sim_igen_machine="-M mipsIV" | |
4c54fc26 | 5539 | sim_mach_default="mips8000" |
c906108c SS |
5540 | ;; |
5541 | mips64vr5*-*-*) sim_gen=IGEN | |
5542 | sim_igen_machine="-M vr5000" | |
4c54fc26 | 5543 | sim_mach_default="mips5000" |
c906108c SS |
5544 | ;; |
5545 | mips64vr41*) sim_gen=M16 | |
5546 | sim_igen_machine="-M vr4100" | |
5547 | sim_m16_machine="-M vr4100" | |
5548 | sim_igen_filter="32,64,f" | |
5549 | sim_m16_filter="16" | |
4c54fc26 | 5550 | sim_mach_default="mips4100" |
c906108c | 5551 | ;; |
4c54fc26 CD |
5552 | mips64vr-*-* | mips64vrel-*-*) |
5553 | sim_gen=MULTI | |
5554 | sim_multi_configs="\ | |
5555 | vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\ | |
5556 | vr4120:mipsIII,mips16,vr4120:32,64:mips4120\ | |
5557 | vr5000:mipsIV:32,64,f:mips4300,mips5000\ | |
5558 | vr5400:mipsIV,vr5400:32,64,f:mips5400\ | |
5559 | vr5500:mipsIV,vr5500:32,64,f:mips5500" | |
5560 | sim_multi_default=mips5000 | |
5561 | ;; | |
109ad085 | 5562 | mips*-sde-elf*) sim_gen=M16 |
8b082fb1 | 5563 | sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips" |
109ad085 TS |
5564 | sim_m16_machine="-M mips16,mips16e,mips64r2" |
5565 | sim_igen_filter="32,64,f" | |
5566 | sim_mach_default="mipsisa64r2" | |
5567 | ;; | |
c906108c SS |
5568 | mips64*-*-*) sim_igen_filter="32,64,f" |
5569 | sim_gen=IGEN | |
5570 | ;; | |
5571 | mips16*-*-*) sim_gen=M16 | |
5572 | sim_igen_filter="32,64,f" | |
5573 | sim_m16_filter="16" | |
5574 | ;; | |
d5fb0879 RS |
5575 | mipsisa32r2*-*-*) sim_gen=M16 |
5576 | sim_igen_machine="-M mips32r2,mips16,mips16e,mdmx,dsp,dsp2,smartmips" | |
5577 | sim_m16_machine="-M mips16,mips16e,mips32r2" | |
5578 | sim_igen_filter="32,f" | |
5579 | sim_mach_default="mipsisa32r2" | |
e70cb6cd | 5580 | ;; |
d5fb0879 RS |
5581 | mipsisa32*-*-*) sim_gen=M16 |
5582 | sim_igen_machine="-M mips32,mips16,mips16e,smartmips" | |
5583 | sim_m16_machine="-M mips16,mips16e,mips32" | |
5584 | sim_igen_filter="32,f" | |
5585 | sim_mach_default="mipsisa32" | |
1e799e28 | 5586 | ;; |
d5fb0879 RS |
5587 | mipsisa64r2*-*-*) sim_gen=M16 |
5588 | sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2" | |
5589 | sim_m16_machine="-M mips16,mips16e,mips64r2" | |
5590 | sim_igen_filter="32,64,f" | |
5591 | sim_mach_default="mipsisa64r2" | |
e70cb6cd | 5592 | ;; |
7cbea089 | 5593 | mipsisa64sb1*-*-*) sim_gen=IGEN |
109ad085 | 5594 | sim_igen_machine="-M mips64,mips3d,sb1" |
7cbea089 | 5595 | sim_igen_filter="32,64,f" |
4c54fc26 | 5596 | sim_mach_default="mips_sb1" |
7cbea089 | 5597 | ;; |
d5fb0879 RS |
5598 | mipsisa64*-*-*) sim_gen=M16 |
5599 | sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx" | |
5600 | sim_m16_machine="-M mips16,mips16e,mips64" | |
5601 | sim_igen_filter="32,64,f" | |
5602 | sim_mach_default="mipsisa64" | |
1e799e28 | 5603 | ;; |
109ad085 | 5604 | mips*lsi*) sim_gen=M16 |
c906108c SS |
5605 | sim_igen_machine="-M mipsIII,mips16" |
5606 | sim_m16_machine="-M mips16,mipsIII" | |
5607 | sim_igen_filter="32,f" | |
5608 | sim_m16_filter="16" | |
4c54fc26 | 5609 | sim_mach_default="mips4000" |
109ad085 | 5610 | ;; |
c906108c SS |
5611 | mips*-*-*) sim_gen=IGEN |
5612 | sim_igen_filter="32,f" | |
5613 | ;; | |
5614 | esac | |
4c54fc26 CD |
5615 | |
5616 | # The MULTI generator can combine several simulation engines into one. | |
5617 | # executable. A configuration which uses the MULTI should set two | |
5618 | # variables: ${sim_multi_configs} and ${sim_multi_default}. | |
5619 | # | |
5620 | # ${sim_multi_configs} is the list of engines to build. Each | |
5621 | # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS, | |
5622 | # where: | |
5623 | # | |
5624 | # - NAME is a C-compatible prefix for the engine, | |
5625 | # - MACHINE is a -M argument, | |
5626 | # - FILTER is a -F argument, and | |
5627 | # - BFDMACHS is a comma-separated list of bfd machines that the | |
5628 | # simulator can run. | |
5629 | # | |
5630 | # Each entry will have a separate simulation engine whose prefix is | |
5631 | # m32<NAME>. If the machine list includes "mips16", there will also | |
5632 | # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be | |
5633 | # generated using the same machine list as the 32-bit version, | |
5634 | # but the filter will be "16" instead of FILTER. | |
5635 | # | |
5636 | # The simulator compares the bfd mach against BFDMACHS to decide | |
5637 | # which engine to use. Entries in BFDMACHS should be bfd_mach | |
5638 | # values with "bfd_mach_" removed. ${sim_multi_default} says | |
5639 | # which entry should be the default. | |
5640 | if test ${sim_gen} = MULTI; then | |
5641 | ||
5642 | # Simple sanity check. | |
5643 | if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then | |
81ecdfbb | 5644 | as_fn_error "Error in configure.in: MULTI simulator not set up correctly" "$LINENO" 5 |
4c54fc26 CD |
5645 | fi |
5646 | ||
5647 | # Start in a known state. | |
5648 | rm -f multi-include.h multi-run.c | |
5649 | sim_multi_flags= | |
5650 | sim_multi_src= | |
5651 | sim_multi_obj=multi-run.o | |
5652 | sim_multi_igen_configs= | |
5653 | sim_seen_default=no | |
5654 | ||
5655 | cat << __EOF__ > multi-run.c | |
5656 | /* Main entry point for MULTI simulators. | |
2232061b | 5657 | Copyright (C) 2003, 2007, 2010, 2012 Free Software Foundation, Inc. |
4c54fc26 CD |
5658 | |
5659 | This program is free software; you can redistribute it and/or modify | |
5660 | it under the terms of the GNU General Public License as published by | |
35ee6e1e | 5661 | the Free Software Foundation; either version 3 of the License, or |
4c54fc26 CD |
5662 | (at your option) any later version. |
5663 | ||
5664 | This program is distributed in the hope that it will be useful, | |
5665 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
5666 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
5667 | GNU General Public License for more details. | |
5668 | ||
5669 | You should have received a copy of the GNU General Public License | |
35ee6e1e | 5670 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
4c54fc26 CD |
5671 | |
5672 | -- | |
5673 | ||
5674 | This file was generated by sim/mips/configure. */ | |
5675 | ||
5676 | #include "sim-main.h" | |
5677 | #include "multi-include.h" | |
5678 | ||
5679 | #define SD sd | |
5680 | #define CPU cpu | |
5681 | ||
5682 | void | |
5683 | sim_engine_run (SIM_DESC sd, | |
5684 | int next_cpu_nr, | |
5685 | int nr_cpus, | |
5686 | int signal) /* ignore */ | |
5687 | { | |
5688 | int mach; | |
5689 | ||
5690 | if (STATE_ARCHITECTURE (sd) == NULL) | |
5691 | mach = bfd_mach_${sim_multi_default}; | |
5692 | else | |
5693 | mach = STATE_ARCHITECTURE (SD)->mach; | |
5694 | ||
5695 | switch (mach) | |
5696 | { | |
5697 | __EOF__ | |
5698 | ||
5699 | for fc in ${sim_multi_configs}; do | |
5700 | ||
5701 | # Split up the entry. ${c} contains the first three elements. | |
5702 | # Note: outer sqaure brackets are m4 quotes. | |
5703 | c=`echo ${fc} | sed 's/:[^:]*$//'` | |
5704 | bfdmachs=`echo ${fc} | sed 's/.*://'` | |
5705 | name=`echo ${c} | sed 's/:.*//'` | |
5706 | machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'` | |
5707 | filter=`echo ${c} | sed 's/.*://'` | |
5708 | ||
5709 | # Build the following lists: | |
5710 | # | |
5711 | # sim_multi_flags: all -M and -F flags used by the simulator | |
5712 | # sim_multi_src: all makefile-generated source files | |
5713 | # sim_multi_obj: the objects for ${sim_multi_src} | |
5714 | # sim_multi_igen_configs: igen configuration strings. | |
5715 | # | |
5716 | # Each entry in ${sim_multi_igen_configs} is a prefix (m32 | |
5717 | # or m16) followed by the NAME, MACHINE and FILTER part of | |
5718 | # the ${sim_multi_configs} entry. | |
5719 | sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}" | |
5720 | ||
5721 | # Check whether mips16 handling is needed. | |
5722 | case ${c} in | |
5723 | *:*mips16*:*) | |
5724 | # Run igen twice, once for normal mode and once for mips16. | |
5725 | ws="m32 m16" | |
5726 | ||
5727 | # The top-level function for the mips16 simulator is | |
5728 | # in a file m16${name}_run.c, generated by the | |
5729 | # tmp-run-multi Makefile rule. | |
5730 | sim_multi_src="${sim_multi_src} m16${name}_run.c" | |
5731 | sim_multi_obj="${sim_multi_obj} m16${name}_run.o" | |
5732 | sim_multi_flags="${sim_multi_flags} -F 16" | |
5733 | ;; | |
5734 | *) | |
5735 | ws=m32 | |
5736 | ;; | |
5737 | esac | |
5738 | ||
5739 | # Now add the list of igen-generated files to ${sim_multi_src} | |
5740 | # and ${sim_multi_obj}. | |
5741 | for w in ${ws}; do | |
5742 | for base in engine icache idecode model semantics support; do | |
5743 | sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c" | |
5744 | sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h" | |
5745 | sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o" | |
5746 | done | |
5747 | sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}" | |
5748 | done | |
5749 | ||
5750 | # Add an include for the engine.h file. This file declares the | |
5751 | # top-level foo_engine_run() function. | |
5752 | echo "#include \"${w}${name}_engine.h\"" >> multi-include.h | |
5753 | ||
5754 | # Add case statements for this engine to sim_engine_run(). | |
5755 | for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do | |
5756 | echo " case bfd_mach_${mach}:" >> multi-run.c | |
5757 | if test ${mach} = ${sim_multi_default}; then | |
5758 | echo " default:" >> multi-run.c | |
5759 | sim_seen_default=yes | |
5760 | fi | |
5761 | done | |
5762 | echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \ | |
5763 | >> multi-run.c | |
5764 | echo " break;" >> multi-run.c | |
5765 | done | |
5766 | ||
5767 | # Check whether we added a 'default:' label. | |
5768 | if test ${sim_seen_default} = no; then | |
81ecdfbb | 5769 | as_fn_error "Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5 |
4c54fc26 CD |
5770 | fi |
5771 | ||
5772 | cat << __EOF__ >> multi-run.c | |
5773 | } | |
5774 | } | |
5775 | ||
5776 | int | |
5777 | mips_mach_multi (SIM_DESC sd) | |
5778 | { | |
5779 | if (STATE_ARCHITECTURE (sd) == NULL) | |
5780 | return bfd_mach_${sim_multi_default}; | |
5781 | ||
5782 | switch (STATE_ARCHITECTURE (SD)->mach) | |
5783 | { | |
5784 | __EOF__ | |
5785 | ||
5786 | # Add case statements for this engine to mips_mach_multi(). | |
5787 | for fc in ${sim_multi_configs}; do | |
5788 | ||
5789 | # Split up the entry. ${c} contains the first three elements. | |
5790 | # Note: outer sqaure brackets are m4 quotes. | |
5791 | c=`echo ${fc} | sed 's/:[^:]*$//'` | |
5792 | bfdmachs=`echo ${fc} | sed 's/.*://'` | |
5793 | ||
5794 | for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do | |
5795 | echo " case bfd_mach_${mach}:" >> multi-run.c | |
5796 | done | |
5797 | done | |
5798 | ||
5799 | cat << __EOF__ >> multi-run.c | |
5800 | return (STATE_ARCHITECTURE (SD)->mach); | |
5801 | default: | |
5802 | return bfd_mach_${sim_multi_default}; | |
5803 | } | |
5804 | } | |
5805 | __EOF__ | |
5806 | ||
5807 | SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI" | |
5808 | else | |
5809 | # For clean-extra | |
5810 | sim_multi_src=doesnt-exist.c | |
5811 | ||
5812 | if test x"${sim_mach_default}" = x""; then | |
81ecdfbb | 5813 | as_fn_error "Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5 |
4c54fc26 CD |
5814 | fi |
5815 | SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}" | |
5816 | fi | |
c906108c SS |
5817 | sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}" |
5818 | sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}" | |
5819 | ||
5820 | ||
5821 | ||
5822 | ||
5823 | ||
4c54fc26 CD |
5824 | |
5825 | ||
5826 | ||
5827 | ||
c906108c SS |
5828 | # |
5829 | # Add simulated hardware devices | |
5830 | # | |
5831 | hw_enabled=no | |
5832 | case "${target}" in | |
5833 | mips*tx39*) | |
5834 | hw_enabled=yes | |
b7026657 | 5835 | hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio" |
c906108c SS |
5836 | mips_extra_objs="dv-sockser.o" |
5837 | SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1" | |
5838 | ;; | |
5839 | *) | |
b7026657 | 5840 | mips_extra_objs="" |
c906108c SS |
5841 | ;; |
5842 | esac | |
5843 | ||
5844 | if test x"$hw_enabled" = x"yes"; then | |
5845 | sim_hw_p=yes | |
5846 | else | |
5847 | sim_hw_p=no | |
5848 | fi | |
5849 | if test "$hw_devices"; then | |
6ffe910a | 5850 | hardware="$hw_devices" |
c906108c | 5851 | else |
6ffe910a | 5852 | hardware="cfi core pal glue" |
c906108c | 5853 | fi |
6ffe910a | 5854 | hardware="$hardware $hw_extra_devices" |
c906108c SS |
5855 | sim_hw_cflags="-DWITH_HW=1" |
5856 | sim_hw="$hardware" | |
5857 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
81ecdfbb RW |
5858 | # Check whether --enable-sim-hardware was given. |
5859 | if test "${enable_sim_hardware+set}" = set; then : | |
5860 | enableval=$enable_sim_hardware; | |
c906108c SS |
5861 | case "${enableval}" in |
5862 | yes) sim_hw_p=yes;; | |
5863 | no) sim_hw_p=no;; | |
5864 | ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
5865 | *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
5866 | *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
5867 | esac | |
5868 | if test "$sim_hw_p" != yes; then | |
5869 | sim_hw_objs= | |
5870 | sim_hw_cflags="-DWITH_HW=0" | |
5871 | sim_hw= | |
5872 | else | |
5873 | sim_hw_cflags="-DWITH_HW=1" | |
5874 | # remove duplicates | |
5875 | sim_hw="" | |
5876 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
b3a3ffef HPN |
5877 | for i in $hardware ; do |
5878 | case " $sim_hw " in | |
c906108c SS |
5879 | *" $i "*) ;; |
5880 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
5881 | esac | |
5882 | done | |
5883 | fi | |
5884 | if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then | |
5885 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
5886 | fi | |
5887 | else | |
b7026657 | 5888 | |
c906108c SS |
5889 | if test "$sim_hw_p" != yes; then |
5890 | sim_hw_objs= | |
5891 | sim_hw_cflags="-DWITH_HW=0" | |
5892 | sim_hw= | |
5893 | fi | |
5894 | if test x"$silent" != x"yes"; then | |
5895 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
5896 | fi | |
81ecdfbb RW |
5897 | fi |
5898 | ||
4399a56b MF |
5899 | case " $hardware " in |
5900 | *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5 | |
5901 | $as_echo_n "checking for log2 in -lm... " >&6; } | |
5902 | if test "${ac_cv_lib_m_log2+set}" = set; then : | |
5903 | $as_echo_n "(cached) " >&6 | |
5904 | else | |
5905 | ac_check_lib_save_LIBS=$LIBS | |
5906 | LIBS="-lm $LIBS" | |
5907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5908 | /* end confdefs.h. */ | |
5909 | ||
5910 | /* Override any GCC internal prototype to avoid an error. | |
5911 | Use char because int might match the return type of a GCC | |
5912 | builtin and then its argument prototype would still apply. */ | |
5913 | #ifdef __cplusplus | |
5914 | extern "C" | |
5915 | #endif | |
5916 | char log2 (); | |
5917 | int | |
5918 | main () | |
5919 | { | |
5920 | return log2 (); | |
5921 | ; | |
5922 | return 0; | |
5923 | } | |
5924 | _ACEOF | |
5925 | if ac_fn_c_try_link "$LINENO"; then : | |
5926 | ac_cv_lib_m_log2=yes | |
5927 | else | |
5928 | ac_cv_lib_m_log2=no | |
5929 | fi | |
5930 | rm -f core conftest.err conftest.$ac_objext \ | |
5931 | conftest$ac_exeext conftest.$ac_ext | |
5932 | LIBS=$ac_check_lib_save_LIBS | |
5933 | fi | |
5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5 | |
5935 | $as_echo "$ac_cv_lib_m_log2" >&6; } | |
5936 | if test "x$ac_cv_lib_m_log2" = x""yes; then : | |
5937 | cat >>confdefs.h <<_ACEOF | |
5938 | #define HAVE_LIBM 1 | |
5939 | _ACEOF | |
5940 | ||
5941 | LIBS="-lm $LIBS" | |
5942 | ||
5943 | fi | |
5944 | ;; | |
5945 | esac | |
5946 | ||
c906108c SS |
5947 | |
5948 | ||
5949 | ||
5950 | # Choose simulator engine | |
5951 | case "${target}" in | |
5952 | *) mips_igen_engine="engine.o" | |
5953 | ;; | |
5954 | esac | |
5955 | ||
5956 | ||
5957 | ||
81ecdfbb RW |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
5959 | $as_echo_n "checking for X... " >&6; } | |
b7026657 | 5960 | |
c906108c | 5961 | |
81ecdfbb RW |
5962 | # Check whether --with-x was given. |
5963 | if test "${with_x+set}" = set; then : | |
5964 | withval=$with_x; | |
5965 | fi | |
c906108c SS |
5966 | |
5967 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
5968 | if test "x$with_x" = xno; then | |
5969 | # The user explicitly disabled X. | |
5970 | have_x=disabled | |
5971 | else | |
81ecdfbb RW |
5972 | case $x_includes,$x_libraries in #( |
5973 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( | |
5974 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : | |
5975 | $as_echo_n "(cached) " >&6 | |
c906108c SS |
5976 | else |
5977 | # One or both of the vars are not set, and there is no cached value. | |
b7026657 | 5978 | ac_x_includes=no ac_x_libraries=no |
81ecdfbb | 5979 | rm -f -r conftest.dir |
b7026657 AC |
5980 | if mkdir conftest.dir; then |
5981 | cd conftest.dir | |
b7026657 | 5982 | cat >Imakefile <<'_ACEOF' |
81ecdfbb RW |
5983 | incroot: |
5984 | @echo incroot='${INCROOT}' | |
5985 | usrlibdir: | |
5986 | @echo usrlibdir='${USRLIBDIR}' | |
5987 | libdir: | |
5988 | @echo libdir='${LIBDIR}' | |
5989 | _ACEOF | |
5990 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
c906108c | 5991 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
81ecdfbb RW |
5992 | for ac_var in incroot usrlibdir libdir; do |
5993 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
5994 | done | |
c906108c | 5995 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
81ecdfbb RW |
5996 | for ac_extension in a so sl dylib la dll; do |
5997 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | |
5998 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
b7026657 | 5999 | ac_im_usrlibdir=$ac_im_libdir; break |
c906108c SS |
6000 | fi |
6001 | done | |
6002 | # Screen out bogus values from the imake configuration. They are | |
6003 | # bogus both because they are the default anyway, and because | |
6004 | # using them would break gcc on systems where it needs fixed includes. | |
b7026657 | 6005 | case $ac_im_incroot in |
81ecdfbb | 6006 | /usr/include) ac_x_includes= ;; |
b7026657 | 6007 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 6008 | esac |
b7026657 | 6009 | case $ac_im_usrlibdir in |
81ecdfbb | 6010 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
b7026657 | 6011 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
6012 | esac |
6013 | fi | |
6014 | cd .. | |
81ecdfbb | 6015 | rm -f -r conftest.dir |
c906108c SS |
6016 | fi |
6017 | ||
b7026657 AC |
6018 | # Standard set of common directories for X headers. |
6019 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
6020 | ac_x_header_dirs=' | |
6021 | /usr/X11/include | |
81ecdfbb | 6022 | /usr/X11R7/include |
b7026657 AC |
6023 | /usr/X11R6/include |
6024 | /usr/X11R5/include | |
6025 | /usr/X11R4/include | |
6026 | ||
6027 | /usr/include/X11 | |
81ecdfbb | 6028 | /usr/include/X11R7 |
b7026657 AC |
6029 | /usr/include/X11R6 |
6030 | /usr/include/X11R5 | |
6031 | /usr/include/X11R4 | |
6032 | ||
6033 | /usr/local/X11/include | |
81ecdfbb | 6034 | /usr/local/X11R7/include |
b7026657 AC |
6035 | /usr/local/X11R6/include |
6036 | /usr/local/X11R5/include | |
6037 | /usr/local/X11R4/include | |
6038 | ||
6039 | /usr/local/include/X11 | |
81ecdfbb | 6040 | /usr/local/include/X11R7 |
b7026657 AC |
6041 | /usr/local/include/X11R6 |
6042 | /usr/local/include/X11R5 | |
6043 | /usr/local/include/X11R4 | |
6044 | ||
6045 | /usr/X386/include | |
6046 | /usr/x386/include | |
6047 | /usr/XFree86/include/X11 | |
6048 | ||
6049 | /usr/include | |
6050 | /usr/local/include | |
6051 | /usr/unsupported/include | |
6052 | /usr/athena/include | |
6053 | /usr/local/x11r5/include | |
6054 | /usr/lpp/Xamples/include | |
6055 | ||
6056 | /usr/openwin/include | |
6057 | /usr/openwin/share/include' | |
6058 | ||
6059 | if test "$ac_x_includes" = no; then | |
81ecdfbb | 6060 | # Guess where to find include files, by looking for Xlib.h. |
c906108c | 6061 | # First, try using that file with no special directory specified. |
81ecdfbb | 6062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 6063 | /* end confdefs.h. */ |
81ecdfbb | 6064 | #include <X11/Xlib.h> |
b7026657 | 6065 | _ACEOF |
81ecdfbb | 6066 | if ac_fn_c_try_cpp "$LINENO"; then : |
c906108c SS |
6067 | # We can compile using X headers with no special include directory. |
6068 | ac_x_includes= | |
6069 | else | |
b7026657 | 6070 | for ac_dir in $ac_x_header_dirs; do |
81ecdfbb | 6071 | if test -r "$ac_dir/X11/Xlib.h"; then |
b7026657 AC |
6072 | ac_x_includes=$ac_dir |
6073 | break | |
6074 | fi | |
6075 | done | |
c906108c | 6076 | fi |
b7026657 AC |
6077 | rm -f conftest.err conftest.$ac_ext |
6078 | fi # $ac_x_includes = no | |
c906108c | 6079 | |
b7026657 | 6080 | if test "$ac_x_libraries" = no; then |
c906108c | 6081 | # Check for the libraries. |
c906108c SS |
6082 | # See if we find them without any special options. |
6083 | # Don't add to $LIBS permanently. | |
b7026657 | 6084 | ac_save_LIBS=$LIBS |
81ecdfbb RW |
6085 | LIBS="-lX11 $LIBS" |
6086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 6087 | /* end confdefs.h. */ |
81ecdfbb | 6088 | #include <X11/Xlib.h> |
b7026657 AC |
6089 | int |
6090 | main () | |
6091 | { | |
81ecdfbb | 6092 | XrmInitialize () |
b7026657 AC |
6093 | ; |
6094 | return 0; | |
6095 | } | |
6096 | _ACEOF | |
81ecdfbb | 6097 | if ac_fn_c_try_link "$LINENO"; then : |
b7026657 | 6098 | LIBS=$ac_save_LIBS |
c906108c SS |
6099 | # We can link X programs with no special library path. |
6100 | ac_x_libraries= | |
6101 | else | |
81ecdfbb RW |
6102 | LIBS=$ac_save_LIBS |
6103 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
b7026657 | 6104 | do |
81ecdfbb RW |
6105 | # Don't even attempt the hair of trying to link an X program! |
6106 | for ac_extension in a so sl dylib la dll; do | |
6107 | if test -r "$ac_dir/libX11.$ac_extension"; then | |
6108 | ac_x_libraries=$ac_dir | |
6109 | break 2 | |
6110 | fi | |
6111 | done | |
6112 | done | |
b7026657 | 6113 | fi |
81ecdfbb RW |
6114 | rm -f core conftest.err conftest.$ac_objext \ |
6115 | conftest$ac_exeext conftest.$ac_ext | |
6116 | fi # $ac_x_libraries = no | |
b7026657 | 6117 | |
81ecdfbb RW |
6118 | case $ac_x_includes,$ac_x_libraries in #( |
6119 | no,* | *,no | *\'*) | |
6120 | # Didn't find X, or a directory has "'" in its name. | |
6121 | ac_cv_have_x="have_x=no";; #( | |
6122 | *) | |
6123 | # Record where we found X for the cache. | |
6124 | ac_cv_have_x="have_x=yes\ | |
6125 | ac_x_includes='$ac_x_includes'\ | |
6126 | ac_x_libraries='$ac_x_libraries'" | |
6127 | esac | |
b7026657 | 6128 | fi |
81ecdfbb RW |
6129 | ;; #( |
6130 | *) have_x=yes;; | |
6131 | esac | |
6132 | eval "$ac_cv_have_x" | |
6133 | fi # $with_x != no | |
b7026657 | 6134 | |
81ecdfbb RW |
6135 | if test "$have_x" != yes; then |
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | |
6137 | $as_echo "$have_x" >&6; } | |
6138 | no_x=yes | |
b7026657 | 6139 | else |
81ecdfbb RW |
6140 | # If each of the values was on the command line, it overrides each guess. |
6141 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
6142 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
6143 | # Update the cache value to reflect the command line values. | |
6144 | ac_cv_have_x="have_x=yes\ | |
6145 | ac_x_includes='$x_includes'\ | |
6146 | ac_x_libraries='$x_libraries'" | |
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | |
6148 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | |
b7026657 | 6149 | fi |
b7026657 | 6150 | |
81ecdfbb RW |
6151 | mips_extra_libs="" |
6152 | ||
6153 | ||
6154 | for ac_header in string.h strings.h stdlib.h stdlib.h | |
6155 | do : | |
6156 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6157 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6158 | eval as_val=\$$as_ac_Header | |
6159 | if test "x$as_val" = x""yes; then : | |
b7026657 | 6160 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6161 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
b7026657 AC |
6162 | _ACEOF |
6163 | ||
6164 | fi | |
6165 | ||
6166 | done | |
6167 | ||
81ecdfbb RW |
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5 |
6169 | $as_echo_n "checking for fabs in -lm... " >&6; } | |
6170 | if test "${ac_cv_lib_m_fabs+set}" = set; then : | |
6171 | $as_echo_n "(cached) " >&6 | |
b7026657 AC |
6172 | else |
6173 | ac_check_lib_save_LIBS=$LIBS | |
6174 | LIBS="-lm $LIBS" | |
81ecdfbb | 6175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
6176 | /* end confdefs.h. */ |
6177 | ||
81ecdfbb RW |
6178 | /* Override any GCC internal prototype to avoid an error. |
6179 | Use char because int might match the return type of a GCC | |
6180 | builtin and then its argument prototype would still apply. */ | |
b7026657 AC |
6181 | #ifdef __cplusplus |
6182 | extern "C" | |
6183 | #endif | |
b7026657 AC |
6184 | char fabs (); |
6185 | int | |
6186 | main () | |
6187 | { | |
81ecdfbb | 6188 | return fabs (); |
b7026657 AC |
6189 | ; |
6190 | return 0; | |
6191 | } | |
6192 | _ACEOF | |
81ecdfbb | 6193 | if ac_fn_c_try_link "$LINENO"; then : |
b7026657 AC |
6194 | ac_cv_lib_m_fabs=yes |
6195 | else | |
81ecdfbb | 6196 | ac_cv_lib_m_fabs=no |
b7026657 | 6197 | fi |
81ecdfbb RW |
6198 | rm -f core conftest.err conftest.$ac_objext \ |
6199 | conftest$ac_exeext conftest.$ac_ext | |
b7026657 AC |
6200 | LIBS=$ac_check_lib_save_LIBS |
6201 | fi | |
81ecdfbb RW |
6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5 |
6203 | $as_echo "$ac_cv_lib_m_fabs" >&6; } | |
6204 | if test "x$ac_cv_lib_m_fabs" = x""yes; then : | |
b7026657 AC |
6205 | cat >>confdefs.h <<_ACEOF |
6206 | #define HAVE_LIBM 1 | |
6207 | _ACEOF | |
6208 | ||
6209 | LIBS="-lm $LIBS" | |
6210 | ||
6211 | fi | |
6212 | ||
b7026657 | 6213 | for ac_func in aint anint sqrt |
81ecdfbb RW |
6214 | do : |
6215 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6216 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
6217 | eval as_val=\$$as_ac_var | |
6218 | if test "x$as_val" = x""yes; then : | |
b7026657 | 6219 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 6220 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b7026657 AC |
6221 | _ACEOF |
6222 | ||
6223 | fi | |
6224 | done | |
6225 | ||
6226 | ||
6227 | ||
6228 | ac_sources="$sim_link_files" | |
6229 | ac_dests="$sim_link_links" | |
6230 | while test -n "$ac_sources"; do | |
6231 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
6232 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
6233 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
6234 | done | |
81ecdfbb | 6235 | ac_config_links="$ac_config_links $ac_config_links_1" |
b7026657 AC |
6236 | |
6237 | cgen_breaks="" | |
6238 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
6239 | cgen_breaks="break cgen_rtx_error"; | |
6240 | fi | |
6241 | ||
81ecdfbb | 6242 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" |
38f48d72 | 6243 | |
81ecdfbb | 6244 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" |
38f48d72 | 6245 | |
81ecdfbb | 6246 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" |
38f48d72 | 6247 | |
81ecdfbb | 6248 | ac_config_commands="$ac_config_commands Makefile" |
38f48d72 | 6249 | |
81ecdfbb | 6250 | ac_config_commands="$ac_config_commands stamp-h" |
38f48d72 | 6251 | |
b7026657 AC |
6252 | cat >confcache <<\_ACEOF |
6253 | # This file is a shell script that caches the results of configure | |
6254 | # tests run on this system so they can be shared between configure | |
6255 | # scripts and configure runs, see configure's option --config-cache. | |
6256 | # It is not useful on other systems. If it contains results you don't | |
6257 | # want to keep, you may remove or edit it. | |
6258 | # | |
6259 | # config.status only pays attention to the cache file if you give it | |
6260 | # the --recheck option to rerun configure. | |
6261 | # | |
6262 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6263 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6264 | # following values. | |
6265 | ||
6266 | _ACEOF | |
6267 | ||
6268 | # The following way of writing the cache mishandles newlines in values, | |
6269 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 6270 | # So, we kill variables containing newlines. |
b7026657 AC |
6271 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6272 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
6273 | ( |
6274 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6275 | eval ac_val=\$$ac_var | |
6276 | case $ac_val in #( | |
6277 | *${as_nl}*) | |
6278 | case $ac_var in #( | |
6279 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6280 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6281 | esac | |
6282 | case $ac_var in #( | |
6283 | _ | IFS | as_nl) ;; #( | |
6284 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6285 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6286 | esac ;; | |
6287 | esac | |
6288 | done | |
6289 | ||
b7026657 | 6290 | (set) 2>&1 | |
81ecdfbb RW |
6291 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6292 | *${as_nl}ac_space=\ *) | |
6293 | # `set' does not quote correctly, so add quotes: double-quote | |
6294 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
6295 | sed -n \ |
6296 | "s/'/'\\\\''/g; | |
6297 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 6298 | ;; #( |
b7026657 AC |
6299 | *) |
6300 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 6301 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 6302 | ;; |
81ecdfbb RW |
6303 | esac | |
6304 | sort | |
6305 | ) | | |
b7026657 | 6306 | sed ' |
81ecdfbb | 6307 | /^ac_cv_env_/b end |
b7026657 | 6308 | t clear |
81ecdfbb | 6309 | :clear |
b7026657 AC |
6310 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6311 | t end | |
81ecdfbb RW |
6312 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6313 | :end' >>confcache | |
6314 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6315 | if test -w "$cache_file"; then | |
6316 | test "x$cache_file" != "x/dev/null" && | |
6317 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
6318 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b7026657 AC |
6319 | cat confcache >$cache_file |
6320 | else | |
81ecdfbb RW |
6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6322 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
b7026657 AC |
6323 | fi |
6324 | fi | |
6325 | rm -f confcache | |
6326 | ||
6327 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6328 | # Let make expand exec_prefix. | |
6329 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6330 | ||
b7026657 AC |
6331 | DEFS=-DHAVE_CONFIG_H |
6332 | ||
6333 | ac_libobjs= | |
6334 | ac_ltlibobjs= | |
6335 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6336 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
6337 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6338 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6339 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6340 | # will be set to the directory where LIBOBJS objects are built. | |
6341 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6342 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
6343 | done |
6344 | LIBOBJS=$ac_libobjs | |
6345 | ||
6346 | LTLIBOBJS=$ac_ltlibobjs | |
6347 | ||
6348 | ||
db2e4d67 MF |
6349 | if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then |
6350 | as_fn_error "conditional \"GMAKE\" was never defined. | |
6351 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6352 | fi | |
b7026657 | 6353 | |
81ecdfbb | 6354 | |
b7026657 | 6355 | : ${CONFIG_STATUS=./config.status} |
81ecdfbb | 6356 | ac_write_fail=0 |
b7026657 AC |
6357 | ac_clean_files_save=$ac_clean_files |
6358 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6360 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6361 | as_write_fail=0 | |
6362 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
6363 | #! $SHELL |
6364 | # Generated by $as_me. | |
6365 | # Run this file to recreate the current configuration. | |
6366 | # Compiler output produced by configure, useful for debugging | |
6367 | # configure, is in config.log if it exists. | |
c906108c | 6368 | |
b7026657 AC |
6369 | debug=false |
6370 | ac_cs_recheck=false | |
6371 | ac_cs_silent=false | |
b7026657 | 6372 | |
81ecdfbb RW |
6373 | SHELL=\${CONFIG_SHELL-$SHELL} |
6374 | export SHELL | |
6375 | _ASEOF | |
6376 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6377 | ## -------------------- ## | |
6378 | ## M4sh Initialization. ## | |
6379 | ## -------------------- ## | |
6380 | ||
6381 | # Be more Bourne compatible | |
6382 | DUALCASE=1; export DUALCASE # for MKS sh | |
6383 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
6384 | emulate sh |
6385 | NULLCMD=: | |
81ecdfbb | 6386 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
6387 | # is contrary to our usage. Disable this feature. |
6388 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
6389 | setopt NO_GLOB_SUBST |
6390 | else | |
6391 | case `(set -o) 2>/dev/null` in #( | |
6392 | *posix*) : | |
6393 | set -o posix ;; #( | |
6394 | *) : | |
6395 | ;; | |
6396 | esac | |
c906108c | 6397 | fi |
b7026657 | 6398 | |
81ecdfbb RW |
6399 | |
6400 | as_nl=' | |
6401 | ' | |
6402 | export as_nl | |
6403 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6404 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6405 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6406 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
6407 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
6408 | # but without wasting forks for bash or zsh. | |
6409 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6410 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6411 | as_echo='print -r --' | |
6412 | as_echo_n='print -rn --' | |
6413 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6414 | as_echo='printf %s\n' | |
6415 | as_echo_n='printf %s' | |
6416 | else | |
6417 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6418 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6419 | as_echo_n='/usr/ucb/echo -n' | |
6420 | else | |
6421 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
6422 | as_echo_n_body='eval | |
6423 | arg=$1; | |
6424 | case $arg in #( | |
6425 | *"$as_nl"*) | |
6426 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6427 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6428 | esac; | |
6429 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6430 | ' | |
6431 | export as_echo_n_body | |
6432 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
6433 | fi | |
6434 | export as_echo_body | |
6435 | as_echo='sh -c $as_echo_body as_echo' | |
c906108c | 6436 | fi |
b7026657 | 6437 | |
81ecdfbb RW |
6438 | # The user is always right. |
6439 | if test "${PATH_SEPARATOR+set}" != set; then | |
6440 | PATH_SEPARATOR=: | |
6441 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6442 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6443 | PATH_SEPARATOR=';' | |
6444 | } | |
6445 | fi | |
6446 | ||
6447 | ||
6448 | # IFS | |
6449 | # We need space, tab and new line, in precisely that order. Quoting is | |
6450 | # there to prevent editors from complaining about space-tab. | |
6451 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6452 | # splitting by setting IFS to empty value.) | |
6453 | IFS=" "" $as_nl" | |
6454 | ||
6455 | # Find who we are. Look in the path if we contain no directory separator. | |
6456 | case $0 in #(( | |
6457 | *[\\/]* ) as_myself=$0 ;; | |
6458 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6459 | for as_dir in $PATH | |
6460 | do | |
6461 | IFS=$as_save_IFS | |
6462 | test -z "$as_dir" && as_dir=. | |
6463 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6464 | done | |
6465 | IFS=$as_save_IFS | |
b7026657 | 6466 | |
81ecdfbb RW |
6467 | ;; |
6468 | esac | |
6469 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6470 | # in which case we are not to be found in the path. | |
6471 | if test "x$as_myself" = x; then | |
6472 | as_myself=$0 | |
6473 | fi | |
6474 | if test ! -f "$as_myself"; then | |
6475 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
6476 | exit 1 | |
6477 | fi | |
6478 | ||
6479 | # Unset variables that we do not need and which cause bugs (e.g. in | |
6480 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6481 | # suppresses any "Segmentation fault" message there. '((' could | |
6482 | # trigger a bug in pdksh 5.2.14. | |
6483 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6484 | do eval test x\${$as_var+set} = xset \ | |
6485 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
6486 | done | |
b7026657 AC |
6487 | PS1='$ ' |
6488 | PS2='> ' | |
6489 | PS4='+ ' | |
6490 | ||
6491 | # NLS nuisances. | |
81ecdfbb RW |
6492 | LC_ALL=C |
6493 | export LC_ALL | |
6494 | LANGUAGE=C | |
6495 | export LANGUAGE | |
6496 | ||
6497 | # CDPATH. | |
6498 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6499 | ||
6500 | ||
6501 | # as_fn_error ERROR [LINENO LOG_FD] | |
6502 | # --------------------------------- | |
6503 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
6504 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
6505 | # script with status $?, using 1 if that was 0. | |
6506 | as_fn_error () | |
6507 | { | |
6508 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
6509 | if test "$3"; then | |
6510 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6511 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
b7026657 | 6512 | fi |
81ecdfbb RW |
6513 | $as_echo "$as_me: error: $1" >&2 |
6514 | as_fn_exit $as_status | |
6515 | } # as_fn_error | |
6516 | ||
6517 | ||
6518 | # as_fn_set_status STATUS | |
6519 | # ----------------------- | |
6520 | # Set $? to STATUS, without forking. | |
6521 | as_fn_set_status () | |
6522 | { | |
6523 | return $1 | |
6524 | } # as_fn_set_status | |
6525 | ||
6526 | # as_fn_exit STATUS | |
6527 | # ----------------- | |
6528 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6529 | as_fn_exit () | |
6530 | { | |
6531 | set +e | |
6532 | as_fn_set_status $1 | |
6533 | exit $1 | |
6534 | } # as_fn_exit | |
6535 | ||
6536 | # as_fn_unset VAR | |
6537 | # --------------- | |
6538 | # Portably unset VAR. | |
6539 | as_fn_unset () | |
6540 | { | |
6541 | { eval $1=; unset $1;} | |
6542 | } | |
6543 | as_unset=as_fn_unset | |
6544 | # as_fn_append VAR VALUE | |
6545 | # ---------------------- | |
6546 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6547 | # advantage of any shell optimizations that allow amortized linear growth over | |
6548 | # repeated appends, instead of the typical quadratic growth present in naive | |
6549 | # implementations. | |
6550 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6551 | eval 'as_fn_append () | |
6552 | { | |
6553 | eval $1+=\$2 | |
6554 | }' | |
6555 | else | |
6556 | as_fn_append () | |
6557 | { | |
6558 | eval $1=\$$1\$2 | |
6559 | } | |
6560 | fi # as_fn_append | |
c906108c | 6561 | |
81ecdfbb RW |
6562 | # as_fn_arith ARG... |
6563 | # ------------------ | |
6564 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6565 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6566 | # must be portable across $(()) and expr. | |
6567 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6568 | eval 'as_fn_arith () | |
6569 | { | |
6570 | as_val=$(( $* )) | |
6571 | }' | |
6572 | else | |
6573 | as_fn_arith () | |
6574 | { | |
6575 | as_val=`expr "$@" || test $? -eq 1` | |
6576 | } | |
6577 | fi # as_fn_arith | |
6578 | ||
6579 | ||
6580 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6581 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 | 6582 | as_expr=expr |
c906108c | 6583 | else |
b7026657 | 6584 | as_expr=false |
c906108c | 6585 | fi |
c906108c | 6586 | |
81ecdfbb | 6587 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
6588 | as_basename=basename |
6589 | else | |
6590 | as_basename=false | |
c906108c | 6591 | fi |
c906108c | 6592 | |
81ecdfbb RW |
6593 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6594 | as_dirname=dirname | |
6595 | else | |
6596 | as_dirname=false | |
6597 | fi | |
c906108c | 6598 | |
81ecdfbb | 6599 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
6600 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6601 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
6602 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6603 | $as_echo X/"$0" | | |
6604 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6605 | s//\1/ | |
6606 | q | |
6607 | } | |
6608 | /^X\/\(\/\/\)$/{ | |
6609 | s//\1/ | |
6610 | q | |
6611 | } | |
6612 | /^X\/\(\/\).*/{ | |
6613 | s//\1/ | |
6614 | q | |
6615 | } | |
6616 | s/.*/./; q'` | |
b7026657 | 6617 | |
b7026657 AC |
6618 | # Avoid depending upon Character Ranges. |
6619 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6620 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6621 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6622 | as_cr_digits='0123456789' | |
6623 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6624 | ||
81ecdfbb RW |
6625 | ECHO_C= ECHO_N= ECHO_T= |
6626 | case `echo -n x` in #((((( | |
6627 | -n*) | |
6628 | case `echo 'xy\c'` in | |
6629 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6630 | xy) ECHO_C='\c';; | |
6631 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6632 | ECHO_T=' ';; | |
6633 | esac;; | |
6634 | *) | |
6635 | ECHO_N='-n';; | |
b7026657 | 6636 | esac |
c906108c | 6637 | |
81ecdfbb RW |
6638 | rm -f conf$$ conf$$.exe conf$$.file |
6639 | if test -d conf$$.dir; then | |
6640 | rm -f conf$$.dir/conf$$.file | |
c906108c | 6641 | else |
81ecdfbb RW |
6642 | rm -f conf$$.dir |
6643 | mkdir conf$$.dir 2>/dev/null | |
c906108c | 6644 | fi |
81ecdfbb RW |
6645 | if (echo >conf$$.file) 2>/dev/null; then |
6646 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b7026657 | 6647 | as_ln_s='ln -s' |
81ecdfbb RW |
6648 | # ... but there are two gotchas: |
6649 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6650 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
6651 | # In both cases, we have to default to `cp -p'. | |
6652 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
6653 | as_ln_s='cp -p' | |
6654 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
6655 | as_ln_s=ln | |
6656 | else | |
6657 | as_ln_s='cp -p' | |
b7026657 | 6658 | fi |
b7026657 AC |
6659 | else |
6660 | as_ln_s='cp -p' | |
c906108c | 6661 | fi |
81ecdfbb RW |
6662 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6663 | rmdir conf$$.dir 2>/dev/null | |
6664 | ||
6665 | ||
6666 | # as_fn_mkdir_p | |
6667 | # ------------- | |
6668 | # Create "$as_dir" as a directory, including parents if necessary. | |
6669 | as_fn_mkdir_p () | |
6670 | { | |
6671 | ||
6672 | case $as_dir in #( | |
6673 | -*) as_dir=./$as_dir;; | |
6674 | esac | |
6675 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6676 | as_dirs= | |
6677 | while :; do | |
6678 | case $as_dir in #( | |
6679 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6680 | *) as_qdir=$as_dir;; | |
6681 | esac | |
6682 | as_dirs="'$as_qdir' $as_dirs" | |
6683 | as_dir=`$as_dirname -- "$as_dir" || | |
6684 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6685 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6686 | X"$as_dir" : 'X\(//\)$' \| \ | |
6687 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6688 | $as_echo X"$as_dir" | | |
6689 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6690 | s//\1/ | |
6691 | q | |
6692 | } | |
6693 | /^X\(\/\/\)[^/].*/{ | |
6694 | s//\1/ | |
6695 | q | |
6696 | } | |
6697 | /^X\(\/\/\)$/{ | |
6698 | s//\1/ | |
6699 | q | |
6700 | } | |
6701 | /^X\(\/\).*/{ | |
6702 | s//\1/ | |
6703 | q | |
6704 | } | |
6705 | s/.*/./; q'` | |
6706 | test -d "$as_dir" && break | |
6707 | done | |
6708 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6709 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
6710 | ||
c906108c | 6711 | |
81ecdfbb | 6712 | } # as_fn_mkdir_p |
b7026657 | 6713 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 6714 | as_mkdir_p='mkdir -p "$as_dir"' |
c906108c | 6715 | else |
b7026657 AC |
6716 | test -d ./-p && rmdir ./-p |
6717 | as_mkdir_p=false | |
c906108c | 6718 | fi |
c906108c | 6719 | |
81ecdfbb RW |
6720 | if test -x / >/dev/null 2>&1; then |
6721 | as_test_x='test -x' | |
6722 | else | |
6723 | if ls -dL / >/dev/null 2>&1; then | |
6724 | as_ls_L_option=L | |
6725 | else | |
6726 | as_ls_L_option= | |
6727 | fi | |
6728 | as_test_x=' | |
6729 | eval sh -c '\'' | |
6730 | if test -d "$1"; then | |
6731 | test -d "$1/."; | |
6732 | else | |
6733 | case $1 in #( | |
6734 | -*)set "./$1";; | |
6735 | esac; | |
6736 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
6737 | ???[sx]*):;;*)false;;esac;fi | |
6738 | '\'' sh | |
6739 | ' | |
6740 | fi | |
6741 | as_executable_p=$as_test_x | |
c906108c | 6742 | |
b7026657 AC |
6743 | # Sed expression to map a string onto a valid CPP name. |
6744 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 6745 | |
b7026657 AC |
6746 | # Sed expression to map a string onto a valid variable name. |
6747 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 6748 | |
b7026657 | 6749 | |
b7026657 | 6750 | exec 6>&1 |
81ecdfbb RW |
6751 | ## ----------------------------------- ## |
6752 | ## Main body of $CONFIG_STATUS script. ## | |
6753 | ## ----------------------------------- ## | |
6754 | _ASEOF | |
6755 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6756 | ||
6757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6758 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 6759 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
6760 | # values after options handling. |
6761 | ac_log=" | |
b7026657 | 6762 | This file was extended by $as_me, which was |
81ecdfbb | 6763 | generated by GNU Autoconf 2.64. Invocation command line was |
b7026657 AC |
6764 | |
6765 | CONFIG_FILES = $CONFIG_FILES | |
6766 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6767 | CONFIG_LINKS = $CONFIG_LINKS | |
6768 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6769 | $ $0 $@ | |
6770 | ||
81ecdfbb RW |
6771 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6772 | " | |
6773 | ||
b7026657 AC |
6774 | _ACEOF |
6775 | ||
81ecdfbb RW |
6776 | case $ac_config_files in *" |
6777 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6778 | esac | |
379832de | 6779 | |
81ecdfbb RW |
6780 | case $ac_config_headers in *" |
6781 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6782 | esac | |
b7026657 | 6783 | |
b7026657 | 6784 | |
81ecdfbb RW |
6785 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6786 | # Files that config.status was made for. | |
6787 | config_files="$ac_config_files" | |
6788 | config_headers="$ac_config_headers" | |
6789 | config_links="$ac_config_links" | |
6790 | config_commands="$ac_config_commands" | |
b7026657 | 6791 | |
81ecdfbb | 6792 | _ACEOF |
b7026657 | 6793 | |
81ecdfbb | 6794 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 6795 | ac_cs_usage="\ |
81ecdfbb RW |
6796 | \`$as_me' instantiates files and other configuration actions |
6797 | from templates according to the current configuration. Unless the files | |
6798 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 6799 | |
81ecdfbb | 6800 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
6801 | |
6802 | -h, --help print this help, then exit | |
81ecdfbb RW |
6803 | -V, --version print version number and configuration settings, then exit |
6804 | -q, --quiet, --silent | |
6805 | do not print progress messages | |
b7026657 AC |
6806 | -d, --debug don't remove temporary files |
6807 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
6808 | --file=FILE[:TEMPLATE] |
6809 | instantiate the configuration file FILE | |
6810 | --header=FILE[:TEMPLATE] | |
6811 | instantiate the configuration header FILE | |
b7026657 AC |
6812 | |
6813 | Configuration files: | |
6814 | $config_files | |
6815 | ||
6816 | Configuration headers: | |
6817 | $config_headers | |
6818 | ||
6819 | Configuration links: | |
6820 | $config_links | |
6821 | ||
6822 | Configuration commands: | |
6823 | $config_commands | |
6824 | ||
81ecdfbb | 6825 | Report bugs to the package provider." |
b7026657 | 6826 | |
81ecdfbb RW |
6827 | _ACEOF |
6828 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b7026657 AC |
6829 | ac_cs_version="\\ |
6830 | config.status | |
81ecdfbb RW |
6831 | configured by $0, generated by GNU Autoconf 2.64, |
6832 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
b7026657 | 6833 | |
81ecdfbb | 6834 | Copyright (C) 2009 Free Software Foundation, Inc. |
b7026657 AC |
6835 | This config.status script is free software; the Free Software Foundation |
6836 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
6837 | |
6838 | ac_pwd='$ac_pwd' | |
6839 | srcdir='$srcdir' | |
6840 | INSTALL='$INSTALL' | |
6841 | test -n "\$AWK" || AWK=awk | |
b7026657 AC |
6842 | _ACEOF |
6843 | ||
81ecdfbb RW |
6844 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6845 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
6846 | ac_need_defaults=: |
6847 | while test $# != 0 | |
6848 | do | |
6849 | case $1 in | |
6850 | --*=*) | |
81ecdfbb RW |
6851 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6852 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 | 6853 | ac_shift=: |
c906108c | 6854 | ;; |
81ecdfbb | 6855 | *) |
b7026657 AC |
6856 | ac_option=$1 |
6857 | ac_optarg=$2 | |
6858 | ac_shift=shift | |
c906108c | 6859 | ;; |
b7026657 | 6860 | esac |
c906108c | 6861 | |
b7026657 AC |
6862 | case $ac_option in |
6863 | # Handling of the options. | |
b7026657 AC |
6864 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6865 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
6866 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6867 | $as_echo "$ac_cs_version"; exit ;; | |
6868 | --debug | --debu | --deb | --de | --d | -d ) | |
b7026657 AC |
6869 | debug=: ;; |
6870 | --file | --fil | --fi | --f ) | |
6871 | $ac_shift | |
81ecdfbb RW |
6872 | case $ac_optarg in |
6873 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6874 | esac | |
6875 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b7026657 AC |
6876 | ac_need_defaults=false;; |
6877 | --header | --heade | --head | --hea ) | |
6878 | $ac_shift | |
81ecdfbb RW |
6879 | case $ac_optarg in |
6880 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6881 | esac | |
6882 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
b7026657 | 6883 | ac_need_defaults=false;; |
81ecdfbb RW |
6884 | --he | --h) |
6885 | # Conflict between --help and --header | |
6886 | as_fn_error "ambiguous option: \`$1' | |
6887 | Try \`$0 --help' for more information.";; | |
6888 | --help | --hel | -h ) | |
6889 | $as_echo "$ac_cs_usage"; exit ;; | |
b7026657 AC |
6890 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6891 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6892 | ac_cs_silent=: ;; | |
c906108c | 6893 | |
b7026657 | 6894 | # This is an error. |
81ecdfbb RW |
6895 | -*) as_fn_error "unrecognized option: \`$1' |
6896 | Try \`$0 --help' for more information." ;; | |
c906108c | 6897 | |
81ecdfbb RW |
6898 | *) as_fn_append ac_config_targets " $1" |
6899 | ac_need_defaults=false ;; | |
b7026657 AC |
6900 | |
6901 | esac | |
6902 | shift | |
6903 | done | |
6904 | ||
6905 | ac_configure_extra_args= | |
6906 | ||
6907 | if $ac_cs_silent; then | |
6908 | exec 6>/dev/null | |
6909 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c SS |
6910 | fi |
6911 | ||
b7026657 | 6912 | _ACEOF |
81ecdfbb | 6913 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 6914 | if \$ac_cs_recheck; then |
81ecdfbb RW |
6915 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6916 | shift | |
6917 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6918 | CONFIG_SHELL='$SHELL' | |
6919 | export CONFIG_SHELL | |
6920 | exec "\$@" | |
b7026657 | 6921 | fi |
c906108c | 6922 | |
b7026657 | 6923 | _ACEOF |
81ecdfbb RW |
6924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6925 | exec 5>>config.log | |
6926 | { | |
6927 | echo | |
6928 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6929 | ## Running $as_me. ## | |
6930 | _ASBOX | |
6931 | $as_echo "$ac_log" | |
6932 | } >&5 | |
c906108c | 6933 | |
81ecdfbb RW |
6934 | _ACEOF |
6935 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
db2e4d67 MF |
6936 | # |
6937 | # INIT-COMMANDS | |
6938 | # | |
6939 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
6940 | ||
81ecdfbb | 6941 | _ACEOF |
c906108c | 6942 | |
81ecdfbb | 6943 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c906108c | 6944 | |
81ecdfbb | 6945 | # Handling of arguments. |
b7026657 | 6946 | for ac_config_target in $ac_config_targets |
c906108c | 6947 | do |
81ecdfbb RW |
6948 | case $ac_config_target in |
6949 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
db2e4d67 | 6950 | "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; |
81ecdfbb RW |
6951 | "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; |
6952 | "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; | |
6953 | "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
6954 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
6955 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | |
6956 | "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
6957 | ||
6958 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c906108c SS |
6959 | esac |
6960 | done | |
6961 | ||
81ecdfbb | 6962 | |
b7026657 AC |
6963 | # If the user did not use the arguments to specify the items to instantiate, |
6964 | # then the envvar interface is used. Set only those that are not. | |
6965 | # We use the long form for the default assignment because of an extremely | |
6966 | # bizarre bug on SunOS 4.1.3. | |
6967 | if $ac_need_defaults; then | |
6968 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6969 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6970 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
6971 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
6972 | fi | |
6973 | ||
6974 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 6975 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 6976 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
6977 | # Hook for its removal unless debugging. |
6978 | # Note that there is a small window in which the directory will not be cleaned: | |
6979 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
6980 | $debug || |
6981 | { | |
81ecdfbb RW |
6982 | tmp= |
6983 | trap 'exit_status=$? | |
6984 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6985 | ' 0 | |
6986 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 6987 | } |
b7026657 | 6988 | # Create a (secure) tmp directory for tmp files. |
c906108c | 6989 | |
b7026657 | 6990 | { |
81ecdfbb | 6991 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b7026657 AC |
6992 | test -n "$tmp" && test -d "$tmp" |
6993 | } || | |
6994 | { | |
81ecdfbb RW |
6995 | tmp=./conf$$-$RANDOM |
6996 | (umask 077 && mkdir "$tmp") | |
6997 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
b7026657 | 6998 | |
81ecdfbb RW |
6999 | # Set up the scripts for CONFIG_FILES section. |
7000 | # No need to generate them if there are no CONFIG_FILES. | |
7001 | # This happens for instance with `./config.status config.h'. | |
7002 | if test -n "$CONFIG_FILES"; then | |
b7026657 | 7003 | |
c906108c | 7004 | |
81ecdfbb RW |
7005 | ac_cr=`echo X | tr X '\015'` |
7006 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7007 | # But we know of no other shell where ac_cr would be empty at this | |
7008 | # point, so we can use a bashism as a fallback. | |
7009 | if test "x$ac_cr" = x; then | |
7010 | eval ac_cr=\$\'\\r\' | |
7011 | fi | |
7012 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7013 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
7014 | ac_cs_awk_cr='\r' | |
7015 | else | |
7016 | ac_cs_awk_cr=$ac_cr | |
7017 | fi | |
b7026657 | 7018 | |
81ecdfbb | 7019 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
b7026657 AC |
7020 | _ACEOF |
7021 | ||
c906108c | 7022 | |
81ecdfbb RW |
7023 | { |
7024 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7025 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7026 | echo "_ACEOF" | |
7027 | } >conf$$subs.sh || | |
7028 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7029 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7030 | ac_delim='%!_!# ' | |
7031 | for ac_last_try in false false false false false :; do | |
7032 | . ./conf$$subs.sh || | |
7033 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
7034 | ||
7035 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7036 | if test $ac_delim_n = $ac_delim_num; then | |
7037 | break | |
7038 | elif $ac_last_try; then | |
7039 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
c906108c | 7040 | else |
81ecdfbb RW |
7041 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
7042 | fi | |
7043 | done | |
7044 | rm -f conf$$subs.sh | |
7045 | ||
7046 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7047 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
7048 | _ACEOF | |
7049 | sed -n ' | |
7050 | h | |
7051 | s/^/S["/; s/!.*/"]=/ | |
7052 | p | |
7053 | g | |
7054 | s/^[^!]*!// | |
7055 | :repl | |
7056 | t repl | |
7057 | s/'"$ac_delim"'$// | |
7058 | t delim | |
7059 | :nl | |
7060 | h | |
7061 | s/\(.\{148\}\).*/\1/ | |
7062 | t more1 | |
7063 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7064 | p | |
7065 | n | |
7066 | b repl | |
7067 | :more1 | |
7068 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7069 | p | |
7070 | g | |
7071 | s/.\{148\}// | |
7072 | t nl | |
7073 | :delim | |
7074 | h | |
7075 | s/\(.\{148\}\).*/\1/ | |
7076 | t more2 | |
7077 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7078 | p | |
7079 | b | |
7080 | :more2 | |
7081 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7082 | p | |
7083 | g | |
7084 | s/.\{148\}// | |
7085 | t delim | |
7086 | ' <conf$$subs.awk | sed ' | |
7087 | /^[^""]/{ | |
7088 | N | |
7089 | s/\n// | |
7090 | } | |
7091 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
7092 | rm -f conf$$subs.awk | |
7093 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7094 | _ACAWK | |
7095 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
7096 | for (key in S) S_is_set[key] = 1 | |
7097 | FS = "\a" | |
b7026657 | 7098 | |
81ecdfbb RW |
7099 | } |
7100 | { | |
7101 | line = $ 0 | |
7102 | nfields = split(line, field, "@") | |
7103 | substed = 0 | |
7104 | len = length(field[1]) | |
7105 | for (i = 2; i < nfields; i++) { | |
7106 | key = field[i] | |
7107 | keylen = length(key) | |
7108 | if (S_is_set[key]) { | |
7109 | value = S[key] | |
7110 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7111 | len += length(value) + length(field[++i]) | |
7112 | substed = 1 | |
7113 | } else | |
7114 | len += 1 + keylen | |
7115 | } | |
7116 | ||
7117 | print line | |
7118 | } | |
c906108c | 7119 | |
81ecdfbb RW |
7120 | _ACAWK |
7121 | _ACEOF | |
7122 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7123 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7124 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
b7026657 | 7125 | else |
81ecdfbb RW |
7126 | cat |
7127 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
7128 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
7129 | _ACEOF | |
b7026657 | 7130 | |
81ecdfbb RW |
7131 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7132 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7133 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7134 | # (actually we leave an empty line to preserve line numbers). | |
7135 | if test "x$srcdir" = x.; then | |
7136 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
7137 | s/:*\$(srcdir):*/:/ | |
7138 | s/:*\${srcdir}:*/:/ | |
7139 | s/:*@srcdir@:*/:/ | |
7140 | s/^\([^=]*=[ ]*\):*/\1/ | |
7141 | s/:*$// | |
7142 | s/^[^=]*=[ ]*$// | |
7143 | }' | |
7144 | fi | |
c906108c | 7145 | |
81ecdfbb RW |
7146 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7147 | fi # test -n "$CONFIG_FILES" | |
c906108c | 7148 | |
81ecdfbb RW |
7149 | # Set up the scripts for CONFIG_HEADERS section. |
7150 | # No need to generate them if there are no CONFIG_HEADERS. | |
7151 | # This happens for instance with `./config.status Makefile'. | |
7152 | if test -n "$CONFIG_HEADERS"; then | |
7153 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
7154 | BEGIN { | |
7155 | _ACEOF | |
b7026657 | 7156 | |
81ecdfbb RW |
7157 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
7158 | # here-document in config.status, that substitutes the proper values into | |
7159 | # config.h.in to produce config.h. | |
c906108c | 7160 | |
81ecdfbb RW |
7161 | # Create a delimiter string that does not exist in confdefs.h, to ease |
7162 | # handling of long lines. | |
7163 | ac_delim='%!_!# ' | |
7164 | for ac_last_try in false false :; do | |
7165 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
7166 | if test -z "$ac_t"; then | |
7167 | break | |
7168 | elif $ac_last_try; then | |
7169 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
b7026657 | 7170 | else |
81ecdfbb | 7171 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
b7026657 | 7172 | fi |
b7026657 | 7173 | done |
81ecdfbb RW |
7174 | |
7175 | # For the awk script, D is an array of macro values keyed by name, | |
7176 | # likewise P contains macro parameters if any. Preserve backslash | |
7177 | # newline sequences. | |
7178 | ||
7179 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7180 | sed -n ' | |
7181 | s/.\{148\}/&'"$ac_delim"'/g | |
7182 | t rset | |
7183 | :rset | |
7184 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7185 | t def | |
7186 | d | |
7187 | :def | |
7188 | s/\\$// | |
7189 | t bsnl | |
7190 | s/["\\]/\\&/g | |
7191 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7192 | D["\1"]=" \3"/p | |
7193 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7194 | d | |
7195 | :bsnl | |
7196 | s/["\\]/\\&/g | |
7197 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7198 | D["\1"]=" \3\\\\\\n"\\/p | |
7199 | t cont | |
7200 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7201 | t cont | |
7202 | d | |
7203 | :cont | |
7204 | n | |
7205 | s/.\{148\}/&'"$ac_delim"'/g | |
7206 | t clear | |
7207 | :clear | |
7208 | s/\\$// | |
7209 | t bsnlc | |
7210 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7211 | d | |
7212 | :bsnlc | |
7213 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7214 | b cont | |
7215 | ' <confdefs.h | sed ' | |
7216 | s/'"$ac_delim"'/"\\\ | |
7217 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7218 | ||
7219 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7220 | for (key in D) D_is_set[key] = 1 | |
7221 | FS = "\a" | |
7222 | } | |
7223 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7224 | line = \$ 0 | |
7225 | split(line, arg, " ") | |
7226 | if (arg[1] == "#") { | |
7227 | defundef = arg[2] | |
7228 | mac1 = arg[3] | |
7229 | } else { | |
7230 | defundef = substr(arg[1], 2) | |
7231 | mac1 = arg[2] | |
7232 | } | |
7233 | split(mac1, mac2, "(") #) | |
7234 | macro = mac2[1] | |
7235 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7236 | if (D_is_set[macro]) { | |
7237 | # Preserve the white space surrounding the "#". | |
7238 | print prefix "define", macro P[macro] D[macro] | |
7239 | next | |
7240 | } else { | |
7241 | # Replace #undef with comments. This is necessary, for example, | |
7242 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7243 | # on some systems where configure will not decide to define it. | |
7244 | if (defundef == "undef") { | |
7245 | print "/*", prefix defundef, macro, "*/" | |
7246 | next | |
7247 | } | |
7248 | } | |
7249 | } | |
7250 | { print } | |
7251 | _ACAWK | |
b7026657 | 7252 | _ACEOF |
81ecdfbb RW |
7253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7254 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
7255 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 7256 | |
c906108c | 7257 | |
81ecdfbb RW |
7258 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" |
7259 | shift | |
7260 | for ac_tag | |
7261 | do | |
7262 | case $ac_tag in | |
7263 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7264 | esac | |
7265 | case $ac_mode$ac_tag in | |
7266 | :[FHL]*:*);; | |
7267 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
7268 | :[FH]-) ac_tag=-:-;; | |
7269 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
c906108c | 7270 | esac |
81ecdfbb RW |
7271 | ac_save_IFS=$IFS |
7272 | IFS=: | |
7273 | set x $ac_tag | |
7274 | IFS=$ac_save_IFS | |
7275 | shift | |
7276 | ac_file=$1 | |
7277 | shift | |
c906108c | 7278 | |
81ecdfbb RW |
7279 | case $ac_mode in |
7280 | :L) ac_source=$1;; | |
7281 | :[FH]) | |
7282 | ac_file_inputs= | |
7283 | for ac_f | |
7284 | do | |
7285 | case $ac_f in | |
7286 | -) ac_f="$tmp/stdin";; | |
7287 | *) # Look for the file first in the build tree, then in the source tree | |
7288 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7289 | # because $ac_f cannot contain `:'. | |
7290 | test -f "$ac_f" || | |
7291 | case $ac_f in | |
7292 | [\\/$]*) false;; | |
7293 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7294 | esac || | |
7295 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
b7026657 | 7296 | esac |
81ecdfbb RW |
7297 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
7298 | as_fn_append ac_file_inputs " '$ac_f'" | |
7299 | done | |
b7026657 | 7300 | |
81ecdfbb RW |
7301 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
7302 | # use $as_me), people would be surprised to read: | |
7303 | # /* config.h. Generated by config.status. */ | |
7304 | configure_input='Generated from '` | |
7305 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7306 | `' by configure.' | |
7307 | if test x"$ac_file" != x-; then | |
7308 | configure_input="$ac_file. $configure_input" | |
7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7310 | $as_echo "$as_me: creating $ac_file" >&6;} | |
7311 | fi | |
7312 | # Neutralize special characters interpreted by sed in replacement strings. | |
7313 | case $configure_input in #( | |
7314 | *\&* | *\|* | *\\* ) | |
7315 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7316 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7317 | *) ac_sed_conf_input=$configure_input;; | |
7318 | esac | |
b7026657 | 7319 | |
81ecdfbb RW |
7320 | case $ac_tag in |
7321 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
7322 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
7323 | esac | |
7324 | ;; | |
7325 | esac | |
b7026657 | 7326 | |
81ecdfbb | 7327 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
7328 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7329 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7330 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7331 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7332 | $as_echo X"$ac_file" | | |
7333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7334 | s//\1/ | |
7335 | q | |
7336 | } | |
7337 | /^X\(\/\/\)[^/].*/{ | |
7338 | s//\1/ | |
7339 | q | |
7340 | } | |
7341 | /^X\(\/\/\)$/{ | |
7342 | s//\1/ | |
7343 | q | |
7344 | } | |
7345 | /^X\(\/\).*/{ | |
7346 | s//\1/ | |
7347 | q | |
7348 | } | |
7349 | s/.*/./; q'` | |
7350 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
7351 | ac_builddir=. |
7352 | ||
81ecdfbb RW |
7353 | case "$ac_dir" in |
7354 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7355 | *) | |
7356 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7357 | # A ".." for each directory in $ac_dir_suffix. | |
7358 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7359 | case $ac_top_builddir_sub in | |
7360 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7361 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7362 | esac ;; | |
7363 | esac | |
7364 | ac_abs_top_builddir=$ac_pwd | |
7365 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7366 | # for backward compatibility: | |
7367 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
7368 | |
7369 | case $srcdir in | |
81ecdfbb | 7370 | .) # We are building in place. |
b7026657 | 7371 | ac_srcdir=. |
81ecdfbb RW |
7372 | ac_top_srcdir=$ac_top_builddir_sub |
7373 | ac_abs_top_srcdir=$ac_pwd ;; | |
7374 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 7375 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
7376 | ac_top_srcdir=$srcdir |
7377 | ac_abs_top_srcdir=$srcdir ;; | |
7378 | *) # Relative name. | |
7379 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7380 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7381 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 7382 | esac |
81ecdfbb | 7383 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 7384 | |
c906108c | 7385 | |
81ecdfbb RW |
7386 | case $ac_mode in |
7387 | :F) | |
7388 | # | |
7389 | # CONFIG_FILE | |
7390 | # | |
b7026657 | 7391 | |
81ecdfbb RW |
7392 | case $INSTALL in |
7393 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7394 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
c906108c | 7395 | esac |
81ecdfbb | 7396 | _ACEOF |
c906108c | 7397 | |
81ecdfbb RW |
7398 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7399 | # If the template does not know about datarootdir, expand it. | |
7400 | # FIXME: This hack should be removed a few years after 2.60. | |
7401 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7402 | ac_sed_dataroot=' | |
7403 | /datarootdir/ { | |
7404 | p | |
7405 | q | |
7406 | } | |
7407 | /@datadir@/p | |
7408 | /@docdir@/p | |
7409 | /@infodir@/p | |
7410 | /@localedir@/p | |
7411 | /@mandir@/p' | |
7412 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
7413 | *datarootdir*) ac_datarootdir_seen=yes;; | |
7414 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
7416 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
7417 | _ACEOF | |
7418 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7419 | ac_datarootdir_hack=' | |
7420 | s&@datadir@&$datadir&g | |
7421 | s&@docdir@&$docdir&g | |
7422 | s&@infodir@&$infodir&g | |
7423 | s&@localedir@&$localedir&g | |
7424 | s&@mandir@&$mandir&g | |
7425 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
7426 | esac | |
b7026657 | 7427 | _ACEOF |
b7026657 | 7428 | |
81ecdfbb RW |
7429 | # Neutralize VPATH when `$srcdir' = `.'. |
7430 | # Shell code in configure.ac might set extrasub. | |
7431 | # FIXME: do we really want to maintain this feature? | |
7432 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7433 | ac_sed_extra="$ac_vpsub | |
7434 | $extrasub | |
7435 | _ACEOF | |
7436 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7437 | :t | |
7438 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7439 | s|@configure_input@|$ac_sed_conf_input|;t t | |
7440 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
7441 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
7442 | s&@srcdir@&$ac_srcdir&;t t | |
7443 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7444 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7445 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7446 | s&@builddir@&$ac_builddir&;t t | |
7447 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7448 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7449 | s&@INSTALL@&$ac_INSTALL&;t t | |
7450 | $ac_datarootdir_hack | |
7451 | " | |
7452 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
7453 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7454 | ||
7455 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
7456 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
7457 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7459 | which seems to be undefined. Please make sure it is defined." >&5 | |
7460 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
7461 | which seems to be undefined. Please make sure it is defined." >&2;} | |
7462 | ||
7463 | rm -f "$tmp/stdin" | |
7464 | case $ac_file in | |
7465 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
7466 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
7467 | esac \ | |
7468 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7469 | ;; | |
7470 | :H) | |
7471 | # | |
7472 | # CONFIG_HEADER | |
7473 | # | |
7474 | if test x"$ac_file" != x-; then | |
7475 | { | |
7476 | $as_echo "/* $configure_input */" \ | |
7477 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
7478 | } >"$tmp/config.h" \ | |
7479 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7480 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
7482 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
7483 | else | |
7484 | rm -f "$ac_file" | |
7485 | mv "$tmp/config.h" "$ac_file" \ | |
7486 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
7487 | fi | |
b7026657 | 7488 | else |
81ecdfbb RW |
7489 | $as_echo "/* $configure_input */" \ |
7490 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
7491 | || as_fn_error "could not create -" "$LINENO" 5 | |
7492 | fi | |
7493 | ;; | |
7494 | :L) | |
7495 | # | |
7496 | # CONFIG_LINK | |
7497 | # | |
b7026657 | 7498 | |
81ecdfbb RW |
7499 | if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then |
7500 | : | |
7501 | else | |
7502 | # Prefer the file from the source tree if names are identical. | |
7503 | if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then | |
7504 | ac_source=$srcdir/$ac_source | |
7505 | fi | |
b7026657 | 7506 | |
81ecdfbb RW |
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 |
7508 | $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} | |
c906108c | 7509 | |
81ecdfbb RW |
7510 | if test ! -r "$ac_source"; then |
7511 | as_fn_error "$ac_source: file not found" "$LINENO" 5 | |
7512 | fi | |
7513 | rm -f "$ac_file" | |
b7026657 | 7514 | |
81ecdfbb RW |
7515 | # Try a relative symlink, then a hard link, then a copy. |
7516 | case $srcdir in | |
7517 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; | |
7518 | *) ac_rel_source=$ac_top_build_prefix$ac_source ;; | |
7519 | esac | |
7520 | ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || | |
7521 | ln "$ac_source" "$ac_file" 2>/dev/null || | |
7522 | cp -p "$ac_source" "$ac_file" || | |
7523 | as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 | |
7524 | fi | |
7525 | ;; | |
7526 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
7527 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
7528 | ;; | |
7529 | esac | |
b7026657 AC |
7530 | |
7531 | ||
81ecdfbb | 7532 | case $ac_file$ac_mode in |
db2e4d67 | 7533 | "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; |
81ecdfbb | 7534 | "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." |
38f48d72 AC |
7535 | rm -f Makesim1.tmp Makesim2.tmp Makefile |
7536 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
7537 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
7538 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
c906108c SS |
7539 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ |
7540 | <Makefile.sim >Makefile | |
38f48d72 | 7541 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp |
b7026657 | 7542 | ;; |
81ecdfbb RW |
7543 | "stamp-h":C) echo > stamp-h ;; |
7544 | ||
b7026657 | 7545 | esac |
81ecdfbb | 7546 | done # for ac_tag |
c906108c | 7547 | |
b7026657 | 7548 | |
81ecdfbb | 7549 | as_fn_exit 0 |
b7026657 | 7550 | _ACEOF |
b7026657 AC |
7551 | ac_clean_files=$ac_clean_files_save |
7552 | ||
81ecdfbb RW |
7553 | test $ac_write_fail = 0 || |
7554 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
7555 | ||
b7026657 AC |
7556 | |
7557 | # configure is writing to config.log, and then calls config.status. | |
7558 | # config.status does its own redirection, appending to config.log. | |
7559 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7560 | # by configure, so config.status won't be able to write to it; its | |
7561 | # output is simply discarded. So we exec the FD to /dev/null, | |
7562 | # effectively closing config.log, so it can be properly (re)opened and | |
7563 | # appended to by config.status. When coming back to configure, we | |
7564 | # need to make the FD available again. | |
7565 | if test "$no_create" != yes; then | |
7566 | ac_cs_success=: | |
7567 | ac_config_status_args= | |
7568 | test "$silent" = yes && | |
7569 | ac_config_status_args="$ac_config_status_args --quiet" | |
7570 | exec 5>/dev/null | |
7571 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7572 | exec 5>>config.log | |
7573 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7574 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
7575 | $ac_cs_success || as_fn_exit $? |
7576 | fi | |
7577 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7579 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b7026657 | 7580 | fi |
c906108c SS |
7581 | |
7582 |