]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
b7026657 | 2 | # Guess values for system-dependent variables and create Makefiles. |
63a9e923 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. | |
63a9e923 | 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 | ||
63a9e923 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 | |
63a9e923 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 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
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 : | |
63a9e923 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" | |
63a9e923 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
63a9e923 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 | ||
c906108c | 402 | |
63a9e923 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 | |
63a9e923 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
63a9e923 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 |
63a9e923 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
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 | |
63a9e923 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. | |
63a9e923 | 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 || |
63a9e923 | 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 | |
63a9e923 | 532 | as_ln_s='cp -pR' |
b7026657 | 533 | fi |
b7026657 | 534 | else |
63a9e923 | 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 | |
63a9e923 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 | ||
63a9e923 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
c906108c | 559 | |
b7026657 | 560 | # Name of the host. |
63a9e923 | 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 | sim_fpu | |
624 | sim_fpu_cflags | |
625 | sim_targ_vals | |
626 | sim_callback | |
627 | sim_devzero | |
628 | sim_termio | |
81ecdfbb RW |
629 | sim_model_issue |
630 | sim_model | |
631 | sim_monitor | |
632 | sim_reserved | |
81ecdfbb | 633 | sim_timebase |
81ecdfbb RW |
634 | sim_hostbitsize |
635 | sim_igen_smp | |
ce39bd38 | 636 | sim_smp |
9bbf6f91 | 637 | sim_hostendian |
ce39bd38 | 638 | sim_xor_endian |
81ecdfbb RW |
639 | sim_pk_obj |
640 | sim_pk_src | |
641 | sim_hw_obj | |
642 | sim_hw_src | |
643 | sim_icache | |
644 | sim_filter | |
645 | sim_jump | |
646 | sim_decode_mechanism | |
647 | sim_dup | |
648 | sim_switch | |
649 | sim_opcode | |
650 | sim_config | |
651 | sim_line_nr | |
652 | sim_warnings | |
81ecdfbb RW |
653 | RANLIB |
654 | AR | |
655 | HDEFINES | |
656 | CFLAGS_FOR_BUILD | |
657 | CC_FOR_BUILD | |
658 | LIBOBJS | |
aadc9410 MF |
659 | zlibinc |
660 | zlibdir | |
81ecdfbb RW |
661 | target_os |
662 | target_vendor | |
663 | target_cpu | |
664 | target | |
665 | host_os | |
666 | host_vendor | |
667 | host_cpu | |
668 | host | |
669 | build_os | |
670 | build_vendor | |
671 | build_cpu | |
672 | build | |
673 | REPORT_BUGS_TEXI | |
674 | REPORT_BUGS_TO | |
675 | PKGVERSION | |
676 | EGREP | |
677 | GREP | |
678 | CPP | |
679 | CATOBJEXT | |
680 | GENCAT | |
681 | INSTOBJEXT | |
682 | DATADIRNAME | |
683 | CATALOGS | |
684 | POSUB | |
685 | GMSGFMT | |
686 | XGETTEXT | |
687 | INCINTL | |
688 | LIBINTL_DEP | |
689 | LIBINTL | |
690 | USE_NLS | |
691 | OBJEXT | |
692 | EXEEXT | |
693 | ac_ct_CC | |
694 | CPPFLAGS | |
695 | LDFLAGS | |
696 | CFLAGS | |
697 | CC | |
698 | INSTALL_DATA | |
699 | INSTALL_SCRIPT | |
700 | INSTALL_PROGRAM | |
6ffe910a MF |
701 | WERROR_CFLAGS |
702 | WARN_CFLAGS | |
6ffe910a | 703 | sim_reserved_bits |
6ffe910a MF |
704 | sim_inline |
705 | sim_hw | |
706 | sim_hw_objs | |
707 | sim_hw_cflags | |
708 | sim_default_model | |
709 | sim_scache | |
710 | sim_float | |
6ffe910a MF |
711 | sim_endian |
712 | sim_bitsize | |
6ffe910a | 713 | sim_alignment |
81ecdfbb RW |
714 | target_alias |
715 | host_alias | |
716 | build_alias | |
717 | LIBS | |
718 | ECHO_T | |
719 | ECHO_N | |
720 | ECHO_C | |
721 | DEFS | |
722 | mandir | |
723 | localedir | |
724 | libdir | |
725 | psdir | |
726 | pdfdir | |
727 | dvidir | |
728 | htmldir | |
729 | infodir | |
730 | docdir | |
731 | oldincludedir | |
732 | includedir | |
733 | localstatedir | |
734 | sharedstatedir | |
735 | sysconfdir | |
736 | datadir | |
737 | datarootdir | |
738 | libexecdir | |
739 | sbindir | |
740 | bindir | |
741 | program_transform_name | |
742 | prefix | |
743 | exec_prefix | |
744 | PACKAGE_URL | |
745 | PACKAGE_BUGREPORT | |
746 | PACKAGE_STRING | |
747 | PACKAGE_VERSION | |
748 | PACKAGE_TARNAME | |
749 | PACKAGE_NAME | |
750 | PATH_SEPARATOR | |
6ffe910a | 751 | SHELL' |
b7026657 | 752 | ac_subst_files='' |
81ecdfbb RW |
753 | ac_user_opts=' |
754 | enable_option_checking | |
755 | enable_sim_alignment | |
756 | enable_sim_assert | |
757 | enable_sim_bitsize | |
81ecdfbb RW |
758 | enable_sim_config |
759 | enable_sim_decode_mechanism | |
760 | enable_sim_default_model | |
761 | enable_sim_duplicate | |
762 | enable_sim_endian | |
763 | enable_sim_env | |
764 | enable_sim_filter | |
765 | enable_sim_float | |
766 | enable_sim_hardware | |
767 | enable_sim_hostbitsize | |
768 | enable_sim_hostendian | |
769 | enable_sim_icache | |
770 | enable_sim_inline | |
771 | enable_sim_jump | |
772 | enable_sim_line_nr | |
773 | enable_sim_model | |
774 | enable_sim_model_issue | |
775 | enable_sim_monitor | |
776 | enable_sim_opcode | |
777 | enable_sim_packages | |
81ecdfbb RW |
778 | enable_sim_reserved_bits |
779 | enable_sim_smp | |
81ecdfbb RW |
780 | enable_sim_stdio |
781 | enable_sim_switch | |
782 | enable_sim_timebase | |
783 | enable_sim_trace | |
784 | enable_sim_warnings | |
785 | enable_sim_xor_endian | |
786 | with_pkgversion | |
787 | with_bugurl | |
aadc9410 | 788 | with_system_zlib |
2974be62 | 789 | enable_plugins |
81ecdfbb RW |
790 | ' |
791 | ac_precious_vars='build_alias | |
792 | host_alias | |
793 | target_alias | |
794 | CC | |
795 | CFLAGS | |
796 | LDFLAGS | |
797 | LIBS | |
798 | CPPFLAGS | |
799 | CPP' | |
800 | ||
c906108c SS |
801 | |
802 | # Initialize some variables set by options. | |
b7026657 AC |
803 | ac_init_help= |
804 | ac_init_version=false | |
81ecdfbb RW |
805 | ac_unrecognized_opts= |
806 | ac_unrecognized_sep= | |
c906108c SS |
807 | # The variables have the same names as the options, with |
808 | # dashes changed to underlines. | |
b7026657 | 809 | cache_file=/dev/null |
c906108c | 810 | exec_prefix=NONE |
c906108c | 811 | no_create= |
c906108c SS |
812 | no_recursion= |
813 | prefix=NONE | |
814 | program_prefix=NONE | |
815 | program_suffix=NONE | |
816 | program_transform_name=s,x,x, | |
817 | silent= | |
818 | site= | |
819 | srcdir= | |
c906108c SS |
820 | verbose= |
821 | x_includes=NONE | |
822 | x_libraries=NONE | |
b7026657 AC |
823 | |
824 | # Installation directory options. | |
825 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
826 | # and all the variables that are supposed to be based on exec_prefix | |
827 | # by default will actually change. | |
828 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 829 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
830 | bindir='${exec_prefix}/bin' |
831 | sbindir='${exec_prefix}/sbin' | |
832 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
833 | datarootdir='${prefix}/share' |
834 | datadir='${datarootdir}' | |
c906108c SS |
835 | sysconfdir='${prefix}/etc' |
836 | sharedstatedir='${prefix}/com' | |
837 | localstatedir='${prefix}/var' | |
c906108c SS |
838 | includedir='${prefix}/include' |
839 | oldincludedir='/usr/include' | |
81ecdfbb RW |
840 | docdir='${datarootdir}/doc/${PACKAGE}' |
841 | infodir='${datarootdir}/info' | |
842 | htmldir='${docdir}' | |
843 | dvidir='${docdir}' | |
844 | pdfdir='${docdir}' | |
845 | psdir='${docdir}' | |
846 | libdir='${exec_prefix}/lib' | |
847 | localedir='${datarootdir}/locale' | |
848 | mandir='${datarootdir}/man' | |
c906108c | 849 | |
c906108c | 850 | ac_prev= |
81ecdfbb | 851 | ac_dashdash= |
c906108c SS |
852 | for ac_option |
853 | do | |
c906108c SS |
854 | # If the previous option needs an argument, assign it. |
855 | if test -n "$ac_prev"; then | |
81ecdfbb | 856 | eval $ac_prev=\$ac_option |
c906108c SS |
857 | ac_prev= |
858 | continue | |
859 | fi | |
860 | ||
81ecdfbb | 861 | case $ac_option in |
63a9e923 SM |
862 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
863 | *=) ac_optarg= ;; | |
864 | *) ac_optarg=yes ;; | |
81ecdfbb | 865 | esac |
c906108c SS |
866 | |
867 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
868 | ||
81ecdfbb RW |
869 | case $ac_dashdash$ac_option in |
870 | --) | |
871 | ac_dashdash=yes ;; | |
c906108c SS |
872 | |
873 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
874 | ac_prev=bindir ;; | |
875 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 876 | bindir=$ac_optarg ;; |
c906108c SS |
877 | |
878 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 879 | ac_prev=build_alias ;; |
c906108c | 880 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 881 | build_alias=$ac_optarg ;; |
c906108c SS |
882 | |
883 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
884 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
885 | ac_prev=cache_file ;; | |
886 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
887 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
888 | cache_file=$ac_optarg ;; |
889 | ||
890 | --config-cache | -C) | |
891 | cache_file=config.cache ;; | |
c906108c | 892 | |
81ecdfbb | 893 | -datadir | --datadir | --datadi | --datad) |
c906108c | 894 | ac_prev=datadir ;; |
81ecdfbb | 895 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 896 | datadir=$ac_optarg ;; |
c906108c | 897 | |
81ecdfbb RW |
898 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
899 | | --dataroo | --dataro | --datar) | |
900 | ac_prev=datarootdir ;; | |
901 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
902 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
903 | datarootdir=$ac_optarg ;; | |
904 | ||
c906108c | 905 | -disable-* | --disable-*) |
81ecdfbb | 906 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 907 | # Reject names that are not valid shell variable names. |
81ecdfbb | 908 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 909 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
910 | ac_useropt_orig=$ac_useropt |
911 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
912 | case $ac_user_opts in | |
913 | *" | |
914 | "enable_$ac_useropt" | |
915 | "*) ;; | |
916 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
917 | ac_unrecognized_sep=', ';; | |
918 | esac | |
919 | eval enable_$ac_useropt=no ;; | |
920 | ||
921 | -docdir | --docdir | --docdi | --doc | --do) | |
922 | ac_prev=docdir ;; | |
923 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
924 | docdir=$ac_optarg ;; | |
925 | ||
926 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
927 | ac_prev=dvidir ;; | |
928 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
929 | dvidir=$ac_optarg ;; | |
c906108c SS |
930 | |
931 | -enable-* | --enable-*) | |
81ecdfbb | 932 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 933 | # Reject names that are not valid shell variable names. |
81ecdfbb | 934 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 935 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
936 | ac_useropt_orig=$ac_useropt |
937 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
938 | case $ac_user_opts in | |
939 | *" | |
940 | "enable_$ac_useropt" | |
941 | "*) ;; | |
942 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
943 | ac_unrecognized_sep=', ';; | |
c906108c | 944 | esac |
81ecdfbb | 945 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
946 | |
947 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
948 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
949 | | --exec | --exe | --ex) | |
950 | ac_prev=exec_prefix ;; | |
951 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
952 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
953 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 954 | exec_prefix=$ac_optarg ;; |
c906108c SS |
955 | |
956 | -gas | --gas | --ga | --g) | |
957 | # Obsolete; use --with-gas. | |
958 | with_gas=yes ;; | |
959 | ||
b7026657 AC |
960 | -help | --help | --hel | --he | -h) |
961 | ac_init_help=long ;; | |
962 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
963 | ac_init_help=recursive ;; | |
964 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
965 | ac_init_help=short ;; | |
c906108c SS |
966 | |
967 | -host | --host | --hos | --ho) | |
b7026657 | 968 | ac_prev=host_alias ;; |
c906108c | 969 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 970 | host_alias=$ac_optarg ;; |
c906108c | 971 | |
81ecdfbb RW |
972 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
973 | ac_prev=htmldir ;; | |
974 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
975 | | --ht=*) | |
976 | htmldir=$ac_optarg ;; | |
977 | ||
c906108c SS |
978 | -includedir | --includedir | --includedi | --included | --include \ |
979 | | --includ | --inclu | --incl | --inc) | |
980 | ac_prev=includedir ;; | |
981 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
982 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 983 | includedir=$ac_optarg ;; |
c906108c SS |
984 | |
985 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
986 | ac_prev=infodir ;; | |
987 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 988 | infodir=$ac_optarg ;; |
c906108c SS |
989 | |
990 | -libdir | --libdir | --libdi | --libd) | |
991 | ac_prev=libdir ;; | |
992 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 993 | libdir=$ac_optarg ;; |
c906108c SS |
994 | |
995 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
996 | | --libexe | --libex | --libe) | |
997 | ac_prev=libexecdir ;; | |
998 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
999 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 1000 | libexecdir=$ac_optarg ;; |
c906108c | 1001 | |
81ecdfbb RW |
1002 | -localedir | --localedir | --localedi | --localed | --locale) |
1003 | ac_prev=localedir ;; | |
1004 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1005 | localedir=$ac_optarg ;; | |
1006 | ||
c906108c | 1007 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1008 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1009 | ac_prev=localstatedir ;; |
1010 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1011 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1012 | localstatedir=$ac_optarg ;; |
c906108c SS |
1013 | |
1014 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1015 | ac_prev=mandir ;; | |
1016 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1017 | mandir=$ac_optarg ;; |
c906108c SS |
1018 | |
1019 | -nfp | --nfp | --nf) | |
1020 | # Obsolete; use --without-fp. | |
1021 | with_fp=no ;; | |
1022 | ||
1023 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1024 | | --no-cr | --no-c | -n) |
c906108c SS |
1025 | no_create=yes ;; |
1026 | ||
1027 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1028 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1029 | no_recursion=yes ;; | |
1030 | ||
1031 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1032 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1033 | | --oldin | --oldi | --old | --ol | --o) | |
1034 | ac_prev=oldincludedir ;; | |
1035 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1036 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1037 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1038 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1039 | |
1040 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1041 | ac_prev=prefix ;; | |
1042 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1043 | prefix=$ac_optarg ;; |
c906108c SS |
1044 | |
1045 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1046 | | --program-pre | --program-pr | --program-p) | |
1047 | ac_prev=program_prefix ;; | |
1048 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1049 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1050 | program_prefix=$ac_optarg ;; |
c906108c SS |
1051 | |
1052 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1053 | | --program-suf | --program-su | --program-s) | |
1054 | ac_prev=program_suffix ;; | |
1055 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1056 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1057 | program_suffix=$ac_optarg ;; |
c906108c SS |
1058 | |
1059 | -program-transform-name | --program-transform-name \ | |
1060 | | --program-transform-nam | --program-transform-na \ | |
1061 | | --program-transform-n | --program-transform- \ | |
1062 | | --program-transform | --program-transfor \ | |
1063 | | --program-transfo | --program-transf \ | |
1064 | | --program-trans | --program-tran \ | |
1065 | | --progr-tra | --program-tr | --program-t) | |
1066 | ac_prev=program_transform_name ;; | |
1067 | -program-transform-name=* | --program-transform-name=* \ | |
1068 | | --program-transform-nam=* | --program-transform-na=* \ | |
1069 | | --program-transform-n=* | --program-transform-=* \ | |
1070 | | --program-transform=* | --program-transfor=* \ | |
1071 | | --program-transfo=* | --program-transf=* \ | |
1072 | | --program-trans=* | --program-tran=* \ | |
1073 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1074 | program_transform_name=$ac_optarg ;; |
c906108c | 1075 | |
81ecdfbb RW |
1076 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1077 | ac_prev=pdfdir ;; | |
1078 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1079 | pdfdir=$ac_optarg ;; | |
1080 | ||
1081 | -psdir | --psdir | --psdi | --psd | --ps) | |
1082 | ac_prev=psdir ;; | |
1083 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1084 | psdir=$ac_optarg ;; | |
1085 | ||
c906108c SS |
1086 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1087 | | -silent | --silent | --silen | --sile | --sil) | |
1088 | silent=yes ;; | |
1089 | ||
1090 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1091 | ac_prev=sbindir ;; | |
1092 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1093 | | --sbi=* | --sb=*) | |
b7026657 | 1094 | sbindir=$ac_optarg ;; |
c906108c SS |
1095 | |
1096 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1097 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1098 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1099 | | --sha | --sh) | |
1100 | ac_prev=sharedstatedir ;; | |
1101 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1102 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1103 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1104 | | --sha=* | --sh=*) | |
b7026657 | 1105 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1106 | |
1107 | -site | --site | --sit) | |
1108 | ac_prev=site ;; | |
1109 | -site=* | --site=* | --sit=*) | |
b7026657 | 1110 | site=$ac_optarg ;; |
eb2d80b4 | 1111 | |
c906108c SS |
1112 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1113 | ac_prev=srcdir ;; | |
1114 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1115 | srcdir=$ac_optarg ;; |
c906108c SS |
1116 | |
1117 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1118 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1119 | ac_prev=sysconfdir ;; | |
1120 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1121 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1122 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1123 | |
1124 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1125 | ac_prev=target_alias ;; |
c906108c | 1126 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1127 | target_alias=$ac_optarg ;; |
c906108c SS |
1128 | |
1129 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1130 | verbose=yes ;; | |
1131 | ||
b7026657 AC |
1132 | -version | --version | --versio | --versi | --vers | -V) |
1133 | ac_init_version=: ;; | |
c906108c SS |
1134 | |
1135 | -with-* | --with-*) | |
81ecdfbb | 1136 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1137 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1138 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 1139 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1140 | ac_useropt_orig=$ac_useropt |
1141 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1142 | case $ac_user_opts in | |
1143 | *" | |
1144 | "with_$ac_useropt" | |
1145 | "*) ;; | |
1146 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1147 | ac_unrecognized_sep=', ';; | |
c906108c | 1148 | esac |
81ecdfbb | 1149 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1150 | |
1151 | -without-* | --without-*) | |
81ecdfbb | 1152 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1153 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1154 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
63a9e923 | 1155 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1156 | ac_useropt_orig=$ac_useropt |
1157 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1158 | case $ac_user_opts in | |
1159 | *" | |
1160 | "with_$ac_useropt" | |
1161 | "*) ;; | |
1162 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1163 | ac_unrecognized_sep=', ';; | |
1164 | esac | |
1165 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1166 | |
1167 | --x) | |
1168 | # Obsolete; use --with-x. | |
1169 | with_x=yes ;; | |
1170 | ||
1171 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1172 | | --x-incl | --x-inc | --x-in | --x-i) | |
1173 | ac_prev=x_includes ;; | |
1174 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1175 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1176 | x_includes=$ac_optarg ;; |
c906108c SS |
1177 | |
1178 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1179 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1180 | ac_prev=x_libraries ;; | |
1181 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1182 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1183 | x_libraries=$ac_optarg ;; |
c906108c | 1184 | |
63a9e923 SM |
1185 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1186 | Try \`$0 --help' for more information" | |
c906108c SS |
1187 | ;; |
1188 | ||
b7026657 AC |
1189 | *=*) |
1190 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1191 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1192 | case $ac_envvar in #( |
1193 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
63a9e923 | 1194 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1195 | esac |
1196 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1197 | export $ac_envvar ;; |
1198 | ||
c906108c | 1199 | *) |
b7026657 | 1200 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1201 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1202 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1203 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
63a9e923 | 1204 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1205 | ;; |
1206 | ||
1207 | esac | |
1208 | done | |
1209 | ||
1210 | if test -n "$ac_prev"; then | |
b7026657 | 1211 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
63a9e923 | 1212 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1213 | fi |
c906108c | 1214 | |
81ecdfbb RW |
1215 | if test -n "$ac_unrecognized_opts"; then |
1216 | case $enable_option_checking in | |
1217 | no) ;; | |
63a9e923 | 1218 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1219 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
b7026657 | 1220 | esac |
81ecdfbb | 1221 | fi |
c906108c | 1222 | |
81ecdfbb RW |
1223 | # Check all directory arguments for consistency. |
1224 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1225 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1226 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1227 | libdir localedir mandir | |
c906108c | 1228 | do |
81ecdfbb RW |
1229 | eval ac_val=\$$ac_var |
1230 | # Remove trailing slashes. | |
1231 | case $ac_val in | |
1232 | */ ) | |
1233 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1234 | eval $ac_var=\$ac_val;; | |
1235 | esac | |
1236 | # Be sure to have absolute directory names. | |
b7026657 | 1237 | case $ac_val in |
81ecdfbb RW |
1238 | [\\/$]* | ?:[\\/]* ) continue;; |
1239 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1240 | esac |
63a9e923 | 1241 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1242 | done |
1243 | ||
b7026657 AC |
1244 | # There might be people who depend on the old broken behavior: `$host' |
1245 | # used to hold the argument of --host etc. | |
1246 | # FIXME: To remove some day. | |
1247 | build=$build_alias | |
1248 | host=$host_alias | |
1249 | target=$target_alias | |
1250 | ||
1251 | # FIXME: To remove some day. | |
1252 | if test "x$host_alias" != x; then | |
1253 | if test "x$build_alias" = x; then | |
1254 | cross_compiling=maybe | |
b7026657 AC |
1255 | elif test "x$build_alias" != "x$host_alias"; then |
1256 | cross_compiling=yes | |
1257 | fi | |
1258 | fi | |
c906108c | 1259 | |
b7026657 AC |
1260 | ac_tool_prefix= |
1261 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1262 | ||
1263 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1264 | |
c906108c | 1265 | |
81ecdfbb RW |
1266 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1267 | ac_ls_di=`ls -di .` && | |
1268 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
63a9e923 | 1269 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1270 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
63a9e923 | 1271 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1272 | |
1273 | ||
c906108c SS |
1274 | # Find the source files, if location was not specified. |
1275 | if test -z "$srcdir"; then | |
1276 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1277 | # Try the directory containing this script, then the parent directory. |
1278 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1279 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1280 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1281 | X"$as_myself" : 'X\(//\)$' \| \ | |
1282 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1283 | $as_echo X"$as_myself" | | |
1284 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1285 | s//\1/ | |
1286 | q | |
1287 | } | |
1288 | /^X\(\/\/\)[^/].*/{ | |
1289 | s//\1/ | |
1290 | q | |
1291 | } | |
1292 | /^X\(\/\/\)$/{ | |
1293 | s//\1/ | |
1294 | q | |
1295 | } | |
1296 | /^X\(\/\).*/{ | |
1297 | s//\1/ | |
1298 | q | |
1299 | } | |
1300 | s/.*/./; q'` | |
c906108c | 1301 | srcdir=$ac_confdir |
81ecdfbb | 1302 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1303 | srcdir=.. |
1304 | fi | |
1305 | else | |
1306 | ac_srcdir_defaulted=no | |
1307 | fi | |
81ecdfbb RW |
1308 | if test ! -r "$srcdir/$ac_unique_file"; then |
1309 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
63a9e923 | 1310 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1311 | fi |
1312 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1313 | ac_abs_confdir=`( | |
63a9e923 | 1314 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1315 | pwd)` |
1316 | # When building in place, set srcdir=. | |
1317 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1318 | srcdir=. | |
1319 | fi | |
1320 | # Remove unnecessary trailing slashes from srcdir. | |
1321 | # Double slashes in file names in object file debugging info | |
1322 | # mess up M-x gdb in Emacs. | |
1323 | case $srcdir in | |
1324 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1325 | esac | |
1326 | for ac_var in $ac_precious_vars; do | |
1327 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1328 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1329 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1330 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1331 | done | |
c906108c | 1332 | |
b7026657 AC |
1333 | # |
1334 | # Report the --help message. | |
1335 | # | |
1336 | if test "$ac_init_help" = "long"; then | |
1337 | # Omit some internal or obsolete options to make the list less imposing. | |
1338 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1339 | cat <<_ACEOF | |
1340 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 1341 | |
b7026657 | 1342 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 1343 | |
b7026657 AC |
1344 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1345 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 1346 | |
b7026657 | 1347 | Defaults for the options are specified in brackets. |
c906108c | 1348 | |
b7026657 AC |
1349 | Configuration: |
1350 | -h, --help display this help and exit | |
1351 | --help=short display options specific to this package | |
1352 | --help=recursive display the short help of all the included packages | |
1353 | -V, --version display version information and exit | |
63a9e923 | 1354 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1355 | --cache-file=FILE cache test results in FILE [disabled] |
1356 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1357 | -n, --no-create do not create output files | |
1358 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1359 | ||
b7026657 AC |
1360 | Installation directories: |
1361 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1362 | [$ac_default_prefix] |
b7026657 | 1363 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1364 | [PREFIX] |
c906108c | 1365 | |
b7026657 AC |
1366 | By default, \`make install' will install all the files in |
1367 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1368 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1369 | for instance \`--prefix=\$HOME'. | |
c906108c | 1370 | |
b7026657 | 1371 | For better control, use the options below. |
c906108c | 1372 | |
b7026657 | 1373 | Fine tuning of the installation directories: |
81ecdfbb RW |
1374 | --bindir=DIR user executables [EPREFIX/bin] |
1375 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1376 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1377 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1378 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1379 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1380 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1381 | --includedir=DIR C header files [PREFIX/include] | |
1382 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1383 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1384 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1385 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1386 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1387 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1388 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1389 | --htmldir=DIR html documentation [DOCDIR] | |
1390 | --dvidir=DIR dvi documentation [DOCDIR] | |
1391 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1392 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1393 | _ACEOF |
1394 | ||
1395 | cat <<\_ACEOF | |
1396 | ||
1397 | Program names: | |
1398 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1399 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1400 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1401 | ||
1402 | System types: | |
1403 | --build=BUILD configure for building on BUILD [guessed] | |
1404 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1405 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1406 | _ACEOF | |
c906108c | 1407 | fi |
c906108c | 1408 | |
b7026657 | 1409 | if test -n "$ac_init_help"; then |
c906108c | 1410 | |
b7026657 | 1411 | cat <<\_ACEOF |
cd0fc7c3 | 1412 | |
b7026657 | 1413 | Optional Features: |
81ecdfbb | 1414 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1415 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1416 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b7026657 AC |
1417 | --enable-sim-alignment=align Specify strict or nonstrict alignment. |
1418 | --enable-sim-assert Specify whether to perform random assertions. | |
1419 | --enable-sim-bitsize=n Specify target bitsize (32 or 64). | |
b7026657 AC |
1420 | --enable-sim-config=file Override default config file |
1421 | --enable-sim-decode-mechanism=which Specify the instruction decode mechanism. | |
1422 | --enable-sim-default-model=which Specify default PowerPC to model. | |
1423 | --enable-sim-duplicate Expand (duplicate) semantic functions. | |
1424 | --enable-sim-endian=endian Specify target byte endian orientation. | |
1425 | --enable-sim-env=env Specify target environment (operating, virtual, user). | |
1426 | --enable-sim-filter=rule Specify filter rules. | |
1427 | --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point. | |
1428 | --enable-sim-hardware=list Specify the hardware to be included in the build. | |
1429 | --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64). | |
1430 | --enable-sim-hostendian=end Specify host byte endian orientation. | |
1431 | --enable-sim-icache=size Specify instruction-decode cache size and type. | |
1432 | --enable-sim-inline=inlines Specify which functions should be inlined. | |
1433 | --enable-sim-jump Jump between semantic code (instead of call/return). | |
1434 | --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code | |
1435 | --enable-sim-model=which Specify PowerPC to model. | |
1436 | --enable-sim-model-issue Specify whether to simulate model specific actions | |
1437 | --enable-sim-monitor=mon Specify whether to enable monitoring events. | |
1438 | --enable-sim-opcode=which Override default opcode lookup. | |
1439 | --enable-sim-packages=list Specify the packages to be included in the build. | |
b7026657 AC |
1440 | --enable-sim-reserved-bits Specify whether to check reserved bits in instruction. |
1441 | --enable-sim-smp=n Specify number of processors to configure for. | |
b7026657 AC |
1442 | --enable-sim-stdio Specify whether to use stdio for console input/output. |
1443 | --enable-sim-switch Use a switch instead of a table for instruction call. | |
1444 | --enable-sim-timebase Specify whether the PPC timebase is supported. | |
1445 | --enable-sim-trace Specify whether tracing is supported. | |
1446 | --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o | |
1447 | --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8). | |
2974be62 | 1448 | --enable-plugins Enable support for plugins |
b7026657 | 1449 | |
6efef468 JM |
1450 | Optional Packages: |
1451 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1452 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1453 | --with-pkgversion=PKG Use PKG in the version string in place of "GDB" | |
1454 | --with-bugurl=URL Direct users to URL to report a bug | |
aadc9410 | 1455 | --with-system-zlib use installed libz |
6efef468 | 1456 | |
b7026657 AC |
1457 | Some influential environment variables: |
1458 | CC C compiler command | |
1459 | CFLAGS C compiler flags | |
1460 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1461 | nonstandard directory <lib dir> | |
81ecdfbb | 1462 | LIBS libraries to pass to the linker, e.g. -l<library> |
63a9e923 | 1463 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1464 | you have headers in a nonstandard directory <include dir> |
b7026657 AC |
1465 | CPP C preprocessor |
1466 | ||
1467 | Use these variables to override the choices made by `configure' or to help | |
1468 | it to find libraries and programs with nonstandard names/locations. | |
1469 | ||
81ecdfbb | 1470 | Report bugs to the package provider. |
b7026657 | 1471 | _ACEOF |
81ecdfbb | 1472 | ac_status=$? |
b7026657 AC |
1473 | fi |
1474 | ||
1475 | if test "$ac_init_help" = "recursive"; then | |
1476 | # If there are subdirs, report their specific --help. | |
b7026657 | 1477 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1478 | test -d "$ac_dir" || |
1479 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1480 | continue | |
b7026657 AC |
1481 | ac_builddir=. |
1482 | ||
81ecdfbb RW |
1483 | case "$ac_dir" in |
1484 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1485 | *) | |
1486 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1487 | # A ".." for each directory in $ac_dir_suffix. | |
1488 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1489 | case $ac_top_builddir_sub in | |
1490 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1491 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1492 | esac ;; | |
1493 | esac | |
1494 | ac_abs_top_builddir=$ac_pwd | |
1495 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1496 | # for backward compatibility: | |
1497 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
1498 | |
1499 | case $srcdir in | |
81ecdfbb | 1500 | .) # We are building in place. |
b7026657 | 1501 | ac_srcdir=. |
81ecdfbb RW |
1502 | ac_top_srcdir=$ac_top_builddir_sub |
1503 | ac_abs_top_srcdir=$ac_pwd ;; | |
1504 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 1505 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1506 | ac_top_srcdir=$srcdir |
1507 | ac_abs_top_srcdir=$srcdir ;; | |
1508 | *) # Relative name. | |
1509 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1510 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1511 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 1512 | esac |
81ecdfbb RW |
1513 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1514 | ||
1515 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1516 | # Check for guested configure. | |
1517 | if test -f "$ac_srcdir/configure.gnu"; then | |
1518 | echo && | |
1519 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1520 | elif test -f "$ac_srcdir/configure"; then | |
1521 | echo && | |
1522 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b7026657 | 1523 | else |
81ecdfbb RW |
1524 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1525 | fi || ac_status=$? | |
1526 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
1527 | done |
1528 | fi | |
1529 | ||
81ecdfbb | 1530 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
1531 | if $ac_init_version; then |
1532 | cat <<\_ACEOF | |
81ecdfbb | 1533 | configure |
63a9e923 | 1534 | generated by GNU Autoconf 2.69 |
b7026657 | 1535 | |
63a9e923 | 1536 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
1537 | This configure script is free software; the Free Software Foundation |
1538 | gives unlimited permission to copy, distribute and modify it. | |
1539 | _ACEOF | |
81ecdfbb | 1540 | exit |
b7026657 | 1541 | fi |
b7026657 | 1542 | |
81ecdfbb RW |
1543 | ## ------------------------ ## |
1544 | ## Autoconf initialization. ## | |
1545 | ## ------------------------ ## | |
b7026657 | 1546 | |
81ecdfbb RW |
1547 | # ac_fn_c_try_compile LINENO |
1548 | # -------------------------- | |
1549 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1550 | ac_fn_c_try_compile () | |
b7026657 | 1551 | { |
81ecdfbb RW |
1552 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1553 | rm -f conftest.$ac_objext | |
1554 | if { { ac_try="$ac_compile" | |
1555 | case "(($ac_try" in | |
1556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1557 | *) ac_try_echo=$ac_try;; | |
1558 | esac | |
1559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1560 | $as_echo "$ac_try_echo"; } >&5 | |
1561 | (eval "$ac_compile") 2>conftest.err | |
1562 | ac_status=$? | |
1563 | if test -s conftest.err; then | |
1564 | grep -v '^ *+' conftest.err >conftest.er1 | |
1565 | cat conftest.er1 >&5 | |
1566 | mv -f conftest.er1 conftest.err | |
1567 | fi | |
1568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1569 | test $ac_status = 0; } && { | |
1570 | test -z "$ac_c_werror_flag" || | |
1571 | test ! -s conftest.err | |
1572 | } && test -s conftest.$ac_objext; then : | |
1573 | ac_retval=0 | |
1574 | else | |
1575 | $as_echo "$as_me: failed program was:" >&5 | |
1576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1577 | |
81ecdfbb RW |
1578 | ac_retval=1 |
1579 | fi | |
63a9e923 SM |
1580 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1581 | as_fn_set_status $ac_retval | |
b7026657 | 1582 | |
81ecdfbb | 1583 | } # ac_fn_c_try_compile |
b7026657 | 1584 | |
81ecdfbb RW |
1585 | # ac_fn_c_try_run LINENO |
1586 | # ---------------------- | |
1587 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1588 | # that executables *can* be run. | |
1589 | ac_fn_c_try_run () | |
1590 | { | |
1591 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1592 | if { { ac_try="$ac_link" | |
1593 | case "(($ac_try" in | |
1594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1595 | *) ac_try_echo=$ac_try;; | |
1596 | esac | |
1597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1598 | $as_echo "$ac_try_echo"; } >&5 | |
1599 | (eval "$ac_link") 2>&5 | |
1600 | ac_status=$? | |
1601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1602 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1603 | { { case "(($ac_try" in | |
1604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1605 | *) ac_try_echo=$ac_try;; | |
1606 | esac | |
1607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1608 | $as_echo "$ac_try_echo"; } >&5 | |
1609 | (eval "$ac_try") 2>&5 | |
1610 | ac_status=$? | |
1611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1612 | test $ac_status = 0; }; }; then : | |
1613 | ac_retval=0 | |
1614 | else | |
1615 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1616 | $as_echo "$as_me: failed program was:" >&5 | |
1617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1618 | |
81ecdfbb RW |
1619 | ac_retval=$ac_status |
1620 | fi | |
1621 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
63a9e923 SM |
1622 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1623 | as_fn_set_status $ac_retval | |
b7026657 | 1624 | |
81ecdfbb | 1625 | } # ac_fn_c_try_run |
b7026657 | 1626 | |
81ecdfbb RW |
1627 | # ac_fn_c_try_cpp LINENO |
1628 | # ---------------------- | |
1629 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1630 | ac_fn_c_try_cpp () | |
1631 | { | |
1632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1633 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1634 | case "(($ac_try" in | |
1635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1636 | *) ac_try_echo=$ac_try;; | |
1637 | esac | |
1638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1639 | $as_echo "$ac_try_echo"; } >&5 | |
1640 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1641 | ac_status=$? | |
1642 | if test -s conftest.err; then | |
1643 | grep -v '^ *+' conftest.err >conftest.er1 | |
1644 | cat conftest.er1 >&5 | |
1645 | mv -f conftest.er1 conftest.err | |
1646 | fi | |
1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
63a9e923 | 1648 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1649 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1650 | test ! -s conftest.err | |
1651 | }; then : | |
1652 | ac_retval=0 | |
1653 | else | |
1654 | $as_echo "$as_me: failed program was:" >&5 | |
1655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1656 | ||
1657 | ac_retval=1 | |
1658 | fi | |
63a9e923 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_cpp | |
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; } | |
63a9e923 | 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; } | |
63a9e923 | 1691 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1692 | |
1693 | } # ac_fn_c_check_header_compile | |
1694 | ||
1695 | # ac_fn_c_try_link LINENO | |
1696 | # ----------------------- | |
1697 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1698 | ac_fn_c_try_link () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1702 | if { { ac_try="$ac_link" | |
1703 | case "(($ac_try" in | |
1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1705 | *) ac_try_echo=$ac_try;; | |
1706 | esac | |
1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1708 | $as_echo "$ac_try_echo"; } >&5 | |
1709 | (eval "$ac_link") 2>conftest.err | |
1710 | ac_status=$? | |
1711 | if test -s conftest.err; then | |
1712 | grep -v '^ *+' conftest.err >conftest.er1 | |
1713 | cat conftest.er1 >&5 | |
1714 | mv -f conftest.er1 conftest.err | |
1715 | fi | |
1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1717 | test $ac_status = 0; } && { | |
1718 | test -z "$ac_c_werror_flag" || | |
1719 | test ! -s conftest.err | |
1720 | } && test -s conftest$ac_exeext && { | |
1721 | test "$cross_compiling" = yes || | |
63a9e923 | 1722 | test -x conftest$ac_exeext |
81ecdfbb RW |
1723 | }; then : |
1724 | ac_retval=0 | |
1725 | else | |
1726 | $as_echo "$as_me: failed program was:" >&5 | |
1727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1728 | ||
1729 | ac_retval=1 | |
1730 | fi | |
1731 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1732 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1733 | # interfere with the next link command; also delete a directory that is | |
1734 | # left behind by Apple's compiler. We do this before executing the actions. | |
1735 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
63a9e923 SM |
1736 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1737 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1738 | |
1739 | } # ac_fn_c_try_link | |
1740 | ||
81ecdfbb RW |
1741 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
1742 | # ---------------------------------------------------- | |
1743 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
1744 | # INCLUDES, setting cache variable VAR accordingly. | |
1745 | ac_fn_c_check_member () | |
1746 | { | |
1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
1749 | $as_echo_n "checking for $2.$3... " >&6; } | |
63a9e923 | 1750 | if eval \${$4+:} false; then : |
81ecdfbb RW |
1751 | $as_echo_n "(cached) " >&6 |
1752 | else | |
1753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1754 | /* end confdefs.h. */ | |
1755 | $5 | |
1756 | int | |
1757 | main () | |
1758 | { | |
1759 | static $2 ac_aggr; | |
1760 | if (ac_aggr.$3) | |
1761 | return 0; | |
1762 | ; | |
1763 | return 0; | |
1764 | } | |
1765 | _ACEOF | |
1766 | if ac_fn_c_try_compile "$LINENO"; then : | |
1767 | eval "$4=yes" | |
1768 | else | |
1769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1770 | /* end confdefs.h. */ | |
1771 | $5 | |
1772 | int | |
1773 | main () | |
1774 | { | |
1775 | static $2 ac_aggr; | |
1776 | if (sizeof ac_aggr.$3) | |
1777 | return 0; | |
1778 | ; | |
1779 | return 0; | |
1780 | } | |
1781 | _ACEOF | |
1782 | if ac_fn_c_try_compile "$LINENO"; then : | |
1783 | eval "$4=yes" | |
1784 | else | |
1785 | eval "$4=no" | |
1786 | fi | |
1787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1788 | fi | |
1789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1790 | fi | |
1791 | eval ac_res=\$$4 | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1793 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 1794 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1795 | |
1796 | } # ac_fn_c_check_member | |
1797 | ||
63a9e923 SM |
1798 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1799 | # --------------------------------------------- | |
1800 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1801 | # accordingly. | |
81ecdfbb RW |
1802 | ac_fn_c_check_decl () |
1803 | { | |
1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6ffe910a MF |
1805 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1806 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1808 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
63a9e923 | 1809 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1810 | $as_echo_n "(cached) " >&6 |
1811 | else | |
1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1813 | /* end confdefs.h. */ | |
1814 | $4 | |
1815 | int | |
1816 | main () | |
1817 | { | |
6ffe910a MF |
1818 | #ifndef $as_decl_name |
1819 | #ifdef __cplusplus | |
1820 | (void) $as_decl_use; | |
1821 | #else | |
1822 | (void) $as_decl_name; | |
1823 | #endif | |
81ecdfbb RW |
1824 | #endif |
1825 | ||
1826 | ; | |
1827 | return 0; | |
1828 | } | |
1829 | _ACEOF | |
1830 | if ac_fn_c_try_compile "$LINENO"; then : | |
1831 | eval "$3=yes" | |
1832 | else | |
1833 | eval "$3=no" | |
1834 | fi | |
1835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1836 | fi | |
1837 | eval ac_res=\$$3 | |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1839 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 1840 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1841 | |
1842 | } # ac_fn_c_check_decl | |
1843 | ||
1844 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1845 | # ------------------------------------------- | |
1846 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1847 | # variable VAR accordingly. | |
1848 | ac_fn_c_check_type () | |
1849 | { | |
1850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1852 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1853 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1854 | $as_echo_n "(cached) " >&6 |
1855 | else | |
1856 | eval "$3=no" | |
1857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1858 | /* end confdefs.h. */ | |
1859 | $4 | |
1860 | int | |
1861 | main () | |
1862 | { | |
1863 | if (sizeof ($2)) | |
1864 | return 0; | |
1865 | ; | |
1866 | return 0; | |
1867 | } | |
1868 | _ACEOF | |
1869 | if ac_fn_c_try_compile "$LINENO"; then : | |
1870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1871 | /* end confdefs.h. */ | |
1872 | $4 | |
1873 | int | |
1874 | main () | |
1875 | { | |
1876 | if (sizeof (($2))) | |
1877 | return 0; | |
1878 | ; | |
1879 | return 0; | |
1880 | } | |
1881 | _ACEOF | |
1882 | if ac_fn_c_try_compile "$LINENO"; then : | |
1883 | ||
1884 | else | |
1885 | eval "$3=yes" | |
1886 | fi | |
1887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1888 | fi | |
1889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1890 | fi | |
1891 | eval ac_res=\$$3 | |
1892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1893 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 1894 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1895 | |
1896 | } # ac_fn_c_check_type | |
1897 | ||
1898 | # ac_fn_c_check_func LINENO FUNC VAR | |
1899 | # ---------------------------------- | |
1900 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1901 | ac_fn_c_check_func () | |
1902 | { | |
1903 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1905 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1906 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1907 | $as_echo_n "(cached) " >&6 |
1908 | else | |
1909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1910 | /* end confdefs.h. */ | |
1911 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1912 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1913 | #define $2 innocuous_$2 | |
1914 | ||
1915 | /* System header to define __stub macros and hopefully few prototypes, | |
1916 | which can conflict with char $2 (); below. | |
1917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1918 | <limits.h> exists even on freestanding compilers. */ | |
1919 | ||
1920 | #ifdef __STDC__ | |
1921 | # include <limits.h> | |
1922 | #else | |
1923 | # include <assert.h> | |
1924 | #endif | |
1925 | ||
1926 | #undef $2 | |
1927 | ||
1928 | /* Override any GCC internal prototype to avoid an error. | |
1929 | Use char because int might match the return type of a GCC | |
1930 | builtin and then its argument prototype would still apply. */ | |
1931 | #ifdef __cplusplus | |
1932 | extern "C" | |
1933 | #endif | |
1934 | char $2 (); | |
1935 | /* The GNU C library defines this for functions which it implements | |
1936 | to always fail with ENOSYS. Some functions are actually named | |
1937 | something starting with __ and the normal name is an alias. */ | |
1938 | #if defined __stub_$2 || defined __stub___$2 | |
1939 | choke me | |
1940 | #endif | |
1941 | ||
1942 | int | |
1943 | main () | |
1944 | { | |
1945 | return $2 (); | |
1946 | ; | |
1947 | return 0; | |
1948 | } | |
1949 | _ACEOF | |
1950 | if ac_fn_c_try_link "$LINENO"; then : | |
1951 | eval "$3=yes" | |
1952 | else | |
1953 | eval "$3=no" | |
1954 | fi | |
1955 | rm -f core conftest.err conftest.$ac_objext \ | |
1956 | conftest$ac_exeext conftest.$ac_ext | |
1957 | fi | |
1958 | eval ac_res=\$$3 | |
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1960 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 1961 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1962 | |
1963 | } # ac_fn_c_check_func | |
aadc9410 MF |
1964 | |
1965 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1966 | # ------------------------------------------------------- | |
1967 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1968 | # the include files in INCLUDES and setting the cache variable VAR | |
1969 | # accordingly. | |
1970 | ac_fn_c_check_header_mongrel () | |
1971 | { | |
1972 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
63a9e923 | 1973 | if eval \${$3+:} false; then : |
aadc9410 MF |
1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1975 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 1976 | if eval \${$3+:} false; then : |
aadc9410 MF |
1977 | $as_echo_n "(cached) " >&6 |
1978 | fi | |
1979 | eval ac_res=\$$3 | |
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1981 | $as_echo "$ac_res" >&6; } | |
1982 | else | |
1983 | # Is the header compilable? | |
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1985 | $as_echo_n "checking $2 usability... " >&6; } | |
1986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1987 | /* end confdefs.h. */ | |
1988 | $4 | |
1989 | #include <$2> | |
1990 | _ACEOF | |
1991 | if ac_fn_c_try_compile "$LINENO"; then : | |
1992 | ac_header_compiler=yes | |
1993 | else | |
1994 | ac_header_compiler=no | |
1995 | fi | |
1996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1998 | $as_echo "$ac_header_compiler" >&6; } | |
1999 | ||
2000 | # Is the header present? | |
2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2002 | $as_echo_n "checking $2 presence... " >&6; } | |
2003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2004 | /* end confdefs.h. */ | |
2005 | #include <$2> | |
2006 | _ACEOF | |
2007 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2008 | ac_header_preproc=yes | |
2009 | else | |
2010 | ac_header_preproc=no | |
2011 | fi | |
63a9e923 | 2012 | rm -f conftest.err conftest.i conftest.$ac_ext |
aadc9410 MF |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2014 | $as_echo "$ac_header_preproc" >&6; } | |
2015 | ||
2016 | # So? What about this header? | |
2017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2018 | yes:no: ) | |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2020 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2022 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2023 | ;; | |
2024 | no:yes:* ) | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2026 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2028 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2030 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2032 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2034 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2035 | ;; | |
2036 | esac | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2038 | $as_echo_n "checking for $2... " >&6; } | |
63a9e923 | 2039 | if eval \${$3+:} false; then : |
aadc9410 MF |
2040 | $as_echo_n "(cached) " >&6 |
2041 | else | |
2042 | eval "$3=\$ac_header_compiler" | |
2043 | fi | |
2044 | eval ac_res=\$$3 | |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2046 | $as_echo "$ac_res" >&6; } | |
2047 | fi | |
63a9e923 | 2048 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
aadc9410 MF |
2049 | |
2050 | } # ac_fn_c_check_header_mongrel | |
81ecdfbb RW |
2051 | cat >config.log <<_ACEOF |
2052 | This file contains any messages produced by compilers while | |
2053 | running configure, to aid debugging if configure makes a mistake. | |
2054 | ||
2055 | It was created by $as_me, which was | |
63a9e923 | 2056 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
2057 | |
2058 | $ $0 $@ | |
2059 | ||
2060 | _ACEOF | |
2061 | exec 5>>config.log | |
2062 | { | |
2063 | cat <<_ASUNAME | |
2064 | ## --------- ## | |
2065 | ## Platform. ## | |
2066 | ## --------- ## | |
2067 | ||
2068 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2069 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2070 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2071 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2072 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2073 | ||
2074 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2075 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2076 | ||
2077 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2078 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2079 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2080 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2081 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2082 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2083 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2084 | ||
2085 | _ASUNAME | |
2086 | ||
2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2088 | for as_dir in $PATH | |
2089 | do | |
2090 | IFS=$as_save_IFS | |
2091 | test -z "$as_dir" && as_dir=. | |
2092 | $as_echo "PATH: $as_dir" | |
2093 | done | |
2094 | IFS=$as_save_IFS | |
2095 | ||
2096 | } >&5 | |
2097 | ||
2098 | cat >&5 <<_ACEOF | |
b7026657 AC |
2099 | |
2100 | ||
2101 | ## ----------- ## | |
2102 | ## Core tests. ## | |
2103 | ## ----------- ## | |
2104 | ||
2105 | _ACEOF | |
2106 | ||
2107 | ||
2108 | # Keep a trace of the command line. | |
2109 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2110 | # Strip out --silent because we don't want to record it for future runs. | |
2111 | # Also quote any args containing shell meta-characters. | |
2112 | # Make two passes to allow for proper duplicate-argument suppression. | |
2113 | ac_configure_args= | |
2114 | ac_configure_args0= | |
2115 | ac_configure_args1= | |
b7026657 AC |
2116 | ac_must_keep_next=false |
2117 | for ac_pass in 1 2 | |
2118 | do | |
2119 | for ac_arg | |
2120 | do | |
2121 | case $ac_arg in | |
2122 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2124 | | -silent | --silent | --silen | --sile | --sil) | |
2125 | continue ;; | |
81ecdfbb RW |
2126 | *\'*) |
2127 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2128 | esac |
2129 | case $ac_pass in | |
81ecdfbb | 2130 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2131 | 2) |
81ecdfbb | 2132 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2133 | if test $ac_must_keep_next = true; then |
2134 | ac_must_keep_next=false # Got value, back to normal. | |
2135 | else | |
2136 | case $ac_arg in | |
2137 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2138 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2139 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2140 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2141 | case "$ac_configure_args0 " in | |
2142 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2143 | esac | |
2144 | ;; | |
2145 | -* ) ac_must_keep_next=true ;; | |
2146 | esac | |
2147 | fi | |
81ecdfbb | 2148 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2149 | ;; |
2150 | esac | |
2151 | done | |
2152 | done | |
81ecdfbb RW |
2153 | { ac_configure_args0=; unset ac_configure_args0;} |
2154 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2155 | |
2156 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2157 | # config.log. We remove comments because anyway the quotes in there | |
2158 | # would cause problems or look ugly. | |
81ecdfbb RW |
2159 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2160 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2161 | trap 'exit_status=$? |
2162 | # Save into config.log some information that might help in debugging. | |
2163 | { | |
2164 | echo | |
2165 | ||
63a9e923 | 2166 | $as_echo "## ---------------- ## |
b7026657 | 2167 | ## Cache variables. ## |
63a9e923 | 2168 | ## ---------------- ##" |
b7026657 AC |
2169 | echo |
2170 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2171 | ( |
2172 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2173 | eval ac_val=\$$ac_var | |
2174 | case $ac_val in #( | |
2175 | *${as_nl}*) | |
2176 | case $ac_var in #( | |
2177 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2178 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2179 | esac | |
2180 | case $ac_var in #( | |
2181 | _ | IFS | as_nl) ;; #( | |
2182 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2183 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2184 | esac ;; | |
2185 | esac | |
2186 | done | |
b7026657 | 2187 | (set) 2>&1 | |
81ecdfbb RW |
2188 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2189 | *${as_nl}ac_space=\ *) | |
b7026657 | 2190 | sed -n \ |
81ecdfbb RW |
2191 | "s/'\''/'\''\\\\'\'''\''/g; |
2192 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2193 | ;; #( | |
b7026657 | 2194 | *) |
81ecdfbb | 2195 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2196 | ;; |
81ecdfbb RW |
2197 | esac | |
2198 | sort | |
2199 | ) | |
b7026657 AC |
2200 | echo |
2201 | ||
63a9e923 | 2202 | $as_echo "## ----------------- ## |
b7026657 | 2203 | ## Output variables. ## |
63a9e923 | 2204 | ## ----------------- ##" |
b7026657 AC |
2205 | echo |
2206 | for ac_var in $ac_subst_vars | |
2207 | do | |
81ecdfbb RW |
2208 | eval ac_val=\$$ac_var |
2209 | case $ac_val in | |
2210 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2211 | esac | |
2212 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2213 | done | sort |
2214 | echo | |
2215 | ||
2216 | if test -n "$ac_subst_files"; then | |
63a9e923 | 2217 | $as_echo "## ------------------- ## |
81ecdfbb | 2218 | ## File substitutions. ## |
63a9e923 | 2219 | ## ------------------- ##" |
b7026657 AC |
2220 | echo |
2221 | for ac_var in $ac_subst_files | |
2222 | do | |
81ecdfbb RW |
2223 | eval ac_val=\$$ac_var |
2224 | case $ac_val in | |
2225 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2226 | esac | |
2227 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2228 | done | sort |
2229 | echo | |
2230 | fi | |
2231 | ||
2232 | if test -s confdefs.h; then | |
63a9e923 | 2233 | $as_echo "## ----------- ## |
b7026657 | 2234 | ## confdefs.h. ## |
63a9e923 | 2235 | ## ----------- ##" |
b7026657 | 2236 | echo |
81ecdfbb | 2237 | cat confdefs.h |
b7026657 AC |
2238 | echo |
2239 | fi | |
2240 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2241 | $as_echo "$as_me: caught signal $ac_signal" |
2242 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2243 | } >&5 |
81ecdfbb RW |
2244 | rm -f core *.core core.conftest.* && |
2245 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2246 | exit $exit_status |
81ecdfbb | 2247 | ' 0 |
b7026657 | 2248 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2249 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2250 | done |
2251 | ac_signal=0 | |
2252 | ||
2253 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2254 | rm -f -r conftest* confdefs.h |
2255 | ||
2256 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2257 | |
2258 | # Predefined preprocessor variables. | |
2259 | ||
2260 | cat >>confdefs.h <<_ACEOF | |
2261 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2262 | _ACEOF | |
2263 | ||
b7026657 AC |
2264 | cat >>confdefs.h <<_ACEOF |
2265 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2266 | _ACEOF | |
2267 | ||
b7026657 AC |
2268 | cat >>confdefs.h <<_ACEOF |
2269 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2270 | _ACEOF | |
2271 | ||
b7026657 AC |
2272 | cat >>confdefs.h <<_ACEOF |
2273 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2274 | _ACEOF | |
2275 | ||
b7026657 AC |
2276 | cat >>confdefs.h <<_ACEOF |
2277 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2278 | _ACEOF | |
2279 | ||
81ecdfbb RW |
2280 | cat >>confdefs.h <<_ACEOF |
2281 | #define PACKAGE_URL "$PACKAGE_URL" | |
2282 | _ACEOF | |
2283 | ||
b7026657 AC |
2284 | |
2285 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2286 | # Prefer an explicitly selected file to automatically selected ones. |
2287 | ac_site_file1=NONE | |
2288 | ac_site_file2=NONE | |
2289 | if test -n "$CONFIG_SITE"; then | |
63a9e923 SM |
2290 | # We do not want a PATH search for config.site. |
2291 | case $CONFIG_SITE in #(( | |
2292 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2293 | */*) ac_site_file1=$CONFIG_SITE;; | |
2294 | *) ac_site_file1=./$CONFIG_SITE;; | |
2295 | esac | |
81ecdfbb RW |
2296 | elif test "x$prefix" != xNONE; then |
2297 | ac_site_file1=$prefix/share/config.site | |
2298 | ac_site_file2=$prefix/etc/config.site | |
2299 | else | |
2300 | ac_site_file1=$ac_default_prefix/share/config.site | |
2301 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2302 | fi | |
2303 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2304 | do | |
2305 | test "x$ac_site_file" = xNONE && continue | |
63a9e923 | 2306 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2308 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 2309 | sed 's/^/| /' "$ac_site_file" >&5 |
63a9e923 SM |
2310 | . "$ac_site_file" \ |
2311 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2313 | as_fn_error $? "failed to load site script $ac_site_file | |
2314 | See \`config.log' for more details" "$LINENO" 5; } | |
b7026657 AC |
2315 | fi |
2316 | done | |
2317 | ||
2318 | if test -r "$cache_file"; then | |
63a9e923 SM |
2319 | # Some versions of bash will fail to source /dev/null (special files |
2320 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2321 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2323 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2324 | case $cache_file in |
81ecdfbb RW |
2325 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2326 | *) . "./$cache_file";; | |
b7026657 AC |
2327 | esac |
2328 | fi | |
2329 | else | |
81ecdfbb RW |
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2331 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 AC |
2332 | >$cache_file |
2333 | fi | |
2334 | ||
2335 | # Check that the precious variables saved in the cache have kept the same | |
2336 | # value. | |
2337 | ac_cache_corrupted=false | |
81ecdfbb | 2338 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2339 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2340 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2341 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2342 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2343 | case $ac_old_set,$ac_new_set in |
2344 | set,) | |
81ecdfbb RW |
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2346 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2347 | ac_cache_corrupted=: ;; |
2348 | ,set) | |
81ecdfbb RW |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2350 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2351 | ac_cache_corrupted=: ;; |
2352 | ,);; | |
2353 | *) | |
2354 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2355 | # differences in whitespace do not lead to failure. |
2356 | ac_old_val_w=`echo x $ac_old_val` | |
2357 | ac_new_val_w=`echo x $ac_new_val` | |
2358 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2360 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2361 | ac_cache_corrupted=: | |
2362 | else | |
2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2364 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2365 | eval $ac_var=\$ac_old_val | |
2366 | fi | |
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2368 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2370 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
2371 | fi;; |
2372 | esac | |
2373 | # Pass precious variables to config.status. | |
2374 | if test "$ac_new_set" = set; then | |
2375 | case $ac_new_val in | |
81ecdfbb | 2376 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
2377 | *) ac_arg=$ac_var=$ac_new_val ;; |
2378 | esac | |
2379 | case " $ac_configure_args " in | |
2380 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2381 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 AC |
2382 | esac |
2383 | fi | |
2384 | done | |
2385 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2387 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2389 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
63a9e923 | 2390 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
b7026657 | 2391 | fi |
81ecdfbb RW |
2392 | ## -------------------- ## |
2393 | ## Main body of script. ## | |
2394 | ## -------------------- ## | |
b7026657 AC |
2395 | |
2396 | ac_ext=c | |
2397 | ac_cpp='$CPP $CPPFLAGS' | |
2398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2401 | ||
6ffe910a MF |
2402 | |
2403 | # This file contains common code used by all simulators. | |
2404 | # | |
2405 | # SIM_AC_COMMON invokes AC macros used by all simulators and by the common | |
2406 | # directory. It is intended to be invoked before any target specific stuff. | |
2407 | # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. | |
2408 | # It is intended to be invoked last. | |
2409 | # | |
306f4178 | 2410 | # The simulator's configure.ac should look like: |
6ffe910a MF |
2411 | # |
2412 | # dnl Process this file with autoconf to produce a configure script. | |
2413 | # AC_PREREQ(2.64)dnl | |
2414 | # AC_INIT(Makefile.in) | |
2415 | # sinclude(../common/aclocal.m4) | |
2416 | # | |
2417 | # SIM_AC_COMMON | |
2418 | # | |
2419 | # ... target specific stuff ... | |
2420 | # | |
2421 | # SIM_AC_OUTPUT | |
2422 | ||
2423 | # Include global overrides and fixes for Autoconf. | |
2424 | ||
2425 | ||
2426 | ||
2427 | ||
2428 | ||
2429 | ||
2430 | ||
2431 | ||
2432 | ||
2433 | ||
2434 | ||
2435 | ||
2436 | ||
2437 | ||
2438 | ||
2439 | ||
2440 | ||
2441 | ||
2442 | ||
2443 | ||
2444 | ||
2445 | ||
6bb11ab3 L |
2446 | |
2447 | ||
2448 | ||
2449 | ||
2450 | ||
2451 | ||
2452 | ||
2453 | ||
2454 | ||
2455 | ||
2456 | ||
37f980dc SM |
2457 | |
2458 | ||
6bb11ab3 L |
2459 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
2460 | # | |
2461 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
2462 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
2463 | # Written by Gordon Matzigkeit, 1996 | |
2464 | # | |
2465 | # This file is free software; the Free Software Foundation gives | |
2466 | # unlimited permission to copy and/or distribute it, with or without | |
2467 | # modifications, as long as this notice is preserved. | |
2468 | ||
2469 | ||
2470 | ||
2471 | # serial 56 LT_INIT | |
2472 | ||
2473 | ||
2474 | # LT_PREREQ(VERSION) | |
2475 | # ------------------ | |
2476 | # Complain and exit if this libtool version is less that VERSION. | |
2477 | ||
2478 | ||
2479 | ||
2480 | # _LT_CHECK_BUILDDIR | |
2481 | # ------------------ | |
2482 | # Complain if the absolute build directory name contains unusual characters | |
2483 | ||
2484 | ||
2485 | ||
2486 | # LT_INIT([OPTIONS]) | |
2487 | # ------------------ | |
2488 | # LT_INIT | |
2489 | ||
2490 | # Old names: | |
2491 | # This is what autoupdate's m4 run will expand. It fires | |
2492 | # the warning (with _au_warn_XXX), outputs it into the | |
2493 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2494 | # the replacement expansion. | |
2495 | ||
2496 | ||
2497 | # This is an auxiliary macro that is also run when | |
2498 | # autoupdate runs m4. It simply calls m4_warning, but | |
2499 | # we need a wrapper so that each warning is emitted only | |
2500 | # once. We break the quoting in m4_warning's argument in | |
2501 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2502 | ||
2503 | ||
2504 | # Finally, this is the expansion that is picked up by | |
2505 | # autoconf. It tells the user to run autoupdate, and | |
2506 | # then outputs the replacement expansion. We do not care | |
2507 | # about autoupdate's warning because that contains | |
2508 | # information on what to do *after* running autoupdate. | |
2509 | ||
2510 | # This is what autoupdate's m4 run will expand. It fires | |
2511 | # the warning (with _au_warn_XXX), outputs it into the | |
2512 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2513 | # the replacement expansion. | |
2514 | ||
2515 | ||
2516 | # This is an auxiliary macro that is also run when | |
2517 | # autoupdate runs m4. It simply calls m4_warning, but | |
2518 | # we need a wrapper so that each warning is emitted only | |
2519 | # once. We break the quoting in m4_warning's argument in | |
2520 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2521 | ||
2522 | ||
2523 | # Finally, this is the expansion that is picked up by | |
2524 | # autoconf. It tells the user to run autoupdate, and | |
2525 | # then outputs the replacement expansion. We do not care | |
2526 | # about autoupdate's warning because that contains | |
2527 | # information on what to do *after* running autoupdate. | |
2528 | ||
2529 | ||
2530 | ||
2531 | # _LT_CC_BASENAME(CC) | |
2532 | # ------------------- | |
2533 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
2534 | ||
2535 | ||
2536 | ||
2537 | # _LT_FILEUTILS_DEFAULTS | |
2538 | # ---------------------- | |
2539 | # It is okay to use these file commands and assume they have been set | |
2540 | # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | |
2541 | # _LT_FILEUTILS_DEFAULTS | |
2542 | ||
2543 | ||
2544 | # _LT_SETUP | |
2545 | # --------- | |
2546 | # _LT_SETUP | |
2547 | ||
2548 | ||
2549 | # _LT_PREPARE_SED_QUOTE_VARS | |
2550 | # -------------------------- | |
2551 | # Define a few sed substitution that help us do robust quoting. | |
2552 | ||
2553 | ||
2554 | # _LT_PROG_LTMAIN | |
2555 | # --------------- | |
2556 | # Note that this code is called both from `configure', and `config.status' | |
2557 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | |
2558 | # `config.status' has no value for ac_aux_dir unless we are using Automake, | |
2559 | # so we pass a copy along to make sure it has a sensible value anyway. | |
2560 | # _LT_PROG_LTMAIN | |
2561 | ||
2562 | ||
2563 | ## ------------------------------------- ## | |
2564 | ## Accumulate code for creating libtool. ## | |
2565 | ## ------------------------------------- ## | |
2566 | ||
2567 | # So that we can recreate a full libtool script including additional | |
2568 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | |
2569 | # in macros and then make a single call at the end using the `libtool' | |
2570 | # label. | |
2571 | ||
2572 | ||
2573 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | |
2574 | # ---------------------------------------- | |
2575 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
2576 | ||
2577 | ||
2578 | # Initialize. | |
2579 | ||
2580 | ||
2581 | ||
2582 | # _LT_CONFIG_LIBTOOL([COMMANDS]) | |
2583 | # ------------------------------ | |
2584 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
2585 | ||
2586 | ||
2587 | # Initialize. | |
2588 | ||
2589 | ||
2590 | ||
2591 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | |
2592 | # ----------------------------------------------------- | |
2593 | ||
2594 | ||
2595 | ||
2596 | # _LT_FORMAT_COMMENT([COMMENT]) | |
2597 | # ----------------------------- | |
2598 | # Add leading comment marks to the start of each line, and a trailing | |
2599 | # full-stop to the whole comment if one is not present already. | |
2600 | ||
2601 | ||
2602 | ||
2603 | ||
2604 | ## ------------------------ ## | |
2605 | ## FIXME: Eliminate VARNAME ## | |
2606 | ## ------------------------ ## | |
2607 | ||
2608 | ||
2609 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | |
2610 | # ------------------------------------------------------------------- | |
2611 | # CONFIGNAME is the name given to the value in the libtool script. | |
2612 | # VARNAME is the (base) name used in the configure script. | |
2613 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | |
2614 | # VARNAME. Any other value will be used directly. | |
2615 | ||
2616 | ||
2617 | ||
2618 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | |
2619 | # -------------------------------------------------------- | |
2620 | ||
2621 | ||
2622 | ||
2623 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | |
2624 | # ------------------------------------------------ | |
2625 | ||
2626 | ||
2627 | ||
2628 | # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | |
2629 | # --------------------------------------------------------- | |
2630 | ||
2631 | ||
2632 | ||
2633 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | |
2634 | # -------------------------------------------------- | |
2635 | ||
2636 | ||
2637 | ||
2638 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | |
2639 | # --------------------------------------------------- | |
2640 | ||
2641 | ||
2642 | ||
2643 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | |
2644 | # --------------------------------------------------- | |
2645 | ||
2646 | ||
2647 | ||
2648 | ||
2649 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | |
2650 | # ------------------------------------------------ | |
2651 | ||
2652 | ||
2653 | ||
2654 | ||
2655 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | |
2656 | # ------------------------------------ | |
2657 | # Quote a variable value, and forward it to `config.status' so that its | |
2658 | # declaration there will have the same value as in `configure'. VARNAME | |
2659 | # must have a single quote delimited value for this to work. | |
2660 | ||
2661 | ||
2662 | ||
2663 | # _LT_CONFIG_STATUS_DECLARATIONS | |
2664 | # ------------------------------ | |
2665 | # We delimit libtool config variables with single quotes, so when | |
2666 | # we write them to config.status, we have to be sure to quote all | |
2667 | # embedded single quotes properly. In configure, this macro expands | |
2668 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | |
2669 | # | |
2670 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
2671 | ||
2672 | ||
2673 | ||
2674 | # _LT_LIBTOOL_TAGS | |
2675 | # ---------------- | |
2676 | # Output comment and list of tags supported by the script | |
2677 | ||
2678 | ||
2679 | ||
2680 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | |
2681 | # ----------------------------------- | |
2682 | # Extract the dictionary values for VARNAME (optionally with TAG) and | |
2683 | # expand to a commented shell variable setting: | |
2684 | # | |
2685 | # # Some comment about what VAR is for. | |
2686 | # visible_name=$lt_internal_name | |
2687 | ||
2688 | ||
2689 | ||
2690 | # _LT_LIBTOOL_CONFIG_VARS | |
2691 | # ----------------------- | |
2692 | # Produce commented declarations of non-tagged libtool config variables | |
2693 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | |
2694 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | |
2695 | # section) are produced by _LT_LIBTOOL_TAG_VARS. | |
2696 | ||
2697 | ||
2698 | ||
2699 | # _LT_LIBTOOL_TAG_VARS(TAG) | |
2700 | # ------------------------- | |
2701 | ||
2702 | ||
2703 | ||
2704 | # _LT_TAGVAR(VARNAME, [TAGNAME]) | |
2705 | # ------------------------------ | |
2706 | ||
2707 | ||
2708 | ||
2709 | # _LT_CONFIG_COMMANDS | |
2710 | # ------------------- | |
2711 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | |
2712 | # variables for single and double quote escaping we saved from calls | |
2713 | # to _LT_DECL, we can put quote escaped variables declarations | |
2714 | # into `config.status', and then the shell code to quote escape them in | |
2715 | # for loops in `config.status'. Finally, any additional code accumulated | |
2716 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | |
2717 | #_LT_CONFIG_COMMANDS | |
2718 | ||
2719 | ||
2720 | # Initialize. | |
2721 | ||
2722 | ||
2723 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | |
2724 | # ------------------------------------ | |
2725 | # Generate a child script FILE with all initialization necessary to | |
2726 | # reuse the environment learned by the parent script, and make the | |
2727 | # file executable. If COMMENT is supplied, it is inserted after the | |
2728 | # `#!' sequence but before initialization text begins. After this | |
2729 | # macro, additional text can be appended to FILE to form the body of | |
2730 | # the child script. The macro ends with non-zero status if the | |
2731 | # file could not be fully written (such as if the disk is full). | |
2732 | # _LT_GENERATED_FILE_INIT | |
2733 | ||
2734 | # LT_OUTPUT | |
2735 | # --------- | |
2736 | # This macro allows early generation of the libtool script (before | |
2737 | # AC_OUTPUT is called), incase it is used in configure for compilation | |
2738 | # tests. | |
2739 | # LT_OUTPUT | |
2740 | ||
2741 | ||
2742 | # _LT_CONFIG(TAG) | |
2743 | # --------------- | |
2744 | # If TAG is the built-in tag, create an initial libtool script with a | |
2745 | # default configuration from the untagged config vars. Otherwise add code | |
2746 | # to config.status for appending the configuration named by TAG from the | |
2747 | # matching tagged config vars. | |
2748 | # _LT_CONFIG | |
2749 | ||
2750 | ||
2751 | # LT_SUPPORTED_TAG(TAG) | |
2752 | # --------------------- | |
2753 | # Trace this macro to discover what tags are supported by the libtool | |
2754 | # --tag option, using: | |
2755 | # autoconf --trace 'LT_SUPPORTED_TAG:$1' | |
2756 | ||
2757 | ||
2758 | ||
2759 | # C support is built-in for now | |
2760 | ||
2761 | ||
2762 | ||
2763 | ||
2764 | # LT_LANG(LANG) | |
2765 | # ------------- | |
2766 | # Enable libtool support for the given language if not already enabled. | |
2767 | # LT_LANG | |
2768 | ||
2769 | ||
2770 | # _LT_LANG(LANGNAME) | |
2771 | # ------------------ | |
2772 | # _LT_LANG | |
2773 | ||
2774 | ||
2775 | # _LT_LANG_DEFAULT_CONFIG | |
2776 | # ----------------------- | |
2777 | # _LT_LANG_DEFAULT_CONFIG | |
2778 | ||
2779 | # Obsolete macros: | |
2780 | # This is what autoupdate's m4 run will expand. It fires | |
2781 | # the warning (with _au_warn_XXX), outputs it into the | |
2782 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2783 | # the replacement expansion. | |
2784 | ||
2785 | ||
2786 | # This is an auxiliary macro that is also run when | |
2787 | # autoupdate runs m4. It simply calls m4_warning, but | |
2788 | # we need a wrapper so that each warning is emitted only | |
2789 | # once. We break the quoting in m4_warning's argument in | |
2790 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2791 | ||
2792 | ||
2793 | # Finally, this is the expansion that is picked up by | |
2794 | # autoconf. It tells the user to run autoupdate, and | |
2795 | # then outputs the replacement expansion. We do not care | |
2796 | # about autoupdate's warning because that contains | |
2797 | # information on what to do *after* running autoupdate. | |
2798 | ||
2799 | # This is what autoupdate's m4 run will expand. It fires | |
2800 | # the warning (with _au_warn_XXX), outputs it into the | |
2801 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2802 | # the replacement expansion. | |
2803 | ||
2804 | ||
2805 | # This is an auxiliary macro that is also run when | |
2806 | # autoupdate runs m4. It simply calls m4_warning, but | |
2807 | # we need a wrapper so that each warning is emitted only | |
2808 | # once. We break the quoting in m4_warning's argument in | |
2809 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2810 | ||
2811 | ||
2812 | # Finally, this is the expansion that is picked up by | |
2813 | # autoconf. It tells the user to run autoupdate, and | |
2814 | # then outputs the replacement expansion. We do not care | |
2815 | # about autoupdate's warning because that contains | |
2816 | # information on what to do *after* running autoupdate. | |
2817 | ||
2818 | # This is what autoupdate's m4 run will expand. It fires | |
2819 | # the warning (with _au_warn_XXX), outputs it into the | |
2820 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2821 | # the replacement expansion. | |
2822 | ||
2823 | ||
2824 | # This is an auxiliary macro that is also run when | |
2825 | # autoupdate runs m4. It simply calls m4_warning, but | |
2826 | # we need a wrapper so that each warning is emitted only | |
2827 | # once. We break the quoting in m4_warning's argument in | |
2828 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2829 | ||
2830 | ||
2831 | # Finally, this is the expansion that is picked up by | |
2832 | # autoconf. It tells the user to run autoupdate, and | |
2833 | # then outputs the replacement expansion. We do not care | |
2834 | # about autoupdate's warning because that contains | |
2835 | # information on what to do *after* running autoupdate. | |
2836 | ||
2837 | # This is what autoupdate's m4 run will expand. It fires | |
2838 | # the warning (with _au_warn_XXX), outputs it into the | |
2839 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2840 | # the replacement expansion. | |
2841 | ||
2842 | ||
2843 | # This is an auxiliary macro that is also run when | |
2844 | # autoupdate runs m4. It simply calls m4_warning, but | |
2845 | # we need a wrapper so that each warning is emitted only | |
2846 | # once. We break the quoting in m4_warning's argument in | |
2847 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2848 | ||
2849 | ||
2850 | # Finally, this is the expansion that is picked up by | |
2851 | # autoconf. It tells the user to run autoupdate, and | |
2852 | # then outputs the replacement expansion. We do not care | |
2853 | # about autoupdate's warning because that contains | |
2854 | # information on what to do *after* running autoupdate. | |
2855 | ||
2856 | # This is what autoupdate's m4 run will expand. It fires | |
2857 | # the warning (with _au_warn_XXX), outputs it into the | |
2858 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2859 | # the replacement expansion. | |
2860 | ||
2861 | ||
2862 | # This is an auxiliary macro that is also run when | |
2863 | # autoupdate runs m4. It simply calls m4_warning, but | |
2864 | # we need a wrapper so that each warning is emitted only | |
2865 | # once. We break the quoting in m4_warning's argument in | |
2866 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2867 | ||
2868 | ||
2869 | # Finally, this is the expansion that is picked up by | |
2870 | # autoconf. It tells the user to run autoupdate, and | |
2871 | # then outputs the replacement expansion. We do not care | |
2872 | # about autoupdate's warning because that contains | |
2873 | # information on what to do *after* running autoupdate. | |
2874 | ||
2875 | ||
2876 | ||
2877 | # _LT_TAG_COMPILER | |
2878 | # ---------------- | |
2879 | # _LT_TAG_COMPILER | |
2880 | ||
2881 | ||
2882 | # _LT_COMPILER_BOILERPLATE | |
2883 | # ------------------------ | |
2884 | # Check for compiler boilerplate output or warnings with | |
2885 | # the simple compiler test code. | |
2886 | # _LT_COMPILER_BOILERPLATE | |
2887 | ||
2888 | ||
2889 | # _LT_LINKER_BOILERPLATE | |
2890 | # ---------------------- | |
2891 | # Check for linker boilerplate output or warnings with | |
2892 | # the simple link test code. | |
2893 | # _LT_LINKER_BOILERPLATE | |
2894 | ||
2895 | # _LT_REQUIRED_DARWIN_CHECKS | |
2896 | # ------------------------- | |
2897 | ||
2898 | ||
2899 | ||
2900 | # _LT_DARWIN_LINKER_FEATURES | |
2901 | # -------------------------- | |
2902 | # Checks for linker and compiler features on darwin | |
2903 | ||
2904 | ||
2905 | # _LT_SYS_MODULE_PATH_AIX | |
2906 | # ----------------------- | |
2907 | # Links a minimal program and checks the executable | |
2908 | # for the system default hardcoded library path. In most cases, | |
2909 | # this is /usr/lib:/lib, but when the MPI compilers are used | |
2910 | # the location of the communication and MPI libs are included too. | |
2911 | # If we don't find anything, use the default library path according | |
2912 | # to the aix ld manual. | |
2913 | # _LT_SYS_MODULE_PATH_AIX | |
2914 | ||
2915 | ||
2916 | # _LT_SHELL_INIT(ARG) | |
2917 | # ------------------- | |
2918 | # _LT_SHELL_INIT | |
2919 | ||
2920 | ||
2921 | ||
2922 | # _LT_PROG_ECHO_BACKSLASH | |
2923 | # ----------------------- | |
2924 | # Find how we can fake an echo command that does not interpret backslash. | |
2925 | # In particular, with Autoconf 2.60 or later we add some code to the start | |
2926 | # of the generated configure script which will find a shell with a builtin | |
2927 | # printf (which we can use as an echo command). | |
2928 | # _LT_PROG_ECHO_BACKSLASH | |
2929 | ||
2930 | ||
2931 | # _LT_ENABLE_LOCK | |
2932 | # --------------- | |
2933 | # _LT_ENABLE_LOCK | |
2934 | ||
2935 | ||
2936 | # _LT_CMD_OLD_ARCHIVE | |
2937 | # ------------------- | |
2938 | # _LT_CMD_OLD_ARCHIVE | |
2939 | ||
2940 | ||
2941 | # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
2942 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | |
2943 | # ---------------------------------------------------------------- | |
2944 | # Check whether the given compiler option works | |
2945 | # _LT_COMPILER_OPTION | |
2946 | ||
2947 | # Old name: | |
2948 | # This is what autoupdate's m4 run will expand. It fires | |
2949 | # the warning (with _au_warn_XXX), outputs it into the | |
2950 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2951 | # the replacement expansion. | |
2952 | ||
2953 | ||
2954 | # This is an auxiliary macro that is also run when | |
2955 | # autoupdate runs m4. It simply calls m4_warning, but | |
2956 | # we need a wrapper so that each warning is emitted only | |
2957 | # once. We break the quoting in m4_warning's argument in | |
2958 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2959 | ||
2960 | ||
2961 | # Finally, this is the expansion that is picked up by | |
2962 | # autoconf. It tells the user to run autoupdate, and | |
2963 | # then outputs the replacement expansion. We do not care | |
2964 | # about autoupdate's warning because that contains | |
2965 | # information on what to do *after* running autoupdate. | |
2966 | ||
2967 | ||
2968 | ||
2969 | # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
2970 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | |
2971 | # ---------------------------------------------------- | |
2972 | # Check whether the given linker option works | |
2973 | # _LT_LINKER_OPTION | |
2974 | ||
2975 | # Old name: | |
2976 | # This is what autoupdate's m4 run will expand. It fires | |
2977 | # the warning (with _au_warn_XXX), outputs it into the | |
2978 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
2979 | # the replacement expansion. | |
2980 | ||
2981 | ||
2982 | # This is an auxiliary macro that is also run when | |
2983 | # autoupdate runs m4. It simply calls m4_warning, but | |
2984 | # we need a wrapper so that each warning is emitted only | |
2985 | # once. We break the quoting in m4_warning's argument in | |
2986 | # order to expand this macro's arguments, not AU_DEFUN's. | |
2987 | ||
2988 | ||
2989 | # Finally, this is the expansion that is picked up by | |
2990 | # autoconf. It tells the user to run autoupdate, and | |
2991 | # then outputs the replacement expansion. We do not care | |
2992 | # about autoupdate's warning because that contains | |
2993 | # information on what to do *after* running autoupdate. | |
2994 | ||
2995 | ||
2996 | ||
2997 | # LT_CMD_MAX_LEN | |
2998 | #--------------- | |
2999 | # LT_CMD_MAX_LEN | |
3000 | ||
3001 | # Old name: | |
3002 | # This is what autoupdate's m4 run will expand. It fires | |
3003 | # the warning (with _au_warn_XXX), outputs it into the | |
3004 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3005 | # the replacement expansion. | |
3006 | ||
3007 | ||
3008 | # This is an auxiliary macro that is also run when | |
3009 | # autoupdate runs m4. It simply calls m4_warning, but | |
3010 | # we need a wrapper so that each warning is emitted only | |
3011 | # once. We break the quoting in m4_warning's argument in | |
3012 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3013 | ||
3014 | ||
3015 | # Finally, this is the expansion that is picked up by | |
3016 | # autoconf. It tells the user to run autoupdate, and | |
3017 | # then outputs the replacement expansion. We do not care | |
3018 | # about autoupdate's warning because that contains | |
3019 | # information on what to do *after* running autoupdate. | |
3020 | ||
3021 | ||
3022 | ||
3023 | # _LT_HEADER_DLFCN | |
3024 | # ---------------- | |
3025 | # _LT_HEADER_DLFCN | |
3026 | ||
3027 | ||
3028 | # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | |
3029 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | |
3030 | # ---------------------------------------------------------------- | |
3031 | # _LT_TRY_DLOPEN_SELF | |
3032 | ||
3033 | ||
3034 | # LT_SYS_DLOPEN_SELF | |
3035 | # ------------------ | |
3036 | # LT_SYS_DLOPEN_SELF | |
3037 | ||
3038 | # Old name: | |
3039 | # This is what autoupdate's m4 run will expand. It fires | |
3040 | # the warning (with _au_warn_XXX), outputs it into the | |
3041 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3042 | # the replacement expansion. | |
3043 | ||
3044 | ||
3045 | # This is an auxiliary macro that is also run when | |
3046 | # autoupdate runs m4. It simply calls m4_warning, but | |
3047 | # we need a wrapper so that each warning is emitted only | |
3048 | # once. We break the quoting in m4_warning's argument in | |
3049 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3050 | ||
3051 | ||
3052 | # Finally, this is the expansion that is picked up by | |
3053 | # autoconf. It tells the user to run autoupdate, and | |
3054 | # then outputs the replacement expansion. We do not care | |
3055 | # about autoupdate's warning because that contains | |
3056 | # information on what to do *after* running autoupdate. | |
3057 | ||
3058 | ||
3059 | ||
3060 | # _LT_COMPILER_C_O([TAGNAME]) | |
3061 | # --------------------------- | |
3062 | # Check to see if options -c and -o are simultaneously supported by compiler. | |
3063 | # This macro does not hard code the compiler like AC_PROG_CC_C_O. | |
3064 | # _LT_COMPILER_C_O | |
3065 | ||
3066 | ||
3067 | # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | |
3068 | # ---------------------------------- | |
3069 | # Check to see if we can do hard links to lock some files if needed | |
3070 | # _LT_COMPILER_FILE_LOCKS | |
3071 | ||
3072 | ||
3073 | # _LT_CHECK_OBJDIR | |
3074 | # ---------------- | |
3075 | # _LT_CHECK_OBJDIR | |
3076 | ||
3077 | ||
3078 | # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | |
3079 | # -------------------------------------- | |
3080 | # Check hardcoding attributes. | |
3081 | # _LT_LINKER_HARDCODE_LIBPATH | |
3082 | ||
3083 | ||
3084 | # _LT_CMD_STRIPLIB | |
3085 | # ---------------- | |
3086 | # _LT_CMD_STRIPLIB | |
3087 | ||
3088 | ||
3089 | # _LT_SYS_DYNAMIC_LINKER([TAG]) | |
3090 | # ----------------------------- | |
3091 | # PORTME Fill in your ld.so characteristics | |
3092 | # _LT_SYS_DYNAMIC_LINKER | |
3093 | ||
3094 | ||
3095 | # _LT_PATH_TOOL_PREFIX(TOOL) | |
3096 | # -------------------------- | |
3097 | # find a file program which can recognize shared library | |
3098 | # _LT_PATH_TOOL_PREFIX | |
3099 | ||
3100 | # Old name: | |
3101 | # This is what autoupdate's m4 run will expand. It fires | |
3102 | # the warning (with _au_warn_XXX), outputs it into the | |
3103 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3104 | # the replacement expansion. | |
3105 | ||
3106 | ||
3107 | # This is an auxiliary macro that is also run when | |
3108 | # autoupdate runs m4. It simply calls m4_warning, but | |
3109 | # we need a wrapper so that each warning is emitted only | |
3110 | # once. We break the quoting in m4_warning's argument in | |
3111 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3112 | ||
3113 | ||
3114 | # Finally, this is the expansion that is picked up by | |
3115 | # autoconf. It tells the user to run autoupdate, and | |
3116 | # then outputs the replacement expansion. We do not care | |
3117 | # about autoupdate's warning because that contains | |
3118 | # information on what to do *after* running autoupdate. | |
3119 | ||
3120 | ||
3121 | ||
3122 | # _LT_PATH_MAGIC | |
3123 | # -------------- | |
3124 | # find a file program which can recognize a shared library | |
3125 | # _LT_PATH_MAGIC | |
3126 | ||
3127 | ||
3128 | # LT_PATH_LD | |
3129 | # ---------- | |
3130 | # find the pathname to the GNU or non-GNU linker | |
3131 | # LT_PATH_LD | |
3132 | ||
3133 | # Old names: | |
3134 | # This is what autoupdate's m4 run will expand. It fires | |
3135 | # the warning (with _au_warn_XXX), outputs it into the | |
3136 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3137 | # the replacement expansion. | |
3138 | ||
3139 | ||
3140 | # This is an auxiliary macro that is also run when | |
3141 | # autoupdate runs m4. It simply calls m4_warning, but | |
3142 | # we need a wrapper so that each warning is emitted only | |
3143 | # once. We break the quoting in m4_warning's argument in | |
3144 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3145 | ||
3146 | ||
3147 | # Finally, this is the expansion that is picked up by | |
3148 | # autoconf. It tells the user to run autoupdate, and | |
3149 | # then outputs the replacement expansion. We do not care | |
3150 | # about autoupdate's warning because that contains | |
3151 | # information on what to do *after* running autoupdate. | |
3152 | ||
3153 | # This is what autoupdate's m4 run will expand. It fires | |
3154 | # the warning (with _au_warn_XXX), outputs it into the | |
3155 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3156 | # the replacement expansion. | |
3157 | ||
3158 | ||
3159 | # This is an auxiliary macro that is also run when | |
3160 | # autoupdate runs m4. It simply calls m4_warning, but | |
3161 | # we need a wrapper so that each warning is emitted only | |
3162 | # once. We break the quoting in m4_warning's argument in | |
3163 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3164 | ||
3165 | ||
3166 | # Finally, this is the expansion that is picked up by | |
3167 | # autoconf. It tells the user to run autoupdate, and | |
3168 | # then outputs the replacement expansion. We do not care | |
3169 | # about autoupdate's warning because that contains | |
3170 | # information on what to do *after* running autoupdate. | |
3171 | ||
3172 | ||
3173 | ||
3174 | # _LT_PATH_LD_GNU | |
3175 | #- -------------- | |
3176 | # _LT_PATH_LD_GNU | |
3177 | ||
3178 | ||
3179 | # _LT_CMD_RELOAD | |
3180 | # -------------- | |
3181 | # find reload flag for linker | |
3182 | # -- PORTME Some linkers may need a different reload flag. | |
3183 | # _LT_CMD_RELOAD | |
3184 | ||
3185 | ||
3186 | # _LT_CHECK_MAGIC_METHOD | |
3187 | # ---------------------- | |
3188 | # how to check for library dependencies | |
3189 | # -- PORTME fill in with the dynamic library characteristics | |
3190 | # _LT_CHECK_MAGIC_METHOD | |
3191 | ||
3192 | ||
3193 | # LT_PATH_NM | |
3194 | # ---------- | |
3195 | # find the pathname to a BSD- or MS-compatible name lister | |
3196 | # LT_PATH_NM | |
3197 | ||
3198 | # Old names: | |
3199 | # This is what autoupdate's m4 run will expand. It fires | |
3200 | # the warning (with _au_warn_XXX), outputs it into the | |
3201 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3202 | # the replacement expansion. | |
3203 | ||
3204 | ||
3205 | # This is an auxiliary macro that is also run when | |
3206 | # autoupdate runs m4. It simply calls m4_warning, but | |
3207 | # we need a wrapper so that each warning is emitted only | |
3208 | # once. We break the quoting in m4_warning's argument in | |
3209 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3210 | ||
3211 | ||
3212 | # Finally, this is the expansion that is picked up by | |
3213 | # autoconf. It tells the user to run autoupdate, and | |
3214 | # then outputs the replacement expansion. We do not care | |
3215 | # about autoupdate's warning because that contains | |
3216 | # information on what to do *after* running autoupdate. | |
3217 | ||
3218 | # This is what autoupdate's m4 run will expand. It fires | |
3219 | # the warning (with _au_warn_XXX), outputs it into the | |
3220 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3221 | # the replacement expansion. | |
3222 | ||
3223 | ||
3224 | # This is an auxiliary macro that is also run when | |
3225 | # autoupdate runs m4. It simply calls m4_warning, but | |
3226 | # we need a wrapper so that each warning is emitted only | |
3227 | # once. We break the quoting in m4_warning's argument in | |
3228 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3229 | ||
3230 | ||
3231 | # Finally, this is the expansion that is picked up by | |
3232 | # autoconf. It tells the user to run autoupdate, and | |
3233 | # then outputs the replacement expansion. We do not care | |
3234 | # about autoupdate's warning because that contains | |
3235 | # information on what to do *after* running autoupdate. | |
3236 | ||
3237 | ||
3238 | ||
3239 | # LT_LIB_M | |
3240 | # -------- | |
3241 | # check for math library | |
3242 | # LT_LIB_M | |
3243 | ||
3244 | # Old name: | |
3245 | # This is what autoupdate's m4 run will expand. It fires | |
3246 | # the warning (with _au_warn_XXX), outputs it into the | |
3247 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3248 | # the replacement expansion. | |
3249 | ||
3250 | ||
3251 | # This is an auxiliary macro that is also run when | |
3252 | # autoupdate runs m4. It simply calls m4_warning, but | |
3253 | # we need a wrapper so that each warning is emitted only | |
3254 | # once. We break the quoting in m4_warning's argument in | |
3255 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3256 | ||
3257 | ||
3258 | # Finally, this is the expansion that is picked up by | |
3259 | # autoconf. It tells the user to run autoupdate, and | |
3260 | # then outputs the replacement expansion. We do not care | |
3261 | # about autoupdate's warning because that contains | |
3262 | # information on what to do *after* running autoupdate. | |
3263 | ||
3264 | ||
3265 | ||
3266 | # _LT_COMPILER_NO_RTTI([TAGNAME]) | |
3267 | # ------------------------------- | |
3268 | # _LT_COMPILER_NO_RTTI | |
3269 | ||
3270 | ||
3271 | # _LT_CMD_GLOBAL_SYMBOLS | |
3272 | # ---------------------- | |
3273 | # _LT_CMD_GLOBAL_SYMBOLS | |
3274 | ||
3275 | ||
3276 | # _LT_COMPILER_PIC([TAGNAME]) | |
3277 | # --------------------------- | |
3278 | # _LT_COMPILER_PIC | |
3279 | ||
3280 | ||
3281 | # _LT_LINKER_SHLIBS([TAGNAME]) | |
3282 | # ---------------------------- | |
3283 | # See if the linker supports building shared libraries. | |
3284 | # _LT_LINKER_SHLIBS | |
3285 | ||
3286 | ||
3287 | # _LT_LANG_C_CONFIG([TAG]) | |
3288 | # ------------------------ | |
3289 | # Ensure that the configuration variables for a C compiler are suitably | |
3290 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
3291 | # the compiler configuration to `libtool'. | |
3292 | # _LT_LANG_C_CONFIG | |
3293 | ||
3294 | ||
3295 | # _LT_LANG_CXX_CONFIG([TAG]) | |
3296 | # -------------------------- | |
3297 | # Ensure that the configuration variables for a C++ compiler are suitably | |
3298 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
3299 | # the compiler configuration to `libtool'. | |
3300 | # _LT_LANG_CXX_CONFIG | |
3301 | ||
3302 | ||
3303 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | |
3304 | # --------------------------------- | |
3305 | # Figure out "hidden" library dependencies from verbose | |
3306 | # compiler output when linking a shared library. | |
3307 | # Parse the compiler output and extract the necessary | |
3308 | # objects, libraries and library flags. | |
3309 | # _LT_SYS_HIDDEN_LIBDEPS | |
3310 | ||
3311 | ||
3312 | # _LT_LANG_F77_CONFIG([TAG]) | |
3313 | # -------------------------- | |
3314 | # Ensure that the configuration variables for a Fortran 77 compiler are | |
3315 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
3316 | # to write the compiler configuration to `libtool'. | |
3317 | # _LT_LANG_F77_CONFIG | |
3318 | ||
3319 | ||
3320 | # _LT_LANG_FC_CONFIG([TAG]) | |
3321 | # ------------------------- | |
3322 | # Ensure that the configuration variables for a Fortran compiler are | |
3323 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
3324 | # to write the compiler configuration to `libtool'. | |
3325 | # _LT_LANG_FC_CONFIG | |
3326 | ||
3327 | ||
3328 | # _LT_LANG_GCJ_CONFIG([TAG]) | |
3329 | # -------------------------- | |
3330 | # Ensure that the configuration variables for the GNU Java Compiler compiler | |
3331 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
3332 | # to write the compiler configuration to `libtool'. | |
3333 | # _LT_LANG_GCJ_CONFIG | |
3334 | ||
3335 | ||
3336 | # _LT_LANG_RC_CONFIG([TAG]) | |
3337 | # ------------------------- | |
3338 | # Ensure that the configuration variables for the Windows resource compiler | |
3339 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
3340 | # to write the compiler configuration to `libtool'. | |
3341 | # _LT_LANG_RC_CONFIG | |
3342 | ||
3343 | ||
3344 | # LT_PROG_GCJ | |
3345 | # ----------- | |
3346 | ||
3347 | ||
3348 | # Old name: | |
3349 | # This is what autoupdate's m4 run will expand. It fires | |
3350 | # the warning (with _au_warn_XXX), outputs it into the | |
3351 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3352 | # the replacement expansion. | |
3353 | ||
3354 | ||
3355 | # This is an auxiliary macro that is also run when | |
3356 | # autoupdate runs m4. It simply calls m4_warning, but | |
3357 | # we need a wrapper so that each warning is emitted only | |
3358 | # once. We break the quoting in m4_warning's argument in | |
3359 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3360 | ||
3361 | ||
3362 | # Finally, this is the expansion that is picked up by | |
3363 | # autoconf. It tells the user to run autoupdate, and | |
3364 | # then outputs the replacement expansion. We do not care | |
3365 | # about autoupdate's warning because that contains | |
3366 | # information on what to do *after* running autoupdate. | |
3367 | ||
3368 | ||
3369 | ||
3370 | # LT_PROG_RC | |
3371 | # ---------- | |
3372 | ||
3373 | ||
3374 | # Old name: | |
3375 | # This is what autoupdate's m4 run will expand. It fires | |
3376 | # the warning (with _au_warn_XXX), outputs it into the | |
3377 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3378 | # the replacement expansion. | |
3379 | ||
3380 | ||
3381 | # This is an auxiliary macro that is also run when | |
3382 | # autoupdate runs m4. It simply calls m4_warning, but | |
3383 | # we need a wrapper so that each warning is emitted only | |
3384 | # once. We break the quoting in m4_warning's argument in | |
3385 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3386 | ||
3387 | ||
3388 | # Finally, this is the expansion that is picked up by | |
3389 | # autoconf. It tells the user to run autoupdate, and | |
3390 | # then outputs the replacement expansion. We do not care | |
3391 | # about autoupdate's warning because that contains | |
3392 | # information on what to do *after* running autoupdate. | |
3393 | ||
3394 | ||
3395 | ||
3396 | # _LT_DECL_EGREP | |
3397 | # -------------- | |
3398 | # If we don't have a new enough Autoconf to choose the best grep | |
3399 | # available, choose the one first in the user's PATH. | |
3400 | ||
3401 | ||
3402 | ||
3403 | # _LT_DECL_OBJDUMP | |
3404 | # -------------- | |
3405 | # If we don't have a new enough Autoconf to choose the best objdump | |
3406 | # available, choose the one first in the user's PATH. | |
3407 | ||
3408 | ||
3409 | ||
3410 | # _LT_DECL_SED | |
3411 | # ------------ | |
3412 | # Check for a fully-functional sed program, that truncates | |
3413 | # as few characters as possible. Prefer GNU sed if found. | |
3414 | # _LT_DECL_SED | |
3415 | ||
3416 | #m4_ifndef | |
3417 | ||
3418 | # Old name: | |
3419 | # This is what autoupdate's m4 run will expand. It fires | |
3420 | # the warning (with _au_warn_XXX), outputs it into the | |
3421 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3422 | # the replacement expansion. | |
3423 | ||
3424 | ||
3425 | # This is an auxiliary macro that is also run when | |
3426 | # autoupdate runs m4. It simply calls m4_warning, but | |
3427 | # we need a wrapper so that each warning is emitted only | |
3428 | # once. We break the quoting in m4_warning's argument in | |
3429 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3430 | ||
3431 | ||
3432 | # Finally, this is the expansion that is picked up by | |
3433 | # autoconf. It tells the user to run autoupdate, and | |
3434 | # then outputs the replacement expansion. We do not care | |
3435 | # about autoupdate's warning because that contains | |
3436 | # information on what to do *after* running autoupdate. | |
3437 | ||
3438 | ||
3439 | ||
3440 | # _LT_CHECK_SHELL_FEATURES | |
3441 | # ------------------------ | |
3442 | # Find out whether the shell is Bourne or XSI compatible, | |
3443 | # or has some other useful features. | |
3444 | # _LT_CHECK_SHELL_FEATURES | |
3445 | ||
3446 | ||
3447 | # _LT_PROG_XSI_SHELLFNS | |
3448 | # --------------------- | |
3449 | # Bourne and XSI compatible variants of some useful shell functions. | |
3450 | ||
3451 | ||
3452 | # Helper functions for option handling. -*- Autoconf -*- | |
3453 | # | |
3454 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | |
3455 | # Inc. | |
3456 | # Written by Gary V. Vaughan, 2004 | |
3457 | # | |
3458 | # This file is free software; the Free Software Foundation gives | |
3459 | # unlimited permission to copy and/or distribute it, with or without | |
3460 | # modifications, as long as this notice is preserved. | |
3461 | ||
3462 | # serial 6 ltoptions.m4 | |
3463 | ||
3464 | # This is to help aclocal find these macros, as it can't see m4_define. | |
3465 | ||
3466 | ||
3467 | ||
3468 | # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) | |
3469 | # ------------------------------------------ | |
3470 | ||
3471 | ||
3472 | ||
3473 | # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) | |
3474 | # --------------------------------------- | |
3475 | # Set option OPTION-NAME for macro MACRO-NAME, and if there is a | |
3476 | # matching handler defined, dispatch to it. Other OPTION-NAMEs are | |
3477 | # saved as a flag. | |
3478 | ||
3479 | ||
3480 | ||
3481 | # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) | |
3482 | # ------------------------------------------------------------ | |
3483 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
3484 | ||
3485 | ||
3486 | ||
3487 | # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) | |
3488 | # ------------------------------------------------------- | |
3489 | # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME | |
3490 | # are set. | |
3491 | ||
3492 | ||
3493 | ||
3494 | # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) | |
3495 | # ---------------------------------------- | |
3496 | # OPTION-LIST is a space-separated list of Libtool options associated | |
3497 | # with MACRO-NAME. If any OPTION has a matching handler declared with | |
3498 | # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about | |
3499 | # the unknown option and exit. | |
3500 | # _LT_SET_OPTIONS | |
3501 | ||
3502 | ||
3503 | ## --------------------------------- ## | |
3504 | ## Macros to handle LT_INIT options. ## | |
3505 | ## --------------------------------- ## | |
3506 | ||
3507 | # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) | |
3508 | # ----------------------------------------- | |
3509 | ||
3510 | ||
3511 | ||
3512 | # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) | |
3513 | # ----------------------------------------------- | |
3514 | # LT_OPTION_DEFINE | |
3515 | ||
3516 | ||
3517 | # dlopen | |
3518 | # ------ | |
3519 | ||
3520 | ||
3521 | # This is what autoupdate's m4 run will expand. It fires | |
3522 | # the warning (with _au_warn_XXX), outputs it into the | |
3523 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3524 | # the replacement expansion. | |
3525 | ||
3526 | ||
3527 | # This is an auxiliary macro that is also run when | |
3528 | # autoupdate runs m4. It simply calls m4_warning, but | |
3529 | # we need a wrapper so that each warning is emitted only | |
3530 | # once. We break the quoting in m4_warning's argument in | |
3531 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3532 | ||
3533 | ||
3534 | # Finally, this is the expansion that is picked up by | |
3535 | # autoconf. It tells the user to run autoupdate, and | |
3536 | # then outputs the replacement expansion. We do not care | |
3537 | # about autoupdate's warning because that contains | |
3538 | # information on what to do *after* running autoupdate. | |
3539 | ||
3540 | ||
3541 | ||
3542 | ||
3543 | # win32-dll | |
3544 | # --------- | |
3545 | # Declare package support for building win32 dll's. | |
3546 | # win32-dll | |
3547 | ||
3548 | # This is what autoupdate's m4 run will expand. It fires | |
3549 | # the warning (with _au_warn_XXX), outputs it into the | |
3550 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3551 | # the replacement expansion. | |
3552 | ||
3553 | ||
3554 | # This is an auxiliary macro that is also run when | |
3555 | # autoupdate runs m4. It simply calls m4_warning, but | |
3556 | # we need a wrapper so that each warning is emitted only | |
3557 | # once. We break the quoting in m4_warning's argument in | |
3558 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3559 | ||
3560 | ||
3561 | # Finally, this is the expansion that is picked up by | |
3562 | # autoconf. It tells the user to run autoupdate, and | |
3563 | # then outputs the replacement expansion. We do not care | |
3564 | # about autoupdate's warning because that contains | |
3565 | # information on what to do *after* running autoupdate. | |
3566 | ||
3567 | ||
3568 | ||
3569 | ||
3570 | # _LT_ENABLE_SHARED([DEFAULT]) | |
3571 | # ---------------------------- | |
3572 | # implement the --enable-shared flag, and supports the `shared' and | |
3573 | # `disable-shared' LT_INIT options. | |
3574 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
3575 | # _LT_ENABLE_SHARED | |
3576 | ||
3577 | ||
3578 | ||
3579 | ||
3580 | # Old names: | |
3581 | ||
3582 | ||
3583 | ||
3584 | ||
3585 | # This is what autoupdate's m4 run will expand. It fires | |
3586 | # the warning (with _au_warn_XXX), outputs it into the | |
3587 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3588 | # the replacement expansion. | |
3589 | ||
3590 | ||
3591 | # This is an auxiliary macro that is also run when | |
3592 | # autoupdate runs m4. It simply calls m4_warning, but | |
3593 | # we need a wrapper so that each warning is emitted only | |
3594 | # once. We break the quoting in m4_warning's argument in | |
3595 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3596 | ||
3597 | ||
3598 | # Finally, this is the expansion that is picked up by | |
3599 | # autoconf. It tells the user to run autoupdate, and | |
3600 | # then outputs the replacement expansion. We do not care | |
3601 | # about autoupdate's warning because that contains | |
3602 | # information on what to do *after* running autoupdate. | |
3603 | ||
3604 | # This is what autoupdate's m4 run will expand. It fires | |
3605 | # the warning (with _au_warn_XXX), outputs it into the | |
3606 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3607 | # the replacement expansion. | |
3608 | ||
3609 | ||
3610 | # This is an auxiliary macro that is also run when | |
3611 | # autoupdate runs m4. It simply calls m4_warning, but | |
3612 | # we need a wrapper so that each warning is emitted only | |
3613 | # once. We break the quoting in m4_warning's argument in | |
3614 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3615 | ||
3616 | ||
3617 | # Finally, this is the expansion that is picked up by | |
3618 | # autoconf. It tells the user to run autoupdate, and | |
3619 | # then outputs the replacement expansion. We do not care | |
3620 | # about autoupdate's warning because that contains | |
3621 | # information on what to do *after* running autoupdate. | |
3622 | ||
3623 | ||
3624 | ||
3625 | ||
3626 | ||
3627 | # _LT_ENABLE_STATIC([DEFAULT]) | |
3628 | # ---------------------------- | |
3629 | # implement the --enable-static flag, and support the `static' and | |
3630 | # `disable-static' LT_INIT options. | |
3631 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
3632 | # _LT_ENABLE_STATIC | |
3633 | ||
3634 | ||
3635 | ||
3636 | ||
3637 | # Old names: | |
3638 | ||
3639 | ||
3640 | ||
3641 | ||
3642 | # This is what autoupdate's m4 run will expand. It fires | |
3643 | # the warning (with _au_warn_XXX), outputs it into the | |
3644 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3645 | # the replacement expansion. | |
3646 | ||
3647 | ||
3648 | # This is an auxiliary macro that is also run when | |
3649 | # autoupdate runs m4. It simply calls m4_warning, but | |
3650 | # we need a wrapper so that each warning is emitted only | |
3651 | # once. We break the quoting in m4_warning's argument in | |
3652 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3653 | ||
3654 | ||
3655 | # Finally, this is the expansion that is picked up by | |
3656 | # autoconf. It tells the user to run autoupdate, and | |
3657 | # then outputs the replacement expansion. We do not care | |
3658 | # about autoupdate's warning because that contains | |
3659 | # information on what to do *after* running autoupdate. | |
3660 | ||
3661 | # This is what autoupdate's m4 run will expand. It fires | |
3662 | # the warning (with _au_warn_XXX), outputs it into the | |
3663 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3664 | # the replacement expansion. | |
3665 | ||
3666 | ||
3667 | # This is an auxiliary macro that is also run when | |
3668 | # autoupdate runs m4. It simply calls m4_warning, but | |
3669 | # we need a wrapper so that each warning is emitted only | |
3670 | # once. We break the quoting in m4_warning's argument in | |
3671 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3672 | ||
3673 | ||
3674 | # Finally, this is the expansion that is picked up by | |
3675 | # autoconf. It tells the user to run autoupdate, and | |
3676 | # then outputs the replacement expansion. We do not care | |
3677 | # about autoupdate's warning because that contains | |
3678 | # information on what to do *after* running autoupdate. | |
3679 | ||
3680 | ||
3681 | ||
3682 | ||
3683 | ||
3684 | # _LT_ENABLE_FAST_INSTALL([DEFAULT]) | |
3685 | # ---------------------------------- | |
3686 | # implement the --enable-fast-install flag, and support the `fast-install' | |
3687 | # and `disable-fast-install' LT_INIT options. | |
3688 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
3689 | # _LT_ENABLE_FAST_INSTALL | |
3690 | ||
3691 | ||
3692 | ||
3693 | ||
3694 | # Old names: | |
3695 | # This is what autoupdate's m4 run will expand. It fires | |
3696 | # the warning (with _au_warn_XXX), outputs it into the | |
3697 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3698 | # the replacement expansion. | |
3699 | ||
3700 | ||
3701 | # This is an auxiliary macro that is also run when | |
3702 | # autoupdate runs m4. It simply calls m4_warning, but | |
3703 | # we need a wrapper so that each warning is emitted only | |
3704 | # once. We break the quoting in m4_warning's argument in | |
3705 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3706 | ||
3707 | ||
3708 | # Finally, this is the expansion that is picked up by | |
3709 | # autoconf. It tells the user to run autoupdate, and | |
3710 | # then outputs the replacement expansion. We do not care | |
3711 | # about autoupdate's warning because that contains | |
3712 | # information on what to do *after* running autoupdate. | |
3713 | ||
3714 | ||
3715 | # This is what autoupdate's m4 run will expand. It fires | |
3716 | # the warning (with _au_warn_XXX), outputs it into the | |
3717 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3718 | # the replacement expansion. | |
3719 | ||
3720 | ||
3721 | # This is an auxiliary macro that is also run when | |
3722 | # autoupdate runs m4. It simply calls m4_warning, but | |
3723 | # we need a wrapper so that each warning is emitted only | |
3724 | # once. We break the quoting in m4_warning's argument in | |
3725 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3726 | ||
3727 | ||
3728 | # Finally, this is the expansion that is picked up by | |
3729 | # autoconf. It tells the user to run autoupdate, and | |
3730 | # then outputs the replacement expansion. We do not care | |
3731 | # about autoupdate's warning because that contains | |
3732 | # information on what to do *after* running autoupdate. | |
3733 | ||
3734 | ||
3735 | ||
3736 | ||
3737 | # _LT_WITH_PIC([MODE]) | |
3738 | # -------------------- | |
3739 | # implement the --with-pic flag, and support the `pic-only' and `no-pic' | |
3740 | # LT_INIT options. | |
3741 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | |
3742 | # _LT_WITH_PIC | |
3743 | ||
3744 | ||
3745 | ||
3746 | ||
3747 | # Old name: | |
3748 | # This is what autoupdate's m4 run will expand. It fires | |
3749 | # the warning (with _au_warn_XXX), outputs it into the | |
3750 | # updated configure.ac (with AC_DIAGNOSE), and then outputs | |
3751 | # the replacement expansion. | |
3752 | ||
3753 | ||
3754 | # This is an auxiliary macro that is also run when | |
3755 | # autoupdate runs m4. It simply calls m4_warning, but | |
3756 | # we need a wrapper so that each warning is emitted only | |
3757 | # once. We break the quoting in m4_warning's argument in | |
3758 | # order to expand this macro's arguments, not AU_DEFUN's. | |
3759 | ||
3760 | ||
3761 | # Finally, this is the expansion that is picked up by | |
3762 | # autoconf. It tells the user to run autoupdate, and | |
3763 | # then outputs the replacement expansion. We do not care | |
3764 | # about autoupdate's warning because that contains | |
3765 | # information on what to do *after* running autoupdate. | |
3766 | ||
3767 | ||
3768 | ||
3769 | ## ----------------- ## | |
3770 | ## LTDL_INIT Options ## | |
3771 | ## ----------------- ## | |
3772 | ||
3773 | ||
3774 | ||
3775 | ||
3776 | ||
3777 | ||
3778 | ||
3779 | ||
3780 | ||
3781 | ||
3782 | # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- | |
3783 | # | |
3784 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
3785 | # Written by Gary V. Vaughan, 2004 | |
3786 | # | |
3787 | # This file is free software; the Free Software Foundation gives | |
3788 | # unlimited permission to copy and/or distribute it, with or without | |
3789 | # modifications, as long as this notice is preserved. | |
3790 | ||
3791 | # serial 6 ltsugar.m4 | |
3792 | ||
3793 | # This is to help aclocal find these macros, as it can't see m4_define. | |
3794 | ||
3795 | ||
3796 | ||
3797 | # lt_join(SEP, ARG1, [ARG2...]) | |
3798 | # ----------------------------- | |
3799 | # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their | |
3800 | # associated separator. | |
3801 | # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier | |
3802 | # versions in m4sugar had bugs. | |
3803 | ||
3804 | ||
3805 | ||
3806 | ||
3807 | # lt_car(LIST) | |
3808 | # lt_cdr(LIST) | |
3809 | # ------------ | |
3810 | # Manipulate m4 lists. | |
3811 | # These macros are necessary as long as will still need to support | |
3812 | # Autoconf-2.59 which quotes differently. | |
3813 | ||
3814 | ||
3815 | ||
3816 | ||
3817 | ||
3818 | # lt_append(MACRO-NAME, STRING, [SEPARATOR]) | |
3819 | # ------------------------------------------ | |
3820 | # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. | |
3821 | # Note that neither SEPARATOR nor STRING are expanded; they are appended | |
3822 | # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). | |
3823 | # No SEPARATOR is output if MACRO-NAME was previously undefined (different | |
3824 | # than defined and empty). | |
3825 | # | |
3826 | # This macro is needed until we can rely on Autoconf 2.62, since earlier | |
3827 | # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. | |
3828 | ||
3829 | ||
3830 | ||
3831 | ||
3832 | # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) | |
3833 | # ---------------------------------------------------------- | |
3834 | # Produce a SEP delimited list of all paired combinations of elements of | |
3835 | # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list | |
3836 | # has the form PREFIXmINFIXSUFFIXn. | |
3837 | # Needed until we can rely on m4_combine added in Autoconf 2.62. | |
3838 | ||
3839 | ||
3840 | ||
3841 | # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) | |
3842 | # ----------------------------------------------------------------------- | |
3843 | # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited | |
3844 | # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. | |
3845 | ||
3846 | ||
3847 | ||
3848 | # lt_dict_add(DICT, KEY, VALUE) | |
3849 | # ----------------------------- | |
3850 | ||
3851 | ||
3852 | ||
3853 | # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) | |
3854 | # -------------------------------------------- | |
3855 | ||
3856 | ||
3857 | ||
3858 | # lt_dict_fetch(DICT, KEY, [SUBKEY]) | |
3859 | # ---------------------------------- | |
3860 | ||
3861 | ||
3862 | ||
3863 | # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) | |
3864 | # ----------------------------------------------------------------- | |
3865 | ||
3866 | ||
3867 | ||
3868 | # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) | |
3869 | # -------------------------------------------------------------- | |
3870 | ||
3871 | ||
3872 | # ltversion.m4 -- version numbers -*- Autoconf -*- | |
3873 | # | |
3874 | # Copyright (C) 2004 Free Software Foundation, Inc. | |
3875 | # Written by Scott James Remnant, 2004 | |
3876 | # | |
3877 | # This file is free software; the Free Software Foundation gives | |
3878 | # unlimited permission to copy and/or distribute it, with or without | |
3879 | # modifications, as long as this notice is preserved. | |
3880 | ||
3881 | # Generated from ltversion.in. | |
3882 | ||
3883 | # serial 3134 ltversion.m4 | |
3884 | # This file is part of GNU Libtool | |
3885 | ||
3886 | ||
3887 | ||
3888 | ||
3889 | ||
3890 | ||
3891 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | |
3892 | # | |
3893 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | |
3894 | # Written by Scott James Remnant, 2004. | |
3895 | # | |
3896 | # This file is free software; the Free Software Foundation gives | |
3897 | # unlimited permission to copy and/or distribute it, with or without | |
3898 | # modifications, as long as this notice is preserved. | |
3899 | ||
3900 | # serial 4 lt~obsolete.m4 | |
3901 | ||
3902 | # These exist entirely to fool aclocal when bootstrapping libtool. | |
3903 | # | |
3904 | # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) | |
3905 | # which have later been changed to m4_define as they aren't part of the | |
3906 | # exported API, or moved to Autoconf or Automake where they belong. | |
3907 | # | |
3908 | # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN | |
3909 | # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us | |
3910 | # using a macro with the same name in our local m4/libtool.m4 it'll | |
3911 | # pull the old libtool.m4 in (it doesn't see our shiny new m4_define | |
3912 | # and doesn't know about Autoconf macros at all.) | |
3913 | # | |
3914 | # So we provide this file, which has a silly filename so it's always | |
3915 | # included after everything else. This provides aclocal with the | |
3916 | # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything | |
3917 | # because those macros already exist, or will be overwritten later. | |
3918 | # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. | |
3919 | # | |
3920 | # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. | |
3921 | # Yes, that means every name once taken will need to remain here until | |
3922 | # we give up compatibility with versions before 1.7, at which point | |
3923 | # we need to keep only those names which we still refer to. | |
3924 | ||
3925 | # This is to help aclocal find these macros, as it can't see m4_define. | |
3926 | ||
3927 | ||
3928 | ||
3929 | ||
3930 | ||
3931 | ||
3932 | ||
3933 | ||
3934 | ||
3935 | ||
3936 | ||
3937 | ||
3938 | ||
3939 | ||
3940 | ||
3941 | ||
3942 | ||
3943 | ||
3944 | ||
3945 | ||
3946 | ||
3947 | ||
3948 | ||
3949 | ||
3950 | ||
3951 | ||
3952 | ||
3953 | ||
3954 | ||
3955 | ||
3956 | ||
3957 | ||
3958 | ||
3959 | ||
3960 | ||
3961 | ||
3962 | ||
3963 | ||
3964 | ||
3965 | ||
3966 | ||
3967 | ||
3968 | ||
3969 | ||
3970 | ||
3971 | ||
3972 | ||
3973 | ||
3974 | ||
3975 | ||
3976 | ||
3977 | ||
3978 | ||
3979 | ||
6ffe910a MF |
3980 | |
3981 | ||
3982 | ||
3983 | ||
3984 | ||
3985 | ||
3986 | ||
3987 | ||
3988 | ||
3989 | ||
5f3ef9d0 JB |
3990 | ## -*- Autoconf -*- |
3991 | ||
3992 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 | |
3993 | # Free Software Foundation, Inc. | |
3994 | # | |
3995 | # This file is free software; the Free Software Foundation | |
3996 | # gives unlimited permission to copy and/or distribute it, | |
3997 | # with or without modifications, as long as this notice is preserved. | |
3998 | ||
3999 | # serial 8 | |
4000 | ||
4001 | # Based on depend.m4 from automake 1.9, modified for standalone use in | |
4002 | # an environment where GNU make is required. | |
4003 | ||
4004 | # ZW_PROG_COMPILER_DEPENDENCIES | |
4005 | # ----------------------------- | |
4006 | # Variant of _AM_DEPENDENCIES which just does the dependency probe and | |
4007 | # sets fooDEPMODE accordingly. Cache-variable compatible with | |
4008 | # original; not side-effect compatible. As the users of this macro | |
4009 | # may require accurate dependencies for correct builds, it does *not* | |
4010 | # honor --disable-dependency-checking, and failure to detect a usable | |
4011 | # method is an error. depcomp is assumed to be located in | |
4012 | # $ac_aux_dir. | |
4013 | # | |
4014 | # FIXME: Should use the Autoconf 2.5x language-selection mechanism. | |
4015 | ||
4016 | ||
4017 | ||
4018 | # AM_SET_DEPDIR | |
4019 | # ------------- | |
4020 | # Choose a directory name for dependency files. | |
4021 | ||
4022 | ||
4023 | # ZW_CREATE_DEPDIR | |
4024 | # ---------------- | |
4025 | # As AM_SET_DEPDIR, but also create the directory at config.status time. | |
4026 | ||
4027 | ||
6ffe910a MF |
4028 | |
4029 | ||
4030 | ||
4031 | ||
4032 | ||
4033 | ||
4034 | ||
4035 | ||
4036 | ||
4037 | ||
4038 | ||
4039 | ||
4040 | ||
4041 | ||
4042 | ||
4043 | ||
4044 | ||
4045 | ||
4046 | ||
4047 | ||
4048 | ||
4049 | ||
4050 | ||
4051 | ||
4052 | ||
4053 | ||
4054 | ||
4055 | ||
4056 | ||
4057 | ||
4058 | ||
4059 | ||
4060 | ||
4061 | ||
4062 | ||
4063 | ||
4064 | ||
4065 | ||
4066 | ||
6ffe910a MF |
4067 | |
4068 | ||
4069 | ||
4070 | ||
4071 | ||
6ffe910a MF |
4072 | |
4073 | ||
4074 | ||
4075 | ||
4076 | ||
4077 | ||
4078 | ||
4079 | ||
4080 | ||
4081 | ||
4082 | ||
4083 | ||
4084 | ||
4085 | ||
4086 | ||
6ffe910a MF |
4087 | |
4088 | ||
4089 | ||
4090 | ||
4091 | ||
4092 | # intl sister-directory configuration rules. | |
4093 | # | |
4094 | ||
4095 | # The idea behind this macro is that there's no need to repeat all the | |
4096 | # autoconf probes done by the intl directory - it's already done them | |
4097 | # for us. In fact, there's no need even to look at the cache for the | |
4098 | # answers. All we need to do is nab a few pieces of information. | |
4099 | # The intl directory is set up to make this easy, by generating a | |
4100 | # small file which can be sourced as a shell script; then we produce | |
4101 | # the necessary substitutions and definitions for this directory. | |
4102 | ||
4103 | ||
4104 | ||
4105 | # Autoconf M4 include file defining utility macros for complex Canadian | |
4106 | # cross builds. | |
4107 | ||
4108 | ||
4109 | ||
4110 | ||
4111 | ||
4112 | ||
4113 | ||
4114 | ||
4115 | ||
4116 | #### | |
4117 | # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM | |
4118 | # or AC_INIT. | |
4119 | # These demand that AC_CANONICAL_SYSTEM be called beforehand. | |
4120 | ||
4121 | #### | |
4122 | # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
4123 | # Like plain AC_CHECK_TOOLS, but require prefix if build!=host. | |
4124 | ||
4125 | ||
4126 | #### | |
4127 | # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path]) | |
4128 | # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target. | |
4129 | ||
4130 | ||
4131 | ||
4132 | # Backported from Autoconf 2.5x; can go away when and if | |
4133 | # we switch. Put the OS path separator in $PATH_SEPARATOR. | |
4134 | ||
4135 | ||
4136 | ||
4137 | ||
37f980dc SM |
4138 | |
4139 | ||
4140 | ||
4141 | ||
6ffe910a MF |
4142 | # ACX_HAVE_GCC_FOR_TARGET |
4143 | # Check if the variable GCC_FOR_TARGET really points to a GCC binary. | |
4144 | ||
4145 | ||
4146 | # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG) | |
4147 | # Searching for installed target binutils. We need to take extra care, | |
4148 | # else we may find the wrong assembler, linker, etc., and lose. | |
4149 | # | |
4150 | # First try --with-build-time-tools, if specified. | |
4151 | # | |
4152 | # For build != host, we ask the installed GCC for the name of the tool it | |
4153 | # uses, and accept it if it is an absolute path. This is because the | |
4154 | # only good choice for a compiler is the same GCC version that is being | |
4155 | # installed (or we couldn't make target libraries), and we assume that | |
4156 | # on the host system we'll have not only the same GCC version, but also | |
4157 | # the same binutils version. | |
4158 | # | |
4159 | # For build == host, search the same directories that the installed | |
4160 | # compiler will search. We used to do this for the assembler, linker, | |
4161 | # and nm only; for simplicity of configuration, however, we extend this | |
4162 | # criterion to tools (such as ar and ranlib) that are never invoked by | |
4163 | # the compiler, to avoid mismatches. | |
4164 | # | |
4165 | # Also note we have to check MD_EXEC_PREFIX before checking the user's path | |
4166 | # if build == target. This makes the most sense only when bootstrapping, | |
4167 | # but we also do so when build != host. In this case, we hope that the | |
4168 | # build and host systems will have similar contents of MD_EXEC_PREFIX. | |
4169 | # | |
4170 | # If we do not find a suitable binary, then try the user's path. | |
4171 | ||
4172 | ||
4173 | ### | |
4174 | # AC_PROG_CPP_WERROR | |
4175 | # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which | |
4176 | # triggers warnings from the preprocessor. Will be in autoconf 2.58. | |
4177 | # For now, using this also overrides header checks to use only the | |
4178 | # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a | |
4179 | # bit harder from here). | |
4180 | # Eventually autoconf will default to checking headers with the compiler | |
4181 | # instead, and we'll have to do this differently. | |
4182 | ||
4183 | # AC_PROG_CPP_WERROR | |
4184 | ||
4185 | # Test for GNAT. | |
5f3ef9d0 JB |
4186 | # We require the gnatbind & gnatmake programs, as well as a compiler driver |
4187 | # that understands Ada. We use the user's CC setting, already found, and | |
4188 | # possibly add $1 to the command-line parameters. | |
6ffe910a MF |
4189 | # |
4190 | # Sets the shell variable have_gnat to yes or no as appropriate, and | |
4191 | # substitutes GNATBIND and GNATMAKE. | |
4192 | ||
4193 | ||
4194 | ||
4195 | ||
4196 | ||
4197 | ||
4198 | ||
4199 | ||
4200 | ||
4201 | ||
4202 | ||
4203 | ||
4204 | ||
4205 | ||
4206 | ||
4207 | ||
4208 | ||
4209 | ||
4210 | ||
4211 | ||
b7026657 AC |
4212 | |
4213 | ||
b7026657 AC |
4214 | |
4215 | ||
4216 | ||
4217 | ac_aux_dir= | |
81ecdfbb | 4218 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
63a9e923 SM |
4219 | if test -f "$ac_dir/install-sh"; then |
4220 | ac_aux_dir=$ac_dir | |
4221 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4222 | break | |
4223 | elif test -f "$ac_dir/install.sh"; then | |
4224 | ac_aux_dir=$ac_dir | |
4225 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4226 | break | |
4227 | elif test -f "$ac_dir/shtool"; then | |
4228 | ac_aux_dir=$ac_dir | |
4229 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4230 | break | |
4231 | fi | |
b7026657 AC |
4232 | done |
4233 | if test -z "$ac_aux_dir"; then | |
63a9e923 | 4234 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
b7026657 | 4235 | fi |
81ecdfbb RW |
4236 | |
4237 | # These three variables are undocumented and unsupported, | |
4238 | # and are intended to be withdrawn in a future Autoconf release. | |
4239 | # They can cause serious problems if a builder's source tree is in a directory | |
4240 | # whose full name contains unusual characters. | |
4241 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4242 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4243 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4244 | ||
b7026657 AC |
4245 | |
4246 | # Find a good install program. We prefer a C program (faster), | |
4247 | # so one script is as good as another. But avoid the broken or | |
4248 | # incompatible versions: | |
4249 | # SysV /etc/install, /usr/sbin/install | |
4250 | # SunOS /usr/etc/install | |
4251 | # IRIX /sbin/install | |
4252 | # AIX /bin/install | |
4253 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4254 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4255 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4256 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4257 | # OS/2's system install, which has a completely different semantic | |
4258 | # ./install, which can be erroneously created by make from ./install.sh. | |
81ecdfbb RW |
4259 | # Reject install programs that cannot install multiple files. |
4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4261 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
b7026657 | 4262 | if test -z "$INSTALL"; then |
63a9e923 | 4263 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 4264 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
4265 | else |
4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4267 | for as_dir in $PATH | |
4268 | do | |
4269 | IFS=$as_save_IFS | |
4270 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4271 | # Account for people who put trailing slashes in PATH elements. |
4272 | case $as_dir/ in #(( | |
4273 | ./ | .// | /[cC]/* | \ | |
b7026657 | 4274 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 4275 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b7026657 AC |
4276 | /usr/ucb/* ) ;; |
4277 | *) | |
4278 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4279 | # Don't use installbsd from OSF since it installs stuff as root | |
4280 | # by default. | |
4281 | for ac_prog in ginstall scoinst install; do | |
4282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
63a9e923 | 4283 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
b7026657 AC |
4284 | if test $ac_prog = install && |
4285 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4286 | # AIX install. It has an incompatible calling convention. | |
4287 | : | |
4288 | elif test $ac_prog = install && | |
4289 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4290 | # program-specific install script used by HP pwplus--don't use. | |
4291 | : | |
4292 | else | |
81ecdfbb RW |
4293 | rm -rf conftest.one conftest.two conftest.dir |
4294 | echo one > conftest.one | |
4295 | echo two > conftest.two | |
4296 | mkdir conftest.dir | |
4297 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4298 | test -s conftest.one && test -s conftest.two && | |
4299 | test -s conftest.dir/conftest.one && | |
4300 | test -s conftest.dir/conftest.two | |
4301 | then | |
4302 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4303 | break 3 | |
4304 | fi | |
b7026657 AC |
4305 | fi |
4306 | fi | |
4307 | done | |
4308 | done | |
4309 | ;; | |
4310 | esac | |
b7026657 | 4311 | |
81ecdfbb RW |
4312 | done |
4313 | IFS=$as_save_IFS | |
4314 | ||
4315 | rm -rf conftest.one conftest.two conftest.dir | |
b7026657 AC |
4316 | |
4317 | fi | |
4318 | if test "${ac_cv_path_install+set}" = set; then | |
4319 | INSTALL=$ac_cv_path_install | |
4320 | else | |
81ecdfbb RW |
4321 | # As a last resort, use the slow shell script. Don't cache a |
4322 | # value for INSTALL within a source directory, because that will | |
b7026657 | 4323 | # break other packages using the cache if that directory is |
81ecdfbb | 4324 | # removed, or if the value is a relative name. |
b7026657 AC |
4325 | INSTALL=$ac_install_sh |
4326 | fi | |
4327 | fi | |
81ecdfbb RW |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4329 | $as_echo "$INSTALL" >&6; } | |
b7026657 AC |
4330 | |
4331 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4332 | # It thinks the first close brace ends the variable substitution. | |
4333 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4334 | ||
4335 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4336 | ||
4337 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4338 | ||
4339 | ac_ext=c | |
4340 | ac_cpp='$CPP $CPPFLAGS' | |
4341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4344 | if test -n "$ac_tool_prefix"; then | |
4345 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4346 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4348 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 4349 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4350 | $as_echo_n "(cached) " >&6 |
c906108c SS |
4351 | else |
4352 | if test -n "$CC"; then | |
4353 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4354 | else | |
b7026657 AC |
4355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4356 | for as_dir in $PATH | |
4357 | do | |
4358 | IFS=$as_save_IFS | |
4359 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4360 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 4361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 4362 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4364 | break 2 |
4365 | fi | |
4366 | done | |
81ecdfbb RW |
4367 | done |
4368 | IFS=$as_save_IFS | |
b7026657 | 4369 | |
c906108c SS |
4370 | fi |
4371 | fi | |
b7026657 | 4372 | CC=$ac_cv_prog_CC |
c906108c | 4373 | if test -n "$CC"; then |
81ecdfbb RW |
4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4375 | $as_echo "$CC" >&6; } | |
b7026657 | 4376 | else |
81ecdfbb RW |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4378 | $as_echo "no" >&6; } | |
b7026657 AC |
4379 | fi |
4380 | ||
81ecdfbb | 4381 | |
b7026657 AC |
4382 | fi |
4383 | if test -z "$ac_cv_prog_CC"; then | |
4384 | ac_ct_CC=$CC | |
4385 | # Extract the first word of "gcc", so it can be a program name with args. | |
4386 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4388 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 4389 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4390 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
4391 | else |
4392 | if test -n "$ac_ct_CC"; then | |
4393 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4394 | else | |
4395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4396 | for as_dir in $PATH | |
4397 | do | |
4398 | IFS=$as_save_IFS | |
4399 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4400 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 4401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 4402 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4404 | break 2 |
4405 | fi | |
4406 | done | |
81ecdfbb RW |
4407 | done |
4408 | IFS=$as_save_IFS | |
b7026657 AC |
4409 | |
4410 | fi | |
4411 | fi | |
4412 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4413 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4415 | $as_echo "$ac_ct_CC" >&6; } | |
c906108c | 4416 | else |
81ecdfbb RW |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4418 | $as_echo "no" >&6; } | |
b7026657 AC |
4419 | fi |
4420 | ||
81ecdfbb RW |
4421 | if test "x$ac_ct_CC" = x; then |
4422 | CC="" | |
4423 | else | |
4424 | case $cross_compiling:$ac_tool_warned in | |
4425 | yes:) | |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4427 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4428 | ac_tool_warned=yes ;; | |
4429 | esac | |
4430 | CC=$ac_ct_CC | |
4431 | fi | |
b7026657 AC |
4432 | else |
4433 | CC="$ac_cv_prog_CC" | |
c906108c SS |
4434 | fi |
4435 | ||
4436 | if test -z "$CC"; then | |
81ecdfbb RW |
4437 | if test -n "$ac_tool_prefix"; then |
4438 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b7026657 | 4439 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4441 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 4442 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4443 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
4444 | else |
4445 | if test -n "$CC"; then | |
4446 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4447 | else | |
4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4449 | for as_dir in $PATH | |
4450 | do | |
4451 | IFS=$as_save_IFS | |
4452 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 4454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 4455 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4457 | break 2 |
4458 | fi | |
4459 | done | |
81ecdfbb RW |
4460 | done |
4461 | IFS=$as_save_IFS | |
b7026657 AC |
4462 | |
4463 | fi | |
4464 | fi | |
4465 | CC=$ac_cv_prog_CC | |
4466 | if test -n "$CC"; then | |
81ecdfbb RW |
4467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4468 | $as_echo "$CC" >&6; } | |
b7026657 | 4469 | else |
81ecdfbb RW |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4471 | $as_echo "no" >&6; } | |
b7026657 AC |
4472 | fi |
4473 | ||
b7026657 | 4474 | |
81ecdfbb | 4475 | fi |
b7026657 AC |
4476 | fi |
4477 | if test -z "$CC"; then | |
4478 | # Extract the first word of "cc", so it can be a program name with args. | |
4479 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4481 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 4482 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4483 | $as_echo_n "(cached) " >&6 |
c906108c SS |
4484 | else |
4485 | if test -n "$CC"; then | |
4486 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4487 | else | |
c906108c | 4488 | ac_prog_rejected=no |
b7026657 AC |
4489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4490 | for as_dir in $PATH | |
4491 | do | |
4492 | IFS=$as_save_IFS | |
4493 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4494 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 4495 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
4496 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4497 | ac_prog_rejected=yes | |
4498 | continue | |
4499 | fi | |
4500 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4502 | break 2 |
4503 | fi | |
4504 | done | |
81ecdfbb RW |
4505 | done |
4506 | IFS=$as_save_IFS | |
b7026657 | 4507 | |
c906108c SS |
4508 | if test $ac_prog_rejected = yes; then |
4509 | # We found a bogon in the path, so make sure we never use it. | |
4510 | set dummy $ac_cv_prog_CC | |
4511 | shift | |
b7026657 | 4512 | if test $# != 0; then |
c906108c SS |
4513 | # We chose a different compiler from the bogus one. |
4514 | # However, it has the same basename, so the bogon will be chosen | |
4515 | # first if we set CC to just the basename; use the full file name. | |
4516 | shift | |
b7026657 | 4517 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
4518 | fi |
4519 | fi | |
4520 | fi | |
4521 | fi | |
b7026657 | 4522 | CC=$ac_cv_prog_CC |
c906108c | 4523 | if test -n "$CC"; then |
81ecdfbb RW |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4525 | $as_echo "$CC" >&6; } | |
c906108c | 4526 | else |
81ecdfbb RW |
4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4528 | $as_echo "no" >&6; } | |
c906108c SS |
4529 | fi |
4530 | ||
81ecdfbb | 4531 | |
b7026657 AC |
4532 | fi |
4533 | if test -z "$CC"; then | |
4534 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4535 | for ac_prog in cl.exe |
b7026657 AC |
4536 | do |
4537 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4538 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4540 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 4541 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 4542 | $as_echo_n "(cached) " >&6 |
c906108c SS |
4543 | else |
4544 | if test -n "$CC"; then | |
4545 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4546 | else | |
b7026657 AC |
4547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4548 | for as_dir in $PATH | |
4549 | do | |
4550 | IFS=$as_save_IFS | |
4551 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4552 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 4553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 4554 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4556 | break 2 |
4557 | fi | |
4558 | done | |
81ecdfbb RW |
4559 | done |
4560 | IFS=$as_save_IFS | |
b7026657 AC |
4561 | |
4562 | fi | |
4563 | fi | |
4564 | CC=$ac_cv_prog_CC | |
4565 | if test -n "$CC"; then | |
81ecdfbb RW |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4567 | $as_echo "$CC" >&6; } | |
b7026657 | 4568 | else |
81ecdfbb RW |
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4570 | $as_echo "no" >&6; } | |
b7026657 AC |
4571 | fi |
4572 | ||
81ecdfbb | 4573 | |
b7026657 AC |
4574 | test -n "$CC" && break |
4575 | done | |
4576 | fi | |
4577 | if test -z "$CC"; then | |
4578 | ac_ct_CC=$CC | |
81ecdfbb | 4579 | for ac_prog in cl.exe |
b7026657 AC |
4580 | do |
4581 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4582 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4584 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 4585 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 4586 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
4587 | else |
4588 | if test -n "$ac_ct_CC"; then | |
4589 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4590 | else | |
4591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4592 | for as_dir in $PATH | |
4593 | do | |
4594 | IFS=$as_save_IFS | |
4595 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4596 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 4597 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 4598 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4600 | break 2 |
4601 | fi | |
4602 | done | |
81ecdfbb RW |
4603 | done |
4604 | IFS=$as_save_IFS | |
b7026657 AC |
4605 | |
4606 | fi | |
4607 | fi | |
4608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4609 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4611 | $as_echo "$ac_ct_CC" >&6; } | |
b7026657 | 4612 | else |
81ecdfbb RW |
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4614 | $as_echo "no" >&6; } | |
b7026657 AC |
4615 | fi |
4616 | ||
81ecdfbb | 4617 | |
b7026657 AC |
4618 | test -n "$ac_ct_CC" && break |
4619 | done | |
4620 | ||
81ecdfbb RW |
4621 | if test "x$ac_ct_CC" = x; then |
4622 | CC="" | |
4623 | else | |
4624 | case $cross_compiling:$ac_tool_warned in | |
4625 | yes:) | |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4627 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4628 | ac_tool_warned=yes ;; | |
4629 | esac | |
4630 | CC=$ac_ct_CC | |
4631 | fi | |
b7026657 AC |
4632 | fi |
4633 | ||
4634 | fi | |
4635 | ||
4636 | ||
81ecdfbb RW |
4637 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
4639 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4640 | See \`config.log' for more details" "$LINENO" 5; } | |
b7026657 AC |
4641 | |
4642 | # Provide some information about the compiler. | |
81ecdfbb RW |
4643 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4644 | set X $ac_compile | |
4645 | ac_compiler=$2 | |
4646 | for ac_option in --version -v -V -qversion; do | |
4647 | { { ac_try="$ac_compiler $ac_option >&5" | |
4648 | case "(($ac_try" in | |
4649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4650 | *) ac_try_echo=$ac_try;; | |
4651 | esac | |
4652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4653 | $as_echo "$ac_try_echo"; } >&5 | |
4654 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b7026657 | 4655 | ac_status=$? |
81ecdfbb RW |
4656 | if test -s conftest.err; then |
4657 | sed '10a\ | |
4658 | ... rest of stderr output deleted ... | |
4659 | 10q' conftest.err >conftest.er1 | |
4660 | cat conftest.er1 >&5 | |
81ecdfbb | 4661 | fi |
63a9e923 | 4662 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
4663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4664 | test $ac_status = 0; } | |
4665 | done | |
b7026657 | 4666 | |
81ecdfbb | 4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
4668 | /* end confdefs.h. */ |
4669 | ||
4670 | int | |
4671 | main () | |
4672 | { | |
4673 | ||
4674 | ; | |
4675 | return 0; | |
4676 | } | |
4677 | _ACEOF | |
4678 | ac_clean_files_save=$ac_clean_files | |
63a9e923 | 4679 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b7026657 AC |
4680 | # Try to create an executable without -o first, disregard a.out. |
4681 | # It will help us diagnose broken compilers, and finding out an intuition | |
4682 | # of exeext. | |
63a9e923 SM |
4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4684 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
4685 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4686 | ||
4687 | # The possible output files: | |
4688 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4689 | ||
4690 | ac_rmfiles= | |
4691 | for ac_file in $ac_files | |
4692 | do | |
4693 | case $ac_file in | |
4694 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4695 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4696 | esac | |
4697 | done | |
4698 | rm -f $ac_rmfiles | |
4699 | ||
4700 | if { { ac_try="$ac_link_default" | |
4701 | case "(($ac_try" in | |
4702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4703 | *) ac_try_echo=$ac_try;; | |
4704 | esac | |
4705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4706 | $as_echo "$ac_try_echo"; } >&5 | |
4707 | (eval "$ac_link_default") 2>&5 | |
4708 | ac_status=$? | |
4709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4710 | test $ac_status = 0; }; then : | |
4711 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4712 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4713 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4714 | # so that the user can short-circuit this test for compilers unknown to | |
4715 | # Autoconf. | |
4716 | for ac_file in $ac_files '' | |
b7026657 AC |
4717 | do |
4718 | test -f "$ac_file" || continue | |
4719 | case $ac_file in | |
81ecdfbb | 4720 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
4721 | ;; |
4722 | [ab].out ) | |
4723 | # We found the default executable, but exeext='' is most | |
4724 | # certainly right. | |
4725 | break;; | |
4726 | *.* ) | |
81ecdfbb RW |
4727 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4728 | then :; else | |
4729 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4730 | fi | |
4731 | # We set ac_cv_exeext here because the later test for it is not | |
4732 | # safe: cross compilers may not add the suffix if given an `-o' | |
4733 | # argument, so we may need to know it at that point already. | |
4734 | # Even if this section looks crufty: it has the advantage of | |
4735 | # actually working. | |
b7026657 AC |
4736 | break;; |
4737 | * ) | |
4738 | break;; | |
4739 | esac | |
4740 | done | |
81ecdfbb RW |
4741 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4742 | ||
b7026657 | 4743 | else |
81ecdfbb RW |
4744 | ac_file='' |
4745 | fi | |
81ecdfbb | 4746 | if test -z "$ac_file"; then : |
63a9e923 SM |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4748 | $as_echo "no" >&6; } | |
4749 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
4750 | sed 's/^/| /' conftest.$ac_ext >&5 |
4751 | ||
81ecdfbb RW |
4752 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4753 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
4754 | as_fn_error 77 "C compiler cannot create executables |
4755 | See \`config.log' for more details" "$LINENO" 5; } | |
4756 | else | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4758 | $as_echo "yes" >&6; } | |
b7026657 | 4759 | fi |
63a9e923 SM |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4761 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4763 | $as_echo "$ac_file" >&6; } | |
b7026657 | 4764 | ac_exeext=$ac_cv_exeext |
b7026657 | 4765 | |
63a9e923 | 4766 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 4767 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4769 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4770 | if { { ac_try="$ac_link" | |
4771 | case "(($ac_try" in | |
4772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4773 | *) ac_try_echo=$ac_try;; | |
4774 | esac | |
4775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4776 | $as_echo "$ac_try_echo"; } >&5 | |
4777 | (eval "$ac_link") 2>&5 | |
b7026657 | 4778 | ac_status=$? |
81ecdfbb RW |
4779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4780 | test $ac_status = 0; }; then : | |
b7026657 AC |
4781 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4782 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4783 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4784 | # `rm'. | |
4785 | for ac_file in conftest.exe conftest conftest.*; do | |
4786 | test -f "$ac_file" || continue | |
4787 | case $ac_file in | |
81ecdfbb | 4788 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 4789 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
4790 | break;; |
4791 | * ) break;; | |
4792 | esac | |
4793 | done | |
c906108c | 4794 | else |
81ecdfbb RW |
4795 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4796 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
4797 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4798 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 4799 | fi |
63a9e923 | 4800 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4802 | $as_echo "$ac_cv_exeext" >&6; } | |
c906108c | 4803 | |
b7026657 AC |
4804 | rm -f conftest.$ac_ext |
4805 | EXEEXT=$ac_cv_exeext | |
4806 | ac_exeext=$EXEEXT | |
63a9e923 SM |
4807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4808 | /* end confdefs.h. */ | |
4809 | #include <stdio.h> | |
4810 | int | |
4811 | main () | |
4812 | { | |
4813 | FILE *f = fopen ("conftest.out", "w"); | |
4814 | return ferror (f) || fclose (f) != 0; | |
4815 | ||
4816 | ; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
4820 | ac_clean_files="$ac_clean_files conftest.out" | |
4821 | # Check that the compiler produces executables we can run. If not, either | |
4822 | # the compiler is broken, or we cross compile. | |
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4824 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4825 | if test "$cross_compiling" != yes; then | |
4826 | { { ac_try="$ac_link" | |
4827 | case "(($ac_try" in | |
4828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4829 | *) ac_try_echo=$ac_try;; | |
4830 | esac | |
4831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4832 | $as_echo "$ac_try_echo"; } >&5 | |
4833 | (eval "$ac_link") 2>&5 | |
4834 | ac_status=$? | |
4835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4836 | test $ac_status = 0; } | |
4837 | if { ac_try='./conftest$ac_cv_exeext' | |
4838 | { { case "(($ac_try" in | |
4839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4840 | *) ac_try_echo=$ac_try;; | |
4841 | esac | |
4842 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4843 | $as_echo "$ac_try_echo"; } >&5 | |
4844 | (eval "$ac_try") 2>&5 | |
4845 | ac_status=$? | |
4846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4847 | test $ac_status = 0; }; }; then | |
4848 | cross_compiling=no | |
4849 | else | |
4850 | if test "$cross_compiling" = maybe; then | |
4851 | cross_compiling=yes | |
4852 | else | |
4853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4855 | as_fn_error $? "cannot run C compiled programs. | |
4856 | If you meant to cross compile, use \`--host'. | |
4857 | See \`config.log' for more details" "$LINENO" 5; } | |
4858 | fi | |
4859 | fi | |
4860 | fi | |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4862 | $as_echo "$cross_compiling" >&6; } | |
4863 | ||
4864 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4865 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4867 | $as_echo_n "checking for suffix of object files... " >&6; } | |
63a9e923 | 4868 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 4869 | $as_echo_n "(cached) " >&6 |
b7026657 | 4870 | else |
81ecdfbb | 4871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
4872 | /* end confdefs.h. */ |
4873 | ||
4874 | int | |
4875 | main () | |
4876 | { | |
4877 | ||
4878 | ; | |
4879 | return 0; | |
4880 | } | |
4881 | _ACEOF | |
4882 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4883 | if { { ac_try="$ac_compile" |
4884 | case "(($ac_try" in | |
4885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4886 | *) ac_try_echo=$ac_try;; | |
4887 | esac | |
4888 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4889 | $as_echo "$ac_try_echo"; } >&5 | |
4890 | (eval "$ac_compile") 2>&5 | |
4891 | ac_status=$? | |
4892 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4893 | test $ac_status = 0; }; then : | |
4894 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4895 | test -f "$ac_file" || continue; | |
b7026657 | 4896 | case $ac_file in |
81ecdfbb | 4897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
4898 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4899 | break;; | |
4900 | esac | |
4901 | done | |
c906108c | 4902 | else |
81ecdfbb | 4903 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 | 4904 | sed 's/^/| /' conftest.$ac_ext >&5 |
c906108c | 4905 | |
81ecdfbb RW |
4906 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4907 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
4908 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4909 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 4910 | fi |
b7026657 AC |
4911 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4912 | fi | |
81ecdfbb RW |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4914 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
4915 | OBJEXT=$ac_cv_objext |
4916 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4918 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
63a9e923 | 4919 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4920 | $as_echo_n "(cached) " >&6 |
c906108c | 4921 | else |
81ecdfbb | 4922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
4923 | /* end confdefs.h. */ |
4924 | ||
4925 | int | |
4926 | main () | |
4927 | { | |
4928 | #ifndef __GNUC__ | |
4929 | choke me | |
c906108c | 4930 | #endif |
c906108c | 4931 | |
b7026657 AC |
4932 | ; |
4933 | return 0; | |
4934 | } | |
4935 | _ACEOF | |
81ecdfbb | 4936 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 AC |
4937 | ac_compiler_gnu=yes |
4938 | else | |
81ecdfbb | 4939 | ac_compiler_gnu=no |
b7026657 | 4940 | fi |
81ecdfbb | 4941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 AC |
4942 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4943 | ||
4944 | fi | |
81ecdfbb RW |
4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4946 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4947 | if test $ac_compiler_gnu = yes; then | |
4948 | GCC=yes | |
4949 | else | |
4950 | GCC= | |
4951 | fi | |
b7026657 AC |
4952 | ac_test_CFLAGS=${CFLAGS+set} |
4953 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4955 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
63a9e923 | 4956 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4957 | $as_echo_n "(cached) " >&6 |
4958 | else | |
4959 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4960 | ac_c_werror_flag=yes | |
4961 | ac_cv_prog_cc_g=no | |
4962 | CFLAGS="-g" | |
4963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 4964 | /* end confdefs.h. */ |
c906108c | 4965 | |
b7026657 AC |
4966 | int |
4967 | main () | |
4968 | { | |
c906108c | 4969 | |
b7026657 AC |
4970 | ; |
4971 | return 0; | |
4972 | } | |
4973 | _ACEOF | |
81ecdfbb | 4974 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
4975 | ac_cv_prog_cc_g=yes |
4976 | else | |
81ecdfbb RW |
4977 | CFLAGS="" |
4978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4979 | /* end confdefs.h. */ | |
4980 | ||
4981 | int | |
4982 | main () | |
4983 | { | |
4984 | ||
4985 | ; | |
4986 | return 0; | |
4987 | } | |
4988 | _ACEOF | |
4989 | if ac_fn_c_try_compile "$LINENO"; then : | |
4990 | ||
4991 | else | |
4992 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4993 | CFLAGS="-g" | |
4994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4995 | /* end confdefs.h. */ | |
4996 | ||
4997 | int | |
4998 | main () | |
4999 | { | |
c906108c | 5000 | |
81ecdfbb RW |
5001 | ; |
5002 | return 0; | |
5003 | } | |
5004 | _ACEOF | |
5005 | if ac_fn_c_try_compile "$LINENO"; then : | |
5006 | ac_cv_prog_cc_g=yes | |
5007 | fi | |
5008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5009 | fi | |
5010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 5011 | fi |
81ecdfbb RW |
5012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5013 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b7026657 | 5014 | fi |
81ecdfbb RW |
5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
5016 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 5017 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 5018 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
5019 | elif test $ac_cv_prog_cc_g = yes; then |
5020 | if test "$GCC" = yes; then | |
5021 | CFLAGS="-g -O2" | |
5022 | else | |
5023 | CFLAGS="-g" | |
5024 | fi | |
5025 | else | |
5026 | if test "$GCC" = yes; then | |
5027 | CFLAGS="-O2" | |
5028 | else | |
5029 | CFLAGS= | |
5030 | fi | |
5031 | fi | |
81ecdfbb RW |
5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
5033 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
63a9e923 | 5034 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 5035 | $as_echo_n "(cached) " >&6 |
b7026657 | 5036 | else |
81ecdfbb | 5037 | ac_cv_prog_cc_c89=no |
b7026657 | 5038 | ac_save_CC=$CC |
81ecdfbb | 5039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
5040 | /* end confdefs.h. */ |
5041 | #include <stdarg.h> | |
5042 | #include <stdio.h> | |
63a9e923 | 5043 | struct stat; |
b7026657 AC |
5044 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5045 | struct buf { int x; }; | |
5046 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5047 | static char *e (p, i) | |
5048 | char **p; | |
5049 | int i; | |
5050 | { | |
5051 | return p[i]; | |
5052 | } | |
5053 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5054 | { | |
5055 | char *s; | |
5056 | va_list v; | |
5057 | va_start (v,p); | |
5058 | s = g (p, va_arg (v,int)); | |
5059 | va_end (v); | |
5060 | return s; | |
5061 | } | |
c906108c | 5062 | |
b7026657 AC |
5063 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
5064 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5065 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 5066 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
5067 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5068 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 5069 | that's true only with -std. */ |
b7026657 AC |
5070 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
5071 | ||
81ecdfbb RW |
5072 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5073 | inside strings and character constants. */ | |
5074 | #define FOO(x) 'x' | |
5075 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5076 | ||
b7026657 AC |
5077 | int test (int i, double x); |
5078 | struct s1 {int (*f) (int a);}; | |
5079 | struct s2 {int (*f) (double a);}; | |
5080 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5081 | int argc; | |
5082 | char **argv; | |
5083 | int | |
5084 | main () | |
5085 | { | |
5086 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5087 | ; | |
5088 | return 0; | |
5089 | } | |
5090 | _ACEOF | |
81ecdfbb RW |
5091 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5092 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
5093 | do |
5094 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
5095 | if ac_fn_c_try_compile "$LINENO"; then : |
5096 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 5097 | fi |
81ecdfbb RW |
5098 | rm -f core conftest.err conftest.$ac_objext |
5099 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 5100 | done |
81ecdfbb | 5101 | rm -f conftest.$ac_ext |
b7026657 | 5102 | CC=$ac_save_CC |
c906108c | 5103 | |
c906108c | 5104 | fi |
81ecdfbb RW |
5105 | # AC_CACHE_VAL |
5106 | case "x$ac_cv_prog_cc_c89" in | |
5107 | x) | |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5109 | $as_echo "none needed" >&6; } ;; | |
5110 | xno) | |
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5112 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 5113 | *) |
81ecdfbb RW |
5114 | CC="$CC $ac_cv_prog_cc_c89" |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5116 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 5117 | esac |
81ecdfbb | 5118 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 5119 | |
c906108c | 5120 | fi |
b7026657 | 5121 | |
b7026657 AC |
5122 | ac_ext=c |
5123 | ac_cpp='$CPP $CPPFLAGS' | |
5124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5127 | ||
5128 | ||
5129 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
5130 | if test "x$cross_compiling" = "xno"; then | |
5131 | CC_FOR_BUILD='$(CC)' | |
c906108c | 5132 | else |
b7026657 | 5133 | CC_FOR_BUILD=gcc |
c906108c | 5134 | fi |
4b164edf | 5135 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} |
c906108c | 5136 | |
b7026657 | 5137 | ALL_LINGUAS= |
20e95c23 DJ |
5138 | # If we haven't got the data from the intl directory, |
5139 | # assume NLS is disabled. | |
5140 | USE_NLS=no | |
5141 | LIBINTL= | |
5142 | LIBINTL_DEP= | |
5143 | INCINTL= | |
5144 | XGETTEXT= | |
5145 | GMSGFMT= | |
5146 | POSUB= | |
e85e3205 | 5147 | |
29035cbe NH |
5148 | if test -f ../../intl/config.intl; then |
5149 | . ../../intl/config.intl | |
20e95c23 | 5150 | fi |
81ecdfbb RW |
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
5152 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
20e95c23 | 5153 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5155 | $as_echo "no" >&6; } | |
c906108c | 5156 | else |
81ecdfbb RW |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5158 | $as_echo "yes" >&6; } | |
c906108c | 5159 | |
81ecdfbb | 5160 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
20e95c23 DJ |
5161 | |
5162 | ||
81ecdfbb RW |
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
5164 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
20e95c23 DJ |
5165 | # Look for .po and .gmo files in the source directory. |
5166 | CATALOGS= | |
5167 | XLINGUAS= | |
5168 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5169 | # If there aren't any .gmo files the shell will give us the | |
5170 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5171 | # weeded out. | |
5172 | case "$cat" in *\**) | |
5173 | continue;; | |
5174 | esac | |
5175 | # The quadruple backslash is collapsed to a double backslash | |
5176 | # by the backticks, then collapsed again by the double quotes, | |
5177 | # leaving us with one backslash in the sed expression (right | |
5178 | # before the dot that mustn't act as a wildcard). | |
5179 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5180 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5181 | # The user is allowed to set LINGUAS to a list of languages to | |
5182 | # install catalogs for. If it's empty that means "all of them." | |
5183 | if test "x$LINGUAS" = x; then | |
5184 | CATALOGS="$CATALOGS $cat" | |
5185 | XLINGUAS="$XLINGUAS $lang" | |
5186 | else | |
5187 | case "$LINGUAS" in *$lang*) | |
5188 | CATALOGS="$CATALOGS $cat" | |
5189 | XLINGUAS="$XLINGUAS $lang" | |
5190 | ;; | |
5191 | esac | |
5192 | fi | |
5193 | done | |
5194 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
5196 | $as_echo "$LINGUAS" >&6; } | |
20e95c23 DJ |
5197 | |
5198 | ||
5199 | DATADIRNAME=share | |
5200 | ||
5201 | INSTOBJEXT=.mo | |
5202 | ||
5203 | GENCAT=gencat | |
5204 | ||
5205 | CATOBJEXT=.gmo | |
b7026657 | 5206 | |
c906108c | 5207 | fi |
20e95c23 DJ |
5208 | |
5209 | ||
81ecdfbb RW |
5210 | # Check whether --enable-sim-alignment was given. |
5211 | if test "${enable_sim_alignment+set}" = set; then : | |
5212 | enableval=$enable_sim_alignment; case "${enableval}" in | |
20e95c23 DJ |
5213 | yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; |
5214 | no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
5215 | 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";; | |
63a9e923 | 5216 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";; |
20e95c23 DJ |
5217 | esac |
5218 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
5219 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
c906108c | 5220 | fi |
c906108c | 5221 | else |
20e95c23 | 5222 | sim_alignment="" |
81ecdfbb | 5223 | fi |
20e95c23 | 5224 | |
81ecdfbb | 5225 | |
ce39bd38 MF |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 |
5227 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
5228 | sim_assert="1" | |
81ecdfbb RW |
5229 | # Check whether --enable-sim-assert was given. |
5230 | if test "${enable_sim_assert+set}" = set; then : | |
5231 | enableval=$enable_sim_assert; case "${enableval}" in | |
ce39bd38 MF |
5232 | yes) sim_assert="1";; |
5233 | no) sim_assert="0";; | |
63a9e923 | 5234 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; |
20e95c23 | 5235 | esac |
81ecdfbb | 5236 | fi |
b7026657 | 5237 | |
ce39bd38 MF |
5238 | cat >>confdefs.h <<_ACEOF |
5239 | #define WITH_ASSERT $sim_assert | |
5240 | _ACEOF | |
5241 | ||
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
5243 | $as_echo "$sim_assert" >&6; } | |
5244 | ||
81ecdfbb RW |
5245 | |
5246 | # Check whether --enable-sim-bitsize was given. | |
5247 | if test "${enable_sim_bitsize+set}" = set; then : | |
5248 | enableval=$enable_sim_bitsize; case "${enableval}" in | |
20e95c23 | 5249 | 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";; |
63a9e923 | 5250 | *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";; |
20e95c23 DJ |
5251 | esac |
5252 | if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then | |
5253 | echo "Setting bitsize flags = $sim_bitsize" 6>&1 | |
c906108c | 5254 | fi |
b7026657 | 5255 | else |
20e95c23 | 5256 | sim_bitsize="" |
81ecdfbb | 5257 | fi |
20e95c23 | 5258 | |
81ecdfbb | 5259 | |
81ecdfbb RW |
5260 | # Check whether --enable-sim-config was given. |
5261 | if test "${enable_sim_config+set}" = set; then : | |
5262 | enableval=$enable_sim_config; case "${enableval}" in | |
63a9e923 | 5263 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;; |
20e95c23 DJ |
5264 | *) if test -f "${srcdir}/${enableval}"; then |
5265 | sim_config="${enableval}"; | |
5266 | elif test -f "${srcdir}/${enableval}-config.h"; then | |
5267 | sim_config="${enableval}-config.h" | |
5268 | else | |
63a9e923 | 5269 | as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5; |
20e95c23 DJ |
5270 | sim_config=std-config.h |
5271 | fi;; | |
5272 | esac | |
5273 | if test x"$silent" != x"yes" && test x"$sim_config" != x""; then | |
5274 | echo "Setting config flags = $sim_config" 6>&1 | |
b7026657 | 5275 | fi |
b7026657 | 5276 | else |
20e95c23 DJ |
5277 | sim_config="std-config.h" |
5278 | if test x"$silent" != x"yes"; then | |
5279 | echo "Setting config flags = $sim_config" 6>&1 | |
b7026657 | 5280 | fi |
81ecdfbb RW |
5281 | fi |
5282 | ||
c906108c | 5283 | |
81ecdfbb RW |
5284 | # Check whether --enable-sim-decode-mechanism was given. |
5285 | if test "${enable_sim_decode_mechanism+set}" = set; then : | |
5286 | enableval=$enable_sim_decode_mechanism; case "${enableval}" in | |
63a9e923 | 5287 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;; |
20e95c23 | 5288 | array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";; |
63a9e923 | 5289 | *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5; |
20e95c23 DJ |
5290 | sim_decode_mechanism="switch";; |
5291 | esac | |
5292 | if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then | |
5293 | echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1 | |
5294 | fi | |
b7026657 | 5295 | else |
20e95c23 DJ |
5296 | sim_decode_mechanism="" |
5297 | if test x"$silent" != x"yes"; then | |
5298 | echo "Setting decode mechanism flags = $sim_decode_mechanism" | |
b7026657 | 5299 | fi |
81ecdfbb RW |
5300 | fi |
5301 | ||
b7026657 | 5302 | |
81ecdfbb RW |
5303 | # Check whether --enable-sim-default-model was given. |
5304 | if test "${enable_sim_default_model+set}" = set; then : | |
5305 | enableval=$enable_sim_default_model; case "${enableval}" in | |
63a9e923 | 5306 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;; |
20e95c23 DJ |
5307 | *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";; |
5308 | esac | |
5309 | if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then | |
5310 | echo "Setting default-model flags = $sim_default_model" 6>&1 | |
5311 | fi | |
5312 | else | |
5313 | sim_default_model="" | |
81ecdfbb RW |
5314 | fi |
5315 | ||
b7026657 | 5316 | |
81ecdfbb RW |
5317 | # Check whether --enable-sim-duplicate was given. |
5318 | if test "${enable_sim_duplicate+set}" = set; then : | |
5319 | enableval=$enable_sim_duplicate; case "${enableval}" in | |
20e95c23 DJ |
5320 | yes) sim_dup="-E";; |
5321 | no) sim_dup="";; | |
63a9e923 | 5322 | *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";; |
20e95c23 DJ |
5323 | esac |
5324 | if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then | |
5325 | echo "Setting duplicate flags = $sim_dup" 6>&1 | |
5326 | fi | |
b7026657 | 5327 | else |
20e95c23 DJ |
5328 | sim_dup="-E" |
5329 | if test x"$silent" != x"yes"; then | |
5330 | echo "Setting duplicate flags = $sim_dup" 6>&1 | |
5331 | fi | |
81ecdfbb RW |
5332 | fi |
5333 | ||
20e95c23 | 5334 | |
81ecdfbb RW |
5335 | # Check whether --enable-sim-endian was given. |
5336 | if test "${enable_sim_endian+set}" = set; then : | |
5337 | enableval=$enable_sim_endian; case "${enableval}" in | |
20e95c23 DJ |
5338 | yes) case "$target" in |
5339 | *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
5340 | *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
5341 | *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";; | |
5342 | esac;; | |
5343 | no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";; | |
5344 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
5345 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
63a9e923 | 5346 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";; |
20e95c23 DJ |
5347 | esac |
5348 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
5349 | echo "Setting endian flags = $sim_endian" 6>&1 | |
5350 | fi | |
5351 | else | |
5352 | sim_endian="" | |
81ecdfbb RW |
5353 | fi |
5354 | ||
20e95c23 | 5355 | |
ce39bd38 MF |
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
5357 | $as_echo_n "checking default sim environment setting... " >&6; } | |
5358 | sim_env="0" | |
81ecdfbb RW |
5359 | # Check whether --enable-sim-env was given. |
5360 | if test "${enable_sim_env+set}" = set; then : | |
5361 | enableval=$enable_sim_env; case "${enableval}" in | |
ce39bd38 MF |
5362 | operating | os | oea) sim_env="OPERATING_ENVIRONMENT";; |
5363 | virtual | vea) sim_env="VIRTUAL_ENVIRONMENT";; | |
5364 | user | uea) sim_env="USER_ENVIRONMENT";; | |
5365 | no) sim_env="0";; | |
63a9e923 | 5366 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-env" "$LINENO" 5;; |
20e95c23 | 5367 | esac |
81ecdfbb RW |
5368 | fi |
5369 | ||
ce39bd38 MF |
5370 | cat >>confdefs.h <<_ACEOF |
5371 | #define WITH_ENVIRONMENT $sim_env | |
5372 | _ACEOF | |
5373 | ||
5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_env" >&5 | |
5375 | $as_echo "$sim_env" >&6; } | |
5376 | ||
81ecdfbb RW |
5377 | |
5378 | # Check whether --enable-sim-filter was given. | |
5379 | if test "${enable_sim_filter+set}" = set; then : | |
5380 | enableval=$enable_sim_filter; case "${enableval}" in | |
63a9e923 | 5381 | yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";; |
20e95c23 DJ |
5382 | no) sim_filter="";; |
5383 | *) sim_filter="-F $enableval";; | |
5384 | esac | |
5385 | if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then | |
5386 | echo "Setting filter flags = $sim_filter" 6>&1 | |
5387 | fi | |
5388 | else | |
5389 | sim_filter="-F 32,f,o" | |
5390 | if test x"$silent" != x"yes"; then | |
5391 | echo "Setting filter flags = $sim_filter" 6>&1 | |
5392 | fi | |
81ecdfbb | 5393 | fi |
20e95c23 | 5394 | |
81ecdfbb RW |
5395 | |
5396 | # Check whether --enable-sim-float was given. | |
5397 | if test "${enable_sim_float+set}" = set; then : | |
5398 | enableval=$enable_sim_float; case "${enableval}" in | |
20e95c23 DJ |
5399 | yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";; |
5400 | no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; | |
5401 | altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;; | |
5402 | *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;; | |
63a9e923 | 5403 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";; |
20e95c23 DJ |
5404 | esac |
5405 | if test x"$silent" != x"yes" && test x"$sim_float" != x""; then | |
5406 | echo "Setting float flags = $sim_float" 6>&1 | |
5407 | fi | |
5408 | else | |
5409 | ||
5410 | case "${target}" in | |
5411 | *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;; | |
5412 | *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;; | |
5413 | *) sim_float="" | |
5414 | esac | |
5415 | ||
81ecdfbb RW |
5416 | fi |
5417 | ||
20e95c23 | 5418 | |
81ecdfbb RW |
5419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5 |
5420 | $as_echo_n "checking if union semun defined... " >&6; } | |
63a9e923 | 5421 | if ${ac_cv_HAS_UNION_SEMUN+:} false; then : |
81ecdfbb | 5422 | $as_echo_n "(cached) " >&6 |
00a0b122 | 5423 | else |
81ecdfbb | 5424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
5425 | /* end confdefs.h. */ |
5426 | ||
5427 | #include <sys/types.h> | |
5428 | #include <sys/ipc.h> | |
5429 | #include <sys/sem.h> | |
5430 | int | |
5431 | main () | |
5432 | { | |
5433 | union semun arg ; | |
5434 | ; | |
5435 | return 0; | |
5436 | } | |
5437 | _ACEOF | |
81ecdfbb | 5438 | if ac_fn_c_try_compile "$LINENO"; then : |
00a0b122 JS |
5439 | ac_cv_has_union_semun="yes" |
5440 | else | |
81ecdfbb | 5441 | ac_cv_has_union_semun="no" |
00a0b122 | 5442 | fi |
81ecdfbb RW |
5443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5 | |
5445 | $as_echo "$ac_cv_has_union_semun" >&6; } | |
00a0b122 JS |
5446 | |
5447 | fi | |
81ecdfbb RW |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5 |
5449 | $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; } | |
00a0b122 JS |
5450 | |
5451 | ||
5452 | if test "$ac_cv_has_union_semun" = "yes"; then | |
81ecdfbb RW |
5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5 |
5454 | $as_echo_n "checking whether System V semaphores are supported... " >&6; } | |
63a9e923 | 5455 | if ${ac_cv_sysv_sem+:} false; then : |
81ecdfbb | 5456 | $as_echo_n "(cached) " >&6 |
00a0b122 JS |
5457 | else |
5458 | ||
81ecdfbb | 5459 | if test "$cross_compiling" = yes; then : |
00a0b122 JS |
5460 | : |
5461 | else | |
81ecdfbb | 5462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
5463 | /* end confdefs.h. */ |
5464 | ||
5465 | #include <sys/types.h> | |
5466 | #include <sys/ipc.h> | |
5467 | #include <sys/sem.h> | |
5468 | int main () { | |
5469 | union semun arg ; | |
5470 | ||
5471 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); | |
5472 | if (id == -1) | |
5473 | exit(1); | |
5474 | arg.val = 0; /* avoid implicit type cast to union */ | |
5475 | if (semctl(id, 0, IPC_RMID, arg) == -1) | |
5476 | exit(1); | |
5477 | exit(0); | |
5478 | } | |
5479 | ||
5480 | _ACEOF | |
81ecdfbb | 5481 | if ac_fn_c_try_run "$LINENO"; then : |
00a0b122 JS |
5482 | ac_cv_sysv_sem="yes" |
5483 | else | |
81ecdfbb | 5484 | ac_cv_sysv_sem="no" |
00a0b122 | 5485 | fi |
81ecdfbb RW |
5486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5487 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
00a0b122 JS |
5488 | fi |
5489 | ||
81ecdfbb | 5490 | |
00a0b122 | 5491 | fi |
81ecdfbb RW |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5 |
5493 | $as_echo "$ac_cv_sysv_sem" >&6; } | |
00a0b122 | 5494 | else # semun is not defined |
81ecdfbb RW |
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5 |
5496 | $as_echo_n "checking whether System V semaphores are supported... " >&6; } | |
63a9e923 | 5497 | if ${ac_cv_sysv_sem+:} false; then : |
81ecdfbb | 5498 | $as_echo_n "(cached) " >&6 |
00a0b122 JS |
5499 | else |
5500 | ||
81ecdfbb | 5501 | if test "$cross_compiling" = yes; then : |
00a0b122 JS |
5502 | : |
5503 | else | |
81ecdfbb | 5504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
5505 | /* end confdefs.h. */ |
5506 | ||
5507 | #include <sys/types.h> | |
5508 | #include <sys/ipc.h> | |
5509 | #include <sys/sem.h> | |
5510 | union semun { | |
5511 | int val; | |
5512 | struct semid_ds *buf; | |
5513 | ushort *array; | |
5514 | }; | |
5515 | int main () { | |
5516 | union semun arg ; | |
5517 | ||
5518 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); | |
5519 | if (id == -1) | |
5520 | exit(1); | |
5521 | arg.val = 0; /* avoid implicit type cast to union */ | |
5522 | if (semctl(id, 0, IPC_RMID, arg) == -1) | |
5523 | exit(1); | |
5524 | exit(0); | |
5525 | } | |
5526 | ||
5527 | _ACEOF | |
81ecdfbb | 5528 | if ac_fn_c_try_run "$LINENO"; then : |
00a0b122 JS |
5529 | ac_cv_sysv_sem="yes" |
5530 | else | |
81ecdfbb | 5531 | ac_cv_sysv_sem="no" |
00a0b122 | 5532 | fi |
81ecdfbb RW |
5533 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5534 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
00a0b122 JS |
5535 | fi |
5536 | ||
81ecdfbb | 5537 | |
00a0b122 | 5538 | fi |
81ecdfbb RW |
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5 |
5540 | $as_echo "$ac_cv_sysv_sem" >&6; } | |
00a0b122 JS |
5541 | fi |
5542 | ||
81ecdfbb RW |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5 |
5544 | $as_echo_n "checking whether System V shared memory is supported... " >&6; } | |
63a9e923 | 5545 | if ${ac_cv_sysv_shm+:} false; then : |
81ecdfbb | 5546 | $as_echo_n "(cached) " >&6 |
00a0b122 JS |
5547 | else |
5548 | ||
81ecdfbb | 5549 | if test "$cross_compiling" = yes; then : |
00a0b122 JS |
5550 | : |
5551 | else | |
81ecdfbb | 5552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
5553 | /* end confdefs.h. */ |
5554 | ||
5555 | #include <sys/types.h> | |
5556 | #include <sys/ipc.h> | |
5557 | #include <sys/shm.h> | |
5558 | int main () { | |
5559 | int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400); | |
5560 | if (id == -1) | |
5561 | exit(1); | |
5562 | if (shmctl(id, IPC_RMID, 0) == -1) | |
5563 | exit(1); | |
5564 | exit(0); | |
5565 | } | |
5566 | ||
5567 | _ACEOF | |
81ecdfbb | 5568 | if ac_fn_c_try_run "$LINENO"; then : |
00a0b122 JS |
5569 | ac_cv_sysv_shm="yes" |
5570 | else | |
81ecdfbb | 5571 | ac_cv_sysv_shm="no" |
00a0b122 | 5572 | fi |
81ecdfbb RW |
5573 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5574 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
00a0b122 JS |
5575 | fi |
5576 | ||
81ecdfbb | 5577 | |
00a0b122 | 5578 | fi |
81ecdfbb RW |
5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5 |
5580 | $as_echo "$ac_cv_sysv_shm" >&6; } | |
00a0b122 JS |
5581 | |
5582 | if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then | |
5583 | sim_sysv_ipc_hw=",sem,shm"; | |
5584 | else | |
5585 | sim_sysv_ipc_hw=""; | |
5586 | fi | |
5587 | ||
5588 | if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then | |
bf0275b1 DE |
5589 | |
5590 | $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h | |
5591 | ||
00a0b122 JS |
5592 | fi |
5593 | ||
5594 | ||
81ecdfbb RW |
5595 | # Check whether --enable-sim-hardware was given. |
5596 | if test "${enable_sim_hardware+set}" = set; then : | |
5597 | enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}" | |
20e95c23 DJ |
5598 | case "${enableval}" in |
5599 | yes) ;; | |
63a9e923 | 5600 | no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";; |
20e95c23 DJ |
5601 | ,*) hardware="${hardware}${enableval}";; |
5602 | *,) hardware="${enableval}${hardware}";; | |
5603 | *) hardware="${enableval}"'';; | |
5604 | esac | |
5605 | sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` | |
5606 | sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'` | |
5607 | if test x"$silent" != x"yes" && test x"$hardware" != x""; then | |
5608 | echo "Setting hardware to $sim_hw_src, $sim_hw_obj" | |
5609 | fi | |
5610 | else | |
00a0b122 | 5611 | hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}" |
20e95c23 DJ |
5612 | sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` |
5613 | sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'` | |
5614 | if test x"$silent" != x"yes"; then | |
5615 | echo "Setting hardware to $sim_hw_src, $sim_hw_obj" | |
5616 | fi | |
81ecdfbb RW |
5617 | fi |
5618 | ||
5619 | # Check whether --enable-sim-hostbitsize was given. | |
5620 | if test "${enable_sim_hostbitsize+set}" = set; then : | |
5621 | enableval=$enable_sim_hostbitsize; case "${enableval}" in | |
20e95c23 | 5622 | 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";; |
63a9e923 | 5623 | *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";; |
20e95c23 DJ |
5624 | esac |
5625 | if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then | |
5626 | echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1 | |
5627 | fi | |
5628 | else | |
5629 | sim_hostbitsize="" | |
20e95c23 | 5630 | fi |
b7026657 | 5631 | |
20e95c23 | 5632 | |
20e95c23 DJ |
5633 | ac_ext=c |
5634 | ac_cpp='$CPP $CPPFLAGS' | |
5635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
5639 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
20e95c23 DJ |
5640 | # On Suns, sometimes $CPP names a directory. |
5641 | if test -n "$CPP" && test -d "$CPP"; then | |
5642 | CPP= | |
5643 | fi | |
5644 | if test -z "$CPP"; then | |
63a9e923 | 5645 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 5646 | $as_echo_n "(cached) " >&6 |
c906108c | 5647 | else |
20e95c23 DJ |
5648 | # Double quotes because CPP needs to be expanded |
5649 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5650 | do | |
81ecdfbb RW |
5651 | ac_preproc_ok=false |
5652 | for ac_c_preproc_warn_flag in '' yes | |
5653 | do | |
5654 | # Use a header file that comes with gcc, so configuring glibc | |
5655 | # with a fresh cross-compiler works. | |
5656 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5657 | # <limits.h> exists even on freestanding compilers. | |
5658 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5659 | # not just through cpp. "Syntax error" is here to catch this case. | |
5660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20e95c23 | 5661 | /* end confdefs.h. */ |
81ecdfbb RW |
5662 | #ifdef __STDC__ |
5663 | # include <limits.h> | |
20e95c23 | 5664 | #else |
81ecdfbb | 5665 | # include <assert.h> |
20e95c23 | 5666 | #endif |
81ecdfbb | 5667 | Syntax error |
20e95c23 | 5668 | _ACEOF |
81ecdfbb | 5669 | if ac_fn_c_try_cpp "$LINENO"; then : |
b7026657 | 5670 | |
81ecdfbb RW |
5671 | else |
5672 | # Broken: fails on valid input. | |
5673 | continue | |
b7026657 | 5674 | fi |
63a9e923 | 5675 | rm -f conftest.err conftest.i conftest.$ac_ext |
b7026657 | 5676 | |
81ecdfbb RW |
5677 | # OK, works on sane cases. Now check whether nonexistent headers |
5678 | # can be detected and how. | |
5679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20e95c23 | 5680 | /* end confdefs.h. */ |
81ecdfbb | 5681 | #include <ac_nonexistent.h> |
20e95c23 | 5682 | _ACEOF |
81ecdfbb RW |
5683 | if ac_fn_c_try_cpp "$LINENO"; then : |
5684 | # Broken: success on invalid input. | |
5685 | continue | |
20e95c23 | 5686 | else |
81ecdfbb RW |
5687 | # Passes both tests. |
5688 | ac_preproc_ok=: | |
5689 | break | |
20e95c23 | 5690 | fi |
63a9e923 | 5691 | rm -f conftest.err conftest.i conftest.$ac_ext |
058ad269 | 5692 | |
20e95c23 | 5693 | done |
81ecdfbb | 5694 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
63a9e923 | 5695 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
5696 | if $ac_preproc_ok; then : |
5697 | break | |
35689115 | 5698 | fi |
35689115 | 5699 | |
81ecdfbb RW |
5700 | done |
5701 | ac_cv_prog_CPP=$CPP | |
35689115 HPN |
5702 | |
5703 | fi | |
81ecdfbb RW |
5704 | CPP=$ac_cv_prog_CPP |
5705 | else | |
5706 | ac_cv_prog_CPP=$CPP | |
35689115 | 5707 | fi |
81ecdfbb RW |
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
5709 | $as_echo "$CPP" >&6; } | |
5710 | ac_preproc_ok=false | |
5711 | for ac_c_preproc_warn_flag in '' yes | |
35689115 | 5712 | do |
81ecdfbb RW |
5713 | # Use a header file that comes with gcc, so configuring glibc |
5714 | # with a fresh cross-compiler works. | |
5715 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5716 | # <limits.h> exists even on freestanding compilers. | |
5717 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5718 | # not just through cpp. "Syntax error" is here to catch this case. | |
5719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35689115 | 5720 | /* end confdefs.h. */ |
81ecdfbb RW |
5721 | #ifdef __STDC__ |
5722 | # include <limits.h> | |
5723 | #else | |
5724 | # include <assert.h> | |
5725 | #endif | |
5726 | Syntax error | |
35689115 | 5727 | _ACEOF |
81ecdfbb | 5728 | if ac_fn_c_try_cpp "$LINENO"; then : |
35689115 | 5729 | |
81ecdfbb RW |
5730 | else |
5731 | # Broken: fails on valid input. | |
5732 | continue | |
35689115 | 5733 | fi |
63a9e923 | 5734 | rm -f conftest.err conftest.i conftest.$ac_ext |
35689115 | 5735 | |
81ecdfbb RW |
5736 | # OK, works on sane cases. Now check whether nonexistent headers |
5737 | # can be detected and how. | |
5738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
35689115 | 5739 | /* end confdefs.h. */ |
81ecdfbb | 5740 | #include <ac_nonexistent.h> |
35689115 | 5741 | _ACEOF |
81ecdfbb RW |
5742 | if ac_fn_c_try_cpp "$LINENO"; then : |
5743 | # Broken: success on invalid input. | |
5744 | continue | |
35689115 | 5745 | else |
81ecdfbb RW |
5746 | # Passes both tests. |
5747 | ac_preproc_ok=: | |
5748 | break | |
35689115 | 5749 | fi |
63a9e923 | 5750 | rm -f conftest.err conftest.i conftest.$ac_ext |
35689115 | 5751 | |
81ecdfbb RW |
5752 | done |
5753 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
63a9e923 | 5754 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 5755 | if $ac_preproc_ok; then : |
35689115 | 5756 | |
35689115 | 5757 | else |
81ecdfbb RW |
5758 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5759 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
63a9e923 SM |
5760 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5761 | See \`config.log' for more details" "$LINENO" 5; } | |
35689115 | 5762 | fi |
35689115 | 5763 | |
81ecdfbb RW |
5764 | ac_ext=c |
5765 | ac_cpp='$CPP $CPPFLAGS' | |
5766 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5767 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5768 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35689115 | 5769 | |
35689115 | 5770 | |
81ecdfbb RW |
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
5772 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
63a9e923 | 5773 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb RW |
5774 | $as_echo_n "(cached) " >&6 |
5775 | else | |
5776 | if test -z "$GREP"; then | |
5777 | ac_path_GREP_found=false | |
5778 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5780 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5781 | do | |
5782 | IFS=$as_save_IFS | |
5783 | test -z "$as_dir" && as_dir=. | |
5784 | for ac_prog in grep ggrep; do | |
5785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5786 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
63a9e923 | 5787 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
5788 | # Check for GNU ac_path_GREP and select it if it is found. |
5789 | # Check for GNU $ac_path_GREP | |
5790 | case `"$ac_path_GREP" --version 2>&1` in | |
5791 | *GNU*) | |
5792 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5793 | *) | |
5794 | ac_count=0 | |
5795 | $as_echo_n 0123456789 >"conftest.in" | |
5796 | while : | |
5797 | do | |
5798 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5799 | mv "conftest.tmp" "conftest.in" | |
5800 | cp "conftest.in" "conftest.nl" | |
5801 | $as_echo 'GREP' >> "conftest.nl" | |
5802 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5803 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5804 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5805 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5806 | # Best one so far, save it but keep looking for a better one | |
5807 | ac_cv_path_GREP="$ac_path_GREP" | |
5808 | ac_path_GREP_max=$ac_count | |
5809 | fi | |
5810 | # 10*(2^10) chars as input seems more than enough | |
5811 | test $ac_count -gt 10 && break | |
5812 | done | |
5813 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5814 | esac | |
35689115 | 5815 | |
81ecdfbb RW |
5816 | $ac_path_GREP_found && break 3 |
5817 | done | |
5818 | done | |
5819 | done | |
5820 | IFS=$as_save_IFS | |
5821 | if test -z "$ac_cv_path_GREP"; then | |
63a9e923 | 5822 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
5823 | fi |
5824 | else | |
5825 | ac_cv_path_GREP=$GREP | |
35689115 HPN |
5826 | fi |
5827 | ||
81ecdfbb RW |
5828 | fi |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5830 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5831 | GREP="$ac_cv_path_GREP" | |
35689115 | 5832 | |
35689115 | 5833 | |
81ecdfbb RW |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5835 | $as_echo_n "checking for egrep... " >&6; } | |
63a9e923 | 5836 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb RW |
5837 | $as_echo_n "(cached) " >&6 |
5838 | else | |
5839 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5840 | then ac_cv_path_EGREP="$GREP -E" | |
5841 | else | |
5842 | if test -z "$EGREP"; then | |
5843 | ac_path_EGREP_found=false | |
5844 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5846 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5847 | do | |
5848 | IFS=$as_save_IFS | |
5849 | test -z "$as_dir" && as_dir=. | |
5850 | for ac_prog in egrep; do | |
5851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5852 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
63a9e923 | 5853 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
5854 | # Check for GNU ac_path_EGREP and select it if it is found. |
5855 | # Check for GNU $ac_path_EGREP | |
5856 | case `"$ac_path_EGREP" --version 2>&1` in | |
5857 | *GNU*) | |
5858 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5859 | *) | |
5860 | ac_count=0 | |
5861 | $as_echo_n 0123456789 >"conftest.in" | |
5862 | while : | |
5863 | do | |
5864 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5865 | mv "conftest.tmp" "conftest.in" | |
5866 | cp "conftest.in" "conftest.nl" | |
5867 | $as_echo 'EGREP' >> "conftest.nl" | |
5868 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5869 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5870 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5871 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5872 | # Best one so far, save it but keep looking for a better one | |
5873 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5874 | ac_path_EGREP_max=$ac_count | |
5875 | fi | |
5876 | # 10*(2^10) chars as input seems more than enough | |
5877 | test $ac_count -gt 10 && break | |
5878 | done | |
5879 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
35689115 HPN |
5880 | esac |
5881 | ||
81ecdfbb RW |
5882 | $ac_path_EGREP_found && break 3 |
5883 | done | |
5884 | done | |
5885 | done | |
5886 | IFS=$as_save_IFS | |
5887 | if test -z "$ac_cv_path_EGREP"; then | |
63a9e923 | 5888 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
5889 | fi |
5890 | else | |
5891 | ac_cv_path_EGREP=$EGREP | |
5892 | fi | |
5893 | ||
5894 | fi | |
5895 | fi | |
5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5897 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5898 | EGREP="$ac_cv_path_EGREP" | |
35689115 HPN |
5899 | |
5900 | ||
81ecdfbb RW |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
5902 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
63a9e923 | 5903 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb RW |
5904 | $as_echo_n "(cached) " >&6 |
5905 | else | |
5906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5907 | /* end confdefs.h. */ | |
5908 | #include <stdlib.h> | |
5909 | #include <stdarg.h> | |
5910 | #include <string.h> | |
5911 | #include <float.h> | |
c906108c | 5912 | |
b7026657 AC |
5913 | int |
5914 | main () | |
5915 | { | |
81ecdfbb | 5916 | |
b7026657 AC |
5917 | ; |
5918 | return 0; | |
5919 | } | |
5920 | _ACEOF | |
81ecdfbb RW |
5921 | if ac_fn_c_try_compile "$LINENO"; then : |
5922 | ac_cv_header_stdc=yes | |
b7026657 | 5923 | else |
81ecdfbb RW |
5924 | ac_cv_header_stdc=no |
5925 | fi | |
5926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 5927 | |
81ecdfbb RW |
5928 | if test $ac_cv_header_stdc = yes; then |
5929 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 5931 | /* end confdefs.h. */ |
81ecdfbb RW |
5932 | #include <string.h> |
5933 | ||
b7026657 | 5934 | _ACEOF |
81ecdfbb RW |
5935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5936 | $EGREP "memchr" >/dev/null 2>&1; then : | |
b7026657 | 5937 | |
81ecdfbb RW |
5938 | else |
5939 | ac_cv_header_stdc=no | |
b7026657 | 5940 | fi |
81ecdfbb | 5941 | rm -f conftest* |
b7026657 | 5942 | |
81ecdfbb | 5943 | fi |
b7026657 | 5944 | |
81ecdfbb RW |
5945 | if test $ac_cv_header_stdc = yes; then |
5946 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5948 | /* end confdefs.h. */ | |
5949 | #include <stdlib.h> | |
b7026657 | 5950 | |
b7026657 | 5951 | _ACEOF |
81ecdfbb RW |
5952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5953 | $EGREP "free" >/dev/null 2>&1; then : | |
c906108c | 5954 | |
81ecdfbb RW |
5955 | else |
5956 | ac_cv_header_stdc=no | |
c906108c | 5957 | fi |
81ecdfbb | 5958 | rm -f conftest* |
c906108c | 5959 | |
81ecdfbb | 5960 | fi |
c906108c | 5961 | |
81ecdfbb RW |
5962 | if test $ac_cv_header_stdc = yes; then |
5963 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5964 | if test "$cross_compiling" = yes; then : | |
5965 | : | |
b7026657 | 5966 | else |
81ecdfbb | 5967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 5968 | /* end confdefs.h. */ |
81ecdfbb RW |
5969 | #include <ctype.h> |
5970 | #include <stdlib.h> | |
5971 | #if ((' ' & 0x0FF) == 0x020) | |
5972 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5973 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5974 | #else | |
5975 | # define ISLOWER(c) \ | |
5976 | (('a' <= (c) && (c) <= 'i') \ | |
5977 | || ('j' <= (c) && (c) <= 'r') \ | |
5978 | || ('s' <= (c) && (c) <= 'z')) | |
5979 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5980 | #endif | |
b7026657 | 5981 | |
81ecdfbb | 5982 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
b7026657 AC |
5983 | int |
5984 | main () | |
5985 | { | |
81ecdfbb RW |
5986 | int i; |
5987 | for (i = 0; i < 256; i++) | |
5988 | if (XOR (islower (i), ISLOWER (i)) | |
5989 | || toupper (i) != TOUPPER (i)) | |
5990 | return 2; | |
b7026657 AC |
5991 | return 0; |
5992 | } | |
5993 | _ACEOF | |
81ecdfbb | 5994 | if ac_fn_c_try_run "$LINENO"; then : |
b7026657 | 5995 | |
81ecdfbb RW |
5996 | else |
5997 | ac_cv_header_stdc=no | |
5998 | fi | |
5999 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6000 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b7026657 | 6001 | fi |
81ecdfbb | 6002 | |
b7026657 | 6003 | fi |
b7026657 | 6004 | fi |
81ecdfbb RW |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
6006 | $as_echo "$ac_cv_header_stdc" >&6; } | |
6007 | if test $ac_cv_header_stdc = yes; then | |
b7026657 | 6008 | |
81ecdfbb | 6009 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
b7026657 | 6010 | |
81ecdfbb | 6011 | fi |
b7026657 | 6012 | |
81ecdfbb RW |
6013 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
6014 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6015 | inttypes.h stdint.h unistd.h | |
6016 | do : | |
6017 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6018 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6019 | " | |
63a9e923 | 6020 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
6021 | cat >>confdefs.h <<_ACEOF |
6022 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b7026657 | 6023 | _ACEOF |
c906108c | 6024 | |
c906108c SS |
6025 | fi |
6026 | ||
81ecdfbb RW |
6027 | done |
6028 | ||
b7026657 | 6029 | |
81ecdfbb RW |
6030 | # Check whether --enable-sim-hostendian was given. |
6031 | if test "${enable_sim_hostendian+set}" = set; then : | |
6032 | enableval=$enable_sim_hostendian; case "${enableval}" in | |
6033 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; | |
6034 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
6035 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
63a9e923 | 6036 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";; |
81ecdfbb RW |
6037 | esac |
6038 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
6039 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
6040 | fi | |
6041 | else | |
b7026657 | 6042 | |
81ecdfbb RW |
6043 | if test "x$cross_compiling" = "xno"; then |
6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
6045 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
63a9e923 | 6046 | if ${ac_cv_c_bigendian+:} false; then : |
81ecdfbb | 6047 | $as_echo_n "(cached) " >&6 |
b7026657 | 6048 | else |
81ecdfbb RW |
6049 | ac_cv_c_bigendian=unknown |
6050 | # See if we're dealing with a universal compiler. | |
6051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 6052 | /* end confdefs.h. */ |
81ecdfbb RW |
6053 | #ifndef __APPLE_CC__ |
6054 | not a universal capable compiler | |
6055 | #endif | |
6056 | typedef int dummy; | |
6057 | ||
6058 | _ACEOF | |
6059 | if ac_fn_c_try_compile "$LINENO"; then : | |
6060 | ||
6061 | # Check for potential -arch flags. It is not universal unless | |
6062 | # there are at least two -arch flags with different values. | |
6063 | ac_arch= | |
6064 | ac_prev= | |
6065 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
6066 | if test -n "$ac_prev"; then | |
6067 | case $ac_word in | |
6068 | i?86 | x86_64 | ppc | ppc64) | |
6069 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
6070 | ac_arch=$ac_word | |
6071 | else | |
6072 | ac_cv_c_bigendian=universal | |
6073 | break | |
6074 | fi | |
6075 | ;; | |
6076 | esac | |
6077 | ac_prev= | |
6078 | elif test "x$ac_word" = "x-arch"; then | |
6079 | ac_prev=arch | |
6080 | fi | |
6081 | done | |
6082 | fi | |
6083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6084 | if test $ac_cv_c_bigendian = unknown; then | |
6085 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6087 | /* end confdefs.h. */ | |
6088 | #include <sys/types.h> | |
6089 | #include <sys/param.h> | |
6090 | ||
b7026657 AC |
6091 | int |
6092 | main () | |
6093 | { | |
81ecdfbb RW |
6094 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
6095 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
6096 | && LITTLE_ENDIAN) | |
6097 | bogus endian macros | |
6098 | #endif | |
6099 | ||
b7026657 AC |
6100 | ; |
6101 | return 0; | |
6102 | } | |
6103 | _ACEOF | |
81ecdfbb RW |
6104 | if ac_fn_c_try_compile "$LINENO"; then : |
6105 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
6106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 6107 | /* end confdefs.h. */ |
81ecdfbb RW |
6108 | #include <sys/types.h> |
6109 | #include <sys/param.h> | |
6110 | ||
b7026657 AC |
6111 | int |
6112 | main () | |
6113 | { | |
81ecdfbb RW |
6114 | #if BYTE_ORDER != BIG_ENDIAN |
6115 | not big endian | |
6116 | #endif | |
6117 | ||
b7026657 AC |
6118 | ; |
6119 | return 0; | |
6120 | } | |
6121 | _ACEOF | |
81ecdfbb RW |
6122 | if ac_fn_c_try_compile "$LINENO"; then : |
6123 | ac_cv_c_bigendian=yes | |
b7026657 | 6124 | else |
81ecdfbb | 6125 | ac_cv_c_bigendian=no |
b7026657 | 6126 | fi |
81ecdfbb | 6127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6128 | fi |
81ecdfbb RW |
6129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6130 | fi | |
6131 | if test $ac_cv_c_bigendian = unknown; then | |
6132 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
6133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6134 | /* end confdefs.h. */ | |
6135 | #include <limits.h> | |
c906108c | 6136 | |
81ecdfbb RW |
6137 | int |
6138 | main () | |
6139 | { | |
6140 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
6141 | bogus endian macros | |
6142 | #endif | |
b7026657 | 6143 | |
81ecdfbb RW |
6144 | ; |
6145 | return 0; | |
6146 | } | |
b7026657 | 6147 | _ACEOF |
81ecdfbb RW |
6148 | if ac_fn_c_try_compile "$LINENO"; then : |
6149 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
6150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 6151 | /* end confdefs.h. */ |
81ecdfbb | 6152 | #include <limits.h> |
b7026657 AC |
6153 | |
6154 | int | |
6155 | main () | |
6156 | { | |
81ecdfbb RW |
6157 | #ifndef _BIG_ENDIAN |
6158 | not big endian | |
6159 | #endif | |
6160 | ||
b7026657 AC |
6161 | ; |
6162 | return 0; | |
6163 | } | |
6164 | _ACEOF | |
81ecdfbb RW |
6165 | if ac_fn_c_try_compile "$LINENO"; then : |
6166 | ac_cv_c_bigendian=yes | |
c906108c | 6167 | else |
81ecdfbb | 6168 | ac_cv_c_bigendian=no |
c906108c | 6169 | fi |
81ecdfbb | 6170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6171 | fi |
81ecdfbb RW |
6172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6173 | fi | |
6174 | if test $ac_cv_c_bigendian = unknown; then | |
6175 | # Compile a test program. | |
6176 | if test "$cross_compiling" = yes; then : | |
6177 | # Try to guess by grepping values from an object file. | |
6178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 6179 | /* end confdefs.h. */ |
81ecdfbb RW |
6180 | short int ascii_mm[] = |
6181 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6182 | short int ascii_ii[] = | |
6183 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6184 | int use_ascii (int i) { | |
6185 | return ascii_mm[i] + ascii_ii[i]; | |
6186 | } | |
6187 | short int ebcdic_ii[] = | |
6188 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6189 | short int ebcdic_mm[] = | |
6190 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6191 | int use_ebcdic (int i) { | |
6192 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
6193 | } | |
6194 | extern int foo; | |
b7026657 AC |
6195 | |
6196 | int | |
6197 | main () | |
6198 | { | |
81ecdfbb | 6199 | return use_ascii (foo) == use_ebcdic (foo); |
b7026657 AC |
6200 | ; |
6201 | return 0; | |
6202 | } | |
6203 | _ACEOF | |
81ecdfbb RW |
6204 | if ac_fn_c_try_compile "$LINENO"; then : |
6205 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
6206 | ac_cv_c_bigendian=yes | |
6207 | fi | |
6208 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6209 | if test "$ac_cv_c_bigendian" = unknown; then | |
6210 | ac_cv_c_bigendian=no | |
6211 | else | |
6212 | # finding both strings is unlikely to happen, but who knows? | |
6213 | ac_cv_c_bigendian=unknown | |
6214 | fi | |
6215 | fi | |
6216 | fi | |
6217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6218 | else | |
6219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 6220 | /* end confdefs.h. */ |
81ecdfbb | 6221 | $ac_includes_default |
b7026657 AC |
6222 | int |
6223 | main () | |
6224 | { | |
81ecdfbb RW |
6225 | |
6226 | /* Are we little or big endian? From Harbison&Steele. */ | |
6227 | union | |
6228 | { | |
6229 | long int l; | |
6230 | char c[sizeof (long int)]; | |
6231 | } u; | |
6232 | u.l = 1; | |
6233 | return u.c[sizeof (long int) - 1] == 1; | |
6234 | ||
b7026657 AC |
6235 | ; |
6236 | return 0; | |
6237 | } | |
6238 | _ACEOF | |
81ecdfbb RW |
6239 | if ac_fn_c_try_run "$LINENO"; then : |
6240 | ac_cv_c_bigendian=no | |
b7026657 | 6241 | else |
81ecdfbb RW |
6242 | ac_cv_c_bigendian=yes |
6243 | fi | |
6244 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6245 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6246 | fi | |
6247 | ||
6248 | fi | |
6249 | fi | |
6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
6251 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
6252 | case $ac_cv_c_bigendian in #( | |
6253 | yes) | |
6254 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
6255 | ;; #( | |
6256 | no) | |
6257 | ;; #( | |
6258 | universal) | |
6259 | ||
6260 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
b7026657 | 6261 | |
81ecdfbb RW |
6262 | ;; #( |
6263 | *) | |
63a9e923 | 6264 | as_fn_error $? "unknown endianness |
81ecdfbb RW |
6265 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
6266 | esac | |
6267 | ||
6268 | if test $ac_cv_c_bigendian = yes; then | |
6269 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
6270 | else | |
6271 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
6272 | fi | |
6273 | else | |
6274 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
6275 | fi | |
6276 | fi | |
6277 | ||
6278 | ||
6279 | # Check whether --enable-sim-icache was given. | |
6280 | if test "${enable_sim_icache+set}" = set; then : | |
6281 | enableval=$enable_sim_icache; icache="-R" | |
6282 | case "${enableval}" in | |
6283 | yes) icache="1024"; sim_icache="-I $icache";; | |
6284 | no) sim_icache="-R";; | |
6285 | *) icache=1024 | |
6286 | sim_icache="-" | |
6287 | for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do | |
6288 | case "$x" in | |
6289 | define) sim_icache="${sim_icache}R";; | |
6290 | semantic) sim_icache="${sim_icache}C";; | |
6291 | insn) sim_icache="${sim_icache}S";; | |
6292 | 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;; | |
63a9e923 | 6293 | *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";; |
81ecdfbb RW |
6294 | esac |
6295 | done | |
6296 | sim_icache="${sim_icache}I $icache";; | |
6297 | esac | |
6298 | if test x"$silent" != x"yes" && test x"$icache" != x""; then | |
6299 | echo "Setting instruction cache size to $icache ($sim_icache)" | |
b7026657 | 6300 | fi |
81ecdfbb RW |
6301 | else |
6302 | sim_icache="-CSRI 1024" | |
6303 | if test x"$silent" != x"yes"; then | |
6304 | echo "Setting instruction cache size to 1024 ($sim_icache)" | |
b7026657 | 6305 | fi |
b7026657 | 6306 | fi |
b7026657 AC |
6307 | |
6308 | ||
81ecdfbb RW |
6309 | # Check whether --enable-sim-inline was given. |
6310 | if test "${enable_sim_inline+set}" = set; then : | |
6311 | enableval=$enable_sim_inline; sim_inline="" | |
6312 | case "$enableval" in | |
6313 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
6314 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
6315 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";; | |
6316 | 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";; | |
6317 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6318 | new_flag="" | |
6319 | case "$x" in | |
6320 | *_INLINE=*) new_flag="-D$x";; | |
6321 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
6322 | *_INLINE) new_flag="-D$x=ALL_INLINE";; | |
6323 | *) new_flag="-D$x""_INLINE=ALL_INLINE";; | |
6324 | esac | |
6325 | if test x"$sim_inline" = x""; then | |
6326 | sim_inline="$new_flag" | |
6327 | else | |
6328 | sim_inline="$sim_inline $new_flag" | |
6329 | fi | |
6330 | done;; | |
6331 | esac | |
6332 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
6333 | echo "Setting inline flags = $sim_inline" 6>&1 | |
b7026657 | 6334 | fi |
c906108c | 6335 | else |
81ecdfbb RW |
6336 | if test x"$GCC" != ""; then |
6337 | sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS" | |
6338 | if test x"$silent" != x"yes"; then | |
6339 | echo "Setting inline flags = $sim_inline" 6>&1 | |
6340 | fi | |
c906108c | 6341 | else |
81ecdfbb | 6342 | sim_inline="" |
c906108c | 6343 | fi |
c906108c | 6344 | fi |
b7026657 | 6345 | |
c906108c | 6346 | |
81ecdfbb RW |
6347 | # Check whether --enable-sim-jump was given. |
6348 | if test "${enable_sim_jump+set}" = set; then : | |
6349 | enableval=$enable_sim_jump; case "${enableval}" in | |
6350 | yes) sim_jump="-J";; | |
6351 | no) sim_jump="";; | |
63a9e923 | 6352 | *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";; |
81ecdfbb RW |
6353 | esac |
6354 | if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then | |
6355 | echo "Setting jump flag = $sim_jump" 6>&1 | |
c906108c | 6356 | fi |
c906108c | 6357 | else |
81ecdfbb RW |
6358 | sim_jump="" |
6359 | if test x"$silent" != x"yes"; then | |
6360 | echo "Setting jump flag = $sim_jump" 6>&1 | |
c906108c | 6361 | fi |
c906108c | 6362 | fi |
c906108c | 6363 | |
b7026657 | 6364 | |
81ecdfbb RW |
6365 | # Check whether --enable-sim-line-nr was given. |
6366 | if test "${enable_sim_line_nr+set}" = set; then : | |
6367 | enableval=$enable_sim_line_nr; case "${enableval}" in | |
6368 | yes) sim_line_nr="";; | |
6369 | no) sim_line_nr="-L";; | |
63a9e923 | 6370 | *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";; |
81ecdfbb RW |
6371 | esac |
6372 | if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then | |
6373 | echo "Setting warning flags = $sim_line_nr" 6>&1 | |
c906108c | 6374 | fi |
c906108c | 6375 | else |
81ecdfbb RW |
6376 | sim_line_nr="" |
6377 | fi | |
b7026657 | 6378 | |
c906108c | 6379 | |
81ecdfbb RW |
6380 | # Check whether --enable-sim-model was given. |
6381 | if test "${enable_sim_model+set}" = set; then : | |
6382 | enableval=$enable_sim_model; case "${enableval}" in | |
63a9e923 | 6383 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;; |
81ecdfbb RW |
6384 | *) sim_model="-DWITH_MODEL=${enableval}";; |
6385 | esac | |
6386 | if test x"$silent" != x"yes" && test x"$sim_model" != x""; then | |
6387 | echo "Setting model flags = $sim_model" 6>&1 | |
6388 | fi | |
c906108c | 6389 | else |
81ecdfbb RW |
6390 | sim_model="" |
6391 | fi | |
6392 | ||
b7026657 | 6393 | |
81ecdfbb RW |
6394 | # Check whether --enable-sim-model-issue was given. |
6395 | if test "${enable_sim_model_issue+set}" = set; then : | |
6396 | enableval=$enable_sim_model_issue; case "${enableval}" in | |
6397 | yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";; | |
6398 | no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";; | |
63a9e923 | 6399 | *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";; |
81ecdfbb RW |
6400 | esac |
6401 | if test x"$silent" != x"yes"; then | |
6402 | echo "Setting model-issue flags = $sim_model_issue" 6>&1 | |
c906108c | 6403 | fi |
81ecdfbb RW |
6404 | else |
6405 | sim_model_issue="" | |
c906108c | 6406 | fi |
b7026657 | 6407 | |
81ecdfbb RW |
6408 | |
6409 | # Check whether --enable-sim-monitor was given. | |
6410 | if test "${enable_sim_monitor+set}" = set; then : | |
6411 | enableval=$enable_sim_monitor; case "${enableval}" in | |
6412 | yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";; | |
6413 | no) sim_monitor="-DWITH_MON=0";; | |
6414 | instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";; | |
6415 | memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";; | |
63a9e923 | 6416 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";; |
81ecdfbb RW |
6417 | esac |
6418 | if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then | |
6419 | echo "Setting monitor flags = $sim_monitor" 6>&1 | |
6420 | fi | |
c906108c | 6421 | else |
81ecdfbb | 6422 | sim_monitor="" |
c906108c | 6423 | fi |
c906108c | 6424 | |
81ecdfbb RW |
6425 | |
6426 | # Check whether --enable-sim-opcode was given. | |
6427 | if test "${enable_sim_opcode+set}" = set; then : | |
6428 | enableval=$enable_sim_opcode; case "${enableval}" in | |
63a9e923 | 6429 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;; |
81ecdfbb RW |
6430 | *) if test -f "${srcdir}/${enableval}"; then |
6431 | sim_opcode="${enableval}" | |
6432 | elif test -f "${srcdir}/dc-${enableval}"; then | |
6433 | sim_opcode="dc-${enableval}" | |
6434 | else | |
63a9e923 | 6435 | as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5; |
81ecdfbb RW |
6436 | sim_opcode="dc-complex" |
6437 | fi;; | |
6438 | esac | |
6439 | if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then | |
6440 | echo "Setting opcode flags = $sim_opcode" 6>&1 | |
6441 | fi | |
6442 | else | |
6443 | sim_opcode="dc-complex" | |
6444 | if test x"$silent" != x"yes"; then | |
6445 | echo "Setting opcode flags = $sim_opcode" | |
c906108c SS |
6446 | fi |
6447 | fi | |
c906108c SS |
6448 | |
6449 | ||
81ecdfbb RW |
6450 | # Check whether --enable-sim-packages was given. |
6451 | if test "${enable_sim_packages+set}" = set; then : | |
6452 | enableval=$enable_sim_packages; packages=disklabel | |
6453 | case "${enableval}" in | |
6454 | yes) ;; | |
63a9e923 | 6455 | no) as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";; |
81ecdfbb RW |
6456 | ,*) packages="${packages}${enableval}";; |
6457 | *,) packages="${enableval}${packages}";; | |
6458 | *) packages="${enableval}"'';; | |
6459 | esac | |
6460 | sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'` | |
6461 | sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'` | |
6462 | if test x"$silent" != x"yes" && test x"$packages" != x""; then | |
6463 | echo "Setting packages to $sim_pk_src, $sim_pk_obj" | |
6464 | fi | |
c906108c | 6465 | else |
81ecdfbb RW |
6466 | packages=disklabel |
6467 | sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'` | |
6468 | sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'` | |
6469 | if test x"$silent" != x"yes"; then | |
6470 | echo "Setting packages to $sim_pk_src, $sim_pk_obj" | |
b7026657 | 6471 | fi |
c906108c | 6472 | fi |
b7026657 | 6473 | |
c906108c | 6474 | |
81ecdfbb RW |
6475 | # Check whether --enable-sim-reserved-bits was given. |
6476 | if test "${enable_sim_reserved_bits+set}" = set; then : | |
6477 | enableval=$enable_sim_reserved_bits; case "${enableval}" in | |
6478 | yes) sim_reserved="-DWITH_RESERVED_BITS=1";; | |
6479 | no) sim_reserved="-DWITH_RESERVED_BITS=0";; | |
63a9e923 | 6480 | *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";; |
81ecdfbb RW |
6481 | esac |
6482 | if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then | |
6483 | echo "Setting reserved flags = $sim_reserved" 6>&1 | |
6484 | fi | |
6485 | else | |
6486 | sim_reserved="" | |
b7026657 | 6487 | fi |
81ecdfbb RW |
6488 | |
6489 | ||
6490 | # Check whether --enable-sim-smp was given. | |
6491 | if test "${enable_sim_smp+set}" = set; then : | |
6492 | enableval=$enable_sim_smp; case "${enableval}" in | |
6493 | yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";; | |
6494 | no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";; | |
6495 | *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";; | |
6496 | esac | |
6497 | if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then | |
6498 | echo "Setting smp flags = $sim_smp" 6>&1 | |
c906108c | 6499 | fi |
b7026657 | 6500 | else |
81ecdfbb RW |
6501 | sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5" |
6502 | if test x"$silent" != x"yes"; then | |
6503 | echo "Setting smp flags = $sim_smp" 6>&1 | |
6504 | fi | |
c906108c SS |
6505 | fi |
6506 | ||
c906108c | 6507 | |
ce39bd38 MF |
6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 |
6509 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
6510 | sim_stdio=0 | |
81ecdfbb RW |
6511 | # Check whether --enable-sim-stdio was given. |
6512 | if test "${enable_sim_stdio+set}" = set; then : | |
6513 | enableval=$enable_sim_stdio; case "${enableval}" in | |
ce39bd38 MF |
6514 | yes) sim_stdio="DO_USE_STDIO";; |
6515 | no) sim_stdio="DONT_USE_STDIO";; | |
63a9e923 | 6516 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; |
81ecdfbb | 6517 | esac |
81ecdfbb | 6518 | fi |
c906108c | 6519 | |
ce39bd38 MF |
6520 | cat >>confdefs.h <<_ACEOF |
6521 | #define WITH_STDIO $sim_stdio | |
6522 | _ACEOF | |
6523 | ||
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
6525 | $as_echo "$sim_stdio" >&6; } | |
6526 | ||
b7026657 | 6527 | |
81ecdfbb RW |
6528 | # Check whether --enable-sim-switch was given. |
6529 | if test "${enable_sim_switch+set}" = set; then : | |
6530 | enableval=$enable_sim_switch; case "${enableval}" in | |
6531 | yes) sim_switch="-s";; | |
6532 | no) sim_switch="";; | |
63a9e923 | 6533 | *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";; |
81ecdfbb RW |
6534 | esac |
6535 | if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then | |
6536 | echo "Setting switch flags = $sim_switch" 6>&1 | |
6537 | fi | |
6538 | else | |
6539 | sim_switch=""; | |
6540 | if test x"$silent" != x"yes"; then | |
6541 | echo "Setting switch flags = $sim_switch" 6>&1 | |
c906108c | 6542 | fi |
c906108c | 6543 | fi |
c906108c SS |
6544 | |
6545 | ||
81ecdfbb RW |
6546 | # Check whether --enable-sim-timebase was given. |
6547 | if test "${enable_sim_timebase+set}" = set; then : | |
6548 | enableval=$enable_sim_timebase; case "${enableval}" in | |
6549 | yes) sim_timebase="-DWITH_TIME_BASE=1";; | |
6550 | no) sim_timebase="-DWITH_TIME_BASE=0";; | |
63a9e923 | 6551 | *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";; |
81ecdfbb RW |
6552 | esac |
6553 | if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then | |
6554 | echo "Setting timebase flags = $sim_timebase" 6>&1 | |
6555 | fi | |
c906108c | 6556 | else |
81ecdfbb | 6557 | sim_timebase="" |
c906108c | 6558 | fi |
81ecdfbb RW |
6559 | |
6560 | ||
ce39bd38 MF |
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 |
6562 | $as_echo_n "checking for sim trace settings... " >&6; } | |
6563 | sim_trace="1" | |
81ecdfbb RW |
6564 | # Check whether --enable-sim-trace was given. |
6565 | if test "${enable_sim_trace+set}" = set; then : | |
6566 | enableval=$enable_sim_trace; case "${enableval}" in | |
ce39bd38 MF |
6567 | yes) sim_trace="1";; |
6568 | no) sim_trace="0";; | |
63a9e923 | 6569 | *) as_fn_error $? "--enable-sim-trace does not take a value" "$LINENO" 5;; |
81ecdfbb | 6570 | esac |
81ecdfbb | 6571 | fi |
b7026657 | 6572 | |
ce39bd38 MF |
6573 | cat >>confdefs.h <<_ACEOF |
6574 | #define WITH_TRACE $sim_trace | |
6575 | _ACEOF | |
6576 | ||
6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
6578 | $as_echo "$sim_trace" >&6; } | |
6579 | ||
c906108c | 6580 | |
81ecdfbb RW |
6581 | # Check whether --enable-sim-warnings was given. |
6582 | if test "${enable_sim_warnings+set}" = set; then : | |
6583 | enableval=$enable_sim_warnings; case "${enableval}" in | |
6584 | yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";; | |
6585 | no) sim_warnings="-w";; | |
6586 | *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6587 | esac | |
6588 | if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then | |
6589 | echo "Setting warning flags = $sim_warnings" 6>&1 | |
c906108c | 6590 | fi |
c906108c | 6591 | else |
81ecdfbb RW |
6592 | sim_warnings="" |
6593 | fi | |
b7026657 | 6594 | |
81ecdfbb RW |
6595 | |
6596 | # Check whether --enable-sim-xor-endian was given. | |
6597 | if test "${enable_sim_xor_endian+set}" = set; then : | |
6598 | enableval=$enable_sim_xor_endian; case "${enableval}" in | |
6599 | yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";; | |
6600 | no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";; | |
6601 | *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";; | |
6602 | esac | |
6603 | if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then | |
6604 | echo "Setting xor-endian flag = $sim_xor_endian" 6>&1 | |
6605 | fi | |
c906108c | 6606 | else |
81ecdfbb | 6607 | sim_xor_endian="" |
c906108c | 6608 | fi |
c906108c | 6609 | |
b7026657 | 6610 | |
b7026657 | 6611 | |
c906108c | 6612 | |
81ecdfbb RW |
6613 | # Check whether --with-pkgversion was given. |
6614 | if test "${with_pkgversion+set}" = set; then : | |
6615 | withval=$with_pkgversion; case "$withval" in | |
63a9e923 | 6616 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; |
81ecdfbb RW |
6617 | no) PKGVERSION= ;; |
6618 | *) PKGVERSION="($withval) " ;; | |
6619 | esac | |
6620 | else | |
6621 | PKGVERSION="(GDB) " | |
c906108c SS |
6622 | |
6623 | fi | |
6624 | ||
6625 | ||
b7026657 AC |
6626 | |
6627 | ||
6628 | ||
81ecdfbb RW |
6629 | # Check whether --with-bugurl was given. |
6630 | if test "${with_bugurl+set}" = set; then : | |
6631 | withval=$with_bugurl; case "$withval" in | |
63a9e923 | 6632 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; |
81ecdfbb RW |
6633 | no) BUGURL= |
6634 | ;; | |
6635 | *) BUGURL="$withval" | |
6636 | ;; | |
6637 | esac | |
6638 | else | |
6639 | BUGURL="http://www.gnu.org/software/gdb/bugs/" | |
b7026657 | 6640 | |
81ecdfbb | 6641 | fi |
b7026657 | 6642 | |
81ecdfbb RW |
6643 | case ${BUGURL} in |
6644 | "") | |
6645 | REPORT_BUGS_TO= | |
6646 | REPORT_BUGS_TEXI= | |
6647 | ;; | |
6648 | *) | |
6649 | REPORT_BUGS_TO="<$BUGURL>" | |
6650 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
6651 | ;; | |
6652 | esac; | |
b7026657 AC |
6653 | |
6654 | ||
6655 | ||
6656 | ||
81ecdfbb RW |
6657 | cat >>confdefs.h <<_ACEOF |
6658 | #define PKGVERSION "$PKGVERSION" | |
6659 | _ACEOF | |
b7026657 AC |
6660 | |
6661 | ||
81ecdfbb RW |
6662 | cat >>confdefs.h <<_ACEOF |
6663 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
6664 | _ACEOF | |
b7026657 AC |
6665 | |
6666 | ||
81ecdfbb RW |
6667 | # Make sure we can run config.sub. |
6668 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
63a9e923 | 6669 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
6670 | |
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
6672 | $as_echo_n "checking build system type... " >&6; } | |
63a9e923 | 6673 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
6674 | $as_echo_n "(cached) " >&6 |
6675 | else | |
6676 | ac_build_alias=$build_alias | |
6677 | test "x$ac_build_alias" = x && | |
6678 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
6679 | test "x$ac_build_alias" = x && | |
63a9e923 | 6680 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 6681 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
63a9e923 | 6682 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
6683 | |
6684 | fi | |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
6686 | $as_echo "$ac_cv_build" >&6; } | |
6687 | case $ac_cv_build in | |
6688 | *-*-*) ;; | |
63a9e923 | 6689 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb RW |
6690 | esac |
6691 | build=$ac_cv_build | |
6692 | ac_save_IFS=$IFS; IFS='-' | |
6693 | set x $ac_cv_build | |
6694 | shift | |
6695 | build_cpu=$1 | |
6696 | build_vendor=$2 | |
6697 | shift; shift | |
6698 | # Remember, the first character of IFS is used to create $*, | |
6699 | # except with old shells: | |
6700 | build_os=$* | |
6701 | IFS=$ac_save_IFS | |
6702 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 AC |
6703 | |
6704 | ||
81ecdfbb RW |
6705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
6706 | $as_echo_n "checking host system type... " >&6; } | |
63a9e923 | 6707 | if ${ac_cv_host+:} false; then : |
81ecdfbb RW |
6708 | $as_echo_n "(cached) " >&6 |
6709 | else | |
6710 | if test "x$host_alias" = x; then | |
6711 | ac_cv_host=$ac_cv_build | |
6712 | else | |
6713 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
63a9e923 | 6714 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
81ecdfbb | 6715 | fi |
b7026657 | 6716 | |
81ecdfbb RW |
6717 | fi |
6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
6719 | $as_echo "$ac_cv_host" >&6; } | |
6720 | case $ac_cv_host in | |
6721 | *-*-*) ;; | |
63a9e923 | 6722 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb RW |
6723 | esac |
6724 | host=$ac_cv_host | |
6725 | ac_save_IFS=$IFS; IFS='-' | |
6726 | set x $ac_cv_host | |
6727 | shift | |
6728 | host_cpu=$1 | |
6729 | host_vendor=$2 | |
6730 | shift; shift | |
6731 | # Remember, the first character of IFS is used to create $*, | |
6732 | # except with old shells: | |
6733 | host_os=$* | |
6734 | IFS=$ac_save_IFS | |
6735 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
b7026657 AC |
6736 | |
6737 | ||
81ecdfbb RW |
6738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
6739 | $as_echo_n "checking target system type... " >&6; } | |
63a9e923 | 6740 | if ${ac_cv_target+:} false; then : |
81ecdfbb RW |
6741 | $as_echo_n "(cached) " >&6 |
6742 | else | |
6743 | if test "x$target_alias" = x; then | |
6744 | ac_cv_target=$ac_cv_host | |
6745 | else | |
6746 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
63a9e923 | 6747 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
81ecdfbb | 6748 | fi |
b7026657 | 6749 | |
81ecdfbb RW |
6750 | fi |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
6752 | $as_echo "$ac_cv_target" >&6; } | |
6753 | case $ac_cv_target in | |
6754 | *-*-*) ;; | |
63a9e923 | 6755 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb RW |
6756 | esac |
6757 | target=$ac_cv_target | |
6758 | ac_save_IFS=$IFS; IFS='-' | |
6759 | set x $ac_cv_target | |
6760 | shift | |
6761 | target_cpu=$1 | |
6762 | target_vendor=$2 | |
6763 | shift; shift | |
6764 | # Remember, the first character of IFS is used to create $*, | |
6765 | # except with old shells: | |
6766 | target_os=$* | |
6767 | IFS=$ac_save_IFS | |
6768 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
b7026657 AC |
6769 | |
6770 | ||
81ecdfbb RW |
6771 | # The aliases save the names the user supplied, while $host etc. |
6772 | # will get canonicalized. | |
6773 | test -n "$target_alias" && | |
6774 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
6775 | NONENONEs,x,x, && | |
6776 | program_prefix=${target_alias}- | |
b7026657 | 6777 | |
81ecdfbb RW |
6778 | test "$program_prefix" != NONE && |
6779 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
6780 | # Use a double $ so make ignores it. | |
6781 | test "$program_suffix" != NONE && | |
6782 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
6783 | # Double any \ or $. | |
6784 | # By default was `s,x,x', remove it if useless. | |
6785 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
6786 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
b7026657 AC |
6787 | |
6788 | ||
81ecdfbb RW |
6789 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by |
6790 | # using the same condition. | |
5912fadd | 6791 | |
aadc9410 | 6792 | # Use the system's zlib library. |
7fed4b0b L |
6793 | zlibdir="-L\$(top_builddir)/../zlib" |
6794 | zlibinc="-I\$(top_srcdir)/../zlib" | |
5912fadd | 6795 | |
aadc9410 MF |
6796 | # Check whether --with-system-zlib was given. |
6797 | if test "${with_system_zlib+set}" = set; then : | |
0ceaf1ec L |
6798 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
6799 | zlibdir= | |
6800 | zlibinc= | |
6801 | fi | |
b7026657 | 6802 | |
81ecdfbb | 6803 | fi |
b7026657 | 6804 | |
b7026657 AC |
6805 | |
6806 | ||
5912fadd | 6807 | |
b7026657 | 6808 | |
2974be62 AM |
6809 | # BFD uses libdl when when plugins enabled. |
6810 | ||
6811 | maybe_plugins=no | |
6812 | for ac_header in dlfcn.h | |
6813 | do : | |
6814 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6815 | " | |
63a9e923 | 6816 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
2974be62 AM |
6817 | cat >>confdefs.h <<_ACEOF |
6818 | #define HAVE_DLFCN_H 1 | |
6819 | _ACEOF | |
6820 | maybe_plugins=yes | |
6821 | fi | |
6822 | ||
6823 | done | |
6824 | ||
6825 | for ac_header in windows.h | |
6826 | do : | |
6827 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
6828 | " | |
63a9e923 | 6829 | if test "x$ac_cv_header_windows_h" = xyes; then : |
2974be62 AM |
6830 | cat >>confdefs.h <<_ACEOF |
6831 | #define HAVE_WINDOWS_H 1 | |
6832 | _ACEOF | |
6833 | maybe_plugins=yes | |
6834 | fi | |
6835 | ||
6836 | done | |
6837 | ||
6838 | ||
6839 | # Check whether --enable-plugins was given. | |
6840 | if test "${enable_plugins+set}" = set; then : | |
6841 | enableval=$enable_plugins; case "${enableval}" in | |
6842 | no) plugins=no ;; | |
6843 | *) plugins=yes | |
6844 | if test "$maybe_plugins" != "yes" ; then | |
63a9e923 | 6845 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
2974be62 AM |
6846 | fi ;; |
6847 | esac | |
6848 | else | |
6849 | plugins=$maybe_plugins | |
6850 | ||
6851 | fi | |
6852 | ||
6853 | if test "$plugins" = "yes"; then | |
37f980dc SM |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
6855 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
63a9e923 | 6856 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
6857 | $as_echo_n "(cached) " >&6 |
6858 | else | |
6859 | ac_func_search_save_LIBS=$LIBS | |
6860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6861 | /* end confdefs.h. */ | |
6862 | ||
6863 | /* Override any GCC internal prototype to avoid an error. | |
6864 | Use char because int might match the return type of a GCC | |
6865 | builtin and then its argument prototype would still apply. */ | |
6866 | #ifdef __cplusplus | |
6867 | extern "C" | |
6868 | #endif | |
37f980dc | 6869 | char dlsym (); |
2974be62 AM |
6870 | int |
6871 | main () | |
6872 | { | |
37f980dc | 6873 | return dlsym (); |
2974be62 AM |
6874 | ; |
6875 | return 0; | |
6876 | } | |
6877 | _ACEOF | |
6878 | for ac_lib in '' dl; do | |
6879 | if test -z "$ac_lib"; then | |
6880 | ac_res="none required" | |
6881 | else | |
6882 | ac_res=-l$ac_lib | |
6883 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6884 | fi | |
6885 | if ac_fn_c_try_link "$LINENO"; then : | |
37f980dc | 6886 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
6887 | fi |
6888 | rm -f core conftest.err conftest.$ac_objext \ | |
6889 | conftest$ac_exeext | |
63a9e923 | 6890 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
6891 | break |
6892 | fi | |
6893 | done | |
63a9e923 | 6894 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
6895 | |
6896 | else | |
37f980dc | 6897 | ac_cv_search_dlsym=no |
2974be62 AM |
6898 | fi |
6899 | rm conftest.$ac_ext | |
6900 | LIBS=$ac_func_search_save_LIBS | |
6901 | fi | |
37f980dc SM |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
6903 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
6904 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
6905 | if test "$ac_res" != no; then : |
6906 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6907 | ||
6908 | fi | |
6909 | ||
6910 | fi | |
6911 | ||
6912 | ||
81ecdfbb | 6913 | . ${srcdir}/../../bfd/configure.host |
b7026657 | 6914 | |
81ecdfbb RW |
6915 | case ${host} in |
6916 | *mingw32*) | |
b7026657 | 6917 | |
81ecdfbb | 6918 | $as_echo "#define USE_WIN32API 1" >>confdefs.h |
b7026657 | 6919 | |
81ecdfbb RW |
6920 | ;; |
6921 | esac | |
b7026657 | 6922 | |
81ecdfbb | 6923 | ac_config_headers="$ac_config_headers config.h:config.in" |
b7026657 AC |
6924 | |
6925 | ||
81ecdfbb | 6926 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
63a9e923 | 6927 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
b7026657 | 6928 | |
81ecdfbb RW |
6929 | cat >>confdefs.h <<_ACEOF |
6930 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
6931 | _ACEOF | |
b7026657 AC |
6932 | |
6933 | ||
81ecdfbb | 6934 | $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h |
b7026657 | 6935 | |
81ecdfbb | 6936 | fi |
b7026657 AC |
6937 | |
6938 | ||
81ecdfbb | 6939 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
63a9e923 | 6940 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : |
b7026657 | 6941 | |
81ecdfbb RW |
6942 | cat >>confdefs.h <<_ACEOF |
6943 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
6944 | _ACEOF | |
b7026657 AC |
6945 | |
6946 | ||
81ecdfbb | 6947 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
b7026657 | 6948 | |
81ecdfbb RW |
6949 | else |
6950 | case " $LIBOBJS " in | |
6951 | *" fileblocks.$ac_objext "* ) ;; | |
6952 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
6953 | ;; | |
6954 | esac | |
b7026657 | 6955 | |
81ecdfbb | 6956 | fi |
b7026657 AC |
6957 | |
6958 | ||
81ecdfbb | 6959 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
63a9e923 | 6960 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : |
81ecdfbb RW |
6961 | |
6962 | cat >>confdefs.h <<_ACEOF | |
6963 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
b7026657 | 6964 | _ACEOF |
b7026657 | 6965 | |
b7026657 | 6966 | |
81ecdfbb | 6967 | $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h |
c906108c | 6968 | |
81ecdfbb | 6969 | fi |
c906108c | 6970 | |
81ecdfbb RW |
6971 | |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
6973 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
63a9e923 | 6974 | if ${ac_cv_struct_tm+:} false; then : |
81ecdfbb RW |
6975 | $as_echo_n "(cached) " >&6 |
6976 | else | |
6977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6978 | /* end confdefs.h. */ | |
6979 | #include <sys/types.h> | |
6980 | #include <time.h> | |
c906108c | 6981 | |
b7026657 AC |
6982 | int |
6983 | main () | |
6984 | { | |
81ecdfbb RW |
6985 | struct tm tm; |
6986 | int *p = &tm.tm_sec; | |
6987 | return !p; | |
b7026657 AC |
6988 | ; |
6989 | return 0; | |
6990 | } | |
6991 | _ACEOF | |
81ecdfbb RW |
6992 | if ac_fn_c_try_compile "$LINENO"; then : |
6993 | ac_cv_struct_tm=time.h | |
b7026657 | 6994 | else |
81ecdfbb | 6995 | ac_cv_struct_tm=sys/time.h |
b7026657 | 6996 | fi |
81ecdfbb | 6997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 6998 | fi |
81ecdfbb RW |
6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
7000 | $as_echo "$ac_cv_struct_tm" >&6; } | |
7001 | if test $ac_cv_struct_tm = sys/time.h; then | |
7002 | ||
7003 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
c906108c | 7004 | |
c906108c | 7005 | fi |
c906108c | 7006 | |
81ecdfbb RW |
7007 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
7008 | #include <$ac_cv_struct_tm> | |
7009 | ||
7010 | " | |
63a9e923 | 7011 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
c906108c | 7012 | |
81ecdfbb RW |
7013 | cat >>confdefs.h <<_ACEOF |
7014 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
7015 | _ACEOF | |
b7026657 AC |
7016 | |
7017 | ||
81ecdfbb | 7018 | fi |
b7026657 | 7019 | |
81ecdfbb | 7020 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
b7026657 | 7021 | |
81ecdfbb | 7022 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
b7026657 | 7023 | |
81ecdfbb RW |
7024 | else |
7025 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
7026 | " | |
63a9e923 | 7027 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
81ecdfbb RW |
7028 | ac_have_decl=1 |
7029 | else | |
7030 | ac_have_decl=0 | |
7031 | fi | |
b7026657 | 7032 | |
81ecdfbb RW |
7033 | cat >>confdefs.h <<_ACEOF |
7034 | #define HAVE_DECL_TZNAME $ac_have_decl | |
7035 | _ACEOF | |
b7026657 | 7036 | |
81ecdfbb RW |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
7038 | $as_echo_n "checking for tzname... " >&6; } | |
63a9e923 | 7039 | if ${ac_cv_var_tzname+:} false; then : |
81ecdfbb RW |
7040 | $as_echo_n "(cached) " >&6 |
7041 | else | |
7042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7043 | /* end confdefs.h. */ | |
7044 | #include <time.h> | |
7045 | #if !HAVE_DECL_TZNAME | |
7046 | extern char *tzname[]; | |
7047 | #endif | |
b7026657 | 7048 | |
81ecdfbb RW |
7049 | int |
7050 | main () | |
7051 | { | |
7052 | return tzname[0][0]; | |
7053 | ; | |
7054 | return 0; | |
7055 | } | |
7056 | _ACEOF | |
7057 | if ac_fn_c_try_link "$LINENO"; then : | |
7058 | ac_cv_var_tzname=yes | |
7059 | else | |
7060 | ac_cv_var_tzname=no | |
7061 | fi | |
7062 | rm -f core conftest.err conftest.$ac_objext \ | |
7063 | conftest$ac_exeext conftest.$ac_ext | |
7064 | fi | |
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
7066 | $as_echo "$ac_cv_var_tzname" >&6; } | |
7067 | if test $ac_cv_var_tzname = yes; then | |
b7026657 | 7068 | |
81ecdfbb | 7069 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
b7026657 | 7070 | |
81ecdfbb RW |
7071 | fi |
7072 | fi | |
b7026657 AC |
7073 | |
7074 | ||
81ecdfbb RW |
7075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
7076 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
63a9e923 | 7077 | if ${ac_cv_type_uid_t+:} false; then : |
81ecdfbb RW |
7078 | $as_echo_n "(cached) " >&6 |
7079 | else | |
7080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7081 | /* end confdefs.h. */ | |
7082 | #include <sys/types.h> | |
b7026657 | 7083 | |
81ecdfbb RW |
7084 | _ACEOF |
7085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7086 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
7087 | ac_cv_type_uid_t=yes | |
7088 | else | |
7089 | ac_cv_type_uid_t=no | |
7090 | fi | |
7091 | rm -f conftest* | |
b7026657 | 7092 | |
81ecdfbb RW |
7093 | fi |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
7095 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7096 | if test $ac_cv_type_uid_t = no; then | |
b7026657 | 7097 | |
81ecdfbb | 7098 | $as_echo "#define uid_t int" >>confdefs.h |
b7026657 AC |
7099 | |
7100 | ||
81ecdfbb | 7101 | $as_echo "#define gid_t int" >>confdefs.h |
b7026657 | 7102 | |
b7026657 | 7103 | fi |
81ecdfbb RW |
7104 | |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 | |
7106 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
63a9e923 | 7107 | if ${ac_cv_type_getgroups+:} false; then : |
81ecdfbb | 7108 | $as_echo_n "(cached) " >&6 |
b7026657 | 7109 | else |
81ecdfbb RW |
7110 | if test "$cross_compiling" = yes; then : |
7111 | ac_cv_type_getgroups=cross | |
7112 | else | |
7113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 7114 | /* end confdefs.h. */ |
81ecdfbb | 7115 | /* Thanks to Mike Rendell for this test. */ |
b7026657 | 7116 | $ac_includes_default |
81ecdfbb RW |
7117 | #define NGID 256 |
7118 | #undef MAX | |
7119 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
7120 | ||
7121 | int | |
7122 | main () | |
7123 | { | |
7124 | gid_t gidset[NGID]; | |
7125 | int i, n; | |
7126 | union { gid_t gval; long int lval; } val; | |
7127 | ||
7128 | val.lval = -1; | |
7129 | for (i = 0; i < NGID; i++) | |
7130 | gidset[i] = val.gval; | |
7131 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
7132 | gidset); | |
7133 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
7134 | happens when gid_t is short int but getgroups modifies an array | |
7135 | of ints. */ | |
7136 | return n > 0 && gidset[n] != val.gval; | |
7137 | } | |
b7026657 | 7138 | _ACEOF |
81ecdfbb RW |
7139 | if ac_fn_c_try_run "$LINENO"; then : |
7140 | ac_cv_type_getgroups=gid_t | |
b7026657 | 7141 | else |
81ecdfbb RW |
7142 | ac_cv_type_getgroups=int |
7143 | fi | |
7144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7145 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b7026657 | 7146 | fi |
b7026657 | 7147 | |
81ecdfbb RW |
7148 | if test $ac_cv_type_getgroups = cross; then |
7149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 7150 | /* end confdefs.h. */ |
81ecdfbb RW |
7151 | #include <unistd.h> |
7152 | ||
b7026657 | 7153 | _ACEOF |
81ecdfbb RW |
7154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7155 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
7156 | ac_cv_type_getgroups=gid_t | |
b7026657 | 7157 | else |
81ecdfbb | 7158 | ac_cv_type_getgroups=int |
c906108c | 7159 | fi |
81ecdfbb | 7160 | rm -f conftest* |
b7026657 | 7161 | |
c906108c | 7162 | fi |
81ecdfbb RW |
7163 | fi |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
7165 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
7166 | ||
7167 | cat >>confdefs.h <<_ACEOF | |
7168 | #define GETGROUPS_T $ac_cv_type_getgroups | |
7169 | _ACEOF | |
7170 | ||
7171 | ||
7172 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
63a9e923 | 7173 | if test "x$ac_cv_type_mode_t" = xyes; then : |
b7026657 | 7174 | |
c906108c | 7175 | else |
b7026657 | 7176 | |
81ecdfbb RW |
7177 | cat >>confdefs.h <<_ACEOF |
7178 | #define mode_t int | |
b7026657 AC |
7179 | _ACEOF |
7180 | ||
c906108c | 7181 | fi |
b7026657 | 7182 | |
81ecdfbb | 7183 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
63a9e923 | 7184 | if test "x$ac_cv_type_off_t" = xyes; then : |
c906108c | 7185 | |
81ecdfbb | 7186 | else |
b7026657 | 7187 | |
81ecdfbb RW |
7188 | cat >>confdefs.h <<_ACEOF |
7189 | #define off_t long int | |
7190 | _ACEOF | |
b7026657 | 7191 | |
81ecdfbb | 7192 | fi |
b7026657 | 7193 | |
81ecdfbb | 7194 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
63a9e923 | 7195 | if test "x$ac_cv_type_pid_t" = xyes; then : |
b7026657 | 7196 | |
81ecdfbb | 7197 | else |
b7026657 | 7198 | |
81ecdfbb RW |
7199 | cat >>confdefs.h <<_ACEOF |
7200 | #define pid_t int | |
b7026657 | 7201 | _ACEOF |
81ecdfbb RW |
7202 | |
7203 | fi | |
7204 | ||
7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
7206 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
63a9e923 | 7207 | if ${ac_cv_type_signal+:} false; then : |
81ecdfbb RW |
7208 | $as_echo_n "(cached) " >&6 |
7209 | else | |
7210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 7211 | /* end confdefs.h. */ |
c906108c | 7212 | #include <sys/types.h> |
81ecdfbb | 7213 | #include <signal.h> |
b7026657 AC |
7214 | |
7215 | int | |
7216 | main () | |
7217 | { | |
81ecdfbb | 7218 | return *(signal (0, 0)) (0) == 1; |
b7026657 AC |
7219 | ; |
7220 | return 0; | |
7221 | } | |
7222 | _ACEOF | |
81ecdfbb RW |
7223 | if ac_fn_c_try_compile "$LINENO"; then : |
7224 | ac_cv_type_signal=int | |
b7026657 | 7225 | else |
81ecdfbb | 7226 | ac_cv_type_signal=void |
b7026657 | 7227 | fi |
81ecdfbb | 7228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 7229 | fi |
81ecdfbb RW |
7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
7231 | $as_echo "$ac_cv_type_signal" >&6; } | |
7232 | ||
7233 | cat >>confdefs.h <<_ACEOF | |
7234 | #define RETSIGTYPE $ac_cv_type_signal | |
b7026657 AC |
7235 | _ACEOF |
7236 | ||
b7026657 | 7237 | |
81ecdfbb | 7238 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
63a9e923 | 7239 | if test "x$ac_cv_type_size_t" = xyes; then : |
81ecdfbb | 7240 | |
b7026657 | 7241 | else |
81ecdfbb RW |
7242 | |
7243 | cat >>confdefs.h <<_ACEOF | |
7244 | #define size_t unsigned int | |
b7026657 | 7245 | _ACEOF |
81ecdfbb RW |
7246 | |
7247 | fi | |
7248 | ||
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
7250 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
63a9e923 | 7251 | if ${ac_cv_type_uid_t+:} false; then : |
81ecdfbb RW |
7252 | $as_echo_n "(cached) " >&6 |
7253 | else | |
7254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 7255 | /* end confdefs.h. */ |
81ecdfbb | 7256 | #include <sys/types.h> |
b7026657 | 7257 | |
b7026657 | 7258 | _ACEOF |
81ecdfbb RW |
7259 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7260 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
7261 | ac_cv_type_uid_t=yes | |
b7026657 | 7262 | else |
81ecdfbb RW |
7263 | ac_cv_type_uid_t=no |
7264 | fi | |
7265 | rm -f conftest* | |
b7026657 AC |
7266 | |
7267 | fi | |
81ecdfbb RW |
7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
7269 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
7270 | if test $ac_cv_type_uid_t = no; then | |
7271 | ||
7272 | $as_echo "#define uid_t int" >>confdefs.h | |
7273 | ||
7274 | ||
7275 | $as_echo "#define gid_t int" >>confdefs.h | |
7276 | ||
7277 | fi | |
7278 | ||
7279 | ||
7280 | for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink | |
7281 | do : | |
7282 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7283 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
63a9e923 | 7284 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
7285 | cat >>confdefs.h <<_ACEOF |
7286 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
b7026657 | 7287 | _ACEOF |
c906108c | 7288 | |
81ecdfbb RW |
7289 | fi |
7290 | done | |
7291 | ||
7292 | ||
7293 | for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h | |
7294 | do : | |
7295 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7296 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
63a9e923 | 7297 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
7298 | cat >>confdefs.h <<_ACEOF |
7299 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7300 | _ACEOF | |
7301 | ||
7302 | fi | |
7303 | ||
7304 | done | |
7305 | ||
7306 | ac_header_dirent=no | |
7307 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
7308 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
7310 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
63a9e923 | 7311 | if eval \${$as_ac_Header+:} false; then : |
81ecdfbb RW |
7312 | $as_echo_n "(cached) " >&6 |
7313 | else | |
7314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7315 | /* end confdefs.h. */ | |
7316 | #include <sys/types.h> | |
7317 | #include <$ac_hdr> | |
7318 | ||
b7026657 AC |
7319 | int |
7320 | main () | |
7321 | { | |
81ecdfbb RW |
7322 | if ((DIR *) 0) |
7323 | return 0; | |
b7026657 AC |
7324 | ; |
7325 | return 0; | |
7326 | } | |
7327 | _ACEOF | |
81ecdfbb RW |
7328 | if ac_fn_c_try_compile "$LINENO"; then : |
7329 | eval "$as_ac_Header=yes" | |
b7026657 | 7330 | else |
81ecdfbb | 7331 | eval "$as_ac_Header=no" |
c906108c | 7332 | fi |
81ecdfbb | 7333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 7334 | fi |
81ecdfbb RW |
7335 | eval ac_res=\$$as_ac_Header |
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7337 | $as_echo "$ac_res" >&6; } | |
63a9e923 | 7338 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
81ecdfbb RW |
7339 | cat >>confdefs.h <<_ACEOF |
7340 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
7341 | _ACEOF | |
b7026657 | 7342 | |
81ecdfbb | 7343 | ac_header_dirent=$ac_hdr; break |
c906108c SS |
7344 | fi |
7345 | ||
81ecdfbb RW |
7346 | done |
7347 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
7348 | if test $ac_header_dirent = dirent.h; then | |
7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
7350 | $as_echo_n "checking for library containing opendir... " >&6; } | |
63a9e923 | 7351 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 7352 | $as_echo_n "(cached) " >&6 |
c906108c | 7353 | else |
b7026657 | 7354 | ac_func_search_save_LIBS=$LIBS |
81ecdfbb | 7355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
7356 | /* end confdefs.h. */ |
7357 | ||
81ecdfbb RW |
7358 | /* Override any GCC internal prototype to avoid an error. |
7359 | Use char because int might match the return type of a GCC | |
7360 | builtin and then its argument prototype would still apply. */ | |
b7026657 AC |
7361 | #ifdef __cplusplus |
7362 | extern "C" | |
7363 | #endif | |
b7026657 AC |
7364 | char opendir (); |
7365 | int | |
7366 | main () | |
7367 | { | |
81ecdfbb | 7368 | return opendir (); |
b7026657 AC |
7369 | ; |
7370 | return 0; | |
7371 | } | |
7372 | _ACEOF | |
81ecdfbb RW |
7373 | for ac_lib in '' dir; do |
7374 | if test -z "$ac_lib"; then | |
7375 | ac_res="none required" | |
7376 | else | |
7377 | ac_res=-l$ac_lib | |
7378 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7379 | fi | |
7380 | if ac_fn_c_try_link "$LINENO"; then : | |
7381 | ac_cv_search_opendir=$ac_res | |
7382 | fi | |
7383 | rm -f core conftest.err conftest.$ac_objext \ | |
7384 | conftest$ac_exeext | |
63a9e923 | 7385 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
7386 | break |
7387 | fi | |
7388 | done | |
63a9e923 | 7389 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb | 7390 | |
b7026657 | 7391 | else |
81ecdfbb RW |
7392 | ac_cv_search_opendir=no |
7393 | fi | |
7394 | rm conftest.$ac_ext | |
7395 | LIBS=$ac_func_search_save_LIBS | |
7396 | fi | |
7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
7398 | $as_echo "$ac_cv_search_opendir" >&6; } | |
7399 | ac_res=$ac_cv_search_opendir | |
7400 | if test "$ac_res" != no; then : | |
7401 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b7026657 AC |
7402 | |
7403 | fi | |
81ecdfbb RW |
7404 | |
7405 | else | |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
7407 | $as_echo_n "checking for library containing opendir... " >&6; } | |
63a9e923 | 7408 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
7409 | $as_echo_n "(cached) " >&6 |
7410 | else | |
7411 | ac_func_search_save_LIBS=$LIBS | |
7412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 7413 | /* end confdefs.h. */ |
c906108c | 7414 | |
81ecdfbb RW |
7415 | /* Override any GCC internal prototype to avoid an error. |
7416 | Use char because int might match the return type of a GCC | |
7417 | builtin and then its argument prototype would still apply. */ | |
b7026657 AC |
7418 | #ifdef __cplusplus |
7419 | extern "C" | |
7420 | #endif | |
b7026657 AC |
7421 | char opendir (); |
7422 | int | |
7423 | main () | |
7424 | { | |
81ecdfbb | 7425 | return opendir (); |
b7026657 AC |
7426 | ; |
7427 | return 0; | |
7428 | } | |
7429 | _ACEOF | |
81ecdfbb RW |
7430 | for ac_lib in '' x; do |
7431 | if test -z "$ac_lib"; then | |
7432 | ac_res="none required" | |
7433 | else | |
7434 | ac_res=-l$ac_lib | |
7435 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7436 | fi | |
7437 | if ac_fn_c_try_link "$LINENO"; then : | |
7438 | ac_cv_search_opendir=$ac_res | |
b7026657 | 7439 | fi |
81ecdfbb RW |
7440 | rm -f core conftest.err conftest.$ac_objext \ |
7441 | conftest$ac_exeext | |
63a9e923 | 7442 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
7443 | break |
7444 | fi | |
7445 | done | |
63a9e923 | 7446 | if ${ac_cv_search_opendir+:} false; then : |
81ecdfbb RW |
7447 | |
7448 | else | |
7449 | ac_cv_search_opendir=no | |
c906108c | 7450 | fi |
81ecdfbb | 7451 | rm conftest.$ac_ext |
b7026657 AC |
7452 | LIBS=$ac_func_search_save_LIBS |
7453 | fi | |
81ecdfbb RW |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
7455 | $as_echo "$ac_cv_search_opendir" >&6; } | |
7456 | ac_res=$ac_cv_search_opendir | |
7457 | if test "$ac_res" != no; then : | |
7458 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
b7026657 | 7459 | |
c906108c SS |
7460 | fi |
7461 | ||
7462 | fi | |
7463 | ||
7464 | ||
7465 | sim_termio="" | |
81ecdfbb RW |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5 |
7467 | $as_echo_n "checking for struct termios... " >&6; } | |
63a9e923 | 7468 | if ${ac_cv_termios_struct+:} false; then : |
81ecdfbb | 7469 | $as_echo_n "(cached) " >&6 |
b7026657 | 7470 | else |
81ecdfbb | 7471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 7472 | /* end confdefs.h. */ |
c906108c SS |
7473 | #include <sys/types.h> |
7474 | #include <sys/termios.h> | |
b7026657 AC |
7475 | int |
7476 | main () | |
7477 | { | |
c906108c SS |
7478 | static struct termios x; |
7479 | x.c_iflag = 0; | |
7480 | x.c_oflag = 0; | |
7481 | x.c_cflag = 0; | |
7482 | x.c_lflag = 0; | |
7483 | x.c_cc[NCCS] = 0; | |
b7026657 AC |
7484 | ; |
7485 | return 0; | |
7486 | } | |
7487 | _ACEOF | |
81ecdfbb | 7488 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
7489 | ac_cv_termios_struct=yes |
7490 | else | |
81ecdfbb | 7491 | ac_cv_termios_struct=no |
c906108c | 7492 | fi |
81ecdfbb | 7493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
7494 | fi |
7495 | ||
81ecdfbb RW |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5 |
7497 | $as_echo "$ac_cv_termios_struct" >&6; } | |
c906108c SS |
7498 | if test $ac_cv_termios_struct = yes; then |
7499 | sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE" | |
7500 | fi | |
7501 | ||
7502 | if test "$ac_cv_termios_struct" = "yes"; then | |
81ecdfbb RW |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5 |
7504 | $as_echo_n "checking for c_line field in struct termios... " >&6; } | |
63a9e923 | 7505 | if ${ac_cv_termios_cline+:} false; then : |
81ecdfbb | 7506 | $as_echo_n "(cached) " >&6 |
b7026657 | 7507 | else |
81ecdfbb | 7508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 7509 | /* end confdefs.h. */ |
c906108c SS |
7510 | #include <sys/types.h> |
7511 | #include <sys/termios.h> | |
b7026657 AC |
7512 | int |
7513 | main () | |
7514 | { | |
c906108c | 7515 | static struct termios x; x.c_line = 0; |
b7026657 AC |
7516 | ; |
7517 | return 0; | |
7518 | } | |
7519 | _ACEOF | |
81ecdfbb | 7520 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
7521 | ac_cv_termios_cline=yes |
7522 | else | |
81ecdfbb | 7523 | ac_cv_termios_cline=no |
c906108c | 7524 | fi |
81ecdfbb | 7525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
7526 | fi |
7527 | ||
7528 | ||
81ecdfbb RW |
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5 |
7530 | $as_echo "$ac_cv_termios_cline" >&6; } | |
c906108c SS |
7531 | if test $ac_cv_termios_cline = yes; then |
7532 | sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE" | |
7533 | fi | |
7534 | else | |
7535 | ac_cv_termios_cline=no | |
7536 | fi | |
7537 | ||
7538 | if test "$ac_cv_termios_struct" != "yes"; then | |
81ecdfbb RW |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5 |
7540 | $as_echo_n "checking for struct termio... " >&6; } | |
63a9e923 | 7541 | if ${ac_cv_termio_struct+:} false; then : |
81ecdfbb | 7542 | $as_echo_n "(cached) " >&6 |
b7026657 | 7543 | else |
81ecdfbb | 7544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 7545 | /* end confdefs.h. */ |
c906108c SS |
7546 | #include <sys/types.h> |
7547 | #include <sys/termio.h> | |
b7026657 AC |
7548 | int |
7549 | main () | |
7550 | { | |
c906108c SS |
7551 | static struct termio x; |
7552 | x.c_iflag = 0; | |
7553 | x.c_oflag = 0; | |
7554 | x.c_cflag = 0; | |
7555 | x.c_lflag = 0; | |
7556 | x.c_cc[NCC] = 0; | |
b7026657 AC |
7557 | ; |
7558 | return 0; | |
7559 | } | |
7560 | _ACEOF | |
81ecdfbb | 7561 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
7562 | ac_cv_termio_struct=yes |
7563 | else | |
81ecdfbb | 7564 | ac_cv_termio_struct=no |
c906108c | 7565 | fi |
81ecdfbb | 7566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
7567 | fi |
7568 | ||
81ecdfbb RW |
7569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5 |
7570 | $as_echo "$ac_cv_termio_struct" >&6; } | |
c906108c SS |
7571 | if test $ac_cv_termio_struct = yes; then |
7572 | sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE" | |
7573 | fi | |
7574 | else | |
7575 | ac_cv_termio_struct=no | |
7576 | fi | |
7577 | ||
7578 | if test "$ac_cv_termio_struct" = "yes"; then | |
81ecdfbb RW |
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5 |
7580 | $as_echo_n "checking for c_line field in struct termio... " >&6; } | |
63a9e923 | 7581 | if ${ac_cv_termio_cline+:} false; then : |
81ecdfbb | 7582 | $as_echo_n "(cached) " >&6 |
b7026657 | 7583 | else |
81ecdfbb | 7584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 7585 | /* end confdefs.h. */ |
c906108c SS |
7586 | #include <sys/types.h> |
7587 | #include <sys/termio.h> | |
b7026657 AC |
7588 | int |
7589 | main () | |
7590 | { | |
c906108c | 7591 | static struct termio x; x.c_line = 0; |
b7026657 AC |
7592 | ; |
7593 | return 0; | |
7594 | } | |
7595 | _ACEOF | |
81ecdfbb | 7596 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
7597 | ac_cv_termio_cline=yes |
7598 | else | |
81ecdfbb | 7599 | ac_cv_termio_cline=no |
c906108c | 7600 | fi |
81ecdfbb | 7601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
7602 | fi |
7603 | ||
7604 | ||
81ecdfbb RW |
7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5 |
7606 | $as_echo "$ac_cv_termio_cline" >&6; } | |
c906108c SS |
7607 | if test $ac_cv_termio_cline = yes; then |
7608 | sim_termio="$sim_termio -DHAVE_TERMIO_CLINE" | |
7609 | fi | |
7610 | else | |
7611 | ac_cv_termio_cline=no | |
7612 | fi | |
7613 | ||
81ecdfbb RW |
7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5 |
7615 | $as_echo_n "checking for struct statfs... " >&6; } | |
63a9e923 | 7616 | if ${ac_cv_struct_statfs+:} false; then : |
81ecdfbb | 7617 | $as_echo_n "(cached) " >&6 |
1f362c96 | 7618 | else |
81ecdfbb | 7619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 7620 | /* end confdefs.h. */ |
1f362c96 AC |
7621 | #include <sys/types.h> |
7622 | #ifdef HAVE_SYS_PARAM_H | |
7623 | #include <sys/param.h> | |
7624 | #endif | |
7625 | #ifdef HAVE_SYS_MOUNT_H | |
7626 | #include <sys/mount.h> | |
7627 | #endif | |
7628 | #ifdef HAVE_SYS_VFS_H | |
7629 | #include <sys/vfs.h> | |
7630 | #endif | |
7631 | #ifdef HAVE_SYS_STATFS_H | |
7632 | #include <sys/statfs.h> | |
7633 | #endif | |
b7026657 AC |
7634 | int |
7635 | main () | |
7636 | { | |
1f362c96 | 7637 | static struct statfs s; |
b7026657 AC |
7638 | ; |
7639 | return 0; | |
7640 | } | |
7641 | _ACEOF | |
81ecdfbb | 7642 | if ac_fn_c_try_compile "$LINENO"; then : |
1f362c96 AC |
7643 | ac_cv_struct_statfs=yes |
7644 | else | |
81ecdfbb | 7645 | ac_cv_struct_statfs=no |
1f362c96 | 7646 | fi |
81ecdfbb | 7647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1f362c96 AC |
7648 | fi |
7649 | ||
81ecdfbb RW |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5 |
7651 | $as_echo "$ac_cv_struct_statfs" >&6; } | |
1f362c96 | 7652 | if test $ac_cv_struct_statfs = yes; then |
b7026657 | 7653 | |
81ecdfbb | 7654 | $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h |
1f362c96 AC |
7655 | |
7656 | fi | |
7657 | ||
81ecdfbb | 7658 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
63a9e923 | 7659 | if test "x$ac_cv_type_long_long" = xyes; then : |
30e66173 MI |
7660 | |
7661 | cat >>confdefs.h <<_ACEOF | |
7662 | #define HAVE_LONG_LONG 1 | |
7663 | _ACEOF | |
7664 | ||
7665 | ||
7666 | fi | |
7667 | ||
7668 | ||
c906108c | 7669 | sim_devzero="" |
81ecdfbb RW |
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5 |
7671 | $as_echo_n "checking for /dev/zero... " >&6; } | |
63a9e923 | 7672 | if ${ac_cv_devzero+:} false; then : |
81ecdfbb | 7673 | $as_echo_n "(cached) " >&6 |
c906108c | 7674 | else |
81ecdfbb | 7675 | if test "$cross_compiling" = yes; then : |
c906108c SS |
7676 | ac_cv_devzero=no |
7677 | else | |
81ecdfbb | 7678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 7679 | /* end confdefs.h. */ |
c906108c SS |
7680 | #include <fcntl.h> |
7681 | main () { | |
7682 | char buf[2048]; | |
7683 | int i; | |
7684 | int fd = open ("/dev/zero", O_RDONLY); | |
7685 | if (fd < 0) | |
7686 | return 1; | |
7687 | for (i = 0; i < sizeof (buf); i++) | |
7688 | buf[i] = 1; | |
7689 | if (read (fd, buf, sizeof (buf)) != sizeof (buf)) | |
7690 | return 1; | |
7691 | for (i = 0; i < sizeof (buf); i++) | |
7692 | if (buf[i]) | |
7693 | return 1; | |
7694 | return 0; | |
7695 | } | |
b7026657 | 7696 | _ACEOF |
81ecdfbb | 7697 | if ac_fn_c_try_run "$LINENO"; then : |
c906108c SS |
7698 | ac_cv_devzero=yes |
7699 | else | |
81ecdfbb | 7700 | ac_cv_devzero=no |
c906108c | 7701 | fi |
81ecdfbb RW |
7702 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7703 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 7704 | fi |
81ecdfbb | 7705 | |
c906108c SS |
7706 | fi |
7707 | ||
81ecdfbb RW |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5 |
7709 | $as_echo "$ac_cv_devzero" >&6; } | |
c906108c SS |
7710 | if test $ac_cv_devzero = yes; then |
7711 | sim_devzero="-DHAVE_DEVZERO" | |
7712 | else | |
7713 | sim_devzero="" | |
7714 | fi | |
7715 | ||
81ecdfbb RW |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5 |
7717 | $as_echo_n "checking for common simulator directory... " >&6; } | |
c906108c | 7718 | if test -f "${srcdir}/../common/callback.c"; then |
81ecdfbb RW |
7719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7720 | $as_echo "yes" >&6; } | |
c906108c SS |
7721 | sim_callback="callback.o targ-map.o" |
7722 | sim_targ_vals="targ-vals.h targ-map.c targ-vals.def" | |
7723 | else | |
81ecdfbb RW |
7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7725 | $as_echo "no" >&6; } | |
c906108c SS |
7726 | sim_callback="" |
7727 | sim_targ_vals="" | |
7728 | fi | |
7729 | ||
81ecdfbb RW |
7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5 |
7731 | $as_echo_n "checking for common simulator directory fpu implementation... " >&6; } | |
d29d5195 | 7732 | if test -f "${srcdir}/../common/sim-fpu.c"; then |
81ecdfbb RW |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7734 | $as_echo "yes" >&6; } | |
3e5e53f9 | 7735 | sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common" |
3a11ea24 | 7736 | sim_fpu="sim-fpu.o" |
d29d5195 | 7737 | else |
81ecdfbb RW |
7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7739 | $as_echo "no" >&6; } | |
d29d5195 | 7740 | sim_fpu_cflags= |
b7026657 | 7741 | sim_fpu= |
c906108c | 7742 | fi |
cd0fc7c3 | 7743 | |
68a3e151 NF |
7744 | # Since we run commands on the build system, we have to create a |
7745 | # separate config header for the build system if build != host. | |
7746 | if test x$host = x$build; then | |
7747 | ac_config_commands="$ac_config_commands build-config.h" | |
7748 | ||
7749 | else | |
7750 | tempdir=build.$$ | |
7751 | rm -rf $tempdir | |
7752 | mkdir $tempdir | |
7753 | cd $tempdir | |
7754 | case ${srcdir} in | |
7755 | /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; | |
7756 | *) realsrcdir=../${srcdir};; | |
7757 | esac | |
7758 | saved_CFLAGS="${CFLAGS}" | |
7759 | CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ | |
7760 | LDFLAGS="${LDFLAGS_FOR_BUILD}" \ | |
7761 | ${realsrcdir}/configure \ | |
7762 | --enable-languages=${enable_languages-all} \ | |
7763 | --target=$target_alias --host=$build_alias --build=$build_alias | |
7764 | CFLAGS="${saved_CFLAGS}" | |
7765 | mv config.h ../build-config.h | |
7766 | cd .. | |
7767 | rm -rf $tempdir | |
7768 | fi | |
7769 | ||
c906108c SS |
7770 | |
7771 | ||
7772 | ||
7773 | ||
7774 | ||
4b164edf | 7775 | |
c906108c SS |
7776 | AR=${AR-ar} |
7777 | ||
b7026657 AC |
7778 | if test -n "$ac_tool_prefix"; then |
7779 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7780 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7782 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 7783 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 7784 | $as_echo_n "(cached) " >&6 |
c906108c SS |
7785 | else |
7786 | if test -n "$RANLIB"; then | |
7787 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7788 | else | |
b7026657 AC |
7789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7790 | for as_dir in $PATH | |
7791 | do | |
7792 | IFS=$as_save_IFS | |
7793 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7794 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 7795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 7796 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 7797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
7798 | break 2 |
7799 | fi | |
7800 | done | |
81ecdfbb RW |
7801 | done |
7802 | IFS=$as_save_IFS | |
b7026657 | 7803 | |
c906108c SS |
7804 | fi |
7805 | fi | |
b7026657 | 7806 | RANLIB=$ac_cv_prog_RANLIB |
c906108c | 7807 | if test -n "$RANLIB"; then |
81ecdfbb RW |
7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
7809 | $as_echo "$RANLIB" >&6; } | |
b7026657 | 7810 | else |
81ecdfbb RW |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7812 | $as_echo "no" >&6; } | |
b7026657 AC |
7813 | fi |
7814 | ||
81ecdfbb | 7815 | |
b7026657 AC |
7816 | fi |
7817 | if test -z "$ac_cv_prog_RANLIB"; then | |
7818 | ac_ct_RANLIB=$RANLIB | |
7819 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7820 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7822 | $as_echo_n "checking for $ac_word... " >&6; } | |
63a9e923 | 7823 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 7824 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
7825 | else |
7826 | if test -n "$ac_ct_RANLIB"; then | |
7827 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7828 | else | |
7829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7830 | for as_dir in $PATH | |
7831 | do | |
7832 | IFS=$as_save_IFS | |
7833 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7834 | for ac_exec_ext in '' $ac_executable_extensions; do |
63a9e923 | 7835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 7836 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 7837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
7838 | break 2 |
7839 | fi | |
7840 | done | |
81ecdfbb RW |
7841 | done |
7842 | IFS=$as_save_IFS | |
b7026657 | 7843 | |
b7026657 AC |
7844 | fi |
7845 | fi | |
7846 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7847 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
7849 | $as_echo "$ac_ct_RANLIB" >&6; } | |
b7026657 | 7850 | else |
81ecdfbb RW |
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7852 | $as_echo "no" >&6; } | |
b7026657 AC |
7853 | fi |
7854 | ||
81ecdfbb RW |
7855 | if test "x$ac_ct_RANLIB" = x; then |
7856 | RANLIB=":" | |
7857 | else | |
7858 | case $cross_compiling:$ac_tool_warned in | |
7859 | yes:) | |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7861 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7862 | ac_tool_warned=yes ;; | |
7863 | esac | |
7864 | RANLIB=$ac_ct_RANLIB | |
7865 | fi | |
c906108c | 7866 | else |
b7026657 | 7867 | RANLIB="$ac_cv_prog_RANLIB" |
c906108c SS |
7868 | fi |
7869 | ||
7870 | ||
7871 | ||
7872 | ||
7873 | ||
7874 | ||
7875 | ||
7876 | ||
7877 | ||
7878 | ||
7879 | ||
7880 | ||
7881 | ||
7882 | ||
7883 | ||
7884 | ||
7885 | ||
7886 | ||
7887 | ||
7888 | ||
7889 | ||
7890 | ||
7891 | ||
7892 | ||
7893 | ||
7894 | ||
7895 | ||
7896 | ||
7897 | ||
7898 | ||
7899 | ||
7900 | ||
7901 | ||
c906108c SS |
7902 | |
7903 | ||
d29d5195 | 7904 | |
c906108c SS |
7905 | |
7906 | ||
81ecdfbb RW |
7907 | ac_config_files="$ac_config_files Makefile" |
7908 | ||
7909 | ac_config_commands="$ac_config_commands default" | |
7910 | ||
b7026657 | 7911 | cat >confcache <<\_ACEOF |
c906108c SS |
7912 | # This file is a shell script that caches the results of configure |
7913 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
7914 | # scripts and configure runs, see configure's option --config-cache. |
7915 | # It is not useful on other systems. If it contains results you don't | |
7916 | # want to keep, you may remove or edit it. | |
c906108c | 7917 | # |
b7026657 AC |
7918 | # config.status only pays attention to the cache file if you give it |
7919 | # the --recheck option to rerun configure. | |
c906108c | 7920 | # |
b7026657 AC |
7921 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
7922 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7923 | # following values. | |
7924 | ||
7925 | _ACEOF | |
7926 | ||
c906108c SS |
7927 | # The following way of writing the cache mishandles newlines in values, |
7928 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 7929 | # So, we kill variables containing newlines. |
c906108c SS |
7930 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7931 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
7932 | ( |
7933 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7934 | eval ac_val=\$$ac_var | |
7935 | case $ac_val in #( | |
7936 | *${as_nl}*) | |
7937 | case $ac_var in #( | |
7938 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7939 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7940 | esac | |
7941 | case $ac_var in #( | |
7942 | _ | IFS | as_nl) ;; #( | |
7943 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7944 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7945 | esac ;; | |
7946 | esac | |
7947 | done | |
7948 | ||
b7026657 | 7949 | (set) 2>&1 | |
81ecdfbb RW |
7950 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7951 | *${as_nl}ac_space=\ *) | |
7952 | # `set' does not quote correctly, so add quotes: double-quote | |
7953 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
7954 | sed -n \ |
7955 | "s/'/'\\\\''/g; | |
7956 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 7957 | ;; #( |
b7026657 AC |
7958 | *) |
7959 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 7960 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 7961 | ;; |
81ecdfbb RW |
7962 | esac | |
7963 | sort | |
7964 | ) | | |
b7026657 | 7965 | sed ' |
81ecdfbb | 7966 | /^ac_cv_env_/b end |
b7026657 | 7967 | t clear |
81ecdfbb | 7968 | :clear |
b7026657 AC |
7969 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7970 | t end | |
81ecdfbb RW |
7971 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7972 | :end' >>confcache | |
7973 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7974 | if test -w "$cache_file"; then | |
63a9e923 | 7975 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7977 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
63a9e923 SM |
7978 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7979 | cat confcache >"$cache_file" | |
7980 | else | |
7981 | case $cache_file in #( | |
7982 | */* | ?:*) | |
7983 | mv -f confcache "$cache_file"$$ && | |
7984 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7985 | *) | |
7986 | mv -f confcache "$cache_file" ;; | |
7987 | esac | |
7988 | fi | |
7989 | fi | |
c906108c | 7990 | else |
81ecdfbb RW |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7992 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
7993 | fi |
7994 | fi | |
7995 | rm -f confcache | |
7996 | ||
c906108c SS |
7997 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7998 | # Let make expand exec_prefix. | |
7999 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8000 | ||
c906108c SS |
8001 | DEFS=-DHAVE_CONFIG_H |
8002 | ||
b7026657 AC |
8003 | ac_libobjs= |
8004 | ac_ltlibobjs= | |
63a9e923 | 8005 | U= |
b7026657 AC |
8006 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8007 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
8008 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
8009 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
8010 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
8011 | # will be set to the directory where LIBOBJS objects are built. | |
8012 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
8013 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
8014 | done |
8015 | LIBOBJS=$ac_libobjs | |
c906108c | 8016 | |
b7026657 AC |
8017 | LTLIBOBJS=$ac_ltlibobjs |
8018 | ||
8019 | ||
8020 | ||
81ecdfbb | 8021 | |
63a9e923 | 8022 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 8023 | ac_write_fail=0 |
b7026657 AC |
8024 | ac_clean_files_save=$ac_clean_files |
8025 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8027 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8028 | as_write_fail=0 | |
8029 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
8030 | #! $SHELL |
8031 | # Generated by $as_me. | |
c906108c | 8032 | # Run this file to recreate the current configuration. |
c906108c | 8033 | # Compiler output produced by configure, useful for debugging |
b7026657 | 8034 | # configure, is in config.log if it exists. |
c906108c | 8035 | |
b7026657 AC |
8036 | debug=false |
8037 | ac_cs_recheck=false | |
8038 | ac_cs_silent=false | |
b7026657 | 8039 | |
81ecdfbb RW |
8040 | SHELL=\${CONFIG_SHELL-$SHELL} |
8041 | export SHELL | |
8042 | _ASEOF | |
8043 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
8044 | ## -------------------- ## | |
8045 | ## M4sh Initialization. ## | |
8046 | ## -------------------- ## | |
8047 | ||
8048 | # Be more Bourne compatible | |
8049 | DUALCASE=1; export DUALCASE # for MKS sh | |
8050 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
8051 | emulate sh |
8052 | NULLCMD=: | |
81ecdfbb | 8053 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
8054 | # is contrary to our usage. Disable this feature. |
8055 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
8056 | setopt NO_GLOB_SUBST |
8057 | else | |
8058 | case `(set -o) 2>/dev/null` in #( | |
8059 | *posix*) : | |
8060 | set -o posix ;; #( | |
8061 | *) : | |
8062 | ;; | |
8063 | esac | |
b7026657 | 8064 | fi |
b7026657 | 8065 | |
81ecdfbb RW |
8066 | |
8067 | as_nl=' | |
8068 | ' | |
8069 | export as_nl | |
8070 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
8071 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
8072 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
8073 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
8074 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
8075 | # but without wasting forks for bash or zsh. | |
8076 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
8077 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8078 | as_echo='print -r --' | |
8079 | as_echo_n='print -rn --' | |
8080 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8081 | as_echo='printf %s\n' | |
8082 | as_echo_n='printf %s' | |
8083 | else | |
8084 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
8085 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
8086 | as_echo_n='/usr/ucb/echo -n' | |
8087 | else | |
8088 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
8089 | as_echo_n_body='eval | |
8090 | arg=$1; | |
8091 | case $arg in #( | |
8092 | *"$as_nl"*) | |
8093 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
8094 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
8095 | esac; | |
8096 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
8097 | ' | |
8098 | export as_echo_n_body | |
8099 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
8100 | fi | |
8101 | export as_echo_body | |
8102 | as_echo='sh -c $as_echo_body as_echo' | |
b7026657 AC |
8103 | fi |
8104 | ||
81ecdfbb RW |
8105 | # The user is always right. |
8106 | if test "${PATH_SEPARATOR+set}" != set; then | |
8107 | PATH_SEPARATOR=: | |
8108 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8109 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8110 | PATH_SEPARATOR=';' | |
8111 | } | |
8112 | fi | |
8113 | ||
8114 | ||
8115 | # IFS | |
8116 | # We need space, tab and new line, in precisely that order. Quoting is | |
8117 | # there to prevent editors from complaining about space-tab. | |
8118 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8119 | # splitting by setting IFS to empty value.) | |
8120 | IFS=" "" $as_nl" | |
8121 | ||
8122 | # Find who we are. Look in the path if we contain no directory separator. | |
63a9e923 | 8123 | as_myself= |
81ecdfbb RW |
8124 | case $0 in #(( |
8125 | *[\\/]* ) as_myself=$0 ;; | |
8126 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8127 | for as_dir in $PATH | |
8128 | do | |
8129 | IFS=$as_save_IFS | |
8130 | test -z "$as_dir" && as_dir=. | |
8131 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8132 | done | |
8133 | IFS=$as_save_IFS | |
b7026657 | 8134 | |
81ecdfbb RW |
8135 | ;; |
8136 | esac | |
8137 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8138 | # in which case we are not to be found in the path. | |
8139 | if test "x$as_myself" = x; then | |
8140 | as_myself=$0 | |
8141 | fi | |
8142 | if test ! -f "$as_myself"; then | |
8143 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
8144 | exit 1 | |
8145 | fi | |
8146 | ||
8147 | # Unset variables that we do not need and which cause bugs (e.g. in | |
8148 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
8149 | # suppresses any "Segmentation fault" message there. '((' could | |
8150 | # trigger a bug in pdksh 5.2.14. | |
8151 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
8152 | do eval test x\${$as_var+set} = xset \ | |
8153 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8154 | done | |
b7026657 AC |
8155 | PS1='$ ' |
8156 | PS2='> ' | |
8157 | PS4='+ ' | |
8158 | ||
8159 | # NLS nuisances. | |
81ecdfbb RW |
8160 | LC_ALL=C |
8161 | export LC_ALL | |
8162 | LANGUAGE=C | |
8163 | export LANGUAGE | |
8164 | ||
8165 | # CDPATH. | |
8166 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
8167 | ||
8168 | ||
63a9e923 SM |
8169 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
8170 | # ---------------------------------------- | |
81ecdfbb RW |
8171 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
8172 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
63a9e923 | 8173 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
8174 | as_fn_error () |
8175 | { | |
63a9e923 SM |
8176 | as_status=$1; test $as_status -eq 0 && as_status=1 |
8177 | if test "$4"; then | |
8178 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
8179 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 8180 | fi |
63a9e923 | 8181 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
8182 | as_fn_exit $as_status |
8183 | } # as_fn_error | |
8184 | ||
c906108c | 8185 | |
81ecdfbb RW |
8186 | # as_fn_set_status STATUS |
8187 | # ----------------------- | |
8188 | # Set $? to STATUS, without forking. | |
8189 | as_fn_set_status () | |
8190 | { | |
8191 | return $1 | |
8192 | } # as_fn_set_status | |
8193 | ||
8194 | # as_fn_exit STATUS | |
8195 | # ----------------- | |
8196 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8197 | as_fn_exit () | |
8198 | { | |
8199 | set +e | |
8200 | as_fn_set_status $1 | |
8201 | exit $1 | |
8202 | } # as_fn_exit | |
8203 | ||
8204 | # as_fn_unset VAR | |
8205 | # --------------- | |
8206 | # Portably unset VAR. | |
8207 | as_fn_unset () | |
8208 | { | |
8209 | { eval $1=; unset $1;} | |
8210 | } | |
8211 | as_unset=as_fn_unset | |
8212 | # as_fn_append VAR VALUE | |
8213 | # ---------------------- | |
8214 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8215 | # advantage of any shell optimizations that allow amortized linear growth over | |
8216 | # repeated appends, instead of the typical quadratic growth present in naive | |
8217 | # implementations. | |
8218 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
8219 | eval 'as_fn_append () | |
8220 | { | |
8221 | eval $1+=\$2 | |
8222 | }' | |
8223 | else | |
8224 | as_fn_append () | |
8225 | { | |
8226 | eval $1=\$$1\$2 | |
8227 | } | |
8228 | fi # as_fn_append | |
8229 | ||
8230 | # as_fn_arith ARG... | |
8231 | # ------------------ | |
8232 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8233 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8234 | # must be portable across $(()) and expr. | |
8235 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
8236 | eval 'as_fn_arith () | |
8237 | { | |
8238 | as_val=$(( $* )) | |
8239 | }' | |
8240 | else | |
8241 | as_fn_arith () | |
8242 | { | |
8243 | as_val=`expr "$@" || test $? -eq 1` | |
8244 | } | |
8245 | fi # as_fn_arith | |
8246 | ||
8247 | ||
8248 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
8249 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
8250 | as_expr=expr |
8251 | else | |
8252 | as_expr=false | |
8253 | fi | |
c906108c | 8254 | |
81ecdfbb | 8255 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
8256 | as_basename=basename |
8257 | else | |
8258 | as_basename=false | |
8259 | fi | |
c906108c | 8260 | |
81ecdfbb RW |
8261 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8262 | as_dirname=dirname | |
8263 | else | |
8264 | as_dirname=false | |
8265 | fi | |
c906108c | 8266 | |
81ecdfbb | 8267 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
8268 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8269 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8270 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8271 | $as_echo X/"$0" | | |
8272 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
8273 | s//\1/ | |
8274 | q | |
8275 | } | |
8276 | /^X\/\(\/\/\)$/{ | |
8277 | s//\1/ | |
8278 | q | |
8279 | } | |
8280 | /^X\/\(\/\).*/{ | |
8281 | s//\1/ | |
8282 | q | |
8283 | } | |
8284 | s/.*/./; q'` | |
b7026657 | 8285 | |
b7026657 AC |
8286 | # Avoid depending upon Character Ranges. |
8287 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8288 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8289 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8290 | as_cr_digits='0123456789' | |
8291 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8292 | ||
81ecdfbb RW |
8293 | ECHO_C= ECHO_N= ECHO_T= |
8294 | case `echo -n x` in #((((( | |
8295 | -n*) | |
8296 | case `echo 'xy\c'` in | |
8297 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8298 | xy) ECHO_C='\c';; | |
8299 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8300 | ECHO_T=' ';; | |
8301 | esac;; | |
8302 | *) | |
8303 | ECHO_N='-n';; | |
b7026657 AC |
8304 | esac |
8305 | ||
b7026657 | 8306 | rm -f conf$$ conf$$.exe conf$$.file |
81ecdfbb RW |
8307 | if test -d conf$$.dir; then |
8308 | rm -f conf$$.dir/conf$$.file | |
8309 | else | |
8310 | rm -f conf$$.dir | |
8311 | mkdir conf$$.dir 2>/dev/null | |
8312 | fi | |
8313 | if (echo >conf$$.file) 2>/dev/null; then | |
8314 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b7026657 | 8315 | as_ln_s='ln -s' |
81ecdfbb RW |
8316 | # ... but there are two gotchas: |
8317 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8318 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
63a9e923 | 8319 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 8320 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
63a9e923 | 8321 | as_ln_s='cp -pR' |
81ecdfbb RW |
8322 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8323 | as_ln_s=ln | |
8324 | else | |
63a9e923 | 8325 | as_ln_s='cp -pR' |
c906108c | 8326 | fi |
b7026657 | 8327 | else |
63a9e923 | 8328 | as_ln_s='cp -pR' |
b7026657 | 8329 | fi |
81ecdfbb RW |
8330 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8331 | rmdir conf$$.dir 2>/dev/null | |
8332 | ||
8333 | ||
8334 | # as_fn_mkdir_p | |
8335 | # ------------- | |
8336 | # Create "$as_dir" as a directory, including parents if necessary. | |
8337 | as_fn_mkdir_p () | |
8338 | { | |
8339 | ||
8340 | case $as_dir in #( | |
8341 | -*) as_dir=./$as_dir;; | |
8342 | esac | |
8343 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8344 | as_dirs= | |
8345 | while :; do | |
8346 | case $as_dir in #( | |
8347 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
8348 | *) as_qdir=$as_dir;; | |
8349 | esac | |
8350 | as_dirs="'$as_qdir' $as_dirs" | |
8351 | as_dir=`$as_dirname -- "$as_dir" || | |
8352 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8353 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8354 | X"$as_dir" : 'X\(//\)$' \| \ | |
8355 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
8356 | $as_echo X"$as_dir" | | |
8357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8358 | s//\1/ | |
8359 | q | |
8360 | } | |
8361 | /^X\(\/\/\)[^/].*/{ | |
8362 | s//\1/ | |
8363 | q | |
8364 | } | |
8365 | /^X\(\/\/\)$/{ | |
8366 | s//\1/ | |
8367 | q | |
8368 | } | |
8369 | /^X\(\/\).*/{ | |
8370 | s//\1/ | |
8371 | q | |
8372 | } | |
8373 | s/.*/./; q'` | |
8374 | test -d "$as_dir" && break | |
8375 | done | |
8376 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
63a9e923 | 8377 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b7026657 | 8378 | |
81ecdfbb RW |
8379 | |
8380 | } # as_fn_mkdir_p | |
b7026657 | 8381 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 8382 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
8383 | else |
8384 | test -d ./-p && rmdir ./-p | |
8385 | as_mkdir_p=false | |
8386 | fi | |
8387 | ||
63a9e923 SM |
8388 | |
8389 | # as_fn_executable_p FILE | |
8390 | # ----------------------- | |
8391 | # Test if FILE is an executable regular file. | |
8392 | as_fn_executable_p () | |
8393 | { | |
8394 | test -f "$1" && test -x "$1" | |
8395 | } # as_fn_executable_p | |
8396 | as_test_x='test -x' | |
8397 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
8398 | |
8399 | # Sed expression to map a string onto a valid CPP name. | |
8400 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8401 | ||
8402 | # Sed expression to map a string onto a valid variable name. | |
8403 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8404 | ||
8405 | ||
b7026657 | 8406 | exec 6>&1 |
81ecdfbb RW |
8407 | ## ----------------------------------- ## |
8408 | ## Main body of $CONFIG_STATUS script. ## | |
8409 | ## ----------------------------------- ## | |
8410 | _ASEOF | |
8411 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
8412 | ||
8413 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8414 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 8415 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
8416 | # values after options handling. |
8417 | ac_log=" | |
b7026657 | 8418 | This file was extended by $as_me, which was |
63a9e923 | 8419 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
8420 | |
8421 | CONFIG_FILES = $CONFIG_FILES | |
8422 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8423 | CONFIG_LINKS = $CONFIG_LINKS | |
8424 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8425 | $ $0 $@ | |
8426 | ||
81ecdfbb RW |
8427 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8428 | " | |
8429 | ||
b7026657 AC |
8430 | _ACEOF |
8431 | ||
81ecdfbb RW |
8432 | case $ac_config_files in *" |
8433 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8434 | esac | |
b7026657 | 8435 | |
81ecdfbb RW |
8436 | case $ac_config_headers in *" |
8437 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8438 | esac | |
b7026657 | 8439 | |
b7026657 | 8440 | |
81ecdfbb RW |
8441 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8442 | # Files that config.status was made for. | |
8443 | config_files="$ac_config_files" | |
8444 | config_headers="$ac_config_headers" | |
8445 | config_commands="$ac_config_commands" | |
b7026657 | 8446 | |
81ecdfbb | 8447 | _ACEOF |
b7026657 | 8448 | |
81ecdfbb | 8449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 8450 | ac_cs_usage="\ |
81ecdfbb RW |
8451 | \`$as_me' instantiates files and other configuration actions |
8452 | from templates according to the current configuration. Unless the files | |
8453 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 8454 | |
81ecdfbb | 8455 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
8456 | |
8457 | -h, --help print this help, then exit | |
81ecdfbb | 8458 | -V, --version print version number and configuration settings, then exit |
63a9e923 | 8459 | --config print configuration, then exit |
81ecdfbb RW |
8460 | -q, --quiet, --silent |
8461 | do not print progress messages | |
b7026657 AC |
8462 | -d, --debug don't remove temporary files |
8463 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
8464 | --file=FILE[:TEMPLATE] |
8465 | instantiate the configuration file FILE | |
8466 | --header=FILE[:TEMPLATE] | |
8467 | instantiate the configuration header FILE | |
b7026657 AC |
8468 | |
8469 | Configuration files: | |
8470 | $config_files | |
8471 | ||
8472 | Configuration headers: | |
8473 | $config_headers | |
8474 | ||
8475 | Configuration commands: | |
8476 | $config_commands | |
8477 | ||
81ecdfbb | 8478 | Report bugs to the package provider." |
b7026657 | 8479 | |
81ecdfbb RW |
8480 | _ACEOF |
8481 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
63a9e923 | 8482 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 AC |
8483 | ac_cs_version="\\ |
8484 | config.status | |
63a9e923 SM |
8485 | configured by $0, generated by GNU Autoconf 2.69, |
8486 | with options \\"\$ac_cs_config\\" | |
b7026657 | 8487 | |
63a9e923 | 8488 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
8489 | This config.status script is free software; the Free Software Foundation |
8490 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
8491 | |
8492 | ac_pwd='$ac_pwd' | |
8493 | srcdir='$srcdir' | |
8494 | INSTALL='$INSTALL' | |
8495 | test -n "\$AWK" || AWK=awk | |
b7026657 AC |
8496 | _ACEOF |
8497 | ||
81ecdfbb RW |
8498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8499 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
8500 | ac_need_defaults=: |
8501 | while test $# != 0 | |
8502 | do | |
8503 | case $1 in | |
63a9e923 | 8504 | --*=?*) |
81ecdfbb RW |
8505 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8506 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
8507 | ac_shift=: |
8508 | ;; | |
63a9e923 SM |
8509 | --*=) |
8510 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8511 | ac_optarg= | |
8512 | ac_shift=: | |
8513 | ;; | |
81ecdfbb | 8514 | *) |
b7026657 AC |
8515 | ac_option=$1 |
8516 | ac_optarg=$2 | |
8517 | ac_shift=shift | |
8518 | ;; | |
b7026657 AC |
8519 | esac |
8520 | ||
8521 | case $ac_option in | |
8522 | # Handling of the options. | |
b7026657 AC |
8523 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8524 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
8525 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8526 | $as_echo "$ac_cs_version"; exit ;; | |
63a9e923 SM |
8527 | --config | --confi | --conf | --con | --co | --c ) |
8528 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 8529 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
8530 | debug=: ;; |
8531 | --file | --fil | --fi | --f ) | |
8532 | $ac_shift | |
81ecdfbb RW |
8533 | case $ac_optarg in |
8534 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
63a9e923 | 8535 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
8536 | esac |
8537 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b7026657 AC |
8538 | ac_need_defaults=false;; |
8539 | --header | --heade | --head | --hea ) | |
8540 | $ac_shift | |
81ecdfbb RW |
8541 | case $ac_optarg in |
8542 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
8543 | esac | |
8544 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
b7026657 | 8545 | ac_need_defaults=false;; |
81ecdfbb RW |
8546 | --he | --h) |
8547 | # Conflict between --help and --header | |
63a9e923 | 8548 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
8549 | Try \`$0 --help' for more information.";; |
8550 | --help | --hel | -h ) | |
8551 | $as_echo "$ac_cs_usage"; exit ;; | |
b7026657 AC |
8552 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8553 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8554 | ac_cs_silent=: ;; | |
8555 | ||
8556 | # This is an error. | |
63a9e923 | 8557 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 8558 | Try \`$0 --help' for more information." ;; |
b7026657 | 8559 | |
81ecdfbb RW |
8560 | *) as_fn_append ac_config_targets " $1" |
8561 | ac_need_defaults=false ;; | |
b7026657 AC |
8562 | |
8563 | esac | |
8564 | shift | |
c906108c | 8565 | done |
b7026657 AC |
8566 | |
8567 | ac_configure_extra_args= | |
8568 | ||
8569 | if $ac_cs_silent; then | |
8570 | exec 6>/dev/null | |
8571 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8572 | fi | |
8573 | ||
8574 | _ACEOF | |
81ecdfbb | 8575 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 8576 | if \$ac_cs_recheck; then |
63a9e923 | 8577 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
8578 | shift |
8579 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
8580 | CONFIG_SHELL='$SHELL' | |
8581 | export CONFIG_SHELL | |
8582 | exec "\$@" | |
c906108c | 8583 | fi |
c906108c | 8584 | |
b7026657 | 8585 | _ACEOF |
81ecdfbb RW |
8586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8587 | exec 5>>config.log | |
8588 | { | |
8589 | echo | |
8590 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8591 | ## Running $as_me. ## | |
8592 | _ASBOX | |
8593 | $as_echo "$ac_log" | |
8594 | } >&5 | |
c906108c | 8595 | |
81ecdfbb RW |
8596 | _ACEOF |
8597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8598 | _ACEOF | |
b7026657 | 8599 | |
81ecdfbb | 8600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 8601 | |
81ecdfbb | 8602 | # Handling of arguments. |
b7026657 AC |
8603 | for ac_config_target in $ac_config_targets |
8604 | do | |
81ecdfbb RW |
8605 | case $ac_config_target in |
8606 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
68a3e151 | 8607 | "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;; |
81ecdfbb RW |
8608 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
8609 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
8610 | ||
63a9e923 | 8611 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 8612 | esac |
b7026657 | 8613 | done |
c906108c | 8614 | |
81ecdfbb | 8615 | |
b7026657 AC |
8616 | # If the user did not use the arguments to specify the items to instantiate, |
8617 | # then the envvar interface is used. Set only those that are not. | |
8618 | # We use the long form for the default assignment because of an extremely | |
8619 | # bizarre bug on SunOS 4.1.3. | |
8620 | if $ac_need_defaults; then | |
8621 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8622 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8623 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8624 | fi | |
8625 | ||
8626 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 8627 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 8628 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
8629 | # Hook for its removal unless debugging. |
8630 | # Note that there is a small window in which the directory will not be cleaned: | |
8631 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
8632 | $debug || |
8633 | { | |
63a9e923 | 8634 | tmp= ac_tmp= |
81ecdfbb | 8635 | trap 'exit_status=$? |
63a9e923 SM |
8636 | : "${ac_tmp:=$tmp}" |
8637 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
8638 | ' 0 |
8639 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 8640 | } |
b7026657 AC |
8641 | # Create a (secure) tmp directory for tmp files. |
8642 | ||
8643 | { | |
81ecdfbb | 8644 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
63a9e923 | 8645 | test -d "$tmp" |
b7026657 AC |
8646 | } || |
8647 | { | |
81ecdfbb RW |
8648 | tmp=./conf$$-$RANDOM |
8649 | (umask 077 && mkdir "$tmp") | |
63a9e923 SM |
8650 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
8651 | ac_tmp=$tmp | |
81ecdfbb RW |
8652 | |
8653 | # Set up the scripts for CONFIG_FILES section. | |
8654 | # No need to generate them if there are no CONFIG_FILES. | |
8655 | # This happens for instance with `./config.status config.h'. | |
8656 | if test -n "$CONFIG_FILES"; then | |
8657 | ||
8658 | ||
8659 | ac_cr=`echo X | tr X '\015'` | |
8660 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8661 | # But we know of no other shell where ac_cr would be empty at this | |
8662 | # point, so we can use a bashism as a fallback. | |
8663 | if test "x$ac_cr" = x; then | |
8664 | eval ac_cr=\$\'\\r\' | |
8665 | fi | |
8666 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8667 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
63a9e923 | 8668 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
8669 | else |
8670 | ac_cs_awk_cr=$ac_cr | |
8671 | fi | |
8672 | ||
63a9e923 | 8673 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
8674 | _ACEOF |
8675 | ||
8676 | ||
b7026657 | 8677 | { |
81ecdfbb RW |
8678 | echo "cat >conf$$subs.awk <<_ACEOF" && |
8679 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8680 | echo "_ACEOF" | |
8681 | } >conf$$subs.sh || | |
63a9e923 SM |
8682 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8683 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
8684 | ac_delim='%!_!# ' |
8685 | for ac_last_try in false false false false false :; do | |
8686 | . ./conf$$subs.sh || | |
63a9e923 | 8687 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
8688 | |
8689 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8690 | if test $ac_delim_n = $ac_delim_num; then | |
8691 | break | |
8692 | elif $ac_last_try; then | |
63a9e923 | 8693 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
8694 | else |
8695 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8696 | fi | |
8697 | done | |
8698 | rm -f conf$$subs.sh | |
8699 | ||
8700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
63a9e923 | 8701 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
8702 | _ACEOF |
8703 | sed -n ' | |
8704 | h | |
8705 | s/^/S["/; s/!.*/"]=/ | |
8706 | p | |
8707 | g | |
8708 | s/^[^!]*!// | |
8709 | :repl | |
8710 | t repl | |
8711 | s/'"$ac_delim"'$// | |
8712 | t delim | |
8713 | :nl | |
8714 | h | |
63a9e923 | 8715 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
8716 | t more1 |
8717 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8718 | p | |
8719 | n | |
8720 | b repl | |
8721 | :more1 | |
8722 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8723 | p | |
8724 | g | |
8725 | s/.\{148\}// | |
8726 | t nl | |
8727 | :delim | |
8728 | h | |
63a9e923 | 8729 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
8730 | t more2 |
8731 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8732 | p | |
8733 | b | |
8734 | :more2 | |
8735 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8736 | p | |
8737 | g | |
8738 | s/.\{148\}// | |
8739 | t delim | |
8740 | ' <conf$$subs.awk | sed ' | |
8741 | /^[^""]/{ | |
8742 | N | |
8743 | s/\n// | |
b7026657 | 8744 | } |
81ecdfbb RW |
8745 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
8746 | rm -f conf$$subs.awk | |
8747 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8748 | _ACAWK | |
63a9e923 | 8749 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
8750 | for (key in S) S_is_set[key] = 1 |
8751 | FS = "\a" | |
b7026657 | 8752 | |
81ecdfbb RW |
8753 | } |
8754 | { | |
8755 | line = $ 0 | |
8756 | nfields = split(line, field, "@") | |
8757 | substed = 0 | |
8758 | len = length(field[1]) | |
8759 | for (i = 2; i < nfields; i++) { | |
8760 | key = field[i] | |
8761 | keylen = length(key) | |
8762 | if (S_is_set[key]) { | |
8763 | value = S[key] | |
8764 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8765 | len += length(value) + length(field[++i]) | |
8766 | substed = 1 | |
8767 | } else | |
8768 | len += 1 + keylen | |
8769 | } | |
b7026657 | 8770 | |
81ecdfbb RW |
8771 | print line |
8772 | } | |
b7026657 | 8773 | |
81ecdfbb RW |
8774 | _ACAWK |
8775 | _ACEOF | |
8776 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8777 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8778 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8779 | else | |
8780 | cat | |
63a9e923 SM |
8781 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
8782 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
8783 | _ACEOF |
8784 | ||
63a9e923 SM |
8785 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8786 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
8787 | # trailing colons and then remove the whole line if VPATH becomes empty |
8788 | # (actually we leave an empty line to preserve line numbers). | |
8789 | if test "x$srcdir" = x.; then | |
63a9e923 SM |
8790 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8791 | h | |
8792 | s/// | |
8793 | s/^/:/ | |
8794 | s/[ ]*$/:/ | |
8795 | s/:\$(srcdir):/:/g | |
8796 | s/:\${srcdir}:/:/g | |
8797 | s/:@srcdir@:/:/g | |
8798 | s/^:*// | |
81ecdfbb | 8799 | s/:*$// |
63a9e923 SM |
8800 | x |
8801 | s/\(=[ ]*\).*/\1/ | |
8802 | G | |
8803 | s/\n// | |
81ecdfbb RW |
8804 | s/^[^=]*=[ ]*$// |
8805 | }' | |
8806 | fi | |
b7026657 | 8807 | |
81ecdfbb RW |
8808 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8809 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 8810 | |
81ecdfbb RW |
8811 | # Set up the scripts for CONFIG_HEADERS section. |
8812 | # No need to generate them if there are no CONFIG_HEADERS. | |
8813 | # This happens for instance with `./config.status Makefile'. | |
8814 | if test -n "$CONFIG_HEADERS"; then | |
63a9e923 | 8815 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb | 8816 | BEGIN { |
b7026657 AC |
8817 | _ACEOF |
8818 | ||
81ecdfbb RW |
8819 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
8820 | # here-document in config.status, that substitutes the proper values into | |
8821 | # config.h.in to produce config.h. | |
8822 | ||
8823 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8824 | # handling of long lines. | |
8825 | ac_delim='%!_!# ' | |
8826 | for ac_last_try in false false :; do | |
63a9e923 SM |
8827 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8828 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
8829 | break |
8830 | elif $ac_last_try; then | |
63a9e923 | 8831 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
8832 | else |
8833 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c906108c | 8834 | fi |
81ecdfbb | 8835 | done |
c906108c | 8836 | |
81ecdfbb RW |
8837 | # For the awk script, D is an array of macro values keyed by name, |
8838 | # likewise P contains macro parameters if any. Preserve backslash | |
8839 | # newline sequences. | |
8840 | ||
8841 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8842 | sed -n ' | |
8843 | s/.\{148\}/&'"$ac_delim"'/g | |
8844 | t rset | |
8845 | :rset | |
8846 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8847 | t def | |
8848 | d | |
8849 | :def | |
8850 | s/\\$// | |
8851 | t bsnl | |
8852 | s/["\\]/\\&/g | |
8853 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8854 | D["\1"]=" \3"/p | |
8855 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8856 | d | |
8857 | :bsnl | |
8858 | s/["\\]/\\&/g | |
8859 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8860 | D["\1"]=" \3\\\\\\n"\\/p | |
8861 | t cont | |
8862 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8863 | t cont | |
8864 | d | |
8865 | :cont | |
8866 | n | |
8867 | s/.\{148\}/&'"$ac_delim"'/g | |
8868 | t clear | |
8869 | :clear | |
8870 | s/\\$// | |
8871 | t bsnlc | |
8872 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8873 | d | |
8874 | :bsnlc | |
8875 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8876 | b cont | |
8877 | ' <confdefs.h | sed ' | |
8878 | s/'"$ac_delim"'/"\\\ | |
8879 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8880 | ||
8881 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8882 | for (key in D) D_is_set[key] = 1 | |
8883 | FS = "\a" | |
8884 | } | |
8885 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8886 | line = \$ 0 | |
8887 | split(line, arg, " ") | |
8888 | if (arg[1] == "#") { | |
8889 | defundef = arg[2] | |
8890 | mac1 = arg[3] | |
8891 | } else { | |
8892 | defundef = substr(arg[1], 2) | |
8893 | mac1 = arg[2] | |
8894 | } | |
8895 | split(mac1, mac2, "(") #) | |
8896 | macro = mac2[1] | |
8897 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8898 | if (D_is_set[macro]) { | |
8899 | # Preserve the white space surrounding the "#". | |
8900 | print prefix "define", macro P[macro] D[macro] | |
8901 | next | |
8902 | } else { | |
8903 | # Replace #undef with comments. This is necessary, for example, | |
8904 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8905 | # on some systems where configure will not decide to define it. | |
8906 | if (defundef == "undef") { | |
8907 | print "/*", prefix defundef, macro, "*/" | |
8908 | next | |
8909 | } | |
8910 | } | |
8911 | } | |
8912 | { print } | |
8913 | _ACAWK | |
b7026657 | 8914 | _ACEOF |
81ecdfbb | 8915 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
63a9e923 | 8916 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb RW |
8917 | fi # test -n "$CONFIG_HEADERS" |
8918 | ||
8919 | ||
8920 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8921 | shift | |
8922 | for ac_tag | |
8923 | do | |
8924 | case $ac_tag in | |
8925 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8926 | esac | |
8927 | case $ac_mode$ac_tag in | |
8928 | :[FHL]*:*);; | |
63a9e923 | 8929 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
8930 | :[FH]-) ac_tag=-:-;; |
8931 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8932 | esac | |
8933 | ac_save_IFS=$IFS | |
8934 | IFS=: | |
8935 | set x $ac_tag | |
8936 | IFS=$ac_save_IFS | |
8937 | shift | |
8938 | ac_file=$1 | |
8939 | shift | |
8940 | ||
8941 | case $ac_mode in | |
8942 | :L) ac_source=$1;; | |
8943 | :[FH]) | |
8944 | ac_file_inputs= | |
8945 | for ac_f | |
8946 | do | |
8947 | case $ac_f in | |
63a9e923 | 8948 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
8949 | *) # Look for the file first in the build tree, then in the source tree |
8950 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8951 | # because $ac_f cannot contain `:'. | |
8952 | test -f "$ac_f" || | |
8953 | case $ac_f in | |
8954 | [\\/$]*) false;; | |
8955 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8956 | esac || | |
63a9e923 | 8957 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
8958 | esac |
8959 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8960 | as_fn_append ac_file_inputs " '$ac_f'" | |
8961 | done | |
8962 | ||
8963 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8964 | # use $as_me), people would be surprised to read: | |
8965 | # /* config.h. Generated by config.status. */ | |
8966 | configure_input='Generated from '` | |
8967 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8968 | `' by configure.' | |
8969 | if test x"$ac_file" != x-; then | |
8970 | configure_input="$ac_file. $configure_input" | |
8971 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8972 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8973 | fi | |
8974 | # Neutralize special characters interpreted by sed in replacement strings. | |
8975 | case $configure_input in #( | |
8976 | *\&* | *\|* | *\\* ) | |
8977 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8978 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8979 | *) ac_sed_conf_input=$configure_input;; | |
8980 | esac | |
8981 | ||
8982 | case $ac_tag in | |
63a9e923 SM |
8983 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
8984 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
8985 | esac |
8986 | ;; | |
c906108c SS |
8987 | esac |
8988 | ||
81ecdfbb | 8989 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
8990 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8991 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8992 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
8993 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8994 | $as_echo X"$ac_file" | | |
8995 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8996 | s//\1/ | |
8997 | q | |
8998 | } | |
8999 | /^X\(\/\/\)[^/].*/{ | |
9000 | s//\1/ | |
9001 | q | |
9002 | } | |
9003 | /^X\(\/\/\)$/{ | |
9004 | s//\1/ | |
9005 | q | |
9006 | } | |
9007 | /^X\(\/\).*/{ | |
9008 | s//\1/ | |
9009 | q | |
9010 | } | |
9011 | s/.*/./; q'` | |
9012 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
9013 | ac_builddir=. |
9014 | ||
81ecdfbb RW |
9015 | case "$ac_dir" in |
9016 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9017 | *) | |
9018 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
9019 | # A ".." for each directory in $ac_dir_suffix. | |
9020 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
9021 | case $ac_top_builddir_sub in | |
9022 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9023 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9024 | esac ;; | |
9025 | esac | |
9026 | ac_abs_top_builddir=$ac_pwd | |
9027 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9028 | # for backward compatibility: | |
9029 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 9030 | |
b7026657 | 9031 | case $srcdir in |
81ecdfbb | 9032 | .) # We are building in place. |
b7026657 | 9033 | ac_srcdir=. |
81ecdfbb RW |
9034 | ac_top_srcdir=$ac_top_builddir_sub |
9035 | ac_abs_top_srcdir=$ac_pwd ;; | |
9036 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 9037 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
9038 | ac_top_srcdir=$srcdir |
9039 | ac_abs_top_srcdir=$srcdir ;; | |
9040 | *) # Relative name. | |
9041 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9042 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9043 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 9044 | esac |
81ecdfbb | 9045 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 9046 | |
b7026657 | 9047 | |
81ecdfbb RW |
9048 | case $ac_mode in |
9049 | :F) | |
9050 | # | |
9051 | # CONFIG_FILE | |
9052 | # | |
b7026657 AC |
9053 | |
9054 | case $INSTALL in | |
9055 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 9056 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 9057 | esac |
81ecdfbb | 9058 | _ACEOF |
c906108c | 9059 | |
81ecdfbb RW |
9060 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9061 | # If the template does not know about datarootdir, expand it. | |
9062 | # FIXME: This hack should be removed a few years after 2.60. | |
9063 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
9064 | ac_sed_dataroot=' | |
9065 | /datarootdir/ { | |
9066 | p | |
9067 | q | |
9068 | } | |
9069 | /@datadir@/p | |
9070 | /@docdir@/p | |
9071 | /@infodir@/p | |
9072 | /@localedir@/p | |
9073 | /@mandir@/p' | |
9074 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
9075 | *datarootdir*) ac_datarootdir_seen=yes;; | |
9076 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
9078 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
9079 | _ACEOF | |
9080 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9081 | ac_datarootdir_hack=' | |
9082 | s&@datadir@&$datadir&g | |
9083 | s&@docdir@&$docdir&g | |
9084 | s&@infodir@&$infodir&g | |
9085 | s&@localedir@&$localedir&g | |
9086 | s&@mandir@&$mandir&g | |
9087 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
9088 | esac | |
b7026657 | 9089 | _ACEOF |
81ecdfbb RW |
9090 | |
9091 | # Neutralize VPATH when `$srcdir' = `.'. | |
9092 | # Shell code in configure.ac might set extrasub. | |
9093 | # FIXME: do we really want to maintain this feature? | |
9094 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9095 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
9096 | $extrasub |
9097 | _ACEOF | |
81ecdfbb | 9098 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
9099 | :t |
9100 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
9101 | s|@configure_input@|$ac_sed_conf_input|;t t |
9102 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
9103 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
9104 | s&@srcdir@&$ac_srcdir&;t t | |
9105 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9106 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9107 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9108 | s&@builddir@&$ac_builddir&;t t | |
9109 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9110 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9111 | s&@INSTALL@&$ac_INSTALL&;t t | |
9112 | $ac_datarootdir_hack | |
9113 | " | |
63a9e923 SM |
9114 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
9115 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
9116 | |
9117 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
63a9e923 SM |
9118 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
9119 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
9120 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
63a9e923 | 9122 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 9123 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
63a9e923 | 9124 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 9125 | |
63a9e923 | 9126 | rm -f "$ac_tmp/stdin" |
b7026657 | 9127 | case $ac_file in |
63a9e923 SM |
9128 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9129 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 9130 | esac \ |
63a9e923 | 9131 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
9132 | ;; |
9133 | :H) | |
9134 | # | |
9135 | # CONFIG_HEADER | |
9136 | # | |
b7026657 | 9137 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
9138 | { |
9139 | $as_echo "/* $configure_input */" \ | |
63a9e923 SM |
9140 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9141 | } >"$ac_tmp/config.h" \ | |
9142 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
9143 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9145 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
b7026657 | 9146 | else |
81ecdfbb | 9147 | rm -f "$ac_file" |
63a9e923 SM |
9148 | mv "$ac_tmp/config.h" "$ac_file" \ |
9149 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
c906108c | 9150 | fi |
b7026657 | 9151 | else |
81ecdfbb | 9152 | $as_echo "/* $configure_input */" \ |
63a9e923 SM |
9153 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
9154 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
c906108c | 9155 | fi |
81ecdfbb | 9156 | ;; |
b7026657 | 9157 | |
81ecdfbb RW |
9158 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9159 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
9160 | ;; | |
9161 | esac | |
b7026657 | 9162 | |
b7026657 | 9163 | |
81ecdfbb | 9164 | case $ac_file$ac_mode in |
68a3e151 | 9165 | "build-config.h":C) cp config.h build-config.h ;; |
81ecdfbb | 9166 | "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;; |
c906108c | 9167 | |
b7026657 | 9168 | esac |
81ecdfbb | 9169 | done # for ac_tag |
c906108c | 9170 | |
b7026657 | 9171 | |
81ecdfbb | 9172 | as_fn_exit 0 |
b7026657 | 9173 | _ACEOF |
b7026657 AC |
9174 | ac_clean_files=$ac_clean_files_save |
9175 | ||
81ecdfbb | 9176 | test $ac_write_fail = 0 || |
63a9e923 | 9177 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 9178 | |
b7026657 AC |
9179 | |
9180 | # configure is writing to config.log, and then calls config.status. | |
9181 | # config.status does its own redirection, appending to config.log. | |
9182 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9183 | # by configure, so config.status won't be able to write to it; its | |
9184 | # output is simply discarded. So we exec the FD to /dev/null, | |
9185 | # effectively closing config.log, so it can be properly (re)opened and | |
9186 | # appended to by config.status. When coming back to configure, we | |
9187 | # need to make the FD available again. | |
9188 | if test "$no_create" != yes; then | |
9189 | ac_cs_success=: | |
9190 | ac_config_status_args= | |
9191 | test "$silent" = yes && | |
9192 | ac_config_status_args="$ac_config_status_args --quiet" | |
9193 | exec 5>/dev/null | |
9194 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9195 | exec 5>>config.log | |
9196 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9197 | # would make configure fail if this is the last instruction. | |
63a9e923 | 9198 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
9199 | fi |
9200 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
9201 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
9202 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b7026657 | 9203 | fi |
c906108c | 9204 |