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 | ||
b15c5d7a MF |
625 | ac_header_list= |
626 | ac_func_list= | |
81ecdfbb | 627 | enable_option_checking=no |
6bddc3e8 MF |
628 | ac_subst_vars='am__EXEEXT_FALSE |
629 | am__EXEEXT_TRUE | |
630 | LTLIBOBJS | |
b6b1c790 MF |
631 | SIM_ENABLE_IGEN_FALSE |
632 | SIM_ENABLE_IGEN_TRUE | |
81ecdfbb | 633 | subdirs |
a0e674c1 | 634 | SIM_PRIMARY_TARGET |
c2783492 MF |
635 | AM_BACKSLASH |
636 | AM_DEFAULT_VERBOSITY | |
637 | AM_DEFAULT_V | |
638 | AM_V | |
6bddc3e8 MF |
639 | am__fastdepCC_FALSE |
640 | am__fastdepCC_TRUE | |
641 | CCDEPMODE | |
642 | am__nodep | |
643 | AMDEPBACKSLASH | |
644 | AMDEP_FALSE | |
645 | AMDEP_TRUE | |
646 | am__quote | |
647 | am__include | |
648 | DEPDIR | |
6bddc3e8 MF |
649 | am__untar |
650 | am__tar | |
651 | AMTAR | |
652 | am__leading_dot | |
653 | SET_MAKE | |
654 | AWK | |
655 | mkdir_p | |
656 | MKDIR_P | |
657 | INSTALL_STRIP_PROGRAM | |
658 | STRIP | |
659 | install_sh | |
660 | MAKEINFO | |
661 | AUTOHEADER | |
662 | AUTOMAKE | |
663 | AUTOCONF | |
664 | ACLOCAL | |
665 | VERSION | |
666 | PACKAGE | |
667 | CYGPATH_W | |
668 | am__isrc | |
8c379db2 TT |
669 | MAINT |
670 | MAINTAINER_MODE_FALSE | |
671 | MAINTAINER_MODE_TRUE | |
a48ff3ef | 672 | LIBOBJS |
c2783492 MF |
673 | C_DIALECT |
674 | RANLIB | |
675 | AR | |
676 | LDFLAGS_FOR_BUILD | |
677 | CFLAGS_FOR_BUILD | |
aa0fca16 | 678 | RANLIB_FOR_BUILD |
c2783492 | 679 | CC_FOR_BUILD |
aa0fca16 | 680 | AR_FOR_BUILD |
c2783492 MF |
681 | INSTALL_DATA |
682 | INSTALL_SCRIPT | |
683 | INSTALL_PROGRAM | |
684 | EGREP | |
685 | GREP | |
686 | CPP | |
687 | OBJEXT | |
688 | EXEEXT | |
689 | ac_ct_CC | |
690 | CPPFLAGS | |
691 | LDFLAGS | |
692 | CFLAGS | |
693 | CC | |
81ecdfbb RW |
694 | target_os |
695 | target_vendor | |
696 | target_cpu | |
697 | target | |
698 | host_os | |
699 | host_vendor | |
700 | host_cpu | |
701 | host | |
702 | build_os | |
703 | build_vendor | |
704 | build_cpu | |
705 | build | |
6dd65fc0 MF |
706 | REPORT_BUGS_TEXI |
707 | REPORT_BUGS_TO | |
708 | PKGVERSION | |
81ecdfbb RW |
709 | target_alias |
710 | host_alias | |
711 | build_alias | |
712 | LIBS | |
713 | ECHO_T | |
714 | ECHO_N | |
715 | ECHO_C | |
716 | DEFS | |
717 | mandir | |
718 | localedir | |
719 | libdir | |
720 | psdir | |
721 | pdfdir | |
722 | dvidir | |
723 | htmldir | |
724 | infodir | |
725 | docdir | |
726 | oldincludedir | |
727 | includedir | |
728 | localstatedir | |
729 | sharedstatedir | |
730 | sysconfdir | |
731 | datadir | |
732 | datarootdir | |
733 | libexecdir | |
734 | sbindir | |
735 | bindir | |
736 | program_transform_name | |
737 | prefix | |
738 | exec_prefix | |
739 | PACKAGE_URL | |
740 | PACKAGE_BUGREPORT | |
741 | PACKAGE_STRING | |
742 | PACKAGE_VERSION | |
743 | PACKAGE_TARNAME | |
744 | PACKAGE_NAME | |
745 | PATH_SEPARATOR | |
746 | SHELL' | |
b7026657 | 747 | ac_subst_files='' |
81ecdfbb RW |
748 | ac_user_opts=' |
749 | enable_option_checking | |
6dd65fc0 MF |
750 | with_pkgversion |
751 | with_bugurl | |
8c379db2 | 752 | enable_maintainer_mode |
6bddc3e8 | 753 | enable_dependency_tracking |
c2783492 | 754 | enable_silent_rules |
81ecdfbb | 755 | enable_sim |
26da232c | 756 | enable_example_sims |
a0e674c1 | 757 | enable_targets |
dba333c1 | 758 | enable_sim_assert |
04381273 | 759 | enable_sim_debug |
5ea45474 | 760 | enable_sim_environment |
04381273 MF |
761 | enable_sim_profile |
762 | enable_sim_stdio | |
763 | enable_sim_trace | |
81ecdfbb RW |
764 | ' |
765 | ac_precious_vars='build_alias | |
766 | host_alias | |
767 | target_alias | |
768 | CC | |
769 | CFLAGS | |
770 | LDFLAGS | |
771 | LIBS | |
5e25901f MF |
772 | CPPFLAGS |
773 | CPP' | |
2e8cf49e NC |
774 | ac_subdirs_all='aarch64 |
775 | arm | |
81ecdfbb | 776 | avr |
ef016f83 | 777 | bfin |
b26e2ae7 | 778 | bpf |
81ecdfbb RW |
779 | cr16 |
780 | cris | |
781 | d10v | |
782 | frv | |
783 | h8300 | |
784 | iq2000 | |
785 | lm32 | |
786 | m32c | |
787 | m32r | |
788 | m68hc11 | |
789 | mcore | |
bd30e45a | 790 | microblaze |
81ecdfbb RW |
791 | mips |
792 | mn10300 | |
793 | moxie | |
3346cfda | 794 | msp430 |
37f980dc | 795 | or1k |
ddd44b70 | 796 | pru |
b9249c46 | 797 | riscv |
87326c78 | 798 | rl78 |
4f8d4a38 | 799 | rx |
81ecdfbb RW |
800 | sh |
801 | erc32 | |
802 | ppc | |
f46e4eb7 | 803 | ft32 |
26da232c MF |
804 | v850 |
805 | example-synacor' | |
c906108c SS |
806 | |
807 | # Initialize some variables set by options. | |
b7026657 AC |
808 | ac_init_help= |
809 | ac_init_version=false | |
81ecdfbb RW |
810 | ac_unrecognized_opts= |
811 | ac_unrecognized_sep= | |
c906108c SS |
812 | # The variables have the same names as the options, with |
813 | # dashes changed to underlines. | |
b7026657 | 814 | cache_file=/dev/null |
c906108c | 815 | exec_prefix=NONE |
c906108c | 816 | no_create= |
c906108c SS |
817 | no_recursion= |
818 | prefix=NONE | |
819 | program_prefix=NONE | |
820 | program_suffix=NONE | |
821 | program_transform_name=s,x,x, | |
822 | silent= | |
823 | site= | |
824 | srcdir= | |
c906108c SS |
825 | verbose= |
826 | x_includes=NONE | |
827 | x_libraries=NONE | |
b7026657 AC |
828 | |
829 | # Installation directory options. | |
830 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
831 | # and all the variables that are supposed to be based on exec_prefix | |
832 | # by default will actually change. | |
833 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 834 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
835 | bindir='${exec_prefix}/bin' |
836 | sbindir='${exec_prefix}/sbin' | |
837 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
838 | datarootdir='${prefix}/share' |
839 | datadir='${datarootdir}' | |
c906108c SS |
840 | sysconfdir='${prefix}/etc' |
841 | sharedstatedir='${prefix}/com' | |
842 | localstatedir='${prefix}/var' | |
c906108c SS |
843 | includedir='${prefix}/include' |
844 | oldincludedir='/usr/include' | |
6bddc3e8 | 845 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
846 | infodir='${datarootdir}/info' |
847 | htmldir='${docdir}' | |
848 | dvidir='${docdir}' | |
849 | pdfdir='${docdir}' | |
850 | psdir='${docdir}' | |
851 | libdir='${exec_prefix}/lib' | |
852 | localedir='${datarootdir}/locale' | |
853 | mandir='${datarootdir}/man' | |
c906108c | 854 | |
c906108c | 855 | ac_prev= |
81ecdfbb | 856 | ac_dashdash= |
c906108c SS |
857 | for ac_option |
858 | do | |
c906108c SS |
859 | # If the previous option needs an argument, assign it. |
860 | if test -n "$ac_prev"; then | |
81ecdfbb | 861 | eval $ac_prev=\$ac_option |
c906108c SS |
862 | ac_prev= |
863 | continue | |
864 | fi | |
865 | ||
81ecdfbb | 866 | case $ac_option in |
d0ac1c44 SM |
867 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
868 | *=) ac_optarg= ;; | |
869 | *) ac_optarg=yes ;; | |
81ecdfbb | 870 | esac |
c906108c SS |
871 | |
872 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
873 | ||
81ecdfbb RW |
874 | case $ac_dashdash$ac_option in |
875 | --) | |
876 | ac_dashdash=yes ;; | |
c906108c SS |
877 | |
878 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
879 | ac_prev=bindir ;; | |
880 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 881 | bindir=$ac_optarg ;; |
c906108c SS |
882 | |
883 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 884 | ac_prev=build_alias ;; |
c906108c | 885 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 886 | build_alias=$ac_optarg ;; |
c906108c SS |
887 | |
888 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
889 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
890 | ac_prev=cache_file ;; | |
891 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
892 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
893 | cache_file=$ac_optarg ;; |
894 | ||
895 | --config-cache | -C) | |
896 | cache_file=config.cache ;; | |
c906108c | 897 | |
81ecdfbb | 898 | -datadir | --datadir | --datadi | --datad) |
c906108c | 899 | ac_prev=datadir ;; |
81ecdfbb | 900 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 901 | datadir=$ac_optarg ;; |
c906108c | 902 | |
81ecdfbb RW |
903 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
904 | | --dataroo | --dataro | --datar) | |
905 | ac_prev=datarootdir ;; | |
906 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
907 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
908 | datarootdir=$ac_optarg ;; | |
909 | ||
c906108c | 910 | -disable-* | --disable-*) |
81ecdfbb | 911 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 912 | # Reject names that are not valid shell variable names. |
81ecdfbb | 913 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 914 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
915 | ac_useropt_orig=$ac_useropt |
916 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
917 | case $ac_user_opts in | |
918 | *" | |
919 | "enable_$ac_useropt" | |
920 | "*) ;; | |
921 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
922 | ac_unrecognized_sep=', ';; | |
923 | esac | |
924 | eval enable_$ac_useropt=no ;; | |
925 | ||
926 | -docdir | --docdir | --docdi | --doc | --do) | |
927 | ac_prev=docdir ;; | |
928 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
929 | docdir=$ac_optarg ;; | |
930 | ||
931 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
932 | ac_prev=dvidir ;; | |
933 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
934 | dvidir=$ac_optarg ;; | |
c906108c SS |
935 | |
936 | -enable-* | --enable-*) | |
81ecdfbb | 937 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 938 | # Reject names that are not valid shell variable names. |
81ecdfbb | 939 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 940 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
941 | ac_useropt_orig=$ac_useropt |
942 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
943 | case $ac_user_opts in | |
944 | *" | |
945 | "enable_$ac_useropt" | |
946 | "*) ;; | |
947 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
948 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 949 | esac |
81ecdfbb | 950 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
951 | |
952 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
953 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
954 | | --exec | --exe | --ex) | |
955 | ac_prev=exec_prefix ;; | |
956 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
957 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
958 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 959 | exec_prefix=$ac_optarg ;; |
c906108c SS |
960 | |
961 | -gas | --gas | --ga | --g) | |
962 | # Obsolete; use --with-gas. | |
963 | with_gas=yes ;; | |
964 | ||
b7026657 AC |
965 | -help | --help | --hel | --he | -h) |
966 | ac_init_help=long ;; | |
967 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
968 | ac_init_help=recursive ;; | |
969 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
970 | ac_init_help=short ;; | |
c906108c SS |
971 | |
972 | -host | --host | --hos | --ho) | |
b7026657 | 973 | ac_prev=host_alias ;; |
c906108c | 974 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 975 | host_alias=$ac_optarg ;; |
c906108c | 976 | |
81ecdfbb RW |
977 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
978 | ac_prev=htmldir ;; | |
979 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
980 | | --ht=*) | |
981 | htmldir=$ac_optarg ;; | |
982 | ||
c906108c SS |
983 | -includedir | --includedir | --includedi | --included | --include \ |
984 | | --includ | --inclu | --incl | --inc) | |
985 | ac_prev=includedir ;; | |
986 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
987 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 988 | includedir=$ac_optarg ;; |
c906108c SS |
989 | |
990 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
991 | ac_prev=infodir ;; | |
992 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 993 | infodir=$ac_optarg ;; |
c906108c SS |
994 | |
995 | -libdir | --libdir | --libdi | --libd) | |
996 | ac_prev=libdir ;; | |
997 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 998 | libdir=$ac_optarg ;; |
c906108c SS |
999 | |
1000 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1001 | | --libexe | --libex | --libe) | |
1002 | ac_prev=libexecdir ;; | |
1003 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1004 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 1005 | libexecdir=$ac_optarg ;; |
c906108c | 1006 | |
81ecdfbb RW |
1007 | -localedir | --localedir | --localedi | --localed | --locale) |
1008 | ac_prev=localedir ;; | |
1009 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1010 | localedir=$ac_optarg ;; | |
1011 | ||
c906108c | 1012 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1013 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1014 | ac_prev=localstatedir ;; |
1015 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1016 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1017 | localstatedir=$ac_optarg ;; |
c906108c SS |
1018 | |
1019 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1020 | ac_prev=mandir ;; | |
1021 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1022 | mandir=$ac_optarg ;; |
c906108c SS |
1023 | |
1024 | -nfp | --nfp | --nf) | |
1025 | # Obsolete; use --without-fp. | |
1026 | with_fp=no ;; | |
1027 | ||
1028 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1029 | | --no-cr | --no-c | -n) |
c906108c SS |
1030 | no_create=yes ;; |
1031 | ||
1032 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1033 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1034 | no_recursion=yes ;; | |
1035 | ||
1036 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1037 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1038 | | --oldin | --oldi | --old | --ol | --o) | |
1039 | ac_prev=oldincludedir ;; | |
1040 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1041 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1042 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1043 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1044 | |
1045 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1046 | ac_prev=prefix ;; | |
1047 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1048 | prefix=$ac_optarg ;; |
c906108c SS |
1049 | |
1050 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1051 | | --program-pre | --program-pr | --program-p) | |
1052 | ac_prev=program_prefix ;; | |
1053 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1054 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1055 | program_prefix=$ac_optarg ;; |
c906108c SS |
1056 | |
1057 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1058 | | --program-suf | --program-su | --program-s) | |
1059 | ac_prev=program_suffix ;; | |
1060 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1061 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1062 | program_suffix=$ac_optarg ;; |
c906108c SS |
1063 | |
1064 | -program-transform-name | --program-transform-name \ | |
1065 | | --program-transform-nam | --program-transform-na \ | |
1066 | | --program-transform-n | --program-transform- \ | |
1067 | | --program-transform | --program-transfor \ | |
1068 | | --program-transfo | --program-transf \ | |
1069 | | --program-trans | --program-tran \ | |
1070 | | --progr-tra | --program-tr | --program-t) | |
1071 | ac_prev=program_transform_name ;; | |
1072 | -program-transform-name=* | --program-transform-name=* \ | |
1073 | | --program-transform-nam=* | --program-transform-na=* \ | |
1074 | | --program-transform-n=* | --program-transform-=* \ | |
1075 | | --program-transform=* | --program-transfor=* \ | |
1076 | | --program-transfo=* | --program-transf=* \ | |
1077 | | --program-trans=* | --program-tran=* \ | |
1078 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1079 | program_transform_name=$ac_optarg ;; |
c906108c | 1080 | |
81ecdfbb RW |
1081 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1082 | ac_prev=pdfdir ;; | |
1083 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1084 | pdfdir=$ac_optarg ;; | |
1085 | ||
1086 | -psdir | --psdir | --psdi | --psd | --ps) | |
1087 | ac_prev=psdir ;; | |
1088 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1089 | psdir=$ac_optarg ;; | |
1090 | ||
c906108c SS |
1091 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1092 | | -silent | --silent | --silen | --sile | --sil) | |
1093 | silent=yes ;; | |
1094 | ||
1095 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1096 | ac_prev=sbindir ;; | |
1097 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1098 | | --sbi=* | --sb=*) | |
b7026657 | 1099 | sbindir=$ac_optarg ;; |
c906108c SS |
1100 | |
1101 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1102 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1103 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1104 | | --sha | --sh) | |
1105 | ac_prev=sharedstatedir ;; | |
1106 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1107 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1108 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1109 | | --sha=* | --sh=*) | |
b7026657 | 1110 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1111 | |
1112 | -site | --site | --sit) | |
1113 | ac_prev=site ;; | |
1114 | -site=* | --site=* | --sit=*) | |
b7026657 | 1115 | site=$ac_optarg ;; |
0fda6bd2 | 1116 | |
c906108c SS |
1117 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1118 | ac_prev=srcdir ;; | |
1119 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1120 | srcdir=$ac_optarg ;; |
c906108c SS |
1121 | |
1122 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1123 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1124 | ac_prev=sysconfdir ;; | |
1125 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1126 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1127 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1128 | |
1129 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1130 | ac_prev=target_alias ;; |
c906108c | 1131 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1132 | target_alias=$ac_optarg ;; |
c906108c SS |
1133 | |
1134 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1135 | verbose=yes ;; | |
1136 | ||
b7026657 AC |
1137 | -version | --version | --versio | --versi | --vers | -V) |
1138 | ac_init_version=: ;; | |
c906108c SS |
1139 | |
1140 | -with-* | --with-*) | |
81ecdfbb | 1141 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1142 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1143 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1144 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1145 | ac_useropt_orig=$ac_useropt |
1146 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1147 | case $ac_user_opts in | |
1148 | *" | |
1149 | "with_$ac_useropt" | |
1150 | "*) ;; | |
1151 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1152 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1153 | esac |
81ecdfbb | 1154 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1155 | |
1156 | -without-* | --without-*) | |
81ecdfbb | 1157 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1158 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1159 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1160 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1161 | ac_useropt_orig=$ac_useropt |
1162 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1163 | case $ac_user_opts in | |
1164 | *" | |
1165 | "with_$ac_useropt" | |
1166 | "*) ;; | |
1167 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1168 | ac_unrecognized_sep=', ';; | |
1169 | esac | |
1170 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1171 | |
1172 | --x) | |
1173 | # Obsolete; use --with-x. | |
1174 | with_x=yes ;; | |
1175 | ||
1176 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1177 | | --x-incl | --x-inc | --x-in | --x-i) | |
1178 | ac_prev=x_includes ;; | |
1179 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1180 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1181 | x_includes=$ac_optarg ;; |
c906108c SS |
1182 | |
1183 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1184 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1185 | ac_prev=x_libraries ;; | |
1186 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1187 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1188 | x_libraries=$ac_optarg ;; |
c906108c | 1189 | |
d0ac1c44 SM |
1190 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1191 | Try \`$0 --help' for more information" | |
c906108c SS |
1192 | ;; |
1193 | ||
b7026657 AC |
1194 | *=*) |
1195 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1196 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1197 | case $ac_envvar in #( |
1198 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1199 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1200 | esac |
1201 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1202 | export $ac_envvar ;; |
1203 | ||
c906108c | 1204 | *) |
b7026657 | 1205 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1206 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1207 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1208 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1209 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1210 | ;; |
1211 | ||
1212 | esac | |
1213 | done | |
1214 | ||
1215 | if test -n "$ac_prev"; then | |
b7026657 | 1216 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1217 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1218 | fi |
c906108c | 1219 | |
81ecdfbb RW |
1220 | if test -n "$ac_unrecognized_opts"; then |
1221 | case $enable_option_checking in | |
1222 | no) ;; | |
d0ac1c44 | 1223 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1224 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
fdd6fa61 | 1225 | esac |
81ecdfbb | 1226 | fi |
fdd6fa61 | 1227 | |
81ecdfbb RW |
1228 | # Check all directory arguments for consistency. |
1229 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1230 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1231 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1232 | libdir localedir mandir | |
c906108c | 1233 | do |
81ecdfbb RW |
1234 | eval ac_val=\$$ac_var |
1235 | # Remove trailing slashes. | |
1236 | case $ac_val in | |
1237 | */ ) | |
1238 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1239 | eval $ac_var=\$ac_val;; | |
1240 | esac | |
1241 | # Be sure to have absolute directory names. | |
b7026657 | 1242 | case $ac_val in |
81ecdfbb RW |
1243 | [\\/$]* | ?:[\\/]* ) continue;; |
1244 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1245 | esac |
d0ac1c44 | 1246 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1247 | done |
1248 | ||
b7026657 AC |
1249 | # There might be people who depend on the old broken behavior: `$host' |
1250 | # used to hold the argument of --host etc. | |
1251 | # FIXME: To remove some day. | |
1252 | build=$build_alias | |
1253 | host=$host_alias | |
1254 | target=$target_alias | |
1255 | ||
1256 | # FIXME: To remove some day. | |
1257 | if test "x$host_alias" != x; then | |
1258 | if test "x$build_alias" = x; then | |
1259 | cross_compiling=maybe | |
b7026657 AC |
1260 | elif test "x$build_alias" != "x$host_alias"; then |
1261 | cross_compiling=yes | |
1262 | fi | |
1263 | fi | |
c906108c | 1264 | |
b7026657 AC |
1265 | ac_tool_prefix= |
1266 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1267 | ||
1268 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1269 | |
c906108c | 1270 | |
81ecdfbb RW |
1271 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1272 | ac_ls_di=`ls -di .` && | |
1273 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1274 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1275 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1276 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1277 | |
1278 | ||
c906108c SS |
1279 | # Find the source files, if location was not specified. |
1280 | if test -z "$srcdir"; then | |
1281 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1282 | # Try the directory containing this script, then the parent directory. |
1283 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1284 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1285 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1286 | X"$as_myself" : 'X\(//\)$' \| \ | |
1287 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1288 | $as_echo X"$as_myself" | | |
1289 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1290 | s//\1/ | |
1291 | q | |
1292 | } | |
1293 | /^X\(\/\/\)[^/].*/{ | |
1294 | s//\1/ | |
1295 | q | |
1296 | } | |
1297 | /^X\(\/\/\)$/{ | |
1298 | s//\1/ | |
1299 | q | |
1300 | } | |
1301 | /^X\(\/\).*/{ | |
1302 | s//\1/ | |
1303 | q | |
1304 | } | |
1305 | s/.*/./; q'` | |
c906108c | 1306 | srcdir=$ac_confdir |
81ecdfbb | 1307 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1308 | srcdir=.. |
1309 | fi | |
1310 | else | |
1311 | ac_srcdir_defaulted=no | |
1312 | fi | |
81ecdfbb RW |
1313 | if test ! -r "$srcdir/$ac_unique_file"; then |
1314 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1315 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1316 | fi |
1317 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1318 | ac_abs_confdir=`( | |
d0ac1c44 | 1319 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1320 | pwd)` |
1321 | # When building in place, set srcdir=. | |
1322 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1323 | srcdir=. | |
1324 | fi | |
1325 | # Remove unnecessary trailing slashes from srcdir. | |
1326 | # Double slashes in file names in object file debugging info | |
1327 | # mess up M-x gdb in Emacs. | |
1328 | case $srcdir in | |
1329 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1330 | esac | |
1331 | for ac_var in $ac_precious_vars; do | |
1332 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1333 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1334 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1335 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1336 | done | |
df1756f4 TG |
1337 | |
1338 | # | |
b7026657 AC |
1339 | # Report the --help message. |
1340 | # | |
1341 | if test "$ac_init_help" = "long"; then | |
1342 | # Omit some internal or obsolete options to make the list less imposing. | |
1343 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1344 | cat <<_ACEOF | |
6bddc3e8 | 1345 | \`configure' configures sim 0 to adapt to many kinds of systems. |
b7026657 AC |
1346 | |
1347 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1348 | ||
1349 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1350 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1351 | ||
1352 | Defaults for the options are specified in brackets. | |
1353 | ||
1354 | Configuration: | |
1355 | -h, --help display this help and exit | |
1356 | --help=short display options specific to this package | |
1357 | --help=recursive display the short help of all the included packages | |
1358 | -V, --version display version information and exit | |
d0ac1c44 | 1359 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1360 | --cache-file=FILE cache test results in FILE [disabled] |
1361 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1362 | -n, --no-create do not create output files | |
1363 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1364 | ||
b7026657 AC |
1365 | Installation directories: |
1366 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1367 | [$ac_default_prefix] |
b7026657 | 1368 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1369 | [PREFIX] |
b7026657 AC |
1370 | |
1371 | By default, \`make install' will install all the files in | |
1372 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1373 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1374 | for instance \`--prefix=\$HOME'. | |
1375 | ||
1376 | For better control, use the options below. | |
1377 | ||
1378 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1379 | --bindir=DIR user executables [EPREFIX/bin] |
1380 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1381 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1382 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1383 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1384 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1385 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1386 | --includedir=DIR C header files [PREFIX/include] | |
1387 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1388 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1389 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1390 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1391 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1392 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
6bddc3e8 | 1393 | --docdir=DIR documentation root [DATAROOTDIR/doc/sim] |
81ecdfbb RW |
1394 | --htmldir=DIR html documentation [DOCDIR] |
1395 | --dvidir=DIR dvi documentation [DOCDIR] | |
1396 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1397 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1398 | _ACEOF |
1399 | ||
1400 | cat <<\_ACEOF | |
1401 | ||
1402 | Program names: | |
1403 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1404 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1405 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1406 | ||
1407 | System types: | |
1408 | --build=BUILD configure for building on BUILD [guessed] | |
1409 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1410 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1411 | _ACEOF | |
1412 | fi | |
1413 | ||
1414 | if test -n "$ac_init_help"; then | |
6bddc3e8 MF |
1415 | case $ac_init_help in |
1416 | short | recursive ) echo "Configuration of sim 0:";; | |
1417 | esac | |
b7026657 AC |
1418 | cat <<\_ACEOF |
1419 | ||
1420 | Optional Features: | |
81ecdfbb | 1421 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1422 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1423 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8c379db2 TT |
1424 | --enable-maintainer-mode |
1425 | enable make rules and dependencies not useful (and | |
1426 | sometimes confusing) to the casual installer | |
6bddc3e8 MF |
1427 | --enable-dependency-tracking |
1428 | do not reject slow dependency extractors | |
1429 | --disable-dependency-tracking | |
1430 | speeds up one-time build | |
c2783492 MF |
1431 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1432 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8d0978fb | 1433 | --enable-sim Enable the GNU simulator |
26da232c | 1434 | --enable-example-sims enable example GNU simulators |
a0e674c1 | 1435 | --enable-targets alternative target configurations |
dba333c1 | 1436 | --enable-sim-assert Specify whether to perform random assertions |
04381273 MF |
1437 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1438 | itself) | |
5ea45474 MF |
1439 | --enable-sim-environment=environment |
1440 | Specify mixed, user, virtual or operating | |
1441 | environment | |
04381273 MF |
1442 | --enable-sim-profile=opts |
1443 | Enable profiling flags | |
1444 | --enable-sim-stdio Specify whether to use stdio for console | |
1445 | input/output | |
1446 | --enable-sim-trace=opts Enable tracing of simulated programs | |
b7026657 | 1447 | |
6dd65fc0 MF |
1448 | Optional Packages: |
1449 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1450 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1451 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" | |
1452 | --with-bugurl=URL Direct users to URL to report a bug | |
1453 | ||
b7026657 AC |
1454 | Some influential environment variables: |
1455 | CC C compiler command | |
1456 | CFLAGS C compiler flags | |
1457 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1458 | nonstandard directory <lib dir> | |
81ecdfbb | 1459 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1460 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1461 | you have headers in a nonstandard directory <include dir> |
5e25901f | 1462 | CPP C preprocessor |
b7026657 AC |
1463 | |
1464 | Use these variables to override the choices made by `configure' or to help | |
1465 | it to find libraries and programs with nonstandard names/locations. | |
1466 | ||
6bddc3e8 MF |
1467 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. |
1468 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>. | |
b7026657 | 1469 | _ACEOF |
81ecdfbb | 1470 | ac_status=$? |
b7026657 AC |
1471 | fi |
1472 | ||
1473 | if test "$ac_init_help" = "recursive"; then | |
1474 | # If there are subdirs, report their specific --help. | |
b7026657 | 1475 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1476 | test -d "$ac_dir" || |
1477 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1478 | continue | |
b7026657 AC |
1479 | ac_builddir=. |
1480 | ||
81ecdfbb RW |
1481 | case "$ac_dir" in |
1482 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1483 | *) | |
1484 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1485 | # A ".." for each directory in $ac_dir_suffix. | |
1486 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1487 | case $ac_top_builddir_sub in | |
1488 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1489 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1490 | esac ;; | |
1491 | esac | |
1492 | ac_abs_top_builddir=$ac_pwd | |
1493 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1494 | # for backward compatibility: | |
1495 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
1496 | |
1497 | case $srcdir in | |
81ecdfbb | 1498 | .) # We are building in place. |
b7026657 | 1499 | ac_srcdir=. |
81ecdfbb RW |
1500 | ac_top_srcdir=$ac_top_builddir_sub |
1501 | ac_abs_top_srcdir=$ac_pwd ;; | |
1502 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 1503 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1504 | ac_top_srcdir=$srcdir |
1505 | ac_abs_top_srcdir=$srcdir ;; | |
1506 | *) # Relative name. | |
1507 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1508 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1509 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fdd6fa61 | 1510 | esac |
81ecdfbb | 1511 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fdd6fa61 | 1512 | |
81ecdfbb RW |
1513 | cd "$ac_dir" || { ac_status=$?; continue; } |
1514 | # Check for guested configure. | |
1515 | if test -f "$ac_srcdir/configure.gnu"; then | |
1516 | echo && | |
1517 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1518 | elif test -f "$ac_srcdir/configure"; then | |
1519 | echo && | |
1520 | $SHELL "$ac_srcdir/configure" --help=recursive | |
0fda6bd2 | 1521 | else |
81ecdfbb RW |
1522 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1523 | fi || ac_status=$? | |
1524 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
1525 | done |
1526 | fi | |
1527 | ||
81ecdfbb | 1528 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
1529 | if $ac_init_version; then |
1530 | cat <<\_ACEOF | |
6bddc3e8 | 1531 | sim configure 0 |
d0ac1c44 | 1532 | generated by GNU Autoconf 2.69 |
b7026657 | 1533 | |
d0ac1c44 | 1534 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
1535 | This configure script is free software; the Free Software Foundation |
1536 | gives unlimited permission to copy, distribute and modify it. | |
1537 | _ACEOF | |
81ecdfbb | 1538 | exit |
b7026657 | 1539 | fi |
81ecdfbb RW |
1540 | |
1541 | ## ------------------------ ## | |
1542 | ## Autoconf initialization. ## | |
1543 | ## ------------------------ ## | |
1544 | ||
1545 | # ac_fn_c_try_compile LINENO | |
1546 | # -------------------------- | |
1547 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1548 | ac_fn_c_try_compile () | |
1549 | { | |
1550 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1551 | rm -f conftest.$ac_objext | |
1552 | if { { ac_try="$ac_compile" | |
1553 | case "(($ac_try" in | |
1554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1555 | *) ac_try_echo=$ac_try;; | |
1556 | esac | |
1557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1558 | $as_echo "$ac_try_echo"; } >&5 | |
1559 | (eval "$ac_compile") 2>conftest.err | |
1560 | ac_status=$? | |
1561 | if test -s conftest.err; then | |
1562 | grep -v '^ *+' conftest.err >conftest.er1 | |
1563 | cat conftest.er1 >&5 | |
1564 | mv -f conftest.er1 conftest.err | |
1565 | fi | |
1566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1567 | test $ac_status = 0; } && { | |
1568 | test -z "$ac_c_werror_flag" || | |
1569 | test ! -s conftest.err | |
1570 | } && test -s conftest.$ac_objext; then : | |
1571 | ac_retval=0 | |
1572 | else | |
1573 | $as_echo "$as_me: failed program was:" >&5 | |
1574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1575 | ||
1576 | ac_retval=1 | |
1577 | fi | |
d0ac1c44 SM |
1578 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1579 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1580 | |
1581 | } # ac_fn_c_try_compile | |
5e25901f MF |
1582 | |
1583 | # ac_fn_c_try_cpp LINENO | |
1584 | # ---------------------- | |
1585 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1586 | ac_fn_c_try_cpp () | |
1587 | { | |
1588 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1589 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1590 | case "(($ac_try" in | |
1591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1592 | *) ac_try_echo=$ac_try;; | |
1593 | esac | |
1594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1595 | $as_echo "$ac_try_echo"; } >&5 | |
1596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1597 | ac_status=$? | |
1598 | if test -s conftest.err; then | |
1599 | grep -v '^ *+' conftest.err >conftest.er1 | |
1600 | cat conftest.er1 >&5 | |
1601 | mv -f conftest.er1 conftest.err | |
1602 | fi | |
1603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1604 | test $ac_status = 0; } > conftest.i && { | |
1605 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1606 | test ! -s conftest.err | |
1607 | }; then : | |
1608 | ac_retval=0 | |
1609 | else | |
1610 | $as_echo "$as_me: failed program was:" >&5 | |
1611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1612 | ||
1613 | ac_retval=1 | |
1614 | fi | |
1615 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1616 | as_fn_set_status $ac_retval | |
1617 | ||
1618 | } # ac_fn_c_try_cpp | |
c2783492 MF |
1619 | |
1620 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1621 | # ------------------------------------------------------- | |
1622 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1623 | # the include files in INCLUDES and setting the cache variable VAR | |
1624 | # accordingly. | |
1625 | ac_fn_c_check_header_mongrel () | |
1626 | { | |
1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1628 | if eval \${$3+:} false; then : | |
1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1630 | $as_echo_n "checking for $2... " >&6; } | |
1631 | if eval \${$3+:} false; then : | |
1632 | $as_echo_n "(cached) " >&6 | |
1633 | fi | |
1634 | eval ac_res=\$$3 | |
1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1636 | $as_echo "$ac_res" >&6; } | |
1637 | else | |
1638 | # Is the header compilable? | |
1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1640 | $as_echo_n "checking $2 usability... " >&6; } | |
1641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1642 | /* end confdefs.h. */ | |
1643 | $4 | |
1644 | #include <$2> | |
1645 | _ACEOF | |
1646 | if ac_fn_c_try_compile "$LINENO"; then : | |
1647 | ac_header_compiler=yes | |
1648 | else | |
1649 | ac_header_compiler=no | |
1650 | fi | |
1651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1653 | $as_echo "$ac_header_compiler" >&6; } | |
1654 | ||
1655 | # Is the header present? | |
1656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1657 | $as_echo_n "checking $2 presence... " >&6; } | |
1658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1659 | /* end confdefs.h. */ | |
1660 | #include <$2> | |
1661 | _ACEOF | |
1662 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1663 | ac_header_preproc=yes | |
1664 | else | |
1665 | ac_header_preproc=no | |
1666 | fi | |
1667 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1669 | $as_echo "$ac_header_preproc" >&6; } | |
1670 | ||
1671 | # So? What about this header? | |
1672 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1673 | yes:no: ) | |
1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1675 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1677 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1678 | ;; | |
1679 | no:yes:* ) | |
1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1681 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1682 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1683 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1685 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1687 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1689 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1690 | ( $as_echo "## -------------------------------------------------------------------------------------- ## | |
1691 | ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ## | |
1692 | ## -------------------------------------------------------------------------------------- ##" | |
1693 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1694 | ;; | |
1695 | esac | |
1696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1697 | $as_echo_n "checking for $2... " >&6; } | |
1698 | if eval \${$3+:} false; then : | |
1699 | $as_echo_n "(cached) " >&6 | |
1700 | else | |
1701 | eval "$3=\$ac_header_compiler" | |
1702 | fi | |
1703 | eval ac_res=\$$3 | |
1704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1705 | $as_echo "$ac_res" >&6; } | |
1706 | fi | |
1707 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1708 | ||
1709 | } # ac_fn_c_check_header_mongrel | |
1710 | ||
1711 | # ac_fn_c_try_run LINENO | |
1712 | # ---------------------- | |
1713 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1714 | # that executables *can* be run. | |
1715 | ac_fn_c_try_run () | |
1716 | { | |
1717 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1718 | if { { ac_try="$ac_link" | |
1719 | case "(($ac_try" in | |
1720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1721 | *) ac_try_echo=$ac_try;; | |
1722 | esac | |
1723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1724 | $as_echo "$ac_try_echo"; } >&5 | |
1725 | (eval "$ac_link") 2>&5 | |
1726 | ac_status=$? | |
1727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1728 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1729 | { { case "(($ac_try" in | |
1730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1731 | *) ac_try_echo=$ac_try;; | |
1732 | esac | |
1733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1734 | $as_echo "$ac_try_echo"; } >&5 | |
1735 | (eval "$ac_try") 2>&5 | |
1736 | ac_status=$? | |
1737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1738 | test $ac_status = 0; }; }; then : | |
1739 | ac_retval=0 | |
1740 | else | |
1741 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1742 | $as_echo "$as_me: failed program was:" >&5 | |
1743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1744 | ||
1745 | ac_retval=$ac_status | |
1746 | fi | |
1747 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1748 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1749 | as_fn_set_status $ac_retval | |
1750 | ||
1751 | } # ac_fn_c_try_run | |
1752 | ||
1753 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1754 | # ------------------------------------------------------- | |
1755 | # Tests whether HEADER exists and can be compiled using the include files in | |
1756 | # INCLUDES, setting the cache variable VAR accordingly. | |
1757 | ac_fn_c_check_header_compile () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1761 | $as_echo_n "checking for $2... " >&6; } | |
1762 | if eval \${$3+:} false; then : | |
1763 | $as_echo_n "(cached) " >&6 | |
1764 | else | |
1765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1766 | /* end confdefs.h. */ | |
1767 | $4 | |
1768 | #include <$2> | |
1769 | _ACEOF | |
1770 | if ac_fn_c_try_compile "$LINENO"; then : | |
1771 | eval "$3=yes" | |
1772 | else | |
1773 | eval "$3=no" | |
1774 | fi | |
1775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1776 | fi | |
1777 | eval ac_res=\$$3 | |
1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1779 | $as_echo "$ac_res" >&6; } | |
1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1781 | ||
1782 | } # ac_fn_c_check_header_compile | |
b15c5d7a MF |
1783 | |
1784 | # ac_fn_c_try_link LINENO | |
1785 | # ----------------------- | |
1786 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1787 | ac_fn_c_try_link () | |
1788 | { | |
1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1791 | if { { ac_try="$ac_link" | |
1792 | case "(($ac_try" in | |
1793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1794 | *) ac_try_echo=$ac_try;; | |
1795 | esac | |
1796 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1797 | $as_echo "$ac_try_echo"; } >&5 | |
1798 | (eval "$ac_link") 2>conftest.err | |
1799 | ac_status=$? | |
1800 | if test -s conftest.err; then | |
1801 | grep -v '^ *+' conftest.err >conftest.er1 | |
1802 | cat conftest.er1 >&5 | |
1803 | mv -f conftest.er1 conftest.err | |
1804 | fi | |
1805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1806 | test $ac_status = 0; } && { | |
1807 | test -z "$ac_c_werror_flag" || | |
1808 | test ! -s conftest.err | |
1809 | } && test -s conftest$ac_exeext && { | |
1810 | test "$cross_compiling" = yes || | |
1811 | test -x conftest$ac_exeext | |
1812 | }; then : | |
1813 | ac_retval=0 | |
1814 | else | |
1815 | $as_echo "$as_me: failed program was:" >&5 | |
1816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1817 | ||
1818 | ac_retval=1 | |
1819 | fi | |
1820 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1821 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1822 | # interfere with the next link command; also delete a directory that is | |
1823 | # left behind by Apple's compiler. We do this before executing the actions. | |
1824 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1825 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1826 | as_fn_set_status $ac_retval | |
1827 | ||
1828 | } # ac_fn_c_try_link | |
1829 | ||
1830 | # ac_fn_c_check_func LINENO FUNC VAR | |
1831 | # ---------------------------------- | |
1832 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1833 | ac_fn_c_check_func () | |
1834 | { | |
1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1837 | $as_echo_n "checking for $2... " >&6; } | |
1838 | if eval \${$3+:} false; then : | |
1839 | $as_echo_n "(cached) " >&6 | |
1840 | else | |
1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1842 | /* end confdefs.h. */ | |
1843 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1844 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1845 | #define $2 innocuous_$2 | |
1846 | ||
1847 | /* System header to define __stub macros and hopefully few prototypes, | |
1848 | which can conflict with char $2 (); below. | |
1849 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1850 | <limits.h> exists even on freestanding compilers. */ | |
1851 | ||
1852 | #ifdef __STDC__ | |
1853 | # include <limits.h> | |
1854 | #else | |
1855 | # include <assert.h> | |
1856 | #endif | |
1857 | ||
1858 | #undef $2 | |
1859 | ||
1860 | /* Override any GCC internal prototype to avoid an error. | |
1861 | Use char because int might match the return type of a GCC | |
1862 | builtin and then its argument prototype would still apply. */ | |
1863 | #ifdef __cplusplus | |
1864 | extern "C" | |
1865 | #endif | |
1866 | char $2 (); | |
1867 | /* The GNU C library defines this for functions which it implements | |
1868 | to always fail with ENOSYS. Some functions are actually named | |
1869 | something starting with __ and the normal name is an alias. */ | |
1870 | #if defined __stub_$2 || defined __stub___$2 | |
1871 | choke me | |
1872 | #endif | |
1873 | ||
1874 | int | |
1875 | main () | |
1876 | { | |
1877 | return $2 (); | |
1878 | ; | |
1879 | return 0; | |
1880 | } | |
1881 | _ACEOF | |
1882 | if ac_fn_c_try_link "$LINENO"; then : | |
1883 | eval "$3=yes" | |
1884 | else | |
1885 | eval "$3=no" | |
1886 | fi | |
1887 | rm -f core conftest.err conftest.$ac_objext \ | |
1888 | conftest$ac_exeext conftest.$ac_ext | |
1889 | fi | |
1890 | eval ac_res=\$$3 | |
1891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1892 | $as_echo "$ac_res" >&6; } | |
1893 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1894 | ||
1895 | } # ac_fn_c_check_func | |
1896 | ||
1897 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
1898 | # ---------------------------------------------------- | |
1899 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1900 | # INCLUDES, setting cache variable VAR accordingly. | |
1901 | ac_fn_c_check_member () | |
1902 | { | |
1903 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1905 | $as_echo_n "checking for $2.$3... " >&6; } | |
1906 | if eval \${$4+:} false; then : | |
1907 | $as_echo_n "(cached) " >&6 | |
1908 | else | |
1909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1910 | /* end confdefs.h. */ | |
1911 | $5 | |
1912 | int | |
1913 | main () | |
1914 | { | |
1915 | static $2 ac_aggr; | |
1916 | if (ac_aggr.$3) | |
1917 | return 0; | |
1918 | ; | |
1919 | return 0; | |
1920 | } | |
1921 | _ACEOF | |
1922 | if ac_fn_c_try_compile "$LINENO"; then : | |
1923 | eval "$4=yes" | |
1924 | else | |
1925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1926 | /* end confdefs.h. */ | |
1927 | $5 | |
1928 | int | |
1929 | main () | |
1930 | { | |
1931 | static $2 ac_aggr; | |
1932 | if (sizeof ac_aggr.$3) | |
1933 | return 0; | |
1934 | ; | |
1935 | return 0; | |
1936 | } | |
1937 | _ACEOF | |
1938 | if ac_fn_c_try_compile "$LINENO"; then : | |
1939 | eval "$4=yes" | |
1940 | else | |
1941 | eval "$4=no" | |
1942 | fi | |
1943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1944 | fi | |
1945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1946 | fi | |
1947 | eval ac_res=\$$4 | |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1949 | $as_echo "$ac_res" >&6; } | |
1950 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1951 | ||
1952 | } # ac_fn_c_check_member | |
1953 | ||
a48ff3ef MF |
1954 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1955 | # --------------------------------------------- | |
1956 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1957 | # accordingly. | |
1958 | ac_fn_c_check_decl () | |
1959 | { | |
1960 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1961 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1962 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1964 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1965 | if eval \${$3+:} false; then : | |
1966 | $as_echo_n "(cached) " >&6 | |
1967 | else | |
1968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1969 | /* end confdefs.h. */ | |
1970 | $4 | |
1971 | int | |
1972 | main () | |
1973 | { | |
1974 | #ifndef $as_decl_name | |
1975 | #ifdef __cplusplus | |
1976 | (void) $as_decl_use; | |
1977 | #else | |
1978 | (void) $as_decl_name; | |
1979 | #endif | |
1980 | #endif | |
1981 | ||
1982 | ; | |
1983 | return 0; | |
1984 | } | |
1985 | _ACEOF | |
1986 | if ac_fn_c_try_compile "$LINENO"; then : | |
1987 | eval "$3=yes" | |
1988 | else | |
1989 | eval "$3=no" | |
1990 | fi | |
1991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1992 | fi | |
1993 | eval ac_res=\$$3 | |
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1995 | $as_echo "$ac_res" >&6; } | |
1996 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1997 | ||
1998 | } # ac_fn_c_check_decl | |
1999 | ||
b15c5d7a MF |
2000 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2001 | # ------------------------------------------- | |
2002 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2003 | # variable VAR accordingly. | |
2004 | ac_fn_c_check_type () | |
2005 | { | |
2006 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2008 | $as_echo_n "checking for $2... " >&6; } | |
2009 | if eval \${$3+:} false; then : | |
2010 | $as_echo_n "(cached) " >&6 | |
2011 | else | |
2012 | eval "$3=no" | |
2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2014 | /* end confdefs.h. */ | |
2015 | $4 | |
2016 | int | |
2017 | main () | |
2018 | { | |
2019 | if (sizeof ($2)) | |
2020 | return 0; | |
2021 | ; | |
2022 | return 0; | |
2023 | } | |
2024 | _ACEOF | |
2025 | if ac_fn_c_try_compile "$LINENO"; then : | |
2026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2027 | /* end confdefs.h. */ | |
2028 | $4 | |
2029 | int | |
2030 | main () | |
2031 | { | |
2032 | if (sizeof (($2))) | |
2033 | return 0; | |
2034 | ; | |
2035 | return 0; | |
2036 | } | |
2037 | _ACEOF | |
2038 | if ac_fn_c_try_compile "$LINENO"; then : | |
2039 | ||
2040 | else | |
2041 | eval "$3=yes" | |
2042 | fi | |
2043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2044 | fi | |
2045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2046 | fi | |
2047 | eval ac_res=\$$3 | |
2048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2049 | $as_echo "$ac_res" >&6; } | |
2050 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2051 | ||
2052 | } # ac_fn_c_check_type | |
81ecdfbb | 2053 | cat >config.log <<_ACEOF |
b7026657 AC |
2054 | This file contains any messages produced by compilers while |
2055 | running configure, to aid debugging if configure makes a mistake. | |
2056 | ||
6bddc3e8 | 2057 | It was created by sim $as_me 0, which was |
d0ac1c44 | 2058 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
2059 | |
2060 | $ $0 $@ | |
2061 | ||
2062 | _ACEOF | |
81ecdfbb | 2063 | exec 5>>config.log |
b7026657 AC |
2064 | { |
2065 | cat <<_ASUNAME | |
2066 | ## --------- ## | |
2067 | ## Platform. ## | |
2068 | ## --------- ## | |
2069 | ||
2070 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2071 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2072 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2073 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2074 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2075 | ||
2076 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2077 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2078 | ||
2079 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2080 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2081 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2082 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
2083 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2084 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2085 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2086 | ||
2087 | _ASUNAME | |
2088 | ||
2089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2090 | for as_dir in $PATH | |
2091 | do | |
2092 | IFS=$as_save_IFS | |
2093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2094 | $as_echo "PATH: $as_dir" |
2095 | done | |
2096 | IFS=$as_save_IFS | |
b7026657 AC |
2097 | |
2098 | } >&5 | |
2099 | ||
2100 | cat >&5 <<_ACEOF | |
2101 | ||
2102 | ||
2103 | ## ----------- ## | |
2104 | ## Core tests. ## | |
2105 | ## ----------- ## | |
2106 | ||
2107 | _ACEOF | |
2108 | ||
2109 | ||
2110 | # Keep a trace of the command line. | |
2111 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2112 | # Strip out --silent because we don't want to record it for future runs. | |
2113 | # Also quote any args containing shell meta-characters. | |
2114 | # Make two passes to allow for proper duplicate-argument suppression. | |
2115 | ac_configure_args= | |
2116 | ac_configure_args0= | |
2117 | ac_configure_args1= | |
b7026657 AC |
2118 | ac_must_keep_next=false |
2119 | for ac_pass in 1 2 | |
2120 | do | |
2121 | for ac_arg | |
2122 | do | |
2123 | case $ac_arg in | |
2124 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2125 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2126 | | -silent | --silent | --silen | --sile | --sil) | |
2127 | continue ;; | |
81ecdfbb RW |
2128 | *\'*) |
2129 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2130 | esac |
2131 | case $ac_pass in | |
81ecdfbb | 2132 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2133 | 2) |
81ecdfbb | 2134 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2135 | if test $ac_must_keep_next = true; then |
2136 | ac_must_keep_next=false # Got value, back to normal. | |
2137 | else | |
2138 | case $ac_arg in | |
2139 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2140 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2141 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2142 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2143 | case "$ac_configure_args0 " in | |
2144 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2145 | esac | |
2146 | ;; | |
2147 | -* ) ac_must_keep_next=true ;; | |
2148 | esac | |
2149 | fi | |
81ecdfbb | 2150 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2151 | ;; |
2152 | esac | |
2153 | done | |
2154 | done | |
81ecdfbb RW |
2155 | { ac_configure_args0=; unset ac_configure_args0;} |
2156 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2157 | |
2158 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2159 | # config.log. We remove comments because anyway the quotes in there | |
2160 | # would cause problems or look ugly. | |
81ecdfbb RW |
2161 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2162 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2163 | trap 'exit_status=$? |
2164 | # Save into config.log some information that might help in debugging. | |
2165 | { | |
2166 | echo | |
2167 | ||
d0ac1c44 | 2168 | $as_echo "## ---------------- ## |
b7026657 | 2169 | ## Cache variables. ## |
d0ac1c44 | 2170 | ## ---------------- ##" |
b7026657 AC |
2171 | echo |
2172 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2173 | ( |
2174 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2175 | eval ac_val=\$$ac_var | |
2176 | case $ac_val in #( | |
2177 | *${as_nl}*) | |
2178 | case $ac_var in #( | |
2179 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2180 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2181 | esac | |
2182 | case $ac_var in #( | |
2183 | _ | IFS | as_nl) ;; #( | |
2184 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2185 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2186 | esac ;; | |
2187 | esac | |
2188 | done | |
b7026657 | 2189 | (set) 2>&1 | |
81ecdfbb RW |
2190 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2191 | *${as_nl}ac_space=\ *) | |
b7026657 | 2192 | sed -n \ |
81ecdfbb RW |
2193 | "s/'\''/'\''\\\\'\'''\''/g; |
2194 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2195 | ;; #( | |
b7026657 | 2196 | *) |
81ecdfbb | 2197 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2198 | ;; |
81ecdfbb RW |
2199 | esac | |
2200 | sort | |
2201 | ) | |
b7026657 AC |
2202 | echo |
2203 | ||
d0ac1c44 | 2204 | $as_echo "## ----------------- ## |
b7026657 | 2205 | ## Output variables. ## |
d0ac1c44 | 2206 | ## ----------------- ##" |
b7026657 AC |
2207 | echo |
2208 | for ac_var in $ac_subst_vars | |
2209 | do | |
81ecdfbb RW |
2210 | eval ac_val=\$$ac_var |
2211 | case $ac_val in | |
2212 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2213 | esac | |
2214 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2215 | done | sort |
2216 | echo | |
2217 | ||
2218 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2219 | $as_echo "## ------------------- ## |
81ecdfbb | 2220 | ## File substitutions. ## |
d0ac1c44 | 2221 | ## ------------------- ##" |
b7026657 AC |
2222 | echo |
2223 | for ac_var in $ac_subst_files | |
2224 | do | |
81ecdfbb RW |
2225 | eval ac_val=\$$ac_var |
2226 | case $ac_val in | |
2227 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2228 | esac | |
2229 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2230 | done | sort |
2231 | echo | |
2232 | fi | |
2233 | ||
2234 | if test -s confdefs.h; then | |
d0ac1c44 | 2235 | $as_echo "## ----------- ## |
b7026657 | 2236 | ## confdefs.h. ## |
d0ac1c44 | 2237 | ## ----------- ##" |
b7026657 | 2238 | echo |
81ecdfbb | 2239 | cat confdefs.h |
b7026657 | 2240 | echo |
0fda6bd2 | 2241 | fi |
b7026657 | 2242 | test "$ac_signal" != 0 && |
81ecdfbb RW |
2243 | $as_echo "$as_me: caught signal $ac_signal" |
2244 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2245 | } >&5 |
81ecdfbb RW |
2246 | rm -f core *.core core.conftest.* && |
2247 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2248 | exit $exit_status |
81ecdfbb | 2249 | ' 0 |
b7026657 | 2250 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2251 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2252 | done |
2253 | ac_signal=0 | |
2254 | ||
2255 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2256 | rm -f -r conftest* confdefs.h |
2257 | ||
2258 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2259 | |
2260 | # Predefined preprocessor variables. | |
2261 | ||
2262 | cat >>confdefs.h <<_ACEOF | |
2263 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2264 | _ACEOF | |
2265 | ||
b7026657 AC |
2266 | cat >>confdefs.h <<_ACEOF |
2267 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2268 | _ACEOF | |
2269 | ||
b7026657 AC |
2270 | cat >>confdefs.h <<_ACEOF |
2271 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2272 | _ACEOF | |
2273 | ||
b7026657 AC |
2274 | cat >>confdefs.h <<_ACEOF |
2275 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2276 | _ACEOF | |
2277 | ||
b7026657 AC |
2278 | cat >>confdefs.h <<_ACEOF |
2279 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2280 | _ACEOF | |
2281 | ||
81ecdfbb RW |
2282 | cat >>confdefs.h <<_ACEOF |
2283 | #define PACKAGE_URL "$PACKAGE_URL" | |
2284 | _ACEOF | |
2285 | ||
b7026657 AC |
2286 | |
2287 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2288 | # Prefer an explicitly selected file to automatically selected ones. |
2289 | ac_site_file1=NONE | |
2290 | ac_site_file2=NONE | |
2291 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2292 | # We do not want a PATH search for config.site. |
2293 | case $CONFIG_SITE in #(( | |
2294 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2295 | */*) ac_site_file1=$CONFIG_SITE;; | |
2296 | *) ac_site_file1=./$CONFIG_SITE;; | |
2297 | esac | |
81ecdfbb RW |
2298 | elif test "x$prefix" != xNONE; then |
2299 | ac_site_file1=$prefix/share/config.site | |
2300 | ac_site_file2=$prefix/etc/config.site | |
2301 | else | |
2302 | ac_site_file1=$ac_default_prefix/share/config.site | |
2303 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 2304 | fi |
81ecdfbb RW |
2305 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2306 | do | |
2307 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2308 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2310 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 2311 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2312 | . "$ac_site_file" \ |
2313 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2314 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2315 | as_fn_error $? "failed to load site script $ac_site_file | |
2316 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c SS |
2317 | fi |
2318 | done | |
2319 | ||
2320 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2321 | # Some versions of bash will fail to source /dev/null (special files |
2322 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2323 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2325 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2326 | case $cache_file in |
81ecdfbb RW |
2327 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2328 | *) . "./$cache_file";; | |
b7026657 AC |
2329 | esac |
2330 | fi | |
c906108c | 2331 | else |
81ecdfbb RW |
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2333 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 | 2334 | >$cache_file |
c906108c SS |
2335 | fi |
2336 | ||
b15c5d7a MF |
2337 | as_fn_append ac_header_list " dlfcn.h" |
2338 | as_fn_append ac_header_list " fcntl.h" | |
2339 | as_fn_append ac_header_list " fpu_control.h" | |
2340 | as_fn_append ac_header_list " termios.h" | |
2341 | as_fn_append ac_header_list " unistd.h" | |
2342 | as_fn_append ac_header_list " utime.h" | |
2343 | as_fn_append ac_header_list " linux/if_tun.h" | |
2344 | as_fn_append ac_header_list " linux/mii.h" | |
2345 | as_fn_append ac_header_list " linux/types.h" | |
2346 | as_fn_append ac_header_list " net/if.h" | |
2347 | as_fn_append ac_header_list " netinet/in.h" | |
2348 | as_fn_append ac_header_list " netinet/tcp.h" | |
2349 | as_fn_append ac_header_list " sys/ioctl.h" | |
2350 | as_fn_append ac_header_list " sys/mman.h" | |
a48ff3ef | 2351 | as_fn_append ac_header_list " sys/mount.h" |
b15c5d7a MF |
2352 | as_fn_append ac_header_list " sys/param.h" |
2353 | as_fn_append ac_header_list " sys/resource.h" | |
2354 | as_fn_append ac_header_list " sys/select.h" | |
2355 | as_fn_append ac_header_list " sys/socket.h" | |
2356 | as_fn_append ac_header_list " sys/stat.h" | |
a48ff3ef MF |
2357 | as_fn_append ac_header_list " sys/statfs.h" |
2358 | as_fn_append ac_header_list " sys/termio.h" | |
2359 | as_fn_append ac_header_list " sys/termios.h" | |
2360 | as_fn_append ac_header_list " sys/types.h" | |
2361 | as_fn_append ac_header_list " sys/vfs.h" | |
b15c5d7a | 2362 | as_fn_append ac_func_list " __setfpucw" |
a48ff3ef | 2363 | as_fn_append ac_func_list " access" |
b15c5d7a MF |
2364 | as_fn_append ac_func_list " aint" |
2365 | as_fn_append ac_func_list " anint" | |
a48ff3ef MF |
2366 | as_fn_append ac_func_list " cfgetispeed" |
2367 | as_fn_append ac_func_list " cfgetospeed" | |
2368 | as_fn_append ac_func_list " cfsetispeed" | |
2369 | as_fn_append ac_func_list " cfsetospeed" | |
2370 | as_fn_append ac_func_list " chdir" | |
b15c5d7a | 2371 | as_fn_append ac_func_list " chmod" |
a48ff3ef MF |
2372 | as_fn_append ac_func_list " dup" |
2373 | as_fn_append ac_func_list " dup2" | |
b15c5d7a MF |
2374 | as_fn_append ac_func_list " execv" |
2375 | as_fn_append ac_func_list " execve" | |
a48ff3ef | 2376 | as_fn_append ac_func_list " fcntl" |
b15c5d7a | 2377 | as_fn_append ac_func_list " fork" |
a48ff3ef MF |
2378 | as_fn_append ac_func_list " fstat" |
2379 | as_fn_append ac_func_list " fstatfs" | |
b15c5d7a | 2380 | as_fn_append ac_func_list " ftruncate" |
a48ff3ef | 2381 | as_fn_append ac_func_list " getdirentries" |
b15c5d7a | 2382 | as_fn_append ac_func_list " getegid" |
a48ff3ef | 2383 | as_fn_append ac_func_list " geteuid" |
b15c5d7a | 2384 | as_fn_append ac_func_list " getgid" |
a48ff3ef MF |
2385 | as_fn_append ac_func_list " getpid" |
2386 | as_fn_append ac_func_list " getppid" | |
b15c5d7a | 2387 | as_fn_append ac_func_list " getrusage" |
a48ff3ef | 2388 | as_fn_append ac_func_list " gettimeofday" |
b15c5d7a | 2389 | as_fn_append ac_func_list " getuid" |
a48ff3ef | 2390 | as_fn_append ac_func_list " ioctl" |
b15c5d7a | 2391 | as_fn_append ac_func_list " kill" |
a48ff3ef MF |
2392 | as_fn_append ac_func_list " link" |
2393 | as_fn_append ac_func_list " lseek" | |
b15c5d7a MF |
2394 | as_fn_append ac_func_list " mmap" |
2395 | as_fn_append ac_func_list " munmap" | |
a48ff3ef | 2396 | as_fn_append ac_func_list " pipe" |
b15c5d7a MF |
2397 | as_fn_append ac_func_list " posix_fallocate" |
2398 | as_fn_append ac_func_list " pread" | |
a48ff3ef MF |
2399 | as_fn_append ac_func_list " rmdir" |
2400 | as_fn_append ac_func_list " setregid" | |
2401 | as_fn_append ac_func_list " setreuid" | |
b15c5d7a | 2402 | as_fn_append ac_func_list " setgid" |
a48ff3ef | 2403 | as_fn_append ac_func_list " setuid" |
b15c5d7a | 2404 | as_fn_append ac_func_list " sigaction" |
a48ff3ef | 2405 | as_fn_append ac_func_list " sigprocmask" |
b15c5d7a | 2406 | as_fn_append ac_func_list " sqrt" |
a48ff3ef | 2407 | as_fn_append ac_func_list " stat" |
b15c5d7a | 2408 | as_fn_append ac_func_list " strsignal" |
a48ff3ef MF |
2409 | as_fn_append ac_func_list " symlink" |
2410 | as_fn_append ac_func_list " tcdrain" | |
2411 | as_fn_append ac_func_list " tcflow" | |
2412 | as_fn_append ac_func_list " tcflush" | |
2413 | as_fn_append ac_func_list " tcgetattr" | |
2414 | as_fn_append ac_func_list " tcgetpgrp" | |
2415 | as_fn_append ac_func_list " tcsendbreak" | |
2416 | as_fn_append ac_func_list " tcsetattr" | |
2417 | as_fn_append ac_func_list " tcsetpgrp" | |
b15c5d7a MF |
2418 | as_fn_append ac_func_list " time" |
2419 | as_fn_append ac_func_list " truncate" | |
a48ff3ef MF |
2420 | as_fn_append ac_func_list " umask" |
2421 | as_fn_append ac_func_list " unlink" | |
b15c5d7a | 2422 | as_fn_append ac_func_list " utime" |
b7026657 AC |
2423 | # Check that the precious variables saved in the cache have kept the same |
2424 | # value. | |
2425 | ac_cache_corrupted=false | |
81ecdfbb | 2426 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2427 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2428 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2429 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2430 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2431 | case $ac_old_set,$ac_new_set in |
2432 | set,) | |
81ecdfbb RW |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2434 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2435 | ac_cache_corrupted=: ;; |
2436 | ,set) | |
81ecdfbb RW |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2438 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2439 | ac_cache_corrupted=: ;; |
2440 | ,);; | |
2441 | *) | |
2442 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2443 | # differences in whitespace do not lead to failure. |
2444 | ac_old_val_w=`echo x $ac_old_val` | |
2445 | ac_new_val_w=`echo x $ac_new_val` | |
2446 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2448 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2449 | ac_cache_corrupted=: | |
2450 | else | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2452 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2453 | eval $ac_var=\$ac_old_val | |
2454 | fi | |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2456 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2458 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
2459 | fi;; |
2460 | esac | |
2461 | # Pass precious variables to config.status. | |
2462 | if test "$ac_new_set" = set; then | |
2463 | case $ac_new_val in | |
81ecdfbb | 2464 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
2465 | *) ac_arg=$ac_var=$ac_new_val ;; |
2466 | esac | |
2467 | case " $ac_configure_args " in | |
2468 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2469 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 | 2470 | esac |
c906108c | 2471 | fi |
b7026657 AC |
2472 | done |
2473 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2477 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2478 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c906108c | 2479 | fi |
81ecdfbb RW |
2480 | ## -------------------- ## |
2481 | ## Main body of script. ## | |
2482 | ## -------------------- ## | |
c906108c | 2483 | |
fdd6fa61 AG |
2484 | ac_ext=c |
2485 | ac_cpp='$CPP $CPPFLAGS' | |
2486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2489 | ||
c906108c SS |
2490 | |
2491 | ||
8c379db2 TT |
2492 | |
2493 | ||
2494 | ||
6dd65fc0 MF |
2495 | |
2496 | ||
2497 | # Check whether --with-pkgversion was given. | |
2498 | if test "${with_pkgversion+set}" = set; then : | |
2499 | withval=$with_pkgversion; case "$withval" in | |
2500 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
2501 | no) PKGVERSION= ;; | |
2502 | *) PKGVERSION="($withval) " ;; | |
2503 | esac | |
2504 | else | |
2505 | PKGVERSION="(SIM) " | |
2506 | ||
2507 | fi | |
2508 | ||
2509 | ||
2510 | ||
2511 | ||
2512 | cat >>confdefs.h <<_ACEOF | |
2513 | #define PKGVERSION "$PKGVERSION" | |
2514 | _ACEOF | |
2515 | ||
2516 | ||
2517 | ||
2518 | # Check whether --with-bugurl was given. | |
2519 | if test "${with_bugurl+set}" = set; then : | |
2520 | withval=$with_bugurl; case "$withval" in | |
2521 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
2522 | no) BUGURL= | |
2523 | ;; | |
2524 | *) BUGURL="$withval" | |
2525 | ;; | |
2526 | esac | |
2527 | else | |
2528 | BUGURL="$PACKAGE_BUGREPORT" | |
2529 | ||
2530 | fi | |
2531 | ||
2532 | case ${BUGURL} in | |
2533 | "") | |
2534 | REPORT_BUGS_TO= | |
2535 | REPORT_BUGS_TEXI= | |
2536 | ;; | |
2537 | *) | |
2538 | REPORT_BUGS_TO="<$BUGURL>" | |
2539 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
2540 | ;; | |
2541 | esac; | |
2542 | ||
2543 | ||
2544 | ||
2545 | ||
2546 | cat >>confdefs.h <<_ACEOF | |
2547 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
2548 | _ACEOF | |
2549 | ||
2550 | ||
b15c5d7a MF |
2551 | ac_config_headers="$ac_config_headers config.h" |
2552 | ||
2553 | ||
6bddc3e8 MF |
2554 | ac_aux_dir= |
2555 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2556 | if test -f "$ac_dir/install-sh"; then | |
2557 | ac_aux_dir=$ac_dir | |
2558 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2559 | break | |
2560 | elif test -f "$ac_dir/install.sh"; then | |
2561 | ac_aux_dir=$ac_dir | |
2562 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2563 | break | |
2564 | elif test -f "$ac_dir/shtool"; then | |
2565 | ac_aux_dir=$ac_dir | |
2566 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2567 | break | |
b7026657 AC |
2568 | fi |
2569 | done | |
6bddc3e8 MF |
2570 | if test -z "$ac_aux_dir"; then |
2571 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
c906108c SS |
2572 | fi |
2573 | ||
6bddc3e8 MF |
2574 | # These three variables are undocumented and unsupported, |
2575 | # and are intended to be withdrawn in a future Autoconf release. | |
2576 | # They can cause serious problems if a builder's source tree is in a directory | |
2577 | # whose full name contains unusual characters. | |
2578 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2579 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2580 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
81ecdfbb | 2581 | |
6bddc3e8 MF |
2582 | |
2583 | # Make sure we can run config.sub. | |
2584 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2585 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2586 | ||
2587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2588 | $as_echo_n "checking build system type... " >&6; } | |
2589 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 2590 | $as_echo_n "(cached) " >&6 |
c906108c | 2591 | else |
6bddc3e8 MF |
2592 | ac_build_alias=$build_alias |
2593 | test "x$ac_build_alias" = x && | |
2594 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2595 | test "x$ac_build_alias" = x && | |
2596 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2597 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2598 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
b7026657 AC |
2599 | |
2600 | fi | |
6bddc3e8 MF |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2602 | $as_echo "$ac_cv_build" >&6; } | |
2603 | case $ac_cv_build in | |
2604 | *-*-*) ;; | |
2605 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
81ecdfbb | 2606 | esac |
6bddc3e8 MF |
2607 | build=$ac_cv_build |
2608 | ac_save_IFS=$IFS; IFS='-' | |
2609 | set x $ac_cv_build | |
2610 | shift | |
2611 | build_cpu=$1 | |
2612 | build_vendor=$2 | |
2613 | shift; shift | |
2614 | # Remember, the first character of IFS is used to create $*, | |
2615 | # except with old shells: | |
2616 | build_os=$* | |
2617 | IFS=$ac_save_IFS | |
2618 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 2619 | |
6bddc3e8 MF |
2620 | |
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2622 | $as_echo_n "checking host system type... " >&6; } | |
2623 | if ${ac_cv_host+:} false; then : | |
81ecdfbb | 2624 | $as_echo_n "(cached) " >&6 |
b7026657 | 2625 | else |
6bddc3e8 MF |
2626 | if test "x$host_alias" = x; then |
2627 | ac_cv_host=$ac_cv_build | |
b7026657 | 2628 | else |
6bddc3e8 MF |
2629 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2630 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b7026657 | 2631 | fi |
6bddc3e8 | 2632 | |
fdd6fa61 | 2633 | fi |
6bddc3e8 MF |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2635 | $as_echo "$ac_cv_host" >&6; } | |
2636 | case $ac_cv_host in | |
2637 | *-*-*) ;; | |
2638 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2639 | esac | |
2640 | host=$ac_cv_host | |
2641 | ac_save_IFS=$IFS; IFS='-' | |
2642 | set x $ac_cv_host | |
2643 | shift | |
2644 | host_cpu=$1 | |
2645 | host_vendor=$2 | |
2646 | shift; shift | |
2647 | # Remember, the first character of IFS is used to create $*, | |
2648 | # except with old shells: | |
2649 | host_os=$* | |
2650 | IFS=$ac_save_IFS | |
2651 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fdd6fa61 | 2652 | |
fdd6fa61 | 2653 | |
6bddc3e8 MF |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2655 | $as_echo_n "checking target system type... " >&6; } | |
2656 | if ${ac_cv_target+:} false; then : | |
81ecdfbb | 2657 | $as_echo_n "(cached) " >&6 |
b7026657 | 2658 | else |
6bddc3e8 MF |
2659 | if test "x$target_alias" = x; then |
2660 | ac_cv_target=$ac_cv_host | |
c906108c | 2661 | else |
6bddc3e8 MF |
2662 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2663 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2664 | fi | |
2665 | ||
2666 | fi | |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2668 | $as_echo "$ac_cv_target" >&6; } | |
2669 | case $ac_cv_target in | |
2670 | *-*-*) ;; | |
2671 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2672 | esac | |
2673 | target=$ac_cv_target | |
2674 | ac_save_IFS=$IFS; IFS='-' | |
2675 | set x $ac_cv_target | |
2676 | shift | |
2677 | target_cpu=$1 | |
2678 | target_vendor=$2 | |
2679 | shift; shift | |
2680 | # Remember, the first character of IFS is used to create $*, | |
2681 | # except with old shells: | |
2682 | target_os=$* | |
2683 | IFS=$ac_save_IFS | |
2684 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2685 | ||
2686 | ||
2687 | # The aliases save the names the user supplied, while $host etc. | |
2688 | # will get canonicalized. | |
2689 | test -n "$target_alias" && | |
2690 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2691 | NONENONEs,x,x, && | |
2692 | program_prefix=${target_alias}- | |
c2783492 MF |
2693 | # Expand $ac_aux_dir to an absolute path. |
2694 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6bddc3e8 | 2695 | |
c2783492 MF |
2696 | ac_ext=c |
2697 | ac_cpp='$CPP $CPPFLAGS' | |
2698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2701 | if test -n "$ac_tool_prefix"; then | |
2702 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2703 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2705 | $as_echo_n "checking for $ac_word... " >&6; } | |
2706 | if ${ac_cv_prog_CC+:} false; then : | |
2707 | $as_echo_n "(cached) " >&6 | |
8c379db2 | 2708 | else |
c2783492 MF |
2709 | if test -n "$CC"; then |
2710 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2711 | else | |
2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2713 | for as_dir in $PATH | |
2714 | do | |
2715 | IFS=$as_save_IFS | |
2716 | test -z "$as_dir" && as_dir=. | |
2717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2719 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2721 | break 2 | |
2722 | fi | |
2723 | done | |
2724 | done | |
2725 | IFS=$as_save_IFS | |
8c379db2 | 2726 | |
c2783492 MF |
2727 | fi |
2728 | fi | |
2729 | CC=$ac_cv_prog_CC | |
2730 | if test -n "$CC"; then | |
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2732 | $as_echo "$CC" >&6; } | |
8c379db2 | 2733 | else |
c2783492 MF |
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2735 | $as_echo "no" >&6; } | |
8c379db2 TT |
2736 | fi |
2737 | ||
6bddc3e8 | 2738 | |
c2783492 MF |
2739 | fi |
2740 | if test -z "$ac_cv_prog_CC"; then | |
2741 | ac_ct_CC=$CC | |
2742 | # Extract the first word of "gcc", so it can be a program name with args. | |
2743 | set dummy gcc; ac_word=$2 | |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2745 | $as_echo_n "checking for $ac_word... " >&6; } | |
2746 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bddc3e8 MF |
2747 | $as_echo_n "(cached) " >&6 |
2748 | else | |
c2783492 MF |
2749 | if test -n "$ac_ct_CC"; then |
2750 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2751 | else | |
2752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bddc3e8 MF |
2753 | for as_dir in $PATH |
2754 | do | |
2755 | IFS=$as_save_IFS | |
2756 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
2757 | for ac_exec_ext in '' $ac_executable_extensions; do |
2758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2759 | ac_cv_prog_ac_ct_CC="gcc" | |
2760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2761 | break 2 | |
2762 | fi | |
2763 | done | |
6bddc3e8 MF |
2764 | done |
2765 | IFS=$as_save_IFS | |
2766 | ||
6bddc3e8 | 2767 | fi |
6bddc3e8 | 2768 | fi |
c2783492 MF |
2769 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2770 | if test -n "$ac_ct_CC"; then | |
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2772 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 | 2773 | else |
c2783492 MF |
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2775 | $as_echo "no" >&6; } | |
6bddc3e8 MF |
2776 | fi |
2777 | ||
c2783492 MF |
2778 | if test "x$ac_ct_CC" = x; then |
2779 | CC="" | |
2780 | else | |
2781 | case $cross_compiling:$ac_tool_warned in | |
2782 | yes:) | |
2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2784 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2785 | ac_tool_warned=yes ;; | |
2786 | esac | |
2787 | CC=$ac_ct_CC | |
2788 | fi | |
6bddc3e8 | 2789 | else |
c2783492 | 2790 | CC="$ac_cv_prog_CC" |
6bddc3e8 MF |
2791 | fi |
2792 | ||
c2783492 MF |
2793 | if test -z "$CC"; then |
2794 | if test -n "$ac_tool_prefix"; then | |
2795 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2796 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6bddc3e8 MF |
2797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2798 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2799 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
2800 | $as_echo_n "(cached) " >&6 |
2801 | else | |
c2783492 MF |
2802 | if test -n "$CC"; then |
2803 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 MF |
2804 | else |
2805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2806 | for as_dir in $PATH | |
2807 | do | |
2808 | IFS=$as_save_IFS | |
2809 | test -z "$as_dir" && as_dir=. | |
2810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 2812 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6bddc3e8 MF |
2813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2814 | break 2 | |
2815 | fi | |
2816 | done | |
2817 | done | |
2818 | IFS=$as_save_IFS | |
2819 | ||
2820 | fi | |
2821 | fi | |
c2783492 MF |
2822 | CC=$ac_cv_prog_CC |
2823 | if test -n "$CC"; then | |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2825 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
2826 | else |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2828 | $as_echo "no" >&6; } | |
2829 | fi | |
2830 | ||
2831 | ||
c2783492 | 2832 | fi |
6bddc3e8 | 2833 | fi |
c2783492 MF |
2834 | if test -z "$CC"; then |
2835 | # Extract the first word of "cc", so it can be a program name with args. | |
2836 | set dummy cc; ac_word=$2 | |
6bddc3e8 MF |
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2838 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2839 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
2840 | $as_echo_n "(cached) " >&6 |
2841 | else | |
c2783492 MF |
2842 | if test -n "$CC"; then |
2843 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 | 2844 | else |
c2783492 | 2845 | ac_prog_rejected=no |
6bddc3e8 MF |
2846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2847 | for as_dir in $PATH | |
2848 | do | |
2849 | IFS=$as_save_IFS | |
2850 | test -z "$as_dir" && as_dir=. | |
2851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 MF |
2853 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2854 | ac_prog_rejected=yes | |
2855 | continue | |
2856 | fi | |
2857 | ac_cv_prog_CC="cc" | |
6bddc3e8 MF |
2858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2859 | break 2 | |
2860 | fi | |
2861 | done | |
2862 | done | |
2863 | IFS=$as_save_IFS | |
2864 | ||
c2783492 MF |
2865 | if test $ac_prog_rejected = yes; then |
2866 | # We found a bogon in the path, so make sure we never use it. | |
2867 | set dummy $ac_cv_prog_CC | |
2868 | shift | |
2869 | if test $# != 0; then | |
2870 | # We chose a different compiler from the bogus one. | |
2871 | # However, it has the same basename, so the bogon will be chosen | |
2872 | # first if we set CC to just the basename; use the full file name. | |
2873 | shift | |
2874 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2875 | fi | |
6bddc3e8 MF |
2876 | fi |
2877 | fi | |
c2783492 MF |
2878 | fi |
2879 | CC=$ac_cv_prog_CC | |
2880 | if test -n "$CC"; then | |
2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2882 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
2883 | else |
2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2885 | $as_echo "no" >&6; } | |
2886 | fi | |
2887 | ||
6bddc3e8 MF |
2888 | |
2889 | fi | |
c2783492 MF |
2890 | if test -z "$CC"; then |
2891 | if test -n "$ac_tool_prefix"; then | |
2892 | for ac_prog in cl.exe | |
2893 | do | |
2894 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2895 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2897 | $as_echo_n "checking for $ac_word... " >&6; } | |
2898 | if ${ac_cv_prog_CC+:} false; then : | |
6bddc3e8 MF |
2899 | $as_echo_n "(cached) " >&6 |
2900 | else | |
c2783492 MF |
2901 | if test -n "$CC"; then |
2902 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2903 | else | |
2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2905 | for as_dir in $PATH | |
6bddc3e8 MF |
2906 | do |
2907 | IFS=$as_save_IFS | |
2908 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
2909 | for ac_exec_ext in '' $ac_executable_extensions; do |
2910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2911 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2913 | break 2 | |
2914 | fi | |
2915 | done | |
6bddc3e8 MF |
2916 | done |
2917 | IFS=$as_save_IFS | |
2918 | ||
2919 | fi | |
6bddc3e8 | 2920 | fi |
c2783492 MF |
2921 | CC=$ac_cv_prog_CC |
2922 | if test -n "$CC"; then | |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2924 | $as_echo "$CC" >&6; } | |
2925 | else | |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2927 | $as_echo "no" >&6; } | |
2928 | fi | |
6bddc3e8 | 2929 | |
c2783492 MF |
2930 | |
2931 | test -n "$CC" && break | |
2932 | done | |
2933 | fi | |
2934 | if test -z "$CC"; then | |
2935 | ac_ct_CC=$CC | |
2936 | for ac_prog in cl.exe | |
6bddc3e8 MF |
2937 | do |
2938 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2939 | set dummy $ac_prog; ac_word=$2 | |
2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2941 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 2942 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bddc3e8 MF |
2943 | $as_echo_n "(cached) " >&6 |
2944 | else | |
c2783492 MF |
2945 | if test -n "$ac_ct_CC"; then |
2946 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bddc3e8 MF |
2947 | else |
2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2949 | for as_dir in $PATH | |
2950 | do | |
2951 | IFS=$as_save_IFS | |
2952 | test -z "$as_dir" && as_dir=. | |
2953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2954 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 2955 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6bddc3e8 MF |
2956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2957 | break 2 | |
2958 | fi | |
2959 | done | |
2960 | done | |
2961 | IFS=$as_save_IFS | |
2962 | ||
2963 | fi | |
2964 | fi | |
c2783492 MF |
2965 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2966 | if test -n "$ac_ct_CC"; then | |
2967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2968 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 MF |
2969 | else |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2971 | $as_echo "no" >&6; } | |
2972 | fi | |
2973 | ||
2974 | ||
c2783492 | 2975 | test -n "$ac_ct_CC" && break |
6bddc3e8 MF |
2976 | done |
2977 | ||
c2783492 MF |
2978 | if test "x$ac_ct_CC" = x; then |
2979 | CC="" | |
2980 | else | |
2981 | case $cross_compiling:$ac_tool_warned in | |
2982 | yes:) | |
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2984 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2985 | ac_tool_warned=yes ;; | |
6bddc3e8 | 2986 | esac |
c2783492 | 2987 | CC=$ac_ct_CC |
6bddc3e8 MF |
2988 | fi |
2989 | fi | |
2990 | ||
6bddc3e8 MF |
2991 | fi |
2992 | ||
2993 | ||
c2783492 MF |
2994 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2996 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2997 | See \`config.log' for more details" "$LINENO" 5; } | |
6bddc3e8 | 2998 | |
c2783492 MF |
2999 | # Provide some information about the compiler. |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3001 | set X $ac_compile | |
3002 | ac_compiler=$2 | |
3003 | for ac_option in --version -v -V -qversion; do | |
3004 | { { ac_try="$ac_compiler $ac_option >&5" | |
3005 | case "(($ac_try" in | |
3006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3007 | *) ac_try_echo=$ac_try;; | |
3008 | esac | |
3009 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3010 | $as_echo "$ac_try_echo"; } >&5 | |
3011 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3012 | ac_status=$? | |
3013 | if test -s conftest.err; then | |
3014 | sed '10a\ | |
3015 | ... rest of stderr output deleted ... | |
3016 | 10q' conftest.err >conftest.er1 | |
3017 | cat conftest.er1 >&5 | |
3018 | fi | |
3019 | rm -f conftest.er1 conftest.err | |
3020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3021 | test $ac_status = 0; } | |
3022 | done | |
6bddc3e8 | 3023 | |
c2783492 MF |
3024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3025 | /* end confdefs.h. */ | |
6bddc3e8 | 3026 | |
c2783492 MF |
3027 | int |
3028 | main () | |
3029 | { | |
6bddc3e8 | 3030 | |
c2783492 MF |
3031 | ; |
3032 | return 0; | |
3033 | } | |
6bddc3e8 | 3034 | _ACEOF |
c2783492 MF |
3035 | ac_clean_files_save=$ac_clean_files |
3036 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3037 | # Try to create an executable without -o first, disregard a.out. | |
3038 | # It will help us diagnose broken compilers, and finding out an intuition | |
3039 | # of exeext. | |
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3041 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3042 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bddc3e8 | 3043 | |
c2783492 MF |
3044 | # The possible output files: |
3045 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bddc3e8 | 3046 | |
c2783492 MF |
3047 | ac_rmfiles= |
3048 | for ac_file in $ac_files | |
3049 | do | |
3050 | case $ac_file in | |
3051 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3052 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3053 | esac | |
3054 | done | |
3055 | rm -f $ac_rmfiles | |
81ecdfbb RW |
3056 | |
3057 | if { { ac_try="$ac_link_default" | |
3058 | case "(($ac_try" in | |
3059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3060 | *) ac_try_echo=$ac_try;; | |
3061 | esac | |
3062 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3063 | $as_echo "$ac_try_echo"; } >&5 | |
3064 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 3065 | ac_status=$? |
81ecdfbb RW |
3066 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3067 | test $ac_status = 0; }; then : | |
3068 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3069 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3070 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3071 | # so that the user can short-circuit this test for compilers unknown to | |
3072 | # Autoconf. | |
3073 | for ac_file in $ac_files '' | |
b7026657 AC |
3074 | do |
3075 | test -f "$ac_file" || continue | |
3076 | case $ac_file in | |
81ecdfbb | 3077 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
3078 | ;; |
3079 | [ab].out ) | |
3080 | # We found the default executable, but exeext='' is most | |
3081 | # certainly right. | |
3082 | break;; | |
3083 | *.* ) | |
81ecdfbb RW |
3084 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3085 | then :; else | |
3086 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3087 | fi | |
3088 | # We set ac_cv_exeext here because the later test for it is not | |
3089 | # safe: cross compilers may not add the suffix if given an `-o' | |
3090 | # argument, so we may need to know it at that point already. | |
3091 | # Even if this section looks crufty: it has the advantage of | |
3092 | # actually working. | |
b7026657 AC |
3093 | break;; |
3094 | * ) | |
3095 | break;; | |
3096 | esac | |
3097 | done | |
81ecdfbb RW |
3098 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3099 | ||
b7026657 | 3100 | else |
81ecdfbb RW |
3101 | ac_file='' |
3102 | fi | |
81ecdfbb | 3103 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3105 | $as_echo "no" >&6; } | |
3106 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
3108 | ||
81ecdfbb RW |
3109 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3110 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3111 | as_fn_error 77 "C compiler cannot create executables |
3112 | See \`config.log' for more details" "$LINENO" 5; } | |
3113 | else | |
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3115 | $as_echo "yes" >&6; } | |
b7026657 | 3116 | fi |
d0ac1c44 SM |
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3118 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3120 | $as_echo "$ac_file" >&6; } | |
b7026657 | 3121 | ac_exeext=$ac_cv_exeext |
b7026657 | 3122 | |
d0ac1c44 | 3123 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 3124 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3126 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3127 | if { { ac_try="$ac_link" | |
3128 | case "(($ac_try" in | |
3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3130 | *) ac_try_echo=$ac_try;; | |
3131 | esac | |
3132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3133 | $as_echo "$ac_try_echo"; } >&5 | |
3134 | (eval "$ac_link") 2>&5 | |
b7026657 | 3135 | ac_status=$? |
81ecdfbb RW |
3136 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3137 | test $ac_status = 0; }; then : | |
b7026657 AC |
3138 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3139 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3140 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3141 | # `rm'. | |
3142 | for ac_file in conftest.exe conftest conftest.*; do | |
3143 | test -f "$ac_file" || continue | |
3144 | case $ac_file in | |
81ecdfbb | 3145 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 3146 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
3147 | break;; |
3148 | * ) break;; | |
3149 | esac | |
3150 | done | |
c906108c | 3151 | else |
81ecdfbb RW |
3152 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3153 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3154 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3155 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3156 | fi |
d0ac1c44 | 3157 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3159 | $as_echo "$ac_cv_exeext" >&6; } | |
b7026657 AC |
3160 | |
3161 | rm -f conftest.$ac_ext | |
3162 | EXEEXT=$ac_cv_exeext | |
3163 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3165 | /* end confdefs.h. */ | |
3166 | #include <stdio.h> | |
3167 | int | |
3168 | main () | |
3169 | { | |
3170 | FILE *f = fopen ("conftest.out", "w"); | |
3171 | return ferror (f) || fclose (f) != 0; | |
3172 | ||
3173 | ; | |
3174 | return 0; | |
3175 | } | |
3176 | _ACEOF | |
3177 | ac_clean_files="$ac_clean_files conftest.out" | |
3178 | # Check that the compiler produces executables we can run. If not, either | |
3179 | # the compiler is broken, or we cross compile. | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3181 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3182 | if test "$cross_compiling" != yes; then | |
3183 | { { ac_try="$ac_link" | |
3184 | case "(($ac_try" in | |
3185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3186 | *) ac_try_echo=$ac_try;; | |
3187 | esac | |
3188 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3189 | $as_echo "$ac_try_echo"; } >&5 | |
3190 | (eval "$ac_link") 2>&5 | |
3191 | ac_status=$? | |
3192 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3193 | test $ac_status = 0; } | |
3194 | if { ac_try='./conftest$ac_cv_exeext' | |
3195 | { { case "(($ac_try" in | |
3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3197 | *) ac_try_echo=$ac_try;; | |
3198 | esac | |
3199 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3200 | $as_echo "$ac_try_echo"; } >&5 | |
3201 | (eval "$ac_try") 2>&5 | |
3202 | ac_status=$? | |
3203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3204 | test $ac_status = 0; }; }; then | |
3205 | cross_compiling=no | |
3206 | else | |
3207 | if test "$cross_compiling" = maybe; then | |
3208 | cross_compiling=yes | |
3209 | else | |
3210 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3211 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3212 | as_fn_error $? "cannot run C compiled programs. | |
3213 | If you meant to cross compile, use \`--host'. | |
3214 | See \`config.log' for more details" "$LINENO" 5; } | |
3215 | fi | |
3216 | fi | |
3217 | fi | |
3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3219 | $as_echo "$cross_compiling" >&6; } | |
3220 | ||
3221 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3222 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3224 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3225 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3226 | $as_echo_n "(cached) " >&6 |
b7026657 | 3227 | else |
81ecdfbb | 3228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3229 | /* end confdefs.h. */ |
3230 | ||
3231 | int | |
3232 | main () | |
3233 | { | |
3234 | ||
3235 | ; | |
3236 | return 0; | |
3237 | } | |
3238 | _ACEOF | |
3239 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3240 | if { { ac_try="$ac_compile" |
3241 | case "(($ac_try" in | |
3242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3243 | *) ac_try_echo=$ac_try;; | |
3244 | esac | |
3245 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3246 | $as_echo "$ac_try_echo"; } >&5 | |
3247 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3248 | ac_status=$? |
81ecdfbb RW |
3249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3250 | test $ac_status = 0; }; then : | |
3251 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3252 | test -f "$ac_file" || continue; | |
b7026657 | 3253 | case $ac_file in |
81ecdfbb | 3254 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
3255 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3256 | break;; | |
3257 | esac | |
3258 | done | |
3259 | else | |
81ecdfbb | 3260 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
3262 | ||
81ecdfbb RW |
3263 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3264 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3265 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3266 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3267 | fi |
b7026657 AC |
3268 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3269 | fi | |
81ecdfbb RW |
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3271 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
3272 | OBJEXT=$ac_cv_objext |
3273 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3275 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3276 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3277 | $as_echo_n "(cached) " >&6 |
b7026657 | 3278 | else |
81ecdfbb | 3279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3280 | /* end confdefs.h. */ |
3281 | ||
3282 | int | |
3283 | main () | |
3284 | { | |
3285 | #ifndef __GNUC__ | |
3286 | choke me | |
3287 | #endif | |
c906108c | 3288 | |
b7026657 AC |
3289 | ; |
3290 | return 0; | |
3291 | } | |
3292 | _ACEOF | |
81ecdfbb | 3293 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 3294 | ac_compiler_gnu=yes |
c906108c | 3295 | else |
81ecdfbb | 3296 | ac_compiler_gnu=no |
c906108c | 3297 | fi |
81ecdfbb | 3298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3299 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 3300 | |
b7026657 | 3301 | fi |
81ecdfbb RW |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3303 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3304 | if test $ac_compiler_gnu = yes; then | |
3305 | GCC=yes | |
3306 | else | |
3307 | GCC= | |
3308 | fi | |
b7026657 AC |
3309 | ac_test_CFLAGS=${CFLAGS+set} |
3310 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3312 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3313 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb | 3314 | $as_echo_n "(cached) " >&6 |
c906108c | 3315 | else |
81ecdfbb RW |
3316 | ac_save_c_werror_flag=$ac_c_werror_flag |
3317 | ac_c_werror_flag=yes | |
3318 | ac_cv_prog_cc_g=no | |
3319 | CFLAGS="-g" | |
3320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 AC |
3321 | /* end confdefs.h. */ |
3322 | ||
3323 | int | |
3324 | main () | |
3325 | { | |
3326 | ||
3327 | ; | |
3328 | return 0; | |
3329 | } | |
3330 | _ACEOF | |
81ecdfbb | 3331 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
3332 | ac_cv_prog_cc_g=yes |
3333 | else | |
81ecdfbb RW |
3334 | CFLAGS="" |
3335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3336 | /* end confdefs.h. */ | |
3337 | ||
3338 | int | |
3339 | main () | |
3340 | { | |
3341 | ||
3342 | ; | |
3343 | return 0; | |
3344 | } | |
3345 | _ACEOF | |
3346 | if ac_fn_c_try_compile "$LINENO"; then : | |
3347 | ||
3348 | else | |
3349 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3350 | CFLAGS="-g" | |
3351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3352 | /* end confdefs.h. */ | |
3353 | ||
3354 | int | |
3355 | main () | |
3356 | { | |
c906108c | 3357 | |
81ecdfbb RW |
3358 | ; |
3359 | return 0; | |
3360 | } | |
3361 | _ACEOF | |
3362 | if ac_fn_c_try_compile "$LINENO"; then : | |
3363 | ac_cv_prog_cc_g=yes | |
3364 | fi | |
3365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3366 | fi |
81ecdfbb | 3367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3368 | fi |
81ecdfbb RW |
3369 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3370 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3371 | fi | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3373 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 3374 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3375 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3376 | elif test $ac_cv_prog_cc_g = yes; then |
3377 | if test "$GCC" = yes; then | |
3378 | CFLAGS="-g -O2" | |
3379 | else | |
3380 | CFLAGS="-g" | |
3381 | fi | |
3382 | else | |
3383 | if test "$GCC" = yes; then | |
3384 | CFLAGS="-O2" | |
3385 | else | |
3386 | CFLAGS= | |
3387 | fi | |
3388 | fi | |
81ecdfbb RW |
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3390 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3391 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3392 | $as_echo_n "(cached) " >&6 |
b7026657 | 3393 | else |
81ecdfbb | 3394 | ac_cv_prog_cc_c89=no |
b7026657 | 3395 | ac_save_CC=$CC |
81ecdfbb | 3396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3397 | /* end confdefs.h. */ |
3398 | #include <stdarg.h> | |
3399 | #include <stdio.h> | |
d0ac1c44 | 3400 | struct stat; |
b7026657 AC |
3401 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3402 | struct buf { int x; }; | |
3403 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3404 | static char *e (p, i) | |
3405 | char **p; | |
3406 | int i; | |
3407 | { | |
3408 | return p[i]; | |
3409 | } | |
3410 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3411 | { | |
3412 | char *s; | |
3413 | va_list v; | |
3414 | va_start (v,p); | |
3415 | s = g (p, va_arg (v,int)); | |
3416 | va_end (v); | |
3417 | return s; | |
3418 | } | |
3419 | ||
3420 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3421 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3422 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3423 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
3424 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3425 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3426 | that's true only with -std. */ |
b7026657 AC |
3427 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3428 | ||
81ecdfbb RW |
3429 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3430 | inside strings and character constants. */ | |
3431 | #define FOO(x) 'x' | |
3432 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3433 | ||
b7026657 AC |
3434 | int test (int i, double x); |
3435 | struct s1 {int (*f) (int a);}; | |
3436 | struct s2 {int (*f) (double a);}; | |
3437 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3438 | int argc; | |
3439 | char **argv; | |
3440 | int | |
3441 | main () | |
3442 | { | |
3443 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3444 | ; | |
3445 | return 0; | |
3446 | } | |
3447 | _ACEOF | |
81ecdfbb RW |
3448 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3449 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
3450 | do |
3451 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
3452 | if ac_fn_c_try_compile "$LINENO"; then : |
3453 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 3454 | fi |
81ecdfbb RW |
3455 | rm -f core conftest.err conftest.$ac_objext |
3456 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 3457 | done |
81ecdfbb | 3458 | rm -f conftest.$ac_ext |
b7026657 AC |
3459 | CC=$ac_save_CC |
3460 | ||
3461 | fi | |
81ecdfbb RW |
3462 | # AC_CACHE_VAL |
3463 | case "x$ac_cv_prog_cc_c89" in | |
3464 | x) | |
3465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3466 | $as_echo "none needed" >&6; } ;; | |
3467 | xno) | |
3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3469 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 3470 | *) |
81ecdfbb RW |
3471 | CC="$CC $ac_cv_prog_cc_c89" |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3473 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 3474 | esac |
81ecdfbb | 3475 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 3476 | |
fdd6fa61 AG |
3477 | fi |
3478 | ||
fdd6fa61 AG |
3479 | ac_ext=c |
3480 | ac_cpp='$CPP $CPPFLAGS' | |
3481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3484 | ||
c2783492 MF |
3485 | ac_ext=c |
3486 | ac_cpp='$CPP $CPPFLAGS' | |
3487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3491 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3492 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3493 | $as_echo_n "(cached) " >&6 | |
3494 | else | |
3495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3496 | /* end confdefs.h. */ | |
3497 | ||
3498 | int | |
3499 | main () | |
3500 | { | |
3501 | ||
3502 | ; | |
3503 | return 0; | |
3504 | } | |
3505 | _ACEOF | |
3506 | # Make sure it works both with $CC and with simple cc. | |
3507 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3508 | # compilers refuse to overwrite an existing .o file with -o, | |
3509 | # though they will create one. | |
3510 | am_cv_prog_cc_c_o=yes | |
3511 | for am_i in 1 2; do | |
3512 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3513 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3514 | ac_status=$? | |
3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3516 | (exit $ac_status); } \ | |
3517 | && test -f conftest2.$ac_objext; then | |
3518 | : OK | |
3519 | else | |
3520 | am_cv_prog_cc_c_o=no | |
3521 | break | |
3522 | fi | |
3523 | done | |
3524 | rm -f core conftest* | |
3525 | unset am_i | |
3526 | fi | |
3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3528 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3529 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3530 | # Losing compiler, so override with the script. | |
3531 | # FIXME: It is wrong to rewrite CC. | |
3532 | # But if we don't then we get into trouble of one sort or another. | |
3533 | # A longer-term fix would be to have automake use am__CC in this case, | |
3534 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3535 | CC="$am_aux_dir/compile $CC" | |
3536 | fi | |
3537 | ac_ext=c | |
3538 | ac_cpp='$CPP $CPPFLAGS' | |
3539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3542 | ||
3543 | ||
3544 | ||
3545 | ac_ext=c | |
3546 | ac_cpp='$CPP $CPPFLAGS' | |
3547 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3548 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3549 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3551 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3552 | # On Suns, sometimes $CPP names a directory. | |
3553 | if test -n "$CPP" && test -d "$CPP"; then | |
3554 | CPP= | |
3555 | fi | |
3556 | if test -z "$CPP"; then | |
3557 | if ${ac_cv_prog_CPP+:} false; then : | |
3558 | $as_echo_n "(cached) " >&6 | |
3559 | else | |
3560 | # Double quotes because CPP needs to be expanded | |
3561 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3562 | do | |
3563 | ac_preproc_ok=false | |
3564 | for ac_c_preproc_warn_flag in '' yes | |
3565 | do | |
3566 | # Use a header file that comes with gcc, so configuring glibc | |
3567 | # with a fresh cross-compiler works. | |
3568 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3569 | # <limits.h> exists even on freestanding compilers. | |
3570 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3571 | # not just through cpp. "Syntax error" is here to catch this case. | |
3572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3573 | /* end confdefs.h. */ | |
3574 | #ifdef __STDC__ | |
3575 | # include <limits.h> | |
3576 | #else | |
3577 | # include <assert.h> | |
3578 | #endif | |
3579 | Syntax error | |
3580 | _ACEOF | |
3581 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3582 | ||
3583 | else | |
3584 | # Broken: fails on valid input. | |
3585 | continue | |
3586 | fi | |
3587 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3588 | ||
3589 | # OK, works on sane cases. Now check whether nonexistent headers | |
3590 | # can be detected and how. | |
3591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3592 | /* end confdefs.h. */ | |
3593 | #include <ac_nonexistent.h> | |
3594 | _ACEOF | |
3595 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3596 | # Broken: success on invalid input. | |
3597 | continue | |
3598 | else | |
3599 | # Passes both tests. | |
3600 | ac_preproc_ok=: | |
3601 | break | |
3602 | fi | |
3603 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3604 | ||
3605 | done | |
3606 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3607 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3608 | if $ac_preproc_ok; then : | |
3609 | break | |
3610 | fi | |
3611 | ||
3612 | done | |
3613 | ac_cv_prog_CPP=$CPP | |
3614 | ||
3615 | fi | |
3616 | CPP=$ac_cv_prog_CPP | |
3617 | else | |
3618 | ac_cv_prog_CPP=$CPP | |
3619 | fi | |
3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3621 | $as_echo "$CPP" >&6; } | |
3622 | ac_preproc_ok=false | |
3623 | for ac_c_preproc_warn_flag in '' yes | |
3624 | do | |
3625 | # Use a header file that comes with gcc, so configuring glibc | |
3626 | # with a fresh cross-compiler works. | |
3627 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3628 | # <limits.h> exists even on freestanding compilers. | |
3629 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3630 | # not just through cpp. "Syntax error" is here to catch this case. | |
3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3632 | /* end confdefs.h. */ | |
3633 | #ifdef __STDC__ | |
3634 | # include <limits.h> | |
3635 | #else | |
3636 | # include <assert.h> | |
3637 | #endif | |
3638 | Syntax error | |
3639 | _ACEOF | |
3640 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3641 | ||
3642 | else | |
3643 | # Broken: fails on valid input. | |
3644 | continue | |
3645 | fi | |
3646 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3647 | ||
3648 | # OK, works on sane cases. Now check whether nonexistent headers | |
3649 | # can be detected and how. | |
3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3651 | /* end confdefs.h. */ | |
3652 | #include <ac_nonexistent.h> | |
3653 | _ACEOF | |
3654 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3655 | # Broken: success on invalid input. | |
3656 | continue | |
3657 | else | |
3658 | # Passes both tests. | |
3659 | ac_preproc_ok=: | |
3660 | break | |
3661 | fi | |
3662 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3663 | ||
3664 | done | |
3665 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3666 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3667 | if $ac_preproc_ok; then : | |
3668 | ||
3669 | else | |
3670 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3671 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3672 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3673 | See \`config.log' for more details" "$LINENO" 5; } | |
3674 | fi | |
3675 | ||
3676 | ac_ext=c | |
3677 | ac_cpp='$CPP $CPPFLAGS' | |
3678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3681 | ||
3682 | ||
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3684 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3685 | if ${ac_cv_path_GREP+:} false; then : | |
3686 | $as_echo_n "(cached) " >&6 | |
3687 | else | |
3688 | if test -z "$GREP"; then | |
3689 | ac_path_GREP_found=false | |
3690 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3692 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3693 | do | |
3694 | IFS=$as_save_IFS | |
3695 | test -z "$as_dir" && as_dir=. | |
3696 | for ac_prog in grep ggrep; do | |
3697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3698 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3699 | as_fn_executable_p "$ac_path_GREP" || continue | |
3700 | # Check for GNU ac_path_GREP and select it if it is found. | |
3701 | # Check for GNU $ac_path_GREP | |
3702 | case `"$ac_path_GREP" --version 2>&1` in | |
3703 | *GNU*) | |
3704 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3705 | *) | |
3706 | ac_count=0 | |
3707 | $as_echo_n 0123456789 >"conftest.in" | |
3708 | while : | |
3709 | do | |
3710 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3711 | mv "conftest.tmp" "conftest.in" | |
3712 | cp "conftest.in" "conftest.nl" | |
3713 | $as_echo 'GREP' >> "conftest.nl" | |
3714 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3715 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3716 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3717 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3718 | # Best one so far, save it but keep looking for a better one | |
3719 | ac_cv_path_GREP="$ac_path_GREP" | |
3720 | ac_path_GREP_max=$ac_count | |
3721 | fi | |
3722 | # 10*(2^10) chars as input seems more than enough | |
3723 | test $ac_count -gt 10 && break | |
3724 | done | |
3725 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3726 | esac | |
3727 | ||
3728 | $ac_path_GREP_found && break 3 | |
3729 | done | |
3730 | done | |
3731 | done | |
3732 | IFS=$as_save_IFS | |
3733 | if test -z "$ac_cv_path_GREP"; then | |
3734 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3735 | fi | |
3736 | else | |
3737 | ac_cv_path_GREP=$GREP | |
3738 | fi | |
3739 | ||
3740 | fi | |
3741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3742 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3743 | GREP="$ac_cv_path_GREP" | |
3744 | ||
3745 | ||
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3747 | $as_echo_n "checking for egrep... " >&6; } | |
3748 | if ${ac_cv_path_EGREP+:} false; then : | |
3749 | $as_echo_n "(cached) " >&6 | |
3750 | else | |
3751 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3752 | then ac_cv_path_EGREP="$GREP -E" | |
3753 | else | |
3754 | if test -z "$EGREP"; then | |
3755 | ac_path_EGREP_found=false | |
3756 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3758 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3759 | do | |
3760 | IFS=$as_save_IFS | |
3761 | test -z "$as_dir" && as_dir=. | |
3762 | for ac_prog in egrep; do | |
3763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3764 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3765 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3766 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3767 | # Check for GNU $ac_path_EGREP | |
3768 | case `"$ac_path_EGREP" --version 2>&1` in | |
3769 | *GNU*) | |
3770 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3771 | *) | |
3772 | ac_count=0 | |
3773 | $as_echo_n 0123456789 >"conftest.in" | |
3774 | while : | |
3775 | do | |
3776 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3777 | mv "conftest.tmp" "conftest.in" | |
3778 | cp "conftest.in" "conftest.nl" | |
3779 | $as_echo 'EGREP' >> "conftest.nl" | |
3780 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3781 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3782 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3783 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3784 | # Best one so far, save it but keep looking for a better one | |
3785 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3786 | ac_path_EGREP_max=$ac_count | |
3787 | fi | |
3788 | # 10*(2^10) chars as input seems more than enough | |
3789 | test $ac_count -gt 10 && break | |
3790 | done | |
3791 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3792 | esac | |
3793 | ||
3794 | $ac_path_EGREP_found && break 3 | |
3795 | done | |
3796 | done | |
3797 | done | |
3798 | IFS=$as_save_IFS | |
3799 | if test -z "$ac_cv_path_EGREP"; then | |
3800 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3801 | fi | |
3802 | else | |
3803 | ac_cv_path_EGREP=$EGREP | |
3804 | fi | |
3805 | ||
3806 | fi | |
3807 | fi | |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3809 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3810 | EGREP="$ac_cv_path_EGREP" | |
3811 | ||
3812 | ||
3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3814 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3815 | if ${ac_cv_header_stdc+:} false; then : | |
6bddc3e8 MF |
3816 | $as_echo_n "(cached) " >&6 |
3817 | else | |
3818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3819 | /* end confdefs.h. */ | |
c2783492 MF |
3820 | #include <stdlib.h> |
3821 | #include <stdarg.h> | |
3822 | #include <string.h> | |
3823 | #include <float.h> | |
6bddc3e8 MF |
3824 | |
3825 | int | |
3826 | main () | |
3827 | { | |
3828 | ||
3829 | ; | |
3830 | return 0; | |
3831 | } | |
3832 | _ACEOF | |
c2783492 MF |
3833 | if ac_fn_c_try_compile "$LINENO"; then : |
3834 | ac_cv_header_stdc=yes | |
3835 | else | |
3836 | ac_cv_header_stdc=no | |
fdd6fa61 | 3837 | fi |
c2783492 | 3838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
81ecdfbb | 3839 | |
c2783492 MF |
3840 | if test $ac_cv_header_stdc = yes; then |
3841 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3843 | /* end confdefs.h. */ | |
3844 | #include <string.h> | |
6bddc3e8 | 3845 | |
c2783492 MF |
3846 | _ACEOF |
3847 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3848 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6bddc3e8 | 3849 | |
c2783492 MF |
3850 | else |
3851 | ac_cv_header_stdc=no | |
3852 | fi | |
3853 | rm -f conftest* | |
6bddc3e8 | 3854 | |
6bddc3e8 | 3855 | fi |
81ecdfbb | 3856 | |
c2783492 MF |
3857 | if test $ac_cv_header_stdc = yes; then |
3858 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3860 | /* end confdefs.h. */ | |
3861 | #include <stdlib.h> | |
fdd6fa61 | 3862 | |
c2783492 MF |
3863 | _ACEOF |
3864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3865 | $EGREP "free" >/dev/null 2>&1; then : | |
6bddc3e8 | 3866 | |
c2783492 MF |
3867 | else |
3868 | ac_cv_header_stdc=no | |
6bddc3e8 | 3869 | fi |
c2783492 | 3870 | rm -f conftest* |
6bddc3e8 | 3871 | |
6bddc3e8 | 3872 | fi |
c2783492 MF |
3873 | |
3874 | if test $ac_cv_header_stdc = yes; then | |
3875 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3876 | if test "$cross_compiling" = yes; then : | |
3877 | : | |
6bddc3e8 | 3878 | else |
c2783492 MF |
3879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3880 | /* end confdefs.h. */ | |
3881 | #include <ctype.h> | |
3882 | #include <stdlib.h> | |
3883 | #if ((' ' & 0x0FF) == 0x020) | |
3884 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3885 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3886 | #else | |
3887 | # define ISLOWER(c) \ | |
3888 | (('a' <= (c) && (c) <= 'i') \ | |
3889 | || ('j' <= (c) && (c) <= 'r') \ | |
3890 | || ('s' <= (c) && (c) <= 'z')) | |
3891 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3892 | #endif | |
3893 | ||
3894 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3895 | int | |
3896 | main () | |
3897 | { | |
3898 | int i; | |
3899 | for (i = 0; i < 256; i++) | |
3900 | if (XOR (islower (i), ISLOWER (i)) | |
3901 | || toupper (i) != TOUPPER (i)) | |
3902 | return 2; | |
3903 | return 0; | |
3904 | } | |
3905 | _ACEOF | |
3906 | if ac_fn_c_try_run "$LINENO"; then : | |
3907 | ||
3908 | else | |
3909 | ac_cv_header_stdc=no | |
3910 | fi | |
3911 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3912 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bddc3e8 MF |
3913 | fi |
3914 | ||
c2783492 MF |
3915 | fi |
3916 | fi | |
3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3918 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3919 | if test $ac_cv_header_stdc = yes; then | |
6bddc3e8 | 3920 | |
c2783492 | 3921 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6bddc3e8 | 3922 | |
c2783492 | 3923 | fi |
6bddc3e8 | 3924 | |
c2783492 MF |
3925 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3926 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3927 | inttypes.h stdint.h unistd.h | |
3928 | do : | |
3929 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3930 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3931 | " | |
3932 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3933 | cat >>confdefs.h <<_ACEOF | |
3934 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3935 | _ACEOF | |
3936 | ||
3937 | fi | |
3938 | ||
3939 | done | |
3940 | ||
3941 | ||
3942 | ||
3943 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3944 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3945 | MINIX=yes | |
fdd6fa61 | 3946 | else |
c2783492 MF |
3947 | MINIX= |
3948 | fi | |
3949 | ||
3950 | ||
3951 | if test "$MINIX" = yes; then | |
3952 | ||
3953 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3954 | ||
3955 | ||
3956 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3957 | ||
3958 | ||
3959 | $as_echo "#define _MINIX 1" >>confdefs.h | |
6bddc3e8 | 3960 | |
6bddc3e8 | 3961 | fi |
6bddc3e8 | 3962 | |
6bddc3e8 | 3963 | |
c2783492 MF |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
3965 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3966 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
3967 | $as_echo_n "(cached) " >&6 | |
3968 | else | |
3969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3970 | /* end confdefs.h. */ | |
c906108c | 3971 | |
c2783492 MF |
3972 | # define __EXTENSIONS__ 1 |
3973 | $ac_includes_default | |
3974 | int | |
3975 | main () | |
3976 | { | |
3977 | ||
3978 | ; | |
3979 | return 0; | |
3980 | } | |
3981 | _ACEOF | |
3982 | if ac_fn_c_try_compile "$LINENO"; then : | |
3983 | ac_cv_safe_to_define___extensions__=yes | |
6bddc3e8 | 3984 | else |
c2783492 MF |
3985 | ac_cv_safe_to_define___extensions__=no |
3986 | fi | |
3987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3988 | fi |
c2783492 MF |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3990 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3991 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3992 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
6bddc3e8 | 3993 | |
c2783492 | 3994 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c906108c | 3995 | |
c2783492 | 3996 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c906108c | 3997 | |
c2783492 | 3998 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c906108c | 3999 | |
c2783492 | 4000 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c906108c | 4001 | |
c2783492 MF |
4002 | |
4003 | test "$program_prefix" != NONE && | |
4004 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4005 | # Use a double $ so make ignores it. | |
4006 | test "$program_suffix" != NONE && | |
4007 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4008 | # Double any \ or $. | |
4009 | # By default was `s,x,x', remove it if useless. | |
4010 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4011 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4012 | ||
4013 | # Find a good install program. We prefer a C program (faster), | |
4014 | # so one script is as good as another. But avoid the broken or | |
4015 | # incompatible versions: | |
4016 | # SysV /etc/install, /usr/sbin/install | |
4017 | # SunOS /usr/etc/install | |
4018 | # IRIX /sbin/install | |
4019 | # AIX /bin/install | |
4020 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4021 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4022 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4023 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4024 | # OS/2's system install, which has a completely different semantic | |
4025 | # ./install, which can be erroneously created by make from ./install.sh. | |
4026 | # Reject install programs that cannot install multiple files. | |
4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4028 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4029 | if test -z "$INSTALL"; then | |
4030 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 4031 | $as_echo_n "(cached) " >&6 |
c906108c | 4032 | else |
c2783492 | 4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b7026657 AC |
4034 | for as_dir in $PATH |
4035 | do | |
4036 | IFS=$as_save_IFS | |
4037 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
4038 | # Account for people who put trailing slashes in PATH elements. |
4039 | case $as_dir/ in #(( | |
4040 | ./ | .// | /[cC]/* | \ | |
4041 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4042 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4043 | /usr/ucb/* ) ;; | |
4044 | *) | |
4045 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4046 | # Don't use installbsd from OSF since it installs stuff as root | |
4047 | # by default. | |
4048 | for ac_prog in ginstall scoinst install; do | |
4049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4050 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4051 | if test $ac_prog = install && | |
4052 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4053 | # AIX install. It has an incompatible calling convention. | |
4054 | : | |
4055 | elif test $ac_prog = install && | |
4056 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4057 | # program-specific install script used by HP pwplus--don't use. | |
4058 | : | |
4059 | else | |
4060 | rm -rf conftest.one conftest.two conftest.dir | |
4061 | echo one > conftest.one | |
4062 | echo two > conftest.two | |
4063 | mkdir conftest.dir | |
4064 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4065 | test -s conftest.one && test -s conftest.two && | |
4066 | test -s conftest.dir/conftest.one && | |
4067 | test -s conftest.dir/conftest.two | |
4068 | then | |
4069 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4070 | break 3 | |
4071 | fi | |
4072 | fi | |
4073 | fi | |
4074 | done | |
4075 | done | |
4076 | ;; | |
4077 | esac | |
4078 | ||
81ecdfbb RW |
4079 | done |
4080 | IFS=$as_save_IFS | |
b7026657 | 4081 | |
c2783492 MF |
4082 | rm -rf conftest.one conftest.two conftest.dir |
4083 | ||
c906108c | 4084 | fi |
c2783492 MF |
4085 | if test "${ac_cv_path_install+set}" = set; then |
4086 | INSTALL=$ac_cv_path_install | |
4087 | else | |
4088 | # As a last resort, use the slow shell script. Don't cache a | |
4089 | # value for INSTALL within a source directory, because that will | |
4090 | # break other packages using the cache if that directory is | |
4091 | # removed, or if the value is a relative name. | |
4092 | INSTALL=$ac_install_sh | |
4093 | fi | |
c906108c | 4094 | fi |
c2783492 MF |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4096 | $as_echo "$INSTALL" >&6; } | |
b7026657 | 4097 | |
c2783492 MF |
4098 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4099 | # It thinks the first close brace ends the variable substitution. | |
4100 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81ecdfbb | 4101 | |
c2783492 MF |
4102 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4103 | ||
4104 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4105 | ||
4106 | ||
4107 | ||
4108 | ||
4109 | ||
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
4111 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4112 | if ${ac_cv_c_bigendian+:} false; then : | |
81ecdfbb | 4113 | $as_echo_n "(cached) " >&6 |
b7026657 | 4114 | else |
c2783492 MF |
4115 | ac_cv_c_bigendian=unknown |
4116 | # See if we're dealing with a universal compiler. | |
4117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4118 | /* end confdefs.h. */ | |
4119 | #ifndef __APPLE_CC__ | |
4120 | not a universal capable compiler | |
4121 | #endif | |
4122 | typedef int dummy; | |
c906108c | 4123 | |
c2783492 MF |
4124 | _ACEOF |
4125 | if ac_fn_c_try_compile "$LINENO"; then : | |
4126 | ||
4127 | # Check for potential -arch flags. It is not universal unless | |
4128 | # there are at least two -arch flags with different values. | |
4129 | ac_arch= | |
4130 | ac_prev= | |
4131 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4132 | if test -n "$ac_prev"; then | |
4133 | case $ac_word in | |
4134 | i?86 | x86_64 | ppc | ppc64) | |
4135 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4136 | ac_arch=$ac_word | |
4137 | else | |
4138 | ac_cv_c_bigendian=universal | |
4139 | break | |
4140 | fi | |
4141 | ;; | |
4142 | esac | |
4143 | ac_prev= | |
4144 | elif test "x$ac_word" = "x-arch"; then | |
4145 | ac_prev=arch | |
4146 | fi | |
4147 | done | |
b7026657 | 4148 | fi |
c2783492 MF |
4149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4150 | if test $ac_cv_c_bigendian = unknown; then | |
4151 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4153 | /* end confdefs.h. */ | |
4154 | #include <sys/types.h> | |
4155 | #include <sys/param.h> | |
c906108c | 4156 | |
c2783492 MF |
4157 | int |
4158 | main () | |
4159 | { | |
4160 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
4161 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4162 | && LITTLE_ENDIAN) | |
4163 | bogus endian macros | |
4164 | #endif | |
4165 | ||
4166 | ; | |
4167 | return 0; | |
4168 | } | |
4169 | _ACEOF | |
4170 | if ac_fn_c_try_compile "$LINENO"; then : | |
4171 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4173 | /* end confdefs.h. */ | |
4174 | #include <sys/types.h> | |
4175 | #include <sys/param.h> | |
4176 | ||
4177 | int | |
4178 | main () | |
4179 | { | |
4180 | #if BYTE_ORDER != BIG_ENDIAN | |
4181 | not big endian | |
4182 | #endif | |
4183 | ||
4184 | ; | |
4185 | return 0; | |
4186 | } | |
4187 | _ACEOF | |
4188 | if ac_fn_c_try_compile "$LINENO"; then : | |
4189 | ac_cv_c_bigendian=yes | |
b7026657 | 4190 | else |
c2783492 MF |
4191 | ac_cv_c_bigendian=no |
4192 | fi | |
4193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 4194 | fi |
c2783492 MF |
4195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4196 | fi | |
4197 | if test $ac_cv_c_bigendian = unknown; then | |
4198 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4200 | /* end confdefs.h. */ | |
4201 | #include <limits.h> | |
c906108c | 4202 | |
c2783492 MF |
4203 | int |
4204 | main () | |
4205 | { | |
4206 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4207 | bogus endian macros | |
4208 | #endif | |
4209 | ||
4210 | ; | |
4211 | return 0; | |
4212 | } | |
4213 | _ACEOF | |
4214 | if ac_fn_c_try_compile "$LINENO"; then : | |
4215 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4217 | /* end confdefs.h. */ | |
4218 | #include <limits.h> | |
4219 | ||
4220 | int | |
4221 | main () | |
4222 | { | |
4223 | #ifndef _BIG_ENDIAN | |
4224 | not big endian | |
4225 | #endif | |
b7026657 | 4226 | |
c2783492 MF |
4227 | ; |
4228 | return 0; | |
4229 | } | |
4230 | _ACEOF | |
4231 | if ac_fn_c_try_compile "$LINENO"; then : | |
4232 | ac_cv_c_bigendian=yes | |
c906108c | 4233 | else |
c2783492 | 4234 | ac_cv_c_bigendian=no |
c906108c | 4235 | fi |
c2783492 MF |
4236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4237 | fi | |
4238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4239 | fi | |
4240 | if test $ac_cv_c_bigendian = unknown; then | |
4241 | # Compile a test program. | |
4242 | if test "$cross_compiling" = yes; then : | |
4243 | # Try to guess by grepping values from an object file. | |
4244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4245 | /* end confdefs.h. */ | |
4246 | short int ascii_mm[] = | |
4247 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4248 | short int ascii_ii[] = | |
4249 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4250 | int use_ascii (int i) { | |
4251 | return ascii_mm[i] + ascii_ii[i]; | |
4252 | } | |
4253 | short int ebcdic_ii[] = | |
4254 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4255 | short int ebcdic_mm[] = | |
4256 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4257 | int use_ebcdic (int i) { | |
4258 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
4259 | } | |
4260 | extern int foo; | |
c906108c | 4261 | |
c2783492 MF |
4262 | int |
4263 | main () | |
4264 | { | |
4265 | return use_ascii (foo) == use_ebcdic (foo); | |
4266 | ; | |
4267 | return 0; | |
4268 | } | |
4269 | _ACEOF | |
4270 | if ac_fn_c_try_compile "$LINENO"; then : | |
4271 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4272 | ac_cv_c_bigendian=yes | |
4273 | fi | |
4274 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4275 | if test "$ac_cv_c_bigendian" = unknown; then | |
4276 | ac_cv_c_bigendian=no | |
4277 | else | |
4278 | # finding both strings is unlikely to happen, but who knows? | |
4279 | ac_cv_c_bigendian=unknown | |
4280 | fi | |
4281 | fi | |
b7026657 | 4282 | fi |
c2783492 | 4283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4284 | else |
c2783492 MF |
4285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4286 | /* end confdefs.h. */ | |
4287 | $ac_includes_default | |
4288 | int | |
4289 | main () | |
4290 | { | |
4291 | ||
4292 | /* Are we little or big endian? From Harbison&Steele. */ | |
4293 | union | |
4294 | { | |
4295 | long int l; | |
4296 | char c[sizeof (long int)]; | |
4297 | } u; | |
4298 | u.l = 1; | |
4299 | return u.c[sizeof (long int) - 1] == 1; | |
b7026657 | 4300 | |
c2783492 MF |
4301 | ; |
4302 | return 0; | |
4303 | } | |
4304 | _ACEOF | |
4305 | if ac_fn_c_try_run "$LINENO"; then : | |
4306 | ac_cv_c_bigendian=no | |
4307 | else | |
4308 | ac_cv_c_bigendian=yes | |
c906108c | 4309 | fi |
c2783492 MF |
4310 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4311 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4312 | fi |
c2783492 MF |
4313 | |
4314 | fi | |
c906108c | 4315 | fi |
c2783492 MF |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
4317 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4318 | case $ac_cv_c_bigendian in #( | |
4319 | yes) | |
4320 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4321 | ;; #( | |
4322 | no) | |
4323 | ;; #( | |
4324 | universal) | |
c906108c | 4325 | |
c2783492 MF |
4326 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
4327 | ||
4328 | ;; #( | |
4329 | *) | |
4330 | as_fn_error $? "unknown endianness | |
4331 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
4332 | esac | |
4333 | ||
4334 | ||
4335 | ||
4336 | ||
4337 | if test "x$cross_compiling" = "xno"; then | |
aa0fca16 | 4338 | : "${AR_FOR_BUILD:=\$(AR)}" |
c2783492 | 4339 | : "${CC_FOR_BUILD:=\$(CC)}" |
aa0fca16 | 4340 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" |
c2783492 MF |
4341 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" |
4342 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" | |
c906108c | 4343 | else |
aa0fca16 | 4344 | : "${AR_FOR_BUILD:=ar}" |
c2783492 | 4345 | : "${CC_FOR_BUILD:=gcc}" |
aa0fca16 | 4346 | : "${RANLIB_FOR_BUILD:=ranlib}" |
c2783492 MF |
4347 | : "${CFLAGS_FOR_BUILD:=-g -O}" |
4348 | : "${LDLFAGS_FOR_BUILD:=}" | |
c906108c SS |
4349 | fi |
4350 | ||
4351 | ||
c906108c | 4352 | |
c2783492 MF |
4353 | |
4354 | ||
aa0fca16 MF |
4355 | |
4356 | ||
b7026657 | 4357 | if test -n "$ac_tool_prefix"; then |
c2783492 MF |
4358 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
4359 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4361 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4362 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 4363 | $as_echo_n "(cached) " >&6 |
c906108c | 4364 | else |
c2783492 MF |
4365 | if test -n "$AR"; then |
4366 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c906108c | 4367 | else |
b7026657 AC |
4368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4369 | for as_dir in $PATH | |
4370 | do | |
4371 | IFS=$as_save_IFS | |
4372 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4373 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4374 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4375 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 4376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4377 | break 2 |
4378 | fi | |
4379 | done | |
81ecdfbb RW |
4380 | done |
4381 | IFS=$as_save_IFS | |
b7026657 AC |
4382 | |
4383 | fi | |
4384 | fi | |
c2783492 MF |
4385 | AR=$ac_cv_prog_AR |
4386 | if test -n "$AR"; then | |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4388 | $as_echo "$AR" >&6; } | |
b7026657 | 4389 | else |
81ecdfbb RW |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4391 | $as_echo "no" >&6; } | |
b7026657 AC |
4392 | fi |
4393 | ||
81ecdfbb | 4394 | |
b7026657 | 4395 | fi |
c2783492 MF |
4396 | if test -z "$ac_cv_prog_AR"; then |
4397 | ac_ct_AR=$AR | |
4398 | # Extract the first word of "ar", so it can be a program name with args. | |
4399 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4401 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4402 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 4403 | $as_echo_n "(cached) " >&6 |
b7026657 | 4404 | else |
c2783492 MF |
4405 | if test -n "$ac_ct_AR"; then |
4406 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b7026657 AC |
4407 | else |
4408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4409 | for as_dir in $PATH | |
4410 | do | |
4411 | IFS=$as_save_IFS | |
4412 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4413 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4415 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 4416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4417 | break 2 |
4418 | fi | |
4419 | done | |
81ecdfbb RW |
4420 | done |
4421 | IFS=$as_save_IFS | |
b7026657 AC |
4422 | |
4423 | fi | |
4424 | fi | |
c2783492 MF |
4425 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
4426 | if test -n "$ac_ct_AR"; then | |
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4428 | $as_echo "$ac_ct_AR" >&6; } | |
b7026657 | 4429 | else |
81ecdfbb RW |
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4431 | $as_echo "no" >&6; } | |
c906108c | 4432 | fi |
b7026657 | 4433 | |
c2783492 MF |
4434 | if test "x$ac_ct_AR" = x; then |
4435 | AR="" | |
81ecdfbb RW |
4436 | else |
4437 | case $cross_compiling:$ac_tool_warned in | |
4438 | yes:) | |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4440 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4441 | ac_tool_warned=yes ;; | |
4442 | esac | |
c2783492 | 4443 | AR=$ac_ct_AR |
c906108c | 4444 | fi |
c906108c | 4445 | else |
c2783492 | 4446 | AR="$ac_cv_prog_AR" |
c906108c SS |
4447 | fi |
4448 | ||
c2783492 MF |
4449 | if test -n "$ac_tool_prefix"; then |
4450 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4451 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4453 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4454 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 4455 | $as_echo_n "(cached) " >&6 |
c906108c | 4456 | else |
c2783492 MF |
4457 | if test -n "$RANLIB"; then |
4458 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 4459 | else |
b7026657 AC |
4460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4461 | for as_dir in $PATH | |
4462 | do | |
4463 | IFS=$as_save_IFS | |
4464 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4465 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4466 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4467 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 4468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4469 | break 2 |
4470 | fi | |
4471 | done | |
81ecdfbb RW |
4472 | done |
4473 | IFS=$as_save_IFS | |
b7026657 | 4474 | |
c906108c SS |
4475 | fi |
4476 | fi | |
c2783492 MF |
4477 | RANLIB=$ac_cv_prog_RANLIB |
4478 | if test -n "$RANLIB"; then | |
4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4480 | $as_echo "$RANLIB" >&6; } | |
c906108c | 4481 | else |
81ecdfbb RW |
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4483 | $as_echo "no" >&6; } | |
c906108c SS |
4484 | fi |
4485 | ||
81ecdfbb | 4486 | |
b7026657 | 4487 | fi |
c2783492 MF |
4488 | if test -z "$ac_cv_prog_RANLIB"; then |
4489 | ac_ct_RANLIB=$RANLIB | |
4490 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4491 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4493 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 4494 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 4495 | $as_echo_n "(cached) " >&6 |
c906108c | 4496 | else |
c2783492 MF |
4497 | if test -n "$ac_ct_RANLIB"; then |
4498 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b7026657 AC |
4499 | else |
4500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4501 | for as_dir in $PATH | |
4502 | do | |
4503 | IFS=$as_save_IFS | |
4504 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4505 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 4507 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 4508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4509 | break 2 |
4510 | fi | |
4511 | done | |
81ecdfbb RW |
4512 | done |
4513 | IFS=$as_save_IFS | |
b7026657 | 4514 | |
c906108c | 4515 | fi |
b7026657 | 4516 | fi |
c2783492 MF |
4517 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4518 | if test -n "$ac_ct_RANLIB"; then | |
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4520 | $as_echo "$ac_ct_RANLIB" >&6; } | |
c906108c | 4521 | else |
81ecdfbb RW |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4523 | $as_echo "no" >&6; } | |
c906108c | 4524 | fi |
b7026657 | 4525 | |
c2783492 MF |
4526 | if test "x$ac_ct_RANLIB" = x; then |
4527 | RANLIB=":" | |
81ecdfbb RW |
4528 | else |
4529 | case $cross_compiling:$ac_tool_warned in | |
4530 | yes:) | |
4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4532 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4533 | ac_tool_warned=yes ;; | |
4534 | esac | |
c2783492 | 4535 | RANLIB=$ac_ct_RANLIB |
81ecdfbb | 4536 | fi |
c2783492 MF |
4537 | else |
4538 | RANLIB="$ac_cv_prog_RANLIB" | |
4539 | fi | |
4540 | ||
4541 | ||
4542 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using | |
4543 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
4544 | # is C99. So handle it ourselves. | |
4545 | : | |
4546 | C_DIALECT= | |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
4548 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
4549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4550 | /* end confdefs.h. */ | |
4551 | ||
4552 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
4553 | # error "C11 support not found" | |
4554 | #endif | |
4555 | ||
4556 | _ACEOF | |
4557 | if ac_fn_c_try_compile "$LINENO"; then : | |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4559 | $as_echo "yes" >&6; } | |
4560 | else | |
4561 | ||
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4563 | $as_echo "no" >&6; } | |
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
4565 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
4566 | ac_save_CC="$CC" | |
4567 | CC="$CC -std=c11" | |
4568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4569 | /* end confdefs.h. */ | |
4570 | ||
4571 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
4572 | # error "C11 support not found" | |
4573 | #endif | |
4574 | ||
4575 | _ACEOF | |
4576 | if ac_fn_c_try_compile "$LINENO"; then : | |
4577 | ||
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4579 | $as_echo "yes" >&6; } | |
4580 | CC="$ac_save_CC" | |
4581 | C_DIALECT="-std=c11" | |
4582 | ||
4583 | else | |
4584 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
4585 | fi | |
4586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4587 | fi | |
4588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4589 | ||
4590 | ||
4591 | ||
4592 | ||
c906108c | 4593 | |
b15c5d7a MF |
4594 | for ac_header in $ac_header_list |
4595 | do : | |
4596 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4597 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4598 | " | |
4599 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4600 | cat >>confdefs.h <<_ACEOF | |
4601 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4602 | _ACEOF | |
4603 | ||
b7026657 AC |
4604 | fi |
4605 | ||
b15c5d7a | 4606 | done |
b7026657 | 4607 | |
b7026657 | 4608 | |
c2783492 | 4609 | |
c2783492 | 4610 | |
c2783492 | 4611 | |
c2783492 | 4612 | |
c2783492 | 4613 | |
b15c5d7a MF |
4614 | |
4615 | ||
4616 | ||
4617 | ||
4618 | ||
4619 | ||
4620 | ||
4621 | ||
4622 | ||
4623 | ||
4624 | ||
4625 | ||
4626 | ||
4627 | ||
4628 | ||
4629 | ||
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
a48ff3ef MF |
4636 | |
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
4646 | ||
4647 | ||
b15c5d7a MF |
4648 | |
4649 | ||
4650 | ||
4651 | ||
4652 | ||
4653 | ||
4654 | ||
4655 | ||
4656 | ||
4657 | ||
4658 | ||
4659 | ||
4660 | ||
4661 | for ac_func in $ac_func_list | |
4662 | do : | |
4663 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4664 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4665 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
4666 | cat >>confdefs.h <<_ACEOF | |
4667 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4668 | _ACEOF | |
4669 | ||
4670 | fi | |
4671 | done | |
4672 | ||
4673 | ||
4674 | ||
4675 | ||
4676 | ||
4677 | ||
4678 | ||
4679 | ||
4680 | ||
4681 | ||
4682 | ||
4683 | ||
4684 | ||
4685 | ||
4686 | ||
4687 | ||
4688 | ||
4689 | ||
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | ||
4695 | ||
4696 | ||
4697 | ||
4698 | ||
4699 | ||
4700 | ||
4701 | ||
4702 | ||
4703 | ||
4704 | ||
4705 | ||
4706 | ||
4707 | ||
4708 | ||
4709 | ||
4710 | ||
4711 | ||
4712 | ||
4713 | ||
4714 | ||
4715 | ||
4716 | ||
4717 | ||
4718 | ||
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | ||
4724 | ||
4725 | ||
4726 | ||
4727 | ||
4728 | ||
4729 | ||
4730 | ||
a48ff3ef MF |
4731 | |
4732 | ||
4733 | ||
4734 | ||
4735 | ||
4736 | ||
4737 | ||
4738 | ||
4739 | ||
4740 | ||
4741 | ||
4742 | ||
4743 | ||
4744 | ||
4745 | ||
4746 | ||
4747 | ||
4748 | ||
4749 | ||
4750 | ||
4751 | ||
4752 | ||
4753 | ||
4754 | ||
4755 | ||
4756 | ||
4757 | ||
4758 | ||
4759 | ||
4760 | ||
4761 | ||
4762 | ||
4763 | ||
4764 | ||
4765 | ||
4766 | ||
4767 | ||
4768 | ||
4769 | ||
4770 | ||
4771 | ||
4772 | ||
4773 | ||
4774 | ||
4775 | ||
4776 | ||
4777 | ||
4778 | ||
4779 | ||
4780 | ||
4781 | ||
4782 | ||
4783 | ||
4784 | ||
4785 | ||
4786 | ||
4787 | ||
4788 | ||
4789 | ||
4790 | ||
4791 | ||
4792 | ||
4793 | ||
4794 | ||
4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
4796 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
4797 | if ${ac_cv_struct_tm+:} false; then : | |
4798 | $as_echo_n "(cached) " >&6 | |
4799 | else | |
4800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4801 | /* end confdefs.h. */ | |
4802 | #include <sys/types.h> | |
4803 | #include <time.h> | |
4804 | ||
4805 | int | |
4806 | main () | |
4807 | { | |
4808 | struct tm tm; | |
4809 | int *p = &tm.tm_sec; | |
4810 | return !p; | |
4811 | ; | |
4812 | return 0; | |
4813 | } | |
4814 | _ACEOF | |
4815 | if ac_fn_c_try_compile "$LINENO"; then : | |
4816 | ac_cv_struct_tm=time.h | |
4817 | else | |
4818 | ac_cv_struct_tm=sys/time.h | |
4819 | fi | |
4820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4821 | fi | |
4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
4823 | $as_echo "$ac_cv_struct_tm" >&6; } | |
4824 | if test $ac_cv_struct_tm = sys/time.h; then | |
4825 | ||
4826 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
4827 | ||
4828 | fi | |
4829 | ||
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
4831 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
4832 | if ${ac_cv_type_uid_t+:} false; then : | |
4833 | $as_echo_n "(cached) " >&6 | |
4834 | else | |
4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4836 | /* end confdefs.h. */ | |
4837 | #include <sys/types.h> | |
4838 | ||
4839 | _ACEOF | |
4840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4841 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
4842 | ac_cv_type_uid_t=yes | |
4843 | else | |
4844 | ac_cv_type_uid_t=no | |
4845 | fi | |
4846 | rm -f conftest* | |
4847 | ||
4848 | fi | |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
4850 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
4851 | if test $ac_cv_type_uid_t = no; then | |
4852 | ||
4853 | $as_echo "#define uid_t int" >>confdefs.h | |
4854 | ||
4855 | ||
4856 | $as_echo "#define gid_t int" >>confdefs.h | |
4857 | ||
4858 | fi | |
4859 | ||
4860 | ||
4861 | ac_header_dirent=no | |
4862 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4863 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4865 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4866 | if eval \${$as_ac_Header+:} false; then : | |
4867 | $as_echo_n "(cached) " >&6 | |
4868 | else | |
4869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4870 | /* end confdefs.h. */ | |
4871 | #include <sys/types.h> | |
4872 | #include <$ac_hdr> | |
4873 | ||
4874 | int | |
4875 | main () | |
4876 | { | |
4877 | if ((DIR *) 0) | |
4878 | return 0; | |
4879 | ; | |
4880 | return 0; | |
4881 | } | |
4882 | _ACEOF | |
4883 | if ac_fn_c_try_compile "$LINENO"; then : | |
4884 | eval "$as_ac_Header=yes" | |
4885 | else | |
4886 | eval "$as_ac_Header=no" | |
4887 | fi | |
4888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4889 | fi | |
4890 | eval ac_res=\$$as_ac_Header | |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4892 | $as_echo "$ac_res" >&6; } | |
4893 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4894 | cat >>confdefs.h <<_ACEOF | |
4895 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4896 | _ACEOF | |
4897 | ||
4898 | ac_header_dirent=$ac_hdr; break | |
4899 | fi | |
4900 | ||
4901 | done | |
4902 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4903 | if test $ac_header_dirent = dirent.h; then | |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4905 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4906 | if ${ac_cv_search_opendir+:} false; then : | |
4907 | $as_echo_n "(cached) " >&6 | |
4908 | else | |
4909 | ac_func_search_save_LIBS=$LIBS | |
4910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4911 | /* end confdefs.h. */ | |
4912 | ||
4913 | /* Override any GCC internal prototype to avoid an error. | |
4914 | Use char because int might match the return type of a GCC | |
4915 | builtin and then its argument prototype would still apply. */ | |
4916 | #ifdef __cplusplus | |
4917 | extern "C" | |
4918 | #endif | |
4919 | char opendir (); | |
4920 | int | |
4921 | main () | |
4922 | { | |
4923 | return opendir (); | |
4924 | ; | |
4925 | return 0; | |
4926 | } | |
4927 | _ACEOF | |
4928 | for ac_lib in '' dir; do | |
4929 | if test -z "$ac_lib"; then | |
4930 | ac_res="none required" | |
4931 | else | |
4932 | ac_res=-l$ac_lib | |
4933 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4934 | fi | |
4935 | if ac_fn_c_try_link "$LINENO"; then : | |
4936 | ac_cv_search_opendir=$ac_res | |
4937 | fi | |
4938 | rm -f core conftest.err conftest.$ac_objext \ | |
4939 | conftest$ac_exeext | |
4940 | if ${ac_cv_search_opendir+:} false; then : | |
4941 | break | |
4942 | fi | |
4943 | done | |
4944 | if ${ac_cv_search_opendir+:} false; then : | |
4945 | ||
4946 | else | |
4947 | ac_cv_search_opendir=no | |
4948 | fi | |
4949 | rm conftest.$ac_ext | |
4950 | LIBS=$ac_func_search_save_LIBS | |
4951 | fi | |
4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4953 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4954 | ac_res=$ac_cv_search_opendir | |
4955 | if test "$ac_res" != no; then : | |
4956 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4957 | ||
4958 | fi | |
4959 | ||
4960 | else | |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4962 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4963 | if ${ac_cv_search_opendir+:} false; then : | |
4964 | $as_echo_n "(cached) " >&6 | |
4965 | else | |
4966 | ac_func_search_save_LIBS=$LIBS | |
4967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4968 | /* end confdefs.h. */ | |
4969 | ||
4970 | /* Override any GCC internal prototype to avoid an error. | |
4971 | Use char because int might match the return type of a GCC | |
4972 | builtin and then its argument prototype would still apply. */ | |
4973 | #ifdef __cplusplus | |
4974 | extern "C" | |
4975 | #endif | |
4976 | char opendir (); | |
4977 | int | |
4978 | main () | |
4979 | { | |
4980 | return opendir (); | |
4981 | ; | |
4982 | return 0; | |
4983 | } | |
4984 | _ACEOF | |
4985 | for ac_lib in '' x; do | |
4986 | if test -z "$ac_lib"; then | |
4987 | ac_res="none required" | |
4988 | else | |
4989 | ac_res=-l$ac_lib | |
4990 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4991 | fi | |
4992 | if ac_fn_c_try_link "$LINENO"; then : | |
4993 | ac_cv_search_opendir=$ac_res | |
4994 | fi | |
4995 | rm -f core conftest.err conftest.$ac_objext \ | |
4996 | conftest$ac_exeext | |
4997 | if ${ac_cv_search_opendir+:} false; then : | |
4998 | break | |
4999 | fi | |
5000 | done | |
5001 | if ${ac_cv_search_opendir+:} false; then : | |
5002 | ||
5003 | else | |
5004 | ac_cv_search_opendir=no | |
5005 | fi | |
5006 | rm conftest.$ac_ext | |
5007 | LIBS=$ac_func_search_save_LIBS | |
5008 | fi | |
5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
5010 | $as_echo "$ac_cv_search_opendir" >&6; } | |
5011 | ac_res=$ac_cv_search_opendir | |
5012 | if test "$ac_res" != no; then : | |
5013 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5014 | ||
5015 | fi | |
5016 | ||
5017 | fi | |
5018 | ||
5019 | ||
5020 | ||
5021 | ||
5022 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
5023 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
5024 | ||
5025 | cat >>confdefs.h <<_ACEOF | |
5026 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
5027 | _ACEOF | |
5028 | ||
5029 | ||
5030 | $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h | |
5031 | ||
5032 | fi | |
5033 | ||
5034 | ||
5035 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
5036 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
5037 | ||
5038 | cat >>confdefs.h <<_ACEOF | |
5039 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
5040 | _ACEOF | |
5041 | ||
5042 | ||
5043 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | |
5044 | ||
5045 | else | |
5046 | case " $LIBOBJS " in | |
5047 | *" fileblocks.$ac_objext "* ) ;; | |
5048 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
5049 | ;; | |
5050 | esac | |
5051 | ||
5052 | fi | |
5053 | ||
5054 | ||
5055 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5056 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
5057 | ||
5058 | cat >>confdefs.h <<_ACEOF | |
5059 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5060 | _ACEOF | |
5061 | ||
5062 | ||
5063 | $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h | |
5064 | ||
5065 | fi | |
5066 | ||
5067 | ||
5068 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | |
5069 | #include <$ac_cv_struct_tm> | |
5070 | ||
5071 | " | |
5072 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | |
5073 | ||
5074 | cat >>confdefs.h <<_ACEOF | |
5075 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
5076 | _ACEOF | |
5077 | ||
5078 | ||
5079 | fi | |
5080 | ||
5081 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
5082 | ||
5083 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | |
5084 | ||
5085 | else | |
5086 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
5087 | " | |
5088 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | |
5089 | ac_have_decl=1 | |
5090 | else | |
5091 | ac_have_decl=0 | |
5092 | fi | |
5093 | ||
5094 | cat >>confdefs.h <<_ACEOF | |
5095 | #define HAVE_DECL_TZNAME $ac_have_decl | |
5096 | _ACEOF | |
5097 | ||
5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
5099 | $as_echo_n "checking for tzname... " >&6; } | |
5100 | if ${ac_cv_var_tzname+:} false; then : | |
5101 | $as_echo_n "(cached) " >&6 | |
5102 | else | |
5103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5104 | /* end confdefs.h. */ | |
5105 | #include <time.h> | |
5106 | #if !HAVE_DECL_TZNAME | |
5107 | extern char *tzname[]; | |
5108 | #endif | |
5109 | ||
5110 | int | |
5111 | main () | |
5112 | { | |
5113 | return tzname[0][0]; | |
5114 | ; | |
5115 | return 0; | |
5116 | } | |
5117 | _ACEOF | |
5118 | if ac_fn_c_try_link "$LINENO"; then : | |
5119 | ac_cv_var_tzname=yes | |
5120 | else | |
5121 | ac_cv_var_tzname=no | |
5122 | fi | |
5123 | rm -f core conftest.err conftest.$ac_objext \ | |
5124 | conftest$ac_exeext conftest.$ac_ext | |
5125 | fi | |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
5127 | $as_echo "$ac_cv_var_tzname" >&6; } | |
5128 | if test $ac_cv_var_tzname = yes; then | |
5129 | ||
5130 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
5131 | ||
5132 | fi | |
5133 | fi | |
5134 | ||
5135 | ||
b15c5d7a MF |
5136 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H |
5137 | #include <sys/types.h> | |
5138 | #endif | |
5139 | #ifdef HAVE_SYS_STAT_H | |
5140 | #include <sys/stat.h> | |
5141 | #endif | |
5142 | " | |
5143 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : | |
5144 | ||
5145 | cat >>confdefs.h <<_ACEOF | |
5146 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
5147 | _ACEOF | |
5148 | ||
5149 | ||
5150 | fi | |
5151 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
5152 | #include <sys/types.h> | |
5153 | #endif | |
5154 | #ifdef HAVE_SYS_STAT_H | |
5155 | #include <sys/stat.h> | |
5156 | #endif | |
5157 | " | |
5158 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : | |
5159 | ||
5160 | cat >>confdefs.h <<_ACEOF | |
5161 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
5162 | _ACEOF | |
5163 | ||
5164 | ||
5165 | fi | |
5166 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
5167 | #include <sys/types.h> | |
5168 | #endif | |
5169 | #ifdef HAVE_SYS_STAT_H | |
5170 | #include <sys/stat.h> | |
5171 | #endif | |
5172 | " | |
5173 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : | |
5174 | ||
5175 | cat >>confdefs.h <<_ACEOF | |
5176 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
5177 | _ACEOF | |
5178 | ||
5179 | ||
5180 | fi | |
5181 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
5182 | #include <sys/types.h> | |
5183 | #endif | |
5184 | #ifdef HAVE_SYS_STAT_H | |
5185 | #include <sys/stat.h> | |
5186 | #endif | |
5187 | " | |
5188 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : | |
5189 | ||
5190 | cat >>confdefs.h <<_ACEOF | |
5191 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
5192 | _ACEOF | |
5193 | ||
5194 | ||
5195 | fi | |
5196 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
5197 | #include <sys/types.h> | |
5198 | #endif | |
5199 | #ifdef HAVE_SYS_STAT_H | |
5200 | #include <sys/stat.h> | |
5201 | #endif | |
5202 | " | |
5203 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : | |
5204 | ||
5205 | cat >>confdefs.h <<_ACEOF | |
5206 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
5207 | _ACEOF | |
5208 | ||
5209 | ||
5210 | fi | |
5211 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
5212 | #include <sys/types.h> | |
5213 | #endif | |
5214 | #ifdef HAVE_SYS_STAT_H | |
5215 | #include <sys/stat.h> | |
5216 | #endif | |
5217 | " | |
5218 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : | |
5219 | ||
5220 | cat >>confdefs.h <<_ACEOF | |
5221 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
5222 | _ACEOF | |
5223 | ||
5224 | ||
5225 | fi | |
5226 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
5227 | #include <sys/types.h> | |
5228 | #endif | |
5229 | #ifdef HAVE_SYS_STAT_H | |
5230 | #include <sys/stat.h> | |
5231 | #endif | |
5232 | " | |
5233 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
5234 | ||
5235 | cat >>confdefs.h <<_ACEOF | |
5236 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5237 | _ACEOF | |
5238 | ||
5239 | ||
5240 | fi | |
5241 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
5242 | #include <sys/types.h> | |
5243 | #endif | |
5244 | #ifdef HAVE_SYS_STAT_H | |
5245 | #include <sys/stat.h> | |
5246 | #endif | |
5247 | " | |
5248 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : | |
5249 | ||
5250 | cat >>confdefs.h <<_ACEOF | |
5251 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
5252 | _ACEOF | |
5253 | ||
5254 | ||
5255 | fi | |
5256 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
5257 | #include <sys/types.h> | |
5258 | #endif | |
5259 | #ifdef HAVE_SYS_STAT_H | |
5260 | #include <sys/stat.h> | |
5261 | #endif | |
5262 | " | |
5263 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
5264 | ||
5265 | cat >>confdefs.h <<_ACEOF | |
5266 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
5267 | _ACEOF | |
5268 | ||
5269 | ||
5270 | fi | |
5271 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
5272 | #include <sys/types.h> | |
5273 | #endif | |
5274 | #ifdef HAVE_SYS_STAT_H | |
5275 | #include <sys/stat.h> | |
5276 | #endif | |
5277 | " | |
5278 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
5279 | ||
5280 | cat >>confdefs.h <<_ACEOF | |
5281 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
5282 | _ACEOF | |
5283 | ||
5284 | ||
5285 | fi | |
5286 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
5287 | #include <sys/types.h> | |
5288 | #endif | |
5289 | #ifdef HAVE_SYS_STAT_H | |
5290 | #include <sys/stat.h> | |
5291 | #endif | |
5292 | " | |
5293 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : | |
5294 | ||
5295 | cat >>confdefs.h <<_ACEOF | |
5296 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
5297 | _ACEOF | |
5298 | ||
5299 | ||
5300 | fi | |
5301 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
5302 | #include <sys/types.h> | |
5303 | #endif | |
5304 | #ifdef HAVE_SYS_STAT_H | |
5305 | #include <sys/stat.h> | |
5306 | #endif | |
5307 | " | |
5308 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | |
5309 | ||
5310 | cat >>confdefs.h <<_ACEOF | |
5311 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
5312 | _ACEOF | |
5313 | ||
5314 | ||
5315 | fi | |
5316 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
5317 | #include <sys/types.h> | |
5318 | #endif | |
5319 | #ifdef HAVE_SYS_STAT_H | |
5320 | #include <sys/stat.h> | |
5321 | #endif | |
5322 | " | |
5323 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : | |
5324 | ||
5325 | cat >>confdefs.h <<_ACEOF | |
5326 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
5327 | _ACEOF | |
5328 | ||
5329 | ||
5330 | fi | |
5331 | ||
5332 | ||
5333 | ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
5334 | if test "x$ac_cv_type___int128" = xyes; then : | |
5335 | ||
5336 | cat >>confdefs.h <<_ACEOF | |
5337 | #define HAVE___INT128 1 | |
5338 | _ACEOF | |
5339 | ||
5340 | ||
5341 | fi | |
5342 | ||
5343 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
5344 | #include <sys/socket.h> | |
5345 | ||
5346 | " | |
5347 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
5348 | ||
5349 | cat >>confdefs.h <<_ACEOF | |
5350 | #define HAVE_SOCKLEN_T 1 | |
5351 | _ACEOF | |
5352 | ||
5353 | ||
5354 | fi | |
5355 | ||
5356 | ||
a48ff3ef MF |
5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 |
5358 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
5359 | if ${ac_cv_type_getgroups+:} false; then : | |
5360 | $as_echo_n "(cached) " >&6 | |
5361 | else | |
5362 | if test "$cross_compiling" = yes; then : | |
5363 | ac_cv_type_getgroups=cross | |
5364 | else | |
5365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5366 | /* end confdefs.h. */ | |
5367 | /* Thanks to Mike Rendell for this test. */ | |
5368 | $ac_includes_default | |
5369 | #define NGID 256 | |
5370 | #undef MAX | |
5371 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
5372 | ||
5373 | int | |
5374 | main () | |
5375 | { | |
5376 | gid_t gidset[NGID]; | |
5377 | int i, n; | |
5378 | union { gid_t gval; long int lval; } val; | |
5379 | ||
5380 | val.lval = -1; | |
5381 | for (i = 0; i < NGID; i++) | |
5382 | gidset[i] = val.gval; | |
5383 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
5384 | gidset); | |
5385 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
5386 | happens when gid_t is short int but getgroups modifies an array | |
5387 | of ints. */ | |
5388 | return n > 0 && gidset[n] != val.gval; | |
5389 | } | |
5390 | _ACEOF | |
5391 | if ac_fn_c_try_run "$LINENO"; then : | |
5392 | ac_cv_type_getgroups=gid_t | |
5393 | else | |
5394 | ac_cv_type_getgroups=int | |
5395 | fi | |
5396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5397 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5398 | fi | |
5399 | ||
5400 | if test $ac_cv_type_getgroups = cross; then | |
5401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5402 | /* end confdefs.h. */ | |
5403 | #include <unistd.h> | |
5404 | ||
5405 | _ACEOF | |
5406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5407 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
5408 | ac_cv_type_getgroups=gid_t | |
5409 | else | |
5410 | ac_cv_type_getgroups=int | |
5411 | fi | |
5412 | rm -f conftest* | |
5413 | ||
5414 | fi | |
5415 | fi | |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
5417 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
5418 | ||
5419 | cat >>confdefs.h <<_ACEOF | |
5420 | #define GETGROUPS_T $ac_cv_type_getgroups | |
5421 | _ACEOF | |
5422 | ||
5423 | ||
5424 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5425 | if test "x$ac_cv_type_mode_t" = xyes; then : | |
5426 | ||
5427 | else | |
5428 | ||
5429 | cat >>confdefs.h <<_ACEOF | |
5430 | #define mode_t int | |
5431 | _ACEOF | |
5432 | ||
5433 | fi | |
5434 | ||
5435 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
5436 | if test "x$ac_cv_type_off_t" = xyes; then : | |
5437 | ||
5438 | else | |
5439 | ||
5440 | cat >>confdefs.h <<_ACEOF | |
5441 | #define off_t long int | |
5442 | _ACEOF | |
5443 | ||
5444 | fi | |
5445 | ||
5446 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
5447 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
5448 | ||
5449 | else | |
5450 | ||
5451 | cat >>confdefs.h <<_ACEOF | |
5452 | #define pid_t int | |
5453 | _ACEOF | |
5454 | ||
5455 | fi | |
5456 | ||
b15c5d7a MF |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
5458 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5459 | if ${ac_cv_type_signal+:} false; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5463 | /* end confdefs.h. */ | |
5464 | #include <sys/types.h> | |
5465 | #include <signal.h> | |
5466 | ||
5467 | int | |
5468 | main () | |
5469 | { | |
5470 | return *(signal (0, 0)) (0) == 1; | |
5471 | ; | |
5472 | return 0; | |
5473 | } | |
5474 | _ACEOF | |
5475 | if ac_fn_c_try_compile "$LINENO"; then : | |
5476 | ac_cv_type_signal=int | |
5477 | else | |
5478 | ac_cv_type_signal=void | |
5479 | fi | |
5480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5481 | fi | |
5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
5483 | $as_echo "$ac_cv_type_signal" >&6; } | |
5484 | ||
5485 | cat >>confdefs.h <<_ACEOF | |
5486 | #define RETSIGTYPE $ac_cv_type_signal | |
5487 | _ACEOF | |
5488 | ||
5489 | ||
a48ff3ef MF |
5490 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5491 | if test "x$ac_cv_type_size_t" = xyes; then : | |
5492 | ||
5493 | else | |
5494 | ||
5495 | cat >>confdefs.h <<_ACEOF | |
5496 | #define size_t unsigned int | |
5497 | _ACEOF | |
5498 | ||
5499 | fi | |
5500 | ||
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
5502 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5503 | if ${ac_cv_type_uid_t+:} false; then : | |
5504 | $as_echo_n "(cached) " >&6 | |
5505 | else | |
5506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5507 | /* end confdefs.h. */ | |
5508 | #include <sys/types.h> | |
5509 | ||
5510 | _ACEOF | |
5511 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5512 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5513 | ac_cv_type_uid_t=yes | |
5514 | else | |
5515 | ac_cv_type_uid_t=no | |
5516 | fi | |
5517 | rm -f conftest* | |
5518 | ||
5519 | fi | |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
5521 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5522 | if test $ac_cv_type_uid_t = no; then | |
5523 | ||
5524 | $as_echo "#define uid_t int" >>confdefs.h | |
5525 | ||
5526 | ||
5527 | $as_echo "#define gid_t int" >>confdefs.h | |
5528 | ||
5529 | fi | |
5530 | ||
b15c5d7a MF |
5531 | |
5532 | ||
5533 | ||
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
5535 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
5536 | # Check whether --enable-maintainer-mode was given. | |
5537 | if test "${enable_maintainer_mode+set}" = set; then : | |
5538 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
5539 | else | |
5540 | USE_MAINTAINER_MODE=no | |
5541 | fi | |
5542 | ||
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
5544 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
5545 | if test $USE_MAINTAINER_MODE = yes; then | |
5546 | MAINTAINER_MODE_TRUE= | |
5547 | MAINTAINER_MODE_FALSE='#' | |
5548 | else | |
5549 | MAINTAINER_MODE_TRUE='#' | |
5550 | MAINTAINER_MODE_FALSE= | |
5551 | fi | |
5552 | ||
5553 | MAINT=$MAINTAINER_MODE_TRUE | |
5554 | ||
5555 | ||
5556 | am__api_version='1.15' | |
5557 | ||
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
5559 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
5560 | # Reject unsafe characters in $srcdir or the absolute working directory | |
5561 | # name. Accept space and tab only in the latter. | |
5562 | am_lf=' | |
5563 | ' | |
5564 | case `pwd` in | |
5565 | *[\\\"\#\$\&\'\`$am_lf]*) | |
5566 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
5567 | esac | |
5568 | case $srcdir in | |
5569 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
5570 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
5571 | esac | |
5572 | ||
5573 | # Do 'set' in a subshell so we don't clobber the current shell's | |
5574 | # arguments. Must try -L first in case configure is actually a | |
5575 | # symlink; some systems play weird games with the mod time of symlinks | |
5576 | # (eg FreeBSD returns the mod time of the symlink's containing | |
5577 | # directory). | |
5578 | if ( | |
5579 | am_has_slept=no | |
5580 | for am_try in 1 2; do | |
5581 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
5582 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
5583 | if test "$*" = "X"; then | |
5584 | # -L didn't work. | |
5585 | set X `ls -t "$srcdir/configure" conftest.file` | |
5586 | fi | |
5587 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
5588 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
5589 | ||
5590 | # If neither matched, then we have a broken ls. This can happen | |
5591 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
5592 | # broken ls alias from the environment. This has actually | |
5593 | # happened. Such a system could not be considered "sane". | |
5594 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
5595 | alias in your environment" "$LINENO" 5 | |
5596 | fi | |
5597 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
5598 | break | |
5599 | fi | |
5600 | # Just in case. | |
5601 | sleep 1 | |
5602 | am_has_slept=yes | |
5603 | done | |
5604 | test "$2" = conftest.file | |
5605 | ) | |
5606 | then | |
5607 | # Ok. | |
5608 | : | |
5609 | else | |
5610 | as_fn_error $? "newly created file is older than distributed files! | |
5611 | Check your system clock" "$LINENO" 5 | |
5612 | fi | |
5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5614 | $as_echo "yes" >&6; } | |
5615 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
5616 | # generated files are strictly newer. | |
5617 | am_sleep_pid= | |
5618 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
5619 | ( sleep 1 ) & | |
5620 | am_sleep_pid=$! | |
5621 | fi | |
5622 | ||
5623 | rm -f conftest.file | |
5624 | ||
5625 | if test x"${MISSING+set}" != xset; then | |
5626 | case $am_aux_dir in | |
5627 | *\ * | *\ *) | |
5628 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
5629 | *) | |
5630 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
5631 | esac | |
5632 | fi | |
5633 | # Use eval to expand $SHELL | |
5634 | if eval "$MISSING --is-lightweight"; then | |
5635 | am_missing_run="$MISSING " | |
c2783492 MF |
5636 | else |
5637 | am_missing_run= | |
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
5639 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
5640 | fi | |
5641 | ||
5642 | if test x"${install_sh+set}" != xset; then | |
5643 | case $am_aux_dir in | |
5644 | *\ * | *\ *) | |
5645 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
5646 | *) | |
5647 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
5648 | esac | |
5649 | fi | |
5650 | ||
5651 | # Installed binaries are usually stripped using 'strip' when the user | |
5652 | # run "make install-strip". However 'strip' might not be the right | |
5653 | # tool to use in cross-compilation environments, therefore Automake | |
5654 | # will honor the 'STRIP' environment variable to overrule this program. | |
5655 | if test "$cross_compiling" != no; then | |
5656 | if test -n "$ac_tool_prefix"; then | |
5657 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5658 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5660 | $as_echo_n "checking for $ac_word... " >&6; } | |
5661 | if ${ac_cv_prog_STRIP+:} false; then : | |
5662 | $as_echo_n "(cached) " >&6 | |
5663 | else | |
5664 | if test -n "$STRIP"; then | |
5665 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5666 | else | |
5667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5668 | for as_dir in $PATH | |
5669 | do | |
5670 | IFS=$as_save_IFS | |
5671 | test -z "$as_dir" && as_dir=. | |
5672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5674 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5676 | break 2 | |
81ecdfbb | 5677 | fi |
81ecdfbb | 5678 | done |
c2783492 MF |
5679 | done |
5680 | IFS=$as_save_IFS | |
b7026657 | 5681 | |
c906108c | 5682 | fi |
b7026657 | 5683 | fi |
c2783492 MF |
5684 | STRIP=$ac_cv_prog_STRIP |
5685 | if test -n "$STRIP"; then | |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5687 | $as_echo "$STRIP" >&6; } | |
81ecdfbb | 5688 | else |
c2783492 MF |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5690 | $as_echo "no" >&6; } | |
81ecdfbb | 5691 | fi |
b7026657 | 5692 | |
b7026657 | 5693 | |
c2783492 MF |
5694 | fi |
5695 | if test -z "$ac_cv_prog_STRIP"; then | |
5696 | ac_ct_STRIP=$STRIP | |
5697 | # Extract the first word of "strip", so it can be a program name with args. | |
5698 | set dummy strip; ac_word=$2 | |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5700 | $as_echo_n "checking for $ac_word... " >&6; } | |
5701 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5702 | $as_echo_n "(cached) " >&6 | |
c906108c | 5703 | else |
c2783492 MF |
5704 | if test -n "$ac_ct_STRIP"; then |
5705 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
81ecdfbb | 5706 | else |
c2783492 MF |
5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5708 | for as_dir in $PATH | |
5709 | do | |
5710 | IFS=$as_save_IFS | |
5711 | test -z "$as_dir" && as_dir=. | |
5712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5714 | ac_cv_prog_ac_ct_STRIP="strip" | |
5715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5716 | break 2 | |
5717 | fi | |
5718 | done | |
5719 | done | |
5720 | IFS=$as_save_IFS | |
81ecdfbb | 5721 | |
81ecdfbb | 5722 | fi |
df1756f4 | 5723 | fi |
c2783492 MF |
5724 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5725 | if test -n "$ac_ct_STRIP"; then | |
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5727 | $as_echo "$ac_ct_STRIP" >&6; } | |
5728 | else | |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5730 | $as_echo "no" >&6; } | |
b7026657 | 5731 | fi |
c2783492 MF |
5732 | |
5733 | if test "x$ac_ct_STRIP" = x; then | |
5734 | STRIP=":" | |
c906108c | 5735 | else |
c2783492 MF |
5736 | case $cross_compiling:$ac_tool_warned in |
5737 | yes:) | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5739 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5740 | ac_tool_warned=yes ;; | |
5741 | esac | |
5742 | STRIP=$ac_ct_STRIP | |
c906108c SS |
5743 | fi |
5744 | else | |
c2783492 | 5745 | STRIP="$ac_cv_prog_STRIP" |
c906108c | 5746 | fi |
81ecdfbb | 5747 | |
b7026657 | 5748 | fi |
c2783492 | 5749 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b7026657 | 5750 | |
c2783492 MF |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
5752 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
5753 | if test -z "$MKDIR_P"; then | |
5754 | if ${ac_cv_path_mkdir+:} false; then : | |
5755 | $as_echo_n "(cached) " >&6 | |
5756 | else | |
5757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5758 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
5759 | do | |
5760 | IFS=$as_save_IFS | |
5761 | test -z "$as_dir" && as_dir=. | |
5762 | for ac_prog in mkdir gmkdir; do | |
5763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5764 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
5765 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
5766 | 'mkdir (GNU coreutils) '* | \ | |
5767 | 'mkdir (coreutils) '* | \ | |
5768 | 'mkdir (fileutils) '4.1*) | |
5769 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
5770 | break 3;; | |
5771 | esac | |
5772 | done | |
5773 | done | |
5774 | done | |
5775 | IFS=$as_save_IFS | |
b7026657 | 5776 | |
fdd6fa61 AG |
5777 | fi |
5778 | ||
c2783492 MF |
5779 | test -d ./--version && rmdir ./--version |
5780 | if test "${ac_cv_path_mkdir+set}" = set; then | |
5781 | MKDIR_P="$ac_cv_path_mkdir -p" | |
5782 | else | |
5783 | # As a last resort, use the slow shell script. Don't cache a | |
5784 | # value for MKDIR_P within a source directory, because that will | |
5785 | # break other packages using the cache if that directory is | |
5786 | # removed, or if the value is a relative name. | |
5787 | MKDIR_P="$ac_install_sh -d" | |
5788 | fi | |
5789 | fi | |
5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
5791 | $as_echo "$MKDIR_P" >&6; } | |
c906108c | 5792 | |
c2783492 MF |
5793 | for ac_prog in gawk mawk nawk awk |
5794 | do | |
5795 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5796 | set dummy $ac_prog; ac_word=$2 | |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5798 | $as_echo_n "checking for $ac_word... " >&6; } | |
5799 | if ${ac_cv_prog_AWK+:} false; then : | |
6bddc3e8 MF |
5800 | $as_echo_n "(cached) " >&6 |
5801 | else | |
c2783492 MF |
5802 | if test -n "$AWK"; then |
5803 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5804 | else | |
5805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5806 | for as_dir in $PATH | |
5807 | do | |
5808 | IFS=$as_save_IFS | |
5809 | test -z "$as_dir" && as_dir=. | |
5810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5811 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5812 | ac_cv_prog_AWK="$ac_prog" | |
5813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5814 | break 2 | |
5815 | fi | |
5816 | done | |
6bddc3e8 | 5817 | done |
c2783492 MF |
5818 | IFS=$as_save_IFS |
5819 | ||
6bddc3e8 | 5820 | fi |
6bddc3e8 | 5821 | fi |
c2783492 MF |
5822 | AWK=$ac_cv_prog_AWK |
5823 | if test -n "$AWK"; then | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
5825 | $as_echo "$AWK" >&6; } | |
5826 | else | |
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5828 | $as_echo "no" >&6; } | |
5829 | fi | |
6bddc3e8 MF |
5830 | |
5831 | ||
c2783492 MF |
5832 | test -n "$AWK" && break |
5833 | done | |
6bddc3e8 | 5834 | |
c2783492 MF |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5836 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5837 | set x ${MAKE-make} | |
5838 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5839 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
6bddc3e8 MF |
5840 | $as_echo_n "(cached) " >&6 |
5841 | else | |
c2783492 MF |
5842 | cat >conftest.make <<\_ACEOF |
5843 | SHELL = /bin/sh | |
5844 | all: | |
5845 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5846 | _ACEOF | |
5847 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5848 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5849 | *@@@%%%=?*=@@@%%%*) | |
5850 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5851 | *) | |
5852 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5853 | esac | |
5854 | rm -f conftest.make | |
5855 | fi | |
5856 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5858 | $as_echo "yes" >&6; } | |
5859 | SET_MAKE= | |
5860 | else | |
5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5862 | $as_echo "no" >&6; } | |
5863 | SET_MAKE="MAKE=${MAKE-make}" | |
5864 | fi | |
6bddc3e8 | 5865 | |
c2783492 MF |
5866 | rm -rf .tst 2>/dev/null |
5867 | mkdir .tst 2>/dev/null | |
5868 | if test -d .tst; then | |
5869 | am__leading_dot=. | |
5870 | else | |
5871 | am__leading_dot=_ | |
5872 | fi | |
5873 | rmdir .tst 2>/dev/null | |
6bddc3e8 | 5874 | |
c2783492 | 5875 | DEPDIR="${am__leading_dot}deps" |
6bddc3e8 | 5876 | |
c2783492 | 5877 | ac_config_commands="$ac_config_commands depfiles" |
6bddc3e8 | 5878 | |
c2783492 MF |
5879 | |
5880 | am_make=${MAKE-make} | |
5881 | cat > confinc << 'END' | |
5882 | am__doit: | |
5883 | @echo this is the am__doit target | |
5884 | .PHONY: am__doit | |
5885 | END | |
5886 | # If we don't find an include directive, just comment out the code. | |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
5888 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
5889 | am__include="#" | |
5890 | am__quote= | |
5891 | _am_result=none | |
5892 | # First try GNU make style include. | |
5893 | echo "include confinc" > confmf | |
5894 | # Ignore all kinds of additional output from 'make'. | |
5895 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
5896 | *the\ am__doit\ target*) | |
5897 | am__include=include | |
5898 | am__quote= | |
5899 | _am_result=GNU | |
5900 | ;; | |
5901 | esac | |
5902 | # Now try BSD make style include. | |
5903 | if test "$am__include" = "#"; then | |
5904 | echo '.include "confinc"' > confmf | |
5905 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
5906 | *the\ am__doit\ target*) | |
5907 | am__include=.include | |
5908 | am__quote="\"" | |
5909 | _am_result=BSD | |
5910 | ;; | |
5911 | esac | |
6bddc3e8 MF |
5912 | fi |
5913 | ||
c2783492 MF |
5914 | |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
5916 | $as_echo "$_am_result" >&6; } | |
5917 | rm -f confinc confmf | |
5918 | ||
5919 | # Check whether --enable-dependency-tracking was given. | |
5920 | if test "${enable_dependency_tracking+set}" = set; then : | |
5921 | enableval=$enable_dependency_tracking; | |
6bddc3e8 | 5922 | fi |
6bddc3e8 | 5923 | |
c2783492 MF |
5924 | if test "x$enable_dependency_tracking" != xno; then |
5925 | am_depcomp="$ac_aux_dir/depcomp" | |
5926 | AMDEPBACKSLASH='\' | |
5927 | am__nodep='_no' | |
5928 | fi | |
5929 | if test "x$enable_dependency_tracking" != xno; then | |
5930 | AMDEP_TRUE= | |
5931 | AMDEP_FALSE='#' | |
6bddc3e8 | 5932 | else |
c2783492 MF |
5933 | AMDEP_TRUE='#' |
5934 | AMDEP_FALSE= | |
6bddc3e8 MF |
5935 | fi |
5936 | ||
5937 | ||
c2783492 MF |
5938 | # Check whether --enable-silent-rules was given. |
5939 | if test "${enable_silent_rules+set}" = set; then : | |
5940 | enableval=$enable_silent_rules; | |
5e25901f | 5941 | fi |
c2783492 MF |
5942 | |
5943 | case $enable_silent_rules in # ((( | |
5944 | yes) AM_DEFAULT_VERBOSITY=0;; | |
5945 | no) AM_DEFAULT_VERBOSITY=1;; | |
5946 | *) AM_DEFAULT_VERBOSITY=1;; | |
5947 | esac | |
5948 | am_make=${MAKE-make} | |
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
5950 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
5951 | if ${am_cv_make_support_nested_variables+:} false; then : | |
5e25901f MF |
5952 | $as_echo_n "(cached) " >&6 |
5953 | else | |
c2783492 MF |
5954 | if $as_echo 'TRUE=$(BAR$(V)) |
5955 | BAR0=false | |
5956 | BAR1=true | |
5957 | V=1 | |
5958 | am__doit: | |
5959 | @$(TRUE) | |
5960 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
5961 | am_cv_make_support_nested_variables=yes | |
5e25901f | 5962 | else |
c2783492 | 5963 | am_cv_make_support_nested_variables=no |
5e25901f | 5964 | fi |
c2783492 MF |
5965 | fi |
5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
5967 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
5968 | if test $am_cv_make_support_nested_variables = yes; then | |
5969 | AM_V='$(V)' | |
5970 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5e25901f | 5971 | else |
c2783492 MF |
5972 | AM_V=$AM_DEFAULT_VERBOSITY |
5973 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5e25901f | 5974 | fi |
c2783492 | 5975 | AM_BACKSLASH='\' |
5e25901f | 5976 | |
c2783492 MF |
5977 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
5978 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
5979 | # is not polluted with repeated "-I." | |
5980 | am__isrc=' -I$(srcdir)' | |
5981 | # test to see if srcdir already configured | |
5982 | if test -f $srcdir/config.status; then | |
5983 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
5984 | fi | |
5e25901f MF |
5985 | fi |
5986 | ||
c2783492 MF |
5987 | # test whether we have cygpath |
5988 | if test -z "$CYGPATH_W"; then | |
5989 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
5990 | CYGPATH_W='cygpath -w' | |
5991 | else | |
5992 | CYGPATH_W=echo | |
5993 | fi | |
5e25901f | 5994 | fi |
c2783492 MF |
5995 | |
5996 | ||
5997 | # Define the identity of the package. | |
5998 | PACKAGE='sim' | |
5999 | VERSION='0' | |
6000 | ||
6001 | ||
6002 | cat >>confdefs.h <<_ACEOF | |
6003 | #define PACKAGE "$PACKAGE" | |
5e25901f | 6004 | _ACEOF |
5e25901f | 6005 | |
5e25901f | 6006 | |
c2783492 MF |
6007 | cat >>confdefs.h <<_ACEOF |
6008 | #define VERSION "$VERSION" | |
5e25901f | 6009 | _ACEOF |
5e25901f | 6010 | |
c2783492 | 6011 | # Some tools Automake needs. |
5e25901f | 6012 | |
c2783492 MF |
6013 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
6014 | ||
6015 | ||
6016 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
6017 | ||
6018 | ||
6019 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
6020 | ||
6021 | ||
6022 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
6023 | ||
6024 | ||
6025 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6026 | ||
6027 | # For better backward compatibility. To be removed once Automake 1.9.x | |
6028 | # dies out for good. For more background, see: | |
6029 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
6030 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
6031 | mkdir_p='$(MKDIR_P)' | |
6032 | ||
6033 | # We need awk for the "check" target (and possibly the TAP driver). The | |
6034 | # system "awk" is bad on some platforms. | |
6035 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
6036 | # in the wild :-( We should find a proper way to deprecate it ... | |
6037 | AMTAR='$${TAR-tar}' | |
6038 | ||
6039 | ||
6040 | # We'll loop over all known methods to create a tar archive until one works. | |
6041 | _am_tools='gnutar pax cpio none' | |
6042 | ||
6043 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
5e25901f | 6044 | |
5e25901f | 6045 | |
c906108c | 6046 | |
c906108c | 6047 | |
c2783492 MF |
6048 | |
6049 | depcc="$CC" am_compiler_list= | |
6050 | ||
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
6052 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
6053 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
81ecdfbb | 6054 | $as_echo_n "(cached) " >&6 |
c906108c | 6055 | else |
c2783492 MF |
6056 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
6057 | # We make a subdir and do the tests there. Otherwise we can end up | |
6058 | # making bogus files that we don't know about and never remove. For | |
6059 | # instance it was reported that on HP-UX the gcc test will end up | |
6060 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
6061 | # in D". | |
6062 | rm -rf conftest.dir | |
6063 | mkdir conftest.dir | |
6064 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6065 | # using a relative directory. | |
6066 | cp "$am_depcomp" conftest.dir | |
6067 | cd conftest.dir | |
6068 | # We will build objects and dependencies in a subdirectory because | |
6069 | # it helps to detect inapplicable dependency modes. For instance | |
6070 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6071 | # side effect of compilation, but ICC will put the dependencies in | |
6072 | # the current directory while Tru64 will put them in the object | |
6073 | # directory. | |
6074 | mkdir sub | |
6075 | ||
6076 | am_cv_CC_dependencies_compiler_type=none | |
6077 | if test "$am_compiler_list" = ""; then | |
6078 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
b7026657 | 6079 | fi |
c2783492 MF |
6080 | am__universal=false |
6081 | case " $depcc " in #( | |
6082 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
6083 | esac | |
6084 | ||
6085 | for depmode in $am_compiler_list; do | |
6086 | # Setup a source with many dependencies, because some compilers | |
6087 | # like to wrap large dependency lists on column 80 (with \), and | |
6088 | # we should not choose a depcomp mode which is confused by this. | |
6089 | # | |
6090 | # We need to recreate these files for each test, as the compiler may | |
6091 | # overwrite some of them when testing with obscure command lines. | |
6092 | # This happens at least with the AIX C compiler. | |
6093 | : > sub/conftest.c | |
6094 | for i in 1 2 3 4 5 6; do | |
6095 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6096 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
6097 | # Solaris 10 /bin/sh. | |
6098 | echo '/* dummy */' > sub/conftst$i.h | |
6099 | done | |
6100 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6101 | ||
6102 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
6103 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6104 | # handle '-M -o', and we need to detect this. Also, some Intel | |
6105 | # versions had trouble with output in subdirs. | |
6106 | am__obj=sub/conftest.${OBJEXT-o} | |
6107 | am__minus_obj="-o $am__obj" | |
6108 | case $depmode in | |
6109 | gcc) | |
6110 | # This depmode causes a compiler race in universal mode. | |
6111 | test "$am__universal" = false || continue | |
6112 | ;; | |
6113 | nosideeffect) | |
6114 | # After this tag, mechanisms are not by side-effect, so they'll | |
6115 | # only be used when explicitly requested. | |
6116 | if test "x$enable_dependency_tracking" = xyes; then | |
6117 | continue | |
6118 | else | |
6119 | break | |
6120 | fi | |
6121 | ;; | |
6122 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
6123 | # This compiler won't grok '-c -o', but also, the minuso test has | |
6124 | # not run yet. These depmodes are late enough in the game, and | |
6125 | # so weak that their functioning should not be impacted. | |
6126 | am__obj=conftest.${OBJEXT-o} | |
6127 | am__minus_obj= | |
6128 | ;; | |
6129 | none) break ;; | |
6130 | esac | |
6131 | if depmode=$depmode \ | |
6132 | source=sub/conftest.c object=$am__obj \ | |
6133 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6134 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6135 | >/dev/null 2>conftest.err && | |
6136 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6137 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6138 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6139 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6140 | # icc doesn't choke on unknown options, it will just issue warnings | |
6141 | # or remarks (even with -Werror). So we grep stderr for any message | |
6142 | # that says an option was ignored or not supported. | |
6143 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6144 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6145 | # The diagnosis changed in icc 8.0: | |
6146 | # icc: Command line remark: option '-MP' not supported | |
6147 | if (grep 'ignoring option' conftest.err || | |
6148 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6149 | am_cv_CC_dependencies_compiler_type=$depmode | |
6150 | break | |
6151 | fi | |
6152 | fi | |
81ecdfbb | 6153 | done |
b7026657 | 6154 | |
c2783492 MF |
6155 | cd .. |
6156 | rm -rf conftest.dir | |
b7026657 | 6157 | else |
c2783492 | 6158 | am_cv_CC_dependencies_compiler_type=none |
b7026657 AC |
6159 | fi |
6160 | ||
6161 | fi | |
c2783492 MF |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
6163 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
6164 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
b7026657 | 6165 | |
c2783492 MF |
6166 | if |
6167 | test "x$enable_dependency_tracking" != xno \ | |
6168 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
6169 | am__fastdepCC_TRUE= | |
6170 | am__fastdepCC_FALSE='#' | |
c906108c | 6171 | else |
c2783492 MF |
6172 | am__fastdepCC_TRUE='#' |
6173 | am__fastdepCC_FALSE= | |
b7026657 AC |
6174 | fi |
6175 | ||
c906108c SS |
6176 | |
6177 | ||
c2783492 MF |
6178 | # POSIX will say in a future version that running "rm -f" with no argument |
6179 | # is OK; and we want to be able to make that assumption in our Makefile | |
6180 | # recipes. So use an aggressive probe to check that the usage we want is | |
6181 | # actually supported "in the wild" to an acceptable degree. | |
6182 | # See automake bug#10828. | |
6183 | # To make any issue more visible, cause the running configure to be aborted | |
6184 | # by default if the 'rm' program in use doesn't match our expectations; the | |
6185 | # user can still override this though. | |
6186 | if rm -f && rm -fr && rm -rf; then : OK; else | |
6187 | cat >&2 <<'END' | |
6188 | Oops! | |
6189 | ||
6190 | Your 'rm' program seems unable to run without file operands specified | |
6191 | on the command line, even when the '-f' option is present. This is contrary | |
6192 | to the behaviour of most rm programs out there, and not conforming with | |
6193 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
6194 | ||
6195 | Please tell bug-automake@gnu.org about your system, including the value | |
6196 | of your $PATH and any error possibly output before this message. This | |
6197 | can help us improve future automake versions. | |
6198 | ||
6199 | END | |
6200 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
6201 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
6202 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
6203 | echo >&2 | |
5c887dd5 | 6204 | else |
c2783492 MF |
6205 | cat >&2 <<'END' |
6206 | Aborting the configuration process, to ensure you take notice of the issue. | |
6207 | ||
6208 | You can download and install GNU coreutils to get an 'rm' implementation | |
6209 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
6210 | ||
6211 | If you want to complete the configuration process using your problematic | |
6212 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
6213 | to "yes", and re-run configure. | |
6214 | ||
6215 | END | |
6216 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5c887dd5 | 6217 | fi |
c906108c SS |
6218 | fi |
6219 | ||
6220 | ||
6221 | # If a cpu ever has more than one simulator to choose from, use | |
6222 | # --enable-sim=... to choose. | |
81ecdfbb RW |
6223 | # Check whether --enable-sim was given. |
6224 | if test "${enable_sim+set}" = set; then : | |
6225 | enableval=$enable_sim; case "${enableval}" in | |
c906108c | 6226 | yes | no) ;; |
d0ac1c44 | 6227 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; |
c906108c | 6228 | esac |
81ecdfbb RW |
6229 | fi |
6230 | ||
c906108c | 6231 | |
26da232c MF |
6232 | # Check whether --enable-example-sims was given. |
6233 | if test "${enable_example_sims+set}" = set; then : | |
6234 | enableval=$enable_example_sims; | |
6235 | fi | |
6236 | ||
6237 | ||
a0e674c1 MF |
6238 | # Check whether --enable-targets was given. |
6239 | if test "${enable_targets+set}" = set; then : | |
6240 | enableval=$enable_targets; case "${enableval}" in | |
6241 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
6242 | ;; | |
6243 | no) enable_targets= ;; | |
6244 | *) enable_targets=$enableval ;; | |
6245 | esac | |
6246 | fi | |
6247 | ||
6248 | ||
6249 | SIM_PRIMARY_TARGET= | |
6250 | ||
6251 | ||
6252 | ||
6253 | ||
119da465 | 6254 | if test "${enable_sim}" != no; then |
3e8bb3e9 | 6255 | sim_igen=no |
a0e674c1 MF |
6256 | for targ in `echo $target $enable_targets | sed 's/,/ /g'` |
6257 | do | |
6258 | ||
6259 | case "${targ}" in | |
6260 | all|aarch64*-*-*) | |
6261 | if test "${targ}" = "${target}"; then | |
6262 | SIM_PRIMARY_TARGET=aarch64 | |
6263 | fi | |
2e8cf49e NC |
6264 | |
6265 | ||
6266 | subdirs="$subdirs aarch64" | |
fdd6fa61 | 6267 | |
a0e674c1 | 6268 | |
3e8bb3e9 | 6269 | ;; |
a0e674c1 MF |
6270 | esac |
6271 | ||
6272 | ||
6273 | case "${targ}" in | |
6274 | all|arm*-*-*) | |
6275 | if test "${targ}" = "${target}"; then | |
6276 | SIM_PRIMARY_TARGET=arm | |
6277 | fi | |
3e8bb3e9 | 6278 | subdirs="$subdirs arm" |
fdd6fa61 | 6279 | |
a0e674c1 | 6280 | |
3e8bb3e9 | 6281 | ;; |
a0e674c1 MF |
6282 | esac |
6283 | ||
6284 | ||
6285 | case "${targ}" in | |
6286 | all|avr*-*-*) | |
6287 | if test "${targ}" = "${target}"; then | |
6288 | SIM_PRIMARY_TARGET=avr | |
6289 | fi | |
3e8bb3e9 | 6290 | subdirs="$subdirs avr" |
0cd79707 | 6291 | |
a0e674c1 | 6292 | |
3e8bb3e9 | 6293 | ;; |
a0e674c1 MF |
6294 | esac |
6295 | ||
6296 | ||
6297 | case "${targ}" in | |
6298 | all|bfin-*-*) | |
6299 | if test "${targ}" = "${target}"; then | |
6300 | SIM_PRIMARY_TARGET=bfin | |
6301 | fi | |
3e8bb3e9 | 6302 | subdirs="$subdirs bfin" |
ddd44b70 | 6303 | |
a0e674c1 | 6304 | |
3e8bb3e9 | 6305 | ;; |
a0e674c1 MF |
6306 | esac |
6307 | ||
6308 | ||
6309 | case "${targ}" in | |
6310 | all|bpf-*-*) | |
6311 | if test "${targ}" = "${target}"; then | |
6312 | SIM_PRIMARY_TARGET=bpf | |
6313 | fi | |
3e8bb3e9 | 6314 | subdirs="$subdirs bpf" |
ddd44b70 | 6315 | |
a0e674c1 | 6316 | |
3e8bb3e9 | 6317 | ;; |
a0e674c1 MF |
6318 | esac |
6319 | ||
6320 | ||
6321 | case "${targ}" in | |
6322 | all|cr16*-*-*) | |
6323 | if test "${targ}" = "${target}"; then | |
6324 | SIM_PRIMARY_TARGET=cr16 | |
6325 | fi | |
3e8bb3e9 | 6326 | subdirs="$subdirs cr16" |
ddd44b70 | 6327 | |
a0e674c1 | 6328 | |
3e8bb3e9 | 6329 | ;; |
a0e674c1 MF |
6330 | esac |
6331 | ||
6332 | ||
6333 | case "${targ}" in | |
6334 | all|cris-*-* | crisv32-*-*) | |
6335 | if test "${targ}" = "${target}"; then | |
6336 | SIM_PRIMARY_TARGET=cris | |
6337 | fi | |
3e8bb3e9 | 6338 | subdirs="$subdirs cris" |
b9249c46 | 6339 | |
a0e674c1 | 6340 | |
3e8bb3e9 | 6341 | ;; |
a0e674c1 MF |
6342 | esac |
6343 | ||
6344 | ||
6345 | case "${targ}" in | |
6346 | all|d10v-*-*) | |
6347 | if test "${targ}" = "${target}"; then | |
6348 | SIM_PRIMARY_TARGET=d10v | |
6349 | fi | |
3e8bb3e9 | 6350 | subdirs="$subdirs d10v" |
b9249c46 | 6351 | |
a0e674c1 | 6352 | |
3e8bb3e9 | 6353 | ;; |
a0e674c1 MF |
6354 | esac |
6355 | ||
6356 | ||
6357 | case "${targ}" in | |
6358 | all|frv-*-*) | |
6359 | if test "${targ}" = "${target}"; then | |
6360 | SIM_PRIMARY_TARGET=frv | |
6361 | fi | |
3e8bb3e9 | 6362 | subdirs="$subdirs frv" |
b9249c46 | 6363 | |
a0e674c1 | 6364 | |
3e8bb3e9 | 6365 | ;; |
a0e674c1 MF |
6366 | esac |
6367 | ||
6368 | ||
6369 | case "${targ}" in | |
6370 | all|h8300*-*-*) | |
6371 | if test "${targ}" = "${target}"; then | |
6372 | SIM_PRIMARY_TARGET=h8300 | |
6373 | fi | |
3e8bb3e9 | 6374 | subdirs="$subdirs h8300" |
119da465 | 6375 | |
a0e674c1 | 6376 | |
3e8bb3e9 | 6377 | ;; |
a0e674c1 MF |
6378 | esac |
6379 | ||
6380 | ||
6381 | case "${targ}" in | |
6382 | all|iq2000-*-*) | |
6383 | if test "${targ}" = "${target}"; then | |
6384 | SIM_PRIMARY_TARGET=iq2000 | |
6385 | fi | |
3e8bb3e9 | 6386 | subdirs="$subdirs iq2000" |
119da465 | 6387 | |
a0e674c1 | 6388 | |
3e8bb3e9 | 6389 | ;; |
a0e674c1 MF |
6390 | esac |
6391 | ||
6392 | ||
6393 | case "${targ}" in | |
6394 | all|lm32-*-*) | |
6395 | if test "${targ}" = "${target}"; then | |
6396 | SIM_PRIMARY_TARGET=lm32 | |
6397 | fi | |
3e8bb3e9 | 6398 | subdirs="$subdirs lm32" |
119da465 | 6399 | |
a0e674c1 | 6400 | |
3e8bb3e9 | 6401 | ;; |
a0e674c1 MF |
6402 | esac |
6403 | ||
6404 | ||
6405 | case "${targ}" in | |
6406 | all|m32c-*-*) | |
6407 | if test "${targ}" = "${target}"; then | |
6408 | SIM_PRIMARY_TARGET=m32c | |
6409 | fi | |
3e8bb3e9 | 6410 | subdirs="$subdirs m32c" |
87326c78 | 6411 | |
a0e674c1 | 6412 | |
3e8bb3e9 | 6413 | ;; |
a0e674c1 MF |
6414 | esac |
6415 | ||
6416 | ||
6417 | case "${targ}" in | |
6418 | all|m32r-*-*) | |
6419 | if test "${targ}" = "${target}"; then | |
6420 | SIM_PRIMARY_TARGET=m32r | |
6421 | fi | |
3e8bb3e9 | 6422 | subdirs="$subdirs m32r" |
87326c78 | 6423 | |
a0e674c1 | 6424 | |
3e8bb3e9 | 6425 | ;; |
a0e674c1 MF |
6426 | esac |
6427 | ||
6428 | ||
6429 | case "${targ}" in | |
6430 | all|m68hc11-*-*|m6811-*-*) | |
6431 | if test "${targ}" = "${target}"; then | |
6432 | SIM_PRIMARY_TARGET=m68hc11 | |
6433 | fi | |
3e8bb3e9 | 6434 | subdirs="$subdirs m68hc11" |
87326c78 | 6435 | |
a0e674c1 | 6436 | |
3e8bb3e9 | 6437 | ;; |
a0e674c1 MF |
6438 | esac |
6439 | ||
6440 | ||
6441 | case "${targ}" in | |
6442 | all|mcore-*-*) | |
6443 | if test "${targ}" = "${target}"; then | |
6444 | SIM_PRIMARY_TARGET=mcore | |
6445 | fi | |
3e8bb3e9 | 6446 | subdirs="$subdirs mcore" |
119da465 | 6447 | |
a0e674c1 | 6448 | |
3e8bb3e9 | 6449 | ;; |
a0e674c1 MF |
6450 | esac |
6451 | ||
6452 | ||
6453 | case "${targ}" in | |
6454 | all|microblaze-*-*) | |
6455 | if test "${targ}" = "${target}"; then | |
6456 | SIM_PRIMARY_TARGET=microblaze | |
6457 | fi | |
3e8bb3e9 | 6458 | subdirs="$subdirs microblaze" |
119da465 | 6459 | |
a0e674c1 | 6460 | |
3e8bb3e9 | 6461 | ;; |
a0e674c1 MF |
6462 | esac |
6463 | ||
6464 | ||
6465 | case "${targ}" in | |
6466 | all|mips*-*-*) | |
6467 | if test "${targ}" = "${target}"; then | |
6468 | SIM_PRIMARY_TARGET=mips | |
6469 | fi | |
3e8bb3e9 | 6470 | subdirs="$subdirs mips" |
119da465 | 6471 | |
3e8bb3e9 MF |
6472 | sim_igen=yes |
6473 | ;; | |
a0e674c1 MF |
6474 | esac |
6475 | ||
6476 | ||
6477 | case "${targ}" in | |
6478 | all|mn10300*-*-*) | |
6479 | if test "${targ}" = "${target}"; then | |
6480 | SIM_PRIMARY_TARGET=mn10300 | |
6481 | fi | |
3e8bb3e9 | 6482 | subdirs="$subdirs mn10300" |
119da465 | 6483 | |
3e8bb3e9 MF |
6484 | sim_igen=yes |
6485 | ;; | |
a0e674c1 MF |
6486 | esac |
6487 | ||
6488 | ||
6489 | case "${targ}" in | |
6490 | all|moxie-*-*) | |
6491 | if test "${targ}" = "${target}"; then | |
6492 | SIM_PRIMARY_TARGET=moxie | |
6493 | fi | |
3e8bb3e9 | 6494 | subdirs="$subdirs moxie" |
119da465 | 6495 | |
a0e674c1 | 6496 | |
3e8bb3e9 | 6497 | ;; |
a0e674c1 MF |
6498 | esac |
6499 | ||
6500 | ||
6501 | case "${targ}" in | |
6502 | all|msp430*-*-*) | |
6503 | if test "${targ}" = "${target}"; then | |
6504 | SIM_PRIMARY_TARGET=msp430 | |
6505 | fi | |
3e8bb3e9 | 6506 | subdirs="$subdirs msp430" |
119da465 | 6507 | |
a0e674c1 | 6508 | |
3e8bb3e9 | 6509 | ;; |
a0e674c1 MF |
6510 | esac |
6511 | ||
6512 | ||
6513 | case "${targ}" in | |
6514 | all|or1k-*-* | or1knd-*-*) | |
6515 | if test "${targ}" = "${target}"; then | |
6516 | SIM_PRIMARY_TARGET=or1k | |
6517 | fi | |
3e8bb3e9 | 6518 | subdirs="$subdirs or1k" |
119da465 | 6519 | |
a0e674c1 | 6520 | |
3e8bb3e9 | 6521 | ;; |
a0e674c1 MF |
6522 | esac |
6523 | ||
6524 | ||
6525 | case "${targ}" in | |
6526 | all|pru*-*-*) | |
6527 | if test "${targ}" = "${target}"; then | |
6528 | SIM_PRIMARY_TARGET=pru | |
6529 | fi | |
3e8bb3e9 | 6530 | subdirs="$subdirs pru" |
119da465 | 6531 | |
a0e674c1 | 6532 | |
3e8bb3e9 | 6533 | ;; |
a0e674c1 MF |
6534 | esac |
6535 | ||
6536 | ||
6537 | case "${targ}" in | |
6538 | all|riscv*-*-*) | |
6539 | if test "${targ}" = "${target}"; then | |
6540 | SIM_PRIMARY_TARGET=riscv | |
6541 | fi | |
3e8bb3e9 | 6542 | subdirs="$subdirs riscv" |
119da465 | 6543 | |
a0e674c1 | 6544 | |
3e8bb3e9 | 6545 | ;; |
a0e674c1 MF |
6546 | esac |
6547 | ||
6548 | ||
6549 | case "${targ}" in | |
6550 | all|rl78-*-*) | |
6551 | if test "${targ}" = "${target}"; then | |
6552 | SIM_PRIMARY_TARGET=rl78 | |
6553 | fi | |
3e8bb3e9 | 6554 | subdirs="$subdirs rl78" |
f46e4eb7 | 6555 | |
a0e674c1 | 6556 | |
3e8bb3e9 | 6557 | ;; |
a0e674c1 MF |
6558 | esac |
6559 | ||
6560 | ||
6561 | case "${targ}" in | |
6562 | all|rx-*-*) | |
6563 | if test "${targ}" = "${target}"; then | |
6564 | SIM_PRIMARY_TARGET=rx | |
6565 | fi | |
3e8bb3e9 | 6566 | subdirs="$subdirs rx" |
f46e4eb7 | 6567 | |
a0e674c1 | 6568 | |
3e8bb3e9 | 6569 | ;; |
a0e674c1 MF |
6570 | esac |
6571 | ||
6572 | ||
6573 | case "${targ}" in | |
6574 | all|sh*-*-*) | |
6575 | if test "${targ}" = "${target}"; then | |
6576 | SIM_PRIMARY_TARGET=sh | |
6577 | fi | |
3e8bb3e9 | 6578 | subdirs="$subdirs sh" |
f46e4eb7 | 6579 | |
a0e674c1 | 6580 | |
3e8bb3e9 | 6581 | ;; |
a0e674c1 MF |
6582 | esac |
6583 | ||
6584 | ||
6585 | case "${targ}" in | |
6586 | all|sparc-*-rtems*|sparc-*-elf*) | |
6587 | if test "${targ}" = "${target}"; then | |
6588 | SIM_PRIMARY_TARGET=erc32 | |
6589 | fi | |
3e8bb3e9 | 6590 | subdirs="$subdirs erc32" |
119da465 | 6591 | |
a0e674c1 | 6592 | |
3e8bb3e9 | 6593 | ;; |
a0e674c1 MF |
6594 | esac |
6595 | ||
6596 | ||
6597 | case "${targ}" in | |
6598 | all|powerpc*-*-*) | |
6599 | if test "${targ}" = "${target}"; then | |
6600 | SIM_PRIMARY_TARGET=ppc | |
6601 | fi | |
3e8bb3e9 | 6602 | subdirs="$subdirs ppc" |
119da465 | 6603 | |
a0e674c1 | 6604 | |
3e8bb3e9 | 6605 | ;; |
a0e674c1 MF |
6606 | esac |
6607 | ||
6608 | ||
6609 | case "${targ}" in | |
6610 | all|ft32-*-*) | |
6611 | if test "${targ}" = "${target}"; then | |
6612 | SIM_PRIMARY_TARGET=ft32 | |
6613 | fi | |
3e8bb3e9 | 6614 | subdirs="$subdirs ft32" |
119da465 | 6615 | |
a0e674c1 | 6616 | |
3e8bb3e9 | 6617 | ;; |
a0e674c1 MF |
6618 | esac |
6619 | ||
6620 | ||
6621 | case "${targ}" in | |
6622 | all|v850*-*-*) | |
6623 | if test "${targ}" = "${target}"; then | |
6624 | SIM_PRIMARY_TARGET=v850 | |
6625 | fi | |
3e8bb3e9 | 6626 | subdirs="$subdirs v850" |
119da465 | 6627 | |
3e8bb3e9 MF |
6628 | sim_igen=yes |
6629 | ;; | |
6630 | esac | |
a0e674c1 MF |
6631 | |
6632 | done | |
26da232c MF |
6633 | |
6634 | if test "x${enable_example_sims}" = xyes; then | |
6635 | subdirs="$subdirs example-synacor" | |
6636 | ||
6637 | fi | |
b6b1c790 MF |
6638 | fi |
6639 | if test "$sim_igen" = "yes"; then | |
6640 | SIM_ENABLE_IGEN_TRUE= | |
6641 | SIM_ENABLE_IGEN_FALSE='#' | |
6642 | else | |
6643 | SIM_ENABLE_IGEN_TRUE='#' | |
6644 | SIM_ENABLE_IGEN_FALSE= | |
c906108c SS |
6645 | fi |
6646 | ||
b6b1c790 | 6647 | |
dba333c1 MF |
6648 | |
6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
6650 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
6651 | sim_assert="1" | |
6652 | # Check whether --enable-sim-assert was given. | |
6653 | if test "${enable_sim_assert+set}" = set; then : | |
6654 | enableval=$enable_sim_assert; case "${enableval}" in | |
6655 | yes) sim_assert="1";; | |
6656 | no) sim_assert="0";; | |
6657 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; | |
6658 | esac | |
6659 | fi | |
6660 | ||
6661 | cat >>confdefs.h <<_ACEOF | |
6662 | #define WITH_ASSERT $sim_assert | |
6663 | _ACEOF | |
6664 | ||
6665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
6666 | $as_echo "$sim_assert" >&6; } | |
6667 | ||
04381273 MF |
6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
6669 | $as_echo_n "checking for sim debug setting... " >&6; } | |
6670 | sim_debug="0" | |
6671 | # Check whether --enable-sim-debug was given. | |
6672 | if test "${enable_sim_debug+set}" = set; then : | |
6673 | enableval=$enable_sim_debug; case "${enableval}" in | |
6674 | yes) sim_debug="7";; | |
6675 | no) sim_debug="0";; | |
6676 | *) sim_debug="($enableval)";; | |
6677 | esac | |
6678 | fi | |
6679 | if test "$sim_debug" != "0"; then | |
6680 | ||
6681 | cat >>confdefs.h <<_ACEOF | |
6682 | #define DEBUG $sim_debug | |
6683 | _ACEOF | |
6684 | ||
6685 | fi | |
6686 | ||
6687 | cat >>confdefs.h <<_ACEOF | |
6688 | #define WITH_DEBUG $sim_debug | |
6689 | _ACEOF | |
6690 | ||
6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
6692 | $as_echo "$sim_debug" >&6; } | |
6693 | ||
dba333c1 | 6694 | |
5ea45474 MF |
6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
6696 | $as_echo_n "checking default sim environment setting... " >&6; } | |
6697 | sim_environment="ALL_ENVIRONMENT" | |
6698 | # Check whether --enable-sim-environment was given. | |
6699 | if test "${enable_sim_environment+set}" = set; then : | |
6700 | enableval=$enable_sim_environment; case "${enableval}" in | |
6701 | all | ALL) sim_environment="ALL_ENVIRONMENT";; | |
6702 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
6703 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
6704 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
6705 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; | |
6706 | esac | |
6707 | fi | |
6708 | ||
6709 | cat >>confdefs.h <<_ACEOF | |
6710 | #define WITH_ENVIRONMENT $sim_environment | |
6711 | _ACEOF | |
6712 | ||
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
6714 | $as_echo "$sim_environment" >&6; } | |
6715 | ||
04381273 MF |
6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
6717 | $as_echo_n "checking for sim profile settings... " >&6; } | |
6718 | profile="1" | |
6719 | sim_profile="-1" | |
6720 | # Check whether --enable-sim-profile was given. | |
6721 | if test "${enable_sim_profile+set}" = set; then : | |
6722 | enableval=$enable_sim_profile; case "${enableval}" in | |
6723 | yes) profile="1" sim_profile="-1";; | |
6724 | no) profile="0" sim_profile="0";; | |
6725 | [-0-9]*) | |
6726 | profile="(${enableval})" sim_profile="(${enableval})";; | |
6727 | [a-z]*) | |
6728 | profile="1" | |
6729 | sim_profile="" | |
6730 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6731 | if test x"$sim_profile" = x; then | |
6732 | sim_profile="(PROFILE_$x" | |
6733 | else | |
6734 | sim_profile="${sim_profile}|PROFILE_$x" | |
6735 | fi | |
6736 | done | |
6737 | sim_profile="$sim_profile)" ;; | |
6738 | esac | |
6739 | fi | |
6740 | ||
6741 | cat >>confdefs.h <<_ACEOF | |
6742 | #define PROFILE $profile | |
6743 | _ACEOF | |
6744 | ||
6745 | ||
6746 | cat >>confdefs.h <<_ACEOF | |
6747 | #define WITH_PROFILE $sim_profile | |
6748 | _ACEOF | |
6749 | ||
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
6751 | $as_echo "$sim_profile" >&6; } | |
6752 | ||
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 | |
6754 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
6755 | sim_stdio="0" | |
6756 | # Check whether --enable-sim-stdio was given. | |
6757 | if test "${enable_sim_stdio+set}" = set; then : | |
6758 | enableval=$enable_sim_stdio; case "${enableval}" in | |
6759 | yes) sim_stdio="DO_USE_STDIO";; | |
6760 | no) sim_stdio="DONT_USE_STDIO";; | |
6761 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; | |
6762 | esac | |
6763 | fi | |
6764 | ||
6765 | cat >>confdefs.h <<_ACEOF | |
6766 | #define WITH_STDIO $sim_stdio | |
6767 | _ACEOF | |
6768 | ||
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
6770 | $as_echo "$sim_stdio" >&6; } | |
6771 | ||
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 | |
6773 | $as_echo_n "checking for sim trace settings... " >&6; } | |
6774 | sim_trace="~TRACE_debug" | |
6775 | # Check whether --enable-sim-trace was given. | |
6776 | if test "${enable_sim_trace+set}" = set; then : | |
6777 | enableval=$enable_sim_trace; case "${enableval}" in | |
6778 | yes) sim_trace="-1";; | |
6779 | no) sim_trace="0";; | |
6780 | [-0-9]*) | |
6781 | sim_trace="'(${enableval})'";; | |
6782 | [[:lower:]]*) | |
6783 | sim_trace="" | |
6784 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6785 | if test x"$sim_trace" = x; then | |
6786 | sim_trace="(TRACE_$x" | |
6787 | else | |
6788 | sim_trace="${sim_trace}|TRACE_$x" | |
6789 | fi | |
6790 | done | |
6791 | sim_trace="$sim_trace)" ;; | |
6792 | esac | |
6793 | fi | |
6794 | ||
6795 | cat >>confdefs.h <<_ACEOF | |
6796 | #define WITH_TRACE $sim_trace | |
6797 | _ACEOF | |
6798 | ||
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
6800 | $as_echo "$sim_trace" >&6; } | |
6801 | ||
5ea45474 | 6802 | |
6c57b87f | 6803 | ac_config_files="$ac_config_files Makefile" |
81ecdfbb | 6804 | |
b7026657 | 6805 | cat >confcache <<\_ACEOF |
c906108c SS |
6806 | # This file is a shell script that caches the results of configure |
6807 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
6808 | # scripts and configure runs, see configure's option --config-cache. |
6809 | # It is not useful on other systems. If it contains results you don't | |
6810 | # want to keep, you may remove or edit it. | |
c906108c | 6811 | # |
b7026657 AC |
6812 | # config.status only pays attention to the cache file if you give it |
6813 | # the --recheck option to rerun configure. | |
c906108c | 6814 | # |
b7026657 AC |
6815 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
6816 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6817 | # following values. | |
6818 | ||
6819 | _ACEOF | |
6820 | ||
c906108c SS |
6821 | # The following way of writing the cache mishandles newlines in values, |
6822 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 6823 | # So, we kill variables containing newlines. |
c906108c SS |
6824 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6825 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
6826 | ( |
6827 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6828 | eval ac_val=\$$ac_var | |
6829 | case $ac_val in #( | |
6830 | *${as_nl}*) | |
6831 | case $ac_var in #( | |
6832 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
6833 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
6834 | esac | |
6835 | case $ac_var in #( | |
6836 | _ | IFS | as_nl) ;; #( | |
6837 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
6838 | *) { eval $ac_var=; unset $ac_var;} ;; | |
6839 | esac ;; | |
6840 | esac | |
6841 | done | |
6842 | ||
b7026657 | 6843 | (set) 2>&1 | |
81ecdfbb RW |
6844 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6845 | *${as_nl}ac_space=\ *) | |
6846 | # `set' does not quote correctly, so add quotes: double-quote | |
6847 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
6848 | sed -n \ |
6849 | "s/'/'\\\\''/g; | |
6850 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 6851 | ;; #( |
b7026657 AC |
6852 | *) |
6853 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 6854 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 6855 | ;; |
81ecdfbb RW |
6856 | esac | |
6857 | sort | |
6858 | ) | | |
b7026657 | 6859 | sed ' |
81ecdfbb | 6860 | /^ac_cv_env_/b end |
b7026657 | 6861 | t clear |
81ecdfbb | 6862 | :clear |
b7026657 AC |
6863 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6864 | t end | |
81ecdfbb RW |
6865 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6866 | :end' >>confcache | |
6867 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6868 | if test -w "$cache_file"; then | |
d0ac1c44 | 6869 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
6871 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
6872 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6873 | cat confcache >"$cache_file" | |
6874 | else | |
6875 | case $cache_file in #( | |
6876 | */* | ?:*) | |
6877 | mv -f confcache "$cache_file"$$ && | |
6878 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6879 | *) | |
6880 | mv -f confcache "$cache_file" ;; | |
6881 | esac | |
6882 | fi | |
6883 | fi | |
c906108c | 6884 | else |
81ecdfbb RW |
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
6886 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
6887 | fi |
6888 | fi | |
6889 | rm -f confcache | |
6890 | ||
c906108c SS |
6891 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6892 | # Let make expand exec_prefix. | |
6893 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6894 | ||
b15c5d7a | 6895 | DEFS=-DHAVE_CONFIG_H |
b7026657 AC |
6896 | |
6897 | ac_libobjs= | |
6898 | ac_ltlibobjs= | |
d0ac1c44 | 6899 | U= |
b7026657 AC |
6900 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6901 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
6902 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6903 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
6904 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
6905 | # will be set to the directory where LIBOBJS objects are built. | |
6906 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
6907 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
6908 | done |
6909 | LIBOBJS=$ac_libobjs | |
c906108c | 6910 | |
b7026657 AC |
6911 | LTLIBOBJS=$ac_ltlibobjs |
6912 | ||
6913 | ||
c2783492 | 6914 | |
8c379db2 TT |
6915 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
6916 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
6917 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6918 | fi | |
6bddc3e8 MF |
6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
6920 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
6921 | if test -n "$am_sleep_pid"; then | |
6922 | # Hide warnings about reused PIDs. | |
6923 | wait $am_sleep_pid 2>/dev/null | |
6924 | fi | |
6925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
6926 | $as_echo "done" >&6; } | |
6bddc3e8 MF |
6927 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
6928 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
6929 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6930 | fi | |
6931 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6932 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
6933 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6934 | fi | |
c2783492 MF |
6935 | if test -n "$EXEEXT"; then |
6936 | am__EXEEXT_TRUE= | |
6937 | am__EXEEXT_FALSE='#' | |
6938 | else | |
6939 | am__EXEEXT_TRUE='#' | |
6940 | am__EXEEXT_FALSE= | |
6bddc3e8 | 6941 | fi |
b7026657 | 6942 | |
b6b1c790 MF |
6943 | if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then |
6944 | as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined. | |
6945 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
6946 | fi | |
c2783492 | 6947 | |
d0ac1c44 | 6948 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 6949 | ac_write_fail=0 |
b7026657 AC |
6950 | ac_clean_files_save=$ac_clean_files |
6951 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
6953 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6954 | as_write_fail=0 | |
6955 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
6956 | #! $SHELL |
6957 | # Generated by $as_me. | |
c906108c | 6958 | # Run this file to recreate the current configuration. |
c906108c | 6959 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
6960 | # configure, is in config.log if it exists. |
6961 | ||
6962 | debug=false | |
6963 | ac_cs_recheck=false | |
6964 | ac_cs_silent=false | |
b7026657 | 6965 | |
81ecdfbb RW |
6966 | SHELL=\${CONFIG_SHELL-$SHELL} |
6967 | export SHELL | |
6968 | _ASEOF | |
6969 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6970 | ## -------------------- ## | |
6971 | ## M4sh Initialization. ## | |
6972 | ## -------------------- ## | |
6973 | ||
6974 | # Be more Bourne compatible | |
6975 | DUALCASE=1; export DUALCASE # for MKS sh | |
6976 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
6977 | emulate sh |
6978 | NULLCMD=: | |
81ecdfbb | 6979 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
6980 | # is contrary to our usage. Disable this feature. |
6981 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
6982 | setopt NO_GLOB_SUBST |
6983 | else | |
6984 | case `(set -o) 2>/dev/null` in #( | |
6985 | *posix*) : | |
6986 | set -o posix ;; #( | |
6987 | *) : | |
6988 | ;; | |
6989 | esac | |
b7026657 | 6990 | fi |
c906108c | 6991 | |
81ecdfbb RW |
6992 | |
6993 | as_nl=' | |
6994 | ' | |
6995 | export as_nl | |
6996 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6997 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6998 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6999 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7000 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7001 | # but without wasting forks for bash or zsh. | |
7002 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7003 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7004 | as_echo='print -r --' | |
7005 | as_echo_n='print -rn --' | |
7006 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7007 | as_echo='printf %s\n' | |
7008 | as_echo_n='printf %s' | |
b7026657 | 7009 | else |
81ecdfbb RW |
7010 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
7011 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7012 | as_echo_n='/usr/ucb/echo -n' | |
7013 | else | |
7014 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7015 | as_echo_n_body='eval | |
7016 | arg=$1; | |
7017 | case $arg in #( | |
7018 | *"$as_nl"*) | |
7019 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7020 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7021 | esac; | |
7022 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7023 | ' | |
7024 | export as_echo_n_body | |
7025 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7026 | fi | |
7027 | export as_echo_body | |
7028 | as_echo='sh -c $as_echo_body as_echo' | |
7029 | fi | |
7030 | ||
7031 | # The user is always right. | |
7032 | if test "${PATH_SEPARATOR+set}" != set; then | |
7033 | PATH_SEPARATOR=: | |
7034 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7035 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7036 | PATH_SEPARATOR=';' | |
7037 | } | |
b7026657 AC |
7038 | fi |
7039 | ||
7040 | ||
81ecdfbb RW |
7041 | # IFS |
7042 | # We need space, tab and new line, in precisely that order. Quoting is | |
7043 | # there to prevent editors from complaining about space-tab. | |
7044 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7045 | # splitting by setting IFS to empty value.) | |
7046 | IFS=" "" $as_nl" | |
7047 | ||
7048 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 7049 | as_myself= |
81ecdfbb RW |
7050 | case $0 in #(( |
7051 | *[\\/]* ) as_myself=$0 ;; | |
7052 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7053 | for as_dir in $PATH | |
7054 | do | |
7055 | IFS=$as_save_IFS | |
7056 | test -z "$as_dir" && as_dir=. | |
7057 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7058 | done | |
7059 | IFS=$as_save_IFS | |
7060 | ||
7061 | ;; | |
7062 | esac | |
7063 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7064 | # in which case we are not to be found in the path. | |
7065 | if test "x$as_myself" = x; then | |
7066 | as_myself=$0 | |
7067 | fi | |
7068 | if test ! -f "$as_myself"; then | |
7069 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7070 | exit 1 | |
7071 | fi | |
7072 | ||
7073 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7074 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7075 | # suppresses any "Segmentation fault" message there. '((' could | |
7076 | # trigger a bug in pdksh 5.2.14. | |
7077 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7078 | do eval test x\${$as_var+set} = xset \ | |
7079 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7080 | done | |
b7026657 AC |
7081 | PS1='$ ' |
7082 | PS2='> ' | |
7083 | PS4='+ ' | |
7084 | ||
7085 | # NLS nuisances. | |
81ecdfbb RW |
7086 | LC_ALL=C |
7087 | export LC_ALL | |
7088 | LANGUAGE=C | |
7089 | export LANGUAGE | |
7090 | ||
7091 | # CDPATH. | |
7092 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7093 | ||
7094 | ||
d0ac1c44 SM |
7095 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7096 | # ---------------------------------------- | |
81ecdfbb RW |
7097 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7098 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 7099 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
7100 | as_fn_error () |
7101 | { | |
d0ac1c44 SM |
7102 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7103 | if test "$4"; then | |
7104 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7105 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 7106 | fi |
d0ac1c44 | 7107 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
7108 | as_fn_exit $as_status |
7109 | } # as_fn_error | |
c906108c | 7110 | |
81ecdfbb RW |
7111 | |
7112 | # as_fn_set_status STATUS | |
7113 | # ----------------------- | |
7114 | # Set $? to STATUS, without forking. | |
7115 | as_fn_set_status () | |
7116 | { | |
7117 | return $1 | |
7118 | } # as_fn_set_status | |
7119 | ||
7120 | # as_fn_exit STATUS | |
7121 | # ----------------- | |
7122 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7123 | as_fn_exit () | |
7124 | { | |
7125 | set +e | |
7126 | as_fn_set_status $1 | |
7127 | exit $1 | |
7128 | } # as_fn_exit | |
7129 | ||
7130 | # as_fn_unset VAR | |
7131 | # --------------- | |
7132 | # Portably unset VAR. | |
7133 | as_fn_unset () | |
7134 | { | |
7135 | { eval $1=; unset $1;} | |
7136 | } | |
7137 | as_unset=as_fn_unset | |
7138 | # as_fn_append VAR VALUE | |
7139 | # ---------------------- | |
7140 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7141 | # advantage of any shell optimizations that allow amortized linear growth over | |
7142 | # repeated appends, instead of the typical quadratic growth present in naive | |
7143 | # implementations. | |
7144 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7145 | eval 'as_fn_append () | |
7146 | { | |
7147 | eval $1+=\$2 | |
7148 | }' | |
7149 | else | |
7150 | as_fn_append () | |
7151 | { | |
7152 | eval $1=\$$1\$2 | |
7153 | } | |
7154 | fi # as_fn_append | |
7155 | ||
7156 | # as_fn_arith ARG... | |
7157 | # ------------------ | |
7158 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7159 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7160 | # must be portable across $(()) and expr. | |
7161 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7162 | eval 'as_fn_arith () | |
7163 | { | |
7164 | as_val=$(( $* )) | |
7165 | }' | |
7166 | else | |
7167 | as_fn_arith () | |
7168 | { | |
7169 | as_val=`expr "$@" || test $? -eq 1` | |
7170 | } | |
7171 | fi # as_fn_arith | |
7172 | ||
7173 | ||
7174 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7175 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
7176 | as_expr=expr |
7177 | else | |
7178 | as_expr=false | |
7179 | fi | |
c906108c | 7180 | |
81ecdfbb | 7181 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
7182 | as_basename=basename |
7183 | else | |
7184 | as_basename=false | |
7185 | fi | |
c906108c | 7186 | |
81ecdfbb RW |
7187 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7188 | as_dirname=dirname | |
7189 | else | |
7190 | as_dirname=false | |
7191 | fi | |
c906108c | 7192 | |
81ecdfbb | 7193 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
7194 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7195 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7196 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7197 | $as_echo X/"$0" | | |
7198 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7199 | s//\1/ | |
7200 | q | |
7201 | } | |
7202 | /^X\/\(\/\/\)$/{ | |
7203 | s//\1/ | |
7204 | q | |
7205 | } | |
7206 | /^X\/\(\/\).*/{ | |
7207 | s//\1/ | |
7208 | q | |
7209 | } | |
7210 | s/.*/./; q'` | |
b7026657 | 7211 | |
fdd6fa61 AG |
7212 | # Avoid depending upon Character Ranges. |
7213 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7214 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7215 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7216 | as_cr_digits='0123456789' | |
7217 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7218 | ||
81ecdfbb RW |
7219 | ECHO_C= ECHO_N= ECHO_T= |
7220 | case `echo -n x` in #((((( | |
7221 | -n*) | |
7222 | case `echo 'xy\c'` in | |
7223 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7224 | xy) ECHO_C='\c';; | |
7225 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7226 | ECHO_T=' ';; | |
7227 | esac;; | |
7228 | *) | |
7229 | ECHO_N='-n';; | |
b7026657 AC |
7230 | esac |
7231 | ||
81ecdfbb RW |
7232 | rm -f conf$$ conf$$.exe conf$$.file |
7233 | if test -d conf$$.dir; then | |
7234 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 7235 | else |
81ecdfbb RW |
7236 | rm -f conf$$.dir |
7237 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 7238 | fi |
81ecdfbb RW |
7239 | if (echo >conf$$.file) 2>/dev/null; then |
7240 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 7241 | as_ln_s='ln -s' |
81ecdfbb RW |
7242 | # ... but there are two gotchas: |
7243 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7244 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 7245 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 7246 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 7247 | as_ln_s='cp -pR' |
81ecdfbb RW |
7248 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7249 | as_ln_s=ln | |
7250 | else | |
d0ac1c44 | 7251 | as_ln_s='cp -pR' |
fdd6fa61 | 7252 | fi |
b7026657 | 7253 | else |
d0ac1c44 | 7254 | as_ln_s='cp -pR' |
b7026657 | 7255 | fi |
81ecdfbb RW |
7256 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7257 | rmdir conf$$.dir 2>/dev/null | |
7258 | ||
7259 | ||
7260 | # as_fn_mkdir_p | |
7261 | # ------------- | |
7262 | # Create "$as_dir" as a directory, including parents if necessary. | |
7263 | as_fn_mkdir_p () | |
7264 | { | |
b7026657 | 7265 | |
81ecdfbb RW |
7266 | case $as_dir in #( |
7267 | -*) as_dir=./$as_dir;; | |
7268 | esac | |
7269 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7270 | as_dirs= | |
7271 | while :; do | |
7272 | case $as_dir in #( | |
7273 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7274 | *) as_qdir=$as_dir;; | |
7275 | esac | |
7276 | as_dirs="'$as_qdir' $as_dirs" | |
7277 | as_dir=`$as_dirname -- "$as_dir" || | |
7278 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7279 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7280 | X"$as_dir" : 'X\(//\)$' \| \ | |
7281 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7282 | $as_echo X"$as_dir" | | |
7283 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7284 | s//\1/ | |
7285 | q | |
7286 | } | |
7287 | /^X\(\/\/\)[^/].*/{ | |
7288 | s//\1/ | |
7289 | q | |
7290 | } | |
7291 | /^X\(\/\/\)$/{ | |
7292 | s//\1/ | |
7293 | q | |
7294 | } | |
7295 | /^X\(\/\).*/{ | |
7296 | s//\1/ | |
7297 | q | |
7298 | } | |
7299 | s/.*/./; q'` | |
7300 | test -d "$as_dir" && break | |
7301 | done | |
7302 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 7303 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
7304 | |
7305 | ||
7306 | } # as_fn_mkdir_p | |
b7026657 | 7307 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 7308 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
7309 | else |
7310 | test -d ./-p && rmdir ./-p | |
7311 | as_mkdir_p=false | |
7312 | fi | |
7313 | ||
d0ac1c44 SM |
7314 | |
7315 | # as_fn_executable_p FILE | |
7316 | # ----------------------- | |
7317 | # Test if FILE is an executable regular file. | |
7318 | as_fn_executable_p () | |
7319 | { | |
7320 | test -f "$1" && test -x "$1" | |
7321 | } # as_fn_executable_p | |
7322 | as_test_x='test -x' | |
7323 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
7324 | |
7325 | # Sed expression to map a string onto a valid CPP name. | |
7326 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7327 | ||
7328 | # Sed expression to map a string onto a valid variable name. | |
7329 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7330 | ||
7331 | ||
b7026657 | 7332 | exec 6>&1 |
81ecdfbb RW |
7333 | ## ----------------------------------- ## |
7334 | ## Main body of $CONFIG_STATUS script. ## | |
7335 | ## ----------------------------------- ## | |
7336 | _ASEOF | |
7337 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
7338 | ||
7339 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7340 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 7341 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
7342 | # values after options handling. |
7343 | ac_log=" | |
6bddc3e8 | 7344 | This file was extended by sim $as_me 0, which was |
d0ac1c44 | 7345 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
7346 | |
7347 | CONFIG_FILES = $CONFIG_FILES | |
7348 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7349 | CONFIG_LINKS = $CONFIG_LINKS | |
7350 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7351 | $ $0 $@ | |
7352 | ||
81ecdfbb RW |
7353 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7354 | " | |
7355 | ||
b7026657 AC |
7356 | _ACEOF |
7357 | ||
81ecdfbb RW |
7358 | case $ac_config_files in *" |
7359 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7360 | esac | |
b7026657 | 7361 | |
b15c5d7a MF |
7362 | case $ac_config_headers in *" |
7363 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7364 | esac | |
fdd6fa61 | 7365 | |
fdd6fa61 | 7366 | |
81ecdfbb RW |
7367 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7368 | # Files that config.status was made for. | |
7369 | config_files="$ac_config_files" | |
b15c5d7a | 7370 | config_headers="$ac_config_headers" |
6bddc3e8 | 7371 | config_commands="$ac_config_commands" |
b7026657 | 7372 | |
81ecdfbb | 7373 | _ACEOF |
fdd6fa61 | 7374 | |
81ecdfbb | 7375 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 7376 | ac_cs_usage="\ |
81ecdfbb RW |
7377 | \`$as_me' instantiates files and other configuration actions |
7378 | from templates according to the current configuration. Unless the files | |
7379 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 7380 | |
81ecdfbb | 7381 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
7382 | |
7383 | -h, --help print this help, then exit | |
81ecdfbb | 7384 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 7385 | --config print configuration, then exit |
81ecdfbb RW |
7386 | -q, --quiet, --silent |
7387 | do not print progress messages | |
b7026657 AC |
7388 | -d, --debug don't remove temporary files |
7389 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
7390 | --file=FILE[:TEMPLATE] |
7391 | instantiate the configuration file FILE | |
b15c5d7a MF |
7392 | --header=FILE[:TEMPLATE] |
7393 | instantiate the configuration header FILE | |
b7026657 AC |
7394 | |
7395 | Configuration files: | |
7396 | $config_files | |
7397 | ||
b15c5d7a MF |
7398 | Configuration headers: |
7399 | $config_headers | |
7400 | ||
6bddc3e8 MF |
7401 | Configuration commands: |
7402 | $config_commands | |
7403 | ||
7404 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
7405 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>." | |
fdd6fa61 | 7406 | |
81ecdfbb RW |
7407 | _ACEOF |
7408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 7409 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 | 7410 | ac_cs_version="\\ |
6bddc3e8 | 7411 | sim config.status 0 |
d0ac1c44 SM |
7412 | configured by $0, generated by GNU Autoconf 2.69, |
7413 | with options \\"\$ac_cs_config\\" | |
b7026657 | 7414 | |
d0ac1c44 | 7415 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
7416 | This config.status script is free software; the Free Software Foundation |
7417 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
7418 | |
7419 | ac_pwd='$ac_pwd' | |
7420 | srcdir='$srcdir' | |
7421 | INSTALL='$INSTALL' | |
6bddc3e8 MF |
7422 | MKDIR_P='$MKDIR_P' |
7423 | AWK='$AWK' | |
81ecdfbb | 7424 | test -n "\$AWK" || AWK=awk |
b7026657 AC |
7425 | _ACEOF |
7426 | ||
81ecdfbb RW |
7427 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7428 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
7429 | ac_need_defaults=: |
7430 | while test $# != 0 | |
7431 | do | |
7432 | case $1 in | |
d0ac1c44 | 7433 | --*=?*) |
81ecdfbb RW |
7434 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7435 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
7436 | ac_shift=: |
7437 | ;; | |
d0ac1c44 SM |
7438 | --*=) |
7439 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7440 | ac_optarg= | |
7441 | ac_shift=: | |
7442 | ;; | |
81ecdfbb | 7443 | *) |
b7026657 AC |
7444 | ac_option=$1 |
7445 | ac_optarg=$2 | |
7446 | ac_shift=shift | |
7447 | ;; | |
b7026657 AC |
7448 | esac |
7449 | ||
7450 | case $ac_option in | |
7451 | # Handling of the options. | |
b7026657 AC |
7452 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7453 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
7454 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7455 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
7456 | --config | --confi | --conf | --con | --co | --c ) |
7457 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 7458 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
7459 | debug=: ;; |
7460 | --file | --fil | --fi | --f ) | |
7461 | $ac_shift | |
81ecdfbb RW |
7462 | case $ac_optarg in |
7463 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 7464 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
7465 | esac |
7466 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fdd6fa61 | 7467 | ac_need_defaults=false;; |
b15c5d7a MF |
7468 | --header | --heade | --head | --hea ) |
7469 | $ac_shift | |
7470 | case $ac_optarg in | |
7471 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7472 | esac | |
7473 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
7474 | ac_need_defaults=false;; | |
7475 | --he | --h) | |
7476 | # Conflict between --help and --header | |
7477 | as_fn_error $? "ambiguous option: \`$1' | |
7478 | Try \`$0 --help' for more information.";; | |
7479 | --help | --hel | -h ) | |
81ecdfbb | 7480 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
7481 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7482 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7483 | ac_cs_silent=: ;; | |
7484 | ||
7485 | # This is an error. | |
d0ac1c44 | 7486 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 7487 | Try \`$0 --help' for more information." ;; |
b7026657 | 7488 | |
81ecdfbb RW |
7489 | *) as_fn_append ac_config_targets " $1" |
7490 | ac_need_defaults=false ;; | |
b7026657 AC |
7491 | |
7492 | esac | |
7493 | shift | |
c906108c | 7494 | done |
b7026657 AC |
7495 | |
7496 | ac_configure_extra_args= | |
7497 | ||
7498 | if $ac_cs_silent; then | |
7499 | exec 6>/dev/null | |
7500 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 7501 | fi |
c906108c | 7502 | |
b7026657 | 7503 | _ACEOF |
81ecdfbb | 7504 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 7505 | if \$ac_cs_recheck; then |
d0ac1c44 | 7506 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
7507 | shift |
7508 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7509 | CONFIG_SHELL='$SHELL' | |
7510 | export CONFIG_SHELL | |
7511 | exec "\$@" | |
b7026657 | 7512 | fi |
c906108c | 7513 | |
b7026657 | 7514 | _ACEOF |
81ecdfbb RW |
7515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7516 | exec 5>>config.log | |
7517 | { | |
7518 | echo | |
7519 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7520 | ## Running $as_me. ## | |
7521 | _ASBOX | |
7522 | $as_echo "$ac_log" | |
7523 | } >&5 | |
b7026657 | 7524 | |
81ecdfbb RW |
7525 | _ACEOF |
7526 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bddc3e8 MF |
7527 | # |
7528 | # INIT-COMMANDS | |
7529 | # | |
7530 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
7531 | ||
81ecdfbb | 7532 | _ACEOF |
b7026657 | 7533 | |
81ecdfbb | 7534 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
df1756f4 | 7535 | |
81ecdfbb | 7536 | # Handling of arguments. |
b7026657 AC |
7537 | for ac_config_target in $ac_config_targets |
7538 | do | |
81ecdfbb | 7539 | case $ac_config_target in |
b15c5d7a | 7540 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
6bddc3e8 | 7541 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
81ecdfbb RW |
7542 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
7543 | ||
d0ac1c44 | 7544 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 7545 | esac |
b7026657 | 7546 | done |
c906108c | 7547 | |
81ecdfbb | 7548 | |
b7026657 AC |
7549 | # If the user did not use the arguments to specify the items to instantiate, |
7550 | # then the envvar interface is used. Set only those that are not. | |
7551 | # We use the long form for the default assignment because of an extremely | |
7552 | # bizarre bug on SunOS 4.1.3. | |
7553 | if $ac_need_defaults; then | |
7554 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b15c5d7a | 7555 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6bddc3e8 | 7556 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b7026657 | 7557 | fi |
c906108c | 7558 | |
b7026657 | 7559 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 7560 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 7561 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
7562 | # Hook for its removal unless debugging. |
7563 | # Note that there is a small window in which the directory will not be cleaned: | |
7564 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
7565 | $debug || |
7566 | { | |
d0ac1c44 | 7567 | tmp= ac_tmp= |
81ecdfbb | 7568 | trap 'exit_status=$? |
d0ac1c44 SM |
7569 | : "${ac_tmp:=$tmp}" |
7570 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
7571 | ' 0 |
7572 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 7573 | } |
b7026657 AC |
7574 | # Create a (secure) tmp directory for tmp files. |
7575 | ||
7576 | { | |
81ecdfbb | 7577 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 7578 | test -d "$tmp" |
b7026657 AC |
7579 | } || |
7580 | { | |
81ecdfbb RW |
7581 | tmp=./conf$$-$RANDOM |
7582 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
7583 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
7584 | ac_tmp=$tmp | |
81ecdfbb RW |
7585 | |
7586 | # Set up the scripts for CONFIG_FILES section. | |
7587 | # No need to generate them if there are no CONFIG_FILES. | |
7588 | # This happens for instance with `./config.status config.h'. | |
7589 | if test -n "$CONFIG_FILES"; then | |
7590 | ||
7591 | ||
7592 | ac_cr=`echo X | tr X '\015'` | |
7593 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7594 | # But we know of no other shell where ac_cr would be empty at this | |
7595 | # point, so we can use a bashism as a fallback. | |
7596 | if test "x$ac_cr" = x; then | |
7597 | eval ac_cr=\$\'\\r\' | |
7598 | fi | |
7599 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
7600 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 7601 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
7602 | else |
7603 | ac_cs_awk_cr=$ac_cr | |
7604 | fi | |
7605 | ||
d0ac1c44 | 7606 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
7607 | _ACEOF |
7608 | ||
7609 | ||
7610 | { | |
7611 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7612 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7613 | echo "_ACEOF" | |
7614 | } >conf$$subs.sh || | |
d0ac1c44 SM |
7615 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7616 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
7617 | ac_delim='%!_!# ' |
7618 | for ac_last_try in false false false false false :; do | |
7619 | . ./conf$$subs.sh || | |
d0ac1c44 | 7620 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
7621 | |
7622 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7623 | if test $ac_delim_n = $ac_delim_num; then | |
7624 | break | |
7625 | elif $ac_last_try; then | |
d0ac1c44 | 7626 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
7627 | else |
7628 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7629 | fi | |
7630 | done | |
7631 | rm -f conf$$subs.sh | |
7632 | ||
7633 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 7634 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
7635 | _ACEOF |
7636 | sed -n ' | |
7637 | h | |
7638 | s/^/S["/; s/!.*/"]=/ | |
7639 | p | |
7640 | g | |
7641 | s/^[^!]*!// | |
7642 | :repl | |
7643 | t repl | |
7644 | s/'"$ac_delim"'$// | |
7645 | t delim | |
7646 | :nl | |
7647 | h | |
d0ac1c44 | 7648 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
7649 | t more1 |
7650 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7651 | p | |
7652 | n | |
7653 | b repl | |
7654 | :more1 | |
7655 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7656 | p | |
7657 | g | |
7658 | s/.\{148\}// | |
7659 | t nl | |
7660 | :delim | |
7661 | h | |
d0ac1c44 | 7662 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
7663 | t more2 |
7664 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7665 | p | |
7666 | b | |
7667 | :more2 | |
7668 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7669 | p | |
7670 | g | |
7671 | s/.\{148\}// | |
7672 | t delim | |
7673 | ' <conf$$subs.awk | sed ' | |
7674 | /^[^""]/{ | |
7675 | N | |
7676 | s/\n// | |
7677 | } | |
7678 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
7679 | rm -f conf$$subs.awk | |
7680 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7681 | _ACAWK | |
d0ac1c44 | 7682 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
7683 | for (key in S) S_is_set[key] = 1 |
7684 | FS = "\a" | |
7685 | ||
7686 | } | |
b7026657 | 7687 | { |
81ecdfbb RW |
7688 | line = $ 0 |
7689 | nfields = split(line, field, "@") | |
7690 | substed = 0 | |
7691 | len = length(field[1]) | |
7692 | for (i = 2; i < nfields; i++) { | |
7693 | key = field[i] | |
7694 | keylen = length(key) | |
7695 | if (S_is_set[key]) { | |
7696 | value = S[key] | |
7697 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7698 | len += length(value) + length(field[++i]) | |
7699 | substed = 1 | |
7700 | } else | |
7701 | len += 1 + keylen | |
7702 | } | |
7703 | ||
7704 | print line | |
b7026657 AC |
7705 | } |
7706 | ||
81ecdfbb RW |
7707 | _ACAWK |
7708 | _ACEOF | |
7709 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7710 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7711 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7712 | else | |
7713 | cat | |
d0ac1c44 SM |
7714 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
7715 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
fdd6fa61 AG |
7716 | _ACEOF |
7717 | ||
d0ac1c44 SM |
7718 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
7719 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
7720 | # trailing colons and then remove the whole line if VPATH becomes empty |
7721 | # (actually we leave an empty line to preserve line numbers). | |
7722 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
7723 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
7724 | h | |
7725 | s/// | |
7726 | s/^/:/ | |
7727 | s/[ ]*$/:/ | |
7728 | s/:\$(srcdir):/:/g | |
7729 | s/:\${srcdir}:/:/g | |
7730 | s/:@srcdir@:/:/g | |
7731 | s/^:*// | |
81ecdfbb | 7732 | s/:*$// |
d0ac1c44 SM |
7733 | x |
7734 | s/\(=[ ]*\).*/\1/ | |
7735 | G | |
7736 | s/\n// | |
81ecdfbb RW |
7737 | s/^[^=]*=[ ]*$// |
7738 | }' | |
7739 | fi | |
fdd6fa61 | 7740 | |
81ecdfbb RW |
7741 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7742 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 7743 | |
b15c5d7a MF |
7744 | # Set up the scripts for CONFIG_HEADERS section. |
7745 | # No need to generate them if there are no CONFIG_HEADERS. | |
7746 | # This happens for instance with `./config.status Makefile'. | |
7747 | if test -n "$CONFIG_HEADERS"; then | |
7748 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
7749 | BEGIN { | |
7750 | _ACEOF | |
7751 | ||
7752 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
7753 | # here-document in config.status, that substitutes the proper values into | |
7754 | # config.h.in to produce config.h. | |
7755 | ||
7756 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7757 | # handling of long lines. | |
7758 | ac_delim='%!_!# ' | |
7759 | for ac_last_try in false false :; do | |
7760 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
7761 | if test -z "$ac_tt"; then | |
7762 | break | |
7763 | elif $ac_last_try; then | |
7764 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
7765 | else | |
7766 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7767 | fi | |
7768 | done | |
7769 | ||
7770 | # For the awk script, D is an array of macro values keyed by name, | |
7771 | # likewise P contains macro parameters if any. Preserve backslash | |
7772 | # newline sequences. | |
7773 | ||
7774 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7775 | sed -n ' | |
7776 | s/.\{148\}/&'"$ac_delim"'/g | |
7777 | t rset | |
7778 | :rset | |
7779 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7780 | t def | |
7781 | d | |
7782 | :def | |
7783 | s/\\$// | |
7784 | t bsnl | |
7785 | s/["\\]/\\&/g | |
7786 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7787 | D["\1"]=" \3"/p | |
7788 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7789 | d | |
7790 | :bsnl | |
7791 | s/["\\]/\\&/g | |
7792 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7793 | D["\1"]=" \3\\\\\\n"\\/p | |
7794 | t cont | |
7795 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7796 | t cont | |
7797 | d | |
7798 | :cont | |
7799 | n | |
7800 | s/.\{148\}/&'"$ac_delim"'/g | |
7801 | t clear | |
7802 | :clear | |
7803 | s/\\$// | |
7804 | t bsnlc | |
7805 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7806 | d | |
7807 | :bsnlc | |
7808 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7809 | b cont | |
7810 | ' <confdefs.h | sed ' | |
7811 | s/'"$ac_delim"'/"\\\ | |
7812 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7813 | ||
7814 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7815 | for (key in D) D_is_set[key] = 1 | |
7816 | FS = "\a" | |
7817 | } | |
7818 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7819 | line = \$ 0 | |
7820 | split(line, arg, " ") | |
7821 | if (arg[1] == "#") { | |
7822 | defundef = arg[2] | |
7823 | mac1 = arg[3] | |
7824 | } else { | |
7825 | defundef = substr(arg[1], 2) | |
7826 | mac1 = arg[2] | |
7827 | } | |
7828 | split(mac1, mac2, "(") #) | |
7829 | macro = mac2[1] | |
7830 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7831 | if (D_is_set[macro]) { | |
7832 | # Preserve the white space surrounding the "#". | |
7833 | print prefix "define", macro P[macro] D[macro] | |
7834 | next | |
7835 | } else { | |
7836 | # Replace #undef with comments. This is necessary, for example, | |
7837 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7838 | # on some systems where configure will not decide to define it. | |
7839 | if (defundef == "undef") { | |
7840 | print "/*", prefix defundef, macro, "*/" | |
7841 | next | |
7842 | } | |
7843 | } | |
7844 | } | |
7845 | { print } | |
7846 | _ACAWK | |
7847 | _ACEOF | |
7848 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7849 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
7850 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 7851 | |
b15c5d7a MF |
7852 | |
7853 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
81ecdfbb RW |
7854 | shift |
7855 | for ac_tag | |
7856 | do | |
7857 | case $ac_tag in | |
7858 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7859 | esac | |
7860 | case $ac_mode$ac_tag in | |
7861 | :[FHL]*:*);; | |
d0ac1c44 | 7862 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
7863 | :[FH]-) ac_tag=-:-;; |
7864 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
7865 | esac | |
7866 | ac_save_IFS=$IFS | |
7867 | IFS=: | |
7868 | set x $ac_tag | |
7869 | IFS=$ac_save_IFS | |
7870 | shift | |
7871 | ac_file=$1 | |
7872 | shift | |
b7026657 | 7873 | |
81ecdfbb RW |
7874 | case $ac_mode in |
7875 | :L) ac_source=$1;; | |
7876 | :[FH]) | |
7877 | ac_file_inputs= | |
7878 | for ac_f | |
7879 | do | |
7880 | case $ac_f in | |
d0ac1c44 | 7881 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
7882 | *) # Look for the file first in the build tree, then in the source tree |
7883 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7884 | # because $ac_f cannot contain `:'. | |
7885 | test -f "$ac_f" || | |
7886 | case $ac_f in | |
7887 | [\\/$]*) false;; | |
7888 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7889 | esac || | |
d0ac1c44 | 7890 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
7891 | esac |
7892 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
7893 | as_fn_append ac_file_inputs " '$ac_f'" | |
7894 | done | |
7895 | ||
7896 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7897 | # use $as_me), people would be surprised to read: | |
7898 | # /* config.h. Generated by config.status. */ | |
7899 | configure_input='Generated from '` | |
7900 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7901 | `' by configure.' | |
7902 | if test x"$ac_file" != x-; then | |
7903 | configure_input="$ac_file. $configure_input" | |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
7905 | $as_echo "$as_me: creating $ac_file" >&6;} | |
fdd6fa61 | 7906 | fi |
81ecdfbb RW |
7907 | # Neutralize special characters interpreted by sed in replacement strings. |
7908 | case $configure_input in #( | |
7909 | *\&* | *\|* | *\\* ) | |
7910 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7911 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7912 | *) ac_sed_conf_input=$configure_input;; | |
7913 | esac | |
df1756f4 | 7914 | |
81ecdfbb | 7915 | case $ac_tag in |
d0ac1c44 SM |
7916 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
7917 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
7918 | esac |
7919 | ;; | |
df1756f4 TG |
7920 | esac |
7921 | ||
81ecdfbb | 7922 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
7923 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7924 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7925 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
7926 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7927 | $as_echo X"$ac_file" | | |
7928 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7929 | s//\1/ | |
7930 | q | |
7931 | } | |
7932 | /^X\(\/\/\)[^/].*/{ | |
7933 | s//\1/ | |
7934 | q | |
7935 | } | |
7936 | /^X\(\/\/\)$/{ | |
7937 | s//\1/ | |
7938 | q | |
7939 | } | |
7940 | /^X\(\/\).*/{ | |
7941 | s//\1/ | |
7942 | q | |
7943 | } | |
7944 | s/.*/./; q'` | |
7945 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
7946 | ac_builddir=. |
7947 | ||
81ecdfbb RW |
7948 | case "$ac_dir" in |
7949 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7950 | *) | |
7951 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
7952 | # A ".." for each directory in $ac_dir_suffix. | |
7953 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
7954 | case $ac_top_builddir_sub in | |
7955 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7956 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7957 | esac ;; | |
7958 | esac | |
7959 | ac_abs_top_builddir=$ac_pwd | |
7960 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7961 | # for backward compatibility: | |
7962 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
7963 | |
7964 | case $srcdir in | |
81ecdfbb | 7965 | .) # We are building in place. |
b7026657 | 7966 | ac_srcdir=. |
81ecdfbb RW |
7967 | ac_top_srcdir=$ac_top_builddir_sub |
7968 | ac_abs_top_srcdir=$ac_pwd ;; | |
7969 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 7970 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
7971 | ac_top_srcdir=$srcdir |
7972 | ac_abs_top_srcdir=$srcdir ;; | |
7973 | *) # Relative name. | |
7974 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7975 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7976 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 7977 | esac |
81ecdfbb | 7978 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 7979 | |
b7026657 | 7980 | |
81ecdfbb RW |
7981 | case $ac_mode in |
7982 | :F) | |
7983 | # | |
7984 | # CONFIG_FILE | |
7985 | # | |
c906108c | 7986 | |
b7026657 AC |
7987 | case $INSTALL in |
7988 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 7989 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 7990 | esac |
6bddc3e8 MF |
7991 | ac_MKDIR_P=$MKDIR_P |
7992 | case $MKDIR_P in | |
7993 | [\\/$]* | ?:[\\/]* ) ;; | |
7994 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
7995 | esac | |
81ecdfbb | 7996 | _ACEOF |
c906108c | 7997 | |
81ecdfbb RW |
7998 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7999 | # If the template does not know about datarootdir, expand it. | |
8000 | # FIXME: This hack should be removed a few years after 2.60. | |
8001 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8002 | ac_sed_dataroot=' | |
8003 | /datarootdir/ { | |
8004 | p | |
8005 | q | |
8006 | } | |
8007 | /@datadir@/p | |
8008 | /@docdir@/p | |
8009 | /@infodir@/p | |
8010 | /@localedir@/p | |
8011 | /@mandir@/p' | |
8012 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8013 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8014 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8016 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8017 | _ACEOF | |
8018 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8019 | ac_datarootdir_hack=' | |
8020 | s&@datadir@&$datadir&g | |
8021 | s&@docdir@&$docdir&g | |
8022 | s&@infodir@&$infodir&g | |
8023 | s&@localedir@&$localedir&g | |
8024 | s&@mandir@&$mandir&g | |
8025 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8026 | esac | |
b7026657 | 8027 | _ACEOF |
81ecdfbb RW |
8028 | |
8029 | # Neutralize VPATH when `$srcdir' = `.'. | |
8030 | # Shell code in configure.ac might set extrasub. | |
8031 | # FIXME: do we really want to maintain this feature? | |
8032 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8033 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
8034 | $extrasub |
8035 | _ACEOF | |
81ecdfbb | 8036 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
8037 | :t |
8038 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
8039 | s|@configure_input@|$ac_sed_conf_input|;t t |
8040 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8041 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8042 | s&@srcdir@&$ac_srcdir&;t t | |
8043 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8044 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8045 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8046 | s&@builddir@&$ac_builddir&;t t | |
8047 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8048 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8049 | s&@INSTALL@&$ac_INSTALL&;t t | |
6bddc3e8 | 8050 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
8051 | $ac_datarootdir_hack |
8052 | " | |
d0ac1c44 SM |
8053 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8054 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
8055 | |
8056 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
8057 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8058 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8059 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 8061 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 8062 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 8063 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 8064 | |
d0ac1c44 | 8065 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 8066 | case $ac_file in |
d0ac1c44 SM |
8067 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8068 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 8069 | esac \ |
d0ac1c44 | 8070 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 8071 | ;; |
b15c5d7a MF |
8072 | :H) |
8073 | # | |
8074 | # CONFIG_HEADER | |
8075 | # | |
8076 | if test x"$ac_file" != x-; then | |
8077 | { | |
8078 | $as_echo "/* $configure_input */" \ | |
8079 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
8080 | } >"$ac_tmp/config.h" \ | |
8081 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8082 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8084 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
8085 | else | |
8086 | rm -f "$ac_file" | |
8087 | mv "$ac_tmp/config.h" "$ac_file" \ | |
8088 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8089 | fi | |
8090 | else | |
8091 | $as_echo "/* $configure_input */" \ | |
8092 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
8093 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8094 | fi | |
8095 | # Compute "$ac_file"'s index in $config_headers. | |
8096 | _am_arg="$ac_file" | |
8097 | _am_stamp_count=1 | |
8098 | for _am_header in $config_headers :; do | |
8099 | case $_am_header in | |
8100 | $_am_arg | $_am_arg:* ) | |
8101 | break ;; | |
8102 | * ) | |
8103 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8104 | esac | |
8105 | done | |
8106 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
8107 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8108 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8109 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8110 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8111 | $as_echo X"$_am_arg" | | |
8112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8113 | s//\1/ | |
8114 | q | |
8115 | } | |
8116 | /^X\(\/\/\)[^/].*/{ | |
8117 | s//\1/ | |
8118 | q | |
8119 | } | |
8120 | /^X\(\/\/\)$/{ | |
8121 | s//\1/ | |
8122 | q | |
8123 | } | |
8124 | /^X\(\/\).*/{ | |
8125 | s//\1/ | |
8126 | q | |
8127 | } | |
8128 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8129 | ;; | |
df1756f4 | 8130 | |
6bddc3e8 MF |
8131 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8132 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8133 | ;; | |
8134 | esac | |
8135 | ||
c906108c | 8136 | |
6bddc3e8 MF |
8137 | case $ac_file$ac_mode in |
8138 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8139 | # Older Autoconf quotes --file arguments for eval, but not when files | |
8140 | # are listed without --file. Let's play safe and only enable the eval | |
8141 | # if we detect the quoting. | |
8142 | case $CONFIG_FILES in | |
8143 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8144 | *) set x $CONFIG_FILES ;; | |
81ecdfbb | 8145 | esac |
6bddc3e8 MF |
8146 | shift |
8147 | for mf | |
8148 | do | |
8149 | # Strip MF so we end up with the name of the file. | |
8150 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8151 | # Check whether this is an Automake generated Makefile or not. | |
8152 | # We used to match only the files named 'Makefile.in', but | |
8153 | # some people rename them; so instead we look at the file content. | |
8154 | # Grep'ing the first line is not enough: some people post-process | |
8155 | # each Makefile.in and add a new line on top of each file to say so. | |
8156 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8157 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8158 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8159 | dirpart=`$as_dirname -- "$mf" || | |
8160 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8161 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8162 | X"$mf" : 'X\(//\)$' \| \ | |
8163 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
8164 | $as_echo X"$mf" | | |
8165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8166 | s//\1/ | |
8167 | q | |
8168 | } | |
8169 | /^X\(\/\/\)[^/].*/{ | |
8170 | s//\1/ | |
8171 | q | |
8172 | } | |
8173 | /^X\(\/\/\)$/{ | |
8174 | s//\1/ | |
8175 | q | |
8176 | } | |
8177 | /^X\(\/\).*/{ | |
8178 | s//\1/ | |
8179 | q | |
8180 | } | |
8181 | s/.*/./; q'` | |
8182 | else | |
8183 | continue | |
8184 | fi | |
8185 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8186 | # from the Makefile without running 'make'. | |
8187 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8188 | test -z "$DEPDIR" && continue | |
8189 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8190 | test -z "$am__include" && continue | |
8191 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8192 | # Find all dependency output files, they are included files with | |
8193 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8194 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8195 | # expansion. | |
8196 | for file in `sed -n " | |
8197 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8198 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
8199 | # Make sure the directory exists. | |
8200 | test -f "$dirpart/$file" && continue | |
8201 | fdir=`$as_dirname -- "$file" || | |
8202 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8203 | X"$file" : 'X\(//\)[^/]' \| \ | |
8204 | X"$file" : 'X\(//\)$' \| \ | |
8205 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
8206 | $as_echo X"$file" | | |
8207 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8208 | s//\1/ | |
8209 | q | |
8210 | } | |
8211 | /^X\(\/\/\)[^/].*/{ | |
8212 | s//\1/ | |
8213 | q | |
8214 | } | |
8215 | /^X\(\/\/\)$/{ | |
8216 | s//\1/ | |
8217 | q | |
8218 | } | |
8219 | /^X\(\/\).*/{ | |
8220 | s//\1/ | |
8221 | q | |
8222 | } | |
8223 | s/.*/./; q'` | |
8224 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8225 | # echo "creating $dirpart/$file" | |
8226 | echo '# dummy' > "$dirpart/$file" | |
8227 | done | |
8228 | done | |
8229 | } | |
8230 | ;; | |
81ecdfbb | 8231 | |
6bddc3e8 | 8232 | esac |
81ecdfbb RW |
8233 | done # for ac_tag |
8234 | ||
8235 | ||
8236 | as_fn_exit 0 | |
b7026657 | 8237 | _ACEOF |
b7026657 AC |
8238 | ac_clean_files=$ac_clean_files_save |
8239 | ||
81ecdfbb | 8240 | test $ac_write_fail = 0 || |
d0ac1c44 | 8241 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 8242 | |
b7026657 AC |
8243 | |
8244 | # configure is writing to config.log, and then calls config.status. | |
8245 | # config.status does its own redirection, appending to config.log. | |
8246 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8247 | # by configure, so config.status won't be able to write to it; its | |
8248 | # output is simply discarded. So we exec the FD to /dev/null, | |
8249 | # effectively closing config.log, so it can be properly (re)opened and | |
8250 | # appended to by config.status. When coming back to configure, we | |
8251 | # need to make the FD available again. | |
8252 | if test "$no_create" != yes; then | |
8253 | ac_cs_success=: | |
8254 | ac_config_status_args= | |
8255 | test "$silent" = yes && | |
8256 | ac_config_status_args="$ac_config_status_args --quiet" | |
8257 | exec 5>/dev/null | |
8258 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8259 | exec 5>>config.log | |
8260 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8261 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 8262 | $ac_cs_success || as_fn_exit 1 |
b7026657 | 8263 | fi |
c906108c | 8264 | |
b7026657 | 8265 | # |
81ecdfbb | 8266 | # CONFIG_SUBDIRS section. |
b7026657 | 8267 | # |
c906108c SS |
8268 | if test "$no_recursion" != yes; then |
8269 | ||
81ecdfbb RW |
8270 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
8271 | # so they do not pile up. | |
c906108c SS |
8272 | ac_sub_configure_args= |
8273 | ac_prev= | |
d6416cdc RW |
8274 | eval "set x $ac_configure_args" |
8275 | shift | |
8276 | for ac_arg | |
8277 | do | |
c906108c SS |
8278 | if test -n "$ac_prev"; then |
8279 | ac_prev= | |
8280 | continue | |
8281 | fi | |
b7026657 | 8282 | case $ac_arg in |
c906108c SS |
8283 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
8284 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
8285 | ac_prev=cache_file ;; | |
8286 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
b7026657 AC |
8287 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
8288 | | --c=*) | |
8289 | ;; | |
8290 | --config-cache | -C) | |
c906108c SS |
8291 | ;; |
8292 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
8293 | ac_prev=srcdir ;; | |
8294 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
8295 | ;; | |
b7026657 AC |
8296 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
8297 | ac_prev=prefix ;; | |
8298 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
8299 | ;; | |
81ecdfbb RW |
8300 | --disable-option-checking) |
8301 | ;; | |
d6416cdc RW |
8302 | *) |
8303 | case $ac_arg in | |
81ecdfbb | 8304 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 8305 | esac |
81ecdfbb | 8306 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
c906108c SS |
8307 | esac |
8308 | done | |
8309 | ||
b7026657 AC |
8310 | # Always prepend --prefix to ensure using the same prefix |
8311 | # in subdir configurations. | |
d6416cdc RW |
8312 | ac_arg="--prefix=$prefix" |
8313 | case $ac_arg in | |
81ecdfbb | 8314 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 8315 | esac |
81ecdfbb RW |
8316 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
8317 | ||
8318 | # Pass --silent | |
8319 | if test "$silent" = yes; then | |
8320 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
8321 | fi | |
8322 | ||
8323 | # Always prepend --disable-option-checking to silence warnings, since | |
8324 | # different subdirs can have different --enable and --with options. | |
8325 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
b7026657 AC |
8326 | |
8327 | ac_popdir=`pwd` | |
8328 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
8329 | |
8330 | # Do not complain, so a configure script can configure whichever | |
8331 | # parts of a large source tree are present. | |
d6416cdc | 8332 | test -d "$srcdir/$ac_dir" || continue |
fdd6fa61 | 8333 | |
81ecdfbb RW |
8334 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
8335 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
8336 | $as_echo "$ac_msg" >&6 | |
8337 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
8338 | ac_builddir=. |
8339 | ||
81ecdfbb RW |
8340 | case "$ac_dir" in |
8341 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8342 | *) | |
8343 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8344 | # A ".." for each directory in $ac_dir_suffix. | |
8345 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8346 | case $ac_top_builddir_sub in | |
8347 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8348 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8349 | esac ;; | |
8350 | esac | |
8351 | ac_abs_top_builddir=$ac_pwd | |
8352 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8353 | # for backward compatibility: | |
8354 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 8355 | |
b7026657 | 8356 | case $srcdir in |
81ecdfbb | 8357 | .) # We are building in place. |
b7026657 | 8358 | ac_srcdir=. |
81ecdfbb RW |
8359 | ac_top_srcdir=$ac_top_builddir_sub |
8360 | ac_abs_top_srcdir=$ac_pwd ;; | |
8361 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 8362 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
8363 | ac_top_srcdir=$srcdir |
8364 | ac_abs_top_srcdir=$srcdir ;; | |
8365 | *) # Relative name. | |
8366 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8367 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8368 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 8369 | esac |
81ecdfbb | 8370 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c906108c | 8371 | |
c906108c | 8372 | |
d6416cdc | 8373 | cd "$ac_dir" |
c906108c SS |
8374 | |
8375 | # Check for guested configure; otherwise get Cygnus style configure. | |
d6416cdc RW |
8376 | if test -f "$ac_srcdir/configure.gnu"; then |
8377 | ac_sub_configure=$ac_srcdir/configure.gnu | |
8378 | elif test -f "$ac_srcdir/configure"; then | |
8379 | ac_sub_configure=$ac_srcdir/configure | |
8380 | elif test -f "$ac_srcdir/configure.in"; then | |
8381 | # This should be Cygnus configure. | |
8382 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 8383 | else |
81ecdfbb RW |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
8385 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
8386 | ac_sub_configure= |
8387 | fi | |
8388 | ||
8389 | # The recursion is here. | |
8390 | if test -n "$ac_sub_configure"; then | |
c906108c | 8391 | # Make the cache file name correct relative to the subdirectory. |
b7026657 AC |
8392 | case $cache_file in |
8393 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
81ecdfbb RW |
8394 | *) # Relative name. |
8395 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
c906108c | 8396 | esac |
c906108c | 8397 | |
81ecdfbb RW |
8398 | { $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 |
8399 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 8400 | # The eval makes quoting arguments work. |
d6416cdc RW |
8401 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
8402 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
d0ac1c44 | 8403 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
c906108c SS |
8404 | fi |
8405 | ||
d6416cdc | 8406 | cd "$ac_popdir" |
c906108c SS |
8407 | done |
8408 | fi | |
81ecdfbb RW |
8409 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
8410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8411 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
8412 | fi | |
c906108c | 8413 |