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