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