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