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