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