]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
6bddc3e8 MF |
3 | # Generated by GNU Autoconf 2.69 for sim 0. |
4 | # | |
5 | # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
d0ac1c44 SM |
6 | # |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 9 | # |
c906108c SS |
10 | # |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
b7026657 | 16 | |
81ecdfbb RW |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
20 | emulate sh |
21 | NULLCMD=: | |
81ecdfbb | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
25 | setopt NO_GLOB_SUBST |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
b7026657 | 33 | fi |
b7026657 | 34 | |
81ecdfbb RW |
35 | |
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
b7026657 | 52 | else |
81ecdfbb RW |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
b7026657 AC |
81 | fi |
82 | ||
83 | ||
81ecdfbb RW |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 92 | as_myself= |
81ecdfbb RW |
93 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
b7026657 AC |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
81ecdfbb RW |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
d0ac1c44 SM |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
d0ac1c44 SM |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
81ecdfbb RW |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
c2783492 | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
b5689863 MF |
201 | test \$(( 1 + 1 )) = 2 || exit 1 |
202 | ||
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
207 | PATH=/empty FPATH=/empty; export PATH FPATH | |
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
210 | if (eval "$as_required") 2>/dev/null; then : |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b7026657 | 221 | do |
81ecdfbb RW |
222 | IFS=$as_save_IFS |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
249 | export CONFIG_SHELL |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
81ecdfbb RW |
268 | fi |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b7026657 | 276 | else |
6bddc3e8 MF |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
278 | $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim | |
279 | $0: about your system, including any error possibly output | |
280 | $0: before this message. Then install a modern shell, or | |
281 | $0: manually run the script under such a shell if you do | |
282 | $0: have one." | |
b7026657 | 283 | fi |
81ecdfbb RW |
284 | exit 1 |
285 | fi | |
286 | fi | |
287 | fi | |
288 | SHELL=${CONFIG_SHELL-/bin/sh} | |
289 | export SHELL | |
290 | # Unset more variables known to interfere with behavior of common tools. | |
291 | CLICOLOR_FORCE= GREP_OPTIONS= | |
292 | unset CLICOLOR_FORCE GREP_OPTIONS | |
293 | ||
294 | ## --------------------- ## | |
295 | ## M4sh Shell Functions. ## | |
296 | ## --------------------- ## | |
297 | # as_fn_unset VAR | |
298 | # --------------- | |
299 | # Portably unset VAR. | |
300 | as_fn_unset () | |
301 | { | |
302 | { eval $1=; unset $1;} | |
303 | } | |
304 | as_unset=as_fn_unset | |
305 | ||
306 | # as_fn_set_status STATUS | |
307 | # ----------------------- | |
308 | # Set $? to STATUS, without forking. | |
309 | as_fn_set_status () | |
310 | { | |
311 | return $1 | |
312 | } # as_fn_set_status | |
313 | ||
314 | # as_fn_exit STATUS | |
315 | # ----------------- | |
316 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
317 | as_fn_exit () | |
318 | { | |
319 | set +e | |
320 | as_fn_set_status $1 | |
321 | exit $1 | |
322 | } # as_fn_exit | |
323 | ||
324 | # as_fn_mkdir_p | |
325 | # ------------- | |
326 | # Create "$as_dir" as a directory, including parents if necessary. | |
327 | as_fn_mkdir_p () | |
328 | { | |
329 | ||
330 | case $as_dir in #( | |
331 | -*) as_dir=./$as_dir;; | |
332 | esac | |
333 | test -d "$as_dir" || eval $as_mkdir_p || { | |
334 | as_dirs= | |
335 | while :; do | |
336 | case $as_dir in #( | |
337 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
338 | *) as_qdir=$as_dir;; | |
339 | esac | |
340 | as_dirs="'$as_qdir' $as_dirs" | |
341 | as_dir=`$as_dirname -- "$as_dir" || | |
342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
343 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
344 | X"$as_dir" : 'X\(//\)$' \| \ | |
345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
346 | $as_echo X"$as_dir" | | |
347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)[^/].*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\/\)$/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | /^X\(\/\).*/{ | |
360 | s//\1/ | |
361 | q | |
362 | } | |
363 | s/.*/./; q'` | |
364 | test -d "$as_dir" && break | |
365 | done | |
366 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
368 | |
369 | ||
370 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
371 | |
372 | # as_fn_executable_p FILE | |
373 | # ----------------------- | |
374 | # Test if FILE is an executable regular file. | |
375 | as_fn_executable_p () | |
376 | { | |
377 | test -f "$1" && test -x "$1" | |
378 | } # as_fn_executable_p | |
81ecdfbb RW |
379 | # as_fn_append VAR VALUE |
380 | # ---------------------- | |
381 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
382 | # advantage of any shell optimizations that allow amortized linear growth over | |
383 | # repeated appends, instead of the typical quadratic growth present in naive | |
384 | # implementations. | |
385 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
386 | eval 'as_fn_append () | |
387 | { | |
388 | eval $1+=\$2 | |
389 | }' | |
390 | else | |
391 | as_fn_append () | |
392 | { | |
393 | eval $1=\$$1\$2 | |
394 | } | |
395 | fi # as_fn_append | |
396 | ||
397 | # as_fn_arith ARG... | |
398 | # ------------------ | |
399 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
400 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
401 | # must be portable across $(()) and expr. | |
402 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
403 | eval 'as_fn_arith () | |
404 | { | |
405 | as_val=$(( $* )) | |
406 | }' | |
407 | else | |
408 | as_fn_arith () | |
409 | { | |
410 | as_val=`expr "$@" || test $? -eq 1` | |
411 | } | |
412 | fi # as_fn_arith | |
413 | ||
414 | ||
d0ac1c44 SM |
415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
416 | # ---------------------------------------- | |
81ecdfbb RW |
417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 419 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
420 | as_fn_error () |
421 | { | |
d0ac1c44 SM |
422 | as_status=$1; test $as_status -eq 0 && as_status=1 |
423 | if test "$4"; then | |
424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
425 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 426 | fi |
d0ac1c44 | 427 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
428 | as_fn_exit $as_status |
429 | } # as_fn_error | |
b7026657 | 430 | |
81ecdfbb RW |
431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
433 | as_expr=expr |
434 | else | |
435 | as_expr=false | |
436 | fi | |
437 | ||
81ecdfbb | 438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
439 | as_basename=basename |
440 | else | |
441 | as_basename=false | |
442 | fi | |
443 | ||
81ecdfbb RW |
444 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
445 | as_dirname=dirname | |
446 | else | |
447 | as_dirname=false | |
448 | fi | |
b7026657 | 449 | |
81ecdfbb | 450 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
452 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
454 | $as_echo X/"$0" | | |
455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\/\)$/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | /^X\/\(\/\).*/{ | |
464 | s//\1/ | |
465 | q | |
466 | } | |
467 | s/.*/./; q'` | |
b7026657 | 468 | |
fdd6fa61 AG |
469 | # Avoid depending upon Character Ranges. |
470 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
471 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
472 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
473 | as_cr_digits='0123456789' | |
474 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
df1756f4 | 475 | |
b7026657 | 476 | |
81ecdfbb RW |
477 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
478 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
479 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
480 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
481 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
482 | sed -n ' | |
483 | p | |
484 | /[$]LINENO/= | |
485 | ' <$as_myself | | |
b7026657 | 486 | sed ' |
81ecdfbb RW |
487 | s/[$]LINENO.*/&-/ |
488 | t lineno | |
489 | b | |
490 | :lineno | |
b7026657 | 491 | N |
81ecdfbb RW |
492 | :loop |
493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b7026657 | 494 | t loop |
81ecdfbb | 495 | s/-\n.*// |
b7026657 | 496 | ' >$as_me.lineno && |
81ecdfbb RW |
497 | chmod +x "$as_me.lineno" || |
498 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b7026657 | 499 | |
d0ac1c44 SM |
500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
501 | # already done that, so ensure we don't try to do so again and fall | |
502 | # in an infinite loop. This has already happened in practice. | |
503 | _as_can_reexec=no; export _as_can_reexec | |
b7026657 AC |
504 | # Don't try to exec as it changes $[0], causing all sort of problems |
505 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
506 | # original and so on. Autoconf is especially sensitive to this). |
507 | . "./$as_me.lineno" | |
b7026657 AC |
508 | # Exit status is that of the last command. |
509 | exit | |
510 | } | |
511 | ||
81ecdfbb RW |
512 | ECHO_C= ECHO_N= ECHO_T= |
513 | case `echo -n x` in #((((( | |
514 | -n*) | |
515 | case `echo 'xy\c'` in | |
516 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
517 | xy) ECHO_C='\c';; | |
518 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
519 | ECHO_T=' ';; | |
520 | esac;; | |
521 | *) | |
522 | ECHO_N='-n';; | |
b7026657 AC |
523 | esac |
524 | ||
81ecdfbb RW |
525 | rm -f conf$$ conf$$.exe conf$$.file |
526 | if test -d conf$$.dir; then | |
527 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 528 | else |
81ecdfbb RW |
529 | rm -f conf$$.dir |
530 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 531 | fi |
81ecdfbb RW |
532 | if (echo >conf$$.file) 2>/dev/null; then |
533 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 534 | as_ln_s='ln -s' |
81ecdfbb RW |
535 | # ... but there are two gotchas: |
536 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
537 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 538 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 539 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
81ecdfbb RW |
541 | elif ln conf$$.file conf$$ 2>/dev/null; then |
542 | as_ln_s=ln | |
543 | else | |
d0ac1c44 | 544 | as_ln_s='cp -pR' |
fdd6fa61 | 545 | fi |
b7026657 | 546 | else |
d0ac1c44 | 547 | as_ln_s='cp -pR' |
b7026657 | 548 | fi |
81ecdfbb RW |
549 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
550 | rmdir conf$$.dir 2>/dev/null | |
b7026657 AC |
551 | |
552 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 553 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
554 | else |
555 | test -d ./-p && rmdir ./-p | |
556 | as_mkdir_p=false | |
557 | fi | |
c906108c | 558 | |
d0ac1c44 SM |
559 | as_test_x='test -x' |
560 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
561 | |
562 | # Sed expression to map a string onto a valid CPP name. | |
563 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
564 | ||
565 | # Sed expression to map a string onto a valid variable name. | |
566 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
567 | ||
b5689863 MF |
568 | SHELL=${CONFIG_SHELL-/bin/sh} |
569 | ||
b7026657 | 570 | |
d0ac1c44 SM |
571 | test -n "$DJDIR" || exec 7<&0 </dev/null |
572 | exec 6>&1 | |
b7026657 AC |
573 | |
574 | # Name of the host. | |
d0ac1c44 | 575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b7026657 AC |
576 | # so uname gets run too. |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
578 | ||
b7026657 AC |
579 | # |
580 | # Initializations. | |
581 | # | |
c906108c | 582 | ac_default_prefix=/usr/local |
81ecdfbb | 583 | ac_clean_files= |
b7026657 | 584 | ac_config_libobj_dir=. |
81ecdfbb | 585 | LIBOBJS= |
b7026657 AC |
586 | cross_compiling=no |
587 | subdirs= | |
588 | MFLAGS= | |
589 | MAKEFLAGS= | |
fdd6fa61 | 590 | |
b7026657 | 591 | # Identity of this package. |
6bddc3e8 MF |
592 | PACKAGE_NAME='sim' |
593 | PACKAGE_TARNAME='sim' | |
594 | PACKAGE_VERSION='0' | |
595 | PACKAGE_STRING='sim 0' | |
596 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim' | |
597 | PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/' | |
598 | ||
c2783492 MF |
599 | # Factoring default headers for most tests. |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
602 | #ifdef HAVE_SYS_TYPES_H | |
603 | # include <sys/types.h> | |
604 | #endif | |
605 | #ifdef HAVE_SYS_STAT_H | |
606 | # include <sys/stat.h> | |
607 | #endif | |
608 | #ifdef STDC_HEADERS | |
609 | # include <stdlib.h> | |
610 | # include <stddef.h> | |
611 | #else | |
612 | # ifdef HAVE_STDLIB_H | |
613 | # include <stdlib.h> | |
614 | # endif | |
615 | #endif | |
616 | #ifdef HAVE_STRING_H | |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
618 | # include <memory.h> | |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
622 | #ifdef HAVE_STRINGS_H | |
623 | # include <strings.h> | |
624 | #endif | |
625 | #ifdef HAVE_INTTYPES_H | |
626 | # include <inttypes.h> | |
627 | #endif | |
628 | #ifdef HAVE_STDINT_H | |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
632 | # include <unistd.h> | |
633 | #endif" | |
634 | ||
b15c5d7a MF |
635 | ac_header_list= |
636 | ac_func_list= | |
6bddc3e8 MF |
637 | ac_subst_vars='am__EXEEXT_FALSE |
638 | am__EXEEXT_TRUE | |
639 | LTLIBOBJS | |
e173c80f | 640 | SIM_RX_CYCLE_ACCURATE_FLAGS |
1787fcc4 | 641 | SIM_RISCV_BITSIZE |
5f7e03a6 MF |
642 | sim_ppc_model_issue |
643 | sim_ppc_default_model | |
644 | sim_ppc_model | |
645 | sim_ppc_monitor | |
646 | sim_ppc_float | |
647 | sim_ppc_timebase | |
648 | sim_ppc_bitsize | |
649 | sim_ppc_igen_smp | |
650 | sim_ppc_smp | |
651 | sim_ppc_xor_endian | |
652 | sim_ppc_hw_obj | |
653 | sim_ppc_hw_src | |
654 | sim_ppc_icache | |
655 | sim_ppc_filter | |
656 | sim_ppc_jump | |
657 | sim_ppc_decode_mechanism | |
658 | sim_ppc_dup | |
659 | sim_ppc_switch | |
660 | sim_ppc_opcode | |
661 | sim_ppc_line_nr | |
f12c3c63 MF |
662 | SIM_MIPS_GEN_MODE_MULTI_FALSE |
663 | SIM_MIPS_GEN_MODE_MULTI_TRUE | |
f6d58d40 MF |
664 | SIM_MIPS_GEN_MODE_M16_FALSE |
665 | SIM_MIPS_GEN_MODE_M16_TRUE | |
3a31051b MF |
666 | SIM_MIPS_GEN_MODE_SINGLE_FALSE |
667 | SIM_MIPS_GEN_MODE_SINGLE_TRUE | |
abc494c6 MF |
668 | SIM_MIPS_MULTI_OBJ |
669 | SIM_MIPS_MULTI_SRC | |
670 | SIM_MIPS_MULTI_IGEN_CONFIGS | |
4c45662c | 671 | SIM_MIPS_IGEN_ITABLE_FLAGS |
abc494c6 | 672 | SIM_MIPS_GEN |
abc494c6 | 673 | SIM_MIPS_M16_FLAGS |
07f60ed8 | 674 | SIM_MIPS_SINGLE_FLAGS |
d455df98 | 675 | SIM_MIPS_FPU_BITSIZE |
19b11256 | 676 | SIM_MIPS_BITSIZE |
2d5700ad | 677 | SIM_MIPS_SUBTARGET |
408a44aa | 678 | SIM_FRV_TRAPDUMP_FLAGS |
4da6be3f MF |
679 | SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE |
680 | SIM_CFLAG_WNO_SHADOW_LOCAL | |
111b1cf9 | 681 | IGEN_FLAGS_SMP |
d73f39ee | 682 | SIM_INLINE |
682a2a82 MF |
683 | SIM_HW_SOCKSER |
684 | SIM_HW_CFLAGS | |
456ef1c1 MF |
685 | SIM_ENABLE_HW_FALSE |
686 | SIM_ENABLE_HW_TRUE | |
1bf5c342 MF |
687 | cgen |
688 | cgendir | |
689 | CGEN_MAINT | |
fb2c495f MF |
690 | ENABLE_SIM_FALSE |
691 | ENABLE_SIM_TRUE | |
c0c25232 MF |
692 | SIM_ENABLE_ARCH_examples_FALSE |
693 | SIM_ENABLE_ARCH_examples_TRUE | |
8996c210 MF |
694 | CC_FOR_TARGET_EXAMPLE_SYNACOR |
695 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
696 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
65dcce8f MF |
697 | SIM_ENABLE_ARCH_v850_FALSE |
698 | SIM_ENABLE_ARCH_v850_TRUE | |
8996c210 MF |
699 | CC_FOR_TARGET_V850 |
700 | LD_FOR_TARGET_V850 | |
701 | AS_FOR_TARGET_V850 | |
65dcce8f MF |
702 | SIM_ENABLE_ARCH_erc32_FALSE |
703 | SIM_ENABLE_ARCH_erc32_TRUE | |
8996c210 MF |
704 | CC_FOR_TARGET_ERC32 |
705 | LD_FOR_TARGET_ERC32 | |
706 | AS_FOR_TARGET_ERC32 | |
65dcce8f MF |
707 | SIM_ENABLE_ARCH_sh_FALSE |
708 | SIM_ENABLE_ARCH_sh_TRUE | |
8996c210 MF |
709 | CC_FOR_TARGET_SH |
710 | LD_FOR_TARGET_SH | |
711 | AS_FOR_TARGET_SH | |
65dcce8f MF |
712 | SIM_ENABLE_ARCH_rx_FALSE |
713 | SIM_ENABLE_ARCH_rx_TRUE | |
8996c210 MF |
714 | CC_FOR_TARGET_RX |
715 | LD_FOR_TARGET_RX | |
716 | AS_FOR_TARGET_RX | |
65dcce8f MF |
717 | SIM_ENABLE_ARCH_rl78_FALSE |
718 | SIM_ENABLE_ARCH_rl78_TRUE | |
8996c210 MF |
719 | CC_FOR_TARGET_RL78 |
720 | LD_FOR_TARGET_RL78 | |
721 | AS_FOR_TARGET_RL78 | |
65dcce8f MF |
722 | SIM_ENABLE_ARCH_riscv_FALSE |
723 | SIM_ENABLE_ARCH_riscv_TRUE | |
8996c210 MF |
724 | CC_FOR_TARGET_RISCV |
725 | LD_FOR_TARGET_RISCV | |
726 | AS_FOR_TARGET_RISCV | |
65dcce8f MF |
727 | SIM_ENABLE_ARCH_pru_FALSE |
728 | SIM_ENABLE_ARCH_pru_TRUE | |
8996c210 MF |
729 | CC_FOR_TARGET_PRU |
730 | LD_FOR_TARGET_PRU | |
731 | AS_FOR_TARGET_PRU | |
65dcce8f MF |
732 | SIM_ENABLE_ARCH_ppc_FALSE |
733 | SIM_ENABLE_ARCH_ppc_TRUE | |
8996c210 MF |
734 | CC_FOR_TARGET_PPC |
735 | LD_FOR_TARGET_PPC | |
736 | AS_FOR_TARGET_PPC | |
65dcce8f MF |
737 | SIM_ENABLE_ARCH_or1k_FALSE |
738 | SIM_ENABLE_ARCH_or1k_TRUE | |
8996c210 MF |
739 | CC_FOR_TARGET_OR1K |
740 | LD_FOR_TARGET_OR1K | |
741 | AS_FOR_TARGET_OR1K | |
65dcce8f MF |
742 | SIM_ENABLE_ARCH_msp430_FALSE |
743 | SIM_ENABLE_ARCH_msp430_TRUE | |
8996c210 MF |
744 | CC_FOR_TARGET_MSP430 |
745 | LD_FOR_TARGET_MSP430 | |
746 | AS_FOR_TARGET_MSP430 | |
65dcce8f MF |
747 | SIM_ENABLE_ARCH_moxie_FALSE |
748 | SIM_ENABLE_ARCH_moxie_TRUE | |
8996c210 MF |
749 | CC_FOR_TARGET_MOXIE |
750 | LD_FOR_TARGET_MOXIE | |
751 | AS_FOR_TARGET_MOXIE | |
65dcce8f MF |
752 | SIM_ENABLE_ARCH_mn10300_FALSE |
753 | SIM_ENABLE_ARCH_mn10300_TRUE | |
8996c210 MF |
754 | CC_FOR_TARGET_MN10300 |
755 | LD_FOR_TARGET_MN10300 | |
756 | AS_FOR_TARGET_MN10300 | |
65dcce8f MF |
757 | SIM_ENABLE_ARCH_mips_FALSE |
758 | SIM_ENABLE_ARCH_mips_TRUE | |
8996c210 MF |
759 | CC_FOR_TARGET_MIPS |
760 | LD_FOR_TARGET_MIPS | |
761 | AS_FOR_TARGET_MIPS | |
65dcce8f MF |
762 | SIM_ENABLE_ARCH_microblaze_FALSE |
763 | SIM_ENABLE_ARCH_microblaze_TRUE | |
8996c210 MF |
764 | CC_FOR_TARGET_MICROBLAZE |
765 | LD_FOR_TARGET_MICROBLAZE | |
766 | AS_FOR_TARGET_MICROBLAZE | |
65dcce8f MF |
767 | SIM_ENABLE_ARCH_mcore_FALSE |
768 | SIM_ENABLE_ARCH_mcore_TRUE | |
8996c210 MF |
769 | CC_FOR_TARGET_MCORE |
770 | LD_FOR_TARGET_MCORE | |
771 | AS_FOR_TARGET_MCORE | |
65dcce8f MF |
772 | SIM_ENABLE_ARCH_m68hc11_FALSE |
773 | SIM_ENABLE_ARCH_m68hc11_TRUE | |
8996c210 MF |
774 | CC_FOR_TARGET_M68HC11 |
775 | LD_FOR_TARGET_M68HC11 | |
776 | AS_FOR_TARGET_M68HC11 | |
65dcce8f MF |
777 | SIM_ENABLE_ARCH_m32r_FALSE |
778 | SIM_ENABLE_ARCH_m32r_TRUE | |
8996c210 MF |
779 | CC_FOR_TARGET_M32R |
780 | LD_FOR_TARGET_M32R | |
781 | AS_FOR_TARGET_M32R | |
65dcce8f MF |
782 | SIM_ENABLE_ARCH_m32c_FALSE |
783 | SIM_ENABLE_ARCH_m32c_TRUE | |
8996c210 MF |
784 | CC_FOR_TARGET_M32C |
785 | LD_FOR_TARGET_M32C | |
786 | AS_FOR_TARGET_M32C | |
65dcce8f MF |
787 | SIM_ENABLE_ARCH_lm32_FALSE |
788 | SIM_ENABLE_ARCH_lm32_TRUE | |
8996c210 MF |
789 | CC_FOR_TARGET_LM32 |
790 | LD_FOR_TARGET_LM32 | |
791 | AS_FOR_TARGET_LM32 | |
65dcce8f MF |
792 | SIM_ENABLE_ARCH_iq2000_FALSE |
793 | SIM_ENABLE_ARCH_iq2000_TRUE | |
8996c210 MF |
794 | CC_FOR_TARGET_IQ2000 |
795 | LD_FOR_TARGET_IQ2000 | |
796 | AS_FOR_TARGET_IQ2000 | |
65dcce8f MF |
797 | SIM_ENABLE_ARCH_h8300_FALSE |
798 | SIM_ENABLE_ARCH_h8300_TRUE | |
8996c210 MF |
799 | CC_FOR_TARGET_H8300 |
800 | LD_FOR_TARGET_H8300 | |
801 | AS_FOR_TARGET_H8300 | |
65dcce8f MF |
802 | SIM_ENABLE_ARCH_ft32_FALSE |
803 | SIM_ENABLE_ARCH_ft32_TRUE | |
8996c210 MF |
804 | CC_FOR_TARGET_FT32 |
805 | LD_FOR_TARGET_FT32 | |
806 | AS_FOR_TARGET_FT32 | |
65dcce8f MF |
807 | SIM_ENABLE_ARCH_frv_FALSE |
808 | SIM_ENABLE_ARCH_frv_TRUE | |
8996c210 MF |
809 | CC_FOR_TARGET_FRV |
810 | LD_FOR_TARGET_FRV | |
811 | AS_FOR_TARGET_FRV | |
65dcce8f MF |
812 | SIM_ENABLE_ARCH_d10v_FALSE |
813 | SIM_ENABLE_ARCH_d10v_TRUE | |
8996c210 MF |
814 | CC_FOR_TARGET_D10V |
815 | LD_FOR_TARGET_D10V | |
816 | AS_FOR_TARGET_D10V | |
65dcce8f MF |
817 | SIM_ENABLE_ARCH_cris_FALSE |
818 | SIM_ENABLE_ARCH_cris_TRUE | |
8996c210 MF |
819 | CC_FOR_TARGET_CRIS |
820 | LD_FOR_TARGET_CRIS | |
821 | AS_FOR_TARGET_CRIS | |
65dcce8f MF |
822 | SIM_ENABLE_ARCH_cr16_FALSE |
823 | SIM_ENABLE_ARCH_cr16_TRUE | |
8996c210 MF |
824 | CC_FOR_TARGET_CR16 |
825 | LD_FOR_TARGET_CR16 | |
826 | AS_FOR_TARGET_CR16 | |
65dcce8f MF |
827 | SIM_ENABLE_ARCH_bpf_FALSE |
828 | SIM_ENABLE_ARCH_bpf_TRUE | |
8996c210 MF |
829 | CC_FOR_TARGET_BPF |
830 | LD_FOR_TARGET_BPF | |
831 | AS_FOR_TARGET_BPF | |
65dcce8f MF |
832 | SIM_ENABLE_ARCH_bfin_FALSE |
833 | SIM_ENABLE_ARCH_bfin_TRUE | |
8996c210 MF |
834 | CC_FOR_TARGET_BFIN |
835 | LD_FOR_TARGET_BFIN | |
836 | AS_FOR_TARGET_BFIN | |
65dcce8f MF |
837 | SIM_ENABLE_ARCH_avr_FALSE |
838 | SIM_ENABLE_ARCH_avr_TRUE | |
8996c210 MF |
839 | CC_FOR_TARGET_AVR |
840 | LD_FOR_TARGET_AVR | |
841 | AS_FOR_TARGET_AVR | |
65dcce8f MF |
842 | SIM_ENABLE_ARCH_arm_FALSE |
843 | SIM_ENABLE_ARCH_arm_TRUE | |
8996c210 MF |
844 | CC_FOR_TARGET_ARM |
845 | LD_FOR_TARGET_ARM | |
846 | AS_FOR_TARGET_ARM | |
65dcce8f MF |
847 | SIM_ENABLE_ARCH_aarch64_FALSE |
848 | SIM_ENABLE_ARCH_aarch64_TRUE | |
8996c210 MF |
849 | CC_FOR_TARGET_AARCH64 |
850 | LD_FOR_TARGET_AARCH64 | |
851 | AS_FOR_TARGET_AARCH64 | |
dc4e1fde HPN |
852 | LD_FOR_TARGET |
853 | AS_FOR_TARGET | |
854 | CC_FOR_TARGET | |
2ba09f42 | 855 | SIM_ENABLED_ARCHES |
a0e674c1 | 856 | SIM_PRIMARY_TARGET |
c2783492 MF |
857 | AM_BACKSLASH |
858 | AM_DEFAULT_VERBOSITY | |
859 | AM_DEFAULT_V | |
860 | AM_V | |
6bddc3e8 MF |
861 | am__fastdepCC_FALSE |
862 | am__fastdepCC_TRUE | |
863 | CCDEPMODE | |
864 | am__nodep | |
865 | AMDEPBACKSLASH | |
866 | AMDEP_FALSE | |
867 | AMDEP_TRUE | |
868 | am__quote | |
869 | am__include | |
870 | DEPDIR | |
6bddc3e8 MF |
871 | am__untar |
872 | am__tar | |
873 | AMTAR | |
874 | am__leading_dot | |
875 | SET_MAKE | |
6bddc3e8 MF |
876 | mkdir_p |
877 | MKDIR_P | |
878 | INSTALL_STRIP_PROGRAM | |
6bddc3e8 MF |
879 | install_sh |
880 | MAKEINFO | |
881 | AUTOHEADER | |
882 | AUTOMAKE | |
883 | AUTOCONF | |
884 | ACLOCAL | |
885 | VERSION | |
886 | PACKAGE | |
887 | CYGPATH_W | |
888 | am__isrc | |
8c379db2 TT |
889 | MAINT |
890 | MAINTAINER_MODE_FALSE | |
891 | MAINTAINER_MODE_TRUE | |
5d0b3088 MF |
892 | READLINE_CFLAGS |
893 | READLINE_LIB | |
894 | TERMCAP_LIB | |
d57b6533 MF |
895 | SDL_LIBS |
896 | SDL_CFLAGS | |
b5689863 MF |
897 | OTOOL64 |
898 | OTOOL | |
899 | LIPO | |
900 | NMEDIT | |
901 | DSYMUTIL | |
902 | AWK | |
903 | STRIP | |
904 | OBJDUMP | |
905 | LN_S | |
906 | NM | |
907 | ac_ct_DUMPBIN | |
908 | DUMPBIN | |
909 | LD | |
910 | FGREP | |
911 | SED | |
912 | LIBTOOL | |
a48ff3ef | 913 | LIBOBJS |
c2783492 | 914 | C_DIALECT |
d57b6533 MF |
915 | PKG_CONFIG_LIBDIR |
916 | PKG_CONFIG_PATH | |
917 | PKG_CONFIG | |
c2783492 MF |
918 | RANLIB |
919 | AR | |
920 | LDFLAGS_FOR_BUILD | |
fde7c6bf | 921 | CPPFLAGS_FOR_BUILD |
c2783492 | 922 | CFLAGS_FOR_BUILD |
aa0fca16 | 923 | RANLIB_FOR_BUILD |
c2783492 | 924 | CC_FOR_BUILD |
aa0fca16 | 925 | AR_FOR_BUILD |
a979f2a0 | 926 | DTC |
c2783492 MF |
927 | INSTALL_DATA |
928 | INSTALL_SCRIPT | |
929 | INSTALL_PROGRAM | |
930 | EGREP | |
931 | GREP | |
932 | CPP | |
933 | OBJEXT | |
934 | EXEEXT | |
935 | ac_ct_CC | |
936 | CPPFLAGS | |
937 | LDFLAGS | |
938 | CFLAGS | |
939 | CC | |
81ecdfbb RW |
940 | target_os |
941 | target_vendor | |
942 | target_cpu | |
943 | target | |
944 | host_os | |
945 | host_vendor | |
946 | host_cpu | |
947 | host | |
948 | build_os | |
949 | build_vendor | |
950 | build_cpu | |
951 | build | |
6dd65fc0 MF |
952 | REPORT_BUGS_TEXI |
953 | REPORT_BUGS_TO | |
954 | PKGVERSION | |
81ecdfbb RW |
955 | target_alias |
956 | host_alias | |
957 | build_alias | |
958 | LIBS | |
959 | ECHO_T | |
960 | ECHO_N | |
961 | ECHO_C | |
962 | DEFS | |
963 | mandir | |
964 | localedir | |
965 | libdir | |
966 | psdir | |
967 | pdfdir | |
968 | dvidir | |
969 | htmldir | |
970 | infodir | |
971 | docdir | |
972 | oldincludedir | |
973 | includedir | |
974 | localstatedir | |
975 | sharedstatedir | |
976 | sysconfdir | |
977 | datadir | |
978 | datarootdir | |
979 | libexecdir | |
980 | sbindir | |
981 | bindir | |
982 | program_transform_name | |
983 | prefix | |
984 | exec_prefix | |
985 | PACKAGE_URL | |
986 | PACKAGE_BUGREPORT | |
987 | PACKAGE_STRING | |
988 | PACKAGE_VERSION | |
989 | PACKAGE_TARNAME | |
990 | PACKAGE_NAME | |
991 | PATH_SEPARATOR | |
47ce766a | 992 | SHELL |
8996c210 | 993 | SIM_TOOLCHAIN_VARS |
435ad222 MF |
994 | BUILD_WERROR_CFLAGS |
995 | BUILD_WARN_CFLAGS | |
47ce766a MF |
996 | WERROR_CFLAGS |
997 | WARN_CFLAGS' | |
b7026657 | 998 | ac_subst_files='' |
81ecdfbb RW |
999 | ac_user_opts=' |
1000 | enable_option_checking | |
6dd65fc0 MF |
1001 | with_pkgversion |
1002 | with_bugurl | |
b5689863 MF |
1003 | enable_shared |
1004 | enable_static | |
1005 | with_pic | |
1006 | enable_fast_install | |
1007 | with_gnu_ld | |
1008 | enable_libtool_lock | |
8c379db2 | 1009 | enable_maintainer_mode |
6bddc3e8 | 1010 | enable_dependency_tracking |
c2783492 | 1011 | enable_silent_rules |
81ecdfbb | 1012 | enable_sim |
26da232c | 1013 | enable_example_sims |
a0e674c1 | 1014 | enable_targets |
ba307cdd | 1015 | enable_sim_alignment |
dba333c1 | 1016 | enable_sim_assert |
1bf5c342 | 1017 | enable_cgen_maint |
04381273 | 1018 | enable_sim_debug |
f9a4d543 | 1019 | enable_sim_endian |
5ea45474 | 1020 | enable_sim_environment |
456ef1c1 | 1021 | enable_sim_hardware |
d73f39ee | 1022 | enable_sim_inline |
04381273 | 1023 | enable_sim_profile |
7eb1f99a | 1024 | enable_sim_reserved_bits |
b79efe26 | 1025 | enable_sim_scache |
20b579ba | 1026 | enable_sim_smp |
04381273 MF |
1027 | enable_sim_stdio |
1028 | enable_sim_trace | |
47ce766a MF |
1029 | enable_werror |
1030 | enable_build_warnings | |
1031 | enable_sim_build_warnings | |
408a44aa | 1032 | enable_sim_frv_trapdump |
5f7e03a6 MF |
1033 | enable_sim_ppc_bitsize |
1034 | enable_sim_ppc_decode_mechanism | |
1035 | enable_sim_ppc_default_model | |
1036 | enable_sim_ppc_duplicate | |
1037 | enable_sim_ppc_filter | |
1038 | enable_sim_ppc_float | |
1039 | enable_sim_ppc_hardware | |
1040 | enable_sim_ppc_icache | |
1041 | enable_sim_ppc_jump | |
1042 | enable_sim_ppc_line_nr | |
1043 | enable_sim_ppc_model | |
1044 | enable_sim_ppc_model_issue | |
1045 | enable_sim_ppc_monitor | |
1046 | enable_sim_ppc_opcode | |
1047 | enable_sim_ppc_smp | |
1048 | enable_sim_ppc_switch | |
1049 | enable_sim_ppc_timebase | |
1050 | enable_sim_ppc_xor_endian | |
e173c80f | 1051 | enable_sim_rx_cycle_accurate |
81ecdfbb RW |
1052 | ' |
1053 | ac_precious_vars='build_alias | |
1054 | host_alias | |
1055 | target_alias | |
1056 | CC | |
1057 | CFLAGS | |
1058 | LDFLAGS | |
1059 | LIBS | |
5e25901f | 1060 | CPPFLAGS |
d57b6533 MF |
1061 | CPP |
1062 | PKG_CONFIG | |
1063 | PKG_CONFIG_PATH | |
1064 | PKG_CONFIG_LIBDIR | |
1065 | SDL_CFLAGS | |
8996c210 MF |
1066 | SDL_LIBS |
1067 | AS_FOR_TARGET_AARCH64 | |
1068 | LD_FOR_TARGET_AARCH64 | |
1069 | CC_FOR_TARGET_AARCH64 | |
1070 | AS_FOR_TARGET_ARM | |
1071 | LD_FOR_TARGET_ARM | |
1072 | CC_FOR_TARGET_ARM | |
1073 | AS_FOR_TARGET_AVR | |
1074 | LD_FOR_TARGET_AVR | |
1075 | CC_FOR_TARGET_AVR | |
1076 | AS_FOR_TARGET_BFIN | |
1077 | LD_FOR_TARGET_BFIN | |
1078 | CC_FOR_TARGET_BFIN | |
1079 | AS_FOR_TARGET_BPF | |
1080 | LD_FOR_TARGET_BPF | |
1081 | CC_FOR_TARGET_BPF | |
1082 | AS_FOR_TARGET_CR16 | |
1083 | LD_FOR_TARGET_CR16 | |
1084 | CC_FOR_TARGET_CR16 | |
1085 | AS_FOR_TARGET_CRIS | |
1086 | LD_FOR_TARGET_CRIS | |
1087 | CC_FOR_TARGET_CRIS | |
1088 | AS_FOR_TARGET_D10V | |
1089 | LD_FOR_TARGET_D10V | |
1090 | CC_FOR_TARGET_D10V | |
1091 | AS_FOR_TARGET_FRV | |
1092 | LD_FOR_TARGET_FRV | |
1093 | CC_FOR_TARGET_FRV | |
1094 | AS_FOR_TARGET_FT32 | |
1095 | LD_FOR_TARGET_FT32 | |
1096 | CC_FOR_TARGET_FT32 | |
1097 | AS_FOR_TARGET_H8300 | |
1098 | LD_FOR_TARGET_H8300 | |
1099 | CC_FOR_TARGET_H8300 | |
1100 | AS_FOR_TARGET_IQ2000 | |
1101 | LD_FOR_TARGET_IQ2000 | |
1102 | CC_FOR_TARGET_IQ2000 | |
1103 | AS_FOR_TARGET_LM32 | |
1104 | LD_FOR_TARGET_LM32 | |
1105 | CC_FOR_TARGET_LM32 | |
1106 | AS_FOR_TARGET_M32C | |
1107 | LD_FOR_TARGET_M32C | |
1108 | CC_FOR_TARGET_M32C | |
1109 | AS_FOR_TARGET_M32R | |
1110 | LD_FOR_TARGET_M32R | |
1111 | CC_FOR_TARGET_M32R | |
1112 | AS_FOR_TARGET_M68HC11 | |
1113 | LD_FOR_TARGET_M68HC11 | |
1114 | CC_FOR_TARGET_M68HC11 | |
1115 | AS_FOR_TARGET_MCORE | |
1116 | LD_FOR_TARGET_MCORE | |
1117 | CC_FOR_TARGET_MCORE | |
1118 | AS_FOR_TARGET_MICROBLAZE | |
1119 | LD_FOR_TARGET_MICROBLAZE | |
1120 | CC_FOR_TARGET_MICROBLAZE | |
1121 | AS_FOR_TARGET_MIPS | |
1122 | LD_FOR_TARGET_MIPS | |
1123 | CC_FOR_TARGET_MIPS | |
1124 | AS_FOR_TARGET_MN10300 | |
1125 | LD_FOR_TARGET_MN10300 | |
1126 | CC_FOR_TARGET_MN10300 | |
1127 | AS_FOR_TARGET_MOXIE | |
1128 | LD_FOR_TARGET_MOXIE | |
1129 | CC_FOR_TARGET_MOXIE | |
1130 | AS_FOR_TARGET_MSP430 | |
1131 | LD_FOR_TARGET_MSP430 | |
1132 | CC_FOR_TARGET_MSP430 | |
1133 | AS_FOR_TARGET_OR1K | |
1134 | LD_FOR_TARGET_OR1K | |
1135 | CC_FOR_TARGET_OR1K | |
1136 | AS_FOR_TARGET_PPC | |
1137 | LD_FOR_TARGET_PPC | |
1138 | CC_FOR_TARGET_PPC | |
1139 | AS_FOR_TARGET_PRU | |
1140 | LD_FOR_TARGET_PRU | |
1141 | CC_FOR_TARGET_PRU | |
1142 | AS_FOR_TARGET_RISCV | |
1143 | LD_FOR_TARGET_RISCV | |
1144 | CC_FOR_TARGET_RISCV | |
1145 | AS_FOR_TARGET_RL78 | |
1146 | LD_FOR_TARGET_RL78 | |
1147 | CC_FOR_TARGET_RL78 | |
1148 | AS_FOR_TARGET_RX | |
1149 | LD_FOR_TARGET_RX | |
1150 | CC_FOR_TARGET_RX | |
1151 | AS_FOR_TARGET_SH | |
1152 | LD_FOR_TARGET_SH | |
1153 | CC_FOR_TARGET_SH | |
1154 | AS_FOR_TARGET_ERC32 | |
1155 | LD_FOR_TARGET_ERC32 | |
1156 | CC_FOR_TARGET_ERC32 | |
1157 | AS_FOR_TARGET_V850 | |
1158 | LD_FOR_TARGET_V850 | |
1159 | CC_FOR_TARGET_V850 | |
1160 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
1161 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
1162 | CC_FOR_TARGET_EXAMPLE_SYNACOR' | |
5f7e03a6 | 1163 | |
c906108c SS |
1164 | |
1165 | # Initialize some variables set by options. | |
b7026657 AC |
1166 | ac_init_help= |
1167 | ac_init_version=false | |
81ecdfbb RW |
1168 | ac_unrecognized_opts= |
1169 | ac_unrecognized_sep= | |
c906108c SS |
1170 | # The variables have the same names as the options, with |
1171 | # dashes changed to underlines. | |
b7026657 | 1172 | cache_file=/dev/null |
c906108c | 1173 | exec_prefix=NONE |
c906108c | 1174 | no_create= |
c906108c SS |
1175 | no_recursion= |
1176 | prefix=NONE | |
1177 | program_prefix=NONE | |
1178 | program_suffix=NONE | |
1179 | program_transform_name=s,x,x, | |
1180 | silent= | |
1181 | site= | |
1182 | srcdir= | |
c906108c SS |
1183 | verbose= |
1184 | x_includes=NONE | |
1185 | x_libraries=NONE | |
b7026657 AC |
1186 | |
1187 | # Installation directory options. | |
1188 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1189 | # and all the variables that are supposed to be based on exec_prefix | |
1190 | # by default will actually change. | |
1191 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 1192 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
1193 | bindir='${exec_prefix}/bin' |
1194 | sbindir='${exec_prefix}/sbin' | |
1195 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
1196 | datarootdir='${prefix}/share' |
1197 | datadir='${datarootdir}' | |
c906108c SS |
1198 | sysconfdir='${prefix}/etc' |
1199 | sharedstatedir='${prefix}/com' | |
1200 | localstatedir='${prefix}/var' | |
c906108c SS |
1201 | includedir='${prefix}/include' |
1202 | oldincludedir='/usr/include' | |
6bddc3e8 | 1203 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
1204 | infodir='${datarootdir}/info' |
1205 | htmldir='${docdir}' | |
1206 | dvidir='${docdir}' | |
1207 | pdfdir='${docdir}' | |
1208 | psdir='${docdir}' | |
1209 | libdir='${exec_prefix}/lib' | |
1210 | localedir='${datarootdir}/locale' | |
1211 | mandir='${datarootdir}/man' | |
c906108c | 1212 | |
c906108c | 1213 | ac_prev= |
81ecdfbb | 1214 | ac_dashdash= |
c906108c SS |
1215 | for ac_option |
1216 | do | |
c906108c SS |
1217 | # If the previous option needs an argument, assign it. |
1218 | if test -n "$ac_prev"; then | |
81ecdfbb | 1219 | eval $ac_prev=\$ac_option |
c906108c SS |
1220 | ac_prev= |
1221 | continue | |
1222 | fi | |
1223 | ||
81ecdfbb | 1224 | case $ac_option in |
d0ac1c44 SM |
1225 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1226 | *=) ac_optarg= ;; | |
1227 | *) ac_optarg=yes ;; | |
81ecdfbb | 1228 | esac |
c906108c SS |
1229 | |
1230 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1231 | ||
81ecdfbb RW |
1232 | case $ac_dashdash$ac_option in |
1233 | --) | |
1234 | ac_dashdash=yes ;; | |
c906108c SS |
1235 | |
1236 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1237 | ac_prev=bindir ;; | |
1238 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 1239 | bindir=$ac_optarg ;; |
c906108c SS |
1240 | |
1241 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 1242 | ac_prev=build_alias ;; |
c906108c | 1243 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 1244 | build_alias=$ac_optarg ;; |
c906108c SS |
1245 | |
1246 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1247 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1248 | ac_prev=cache_file ;; | |
1249 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1250 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
1251 | cache_file=$ac_optarg ;; |
1252 | ||
1253 | --config-cache | -C) | |
1254 | cache_file=config.cache ;; | |
c906108c | 1255 | |
81ecdfbb | 1256 | -datadir | --datadir | --datadi | --datad) |
c906108c | 1257 | ac_prev=datadir ;; |
81ecdfbb | 1258 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 1259 | datadir=$ac_optarg ;; |
c906108c | 1260 | |
81ecdfbb RW |
1261 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1262 | | --dataroo | --dataro | --datar) | |
1263 | ac_prev=datarootdir ;; | |
1264 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1265 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1266 | datarootdir=$ac_optarg ;; | |
1267 | ||
c906108c | 1268 | -disable-* | --disable-*) |
81ecdfbb | 1269 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 1270 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1271 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1272 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1273 | ac_useropt_orig=$ac_useropt |
1274 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1275 | case $ac_user_opts in | |
1276 | *" | |
1277 | "enable_$ac_useropt" | |
1278 | "*) ;; | |
1279 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1280 | ac_unrecognized_sep=', ';; | |
1281 | esac | |
1282 | eval enable_$ac_useropt=no ;; | |
1283 | ||
1284 | -docdir | --docdir | --docdi | --doc | --do) | |
1285 | ac_prev=docdir ;; | |
1286 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1287 | docdir=$ac_optarg ;; | |
1288 | ||
1289 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1290 | ac_prev=dvidir ;; | |
1291 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1292 | dvidir=$ac_optarg ;; | |
c906108c SS |
1293 | |
1294 | -enable-* | --enable-*) | |
81ecdfbb | 1295 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 1296 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1297 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1298 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1299 | ac_useropt_orig=$ac_useropt |
1300 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1301 | case $ac_user_opts in | |
1302 | *" | |
1303 | "enable_$ac_useropt" | |
1304 | "*) ;; | |
1305 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1306 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1307 | esac |
81ecdfbb | 1308 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1309 | |
1310 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1311 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1312 | | --exec | --exe | --ex) | |
1313 | ac_prev=exec_prefix ;; | |
1314 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1315 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1316 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 1317 | exec_prefix=$ac_optarg ;; |
c906108c SS |
1318 | |
1319 | -gas | --gas | --ga | --g) | |
1320 | # Obsolete; use --with-gas. | |
1321 | with_gas=yes ;; | |
1322 | ||
b7026657 AC |
1323 | -help | --help | --hel | --he | -h) |
1324 | ac_init_help=long ;; | |
1325 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1326 | ac_init_help=recursive ;; | |
1327 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1328 | ac_init_help=short ;; | |
c906108c SS |
1329 | |
1330 | -host | --host | --hos | --ho) | |
b7026657 | 1331 | ac_prev=host_alias ;; |
c906108c | 1332 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 1333 | host_alias=$ac_optarg ;; |
c906108c | 1334 | |
81ecdfbb RW |
1335 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1336 | ac_prev=htmldir ;; | |
1337 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1338 | | --ht=*) | |
1339 | htmldir=$ac_optarg ;; | |
1340 | ||
c906108c SS |
1341 | -includedir | --includedir | --includedi | --included | --include \ |
1342 | | --includ | --inclu | --incl | --inc) | |
1343 | ac_prev=includedir ;; | |
1344 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1345 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 1346 | includedir=$ac_optarg ;; |
c906108c SS |
1347 | |
1348 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1349 | ac_prev=infodir ;; | |
1350 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 1351 | infodir=$ac_optarg ;; |
c906108c SS |
1352 | |
1353 | -libdir | --libdir | --libdi | --libd) | |
1354 | ac_prev=libdir ;; | |
1355 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 1356 | libdir=$ac_optarg ;; |
c906108c SS |
1357 | |
1358 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1359 | | --libexe | --libex | --libe) | |
1360 | ac_prev=libexecdir ;; | |
1361 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1362 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 1363 | libexecdir=$ac_optarg ;; |
c906108c | 1364 | |
81ecdfbb RW |
1365 | -localedir | --localedir | --localedi | --localed | --locale) |
1366 | ac_prev=localedir ;; | |
1367 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1368 | localedir=$ac_optarg ;; | |
1369 | ||
c906108c | 1370 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1371 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1372 | ac_prev=localstatedir ;; |
1373 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1374 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1375 | localstatedir=$ac_optarg ;; |
c906108c SS |
1376 | |
1377 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1378 | ac_prev=mandir ;; | |
1379 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1380 | mandir=$ac_optarg ;; |
c906108c SS |
1381 | |
1382 | -nfp | --nfp | --nf) | |
1383 | # Obsolete; use --without-fp. | |
1384 | with_fp=no ;; | |
1385 | ||
1386 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1387 | | --no-cr | --no-c | -n) |
c906108c SS |
1388 | no_create=yes ;; |
1389 | ||
1390 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1391 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1392 | no_recursion=yes ;; | |
1393 | ||
1394 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1395 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1396 | | --oldin | --oldi | --old | --ol | --o) | |
1397 | ac_prev=oldincludedir ;; | |
1398 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1399 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1400 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1401 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1402 | |
1403 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1404 | ac_prev=prefix ;; | |
1405 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1406 | prefix=$ac_optarg ;; |
c906108c SS |
1407 | |
1408 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1409 | | --program-pre | --program-pr | --program-p) | |
1410 | ac_prev=program_prefix ;; | |
1411 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1412 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1413 | program_prefix=$ac_optarg ;; |
c906108c SS |
1414 | |
1415 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1416 | | --program-suf | --program-su | --program-s) | |
1417 | ac_prev=program_suffix ;; | |
1418 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1419 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1420 | program_suffix=$ac_optarg ;; |
c906108c SS |
1421 | |
1422 | -program-transform-name | --program-transform-name \ | |
1423 | | --program-transform-nam | --program-transform-na \ | |
1424 | | --program-transform-n | --program-transform- \ | |
1425 | | --program-transform | --program-transfor \ | |
1426 | | --program-transfo | --program-transf \ | |
1427 | | --program-trans | --program-tran \ | |
1428 | | --progr-tra | --program-tr | --program-t) | |
1429 | ac_prev=program_transform_name ;; | |
1430 | -program-transform-name=* | --program-transform-name=* \ | |
1431 | | --program-transform-nam=* | --program-transform-na=* \ | |
1432 | | --program-transform-n=* | --program-transform-=* \ | |
1433 | | --program-transform=* | --program-transfor=* \ | |
1434 | | --program-transfo=* | --program-transf=* \ | |
1435 | | --program-trans=* | --program-tran=* \ | |
1436 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1437 | program_transform_name=$ac_optarg ;; |
c906108c | 1438 | |
81ecdfbb RW |
1439 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1440 | ac_prev=pdfdir ;; | |
1441 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1442 | pdfdir=$ac_optarg ;; | |
1443 | ||
1444 | -psdir | --psdir | --psdi | --psd | --ps) | |
1445 | ac_prev=psdir ;; | |
1446 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1447 | psdir=$ac_optarg ;; | |
1448 | ||
c906108c SS |
1449 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1450 | | -silent | --silent | --silen | --sile | --sil) | |
1451 | silent=yes ;; | |
1452 | ||
1453 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1454 | ac_prev=sbindir ;; | |
1455 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1456 | | --sbi=* | --sb=*) | |
b7026657 | 1457 | sbindir=$ac_optarg ;; |
c906108c SS |
1458 | |
1459 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1460 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1461 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1462 | | --sha | --sh) | |
1463 | ac_prev=sharedstatedir ;; | |
1464 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1465 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1466 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1467 | | --sha=* | --sh=*) | |
b7026657 | 1468 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1469 | |
1470 | -site | --site | --sit) | |
1471 | ac_prev=site ;; | |
1472 | -site=* | --site=* | --sit=*) | |
b7026657 | 1473 | site=$ac_optarg ;; |
0fda6bd2 | 1474 | |
c906108c SS |
1475 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1476 | ac_prev=srcdir ;; | |
1477 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1478 | srcdir=$ac_optarg ;; |
c906108c SS |
1479 | |
1480 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1481 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1482 | ac_prev=sysconfdir ;; | |
1483 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1484 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1485 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1486 | |
1487 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1488 | ac_prev=target_alias ;; |
c906108c | 1489 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1490 | target_alias=$ac_optarg ;; |
c906108c SS |
1491 | |
1492 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1493 | verbose=yes ;; | |
1494 | ||
b7026657 AC |
1495 | -version | --version | --versio | --versi | --vers | -V) |
1496 | ac_init_version=: ;; | |
c906108c SS |
1497 | |
1498 | -with-* | --with-*) | |
81ecdfbb | 1499 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1500 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1501 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1502 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1503 | ac_useropt_orig=$ac_useropt |
1504 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1505 | case $ac_user_opts in | |
1506 | *" | |
1507 | "with_$ac_useropt" | |
1508 | "*) ;; | |
1509 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1510 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1511 | esac |
81ecdfbb | 1512 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1513 | |
1514 | -without-* | --without-*) | |
81ecdfbb | 1515 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1516 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1517 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1518 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1519 | ac_useropt_orig=$ac_useropt |
1520 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1521 | case $ac_user_opts in | |
1522 | *" | |
1523 | "with_$ac_useropt" | |
1524 | "*) ;; | |
1525 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1526 | ac_unrecognized_sep=', ';; | |
1527 | esac | |
1528 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1529 | |
1530 | --x) | |
1531 | # Obsolete; use --with-x. | |
1532 | with_x=yes ;; | |
1533 | ||
1534 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1535 | | --x-incl | --x-inc | --x-in | --x-i) | |
1536 | ac_prev=x_includes ;; | |
1537 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1538 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1539 | x_includes=$ac_optarg ;; |
c906108c SS |
1540 | |
1541 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1542 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1543 | ac_prev=x_libraries ;; | |
1544 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1545 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1546 | x_libraries=$ac_optarg ;; |
c906108c | 1547 | |
d0ac1c44 SM |
1548 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1549 | Try \`$0 --help' for more information" | |
c906108c SS |
1550 | ;; |
1551 | ||
b7026657 AC |
1552 | *=*) |
1553 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1554 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1555 | case $ac_envvar in #( |
1556 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1557 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1558 | esac |
1559 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1560 | export $ac_envvar ;; |
1561 | ||
c906108c | 1562 | *) |
b7026657 | 1563 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1564 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1565 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1566 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1567 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1568 | ;; |
1569 | ||
1570 | esac | |
1571 | done | |
1572 | ||
1573 | if test -n "$ac_prev"; then | |
b7026657 | 1574 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1575 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1576 | fi |
c906108c | 1577 | |
81ecdfbb RW |
1578 | if test -n "$ac_unrecognized_opts"; then |
1579 | case $enable_option_checking in | |
1580 | no) ;; | |
d0ac1c44 | 1581 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1582 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
fdd6fa61 | 1583 | esac |
81ecdfbb | 1584 | fi |
fdd6fa61 | 1585 | |
81ecdfbb RW |
1586 | # Check all directory arguments for consistency. |
1587 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1588 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1589 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1590 | libdir localedir mandir | |
c906108c | 1591 | do |
81ecdfbb RW |
1592 | eval ac_val=\$$ac_var |
1593 | # Remove trailing slashes. | |
1594 | case $ac_val in | |
1595 | */ ) | |
1596 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1597 | eval $ac_var=\$ac_val;; | |
1598 | esac | |
1599 | # Be sure to have absolute directory names. | |
b7026657 | 1600 | case $ac_val in |
81ecdfbb RW |
1601 | [\\/$]* | ?:[\\/]* ) continue;; |
1602 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1603 | esac |
d0ac1c44 | 1604 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1605 | done |
1606 | ||
b7026657 AC |
1607 | # There might be people who depend on the old broken behavior: `$host' |
1608 | # used to hold the argument of --host etc. | |
1609 | # FIXME: To remove some day. | |
1610 | build=$build_alias | |
1611 | host=$host_alias | |
1612 | target=$target_alias | |
1613 | ||
1614 | # FIXME: To remove some day. | |
1615 | if test "x$host_alias" != x; then | |
1616 | if test "x$build_alias" = x; then | |
1617 | cross_compiling=maybe | |
b7026657 AC |
1618 | elif test "x$build_alias" != "x$host_alias"; then |
1619 | cross_compiling=yes | |
1620 | fi | |
1621 | fi | |
c906108c | 1622 | |
b7026657 AC |
1623 | ac_tool_prefix= |
1624 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1625 | ||
1626 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1627 | |
c906108c | 1628 | |
81ecdfbb RW |
1629 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1630 | ac_ls_di=`ls -di .` && | |
1631 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1632 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1633 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1634 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1635 | |
1636 | ||
c906108c SS |
1637 | # Find the source files, if location was not specified. |
1638 | if test -z "$srcdir"; then | |
1639 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1640 | # Try the directory containing this script, then the parent directory. |
1641 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1642 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1643 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1644 | X"$as_myself" : 'X\(//\)$' \| \ | |
1645 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1646 | $as_echo X"$as_myself" | | |
1647 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1648 | s//\1/ | |
1649 | q | |
1650 | } | |
1651 | /^X\(\/\/\)[^/].*/{ | |
1652 | s//\1/ | |
1653 | q | |
1654 | } | |
1655 | /^X\(\/\/\)$/{ | |
1656 | s//\1/ | |
1657 | q | |
1658 | } | |
1659 | /^X\(\/\).*/{ | |
1660 | s//\1/ | |
1661 | q | |
1662 | } | |
1663 | s/.*/./; q'` | |
c906108c | 1664 | srcdir=$ac_confdir |
81ecdfbb | 1665 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1666 | srcdir=.. |
1667 | fi | |
1668 | else | |
1669 | ac_srcdir_defaulted=no | |
1670 | fi | |
81ecdfbb RW |
1671 | if test ! -r "$srcdir/$ac_unique_file"; then |
1672 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1673 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1674 | fi |
1675 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1676 | ac_abs_confdir=`( | |
d0ac1c44 | 1677 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1678 | pwd)` |
1679 | # When building in place, set srcdir=. | |
1680 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1681 | srcdir=. | |
1682 | fi | |
1683 | # Remove unnecessary trailing slashes from srcdir. | |
1684 | # Double slashes in file names in object file debugging info | |
1685 | # mess up M-x gdb in Emacs. | |
1686 | case $srcdir in | |
1687 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1688 | esac | |
1689 | for ac_var in $ac_precious_vars; do | |
1690 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1691 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1692 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1693 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1694 | done | |
df1756f4 TG |
1695 | |
1696 | # | |
b7026657 AC |
1697 | # Report the --help message. |
1698 | # | |
1699 | if test "$ac_init_help" = "long"; then | |
1700 | # Omit some internal or obsolete options to make the list less imposing. | |
1701 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1702 | cat <<_ACEOF | |
6bddc3e8 | 1703 | \`configure' configures sim 0 to adapt to many kinds of systems. |
b7026657 AC |
1704 | |
1705 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1706 | ||
1707 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1708 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1709 | ||
1710 | Defaults for the options are specified in brackets. | |
1711 | ||
1712 | Configuration: | |
1713 | -h, --help display this help and exit | |
1714 | --help=short display options specific to this package | |
1715 | --help=recursive display the short help of all the included packages | |
1716 | -V, --version display version information and exit | |
d0ac1c44 | 1717 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1718 | --cache-file=FILE cache test results in FILE [disabled] |
1719 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1720 | -n, --no-create do not create output files | |
1721 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1722 | ||
b7026657 AC |
1723 | Installation directories: |
1724 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1725 | [$ac_default_prefix] |
b7026657 | 1726 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1727 | [PREFIX] |
b7026657 AC |
1728 | |
1729 | By default, \`make install' will install all the files in | |
1730 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1731 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1732 | for instance \`--prefix=\$HOME'. | |
1733 | ||
1734 | For better control, use the options below. | |
1735 | ||
1736 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1737 | --bindir=DIR user executables [EPREFIX/bin] |
1738 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1739 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1740 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1741 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1742 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1743 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1744 | --includedir=DIR C header files [PREFIX/include] | |
1745 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1746 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1747 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1748 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1749 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1750 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
6bddc3e8 | 1751 | --docdir=DIR documentation root [DATAROOTDIR/doc/sim] |
81ecdfbb RW |
1752 | --htmldir=DIR html documentation [DOCDIR] |
1753 | --dvidir=DIR dvi documentation [DOCDIR] | |
1754 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1755 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1756 | _ACEOF |
1757 | ||
1758 | cat <<\_ACEOF | |
1759 | ||
1760 | Program names: | |
1761 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1762 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1763 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1764 | ||
1765 | System types: | |
1766 | --build=BUILD configure for building on BUILD [guessed] | |
1767 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1768 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1769 | _ACEOF | |
1770 | fi | |
1771 | ||
1772 | if test -n "$ac_init_help"; then | |
6bddc3e8 MF |
1773 | case $ac_init_help in |
1774 | short | recursive ) echo "Configuration of sim 0:";; | |
1775 | esac | |
b7026657 AC |
1776 | cat <<\_ACEOF |
1777 | ||
1778 | Optional Features: | |
81ecdfbb | 1779 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1780 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1781 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b5689863 MF |
1782 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1783 | --enable-static[=PKGS] build static libraries [default=yes] | |
1784 | --enable-fast-install[=PKGS] | |
1785 | optimize for fast installation [default=yes] | |
1786 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8c379db2 TT |
1787 | --enable-maintainer-mode |
1788 | enable make rules and dependencies not useful (and | |
1789 | sometimes confusing) to the casual installer | |
6bddc3e8 MF |
1790 | --enable-dependency-tracking |
1791 | do not reject slow dependency extractors | |
1792 | --disable-dependency-tracking | |
1793 | speeds up one-time build | |
c2783492 MF |
1794 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1795 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8d0978fb | 1796 | --enable-sim Enable the GNU simulator |
26da232c | 1797 | --enable-example-sims enable example GNU simulators |
a0e674c1 | 1798 | --enable-targets alternative target configurations |
ba307cdd MF |
1799 | --enable-sim-alignment=align |
1800 | Specify strict, nonstrict or forced alignment of | |
1801 | memory accesses | |
dba333c1 | 1802 | --enable-sim-assert Specify whether to perform random assertions |
1bf5c342 | 1803 | --enable-cgen-maint=DIR build cgen generated files |
04381273 MF |
1804 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1805 | itself) | |
f9a4d543 MF |
1806 | --enable-sim-endian=endian |
1807 | Specify target byte endian orientation | |
5ea45474 MF |
1808 | --enable-sim-environment=environment |
1809 | Specify mixed, user, virtual or operating | |
1810 | environment | |
456ef1c1 | 1811 | --enable-sim-hardware Whether to enable hardware/device simulation |
d73f39ee MF |
1812 | --enable-sim-inline=inlines |
1813 | Specify which functions should be inlined | |
04381273 MF |
1814 | --enable-sim-profile=opts |
1815 | Enable profiling flags | |
7eb1f99a MF |
1816 | --enable-sim-reserved-bits |
1817 | Specify whether to check reserved bits in | |
1818 | instruction | |
b79efe26 MF |
1819 | --enable-sim-scache=size |
1820 | Specify simulator execution cache size | |
20b579ba MF |
1821 | --enable-sim-smp=n Specify number of processors to configure for |
1822 | (default 1) | |
04381273 MF |
1823 | --enable-sim-stdio Specify whether to use stdio for console |
1824 | input/output | |
1825 | --enable-sim-trace=opts Enable tracing of simulated programs | |
47ce766a MF |
1826 | --enable-werror treat compile warnings as errors |
1827 | --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1828 | --enable-sim-build-warnings | |
1829 | enable SIM specific build-time compiler warnings if | |
1830 | gcc is used | |
408a44aa MF |
1831 | --enable-sim-frv-trapdump |
1832 | Make unknown traps dump the registers | |
5f7e03a6 MF |
1833 | --enable-sim-ppc-bitsize=n |
1834 | Specify target bitsize (32 or 64). | |
1835 | --enable-sim-ppc-decode-mechanism=which | |
1836 | Specify the instruction decode mechanism. | |
1837 | --enable-sim-ppc-default-model=which | |
1838 | Specify default PowerPC to model. | |
1839 | --enable-sim-ppc-duplicate | |
1840 | Expand (duplicate) semantic functions. | |
1841 | --enable-sim-ppc-filter=rule | |
1842 | Specify filter rules. | |
1843 | --enable-sim-ppc-float Specify whether the target has hard, soft, altivec | |
1844 | or e500 floating point. | |
1845 | --enable-sim-ppc-hardware=list | |
1846 | Specify the hardware to be included in the build. | |
1847 | --enable-sim-ppc-icache=size | |
1848 | Specify instruction-decode cache size and type. | |
1849 | --enable-sim-ppc-jump Jump between semantic code (instead of call/return). | |
1850 | --enable-sim-ppc-line-nr=opts | |
1851 | Generate extra CPP code that references source | |
1852 | rather than generated code | |
1853 | --enable-sim-ppc-model=which | |
1854 | Specify PowerPC to model. | |
1855 | --enable-sim-ppc-model-issue | |
1856 | Specify whether to simulate model specific actions | |
1857 | --enable-sim-ppc-monitor=mon | |
1858 | Specify whether to enable monitoring events. | |
1859 | --enable-sim-ppc-opcode=which | |
1860 | Override default opcode lookup. | |
1861 | --enable-sim-ppc-smp=n Specify number of processors to configure for. | |
1862 | --enable-sim-ppc-switch Use a switch instead of a table for instruction | |
1863 | call. | |
1864 | --enable-sim-ppc-timebase | |
1865 | Specify whether the PPC timebase is supported. | |
1866 | --enable-sim-ppc-xor-endian=n | |
1867 | Specify number bytes involved in PowerPC XOR | |
1868 | bi-endian mode (default 8). | |
e173c80f MF |
1869 | --disable-sim-rx-cycle-accurate |
1870 | Disable cycle accurate simulation (faster runtime) | |
b7026657 | 1871 | |
6dd65fc0 MF |
1872 | Optional Packages: |
1873 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1874 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1875 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" | |
1876 | --with-bugurl=URL Direct users to URL to report a bug | |
b5689863 MF |
1877 | --with-pic try to use only PIC/non-PIC objects [default=use |
1878 | both] | |
1879 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
6dd65fc0 | 1880 | |
b7026657 AC |
1881 | Some influential environment variables: |
1882 | CC C compiler command | |
1883 | CFLAGS C compiler flags | |
1884 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1885 | nonstandard directory <lib dir> | |
81ecdfbb | 1886 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1887 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1888 | you have headers in a nonstandard directory <include dir> |
5e25901f | 1889 | CPP C preprocessor |
d57b6533 MF |
1890 | PKG_CONFIG path to pkg-config utility |
1891 | PKG_CONFIG_PATH | |
1892 | directories to add to pkg-config's search path | |
1893 | PKG_CONFIG_LIBDIR | |
1894 | path overriding pkg-config's built-in search path | |
1895 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | |
1896 | SDL_LIBS linker flags for SDL, overriding pkg-config | |
8996c210 MF |
1897 | AS_FOR_TARGET_AARCH64 |
1898 | Assembler for aarch64 tests | |
1899 | LD_FOR_TARGET_AARCH64 | |
1900 | Linker for aarch64 tests | |
1901 | CC_FOR_TARGET_AARCH64 | |
1902 | C compiler for aarch64 tests | |
1903 | AS_FOR_TARGET_ARM | |
1904 | Assembler for arm tests | |
1905 | LD_FOR_TARGET_ARM | |
1906 | Linker for arm tests | |
1907 | CC_FOR_TARGET_ARM | |
1908 | C compiler for arm tests | |
1909 | AS_FOR_TARGET_AVR | |
1910 | Assembler for avr tests | |
1911 | LD_FOR_TARGET_AVR | |
1912 | Linker for avr tests | |
1913 | CC_FOR_TARGET_AVR | |
1914 | C compiler for avr tests | |
1915 | AS_FOR_TARGET_BFIN | |
1916 | Assembler for bfin tests | |
1917 | LD_FOR_TARGET_BFIN | |
1918 | Linker for bfin tests | |
1919 | CC_FOR_TARGET_BFIN | |
1920 | C compiler for bfin tests | |
1921 | AS_FOR_TARGET_BPF | |
1922 | Assembler for bpf tests | |
1923 | LD_FOR_TARGET_BPF | |
1924 | Linker for bpf tests | |
1925 | CC_FOR_TARGET_BPF | |
1926 | C compiler for bpf tests | |
1927 | AS_FOR_TARGET_CR16 | |
1928 | Assembler for cr16 tests | |
1929 | LD_FOR_TARGET_CR16 | |
1930 | Linker for cr16 tests | |
1931 | CC_FOR_TARGET_CR16 | |
1932 | C compiler for cr16 tests | |
1933 | AS_FOR_TARGET_CRIS | |
1934 | Assembler for cris tests | |
1935 | LD_FOR_TARGET_CRIS | |
1936 | Linker for cris tests | |
1937 | CC_FOR_TARGET_CRIS | |
1938 | C compiler for cris tests | |
1939 | AS_FOR_TARGET_D10V | |
1940 | Assembler for d10v tests | |
1941 | LD_FOR_TARGET_D10V | |
1942 | Linker for d10v tests | |
1943 | CC_FOR_TARGET_D10V | |
1944 | C compiler for d10v tests | |
1945 | AS_FOR_TARGET_FRV | |
1946 | Assembler for frv tests | |
1947 | LD_FOR_TARGET_FRV | |
1948 | Linker for frv tests | |
1949 | CC_FOR_TARGET_FRV | |
1950 | C compiler for frv tests | |
1951 | AS_FOR_TARGET_FT32 | |
1952 | Assembler for ft32 tests | |
1953 | LD_FOR_TARGET_FT32 | |
1954 | Linker for ft32 tests | |
1955 | CC_FOR_TARGET_FT32 | |
1956 | C compiler for ft32 tests | |
1957 | AS_FOR_TARGET_H8300 | |
1958 | Assembler for h8300 tests | |
1959 | LD_FOR_TARGET_H8300 | |
1960 | Linker for h8300 tests | |
1961 | CC_FOR_TARGET_H8300 | |
1962 | C compiler for h8300 tests | |
1963 | AS_FOR_TARGET_IQ2000 | |
1964 | Assembler for iq2000 tests | |
1965 | LD_FOR_TARGET_IQ2000 | |
1966 | Linker for iq2000 tests | |
1967 | CC_FOR_TARGET_IQ2000 | |
1968 | C compiler for iq2000 tests | |
1969 | AS_FOR_TARGET_LM32 | |
1970 | Assembler for lm32 tests | |
1971 | LD_FOR_TARGET_LM32 | |
1972 | Linker for lm32 tests | |
1973 | CC_FOR_TARGET_LM32 | |
1974 | C compiler for lm32 tests | |
1975 | AS_FOR_TARGET_M32C | |
1976 | Assembler for m32c tests | |
1977 | LD_FOR_TARGET_M32C | |
1978 | Linker for m32c tests | |
1979 | CC_FOR_TARGET_M32C | |
1980 | C compiler for m32c tests | |
1981 | AS_FOR_TARGET_M32R | |
1982 | Assembler for m32r tests | |
1983 | LD_FOR_TARGET_M32R | |
1984 | Linker for m32r tests | |
1985 | CC_FOR_TARGET_M32R | |
1986 | C compiler for m32r tests | |
1987 | AS_FOR_TARGET_M68HC11 | |
1988 | Assembler for m68hc11 tests | |
1989 | LD_FOR_TARGET_M68HC11 | |
1990 | Linker for m68hc11 tests | |
1991 | CC_FOR_TARGET_M68HC11 | |
1992 | C compiler for m68hc11 tests | |
1993 | AS_FOR_TARGET_MCORE | |
1994 | Assembler for mcore tests | |
1995 | LD_FOR_TARGET_MCORE | |
1996 | Linker for mcore tests | |
1997 | CC_FOR_TARGET_MCORE | |
1998 | C compiler for mcore tests | |
1999 | AS_FOR_TARGET_MICROBLAZE | |
2000 | Assembler for microblaze tests | |
2001 | LD_FOR_TARGET_MICROBLAZE | |
2002 | Linker for microblaze tests | |
2003 | CC_FOR_TARGET_MICROBLAZE | |
2004 | C compiler for microblaze tests | |
2005 | AS_FOR_TARGET_MIPS | |
2006 | Assembler for mips tests | |
2007 | LD_FOR_TARGET_MIPS | |
2008 | Linker for mips tests | |
2009 | CC_FOR_TARGET_MIPS | |
2010 | C compiler for mips tests | |
2011 | AS_FOR_TARGET_MN10300 | |
2012 | Assembler for mn10300 tests | |
2013 | LD_FOR_TARGET_MN10300 | |
2014 | Linker for mn10300 tests | |
2015 | CC_FOR_TARGET_MN10300 | |
2016 | C compiler for mn10300 tests | |
2017 | AS_FOR_TARGET_MOXIE | |
2018 | Assembler for moxie tests | |
2019 | LD_FOR_TARGET_MOXIE | |
2020 | Linker for moxie tests | |
2021 | CC_FOR_TARGET_MOXIE | |
2022 | C compiler for moxie tests | |
2023 | AS_FOR_TARGET_MSP430 | |
2024 | Assembler for msp430 tests | |
2025 | LD_FOR_TARGET_MSP430 | |
2026 | Linker for msp430 tests | |
2027 | CC_FOR_TARGET_MSP430 | |
2028 | C compiler for msp430 tests | |
2029 | AS_FOR_TARGET_OR1K | |
2030 | Assembler for or1k tests | |
2031 | LD_FOR_TARGET_OR1K | |
2032 | Linker for or1k tests | |
2033 | CC_FOR_TARGET_OR1K | |
2034 | C compiler for or1k tests | |
2035 | AS_FOR_TARGET_PPC | |
2036 | Assembler for ppc tests | |
2037 | LD_FOR_TARGET_PPC | |
2038 | Linker for ppc tests | |
2039 | CC_FOR_TARGET_PPC | |
2040 | C compiler for ppc tests | |
2041 | AS_FOR_TARGET_PRU | |
2042 | Assembler for pru tests | |
2043 | LD_FOR_TARGET_PRU | |
2044 | Linker for pru tests | |
2045 | CC_FOR_TARGET_PRU | |
2046 | C compiler for pru tests | |
2047 | AS_FOR_TARGET_RISCV | |
2048 | Assembler for riscv tests | |
2049 | LD_FOR_TARGET_RISCV | |
2050 | Linker for riscv tests | |
2051 | CC_FOR_TARGET_RISCV | |
2052 | C compiler for riscv tests | |
2053 | AS_FOR_TARGET_RL78 | |
2054 | Assembler for rl78 tests | |
2055 | LD_FOR_TARGET_RL78 | |
2056 | Linker for rl78 tests | |
2057 | CC_FOR_TARGET_RL78 | |
2058 | C compiler for rl78 tests | |
2059 | AS_FOR_TARGET_RX | |
2060 | Assembler for rx tests | |
2061 | LD_FOR_TARGET_RX | |
2062 | Linker for rx tests | |
2063 | CC_FOR_TARGET_RX | |
2064 | C compiler for rx tests | |
2065 | AS_FOR_TARGET_SH | |
2066 | Assembler for sh tests | |
2067 | LD_FOR_TARGET_SH | |
2068 | Linker for sh tests | |
2069 | CC_FOR_TARGET_SH | |
2070 | C compiler for sh tests | |
2071 | AS_FOR_TARGET_ERC32 | |
2072 | Assembler for erc32 tests | |
2073 | LD_FOR_TARGET_ERC32 | |
2074 | Linker for erc32 tests | |
2075 | CC_FOR_TARGET_ERC32 | |
2076 | C compiler for erc32 tests | |
2077 | AS_FOR_TARGET_V850 | |
2078 | Assembler for v850 tests | |
2079 | LD_FOR_TARGET_V850 | |
2080 | Linker for v850 tests | |
2081 | CC_FOR_TARGET_V850 | |
2082 | C compiler for v850 tests | |
2083 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
2084 | Assembler for example-synacor tests | |
2085 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
2086 | Linker for example-synacor tests | |
2087 | CC_FOR_TARGET_EXAMPLE_SYNACOR | |
2088 | C compiler for example-synacor tests | |
b7026657 AC |
2089 | |
2090 | Use these variables to override the choices made by `configure' or to help | |
2091 | it to find libraries and programs with nonstandard names/locations. | |
2092 | ||
6bddc3e8 MF |
2093 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. |
2094 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>. | |
b7026657 | 2095 | _ACEOF |
81ecdfbb | 2096 | ac_status=$? |
b7026657 AC |
2097 | fi |
2098 | ||
2099 | if test "$ac_init_help" = "recursive"; then | |
2100 | # If there are subdirs, report their specific --help. | |
b7026657 | 2101 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
2102 | test -d "$ac_dir" || |
2103 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
2104 | continue | |
b7026657 AC |
2105 | ac_builddir=. |
2106 | ||
81ecdfbb RW |
2107 | case "$ac_dir" in |
2108 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2109 | *) | |
2110 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
2111 | # A ".." for each directory in $ac_dir_suffix. | |
2112 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
2113 | case $ac_top_builddir_sub in | |
2114 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2115 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
2116 | esac ;; | |
2117 | esac | |
2118 | ac_abs_top_builddir=$ac_pwd | |
2119 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
2120 | # for backward compatibility: | |
2121 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
2122 | |
2123 | case $srcdir in | |
81ecdfbb | 2124 | .) # We are building in place. |
b7026657 | 2125 | ac_srcdir=. |
81ecdfbb RW |
2126 | ac_top_srcdir=$ac_top_builddir_sub |
2127 | ac_abs_top_srcdir=$ac_pwd ;; | |
2128 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 2129 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
2130 | ac_top_srcdir=$srcdir |
2131 | ac_abs_top_srcdir=$srcdir ;; | |
2132 | *) # Relative name. | |
2133 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
2134 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
2135 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fdd6fa61 | 2136 | esac |
81ecdfbb | 2137 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fdd6fa61 | 2138 | |
81ecdfbb RW |
2139 | cd "$ac_dir" || { ac_status=$?; continue; } |
2140 | # Check for guested configure. | |
2141 | if test -f "$ac_srcdir/configure.gnu"; then | |
2142 | echo && | |
2143 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
2144 | elif test -f "$ac_srcdir/configure"; then | |
2145 | echo && | |
2146 | $SHELL "$ac_srcdir/configure" --help=recursive | |
0fda6bd2 | 2147 | else |
81ecdfbb RW |
2148 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
2149 | fi || ac_status=$? | |
2150 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
2151 | done |
2152 | fi | |
2153 | ||
81ecdfbb | 2154 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
2155 | if $ac_init_version; then |
2156 | cat <<\_ACEOF | |
6bddc3e8 | 2157 | sim configure 0 |
d0ac1c44 | 2158 | generated by GNU Autoconf 2.69 |
b7026657 | 2159 | |
d0ac1c44 | 2160 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
2161 | This configure script is free software; the Free Software Foundation |
2162 | gives unlimited permission to copy, distribute and modify it. | |
2163 | _ACEOF | |
81ecdfbb | 2164 | exit |
b7026657 | 2165 | fi |
81ecdfbb RW |
2166 | |
2167 | ## ------------------------ ## | |
2168 | ## Autoconf initialization. ## | |
2169 | ## ------------------------ ## | |
2170 | ||
2171 | # ac_fn_c_try_compile LINENO | |
2172 | # -------------------------- | |
2173 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2174 | ac_fn_c_try_compile () | |
2175 | { | |
2176 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2177 | rm -f conftest.$ac_objext | |
2178 | if { { ac_try="$ac_compile" | |
2179 | case "(($ac_try" in | |
2180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2181 | *) ac_try_echo=$ac_try;; | |
2182 | esac | |
2183 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2184 | $as_echo "$ac_try_echo"; } >&5 | |
2185 | (eval "$ac_compile") 2>conftest.err | |
2186 | ac_status=$? | |
2187 | if test -s conftest.err; then | |
2188 | grep -v '^ *+' conftest.err >conftest.er1 | |
2189 | cat conftest.er1 >&5 | |
2190 | mv -f conftest.er1 conftest.err | |
2191 | fi | |
2192 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2193 | test $ac_status = 0; } && { | |
2194 | test -z "$ac_c_werror_flag" || | |
2195 | test ! -s conftest.err | |
2196 | } && test -s conftest.$ac_objext; then : | |
2197 | ac_retval=0 | |
2198 | else | |
2199 | $as_echo "$as_me: failed program was:" >&5 | |
2200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2201 | ||
2202 | ac_retval=1 | |
2203 | fi | |
d0ac1c44 SM |
2204 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2205 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
2206 | |
2207 | } # ac_fn_c_try_compile | |
5e25901f MF |
2208 | |
2209 | # ac_fn_c_try_cpp LINENO | |
2210 | # ---------------------- | |
2211 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2212 | ac_fn_c_try_cpp () | |
2213 | { | |
2214 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2215 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2216 | case "(($ac_try" in | |
2217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2218 | *) ac_try_echo=$ac_try;; | |
2219 | esac | |
2220 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2221 | $as_echo "$ac_try_echo"; } >&5 | |
2222 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2223 | ac_status=$? | |
2224 | if test -s conftest.err; then | |
2225 | grep -v '^ *+' conftest.err >conftest.er1 | |
2226 | cat conftest.er1 >&5 | |
2227 | mv -f conftest.er1 conftest.err | |
2228 | fi | |
2229 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2230 | test $ac_status = 0; } > conftest.i && { | |
2231 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2232 | test ! -s conftest.err | |
2233 | }; then : | |
2234 | ac_retval=0 | |
2235 | else | |
2236 | $as_echo "$as_me: failed program was:" >&5 | |
2237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2238 | ||
2239 | ac_retval=1 | |
2240 | fi | |
2241 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2242 | as_fn_set_status $ac_retval | |
2243 | ||
2244 | } # ac_fn_c_try_cpp | |
c2783492 | 2245 | |
c2783492 MF |
2246 | # ac_fn_c_try_run LINENO |
2247 | # ---------------------- | |
2248 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
2249 | # that executables *can* be run. | |
2250 | ac_fn_c_try_run () | |
2251 | { | |
2252 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2253 | if { { ac_try="$ac_link" | |
2254 | case "(($ac_try" in | |
2255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2256 | *) ac_try_echo=$ac_try;; | |
2257 | esac | |
2258 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2259 | $as_echo "$ac_try_echo"; } >&5 | |
2260 | (eval "$ac_link") 2>&5 | |
2261 | ac_status=$? | |
2262 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2263 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2264 | { { case "(($ac_try" in | |
2265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2266 | *) ac_try_echo=$ac_try;; | |
2267 | esac | |
2268 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2269 | $as_echo "$ac_try_echo"; } >&5 | |
2270 | (eval "$ac_try") 2>&5 | |
2271 | ac_status=$? | |
2272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2273 | test $ac_status = 0; }; }; then : | |
2274 | ac_retval=0 | |
2275 | else | |
2276 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2277 | $as_echo "$as_me: failed program was:" >&5 | |
2278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2279 | ||
2280 | ac_retval=$ac_status | |
2281 | fi | |
2282 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2283 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2284 | as_fn_set_status $ac_retval | |
2285 | ||
2286 | } # ac_fn_c_try_run | |
2287 | ||
2288 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2289 | # ------------------------------------------------------- | |
2290 | # Tests whether HEADER exists and can be compiled using the include files in | |
2291 | # INCLUDES, setting the cache variable VAR accordingly. | |
2292 | ac_fn_c_check_header_compile () | |
2293 | { | |
2294 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2296 | $as_echo_n "checking for $2... " >&6; } | |
2297 | if eval \${$3+:} false; then : | |
2298 | $as_echo_n "(cached) " >&6 | |
2299 | else | |
2300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2301 | /* end confdefs.h. */ | |
2302 | $4 | |
2303 | #include <$2> | |
2304 | _ACEOF | |
2305 | if ac_fn_c_try_compile "$LINENO"; then : | |
2306 | eval "$3=yes" | |
2307 | else | |
2308 | eval "$3=no" | |
2309 | fi | |
2310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2311 | fi | |
2312 | eval ac_res=\$$3 | |
2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2314 | $as_echo "$ac_res" >&6; } | |
2315 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2316 | ||
2317 | } # ac_fn_c_check_header_compile | |
b15c5d7a MF |
2318 | |
2319 | # ac_fn_c_try_link LINENO | |
2320 | # ----------------------- | |
2321 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2322 | ac_fn_c_try_link () | |
2323 | { | |
2324 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2326 | if { { ac_try="$ac_link" | |
2327 | case "(($ac_try" in | |
2328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2329 | *) ac_try_echo=$ac_try;; | |
2330 | esac | |
2331 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2332 | $as_echo "$ac_try_echo"; } >&5 | |
2333 | (eval "$ac_link") 2>conftest.err | |
2334 | ac_status=$? | |
2335 | if test -s conftest.err; then | |
2336 | grep -v '^ *+' conftest.err >conftest.er1 | |
2337 | cat conftest.er1 >&5 | |
2338 | mv -f conftest.er1 conftest.err | |
2339 | fi | |
2340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2341 | test $ac_status = 0; } && { | |
2342 | test -z "$ac_c_werror_flag" || | |
2343 | test ! -s conftest.err | |
2344 | } && test -s conftest$ac_exeext && { | |
2345 | test "$cross_compiling" = yes || | |
2346 | test -x conftest$ac_exeext | |
2347 | }; then : | |
2348 | ac_retval=0 | |
2349 | else | |
2350 | $as_echo "$as_me: failed program was:" >&5 | |
2351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2352 | ||
2353 | ac_retval=1 | |
2354 | fi | |
2355 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2356 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2357 | # interfere with the next link command; also delete a directory that is | |
2358 | # left behind by Apple's compiler. We do this before executing the actions. | |
2359 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2360 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2361 | as_fn_set_status $ac_retval | |
2362 | ||
2363 | } # ac_fn_c_try_link | |
2364 | ||
2365 | # ac_fn_c_check_func LINENO FUNC VAR | |
2366 | # ---------------------------------- | |
2367 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2368 | ac_fn_c_check_func () | |
2369 | { | |
2370 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2372 | $as_echo_n "checking for $2... " >&6; } | |
2373 | if eval \${$3+:} false; then : | |
2374 | $as_echo_n "(cached) " >&6 | |
2375 | else | |
2376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2377 | /* end confdefs.h. */ | |
2378 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2380 | #define $2 innocuous_$2 | |
2381 | ||
2382 | /* System header to define __stub macros and hopefully few prototypes, | |
2383 | which can conflict with char $2 (); below. | |
2384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2385 | <limits.h> exists even on freestanding compilers. */ | |
2386 | ||
2387 | #ifdef __STDC__ | |
2388 | # include <limits.h> | |
2389 | #else | |
2390 | # include <assert.h> | |
2391 | #endif | |
2392 | ||
2393 | #undef $2 | |
2394 | ||
2395 | /* Override any GCC internal prototype to avoid an error. | |
2396 | Use char because int might match the return type of a GCC | |
2397 | builtin and then its argument prototype would still apply. */ | |
2398 | #ifdef __cplusplus | |
2399 | extern "C" | |
2400 | #endif | |
2401 | char $2 (); | |
2402 | /* The GNU C library defines this for functions which it implements | |
2403 | to always fail with ENOSYS. Some functions are actually named | |
2404 | something starting with __ and the normal name is an alias. */ | |
2405 | #if defined __stub_$2 || defined __stub___$2 | |
2406 | choke me | |
2407 | #endif | |
2408 | ||
2409 | int | |
2410 | main () | |
2411 | { | |
2412 | return $2 (); | |
2413 | ; | |
2414 | return 0; | |
2415 | } | |
2416 | _ACEOF | |
2417 | if ac_fn_c_try_link "$LINENO"; then : | |
2418 | eval "$3=yes" | |
2419 | else | |
2420 | eval "$3=no" | |
2421 | fi | |
2422 | rm -f core conftest.err conftest.$ac_objext \ | |
2423 | conftest$ac_exeext conftest.$ac_ext | |
2424 | fi | |
2425 | eval ac_res=\$$3 | |
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2427 | $as_echo "$ac_res" >&6; } | |
2428 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2429 | ||
2430 | } # ac_fn_c_check_func | |
2431 | ||
2432 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2433 | # ---------------------------------------------------- | |
2434 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2435 | # INCLUDES, setting cache variable VAR accordingly. | |
2436 | ac_fn_c_check_member () | |
2437 | { | |
2438 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2440 | $as_echo_n "checking for $2.$3... " >&6; } | |
2441 | if eval \${$4+:} false; then : | |
2442 | $as_echo_n "(cached) " >&6 | |
2443 | else | |
2444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2445 | /* end confdefs.h. */ | |
2446 | $5 | |
2447 | int | |
2448 | main () | |
2449 | { | |
2450 | static $2 ac_aggr; | |
2451 | if (ac_aggr.$3) | |
2452 | return 0; | |
2453 | ; | |
2454 | return 0; | |
2455 | } | |
2456 | _ACEOF | |
2457 | if ac_fn_c_try_compile "$LINENO"; then : | |
2458 | eval "$4=yes" | |
2459 | else | |
2460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2461 | /* end confdefs.h. */ | |
2462 | $5 | |
2463 | int | |
2464 | main () | |
2465 | { | |
2466 | static $2 ac_aggr; | |
2467 | if (sizeof ac_aggr.$3) | |
2468 | return 0; | |
2469 | ; | |
2470 | return 0; | |
2471 | } | |
2472 | _ACEOF | |
2473 | if ac_fn_c_try_compile "$LINENO"; then : | |
2474 | eval "$4=yes" | |
2475 | else | |
2476 | eval "$4=no" | |
2477 | fi | |
2478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2479 | fi | |
2480 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2481 | fi | |
2482 | eval ac_res=\$$4 | |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2484 | $as_echo "$ac_res" >&6; } | |
2485 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2486 | ||
2487 | } # ac_fn_c_check_member | |
2488 | ||
a48ff3ef MF |
2489 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2490 | # --------------------------------------------- | |
2491 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2492 | # accordingly. | |
2493 | ac_fn_c_check_decl () | |
2494 | { | |
2495 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2496 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2497 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2499 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2500 | if eval \${$3+:} false; then : | |
2501 | $as_echo_n "(cached) " >&6 | |
2502 | else | |
2503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2504 | /* end confdefs.h. */ | |
2505 | $4 | |
2506 | int | |
2507 | main () | |
2508 | { | |
2509 | #ifndef $as_decl_name | |
2510 | #ifdef __cplusplus | |
2511 | (void) $as_decl_use; | |
2512 | #else | |
2513 | (void) $as_decl_name; | |
2514 | #endif | |
2515 | #endif | |
2516 | ||
2517 | ; | |
2518 | return 0; | |
2519 | } | |
2520 | _ACEOF | |
2521 | if ac_fn_c_try_compile "$LINENO"; then : | |
2522 | eval "$3=yes" | |
2523 | else | |
2524 | eval "$3=no" | |
2525 | fi | |
2526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2527 | fi | |
2528 | eval ac_res=\$$3 | |
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2530 | $as_echo "$ac_res" >&6; } | |
2531 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2532 | ||
2533 | } # ac_fn_c_check_decl | |
2534 | ||
b15c5d7a MF |
2535 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2536 | # ------------------------------------------- | |
2537 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2538 | # variable VAR accordingly. | |
2539 | ac_fn_c_check_type () | |
2540 | { | |
2541 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2543 | $as_echo_n "checking for $2... " >&6; } | |
2544 | if eval \${$3+:} false; then : | |
2545 | $as_echo_n "(cached) " >&6 | |
2546 | else | |
2547 | eval "$3=no" | |
2548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2549 | /* end confdefs.h. */ | |
2550 | $4 | |
2551 | int | |
2552 | main () | |
2553 | { | |
2554 | if (sizeof ($2)) | |
2555 | return 0; | |
2556 | ; | |
2557 | return 0; | |
2558 | } | |
2559 | _ACEOF | |
2560 | if ac_fn_c_try_compile "$LINENO"; then : | |
2561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2562 | /* end confdefs.h. */ | |
2563 | $4 | |
2564 | int | |
2565 | main () | |
2566 | { | |
2567 | if (sizeof (($2))) | |
2568 | return 0; | |
2569 | ; | |
2570 | return 0; | |
2571 | } | |
2572 | _ACEOF | |
2573 | if ac_fn_c_try_compile "$LINENO"; then : | |
2574 | ||
2575 | else | |
2576 | eval "$3=yes" | |
2577 | fi | |
2578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2579 | fi | |
2580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2581 | fi | |
2582 | eval ac_res=\$$3 | |
2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2584 | $as_echo "$ac_res" >&6; } | |
2585 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2586 | ||
2587 | } # ac_fn_c_check_type | |
72d711c1 MF |
2588 | |
2589 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2590 | # -------------------------------------------- | |
2591 | # Tries to find the compile-time value of EXPR in a program that includes | |
2592 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2593 | # computed | |
2594 | ac_fn_c_compute_int () | |
2595 | { | |
2596 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2597 | if test "$cross_compiling" = yes; then | |
2598 | # Depending upon the size, compute the lo and hi bounds. | |
2599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2600 | /* end confdefs.h. */ | |
2601 | $4 | |
2602 | int | |
2603 | main () | |
2604 | { | |
2605 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2606 | test_array [0] = 0; | |
2607 | return test_array [0]; | |
2608 | ||
2609 | ; | |
2610 | return 0; | |
2611 | } | |
2612 | _ACEOF | |
2613 | if ac_fn_c_try_compile "$LINENO"; then : | |
2614 | ac_lo=0 ac_mid=0 | |
2615 | while :; do | |
2616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2617 | /* end confdefs.h. */ | |
2618 | $4 | |
2619 | int | |
2620 | main () | |
2621 | { | |
2622 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2623 | test_array [0] = 0; | |
2624 | return test_array [0]; | |
2625 | ||
2626 | ; | |
2627 | return 0; | |
2628 | } | |
2629 | _ACEOF | |
2630 | if ac_fn_c_try_compile "$LINENO"; then : | |
2631 | ac_hi=$ac_mid; break | |
2632 | else | |
2633 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2634 | if test $ac_lo -le $ac_mid; then | |
2635 | ac_lo= ac_hi= | |
2636 | break | |
2637 | fi | |
2638 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2639 | fi | |
2640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2641 | done | |
2642 | else | |
2643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2644 | /* end confdefs.h. */ | |
2645 | $4 | |
2646 | int | |
2647 | main () | |
2648 | { | |
2649 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2650 | test_array [0] = 0; | |
2651 | return test_array [0]; | |
2652 | ||
2653 | ; | |
2654 | return 0; | |
2655 | } | |
2656 | _ACEOF | |
2657 | if ac_fn_c_try_compile "$LINENO"; then : | |
2658 | ac_hi=-1 ac_mid=-1 | |
2659 | while :; do | |
2660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2661 | /* end confdefs.h. */ | |
2662 | $4 | |
2663 | int | |
2664 | main () | |
2665 | { | |
2666 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2667 | test_array [0] = 0; | |
2668 | return test_array [0]; | |
2669 | ||
2670 | ; | |
2671 | return 0; | |
2672 | } | |
2673 | _ACEOF | |
2674 | if ac_fn_c_try_compile "$LINENO"; then : | |
2675 | ac_lo=$ac_mid; break | |
2676 | else | |
2677 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2678 | if test $ac_mid -le $ac_hi; then | |
2679 | ac_lo= ac_hi= | |
2680 | break | |
2681 | fi | |
2682 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2683 | fi | |
2684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2685 | done | |
2686 | else | |
2687 | ac_lo= ac_hi= | |
2688 | fi | |
2689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2690 | fi | |
2691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2692 | # Binary search between lo and hi bounds. | |
2693 | while test "x$ac_lo" != "x$ac_hi"; do | |
2694 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2696 | /* end confdefs.h. */ | |
2697 | $4 | |
2698 | int | |
2699 | main () | |
2700 | { | |
2701 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2702 | test_array [0] = 0; | |
2703 | return test_array [0]; | |
2704 | ||
2705 | ; | |
2706 | return 0; | |
2707 | } | |
2708 | _ACEOF | |
2709 | if ac_fn_c_try_compile "$LINENO"; then : | |
2710 | ac_hi=$ac_mid | |
2711 | else | |
2712 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2713 | fi | |
2714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2715 | done | |
2716 | case $ac_lo in #(( | |
2717 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2718 | '') ac_retval=1 ;; | |
2719 | esac | |
2720 | else | |
2721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2722 | /* end confdefs.h. */ | |
2723 | $4 | |
2724 | static long int longval () { return $2; } | |
2725 | static unsigned long int ulongval () { return $2; } | |
2726 | #include <stdio.h> | |
2727 | #include <stdlib.h> | |
2728 | int | |
2729 | main () | |
2730 | { | |
2731 | ||
2732 | FILE *f = fopen ("conftest.val", "w"); | |
2733 | if (! f) | |
2734 | return 1; | |
2735 | if (($2) < 0) | |
2736 | { | |
2737 | long int i = longval (); | |
2738 | if (i != ($2)) | |
2739 | return 1; | |
2740 | fprintf (f, "%ld", i); | |
2741 | } | |
2742 | else | |
2743 | { | |
2744 | unsigned long int i = ulongval (); | |
2745 | if (i != ($2)) | |
2746 | return 1; | |
2747 | fprintf (f, "%lu", i); | |
2748 | } | |
2749 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2750 | on some platforms. */ | |
2751 | return ferror (f) || fclose (f) != 0; | |
2752 | ||
2753 | ; | |
2754 | return 0; | |
2755 | } | |
2756 | _ACEOF | |
2757 | if ac_fn_c_try_run "$LINENO"; then : | |
2758 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2759 | else | |
2760 | ac_retval=1 | |
2761 | fi | |
2762 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2763 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2764 | rm -f conftest.val | |
2765 | ||
2766 | fi | |
2767 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2768 | as_fn_set_status $ac_retval | |
2769 | ||
2770 | } # ac_fn_c_compute_int | |
81ecdfbb | 2771 | cat >config.log <<_ACEOF |
b7026657 AC |
2772 | This file contains any messages produced by compilers while |
2773 | running configure, to aid debugging if configure makes a mistake. | |
2774 | ||
6bddc3e8 | 2775 | It was created by sim $as_me 0, which was |
d0ac1c44 | 2776 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
2777 | |
2778 | $ $0 $@ | |
2779 | ||
2780 | _ACEOF | |
81ecdfbb | 2781 | exec 5>>config.log |
b7026657 AC |
2782 | { |
2783 | cat <<_ASUNAME | |
2784 | ## --------- ## | |
2785 | ## Platform. ## | |
2786 | ## --------- ## | |
2787 | ||
2788 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2789 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2790 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2791 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2792 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2793 | ||
2794 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2795 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2796 | ||
2797 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2798 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2799 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2800 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
2801 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2802 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2803 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2804 | ||
2805 | _ASUNAME | |
2806 | ||
2807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2808 | for as_dir in $PATH | |
2809 | do | |
2810 | IFS=$as_save_IFS | |
2811 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2812 | $as_echo "PATH: $as_dir" |
2813 | done | |
2814 | IFS=$as_save_IFS | |
b7026657 AC |
2815 | |
2816 | } >&5 | |
2817 | ||
2818 | cat >&5 <<_ACEOF | |
2819 | ||
2820 | ||
2821 | ## ----------- ## | |
2822 | ## Core tests. ## | |
2823 | ## ----------- ## | |
2824 | ||
2825 | _ACEOF | |
2826 | ||
2827 | ||
2828 | # Keep a trace of the command line. | |
2829 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2830 | # Strip out --silent because we don't want to record it for future runs. | |
2831 | # Also quote any args containing shell meta-characters. | |
2832 | # Make two passes to allow for proper duplicate-argument suppression. | |
2833 | ac_configure_args= | |
2834 | ac_configure_args0= | |
2835 | ac_configure_args1= | |
b7026657 AC |
2836 | ac_must_keep_next=false |
2837 | for ac_pass in 1 2 | |
2838 | do | |
2839 | for ac_arg | |
2840 | do | |
2841 | case $ac_arg in | |
2842 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2843 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2844 | | -silent | --silent | --silen | --sile | --sil) | |
2845 | continue ;; | |
81ecdfbb RW |
2846 | *\'*) |
2847 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2848 | esac |
2849 | case $ac_pass in | |
81ecdfbb | 2850 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2851 | 2) |
81ecdfbb | 2852 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2853 | if test $ac_must_keep_next = true; then |
2854 | ac_must_keep_next=false # Got value, back to normal. | |
2855 | else | |
2856 | case $ac_arg in | |
2857 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2858 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2859 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2860 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2861 | case "$ac_configure_args0 " in | |
2862 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2863 | esac | |
2864 | ;; | |
2865 | -* ) ac_must_keep_next=true ;; | |
2866 | esac | |
2867 | fi | |
81ecdfbb | 2868 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2869 | ;; |
2870 | esac | |
2871 | done | |
2872 | done | |
81ecdfbb RW |
2873 | { ac_configure_args0=; unset ac_configure_args0;} |
2874 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2875 | |
2876 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2877 | # config.log. We remove comments because anyway the quotes in there | |
2878 | # would cause problems or look ugly. | |
81ecdfbb RW |
2879 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2880 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2881 | trap 'exit_status=$? |
2882 | # Save into config.log some information that might help in debugging. | |
2883 | { | |
2884 | echo | |
2885 | ||
d0ac1c44 | 2886 | $as_echo "## ---------------- ## |
b7026657 | 2887 | ## Cache variables. ## |
d0ac1c44 | 2888 | ## ---------------- ##" |
b7026657 AC |
2889 | echo |
2890 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2891 | ( |
2892 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2893 | eval ac_val=\$$ac_var | |
2894 | case $ac_val in #( | |
2895 | *${as_nl}*) | |
2896 | case $ac_var in #( | |
2897 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2898 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2899 | esac | |
2900 | case $ac_var in #( | |
2901 | _ | IFS | as_nl) ;; #( | |
2902 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2903 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2904 | esac ;; | |
2905 | esac | |
2906 | done | |
b7026657 | 2907 | (set) 2>&1 | |
81ecdfbb RW |
2908 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2909 | *${as_nl}ac_space=\ *) | |
b7026657 | 2910 | sed -n \ |
81ecdfbb RW |
2911 | "s/'\''/'\''\\\\'\'''\''/g; |
2912 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2913 | ;; #( | |
b7026657 | 2914 | *) |
81ecdfbb | 2915 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2916 | ;; |
81ecdfbb RW |
2917 | esac | |
2918 | sort | |
2919 | ) | |
b7026657 AC |
2920 | echo |
2921 | ||
d0ac1c44 | 2922 | $as_echo "## ----------------- ## |
b7026657 | 2923 | ## Output variables. ## |
d0ac1c44 | 2924 | ## ----------------- ##" |
b7026657 AC |
2925 | echo |
2926 | for ac_var in $ac_subst_vars | |
2927 | do | |
81ecdfbb RW |
2928 | eval ac_val=\$$ac_var |
2929 | case $ac_val in | |
2930 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2931 | esac | |
2932 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2933 | done | sort |
2934 | echo | |
2935 | ||
2936 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2937 | $as_echo "## ------------------- ## |
81ecdfbb | 2938 | ## File substitutions. ## |
d0ac1c44 | 2939 | ## ------------------- ##" |
b7026657 AC |
2940 | echo |
2941 | for ac_var in $ac_subst_files | |
2942 | do | |
81ecdfbb RW |
2943 | eval ac_val=\$$ac_var |
2944 | case $ac_val in | |
2945 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2946 | esac | |
2947 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2948 | done | sort |
2949 | echo | |
2950 | fi | |
2951 | ||
2952 | if test -s confdefs.h; then | |
d0ac1c44 | 2953 | $as_echo "## ----------- ## |
b7026657 | 2954 | ## confdefs.h. ## |
d0ac1c44 | 2955 | ## ----------- ##" |
b7026657 | 2956 | echo |
81ecdfbb | 2957 | cat confdefs.h |
b7026657 | 2958 | echo |
0fda6bd2 | 2959 | fi |
b7026657 | 2960 | test "$ac_signal" != 0 && |
81ecdfbb RW |
2961 | $as_echo "$as_me: caught signal $ac_signal" |
2962 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2963 | } >&5 |
81ecdfbb RW |
2964 | rm -f core *.core core.conftest.* && |
2965 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2966 | exit $exit_status |
81ecdfbb | 2967 | ' 0 |
b7026657 | 2968 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2969 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2970 | done |
2971 | ac_signal=0 | |
2972 | ||
2973 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2974 | rm -f -r conftest* confdefs.h |
2975 | ||
2976 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2977 | |
2978 | # Predefined preprocessor variables. | |
2979 | ||
2980 | cat >>confdefs.h <<_ACEOF | |
2981 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2982 | _ACEOF | |
2983 | ||
b7026657 AC |
2984 | cat >>confdefs.h <<_ACEOF |
2985 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2986 | _ACEOF | |
2987 | ||
b7026657 AC |
2988 | cat >>confdefs.h <<_ACEOF |
2989 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2990 | _ACEOF | |
2991 | ||
b7026657 AC |
2992 | cat >>confdefs.h <<_ACEOF |
2993 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2994 | _ACEOF | |
2995 | ||
b7026657 AC |
2996 | cat >>confdefs.h <<_ACEOF |
2997 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2998 | _ACEOF | |
2999 | ||
81ecdfbb RW |
3000 | cat >>confdefs.h <<_ACEOF |
3001 | #define PACKAGE_URL "$PACKAGE_URL" | |
3002 | _ACEOF | |
3003 | ||
b7026657 AC |
3004 | |
3005 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
3006 | # Prefer an explicitly selected file to automatically selected ones. |
3007 | ac_site_file1=NONE | |
3008 | ac_site_file2=NONE | |
3009 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
3010 | # We do not want a PATH search for config.site. |
3011 | case $CONFIG_SITE in #(( | |
3012 | -*) ac_site_file1=./$CONFIG_SITE;; | |
3013 | */*) ac_site_file1=$CONFIG_SITE;; | |
3014 | *) ac_site_file1=./$CONFIG_SITE;; | |
3015 | esac | |
81ecdfbb RW |
3016 | elif test "x$prefix" != xNONE; then |
3017 | ac_site_file1=$prefix/share/config.site | |
3018 | ac_site_file2=$prefix/etc/config.site | |
3019 | else | |
3020 | ac_site_file1=$ac_default_prefix/share/config.site | |
3021 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 3022 | fi |
81ecdfbb RW |
3023 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
3024 | do | |
3025 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 3026 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
3028 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 3029 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
3030 | . "$ac_site_file" \ |
3031 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3032 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3033 | as_fn_error $? "failed to load site script $ac_site_file | |
3034 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c SS |
3035 | fi |
3036 | done | |
3037 | ||
3038 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
3039 | # Some versions of bash will fail to source /dev/null (special files |
3040 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
3041 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
3042 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
3043 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 3044 | case $cache_file in |
81ecdfbb RW |
3045 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
3046 | *) . "./$cache_file";; | |
b7026657 AC |
3047 | esac |
3048 | fi | |
c906108c | 3049 | else |
81ecdfbb RW |
3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
3051 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 | 3052 | >$cache_file |
c906108c SS |
3053 | fi |
3054 | ||
b15c5d7a MF |
3055 | as_fn_append ac_header_list " dlfcn.h" |
3056 | as_fn_append ac_header_list " fcntl.h" | |
3057 | as_fn_append ac_header_list " fpu_control.h" | |
3058 | as_fn_append ac_header_list " termios.h" | |
b15c5d7a MF |
3059 | as_fn_append ac_header_list " utime.h" |
3060 | as_fn_append ac_header_list " linux/if_tun.h" | |
3061 | as_fn_append ac_header_list " linux/mii.h" | |
3062 | as_fn_append ac_header_list " linux/types.h" | |
3063 | as_fn_append ac_header_list " net/if.h" | |
3064 | as_fn_append ac_header_list " netinet/in.h" | |
3065 | as_fn_append ac_header_list " netinet/tcp.h" | |
3066 | as_fn_append ac_header_list " sys/ioctl.h" | |
3067 | as_fn_append ac_header_list " sys/mman.h" | |
a48ff3ef | 3068 | as_fn_append ac_header_list " sys/mount.h" |
b15c5d7a MF |
3069 | as_fn_append ac_header_list " sys/param.h" |
3070 | as_fn_append ac_header_list " sys/resource.h" | |
b15c5d7a | 3071 | as_fn_append ac_header_list " sys/socket.h" |
a48ff3ef MF |
3072 | as_fn_append ac_header_list " sys/statfs.h" |
3073 | as_fn_append ac_header_list " sys/termio.h" | |
3074 | as_fn_append ac_header_list " sys/termios.h" | |
3075 | as_fn_append ac_header_list " sys/types.h" | |
3076 | as_fn_append ac_header_list " sys/vfs.h" | |
b15c5d7a | 3077 | as_fn_append ac_func_list " __setfpucw" |
a48ff3ef | 3078 | as_fn_append ac_func_list " access" |
b15c5d7a MF |
3079 | as_fn_append ac_func_list " aint" |
3080 | as_fn_append ac_func_list " anint" | |
a48ff3ef MF |
3081 | as_fn_append ac_func_list " cfgetispeed" |
3082 | as_fn_append ac_func_list " cfgetospeed" | |
3083 | as_fn_append ac_func_list " cfsetispeed" | |
3084 | as_fn_append ac_func_list " cfsetospeed" | |
3085 | as_fn_append ac_func_list " chdir" | |
b15c5d7a | 3086 | as_fn_append ac_func_list " chmod" |
a48ff3ef MF |
3087 | as_fn_append ac_func_list " dup" |
3088 | as_fn_append ac_func_list " dup2" | |
b15c5d7a MF |
3089 | as_fn_append ac_func_list " execv" |
3090 | as_fn_append ac_func_list " execve" | |
a48ff3ef | 3091 | as_fn_append ac_func_list " fcntl" |
b15c5d7a | 3092 | as_fn_append ac_func_list " fork" |
a48ff3ef MF |
3093 | as_fn_append ac_func_list " fstat" |
3094 | as_fn_append ac_func_list " fstatfs" | |
b15c5d7a | 3095 | as_fn_append ac_func_list " ftruncate" |
a48ff3ef | 3096 | as_fn_append ac_func_list " getdirentries" |
b15c5d7a | 3097 | as_fn_append ac_func_list " getegid" |
a48ff3ef | 3098 | as_fn_append ac_func_list " geteuid" |
b15c5d7a | 3099 | as_fn_append ac_func_list " getgid" |
a48ff3ef MF |
3100 | as_fn_append ac_func_list " getpid" |
3101 | as_fn_append ac_func_list " getppid" | |
b15c5d7a | 3102 | as_fn_append ac_func_list " getrusage" |
a48ff3ef | 3103 | as_fn_append ac_func_list " gettimeofday" |
b15c5d7a | 3104 | as_fn_append ac_func_list " getuid" |
a48ff3ef | 3105 | as_fn_append ac_func_list " ioctl" |
b15c5d7a | 3106 | as_fn_append ac_func_list " kill" |
a48ff3ef MF |
3107 | as_fn_append ac_func_list " link" |
3108 | as_fn_append ac_func_list " lseek" | |
95955095 MF |
3109 | as_fn_append ac_func_list " lstat" |
3110 | as_fn_append ac_func_list " mkdir" | |
b15c5d7a MF |
3111 | as_fn_append ac_func_list " mmap" |
3112 | as_fn_append ac_func_list " munmap" | |
a48ff3ef | 3113 | as_fn_append ac_func_list " pipe" |
b15c5d7a MF |
3114 | as_fn_append ac_func_list " posix_fallocate" |
3115 | as_fn_append ac_func_list " pread" | |
a48ff3ef MF |
3116 | as_fn_append ac_func_list " rmdir" |
3117 | as_fn_append ac_func_list " setregid" | |
3118 | as_fn_append ac_func_list " setreuid" | |
b15c5d7a | 3119 | as_fn_append ac_func_list " setgid" |
a48ff3ef | 3120 | as_fn_append ac_func_list " setuid" |
b15c5d7a | 3121 | as_fn_append ac_func_list " sigaction" |
a48ff3ef | 3122 | as_fn_append ac_func_list " sigprocmask" |
b15c5d7a | 3123 | as_fn_append ac_func_list " sqrt" |
a48ff3ef | 3124 | as_fn_append ac_func_list " stat" |
b15c5d7a | 3125 | as_fn_append ac_func_list " strsignal" |
a48ff3ef MF |
3126 | as_fn_append ac_func_list " symlink" |
3127 | as_fn_append ac_func_list " tcdrain" | |
3128 | as_fn_append ac_func_list " tcflow" | |
3129 | as_fn_append ac_func_list " tcflush" | |
3130 | as_fn_append ac_func_list " tcgetattr" | |
3131 | as_fn_append ac_func_list " tcgetpgrp" | |
3132 | as_fn_append ac_func_list " tcsendbreak" | |
3133 | as_fn_append ac_func_list " tcsetattr" | |
3134 | as_fn_append ac_func_list " tcsetpgrp" | |
b15c5d7a MF |
3135 | as_fn_append ac_func_list " time" |
3136 | as_fn_append ac_func_list " truncate" | |
a48ff3ef MF |
3137 | as_fn_append ac_func_list " umask" |
3138 | as_fn_append ac_func_list " unlink" | |
b15c5d7a | 3139 | as_fn_append ac_func_list " utime" |
b7026657 AC |
3140 | # Check that the precious variables saved in the cache have kept the same |
3141 | # value. | |
3142 | ac_cache_corrupted=false | |
81ecdfbb | 3143 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
3144 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
3145 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
3146 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
3147 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
3148 | case $ac_old_set,$ac_new_set in |
3149 | set,) | |
81ecdfbb RW |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
3151 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
3152 | ac_cache_corrupted=: ;; |
3153 | ,set) | |
81ecdfbb RW |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
3155 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
3156 | ac_cache_corrupted=: ;; |
3157 | ,);; | |
3158 | *) | |
3159 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
3160 | # differences in whitespace do not lead to failure. |
3161 | ac_old_val_w=`echo x $ac_old_val` | |
3162 | ac_new_val_w=`echo x $ac_new_val` | |
3163 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3165 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3166 | ac_cache_corrupted=: | |
3167 | else | |
3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3169 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3170 | eval $ac_var=\$ac_old_val | |
3171 | fi | |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3173 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3175 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
3176 | fi;; |
3177 | esac | |
3178 | # Pass precious variables to config.status. | |
3179 | if test "$ac_new_set" = set; then | |
3180 | case $ac_new_val in | |
81ecdfbb | 3181 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
3182 | *) ac_arg=$ac_var=$ac_new_val ;; |
3183 | esac | |
3184 | case " $ac_configure_args " in | |
3185 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 3186 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 | 3187 | esac |
c906108c | 3188 | fi |
b7026657 AC |
3189 | done |
3190 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3192 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3194 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 3195 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c906108c | 3196 | fi |
81ecdfbb RW |
3197 | ## -------------------- ## |
3198 | ## Main body of script. ## | |
3199 | ## -------------------- ## | |
c906108c | 3200 | |
fdd6fa61 AG |
3201 | ac_ext=c |
3202 | ac_cpp='$CPP $CPPFLAGS' | |
3203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3206 | ||
c906108c SS |
3207 | |
3208 | ||
8c379db2 TT |
3209 | |
3210 | ||
3211 | ||
6dd65fc0 MF |
3212 | |
3213 | ||
3214 | # Check whether --with-pkgversion was given. | |
3215 | if test "${with_pkgversion+set}" = set; then : | |
3216 | withval=$with_pkgversion; case "$withval" in | |
3217 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
3218 | no) PKGVERSION= ;; | |
3219 | *) PKGVERSION="($withval) " ;; | |
3220 | esac | |
3221 | else | |
3222 | PKGVERSION="(SIM) " | |
3223 | ||
3224 | fi | |
3225 | ||
3226 | ||
3227 | ||
3228 | ||
3229 | cat >>confdefs.h <<_ACEOF | |
3230 | #define PKGVERSION "$PKGVERSION" | |
3231 | _ACEOF | |
3232 | ||
3233 | ||
3234 | ||
3235 | # Check whether --with-bugurl was given. | |
3236 | if test "${with_bugurl+set}" = set; then : | |
3237 | withval=$with_bugurl; case "$withval" in | |
3238 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
3239 | no) BUGURL= | |
3240 | ;; | |
3241 | *) BUGURL="$withval" | |
3242 | ;; | |
3243 | esac | |
3244 | else | |
3245 | BUGURL="$PACKAGE_BUGREPORT" | |
3246 | ||
3247 | fi | |
3248 | ||
3249 | case ${BUGURL} in | |
3250 | "") | |
3251 | REPORT_BUGS_TO= | |
3252 | REPORT_BUGS_TEXI= | |
3253 | ;; | |
3254 | *) | |
3255 | REPORT_BUGS_TO="<$BUGURL>" | |
3256 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
3257 | ;; | |
3258 | esac; | |
3259 | ||
3260 | ||
3261 | ||
3262 | ||
3263 | cat >>confdefs.h <<_ACEOF | |
3264 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
3265 | _ACEOF | |
3266 | ||
3267 | ||
b15c5d7a MF |
3268 | ac_config_headers="$ac_config_headers config.h" |
3269 | ||
3270 | ||
ab18008e MF |
3271 | . $srcdir/../bfd/development.sh |
3272 | ||
6bddc3e8 MF |
3273 | ac_aux_dir= |
3274 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3275 | if test -f "$ac_dir/install-sh"; then | |
3276 | ac_aux_dir=$ac_dir | |
3277 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3278 | break | |
3279 | elif test -f "$ac_dir/install.sh"; then | |
3280 | ac_aux_dir=$ac_dir | |
3281 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3282 | break | |
3283 | elif test -f "$ac_dir/shtool"; then | |
3284 | ac_aux_dir=$ac_dir | |
3285 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3286 | break | |
b7026657 AC |
3287 | fi |
3288 | done | |
6bddc3e8 MF |
3289 | if test -z "$ac_aux_dir"; then |
3290 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
c906108c SS |
3291 | fi |
3292 | ||
6bddc3e8 MF |
3293 | # These three variables are undocumented and unsupported, |
3294 | # and are intended to be withdrawn in a future Autoconf release. | |
3295 | # They can cause serious problems if a builder's source tree is in a directory | |
3296 | # whose full name contains unusual characters. | |
3297 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3298 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3299 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
81ecdfbb | 3300 | |
6bddc3e8 MF |
3301 | |
3302 | # Make sure we can run config.sub. | |
3303 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3304 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3305 | ||
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3307 | $as_echo_n "checking build system type... " >&6; } | |
3308 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 3309 | $as_echo_n "(cached) " >&6 |
c906108c | 3310 | else |
6bddc3e8 MF |
3311 | ac_build_alias=$build_alias |
3312 | test "x$ac_build_alias" = x && | |
3313 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3314 | test "x$ac_build_alias" = x && | |
3315 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3316 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3317 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
b7026657 AC |
3318 | |
3319 | fi | |
6bddc3e8 MF |
3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3321 | $as_echo "$ac_cv_build" >&6; } | |
3322 | case $ac_cv_build in | |
3323 | *-*-*) ;; | |
3324 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
81ecdfbb | 3325 | esac |
6bddc3e8 MF |
3326 | build=$ac_cv_build |
3327 | ac_save_IFS=$IFS; IFS='-' | |
3328 | set x $ac_cv_build | |
3329 | shift | |
3330 | build_cpu=$1 | |
3331 | build_vendor=$2 | |
3332 | shift; shift | |
3333 | # Remember, the first character of IFS is used to create $*, | |
3334 | # except with old shells: | |
3335 | build_os=$* | |
3336 | IFS=$ac_save_IFS | |
3337 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 3338 | |
6bddc3e8 MF |
3339 | |
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3341 | $as_echo_n "checking host system type... " >&6; } | |
3342 | if ${ac_cv_host+:} false; then : | |
81ecdfbb | 3343 | $as_echo_n "(cached) " >&6 |
b7026657 | 3344 | else |
6bddc3e8 MF |
3345 | if test "x$host_alias" = x; then |
3346 | ac_cv_host=$ac_cv_build | |
b7026657 | 3347 | else |
6bddc3e8 MF |
3348 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3349 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b7026657 | 3350 | fi |
6bddc3e8 | 3351 | |
fdd6fa61 | 3352 | fi |
6bddc3e8 MF |
3353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3354 | $as_echo "$ac_cv_host" >&6; } | |
3355 | case $ac_cv_host in | |
3356 | *-*-*) ;; | |
3357 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3358 | esac | |
3359 | host=$ac_cv_host | |
3360 | ac_save_IFS=$IFS; IFS='-' | |
3361 | set x $ac_cv_host | |
3362 | shift | |
3363 | host_cpu=$1 | |
3364 | host_vendor=$2 | |
3365 | shift; shift | |
3366 | # Remember, the first character of IFS is used to create $*, | |
3367 | # except with old shells: | |
3368 | host_os=$* | |
3369 | IFS=$ac_save_IFS | |
3370 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fdd6fa61 | 3371 | |
fdd6fa61 | 3372 | |
6bddc3e8 MF |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3374 | $as_echo_n "checking target system type... " >&6; } | |
3375 | if ${ac_cv_target+:} false; then : | |
81ecdfbb | 3376 | $as_echo_n "(cached) " >&6 |
b7026657 | 3377 | else |
6bddc3e8 MF |
3378 | if test "x$target_alias" = x; then |
3379 | ac_cv_target=$ac_cv_host | |
c906108c | 3380 | else |
6bddc3e8 MF |
3381 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
3382 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
3383 | fi | |
3384 | ||
3385 | fi | |
3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
3387 | $as_echo "$ac_cv_target" >&6; } | |
3388 | case $ac_cv_target in | |
3389 | *-*-*) ;; | |
3390 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
3391 | esac | |
3392 | target=$ac_cv_target | |
3393 | ac_save_IFS=$IFS; IFS='-' | |
3394 | set x $ac_cv_target | |
3395 | shift | |
3396 | target_cpu=$1 | |
3397 | target_vendor=$2 | |
3398 | shift; shift | |
3399 | # Remember, the first character of IFS is used to create $*, | |
3400 | # except with old shells: | |
3401 | target_os=$* | |
3402 | IFS=$ac_save_IFS | |
3403 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
3404 | ||
3405 | ||
3406 | # The aliases save the names the user supplied, while $host etc. | |
3407 | # will get canonicalized. | |
3408 | test -n "$target_alias" && | |
3409 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3410 | NONENONEs,x,x, && | |
3411 | program_prefix=${target_alias}- | |
c2783492 MF |
3412 | # Expand $ac_aux_dir to an absolute path. |
3413 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6bddc3e8 | 3414 | |
c2783492 MF |
3415 | ac_ext=c |
3416 | ac_cpp='$CPP $CPPFLAGS' | |
3417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3420 | if test -n "$ac_tool_prefix"; then | |
3421 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3422 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3424 | $as_echo_n "checking for $ac_word... " >&6; } | |
3425 | if ${ac_cv_prog_CC+:} false; then : | |
3426 | $as_echo_n "(cached) " >&6 | |
8c379db2 | 3427 | else |
c2783492 MF |
3428 | if test -n "$CC"; then |
3429 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3430 | else | |
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3432 | for as_dir in $PATH | |
3433 | do | |
3434 | IFS=$as_save_IFS | |
3435 | test -z "$as_dir" && as_dir=. | |
3436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3438 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3440 | break 2 | |
3441 | fi | |
3442 | done | |
3443 | done | |
3444 | IFS=$as_save_IFS | |
8c379db2 | 3445 | |
c2783492 MF |
3446 | fi |
3447 | fi | |
3448 | CC=$ac_cv_prog_CC | |
3449 | if test -n "$CC"; then | |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3451 | $as_echo "$CC" >&6; } | |
8c379db2 | 3452 | else |
c2783492 MF |
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3454 | $as_echo "no" >&6; } | |
8c379db2 TT |
3455 | fi |
3456 | ||
6bddc3e8 | 3457 | |
c2783492 MF |
3458 | fi |
3459 | if test -z "$ac_cv_prog_CC"; then | |
3460 | ac_ct_CC=$CC | |
3461 | # Extract the first word of "gcc", so it can be a program name with args. | |
3462 | set dummy gcc; ac_word=$2 | |
3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3464 | $as_echo_n "checking for $ac_word... " >&6; } | |
3465 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bddc3e8 MF |
3466 | $as_echo_n "(cached) " >&6 |
3467 | else | |
c2783492 MF |
3468 | if test -n "$ac_ct_CC"; then |
3469 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3470 | else | |
3471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bddc3e8 MF |
3472 | for as_dir in $PATH |
3473 | do | |
3474 | IFS=$as_save_IFS | |
3475 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3476 | for ac_exec_ext in '' $ac_executable_extensions; do |
3477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3478 | ac_cv_prog_ac_ct_CC="gcc" | |
3479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3480 | break 2 | |
3481 | fi | |
3482 | done | |
6bddc3e8 MF |
3483 | done |
3484 | IFS=$as_save_IFS | |
3485 | ||
6bddc3e8 | 3486 | fi |
6bddc3e8 | 3487 | fi |
c2783492 MF |
3488 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3489 | if test -n "$ac_ct_CC"; then | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3491 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 | 3492 | else |
c2783492 MF |
3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3494 | $as_echo "no" >&6; } | |
6bddc3e8 MF |
3495 | fi |
3496 | ||
c2783492 MF |
3497 | if test "x$ac_ct_CC" = x; then |
3498 | CC="" | |
3499 | else | |
3500 | case $cross_compiling:$ac_tool_warned in | |
3501 | yes:) | |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3503 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3504 | ac_tool_warned=yes ;; | |
3505 | esac | |
3506 | CC=$ac_ct_CC | |
3507 | fi | |
6bddc3e8 | 3508 | else |
c2783492 | 3509 | CC="$ac_cv_prog_CC" |
6bddc3e8 MF |
3510 | fi |
3511 | ||
c2783492 MF |
3512 | if test -z "$CC"; then |
3513 | if test -n "$ac_tool_prefix"; then | |
3514 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3515 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6bddc3e8 MF |
3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3517 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3518 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3519 | $as_echo_n "(cached) " >&6 |
3520 | else | |
c2783492 MF |
3521 | if test -n "$CC"; then |
3522 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 MF |
3523 | else |
3524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3525 | for as_dir in $PATH | |
3526 | do | |
3527 | IFS=$as_save_IFS | |
3528 | test -z "$as_dir" && as_dir=. | |
3529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3531 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6bddc3e8 MF |
3532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3533 | break 2 | |
3534 | fi | |
3535 | done | |
3536 | done | |
3537 | IFS=$as_save_IFS | |
3538 | ||
3539 | fi | |
3540 | fi | |
c2783492 MF |
3541 | CC=$ac_cv_prog_CC |
3542 | if test -n "$CC"; then | |
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3544 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3545 | else |
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3547 | $as_echo "no" >&6; } | |
3548 | fi | |
3549 | ||
3550 | ||
c2783492 | 3551 | fi |
6bddc3e8 | 3552 | fi |
c2783492 MF |
3553 | if test -z "$CC"; then |
3554 | # Extract the first word of "cc", so it can be a program name with args. | |
3555 | set dummy cc; ac_word=$2 | |
6bddc3e8 MF |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3557 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3558 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3559 | $as_echo_n "(cached) " >&6 |
3560 | else | |
c2783492 MF |
3561 | if test -n "$CC"; then |
3562 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 | 3563 | else |
c2783492 | 3564 | ac_prog_rejected=no |
6bddc3e8 MF |
3565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3566 | for as_dir in $PATH | |
3567 | do | |
3568 | IFS=$as_save_IFS | |
3569 | test -z "$as_dir" && as_dir=. | |
3570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 MF |
3572 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3573 | ac_prog_rejected=yes | |
3574 | continue | |
3575 | fi | |
3576 | ac_cv_prog_CC="cc" | |
6bddc3e8 MF |
3577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3578 | break 2 | |
3579 | fi | |
3580 | done | |
3581 | done | |
3582 | IFS=$as_save_IFS | |
3583 | ||
c2783492 MF |
3584 | if test $ac_prog_rejected = yes; then |
3585 | # We found a bogon in the path, so make sure we never use it. | |
3586 | set dummy $ac_cv_prog_CC | |
3587 | shift | |
3588 | if test $# != 0; then | |
3589 | # We chose a different compiler from the bogus one. | |
3590 | # However, it has the same basename, so the bogon will be chosen | |
3591 | # first if we set CC to just the basename; use the full file name. | |
3592 | shift | |
3593 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3594 | fi | |
6bddc3e8 MF |
3595 | fi |
3596 | fi | |
c2783492 MF |
3597 | fi |
3598 | CC=$ac_cv_prog_CC | |
3599 | if test -n "$CC"; then | |
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3601 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3602 | else |
3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3604 | $as_echo "no" >&6; } | |
3605 | fi | |
3606 | ||
6bddc3e8 MF |
3607 | |
3608 | fi | |
c2783492 MF |
3609 | if test -z "$CC"; then |
3610 | if test -n "$ac_tool_prefix"; then | |
3611 | for ac_prog in cl.exe | |
3612 | do | |
3613 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3614 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3616 | $as_echo_n "checking for $ac_word... " >&6; } | |
3617 | if ${ac_cv_prog_CC+:} false; then : | |
6bddc3e8 MF |
3618 | $as_echo_n "(cached) " >&6 |
3619 | else | |
c2783492 MF |
3620 | if test -n "$CC"; then |
3621 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3622 | else | |
3623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3624 | for as_dir in $PATH | |
6bddc3e8 MF |
3625 | do |
3626 | IFS=$as_save_IFS | |
3627 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3628 | for ac_exec_ext in '' $ac_executable_extensions; do |
3629 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3630 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3632 | break 2 | |
3633 | fi | |
3634 | done | |
6bddc3e8 MF |
3635 | done |
3636 | IFS=$as_save_IFS | |
3637 | ||
3638 | fi | |
6bddc3e8 | 3639 | fi |
c2783492 MF |
3640 | CC=$ac_cv_prog_CC |
3641 | if test -n "$CC"; then | |
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3643 | $as_echo "$CC" >&6; } | |
3644 | else | |
3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3646 | $as_echo "no" >&6; } | |
3647 | fi | |
6bddc3e8 | 3648 | |
c2783492 MF |
3649 | |
3650 | test -n "$CC" && break | |
3651 | done | |
3652 | fi | |
3653 | if test -z "$CC"; then | |
3654 | ac_ct_CC=$CC | |
3655 | for ac_prog in cl.exe | |
6bddc3e8 MF |
3656 | do |
3657 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3658 | set dummy $ac_prog; ac_word=$2 | |
3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3660 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3661 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bddc3e8 MF |
3662 | $as_echo_n "(cached) " >&6 |
3663 | else | |
c2783492 MF |
3664 | if test -n "$ac_ct_CC"; then |
3665 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bddc3e8 MF |
3666 | else |
3667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3668 | for as_dir in $PATH | |
3669 | do | |
3670 | IFS=$as_save_IFS | |
3671 | test -z "$as_dir" && as_dir=. | |
3672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3673 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3674 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6bddc3e8 MF |
3675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3676 | break 2 | |
3677 | fi | |
3678 | done | |
3679 | done | |
3680 | IFS=$as_save_IFS | |
3681 | ||
3682 | fi | |
3683 | fi | |
c2783492 MF |
3684 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3685 | if test -n "$ac_ct_CC"; then | |
3686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3687 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 MF |
3688 | else |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3690 | $as_echo "no" >&6; } | |
3691 | fi | |
3692 | ||
3693 | ||
c2783492 | 3694 | test -n "$ac_ct_CC" && break |
6bddc3e8 MF |
3695 | done |
3696 | ||
c2783492 MF |
3697 | if test "x$ac_ct_CC" = x; then |
3698 | CC="" | |
3699 | else | |
3700 | case $cross_compiling:$ac_tool_warned in | |
3701 | yes:) | |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3703 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3704 | ac_tool_warned=yes ;; | |
6bddc3e8 | 3705 | esac |
c2783492 | 3706 | CC=$ac_ct_CC |
6bddc3e8 MF |
3707 | fi |
3708 | fi | |
3709 | ||
6bddc3e8 MF |
3710 | fi |
3711 | ||
3712 | ||
c2783492 MF |
3713 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3714 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3715 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3716 | See \`config.log' for more details" "$LINENO" 5; } | |
6bddc3e8 | 3717 | |
c2783492 MF |
3718 | # Provide some information about the compiler. |
3719 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3720 | set X $ac_compile | |
3721 | ac_compiler=$2 | |
3722 | for ac_option in --version -v -V -qversion; do | |
3723 | { { ac_try="$ac_compiler $ac_option >&5" | |
3724 | case "(($ac_try" in | |
3725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3726 | *) ac_try_echo=$ac_try;; | |
3727 | esac | |
3728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3729 | $as_echo "$ac_try_echo"; } >&5 | |
3730 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3731 | ac_status=$? | |
3732 | if test -s conftest.err; then | |
3733 | sed '10a\ | |
3734 | ... rest of stderr output deleted ... | |
3735 | 10q' conftest.err >conftest.er1 | |
3736 | cat conftest.er1 >&5 | |
3737 | fi | |
3738 | rm -f conftest.er1 conftest.err | |
3739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3740 | test $ac_status = 0; } | |
3741 | done | |
6bddc3e8 | 3742 | |
c2783492 MF |
3743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3744 | /* end confdefs.h. */ | |
6bddc3e8 | 3745 | |
c2783492 MF |
3746 | int |
3747 | main () | |
3748 | { | |
6bddc3e8 | 3749 | |
c2783492 MF |
3750 | ; |
3751 | return 0; | |
3752 | } | |
6bddc3e8 | 3753 | _ACEOF |
c2783492 MF |
3754 | ac_clean_files_save=$ac_clean_files |
3755 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3756 | # Try to create an executable without -o first, disregard a.out. | |
3757 | # It will help us diagnose broken compilers, and finding out an intuition | |
3758 | # of exeext. | |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3760 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3761 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bddc3e8 | 3762 | |
c2783492 MF |
3763 | # The possible output files: |
3764 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bddc3e8 | 3765 | |
c2783492 MF |
3766 | ac_rmfiles= |
3767 | for ac_file in $ac_files | |
3768 | do | |
3769 | case $ac_file in | |
3770 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3771 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3772 | esac | |
3773 | done | |
3774 | rm -f $ac_rmfiles | |
81ecdfbb RW |
3775 | |
3776 | if { { ac_try="$ac_link_default" | |
3777 | case "(($ac_try" in | |
3778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3779 | *) ac_try_echo=$ac_try;; | |
3780 | esac | |
3781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3782 | $as_echo "$ac_try_echo"; } >&5 | |
3783 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 3784 | ac_status=$? |
81ecdfbb RW |
3785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3786 | test $ac_status = 0; }; then : | |
3787 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3788 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3789 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3790 | # so that the user can short-circuit this test for compilers unknown to | |
3791 | # Autoconf. | |
3792 | for ac_file in $ac_files '' | |
b7026657 AC |
3793 | do |
3794 | test -f "$ac_file" || continue | |
3795 | case $ac_file in | |
81ecdfbb | 3796 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
3797 | ;; |
3798 | [ab].out ) | |
3799 | # We found the default executable, but exeext='' is most | |
3800 | # certainly right. | |
3801 | break;; | |
3802 | *.* ) | |
81ecdfbb RW |
3803 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3804 | then :; else | |
3805 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3806 | fi | |
3807 | # We set ac_cv_exeext here because the later test for it is not | |
3808 | # safe: cross compilers may not add the suffix if given an `-o' | |
3809 | # argument, so we may need to know it at that point already. | |
3810 | # Even if this section looks crufty: it has the advantage of | |
3811 | # actually working. | |
b7026657 AC |
3812 | break;; |
3813 | * ) | |
3814 | break;; | |
3815 | esac | |
3816 | done | |
81ecdfbb RW |
3817 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3818 | ||
b7026657 | 3819 | else |
81ecdfbb RW |
3820 | ac_file='' |
3821 | fi | |
81ecdfbb | 3822 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3824 | $as_echo "no" >&6; } | |
3825 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3826 | sed 's/^/| /' conftest.$ac_ext >&5 |
3827 | ||
81ecdfbb RW |
3828 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3829 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3830 | as_fn_error 77 "C compiler cannot create executables |
3831 | See \`config.log' for more details" "$LINENO" 5; } | |
3832 | else | |
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3834 | $as_echo "yes" >&6; } | |
b7026657 | 3835 | fi |
d0ac1c44 SM |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3837 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3839 | $as_echo "$ac_file" >&6; } | |
b7026657 | 3840 | ac_exeext=$ac_cv_exeext |
b7026657 | 3841 | |
d0ac1c44 | 3842 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 3843 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3845 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3846 | if { { ac_try="$ac_link" | |
3847 | case "(($ac_try" in | |
3848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3849 | *) ac_try_echo=$ac_try;; | |
3850 | esac | |
3851 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3852 | $as_echo "$ac_try_echo"; } >&5 | |
3853 | (eval "$ac_link") 2>&5 | |
b7026657 | 3854 | ac_status=$? |
81ecdfbb RW |
3855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3856 | test $ac_status = 0; }; then : | |
b7026657 AC |
3857 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3858 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3859 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3860 | # `rm'. | |
3861 | for ac_file in conftest.exe conftest conftest.*; do | |
3862 | test -f "$ac_file" || continue | |
3863 | case $ac_file in | |
81ecdfbb | 3864 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 3865 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
3866 | break;; |
3867 | * ) break;; | |
3868 | esac | |
3869 | done | |
c906108c | 3870 | else |
81ecdfbb RW |
3871 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3872 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3873 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3874 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3875 | fi |
d0ac1c44 | 3876 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3878 | $as_echo "$ac_cv_exeext" >&6; } | |
b7026657 AC |
3879 | |
3880 | rm -f conftest.$ac_ext | |
3881 | EXEEXT=$ac_cv_exeext | |
3882 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3884 | /* end confdefs.h. */ | |
3885 | #include <stdio.h> | |
3886 | int | |
3887 | main () | |
3888 | { | |
3889 | FILE *f = fopen ("conftest.out", "w"); | |
3890 | return ferror (f) || fclose (f) != 0; | |
3891 | ||
3892 | ; | |
3893 | return 0; | |
3894 | } | |
3895 | _ACEOF | |
3896 | ac_clean_files="$ac_clean_files conftest.out" | |
3897 | # Check that the compiler produces executables we can run. If not, either | |
3898 | # the compiler is broken, or we cross compile. | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3900 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3901 | if test "$cross_compiling" != yes; then | |
3902 | { { ac_try="$ac_link" | |
3903 | case "(($ac_try" in | |
3904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3905 | *) ac_try_echo=$ac_try;; | |
3906 | esac | |
3907 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3908 | $as_echo "$ac_try_echo"; } >&5 | |
3909 | (eval "$ac_link") 2>&5 | |
3910 | ac_status=$? | |
3911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3912 | test $ac_status = 0; } | |
3913 | if { ac_try='./conftest$ac_cv_exeext' | |
3914 | { { case "(($ac_try" in | |
3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3916 | *) ac_try_echo=$ac_try;; | |
3917 | esac | |
3918 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3919 | $as_echo "$ac_try_echo"; } >&5 | |
3920 | (eval "$ac_try") 2>&5 | |
3921 | ac_status=$? | |
3922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3923 | test $ac_status = 0; }; }; then | |
3924 | cross_compiling=no | |
3925 | else | |
3926 | if test "$cross_compiling" = maybe; then | |
3927 | cross_compiling=yes | |
3928 | else | |
3929 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3930 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3931 | as_fn_error $? "cannot run C compiled programs. | |
3932 | If you meant to cross compile, use \`--host'. | |
3933 | See \`config.log' for more details" "$LINENO" 5; } | |
3934 | fi | |
3935 | fi | |
3936 | fi | |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3938 | $as_echo "$cross_compiling" >&6; } | |
3939 | ||
3940 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3941 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3943 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3944 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3945 | $as_echo_n "(cached) " >&6 |
b7026657 | 3946 | else |
81ecdfbb | 3947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3948 | /* end confdefs.h. */ |
3949 | ||
3950 | int | |
3951 | main () | |
3952 | { | |
3953 | ||
3954 | ; | |
3955 | return 0; | |
3956 | } | |
3957 | _ACEOF | |
3958 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3959 | if { { ac_try="$ac_compile" |
3960 | case "(($ac_try" in | |
3961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3962 | *) ac_try_echo=$ac_try;; | |
3963 | esac | |
3964 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3965 | $as_echo "$ac_try_echo"; } >&5 | |
3966 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3967 | ac_status=$? |
81ecdfbb RW |
3968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3969 | test $ac_status = 0; }; then : | |
3970 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3971 | test -f "$ac_file" || continue; | |
b7026657 | 3972 | case $ac_file in |
81ecdfbb | 3973 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
3974 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3975 | break;; | |
3976 | esac | |
3977 | done | |
3978 | else | |
81ecdfbb | 3979 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3980 | sed 's/^/| /' conftest.$ac_ext >&5 |
3981 | ||
81ecdfbb RW |
3982 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3983 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3984 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3985 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3986 | fi |
b7026657 AC |
3987 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3988 | fi | |
81ecdfbb RW |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3990 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
3991 | OBJEXT=$ac_cv_objext |
3992 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3994 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3995 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3996 | $as_echo_n "(cached) " >&6 |
b7026657 | 3997 | else |
81ecdfbb | 3998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3999 | /* end confdefs.h. */ |
4000 | ||
4001 | int | |
4002 | main () | |
4003 | { | |
4004 | #ifndef __GNUC__ | |
4005 | choke me | |
4006 | #endif | |
c906108c | 4007 | |
b7026657 AC |
4008 | ; |
4009 | return 0; | |
4010 | } | |
4011 | _ACEOF | |
81ecdfbb | 4012 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 4013 | ac_compiler_gnu=yes |
c906108c | 4014 | else |
81ecdfbb | 4015 | ac_compiler_gnu=no |
c906108c | 4016 | fi |
81ecdfbb | 4017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 4018 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 4019 | |
b7026657 | 4020 | fi |
81ecdfbb RW |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4022 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4023 | if test $ac_compiler_gnu = yes; then | |
4024 | GCC=yes | |
4025 | else | |
4026 | GCC= | |
4027 | fi | |
b7026657 AC |
4028 | ac_test_CFLAGS=${CFLAGS+set} |
4029 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4031 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4032 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb | 4033 | $as_echo_n "(cached) " >&6 |
c906108c | 4034 | else |
81ecdfbb RW |
4035 | ac_save_c_werror_flag=$ac_c_werror_flag |
4036 | ac_c_werror_flag=yes | |
4037 | ac_cv_prog_cc_g=no | |
4038 | CFLAGS="-g" | |
4039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 AC |
4040 | /* end confdefs.h. */ |
4041 | ||
4042 | int | |
4043 | main () | |
4044 | { | |
4045 | ||
4046 | ; | |
4047 | return 0; | |
4048 | } | |
4049 | _ACEOF | |
81ecdfbb | 4050 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
4051 | ac_cv_prog_cc_g=yes |
4052 | else | |
81ecdfbb RW |
4053 | CFLAGS="" |
4054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4055 | /* end confdefs.h. */ | |
4056 | ||
4057 | int | |
4058 | main () | |
4059 | { | |
4060 | ||
4061 | ; | |
4062 | return 0; | |
4063 | } | |
4064 | _ACEOF | |
4065 | if ac_fn_c_try_compile "$LINENO"; then : | |
4066 | ||
4067 | else | |
4068 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4069 | CFLAGS="-g" | |
4070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4071 | /* end confdefs.h. */ | |
4072 | ||
4073 | int | |
4074 | main () | |
4075 | { | |
c906108c | 4076 | |
81ecdfbb RW |
4077 | ; |
4078 | return 0; | |
4079 | } | |
4080 | _ACEOF | |
4081 | if ac_fn_c_try_compile "$LINENO"; then : | |
4082 | ac_cv_prog_cc_g=yes | |
4083 | fi | |
4084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 4085 | fi |
81ecdfbb | 4086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 4087 | fi |
81ecdfbb RW |
4088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4089 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4090 | fi | |
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4092 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 4093 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 4094 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
4095 | elif test $ac_cv_prog_cc_g = yes; then |
4096 | if test "$GCC" = yes; then | |
4097 | CFLAGS="-g -O2" | |
4098 | else | |
4099 | CFLAGS="-g" | |
4100 | fi | |
4101 | else | |
4102 | if test "$GCC" = yes; then | |
4103 | CFLAGS="-O2" | |
4104 | else | |
4105 | CFLAGS= | |
4106 | fi | |
4107 | fi | |
81ecdfbb RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4109 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4110 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4111 | $as_echo_n "(cached) " >&6 |
b7026657 | 4112 | else |
81ecdfbb | 4113 | ac_cv_prog_cc_c89=no |
b7026657 | 4114 | ac_save_CC=$CC |
81ecdfbb | 4115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
4116 | /* end confdefs.h. */ |
4117 | #include <stdarg.h> | |
4118 | #include <stdio.h> | |
d0ac1c44 | 4119 | struct stat; |
b7026657 AC |
4120 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4121 | struct buf { int x; }; | |
4122 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4123 | static char *e (p, i) | |
4124 | char **p; | |
4125 | int i; | |
4126 | { | |
4127 | return p[i]; | |
4128 | } | |
4129 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4130 | { | |
4131 | char *s; | |
4132 | va_list v; | |
4133 | va_start (v,p); | |
4134 | s = g (p, va_arg (v,int)); | |
4135 | va_end (v); | |
4136 | return s; | |
4137 | } | |
4138 | ||
4139 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4140 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4141 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4142 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
4143 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4144 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4145 | that's true only with -std. */ |
b7026657 AC |
4146 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4147 | ||
81ecdfbb RW |
4148 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4149 | inside strings and character constants. */ | |
4150 | #define FOO(x) 'x' | |
4151 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4152 | ||
b7026657 AC |
4153 | int test (int i, double x); |
4154 | struct s1 {int (*f) (int a);}; | |
4155 | struct s2 {int (*f) (double a);}; | |
4156 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4157 | int argc; | |
4158 | char **argv; | |
4159 | int | |
4160 | main () | |
4161 | { | |
4162 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4163 | ; | |
4164 | return 0; | |
4165 | } | |
4166 | _ACEOF | |
81ecdfbb RW |
4167 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4168 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
4169 | do |
4170 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4171 | if ac_fn_c_try_compile "$LINENO"; then : |
4172 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 4173 | fi |
81ecdfbb RW |
4174 | rm -f core conftest.err conftest.$ac_objext |
4175 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 4176 | done |
81ecdfbb | 4177 | rm -f conftest.$ac_ext |
b7026657 AC |
4178 | CC=$ac_save_CC |
4179 | ||
4180 | fi | |
81ecdfbb RW |
4181 | # AC_CACHE_VAL |
4182 | case "x$ac_cv_prog_cc_c89" in | |
4183 | x) | |
4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4185 | $as_echo "none needed" >&6; } ;; | |
4186 | xno) | |
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4188 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 4189 | *) |
81ecdfbb RW |
4190 | CC="$CC $ac_cv_prog_cc_c89" |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4192 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 4193 | esac |
81ecdfbb | 4194 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 4195 | |
fdd6fa61 AG |
4196 | fi |
4197 | ||
fdd6fa61 AG |
4198 | ac_ext=c |
4199 | ac_cpp='$CPP $CPPFLAGS' | |
4200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4203 | ||
c2783492 MF |
4204 | ac_ext=c |
4205 | ac_cpp='$CPP $CPPFLAGS' | |
4206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4210 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4211 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4212 | $as_echo_n "(cached) " >&6 | |
4213 | else | |
4214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4215 | /* end confdefs.h. */ | |
4216 | ||
4217 | int | |
4218 | main () | |
4219 | { | |
4220 | ||
4221 | ; | |
4222 | return 0; | |
4223 | } | |
4224 | _ACEOF | |
4225 | # Make sure it works both with $CC and with simple cc. | |
4226 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4227 | # compilers refuse to overwrite an existing .o file with -o, | |
4228 | # though they will create one. | |
4229 | am_cv_prog_cc_c_o=yes | |
4230 | for am_i in 1 2; do | |
4231 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4232 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4233 | ac_status=$? | |
4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4235 | (exit $ac_status); } \ | |
4236 | && test -f conftest2.$ac_objext; then | |
4237 | : OK | |
4238 | else | |
4239 | am_cv_prog_cc_c_o=no | |
4240 | break | |
4241 | fi | |
4242 | done | |
4243 | rm -f core conftest* | |
4244 | unset am_i | |
4245 | fi | |
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4247 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4248 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4249 | # Losing compiler, so override with the script. | |
4250 | # FIXME: It is wrong to rewrite CC. | |
4251 | # But if we don't then we get into trouble of one sort or another. | |
4252 | # A longer-term fix would be to have automake use am__CC in this case, | |
4253 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4254 | CC="$am_aux_dir/compile $CC" | |
4255 | fi | |
4256 | ac_ext=c | |
4257 | ac_cpp='$CPP $CPPFLAGS' | |
4258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4261 | ||
4262 | ||
c2783492 MF |
4263 | ac_ext=c |
4264 | ac_cpp='$CPP $CPPFLAGS' | |
4265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4269 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4270 | # On Suns, sometimes $CPP names a directory. | |
4271 | if test -n "$CPP" && test -d "$CPP"; then | |
4272 | CPP= | |
4273 | fi | |
4274 | if test -z "$CPP"; then | |
4275 | if ${ac_cv_prog_CPP+:} false; then : | |
4276 | $as_echo_n "(cached) " >&6 | |
4277 | else | |
4278 | # Double quotes because CPP needs to be expanded | |
4279 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4280 | do | |
4281 | ac_preproc_ok=false | |
4282 | for ac_c_preproc_warn_flag in '' yes | |
4283 | do | |
4284 | # Use a header file that comes with gcc, so configuring glibc | |
4285 | # with a fresh cross-compiler works. | |
4286 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4287 | # <limits.h> exists even on freestanding compilers. | |
4288 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4289 | # not just through cpp. "Syntax error" is here to catch this case. | |
4290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4291 | /* end confdefs.h. */ | |
4292 | #ifdef __STDC__ | |
4293 | # include <limits.h> | |
4294 | #else | |
4295 | # include <assert.h> | |
4296 | #endif | |
4297 | Syntax error | |
4298 | _ACEOF | |
4299 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4300 | ||
4301 | else | |
4302 | # Broken: fails on valid input. | |
4303 | continue | |
4304 | fi | |
4305 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4306 | ||
4307 | # OK, works on sane cases. Now check whether nonexistent headers | |
4308 | # can be detected and how. | |
4309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4310 | /* end confdefs.h. */ | |
4311 | #include <ac_nonexistent.h> | |
4312 | _ACEOF | |
4313 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4314 | # Broken: success on invalid input. | |
4315 | continue | |
4316 | else | |
4317 | # Passes both tests. | |
4318 | ac_preproc_ok=: | |
4319 | break | |
4320 | fi | |
4321 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4322 | ||
4323 | done | |
4324 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4325 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4326 | if $ac_preproc_ok; then : | |
4327 | break | |
4328 | fi | |
4329 | ||
4330 | done | |
4331 | ac_cv_prog_CPP=$CPP | |
4332 | ||
4333 | fi | |
4334 | CPP=$ac_cv_prog_CPP | |
4335 | else | |
4336 | ac_cv_prog_CPP=$CPP | |
4337 | fi | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4339 | $as_echo "$CPP" >&6; } | |
4340 | ac_preproc_ok=false | |
4341 | for ac_c_preproc_warn_flag in '' yes | |
4342 | do | |
4343 | # Use a header file that comes with gcc, so configuring glibc | |
4344 | # with a fresh cross-compiler works. | |
4345 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4346 | # <limits.h> exists even on freestanding compilers. | |
4347 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4348 | # not just through cpp. "Syntax error" is here to catch this case. | |
4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4350 | /* end confdefs.h. */ | |
4351 | #ifdef __STDC__ | |
4352 | # include <limits.h> | |
4353 | #else | |
4354 | # include <assert.h> | |
4355 | #endif | |
4356 | Syntax error | |
4357 | _ACEOF | |
4358 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4359 | ||
4360 | else | |
4361 | # Broken: fails on valid input. | |
4362 | continue | |
4363 | fi | |
4364 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4365 | ||
4366 | # OK, works on sane cases. Now check whether nonexistent headers | |
4367 | # can be detected and how. | |
4368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4369 | /* end confdefs.h. */ | |
4370 | #include <ac_nonexistent.h> | |
4371 | _ACEOF | |
4372 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4373 | # Broken: success on invalid input. | |
4374 | continue | |
4375 | else | |
4376 | # Passes both tests. | |
4377 | ac_preproc_ok=: | |
4378 | break | |
4379 | fi | |
4380 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4381 | ||
4382 | done | |
4383 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4384 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4385 | if $ac_preproc_ok; then : | |
4386 | ||
4387 | else | |
4388 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4389 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4390 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4391 | See \`config.log' for more details" "$LINENO" 5; } | |
4392 | fi | |
4393 | ||
4394 | ac_ext=c | |
4395 | ac_cpp='$CPP $CPPFLAGS' | |
4396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4399 | ||
4400 | ||
e9bf6a4a | 4401 | |
c2783492 MF |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4403 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4404 | if ${ac_cv_path_GREP+:} false; then : | |
4405 | $as_echo_n "(cached) " >&6 | |
4406 | else | |
4407 | if test -z "$GREP"; then | |
4408 | ac_path_GREP_found=false | |
4409 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4411 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4412 | do | |
4413 | IFS=$as_save_IFS | |
4414 | test -z "$as_dir" && as_dir=. | |
4415 | for ac_prog in grep ggrep; do | |
4416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4417 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4418 | as_fn_executable_p "$ac_path_GREP" || continue | |
4419 | # Check for GNU ac_path_GREP and select it if it is found. | |
4420 | # Check for GNU $ac_path_GREP | |
4421 | case `"$ac_path_GREP" --version 2>&1` in | |
4422 | *GNU*) | |
4423 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4424 | *) | |
4425 | ac_count=0 | |
4426 | $as_echo_n 0123456789 >"conftest.in" | |
4427 | while : | |
4428 | do | |
4429 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4430 | mv "conftest.tmp" "conftest.in" | |
4431 | cp "conftest.in" "conftest.nl" | |
4432 | $as_echo 'GREP' >> "conftest.nl" | |
4433 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4434 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4435 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4436 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4437 | # Best one so far, save it but keep looking for a better one | |
4438 | ac_cv_path_GREP="$ac_path_GREP" | |
4439 | ac_path_GREP_max=$ac_count | |
4440 | fi | |
4441 | # 10*(2^10) chars as input seems more than enough | |
4442 | test $ac_count -gt 10 && break | |
4443 | done | |
4444 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4445 | esac | |
4446 | ||
4447 | $ac_path_GREP_found && break 3 | |
4448 | done | |
4449 | done | |
4450 | done | |
4451 | IFS=$as_save_IFS | |
4452 | if test -z "$ac_cv_path_GREP"; then | |
4453 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4454 | fi | |
4455 | else | |
4456 | ac_cv_path_GREP=$GREP | |
4457 | fi | |
4458 | ||
4459 | fi | |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4461 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4462 | GREP="$ac_cv_path_GREP" | |
4463 | ||
4464 | ||
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4466 | $as_echo_n "checking for egrep... " >&6; } | |
4467 | if ${ac_cv_path_EGREP+:} false; then : | |
4468 | $as_echo_n "(cached) " >&6 | |
4469 | else | |
4470 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4471 | then ac_cv_path_EGREP="$GREP -E" | |
4472 | else | |
4473 | if test -z "$EGREP"; then | |
4474 | ac_path_EGREP_found=false | |
4475 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4477 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4478 | do | |
4479 | IFS=$as_save_IFS | |
4480 | test -z "$as_dir" && as_dir=. | |
4481 | for ac_prog in egrep; do | |
4482 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4483 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4484 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4485 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4486 | # Check for GNU $ac_path_EGREP | |
4487 | case `"$ac_path_EGREP" --version 2>&1` in | |
4488 | *GNU*) | |
4489 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4490 | *) | |
4491 | ac_count=0 | |
4492 | $as_echo_n 0123456789 >"conftest.in" | |
4493 | while : | |
4494 | do | |
4495 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4496 | mv "conftest.tmp" "conftest.in" | |
4497 | cp "conftest.in" "conftest.nl" | |
4498 | $as_echo 'EGREP' >> "conftest.nl" | |
4499 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4500 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4501 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4502 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4503 | # Best one so far, save it but keep looking for a better one | |
4504 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4505 | ac_path_EGREP_max=$ac_count | |
4506 | fi | |
4507 | # 10*(2^10) chars as input seems more than enough | |
4508 | test $ac_count -gt 10 && break | |
4509 | done | |
4510 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4511 | esac | |
4512 | ||
4513 | $ac_path_EGREP_found && break 3 | |
4514 | done | |
4515 | done | |
4516 | done | |
4517 | IFS=$as_save_IFS | |
4518 | if test -z "$ac_cv_path_EGREP"; then | |
4519 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4520 | fi | |
4521 | else | |
4522 | ac_cv_path_EGREP=$EGREP | |
4523 | fi | |
4524 | ||
4525 | fi | |
4526 | fi | |
4527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4528 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4529 | EGREP="$ac_cv_path_EGREP" | |
4530 | ||
4531 | ||
4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4533 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4534 | if ${ac_cv_header_stdc+:} false; then : | |
6bddc3e8 MF |
4535 | $as_echo_n "(cached) " >&6 |
4536 | else | |
4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4538 | /* end confdefs.h. */ | |
c2783492 MF |
4539 | #include <stdlib.h> |
4540 | #include <stdarg.h> | |
4541 | #include <string.h> | |
4542 | #include <float.h> | |
6bddc3e8 MF |
4543 | |
4544 | int | |
4545 | main () | |
4546 | { | |
4547 | ||
4548 | ; | |
4549 | return 0; | |
4550 | } | |
4551 | _ACEOF | |
c2783492 MF |
4552 | if ac_fn_c_try_compile "$LINENO"; then : |
4553 | ac_cv_header_stdc=yes | |
4554 | else | |
4555 | ac_cv_header_stdc=no | |
fdd6fa61 | 4556 | fi |
c2783492 | 4557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
81ecdfbb | 4558 | |
c2783492 MF |
4559 | if test $ac_cv_header_stdc = yes; then |
4560 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4562 | /* end confdefs.h. */ | |
4563 | #include <string.h> | |
6bddc3e8 | 4564 | |
c2783492 MF |
4565 | _ACEOF |
4566 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4567 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6bddc3e8 | 4568 | |
c2783492 MF |
4569 | else |
4570 | ac_cv_header_stdc=no | |
4571 | fi | |
4572 | rm -f conftest* | |
6bddc3e8 | 4573 | |
6bddc3e8 | 4574 | fi |
81ecdfbb | 4575 | |
c2783492 MF |
4576 | if test $ac_cv_header_stdc = yes; then |
4577 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4579 | /* end confdefs.h. */ | |
4580 | #include <stdlib.h> | |
fdd6fa61 | 4581 | |
c2783492 MF |
4582 | _ACEOF |
4583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4584 | $EGREP "free" >/dev/null 2>&1; then : | |
6bddc3e8 | 4585 | |
c2783492 MF |
4586 | else |
4587 | ac_cv_header_stdc=no | |
6bddc3e8 | 4588 | fi |
c2783492 | 4589 | rm -f conftest* |
6bddc3e8 | 4590 | |
6bddc3e8 | 4591 | fi |
c2783492 MF |
4592 | |
4593 | if test $ac_cv_header_stdc = yes; then | |
4594 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4595 | if test "$cross_compiling" = yes; then : | |
4596 | : | |
6bddc3e8 | 4597 | else |
c2783492 MF |
4598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4599 | /* end confdefs.h. */ | |
4600 | #include <ctype.h> | |
4601 | #include <stdlib.h> | |
4602 | #if ((' ' & 0x0FF) == 0x020) | |
4603 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4604 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4605 | #else | |
4606 | # define ISLOWER(c) \ | |
4607 | (('a' <= (c) && (c) <= 'i') \ | |
4608 | || ('j' <= (c) && (c) <= 'r') \ | |
4609 | || ('s' <= (c) && (c) <= 'z')) | |
4610 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4611 | #endif | |
4612 | ||
4613 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4614 | int | |
4615 | main () | |
4616 | { | |
4617 | int i; | |
4618 | for (i = 0; i < 256; i++) | |
4619 | if (XOR (islower (i), ISLOWER (i)) | |
4620 | || toupper (i) != TOUPPER (i)) | |
4621 | return 2; | |
4622 | return 0; | |
4623 | } | |
4624 | _ACEOF | |
4625 | if ac_fn_c_try_run "$LINENO"; then : | |
4626 | ||
4627 | else | |
4628 | ac_cv_header_stdc=no | |
4629 | fi | |
4630 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4631 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bddc3e8 MF |
4632 | fi |
4633 | ||
c2783492 MF |
4634 | fi |
4635 | fi | |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4637 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4638 | if test $ac_cv_header_stdc = yes; then | |
6bddc3e8 | 4639 | |
c2783492 | 4640 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6bddc3e8 | 4641 | |
c2783492 | 4642 | fi |
6bddc3e8 | 4643 | |
c2783492 MF |
4644 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4645 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4646 | inttypes.h stdint.h unistd.h | |
4647 | do : | |
4648 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4649 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4650 | " | |
4651 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4652 | cat >>confdefs.h <<_ACEOF | |
4653 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4654 | _ACEOF | |
4655 | ||
4656 | fi | |
4657 | ||
4658 | done | |
4659 | ||
4660 | ||
c2783492 MF |
4661 | test "$program_prefix" != NONE && |
4662 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4663 | # Use a double $ so make ignores it. | |
4664 | test "$program_suffix" != NONE && | |
4665 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4666 | # Double any \ or $. | |
4667 | # By default was `s,x,x', remove it if useless. | |
4668 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4669 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4670 | ||
4671 | # Find a good install program. We prefer a C program (faster), | |
4672 | # so one script is as good as another. But avoid the broken or | |
4673 | # incompatible versions: | |
4674 | # SysV /etc/install, /usr/sbin/install | |
4675 | # SunOS /usr/etc/install | |
4676 | # IRIX /sbin/install | |
4677 | # AIX /bin/install | |
4678 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4679 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4680 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4681 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4682 | # OS/2's system install, which has a completely different semantic | |
4683 | # ./install, which can be erroneously created by make from ./install.sh. | |
4684 | # Reject install programs that cannot install multiple files. | |
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4686 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4687 | if test -z "$INSTALL"; then | |
4688 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 4689 | $as_echo_n "(cached) " >&6 |
c906108c | 4690 | else |
c2783492 | 4691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b7026657 AC |
4692 | for as_dir in $PATH |
4693 | do | |
4694 | IFS=$as_save_IFS | |
4695 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
4696 | # Account for people who put trailing slashes in PATH elements. |
4697 | case $as_dir/ in #(( | |
4698 | ./ | .// | /[cC]/* | \ | |
4699 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4700 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4701 | /usr/ucb/* ) ;; | |
4702 | *) | |
4703 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4704 | # Don't use installbsd from OSF since it installs stuff as root | |
4705 | # by default. | |
4706 | for ac_prog in ginstall scoinst install; do | |
4707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4708 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4709 | if test $ac_prog = install && | |
4710 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4711 | # AIX install. It has an incompatible calling convention. | |
4712 | : | |
4713 | elif test $ac_prog = install && | |
4714 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4715 | # program-specific install script used by HP pwplus--don't use. | |
4716 | : | |
4717 | else | |
4718 | rm -rf conftest.one conftest.two conftest.dir | |
4719 | echo one > conftest.one | |
4720 | echo two > conftest.two | |
4721 | mkdir conftest.dir | |
4722 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4723 | test -s conftest.one && test -s conftest.two && | |
4724 | test -s conftest.dir/conftest.one && | |
4725 | test -s conftest.dir/conftest.two | |
4726 | then | |
4727 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4728 | break 3 | |
4729 | fi | |
4730 | fi | |
4731 | fi | |
4732 | done | |
4733 | done | |
4734 | ;; | |
4735 | esac | |
4736 | ||
81ecdfbb RW |
4737 | done |
4738 | IFS=$as_save_IFS | |
b7026657 | 4739 | |
c2783492 MF |
4740 | rm -rf conftest.one conftest.two conftest.dir |
4741 | ||
c906108c | 4742 | fi |
c2783492 MF |
4743 | if test "${ac_cv_path_install+set}" = set; then |
4744 | INSTALL=$ac_cv_path_install | |
4745 | else | |
4746 | # As a last resort, use the slow shell script. Don't cache a | |
4747 | # value for INSTALL within a source directory, because that will | |
4748 | # break other packages using the cache if that directory is | |
4749 | # removed, or if the value is a relative name. | |
4750 | INSTALL=$ac_install_sh | |
4751 | fi | |
c906108c | 4752 | fi |
c2783492 MF |
4753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4754 | $as_echo "$INSTALL" >&6; } | |
b7026657 | 4755 | |
c2783492 MF |
4756 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4757 | # It thinks the first close brace ends the variable substitution. | |
4758 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81ecdfbb | 4759 | |
c2783492 MF |
4760 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4761 | ||
4762 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4763 | ||
4764 | ||
4765 | ||
4766 | ||
c2783492 MF |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
4768 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4769 | if ${ac_cv_c_bigendian+:} false; then : | |
81ecdfbb | 4770 | $as_echo_n "(cached) " >&6 |
b7026657 | 4771 | else |
c2783492 MF |
4772 | ac_cv_c_bigendian=unknown |
4773 | # See if we're dealing with a universal compiler. | |
4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4775 | /* end confdefs.h. */ | |
4776 | #ifndef __APPLE_CC__ | |
4777 | not a universal capable compiler | |
4778 | #endif | |
4779 | typedef int dummy; | |
c906108c | 4780 | |
c2783492 MF |
4781 | _ACEOF |
4782 | if ac_fn_c_try_compile "$LINENO"; then : | |
4783 | ||
4784 | # Check for potential -arch flags. It is not universal unless | |
4785 | # there are at least two -arch flags with different values. | |
4786 | ac_arch= | |
4787 | ac_prev= | |
4788 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4789 | if test -n "$ac_prev"; then | |
4790 | case $ac_word in | |
4791 | i?86 | x86_64 | ppc | ppc64) | |
4792 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4793 | ac_arch=$ac_word | |
4794 | else | |
4795 | ac_cv_c_bigendian=universal | |
4796 | break | |
4797 | fi | |
4798 | ;; | |
4799 | esac | |
4800 | ac_prev= | |
4801 | elif test "x$ac_word" = "x-arch"; then | |
4802 | ac_prev=arch | |
4803 | fi | |
4804 | done | |
b7026657 | 4805 | fi |
c2783492 MF |
4806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4807 | if test $ac_cv_c_bigendian = unknown; then | |
4808 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4810 | /* end confdefs.h. */ | |
4811 | #include <sys/types.h> | |
4812 | #include <sys/param.h> | |
c906108c | 4813 | |
c2783492 MF |
4814 | int |
4815 | main () | |
4816 | { | |
4817 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
4818 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4819 | && LITTLE_ENDIAN) | |
4820 | bogus endian macros | |
4821 | #endif | |
4822 | ||
4823 | ; | |
4824 | return 0; | |
4825 | } | |
4826 | _ACEOF | |
4827 | if ac_fn_c_try_compile "$LINENO"; then : | |
4828 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4830 | /* end confdefs.h. */ | |
4831 | #include <sys/types.h> | |
4832 | #include <sys/param.h> | |
4833 | ||
4834 | int | |
4835 | main () | |
4836 | { | |
4837 | #if BYTE_ORDER != BIG_ENDIAN | |
4838 | not big endian | |
4839 | #endif | |
4840 | ||
4841 | ; | |
4842 | return 0; | |
4843 | } | |
4844 | _ACEOF | |
4845 | if ac_fn_c_try_compile "$LINENO"; then : | |
4846 | ac_cv_c_bigendian=yes | |
b7026657 | 4847 | else |
c2783492 MF |
4848 | ac_cv_c_bigendian=no |
4849 | fi | |
4850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 4851 | fi |
c2783492 MF |
4852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4853 | fi | |
4854 | if test $ac_cv_c_bigendian = unknown; then | |
4855 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4857 | /* end confdefs.h. */ | |
4858 | #include <limits.h> | |
c906108c | 4859 | |
c2783492 MF |
4860 | int |
4861 | main () | |
4862 | { | |
4863 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4864 | bogus endian macros | |
4865 | #endif | |
4866 | ||
4867 | ; | |
4868 | return 0; | |
4869 | } | |
4870 | _ACEOF | |
4871 | if ac_fn_c_try_compile "$LINENO"; then : | |
4872 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4874 | /* end confdefs.h. */ | |
4875 | #include <limits.h> | |
4876 | ||
4877 | int | |
4878 | main () | |
4879 | { | |
4880 | #ifndef _BIG_ENDIAN | |
4881 | not big endian | |
4882 | #endif | |
b7026657 | 4883 | |
c2783492 MF |
4884 | ; |
4885 | return 0; | |
4886 | } | |
4887 | _ACEOF | |
4888 | if ac_fn_c_try_compile "$LINENO"; then : | |
4889 | ac_cv_c_bigendian=yes | |
c906108c | 4890 | else |
c2783492 | 4891 | ac_cv_c_bigendian=no |
c906108c | 4892 | fi |
c2783492 MF |
4893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4894 | fi | |
4895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4896 | fi | |
4897 | if test $ac_cv_c_bigendian = unknown; then | |
4898 | # Compile a test program. | |
4899 | if test "$cross_compiling" = yes; then : | |
4900 | # Try to guess by grepping values from an object file. | |
4901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4902 | /* end confdefs.h. */ | |
4903 | short int ascii_mm[] = | |
4904 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4905 | short int ascii_ii[] = | |
4906 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4907 | int use_ascii (int i) { | |
4908 | return ascii_mm[i] + ascii_ii[i]; | |
4909 | } | |
4910 | short int ebcdic_ii[] = | |
4911 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4912 | short int ebcdic_mm[] = | |
4913 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4914 | int use_ebcdic (int i) { | |
4915 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
4916 | } | |
4917 | extern int foo; | |
c906108c | 4918 | |
c2783492 MF |
4919 | int |
4920 | main () | |
4921 | { | |
4922 | return use_ascii (foo) == use_ebcdic (foo); | |
4923 | ; | |
4924 | return 0; | |
4925 | } | |
4926 | _ACEOF | |
4927 | if ac_fn_c_try_compile "$LINENO"; then : | |
4928 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4929 | ac_cv_c_bigendian=yes | |
4930 | fi | |
4931 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4932 | if test "$ac_cv_c_bigendian" = unknown; then | |
4933 | ac_cv_c_bigendian=no | |
4934 | else | |
4935 | # finding both strings is unlikely to happen, but who knows? | |
4936 | ac_cv_c_bigendian=unknown | |
4937 | fi | |
4938 | fi | |
b7026657 | 4939 | fi |
c2783492 | 4940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4941 | else |
c2783492 MF |
4942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4943 | /* end confdefs.h. */ | |
4944 | $ac_includes_default | |
4945 | int | |
4946 | main () | |
4947 | { | |
4948 | ||
4949 | /* Are we little or big endian? From Harbison&Steele. */ | |
4950 | union | |
4951 | { | |
4952 | long int l; | |
4953 | char c[sizeof (long int)]; | |
4954 | } u; | |
4955 | u.l = 1; | |
4956 | return u.c[sizeof (long int) - 1] == 1; | |
b7026657 | 4957 | |
c2783492 MF |
4958 | ; |
4959 | return 0; | |
4960 | } | |
4961 | _ACEOF | |
4962 | if ac_fn_c_try_run "$LINENO"; then : | |
4963 | ac_cv_c_bigendian=no | |
4964 | else | |
4965 | ac_cv_c_bigendian=yes | |
c906108c | 4966 | fi |
c2783492 MF |
4967 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4968 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4969 | fi |
c2783492 MF |
4970 | |
4971 | fi | |
c906108c | 4972 | fi |
c2783492 MF |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
4974 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4975 | case $ac_cv_c_bigendian in #( | |
4976 | yes) | |
4977 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4978 | ;; #( | |
4979 | no) | |
4980 | ;; #( | |
4981 | universal) | |
c906108c | 4982 | |
c2783492 MF |
4983 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
4984 | ||
4985 | ;; #( | |
4986 | *) | |
4987 | as_fn_error $? "unknown endianness | |
4988 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
4989 | esac | |
4990 | ||
4991 | ||
4992 | ||
4993 | ||
a979f2a0 MF |
4994 | if test -n "$ac_tool_prefix"; then |
4995 | # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args. | |
4996 | set dummy ${ac_tool_prefix}dtc; ac_word=$2 | |
4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4998 | $as_echo_n "checking for $ac_word... " >&6; } | |
4999 | if ${ac_cv_prog_DTC+:} false; then : | |
5000 | $as_echo_n "(cached) " >&6 | |
5001 | else | |
5002 | if test -n "$DTC"; then | |
5003 | ac_cv_prog_DTC="$DTC" # Let the user override the test. | |
5004 | else | |
5005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5006 | for as_dir in $PATH | |
5007 | do | |
5008 | IFS=$as_save_IFS | |
5009 | test -z "$as_dir" && as_dir=. | |
5010 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5011 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5012 | ac_cv_prog_DTC="${ac_tool_prefix}dtc" | |
5013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5014 | break 2 | |
5015 | fi | |
5016 | done | |
5017 | done | |
5018 | IFS=$as_save_IFS | |
5019 | ||
5020 | fi | |
5021 | fi | |
5022 | DTC=$ac_cv_prog_DTC | |
5023 | if test -n "$DTC"; then | |
5024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5 | |
5025 | $as_echo "$DTC" >&6; } | |
5026 | else | |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5028 | $as_echo "no" >&6; } | |
5029 | fi | |
5030 | ||
5031 | ||
5032 | fi | |
5033 | if test -z "$ac_cv_prog_DTC"; then | |
5034 | ac_ct_DTC=$DTC | |
5035 | # Extract the first word of "dtc", so it can be a program name with args. | |
5036 | set dummy dtc; ac_word=$2 | |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5038 | $as_echo_n "checking for $ac_word... " >&6; } | |
5039 | if ${ac_cv_prog_ac_ct_DTC+:} false; then : | |
5040 | $as_echo_n "(cached) " >&6 | |
5041 | else | |
5042 | if test -n "$ac_ct_DTC"; then | |
5043 | ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test. | |
5044 | else | |
5045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5046 | for as_dir in $PATH | |
5047 | do | |
5048 | IFS=$as_save_IFS | |
5049 | test -z "$as_dir" && as_dir=. | |
5050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5051 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5052 | ac_cv_prog_ac_ct_DTC="dtc" | |
5053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5054 | break 2 | |
5055 | fi | |
5056 | done | |
5057 | done | |
5058 | IFS=$as_save_IFS | |
5059 | ||
5060 | fi | |
5061 | fi | |
5062 | ac_ct_DTC=$ac_cv_prog_ac_ct_DTC | |
5063 | if test -n "$ac_ct_DTC"; then | |
5064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5 | |
5065 | $as_echo "$ac_ct_DTC" >&6; } | |
5066 | else | |
5067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5068 | $as_echo "no" >&6; } | |
5069 | fi | |
5070 | ||
5071 | if test "x$ac_ct_DTC" = x; then | |
5072 | DTC="" | |
5073 | else | |
5074 | case $cross_compiling:$ac_tool_warned in | |
5075 | yes:) | |
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5078 | ac_tool_warned=yes ;; | |
5079 | esac | |
5080 | DTC=$ac_ct_DTC | |
5081 | fi | |
5082 | else | |
5083 | DTC="$ac_cv_prog_DTC" | |
5084 | fi | |
5085 | ||
5086 | ||
c2783492 | 5087 | if test "x$cross_compiling" = "xno"; then |
aa0fca16 | 5088 | : "${AR_FOR_BUILD:=\$(AR)}" |
c2783492 | 5089 | : "${CC_FOR_BUILD:=\$(CC)}" |
aa0fca16 | 5090 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" |
c2783492 | 5091 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" |
fde7c6bf | 5092 | : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}" |
c2783492 | 5093 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" |
c906108c | 5094 | else |
aa0fca16 | 5095 | : "${AR_FOR_BUILD:=ar}" |
c2783492 | 5096 | : "${CC_FOR_BUILD:=gcc}" |
aa0fca16 | 5097 | : "${RANLIB_FOR_BUILD:=ranlib}" |
c2783492 | 5098 | : "${CFLAGS_FOR_BUILD:=-g -O}" |
fde7c6bf | 5099 | : "${CPPFLAGS_FOR_BUILD:=}" |
c2783492 | 5100 | : "${LDLFAGS_FOR_BUILD:=}" |
c906108c SS |
5101 | fi |
5102 | ||
5103 | ||
c906108c | 5104 | |
c2783492 MF |
5105 | |
5106 | ||
aa0fca16 MF |
5107 | |
5108 | ||
fde7c6bf | 5109 | |
b7026657 | 5110 | if test -n "$ac_tool_prefix"; then |
c2783492 MF |
5111 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5112 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5114 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5115 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5116 | $as_echo_n "(cached) " >&6 |
c906108c | 5117 | else |
c2783492 MF |
5118 | if test -n "$AR"; then |
5119 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c906108c | 5120 | else |
b7026657 AC |
5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5122 | for as_dir in $PATH | |
5123 | do | |
5124 | IFS=$as_save_IFS | |
5125 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5126 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5128 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5130 | break 2 |
5131 | fi | |
5132 | done | |
81ecdfbb RW |
5133 | done |
5134 | IFS=$as_save_IFS | |
b7026657 AC |
5135 | |
5136 | fi | |
5137 | fi | |
c2783492 MF |
5138 | AR=$ac_cv_prog_AR |
5139 | if test -n "$AR"; then | |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5141 | $as_echo "$AR" >&6; } | |
b7026657 | 5142 | else |
81ecdfbb RW |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5144 | $as_echo "no" >&6; } | |
b7026657 AC |
5145 | fi |
5146 | ||
81ecdfbb | 5147 | |
b7026657 | 5148 | fi |
c2783492 MF |
5149 | if test -z "$ac_cv_prog_AR"; then |
5150 | ac_ct_AR=$AR | |
5151 | # Extract the first word of "ar", so it can be a program name with args. | |
5152 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5154 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5155 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5156 | $as_echo_n "(cached) " >&6 |
b7026657 | 5157 | else |
c2783492 MF |
5158 | if test -n "$ac_ct_AR"; then |
5159 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b7026657 AC |
5160 | else |
5161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5162 | for as_dir in $PATH | |
5163 | do | |
5164 | IFS=$as_save_IFS | |
5165 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5166 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5168 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5170 | break 2 |
5171 | fi | |
5172 | done | |
81ecdfbb RW |
5173 | done |
5174 | IFS=$as_save_IFS | |
b7026657 AC |
5175 | |
5176 | fi | |
5177 | fi | |
c2783492 MF |
5178 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5179 | if test -n "$ac_ct_AR"; then | |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5181 | $as_echo "$ac_ct_AR" >&6; } | |
b7026657 | 5182 | else |
81ecdfbb RW |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5184 | $as_echo "no" >&6; } | |
c906108c | 5185 | fi |
b7026657 | 5186 | |
c2783492 MF |
5187 | if test "x$ac_ct_AR" = x; then |
5188 | AR="" | |
81ecdfbb RW |
5189 | else |
5190 | case $cross_compiling:$ac_tool_warned in | |
5191 | yes:) | |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5193 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5194 | ac_tool_warned=yes ;; | |
5195 | esac | |
c2783492 | 5196 | AR=$ac_ct_AR |
c906108c | 5197 | fi |
c906108c | 5198 | else |
c2783492 | 5199 | AR="$ac_cv_prog_AR" |
c906108c SS |
5200 | fi |
5201 | ||
c2783492 MF |
5202 | if test -n "$ac_tool_prefix"; then |
5203 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5204 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5206 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5207 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 5208 | $as_echo_n "(cached) " >&6 |
c906108c | 5209 | else |
c2783492 MF |
5210 | if test -n "$RANLIB"; then |
5211 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 5212 | else |
b7026657 AC |
5213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5214 | for as_dir in $PATH | |
5215 | do | |
5216 | IFS=$as_save_IFS | |
5217 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5218 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5220 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5222 | break 2 |
5223 | fi | |
5224 | done | |
81ecdfbb RW |
5225 | done |
5226 | IFS=$as_save_IFS | |
b7026657 | 5227 | |
c906108c SS |
5228 | fi |
5229 | fi | |
c2783492 MF |
5230 | RANLIB=$ac_cv_prog_RANLIB |
5231 | if test -n "$RANLIB"; then | |
5232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5233 | $as_echo "$RANLIB" >&6; } | |
c906108c | 5234 | else |
81ecdfbb RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5236 | $as_echo "no" >&6; } | |
c906108c SS |
5237 | fi |
5238 | ||
81ecdfbb | 5239 | |
b7026657 | 5240 | fi |
c2783492 MF |
5241 | if test -z "$ac_cv_prog_RANLIB"; then |
5242 | ac_ct_RANLIB=$RANLIB | |
5243 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5244 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5246 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5247 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 5248 | $as_echo_n "(cached) " >&6 |
c906108c | 5249 | else |
c2783492 MF |
5250 | if test -n "$ac_ct_RANLIB"; then |
5251 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b7026657 AC |
5252 | else |
5253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5254 | for as_dir in $PATH | |
5255 | do | |
5256 | IFS=$as_save_IFS | |
5257 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5258 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5260 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5262 | break 2 |
5263 | fi | |
5264 | done | |
81ecdfbb RW |
5265 | done |
5266 | IFS=$as_save_IFS | |
b7026657 | 5267 | |
c906108c | 5268 | fi |
b7026657 | 5269 | fi |
c2783492 MF |
5270 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5271 | if test -n "$ac_ct_RANLIB"; then | |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5273 | $as_echo "$ac_ct_RANLIB" >&6; } | |
c906108c | 5274 | else |
81ecdfbb RW |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5276 | $as_echo "no" >&6; } | |
c906108c | 5277 | fi |
b7026657 | 5278 | |
c2783492 MF |
5279 | if test "x$ac_ct_RANLIB" = x; then |
5280 | RANLIB=":" | |
81ecdfbb RW |
5281 | else |
5282 | case $cross_compiling:$ac_tool_warned in | |
5283 | yes:) | |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5285 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5286 | ac_tool_warned=yes ;; | |
5287 | esac | |
c2783492 | 5288 | RANLIB=$ac_ct_RANLIB |
81ecdfbb | 5289 | fi |
c2783492 MF |
5290 | else |
5291 | RANLIB="$ac_cv_prog_RANLIB" | |
5292 | fi | |
5293 | ||
5294 | ||
d57b6533 MF |
5295 | |
5296 | ||
5297 | ||
5298 | ||
5299 | ||
5300 | ||
5301 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5302 | if test -n "$ac_tool_prefix"; then | |
5303 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5304 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5306 | $as_echo_n "checking for $ac_word... " >&6; } | |
5307 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5308 | $as_echo_n "(cached) " >&6 | |
5309 | else | |
5310 | case $PKG_CONFIG in | |
5311 | [\\/]* | ?:[\\/]*) | |
5312 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5313 | ;; | |
5314 | *) | |
5315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5316 | for as_dir in $PATH | |
5317 | do | |
5318 | IFS=$as_save_IFS | |
5319 | test -z "$as_dir" && as_dir=. | |
5320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5322 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5324 | break 2 | |
5325 | fi | |
5326 | done | |
5327 | done | |
5328 | IFS=$as_save_IFS | |
5329 | ||
5330 | ;; | |
5331 | esac | |
5332 | fi | |
5333 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5334 | if test -n "$PKG_CONFIG"; then | |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5336 | $as_echo "$PKG_CONFIG" >&6; } | |
5337 | else | |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5339 | $as_echo "no" >&6; } | |
5340 | fi | |
5341 | ||
5342 | ||
5343 | fi | |
5344 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5345 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5346 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5347 | set dummy pkg-config; ac_word=$2 | |
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5349 | $as_echo_n "checking for $ac_word... " >&6; } | |
5350 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5351 | $as_echo_n "(cached) " >&6 | |
5352 | else | |
5353 | case $ac_pt_PKG_CONFIG in | |
5354 | [\\/]* | ?:[\\/]*) | |
5355 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5356 | ;; | |
5357 | *) | |
5358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5359 | for as_dir in $PATH | |
5360 | do | |
5361 | IFS=$as_save_IFS | |
5362 | test -z "$as_dir" && as_dir=. | |
5363 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5365 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5367 | break 2 | |
5368 | fi | |
5369 | done | |
5370 | done | |
5371 | IFS=$as_save_IFS | |
5372 | ||
5373 | ;; | |
5374 | esac | |
5375 | fi | |
5376 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5377 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5379 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5380 | else | |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5382 | $as_echo "no" >&6; } | |
5383 | fi | |
5384 | ||
5385 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
5386 | PKG_CONFIG="" | |
5387 | else | |
5388 | case $cross_compiling:$ac_tool_warned in | |
5389 | yes:) | |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5391 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5392 | ac_tool_warned=yes ;; | |
5393 | esac | |
5394 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5395 | fi | |
5396 | else | |
5397 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5398 | fi | |
5399 | ||
5400 | fi | |
5401 | if test -n "$PKG_CONFIG"; then | |
5402 | _pkg_min_version=0.9.0 | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5404 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5405 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5407 | $as_echo "yes" >&6; } | |
5408 | else | |
5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5410 | $as_echo "no" >&6; } | |
5411 | PKG_CONFIG="" | |
5412 | fi | |
5413 | fi | |
5414 | ||
c2783492 MF |
5415 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |
5416 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
5417 | # is C99. So handle it ourselves. | |
5418 | : | |
5419 | C_DIALECT= | |
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
5421 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5423 | /* end confdefs.h. */ | |
5424 | ||
5425 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5426 | # error "C11 support not found" | |
5427 | #endif | |
5428 | ||
5429 | _ACEOF | |
5430 | if ac_fn_c_try_compile "$LINENO"; then : | |
5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5432 | $as_echo "yes" >&6; } | |
5433 | else | |
5434 | ||
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5436 | $as_echo "no" >&6; } | |
5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
5438 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
5439 | ac_save_CC="$CC" | |
5440 | CC="$CC -std=c11" | |
5441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5442 | /* end confdefs.h. */ | |
5443 | ||
5444 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5445 | # error "C11 support not found" | |
5446 | #endif | |
5447 | ||
5448 | _ACEOF | |
5449 | if ac_fn_c_try_compile "$LINENO"; then : | |
5450 | ||
5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5452 | $as_echo "yes" >&6; } | |
5453 | CC="$ac_save_CC" | |
5454 | C_DIALECT="-std=c11" | |
5455 | ||
5456 | else | |
5457 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
5458 | fi | |
5459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5460 | fi | |
5461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5462 | ||
5463 | ||
5464 | ||
5465 | ||
c906108c | 5466 | |
b15c5d7a MF |
5467 | for ac_header in $ac_header_list |
5468 | do : | |
5469 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5470 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5471 | " | |
5472 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5473 | cat >>confdefs.h <<_ACEOF | |
5474 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5475 | _ACEOF | |
5476 | ||
b7026657 AC |
5477 | fi |
5478 | ||
b15c5d7a | 5479 | done |
b7026657 | 5480 | |
b7026657 | 5481 | |
c2783492 | 5482 | |
c2783492 | 5483 | |
c2783492 | 5484 | |
c2783492 | 5485 | |
c2783492 | 5486 | |
b15c5d7a MF |
5487 | |
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
a48ff3ef MF |
5509 | |
5510 | ||
5511 | ||
5512 | ||
5513 | ||
5514 | ||
5515 | ||
5516 | ||
5517 | ||
5518 | ||
5519 | ||
5520 | ||
b15c5d7a MF |
5521 | |
5522 | ||
5523 | ||
5524 | ||
b15c5d7a MF |
5525 | |
5526 | ||
5527 | ||
5528 | for ac_func in $ac_func_list | |
5529 | do : | |
5530 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5531 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5532 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5533 | cat >>confdefs.h <<_ACEOF | |
5534 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5535 | _ACEOF | |
5536 | ||
5537 | fi | |
5538 | done | |
5539 | ||
5540 | ||
5541 | ||
5542 | ||
5543 | ||
5544 | ||
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | ||
5557 | ||
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | ||
5569 | ||
5570 | ||
5571 | ||
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | ||
5577 | ||
5578 | ||
5579 | ||
5580 | ||
5581 | ||
5582 | ||
5583 | ||
5584 | ||
5585 | ||
5586 | ||
5587 | ||
5588 | ||
5589 | ||
5590 | ||
5591 | ||
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | ||
a48ff3ef MF |
5598 | |
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
5605 | ||
5606 | ||
5607 | ||
5608 | ||
5609 | ||
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | ||
5623 | ||
5624 | ||
5625 | ||
5626 | ||
5627 | ||
5628 | ||
5629 | ||
5630 | ||
5631 | ||
5632 | ||
5633 | ||
5634 | ||
5635 | ||
5636 | ||
5637 | ||
5638 | ||
5639 | ||
5640 | ||
5641 | ||
5642 | ||
5643 | ||
5644 | ||
5645 | ||
5646 | ||
5647 | ||
5648 | ||
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | ||
5654 | ||
5655 | ||
5656 | ||
95955095 MF |
5657 | |
5658 | ||
5659 | ||
5660 | ||
a48ff3ef MF |
5661 | |
5662 | ||
5663 | ||
5664 | ||
5665 | ||
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5667 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5668 | if ${ac_cv_struct_tm+:} false; then : | |
5669 | $as_echo_n "(cached) " >&6 | |
5670 | else | |
5671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5672 | /* end confdefs.h. */ | |
5673 | #include <sys/types.h> | |
5674 | #include <time.h> | |
5675 | ||
5676 | int | |
5677 | main () | |
5678 | { | |
5679 | struct tm tm; | |
5680 | int *p = &tm.tm_sec; | |
5681 | return !p; | |
5682 | ; | |
5683 | return 0; | |
5684 | } | |
5685 | _ACEOF | |
5686 | if ac_fn_c_try_compile "$LINENO"; then : | |
5687 | ac_cv_struct_tm=time.h | |
5688 | else | |
5689 | ac_cv_struct_tm=sys/time.h | |
5690 | fi | |
5691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5692 | fi | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5694 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5695 | if test $ac_cv_struct_tm = sys/time.h; then | |
5696 | ||
5697 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
5698 | ||
5699 | fi | |
5700 | ||
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
5702 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5703 | if ${ac_cv_type_uid_t+:} false; then : | |
5704 | $as_echo_n "(cached) " >&6 | |
5705 | else | |
5706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5707 | /* end confdefs.h. */ | |
5708 | #include <sys/types.h> | |
5709 | ||
5710 | _ACEOF | |
5711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5712 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5713 | ac_cv_type_uid_t=yes | |
5714 | else | |
5715 | ac_cv_type_uid_t=no | |
5716 | fi | |
5717 | rm -f conftest* | |
5718 | ||
5719 | fi | |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
5721 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5722 | if test $ac_cv_type_uid_t = no; then | |
5723 | ||
5724 | $as_echo "#define uid_t int" >>confdefs.h | |
5725 | ||
5726 | ||
5727 | $as_echo "#define gid_t int" >>confdefs.h | |
5728 | ||
5729 | fi | |
5730 | ||
b5689863 MF |
5731 | case `pwd` in |
5732 | *\ * | *\ *) | |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5734 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5735 | esac | |
a48ff3ef | 5736 | |
a48ff3ef | 5737 | |
a48ff3ef | 5738 | |
b5689863 MF |
5739 | macro_version='2.2.7a' |
5740 | macro_revision='1.3134' | |
a48ff3ef | 5741 | |
a48ff3ef | 5742 | |
a48ff3ef | 5743 | |
a48ff3ef | 5744 | |
a48ff3ef | 5745 | |
a48ff3ef | 5746 | |
a48ff3ef | 5747 | |
a48ff3ef | 5748 | |
a48ff3ef | 5749 | |
a48ff3ef MF |
5750 | |
5751 | ||
5752 | ||
5753 | ||
b5689863 | 5754 | ltmain="$ac_aux_dir/ltmain.sh" |
a48ff3ef | 5755 | |
b5689863 MF |
5756 | # Backslashify metacharacters that are still active within |
5757 | # double-quoted strings. | |
5758 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
a48ff3ef | 5759 | |
b5689863 MF |
5760 | # Same as above, but do not quote variable references. |
5761 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
a48ff3ef | 5762 | |
b5689863 MF |
5763 | # Sed substitution to delay expansion of an escaped shell variable in a |
5764 | # double_quote_subst'ed string. | |
5765 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5766 | ||
5767 | # Sed substitution to delay expansion of an escaped single quote. | |
5768 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5769 | ||
5770 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5771 | no_glob_subst='s/\*/\\\*/g' | |
5772 | ||
5773 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5774 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5775 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
a48ff3ef | 5776 | |
b5689863 MF |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5778 | $as_echo_n "checking how to print strings... " >&6; } | |
5779 | # Test print first, because it will be a builtin if present. | |
5780 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5781 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5782 | ECHO='print -r --' | |
5783 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5784 | ECHO='printf %s\n' | |
5785 | else | |
5786 | # Use this function as a fallback that always works. | |
5787 | func_fallback_echo () | |
5788 | { | |
5789 | eval 'cat <<_LTECHO_EOF | |
5790 | $1 | |
5791 | _LTECHO_EOF' | |
5792 | } | |
5793 | ECHO='func_fallback_echo' | |
a48ff3ef MF |
5794 | fi |
5795 | ||
b5689863 MF |
5796 | # func_echo_all arg... |
5797 | # Invoke $ECHO with all args, space-separated. | |
5798 | func_echo_all () | |
5799 | { | |
5800 | $ECHO "" | |
5801 | } | |
5802 | ||
5803 | case "$ECHO" in | |
5804 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5805 | $as_echo "printf" >&6; } ;; | |
5806 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5807 | $as_echo "print -r" >&6; } ;; | |
5808 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5809 | $as_echo "cat" >&6; } ;; | |
5810 | esac | |
5811 | ||
5812 | ||
a48ff3ef | 5813 | |
a48ff3ef | 5814 | |
a48ff3ef MF |
5815 | |
5816 | ||
a48ff3ef | 5817 | |
a48ff3ef | 5818 | |
a48ff3ef MF |
5819 | |
5820 | ||
a48ff3ef | 5821 | |
a48ff3ef MF |
5822 | |
5823 | ||
a48ff3ef | 5824 | |
b5689863 MF |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5826 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5827 | if ${ac_cv_path_SED+:} false; then : | |
5828 | $as_echo_n "(cached) " >&6 | |
5829 | else | |
5830 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5831 | for ac_i in 1 2 3 4 5 6 7; do | |
5832 | ac_script="$ac_script$as_nl$ac_script" | |
5833 | done | |
5834 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5835 | { ac_script=; unset ac_script;} | |
5836 | if test -z "$SED"; then | |
5837 | ac_path_SED_found=false | |
5838 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5840 | for as_dir in $PATH | |
5841 | do | |
5842 | IFS=$as_save_IFS | |
5843 | test -z "$as_dir" && as_dir=. | |
5844 | for ac_prog in sed gsed; do | |
5845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5846 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5847 | as_fn_executable_p "$ac_path_SED" || continue | |
5848 | # Check for GNU ac_path_SED and select it if it is found. | |
5849 | # Check for GNU $ac_path_SED | |
5850 | case `"$ac_path_SED" --version 2>&1` in | |
5851 | *GNU*) | |
5852 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5853 | *) | |
5854 | ac_count=0 | |
5855 | $as_echo_n 0123456789 >"conftest.in" | |
5856 | while : | |
5857 | do | |
5858 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5859 | mv "conftest.tmp" "conftest.in" | |
5860 | cp "conftest.in" "conftest.nl" | |
5861 | $as_echo '' >> "conftest.nl" | |
5862 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5863 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5864 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5865 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5866 | # Best one so far, save it but keep looking for a better one | |
5867 | ac_cv_path_SED="$ac_path_SED" | |
5868 | ac_path_SED_max=$ac_count | |
5869 | fi | |
5870 | # 10*(2^10) chars as input seems more than enough | |
5871 | test $ac_count -gt 10 && break | |
5872 | done | |
5873 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5874 | esac | |
5875 | ||
5876 | $ac_path_SED_found && break 3 | |
5877 | done | |
5878 | done | |
5879 | done | |
5880 | IFS=$as_save_IFS | |
5881 | if test -z "$ac_cv_path_SED"; then | |
5882 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5883 | fi | |
5884 | else | |
5885 | ac_cv_path_SED=$SED | |
a48ff3ef MF |
5886 | fi |
5887 | ||
b5689863 MF |
5888 | fi |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5890 | $as_echo "$ac_cv_path_SED" >&6; } | |
5891 | SED="$ac_cv_path_SED" | |
5892 | rm -f conftest.sed | |
a48ff3ef | 5893 | |
b5689863 MF |
5894 | test -z "$SED" && SED=sed |
5895 | Xsed="$SED -e 1s/^X//" | |
a48ff3ef | 5896 | |
a48ff3ef | 5897 | |
a48ff3ef MF |
5898 | |
5899 | ||
a48ff3ef | 5900 | |
a48ff3ef | 5901 | |
a48ff3ef | 5902 | |
a48ff3ef | 5903 | |
a48ff3ef | 5904 | |
b5689863 MF |
5905 | |
5906 | ||
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5908 | $as_echo_n "checking for fgrep... " >&6; } | |
5909 | if ${ac_cv_path_FGREP+:} false; then : | |
a48ff3ef MF |
5910 | $as_echo_n "(cached) " >&6 |
5911 | else | |
b5689863 MF |
5912 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5913 | then ac_cv_path_FGREP="$GREP -F" | |
5914 | else | |
5915 | if test -z "$FGREP"; then | |
5916 | ac_path_FGREP_found=false | |
5917 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5919 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5920 | do | |
5921 | IFS=$as_save_IFS | |
5922 | test -z "$as_dir" && as_dir=. | |
5923 | for ac_prog in fgrep; do | |
5924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5925 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5926 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5927 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5928 | # Check for GNU $ac_path_FGREP | |
5929 | case `"$ac_path_FGREP" --version 2>&1` in | |
5930 | *GNU*) | |
5931 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5932 | *) | |
5933 | ac_count=0 | |
5934 | $as_echo_n 0123456789 >"conftest.in" | |
5935 | while : | |
5936 | do | |
5937 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5938 | mv "conftest.tmp" "conftest.in" | |
5939 | cp "conftest.in" "conftest.nl" | |
5940 | $as_echo 'FGREP' >> "conftest.nl" | |
5941 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5942 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5943 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5944 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5945 | # Best one so far, save it but keep looking for a better one | |
5946 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5947 | ac_path_FGREP_max=$ac_count | |
5948 | fi | |
5949 | # 10*(2^10) chars as input seems more than enough | |
5950 | test $ac_count -gt 10 && break | |
5951 | done | |
5952 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5953 | esac | |
5954 | ||
5955 | $ac_path_FGREP_found && break 3 | |
5956 | done | |
5957 | done | |
5958 | done | |
5959 | IFS=$as_save_IFS | |
5960 | if test -z "$ac_cv_path_FGREP"; then | |
5961 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5962 | fi | |
5963 | else | |
5964 | ac_cv_path_FGREP=$FGREP | |
5965 | fi | |
5966 | ||
5967 | fi | |
5968 | fi | |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5970 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5971 | FGREP="$ac_cv_path_FGREP" | |
5972 | ||
5973 | ||
5974 | test -z "$GREP" && GREP=grep | |
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | ||
5982 | ||
5983 | ||
5984 | ||
5985 | ||
5986 | ||
5987 | ||
5988 | ||
5989 | ||
5990 | ||
5991 | ||
5992 | ||
5993 | ||
5994 | # Check whether --with-gnu-ld was given. | |
5995 | if test "${with_gnu_ld+set}" = set; then : | |
5996 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5997 | else | |
5998 | with_gnu_ld=no | |
5999 | fi | |
6000 | ||
6001 | ac_prog=ld | |
6002 | if test "$GCC" = yes; then | |
6003 | # Check if gcc -print-prog-name=ld gives a path. | |
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6005 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
6006 | case $host in | |
6007 | *-*-mingw*) | |
6008 | # gcc leaves a trailing carriage return which upsets mingw | |
6009 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6010 | *) | |
6011 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6012 | esac | |
6013 | case $ac_prog in | |
6014 | # Accept absolute paths. | |
6015 | [\\/]* | ?:[\\/]*) | |
6016 | re_direlt='/[^/][^/]*/\.\./' | |
6017 | # Canonicalize the pathname of ld | |
6018 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6019 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6020 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6021 | done | |
6022 | test -z "$LD" && LD="$ac_prog" | |
6023 | ;; | |
6024 | "") | |
6025 | # If it fails, then pretend we aren't using GCC. | |
6026 | ac_prog=ld | |
6027 | ;; | |
6028 | *) | |
6029 | # If it is relative, then search for the first ld in PATH. | |
6030 | with_gnu_ld=unknown | |
6031 | ;; | |
6032 | esac | |
6033 | elif test "$with_gnu_ld" = yes; then | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6035 | $as_echo_n "checking for GNU ld... " >&6; } | |
6036 | else | |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6038 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
6039 | fi | |
6040 | if ${lt_cv_path_LD+:} false; then : | |
6041 | $as_echo_n "(cached) " >&6 | |
6042 | else | |
6043 | if test -z "$LD"; then | |
6044 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6045 | for ac_dir in $PATH; do | |
6046 | IFS="$lt_save_ifs" | |
6047 | test -z "$ac_dir" && ac_dir=. | |
6048 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6049 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6050 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6051 | # but apparently some variants of GNU ld only accept -v. | |
6052 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6053 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6054 | *GNU* | *'with BFD'*) | |
6055 | test "$with_gnu_ld" != no && break | |
6056 | ;; | |
6057 | *) | |
6058 | test "$with_gnu_ld" != yes && break | |
6059 | ;; | |
6060 | esac | |
6061 | fi | |
6062 | done | |
6063 | IFS="$lt_save_ifs" | |
6064 | else | |
6065 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6066 | fi | |
6067 | fi | |
6068 | ||
6069 | LD="$lt_cv_path_LD" | |
6070 | if test -n "$LD"; then | |
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6072 | $as_echo "$LD" >&6; } | |
6073 | else | |
6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6075 | $as_echo "no" >&6; } | |
6076 | fi | |
6077 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6079 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6080 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
6081 | $as_echo_n "(cached) " >&6 | |
6082 | else | |
6083 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6084 | case `$LD -v 2>&1 </dev/null` in | |
6085 | *GNU* | *'with BFD'*) | |
6086 | lt_cv_prog_gnu_ld=yes | |
6087 | ;; | |
6088 | *) | |
6089 | lt_cv_prog_gnu_ld=no | |
6090 | ;; | |
6091 | esac | |
6092 | fi | |
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6094 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6095 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6096 | ||
6097 | ||
6098 | ||
6099 | ||
6100 | ||
6101 | ||
6102 | ||
6103 | ||
6104 | ||
6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6106 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6107 | if ${lt_cv_path_NM+:} false; then : | |
6108 | $as_echo_n "(cached) " >&6 | |
6109 | else | |
6110 | if test -n "$NM"; then | |
b9004024 NA |
6111 | # Let the user override the nm to test. |
6112 | lt_nm_to_check="$NM" | |
6113 | else | |
6114 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6115 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6116 | lt_nm_to_check="$lt_nm_to_check nm" | |
6117 | fi | |
6118 | fi | |
caf606c9 | 6119 | for lt_tmp_nm in "$lt_nm_to_check"; do |
b9004024 NA |
6120 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6121 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6122 | IFS="$lt_save_ifs" | |
6123 | test -z "$ac_dir" && ac_dir=. | |
caf606c9 NA |
6124 | # Strip out any user-provided options from the nm to test twice, |
6125 | # the first time to test to see if nm (rather than its options) has | |
6126 | # an explicit path, the second time to yield a file which can be | |
6127 | # nm'ed itself. | |
6128 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
6129 | case "$tmp_nm_path" in | |
b9004024 NA |
6130 | */*|*\\*) tmp_nm="$lt_tmp_nm";; |
6131 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
6132 | esac | |
caf606c9 NA |
6133 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" |
6134 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
b9004024 NA |
6135 | # Check to see if the nm accepts a BSD-compat flag. |
6136 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6137 | # nm: unknown option "B" ignored | |
caf606c9 | 6138 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
6139 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" |
6140 | break | |
6141 | ;; | |
6142 | *) | |
caf606c9 | 6143 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in |
b9004024 NA |
6144 | *$tmp_nm*) |
6145 | lt_cv_path_NM="$tmp_nm -p" | |
6146 | break | |
6147 | ;; | |
6148 | *) | |
6149 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6150 | continue # so that we can try to find one that supports BSD flags | |
6151 | ;; | |
6152 | esac | |
6153 | ;; | |
6154 | esac | |
6155 | fi | |
6156 | done | |
6157 | IFS="$lt_save_ifs" | |
6158 | done | |
6159 | : ${lt_cv_path_NM=no} | |
b5689863 MF |
6160 | fi |
6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6162 | $as_echo "$lt_cv_path_NM" >&6; } | |
6163 | if test "$lt_cv_path_NM" != "no"; then | |
6164 | NM="$lt_cv_path_NM" | |
6165 | else | |
6166 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6167 | if test -n "$DUMPBIN"; then : | |
6168 | # Let the user override the test. | |
6169 | else | |
6170 | if test -n "$ac_tool_prefix"; then | |
6171 | for ac_prog in dumpbin "link -dump" | |
6172 | do | |
6173 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6174 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6176 | $as_echo_n "checking for $ac_word... " >&6; } | |
6177 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
6178 | $as_echo_n "(cached) " >&6 | |
6179 | else | |
6180 | if test -n "$DUMPBIN"; then | |
6181 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6182 | else | |
6183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6184 | for as_dir in $PATH | |
6185 | do | |
6186 | IFS=$as_save_IFS | |
6187 | test -z "$as_dir" && as_dir=. | |
6188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6190 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6192 | break 2 | |
6193 | fi | |
6194 | done | |
6195 | done | |
6196 | IFS=$as_save_IFS | |
6197 | ||
6198 | fi | |
6199 | fi | |
6200 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6201 | if test -n "$DUMPBIN"; then | |
6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6203 | $as_echo "$DUMPBIN" >&6; } | |
6204 | else | |
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6206 | $as_echo "no" >&6; } | |
6207 | fi | |
6208 | ||
6209 | ||
6210 | test -n "$DUMPBIN" && break | |
6211 | done | |
6212 | fi | |
6213 | if test -z "$DUMPBIN"; then | |
6214 | ac_ct_DUMPBIN=$DUMPBIN | |
6215 | for ac_prog in dumpbin "link -dump" | |
6216 | do | |
6217 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6218 | set dummy $ac_prog; ac_word=$2 | |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6220 | $as_echo_n "checking for $ac_word... " >&6; } | |
6221 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6222 | $as_echo_n "(cached) " >&6 | |
6223 | else | |
6224 | if test -n "$ac_ct_DUMPBIN"; then | |
6225 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6226 | else | |
6227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6228 | for as_dir in $PATH | |
6229 | do | |
6230 | IFS=$as_save_IFS | |
6231 | test -z "$as_dir" && as_dir=. | |
6232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6233 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6234 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6236 | break 2 | |
6237 | fi | |
6238 | done | |
6239 | done | |
6240 | IFS=$as_save_IFS | |
6241 | ||
6242 | fi | |
6243 | fi | |
6244 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6245 | if test -n "$ac_ct_DUMPBIN"; then | |
6246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6247 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6248 | else | |
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6250 | $as_echo "no" >&6; } | |
6251 | fi | |
6252 | ||
6253 | ||
6254 | test -n "$ac_ct_DUMPBIN" && break | |
6255 | done | |
6256 | ||
6257 | if test "x$ac_ct_DUMPBIN" = x; then | |
6258 | DUMPBIN=":" | |
6259 | else | |
6260 | case $cross_compiling:$ac_tool_warned in | |
6261 | yes:) | |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6263 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6264 | ac_tool_warned=yes ;; | |
6265 | esac | |
6266 | DUMPBIN=$ac_ct_DUMPBIN | |
6267 | fi | |
6268 | fi | |
6269 | ||
6270 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6271 | *COFF*) | |
6272 | DUMPBIN="$DUMPBIN -symbols" | |
6273 | ;; | |
6274 | *) | |
6275 | DUMPBIN=: | |
6276 | ;; | |
6277 | esac | |
6278 | fi | |
6279 | ||
6280 | if test "$DUMPBIN" != ":"; then | |
6281 | NM="$DUMPBIN" | |
6282 | fi | |
6283 | fi | |
6284 | test -z "$NM" && NM=nm | |
6285 | ||
6286 | ||
6287 | ||
6288 | ||
6289 | ||
6290 | ||
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6292 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6293 | if ${lt_cv_nm_interface+:} false; then : | |
6294 | $as_echo_n "(cached) " >&6 | |
6295 | else | |
6296 | lt_cv_nm_interface="BSD nm" | |
6297 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6298 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6299 | (eval "$ac_compile" 2>conftest.err) | |
6300 | cat conftest.err >&5 | |
6301 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6302 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6303 | cat conftest.err >&5 | |
6304 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6305 | cat conftest.out >&5 | |
6306 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6307 | lt_cv_nm_interface="MS dumpbin" | |
6308 | fi | |
6309 | rm -f conftest* | |
6310 | fi | |
6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6312 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6313 | ||
6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6315 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6316 | LN_S=$as_ln_s | |
6317 | if test "$LN_S" = "ln -s"; then | |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6319 | $as_echo "yes" >&6; } | |
6320 | else | |
6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6322 | $as_echo "no, using $LN_S" >&6; } | |
6323 | fi | |
6324 | ||
6325 | # find the maximum length of command line arguments | |
6326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6327 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6328 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6329 | $as_echo_n "(cached) " >&6 | |
6330 | else | |
6331 | i=0 | |
6332 | teststring="ABCD" | |
6333 | ||
6334 | case $build_os in | |
6335 | msdosdjgpp*) | |
6336 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6337 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6338 | # during glob expansion). Even if it were fixed, the result of this | |
6339 | # check would be larger than it should be. | |
6340 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6341 | ;; | |
6342 | ||
6343 | gnu*) | |
6344 | # Under GNU Hurd, this test is not required because there is | |
6345 | # no limit to the length of command line arguments. | |
6346 | # Libtool will interpret -1 as no limit whatsoever | |
6347 | lt_cv_sys_max_cmd_len=-1; | |
6348 | ;; | |
6349 | ||
6350 | cygwin* | mingw* | cegcc*) | |
6351 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6352 | # about 5 minutes as the teststring grows exponentially. | |
6353 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6354 | # you end up with a "frozen" computer, even though with patience | |
6355 | # the test eventually succeeds (with a max line length of 256k). | |
6356 | # Instead, let's just punt: use the minimum linelength reported by | |
6357 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6358 | lt_cv_sys_max_cmd_len=8192; | |
6359 | ;; | |
6360 | ||
6361 | mint*) | |
6362 | # On MiNT this can take a long time and run out of memory. | |
6363 | lt_cv_sys_max_cmd_len=8192; | |
6364 | ;; | |
6365 | ||
6366 | amigaos*) | |
6367 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6368 | # So we just punt and use a minimum line length of 8192. | |
6369 | lt_cv_sys_max_cmd_len=8192; | |
6370 | ;; | |
6371 | ||
6372 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6373 | # This has been around since 386BSD, at least. Likely further. | |
6374 | if test -x /sbin/sysctl; then | |
6375 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6376 | elif test -x /usr/sbin/sysctl; then | |
6377 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6378 | else | |
6379 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6380 | fi | |
6381 | # And add a safety zone | |
6382 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6383 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6384 | ;; | |
6385 | ||
6386 | interix*) | |
6387 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6388 | lt_cv_sys_max_cmd_len=196608 | |
6389 | ;; | |
6390 | ||
6391 | osf*) | |
6392 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6393 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6394 | # nice to cause kernel panics so lets avoid the loop below. | |
6395 | # First set a reasonable default. | |
6396 | lt_cv_sys_max_cmd_len=16384 | |
6397 | # | |
6398 | if test -x /sbin/sysconfig; then | |
6399 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6400 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6401 | esac | |
6402 | fi | |
6403 | ;; | |
6404 | sco3.2v5*) | |
6405 | lt_cv_sys_max_cmd_len=102400 | |
6406 | ;; | |
6407 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6408 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6409 | if test -n "$kargmax"; then | |
6410 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6411 | else | |
6412 | lt_cv_sys_max_cmd_len=32768 | |
6413 | fi | |
6414 | ;; | |
6415 | *) | |
6416 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6417 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6418 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6419 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6420 | else | |
6421 | # Make teststring a little bigger before we do anything with it. | |
6422 | # a 1K string should be a reasonable start. | |
6423 | for i in 1 2 3 4 5 6 7 8 ; do | |
6424 | teststring=$teststring$teststring | |
6425 | done | |
6426 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6427 | # If test is not a shell built-in, we'll probably end up computing a | |
6428 | # maximum length that is only half of the actual maximum length, but | |
6429 | # we can't tell. | |
6430 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6431 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6432 | test $i != 17 # 1/2 MB should be enough | |
6433 | do | |
6434 | i=`expr $i + 1` | |
6435 | teststring=$teststring$teststring | |
6436 | done | |
6437 | # Only check the string length outside the loop. | |
6438 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6439 | teststring= | |
6440 | # Add a significant safety factor because C++ compilers can tack on | |
6441 | # massive amounts of additional arguments before passing them to the | |
6442 | # linker. It appears as though 1/2 is a usable value. | |
6443 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6444 | fi | |
6445 | ;; | |
6446 | esac | |
6447 | ||
6448 | fi | |
6449 | ||
6450 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6452 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6453 | else | |
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6455 | $as_echo "none" >&6; } | |
6456 | fi | |
6457 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | : ${CP="cp -f"} | |
6465 | : ${MV="mv -f"} | |
6466 | : ${RM="rm -f"} | |
6467 | ||
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6469 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6470 | # Try some XSI features | |
6471 | xsi_shell=no | |
6472 | ( _lt_dummy="a/b/c" | |
6473 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6474 | = c,a/b,, \ | |
6475 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6476 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6477 | && xsi_shell=yes | |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6479 | $as_echo "$xsi_shell" >&6; } | |
6480 | ||
6481 | ||
6482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6483 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6484 | lt_shell_append=no | |
6485 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6486 | >/dev/null 2>&1 \ | |
6487 | && lt_shell_append=yes | |
6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6489 | $as_echo "$lt_shell_append" >&6; } | |
6490 | ||
6491 | ||
6492 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6493 | lt_unset=unset | |
6494 | else | |
6495 | lt_unset=false | |
6496 | fi | |
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | # test EBCDIC or ASCII | |
6503 | case `echo X|tr X '\101'` in | |
6504 | A) # ASCII based system | |
6505 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6506 | lt_SP2NL='tr \040 \012' | |
6507 | lt_NL2SP='tr \015\012 \040\040' | |
6508 | ;; | |
6509 | *) # EBCDIC based system | |
6510 | lt_SP2NL='tr \100 \n' | |
6511 | lt_NL2SP='tr \r\n \100\100' | |
6512 | ;; | |
6513 | esac | |
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6524 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6525 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6526 | $as_echo_n "(cached) " >&6 | |
6527 | else | |
6528 | lt_cv_ld_reload_flag='-r' | |
6529 | fi | |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6531 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6532 | reload_flag=$lt_cv_ld_reload_flag | |
6533 | case $reload_flag in | |
6534 | "" | " "*) ;; | |
6535 | *) reload_flag=" $reload_flag" ;; | |
6536 | esac | |
6537 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6538 | case $host_os in | |
6539 | darwin*) | |
6540 | if test "$GCC" = yes; then | |
6541 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6542 | else | |
6543 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6544 | fi | |
6545 | ;; | |
6546 | esac | |
6547 | ||
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | if test -n "$ac_tool_prefix"; then | |
6557 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6558 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6560 | $as_echo_n "checking for $ac_word... " >&6; } | |
6561 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6562 | $as_echo_n "(cached) " >&6 | |
6563 | else | |
6564 | if test -n "$OBJDUMP"; then | |
6565 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6566 | else | |
6567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6568 | for as_dir in $PATH | |
6569 | do | |
6570 | IFS=$as_save_IFS | |
6571 | test -z "$as_dir" && as_dir=. | |
6572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6574 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6576 | break 2 | |
6577 | fi | |
6578 | done | |
6579 | done | |
6580 | IFS=$as_save_IFS | |
6581 | ||
6582 | fi | |
6583 | fi | |
6584 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6585 | if test -n "$OBJDUMP"; then | |
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6587 | $as_echo "$OBJDUMP" >&6; } | |
6588 | else | |
6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6590 | $as_echo "no" >&6; } | |
6591 | fi | |
6592 | ||
6593 | ||
6594 | fi | |
6595 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6596 | ac_ct_OBJDUMP=$OBJDUMP | |
6597 | # Extract the first word of "objdump", so it can be a program name with args. | |
6598 | set dummy objdump; ac_word=$2 | |
6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6600 | $as_echo_n "checking for $ac_word... " >&6; } | |
6601 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6602 | $as_echo_n "(cached) " >&6 | |
6603 | else | |
6604 | if test -n "$ac_ct_OBJDUMP"; then | |
6605 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6606 | else | |
6607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6608 | for as_dir in $PATH | |
6609 | do | |
6610 | IFS=$as_save_IFS | |
6611 | test -z "$as_dir" && as_dir=. | |
6612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6613 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6614 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6615 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6616 | break 2 | |
6617 | fi | |
6618 | done | |
6619 | done | |
6620 | IFS=$as_save_IFS | |
6621 | ||
6622 | fi | |
6623 | fi | |
6624 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6625 | if test -n "$ac_ct_OBJDUMP"; then | |
6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6627 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6628 | else | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6630 | $as_echo "no" >&6; } | |
6631 | fi | |
6632 | ||
6633 | if test "x$ac_ct_OBJDUMP" = x; then | |
6634 | OBJDUMP="false" | |
6635 | else | |
6636 | case $cross_compiling:$ac_tool_warned in | |
6637 | yes:) | |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6639 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6640 | ac_tool_warned=yes ;; | |
6641 | esac | |
6642 | OBJDUMP=$ac_ct_OBJDUMP | |
6643 | fi | |
6644 | else | |
6645 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6646 | fi | |
6647 | ||
6648 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6649 | ||
6650 | ||
6651 | ||
6652 | ||
6653 | ||
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6659 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6660 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6661 | $as_echo_n "(cached) " >&6 | |
6662 | else | |
6663 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6664 | lt_cv_file_magic_test_file= | |
6665 | lt_cv_deplibs_check_method='unknown' | |
6666 | # Need to set the preceding variable on all platforms that support | |
6667 | # interlibrary dependencies. | |
6668 | # 'none' -- dependencies not supported. | |
6669 | # `unknown' -- same as none, but documents that we really don't know. | |
6670 | # 'pass_all' -- all dependencies passed with no checks. | |
6671 | # 'test_compile' -- check by making test program. | |
6672 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6673 | # which responds to the $file_magic_cmd with a given extended regex. | |
6674 | # If you have `file' or equivalent on your system and you're not sure | |
6675 | # whether `pass_all' will *always* work, you probably want this one. | |
6676 | ||
6677 | case $host_os in | |
6678 | aix[4-9]*) | |
6679 | lt_cv_deplibs_check_method=pass_all | |
6680 | ;; | |
6681 | ||
6682 | beos*) | |
6683 | lt_cv_deplibs_check_method=pass_all | |
6684 | ;; | |
6685 | ||
6686 | bsdi[45]*) | |
6687 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6688 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6689 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6690 | ;; | |
6691 | ||
6692 | cygwin*) | |
6693 | # func_win32_libid is a shell function defined in ltmain.sh | |
6694 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6695 | lt_cv_file_magic_cmd='func_win32_libid' | |
6696 | ;; | |
6697 | ||
6698 | mingw* | pw32*) | |
6699 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6700 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6701 | # unless we find 'file', for example because we are cross-compiling. | |
6702 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6703 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6704 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6705 | lt_cv_file_magic_cmd='func_win32_libid' | |
6706 | else | |
6707 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6708 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6709 | fi | |
6710 | ;; | |
6711 | ||
6712 | cegcc*) | |
6713 | # use the weaker test based on 'objdump'. See mingw*. | |
6714 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6715 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6716 | ;; | |
6717 | ||
6718 | darwin* | rhapsody*) | |
6719 | lt_cv_deplibs_check_method=pass_all | |
6720 | ;; | |
6721 | ||
6722 | freebsd* | dragonfly*) | |
6723 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6724 | case $host_cpu in | |
6725 | i*86 ) | |
6726 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6727 | # Let's accept both of them until this is cleared up. | |
6728 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6729 | lt_cv_file_magic_cmd=/usr/bin/file | |
6730 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6731 | ;; | |
6732 | esac | |
6733 | else | |
6734 | lt_cv_deplibs_check_method=pass_all | |
6735 | fi | |
6736 | ;; | |
6737 | ||
6738 | gnu*) | |
6739 | lt_cv_deplibs_check_method=pass_all | |
6740 | ;; | |
6741 | ||
6742 | haiku*) | |
6743 | lt_cv_deplibs_check_method=pass_all | |
6744 | ;; | |
6745 | ||
6746 | hpux10.20* | hpux11*) | |
6747 | lt_cv_file_magic_cmd=/usr/bin/file | |
6748 | case $host_cpu in | |
6749 | ia64*) | |
6750 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6751 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6752 | ;; | |
6753 | hppa*64*) | |
6754 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
6755 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6756 | ;; | |
6757 | *) | |
6758 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6759 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6760 | ;; | |
6761 | esac | |
6762 | ;; | |
6763 | ||
6764 | interix[3-9]*) | |
6765 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6766 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6767 | ;; | |
6768 | ||
6769 | irix5* | irix6* | nonstopux*) | |
6770 | case $LD in | |
6771 | *-32|*"-32 ") libmagic=32-bit;; | |
6772 | *-n32|*"-n32 ") libmagic=N32;; | |
6773 | *-64|*"-64 ") libmagic=64-bit;; | |
6774 | *) libmagic=never-match;; | |
6775 | esac | |
6776 | lt_cv_deplibs_check_method=pass_all | |
6777 | ;; | |
6778 | ||
6779 | # This must be Linux ELF. | |
6a6859cb | 6780 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
b5689863 MF |
6781 | lt_cv_deplibs_check_method=pass_all |
6782 | ;; | |
6783 | ||
6784 | netbsd*) | |
6785 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6786 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6787 | else | |
6788 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6789 | fi | |
6790 | ;; | |
6791 | ||
6792 | newos6*) | |
6793 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6794 | lt_cv_file_magic_cmd=/usr/bin/file | |
6795 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6796 | ;; | |
6797 | ||
6798 | *nto* | *qnx*) | |
6799 | lt_cv_deplibs_check_method=pass_all | |
6800 | ;; | |
6801 | ||
6802 | openbsd*) | |
6803 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6804 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6805 | else | |
6806 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6807 | fi | |
6808 | ;; | |
6809 | ||
6810 | osf3* | osf4* | osf5*) | |
6811 | lt_cv_deplibs_check_method=pass_all | |
6812 | ;; | |
6813 | ||
6814 | rdos*) | |
6815 | lt_cv_deplibs_check_method=pass_all | |
6816 | ;; | |
6817 | ||
6818 | solaris*) | |
6819 | lt_cv_deplibs_check_method=pass_all | |
6820 | ;; | |
6821 | ||
6822 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6823 | lt_cv_deplibs_check_method=pass_all | |
6824 | ;; | |
6825 | ||
6826 | sysv4 | sysv4.3*) | |
6827 | case $host_vendor in | |
6828 | motorola) | |
6829 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
6830 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6831 | ;; | |
6832 | ncr) | |
6833 | lt_cv_deplibs_check_method=pass_all | |
6834 | ;; | |
6835 | sequent) | |
6836 | lt_cv_file_magic_cmd='/bin/file' | |
6837 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6838 | ;; | |
6839 | sni) | |
6840 | lt_cv_file_magic_cmd='/bin/file' | |
6841 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6842 | lt_cv_file_magic_test_file=/lib/libc.so | |
6843 | ;; | |
6844 | siemens) | |
6845 | lt_cv_deplibs_check_method=pass_all | |
6846 | ;; | |
6847 | pc) | |
6848 | lt_cv_deplibs_check_method=pass_all | |
6849 | ;; | |
6850 | esac | |
6851 | ;; | |
6852 | ||
6853 | tpf*) | |
6854 | lt_cv_deplibs_check_method=pass_all | |
6855 | ;; | |
6a6859cb AM |
6856 | vxworks*) |
6857 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
6858 | # as canadian for Windows hosts. | |
6859 | lt_cv_deplibs_check_method=pass_all | |
6860 | ;; | |
b5689863 MF |
6861 | esac |
6862 | ||
6863 | fi | |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6865 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6866 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6867 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6868 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6869 | ||
6870 | ||
6871 | ||
6872 | ||
6873 | ||
6874 | ||
6875 | ||
6876 | ||
6877 | ||
6878 | ||
6879 | ||
6880 | ||
6881 | plugin_option= | |
6882 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6883 | for plugin in $plugin_names; do | |
6884 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6885 | if test x$plugin_so = x$plugin; then | |
6886 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6887 | fi | |
6888 | if test x$plugin_so != x$plugin; then | |
6889 | plugin_option="--plugin $plugin_so" | |
6890 | break | |
6891 | fi | |
6892 | done | |
6893 | ||
6894 | if test -n "$ac_tool_prefix"; then | |
6895 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6896 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6898 | $as_echo_n "checking for $ac_word... " >&6; } | |
6899 | if ${ac_cv_prog_AR+:} false; then : | |
6900 | $as_echo_n "(cached) " >&6 | |
6901 | else | |
6902 | if test -n "$AR"; then | |
6903 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6904 | else | |
6905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6906 | for as_dir in $PATH | |
6907 | do | |
6908 | IFS=$as_save_IFS | |
6909 | test -z "$as_dir" && as_dir=. | |
6910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6911 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6912 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6914 | break 2 | |
6915 | fi | |
6916 | done | |
6917 | done | |
6918 | IFS=$as_save_IFS | |
6919 | ||
6920 | fi | |
6921 | fi | |
6922 | AR=$ac_cv_prog_AR | |
6923 | if test -n "$AR"; then | |
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6925 | $as_echo "$AR" >&6; } | |
6926 | else | |
6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6928 | $as_echo "no" >&6; } | |
6929 | fi | |
6930 | ||
6931 | ||
6932 | fi | |
6933 | if test -z "$ac_cv_prog_AR"; then | |
6934 | ac_ct_AR=$AR | |
6935 | # Extract the first word of "ar", so it can be a program name with args. | |
6936 | set dummy ar; ac_word=$2 | |
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6938 | $as_echo_n "checking for $ac_word... " >&6; } | |
6939 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6940 | $as_echo_n "(cached) " >&6 | |
6941 | else | |
6942 | if test -n "$ac_ct_AR"; then | |
6943 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6944 | else | |
6945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6946 | for as_dir in $PATH | |
6947 | do | |
6948 | IFS=$as_save_IFS | |
6949 | test -z "$as_dir" && as_dir=. | |
6950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6952 | ac_cv_prog_ac_ct_AR="ar" | |
6953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6954 | break 2 | |
6955 | fi | |
6956 | done | |
6957 | done | |
6958 | IFS=$as_save_IFS | |
6959 | ||
6960 | fi | |
6961 | fi | |
6962 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6963 | if test -n "$ac_ct_AR"; then | |
6964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6965 | $as_echo "$ac_ct_AR" >&6; } | |
6966 | else | |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6968 | $as_echo "no" >&6; } | |
6969 | fi | |
6970 | ||
6971 | if test "x$ac_ct_AR" = x; then | |
6972 | AR="false" | |
6973 | else | |
6974 | case $cross_compiling:$ac_tool_warned in | |
6975 | yes:) | |
6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6977 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6978 | ac_tool_warned=yes ;; | |
6979 | esac | |
6980 | AR=$ac_ct_AR | |
6981 | fi | |
6982 | else | |
6983 | AR="$ac_cv_prog_AR" | |
6984 | fi | |
6985 | ||
6986 | test -z "$AR" && AR=ar | |
6987 | if test -n "$plugin_option"; then | |
6988 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
6989 | touch conftest.c | |
6990 | $AR $plugin_option rc conftest.a conftest.c | |
6991 | if test "$?" != 0; then | |
6992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6993 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6994 | else | |
6995 | AR="$AR $plugin_option" | |
6996 | fi | |
6997 | rm -f conftest.* | |
6998 | fi | |
6999 | fi | |
7000 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
7001 | ||
7002 | ||
7003 | ||
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | ||
7009 | ||
7010 | ||
7011 | ||
7012 | if test -n "$ac_tool_prefix"; then | |
7013 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7014 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7016 | $as_echo_n "checking for $ac_word... " >&6; } | |
7017 | if ${ac_cv_prog_STRIP+:} false; then : | |
7018 | $as_echo_n "(cached) " >&6 | |
7019 | else | |
7020 | if test -n "$STRIP"; then | |
7021 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7022 | else | |
7023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7024 | for as_dir in $PATH | |
7025 | do | |
7026 | IFS=$as_save_IFS | |
7027 | test -z "$as_dir" && as_dir=. | |
7028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7029 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7030 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7032 | break 2 | |
7033 | fi | |
7034 | done | |
7035 | done | |
7036 | IFS=$as_save_IFS | |
7037 | ||
7038 | fi | |
7039 | fi | |
7040 | STRIP=$ac_cv_prog_STRIP | |
7041 | if test -n "$STRIP"; then | |
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7043 | $as_echo "$STRIP" >&6; } | |
7044 | else | |
7045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7046 | $as_echo "no" >&6; } | |
7047 | fi | |
7048 | ||
7049 | ||
7050 | fi | |
7051 | if test -z "$ac_cv_prog_STRIP"; then | |
7052 | ac_ct_STRIP=$STRIP | |
7053 | # Extract the first word of "strip", so it can be a program name with args. | |
7054 | set dummy strip; ac_word=$2 | |
7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7056 | $as_echo_n "checking for $ac_word... " >&6; } | |
7057 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
7058 | $as_echo_n "(cached) " >&6 | |
7059 | else | |
7060 | if test -n "$ac_ct_STRIP"; then | |
7061 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7062 | else | |
7063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7064 | for as_dir in $PATH | |
7065 | do | |
7066 | IFS=$as_save_IFS | |
7067 | test -z "$as_dir" && as_dir=. | |
7068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7070 | ac_cv_prog_ac_ct_STRIP="strip" | |
7071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7072 | break 2 | |
7073 | fi | |
7074 | done | |
7075 | done | |
7076 | IFS=$as_save_IFS | |
7077 | ||
7078 | fi | |
7079 | fi | |
7080 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7081 | if test -n "$ac_ct_STRIP"; then | |
7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7083 | $as_echo "$ac_ct_STRIP" >&6; } | |
7084 | else | |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7086 | $as_echo "no" >&6; } | |
7087 | fi | |
7088 | ||
7089 | if test "x$ac_ct_STRIP" = x; then | |
7090 | STRIP=":" | |
7091 | else | |
7092 | case $cross_compiling:$ac_tool_warned in | |
7093 | yes:) | |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7095 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7096 | ac_tool_warned=yes ;; | |
7097 | esac | |
7098 | STRIP=$ac_ct_STRIP | |
7099 | fi | |
7100 | else | |
7101 | STRIP="$ac_cv_prog_STRIP" | |
7102 | fi | |
7103 | ||
7104 | test -z "$STRIP" && STRIP=: | |
7105 | ||
7106 | ||
7107 | ||
7108 | ||
7109 | ||
7110 | ||
7111 | if test -n "$ac_tool_prefix"; then | |
7112 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7113 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7115 | $as_echo_n "checking for $ac_word... " >&6; } | |
7116 | if ${ac_cv_prog_RANLIB+:} false; then : | |
7117 | $as_echo_n "(cached) " >&6 | |
7118 | else | |
7119 | if test -n "$RANLIB"; then | |
7120 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7121 | else | |
7122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7123 | for as_dir in $PATH | |
7124 | do | |
7125 | IFS=$as_save_IFS | |
7126 | test -z "$as_dir" && as_dir=. | |
7127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7129 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7131 | break 2 | |
7132 | fi | |
7133 | done | |
7134 | done | |
7135 | IFS=$as_save_IFS | |
7136 | ||
7137 | fi | |
7138 | fi | |
7139 | RANLIB=$ac_cv_prog_RANLIB | |
7140 | if test -n "$RANLIB"; then | |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7142 | $as_echo "$RANLIB" >&6; } | |
7143 | else | |
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7145 | $as_echo "no" >&6; } | |
7146 | fi | |
7147 | ||
7148 | ||
7149 | fi | |
7150 | if test -z "$ac_cv_prog_RANLIB"; then | |
7151 | ac_ct_RANLIB=$RANLIB | |
7152 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7153 | set dummy ranlib; ac_word=$2 | |
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7155 | $as_echo_n "checking for $ac_word... " >&6; } | |
7156 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
7157 | $as_echo_n "(cached) " >&6 | |
7158 | else | |
7159 | if test -n "$ac_ct_RANLIB"; then | |
7160 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7161 | else | |
7162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7163 | for as_dir in $PATH | |
7164 | do | |
7165 | IFS=$as_save_IFS | |
7166 | test -z "$as_dir" && as_dir=. | |
7167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7168 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7169 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7171 | break 2 | |
7172 | fi | |
7173 | done | |
7174 | done | |
7175 | IFS=$as_save_IFS | |
7176 | ||
7177 | fi | |
7178 | fi | |
7179 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7180 | if test -n "$ac_ct_RANLIB"; then | |
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7182 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7183 | else | |
7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7185 | $as_echo "no" >&6; } | |
7186 | fi | |
7187 | ||
7188 | if test "x$ac_ct_RANLIB" = x; then | |
7189 | RANLIB=":" | |
7190 | else | |
7191 | case $cross_compiling:$ac_tool_warned in | |
7192 | yes:) | |
7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7194 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7195 | ac_tool_warned=yes ;; | |
7196 | esac | |
7197 | RANLIB=$ac_ct_RANLIB | |
7198 | fi | |
7199 | else | |
7200 | RANLIB="$ac_cv_prog_RANLIB" | |
7201 | fi | |
7202 | ||
7203 | test -z "$RANLIB" && RANLIB=: | |
7204 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then | |
7205 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
7206 | RANLIB="$RANLIB $plugin_option" | |
7207 | fi | |
7208 | fi | |
7209 | ||
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | # Determine commands to create old-style static archives. | |
7216 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7217 | old_postinstall_cmds='chmod 644 $oldlib' | |
7218 | old_postuninstall_cmds= | |
7219 | ||
7220 | if test -n "$RANLIB"; then | |
7221 | case $host_os in | |
7222 | openbsd*) | |
7223 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7224 | ;; | |
7225 | *) | |
7226 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7227 | ;; | |
7228 | esac | |
7229 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7230 | fi | |
7231 | ||
7232 | case $host_os in | |
7233 | darwin*) | |
7234 | lock_old_archive_extraction=yes ;; | |
7235 | *) | |
7236 | lock_old_archive_extraction=no ;; | |
7237 | esac | |
7238 | ||
7239 | ||
7240 | ||
7241 | ||
7242 | ||
7243 | ||
7244 | ||
7245 | ||
7246 | ||
7247 | ||
7248 | ||
7249 | ||
7250 | ||
7251 | ||
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | ||
7257 | ||
7258 | ||
7259 | for ac_prog in gawk mawk nawk awk | |
7260 | do | |
7261 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7262 | set dummy $ac_prog; ac_word=$2 | |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7264 | $as_echo_n "checking for $ac_word... " >&6; } | |
7265 | if ${ac_cv_prog_AWK+:} false; then : | |
7266 | $as_echo_n "(cached) " >&6 | |
7267 | else | |
7268 | if test -n "$AWK"; then | |
7269 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7270 | else | |
7271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7272 | for as_dir in $PATH | |
7273 | do | |
7274 | IFS=$as_save_IFS | |
7275 | test -z "$as_dir" && as_dir=. | |
7276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7277 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7278 | ac_cv_prog_AWK="$ac_prog" | |
7279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7280 | break 2 | |
7281 | fi | |
7282 | done | |
7283 | done | |
7284 | IFS=$as_save_IFS | |
7285 | ||
7286 | fi | |
7287 | fi | |
7288 | AWK=$ac_cv_prog_AWK | |
7289 | if test -n "$AWK"; then | |
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
7291 | $as_echo "$AWK" >&6; } | |
7292 | else | |
7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7294 | $as_echo "no" >&6; } | |
7295 | fi | |
7296 | ||
7297 | ||
7298 | test -n "$AWK" && break | |
7299 | done | |
7300 | ||
7301 | ||
7302 | ||
7303 | ||
7304 | ||
7305 | ||
7306 | ||
7307 | ||
7308 | ||
7309 | ||
7310 | ||
7311 | ||
7312 | ||
7313 | ||
7314 | ||
7315 | ||
7316 | ||
7317 | ||
7318 | ||
7319 | # If no C compiler was specified, use CC. | |
7320 | LTCC=${LTCC-"$CC"} | |
7321 | ||
7322 | # If no C compiler flags were specified, use CFLAGS. | |
7323 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7324 | ||
7325 | # Allow CC to be a program name with arguments. | |
7326 | compiler=$CC | |
7327 | ||
7328 | ||
7329 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7331 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7332 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7333 | $as_echo_n "(cached) " >&6 | |
7334 | else | |
7335 | ||
7336 | # These are sane defaults that work on at least a few old systems. | |
7337 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7338 | ||
7339 | # Character class describing NM global symbol codes. | |
7340 | symcode='[BCDEGRST]' | |
7341 | ||
7342 | # Regexp to match symbols that can be accessed directly from C. | |
7343 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7344 | ||
7345 | # Define system-specific variables. | |
7346 | case $host_os in | |
7347 | aix*) | |
7348 | symcode='[BCDT]' | |
7349 | ;; | |
7350 | cygwin* | mingw* | pw32* | cegcc*) | |
7351 | symcode='[ABCDGISTW]' | |
7352 | ;; | |
7353 | hpux*) | |
7354 | if test "$host_cpu" = ia64; then | |
7355 | symcode='[ABCDEGRST]' | |
7356 | fi | |
7357 | ;; | |
7358 | irix* | nonstopux*) | |
7359 | symcode='[BCDEGRST]' | |
7360 | ;; | |
7361 | osf*) | |
7362 | symcode='[BCDEGQRST]' | |
7363 | ;; | |
7364 | solaris*) | |
b9004024 | 7365 | symcode='[BCDRT]' |
b5689863 MF |
7366 | ;; |
7367 | sco3.2v5*) | |
7368 | symcode='[DT]' | |
7369 | ;; | |
7370 | sysv4.2uw2*) | |
7371 | symcode='[DT]' | |
7372 | ;; | |
7373 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7374 | symcode='[ABDT]' | |
7375 | ;; | |
7376 | sysv4) | |
7377 | symcode='[DFNSTU]' | |
7378 | ;; | |
7379 | esac | |
7380 | ||
7381 | # If we're using GNU nm, then use its standard symbol codes. | |
7382 | case `$NM -V 2>&1` in | |
7383 | *GNU* | *'with BFD'*) | |
7384 | symcode='[ABCDGIRSTW]' ;; | |
7385 | esac | |
7386 | ||
7387 | # Transform an extracted symbol line into a proper C declaration. | |
7388 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7389 | # so use this general approach. | |
7390 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7391 | ||
7392 | # Transform an extracted symbol line into symbol name and symbol address | |
7393 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7394 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
7395 | ||
7396 | # Handle CRLF in mingw tool chain | |
7397 | opt_cr= | |
7398 | case $build_os in | |
7399 | mingw*) | |
7400 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7401 | ;; | |
7402 | esac | |
7403 | ||
7404 | # Try without a prefix underscore, then with it. | |
7405 | for ac_symprfx in "" "_"; do | |
7406 | ||
7407 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7408 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7409 | ||
7410 | # Write the raw and C identifiers. | |
7411 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7412 | # Fake it for dumpbin and say T for any non-static function | |
7413 | # and D for any global variable. | |
7414 | # Also find C++ and __fastcall symbols from MSVC++, | |
7415 | # which start with @ or ?. | |
7416 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7417 | " {last_section=section; section=\$ 3};"\ | |
7418 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7419 | " \$ 0!~/External *\|/{next};"\ | |
7420 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7421 | " {if(hide[section]) next};"\ | |
7422 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7423 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7424 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7425 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7426 | " ' prfx=^$ac_symprfx" | |
7427 | else | |
7428 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7429 | fi | |
7430 | ||
7431 | # Check to see that the pipe works correctly. | |
7432 | pipe_works=no | |
7433 | ||
7434 | rm -f conftest* | |
7435 | cat > conftest.$ac_ext <<_LT_EOF | |
7436 | #ifdef __cplusplus | |
7437 | extern "C" { | |
7438 | #endif | |
7439 | char nm_test_var; | |
7440 | void nm_test_func(void); | |
7441 | void nm_test_func(void){} | |
7442 | #ifdef __cplusplus | |
7443 | } | |
7444 | #endif | |
7445 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7446 | _LT_EOF | |
7447 | ||
7448 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7449 | (eval $ac_compile) 2>&5 | |
7450 | ac_status=$? | |
7451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7452 | test $ac_status = 0; }; then | |
7453 | # Now try to grab the symbols. | |
7454 | nlist=conftest.nm | |
7455 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7456 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7457 | ac_status=$? | |
7458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7459 | test $ac_status = 0; } && test -s "$nlist"; then | |
7460 | # Try sorting and uniquifying the output. | |
7461 | if sort "$nlist" | uniq > "$nlist"T; then | |
7462 | mv -f "$nlist"T "$nlist" | |
7463 | else | |
7464 | rm -f "$nlist"T | |
7465 | fi | |
7466 | ||
7467 | # Make sure that we snagged all the symbols we need. | |
7468 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7469 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7470 | cat <<_LT_EOF > conftest.$ac_ext | |
7471 | #ifdef __cplusplus | |
7472 | extern "C" { | |
7473 | #endif | |
7474 | ||
7475 | _LT_EOF | |
7476 | # Now generate the symbol file. | |
7477 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7478 | ||
7479 | cat <<_LT_EOF >> conftest.$ac_ext | |
7480 | ||
7481 | /* The mapping between symbol names and symbols. */ | |
7482 | const struct { | |
7483 | const char *name; | |
7484 | void *address; | |
7485 | } | |
7486 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7487 | { | |
7488 | { "@PROGRAM@", (void *) 0 }, | |
7489 | _LT_EOF | |
7490 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7491 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7492 | {0, (void *) 0} | |
7493 | }; | |
7494 | ||
7495 | /* This works around a problem in FreeBSD linker */ | |
7496 | #ifdef FREEBSD_WORKAROUND | |
7497 | static const void *lt_preloaded_setup() { | |
7498 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7499 | } | |
7500 | #endif | |
7501 | ||
7502 | #ifdef __cplusplus | |
7503 | } | |
7504 | #endif | |
7505 | _LT_EOF | |
7506 | # Now try linking the two files. | |
7507 | mv conftest.$ac_objext conftstm.$ac_objext | |
7508 | lt_save_LIBS="$LIBS" | |
7509 | lt_save_CFLAGS="$CFLAGS" | |
7510 | LIBS="conftstm.$ac_objext" | |
7511 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7512 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7513 | (eval $ac_link) 2>&5 | |
7514 | ac_status=$? | |
7515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7516 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7517 | pipe_works=yes | |
7518 | fi | |
7519 | LIBS="$lt_save_LIBS" | |
7520 | CFLAGS="$lt_save_CFLAGS" | |
7521 | else | |
7522 | echo "cannot find nm_test_func in $nlist" >&5 | |
7523 | fi | |
7524 | else | |
7525 | echo "cannot find nm_test_var in $nlist" >&5 | |
7526 | fi | |
7527 | else | |
7528 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7529 | fi | |
7530 | else | |
7531 | echo "$progname: failed program was:" >&5 | |
7532 | cat conftest.$ac_ext >&5 | |
7533 | fi | |
7534 | rm -rf conftest* conftst* | |
7535 | ||
7536 | # Do not use the global_symbol_pipe unless it works. | |
7537 | if test "$pipe_works" = yes; then | |
7538 | break | |
7539 | else | |
7540 | lt_cv_sys_global_symbol_pipe= | |
7541 | fi | |
7542 | done | |
7543 | ||
7544 | fi | |
7545 | ||
7546 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7547 | lt_cv_sys_global_symbol_to_cdecl= | |
7548 | fi | |
7549 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7551 | $as_echo "failed" >&6; } | |
7552 | else | |
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7554 | $as_echo "ok" >&6; } | |
7555 | fi | |
7556 | ||
7557 | ||
7558 | ||
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | ||
7567 | ||
7568 | ||
7569 | ||
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | # Check whether --enable-libtool-lock was given. | |
7579 | if test "${enable_libtool_lock+set}" = set; then : | |
7580 | enableval=$enable_libtool_lock; | |
7581 | fi | |
7582 | ||
7583 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7584 | ||
7585 | # Some flags need to be propagated to the compiler or linker for good | |
7586 | # libtool support. | |
7587 | case $host in | |
7588 | ia64-*-hpux*) | |
7589 | # Find out which ABI we are using. | |
7590 | echo 'int i;' > conftest.$ac_ext | |
7591 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7592 | (eval $ac_compile) 2>&5 | |
7593 | ac_status=$? | |
7594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7595 | test $ac_status = 0; }; then | |
7596 | case `/usr/bin/file conftest.$ac_objext` in | |
7597 | *ELF-32*) | |
7598 | HPUX_IA64_MODE="32" | |
7599 | ;; | |
7600 | *ELF-64*) | |
7601 | HPUX_IA64_MODE="64" | |
7602 | ;; | |
7603 | esac | |
7604 | fi | |
7605 | rm -rf conftest* | |
7606 | ;; | |
7607 | *-*-irix6*) | |
7608 | # Find out which ABI we are using. | |
7609 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7610 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7611 | (eval $ac_compile) 2>&5 | |
7612 | ac_status=$? | |
7613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7614 | test $ac_status = 0; }; then | |
7615 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7616 | case `/usr/bin/file conftest.$ac_objext` in | |
7617 | *32-bit*) | |
7618 | LD="${LD-ld} -melf32bsmip" | |
7619 | ;; | |
7620 | *N32*) | |
7621 | LD="${LD-ld} -melf32bmipn32" | |
7622 | ;; | |
7623 | *64-bit*) | |
7624 | LD="${LD-ld} -melf64bmip" | |
7625 | ;; | |
7626 | esac | |
7627 | else | |
7628 | case `/usr/bin/file conftest.$ac_objext` in | |
7629 | *32-bit*) | |
7630 | LD="${LD-ld} -32" | |
7631 | ;; | |
7632 | *N32*) | |
7633 | LD="${LD-ld} -n32" | |
7634 | ;; | |
7635 | *64-bit*) | |
7636 | LD="${LD-ld} -64" | |
7637 | ;; | |
7638 | esac | |
7639 | fi | |
7640 | fi | |
7641 | rm -rf conftest* | |
7642 | ;; | |
7643 | ||
7644 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7645 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7646 | # Find out which ABI we are using. | |
7647 | echo 'int i;' > conftest.$ac_ext | |
7648 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7649 | (eval $ac_compile) 2>&5 | |
7650 | ac_status=$? | |
7651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7652 | test $ac_status = 0; }; then | |
7653 | case `/usr/bin/file conftest.o` in | |
7654 | *32-bit*) | |
7655 | case $host in | |
7656 | x86_64-*kfreebsd*-gnu) | |
7657 | LD="${LD-ld} -m elf_i386_fbsd" | |
7658 | ;; | |
7659 | x86_64-*linux*) | |
7660 | case `/usr/bin/file conftest.o` in | |
7661 | *x86-64*) | |
7662 | LD="${LD-ld} -m elf32_x86_64" | |
7663 | ;; | |
7664 | *) | |
7665 | LD="${LD-ld} -m elf_i386" | |
7666 | ;; | |
7667 | esac | |
7668 | ;; | |
7669 | powerpc64le-*linux*) | |
7670 | LD="${LD-ld} -m elf32lppclinux" | |
7671 | ;; | |
7672 | powerpc64-*linux*) | |
7673 | LD="${LD-ld} -m elf32ppclinux" | |
7674 | ;; | |
7675 | s390x-*linux*) | |
7676 | LD="${LD-ld} -m elf_s390" | |
7677 | ;; | |
7678 | sparc64-*linux*) | |
7679 | LD="${LD-ld} -m elf32_sparc" | |
7680 | ;; | |
7681 | esac | |
7682 | ;; | |
7683 | *64-bit*) | |
7684 | case $host in | |
7685 | x86_64-*kfreebsd*-gnu) | |
7686 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7687 | ;; | |
7688 | x86_64-*linux*) | |
7689 | LD="${LD-ld} -m elf_x86_64" | |
7690 | ;; | |
7691 | powerpcle-*linux*) | |
7692 | LD="${LD-ld} -m elf64lppc" | |
7693 | ;; | |
7694 | powerpc-*linux*) | |
7695 | LD="${LD-ld} -m elf64ppc" | |
7696 | ;; | |
7697 | s390*-*linux*|s390*-*tpf*) | |
7698 | LD="${LD-ld} -m elf64_s390" | |
7699 | ;; | |
7700 | sparc*-*linux*) | |
7701 | LD="${LD-ld} -m elf64_sparc" | |
7702 | ;; | |
7703 | esac | |
7704 | ;; | |
7705 | esac | |
7706 | fi | |
7707 | rm -rf conftest* | |
7708 | ;; | |
7709 | ||
7710 | *-*-sco3.2v5*) | |
7711 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7712 | SAVE_CFLAGS="$CFLAGS" | |
7713 | CFLAGS="$CFLAGS -belf" | |
7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7715 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7716 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7717 | $as_echo_n "(cached) " >&6 | |
7718 | else | |
7719 | ac_ext=c | |
7720 | ac_cpp='$CPP $CPPFLAGS' | |
7721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7724 | ||
7725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7726 | /* end confdefs.h. */ | |
7727 | ||
7728 | int | |
7729 | main () | |
7730 | { | |
7731 | ||
7732 | ; | |
7733 | return 0; | |
7734 | } | |
7735 | _ACEOF | |
7736 | if ac_fn_c_try_link "$LINENO"; then : | |
7737 | lt_cv_cc_needs_belf=yes | |
7738 | else | |
7739 | lt_cv_cc_needs_belf=no | |
7740 | fi | |
7741 | rm -f core conftest.err conftest.$ac_objext \ | |
7742 | conftest$ac_exeext conftest.$ac_ext | |
7743 | ac_ext=c | |
7744 | ac_cpp='$CPP $CPPFLAGS' | |
7745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7748 | ||
7749 | fi | |
7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7751 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7752 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7753 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7754 | CFLAGS="$SAVE_CFLAGS" | |
7755 | fi | |
7756 | ;; | |
7757 | sparc*-*solaris*) | |
7758 | # Find out which ABI we are using. | |
7759 | echo 'int i;' > conftest.$ac_ext | |
7760 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7761 | (eval $ac_compile) 2>&5 | |
7762 | ac_status=$? | |
7763 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7764 | test $ac_status = 0; }; then | |
7765 | case `/usr/bin/file conftest.o` in | |
7766 | *64-bit*) | |
7767 | case $lt_cv_prog_gnu_ld in | |
7768 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7769 | *) | |
7770 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7771 | LD="${LD-ld} -64" | |
7772 | fi | |
7773 | ;; | |
7774 | esac | |
7775 | ;; | |
7776 | esac | |
7777 | fi | |
7778 | rm -rf conftest* | |
7779 | ;; | |
7780 | esac | |
7781 | ||
7782 | need_locks="$enable_libtool_lock" | |
7783 | ||
7784 | ||
7785 | case $host_os in | |
7786 | rhapsody* | darwin*) | |
7787 | if test -n "$ac_tool_prefix"; then | |
7788 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7789 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7791 | $as_echo_n "checking for $ac_word... " >&6; } | |
7792 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7793 | $as_echo_n "(cached) " >&6 | |
7794 | else | |
7795 | if test -n "$DSYMUTIL"; then | |
7796 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7797 | else | |
7798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7799 | for as_dir in $PATH | |
7800 | do | |
7801 | IFS=$as_save_IFS | |
7802 | test -z "$as_dir" && as_dir=. | |
7803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7805 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7807 | break 2 | |
7808 | fi | |
7809 | done | |
7810 | done | |
7811 | IFS=$as_save_IFS | |
7812 | ||
7813 | fi | |
7814 | fi | |
7815 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7816 | if test -n "$DSYMUTIL"; then | |
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7818 | $as_echo "$DSYMUTIL" >&6; } | |
7819 | else | |
7820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7821 | $as_echo "no" >&6; } | |
7822 | fi | |
7823 | ||
7824 | ||
7825 | fi | |
7826 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7827 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7828 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7829 | set dummy dsymutil; ac_word=$2 | |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7831 | $as_echo_n "checking for $ac_word... " >&6; } | |
7832 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7833 | $as_echo_n "(cached) " >&6 | |
7834 | else | |
7835 | if test -n "$ac_ct_DSYMUTIL"; then | |
7836 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7837 | else | |
7838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7839 | for as_dir in $PATH | |
7840 | do | |
7841 | IFS=$as_save_IFS | |
7842 | test -z "$as_dir" && as_dir=. | |
7843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7845 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7847 | break 2 | |
7848 | fi | |
7849 | done | |
7850 | done | |
7851 | IFS=$as_save_IFS | |
7852 | ||
7853 | fi | |
7854 | fi | |
7855 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7856 | if test -n "$ac_ct_DSYMUTIL"; then | |
7857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7858 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7859 | else | |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7861 | $as_echo "no" >&6; } | |
7862 | fi | |
7863 | ||
7864 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7865 | DSYMUTIL=":" | |
7866 | else | |
7867 | case $cross_compiling:$ac_tool_warned in | |
7868 | yes:) | |
7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7871 | ac_tool_warned=yes ;; | |
7872 | esac | |
7873 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7874 | fi | |
7875 | else | |
7876 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7877 | fi | |
7878 | ||
7879 | if test -n "$ac_tool_prefix"; then | |
7880 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7881 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7883 | $as_echo_n "checking for $ac_word... " >&6; } | |
7884 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7885 | $as_echo_n "(cached) " >&6 | |
7886 | else | |
7887 | if test -n "$NMEDIT"; then | |
7888 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7889 | else | |
7890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7891 | for as_dir in $PATH | |
7892 | do | |
7893 | IFS=$as_save_IFS | |
7894 | test -z "$as_dir" && as_dir=. | |
7895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7896 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7897 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7899 | break 2 | |
7900 | fi | |
7901 | done | |
7902 | done | |
7903 | IFS=$as_save_IFS | |
7904 | ||
7905 | fi | |
7906 | fi | |
7907 | NMEDIT=$ac_cv_prog_NMEDIT | |
7908 | if test -n "$NMEDIT"; then | |
7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7910 | $as_echo "$NMEDIT" >&6; } | |
7911 | else | |
7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7913 | $as_echo "no" >&6; } | |
7914 | fi | |
7915 | ||
7916 | ||
7917 | fi | |
7918 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7919 | ac_ct_NMEDIT=$NMEDIT | |
7920 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7921 | set dummy nmedit; ac_word=$2 | |
7922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7923 | $as_echo_n "checking for $ac_word... " >&6; } | |
7924 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7925 | $as_echo_n "(cached) " >&6 | |
7926 | else | |
7927 | if test -n "$ac_ct_NMEDIT"; then | |
7928 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7929 | else | |
7930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7931 | for as_dir in $PATH | |
7932 | do | |
7933 | IFS=$as_save_IFS | |
7934 | test -z "$as_dir" && as_dir=. | |
7935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7937 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7939 | break 2 | |
7940 | fi | |
7941 | done | |
7942 | done | |
7943 | IFS=$as_save_IFS | |
7944 | ||
7945 | fi | |
7946 | fi | |
7947 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7948 | if test -n "$ac_ct_NMEDIT"; then | |
7949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7950 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7951 | else | |
7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7953 | $as_echo "no" >&6; } | |
7954 | fi | |
7955 | ||
7956 | if test "x$ac_ct_NMEDIT" = x; then | |
7957 | NMEDIT=":" | |
7958 | else | |
7959 | case $cross_compiling:$ac_tool_warned in | |
7960 | yes:) | |
7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7962 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7963 | ac_tool_warned=yes ;; | |
7964 | esac | |
7965 | NMEDIT=$ac_ct_NMEDIT | |
7966 | fi | |
7967 | else | |
7968 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7969 | fi | |
7970 | ||
7971 | if test -n "$ac_tool_prefix"; then | |
7972 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7973 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7975 | $as_echo_n "checking for $ac_word... " >&6; } | |
7976 | if ${ac_cv_prog_LIPO+:} false; then : | |
7977 | $as_echo_n "(cached) " >&6 | |
7978 | else | |
7979 | if test -n "$LIPO"; then | |
7980 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7981 | else | |
7982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7983 | for as_dir in $PATH | |
7984 | do | |
7985 | IFS=$as_save_IFS | |
7986 | test -z "$as_dir" && as_dir=. | |
7987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7989 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7991 | break 2 | |
7992 | fi | |
7993 | done | |
7994 | done | |
7995 | IFS=$as_save_IFS | |
7996 | ||
7997 | fi | |
7998 | fi | |
7999 | LIPO=$ac_cv_prog_LIPO | |
8000 | if test -n "$LIPO"; then | |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8002 | $as_echo "$LIPO" >&6; } | |
8003 | else | |
8004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8005 | $as_echo "no" >&6; } | |
8006 | fi | |
8007 | ||
8008 | ||
8009 | fi | |
8010 | if test -z "$ac_cv_prog_LIPO"; then | |
8011 | ac_ct_LIPO=$LIPO | |
8012 | # Extract the first word of "lipo", so it can be a program name with args. | |
8013 | set dummy lipo; ac_word=$2 | |
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8015 | $as_echo_n "checking for $ac_word... " >&6; } | |
8016 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
8017 | $as_echo_n "(cached) " >&6 | |
8018 | else | |
8019 | if test -n "$ac_ct_LIPO"; then | |
8020 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8021 | else | |
8022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8023 | for as_dir in $PATH | |
8024 | do | |
8025 | IFS=$as_save_IFS | |
8026 | test -z "$as_dir" && as_dir=. | |
8027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8029 | ac_cv_prog_ac_ct_LIPO="lipo" | |
8030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8031 | break 2 | |
8032 | fi | |
8033 | done | |
8034 | done | |
8035 | IFS=$as_save_IFS | |
8036 | ||
8037 | fi | |
8038 | fi | |
8039 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8040 | if test -n "$ac_ct_LIPO"; then | |
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8042 | $as_echo "$ac_ct_LIPO" >&6; } | |
8043 | else | |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8045 | $as_echo "no" >&6; } | |
8046 | fi | |
8047 | ||
8048 | if test "x$ac_ct_LIPO" = x; then | |
8049 | LIPO=":" | |
8050 | else | |
8051 | case $cross_compiling:$ac_tool_warned in | |
8052 | yes:) | |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8055 | ac_tool_warned=yes ;; | |
8056 | esac | |
8057 | LIPO=$ac_ct_LIPO | |
8058 | fi | |
8059 | else | |
8060 | LIPO="$ac_cv_prog_LIPO" | |
8061 | fi | |
8062 | ||
8063 | if test -n "$ac_tool_prefix"; then | |
8064 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8065 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8067 | $as_echo_n "checking for $ac_word... " >&6; } | |
8068 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8069 | $as_echo_n "(cached) " >&6 | |
8070 | else | |
8071 | if test -n "$OTOOL"; then | |
8072 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8073 | else | |
8074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8075 | for as_dir in $PATH | |
8076 | do | |
8077 | IFS=$as_save_IFS | |
8078 | test -z "$as_dir" && as_dir=. | |
8079 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8080 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8081 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8083 | break 2 | |
8084 | fi | |
8085 | done | |
8086 | done | |
8087 | IFS=$as_save_IFS | |
8088 | ||
8089 | fi | |
8090 | fi | |
8091 | OTOOL=$ac_cv_prog_OTOOL | |
8092 | if test -n "$OTOOL"; then | |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8094 | $as_echo "$OTOOL" >&6; } | |
8095 | else | |
8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8097 | $as_echo "no" >&6; } | |
8098 | fi | |
8099 | ||
8100 | ||
8101 | fi | |
8102 | if test -z "$ac_cv_prog_OTOOL"; then | |
8103 | ac_ct_OTOOL=$OTOOL | |
8104 | # Extract the first word of "otool", so it can be a program name with args. | |
8105 | set dummy otool; ac_word=$2 | |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8107 | $as_echo_n "checking for $ac_word... " >&6; } | |
8108 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8109 | $as_echo_n "(cached) " >&6 | |
8110 | else | |
8111 | if test -n "$ac_ct_OTOOL"; then | |
8112 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8113 | else | |
8114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8115 | for as_dir in $PATH | |
8116 | do | |
8117 | IFS=$as_save_IFS | |
8118 | test -z "$as_dir" && as_dir=. | |
8119 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8121 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8123 | break 2 | |
8124 | fi | |
8125 | done | |
8126 | done | |
8127 | IFS=$as_save_IFS | |
8128 | ||
8129 | fi | |
8130 | fi | |
8131 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8132 | if test -n "$ac_ct_OTOOL"; then | |
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8134 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8135 | else | |
8136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8137 | $as_echo "no" >&6; } | |
8138 | fi | |
8139 | ||
8140 | if test "x$ac_ct_OTOOL" = x; then | |
8141 | OTOOL=":" | |
8142 | else | |
8143 | case $cross_compiling:$ac_tool_warned in | |
8144 | yes:) | |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8146 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8147 | ac_tool_warned=yes ;; | |
8148 | esac | |
8149 | OTOOL=$ac_ct_OTOOL | |
8150 | fi | |
8151 | else | |
8152 | OTOOL="$ac_cv_prog_OTOOL" | |
8153 | fi | |
8154 | ||
8155 | if test -n "$ac_tool_prefix"; then | |
8156 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8157 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8159 | $as_echo_n "checking for $ac_word... " >&6; } | |
8160 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8161 | $as_echo_n "(cached) " >&6 | |
8162 | else | |
8163 | if test -n "$OTOOL64"; then | |
8164 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8165 | else | |
8166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8167 | for as_dir in $PATH | |
8168 | do | |
8169 | IFS=$as_save_IFS | |
8170 | test -z "$as_dir" && as_dir=. | |
8171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8173 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8175 | break 2 | |
8176 | fi | |
8177 | done | |
8178 | done | |
8179 | IFS=$as_save_IFS | |
8180 | ||
8181 | fi | |
8182 | fi | |
8183 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8184 | if test -n "$OTOOL64"; then | |
8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8186 | $as_echo "$OTOOL64" >&6; } | |
8187 | else | |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8189 | $as_echo "no" >&6; } | |
8190 | fi | |
8191 | ||
8192 | ||
8193 | fi | |
8194 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8195 | ac_ct_OTOOL64=$OTOOL64 | |
8196 | # Extract the first word of "otool64", so it can be a program name with args. | |
8197 | set dummy otool64; ac_word=$2 | |
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8199 | $as_echo_n "checking for $ac_word... " >&6; } | |
8200 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8201 | $as_echo_n "(cached) " >&6 | |
8202 | else | |
8203 | if test -n "$ac_ct_OTOOL64"; then | |
8204 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8205 | else | |
8206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8207 | for as_dir in $PATH | |
8208 | do | |
8209 | IFS=$as_save_IFS | |
8210 | test -z "$as_dir" && as_dir=. | |
8211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8213 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8215 | break 2 | |
8216 | fi | |
8217 | done | |
8218 | done | |
8219 | IFS=$as_save_IFS | |
8220 | ||
8221 | fi | |
8222 | fi | |
8223 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8224 | if test -n "$ac_ct_OTOOL64"; then | |
8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8226 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8227 | else | |
8228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8229 | $as_echo "no" >&6; } | |
8230 | fi | |
8231 | ||
8232 | if test "x$ac_ct_OTOOL64" = x; then | |
8233 | OTOOL64=":" | |
8234 | else | |
8235 | case $cross_compiling:$ac_tool_warned in | |
8236 | yes:) | |
8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8239 | ac_tool_warned=yes ;; | |
8240 | esac | |
8241 | OTOOL64=$ac_ct_OTOOL64 | |
8242 | fi | |
8243 | else | |
8244 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8245 | fi | |
8246 | ||
8247 | ||
8248 | ||
8249 | ||
8250 | ||
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8274 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8275 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8276 | $as_echo_n "(cached) " >&6 | |
8277 | else | |
8278 | lt_cv_apple_cc_single_mod=no | |
8279 | if test -z "${LT_MULTI_MODULE}"; then | |
8280 | # By default we will add the -single_module flag. You can override | |
8281 | # by either setting the environment variable LT_MULTI_MODULE | |
8282 | # non-empty at configure time, or by adding -multi_module to the | |
8283 | # link flags. | |
8284 | rm -rf libconftest.dylib* | |
8285 | echo "int foo(void){return 1;}" > conftest.c | |
8286 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8287 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8288 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8289 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8290 | _lt_result=$? | |
8291 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8292 | lt_cv_apple_cc_single_mod=yes | |
8293 | else | |
8294 | cat conftest.err >&5 | |
8295 | fi | |
8296 | rm -rf libconftest.dylib* | |
8297 | rm -f conftest.* | |
8298 | fi | |
8299 | fi | |
8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8301 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8303 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8304 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8305 | $as_echo_n "(cached) " >&6 | |
8306 | else | |
8307 | lt_cv_ld_exported_symbols_list=no | |
8308 | save_LDFLAGS=$LDFLAGS | |
8309 | echo "_main" > conftest.sym | |
8310 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8312 | /* end confdefs.h. */ | |
8313 | ||
8314 | int | |
8315 | main () | |
8316 | { | |
8317 | ||
8318 | ; | |
8319 | return 0; | |
8320 | } | |
8321 | _ACEOF | |
8322 | if ac_fn_c_try_link "$LINENO"; then : | |
8323 | lt_cv_ld_exported_symbols_list=yes | |
8324 | else | |
8325 | lt_cv_ld_exported_symbols_list=no | |
8326 | fi | |
8327 | rm -f core conftest.err conftest.$ac_objext \ | |
8328 | conftest$ac_exeext conftest.$ac_ext | |
8329 | LDFLAGS="$save_LDFLAGS" | |
8330 | ||
8331 | fi | |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8333 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8335 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8336 | if ${lt_cv_ld_force_load+:} false; then : | |
8337 | $as_echo_n "(cached) " >&6 | |
8338 | else | |
8339 | lt_cv_ld_force_load=no | |
8340 | cat > conftest.c << _LT_EOF | |
8341 | int forced_loaded() { return 2;} | |
8342 | _LT_EOF | |
8343 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8344 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8345 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8346 | $AR cru libconftest.a conftest.o 2>&5 | |
8347 | cat > conftest.c << _LT_EOF | |
8348 | int main() { return 0;} | |
8349 | _LT_EOF | |
8350 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8351 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8352 | _lt_result=$? | |
8353 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8354 | lt_cv_ld_force_load=yes | |
8355 | else | |
8356 | cat conftest.err >&5 | |
8357 | fi | |
8358 | rm -f conftest.err libconftest.a conftest conftest.c | |
8359 | rm -rf conftest.dSYM | |
8360 | ||
8361 | fi | |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8363 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
6a6859cb AM |
8364 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
8365 | # build without first building modern cctools / linker. | |
8366 | case $host_cpu-$host_os in | |
8367 | *-rhapsody* | *-darwin1.[012]) | |
b5689863 | 8368 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
6a6859cb | 8369 | *-darwin1.*) |
b5689863 | 8370 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
6a6859cb AM |
8371 | *-darwin*) |
8372 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
8373 | # deployment target is forced to an earlier version. | |
8374 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
8375 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
8376 | ;; | |
b5689863 | 8377 | 10.[012][,.]*) |
6a6859cb AM |
8378 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8379 | ;; | |
8380 | *) | |
8381 | ;; | |
8382 | esac | |
b5689863 MF |
8383 | ;; |
8384 | esac | |
8385 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8386 | _lt_dar_single_mod='$single_module' | |
8387 | fi | |
8388 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8389 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8390 | else | |
8391 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8392 | fi | |
8393 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8394 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8395 | else | |
8396 | _lt_dsymutil= | |
8397 | fi | |
8398 | ;; | |
8399 | esac | |
8400 | ||
8401 | for ac_header in dlfcn.h | |
8402 | do : | |
8403 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8404 | " | |
8405 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8406 | cat >>confdefs.h <<_ACEOF | |
8407 | #define HAVE_DLFCN_H 1 | |
8408 | _ACEOF | |
8409 | ||
8410 | fi | |
8411 | ||
8412 | done | |
8413 | ||
8414 | ||
8415 | ac_header_dirent=no | |
8416 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8417 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
8419 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
8420 | if eval \${$as_ac_Header+:} false; then : | |
8421 | $as_echo_n "(cached) " >&6 | |
8422 | else | |
8423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8424 | /* end confdefs.h. */ | |
8425 | #include <sys/types.h> | |
8426 | #include <$ac_hdr> | |
8427 | ||
8428 | int | |
8429 | main () | |
8430 | { | |
8431 | if ((DIR *) 0) | |
8432 | return 0; | |
8433 | ; | |
8434 | return 0; | |
8435 | } | |
8436 | _ACEOF | |
8437 | if ac_fn_c_try_compile "$LINENO"; then : | |
8438 | eval "$as_ac_Header=yes" | |
8439 | else | |
8440 | eval "$as_ac_Header=no" | |
8441 | fi | |
8442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8443 | fi | |
8444 | eval ac_res=\$$as_ac_Header | |
8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8446 | $as_echo "$ac_res" >&6; } | |
8447 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8448 | cat >>confdefs.h <<_ACEOF | |
8449 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8450 | _ACEOF | |
8451 | ||
8452 | ac_header_dirent=$ac_hdr; break | |
8453 | fi | |
8454 | ||
8455 | done | |
8456 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8457 | if test $ac_header_dirent = dirent.h; then | |
8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8459 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8460 | if ${ac_cv_search_opendir+:} false; then : | |
8461 | $as_echo_n "(cached) " >&6 | |
8462 | else | |
8463 | ac_func_search_save_LIBS=$LIBS | |
8464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8465 | /* end confdefs.h. */ | |
8466 | ||
8467 | /* Override any GCC internal prototype to avoid an error. | |
8468 | Use char because int might match the return type of a GCC | |
8469 | builtin and then its argument prototype would still apply. */ | |
8470 | #ifdef __cplusplus | |
8471 | extern "C" | |
8472 | #endif | |
8473 | char opendir (); | |
8474 | int | |
8475 | main () | |
8476 | { | |
8477 | return opendir (); | |
8478 | ; | |
8479 | return 0; | |
8480 | } | |
8481 | _ACEOF | |
8482 | for ac_lib in '' dir; do | |
8483 | if test -z "$ac_lib"; then | |
8484 | ac_res="none required" | |
8485 | else | |
8486 | ac_res=-l$ac_lib | |
8487 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8488 | fi | |
8489 | if ac_fn_c_try_link "$LINENO"; then : | |
8490 | ac_cv_search_opendir=$ac_res | |
8491 | fi | |
8492 | rm -f core conftest.err conftest.$ac_objext \ | |
8493 | conftest$ac_exeext | |
8494 | if ${ac_cv_search_opendir+:} false; then : | |
8495 | break | |
8496 | fi | |
8497 | done | |
8498 | if ${ac_cv_search_opendir+:} false; then : | |
8499 | ||
8500 | else | |
8501 | ac_cv_search_opendir=no | |
8502 | fi | |
8503 | rm conftest.$ac_ext | |
8504 | LIBS=$ac_func_search_save_LIBS | |
8505 | fi | |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8507 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8508 | ac_res=$ac_cv_search_opendir | |
8509 | if test "$ac_res" != no; then : | |
8510 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8511 | ||
8512 | fi | |
8513 | ||
8514 | else | |
8515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8516 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8517 | if ${ac_cv_search_opendir+:} false; then : | |
8518 | $as_echo_n "(cached) " >&6 | |
8519 | else | |
8520 | ac_func_search_save_LIBS=$LIBS | |
8521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8522 | /* end confdefs.h. */ | |
8523 | ||
8524 | /* Override any GCC internal prototype to avoid an error. | |
8525 | Use char because int might match the return type of a GCC | |
8526 | builtin and then its argument prototype would still apply. */ | |
8527 | #ifdef __cplusplus | |
8528 | extern "C" | |
8529 | #endif | |
8530 | char opendir (); | |
8531 | int | |
8532 | main () | |
8533 | { | |
8534 | return opendir (); | |
8535 | ; | |
8536 | return 0; | |
8537 | } | |
8538 | _ACEOF | |
8539 | for ac_lib in '' x; do | |
8540 | if test -z "$ac_lib"; then | |
8541 | ac_res="none required" | |
8542 | else | |
8543 | ac_res=-l$ac_lib | |
8544 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8545 | fi | |
8546 | if ac_fn_c_try_link "$LINENO"; then : | |
8547 | ac_cv_search_opendir=$ac_res | |
8548 | fi | |
8549 | rm -f core conftest.err conftest.$ac_objext \ | |
8550 | conftest$ac_exeext | |
8551 | if ${ac_cv_search_opendir+:} false; then : | |
8552 | break | |
8553 | fi | |
8554 | done | |
8555 | if ${ac_cv_search_opendir+:} false; then : | |
8556 | ||
8557 | else | |
8558 | ac_cv_search_opendir=no | |
8559 | fi | |
8560 | rm conftest.$ac_ext | |
8561 | LIBS=$ac_func_search_save_LIBS | |
8562 | fi | |
8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8564 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8565 | ac_res=$ac_cv_search_opendir | |
8566 | if test "$ac_res" != no; then : | |
8567 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8568 | ||
8569 | fi | |
8570 | ||
8571 | fi | |
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
8577 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
8578 | ||
8579 | cat >>confdefs.h <<_ACEOF | |
8580 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
8581 | _ACEOF | |
8582 | ||
8583 | ||
8584 | $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h | |
8585 | ||
8586 | fi | |
8587 | ||
8588 | ||
8589 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
8590 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
8591 | ||
8592 | cat >>confdefs.h <<_ACEOF | |
8593 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
8594 | _ACEOF | |
8595 | ||
8596 | ||
8597 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | |
8598 | ||
8599 | else | |
8600 | case " $LIBOBJS " in | |
8601 | *" fileblocks.$ac_objext "* ) ;; | |
8602 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
8603 | ;; | |
8604 | esac | |
8605 | ||
8606 | fi | |
8607 | ||
8608 | ||
8609 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
8610 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
8611 | ||
8612 | cat >>confdefs.h <<_ACEOF | |
8613 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
8614 | _ACEOF | |
8615 | ||
8616 | ||
8617 | $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h | |
8618 | ||
8619 | fi | |
8620 | ||
8621 | ||
8622 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | |
8623 | #include <$ac_cv_struct_tm> | |
8624 | ||
8625 | " | |
8626 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | |
8627 | ||
8628 | cat >>confdefs.h <<_ACEOF | |
8629 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
8630 | _ACEOF | |
8631 | ||
8632 | ||
8633 | fi | |
8634 | ||
8635 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
8636 | ||
8637 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | |
8638 | ||
8639 | else | |
8640 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
8641 | " | |
8642 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | |
8643 | ac_have_decl=1 | |
8644 | else | |
8645 | ac_have_decl=0 | |
8646 | fi | |
8647 | ||
8648 | cat >>confdefs.h <<_ACEOF | |
8649 | #define HAVE_DECL_TZNAME $ac_have_decl | |
8650 | _ACEOF | |
8651 | ||
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
8653 | $as_echo_n "checking for tzname... " >&6; } | |
8654 | if ${ac_cv_var_tzname+:} false; then : | |
8655 | $as_echo_n "(cached) " >&6 | |
8656 | else | |
8657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8658 | /* end confdefs.h. */ | |
8659 | #include <time.h> | |
a48ff3ef MF |
8660 | #if !HAVE_DECL_TZNAME |
8661 | extern char *tzname[]; | |
8662 | #endif | |
b5689863 MF |
8663 | |
8664 | int | |
8665 | main () | |
8666 | { | |
8667 | return tzname[0][0]; | |
8668 | ; | |
8669 | return 0; | |
8670 | } | |
8671 | _ACEOF | |
8672 | if ac_fn_c_try_link "$LINENO"; then : | |
8673 | ac_cv_var_tzname=yes | |
8674 | else | |
8675 | ac_cv_var_tzname=no | |
8676 | fi | |
8677 | rm -f core conftest.err conftest.$ac_objext \ | |
8678 | conftest$ac_exeext conftest.$ac_ext | |
8679 | fi | |
8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
8681 | $as_echo "$ac_cv_var_tzname" >&6; } | |
8682 | if test $ac_cv_var_tzname = yes; then | |
8683 | ||
8684 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
8685 | ||
8686 | fi | |
8687 | fi | |
8688 | ||
8689 | ||
8690 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
8691 | #include <sys/types.h> | |
8692 | #endif | |
b5689863 | 8693 | #include <sys/stat.h> |
b5689863 MF |
8694 | " |
8695 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : | |
8696 | ||
8697 | cat >>confdefs.h <<_ACEOF | |
8698 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
8699 | _ACEOF | |
8700 | ||
8701 | ||
8702 | fi | |
8703 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
8704 | #include <sys/types.h> | |
8705 | #endif | |
b5689863 | 8706 | #include <sys/stat.h> |
b5689863 MF |
8707 | " |
8708 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : | |
8709 | ||
8710 | cat >>confdefs.h <<_ACEOF | |
8711 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
8712 | _ACEOF | |
8713 | ||
8714 | ||
8715 | fi | |
8716 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
8717 | #include <sys/types.h> | |
8718 | #endif | |
b5689863 | 8719 | #include <sys/stat.h> |
b5689863 MF |
8720 | " |
8721 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : | |
8722 | ||
8723 | cat >>confdefs.h <<_ACEOF | |
8724 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
8725 | _ACEOF | |
8726 | ||
8727 | ||
8728 | fi | |
8729 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
8730 | #include <sys/types.h> | |
8731 | #endif | |
b5689863 | 8732 | #include <sys/stat.h> |
b5689863 MF |
8733 | " |
8734 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : | |
8735 | ||
8736 | cat >>confdefs.h <<_ACEOF | |
8737 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
8738 | _ACEOF | |
8739 | ||
8740 | ||
8741 | fi | |
8742 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
8743 | #include <sys/types.h> | |
8744 | #endif | |
b5689863 | 8745 | #include <sys/stat.h> |
b5689863 MF |
8746 | " |
8747 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : | |
8748 | ||
8749 | cat >>confdefs.h <<_ACEOF | |
8750 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
8751 | _ACEOF | |
8752 | ||
8753 | ||
8754 | fi | |
8755 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
8756 | #include <sys/types.h> | |
8757 | #endif | |
b5689863 | 8758 | #include <sys/stat.h> |
b5689863 MF |
8759 | " |
8760 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : | |
8761 | ||
8762 | cat >>confdefs.h <<_ACEOF | |
8763 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
8764 | _ACEOF | |
8765 | ||
8766 | ||
8767 | fi | |
8768 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
8769 | #include <sys/types.h> | |
8770 | #endif | |
b5689863 | 8771 | #include <sys/stat.h> |
b5689863 MF |
8772 | " |
8773 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
8774 | ||
8775 | cat >>confdefs.h <<_ACEOF | |
8776 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
8777 | _ACEOF | |
8778 | ||
8779 | ||
8780 | fi | |
8781 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
8782 | #include <sys/types.h> | |
8783 | #endif | |
b5689863 | 8784 | #include <sys/stat.h> |
b5689863 MF |
8785 | " |
8786 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : | |
8787 | ||
8788 | cat >>confdefs.h <<_ACEOF | |
8789 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
8790 | _ACEOF | |
8791 | ||
8792 | ||
8793 | fi | |
8794 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
8795 | #include <sys/types.h> | |
8796 | #endif | |
b5689863 | 8797 | #include <sys/stat.h> |
b5689863 MF |
8798 | " |
8799 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
8800 | ||
8801 | cat >>confdefs.h <<_ACEOF | |
8802 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
8803 | _ACEOF | |
8804 | ||
8805 | ||
8806 | fi | |
8807 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
8808 | #include <sys/types.h> | |
8809 | #endif | |
b5689863 | 8810 | #include <sys/stat.h> |
b5689863 MF |
8811 | " |
8812 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
8813 | ||
8814 | cat >>confdefs.h <<_ACEOF | |
8815 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
8816 | _ACEOF | |
8817 | ||
8818 | ||
8819 | fi | |
8820 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
8821 | #include <sys/types.h> | |
8822 | #endif | |
b5689863 | 8823 | #include <sys/stat.h> |
b5689863 MF |
8824 | " |
8825 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : | |
8826 | ||
8827 | cat >>confdefs.h <<_ACEOF | |
8828 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
8829 | _ACEOF | |
8830 | ||
8831 | ||
8832 | fi | |
8833 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
8834 | #include <sys/types.h> | |
8835 | #endif | |
b5689863 | 8836 | #include <sys/stat.h> |
b5689863 MF |
8837 | " |
8838 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | |
8839 | ||
8840 | cat >>confdefs.h <<_ACEOF | |
8841 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
8842 | _ACEOF | |
8843 | ||
8844 | ||
8845 | fi | |
8846 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
8847 | #include <sys/types.h> | |
8848 | #endif | |
b5689863 | 8849 | #include <sys/stat.h> |
b5689863 MF |
8850 | " |
8851 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : | |
8852 | ||
8853 | cat >>confdefs.h <<_ACEOF | |
8854 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
8855 | _ACEOF | |
8856 | ||
8857 | ||
8858 | fi | |
8859 | ||
8860 | ||
8861 | ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
8862 | if test "x$ac_cv_type___int128" = xyes; then : | |
8863 | ||
8864 | cat >>confdefs.h <<_ACEOF | |
8865 | #define HAVE___INT128 1 | |
8866 | _ACEOF | |
8867 | ||
8868 | ||
8869 | fi | |
8870 | ||
8871 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
8872 | #include <sys/socket.h> | |
8873 | ||
8874 | " | |
8875 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
8876 | ||
8877 | cat >>confdefs.h <<_ACEOF | |
8878 | #define HAVE_SOCKLEN_T 1 | |
8879 | _ACEOF | |
8880 | ||
8881 | ||
8882 | fi | |
8883 | ||
8884 | ||
08a7937f MF |
8885 | # The cast to long int works around a bug in the HP C Compiler |
8886 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8887 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8888 | # This bug is HP SR number 8606223364. | |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
8890 | $as_echo_n "checking size of void *... " >&6; } | |
8891 | if ${ac_cv_sizeof_void_p+:} false; then : | |
8892 | $as_echo_n "(cached) " >&6 | |
8893 | else | |
8894 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
8895 | ||
8896 | else | |
8897 | if test "$ac_cv_type_void_p" = yes; then | |
8898 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8899 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8900 | as_fn_error 77 "cannot compute sizeof (void *) | |
8901 | See \`config.log' for more details" "$LINENO" 5; } | |
8902 | else | |
8903 | ac_cv_sizeof_void_p=0 | |
8904 | fi | |
8905 | fi | |
8906 | ||
8907 | fi | |
8908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
8909 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
8910 | ||
8911 | ||
8912 | ||
8913 | cat >>confdefs.h <<_ACEOF | |
8914 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
8915 | _ACEOF | |
8916 | ||
8917 | ||
8918 | ||
d43207b0 MF |
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5 |
8920 | $as_echo_n "checking for struct statfs... " >&6; } | |
8921 | if ${sim_cv_struct_statfs+:} false; then : | |
8922 | $as_echo_n "(cached) " >&6 | |
8923 | else | |
8924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8925 | /* end confdefs.h. */ | |
8926 | ||
8927 | #include <sys/types.h> | |
8928 | #ifdef HAVE_SYS_PARAM_H | |
8929 | #include <sys/param.h> | |
8930 | #endif | |
8931 | #ifdef HAVE_SYS_MOUNT_H | |
8932 | #include <sys/mount.h> | |
8933 | #endif | |
8934 | #ifdef HAVE_SYS_VFS_H | |
8935 | #include <sys/vfs.h> | |
8936 | #endif | |
8937 | #ifdef HAVE_SYS_STATFS_H | |
8938 | #include <sys/statfs.h> | |
8939 | #endif | |
8940 | int | |
8941 | main () | |
8942 | { | |
8943 | ||
8944 | struct statfs s; | |
8945 | ||
8946 | ; | |
8947 | return 0; | |
8948 | } | |
8949 | _ACEOF | |
8950 | if ac_fn_c_try_compile "$LINENO"; then : | |
8951 | sim_cv_struct_statfs="yes" | |
8952 | else | |
8953 | sim_cv_struct_statfs="no" | |
8954 | fi | |
8955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8956 | fi | |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5 | |
8958 | $as_echo "$sim_cv_struct_statfs" >&6; } | |
8959 | if test x"sim_cv_struct_statfs" = x"yes"; then : | |
8960 | ||
8961 | $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h | |
8962 | ||
8963 | ||
8964 | fi | |
8965 | ||
d4720664 MF |
8966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5 |
8967 | $as_echo_n "checking if union semun defined... " >&6; } | |
8968 | if ${sim_cv_has_union_semun+:} false; then : | |
8969 | $as_echo_n "(cached) " >&6 | |
8970 | else | |
8971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8972 | /* end confdefs.h. */ | |
8973 | ||
8974 | #include <sys/types.h> | |
8975 | #include <sys/ipc.h> | |
8976 | #include <sys/sem.h> | |
8977 | int | |
8978 | main () | |
8979 | { | |
8980 | ||
8981 | union semun arg; | |
8982 | ||
8983 | ; | |
8984 | return 0; | |
8985 | } | |
8986 | _ACEOF | |
8987 | if ac_fn_c_try_compile "$LINENO"; then : | |
8988 | sim_cv_has_union_semun="yes" | |
8989 | else | |
8990 | sim_cv_has_union_semun="no" | |
8991 | fi | |
8992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8993 | fi | |
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5 | |
8995 | $as_echo "$sim_cv_has_union_semun" >&6; } | |
8996 | if test x"$sim_cv_has_union_semun" = x"yes"; then : | |
8997 | ||
8998 | $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h | |
8999 | ||
9000 | ||
9001 | fi | |
9002 | ||
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5 | |
9004 | $as_echo_n "checking whether System V semaphores are supported... " >&6; } | |
9005 | if ${sim_cv_sysv_sem+:} false; then : | |
9006 | $as_echo_n "(cached) " >&6 | |
9007 | else | |
9008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9009 | /* end confdefs.h. */ | |
9010 | ||
9011 | #include <sys/types.h> | |
9012 | #include <sys/ipc.h> | |
9013 | #include <sys/sem.h> | |
9014 | #ifndef HAVE_UNION_SEMUN | |
9015 | union semun { | |
9016 | int val; | |
9017 | struct semid_ds *buf; | |
9018 | ushort *array; | |
9019 | }; | |
9020 | #endif | |
9021 | int | |
9022 | main () | |
9023 | { | |
9024 | ||
9025 | union semun arg; | |
9026 | int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400); | |
9027 | if (id == -1) | |
9028 | return 1; | |
9029 | arg.val = 0; /* avoid implicit type cast to union */ | |
9030 | if (semctl(id, 0, IPC_RMID, arg) == -1) | |
9031 | return 1; | |
9032 | ||
9033 | ; | |
9034 | return 0; | |
9035 | } | |
9036 | _ACEOF | |
9037 | if ac_fn_c_try_compile "$LINENO"; then : | |
9038 | sim_cv_sysv_sem="yes" | |
9039 | else | |
9040 | sim_cv_sysv_sem="no" | |
9041 | fi | |
9042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9043 | fi | |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5 | |
9045 | $as_echo "$sim_cv_sysv_sem" >&6; } | |
9046 | if test x"$sim_cv_sysv_sem" = x"yes"; then : | |
9047 | ||
9048 | $as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h | |
9049 | ||
9050 | ||
9051 | fi | |
9052 | ||
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5 | |
9054 | $as_echo_n "checking whether System V shared memory is supported... " >&6; } | |
9055 | if ${sim_cv_sysv_shm+:} false; then : | |
9056 | $as_echo_n "(cached) " >&6 | |
9057 | else | |
9058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9059 | /* end confdefs.h. */ | |
9060 | ||
9061 | #include <sys/types.h> | |
9062 | #include <sys/ipc.h> | |
9063 | #include <sys/shm.h> | |
9064 | int | |
9065 | main () | |
9066 | { | |
9067 | ||
9068 | int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400); | |
9069 | if (id == -1) | |
9070 | return 1; | |
9071 | if (shmctl(id, IPC_RMID, 0) == -1) | |
9072 | return 1; | |
9073 | ||
9074 | ; | |
9075 | return 0; | |
9076 | } | |
9077 | _ACEOF | |
9078 | if ac_fn_c_try_compile "$LINENO"; then : | |
9079 | sim_cv_sysv_shm="yes" | |
9080 | else | |
9081 | sim_cv_sysv_shm="no" | |
9082 | fi | |
9083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9084 | fi | |
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5 | |
9086 | $as_echo "$sim_cv_sysv_shm" >&6; } | |
9087 | if test x"$sim_cv_sysv_shm" = x"yes"; then : | |
9088 | ||
9089 | $as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h | |
9090 | ||
9091 | ||
9092 | fi | |
9093 | ||
6bf212a8 MF |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5 |
9095 | $as_echo_n "checking for struct termios... " >&6; } | |
9096 | if ${sim_cv_termios_struct+:} false; then : | |
9097 | $as_echo_n "(cached) " >&6 | |
9098 | else | |
9099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9100 | /* end confdefs.h. */ | |
9101 | ||
9102 | #include <sys/types.h> | |
9103 | #include <sys/termios.h> | |
9104 | int | |
9105 | main () | |
9106 | { | |
9107 | ||
9108 | static struct termios x; | |
9109 | x.c_iflag = 0; | |
9110 | x.c_oflag = 0; | |
9111 | x.c_cflag = 0; | |
9112 | x.c_lflag = 0; | |
9113 | x.c_cc[NCCS] = 0; | |
9114 | ||
9115 | ; | |
9116 | return 0; | |
9117 | } | |
9118 | _ACEOF | |
9119 | if ac_fn_c_try_compile "$LINENO"; then : | |
9120 | sim_cv_termios_struct="yes" | |
9121 | else | |
9122 | sim_cv_termios_struct="no" | |
9123 | fi | |
9124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9125 | fi | |
9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5 | |
9127 | $as_echo "$sim_cv_termios_struct" >&6; } | |
9128 | if test $sim_cv_termios_struct = yes; then | |
9129 | ||
9130 | $as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h | |
9131 | ||
9132 | fi | |
9133 | ||
9134 | if test "$sim_cv_termios_struct" = "yes"; then | |
9135 | if ${sim_cv_termios_cline+:} false; then : | |
9136 | $as_echo_n "(cached) " >&6 | |
9137 | fi | |
9138 | ||
9139 | ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" " | |
9140 | #include <sys/types.h> | |
9141 | #include <sys/termios.h> | |
9142 | ||
9143 | " | |
9144 | if test "x$ac_cv_member_struct_termios_c_line" = xyes; then : | |
9145 | sim_cv_termios_cline="yes" | |
9146 | else | |
9147 | sim_cv_termios_cline="no" | |
9148 | fi | |
9149 | ||
9150 | if test $sim_cv_termios_cline = yes; then | |
9151 | ||
9152 | $as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h | |
9153 | ||
9154 | fi | |
9155 | else | |
9156 | sim_cv_termios_cline=no | |
9157 | fi | |
9158 | ||
9159 | if test "$sim_cv_termios_struct" != "yes"; then | |
9160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5 | |
9161 | $as_echo_n "checking for struct termio... " >&6; } | |
9162 | if ${sim_cv_termio_struct+:} false; then : | |
9163 | $as_echo_n "(cached) " >&6 | |
9164 | else | |
9165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9166 | /* end confdefs.h. */ | |
9167 | ||
9168 | #include <sys/types.h> | |
9169 | #include <sys/termio.h> | |
9170 | int | |
9171 | main () | |
9172 | { | |
9173 | ||
9174 | static struct termio x; | |
9175 | x.c_iflag = 0; | |
9176 | x.c_oflag = 0; | |
9177 | x.c_cflag = 0; | |
9178 | x.c_lflag = 0; | |
9179 | x.c_cc[NCC] = 0; | |
9180 | ||
9181 | ; | |
9182 | return 0; | |
9183 | } | |
9184 | _ACEOF | |
9185 | if ac_fn_c_try_compile "$LINENO"; then : | |
9186 | sim_cv_termio_struct="yes" | |
9187 | else | |
9188 | sim_cv_termio_struct="no" | |
9189 | fi | |
9190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9191 | fi | |
9192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5 | |
9193 | $as_echo "$sim_cv_termio_struct" >&6; } | |
9194 | if test $sim_cv_termio_struct = yes; then | |
9195 | ||
9196 | $as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h | |
9197 | ||
9198 | fi | |
9199 | else | |
9200 | sim_cv_termio_struct=no | |
9201 | fi | |
9202 | ||
9203 | if test "$sim_cv_termio_struct" = "yes"; then | |
9204 | if ${sim_cv_termio_cline+:} false; then : | |
9205 | $as_echo_n "(cached) " >&6 | |
9206 | fi | |
9207 | ||
9208 | ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" " | |
9209 | #include <sys/types.h> | |
9210 | #include <sys/termio.h> | |
9211 | ||
9212 | " | |
9213 | if test "x$ac_cv_member_struct_termio_c_line" = xyes; then : | |
9214 | sim_cv_termio_cline="yes" | |
9215 | else | |
9216 | sim_cv_termio_cline="no" | |
9217 | fi | |
9218 | ||
9219 | if test $sim_cv_termio_cline = yes; then | |
9220 | ||
9221 | $as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h | |
9222 | ||
9223 | fi | |
9224 | else | |
9225 | sim_cv_termio_cline=no | |
9226 | fi | |
9227 | ||
b5689863 MF |
9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 |
9229 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
9230 | if ${ac_cv_type_getgroups+:} false; then : | |
9231 | $as_echo_n "(cached) " >&6 | |
9232 | else | |
9233 | if test "$cross_compiling" = yes; then : | |
9234 | ac_cv_type_getgroups=cross | |
9235 | else | |
9236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9237 | /* end confdefs.h. */ | |
9238 | /* Thanks to Mike Rendell for this test. */ | |
9239 | $ac_includes_default | |
9240 | #define NGID 256 | |
9241 | #undef MAX | |
9242 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
9243 | ||
9244 | int | |
9245 | main () | |
9246 | { | |
9247 | gid_t gidset[NGID]; | |
9248 | int i, n; | |
9249 | union { gid_t gval; long int lval; } val; | |
9250 | ||
9251 | val.lval = -1; | |
9252 | for (i = 0; i < NGID; i++) | |
9253 | gidset[i] = val.gval; | |
9254 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
9255 | gidset); | |
9256 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
9257 | happens when gid_t is short int but getgroups modifies an array | |
9258 | of ints. */ | |
9259 | return n > 0 && gidset[n] != val.gval; | |
9260 | } | |
9261 | _ACEOF | |
9262 | if ac_fn_c_try_run "$LINENO"; then : | |
9263 | ac_cv_type_getgroups=gid_t | |
9264 | else | |
9265 | ac_cv_type_getgroups=int | |
9266 | fi | |
9267 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9268 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9269 | fi | |
9270 | ||
9271 | if test $ac_cv_type_getgroups = cross; then | |
9272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9273 | /* end confdefs.h. */ | |
9274 | #include <unistd.h> | |
9275 | ||
9276 | _ACEOF | |
9277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9278 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
9279 | ac_cv_type_getgroups=gid_t | |
9280 | else | |
9281 | ac_cv_type_getgroups=int | |
9282 | fi | |
9283 | rm -f conftest* | |
9284 | ||
9285 | fi | |
9286 | fi | |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
9288 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
9289 | ||
9290 | cat >>confdefs.h <<_ACEOF | |
9291 | #define GETGROUPS_T $ac_cv_type_getgroups | |
9292 | _ACEOF | |
9293 | ||
9294 | ||
9295 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
9296 | if test "x$ac_cv_type_mode_t" = xyes; then : | |
9297 | ||
9298 | else | |
9299 | ||
9300 | cat >>confdefs.h <<_ACEOF | |
9301 | #define mode_t int | |
9302 | _ACEOF | |
9303 | ||
9304 | fi | |
9305 | ||
9306 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
9307 | if test "x$ac_cv_type_off_t" = xyes; then : | |
9308 | ||
9309 | else | |
9310 | ||
9311 | cat >>confdefs.h <<_ACEOF | |
9312 | #define off_t long int | |
9313 | _ACEOF | |
9314 | ||
9315 | fi | |
9316 | ||
9317 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
9318 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
9319 | ||
9320 | else | |
9321 | ||
9322 | cat >>confdefs.h <<_ACEOF | |
9323 | #define pid_t int | |
9324 | _ACEOF | |
9325 | ||
9326 | fi | |
9327 | ||
9328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
9329 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
9330 | if ${ac_cv_type_signal+:} false; then : | |
9331 | $as_echo_n "(cached) " >&6 | |
9332 | else | |
9333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9334 | /* end confdefs.h. */ | |
9335 | #include <sys/types.h> | |
9336 | #include <signal.h> | |
9337 | ||
9338 | int | |
9339 | main () | |
9340 | { | |
9341 | return *(signal (0, 0)) (0) == 1; | |
9342 | ; | |
9343 | return 0; | |
9344 | } | |
9345 | _ACEOF | |
9346 | if ac_fn_c_try_compile "$LINENO"; then : | |
9347 | ac_cv_type_signal=int | |
9348 | else | |
9349 | ac_cv_type_signal=void | |
9350 | fi | |
9351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9352 | fi | |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
9354 | $as_echo "$ac_cv_type_signal" >&6; } | |
9355 | ||
9356 | cat >>confdefs.h <<_ACEOF | |
9357 | #define RETSIGTYPE $ac_cv_type_signal | |
9358 | _ACEOF | |
9359 | ||
9360 | ||
9361 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
9362 | if test "x$ac_cv_type_size_t" = xyes; then : | |
9363 | ||
9364 | else | |
9365 | ||
9366 | cat >>confdefs.h <<_ACEOF | |
9367 | #define size_t unsigned int | |
9368 | _ACEOF | |
9369 | ||
9370 | fi | |
9371 | ||
9372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
9373 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
9374 | if ${ac_cv_type_uid_t+:} false; then : | |
9375 | $as_echo_n "(cached) " >&6 | |
9376 | else | |
9377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9378 | /* end confdefs.h. */ | |
9379 | #include <sys/types.h> | |
9380 | ||
9381 | _ACEOF | |
9382 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9383 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
9384 | ac_cv_type_uid_t=yes | |
9385 | else | |
9386 | ac_cv_type_uid_t=no | |
9387 | fi | |
9388 | rm -f conftest* | |
9389 | ||
9390 | fi | |
9391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
9392 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
9393 | if test $ac_cv_type_uid_t = no; then | |
9394 | ||
9395 | $as_echo "#define uid_t int" >>confdefs.h | |
9396 | ||
9397 | ||
9398 | $as_echo "#define gid_t int" >>confdefs.h | |
9399 | ||
9400 | fi | |
9401 | ||
9402 | ||
b5689863 MF |
9403 | |
9404 | ||
9405 | ||
9406 | ||
9407 | # Set options | |
b5689863 MF |
9408 | |
9409 | ||
9410 | ||
89cf99a9 MF |
9411 | enable_dlopen=no |
9412 | ||
b5689863 MF |
9413 | |
9414 | enable_win32_dll=no | |
9415 | ||
9416 | ||
9417 | # Check whether --enable-shared was given. | |
9418 | if test "${enable_shared+set}" = set; then : | |
9419 | enableval=$enable_shared; p=${PACKAGE-default} | |
9420 | case $enableval in | |
9421 | yes) enable_shared=yes ;; | |
9422 | no) enable_shared=no ;; | |
9423 | *) | |
9424 | enable_shared=no | |
9425 | # Look at the argument we got. We use all the common list separators. | |
9426 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9427 | for pkg in $enableval; do | |
9428 | IFS="$lt_save_ifs" | |
9429 | if test "X$pkg" = "X$p"; then | |
9430 | enable_shared=yes | |
9431 | fi | |
9432 | done | |
9433 | IFS="$lt_save_ifs" | |
9434 | ;; | |
9435 | esac | |
9436 | else | |
9437 | enable_shared=yes | |
9438 | fi | |
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | # Check whether --enable-static was given. | |
9449 | if test "${enable_static+set}" = set; then : | |
9450 | enableval=$enable_static; p=${PACKAGE-default} | |
9451 | case $enableval in | |
9452 | yes) enable_static=yes ;; | |
9453 | no) enable_static=no ;; | |
9454 | *) | |
9455 | enable_static=no | |
9456 | # Look at the argument we got. We use all the common list separators. | |
9457 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9458 | for pkg in $enableval; do | |
9459 | IFS="$lt_save_ifs" | |
9460 | if test "X$pkg" = "X$p"; then | |
9461 | enable_static=yes | |
9462 | fi | |
9463 | done | |
9464 | IFS="$lt_save_ifs" | |
9465 | ;; | |
9466 | esac | |
9467 | else | |
9468 | enable_static=yes | |
9469 | fi | |
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | # Check whether --with-pic was given. | |
9481 | if test "${with_pic+set}" = set; then : | |
9482 | withval=$with_pic; pic_mode="$withval" | |
9483 | else | |
9484 | pic_mode=default | |
9485 | fi | |
9486 | ||
9487 | ||
9488 | test -z "$pic_mode" && pic_mode=default | |
9489 | ||
9490 | ||
9491 | ||
9492 | ||
9493 | ||
9494 | ||
9495 | ||
9496 | # Check whether --enable-fast-install was given. | |
9497 | if test "${enable_fast_install+set}" = set; then : | |
9498 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9499 | case $enableval in | |
9500 | yes) enable_fast_install=yes ;; | |
9501 | no) enable_fast_install=no ;; | |
9502 | *) | |
9503 | enable_fast_install=no | |
9504 | # Look at the argument we got. We use all the common list separators. | |
9505 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9506 | for pkg in $enableval; do | |
9507 | IFS="$lt_save_ifs" | |
9508 | if test "X$pkg" = "X$p"; then | |
9509 | enable_fast_install=yes | |
9510 | fi | |
9511 | done | |
9512 | IFS="$lt_save_ifs" | |
9513 | ;; | |
9514 | esac | |
9515 | else | |
9516 | enable_fast_install=yes | |
9517 | fi | |
9518 | ||
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | ||
9526 | ||
9527 | ||
9528 | ||
9529 | # This can be used to rebuild libtool when needed | |
9530 | LIBTOOL_DEPS="$ltmain" | |
9531 | ||
9532 | # Always use our own libtool. | |
9533 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9534 | ||
9535 | ||
9536 | ||
9537 | ||
9538 | ||
9539 | ||
9540 | ||
9541 | ||
9542 | ||
9543 | ||
9544 | ||
9545 | ||
9546 | ||
9547 | ||
9548 | ||
9549 | ||
9550 | ||
9551 | ||
9552 | ||
9553 | ||
9554 | ||
9555 | ||
9556 | ||
9557 | ||
9558 | ||
9559 | ||
9560 | test -z "$LN_S" && LN_S="ln -s" | |
9561 | ||
9562 | ||
9563 | ||
9564 | ||
9565 | ||
9566 | ||
9567 | ||
9568 | ||
9569 | ||
9570 | ||
9571 | ||
9572 | ||
9573 | ||
9574 | ||
9575 | if test -n "${ZSH_VERSION+set}" ; then | |
9576 | setopt NO_GLOB_SUBST | |
9577 | fi | |
9578 | ||
9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
9580 | $as_echo_n "checking for objdir... " >&6; } | |
9581 | if ${lt_cv_objdir+:} false; then : | |
9582 | $as_echo_n "(cached) " >&6 | |
9583 | else | |
9584 | rm -f .libs 2>/dev/null | |
9585 | mkdir .libs 2>/dev/null | |
9586 | if test -d .libs; then | |
9587 | lt_cv_objdir=.libs | |
9588 | else | |
9589 | # MS-DOS does not allow filenames that begin with a dot. | |
9590 | lt_cv_objdir=_libs | |
9591 | fi | |
9592 | rmdir .libs 2>/dev/null | |
9593 | fi | |
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9595 | $as_echo "$lt_cv_objdir" >&6; } | |
9596 | objdir=$lt_cv_objdir | |
9597 | ||
9598 | ||
9599 | ||
9600 | ||
9601 | ||
9602 | cat >>confdefs.h <<_ACEOF | |
9603 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9604 | _ACEOF | |
9605 | ||
9606 | ||
9607 | ||
9608 | ||
9609 | case $host_os in | |
9610 | aix3*) | |
9611 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9612 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9613 | # vanish in a puff of smoke. | |
9614 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9615 | COLLECT_NAMES= | |
9616 | export COLLECT_NAMES | |
9617 | fi | |
9618 | ;; | |
9619 | esac | |
9620 | ||
9621 | # Global variables: | |
9622 | ofile=libtool | |
9623 | can_build_shared=yes | |
9624 | ||
9625 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9626 | # which needs '.lib'). | |
9627 | libext=a | |
9628 | ||
9629 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9630 | ||
9631 | old_CC="$CC" | |
9632 | old_CFLAGS="$CFLAGS" | |
9633 | ||
9634 | # Set sane defaults for various variables | |
9635 | test -z "$CC" && CC=cc | |
9636 | test -z "$LTCC" && LTCC=$CC | |
9637 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9638 | test -z "$LD" && LD=ld | |
9639 | test -z "$ac_objext" && ac_objext=o | |
9640 | ||
9641 | for cc_temp in $compiler""; do | |
9642 | case $cc_temp in | |
9643 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9644 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9645 | \-*) ;; | |
9646 | *) break;; | |
9647 | esac | |
9648 | done | |
9649 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9650 | ||
9651 | ||
9652 | # Only perform the check for file, if the check method requires it | |
9653 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9654 | case $deplibs_check_method in | |
9655 | file_magic*) | |
9656 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9658 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9659 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9660 | $as_echo_n "(cached) " >&6 | |
9661 | else | |
9662 | case $MAGIC_CMD in | |
9663 | [\\/*] | ?:[\\/]*) | |
9664 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9665 | ;; | |
9666 | *) | |
9667 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9668 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9669 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9670 | for ac_dir in $ac_dummy; do | |
9671 | IFS="$lt_save_ifs" | |
9672 | test -z "$ac_dir" && ac_dir=. | |
9673 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9674 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9675 | if test -n "$file_magic_test_file"; then | |
9676 | case $deplibs_check_method in | |
9677 | "file_magic "*) | |
9678 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9679 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9680 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9681 | $EGREP "$file_magic_regex" > /dev/null; then | |
9682 | : | |
9683 | else | |
9684 | cat <<_LT_EOF 1>&2 | |
9685 | ||
9686 | *** Warning: the command libtool uses to detect shared libraries, | |
9687 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9688 | *** The result is that libtool may fail to recognize shared libraries | |
9689 | *** as such. This will affect the creation of libtool libraries that | |
9690 | *** depend on shared libraries, but programs linked with such libtool | |
9691 | *** libraries will work regardless of this problem. Nevertheless, you | |
9692 | *** may want to report the problem to your system manager and/or to | |
9693 | *** bug-libtool@gnu.org | |
9694 | ||
9695 | _LT_EOF | |
9696 | fi ;; | |
9697 | esac | |
9698 | fi | |
9699 | break | |
9700 | fi | |
9701 | done | |
9702 | IFS="$lt_save_ifs" | |
9703 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9704 | ;; | |
9705 | esac | |
9706 | fi | |
9707 | ||
9708 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9709 | if test -n "$MAGIC_CMD"; then | |
9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9711 | $as_echo "$MAGIC_CMD" >&6; } | |
9712 | else | |
9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9714 | $as_echo "no" >&6; } | |
9715 | fi | |
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9722 | if test -n "$ac_tool_prefix"; then | |
9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9724 | $as_echo_n "checking for file... " >&6; } | |
9725 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9726 | $as_echo_n "(cached) " >&6 | |
9727 | else | |
9728 | case $MAGIC_CMD in | |
9729 | [\\/*] | ?:[\\/]*) | |
9730 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9731 | ;; | |
9732 | *) | |
9733 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9734 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9735 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9736 | for ac_dir in $ac_dummy; do | |
9737 | IFS="$lt_save_ifs" | |
9738 | test -z "$ac_dir" && ac_dir=. | |
9739 | if test -f $ac_dir/file; then | |
9740 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9741 | if test -n "$file_magic_test_file"; then | |
9742 | case $deplibs_check_method in | |
9743 | "file_magic "*) | |
9744 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9745 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9746 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9747 | $EGREP "$file_magic_regex" > /dev/null; then | |
9748 | : | |
9749 | else | |
9750 | cat <<_LT_EOF 1>&2 | |
9751 | ||
9752 | *** Warning: the command libtool uses to detect shared libraries, | |
9753 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9754 | *** The result is that libtool may fail to recognize shared libraries | |
9755 | *** as such. This will affect the creation of libtool libraries that | |
9756 | *** depend on shared libraries, but programs linked with such libtool | |
9757 | *** libraries will work regardless of this problem. Nevertheless, you | |
9758 | *** may want to report the problem to your system manager and/or to | |
9759 | *** bug-libtool@gnu.org | |
9760 | ||
9761 | _LT_EOF | |
9762 | fi ;; | |
9763 | esac | |
9764 | fi | |
9765 | break | |
9766 | fi | |
9767 | done | |
9768 | IFS="$lt_save_ifs" | |
9769 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9770 | ;; | |
9771 | esac | |
9772 | fi | |
9773 | ||
9774 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9775 | if test -n "$MAGIC_CMD"; then | |
9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9777 | $as_echo "$MAGIC_CMD" >&6; } | |
9778 | else | |
9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9780 | $as_echo "no" >&6; } | |
9781 | fi | |
9782 | ||
9783 | ||
9784 | else | |
9785 | MAGIC_CMD=: | |
9786 | fi | |
9787 | fi | |
9788 | ||
9789 | fi | |
9790 | ;; | |
9791 | esac | |
9792 | ||
9793 | # Use C for the default configuration in the libtool script | |
9794 | ||
9795 | lt_save_CC="$CC" | |
9796 | ac_ext=c | |
9797 | ac_cpp='$CPP $CPPFLAGS' | |
9798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9801 | ||
9802 | ||
9803 | # Source file extension for C test sources. | |
9804 | ac_ext=c | |
9805 | ||
9806 | # Object file extension for compiled C test sources. | |
9807 | objext=o | |
9808 | objext=$objext | |
9809 | ||
9810 | # Code to be used in simple compile tests | |
9811 | lt_simple_compile_test_code="int some_variable = 0;" | |
9812 | ||
9813 | # Code to be used in simple link tests | |
9814 | lt_simple_link_test_code='int main(){return(0);}' | |
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | # If no C compiler was specified, use CC. | |
9823 | LTCC=${LTCC-"$CC"} | |
9824 | ||
9825 | # If no C compiler flags were specified, use CFLAGS. | |
9826 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9827 | ||
9828 | # Allow CC to be a program name with arguments. | |
9829 | compiler=$CC | |
9830 | ||
9831 | # Save the default compiler, since it gets overwritten when the other | |
9832 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9833 | compiler_DEFAULT=$CC | |
9834 | ||
9835 | # save warnings/boilerplate of simple test code | |
9836 | ac_outfile=conftest.$ac_objext | |
9837 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9838 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9839 | _lt_compiler_boilerplate=`cat conftest.err` | |
9840 | $RM conftest* | |
9841 | ||
9842 | ac_outfile=conftest.$ac_objext | |
9843 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9844 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9845 | _lt_linker_boilerplate=`cat conftest.err` | |
9846 | $RM -r conftest* | |
9847 | ||
9848 | ||
9849 | ## CAVEAT EMPTOR: | |
9850 | ## There is no encapsulation within the following macros, do not change | |
9851 | ## the running order or otherwise move them around unless you know exactly | |
9852 | ## what you are doing... | |
9853 | if test -n "$compiler"; then | |
9854 | ||
9855 | lt_prog_compiler_no_builtin_flag= | |
9856 | ||
9857 | if test "$GCC" = yes; then | |
9858 | case $cc_basename in | |
9859 | nvcc*) | |
9860 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9861 | *) | |
9862 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9863 | esac | |
9864 | ||
9865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9866 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9867 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9868 | $as_echo_n "(cached) " >&6 | |
9869 | else | |
9870 | lt_cv_prog_compiler_rtti_exceptions=no | |
9871 | ac_outfile=conftest.$ac_objext | |
9872 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9873 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9874 | # Insert the option either (1) after the last *FLAGS variable, or | |
9875 | # (2) before a word containing "conftest.", or (3) at the end. | |
9876 | # Note that $ac_compile itself does not contain backslashes and begins | |
9877 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9878 | # The option is referenced via a variable to avoid confusing sed. | |
9879 | lt_compile=`echo "$ac_compile" | $SED \ | |
9880 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9881 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9882 | -e 's:$: $lt_compiler_flag:'` | |
9883 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9884 | (eval "$lt_compile" 2>conftest.err) | |
9885 | ac_status=$? | |
9886 | cat conftest.err >&5 | |
9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9888 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9889 | # The compiler can only warn and ignore the option if not recognized | |
9890 | # So say no if there are warnings other than the usual output. | |
9891 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9892 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9893 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9894 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9895 | fi | |
9896 | fi | |
9897 | $RM conftest* | |
9898 | ||
9899 | fi | |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9901 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9902 | ||
9903 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9904 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9905 | else | |
9906 | : | |
9907 | fi | |
9908 | ||
9909 | fi | |
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | lt_prog_compiler_wl= | |
9917 | lt_prog_compiler_pic= | |
9918 | lt_prog_compiler_static= | |
9919 | ||
9920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9921 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9922 | ||
9923 | if test "$GCC" = yes; then | |
9924 | lt_prog_compiler_wl='-Wl,' | |
9925 | lt_prog_compiler_static='-static' | |
9926 | ||
9927 | case $host_os in | |
9928 | aix*) | |
9929 | # All AIX code is PIC. | |
9930 | if test "$host_cpu" = ia64; then | |
9931 | # AIX 5 now supports IA64 processor | |
9932 | lt_prog_compiler_static='-Bstatic' | |
9933 | fi | |
9934 | lt_prog_compiler_pic='-fPIC' | |
9935 | ;; | |
9936 | ||
9937 | amigaos*) | |
9938 | case $host_cpu in | |
9939 | powerpc) | |
9940 | # see comment about AmigaOS4 .so support | |
9941 | lt_prog_compiler_pic='-fPIC' | |
9942 | ;; | |
9943 | m68k) | |
9944 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9945 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9946 | # like `-m68040'. | |
9947 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9948 | ;; | |
9949 | esac | |
9950 | ;; | |
9951 | ||
9952 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9953 | # PIC is the default for these OSes. | |
9954 | ;; | |
9955 | ||
9956 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9957 | # This hack is so that the source file can tell whether it is being | |
9958 | # built for inclusion in a dll (and should export symbols for example). | |
9959 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9960 | # (--disable-auto-import) libraries | |
9961 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9962 | ;; | |
9963 | ||
9964 | darwin* | rhapsody*) | |
9965 | # PIC is the default on this platform | |
9966 | # Common symbols not allowed in MH_DYLIB files | |
9967 | lt_prog_compiler_pic='-fno-common' | |
9968 | ;; | |
9969 | ||
9970 | haiku*) | |
9971 | # PIC is the default for Haiku. | |
9972 | # The "-static" flag exists, but is broken. | |
9973 | lt_prog_compiler_static= | |
9974 | ;; | |
9975 | ||
9976 | hpux*) | |
9977 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9978 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9979 | # sets the default TLS model and affects inlining. | |
9980 | case $host_cpu in | |
9981 | hppa*64*) | |
9982 | # +Z the default | |
9983 | ;; | |
9984 | *) | |
9985 | lt_prog_compiler_pic='-fPIC' | |
9986 | ;; | |
9987 | esac | |
9988 | ;; | |
9989 | ||
9990 | interix[3-9]*) | |
9991 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9992 | # Instead, we relocate shared libraries at runtime. | |
9993 | ;; | |
9994 | ||
9995 | msdosdjgpp*) | |
9996 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9997 | # on systems that don't support them. | |
9998 | lt_prog_compiler_can_build_shared=no | |
9999 | enable_shared=no | |
10000 | ;; | |
10001 | ||
10002 | *nto* | *qnx*) | |
10003 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10004 | # it will coredump. | |
10005 | lt_prog_compiler_pic='-fPIC -shared' | |
10006 | ;; | |
10007 | ||
10008 | sysv4*MP*) | |
10009 | if test -d /usr/nec; then | |
10010 | lt_prog_compiler_pic=-Kconform_pic | |
10011 | fi | |
10012 | ;; | |
10013 | ||
10014 | *) | |
10015 | lt_prog_compiler_pic='-fPIC' | |
10016 | ;; | |
10017 | esac | |
10018 | ||
10019 | case $cc_basename in | |
10020 | nvcc*) # Cuda Compiler Driver 2.2 | |
10021 | lt_prog_compiler_wl='-Xlinker ' | |
10022 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
10023 | ;; | |
10024 | esac | |
10025 | else | |
10026 | # PORTME Check for flag to pass linker flags through the system compiler. | |
10027 | case $host_os in | |
10028 | aix*) | |
10029 | lt_prog_compiler_wl='-Wl,' | |
10030 | if test "$host_cpu" = ia64; then | |
10031 | # AIX 5 now supports IA64 processor | |
10032 | lt_prog_compiler_static='-Bstatic' | |
10033 | else | |
10034 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
10035 | fi | |
10036 | ;; | |
10037 | ||
10038 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
10039 | # This hack is so that the source file can tell whether it is being | |
10040 | # built for inclusion in a dll (and should export symbols for example). | |
10041 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
10042 | ;; | |
10043 | ||
10044 | hpux9* | hpux10* | hpux11*) | |
10045 | lt_prog_compiler_wl='-Wl,' | |
10046 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
10047 | # not for PA HP-UX. | |
10048 | case $host_cpu in | |
10049 | hppa*64*|ia64*) | |
10050 | # +Z the default | |
10051 | ;; | |
10052 | *) | |
10053 | lt_prog_compiler_pic='+Z' | |
10054 | ;; | |
10055 | esac | |
10056 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
10057 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
10058 | ;; | |
10059 | ||
10060 | irix5* | irix6* | nonstopux*) | |
10061 | lt_prog_compiler_wl='-Wl,' | |
10062 | # PIC (with -KPIC) is the default. | |
10063 | lt_prog_compiler_static='-non_shared' | |
10064 | ;; | |
10065 | ||
10066 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10067 | case $cc_basename in | |
10068 | # old Intel for x86_64 which still supported -KPIC. | |
10069 | ecc*) | |
10070 | lt_prog_compiler_wl='-Wl,' | |
10071 | lt_prog_compiler_pic='-KPIC' | |
10072 | lt_prog_compiler_static='-static' | |
10073 | ;; | |
10074 | # icc used to be incompatible with GCC. | |
10075 | # ICC 10 doesn't accept -KPIC any more. | |
10076 | icc* | ifort*) | |
10077 | lt_prog_compiler_wl='-Wl,' | |
10078 | lt_prog_compiler_pic='-fPIC' | |
10079 | lt_prog_compiler_static='-static' | |
10080 | ;; | |
10081 | # Lahey Fortran 8.1. | |
10082 | lf95*) | |
10083 | lt_prog_compiler_wl='-Wl,' | |
10084 | lt_prog_compiler_pic='--shared' | |
10085 | lt_prog_compiler_static='--static' | |
10086 | ;; | |
10087 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10088 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
10089 | # which looks to be a dead project) | |
10090 | lt_prog_compiler_wl='-Wl,' | |
10091 | lt_prog_compiler_pic='-fpic' | |
10092 | lt_prog_compiler_static='-Bstatic' | |
10093 | ;; | |
10094 | ccc*) | |
10095 | lt_prog_compiler_wl='-Wl,' | |
10096 | # All Alpha code is PIC. | |
10097 | lt_prog_compiler_static='-non_shared' | |
10098 | ;; | |
10099 | xl* | bgxl* | bgf* | mpixl*) | |
10100 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
10101 | lt_prog_compiler_wl='-Wl,' | |
10102 | lt_prog_compiler_pic='-qpic' | |
10103 | lt_prog_compiler_static='-qstaticlink' | |
10104 | ;; | |
10105 | *) | |
10106 | case `$CC -V 2>&1 | sed 5q` in | |
10107 | *Sun\ F* | *Sun*Fortran*) | |
10108 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
10109 | lt_prog_compiler_pic='-KPIC' | |
10110 | lt_prog_compiler_static='-Bstatic' | |
10111 | lt_prog_compiler_wl='' | |
10112 | ;; | |
10113 | *Sun\ C*) | |
10114 | # Sun C 5.9 | |
10115 | lt_prog_compiler_pic='-KPIC' | |
10116 | lt_prog_compiler_static='-Bstatic' | |
10117 | lt_prog_compiler_wl='-Wl,' | |
10118 | ;; | |
10119 | esac | |
10120 | ;; | |
10121 | esac | |
10122 | ;; | |
10123 | ||
10124 | newsos6) | |
10125 | lt_prog_compiler_pic='-KPIC' | |
10126 | lt_prog_compiler_static='-Bstatic' | |
10127 | ;; | |
10128 | ||
10129 | *nto* | *qnx*) | |
10130 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
10131 | # it will coredump. | |
10132 | lt_prog_compiler_pic='-fPIC -shared' | |
10133 | ;; | |
10134 | ||
10135 | osf3* | osf4* | osf5*) | |
10136 | lt_prog_compiler_wl='-Wl,' | |
10137 | # All OSF/1 code is PIC. | |
10138 | lt_prog_compiler_static='-non_shared' | |
10139 | ;; | |
10140 | ||
10141 | rdos*) | |
10142 | lt_prog_compiler_static='-non_shared' | |
10143 | ;; | |
10144 | ||
10145 | solaris*) | |
10146 | lt_prog_compiler_pic='-KPIC' | |
10147 | lt_prog_compiler_static='-Bstatic' | |
10148 | case $cc_basename in | |
10149 | f77* | f90* | f95*) | |
10150 | lt_prog_compiler_wl='-Qoption ld ';; | |
10151 | *) | |
10152 | lt_prog_compiler_wl='-Wl,';; | |
10153 | esac | |
10154 | ;; | |
10155 | ||
10156 | sunos4*) | |
10157 | lt_prog_compiler_wl='-Qoption ld ' | |
10158 | lt_prog_compiler_pic='-PIC' | |
10159 | lt_prog_compiler_static='-Bstatic' | |
10160 | ;; | |
10161 | ||
10162 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
10163 | lt_prog_compiler_wl='-Wl,' | |
10164 | lt_prog_compiler_pic='-KPIC' | |
10165 | lt_prog_compiler_static='-Bstatic' | |
10166 | ;; | |
10167 | ||
10168 | sysv4*MP*) | |
10169 | if test -d /usr/nec ;then | |
10170 | lt_prog_compiler_pic='-Kconform_pic' | |
10171 | lt_prog_compiler_static='-Bstatic' | |
10172 | fi | |
10173 | ;; | |
10174 | ||
10175 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10176 | lt_prog_compiler_wl='-Wl,' | |
10177 | lt_prog_compiler_pic='-KPIC' | |
10178 | lt_prog_compiler_static='-Bstatic' | |
10179 | ;; | |
10180 | ||
10181 | unicos*) | |
10182 | lt_prog_compiler_wl='-Wl,' | |
10183 | lt_prog_compiler_can_build_shared=no | |
10184 | ;; | |
10185 | ||
10186 | uts4*) | |
10187 | lt_prog_compiler_pic='-pic' | |
10188 | lt_prog_compiler_static='-Bstatic' | |
10189 | ;; | |
10190 | ||
10191 | *) | |
10192 | lt_prog_compiler_can_build_shared=no | |
10193 | ;; | |
10194 | esac | |
10195 | fi | |
10196 | ||
10197 | case $host_os in | |
10198 | # For platforms which do not support PIC, -DPIC is meaningless: | |
10199 | *djgpp*) | |
10200 | lt_prog_compiler_pic= | |
10201 | ;; | |
10202 | *) | |
10203 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10204 | ;; | |
10205 | esac | |
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
10207 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | # | |
10215 | # Check to make sure the PIC flag actually works. | |
10216 | # | |
10217 | if test -n "$lt_prog_compiler_pic"; then | |
10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
10219 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
10220 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
10221 | $as_echo_n "(cached) " >&6 | |
10222 | else | |
10223 | lt_cv_prog_compiler_pic_works=no | |
10224 | ac_outfile=conftest.$ac_objext | |
10225 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10226 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10227 | # Insert the option either (1) after the last *FLAGS variable, or | |
10228 | # (2) before a word containing "conftest.", or (3) at the end. | |
10229 | # Note that $ac_compile itself does not contain backslashes and begins | |
10230 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10231 | # The option is referenced via a variable to avoid confusing sed. | |
10232 | lt_compile=`echo "$ac_compile" | $SED \ | |
10233 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10234 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10235 | -e 's:$: $lt_compiler_flag:'` | |
10236 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10237 | (eval "$lt_compile" 2>conftest.err) | |
10238 | ac_status=$? | |
10239 | cat conftest.err >&5 | |
10240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10241 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
10242 | # The compiler can only warn and ignore the option if not recognized | |
10243 | # So say no if there are warnings other than the usual output. | |
10244 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
10245 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10246 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10247 | lt_cv_prog_compiler_pic_works=yes | |
10248 | fi | |
10249 | fi | |
10250 | $RM conftest* | |
10251 | ||
10252 | fi | |
10253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
10254 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
10255 | ||
10256 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
10257 | case $lt_prog_compiler_pic in | |
10258 | "" | " "*) ;; | |
10259 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10260 | esac | |
10261 | else | |
10262 | lt_prog_compiler_pic= | |
10263 | lt_prog_compiler_can_build_shared=no | |
10264 | fi | |
10265 | ||
10266 | fi | |
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | # | |
10274 | # Check to make sure the static flag actually works. | |
10275 | # | |
10276 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
10278 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
10279 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
10280 | $as_echo_n "(cached) " >&6 | |
10281 | else | |
10282 | lt_cv_prog_compiler_static_works=no | |
10283 | save_LDFLAGS="$LDFLAGS" | |
10284 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10285 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10286 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10287 | # The linker can only warn and ignore the option if not recognized | |
10288 | # So say no if there are warnings | |
10289 | if test -s conftest.err; then | |
10290 | # Append any errors to the config.log. | |
10291 | cat conftest.err 1>&5 | |
10292 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10293 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10294 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10295 | lt_cv_prog_compiler_static_works=yes | |
10296 | fi | |
10297 | else | |
10298 | lt_cv_prog_compiler_static_works=yes | |
10299 | fi | |
10300 | fi | |
10301 | $RM -r conftest* | |
10302 | LDFLAGS="$save_LDFLAGS" | |
10303 | ||
10304 | fi | |
10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
10306 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
10307 | ||
10308 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
10309 | : | |
10310 | else | |
10311 | lt_prog_compiler_static= | |
10312 | fi | |
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10321 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10322 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10323 | $as_echo_n "(cached) " >&6 | |
10324 | else | |
10325 | lt_cv_prog_compiler_c_o=no | |
10326 | $RM -r conftest 2>/dev/null | |
10327 | mkdir conftest | |
10328 | cd conftest | |
10329 | mkdir out | |
10330 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10331 | ||
10332 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10333 | # Insert the option either (1) after the last *FLAGS variable, or | |
10334 | # (2) before a word containing "conftest.", or (3) at the end. | |
10335 | # Note that $ac_compile itself does not contain backslashes and begins | |
10336 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10337 | lt_compile=`echo "$ac_compile" | $SED \ | |
10338 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10339 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10340 | -e 's:$: $lt_compiler_flag:'` | |
10341 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10342 | (eval "$lt_compile" 2>out/conftest.err) | |
10343 | ac_status=$? | |
10344 | cat out/conftest.err >&5 | |
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10346 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10347 | then | |
10348 | # The compiler can only warn and ignore the option if not recognized | |
10349 | # So say no if there are warnings | |
10350 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10351 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10352 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10353 | lt_cv_prog_compiler_c_o=yes | |
10354 | fi | |
10355 | fi | |
10356 | chmod u+w . 2>&5 | |
10357 | $RM conftest* | |
10358 | # SGI C++ compiler will create directory out/ii_files/ for | |
10359 | # template instantiation | |
10360 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10361 | $RM out/* && rmdir out | |
10362 | cd .. | |
10363 | $RM -r conftest | |
10364 | $RM conftest* | |
10365 | ||
10366 | fi | |
10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10368 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10376 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10377 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10378 | $as_echo_n "(cached) " >&6 | |
10379 | else | |
10380 | lt_cv_prog_compiler_c_o=no | |
10381 | $RM -r conftest 2>/dev/null | |
10382 | mkdir conftest | |
10383 | cd conftest | |
10384 | mkdir out | |
10385 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10386 | ||
10387 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10388 | # Insert the option either (1) after the last *FLAGS variable, or | |
10389 | # (2) before a word containing "conftest.", or (3) at the end. | |
10390 | # Note that $ac_compile itself does not contain backslashes and begins | |
10391 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10392 | lt_compile=`echo "$ac_compile" | $SED \ | |
10393 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10394 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10395 | -e 's:$: $lt_compiler_flag:'` | |
10396 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10397 | (eval "$lt_compile" 2>out/conftest.err) | |
10398 | ac_status=$? | |
10399 | cat out/conftest.err >&5 | |
10400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10401 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10402 | then | |
10403 | # The compiler can only warn and ignore the option if not recognized | |
10404 | # So say no if there are warnings | |
10405 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10406 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10407 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10408 | lt_cv_prog_compiler_c_o=yes | |
10409 | fi | |
10410 | fi | |
10411 | chmod u+w . 2>&5 | |
10412 | $RM conftest* | |
10413 | # SGI C++ compiler will create directory out/ii_files/ for | |
10414 | # template instantiation | |
10415 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10416 | $RM out/* && rmdir out | |
10417 | cd .. | |
10418 | $RM -r conftest | |
10419 | $RM conftest* | |
10420 | ||
10421 | fi | |
10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10423 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | hard_links="nottested" | |
10429 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10430 | # do not overwrite the value of need_locks provided by the user | |
10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10432 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10433 | hard_links=yes | |
10434 | $RM conftest* | |
10435 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10436 | touch conftest.a | |
10437 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10438 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10440 | $as_echo "$hard_links" >&6; } | |
10441 | if test "$hard_links" = no; then | |
10442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10443 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10444 | need_locks=warn | |
10445 | fi | |
10446 | else | |
10447 | need_locks=no | |
10448 | fi | |
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10456 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10457 | ||
10458 | runpath_var= | |
10459 | allow_undefined_flag= | |
10460 | always_export_symbols=no | |
10461 | archive_cmds= | |
10462 | archive_expsym_cmds= | |
10463 | compiler_needs_object=no | |
10464 | enable_shared_with_static_runtimes=no | |
10465 | export_dynamic_flag_spec= | |
10466 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10467 | hardcode_automatic=no | |
10468 | hardcode_direct=no | |
10469 | hardcode_direct_absolute=no | |
10470 | hardcode_libdir_flag_spec= | |
10471 | hardcode_libdir_flag_spec_ld= | |
10472 | hardcode_libdir_separator= | |
10473 | hardcode_minus_L=no | |
10474 | hardcode_shlibpath_var=unsupported | |
10475 | inherit_rpath=no | |
10476 | link_all_deplibs=unknown | |
10477 | module_cmds= | |
10478 | module_expsym_cmds= | |
10479 | old_archive_from_new_cmds= | |
10480 | old_archive_from_expsyms_cmds= | |
10481 | thread_safe_flag_spec= | |
10482 | whole_archive_flag_spec= | |
10483 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10484 | # included in the symbol list | |
10485 | include_expsyms= | |
10486 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10487 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10488 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10489 | # as well as any symbol that contains `d'. | |
10490 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10491 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10492 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10493 | # the symbol is explicitly referenced. Since portable code cannot | |
10494 | # rely on this symbol name, it's probably fine to never include it in | |
10495 | # preloaded symbol tables. | |
10496 | # Exclude shared library initialization/finalization symbols. | |
10497 | extract_expsyms_cmds= | |
10498 | ||
10499 | case $host_os in | |
10500 | cygwin* | mingw* | pw32* | cegcc*) | |
10501 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10502 | # When not using gcc, we currently assume that we are using | |
10503 | # Microsoft Visual C++. | |
10504 | if test "$GCC" != yes; then | |
10505 | with_gnu_ld=no | |
10506 | fi | |
10507 | ;; | |
10508 | interix*) | |
10509 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10510 | with_gnu_ld=yes | |
10511 | ;; | |
10512 | openbsd*) | |
10513 | with_gnu_ld=no | |
10514 | ;; | |
10515 | esac | |
10516 | ||
10517 | ld_shlibs=yes | |
10518 | ||
10519 | # On some targets, GNU ld is compatible enough with the native linker | |
10520 | # that we're better off using the native interface for both. | |
10521 | lt_use_gnu_ld_interface=no | |
10522 | if test "$with_gnu_ld" = yes; then | |
10523 | case $host_os in | |
10524 | aix*) | |
10525 | # The AIX port of GNU ld has always aspired to compatibility | |
10526 | # with the native linker. However, as the warning in the GNU ld | |
10527 | # block says, versions before 2.19.5* couldn't really create working | |
10528 | # shared libraries, regardless of the interface used. | |
10529 | case `$LD -v 2>&1` in | |
10530 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10531 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10532 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10533 | *) | |
10534 | lt_use_gnu_ld_interface=yes | |
10535 | ;; | |
10536 | esac | |
10537 | ;; | |
10538 | *) | |
10539 | lt_use_gnu_ld_interface=yes | |
10540 | ;; | |
10541 | esac | |
10542 | fi | |
10543 | ||
10544 | if test "$lt_use_gnu_ld_interface" = yes; then | |
10545 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10546 | wlarc='${wl}' | |
10547 | ||
10548 | # Set some defaults for GNU ld with shared library support. These | |
10549 | # are reset later if shared libraries are not supported. Putting them | |
10550 | # here allows them to be overridden if necessary. | |
10551 | runpath_var=LD_RUN_PATH | |
10552 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10553 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10554 | # ancient GNU ld didn't support --whole-archive et. al. | |
10555 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10556 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10557 | else | |
10558 | whole_archive_flag_spec= | |
10559 | fi | |
10560 | supports_anon_versioning=no | |
10561 | case `$LD -v 2>&1` in | |
10562 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10563 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10564 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10565 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10566 | *\ 2.11.*) ;; # other 2.11 versions | |
10567 | *) supports_anon_versioning=yes ;; | |
10568 | esac | |
10569 | ||
10570 | # See if GNU ld supports shared libraries. | |
10571 | case $host_os in | |
10572 | aix[3-9]*) | |
10573 | # On AIX/PPC, the GNU linker is very broken | |
10574 | if test "$host_cpu" != ia64; then | |
10575 | ld_shlibs=no | |
10576 | cat <<_LT_EOF 1>&2 | |
10577 | ||
10578 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10579 | *** to be unable to reliably create shared libraries on AIX. | |
10580 | *** Therefore, libtool is disabling shared libraries support. If you | |
10581 | *** really care for shared libraries, you may want to install binutils | |
10582 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10583 | *** You will then need to restart the configuration process. | |
10584 | ||
10585 | _LT_EOF | |
10586 | fi | |
10587 | ;; | |
10588 | ||
10589 | amigaos*) | |
10590 | case $host_cpu in | |
10591 | powerpc) | |
10592 | # see comment about AmigaOS4 .so support | |
10593 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10594 | archive_expsym_cmds='' | |
10595 | ;; | |
10596 | m68k) | |
10597 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
10598 | hardcode_libdir_flag_spec='-L$libdir' | |
10599 | hardcode_minus_L=yes | |
10600 | ;; | |
10601 | esac | |
10602 | ;; | |
10603 | ||
10604 | beos*) | |
10605 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10606 | allow_undefined_flag=unsupported | |
10607 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10608 | # support --undefined. This deserves some investigation. FIXME | |
10609 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10610 | else | |
10611 | ld_shlibs=no | |
10612 | fi | |
10613 | ;; | |
10614 | ||
10615 | cygwin* | mingw* | pw32* | cegcc*) | |
10616 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10617 | # as there is no search path for DLLs. | |
10618 | hardcode_libdir_flag_spec='-L$libdir' | |
10619 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10620 | allow_undefined_flag=unsupported | |
10621 | always_export_symbols=no | |
10622 | enable_shared_with_static_runtimes=yes | |
10623 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10624 | ||
10625 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10626 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10627 | # If the export-symbols file already is a .def file (1st line | |
10628 | # is EXPORTS), use it as is; otherwise, prepend... | |
10629 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10630 | cp $export_symbols $output_objdir/$soname.def; | |
10631 | else | |
10632 | echo EXPORTS > $output_objdir/$soname.def; | |
10633 | cat $export_symbols >> $output_objdir/$soname.def; | |
10634 | fi~ | |
10635 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10636 | else | |
10637 | ld_shlibs=no | |
10638 | fi | |
10639 | ;; | |
10640 | ||
10641 | haiku*) | |
10642 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10643 | link_all_deplibs=yes | |
10644 | ;; | |
10645 | ||
10646 | interix[3-9]*) | |
10647 | hardcode_direct=no | |
10648 | hardcode_shlibpath_var=no | |
10649 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10650 | export_dynamic_flag_spec='${wl}-E' | |
10651 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10652 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10653 | # default) and relocated if they conflict, which is a slow very memory | |
10654 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10655 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10656 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10657 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10658 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10659 | ;; | |
10660 | ||
6a6859cb | 10661 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
b5689863 MF |
10662 | tmp_diet=no |
10663 | if test "$host_os" = linux-dietlibc; then | |
10664 | case $cc_basename in | |
10665 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10666 | esac | |
10667 | fi | |
10668 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10669 | && test "$tmp_diet" = no | |
10670 | then | |
10671 | tmp_addflag=' $pic_flag' | |
10672 | tmp_sharedflag='-shared' | |
10673 | case $cc_basename,$host_cpu in | |
10674 | pgcc*) # Portland Group C compiler | |
10675 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10676 | tmp_addflag=' $pic_flag' | |
10677 | ;; | |
10678 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10679 | # Portland Group f77 and f90 compilers | |
10680 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10681 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10682 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10683 | tmp_addflag=' -i_dynamic' ;; | |
10684 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10685 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10686 | ifc* | ifort*) # Intel Fortran compiler | |
10687 | tmp_addflag=' -nofor_main' ;; | |
10688 | lf95*) # Lahey Fortran 8.1 | |
10689 | whole_archive_flag_spec= | |
10690 | tmp_sharedflag='--shared' ;; | |
10691 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10692 | tmp_sharedflag='-qmkshrobj' | |
10693 | tmp_addflag= ;; | |
10694 | nvcc*) # Cuda Compiler Driver 2.2 | |
10695 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10696 | compiler_needs_object=yes | |
10697 | ;; | |
10698 | esac | |
10699 | case `$CC -V 2>&1 | sed 5q` in | |
10700 | *Sun\ C*) # Sun C 5.9 | |
10701 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10702 | compiler_needs_object=yes | |
10703 | tmp_sharedflag='-G' ;; | |
10704 | *Sun\ F*) # Sun Fortran 8.3 | |
10705 | tmp_sharedflag='-G' ;; | |
10706 | esac | |
10707 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10708 | ||
10709 | if test "x$supports_anon_versioning" = xyes; then | |
10710 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10711 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10712 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10713 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10714 | fi | |
10715 | ||
10716 | case $cc_basename in | |
10717 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10718 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10719 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10720 | hardcode_libdir_flag_spec= | |
10721 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10722 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10723 | if test "x$supports_anon_versioning" = xyes; then | |
10724 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10725 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10726 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10727 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10728 | fi | |
10729 | ;; | |
10730 | esac | |
10731 | else | |
10732 | ld_shlibs=no | |
10733 | fi | |
10734 | ;; | |
10735 | ||
10736 | netbsd*) | |
10737 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10738 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10739 | wlarc= | |
10740 | else | |
10741 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10742 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10743 | fi | |
10744 | ;; | |
10745 | ||
10746 | solaris*) | |
10747 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10748 | ld_shlibs=no | |
10749 | cat <<_LT_EOF 1>&2 | |
10750 | ||
10751 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10752 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10753 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10754 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10755 | *** your PATH or compiler configuration so that the native linker is | |
10756 | *** used, and then restart. | |
10757 | ||
10758 | _LT_EOF | |
10759 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10760 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10761 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10762 | else | |
10763 | ld_shlibs=no | |
10764 | fi | |
10765 | ;; | |
10766 | ||
10767 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10768 | case `$LD -v 2>&1` in | |
10769 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10770 | ld_shlibs=no | |
10771 | cat <<_LT_EOF 1>&2 | |
10772 | ||
10773 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10774 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10775 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10776 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10777 | *** your PATH or compiler configuration so that the native linker is | |
10778 | *** used, and then restart. | |
10779 | ||
10780 | _LT_EOF | |
10781 | ;; | |
10782 | *) | |
10783 | # For security reasons, it is highly recommended that you always | |
10784 | # use absolute paths for naming shared libraries, and exclude the | |
10785 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10786 | # requires that you compile everything twice, which is a pain. | |
10787 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10788 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10789 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10790 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10791 | else | |
10792 | ld_shlibs=no | |
10793 | fi | |
10794 | ;; | |
10795 | esac | |
10796 | ;; | |
10797 | ||
10798 | sunos4*) | |
10799 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10800 | wlarc= | |
10801 | hardcode_direct=yes | |
10802 | hardcode_shlibpath_var=no | |
10803 | ;; | |
10804 | ||
10805 | *) | |
10806 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10807 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10808 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10809 | else | |
10810 | ld_shlibs=no | |
10811 | fi | |
10812 | ;; | |
10813 | esac | |
10814 | ||
10815 | if test "$ld_shlibs" = no; then | |
10816 | runpath_var= | |
10817 | hardcode_libdir_flag_spec= | |
10818 | export_dynamic_flag_spec= | |
10819 | whole_archive_flag_spec= | |
10820 | fi | |
10821 | else | |
10822 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10823 | case $host_os in | |
10824 | aix3*) | |
10825 | allow_undefined_flag=unsupported | |
10826 | always_export_symbols=yes | |
10827 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
10828 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10829 | # are no directories specified by -L. | |
10830 | hardcode_minus_L=yes | |
10831 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10832 | # Neither direct hardcoding nor static linking is supported with a | |
10833 | # broken collect2. | |
10834 | hardcode_direct=unsupported | |
10835 | fi | |
10836 | ;; | |
10837 | ||
10838 | aix[4-9]*) | |
10839 | if test "$host_cpu" = ia64; then | |
10840 | # On IA64, the linker does run time linking by default, so we don't | |
10841 | # have to do anything special. | |
10842 | aix_use_runtimelinking=no | |
10843 | exp_sym_flag='-Bexport' | |
10844 | no_entry_flag="" | |
10845 | else | |
10846 | # If we're using GNU nm, then we don't want the "-C" option. | |
10847 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10848 | # Also, AIX nm treats weak defined symbols like other global | |
10849 | # defined symbols, whereas GNU nm marks them as "W". | |
10850 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10851 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10852 | else | |
10853 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10854 | fi | |
10855 | aix_use_runtimelinking=no | |
10856 | ||
10857 | # Test if we are trying to use run time linking or normal | |
10858 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10859 | # need to do runtime linking. | |
10860 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10861 | for ld_flag in $LDFLAGS; do | |
10862 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10863 | aix_use_runtimelinking=yes | |
10864 | break | |
10865 | fi | |
10866 | done | |
10867 | ;; | |
10868 | esac | |
10869 | ||
10870 | exp_sym_flag='-bexport' | |
10871 | no_entry_flag='-bnoentry' | |
10872 | fi | |
10873 | ||
10874 | # When large executables or shared objects are built, AIX ld can | |
10875 | # have problems creating the table of contents. If linking a library | |
10876 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10877 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10878 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10879 | ||
10880 | archive_cmds='' | |
10881 | hardcode_direct=yes | |
10882 | hardcode_direct_absolute=yes | |
10883 | hardcode_libdir_separator=':' | |
10884 | link_all_deplibs=yes | |
10885 | file_list_spec='${wl}-f,' | |
10886 | ||
10887 | if test "$GCC" = yes; then | |
10888 | case $host_os in aix4.[012]|aix4.[012].*) | |
10889 | # We only want to do this on AIX 4.2 and lower, the check | |
10890 | # below for broken collect2 doesn't work under 4.3+ | |
10891 | collect2name=`${CC} -print-prog-name=collect2` | |
10892 | if test -f "$collect2name" && | |
10893 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10894 | then | |
10895 | # We have reworked collect2 | |
10896 | : | |
10897 | else | |
10898 | # We have old collect2 | |
10899 | hardcode_direct=unsupported | |
10900 | # It fails to find uninstalled libraries when the uninstalled | |
10901 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10902 | # to unsupported forces relinking | |
10903 | hardcode_minus_L=yes | |
10904 | hardcode_libdir_flag_spec='-L$libdir' | |
10905 | hardcode_libdir_separator= | |
10906 | fi | |
10907 | ;; | |
10908 | esac | |
10909 | shared_flag='-shared' | |
10910 | if test "$aix_use_runtimelinking" = yes; then | |
10911 | shared_flag="$shared_flag "'${wl}-G' | |
10912 | fi | |
10913 | else | |
10914 | # not using gcc | |
10915 | if test "$host_cpu" = ia64; then | |
10916 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10917 | # chokes on -Wl,-G. The following line is correct: | |
10918 | shared_flag='-G' | |
10919 | else | |
10920 | if test "$aix_use_runtimelinking" = yes; then | |
10921 | shared_flag='${wl}-G' | |
10922 | else | |
10923 | shared_flag='${wl}-bM:SRE' | |
10924 | fi | |
10925 | fi | |
10926 | fi | |
10927 | ||
10928 | export_dynamic_flag_spec='${wl}-bexpall' | |
10929 | # It seems that -bexpall does not export symbols beginning with | |
10930 | # underscore (_), so it is better to generate a list of symbols to export. | |
10931 | always_export_symbols=yes | |
10932 | if test "$aix_use_runtimelinking" = yes; then | |
10933 | # Warning - without using the other runtime loading flags (-brtl), | |
10934 | # -berok will link without error, but may produce a broken library. | |
10935 | allow_undefined_flag='-berok' | |
10936 | # Determine the default libpath from the value encoded in an | |
10937 | # empty executable. | |
10938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10939 | /* end confdefs.h. */ | |
10940 | ||
10941 | int | |
10942 | main () | |
10943 | { | |
10944 | ||
10945 | ; | |
10946 | return 0; | |
10947 | } | |
10948 | _ACEOF | |
10949 | if ac_fn_c_try_link "$LINENO"; then : | |
10950 | ||
10951 | lt_aix_libpath_sed=' | |
10952 | /Import File Strings/,/^$/ { | |
10953 | /^0/ { | |
10954 | s/^0 *\(.*\)$/\1/ | |
10955 | p | |
10956 | } | |
10957 | }' | |
10958 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10959 | # Check for a 64-bit object if we didn't find anything. | |
10960 | if test -z "$aix_libpath"; then | |
10961 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10962 | fi | |
10963 | fi | |
10964 | rm -f core conftest.err conftest.$ac_objext \ | |
10965 | conftest$ac_exeext conftest.$ac_ext | |
10966 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10967 | ||
10968 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10969 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10970 | else | |
10971 | if test "$host_cpu" = ia64; then | |
10972 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10973 | allow_undefined_flag="-z nodefs" | |
10974 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
10975 | else | |
10976 | # Determine the default libpath from the value encoded in an | |
10977 | # empty executable. | |
10978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10979 | /* end confdefs.h. */ | |
10980 | ||
10981 | int | |
10982 | main () | |
10983 | { | |
10984 | ||
10985 | ; | |
10986 | return 0; | |
10987 | } | |
10988 | _ACEOF | |
10989 | if ac_fn_c_try_link "$LINENO"; then : | |
10990 | ||
10991 | lt_aix_libpath_sed=' | |
10992 | /Import File Strings/,/^$/ { | |
10993 | /^0/ { | |
10994 | s/^0 *\(.*\)$/\1/ | |
10995 | p | |
10996 | } | |
10997 | }' | |
10998 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10999 | # Check for a 64-bit object if we didn't find anything. | |
11000 | if test -z "$aix_libpath"; then | |
11001 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
11002 | fi | |
11003 | fi | |
11004 | rm -f core conftest.err conftest.$ac_objext \ | |
11005 | conftest$ac_exeext conftest.$ac_ext | |
11006 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11007 | ||
11008 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11009 | # Warning - without using the other run time loading flags, | |
11010 | # -berok will link without error, but may produce a broken library. | |
11011 | no_undefined_flag=' ${wl}-bernotok' | |
11012 | allow_undefined_flag=' ${wl}-berok' | |
11013 | if test "$with_gnu_ld" = yes; then | |
11014 | # We only use this code for GNU lds that support --whole-archive. | |
11015 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11016 | else | |
11017 | # Exported symbols can be pulled into shared objects from archives | |
11018 | whole_archive_flag_spec='$convenience' | |
11019 | fi | |
11020 | archive_cmds_need_lc=yes | |
11021 | # This is similar to how AIX traditionally builds its shared libraries. | |
11022 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11023 | fi | |
11024 | fi | |
11025 | ;; | |
11026 | ||
11027 | amigaos*) | |
11028 | case $host_cpu in | |
11029 | powerpc) | |
11030 | # see comment about AmigaOS4 .so support | |
11031 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11032 | archive_expsym_cmds='' | |
11033 | ;; | |
11034 | m68k) | |
11035 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
11036 | hardcode_libdir_flag_spec='-L$libdir' | |
11037 | hardcode_minus_L=yes | |
11038 | ;; | |
11039 | esac | |
11040 | ;; | |
11041 | ||
11042 | bsdi[45]*) | |
11043 | export_dynamic_flag_spec=-rdynamic | |
11044 | ;; | |
11045 | ||
11046 | cygwin* | mingw* | pw32* | cegcc*) | |
11047 | # When not using gcc, we currently assume that we are using | |
11048 | # Microsoft Visual C++. | |
11049 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
11050 | # no search path for DLLs. | |
11051 | hardcode_libdir_flag_spec=' ' | |
11052 | allow_undefined_flag=unsupported | |
11053 | # Tell ltmain to make .lib files, not .a files. | |
11054 | libext=lib | |
11055 | # Tell ltmain to make .dll files, not .so files. | |
11056 | shrext_cmds=".dll" | |
11057 | # FIXME: Setting linknames here is a bad hack. | |
11058 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
11059 | # The linker will automatically build a .lib file if we build a DLL. | |
11060 | old_archive_from_new_cmds='true' | |
11061 | # FIXME: Should let the user specify the lib program. | |
11062 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
11063 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
11064 | enable_shared_with_static_runtimes=yes | |
11065 | ;; | |
11066 | ||
11067 | darwin* | rhapsody*) | |
11068 | ||
11069 | ||
11070 | archive_cmds_need_lc=no | |
11071 | hardcode_direct=no | |
11072 | hardcode_automatic=yes | |
11073 | hardcode_shlibpath_var=unsupported | |
11074 | if test "$lt_cv_ld_force_load" = "yes"; then | |
11075 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
11076 | else | |
11077 | whole_archive_flag_spec='' | |
11078 | fi | |
11079 | link_all_deplibs=yes | |
11080 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
11081 | case $cc_basename in | |
11082 | ifort*) _lt_dar_can_shared=yes ;; | |
11083 | *) _lt_dar_can_shared=$GCC ;; | |
11084 | esac | |
11085 | if test "$_lt_dar_can_shared" = "yes"; then | |
11086 | output_verbose_link_cmd=func_echo_all | |
11087 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
11088 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11089 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
11090 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
11091 | ||
11092 | else | |
11093 | ld_shlibs=no | |
11094 | fi | |
11095 | ||
11096 | ;; | |
11097 | ||
11098 | dgux*) | |
11099 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11100 | hardcode_libdir_flag_spec='-L$libdir' | |
11101 | hardcode_shlibpath_var=no | |
11102 | ;; | |
11103 | ||
11104 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
11105 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
11106 | # does not break anything, and helps significantly (at the cost of a little | |
11107 | # extra space). | |
11108 | freebsd2.2*) | |
11109 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
11110 | hardcode_libdir_flag_spec='-R$libdir' | |
11111 | hardcode_direct=yes | |
11112 | hardcode_shlibpath_var=no | |
11113 | ;; | |
11114 | ||
11115 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
11116 | freebsd2.*) | |
11117 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11118 | hardcode_direct=yes | |
11119 | hardcode_minus_L=yes | |
11120 | hardcode_shlibpath_var=no | |
11121 | ;; | |
11122 | ||
11123 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11124 | freebsd* | dragonfly*) | |
11125 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11126 | hardcode_libdir_flag_spec='-R$libdir' | |
11127 | hardcode_direct=yes | |
11128 | hardcode_shlibpath_var=no | |
11129 | ;; | |
11130 | ||
11131 | hpux9*) | |
11132 | if test "$GCC" = yes; then | |
11133 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11134 | else | |
11135 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11136 | fi | |
11137 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11138 | hardcode_libdir_separator=: | |
11139 | hardcode_direct=yes | |
11140 | ||
11141 | # hardcode_minus_L: Not really in the search PATH, | |
11142 | # but as the default location of the library. | |
11143 | hardcode_minus_L=yes | |
11144 | export_dynamic_flag_spec='${wl}-E' | |
11145 | ;; | |
11146 | ||
11147 | hpux10*) | |
11148 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11149 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11150 | else | |
11151 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11152 | fi | |
11153 | if test "$with_gnu_ld" = no; then | |
11154 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11155 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
11156 | hardcode_libdir_separator=: | |
11157 | hardcode_direct=yes | |
11158 | hardcode_direct_absolute=yes | |
11159 | export_dynamic_flag_spec='${wl}-E' | |
11160 | # hardcode_minus_L: Not really in the search PATH, | |
11161 | # but as the default location of the library. | |
11162 | hardcode_minus_L=yes | |
11163 | fi | |
11164 | ;; | |
11165 | ||
11166 | hpux11*) | |
11167 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11168 | case $host_cpu in | |
11169 | hppa*64*) | |
6a6859cb | 11170 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b5689863 MF |
11171 | ;; |
11172 | ia64*) | |
11173 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11174 | ;; | |
11175 | *) | |
11176 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11177 | ;; | |
11178 | esac | |
11179 | else | |
11180 | case $host_cpu in | |
11181 | hppa*64*) | |
6a6859cb | 11182 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
b5689863 MF |
11183 | ;; |
11184 | ia64*) | |
11185 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11186 | ;; | |
11187 | *) | |
11188 | ||
11189 | # Older versions of the 11.00 compiler do not understand -b yet | |
11190 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11192 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
11193 | if ${lt_cv_prog_compiler__b+:} false; then : | |
11194 | $as_echo_n "(cached) " >&6 | |
11195 | else | |
11196 | lt_cv_prog_compiler__b=no | |
11197 | save_LDFLAGS="$LDFLAGS" | |
11198 | LDFLAGS="$LDFLAGS -b" | |
11199 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11200 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11201 | # The linker can only warn and ignore the option if not recognized | |
11202 | # So say no if there are warnings | |
11203 | if test -s conftest.err; then | |
11204 | # Append any errors to the config.log. | |
11205 | cat conftest.err 1>&5 | |
11206 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11207 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11208 | if diff conftest.exp conftest.er2 >/dev/null; then | |
11209 | lt_cv_prog_compiler__b=yes | |
11210 | fi | |
11211 | else | |
11212 | lt_cv_prog_compiler__b=yes | |
11213 | fi | |
11214 | fi | |
11215 | $RM -r conftest* | |
11216 | LDFLAGS="$save_LDFLAGS" | |
11217 | ||
11218 | fi | |
11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11220 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11221 | ||
11222 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11223 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11224 | else | |
11225 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11226 | fi | |
11227 | ||
11228 | ;; | |
11229 | esac | |
11230 | fi | |
11231 | if test "$with_gnu_ld" = no; then | |
11232 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11233 | hardcode_libdir_separator=: | |
11234 | ||
11235 | case $host_cpu in | |
11236 | hppa*64*|ia64*) | |
11237 | hardcode_direct=no | |
11238 | hardcode_shlibpath_var=no | |
11239 | ;; | |
11240 | *) | |
11241 | hardcode_direct=yes | |
11242 | hardcode_direct_absolute=yes | |
11243 | export_dynamic_flag_spec='${wl}-E' | |
11244 | ||
11245 | # hardcode_minus_L: Not really in the search PATH, | |
11246 | # but as the default location of the library. | |
11247 | hardcode_minus_L=yes | |
11248 | ;; | |
11249 | esac | |
11250 | fi | |
11251 | ;; | |
11252 | ||
11253 | irix5* | irix6* | nonstopux*) | |
11254 | if test "$GCC" = yes; then | |
11255 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11256 | # Try to use the -exported_symbol ld option, if it does not | |
11257 | # work, assume that -exports_file does not work either and | |
11258 | # implicitly export all symbols. | |
11259 | save_LDFLAGS="$LDFLAGS" | |
11260 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11262 | /* end confdefs.h. */ | |
11263 | int foo(void) {} | |
11264 | _ACEOF | |
11265 | if ac_fn_c_try_link "$LINENO"; then : | |
11266 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
11267 | ||
11268 | fi | |
11269 | rm -f core conftest.err conftest.$ac_objext \ | |
11270 | conftest$ac_exeext conftest.$ac_ext | |
11271 | LDFLAGS="$save_LDFLAGS" | |
11272 | else | |
11273 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
11274 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
11275 | fi | |
11276 | archive_cmds_need_lc='no' | |
11277 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11278 | hardcode_libdir_separator=: | |
11279 | inherit_rpath=yes | |
11280 | link_all_deplibs=yes | |
11281 | ;; | |
11282 | ||
11283 | netbsd*) | |
11284 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11285 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11286 | else | |
11287 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11288 | fi | |
11289 | hardcode_libdir_flag_spec='-R$libdir' | |
11290 | hardcode_direct=yes | |
11291 | hardcode_shlibpath_var=no | |
11292 | ;; | |
11293 | ||
11294 | newsos6) | |
11295 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11296 | hardcode_direct=yes | |
11297 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11298 | hardcode_libdir_separator=: | |
11299 | hardcode_shlibpath_var=no | |
11300 | ;; | |
11301 | ||
11302 | *nto* | *qnx*) | |
11303 | ;; | |
11304 | ||
11305 | openbsd*) | |
11306 | if test -f /usr/libexec/ld.so; then | |
11307 | hardcode_direct=yes | |
11308 | hardcode_shlibpath_var=no | |
11309 | hardcode_direct_absolute=yes | |
11310 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11311 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11312 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
11313 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11314 | export_dynamic_flag_spec='${wl}-E' | |
11315 | else | |
11316 | case $host_os in | |
11317 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11318 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11319 | hardcode_libdir_flag_spec='-R$libdir' | |
11320 | ;; | |
11321 | *) | |
11322 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11323 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11324 | ;; | |
11325 | esac | |
11326 | fi | |
11327 | else | |
11328 | ld_shlibs=no | |
11329 | fi | |
11330 | ;; | |
11331 | ||
11332 | os2*) | |
11333 | hardcode_libdir_flag_spec='-L$libdir' | |
11334 | hardcode_minus_L=yes | |
11335 | allow_undefined_flag=unsupported | |
11336 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
11337 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11338 | ;; | |
11339 | ||
11340 | osf3*) | |
11341 | if test "$GCC" = yes; then | |
11342 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11343 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11344 | else | |
11345 | allow_undefined_flag=' -expect_unresolved \*' | |
11346 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
11347 | fi | |
11348 | archive_cmds_need_lc='no' | |
11349 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11350 | hardcode_libdir_separator=: | |
11351 | ;; | |
11352 | ||
11353 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11354 | if test "$GCC" = yes; then | |
11355 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11356 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11357 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11358 | else | |
11359 | allow_undefined_flag=' -expect_unresolved \*' | |
11360 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
11361 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
11362 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
11363 | ||
11364 | # Both c and cxx compiler support -rpath directly | |
11365 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11366 | fi | |
11367 | archive_cmds_need_lc='no' | |
11368 | hardcode_libdir_separator=: | |
11369 | ;; | |
11370 | ||
11371 | solaris*) | |
11372 | no_undefined_flag=' -z defs' | |
11373 | if test "$GCC" = yes; then | |
11374 | wlarc='${wl}' | |
11375 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11376 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11377 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11378 | else | |
11379 | case `$CC -V 2>&1` in | |
11380 | *"Compilers 5.0"*) | |
11381 | wlarc='' | |
11382 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11383 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11384 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11385 | ;; | |
11386 | *) | |
11387 | wlarc='${wl}' | |
11388 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11389 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11390 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11391 | ;; | |
11392 | esac | |
11393 | fi | |
11394 | hardcode_libdir_flag_spec='-R$libdir' | |
11395 | hardcode_shlibpath_var=no | |
11396 | case $host_os in | |
11397 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11398 | *) | |
11399 | # The compiler driver will combine and reorder linker options, | |
11400 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11401 | # but is careful enough not to reorder. | |
11402 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11403 | if test "$GCC" = yes; then | |
11404 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11405 | else | |
11406 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11407 | fi | |
11408 | ;; | |
11409 | esac | |
11410 | link_all_deplibs=yes | |
11411 | ;; | |
11412 | ||
11413 | sunos4*) | |
11414 | if test "x$host_vendor" = xsequent; then | |
11415 | # Use $CC to link under sequent, because it throws in some extra .o | |
11416 | # files that make .init and .fini sections work. | |
11417 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11418 | else | |
11419 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11420 | fi | |
11421 | hardcode_libdir_flag_spec='-L$libdir' | |
11422 | hardcode_direct=yes | |
11423 | hardcode_minus_L=yes | |
11424 | hardcode_shlibpath_var=no | |
11425 | ;; | |
11426 | ||
11427 | sysv4) | |
11428 | case $host_vendor in | |
11429 | sni) | |
11430 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11431 | hardcode_direct=yes # is this really true??? | |
11432 | ;; | |
11433 | siemens) | |
11434 | ## LD is ld it makes a PLAMLIB | |
11435 | ## CC just makes a GrossModule. | |
11436 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11437 | reload_cmds='$CC -r -o $output$reload_objs' | |
11438 | hardcode_direct=no | |
11439 | ;; | |
11440 | motorola) | |
11441 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11442 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11443 | ;; | |
11444 | esac | |
11445 | runpath_var='LD_RUN_PATH' | |
11446 | hardcode_shlibpath_var=no | |
11447 | ;; | |
11448 | ||
11449 | sysv4.3*) | |
11450 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11451 | hardcode_shlibpath_var=no | |
11452 | export_dynamic_flag_spec='-Bexport' | |
11453 | ;; | |
11454 | ||
11455 | sysv4*MP*) | |
11456 | if test -d /usr/nec; then | |
11457 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11458 | hardcode_shlibpath_var=no | |
11459 | runpath_var=LD_RUN_PATH | |
11460 | hardcode_runpath_var=yes | |
11461 | ld_shlibs=yes | |
11462 | fi | |
11463 | ;; | |
11464 | ||
11465 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11466 | no_undefined_flag='${wl}-z,text' | |
11467 | archive_cmds_need_lc=no | |
11468 | hardcode_shlibpath_var=no | |
11469 | runpath_var='LD_RUN_PATH' | |
11470 | ||
11471 | if test "$GCC" = yes; then | |
11472 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11473 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11474 | else | |
11475 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11476 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11477 | fi | |
11478 | ;; | |
11479 | ||
11480 | sysv5* | sco3.2v5* | sco5v6*) | |
11481 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11482 | # link with -lc, and that would cause any symbols used from libc to | |
11483 | # always be unresolved, which means just about no library would | |
11484 | # ever link correctly. If we're not using GNU ld we use -z text | |
11485 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11486 | # as -z defs. | |
11487 | no_undefined_flag='${wl}-z,text' | |
11488 | allow_undefined_flag='${wl}-z,nodefs' | |
11489 | archive_cmds_need_lc=no | |
11490 | hardcode_shlibpath_var=no | |
11491 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11492 | hardcode_libdir_separator=':' | |
11493 | link_all_deplibs=yes | |
11494 | export_dynamic_flag_spec='${wl}-Bexport' | |
11495 | runpath_var='LD_RUN_PATH' | |
11496 | ||
11497 | if test "$GCC" = yes; then | |
11498 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11499 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11500 | else | |
11501 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11502 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11503 | fi | |
11504 | ;; | |
11505 | ||
11506 | uts4*) | |
11507 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11508 | hardcode_libdir_flag_spec='-L$libdir' | |
11509 | hardcode_shlibpath_var=no | |
11510 | ;; | |
11511 | ||
11512 | *) | |
11513 | ld_shlibs=no | |
11514 | ;; | |
11515 | esac | |
11516 | ||
11517 | if test x$host_vendor = xsni; then | |
11518 | case $host in | |
11519 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11520 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11521 | ;; | |
11522 | esac | |
11523 | fi | |
11524 | fi | |
11525 | ||
11526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11527 | $as_echo "$ld_shlibs" >&6; } | |
11528 | test "$ld_shlibs" = no && can_build_shared=no | |
11529 | ||
11530 | with_gnu_ld=$with_gnu_ld | |
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | ||
11543 | ||
11544 | ||
11545 | ||
11546 | # | |
11547 | # Do we need to explicitly link libc? | |
11548 | # | |
11549 | case "x$archive_cmds_need_lc" in | |
11550 | x|xyes) | |
11551 | # Assume -lc should be added | |
11552 | archive_cmds_need_lc=yes | |
11553 | ||
11554 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11555 | case $archive_cmds in | |
11556 | *'~'*) | |
11557 | # FIXME: we may have to deal with multi-command sequences. | |
11558 | ;; | |
11559 | '$CC '*) | |
11560 | # Test whether the compiler implicitly links with -lc since on some | |
11561 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11562 | # to ld, don't add -lc before -lgcc. | |
11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11564 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11565 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11566 | $as_echo_n "(cached) " >&6 | |
11567 | else | |
11568 | $RM conftest* | |
11569 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11570 | ||
11571 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11572 | (eval $ac_compile) 2>&5 | |
11573 | ac_status=$? | |
11574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11575 | test $ac_status = 0; } 2>conftest.err; then | |
11576 | soname=conftest | |
11577 | lib=conftest | |
11578 | libobjs=conftest.$ac_objext | |
11579 | deplibs= | |
11580 | wl=$lt_prog_compiler_wl | |
11581 | pic_flag=$lt_prog_compiler_pic | |
11582 | compiler_flags=-v | |
11583 | linker_flags=-v | |
11584 | verstring= | |
11585 | output_objdir=. | |
11586 | libname=conftest | |
11587 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11588 | allow_undefined_flag= | |
11589 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11590 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11591 | ac_status=$? | |
11592 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11593 | test $ac_status = 0; } | |
11594 | then | |
11595 | lt_cv_archive_cmds_need_lc=no | |
11596 | else | |
11597 | lt_cv_archive_cmds_need_lc=yes | |
11598 | fi | |
11599 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11600 | else | |
11601 | cat conftest.err 1>&5 | |
11602 | fi | |
11603 | $RM conftest* | |
11604 | ||
11605 | fi | |
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11607 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11608 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11609 | ;; | |
11610 | esac | |
11611 | fi | |
11612 | ;; | |
11613 | esac | |
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
11651 | ||
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
11689 | ||
11690 | ||
11691 | ||
11692 | ||
11693 | ||
11694 | ||
11695 | ||
11696 | ||
11697 | ||
11698 | ||
11699 | ||
11700 | ||
11701 | ||
11702 | ||
11703 | ||
11704 | ||
11705 | ||
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | ||
11711 | ||
11712 | ||
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | ||
11731 | ||
11732 | ||
11733 | ||
11734 | ||
11735 | ||
11736 | ||
11737 | ||
11738 | ||
11739 | ||
11740 | ||
11741 | ||
11742 | ||
11743 | ||
11744 | ||
11745 | ||
11746 | ||
11747 | ||
11748 | ||
11749 | ||
11750 | ||
11751 | ||
11752 | ||
11753 | ||
11754 | ||
11755 | ||
11756 | ||
11757 | ||
11758 | ||
11759 | ||
11760 | ||
11761 | ||
11762 | ||
11763 | ||
11764 | ||
11765 | ||
11766 | ||
11767 | ||
11768 | ||
11769 | ||
11770 | ||
11771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11772 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11773 | ||
11774 | if test "$GCC" = yes; then | |
11775 | case $host_os in | |
11776 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11777 | *) lt_awk_arg="/^libraries:/" ;; | |
11778 | esac | |
11779 | case $host_os in | |
11780 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11781 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11782 | esac | |
11783 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11784 | case $lt_search_path_spec in | |
11785 | *\;*) | |
11786 | # if the path contains ";" then we assume it to be the separator | |
11787 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11788 | # assumed that no part of a normal pathname contains ";" but that should | |
11789 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11790 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11791 | ;; | |
11792 | *) | |
11793 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11794 | ;; | |
11795 | esac | |
11796 | # Ok, now we have the path, separated by spaces, we can step through it | |
11797 | # and add multilib dir if necessary. | |
11798 | lt_tmp_lt_search_path_spec= | |
11799 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11800 | for lt_sys_path in $lt_search_path_spec; do | |
11801 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11802 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11803 | else | |
11804 | test -d "$lt_sys_path" && \ | |
11805 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11806 | fi | |
11807 | done | |
11808 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11809 | BEGIN {RS=" "; FS="/|\n";} { | |
11810 | lt_foo=""; | |
11811 | lt_count=0; | |
11812 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11813 | if ($lt_i != "" && $lt_i != ".") { | |
11814 | if ($lt_i == "..") { | |
11815 | lt_count++; | |
11816 | } else { | |
11817 | if (lt_count == 0) { | |
11818 | lt_foo="/" $lt_i lt_foo; | |
11819 | } else { | |
11820 | lt_count--; | |
11821 | } | |
11822 | } | |
11823 | } | |
11824 | } | |
11825 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11826 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11827 | }'` | |
11828 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11829 | # for these hosts. | |
11830 | case $host_os in | |
11831 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11832 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11833 | esac | |
11834 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11835 | else | |
11836 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11837 | fi | |
11838 | library_names_spec= | |
11839 | libname_spec='lib$name' | |
11840 | soname_spec= | |
11841 | shrext_cmds=".so" | |
11842 | postinstall_cmds= | |
11843 | postuninstall_cmds= | |
11844 | finish_cmds= | |
11845 | finish_eval= | |
11846 | shlibpath_var= | |
11847 | shlibpath_overrides_runpath=unknown | |
11848 | version_type=none | |
11849 | dynamic_linker="$host_os ld.so" | |
11850 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11851 | need_lib_prefix=unknown | |
11852 | hardcode_into_libs=no | |
11853 | ||
11854 | # when you set need_version to no, make sure it does not cause -set_version | |
11855 | # flags to be left without arguments | |
11856 | need_version=unknown | |
11857 | ||
11858 | case $host_os in | |
11859 | aix3*) | |
11860 | version_type=linux | |
11861 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11862 | shlibpath_var=LIBPATH | |
11863 | ||
11864 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11865 | soname_spec='${libname}${release}${shared_ext}$major' | |
11866 | ;; | |
11867 | ||
11868 | aix[4-9]*) | |
11869 | version_type=linux | |
11870 | need_lib_prefix=no | |
11871 | need_version=no | |
11872 | hardcode_into_libs=yes | |
11873 | if test "$host_cpu" = ia64; then | |
11874 | # AIX 5 supports IA64 | |
11875 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11876 | shlibpath_var=LD_LIBRARY_PATH | |
11877 | else | |
11878 | # With GCC up to 2.95.x, collect2 would create an import file | |
11879 | # for dependence libraries. The import file would start with | |
11880 | # the line `#! .'. This would cause the generated library to | |
11881 | # depend on `.', always an invalid library. This was fixed in | |
11882 | # development snapshots of GCC prior to 3.0. | |
11883 | case $host_os in | |
11884 | aix4 | aix4.[01] | aix4.[01].*) | |
11885 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11886 | echo ' yes ' | |
11887 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11888 | : | |
11889 | else | |
11890 | can_build_shared=no | |
11891 | fi | |
11892 | ;; | |
11893 | esac | |
11894 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11895 | # soname into executable. Probably we can add versioning support to | |
11896 | # collect2, so additional links can be useful in future. | |
11897 | if test "$aix_use_runtimelinking" = yes; then | |
11898 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11899 | # instead of lib<name>.a to let people know that these are not | |
11900 | # typical AIX shared libraries. | |
11901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11902 | else | |
11903 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11904 | # and later when we are not doing run time linking. | |
11905 | library_names_spec='${libname}${release}.a $libname.a' | |
11906 | soname_spec='${libname}${release}${shared_ext}$major' | |
11907 | fi | |
11908 | shlibpath_var=LIBPATH | |
11909 | fi | |
11910 | ;; | |
11911 | ||
11912 | amigaos*) | |
11913 | case $host_cpu in | |
11914 | powerpc) | |
11915 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11916 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11918 | ;; | |
11919 | m68k) | |
11920 | library_names_spec='$libname.ixlibrary $libname.a' | |
11921 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11922 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
11923 | ;; | |
11924 | esac | |
11925 | ;; | |
11926 | ||
11927 | beos*) | |
11928 | library_names_spec='${libname}${shared_ext}' | |
11929 | dynamic_linker="$host_os ld.so" | |
11930 | shlibpath_var=LIBRARY_PATH | |
11931 | ;; | |
11932 | ||
11933 | bsdi[45]*) | |
11934 | version_type=linux | |
11935 | need_version=no | |
11936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11937 | soname_spec='${libname}${release}${shared_ext}$major' | |
11938 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11939 | shlibpath_var=LD_LIBRARY_PATH | |
11940 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11941 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11942 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11943 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11944 | # libtool to hard-code these into programs | |
11945 | ;; | |
11946 | ||
11947 | cygwin* | mingw* | pw32* | cegcc*) | |
11948 | version_type=windows | |
11949 | shrext_cmds=".dll" | |
11950 | need_version=no | |
11951 | need_lib_prefix=no | |
11952 | ||
11953 | case $GCC,$host_os in | |
11954 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11955 | library_names_spec='$libname.dll.a' | |
11956 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11957 | postinstall_cmds='base_file=`basename \${file}`~ | |
11958 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11959 | dldir=$destdir/`dirname \$dlpath`~ | |
11960 | test -d \$dldir || mkdir -p \$dldir~ | |
11961 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11962 | chmod a+x \$dldir/$dlname~ | |
11963 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11964 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11965 | fi' | |
11966 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11967 | dlpath=$dir/\$dldll~ | |
11968 | $RM \$dlpath' | |
11969 | shlibpath_overrides_runpath=yes | |
11970 | ||
11971 | case $host_os in | |
11972 | cygwin*) | |
11973 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11974 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11975 | ||
11976 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11977 | ;; | |
11978 | mingw* | cegcc*) | |
11979 | # MinGW DLLs use traditional 'lib' prefix | |
11980 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11981 | ;; | |
11982 | pw32*) | |
11983 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11984 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11985 | ;; | |
11986 | esac | |
11987 | ;; | |
11988 | ||
11989 | *) | |
11990 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11991 | ;; | |
11992 | esac | |
11993 | dynamic_linker='Win32 ld.exe' | |
11994 | # FIXME: first we should search . and the directory the executable is in | |
11995 | shlibpath_var=PATH | |
11996 | ;; | |
11997 | ||
11998 | darwin* | rhapsody*) | |
11999 | dynamic_linker="$host_os dyld" | |
12000 | version_type=darwin | |
12001 | need_lib_prefix=no | |
12002 | need_version=no | |
12003 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12004 | soname_spec='${libname}${release}${major}$shared_ext' | |
12005 | shlibpath_overrides_runpath=yes | |
12006 | shlibpath_var=DYLD_LIBRARY_PATH | |
12007 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12008 | ||
12009 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
12010 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12011 | ;; | |
12012 | ||
12013 | dgux*) | |
12014 | version_type=linux | |
12015 | need_lib_prefix=no | |
12016 | need_version=no | |
12017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12018 | soname_spec='${libname}${release}${shared_ext}$major' | |
12019 | shlibpath_var=LD_LIBRARY_PATH | |
12020 | ;; | |
12021 | ||
12022 | freebsd* | dragonfly*) | |
12023 | # DragonFly does not have aout. When/if they implement a new | |
12024 | # versioning mechanism, adjust this. | |
12025 | if test -x /usr/bin/objformat; then | |
12026 | objformat=`/usr/bin/objformat` | |
12027 | else | |
12028 | case $host_os in | |
12029 | freebsd[23].*) objformat=aout ;; | |
12030 | *) objformat=elf ;; | |
12031 | esac | |
12032 | fi | |
12033 | version_type=freebsd-$objformat | |
12034 | case $version_type in | |
12035 | freebsd-elf*) | |
12036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12037 | need_version=no | |
12038 | need_lib_prefix=no | |
12039 | ;; | |
12040 | freebsd-*) | |
12041 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12042 | need_version=yes | |
12043 | ;; | |
12044 | esac | |
12045 | shlibpath_var=LD_LIBRARY_PATH | |
12046 | case $host_os in | |
12047 | freebsd2.*) | |
12048 | shlibpath_overrides_runpath=yes | |
12049 | ;; | |
12050 | freebsd3.[01]* | freebsdelf3.[01]*) | |
12051 | shlibpath_overrides_runpath=yes | |
12052 | hardcode_into_libs=yes | |
12053 | ;; | |
12054 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12055 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12056 | shlibpath_overrides_runpath=no | |
12057 | hardcode_into_libs=yes | |
12058 | ;; | |
12059 | *) # from 4.6 on, and DragonFly | |
12060 | shlibpath_overrides_runpath=yes | |
12061 | hardcode_into_libs=yes | |
12062 | ;; | |
12063 | esac | |
12064 | ;; | |
12065 | ||
12066 | haiku*) | |
12067 | version_type=linux | |
12068 | need_lib_prefix=no | |
12069 | need_version=no | |
12070 | dynamic_linker="$host_os runtime_loader" | |
12071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12072 | soname_spec='${libname}${release}${shared_ext}$major' | |
12073 | shlibpath_var=LIBRARY_PATH | |
12074 | shlibpath_overrides_runpath=yes | |
99aedb62 | 12075 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
b5689863 MF |
12076 | hardcode_into_libs=yes |
12077 | ;; | |
12078 | ||
12079 | hpux9* | hpux10* | hpux11*) | |
12080 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12081 | # link against other versions. | |
12082 | version_type=sunos | |
12083 | need_lib_prefix=no | |
12084 | need_version=no | |
12085 | case $host_cpu in | |
12086 | ia64*) | |
12087 | shrext_cmds='.so' | |
12088 | hardcode_into_libs=yes | |
12089 | dynamic_linker="$host_os dld.so" | |
12090 | shlibpath_var=LD_LIBRARY_PATH | |
12091 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12093 | soname_spec='${libname}${release}${shared_ext}$major' | |
12094 | if test "X$HPUX_IA64_MODE" = X32; then | |
12095 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12096 | else | |
12097 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12098 | fi | |
12099 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12100 | ;; | |
12101 | hppa*64*) | |
12102 | shrext_cmds='.sl' | |
12103 | hardcode_into_libs=yes | |
12104 | dynamic_linker="$host_os dld.sl" | |
12105 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12106 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12108 | soname_spec='${libname}${release}${shared_ext}$major' | |
12109 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12110 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12111 | ;; | |
12112 | *) | |
12113 | shrext_cmds='.sl' | |
12114 | dynamic_linker="$host_os dld.sl" | |
12115 | shlibpath_var=SHLIB_PATH | |
12116 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12118 | soname_spec='${libname}${release}${shared_ext}$major' | |
12119 | ;; | |
12120 | esac | |
12121 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
12122 | postinstall_cmds='chmod 555 $lib' | |
12123 | # or fails outright, so override atomically: | |
12124 | install_override_mode=555 | |
12125 | ;; | |
12126 | ||
12127 | interix[3-9]*) | |
12128 | version_type=linux | |
12129 | need_lib_prefix=no | |
12130 | need_version=no | |
12131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12132 | soname_spec='${libname}${release}${shared_ext}$major' | |
12133 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12134 | shlibpath_var=LD_LIBRARY_PATH | |
12135 | shlibpath_overrides_runpath=no | |
12136 | hardcode_into_libs=yes | |
12137 | ;; | |
12138 | ||
12139 | irix5* | irix6* | nonstopux*) | |
12140 | case $host_os in | |
12141 | nonstopux*) version_type=nonstopux ;; | |
12142 | *) | |
12143 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12144 | version_type=linux | |
12145 | else | |
12146 | version_type=irix | |
12147 | fi ;; | |
12148 | esac | |
12149 | need_lib_prefix=no | |
12150 | need_version=no | |
12151 | soname_spec='${libname}${release}${shared_ext}$major' | |
12152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12153 | case $host_os in | |
12154 | irix5* | nonstopux*) | |
12155 | libsuff= shlibsuff= | |
12156 | ;; | |
12157 | *) | |
12158 | case $LD in # libtool.m4 will add one of these switches to LD | |
12159 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12160 | libsuff= shlibsuff= libmagic=32-bit;; | |
12161 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12162 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12163 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12164 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12165 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12166 | esac | |
12167 | ;; | |
12168 | esac | |
12169 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12170 | shlibpath_overrides_runpath=no | |
12171 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12172 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12173 | hardcode_into_libs=yes | |
12174 | ;; | |
12175 | ||
12176 | # No shared lib support for Linux oldld, aout, or coff. | |
12177 | linux*oldld* | linux*aout* | linux*coff*) | |
12178 | dynamic_linker=no | |
12179 | ;; | |
12180 | ||
12181 | # This must be Linux ELF. | |
6a6859cb AM |
12182 | |
12183 | # uclinux* changes (here and below) have been submitted to the libtool | |
12184 | # project, but have not yet been accepted: they are GCC-local changes | |
12185 | # for the time being. (See | |
12186 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
12187 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) | |
b5689863 MF |
12188 | version_type=linux |
12189 | need_lib_prefix=no | |
12190 | need_version=no | |
12191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12192 | soname_spec='${libname}${release}${shared_ext}$major' | |
12193 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12194 | shlibpath_var=LD_LIBRARY_PATH | |
12195 | shlibpath_overrides_runpath=no | |
12196 | ||
12197 | # Some binutils ld are patched to set DT_RUNPATH | |
12198 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
12199 | $as_echo_n "(cached) " >&6 | |
12200 | else | |
12201 | lt_cv_shlibpath_overrides_runpath=no | |
12202 | save_LDFLAGS=$LDFLAGS | |
12203 | save_libdir=$libdir | |
12204 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12205 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12207 | /* end confdefs.h. */ | |
12208 | ||
12209 | int | |
12210 | main () | |
12211 | { | |
12212 | ||
12213 | ; | |
12214 | return 0; | |
12215 | } | |
12216 | _ACEOF | |
12217 | if ac_fn_c_try_link "$LINENO"; then : | |
12218 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
12219 | lt_cv_shlibpath_overrides_runpath=yes | |
12220 | fi | |
12221 | fi | |
12222 | rm -f core conftest.err conftest.$ac_objext \ | |
12223 | conftest$ac_exeext conftest.$ac_ext | |
12224 | LDFLAGS=$save_LDFLAGS | |
12225 | libdir=$save_libdir | |
12226 | ||
12227 | fi | |
12228 | ||
12229 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
12230 | ||
12231 | # This implies no fast_install, which is unacceptable. | |
12232 | # Some rework will be needed to allow for fast_install | |
12233 | # before this can be enabled. | |
12234 | hardcode_into_libs=yes | |
12235 | ||
12236 | # Append ld.so.conf contents to the search path | |
12237 | if test -f /etc/ld.so.conf; then | |
12238 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
12239 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12240 | fi | |
12241 | ||
12242 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12243 | # powerpc, because MkLinux only supported shared libraries with the | |
12244 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12245 | # most powerpc-linux boxes support dynamic linking these days and | |
12246 | # people can always --disable-shared, the test was removed, and we | |
12247 | # assume the GNU/Linux dynamic linker is in use. | |
12248 | dynamic_linker='GNU/Linux ld.so' | |
12249 | ;; | |
12250 | ||
12251 | netbsd*) | |
12252 | version_type=sunos | |
12253 | need_lib_prefix=no | |
12254 | need_version=no | |
12255 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12257 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12258 | dynamic_linker='NetBSD (a.out) ld.so' | |
12259 | else | |
12260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12261 | soname_spec='${libname}${release}${shared_ext}$major' | |
12262 | dynamic_linker='NetBSD ld.elf_so' | |
12263 | fi | |
12264 | shlibpath_var=LD_LIBRARY_PATH | |
12265 | shlibpath_overrides_runpath=yes | |
12266 | hardcode_into_libs=yes | |
12267 | ;; | |
12268 | ||
12269 | newsos6) | |
12270 | version_type=linux | |
12271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12272 | shlibpath_var=LD_LIBRARY_PATH | |
12273 | shlibpath_overrides_runpath=yes | |
12274 | ;; | |
12275 | ||
12276 | *nto* | *qnx*) | |
12277 | version_type=qnx | |
12278 | need_lib_prefix=no | |
12279 | need_version=no | |
12280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12281 | soname_spec='${libname}${release}${shared_ext}$major' | |
12282 | shlibpath_var=LD_LIBRARY_PATH | |
12283 | shlibpath_overrides_runpath=no | |
12284 | hardcode_into_libs=yes | |
12285 | dynamic_linker='ldqnx.so' | |
12286 | ;; | |
12287 | ||
12288 | openbsd*) | |
12289 | version_type=sunos | |
12290 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12291 | need_lib_prefix=no | |
12292 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12293 | case $host_os in | |
12294 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12295 | *) need_version=no ;; | |
12296 | esac | |
12297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12298 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12299 | shlibpath_var=LD_LIBRARY_PATH | |
12300 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12301 | case $host_os in | |
12302 | openbsd2.[89] | openbsd2.[89].*) | |
12303 | shlibpath_overrides_runpath=no | |
12304 | ;; | |
12305 | *) | |
12306 | shlibpath_overrides_runpath=yes | |
12307 | ;; | |
12308 | esac | |
12309 | else | |
12310 | shlibpath_overrides_runpath=yes | |
12311 | fi | |
12312 | ;; | |
12313 | ||
12314 | os2*) | |
12315 | libname_spec='$name' | |
12316 | shrext_cmds=".dll" | |
12317 | need_lib_prefix=no | |
12318 | library_names_spec='$libname${shared_ext} $libname.a' | |
12319 | dynamic_linker='OS/2 ld.exe' | |
12320 | shlibpath_var=LIBPATH | |
12321 | ;; | |
12322 | ||
12323 | osf3* | osf4* | osf5*) | |
12324 | version_type=osf | |
12325 | need_lib_prefix=no | |
12326 | need_version=no | |
12327 | soname_spec='${libname}${release}${shared_ext}$major' | |
12328 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12329 | shlibpath_var=LD_LIBRARY_PATH | |
12330 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12331 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12332 | ;; | |
12333 | ||
12334 | rdos*) | |
12335 | dynamic_linker=no | |
12336 | ;; | |
12337 | ||
12338 | solaris*) | |
12339 | version_type=linux | |
12340 | need_lib_prefix=no | |
12341 | need_version=no | |
12342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12343 | soname_spec='${libname}${release}${shared_ext}$major' | |
12344 | shlibpath_var=LD_LIBRARY_PATH | |
12345 | shlibpath_overrides_runpath=yes | |
12346 | hardcode_into_libs=yes | |
12347 | # ldd complains unless libraries are executable | |
12348 | postinstall_cmds='chmod +x $lib' | |
12349 | ;; | |
12350 | ||
12351 | sunos4*) | |
12352 | version_type=sunos | |
12353 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12354 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12355 | shlibpath_var=LD_LIBRARY_PATH | |
12356 | shlibpath_overrides_runpath=yes | |
12357 | if test "$with_gnu_ld" = yes; then | |
12358 | need_lib_prefix=no | |
12359 | fi | |
12360 | need_version=yes | |
12361 | ;; | |
12362 | ||
12363 | sysv4 | sysv4.3*) | |
12364 | version_type=linux | |
12365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12366 | soname_spec='${libname}${release}${shared_ext}$major' | |
12367 | shlibpath_var=LD_LIBRARY_PATH | |
12368 | case $host_vendor in | |
12369 | sni) | |
12370 | shlibpath_overrides_runpath=no | |
12371 | need_lib_prefix=no | |
12372 | runpath_var=LD_RUN_PATH | |
12373 | ;; | |
12374 | siemens) | |
12375 | need_lib_prefix=no | |
12376 | ;; | |
12377 | motorola) | |
12378 | need_lib_prefix=no | |
12379 | need_version=no | |
12380 | shlibpath_overrides_runpath=no | |
12381 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12382 | ;; | |
12383 | esac | |
12384 | ;; | |
12385 | ||
12386 | sysv4*MP*) | |
12387 | if test -d /usr/nec ;then | |
12388 | version_type=linux | |
12389 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12390 | soname_spec='$libname${shared_ext}.$major' | |
12391 | shlibpath_var=LD_LIBRARY_PATH | |
12392 | fi | |
12393 | ;; | |
12394 | ||
12395 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12396 | version_type=freebsd-elf | |
12397 | need_lib_prefix=no | |
12398 | need_version=no | |
12399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12400 | soname_spec='${libname}${release}${shared_ext}$major' | |
12401 | shlibpath_var=LD_LIBRARY_PATH | |
12402 | shlibpath_overrides_runpath=yes | |
12403 | hardcode_into_libs=yes | |
12404 | if test "$with_gnu_ld" = yes; then | |
12405 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12406 | else | |
12407 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12408 | case $host_os in | |
12409 | sco3.2v5*) | |
12410 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12411 | ;; | |
12412 | esac | |
12413 | fi | |
12414 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12415 | ;; | |
12416 | ||
12417 | tpf*) | |
12418 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12419 | version_type=linux | |
12420 | need_lib_prefix=no | |
12421 | need_version=no | |
12422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12423 | shlibpath_var=LD_LIBRARY_PATH | |
12424 | shlibpath_overrides_runpath=no | |
12425 | hardcode_into_libs=yes | |
12426 | ;; | |
12427 | ||
12428 | uts4*) | |
12429 | version_type=linux | |
12430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12431 | soname_spec='${libname}${release}${shared_ext}$major' | |
12432 | shlibpath_var=LD_LIBRARY_PATH | |
12433 | ;; | |
12434 | ||
6a6859cb AM |
12435 | # Shared libraries for VwWorks, >= 7 only at this stage |
12436 | # and (fpic) still incompatible with "large" code models | |
12437 | # in a few configurations. Only for RTP mode in any case, | |
12438 | # and upon explicit request at configure time. | |
12439 | vxworks7*) | |
12440 | dynamic_linker=no | |
12441 | case ${with_multisubdir}-${enable_shared} in | |
12442 | *large*) | |
12443 | ;; | |
12444 | *mrtp*-yes) | |
12445 | version_type=linux | |
12446 | need_lib_prefix=no | |
12447 | need_version=no | |
12448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12449 | soname_spec='${libname}${release}${shared_ext}$major' | |
12450 | dynamic_linker="$host_os module_loader" | |
12451 | ;; | |
12452 | esac | |
12453 | ;; | |
b5689863 MF |
12454 | *) |
12455 | dynamic_linker=no | |
12456 | ;; | |
12457 | esac | |
12458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12459 | $as_echo "$dynamic_linker" >&6; } | |
12460 | test "$dynamic_linker" = no && can_build_shared=no | |
12461 | ||
12462 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12463 | if test "$GCC" = yes; then | |
12464 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12465 | fi | |
12466 | ||
12467 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
12468 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12469 | fi | |
12470 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12471 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12472 | fi | |
12473 | ||
12474 | ||
12475 | ||
12476 | ||
12477 | ||
12478 | ||
12479 | ||
12480 | ||
12481 | ||
12482 | ||
12483 | ||
12484 | ||
12485 | ||
12486 | ||
12487 | ||
12488 | ||
12489 | ||
12490 | ||
12491 | ||
12492 | ||
12493 | ||
12494 | ||
12495 | ||
12496 | ||
12497 | ||
12498 | ||
12499 | ||
12500 | ||
12501 | ||
12502 | ||
12503 | ||
12504 | ||
12505 | ||
12506 | ||
12507 | ||
12508 | ||
12509 | ||
12510 | ||
12511 | ||
12512 | ||
12513 | ||
12514 | ||
12515 | ||
12516 | ||
12517 | ||
12518 | ||
12519 | ||
12520 | ||
12521 | ||
12522 | ||
12523 | ||
12524 | ||
12525 | ||
12526 | ||
12527 | ||
12528 | ||
12529 | ||
12530 | ||
12531 | ||
12532 | ||
12533 | ||
12534 | ||
12535 | ||
12536 | ||
12537 | ||
12538 | ||
12539 | ||
12540 | ||
12541 | ||
12542 | ||
12543 | ||
12544 | ||
12545 | ||
12546 | ||
12547 | ||
12548 | ||
12549 | ||
12550 | ||
12551 | ||
12552 | ||
12553 | ||
12554 | ||
12555 | ||
12556 | ||
12557 | ||
12558 | ||
12559 | ||
12560 | ||
12561 | ||
12562 | ||
12563 | ||
12564 | ||
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12566 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12567 | hardcode_action= | |
12568 | if test -n "$hardcode_libdir_flag_spec" || | |
12569 | test -n "$runpath_var" || | |
12570 | test "X$hardcode_automatic" = "Xyes" ; then | |
12571 | ||
12572 | # We can hardcode non-existent directories. | |
12573 | if test "$hardcode_direct" != no && | |
12574 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12575 | # have to relink, otherwise we might link with an installed library | |
12576 | # when we should be linking with a yet-to-be-installed one | |
12577 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12578 | test "$hardcode_minus_L" != no; then | |
12579 | # Linking always hardcodes the temporary library directory. | |
12580 | hardcode_action=relink | |
12581 | else | |
12582 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12583 | hardcode_action=immediate | |
12584 | fi | |
12585 | else | |
12586 | # We cannot hardcode anything, or else we can only hardcode existing | |
12587 | # directories. | |
12588 | hardcode_action=unsupported | |
12589 | fi | |
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12591 | $as_echo "$hardcode_action" >&6; } | |
12592 | ||
12593 | if test "$hardcode_action" = relink || | |
12594 | test "$inherit_rpath" = yes; then | |
12595 | # Fast installation is not supported | |
12596 | enable_fast_install=no | |
12597 | elif test "$shlibpath_overrides_runpath" = yes || | |
12598 | test "$enable_shared" = no; then | |
12599 | # Fast installation is not necessary | |
12600 | enable_fast_install=needless | |
12601 | fi | |
12602 | ||
12603 | ||
12604 | ||
12605 | ||
12606 | ||
12607 | ||
12608 | if test "x$enable_dlopen" != xyes; then | |
12609 | enable_dlopen=unknown | |
12610 | enable_dlopen_self=unknown | |
12611 | enable_dlopen_self_static=unknown | |
12612 | else | |
12613 | lt_cv_dlopen=no | |
12614 | lt_cv_dlopen_libs= | |
12615 | ||
12616 | case $host_os in | |
12617 | beos*) | |
12618 | lt_cv_dlopen="load_add_on" | |
12619 | lt_cv_dlopen_libs= | |
12620 | lt_cv_dlopen_self=yes | |
12621 | ;; | |
12622 | ||
12623 | mingw* | pw32* | cegcc*) | |
12624 | lt_cv_dlopen="LoadLibrary" | |
12625 | lt_cv_dlopen_libs= | |
12626 | ;; | |
12627 | ||
12628 | cygwin*) | |
12629 | lt_cv_dlopen="dlopen" | |
12630 | lt_cv_dlopen_libs= | |
12631 | ;; | |
12632 | ||
12633 | darwin*) | |
12634 | # if libdl is installed we need to link against it | |
12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12636 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12637 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12638 | $as_echo_n "(cached) " >&6 | |
12639 | else | |
12640 | ac_check_lib_save_LIBS=$LIBS | |
12641 | LIBS="-ldl $LIBS" | |
12642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12643 | /* end confdefs.h. */ | |
12644 | ||
12645 | /* Override any GCC internal prototype to avoid an error. | |
12646 | Use char because int might match the return type of a GCC | |
12647 | builtin and then its argument prototype would still apply. */ | |
12648 | #ifdef __cplusplus | |
12649 | extern "C" | |
12650 | #endif | |
12651 | char dlopen (); | |
12652 | int | |
12653 | main () | |
12654 | { | |
12655 | return dlopen (); | |
12656 | ; | |
12657 | return 0; | |
12658 | } | |
12659 | _ACEOF | |
12660 | if ac_fn_c_try_link "$LINENO"; then : | |
12661 | ac_cv_lib_dl_dlopen=yes | |
12662 | else | |
12663 | ac_cv_lib_dl_dlopen=no | |
12664 | fi | |
12665 | rm -f core conftest.err conftest.$ac_objext \ | |
12666 | conftest$ac_exeext conftest.$ac_ext | |
12667 | LIBS=$ac_check_lib_save_LIBS | |
12668 | fi | |
12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12670 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12671 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12672 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12673 | else | |
12674 | ||
12675 | lt_cv_dlopen="dyld" | |
12676 | lt_cv_dlopen_libs= | |
12677 | lt_cv_dlopen_self=yes | |
12678 | ||
12679 | fi | |
12680 | ||
12681 | ;; | |
12682 | ||
12683 | *) | |
12684 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12685 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12686 | lt_cv_dlopen="shl_load" | |
12687 | else | |
12688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12689 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12690 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12691 | $as_echo_n "(cached) " >&6 | |
12692 | else | |
12693 | ac_check_lib_save_LIBS=$LIBS | |
12694 | LIBS="-ldld $LIBS" | |
12695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12696 | /* end confdefs.h. */ | |
12697 | ||
12698 | /* Override any GCC internal prototype to avoid an error. | |
12699 | Use char because int might match the return type of a GCC | |
12700 | builtin and then its argument prototype would still apply. */ | |
12701 | #ifdef __cplusplus | |
12702 | extern "C" | |
12703 | #endif | |
12704 | char shl_load (); | |
a48ff3ef MF |
12705 | int |
12706 | main () | |
12707 | { | |
b5689863 | 12708 | return shl_load (); |
a48ff3ef MF |
12709 | ; |
12710 | return 0; | |
12711 | } | |
12712 | _ACEOF | |
12713 | if ac_fn_c_try_link "$LINENO"; then : | |
b5689863 | 12714 | ac_cv_lib_dld_shl_load=yes |
a48ff3ef | 12715 | else |
b5689863 | 12716 | ac_cv_lib_dld_shl_load=no |
a48ff3ef MF |
12717 | fi |
12718 | rm -f core conftest.err conftest.$ac_objext \ | |
12719 | conftest$ac_exeext conftest.$ac_ext | |
b5689863 | 12720 | LIBS=$ac_check_lib_save_LIBS |
a48ff3ef | 12721 | fi |
b5689863 MF |
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12723 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12724 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12725 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12726 | else | |
12727 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12728 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12729 | lt_cv_dlopen="dlopen" | |
12730 | else | |
12731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12732 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12733 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12734 | $as_echo_n "(cached) " >&6 | |
12735 | else | |
12736 | ac_check_lib_save_LIBS=$LIBS | |
12737 | LIBS="-ldl $LIBS" | |
12738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12739 | /* end confdefs.h. */ | |
a48ff3ef | 12740 | |
b5689863 MF |
12741 | /* Override any GCC internal prototype to avoid an error. |
12742 | Use char because int might match the return type of a GCC | |
12743 | builtin and then its argument prototype would still apply. */ | |
12744 | #ifdef __cplusplus | |
12745 | extern "C" | |
12746 | #endif | |
12747 | char dlopen (); | |
12748 | int | |
12749 | main () | |
12750 | { | |
12751 | return dlopen (); | |
12752 | ; | |
12753 | return 0; | |
12754 | } | |
12755 | _ACEOF | |
12756 | if ac_fn_c_try_link "$LINENO"; then : | |
12757 | ac_cv_lib_dl_dlopen=yes | |
12758 | else | |
12759 | ac_cv_lib_dl_dlopen=no | |
a48ff3ef | 12760 | fi |
b5689863 MF |
12761 | rm -f core conftest.err conftest.$ac_objext \ |
12762 | conftest$ac_exeext conftest.$ac_ext | |
12763 | LIBS=$ac_check_lib_save_LIBS | |
12764 | fi | |
12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12766 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12767 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12768 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12769 | else | |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12771 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12772 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12773 | $as_echo_n "(cached) " >&6 | |
12774 | else | |
12775 | ac_check_lib_save_LIBS=$LIBS | |
12776 | LIBS="-lsvld $LIBS" | |
12777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12778 | /* end confdefs.h. */ | |
a48ff3ef | 12779 | |
b5689863 MF |
12780 | /* Override any GCC internal prototype to avoid an error. |
12781 | Use char because int might match the return type of a GCC | |
12782 | builtin and then its argument prototype would still apply. */ | |
12783 | #ifdef __cplusplus | |
12784 | extern "C" | |
b15c5d7a | 12785 | #endif |
b5689863 MF |
12786 | char dlopen (); |
12787 | int | |
12788 | main () | |
12789 | { | |
12790 | return dlopen (); | |
12791 | ; | |
12792 | return 0; | |
12793 | } | |
b15c5d7a | 12794 | _ACEOF |
b5689863 MF |
12795 | if ac_fn_c_try_link "$LINENO"; then : |
12796 | ac_cv_lib_svld_dlopen=yes | |
12797 | else | |
12798 | ac_cv_lib_svld_dlopen=no | |
b15c5d7a | 12799 | fi |
b5689863 MF |
12800 | rm -f core conftest.err conftest.$ac_objext \ |
12801 | conftest$ac_exeext conftest.$ac_ext | |
12802 | LIBS=$ac_check_lib_save_LIBS | |
12803 | fi | |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12805 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12806 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12807 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12808 | else | |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12810 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12811 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12812 | $as_echo_n "(cached) " >&6 | |
12813 | else | |
12814 | ac_check_lib_save_LIBS=$LIBS | |
12815 | LIBS="-ldld $LIBS" | |
12816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12817 | /* end confdefs.h. */ | |
b15c5d7a | 12818 | |
b5689863 MF |
12819 | /* Override any GCC internal prototype to avoid an error. |
12820 | Use char because int might match the return type of a GCC | |
12821 | builtin and then its argument prototype would still apply. */ | |
12822 | #ifdef __cplusplus | |
12823 | extern "C" | |
12824 | #endif | |
12825 | char dld_link (); | |
12826 | int | |
12827 | main () | |
12828 | { | |
12829 | return dld_link (); | |
12830 | ; | |
12831 | return 0; | |
12832 | } | |
b15c5d7a | 12833 | _ACEOF |
b5689863 MF |
12834 | if ac_fn_c_try_link "$LINENO"; then : |
12835 | ac_cv_lib_dld_dld_link=yes | |
12836 | else | |
12837 | ac_cv_lib_dld_dld_link=no | |
12838 | fi | |
12839 | rm -f core conftest.err conftest.$ac_objext \ | |
12840 | conftest$ac_exeext conftest.$ac_ext | |
12841 | LIBS=$ac_check_lib_save_LIBS | |
12842 | fi | |
12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12844 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12845 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12846 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
12847 | fi | |
b15c5d7a MF |
12848 | |
12849 | ||
12850 | fi | |
b15c5d7a | 12851 | |
b5689863 MF |
12852 | |
12853 | fi | |
b15c5d7a MF |
12854 | |
12855 | ||
12856 | fi | |
b15c5d7a | 12857 | |
b5689863 MF |
12858 | |
12859 | fi | |
b15c5d7a MF |
12860 | |
12861 | ||
12862 | fi | |
b15c5d7a | 12863 | |
b5689863 MF |
12864 | ;; |
12865 | esac | |
b15c5d7a | 12866 | |
b5689863 MF |
12867 | if test "x$lt_cv_dlopen" != xno; then |
12868 | enable_dlopen=yes | |
12869 | else | |
12870 | enable_dlopen=no | |
12871 | fi | |
b15c5d7a | 12872 | |
b5689863 MF |
12873 | case $lt_cv_dlopen in |
12874 | dlopen) | |
12875 | save_CPPFLAGS="$CPPFLAGS" | |
12876 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
b15c5d7a | 12877 | |
b5689863 MF |
12878 | save_LDFLAGS="$LDFLAGS" |
12879 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
b15c5d7a | 12880 | |
b5689863 MF |
12881 | save_LIBS="$LIBS" |
12882 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
b15c5d7a | 12883 | |
b5689863 MF |
12884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12885 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12886 | if ${lt_cv_dlopen_self+:} false; then : | |
12887 | $as_echo_n "(cached) " >&6 | |
12888 | else | |
12889 | if test "$cross_compiling" = yes; then : | |
12890 | lt_cv_dlopen_self=cross | |
12891 | else | |
12892 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12893 | lt_status=$lt_dlunknown | |
12894 | cat > conftest.$ac_ext <<_LT_EOF | |
08a7937f | 12895 | #line 12895 "configure" |
b5689863 MF |
12896 | #include "confdefs.h" |
12897 | ||
12898 | #if HAVE_DLFCN_H | |
12899 | #include <dlfcn.h> | |
b15c5d7a | 12900 | #endif |
b15c5d7a | 12901 | |
b5689863 | 12902 | #include <stdio.h> |
b15c5d7a | 12903 | |
b5689863 MF |
12904 | #ifdef RTLD_GLOBAL |
12905 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12906 | #else | |
12907 | # ifdef DL_GLOBAL | |
12908 | # define LT_DLGLOBAL DL_GLOBAL | |
12909 | # else | |
12910 | # define LT_DLGLOBAL 0 | |
12911 | # endif | |
12912 | #endif | |
b15c5d7a | 12913 | |
b5689863 MF |
12914 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12915 | find out it does not work in some platform. */ | |
12916 | #ifndef LT_DLLAZY_OR_NOW | |
12917 | # ifdef RTLD_LAZY | |
12918 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12919 | # else | |
12920 | # ifdef DL_LAZY | |
12921 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12922 | # else | |
12923 | # ifdef RTLD_NOW | |
12924 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12925 | # else | |
12926 | # ifdef DL_NOW | |
12927 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12928 | # else | |
12929 | # define LT_DLLAZY_OR_NOW 0 | |
12930 | # endif | |
12931 | # endif | |
12932 | # endif | |
12933 | # endif | |
b15c5d7a | 12934 | #endif |
b5689863 MF |
12935 | |
12936 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12937 | correspondingly for the symbols needed. */ | |
12938 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12939 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 12940 | #endif |
b15c5d7a | 12941 | |
b5689863 MF |
12942 | void fnord () { int i=42; } |
12943 | int main () | |
12944 | { | |
12945 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12946 | int status = $lt_dlunknown; | |
b15c5d7a | 12947 | |
b5689863 MF |
12948 | if (self) |
12949 | { | |
12950 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12951 | else | |
12952 | { | |
12953 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12954 | else puts (dlerror ()); | |
12955 | } | |
12956 | /* dlclose (self); */ | |
12957 | } | |
12958 | else | |
12959 | puts (dlerror ()); | |
b15c5d7a | 12960 | |
b5689863 MF |
12961 | return status; |
12962 | } | |
12963 | _LT_EOF | |
12964 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12965 | (eval $ac_link) 2>&5 | |
12966 | ac_status=$? | |
12967 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12968 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12969 | (./conftest; exit; ) >&5 2>/dev/null | |
12970 | lt_status=$? | |
12971 | case x$lt_status in | |
12972 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12973 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12974 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12975 | esac | |
12976 | else : | |
12977 | # compilation failed | |
12978 | lt_cv_dlopen_self=no | |
12979 | fi | |
b15c5d7a | 12980 | fi |
b5689863 | 12981 | rm -fr conftest* |
b15c5d7a MF |
12982 | |
12983 | ||
12984 | fi | |
b5689863 MF |
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12986 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12987 | ||
12988 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12989 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12991 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12992 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12993 | $as_echo_n "(cached) " >&6 | |
12994 | else | |
12995 | if test "$cross_compiling" = yes; then : | |
12996 | lt_cv_dlopen_self_static=cross | |
12997 | else | |
12998 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12999 | lt_status=$lt_dlunknown | |
13000 | cat > conftest.$ac_ext <<_LT_EOF | |
08a7937f | 13001 | #line 13001 "configure" |
b5689863 MF |
13002 | #include "confdefs.h" |
13003 | ||
13004 | #if HAVE_DLFCN_H | |
13005 | #include <dlfcn.h> | |
b15c5d7a | 13006 | #endif |
b15c5d7a | 13007 | |
b5689863 | 13008 | #include <stdio.h> |
b15c5d7a | 13009 | |
b5689863 MF |
13010 | #ifdef RTLD_GLOBAL |
13011 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13012 | #else | |
13013 | # ifdef DL_GLOBAL | |
13014 | # define LT_DLGLOBAL DL_GLOBAL | |
13015 | # else | |
13016 | # define LT_DLGLOBAL 0 | |
13017 | # endif | |
13018 | #endif | |
b15c5d7a | 13019 | |
b5689863 MF |
13020 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13021 | find out it does not work in some platform. */ | |
13022 | #ifndef LT_DLLAZY_OR_NOW | |
13023 | # ifdef RTLD_LAZY | |
13024 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13025 | # else | |
13026 | # ifdef DL_LAZY | |
13027 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13028 | # else | |
13029 | # ifdef RTLD_NOW | |
13030 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13031 | # else | |
13032 | # ifdef DL_NOW | |
13033 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13034 | # else | |
13035 | # define LT_DLLAZY_OR_NOW 0 | |
13036 | # endif | |
13037 | # endif | |
13038 | # endif | |
13039 | # endif | |
b15c5d7a | 13040 | #endif |
b5689863 MF |
13041 | |
13042 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
13043 | correspondingly for the symbols needed. */ | |
13044 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13045 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 13046 | #endif |
b15c5d7a | 13047 | |
b5689863 MF |
13048 | void fnord () { int i=42; } |
13049 | int main () | |
13050 | { | |
13051 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13052 | int status = $lt_dlunknown; | |
13053 | ||
13054 | if (self) | |
13055 | { | |
13056 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13057 | else | |
13058 | { | |
13059 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13060 | else puts (dlerror ()); | |
13061 | } | |
13062 | /* dlclose (self); */ | |
13063 | } | |
13064 | else | |
13065 | puts (dlerror ()); | |
13066 | ||
13067 | return status; | |
13068 | } | |
13069 | _LT_EOF | |
13070 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13071 | (eval $ac_link) 2>&5 | |
13072 | ac_status=$? | |
13073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13074 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13075 | (./conftest; exit; ) >&5 2>/dev/null | |
13076 | lt_status=$? | |
13077 | case x$lt_status in | |
13078 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13079 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13080 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13081 | esac | |
13082 | else : | |
13083 | # compilation failed | |
13084 | lt_cv_dlopen_self_static=no | |
13085 | fi | |
13086 | fi | |
13087 | rm -fr conftest* | |
b15c5d7a MF |
13088 | |
13089 | ||
13090 | fi | |
b5689863 MF |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
13092 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13093 | fi | |
b15c5d7a | 13094 | |
b5689863 MF |
13095 | CPPFLAGS="$save_CPPFLAGS" |
13096 | LDFLAGS="$save_LDFLAGS" | |
13097 | LIBS="$save_LIBS" | |
13098 | ;; | |
13099 | esac | |
b15c5d7a | 13100 | |
b5689863 MF |
13101 | case $lt_cv_dlopen_self in |
13102 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13103 | *) enable_dlopen_self=unknown ;; | |
13104 | esac | |
b15c5d7a | 13105 | |
b5689863 MF |
13106 | case $lt_cv_dlopen_self_static in |
13107 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13108 | *) enable_dlopen_self_static=unknown ;; | |
13109 | esac | |
b15c5d7a | 13110 | fi |
b15c5d7a | 13111 | |
b15c5d7a MF |
13112 | |
13113 | ||
b15c5d7a MF |
13114 | |
13115 | ||
b15c5d7a | 13116 | |
b15c5d7a MF |
13117 | |
13118 | ||
b15c5d7a | 13119 | |
b15c5d7a | 13120 | |
b15c5d7a | 13121 | |
b15c5d7a MF |
13122 | |
13123 | ||
b15c5d7a MF |
13124 | |
13125 | ||
a48ff3ef | 13126 | |
a48ff3ef | 13127 | |
b5689863 MF |
13128 | striplib= |
13129 | old_striplib= | |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13131 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13132 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13133 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13134 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13136 | $as_echo "yes" >&6; } | |
a48ff3ef | 13137 | else |
b5689863 MF |
13138 | # FIXME - insert some real tests, host_os isn't really good enough |
13139 | case $host_os in | |
13140 | darwin*) | |
13141 | if test -n "$STRIP" ; then | |
13142 | striplib="$STRIP -x" | |
13143 | old_striplib="$STRIP -S" | |
13144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13145 | $as_echo "yes" >&6; } | |
13146 | else | |
13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13148 | $as_echo "no" >&6; } | |
13149 | fi | |
13150 | ;; | |
13151 | *) | |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13153 | $as_echo "no" >&6; } | |
13154 | ;; | |
13155 | esac | |
a48ff3ef MF |
13156 | fi |
13157 | ||
a48ff3ef | 13158 | |
a48ff3ef | 13159 | |
a48ff3ef | 13160 | |
a48ff3ef MF |
13161 | |
13162 | ||
a48ff3ef | 13163 | |
a48ff3ef | 13164 | |
a48ff3ef | 13165 | |
a48ff3ef | 13166 | |
a48ff3ef | 13167 | |
a48ff3ef | 13168 | |
b5689863 MF |
13169 | # Report which library types will actually be built |
13170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13171 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13173 | $as_echo "$can_build_shared" >&6; } | |
a48ff3ef | 13174 | |
b5689863 MF |
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
13176 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13177 | test "$can_build_shared" = "no" && enable_shared=no | |
a48ff3ef | 13178 | |
b5689863 MF |
13179 | # On AIX, shared libraries and static libraries use the same namespace, and |
13180 | # are all built from PIC. | |
13181 | case $host_os in | |
13182 | aix3*) | |
13183 | test "$enable_shared" = yes && enable_static=no | |
13184 | if test -n "$RANLIB"; then | |
13185 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13186 | postinstall_cmds='$RANLIB $lib' | |
13187 | fi | |
13188 | ;; | |
a48ff3ef | 13189 | |
b5689863 MF |
13190 | aix[4-9]*) |
13191 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13192 | test "$enable_shared" = yes && enable_static=no | |
13193 | fi | |
13194 | ;; | |
13195 | esac | |
13196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13197 | $as_echo "$enable_shared" >&6; } | |
13198 | ||
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
13200 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
13201 | # Make sure either enable_shared or enable_static is yes. | |
13202 | test "$enable_shared" = yes || enable_static=yes | |
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13204 | $as_echo "$enable_static" >&6; } | |
a48ff3ef | 13205 | |
a48ff3ef | 13206 | |
a48ff3ef | 13207 | |
b15c5d7a | 13208 | |
b15c5d7a | 13209 | fi |
b5689863 MF |
13210 | ac_ext=c |
13211 | ac_cpp='$CPP $CPPFLAGS' | |
13212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b15c5d7a | 13215 | |
b5689863 | 13216 | CC="$lt_save_CC" |
b15c5d7a MF |
13217 | |
13218 | ||
a48ff3ef | 13219 | |
a48ff3ef | 13220 | |
a48ff3ef | 13221 | |
a48ff3ef | 13222 | |
a48ff3ef | 13223 | |
a48ff3ef | 13224 | |
a48ff3ef | 13225 | |
a48ff3ef MF |
13226 | |
13227 | ||
a48ff3ef | 13228 | |
b5689863 MF |
13229 | |
13230 | ac_config_commands="$ac_config_commands libtool" | |
13231 | ||
13232 | ||
13233 | ||
13234 | ||
13235 | # Only expand once: | |
13236 | ||
13237 | ||
a48ff3ef | 13238 | |
05108158 MF |
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5 |
13240 | $as_echo_n "checking for library containing bind... " >&6; } | |
13241 | if ${ac_cv_search_bind+:} false; then : | |
07490bf8 MF |
13242 | $as_echo_n "(cached) " >&6 |
13243 | else | |
05108158 | 13244 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13246 | /* end confdefs.h. */ | |
13247 | ||
13248 | /* Override any GCC internal prototype to avoid an error. | |
13249 | Use char because int might match the return type of a GCC | |
13250 | builtin and then its argument prototype would still apply. */ | |
13251 | #ifdef __cplusplus | |
13252 | extern "C" | |
13253 | #endif | |
13254 | char bind (); | |
13255 | int | |
13256 | main () | |
13257 | { | |
13258 | return bind (); | |
13259 | ; | |
13260 | return 0; | |
13261 | } | |
13262 | _ACEOF | |
05108158 MF |
13263 | for ac_lib in '' socket; do |
13264 | if test -z "$ac_lib"; then | |
13265 | ac_res="none required" | |
13266 | else | |
13267 | ac_res=-l$ac_lib | |
13268 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13269 | fi | |
13270 | if ac_fn_c_try_link "$LINENO"; then : | |
13271 | ac_cv_search_bind=$ac_res | |
07490bf8 MF |
13272 | fi |
13273 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13274 | conftest$ac_exeext |
13275 | if ${ac_cv_search_bind+:} false; then : | |
13276 | break | |
07490bf8 | 13277 | fi |
05108158 MF |
13278 | done |
13279 | if ${ac_cv_search_bind+:} false; then : | |
07490bf8 | 13280 | |
05108158 MF |
13281 | else |
13282 | ac_cv_search_bind=no | |
13283 | fi | |
13284 | rm conftest.$ac_ext | |
13285 | LIBS=$ac_func_search_save_LIBS | |
13286 | fi | |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5 | |
13288 | $as_echo "$ac_cv_search_bind" >&6; } | |
13289 | ac_res=$ac_cv_search_bind | |
13290 | if test "$ac_res" != no; then : | |
13291 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13292 | |
13293 | fi | |
13294 | ||
05108158 MF |
13295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
13296 | $as_echo_n "checking for library containing gethostbyname... " >&6; } | |
13297 | if ${ac_cv_search_gethostbyname+:} false; then : | |
07490bf8 MF |
13298 | $as_echo_n "(cached) " >&6 |
13299 | else | |
05108158 | 13300 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13302 | /* end confdefs.h. */ | |
13303 | ||
13304 | /* Override any GCC internal prototype to avoid an error. | |
13305 | Use char because int might match the return type of a GCC | |
13306 | builtin and then its argument prototype would still apply. */ | |
13307 | #ifdef __cplusplus | |
13308 | extern "C" | |
13309 | #endif | |
13310 | char gethostbyname (); | |
13311 | int | |
13312 | main () | |
13313 | { | |
13314 | return gethostbyname (); | |
13315 | ; | |
13316 | return 0; | |
13317 | } | |
13318 | _ACEOF | |
05108158 MF |
13319 | for ac_lib in '' nsl; do |
13320 | if test -z "$ac_lib"; then | |
13321 | ac_res="none required" | |
13322 | else | |
13323 | ac_res=-l$ac_lib | |
13324 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13325 | fi | |
13326 | if ac_fn_c_try_link "$LINENO"; then : | |
13327 | ac_cv_search_gethostbyname=$ac_res | |
07490bf8 MF |
13328 | fi |
13329 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13330 | conftest$ac_exeext |
13331 | if ${ac_cv_search_gethostbyname+:} false; then : | |
13332 | break | |
07490bf8 | 13333 | fi |
05108158 MF |
13334 | done |
13335 | if ${ac_cv_search_gethostbyname+:} false; then : | |
07490bf8 | 13336 | |
05108158 MF |
13337 | else |
13338 | ac_cv_search_gethostbyname=no | |
13339 | fi | |
13340 | rm conftest.$ac_ext | |
13341 | LIBS=$ac_func_search_save_LIBS | |
13342 | fi | |
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 | |
13344 | $as_echo "$ac_cv_search_gethostbyname" >&6; } | |
13345 | ac_res=$ac_cv_search_gethostbyname | |
13346 | if test "$ac_res" != no; then : | |
13347 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13348 | |
13349 | fi | |
13350 | ||
05108158 MF |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5 |
13352 | $as_echo_n "checking for library containing fabs... " >&6; } | |
13353 | if ${ac_cv_search_fabs+:} false; then : | |
07490bf8 MF |
13354 | $as_echo_n "(cached) " >&6 |
13355 | else | |
05108158 | 13356 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13358 | /* end confdefs.h. */ | |
13359 | ||
13360 | /* Override any GCC internal prototype to avoid an error. | |
13361 | Use char because int might match the return type of a GCC | |
13362 | builtin and then its argument prototype would still apply. */ | |
13363 | #ifdef __cplusplus | |
13364 | extern "C" | |
13365 | #endif | |
13366 | char fabs (); | |
13367 | int | |
13368 | main () | |
13369 | { | |
13370 | return fabs (); | |
13371 | ; | |
13372 | return 0; | |
13373 | } | |
13374 | _ACEOF | |
05108158 MF |
13375 | for ac_lib in '' m; do |
13376 | if test -z "$ac_lib"; then | |
13377 | ac_res="none required" | |
13378 | else | |
13379 | ac_res=-l$ac_lib | |
13380 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13381 | fi | |
13382 | if ac_fn_c_try_link "$LINENO"; then : | |
13383 | ac_cv_search_fabs=$ac_res | |
07490bf8 MF |
13384 | fi |
13385 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13386 | conftest$ac_exeext |
13387 | if ${ac_cv_search_fabs+:} false; then : | |
13388 | break | |
07490bf8 | 13389 | fi |
05108158 MF |
13390 | done |
13391 | if ${ac_cv_search_fabs+:} false; then : | |
07490bf8 | 13392 | |
05108158 MF |
13393 | else |
13394 | ac_cv_search_fabs=no | |
13395 | fi | |
13396 | rm conftest.$ac_ext | |
13397 | LIBS=$ac_func_search_save_LIBS | |
13398 | fi | |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5 | |
13400 | $as_echo "$ac_cv_search_fabs" >&6; } | |
13401 | ac_res=$ac_cv_search_fabs | |
13402 | if test "$ac_res" != no; then : | |
13403 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13404 | |
13405 | fi | |
13406 | ||
05108158 MF |
13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5 |
13408 | $as_echo_n "checking for library containing log2... " >&6; } | |
13409 | if ${ac_cv_search_log2+:} false; then : | |
07490bf8 MF |
13410 | $as_echo_n "(cached) " >&6 |
13411 | else | |
05108158 | 13412 | ac_func_search_save_LIBS=$LIBS |
07490bf8 MF |
13413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13414 | /* end confdefs.h. */ | |
13415 | ||
13416 | /* Override any GCC internal prototype to avoid an error. | |
13417 | Use char because int might match the return type of a GCC | |
13418 | builtin and then its argument prototype would still apply. */ | |
13419 | #ifdef __cplusplus | |
13420 | extern "C" | |
13421 | #endif | |
13422 | char log2 (); | |
13423 | int | |
13424 | main () | |
13425 | { | |
13426 | return log2 (); | |
13427 | ; | |
13428 | return 0; | |
13429 | } | |
13430 | _ACEOF | |
05108158 MF |
13431 | for ac_lib in '' m; do |
13432 | if test -z "$ac_lib"; then | |
13433 | ac_res="none required" | |
13434 | else | |
13435 | ac_res=-l$ac_lib | |
13436 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13437 | fi | |
13438 | if ac_fn_c_try_link "$LINENO"; then : | |
13439 | ac_cv_search_log2=$ac_res | |
07490bf8 MF |
13440 | fi |
13441 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13442 | conftest$ac_exeext |
13443 | if ${ac_cv_search_log2+:} false; then : | |
13444 | break | |
07490bf8 | 13445 | fi |
05108158 MF |
13446 | done |
13447 | if ${ac_cv_search_log2+:} false; then : | |
07490bf8 | 13448 | |
05108158 MF |
13449 | else |
13450 | ac_cv_search_log2=no | |
13451 | fi | |
13452 | rm conftest.$ac_ext | |
13453 | LIBS=$ac_func_search_save_LIBS | |
13454 | fi | |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5 | |
13456 | $as_echo "$ac_cv_search_log2" >&6; } | |
13457 | ac_res=$ac_cv_search_log2 | |
13458 | if test "$ac_res" != no; then : | |
13459 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
07490bf8 MF |
13460 | |
13461 | fi | |
13462 | ||
13463 | ||
05108158 MF |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
13465 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
13466 | if ${ac_cv_search_dlopen+:} false; then : | |
f050cfdd MF |
13467 | $as_echo_n "(cached) " >&6 |
13468 | else | |
05108158 | 13469 | ac_func_search_save_LIBS=$LIBS |
f050cfdd MF |
13470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13471 | /* end confdefs.h. */ | |
13472 | ||
13473 | /* Override any GCC internal prototype to avoid an error. | |
13474 | Use char because int might match the return type of a GCC | |
13475 | builtin and then its argument prototype would still apply. */ | |
13476 | #ifdef __cplusplus | |
13477 | extern "C" | |
13478 | #endif | |
13479 | char dlopen (); | |
13480 | int | |
13481 | main () | |
13482 | { | |
13483 | return dlopen (); | |
13484 | ; | |
13485 | return 0; | |
13486 | } | |
13487 | _ACEOF | |
05108158 MF |
13488 | for ac_lib in '' dl; do |
13489 | if test -z "$ac_lib"; then | |
13490 | ac_res="none required" | |
13491 | else | |
13492 | ac_res=-l$ac_lib | |
13493 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13494 | fi | |
13495 | if ac_fn_c_try_link "$LINENO"; then : | |
13496 | ac_cv_search_dlopen=$ac_res | |
f050cfdd MF |
13497 | fi |
13498 | rm -f core conftest.err conftest.$ac_objext \ | |
05108158 MF |
13499 | conftest$ac_exeext |
13500 | if ${ac_cv_search_dlopen+:} false; then : | |
13501 | break | |
f050cfdd | 13502 | fi |
05108158 MF |
13503 | done |
13504 | if ${ac_cv_search_dlopen+:} false; then : | |
f050cfdd | 13505 | |
05108158 MF |
13506 | else |
13507 | ac_cv_search_dlopen=no | |
13508 | fi | |
13509 | rm conftest.$ac_ext | |
13510 | LIBS=$ac_func_search_save_LIBS | |
13511 | fi | |
13512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
13513 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
13514 | ac_res=$ac_cv_search_dlopen | |
13515 | if test "$ac_res" != no; then : | |
13516 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
f050cfdd MF |
13517 | |
13518 | fi | |
13519 | ||
708aee5e | 13520 | if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then |
f050cfdd MF |
13521 | |
13522 | pkg_failed=no | |
13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5 | |
13524 | $as_echo_n "checking for sdl2... " >&6; } | |
13525 | ||
13526 | if test -n "$SDL_CFLAGS"; then | |
13527 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13528 | elif test -n "$PKG_CONFIG"; then | |
13529 | if test -n "$PKG_CONFIG" && \ | |
13530 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13531 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13532 | ac_status=$? | |
13533 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13534 | test $ac_status = 0; }; then | |
13535 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null` | |
13536 | test "x$?" != "x0" && pkg_failed=yes | |
13537 | else | |
13538 | pkg_failed=yes | |
13539 | fi | |
13540 | else | |
13541 | pkg_failed=untried | |
13542 | fi | |
13543 | if test -n "$SDL_LIBS"; then | |
13544 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13545 | elif test -n "$PKG_CONFIG"; then | |
13546 | if test -n "$PKG_CONFIG" && \ | |
13547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13548 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13549 | ac_status=$? | |
13550 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13551 | test $ac_status = 0; }; then | |
13552 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null` | |
13553 | test "x$?" != "x0" && pkg_failed=yes | |
13554 | else | |
13555 | pkg_failed=yes | |
13556 | fi | |
13557 | else | |
13558 | pkg_failed=untried | |
13559 | fi | |
13560 | ||
13561 | if test $pkg_failed = no; then | |
13562 | pkg_save_LDFLAGS="$LDFLAGS" | |
13563 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13565 | /* end confdefs.h. */ | |
13566 | ||
13567 | int | |
13568 | main () | |
13569 | { | |
13570 | ||
13571 | ; | |
13572 | return 0; | |
13573 | } | |
13574 | _ACEOF | |
13575 | if ac_fn_c_try_link "$LINENO"; then : | |
13576 | ||
13577 | else | |
13578 | pkg_failed=yes | |
13579 | fi | |
13580 | rm -f core conftest.err conftest.$ac_objext \ | |
13581 | conftest$ac_exeext conftest.$ac_ext | |
13582 | LDFLAGS=$pkg_save_LDFLAGS | |
13583 | fi | |
13584 | ||
13585 | ||
13586 | ||
13587 | if test $pkg_failed = yes; then | |
13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13589 | $as_echo "no" >&6; } | |
13590 | ||
13591 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13592 | _pkg_short_errors_supported=yes | |
13593 | else | |
13594 | _pkg_short_errors_supported=no | |
13595 | fi | |
13596 | if test $_pkg_short_errors_supported = yes; then | |
13597 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1` | |
13598 | else | |
13599 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1` | |
13600 | fi | |
13601 | # Put the nasty error message in config.log where it belongs | |
13602 | echo "$SDL_PKG_ERRORS" >&5 | |
13603 | ||
13604 | ||
b15c5d7a | 13605 | |
d57b6533 MF |
13606 | pkg_failed=no |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13608 | $as_echo_n "checking for sdl... " >&6; } | |
13609 | ||
13610 | if test -n "$SDL_CFLAGS"; then | |
13611 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13612 | elif test -n "$PKG_CONFIG"; then | |
13613 | if test -n "$PKG_CONFIG" && \ | |
13614 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13615 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13616 | ac_status=$? | |
13617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13618 | test $ac_status = 0; }; then | |
13619 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
13620 | test "x$?" != "x0" && pkg_failed=yes | |
13621 | else | |
13622 | pkg_failed=yes | |
13623 | fi | |
13624 | else | |
13625 | pkg_failed=untried | |
13626 | fi | |
13627 | if test -n "$SDL_LIBS"; then | |
13628 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13629 | elif test -n "$PKG_CONFIG"; then | |
13630 | if test -n "$PKG_CONFIG" && \ | |
13631 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13632 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13633 | ac_status=$? | |
13634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13635 | test $ac_status = 0; }; then | |
13636 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
13637 | test "x$?" != "x0" && pkg_failed=yes | |
13638 | else | |
13639 | pkg_failed=yes | |
13640 | fi | |
13641 | else | |
13642 | pkg_failed=untried | |
13643 | fi | |
13644 | ||
13645 | if test $pkg_failed = no; then | |
13646 | pkg_save_LDFLAGS="$LDFLAGS" | |
13647 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13649 | /* end confdefs.h. */ | |
13650 | ||
13651 | int | |
13652 | main () | |
13653 | { | |
13654 | ||
13655 | ; | |
13656 | return 0; | |
13657 | } | |
13658 | _ACEOF | |
13659 | if ac_fn_c_try_link "$LINENO"; then : | |
13660 | ||
13661 | else | |
13662 | pkg_failed=yes | |
13663 | fi | |
13664 | rm -f core conftest.err conftest.$ac_objext \ | |
13665 | conftest$ac_exeext conftest.$ac_ext | |
13666 | LDFLAGS=$pkg_save_LDFLAGS | |
13667 | fi | |
13668 | ||
13669 | ||
13670 | ||
13671 | if test $pkg_failed = yes; then | |
13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13673 | $as_echo "no" >&6; } | |
13674 | ||
13675 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13676 | _pkg_short_errors_supported=yes | |
13677 | else | |
13678 | _pkg_short_errors_supported=no | |
13679 | fi | |
13680 | if test $_pkg_short_errors_supported = yes; then | |
13681 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
13682 | else | |
13683 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
13684 | fi | |
13685 | # Put the nasty error message in config.log where it belongs | |
13686 | echo "$SDL_PKG_ERRORS" >&5 | |
13687 | ||
13688 | : | |
13689 | elif test $pkg_failed = untried; then | |
13690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13691 | $as_echo "no" >&6; } | |
13692 | : | |
13693 | else | |
13694 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13695 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13697 | $as_echo "yes" >&6; } | |
f050cfdd | 13698 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" |
f050cfdd MF |
13699 | |
13700 | fi | |
13701 | ||
13702 | elif test $pkg_failed = untried; then | |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13704 | $as_echo "no" >&6; } | |
13705 | ||
13706 | ||
13707 | pkg_failed=no | |
13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13709 | $as_echo_n "checking for sdl... " >&6; } | |
13710 | ||
13711 | if test -n "$SDL_CFLAGS"; then | |
13712 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13713 | elif test -n "$PKG_CONFIG"; then | |
13714 | if test -n "$PKG_CONFIG" && \ | |
13715 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13716 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13717 | ac_status=$? | |
13718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13719 | test $ac_status = 0; }; then | |
13720 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
13721 | test "x$?" != "x0" && pkg_failed=yes | |
d57b6533 | 13722 | else |
f050cfdd MF |
13723 | pkg_failed=yes |
13724 | fi | |
13725 | else | |
13726 | pkg_failed=untried | |
13727 | fi | |
13728 | if test -n "$SDL_LIBS"; then | |
13729 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13730 | elif test -n "$PKG_CONFIG"; then | |
13731 | if test -n "$PKG_CONFIG" && \ | |
13732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13733 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13734 | ac_status=$? | |
13735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13736 | test $ac_status = 0; }; then | |
13737 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
13738 | test "x$?" != "x0" && pkg_failed=yes | |
13739 | else | |
13740 | pkg_failed=yes | |
13741 | fi | |
13742 | else | |
13743 | pkg_failed=untried | |
13744 | fi | |
13745 | ||
13746 | if test $pkg_failed = no; then | |
13747 | pkg_save_LDFLAGS="$LDFLAGS" | |
13748 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d57b6533 MF |
13750 | /* end confdefs.h. */ |
13751 | ||
d57b6533 MF |
13752 | int |
13753 | main () | |
13754 | { | |
f050cfdd | 13755 | |
d57b6533 MF |
13756 | ; |
13757 | return 0; | |
13758 | } | |
13759 | _ACEOF | |
13760 | if ac_fn_c_try_link "$LINENO"; then : | |
f050cfdd | 13761 | |
d57b6533 | 13762 | else |
f050cfdd | 13763 | pkg_failed=yes |
d57b6533 MF |
13764 | fi |
13765 | rm -f core conftest.err conftest.$ac_objext \ | |
13766 | conftest$ac_exeext conftest.$ac_ext | |
f050cfdd | 13767 | LDFLAGS=$pkg_save_LDFLAGS |
d57b6533 | 13768 | fi |
d57b6533 | 13769 | |
f050cfdd MF |
13770 | |
13771 | ||
13772 | if test $pkg_failed = yes; then | |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13774 | $as_echo "no" >&6; } | |
13775 | ||
13776 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13777 | _pkg_short_errors_supported=yes | |
d57b6533 | 13778 | else |
f050cfdd | 13779 | _pkg_short_errors_supported=no |
d57b6533 | 13780 | fi |
f050cfdd MF |
13781 | if test $_pkg_short_errors_supported = yes; then |
13782 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
13783 | else | |
13784 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
13785 | fi | |
13786 | # Put the nasty error message in config.log where it belongs | |
13787 | echo "$SDL_PKG_ERRORS" >&5 | |
13788 | ||
13789 | : | |
13790 | elif test $pkg_failed = untried; then | |
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13792 | $as_echo "no" >&6; } | |
13793 | : | |
13794 | else | |
13795 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13796 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13798 | $as_echo "yes" >&6; } | |
13799 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" | |
d57b6533 | 13800 | |
f050cfdd MF |
13801 | fi |
13802 | ||
13803 | else | |
13804 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13805 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13807 | $as_echo "yes" >&6; } | |
13808 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2" | |
c55c1f6e MF |
13809 | |
13810 | fi | |
13811 | if test -n "$SDL_CFLAGS"; then : | |
13812 | if test "$ac_cv_search_dlopen" = no; then : | |
13813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5 | |
13814 | $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;} | |
13815 | ||
13816 | fi | |
d57b6533 MF |
13817 | |
13818 | fi | |
f050cfdd MF |
13819 | else |
13820 | SDL_CFLAGS= | |
f050cfdd | 13821 | fi |
c55c1f6e | 13822 | SDL_LIBS= |
d57b6533 MF |
13823 | |
13824 | ||
5d0b3088 MF |
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5 |
13826 | $as_echo_n "checking for cygwin... " >&6; } | |
13827 | if ${sim_cv_os_cygwin+:} false; then : | |
13828 | $as_echo_n "(cached) " >&6 | |
13829 | else | |
13830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13831 | /* end confdefs.h. */ | |
13832 | ||
13833 | #ifdef __CYGWIN__ | |
13834 | lose | |
13835 | #endif | |
13836 | _ACEOF | |
13837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13838 | $EGREP "lose" >/dev/null 2>&1; then : | |
13839 | sim_cv_os_cygwin=yes | |
13840 | else | |
13841 | sim_cv_os_cygwin=no | |
13842 | fi | |
13843 | rm -f conftest* | |
13844 | ||
13845 | fi | |
13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5 | |
13847 | $as_echo "$sim_cv_os_cygwin" >&6; } | |
13848 | ||
13849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
13850 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13851 | if ${ac_cv_search_tgetent+:} false; then : | |
13852 | $as_echo_n "(cached) " >&6 | |
13853 | else | |
13854 | ac_func_search_save_LIBS=$LIBS | |
13855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13856 | /* end confdefs.h. */ | |
13857 | ||
13858 | /* Override any GCC internal prototype to avoid an error. | |
13859 | Use char because int might match the return type of a GCC | |
13860 | builtin and then its argument prototype would still apply. */ | |
13861 | #ifdef __cplusplus | |
13862 | extern "C" | |
13863 | #endif | |
13864 | char tgetent (); | |
13865 | int | |
13866 | main () | |
13867 | { | |
13868 | return tgetent (); | |
13869 | ; | |
13870 | return 0; | |
13871 | } | |
13872 | _ACEOF | |
13873 | for ac_lib in '' termcap tinfo curses ncurses; do | |
13874 | if test -z "$ac_lib"; then | |
13875 | ac_res="none required" | |
13876 | else | |
13877 | ac_res=-l$ac_lib | |
13878 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13879 | fi | |
13880 | if ac_fn_c_try_link "$LINENO"; then : | |
13881 | ac_cv_search_tgetent=$ac_res | |
13882 | fi | |
13883 | rm -f core conftest.err conftest.$ac_objext \ | |
13884 | conftest$ac_exeext | |
13885 | if ${ac_cv_search_tgetent+:} false; then : | |
13886 | break | |
13887 | fi | |
13888 | done | |
13889 | if ${ac_cv_search_tgetent+:} false; then : | |
13890 | ||
13891 | else | |
13892 | ac_cv_search_tgetent=no | |
13893 | fi | |
13894 | rm conftest.$ac_ext | |
13895 | LIBS=$ac_func_search_save_LIBS | |
13896 | fi | |
13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
13898 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13899 | ac_res=$ac_cv_search_tgetent | |
13900 | if test "$ac_res" != no; then : | |
13901 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13902 | TERMCAP_LIB=$ac_cv_search_tgetent | |
13903 | else | |
13904 | TERMCAP_LIB="" | |
13905 | fi | |
13906 | ||
13907 | if test x$sim_cv_os_cygwin = xyes; then | |
13908 | TERMCAP_LIB="${TERMCAP_LIB} -luser32" | |
13909 | fi | |
13910 | ||
13911 | ||
13912 | if test -r ../readline/Makefile; then | |
5a988617 | 13913 | READLINE_LIB=../readline/readline/libreadline.a |
5d0b3088 MF |
13914 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' |
13915 | else | |
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 | |
13917 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
13918 | if ${ac_cv_lib_readline_readline+:} false; then : | |
13919 | $as_echo_n "(cached) " >&6 | |
13920 | else | |
13921 | ac_check_lib_save_LIBS=$LIBS | |
13922 | LIBS="-lreadline $TERMCAP_LIB $LIBS" | |
13923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13924 | /* end confdefs.h. */ | |
13925 | ||
13926 | /* Override any GCC internal prototype to avoid an error. | |
13927 | Use char because int might match the return type of a GCC | |
13928 | builtin and then its argument prototype would still apply. */ | |
13929 | #ifdef __cplusplus | |
13930 | extern "C" | |
13931 | #endif | |
13932 | char readline (); | |
13933 | int | |
13934 | main () | |
13935 | { | |
13936 | return readline (); | |
13937 | ; | |
13938 | return 0; | |
13939 | } | |
13940 | _ACEOF | |
13941 | if ac_fn_c_try_link "$LINENO"; then : | |
13942 | ac_cv_lib_readline_readline=yes | |
13943 | else | |
13944 | ac_cv_lib_readline_readline=no | |
13945 | fi | |
13946 | rm -f core conftest.err conftest.$ac_objext \ | |
13947 | conftest$ac_exeext conftest.$ac_ext | |
13948 | LIBS=$ac_check_lib_save_LIBS | |
13949 | fi | |
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
13951 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13952 | if test "x$ac_cv_lib_readline_readline" = xyes; then : | |
13953 | READLINE_LIB=-lreadline | |
13954 | else | |
13955 | as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5 | |
13956 | fi | |
13957 | ||
13958 | READLINE_CFLAGS= | |
13959 | fi | |
13960 | ||
13961 | ||
13962 | ||
9f046489 TO |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 |
13964 | $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } | |
13965 | if ${sim_cv_decl_getopt_unistd_h+:} false; then : | |
13966 | $as_echo_n "(cached) " >&6 | |
13967 | else | |
13968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13969 | /* end confdefs.h. */ | |
13970 | #include <unistd.h> | |
13971 | int | |
13972 | main () | |
13973 | { | |
13974 | extern int getopt (int, char *const*, const char *); | |
13975 | ; | |
13976 | return 0; | |
13977 | } | |
13978 | _ACEOF | |
13979 | if ac_fn_c_try_compile "$LINENO"; then : | |
13980 | sim_cv_decl_getopt_unistd_h=yes | |
13981 | else | |
13982 | sim_cv_decl_getopt_unistd_h=no | |
13983 | fi | |
13984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13985 | fi | |
13986 | ||
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5 | |
13988 | $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; } | |
13989 | if test $sim_cv_decl_getopt_unistd_h = yes; then | |
13990 | ||
13991 | $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h | |
13992 | ||
13993 | fi | |
13994 | ||
d57b6533 | 13995 | |
b15c5d7a | 13996 | |
72d711c1 | 13997 | |
72d711c1 MF |
13998 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
13999 | if test "x$ac_cv_have_decl_ffs" = xyes; then : | |
14000 | ac_have_decl=1 | |
14001 | else | |
14002 | ac_have_decl=0 | |
14003 | fi | |
14004 | ||
14005 | cat >>confdefs.h <<_ACEOF | |
14006 | #define HAVE_DECL_FFS $ac_have_decl | |
14007 | _ACEOF | |
14008 | ||
14009 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" | |
14010 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : | |
14011 | ac_have_decl=1 | |
14012 | else | |
14013 | ac_have_decl=0 | |
14014 | fi | |
14015 | ||
14016 | cat >>confdefs.h <<_ACEOF | |
14017 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
14018 | _ACEOF | |
14019 | ||
14020 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" | |
14021 | if test "x$ac_cv_have_decl_vasprintf" = xyes; then : | |
14022 | ac_have_decl=1 | |
14023 | else | |
14024 | ac_have_decl=0 | |
14025 | fi | |
14026 | ||
14027 | cat >>confdefs.h <<_ACEOF | |
14028 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
14029 | _ACEOF | |
14030 | ||
14031 | ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" | |
14032 | if test "x$ac_cv_have_decl_snprintf" = xyes; then : | |
14033 | ac_have_decl=1 | |
14034 | else | |
14035 | ac_have_decl=0 | |
14036 | fi | |
14037 | ||
14038 | cat >>confdefs.h <<_ACEOF | |
14039 | #define HAVE_DECL_SNPRINTF $ac_have_decl | |
14040 | _ACEOF | |
14041 | ||
14042 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" | |
14043 | if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : | |
14044 | ac_have_decl=1 | |
14045 | else | |
14046 | ac_have_decl=0 | |
14047 | fi | |
14048 | ||
14049 | cat >>confdefs.h <<_ACEOF | |
14050 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | |
14051 | _ACEOF | |
14052 | ||
14053 | ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" | |
14054 | if test "x$ac_cv_have_decl_strtol" = xyes; then : | |
14055 | ac_have_decl=1 | |
14056 | else | |
14057 | ac_have_decl=0 | |
14058 | fi | |
14059 | ||
14060 | cat >>confdefs.h <<_ACEOF | |
14061 | #define HAVE_DECL_STRTOL $ac_have_decl | |
14062 | _ACEOF | |
14063 | ||
14064 | ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" | |
14065 | if test "x$ac_cv_have_decl_strtoul" = xyes; then : | |
14066 | ac_have_decl=1 | |
14067 | else | |
14068 | ac_have_decl=0 | |
14069 | fi | |
14070 | ||
14071 | cat >>confdefs.h <<_ACEOF | |
14072 | #define HAVE_DECL_STRTOUL $ac_have_decl | |
14073 | _ACEOF | |
14074 | ||
14075 | ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" | |
14076 | if test "x$ac_cv_have_decl_strtoll" = xyes; then : | |
14077 | ac_have_decl=1 | |
14078 | else | |
14079 | ac_have_decl=0 | |
14080 | fi | |
14081 | ||
14082 | cat >>confdefs.h <<_ACEOF | |
14083 | #define HAVE_DECL_STRTOLL $ac_have_decl | |
14084 | _ACEOF | |
14085 | ||
14086 | ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" | |
14087 | if test "x$ac_cv_have_decl_strtoull" = xyes; then : | |
14088 | ac_have_decl=1 | |
14089 | else | |
14090 | ac_have_decl=0 | |
14091 | fi | |
14092 | ||
14093 | cat >>confdefs.h <<_ACEOF | |
14094 | #define HAVE_DECL_STRTOULL $ac_have_decl | |
14095 | _ACEOF | |
14096 | ||
14097 | ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | |
14098 | if test "x$ac_cv_have_decl_strverscmp" = xyes; then : | |
14099 | ac_have_decl=1 | |
14100 | else | |
14101 | ac_have_decl=0 | |
14102 | fi | |
14103 | ||
14104 | cat >>confdefs.h <<_ACEOF | |
14105 | #define HAVE_DECL_STRVERSCMP $ac_have_decl | |
14106 | _ACEOF | |
14107 | ||
761ed61e | 14108 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
72d711c1 MF |
14109 | if test "x$ac_cv_type_long_long" = xyes; then : |
14110 | ||
14111 | cat >>confdefs.h <<_ACEOF | |
14112 | #define HAVE_LONG_LONG 1 | |
14113 | _ACEOF | |
14114 | ||
14115 | # The cast to long int works around a bug in the HP C Compiler | |
14116 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14117 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14118 | # This bug is HP SR number 8606223364. | |
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14120 | $as_echo_n "checking size of long long... " >&6; } | |
14121 | if ${ac_cv_sizeof_long_long+:} false; then : | |
14122 | $as_echo_n "(cached) " >&6 | |
14123 | else | |
14124 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14125 | ||
14126 | else | |
14127 | if test "$ac_cv_type_long_long" = yes; then | |
14128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14130 | as_fn_error 77 "cannot compute sizeof (long long) | |
14131 | See \`config.log' for more details" "$LINENO" 5; } | |
14132 | else | |
14133 | ac_cv_sizeof_long_long=0 | |
14134 | fi | |
14135 | fi | |
14136 | ||
14137 | fi | |
14138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
14139 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
14140 | ||
14141 | ||
14142 | ||
14143 | cat >>confdefs.h <<_ACEOF | |
14144 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14145 | _ACEOF | |
14146 | ||
14147 | ||
14148 | fi | |
14149 | ||
14150 | ||
14151 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` | |
14152 | ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" | |
14153 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | |
14154 | ac_have_decl=1 | |
14155 | else | |
14156 | ac_have_decl=0 | |
14157 | fi | |
14158 | ||
14159 | cat >>confdefs.h <<_ACEOF | |
14160 | #define HAVE_DECL_BASENAME $ac_have_decl | |
14161 | _ACEOF | |
14162 | ||
14163 | ||
14164 | ||
14165 | ||
14166 | ||
14167 | ||
14168 | ||
b15c5d7a MF |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14170 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14171 | # Check whether --enable-maintainer-mode was given. | |
14172 | if test "${enable_maintainer_mode+set}" = set; then : | |
14173 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
14174 | else | |
14175 | USE_MAINTAINER_MODE=no | |
14176 | fi | |
14177 | ||
14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14179 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
14180 | if test $USE_MAINTAINER_MODE = yes; then | |
14181 | MAINTAINER_MODE_TRUE= | |
14182 | MAINTAINER_MODE_FALSE='#' | |
14183 | else | |
14184 | MAINTAINER_MODE_TRUE='#' | |
14185 | MAINTAINER_MODE_FALSE= | |
14186 | fi | |
14187 | ||
14188 | MAINT=$MAINTAINER_MODE_TRUE | |
14189 | ||
14190 | ||
14191 | am__api_version='1.15' | |
14192 | ||
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
14194 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
14195 | # Reject unsafe characters in $srcdir or the absolute working directory | |
14196 | # name. Accept space and tab only in the latter. | |
14197 | am_lf=' | |
14198 | ' | |
14199 | case `pwd` in | |
14200 | *[\\\"\#\$\&\'\`$am_lf]*) | |
14201 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
14202 | esac | |
14203 | case $srcdir in | |
14204 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
14205 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
14206 | esac | |
14207 | ||
14208 | # Do 'set' in a subshell so we don't clobber the current shell's | |
14209 | # arguments. Must try -L first in case configure is actually a | |
14210 | # symlink; some systems play weird games with the mod time of symlinks | |
14211 | # (eg FreeBSD returns the mod time of the symlink's containing | |
14212 | # directory). | |
14213 | if ( | |
14214 | am_has_slept=no | |
14215 | for am_try in 1 2; do | |
14216 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
14217 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
14218 | if test "$*" = "X"; then | |
14219 | # -L didn't work. | |
14220 | set X `ls -t "$srcdir/configure" conftest.file` | |
14221 | fi | |
14222 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
14223 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
14224 | ||
14225 | # If neither matched, then we have a broken ls. This can happen | |
14226 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
14227 | # broken ls alias from the environment. This has actually | |
14228 | # happened. Such a system could not be considered "sane". | |
14229 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
14230 | alias in your environment" "$LINENO" 5 | |
14231 | fi | |
14232 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
14233 | break | |
14234 | fi | |
14235 | # Just in case. | |
14236 | sleep 1 | |
14237 | am_has_slept=yes | |
14238 | done | |
14239 | test "$2" = conftest.file | |
14240 | ) | |
14241 | then | |
14242 | # Ok. | |
14243 | : | |
14244 | else | |
14245 | as_fn_error $? "newly created file is older than distributed files! | |
14246 | Check your system clock" "$LINENO" 5 | |
14247 | fi | |
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14249 | $as_echo "yes" >&6; } | |
14250 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
14251 | # generated files are strictly newer. | |
14252 | am_sleep_pid= | |
14253 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
14254 | ( sleep 1 ) & | |
14255 | am_sleep_pid=$! | |
14256 | fi | |
14257 | ||
14258 | rm -f conftest.file | |
14259 | ||
14260 | if test x"${MISSING+set}" != xset; then | |
14261 | case $am_aux_dir in | |
14262 | *\ * | *\ *) | |
14263 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
14264 | *) | |
14265 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
14266 | esac | |
14267 | fi | |
14268 | # Use eval to expand $SHELL | |
14269 | if eval "$MISSING --is-lightweight"; then | |
14270 | am_missing_run="$MISSING " | |
c2783492 MF |
14271 | else |
14272 | am_missing_run= | |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
14274 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
14275 | fi | |
14276 | ||
14277 | if test x"${install_sh+set}" != xset; then | |
14278 | case $am_aux_dir in | |
14279 | *\ * | *\ *) | |
14280 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
14281 | *) | |
14282 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
14283 | esac | |
14284 | fi | |
14285 | ||
14286 | # Installed binaries are usually stripped using 'strip' when the user | |
14287 | # run "make install-strip". However 'strip' might not be the right | |
14288 | # tool to use in cross-compilation environments, therefore Automake | |
14289 | # will honor the 'STRIP' environment variable to overrule this program. | |
14290 | if test "$cross_compiling" != no; then | |
14291 | if test -n "$ac_tool_prefix"; then | |
14292 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14293 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14295 | $as_echo_n "checking for $ac_word... " >&6; } | |
14296 | if ${ac_cv_prog_STRIP+:} false; then : | |
14297 | $as_echo_n "(cached) " >&6 | |
14298 | else | |
14299 | if test -n "$STRIP"; then | |
14300 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14301 | else | |
14302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14303 | for as_dir in $PATH | |
14304 | do | |
14305 | IFS=$as_save_IFS | |
14306 | test -z "$as_dir" && as_dir=. | |
14307 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14308 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14309 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
14310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14311 | break 2 | |
81ecdfbb | 14312 | fi |
81ecdfbb | 14313 | done |
c2783492 MF |
14314 | done |
14315 | IFS=$as_save_IFS | |
b7026657 | 14316 | |
c906108c | 14317 | fi |
b7026657 | 14318 | fi |
c2783492 MF |
14319 | STRIP=$ac_cv_prog_STRIP |
14320 | if test -n "$STRIP"; then | |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
14322 | $as_echo "$STRIP" >&6; } | |
81ecdfbb | 14323 | else |
c2783492 MF |
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14325 | $as_echo "no" >&6; } | |
81ecdfbb | 14326 | fi |
b7026657 | 14327 | |
b7026657 | 14328 | |
c2783492 MF |
14329 | fi |
14330 | if test -z "$ac_cv_prog_STRIP"; then | |
14331 | ac_ct_STRIP=$STRIP | |
14332 | # Extract the first word of "strip", so it can be a program name with args. | |
14333 | set dummy strip; ac_word=$2 | |
14334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14335 | $as_echo_n "checking for $ac_word... " >&6; } | |
14336 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
14337 | $as_echo_n "(cached) " >&6 | |
c906108c | 14338 | else |
c2783492 MF |
14339 | if test -n "$ac_ct_STRIP"; then |
14340 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
81ecdfbb | 14341 | else |
c2783492 MF |
14342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14343 | for as_dir in $PATH | |
14344 | do | |
14345 | IFS=$as_save_IFS | |
14346 | test -z "$as_dir" && as_dir=. | |
14347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14349 | ac_cv_prog_ac_ct_STRIP="strip" | |
14350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14351 | break 2 | |
14352 | fi | |
14353 | done | |
14354 | done | |
14355 | IFS=$as_save_IFS | |
81ecdfbb | 14356 | |
81ecdfbb | 14357 | fi |
df1756f4 | 14358 | fi |
c2783492 MF |
14359 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
14360 | if test -n "$ac_ct_STRIP"; then | |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
14362 | $as_echo "$ac_ct_STRIP" >&6; } | |
14363 | else | |
14364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14365 | $as_echo "no" >&6; } | |
b7026657 | 14366 | fi |
c2783492 MF |
14367 | |
14368 | if test "x$ac_ct_STRIP" = x; then | |
14369 | STRIP=":" | |
c906108c | 14370 | else |
c2783492 MF |
14371 | case $cross_compiling:$ac_tool_warned in |
14372 | yes:) | |
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14374 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14375 | ac_tool_warned=yes ;; | |
14376 | esac | |
14377 | STRIP=$ac_ct_STRIP | |
c906108c SS |
14378 | fi |
14379 | else | |
c2783492 | 14380 | STRIP="$ac_cv_prog_STRIP" |
c906108c | 14381 | fi |
81ecdfbb | 14382 | |
b7026657 | 14383 | fi |
c2783492 | 14384 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b7026657 | 14385 | |
c2783492 MF |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
14387 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
14388 | if test -z "$MKDIR_P"; then | |
14389 | if ${ac_cv_path_mkdir+:} false; then : | |
14390 | $as_echo_n "(cached) " >&6 | |
14391 | else | |
14392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14393 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
14394 | do | |
14395 | IFS=$as_save_IFS | |
14396 | test -z "$as_dir" && as_dir=. | |
14397 | for ac_prog in mkdir gmkdir; do | |
14398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14399 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
14400 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
14401 | 'mkdir (GNU coreutils) '* | \ | |
14402 | 'mkdir (coreutils) '* | \ | |
14403 | 'mkdir (fileutils) '4.1*) | |
14404 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
14405 | break 3;; | |
14406 | esac | |
14407 | done | |
14408 | done | |
14409 | done | |
14410 | IFS=$as_save_IFS | |
b7026657 | 14411 | |
fdd6fa61 AG |
14412 | fi |
14413 | ||
c2783492 MF |
14414 | test -d ./--version && rmdir ./--version |
14415 | if test "${ac_cv_path_mkdir+set}" = set; then | |
14416 | MKDIR_P="$ac_cv_path_mkdir -p" | |
b5689863 MF |
14417 | else |
14418 | # As a last resort, use the slow shell script. Don't cache a | |
14419 | # value for MKDIR_P within a source directory, because that will | |
14420 | # break other packages using the cache if that directory is | |
14421 | # removed, or if the value is a relative name. | |
14422 | MKDIR_P="$ac_install_sh -d" | |
14423 | fi | |
c2783492 | 14424 | fi |
b5689863 MF |
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
14426 | $as_echo "$MKDIR_P" >&6; } | |
6bddc3e8 | 14427 | |
c2783492 MF |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
14429 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
14430 | set x ${MAKE-make} | |
14431 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
14432 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
6bddc3e8 MF |
14433 | $as_echo_n "(cached) " >&6 |
14434 | else | |
c2783492 MF |
14435 | cat >conftest.make <<\_ACEOF |
14436 | SHELL = /bin/sh | |
14437 | all: | |
14438 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
14439 | _ACEOF | |
14440 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
14441 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
14442 | *@@@%%%=?*=@@@%%%*) | |
14443 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
14444 | *) | |
14445 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
14446 | esac | |
14447 | rm -f conftest.make | |
14448 | fi | |
14449 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14451 | $as_echo "yes" >&6; } | |
14452 | SET_MAKE= | |
14453 | else | |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14455 | $as_echo "no" >&6; } | |
14456 | SET_MAKE="MAKE=${MAKE-make}" | |
14457 | fi | |
6bddc3e8 | 14458 | |
c2783492 MF |
14459 | rm -rf .tst 2>/dev/null |
14460 | mkdir .tst 2>/dev/null | |
14461 | if test -d .tst; then | |
14462 | am__leading_dot=. | |
14463 | else | |
14464 | am__leading_dot=_ | |
14465 | fi | |
14466 | rmdir .tst 2>/dev/null | |
6bddc3e8 | 14467 | |
c2783492 | 14468 | DEPDIR="${am__leading_dot}deps" |
6bddc3e8 | 14469 | |
c2783492 | 14470 | ac_config_commands="$ac_config_commands depfiles" |
6bddc3e8 | 14471 | |
c2783492 MF |
14472 | |
14473 | am_make=${MAKE-make} | |
14474 | cat > confinc << 'END' | |
14475 | am__doit: | |
14476 | @echo this is the am__doit target | |
14477 | .PHONY: am__doit | |
14478 | END | |
14479 | # If we don't find an include directive, just comment out the code. | |
14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
14481 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
14482 | am__include="#" | |
14483 | am__quote= | |
14484 | _am_result=none | |
14485 | # First try GNU make style include. | |
14486 | echo "include confinc" > confmf | |
14487 | # Ignore all kinds of additional output from 'make'. | |
14488 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
14489 | *the\ am__doit\ target*) | |
14490 | am__include=include | |
14491 | am__quote= | |
14492 | _am_result=GNU | |
14493 | ;; | |
14494 | esac | |
14495 | # Now try BSD make style include. | |
14496 | if test "$am__include" = "#"; then | |
14497 | echo '.include "confinc"' > confmf | |
14498 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
14499 | *the\ am__doit\ target*) | |
14500 | am__include=.include | |
14501 | am__quote="\"" | |
14502 | _am_result=BSD | |
14503 | ;; | |
14504 | esac | |
6bddc3e8 MF |
14505 | fi |
14506 | ||
c2783492 MF |
14507 | |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
14509 | $as_echo "$_am_result" >&6; } | |
14510 | rm -f confinc confmf | |
14511 | ||
14512 | # Check whether --enable-dependency-tracking was given. | |
14513 | if test "${enable_dependency_tracking+set}" = set; then : | |
14514 | enableval=$enable_dependency_tracking; | |
6bddc3e8 | 14515 | fi |
6bddc3e8 | 14516 | |
c2783492 MF |
14517 | if test "x$enable_dependency_tracking" != xno; then |
14518 | am_depcomp="$ac_aux_dir/depcomp" | |
14519 | AMDEPBACKSLASH='\' | |
14520 | am__nodep='_no' | |
14521 | fi | |
14522 | if test "x$enable_dependency_tracking" != xno; then | |
14523 | AMDEP_TRUE= | |
14524 | AMDEP_FALSE='#' | |
6bddc3e8 | 14525 | else |
c2783492 MF |
14526 | AMDEP_TRUE='#' |
14527 | AMDEP_FALSE= | |
6bddc3e8 MF |
14528 | fi |
14529 | ||
14530 | ||
c2783492 MF |
14531 | # Check whether --enable-silent-rules was given. |
14532 | if test "${enable_silent_rules+set}" = set; then : | |
14533 | enableval=$enable_silent_rules; | |
5e25901f | 14534 | fi |
c2783492 MF |
14535 | |
14536 | case $enable_silent_rules in # ((( | |
14537 | yes) AM_DEFAULT_VERBOSITY=0;; | |
14538 | no) AM_DEFAULT_VERBOSITY=1;; | |
14539 | *) AM_DEFAULT_VERBOSITY=1;; | |
14540 | esac | |
14541 | am_make=${MAKE-make} | |
14542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
14543 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
14544 | if ${am_cv_make_support_nested_variables+:} false; then : | |
5e25901f MF |
14545 | $as_echo_n "(cached) " >&6 |
14546 | else | |
c2783492 MF |
14547 | if $as_echo 'TRUE=$(BAR$(V)) |
14548 | BAR0=false | |
14549 | BAR1=true | |
14550 | V=1 | |
14551 | am__doit: | |
14552 | @$(TRUE) | |
14553 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
14554 | am_cv_make_support_nested_variables=yes | |
5e25901f | 14555 | else |
c2783492 | 14556 | am_cv_make_support_nested_variables=no |
5e25901f | 14557 | fi |
c2783492 MF |
14558 | fi |
14559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
14560 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
14561 | if test $am_cv_make_support_nested_variables = yes; then | |
14562 | AM_V='$(V)' | |
14563 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5e25901f | 14564 | else |
c2783492 MF |
14565 | AM_V=$AM_DEFAULT_VERBOSITY |
14566 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5e25901f | 14567 | fi |
c2783492 | 14568 | AM_BACKSLASH='\' |
5e25901f | 14569 | |
c2783492 MF |
14570 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
14571 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
14572 | # is not polluted with repeated "-I." | |
14573 | am__isrc=' -I$(srcdir)' | |
14574 | # test to see if srcdir already configured | |
14575 | if test -f $srcdir/config.status; then | |
14576 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
14577 | fi | |
5e25901f MF |
14578 | fi |
14579 | ||
c2783492 MF |
14580 | # test whether we have cygpath |
14581 | if test -z "$CYGPATH_W"; then | |
14582 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
14583 | CYGPATH_W='cygpath -w' | |
14584 | else | |
14585 | CYGPATH_W=echo | |
14586 | fi | |
5e25901f | 14587 | fi |
c2783492 MF |
14588 | |
14589 | ||
14590 | # Define the identity of the package. | |
14591 | PACKAGE='sim' | |
14592 | VERSION='0' | |
14593 | ||
14594 | ||
14595 | cat >>confdefs.h <<_ACEOF | |
14596 | #define PACKAGE "$PACKAGE" | |
5e25901f | 14597 | _ACEOF |
5e25901f | 14598 | |
5e25901f | 14599 | |
c2783492 MF |
14600 | cat >>confdefs.h <<_ACEOF |
14601 | #define VERSION "$VERSION" | |
5e25901f | 14602 | _ACEOF |
5e25901f | 14603 | |
c2783492 | 14604 | # Some tools Automake needs. |
5e25901f | 14605 | |
c2783492 MF |
14606 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
14607 | ||
14608 | ||
14609 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
14610 | ||
14611 | ||
14612 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
14613 | ||
14614 | ||
14615 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
14616 | ||
14617 | ||
14618 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
14619 | ||
14620 | # For better backward compatibility. To be removed once Automake 1.9.x | |
14621 | # dies out for good. For more background, see: | |
14622 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
14623 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
14624 | mkdir_p='$(MKDIR_P)' | |
14625 | ||
14626 | # We need awk for the "check" target (and possibly the TAP driver). The | |
14627 | # system "awk" is bad on some platforms. | |
14628 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
14629 | # in the wild :-( We should find a proper way to deprecate it ... | |
14630 | AMTAR='$${TAR-tar}' | |
14631 | ||
14632 | ||
14633 | # We'll loop over all known methods to create a tar archive until one works. | |
14634 | _am_tools='gnutar pax cpio none' | |
14635 | ||
14636 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
5e25901f | 14637 | |
5e25901f | 14638 | |
c906108c | 14639 | |
c906108c | 14640 | |
c2783492 MF |
14641 | |
14642 | depcc="$CC" am_compiler_list= | |
14643 | ||
14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
14645 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
14646 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
81ecdfbb | 14647 | $as_echo_n "(cached) " >&6 |
c906108c | 14648 | else |
c2783492 MF |
14649 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
14650 | # We make a subdir and do the tests there. Otherwise we can end up | |
14651 | # making bogus files that we don't know about and never remove. For | |
14652 | # instance it was reported that on HP-UX the gcc test will end up | |
14653 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
14654 | # in D". | |
14655 | rm -rf conftest.dir | |
14656 | mkdir conftest.dir | |
14657 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
14658 | # using a relative directory. | |
14659 | cp "$am_depcomp" conftest.dir | |
14660 | cd conftest.dir | |
14661 | # We will build objects and dependencies in a subdirectory because | |
14662 | # it helps to detect inapplicable dependency modes. For instance | |
14663 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
14664 | # side effect of compilation, but ICC will put the dependencies in | |
14665 | # the current directory while Tru64 will put them in the object | |
14666 | # directory. | |
14667 | mkdir sub | |
14668 | ||
14669 | am_cv_CC_dependencies_compiler_type=none | |
14670 | if test "$am_compiler_list" = ""; then | |
14671 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
b7026657 | 14672 | fi |
c2783492 MF |
14673 | am__universal=false |
14674 | case " $depcc " in #( | |
14675 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
14676 | esac | |
14677 | ||
14678 | for depmode in $am_compiler_list; do | |
14679 | # Setup a source with many dependencies, because some compilers | |
14680 | # like to wrap large dependency lists on column 80 (with \), and | |
14681 | # we should not choose a depcomp mode which is confused by this. | |
14682 | # | |
14683 | # We need to recreate these files for each test, as the compiler may | |
14684 | # overwrite some of them when testing with obscure command lines. | |
14685 | # This happens at least with the AIX C compiler. | |
14686 | : > sub/conftest.c | |
14687 | for i in 1 2 3 4 5 6; do | |
14688 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
14689 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
14690 | # Solaris 10 /bin/sh. | |
14691 | echo '/* dummy */' > sub/conftst$i.h | |
14692 | done | |
14693 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
14694 | ||
14695 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
14696 | # mode. It turns out that the SunPro C++ compiler does not properly | |
14697 | # handle '-M -o', and we need to detect this. Also, some Intel | |
14698 | # versions had trouble with output in subdirs. | |
14699 | am__obj=sub/conftest.${OBJEXT-o} | |
14700 | am__minus_obj="-o $am__obj" | |
14701 | case $depmode in | |
14702 | gcc) | |
14703 | # This depmode causes a compiler race in universal mode. | |
14704 | test "$am__universal" = false || continue | |
14705 | ;; | |
14706 | nosideeffect) | |
14707 | # After this tag, mechanisms are not by side-effect, so they'll | |
14708 | # only be used when explicitly requested. | |
14709 | if test "x$enable_dependency_tracking" = xyes; then | |
14710 | continue | |
14711 | else | |
14712 | break | |
14713 | fi | |
14714 | ;; | |
14715 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
14716 | # This compiler won't grok '-c -o', but also, the minuso test has | |
14717 | # not run yet. These depmodes are late enough in the game, and | |
14718 | # so weak that their functioning should not be impacted. | |
14719 | am__obj=conftest.${OBJEXT-o} | |
14720 | am__minus_obj= | |
14721 | ;; | |
14722 | none) break ;; | |
14723 | esac | |
14724 | if depmode=$depmode \ | |
14725 | source=sub/conftest.c object=$am__obj \ | |
14726 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
14727 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
14728 | >/dev/null 2>conftest.err && | |
14729 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
14730 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
14731 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
14732 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
14733 | # icc doesn't choke on unknown options, it will just issue warnings | |
14734 | # or remarks (even with -Werror). So we grep stderr for any message | |
14735 | # that says an option was ignored or not supported. | |
14736 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
14737 | # icc: Command line warning: ignoring option '-M'; no argument required | |
14738 | # The diagnosis changed in icc 8.0: | |
14739 | # icc: Command line remark: option '-MP' not supported | |
14740 | if (grep 'ignoring option' conftest.err || | |
14741 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
14742 | am_cv_CC_dependencies_compiler_type=$depmode | |
14743 | break | |
14744 | fi | |
14745 | fi | |
81ecdfbb | 14746 | done |
b7026657 | 14747 | |
c2783492 MF |
14748 | cd .. |
14749 | rm -rf conftest.dir | |
b7026657 | 14750 | else |
c2783492 | 14751 | am_cv_CC_dependencies_compiler_type=none |
b7026657 AC |
14752 | fi |
14753 | ||
14754 | fi | |
c2783492 MF |
14755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
14756 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
14757 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
b7026657 | 14758 | |
c2783492 MF |
14759 | if |
14760 | test "x$enable_dependency_tracking" != xno \ | |
14761 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
14762 | am__fastdepCC_TRUE= | |
14763 | am__fastdepCC_FALSE='#' | |
c906108c | 14764 | else |
c2783492 MF |
14765 | am__fastdepCC_TRUE='#' |
14766 | am__fastdepCC_FALSE= | |
b7026657 AC |
14767 | fi |
14768 | ||
c906108c SS |
14769 | |
14770 | ||
c2783492 MF |
14771 | # POSIX will say in a future version that running "rm -f" with no argument |
14772 | # is OK; and we want to be able to make that assumption in our Makefile | |
14773 | # recipes. So use an aggressive probe to check that the usage we want is | |
14774 | # actually supported "in the wild" to an acceptable degree. | |
14775 | # See automake bug#10828. | |
14776 | # To make any issue more visible, cause the running configure to be aborted | |
14777 | # by default if the 'rm' program in use doesn't match our expectations; the | |
14778 | # user can still override this though. | |
14779 | if rm -f && rm -fr && rm -rf; then : OK; else | |
14780 | cat >&2 <<'END' | |
14781 | Oops! | |
14782 | ||
14783 | Your 'rm' program seems unable to run without file operands specified | |
14784 | on the command line, even when the '-f' option is present. This is contrary | |
14785 | to the behaviour of most rm programs out there, and not conforming with | |
14786 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
14787 | ||
14788 | Please tell bug-automake@gnu.org about your system, including the value | |
14789 | of your $PATH and any error possibly output before this message. This | |
14790 | can help us improve future automake versions. | |
14791 | ||
14792 | END | |
14793 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
14794 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
14795 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
14796 | echo >&2 | |
5c887dd5 | 14797 | else |
c2783492 MF |
14798 | cat >&2 <<'END' |
14799 | Aborting the configuration process, to ensure you take notice of the issue. | |
14800 | ||
14801 | You can download and install GNU coreutils to get an 'rm' implementation | |
14802 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
14803 | ||
14804 | If you want to complete the configuration process using your problematic | |
14805 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
14806 | to "yes", and re-run configure. | |
14807 | ||
14808 | END | |
14809 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5c887dd5 | 14810 | fi |
c906108c SS |
14811 | fi |
14812 | ||
fbe8d1cf MF |
14813 | # Check whether --enable-silent-rules was given. |
14814 | if test "${enable_silent_rules+set}" = set; then : | |
14815 | enableval=$enable_silent_rules; | |
14816 | fi | |
14817 | ||
14818 | case $enable_silent_rules in # ((( | |
14819 | yes) AM_DEFAULT_VERBOSITY=0;; | |
14820 | no) AM_DEFAULT_VERBOSITY=1;; | |
14821 | *) AM_DEFAULT_VERBOSITY=0;; | |
14822 | esac | |
14823 | am_make=${MAKE-make} | |
14824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
14825 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
14826 | if ${am_cv_make_support_nested_variables+:} false; then : | |
14827 | $as_echo_n "(cached) " >&6 | |
14828 | else | |
14829 | if $as_echo 'TRUE=$(BAR$(V)) | |
14830 | BAR0=false | |
14831 | BAR1=true | |
14832 | V=1 | |
14833 | am__doit: | |
14834 | @$(TRUE) | |
14835 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
14836 | am_cv_make_support_nested_variables=yes | |
14837 | else | |
14838 | am_cv_make_support_nested_variables=no | |
14839 | fi | |
14840 | fi | |
14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
14842 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
14843 | if test $am_cv_make_support_nested_variables = yes; then | |
14844 | AM_V='$(V)' | |
14845 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
14846 | else | |
14847 | AM_V=$AM_DEFAULT_VERBOSITY | |
14848 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
14849 | fi | |
14850 | AM_BACKSLASH='\' | |
14851 | ||
c906108c SS |
14852 | |
14853 | # If a cpu ever has more than one simulator to choose from, use | |
14854 | # --enable-sim=... to choose. | |
81ecdfbb RW |
14855 | # Check whether --enable-sim was given. |
14856 | if test "${enable_sim+set}" = set; then : | |
14857 | enableval=$enable_sim; case "${enableval}" in | |
c906108c | 14858 | yes | no) ;; |
d0ac1c44 | 14859 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; |
c906108c | 14860 | esac |
81ecdfbb RW |
14861 | fi |
14862 | ||
c906108c | 14863 | |
26da232c MF |
14864 | # Check whether --enable-example-sims was given. |
14865 | if test "${enable_example_sims+set}" = set; then : | |
14866 | enableval=$enable_example_sims; | |
14867 | fi | |
14868 | ||
14869 | ||
a0e674c1 MF |
14870 | # Check whether --enable-targets was given. |
14871 | if test "${enable_targets+set}" = set; then : | |
14872 | enableval=$enable_targets; case "${enableval}" in | |
14873 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
14874 | ;; | |
14875 | no) enable_targets= ;; | |
14876 | *) enable_targets=$enableval ;; | |
14877 | esac | |
14878 | fi | |
14879 | ||
14880 | ||
14881 | SIM_PRIMARY_TARGET= | |
14882 | ||
14883 | ||
2ba09f42 MF |
14884 | SIM_ENABLED_ARCHES= |
14885 | ||
14886 | ||
7c9a934c | 14887 | ENABLE_SIM=no |
a0e674c1 MF |
14888 | |
14889 | ||
bc56166f | 14890 | |
119da465 | 14891 | if test "${enable_sim}" != no; then |
a0e674c1 MF |
14892 | for targ in `echo $target $enable_targets | sed 's/,/ /g'` |
14893 | do | |
65dcce8f MF |
14894 | sim_enable_arch_aarch64=false |
14895 | case "${targ}" in | |
a0e674c1 MF |
14896 | all|aarch64*-*-*) |
14897 | if test "${targ}" = "${target}"; then | |
14898 | SIM_PRIMARY_TARGET=aarch64 | |
14899 | fi | |
7c9a934c MF |
14900 | ENABLE_SIM=yes |
14901 | as_fn_append SIM_ENABLED_ARCHES " aarch64" | |
23912acd MF |
14902 | ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in" |
14903 | ||
bc56166f | 14904 | |
65dcce8f | 14905 | sim_enable_arch_aarch64=true |
3e8bb3e9 | 14906 | ;; |
a0e674c1 | 14907 | esac |
dc4e1fde HPN |
14908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14909 | $as_echo_n "checking where to find the target cc... " >&6; } | |
14910 | if test "x${build}" != "x${host}" ; then | |
14911 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
14912 | # We already found the complete path | |
14913 | ac_dir=`dirname $CC_FOR_TARGET` | |
14914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14915 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14916 | else | |
14917 | # Canadian cross, just use what we found | |
14918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14919 | $as_echo "pre-installed" >&6; } | |
14920 | fi | |
14921 | else | |
14922 | ok=yes | |
14923 | case " ${configdirs} " in | |
14924 | *" ${target_alias}-gcc "*) ;; | |
14925 | *) ok=no ;; | |
14926 | esac | |
14927 | ||
14928 | if test $ok = yes; then | |
14929 | # An in-tree tool is available and we can use it | |
14930 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc' | |
14931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14932 | $as_echo "just compiled" >&6; } | |
14933 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
14934 | # We already found the complete path | |
14935 | ac_dir=`dirname $CC_FOR_TARGET` | |
14936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14937 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14938 | elif test "x$target" = "x$host"; then | |
14939 | # We can use an host tool | |
14940 | CC_FOR_TARGET='$(CC)' | |
14941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14942 | $as_echo "host tool" >&6; } | |
14943 | else | |
14944 | # We need a cross tool | |
14945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14946 | $as_echo "pre-installed" >&6; } | |
14947 | fi | |
14948 | fi | |
14949 | ||
14950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 | |
14951 | $as_echo_n "checking where to find the target as... " >&6; } | |
14952 | if test "x${build}" != "x${host}" ; then | |
14953 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
14954 | # We already found the complete path | |
14955 | ac_dir=`dirname $AS_FOR_TARGET` | |
14956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14957 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14958 | else | |
14959 | # Canadian cross, just use what we found | |
14960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14961 | $as_echo "pre-installed" >&6; } | |
14962 | fi | |
14963 | else | |
14964 | ok=yes | |
14965 | case " ${configdirs} " in | |
14966 | *" \$(abs_builddir) "*) ;; | |
14967 | *) ok=no ;; | |
14968 | esac | |
14969 | ||
14970 | if test $ok = yes; then | |
14971 | # An in-tree tool is available and we can use it | |
14972 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new' | |
14973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14974 | $as_echo "just compiled" >&6; } | |
14975 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
14976 | # We already found the complete path | |
14977 | ac_dir=`dirname $AS_FOR_TARGET` | |
14978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14979 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14980 | elif test "x$target" = "x$host"; then | |
14981 | # We can use an host tool | |
14982 | AS_FOR_TARGET='$(AS)' | |
14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14984 | $as_echo "host tool" >&6; } | |
14985 | else | |
14986 | # We need a cross tool | |
14987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14988 | $as_echo "pre-installed" >&6; } | |
14989 | fi | |
14990 | fi | |
14991 | ||
14992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 | |
14993 | $as_echo_n "checking where to find the target ld... " >&6; } | |
14994 | if test "x${build}" != "x${host}" ; then | |
14995 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
14996 | # We already found the complete path | |
14997 | ac_dir=`dirname $LD_FOR_TARGET` | |
14998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14999 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15000 | else | |
15001 | # Canadian cross, just use what we found | |
15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15003 | $as_echo "pre-installed" >&6; } | |
15004 | fi | |
15005 | else | |
15006 | ok=yes | |
15007 | case " ${configdirs} " in | |
15008 | *" \$(abs_builddir) "*) ;; | |
15009 | *) ok=no ;; | |
15010 | esac | |
15011 | ||
15012 | if test $ok = yes; then | |
15013 | # An in-tree tool is available and we can use it | |
15014 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new' | |
15015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
15016 | $as_echo "just compiled" >&6; } | |
15017 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
15018 | # We already found the complete path | |
15019 | ac_dir=`dirname $LD_FOR_TARGET` | |
15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
15021 | $as_echo "pre-installed in $ac_dir" >&6; } | |
15022 | elif test "x$target" = "x$host"; then | |
15023 | # We can use an host tool | |
15024 | LD_FOR_TARGET='$(LD)' | |
15025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
15026 | $as_echo "host tool" >&6; } | |
15027 | else | |
15028 | # We need a cross tool | |
15029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
15030 | $as_echo "pre-installed" >&6; } | |
15031 | fi | |
15032 | fi | |
15033 | ||
15034 | ||
15035 | ||
8996c210 MF |
15036 | |
15037 | ||
15038 | ||
15039 | if test "$SIM_PRIMARY_TARGET" = "aarch64"; then : | |
dc4e1fde HPN |
15040 | : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}" |
15041 | : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}" | |
15042 | : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15043 | |
15044 | fi | |
15045 | ||
15046 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64" | |
15047 | ||
65dcce8f MF |
15048 | if ${sim_enable_arch_aarch64}; then |
15049 | SIM_ENABLE_ARCH_aarch64_TRUE= | |
15050 | SIM_ENABLE_ARCH_aarch64_FALSE='#' | |
15051 | else | |
15052 | SIM_ENABLE_ARCH_aarch64_TRUE='#' | |
15053 | SIM_ENABLE_ARCH_aarch64_FALSE= | |
15054 | fi | |
15055 | ||
586cfe1a | 15056 | sim_enable_arch_arm=false |
65dcce8f | 15057 | case "${targ}" in |
a0e674c1 MF |
15058 | all|arm*-*-*) |
15059 | if test "${targ}" = "${target}"; then | |
15060 | SIM_PRIMARY_TARGET=arm | |
15061 | fi | |
7c9a934c MF |
15062 | ENABLE_SIM=yes |
15063 | as_fn_append SIM_ENABLED_ARCHES " arm" | |
23912acd MF |
15064 | ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in" |
15065 | ||
fdd6fa61 | 15066 | |
65dcce8f | 15067 | sim_enable_arch_arm=true |
3e8bb3e9 | 15068 | ;; |
a0e674c1 | 15069 | esac |
8996c210 MF |
15070 | |
15071 | ||
15072 | ||
dc4e1fde | 15073 | |
8996c210 | 15074 | if test "$SIM_PRIMARY_TARGET" = "arm"; then : |
dc4e1fde HPN |
15075 | : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}" |
15076 | : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}" | |
15077 | : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15078 | |
15079 | fi | |
15080 | ||
15081 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM" | |
15082 | ||
65dcce8f MF |
15083 | if ${sim_enable_arch_arm}; then |
15084 | SIM_ENABLE_ARCH_arm_TRUE= | |
15085 | SIM_ENABLE_ARCH_arm_FALSE='#' | |
15086 | else | |
15087 | SIM_ENABLE_ARCH_arm_TRUE='#' | |
15088 | SIM_ENABLE_ARCH_arm_FALSE= | |
15089 | fi | |
a0e674c1 | 15090 | |
586cfe1a | 15091 | sim_enable_arch_avr=false |
65dcce8f | 15092 | case "${targ}" in |
a0e674c1 MF |
15093 | all|avr*-*-*) |
15094 | if test "${targ}" = "${target}"; then | |
15095 | SIM_PRIMARY_TARGET=avr | |
15096 | fi | |
7c9a934c MF |
15097 | ENABLE_SIM=yes |
15098 | as_fn_append SIM_ENABLED_ARCHES " avr" | |
23912acd MF |
15099 | ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in" |
15100 | ||
0cd79707 | 15101 | |
65dcce8f | 15102 | sim_enable_arch_avr=true |
3e8bb3e9 | 15103 | ;; |
a0e674c1 | 15104 | esac |
8996c210 MF |
15105 | |
15106 | ||
15107 | ||
dc4e1fde | 15108 | |
8996c210 | 15109 | if test "$SIM_PRIMARY_TARGET" = "avr"; then : |
dc4e1fde HPN |
15110 | : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}" |
15111 | : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}" | |
15112 | : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15113 | |
15114 | fi | |
15115 | ||
15116 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR" | |
15117 | ||
65dcce8f MF |
15118 | if ${sim_enable_arch_avr}; then |
15119 | SIM_ENABLE_ARCH_avr_TRUE= | |
15120 | SIM_ENABLE_ARCH_avr_FALSE='#' | |
15121 | else | |
15122 | SIM_ENABLE_ARCH_avr_TRUE='#' | |
15123 | SIM_ENABLE_ARCH_avr_FALSE= | |
15124 | fi | |
a0e674c1 | 15125 | |
586cfe1a | 15126 | sim_enable_arch_bfin=false |
65dcce8f | 15127 | case "${targ}" in |
a0e674c1 MF |
15128 | all|bfin-*-*) |
15129 | if test "${targ}" = "${target}"; then | |
15130 | SIM_PRIMARY_TARGET=bfin | |
15131 | fi | |
7c9a934c MF |
15132 | ENABLE_SIM=yes |
15133 | as_fn_append SIM_ENABLED_ARCHES " bfin" | |
23912acd MF |
15134 | ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in" |
15135 | ||
ddd44b70 | 15136 | |
65dcce8f | 15137 | sim_enable_arch_bfin=true |
3e8bb3e9 | 15138 | ;; |
a0e674c1 | 15139 | esac |
8996c210 MF |
15140 | |
15141 | ||
15142 | ||
dc4e1fde | 15143 | |
8996c210 | 15144 | if test "$SIM_PRIMARY_TARGET" = "bfin"; then : |
dc4e1fde HPN |
15145 | : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}" |
15146 | : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}" | |
15147 | : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15148 | |
15149 | fi | |
15150 | ||
15151 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN" | |
15152 | ||
65dcce8f MF |
15153 | if ${sim_enable_arch_bfin}; then |
15154 | SIM_ENABLE_ARCH_bfin_TRUE= | |
15155 | SIM_ENABLE_ARCH_bfin_FALSE='#' | |
15156 | else | |
15157 | SIM_ENABLE_ARCH_bfin_TRUE='#' | |
15158 | SIM_ENABLE_ARCH_bfin_FALSE= | |
15159 | fi | |
15160 | ||
586cfe1a | 15161 | sim_enable_arch_bpf=false |
65dcce8f | 15162 | case "${targ}" in |
a0e674c1 MF |
15163 | all|bpf-*-*) |
15164 | if test "${targ}" = "${target}"; then | |
15165 | SIM_PRIMARY_TARGET=bpf | |
15166 | fi | |
7c9a934c MF |
15167 | ENABLE_SIM=yes |
15168 | as_fn_append SIM_ENABLED_ARCHES " bpf" | |
23912acd MF |
15169 | ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in" |
15170 | ||
ddd44b70 | 15171 | |
65dcce8f | 15172 | sim_enable_arch_bpf=true |
3e8bb3e9 | 15173 | ;; |
a0e674c1 | 15174 | esac |
8996c210 MF |
15175 | |
15176 | ||
15177 | ||
dc4e1fde | 15178 | |
8996c210 | 15179 | if test "$SIM_PRIMARY_TARGET" = "bpf"; then : |
dc4e1fde HPN |
15180 | : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}" |
15181 | : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}" | |
15182 | : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15183 | |
15184 | fi | |
15185 | ||
15186 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF" | |
15187 | ||
65dcce8f MF |
15188 | if ${sim_enable_arch_bpf}; then |
15189 | SIM_ENABLE_ARCH_bpf_TRUE= | |
15190 | SIM_ENABLE_ARCH_bpf_FALSE='#' | |
15191 | else | |
15192 | SIM_ENABLE_ARCH_bpf_TRUE='#' | |
15193 | SIM_ENABLE_ARCH_bpf_FALSE= | |
15194 | fi | |
15195 | ||
586cfe1a | 15196 | sim_enable_arch_cr16=false |
65dcce8f | 15197 | case "${targ}" in |
a0e674c1 MF |
15198 | all|cr16*-*-*) |
15199 | if test "${targ}" = "${target}"; then | |
15200 | SIM_PRIMARY_TARGET=cr16 | |
15201 | fi | |
7c9a934c MF |
15202 | ENABLE_SIM=yes |
15203 | as_fn_append SIM_ENABLED_ARCHES " cr16" | |
23912acd MF |
15204 | ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in" |
15205 | ||
ddd44b70 | 15206 | |
65dcce8f | 15207 | sim_enable_arch_cr16=true |
3e8bb3e9 | 15208 | ;; |
a0e674c1 | 15209 | esac |
8996c210 MF |
15210 | |
15211 | ||
15212 | ||
dc4e1fde | 15213 | |
8996c210 | 15214 | if test "$SIM_PRIMARY_TARGET" = "cr16"; then : |
dc4e1fde HPN |
15215 | : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}" |
15216 | : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}" | |
15217 | : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15218 | |
15219 | fi | |
15220 | ||
15221 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16" | |
15222 | ||
65dcce8f MF |
15223 | if ${sim_enable_arch_cr16}; then |
15224 | SIM_ENABLE_ARCH_cr16_TRUE= | |
15225 | SIM_ENABLE_ARCH_cr16_FALSE='#' | |
15226 | else | |
15227 | SIM_ENABLE_ARCH_cr16_TRUE='#' | |
15228 | SIM_ENABLE_ARCH_cr16_FALSE= | |
15229 | fi | |
15230 | ||
586cfe1a | 15231 | sim_enable_arch_cris=false |
65dcce8f | 15232 | case "${targ}" in |
a0e674c1 MF |
15233 | all|cris-*-* | crisv32-*-*) |
15234 | if test "${targ}" = "${target}"; then | |
15235 | SIM_PRIMARY_TARGET=cris | |
15236 | fi | |
7c9a934c MF |
15237 | ENABLE_SIM=yes |
15238 | as_fn_append SIM_ENABLED_ARCHES " cris" | |
23912acd MF |
15239 | ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in" |
15240 | ||
b9249c46 | 15241 | |
65dcce8f | 15242 | sim_enable_arch_cris=true |
3e8bb3e9 | 15243 | ;; |
a0e674c1 | 15244 | esac |
8996c210 MF |
15245 | |
15246 | ||
15247 | ||
dc4e1fde | 15248 | |
8996c210 | 15249 | if test "$SIM_PRIMARY_TARGET" = "cris"; then : |
dc4e1fde HPN |
15250 | : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}" |
15251 | : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}" | |
15252 | : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15253 | |
15254 | fi | |
15255 | ||
15256 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS" | |
15257 | ||
65dcce8f MF |
15258 | if ${sim_enable_arch_cris}; then |
15259 | SIM_ENABLE_ARCH_cris_TRUE= | |
15260 | SIM_ENABLE_ARCH_cris_FALSE='#' | |
15261 | else | |
15262 | SIM_ENABLE_ARCH_cris_TRUE='#' | |
15263 | SIM_ENABLE_ARCH_cris_FALSE= | |
15264 | fi | |
a0e674c1 | 15265 | |
586cfe1a | 15266 | sim_enable_arch_d10v=false |
65dcce8f | 15267 | case "${targ}" in |
a0e674c1 MF |
15268 | all|d10v-*-*) |
15269 | if test "${targ}" = "${target}"; then | |
15270 | SIM_PRIMARY_TARGET=d10v | |
15271 | fi | |
7c9a934c MF |
15272 | ENABLE_SIM=yes |
15273 | as_fn_append SIM_ENABLED_ARCHES " d10v" | |
23912acd MF |
15274 | ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in" |
15275 | ||
b9249c46 | 15276 | |
65dcce8f | 15277 | sim_enable_arch_d10v=true |
3e8bb3e9 | 15278 | ;; |
a0e674c1 | 15279 | esac |
8996c210 MF |
15280 | |
15281 | ||
15282 | ||
dc4e1fde | 15283 | |
8996c210 | 15284 | if test "$SIM_PRIMARY_TARGET" = "d10v"; then : |
dc4e1fde HPN |
15285 | : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}" |
15286 | : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}" | |
15287 | : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15288 | |
15289 | fi | |
15290 | ||
15291 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V" | |
15292 | ||
65dcce8f MF |
15293 | if ${sim_enable_arch_d10v}; then |
15294 | SIM_ENABLE_ARCH_d10v_TRUE= | |
15295 | SIM_ENABLE_ARCH_d10v_FALSE='#' | |
15296 | else | |
15297 | SIM_ENABLE_ARCH_d10v_TRUE='#' | |
15298 | SIM_ENABLE_ARCH_d10v_FALSE= | |
15299 | fi | |
a0e674c1 | 15300 | |
586cfe1a | 15301 | sim_enable_arch_frv=false |
65dcce8f | 15302 | case "${targ}" in |
a0e674c1 MF |
15303 | all|frv-*-*) |
15304 | if test "${targ}" = "${target}"; then | |
15305 | SIM_PRIMARY_TARGET=frv | |
15306 | fi | |
7c9a934c MF |
15307 | ENABLE_SIM=yes |
15308 | as_fn_append SIM_ENABLED_ARCHES " frv" | |
23912acd MF |
15309 | ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in" |
15310 | ||
b9249c46 | 15311 | |
65dcce8f | 15312 | sim_enable_arch_frv=true |
36bb57e4 MF |
15313 | ;; |
15314 | esac | |
8996c210 MF |
15315 | |
15316 | ||
15317 | ||
dc4e1fde | 15318 | |
8996c210 | 15319 | if test "$SIM_PRIMARY_TARGET" = "frv"; then : |
dc4e1fde HPN |
15320 | : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}" |
15321 | : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}" | |
15322 | : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15323 | |
15324 | fi | |
15325 | ||
15326 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV" | |
15327 | ||
65dcce8f MF |
15328 | if ${sim_enable_arch_frv}; then |
15329 | SIM_ENABLE_ARCH_frv_TRUE= | |
15330 | SIM_ENABLE_ARCH_frv_FALSE='#' | |
15331 | else | |
15332 | SIM_ENABLE_ARCH_frv_TRUE='#' | |
15333 | SIM_ENABLE_ARCH_frv_FALSE= | |
15334 | fi | |
15335 | ||
586cfe1a | 15336 | sim_enable_arch_ft32=false |
65dcce8f | 15337 | case "${targ}" in |
36bb57e4 MF |
15338 | all|ft32-*-*) |
15339 | if test "${targ}" = "${target}"; then | |
15340 | SIM_PRIMARY_TARGET=ft32 | |
15341 | fi | |
7c9a934c MF |
15342 | ENABLE_SIM=yes |
15343 | as_fn_append SIM_ENABLED_ARCHES " ft32" | |
23912acd MF |
15344 | ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in" |
15345 | ||
36bb57e4 | 15346 | |
65dcce8f | 15347 | sim_enable_arch_ft32=true |
3e8bb3e9 | 15348 | ;; |
a0e674c1 | 15349 | esac |
8996c210 MF |
15350 | |
15351 | ||
15352 | ||
dc4e1fde | 15353 | |
8996c210 | 15354 | if test "$SIM_PRIMARY_TARGET" = "ft32"; then : |
dc4e1fde HPN |
15355 | : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}" |
15356 | : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}" | |
15357 | : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15358 | |
15359 | fi | |
15360 | ||
15361 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32" | |
15362 | ||
65dcce8f MF |
15363 | if ${sim_enable_arch_ft32}; then |
15364 | SIM_ENABLE_ARCH_ft32_TRUE= | |
15365 | SIM_ENABLE_ARCH_ft32_FALSE='#' | |
15366 | else | |
15367 | SIM_ENABLE_ARCH_ft32_TRUE='#' | |
15368 | SIM_ENABLE_ARCH_ft32_FALSE= | |
15369 | fi | |
15370 | ||
586cfe1a | 15371 | sim_enable_arch_h8300=false |
65dcce8f | 15372 | case "${targ}" in |
a0e674c1 MF |
15373 | all|h8300*-*-*) |
15374 | if test "${targ}" = "${target}"; then | |
15375 | SIM_PRIMARY_TARGET=h8300 | |
15376 | fi | |
7c9a934c MF |
15377 | ENABLE_SIM=yes |
15378 | as_fn_append SIM_ENABLED_ARCHES " h8300" | |
23912acd MF |
15379 | ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in" |
15380 | ||
119da465 | 15381 | |
65dcce8f | 15382 | sim_enable_arch_h8300=true |
3e8bb3e9 | 15383 | ;; |
a0e674c1 | 15384 | esac |
8996c210 MF |
15385 | |
15386 | ||
15387 | ||
dc4e1fde | 15388 | |
8996c210 | 15389 | if test "$SIM_PRIMARY_TARGET" = "h8300"; then : |
dc4e1fde HPN |
15390 | : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}" |
15391 | : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}" | |
15392 | : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15393 | |
15394 | fi | |
15395 | ||
15396 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300" | |
15397 | ||
65dcce8f MF |
15398 | if ${sim_enable_arch_h8300}; then |
15399 | SIM_ENABLE_ARCH_h8300_TRUE= | |
15400 | SIM_ENABLE_ARCH_h8300_FALSE='#' | |
15401 | else | |
15402 | SIM_ENABLE_ARCH_h8300_TRUE='#' | |
15403 | SIM_ENABLE_ARCH_h8300_FALSE= | |
15404 | fi | |
15405 | ||
586cfe1a | 15406 | sim_enable_arch_iq2000=false |
65dcce8f | 15407 | case "${targ}" in |
a0e674c1 MF |
15408 | all|iq2000-*-*) |
15409 | if test "${targ}" = "${target}"; then | |
15410 | SIM_PRIMARY_TARGET=iq2000 | |
15411 | fi | |
7c9a934c MF |
15412 | ENABLE_SIM=yes |
15413 | as_fn_append SIM_ENABLED_ARCHES " iq2000" | |
23912acd MF |
15414 | ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in" |
15415 | ||
119da465 | 15416 | |
65dcce8f | 15417 | sim_enable_arch_iq2000=true |
3e8bb3e9 | 15418 | ;; |
a0e674c1 | 15419 | esac |
8996c210 MF |
15420 | |
15421 | ||
15422 | ||
dc4e1fde | 15423 | |
8996c210 | 15424 | if test "$SIM_PRIMARY_TARGET" = "iq2000"; then : |
dc4e1fde HPN |
15425 | : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}" |
15426 | : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}" | |
15427 | : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15428 | |
15429 | fi | |
15430 | ||
15431 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000" | |
15432 | ||
65dcce8f MF |
15433 | if ${sim_enable_arch_iq2000}; then |
15434 | SIM_ENABLE_ARCH_iq2000_TRUE= | |
15435 | SIM_ENABLE_ARCH_iq2000_FALSE='#' | |
15436 | else | |
15437 | SIM_ENABLE_ARCH_iq2000_TRUE='#' | |
15438 | SIM_ENABLE_ARCH_iq2000_FALSE= | |
15439 | fi | |
a0e674c1 | 15440 | |
586cfe1a | 15441 | sim_enable_arch_lm32=false |
65dcce8f | 15442 | case "${targ}" in |
a0e674c1 MF |
15443 | all|lm32-*-*) |
15444 | if test "${targ}" = "${target}"; then | |
15445 | SIM_PRIMARY_TARGET=lm32 | |
15446 | fi | |
7c9a934c MF |
15447 | ENABLE_SIM=yes |
15448 | as_fn_append SIM_ENABLED_ARCHES " lm32" | |
23912acd MF |
15449 | ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in" |
15450 | ||
119da465 | 15451 | |
65dcce8f | 15452 | sim_enable_arch_lm32=true |
3e8bb3e9 | 15453 | ;; |
a0e674c1 | 15454 | esac |
8996c210 MF |
15455 | |
15456 | ||
15457 | ||
dc4e1fde | 15458 | |
8996c210 | 15459 | if test "$SIM_PRIMARY_TARGET" = "lm32"; then : |
dc4e1fde HPN |
15460 | : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}" |
15461 | : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}" | |
15462 | : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15463 | |
15464 | fi | |
15465 | ||
15466 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32" | |
15467 | ||
65dcce8f MF |
15468 | if ${sim_enable_arch_lm32}; then |
15469 | SIM_ENABLE_ARCH_lm32_TRUE= | |
15470 | SIM_ENABLE_ARCH_lm32_FALSE='#' | |
15471 | else | |
15472 | SIM_ENABLE_ARCH_lm32_TRUE='#' | |
15473 | SIM_ENABLE_ARCH_lm32_FALSE= | |
15474 | fi | |
15475 | ||
586cfe1a | 15476 | sim_enable_arch_m32c=false |
65dcce8f | 15477 | case "${targ}" in |
a0e674c1 MF |
15478 | all|m32c-*-*) |
15479 | if test "${targ}" = "${target}"; then | |
15480 | SIM_PRIMARY_TARGET=m32c | |
15481 | fi | |
7c9a934c MF |
15482 | ENABLE_SIM=yes |
15483 | as_fn_append SIM_ENABLED_ARCHES " m32c" | |
23912acd MF |
15484 | ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in" |
15485 | ||
87326c78 | 15486 | |
65dcce8f | 15487 | sim_enable_arch_m32c=true |
3e8bb3e9 | 15488 | ;; |
a0e674c1 | 15489 | esac |
8996c210 MF |
15490 | |
15491 | ||
15492 | ||
dc4e1fde | 15493 | |
8996c210 | 15494 | if test "$SIM_PRIMARY_TARGET" = "m32c"; then : |
dc4e1fde HPN |
15495 | : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}" |
15496 | : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}" | |
15497 | : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15498 | |
15499 | fi | |
15500 | ||
15501 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C" | |
15502 | ||
65dcce8f MF |
15503 | if ${sim_enable_arch_m32c}; then |
15504 | SIM_ENABLE_ARCH_m32c_TRUE= | |
15505 | SIM_ENABLE_ARCH_m32c_FALSE='#' | |
15506 | else | |
15507 | SIM_ENABLE_ARCH_m32c_TRUE='#' | |
15508 | SIM_ENABLE_ARCH_m32c_FALSE= | |
15509 | fi | |
15510 | ||
586cfe1a | 15511 | sim_enable_arch_m32r=false |
65dcce8f | 15512 | case "${targ}" in |
a0e674c1 MF |
15513 | all|m32r-*-*) |
15514 | if test "${targ}" = "${target}"; then | |
15515 | SIM_PRIMARY_TARGET=m32r | |
15516 | fi | |
7c9a934c MF |
15517 | ENABLE_SIM=yes |
15518 | as_fn_append SIM_ENABLED_ARCHES " m32r" | |
23912acd MF |
15519 | ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in" |
15520 | ||
87326c78 | 15521 | |
65dcce8f | 15522 | sim_enable_arch_m32r=true |
3e8bb3e9 | 15523 | ;; |
a0e674c1 | 15524 | esac |
8996c210 MF |
15525 | |
15526 | ||
15527 | ||
dc4e1fde | 15528 | |
8996c210 | 15529 | if test "$SIM_PRIMARY_TARGET" = "m32r"; then : |
dc4e1fde HPN |
15530 | : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}" |
15531 | : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}" | |
15532 | : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15533 | |
15534 | fi | |
15535 | ||
15536 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R" | |
15537 | ||
65dcce8f MF |
15538 | if ${sim_enable_arch_m32r}; then |
15539 | SIM_ENABLE_ARCH_m32r_TRUE= | |
15540 | SIM_ENABLE_ARCH_m32r_FALSE='#' | |
15541 | else | |
15542 | SIM_ENABLE_ARCH_m32r_TRUE='#' | |
15543 | SIM_ENABLE_ARCH_m32r_FALSE= | |
15544 | fi | |
a0e674c1 | 15545 | |
586cfe1a | 15546 | sim_enable_arch_m68hc11=false |
65dcce8f | 15547 | case "${targ}" in |
a0e674c1 MF |
15548 | all|m68hc11-*-*|m6811-*-*) |
15549 | if test "${targ}" = "${target}"; then | |
15550 | SIM_PRIMARY_TARGET=m68hc11 | |
15551 | fi | |
7c9a934c MF |
15552 | ENABLE_SIM=yes |
15553 | as_fn_append SIM_ENABLED_ARCHES " m68hc11" | |
23912acd MF |
15554 | ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in" |
15555 | ||
87326c78 | 15556 | |
65dcce8f | 15557 | sim_enable_arch_m68hc11=true |
3e8bb3e9 | 15558 | ;; |
a0e674c1 | 15559 | esac |
8996c210 MF |
15560 | |
15561 | ||
15562 | ||
dc4e1fde | 15563 | |
8996c210 | 15564 | if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then : |
dc4e1fde HPN |
15565 | : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}" |
15566 | : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}" | |
15567 | : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15568 | |
15569 | fi | |
15570 | ||
15571 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11" | |
15572 | ||
65dcce8f MF |
15573 | if ${sim_enable_arch_m68hc11}; then |
15574 | SIM_ENABLE_ARCH_m68hc11_TRUE= | |
15575 | SIM_ENABLE_ARCH_m68hc11_FALSE='#' | |
15576 | else | |
15577 | SIM_ENABLE_ARCH_m68hc11_TRUE='#' | |
15578 | SIM_ENABLE_ARCH_m68hc11_FALSE= | |
15579 | fi | |
a0e674c1 | 15580 | |
586cfe1a | 15581 | sim_enable_arch_mcore=false |
65dcce8f | 15582 | case "${targ}" in |
a0e674c1 MF |
15583 | all|mcore-*-*) |
15584 | if test "${targ}" = "${target}"; then | |
15585 | SIM_PRIMARY_TARGET=mcore | |
15586 | fi | |
7c9a934c MF |
15587 | ENABLE_SIM=yes |
15588 | as_fn_append SIM_ENABLED_ARCHES " mcore" | |
23912acd MF |
15589 | ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in" |
15590 | ||
119da465 | 15591 | |
65dcce8f | 15592 | sim_enable_arch_mcore=true |
3e8bb3e9 | 15593 | ;; |
a0e674c1 | 15594 | esac |
8996c210 MF |
15595 | |
15596 | ||
15597 | ||
dc4e1fde | 15598 | |
8996c210 | 15599 | if test "$SIM_PRIMARY_TARGET" = "mcore"; then : |
dc4e1fde HPN |
15600 | : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}" |
15601 | : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}" | |
15602 | : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15603 | |
15604 | fi | |
15605 | ||
15606 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE" | |
15607 | ||
65dcce8f MF |
15608 | if ${sim_enable_arch_mcore}; then |
15609 | SIM_ENABLE_ARCH_mcore_TRUE= | |
15610 | SIM_ENABLE_ARCH_mcore_FALSE='#' | |
15611 | else | |
15612 | SIM_ENABLE_ARCH_mcore_TRUE='#' | |
15613 | SIM_ENABLE_ARCH_mcore_FALSE= | |
15614 | fi | |
15615 | ||
586cfe1a | 15616 | sim_enable_arch_microblaze=false |
65dcce8f | 15617 | case "${targ}" in |
99aedb62 | 15618 | all|microblaze*-*-*) |
a0e674c1 MF |
15619 | if test "${targ}" = "${target}"; then |
15620 | SIM_PRIMARY_TARGET=microblaze | |
15621 | fi | |
7c9a934c MF |
15622 | ENABLE_SIM=yes |
15623 | as_fn_append SIM_ENABLED_ARCHES " microblaze" | |
23912acd MF |
15624 | ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in" |
15625 | ||
119da465 | 15626 | |
65dcce8f | 15627 | sim_enable_arch_microblaze=true |
3e8bb3e9 | 15628 | ;; |
a0e674c1 | 15629 | esac |
8996c210 MF |
15630 | |
15631 | ||
15632 | ||
dc4e1fde | 15633 | |
8996c210 | 15634 | if test "$SIM_PRIMARY_TARGET" = "microblaze"; then : |
dc4e1fde HPN |
15635 | : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}" |
15636 | : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}" | |
15637 | : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15638 | |
15639 | fi | |
15640 | ||
15641 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE" | |
15642 | ||
65dcce8f MF |
15643 | if ${sim_enable_arch_microblaze}; then |
15644 | SIM_ENABLE_ARCH_microblaze_TRUE= | |
15645 | SIM_ENABLE_ARCH_microblaze_FALSE='#' | |
15646 | else | |
15647 | SIM_ENABLE_ARCH_microblaze_TRUE='#' | |
15648 | SIM_ENABLE_ARCH_microblaze_FALSE= | |
15649 | fi | |
15650 | ||
586cfe1a | 15651 | sim_enable_arch_mips=false |
65dcce8f | 15652 | case "${targ}" in |
a0e674c1 MF |
15653 | all|mips*-*-*) |
15654 | if test "${targ}" = "${target}"; then | |
15655 | SIM_PRIMARY_TARGET=mips | |
15656 | fi | |
7c9a934c MF |
15657 | ENABLE_SIM=yes |
15658 | as_fn_append SIM_ENABLED_ARCHES " mips" | |
23912acd MF |
15659 | ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in" |
15660 | ||
119da465 | 15661 | |
65dcce8f | 15662 | sim_enable_arch_mips=true |
3e8bb3e9 | 15663 | ;; |
a0e674c1 | 15664 | esac |
8996c210 MF |
15665 | |
15666 | ||
15667 | ||
dc4e1fde | 15668 | |
8996c210 | 15669 | if test "$SIM_PRIMARY_TARGET" = "mips"; then : |
dc4e1fde HPN |
15670 | : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}" |
15671 | : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}" | |
15672 | : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15673 | |
15674 | fi | |
15675 | ||
15676 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS" | |
15677 | ||
65dcce8f MF |
15678 | if ${sim_enable_arch_mips}; then |
15679 | SIM_ENABLE_ARCH_mips_TRUE= | |
15680 | SIM_ENABLE_ARCH_mips_FALSE='#' | |
15681 | else | |
15682 | SIM_ENABLE_ARCH_mips_TRUE='#' | |
15683 | SIM_ENABLE_ARCH_mips_FALSE= | |
15684 | fi | |
15685 | ||
586cfe1a | 15686 | sim_enable_arch_mn10300=false |
65dcce8f | 15687 | case "${targ}" in |
a0e674c1 MF |
15688 | all|mn10300*-*-*) |
15689 | if test "${targ}" = "${target}"; then | |
15690 | SIM_PRIMARY_TARGET=mn10300 | |
15691 | fi | |
7c9a934c MF |
15692 | ENABLE_SIM=yes |
15693 | as_fn_append SIM_ENABLED_ARCHES " mn10300" | |
23912acd MF |
15694 | ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in" |
15695 | ||
119da465 | 15696 | |
65dcce8f | 15697 | sim_enable_arch_mn10300=true |
3e8bb3e9 | 15698 | ;; |
a0e674c1 | 15699 | esac |
8996c210 MF |
15700 | |
15701 | ||
15702 | ||
dc4e1fde | 15703 | |
8996c210 | 15704 | if test "$SIM_PRIMARY_TARGET" = "mn10300"; then : |
dc4e1fde HPN |
15705 | : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}" |
15706 | : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}" | |
15707 | : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15708 | |
15709 | fi | |
15710 | ||
15711 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300" | |
15712 | ||
65dcce8f MF |
15713 | if ${sim_enable_arch_mn10300}; then |
15714 | SIM_ENABLE_ARCH_mn10300_TRUE= | |
15715 | SIM_ENABLE_ARCH_mn10300_FALSE='#' | |
15716 | else | |
15717 | SIM_ENABLE_ARCH_mn10300_TRUE='#' | |
15718 | SIM_ENABLE_ARCH_mn10300_FALSE= | |
15719 | fi | |
a0e674c1 | 15720 | |
586cfe1a | 15721 | sim_enable_arch_moxie=false |
65dcce8f | 15722 | case "${targ}" in |
a0e674c1 MF |
15723 | all|moxie-*-*) |
15724 | if test "${targ}" = "${target}"; then | |
15725 | SIM_PRIMARY_TARGET=moxie | |
15726 | fi | |
7c9a934c MF |
15727 | ENABLE_SIM=yes |
15728 | as_fn_append SIM_ENABLED_ARCHES " moxie" | |
23912acd MF |
15729 | ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in" |
15730 | ||
119da465 | 15731 | |
65dcce8f | 15732 | sim_enable_arch_moxie=true |
3e8bb3e9 | 15733 | ;; |
a0e674c1 | 15734 | esac |
8996c210 MF |
15735 | |
15736 | ||
15737 | ||
dc4e1fde | 15738 | |
8996c210 | 15739 | if test "$SIM_PRIMARY_TARGET" = "moxie"; then : |
dc4e1fde HPN |
15740 | : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}" |
15741 | : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}" | |
15742 | : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15743 | |
15744 | fi | |
15745 | ||
15746 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE" | |
15747 | ||
65dcce8f MF |
15748 | if ${sim_enable_arch_moxie}; then |
15749 | SIM_ENABLE_ARCH_moxie_TRUE= | |
15750 | SIM_ENABLE_ARCH_moxie_FALSE='#' | |
15751 | else | |
15752 | SIM_ENABLE_ARCH_moxie_TRUE='#' | |
15753 | SIM_ENABLE_ARCH_moxie_FALSE= | |
15754 | fi | |
a0e674c1 | 15755 | |
586cfe1a | 15756 | sim_enable_arch_msp430=false |
65dcce8f | 15757 | case "${targ}" in |
a0e674c1 MF |
15758 | all|msp430*-*-*) |
15759 | if test "${targ}" = "${target}"; then | |
15760 | SIM_PRIMARY_TARGET=msp430 | |
15761 | fi | |
7c9a934c MF |
15762 | ENABLE_SIM=yes |
15763 | as_fn_append SIM_ENABLED_ARCHES " msp430" | |
23912acd MF |
15764 | ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in" |
15765 | ||
119da465 | 15766 | |
65dcce8f | 15767 | sim_enable_arch_msp430=true |
3e8bb3e9 | 15768 | ;; |
a0e674c1 | 15769 | esac |
8996c210 MF |
15770 | |
15771 | ||
15772 | ||
dc4e1fde | 15773 | |
8996c210 | 15774 | if test "$SIM_PRIMARY_TARGET" = "msp430"; then : |
dc4e1fde HPN |
15775 | : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}" |
15776 | : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}" | |
15777 | : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15778 | |
15779 | fi | |
15780 | ||
15781 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430" | |
15782 | ||
65dcce8f MF |
15783 | if ${sim_enable_arch_msp430}; then |
15784 | SIM_ENABLE_ARCH_msp430_TRUE= | |
15785 | SIM_ENABLE_ARCH_msp430_FALSE='#' | |
15786 | else | |
15787 | SIM_ENABLE_ARCH_msp430_TRUE='#' | |
15788 | SIM_ENABLE_ARCH_msp430_FALSE= | |
15789 | fi | |
15790 | ||
586cfe1a | 15791 | sim_enable_arch_or1k=false |
65dcce8f | 15792 | case "${targ}" in |
99aedb62 | 15793 | all|or1k*-*-*) |
a0e674c1 MF |
15794 | if test "${targ}" = "${target}"; then |
15795 | SIM_PRIMARY_TARGET=or1k | |
15796 | fi | |
7c9a934c MF |
15797 | ENABLE_SIM=yes |
15798 | as_fn_append SIM_ENABLED_ARCHES " or1k" | |
23912acd MF |
15799 | ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in" |
15800 | ||
119da465 | 15801 | |
65dcce8f | 15802 | sim_enable_arch_or1k=true |
99aedb62 MF |
15803 | ;; |
15804 | esac | |
8996c210 MF |
15805 | |
15806 | ||
15807 | ||
dc4e1fde | 15808 | |
8996c210 | 15809 | if test "$SIM_PRIMARY_TARGET" = "or1k"; then : |
dc4e1fde HPN |
15810 | : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}" |
15811 | : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}" | |
15812 | : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15813 | |
15814 | fi | |
15815 | ||
15816 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K" | |
15817 | ||
65dcce8f MF |
15818 | if ${sim_enable_arch_or1k}; then |
15819 | SIM_ENABLE_ARCH_or1k_TRUE= | |
15820 | SIM_ENABLE_ARCH_or1k_FALSE='#' | |
15821 | else | |
15822 | SIM_ENABLE_ARCH_or1k_TRUE='#' | |
15823 | SIM_ENABLE_ARCH_or1k_FALSE= | |
15824 | fi | |
15825 | ||
586cfe1a | 15826 | sim_enable_arch_ppc=false |
65dcce8f | 15827 | case "${targ}" in |
99aedb62 MF |
15828 | all|powerpc*-*-*) |
15829 | if test "${targ}" = "${target}"; then | |
15830 | SIM_PRIMARY_TARGET=ppc | |
15831 | fi | |
7c9a934c MF |
15832 | ENABLE_SIM=yes |
15833 | as_fn_append SIM_ENABLED_ARCHES " ppc" | |
23912acd MF |
15834 | ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in" |
15835 | ||
99aedb62 | 15836 | |
65dcce8f | 15837 | sim_enable_arch_ppc=true |
3e8bb3e9 | 15838 | ;; |
a0e674c1 | 15839 | esac |
8996c210 MF |
15840 | |
15841 | ||
15842 | ||
dc4e1fde | 15843 | |
8996c210 | 15844 | if test "$SIM_PRIMARY_TARGET" = "ppc"; then : |
dc4e1fde HPN |
15845 | : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}" |
15846 | : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}" | |
15847 | : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15848 | |
15849 | fi | |
15850 | ||
15851 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC" | |
15852 | ||
65dcce8f MF |
15853 | if ${sim_enable_arch_ppc}; then |
15854 | SIM_ENABLE_ARCH_ppc_TRUE= | |
15855 | SIM_ENABLE_ARCH_ppc_FALSE='#' | |
15856 | else | |
15857 | SIM_ENABLE_ARCH_ppc_TRUE='#' | |
15858 | SIM_ENABLE_ARCH_ppc_FALSE= | |
15859 | fi | |
15860 | ||
586cfe1a | 15861 | sim_enable_arch_pru=false |
65dcce8f | 15862 | case "${targ}" in |
a0e674c1 MF |
15863 | all|pru*-*-*) |
15864 | if test "${targ}" = "${target}"; then | |
15865 | SIM_PRIMARY_TARGET=pru | |
15866 | fi | |
7c9a934c MF |
15867 | ENABLE_SIM=yes |
15868 | as_fn_append SIM_ENABLED_ARCHES " pru" | |
23912acd MF |
15869 | ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in" |
15870 | ||
119da465 | 15871 | |
65dcce8f | 15872 | sim_enable_arch_pru=true |
3e8bb3e9 | 15873 | ;; |
a0e674c1 | 15874 | esac |
8996c210 MF |
15875 | |
15876 | ||
15877 | ||
dc4e1fde | 15878 | |
8996c210 | 15879 | if test "$SIM_PRIMARY_TARGET" = "pru"; then : |
dc4e1fde HPN |
15880 | : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}" |
15881 | : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}" | |
15882 | : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15883 | |
15884 | fi | |
15885 | ||
15886 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU" | |
15887 | ||
65dcce8f MF |
15888 | if ${sim_enable_arch_pru}; then |
15889 | SIM_ENABLE_ARCH_pru_TRUE= | |
15890 | SIM_ENABLE_ARCH_pru_FALSE='#' | |
15891 | else | |
15892 | SIM_ENABLE_ARCH_pru_TRUE='#' | |
15893 | SIM_ENABLE_ARCH_pru_FALSE= | |
15894 | fi | |
a0e674c1 | 15895 | |
586cfe1a | 15896 | sim_enable_arch_riscv=false |
65dcce8f | 15897 | case "${targ}" in |
a0e674c1 MF |
15898 | all|riscv*-*-*) |
15899 | if test "${targ}" = "${target}"; then | |
15900 | SIM_PRIMARY_TARGET=riscv | |
15901 | fi | |
7c9a934c MF |
15902 | ENABLE_SIM=yes |
15903 | as_fn_append SIM_ENABLED_ARCHES " riscv" | |
23912acd MF |
15904 | ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in" |
15905 | ||
119da465 | 15906 | |
65dcce8f | 15907 | sim_enable_arch_riscv=true |
3e8bb3e9 | 15908 | ;; |
a0e674c1 | 15909 | esac |
8996c210 MF |
15910 | |
15911 | ||
15912 | ||
dc4e1fde | 15913 | |
8996c210 | 15914 | if test "$SIM_PRIMARY_TARGET" = "riscv"; then : |
dc4e1fde HPN |
15915 | : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}" |
15916 | : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}" | |
15917 | : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15918 | |
15919 | fi | |
15920 | ||
15921 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV" | |
15922 | ||
65dcce8f MF |
15923 | if ${sim_enable_arch_riscv}; then |
15924 | SIM_ENABLE_ARCH_riscv_TRUE= | |
15925 | SIM_ENABLE_ARCH_riscv_FALSE='#' | |
15926 | else | |
15927 | SIM_ENABLE_ARCH_riscv_TRUE='#' | |
15928 | SIM_ENABLE_ARCH_riscv_FALSE= | |
15929 | fi | |
15930 | ||
586cfe1a | 15931 | sim_enable_arch_rl78=false |
65dcce8f | 15932 | case "${targ}" in |
a0e674c1 MF |
15933 | all|rl78-*-*) |
15934 | if test "${targ}" = "${target}"; then | |
15935 | SIM_PRIMARY_TARGET=rl78 | |
15936 | fi | |
7c9a934c MF |
15937 | ENABLE_SIM=yes |
15938 | as_fn_append SIM_ENABLED_ARCHES " rl78" | |
23912acd MF |
15939 | ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in" |
15940 | ||
f46e4eb7 | 15941 | |
65dcce8f | 15942 | sim_enable_arch_rl78=true |
3e8bb3e9 | 15943 | ;; |
a0e674c1 | 15944 | esac |
8996c210 MF |
15945 | |
15946 | ||
15947 | ||
dc4e1fde | 15948 | |
8996c210 | 15949 | if test "$SIM_PRIMARY_TARGET" = "rl78"; then : |
dc4e1fde HPN |
15950 | : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}" |
15951 | : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}" | |
15952 | : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15953 | |
15954 | fi | |
15955 | ||
15956 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78" | |
15957 | ||
65dcce8f MF |
15958 | if ${sim_enable_arch_rl78}; then |
15959 | SIM_ENABLE_ARCH_rl78_TRUE= | |
15960 | SIM_ENABLE_ARCH_rl78_FALSE='#' | |
15961 | else | |
15962 | SIM_ENABLE_ARCH_rl78_TRUE='#' | |
15963 | SIM_ENABLE_ARCH_rl78_FALSE= | |
15964 | fi | |
15965 | ||
586cfe1a | 15966 | sim_enable_arch_rx=false |
65dcce8f | 15967 | case "${targ}" in |
a0e674c1 MF |
15968 | all|rx-*-*) |
15969 | if test "${targ}" = "${target}"; then | |
15970 | SIM_PRIMARY_TARGET=rx | |
15971 | fi | |
7c9a934c MF |
15972 | ENABLE_SIM=yes |
15973 | as_fn_append SIM_ENABLED_ARCHES " rx" | |
23912acd MF |
15974 | ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in" |
15975 | ||
f46e4eb7 | 15976 | |
65dcce8f | 15977 | sim_enable_arch_rx=true |
3e8bb3e9 | 15978 | ;; |
a0e674c1 | 15979 | esac |
8996c210 MF |
15980 | |
15981 | ||
15982 | ||
dc4e1fde | 15983 | |
8996c210 | 15984 | if test "$SIM_PRIMARY_TARGET" = "rx"; then : |
dc4e1fde HPN |
15985 | : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}" |
15986 | : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}" | |
15987 | : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15988 | |
15989 | fi | |
15990 | ||
15991 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX" | |
15992 | ||
65dcce8f MF |
15993 | if ${sim_enable_arch_rx}; then |
15994 | SIM_ENABLE_ARCH_rx_TRUE= | |
15995 | SIM_ENABLE_ARCH_rx_FALSE='#' | |
15996 | else | |
15997 | SIM_ENABLE_ARCH_rx_TRUE='#' | |
15998 | SIM_ENABLE_ARCH_rx_FALSE= | |
15999 | fi | |
a0e674c1 | 16000 | |
586cfe1a | 16001 | sim_enable_arch_sh=false |
65dcce8f | 16002 | case "${targ}" in |
a0e674c1 MF |
16003 | all|sh*-*-*) |
16004 | if test "${targ}" = "${target}"; then | |
16005 | SIM_PRIMARY_TARGET=sh | |
16006 | fi | |
7c9a934c MF |
16007 | ENABLE_SIM=yes |
16008 | as_fn_append SIM_ENABLED_ARCHES " sh" | |
23912acd MF |
16009 | ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in" |
16010 | ||
f46e4eb7 | 16011 | |
65dcce8f | 16012 | sim_enable_arch_sh=true |
3e8bb3e9 | 16013 | ;; |
a0e674c1 | 16014 | esac |
8996c210 MF |
16015 | |
16016 | ||
16017 | ||
dc4e1fde | 16018 | |
8996c210 | 16019 | if test "$SIM_PRIMARY_TARGET" = "sh"; then : |
dc4e1fde HPN |
16020 | : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}" |
16021 | : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}" | |
16022 | : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16023 | |
16024 | fi | |
16025 | ||
16026 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH" | |
16027 | ||
65dcce8f MF |
16028 | if ${sim_enable_arch_sh}; then |
16029 | SIM_ENABLE_ARCH_sh_TRUE= | |
16030 | SIM_ENABLE_ARCH_sh_FALSE='#' | |
16031 | else | |
16032 | SIM_ENABLE_ARCH_sh_TRUE='#' | |
16033 | SIM_ENABLE_ARCH_sh_FALSE= | |
16034 | fi | |
a0e674c1 | 16035 | |
586cfe1a | 16036 | sim_enable_arch_erc32=false |
65dcce8f | 16037 | case "${targ}" in |
99aedb62 | 16038 | all|sparc-*-*) |
a0e674c1 MF |
16039 | if test "${targ}" = "${target}"; then |
16040 | SIM_PRIMARY_TARGET=erc32 | |
16041 | fi | |
7c9a934c MF |
16042 | ENABLE_SIM=yes |
16043 | as_fn_append SIM_ENABLED_ARCHES " erc32" | |
23912acd MF |
16044 | ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in" |
16045 | ||
119da465 | 16046 | |
65dcce8f | 16047 | sim_enable_arch_erc32=true |
3e8bb3e9 | 16048 | ;; |
a0e674c1 | 16049 | esac |
8996c210 MF |
16050 | |
16051 | ||
16052 | ||
dc4e1fde | 16053 | |
8996c210 | 16054 | if test "$SIM_PRIMARY_TARGET" = "erc32"; then : |
dc4e1fde HPN |
16055 | : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}" |
16056 | : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}" | |
16057 | : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16058 | |
16059 | fi | |
16060 | ||
16061 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32" | |
16062 | ||
65dcce8f MF |
16063 | if ${sim_enable_arch_erc32}; then |
16064 | SIM_ENABLE_ARCH_erc32_TRUE= | |
16065 | SIM_ENABLE_ARCH_erc32_FALSE='#' | |
16066 | else | |
16067 | SIM_ENABLE_ARCH_erc32_TRUE='#' | |
16068 | SIM_ENABLE_ARCH_erc32_FALSE= | |
16069 | fi | |
16070 | ||
586cfe1a | 16071 | sim_enable_arch_v850=false |
65dcce8f | 16072 | case "${targ}" in |
a0e674c1 MF |
16073 | all|v850*-*-*) |
16074 | if test "${targ}" = "${target}"; then | |
16075 | SIM_PRIMARY_TARGET=v850 | |
16076 | fi | |
7c9a934c MF |
16077 | ENABLE_SIM=yes |
16078 | as_fn_append SIM_ENABLED_ARCHES " v850" | |
23912acd MF |
16079 | ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in" |
16080 | ||
119da465 | 16081 | |
65dcce8f | 16082 | sim_enable_arch_v850=true |
3e8bb3e9 MF |
16083 | ;; |
16084 | esac | |
8996c210 MF |
16085 | |
16086 | ||
16087 | ||
dc4e1fde | 16088 | |
8996c210 | 16089 | if test "$SIM_PRIMARY_TARGET" = "v850"; then : |
dc4e1fde HPN |
16090 | : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}" |
16091 | : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}" | |
16092 | : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
16093 | |
16094 | fi | |
16095 | ||
16096 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850" | |
16097 | ||
65dcce8f MF |
16098 | if ${sim_enable_arch_v850}; then |
16099 | SIM_ENABLE_ARCH_v850_TRUE= | |
16100 | SIM_ENABLE_ARCH_v850_FALSE='#' | |
16101 | else | |
16102 | SIM_ENABLE_ARCH_v850_TRUE='#' | |
16103 | SIM_ENABLE_ARCH_v850_FALSE= | |
16104 | fi | |
16105 | ||
a0e674c1 MF |
16106 | |
16107 | done | |
26da232c MF |
16108 | |
16109 | if test "x${enable_example_sims}" = xyes; then | |
8996c210 MF |
16110 | |
16111 | ||
16112 | ||
dc4e1fde HPN |
16113 | |
16114 | : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}" | |
16115 | : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}" | |
8996c210 MF |
16116 | : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}" |
16117 | ||
16118 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR" | |
16119 | ||
7c9a934c MF |
16120 | ENABLE_SIM=yes |
16121 | as_fn_append SIM_ENABLED_ARCHES " example-synacor" | |
23912acd MF |
16122 | ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in" |
16123 | ||
26da232c MF |
16124 | |
16125 | fi | |
c0c25232 MF |
16126 | if test "${enable_example_sims}" = "yes"; then |
16127 | SIM_ENABLE_ARCH_examples_TRUE= | |
16128 | SIM_ENABLE_ARCH_examples_FALSE='#' | |
16129 | else | |
16130 | SIM_ENABLE_ARCH_examples_TRUE='#' | |
16131 | SIM_ENABLE_ARCH_examples_FALSE= | |
16132 | fi | |
16133 | ||
b6b1c790 | 16134 | fi |
7c9a934c | 16135 | if test "$ENABLE_SIM" = "yes"; then |
fb2c495f MF |
16136 | ENABLE_SIM_TRUE= |
16137 | ENABLE_SIM_FALSE='#' | |
16138 | else | |
16139 | ENABLE_SIM_TRUE='#' | |
16140 | ENABLE_SIM_FALSE= | |
16141 | fi | |
16142 | ||
b6b1c790 | 16143 | |
ba307cdd MF |
16144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5 |
16145 | $as_echo_n "checking whether to force sim alignment... " >&6; } | |
16146 | sim_alignment= | |
16147 | # Check whether --enable-sim-alignment was given. | |
16148 | if test "${enable_sim_alignment+set}" = set; then : | |
16149 | enableval=$enable_sim_alignment; case "${enableval}" in | |
16150 | yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";; | |
16151 | no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";; | |
16152 | forced | FORCED) sim_alignment="FORCED_ALIGNMENT";; | |
16153 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;; | |
16154 | esac | |
16155 | fi | |
16156 | ||
16157 | cat >>confdefs.h <<_ACEOF | |
16158 | #define WITH_ALIGNMENT ${sim_alignment:-0} | |
16159 | _ACEOF | |
16160 | ||
16161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
16162 | $as_echo "${sim_alignment:-no}" >&6; } | |
16163 | ||
dba333c1 MF |
16164 | |
16165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
16166 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
16167 | sim_assert="1" | |
16168 | # Check whether --enable-sim-assert was given. | |
16169 | if test "${enable_sim_assert+set}" = set; then : | |
16170 | enableval=$enable_sim_assert; case "${enableval}" in | |
16171 | yes) sim_assert="1";; | |
16172 | no) sim_assert="0";; | |
16173 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; | |
16174 | esac | |
16175 | fi | |
16176 | ||
16177 | cat >>confdefs.h <<_ACEOF | |
16178 | #define WITH_ASSERT $sim_assert | |
16179 | _ACEOF | |
16180 | ||
16181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
16182 | $as_echo "$sim_assert" >&6; } | |
16183 | ||
1bf5c342 MF |
16184 | |
16185 | cgen_maint=no | |
16186 | cgen=guile | |
16187 | cgendir='$(srcdir)/../../cgen' | |
e7ad52cd AM |
16188 | if test -r ${srcdir}/../cgen/iformat.scm; then |
16189 | cgendir='$(srcdir)/../cgen' | |
16190 | fi | |
1bf5c342 MF |
16191 | # Check whether --enable-cgen-maint was given. |
16192 | if test "${enable_cgen_maint+set}" = set; then : | |
16193 | enableval=$enable_cgen_maint; case "${enableval}" in | |
16194 | yes) cgen_maint=yes ;; | |
16195 | no) cgen_maint=no ;; | |
16196 | *) | |
16197 | # Argument is a directory where cgen can be found. In some | |
16198 | # future world cgen could be installable, but right now this | |
16199 | # is not the case. Instead we assume the directory is a path | |
16200 | # to the cgen source tree. | |
16201 | cgen_maint=yes | |
16202 | if test -r ${enableval}/iformat.scm; then | |
16203 | # This looks like a cgen source tree. | |
16204 | cgendir=${enableval} | |
16205 | else | |
16206 | as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 | |
16207 | fi | |
16208 | ;; | |
16209 | esac | |
16210 | fi | |
16211 | if test x${cgen_maint} != xno ; then | |
16212 | CGEN_MAINT='' | |
16213 | else | |
16214 | CGEN_MAINT='#' | |
16215 | fi | |
16216 | ||
16217 | ||
16218 | ||
16219 | ||
04381273 MF |
16220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
16221 | $as_echo_n "checking for sim debug setting... " >&6; } | |
16222 | sim_debug="0" | |
16223 | # Check whether --enable-sim-debug was given. | |
16224 | if test "${enable_sim_debug+set}" = set; then : | |
16225 | enableval=$enable_sim_debug; case "${enableval}" in | |
16226 | yes) sim_debug="7";; | |
16227 | no) sim_debug="0";; | |
16228 | *) sim_debug="($enableval)";; | |
16229 | esac | |
16230 | fi | |
16231 | if test "$sim_debug" != "0"; then | |
16232 | ||
16233 | cat >>confdefs.h <<_ACEOF | |
16234 | #define DEBUG $sim_debug | |
16235 | _ACEOF | |
16236 | ||
16237 | fi | |
16238 | ||
16239 | cat >>confdefs.h <<_ACEOF | |
16240 | #define WITH_DEBUG $sim_debug | |
16241 | _ACEOF | |
16242 | ||
16243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
16244 | $as_echo "$sim_debug" >&6; } | |
f9a4d543 MF |
16245 | |
16246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5 | |
16247 | $as_echo_n "checking whether to force sim endianness... " >&6; } | |
16248 | sim_endian= | |
16249 | # Check whether --enable-sim-endian was given. | |
16250 | if test "${enable_sim_endian+set}" = set; then : | |
16251 | enableval=$enable_sim_endian; case "${enableval}" in | |
16252 | b*|B*) sim_endian="BFD_ENDIAN_BIG";; | |
16253 | l*|L*) sim_endian="BFD_ENDIAN_LITTLE";; | |
16254 | yes | no) ;; | |
16255 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;; | |
16256 | esac | |
16257 | fi | |
16258 | ||
16259 | cat >>confdefs.h <<_ACEOF | |
16260 | #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN} | |
16261 | _ACEOF | |
16262 | ||
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
16264 | $as_echo "${sim_alignment:-no}" >&6; } | |
04381273 | 16265 | |
dba333c1 | 16266 | |
5ea45474 MF |
16267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
16268 | $as_echo_n "checking default sim environment setting... " >&6; } | |
16269 | sim_environment="ALL_ENVIRONMENT" | |
16270 | # Check whether --enable-sim-environment was given. | |
16271 | if test "${enable_sim_environment+set}" = set; then : | |
16272 | enableval=$enable_sim_environment; case "${enableval}" in | |
16273 | all | ALL) sim_environment="ALL_ENVIRONMENT";; | |
16274 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
16275 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
16276 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
16277 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; | |
16278 | esac | |
16279 | fi | |
16280 | ||
16281 | cat >>confdefs.h <<_ACEOF | |
16282 | #define WITH_ENVIRONMENT $sim_environment | |
16283 | _ACEOF | |
16284 | ||
16285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
16286 | $as_echo "$sim_environment" >&6; } | |
16287 | ||
456ef1c1 MF |
16288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5 |
16289 | $as_echo_n "checking for sim hardware settings... " >&6; } | |
16290 | # Check whether --enable-sim-hardware was given. | |
16291 | if test "${enable_sim_hardware+set}" = set; then : | |
16292 | enableval=$enable_sim_hardware; | |
16293 | else | |
16294 | enable_sim_hardware="yes" | |
16295 | fi | |
16296 | ||
16297 | sim_hw_sockser= | |
16298 | if test "$enable_sim_hardware" = no; then | |
16299 | sim_hw_cflags="-DWITH_HW=0" | |
16300 | elif test "$enable_sim_hardware" = yes; then | |
16301 | sim_hw_cflags="-DWITH_HW=1" | |
03de8f26 MF |
16302 | sim_hw_sockser="dv-sockser.o" |
16303 | sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER" | |
456ef1c1 MF |
16304 | else |
16305 | as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5 | |
16306 | fi | |
16307 | if test "$enable_sim_hardware" = "yes"; then | |
16308 | SIM_ENABLE_HW_TRUE= | |
16309 | SIM_ENABLE_HW_FALSE='#' | |
16310 | else | |
16311 | SIM_ENABLE_HW_TRUE='#' | |
16312 | SIM_ENABLE_HW_FALSE= | |
16313 | fi | |
16314 | ||
16315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5 | |
16316 | $as_echo "${enable_sim_hardware}" >&6; } | |
682a2a82 | 16317 | SIM_HW_CFLAGS=$sim_hw_cflags |
456ef1c1 | 16318 | |
682a2a82 | 16319 | SIM_HW_SOCKSER=$sim_hw_sockser |
456ef1c1 MF |
16320 | |
16321 | ||
d73f39ee MF |
16322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5 |
16323 | $as_echo_n "checking sim inline settings... " >&6; } | |
16324 | sim_inline="-DDEFAULT_INLINE=0" | |
16325 | # Check whether --enable-sim-inline was given. | |
16326 | if test "${enable_sim_inline+set}" = set; then : | |
16327 | enableval=$enable_sim_inline; sim_inline="" | |
16328 | case "$enableval" in | |
16329 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
16330 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
16331 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
16332 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
16333 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16334 | new_flag="" | |
16335 | case "$x" in | |
16336 | *_INLINE=*) new_flag="-D$x";; | |
16337 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
16338 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
16339 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
16340 | esac | |
16341 | if test x"$sim_inline" = x""; then | |
16342 | sim_inline="$new_flag" | |
16343 | else | |
16344 | sim_inline="$sim_inline $new_flag" | |
16345 | fi | |
16346 | done;; | |
16347 | esac | |
16348 | ||
16349 | fi | |
16350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5 | |
16351 | $as_echo "$sim_inline" >&6; } | |
16352 | SIM_INLINE=$sim_inline | |
16353 | ||
16354 | ||
04381273 MF |
16355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
16356 | $as_echo_n "checking for sim profile settings... " >&6; } | |
16357 | profile="1" | |
16358 | sim_profile="-1" | |
16359 | # Check whether --enable-sim-profile was given. | |
16360 | if test "${enable_sim_profile+set}" = set; then : | |
16361 | enableval=$enable_sim_profile; case "${enableval}" in | |
16362 | yes) profile="1" sim_profile="-1";; | |
16363 | no) profile="0" sim_profile="0";; | |
16364 | [-0-9]*) | |
16365 | profile="(${enableval})" sim_profile="(${enableval})";; | |
16366 | [a-z]*) | |
16367 | profile="1" | |
16368 | sim_profile="" | |
16369 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16370 | if test x"$sim_profile" = x; then | |
16371 | sim_profile="(PROFILE_$x" | |
16372 | else | |
16373 | sim_profile="${sim_profile}|PROFILE_$x" | |
16374 | fi | |
16375 | done | |
16376 | sim_profile="$sim_profile)" ;; | |
16377 | esac | |
16378 | fi | |
16379 | ||
16380 | cat >>confdefs.h <<_ACEOF | |
16381 | #define PROFILE $profile | |
16382 | _ACEOF | |
16383 | ||
16384 | ||
16385 | cat >>confdefs.h <<_ACEOF | |
16386 | #define WITH_PROFILE $sim_profile | |
16387 | _ACEOF | |
16388 | ||
16389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
16390 | $as_echo "$sim_profile" >&6; } | |
16391 | ||
7eb1f99a MF |
16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5 |
16393 | $as_echo_n "checking whether to check reserved bits in instruction... " >&6; } | |
16394 | # Check whether --enable-sim-reserved-bits was given. | |
16395 | if test "${enable_sim_reserved_bits+set}" = set; then : | |
16396 | enableval=$enable_sim_reserved_bits; case "${enableval}" in | |
16397 | yes|no) ;; | |
16398 | *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;; | |
16399 | esac | |
16400 | fi | |
16401 | ||
16402 | if test "x${enable_sim_reserved_bits}" != xno; then | |
16403 | sim_reserved_bits=1 | |
16404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16405 | $as_echo "yes" >&6; } | |
16406 | else | |
16407 | sim_reserved_bits=0 | |
16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16409 | $as_echo "no" >&6; } | |
16410 | fi | |
16411 | ||
16412 | cat >>confdefs.h <<_ACEOF | |
16413 | #define WITH_RESERVED_BITS $sim_reserved_bits | |
16414 | _ACEOF | |
16415 | ||
16416 | ||
b79efe26 MF |
16417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5 |
16418 | $as_echo_n "checking for sim cache size... " >&6; } | |
16419 | sim_scache="16384" | |
16420 | # Check whether --enable-sim-scache was given. | |
16421 | if test "${enable_sim_scache+set}" = set; then : | |
16422 | enableval=$enable_sim_scache; case "${enableval}" in | |
16423 | yes) ;; | |
16424 | no) sim_scache="0";; | |
16425 | [0-9]*) sim_scache="${enableval}";; | |
16426 | *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;; | |
16427 | esac | |
16428 | fi | |
16429 | ||
16430 | ||
16431 | cat >>confdefs.h <<_ACEOF | |
16432 | #define WITH_SCACHE $sim_scache | |
16433 | _ACEOF | |
16434 | ||
16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5 | |
16436 | $as_echo "$sim_scache" >&6; } | |
16437 | ||
20b579ba MF |
16438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5 |
16439 | $as_echo_n "checking number of sim cpus to support... " >&6; } | |
16440 | default_sim_smp="0" | |
16441 | sim_smp="$default_sim_smp" | |
16442 | # Check whether --enable-sim-smp was given. | |
16443 | if test "${enable_sim_smp+set}" = set; then : | |
16444 | enableval=$enable_sim_smp; case "${enableval}" in | |
16445 | yes) sim_smp="5";; | |
16446 | no) sim_smp="0";; | |
16447 | *) sim_smp="$enableval";; | |
16448 | esac | |
16449 | fi | |
111b1cf9 MF |
16450 | IGEN_FLAGS_SMP="-N ${sim_smp}" |
16451 | ||
20b579ba MF |
16452 | if test "x$sim_smp" = x0; then : |
16453 | ||
16454 | else | |
16455 | ||
16456 | cat >>confdefs.h <<_ACEOF | |
16457 | #define WITH_SMP $sim_smp | |
16458 | _ACEOF | |
16459 | ||
16460 | fi | |
16461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5 | |
16462 | $as_echo "$sim_smp" >&6; } | |
16463 | ||
04381273 MF |
16464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 |
16465 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
16466 | sim_stdio="0" | |
16467 | # Check whether --enable-sim-stdio was given. | |
16468 | if test "${enable_sim_stdio+set}" = set; then : | |
16469 | enableval=$enable_sim_stdio; case "${enableval}" in | |
16470 | yes) sim_stdio="DO_USE_STDIO";; | |
16471 | no) sim_stdio="DONT_USE_STDIO";; | |
16472 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; | |
16473 | esac | |
16474 | fi | |
16475 | ||
16476 | cat >>confdefs.h <<_ACEOF | |
16477 | #define WITH_STDIO $sim_stdio | |
16478 | _ACEOF | |
16479 | ||
16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
16481 | $as_echo "$sim_stdio" >&6; } | |
16482 | ||
16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 | |
16484 | $as_echo_n "checking for sim trace settings... " >&6; } | |
16485 | sim_trace="~TRACE_debug" | |
16486 | # Check whether --enable-sim-trace was given. | |
16487 | if test "${enable_sim_trace+set}" = set; then : | |
16488 | enableval=$enable_sim_trace; case "${enableval}" in | |
16489 | yes) sim_trace="-1";; | |
16490 | no) sim_trace="0";; | |
16491 | [-0-9]*) | |
16492 | sim_trace="'(${enableval})'";; | |
16493 | [[:lower:]]*) | |
16494 | sim_trace="" | |
16495 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16496 | if test x"$sim_trace" = x; then | |
16497 | sim_trace="(TRACE_$x" | |
16498 | else | |
16499 | sim_trace="${sim_trace}|TRACE_$x" | |
16500 | fi | |
16501 | done | |
16502 | sim_trace="$sim_trace)" ;; | |
16503 | esac | |
16504 | fi | |
16505 | ||
16506 | cat >>confdefs.h <<_ACEOF | |
16507 | #define WITH_TRACE $sim_trace | |
16508 | _ACEOF | |
16509 | ||
16510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
16511 | $as_echo "$sim_trace" >&6; } | |
16512 | ||
47ce766a MF |
16513 | # Check whether --enable-werror was given. |
16514 | if test "${enable_werror+set}" = set; then : | |
16515 | enableval=$enable_werror; case "${enableval}" in | |
16516 | yes | y) ERROR_ON_WARNING="yes" ;; | |
16517 | no | n) ERROR_ON_WARNING="no" ;; | |
16518 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
16519 | esac | |
16520 | fi | |
16521 | ||
16522 | ||
ab18008e | 16523 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then |
47ce766a MF |
16524 | ERROR_ON_WARNING=yes |
16525 | fi | |
16526 | ||
16527 | WERROR_CFLAGS="" | |
16528 | if test "${ERROR_ON_WARNING}" = yes ; then | |
16529 | WERROR_CFLAGS="-Werror" | |
16530 | fi | |
16531 | ||
b0c06375 | 16532 | build_warnings="-Wall -Wpointer-arith |
58d38850 | 16533 | -Wno-unused -Wunused-value -Wunused-variable -Wunused-function |
7f6fa743 | 16534 | -Wno-switch -Wno-char-subscripts |
00383ba6 | 16535 | -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable |
b0c06375 MF |
16536 | -Wno-sign-compare -Wno-error=maybe-uninitialized |
16537 | -Wno-error=deprecated-register | |
3a4ee628 | 16538 | -Wimplicit-fallthrough=5 |
95cd009f | 16539 | -Wduplicated-cond |
f6c714d6 | 16540 | -Wshadow=local |
7f6fa743 | 16541 | -Wmissing-declarations |
b0c06375 MF |
16542 | " |
16543 | build_warnings="$build_warnings | |
16544 | -Wdeclaration-after-statement | |
16545 | -Wdeprecated-non-prototype | |
16546 | -Wimplicit-function-declaration | |
16547 | -Wimplicit-int | |
16548 | -Wincompatible-function-pointer-types | |
16549 | -Wincompatible-pointer-types | |
2757c1c6 | 16550 | -Wint-conversion |
b0c06375 MF |
16551 | -Wmisleading-indentation |
16552 | -Wmissing-parameter-type | |
7f6fa743 | 16553 | -Wmissing-prototypes |
b0c06375 MF |
16554 | -Wold-style-declaration |
16555 | -Wold-style-definition | |
7f6fa743 | 16556 | -Wpointer-sign |
fa113bd9 | 16557 | -Wreturn-mismatch |
3744b73e | 16558 | -Wreturn-type |
9f17cdda | 16559 | -Wshift-negative-value |
2757c1c6 | 16560 | -Wstrict-prototypes |
a7292455 | 16561 | -Wno-enum-conversion |
7f6fa743 | 16562 | " |
435ad222 | 16563 | build_build_warnings=" |
435ad222 MF |
16564 | -Wno-stringop-truncation |
16565 | -Wno-implicit-fallthrough | |
16566 | -Wno-shadow=local | |
16567 | " | |
47ce766a | 16568 | |
47ce766a | 16569 | case "${host}" in |
3c7666dc MF |
16570 | *-*-mingw32*) |
16571 | # Enable -Wno-format by default when using gcc on mingw since many | |
16572 | # GCC versions complain about %I64. | |
16573 | build_warnings="$build_warnings -Wno-format" ;; | |
16574 | *-*-solaris*) | |
16575 | # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC | |
16576 | # doesn't understand. | |
16577 | build_warnings="$build_warnings -Wno-unknown-pragmas" | |
16578 | # Solaris 11 <unistd.h> marks vfork deprecated. | |
16579 | build_warnings="$build_warnings -Wno-deprecated-declarations" ;; | |
16580 | *) | |
16581 | # Note that gcc requires -Wformat for -Wformat-nonliteral to work, | |
16582 | # but there's a special case for this below. | |
16583 | build_warnings="$build_warnings -Wformat-nonliteral" ;; | |
47ce766a MF |
16584 | esac |
16585 | ||
16586 | # Check whether --enable-build-warnings was given. | |
16587 | if test "${enable_build_warnings+set}" = set; then : | |
16588 | enableval=$enable_build_warnings; case "${enableval}" in | |
16589 | yes) ;; | |
16590 | no) build_warnings="-w";; | |
16591 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16592 | build_warnings="${build_warnings} ${t}";; | |
16593 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16594 | build_warnings="${t} ${build_warnings}";; | |
16595 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16596 | esac | |
16597 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16598 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
16599 | fi | |
16600 | fi | |
16601 | # Check whether --enable-sim-build-warnings was given. | |
16602 | if test "${enable_sim_build_warnings+set}" = set; then : | |
16603 | enableval=$enable_sim_build_warnings; case "${enableval}" in | |
16604 | yes) ;; | |
16605 | no) build_warnings="-w";; | |
16606 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16607 | build_warnings="${build_warnings} ${t}";; | |
16608 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16609 | build_warnings="${t} ${build_warnings}";; | |
16610 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16611 | esac | |
16612 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16613 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
16614 | fi | |
16615 | fi | |
16616 | WARN_CFLAGS="" | |
435ad222 | 16617 | BUILD_WARN_CFLAGS="" |
47ce766a MF |
16618 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
16619 | then | |
435ad222 MF |
16620 | |
16621 | ||
16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
47ce766a MF |
16623 | $as_echo_n "checking compiler warning flags... " >&6; } |
16624 | # Separate out the -Werror flag as some files just cannot be | |
16625 | # compiled with it enabled. | |
16626 | for w in ${build_warnings}; do | |
16627 | case $w in | |
16628 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
4da6be3f MF |
16629 | *) w="$w" |
16630 | case $w in | |
16631 | -Wno-*) | |
16632 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
16633 | -Wformat-nonliteral) | |
16634 | w="-Wformat $w" | |
16635 | wtest="$w" | |
16636 | ;; | |
16637 | *) | |
16638 | wtest=$w ;; | |
16639 | esac | |
16640 | ||
16641 | saved_CFLAGS="$CFLAGS" | |
16642 | CFLAGS="$CFLAGS -Werror $wtest" | |
16643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
47ce766a MF |
16644 | /* end confdefs.h. */ |
16645 | ||
16646 | int | |
16647 | main () | |
16648 | { | |
16649 | ||
16650 | ; | |
16651 | return 0; | |
16652 | } | |
16653 | _ACEOF | |
16654 | if ac_fn_c_try_compile "$LINENO"; then : | |
16655 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
16656 | fi | |
16657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4da6be3f MF |
16658 | CFLAGS="$saved_CFLAGS" |
16659 | ;; | |
47ce766a MF |
16660 | esac |
16661 | done | |
16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
16663 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
4da6be3f | 16664 | |
435ad222 MF |
16665 | |
16666 | if test "x$cross_compiling" = "xno"; then : | |
16667 | SAVE_WARN_CFLAGS=$WARN_CFLAGS | |
16668 | build_warnings=$build_build_warnings | |
16669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
16670 | $as_echo_n "checking compiler warning flags... " >&6; } | |
16671 | # Separate out the -Werror flag as some files just cannot be | |
16672 | # compiled with it enabled. | |
16673 | for w in ${build_warnings}; do | |
16674 | case $w in | |
16675 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
16676 | *) w="$w" | |
16677 | case $w in | |
16678 | -Wno-*) | |
16679 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
16680 | -Wformat-nonliteral) | |
16681 | w="-Wformat $w" | |
16682 | wtest="$w" | |
16683 | ;; | |
16684 | *) | |
16685 | wtest=$w ;; | |
16686 | esac | |
16687 | ||
16688 | saved_CFLAGS="$CFLAGS" | |
16689 | CFLAGS="$CFLAGS -Werror $wtest" | |
16690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16691 | /* end confdefs.h. */ | |
16692 | ||
16693 | int | |
16694 | main () | |
16695 | { | |
16696 | ||
16697 | ; | |
16698 | return 0; | |
16699 | } | |
16700 | _ACEOF | |
16701 | if ac_fn_c_try_compile "$LINENO"; then : | |
16702 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
16703 | fi | |
16704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16705 | CFLAGS="$saved_CFLAGS" | |
16706 | ;; | |
16707 | esac | |
16708 | done | |
16709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
16710 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
16711 | ||
16712 | BUILD_WARN_CFLAGS=$WARN_CFLAGS | |
16713 | WARN_CFLAGS=$SAVE_WARN_CFLAGS | |
16714 | BUILD_WERROR_CFLAGS=$WERROR_CFLAGS | |
16715 | ||
16716 | fi | |
16717 | ||
4da6be3f MF |
16718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5 |
16719 | $as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; } | |
16720 | w="-Wno-shadow=local" | |
16721 | case $w in | |
16722 | -Wno-*) | |
16723 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
16724 | -Wformat-nonliteral) | |
16725 | w="-Wformat $w" | |
16726 | wtest="$w" | |
16727 | ;; | |
16728 | *) | |
16729 | wtest=$w ;; | |
16730 | esac | |
16731 | ||
16732 | saved_CFLAGS="$CFLAGS" | |
16733 | CFLAGS="$CFLAGS -Werror $wtest" | |
16734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16735 | /* end confdefs.h. */ | |
16736 | ||
16737 | int | |
16738 | main () | |
16739 | { | |
16740 | ||
16741 | ; | |
16742 | return 0; | |
16743 | } | |
16744 | _ACEOF | |
16745 | if ac_fn_c_try_compile "$LINENO"; then : | |
16746 | SIM_CFLAG_WNO_SHADOW_LOCAL=-Wno-shadow=local | |
16747 | ||
16748 | ||
16749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16750 | $as_echo "yes" >&6; } | |
16751 | ||
16752 | else | |
16753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16754 | $as_echo "no" >&6; } | |
16755 | fi | |
16756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16757 | CFLAGS="$saved_CFLAGS" | |
16758 | ||
16759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5 | |
16760 | $as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; } | |
16761 | w="-Wno-unused-but-set-variable" | |
16762 | case $w in | |
16763 | -Wno-*) | |
16764 | wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; | |
16765 | -Wformat-nonliteral) | |
16766 | w="-Wformat $w" | |
16767 | wtest="$w" | |
16768 | ;; | |
16769 | *) | |
16770 | wtest=$w ;; | |
16771 | esac | |
16772 | ||
16773 | saved_CFLAGS="$CFLAGS" | |
16774 | CFLAGS="$CFLAGS -Werror $wtest" | |
16775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16776 | /* end confdefs.h. */ | |
16777 | ||
16778 | int | |
16779 | main () | |
16780 | { | |
16781 | ||
16782 | ; | |
16783 | return 0; | |
16784 | } | |
16785 | _ACEOF | |
16786 | if ac_fn_c_try_compile "$LINENO"; then : | |
16787 | SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable | |
16788 | ||
16789 | ||
16790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16791 | $as_echo "yes" >&6; } | |
16792 | ||
16793 | else | |
16794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16795 | $as_echo "no" >&6; } | |
16796 | fi | |
16797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16798 | CFLAGS="$saved_CFLAGS" | |
16799 | ||
47ce766a MF |
16800 | fi |
16801 | ||
16802 | ||
408a44aa MF |
16803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5 |
16804 | $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; } | |
16805 | # Check whether --enable-sim-frv-trapdump was given. | |
16806 | if test "${enable_sim_frv_trapdump+set}" = set; then : | |
16807 | enableval=$enable_sim_frv_trapdump; case "${enableval}" in | |
16808 | yes|no) ;; | |
16809 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;; | |
16810 | esac | |
16811 | fi | |
16812 | ||
1ee4d0e3 | 16813 | if test "x${enable_sim_frv_trapdump}" = xyes; then |
408a44aa MF |
16814 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1" |
16815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16816 | $as_echo "yes" >&6; } | |
16817 | else | |
16818 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0" | |
16819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16820 | $as_echo "no" >&6; } | |
16821 | fi | |
16822 | ||
16823 | ||
2d5700ad MF |
16824 | |
16825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5 | |
16826 | $as_echo_n "checking mips subtarget... " >&6; } | |
16827 | SIM_MIPS_SUBTARGET= | |
16828 | case ${target} in #( | |
16829 | mips64vr*-*-*) : | |
16830 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16831 | mips*tx39*) : | |
16832 | SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #( | |
16833 | mips*-sde-elf*) : | |
16834 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16835 | mips*-mti-elf*) : | |
16836 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16837 | mipsisa32*-*-*) : | |
16838 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16839 | mipsisa64*-*-*) : | |
16840 | SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #( | |
16841 | *) : | |
16842 | ;; | |
16843 | esac | |
16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5 | |
16845 | $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; } | |
16846 | ||
16847 | ||
19b11256 MF |
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5 |
16849 | $as_echo_n "checking mips bitsize... " >&6; } | |
16850 | SIM_MIPS_BITSIZE=64 | |
16851 | case ${target} in #( | |
16852 | mips*-sde-elf*) : | |
16853 | SIM_MIPS_BITSIZE=64 ;; #( | |
16854 | mips*-mti-elf*) : | |
16855 | SIM_MIPS_BITSIZE=64 ;; #( | |
16856 | mips64*-*-*) : | |
16857 | SIM_MIPS_BITSIZE=64 ;; #( | |
16858 | mips16*-*-*) : | |
16859 | SIM_MIPS_BITSIZE=64 ;; #( | |
16860 | mipsisa32*-*-*) : | |
16861 | SIM_MIPS_BITSIZE=32 ;; #( | |
16862 | mipsisa64*-*-*) : | |
16863 | SIM_MIPS_BITSIZE=64 ;; #( | |
16864 | mips*-*-*) : | |
16865 | SIM_MIPS_BITSIZE=32 ;; #( | |
16866 | *) : | |
16867 | ;; | |
16868 | esac | |
16869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5 | |
16870 | $as_echo "$SIM_MIPS_BITSIZE" >&6; } | |
16871 | ||
16872 | ||
d455df98 MF |
16873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5 |
16874 | $as_echo_n "checking mips fpu bitsize... " >&6; } | |
16875 | SIM_MIPS_FPU_BITSIZE=64 | |
16876 | case ${target} in #( | |
16877 | mips*tx39*) : | |
16878 | SIM_MIPS_FPU_BITSIZE=32 ;; #( | |
16879 | mips*-sde-elf*) : | |
16880 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16881 | mips*-mti-elf*) : | |
16882 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16883 | mipsisa32*-*-*) : | |
16884 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16885 | mipsisa64*-*-*) : | |
16886 | SIM_MIPS_FPU_BITSIZE=64 ;; #( | |
16887 | mips*-*-*) : | |
16888 | SIM_MIPS_FPU_BITSIZE=32 ;; #( | |
16889 | *) : | |
16890 | ;; | |
16891 | esac | |
16892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5 | |
16893 | $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; } | |
16894 | ||
16895 | ||
07f60ed8 MF |
16896 | SIM_MIPS_GEN=SINGLE |
16897 | sim_mips_single_machine="-M mipsIV" | |
abc494c6 | 16898 | sim_mips_m16_machine="-M mips16,mipsIII" |
07f60ed8 | 16899 | sim_mips_single_filter="32,64,f" |
abc494c6 MF |
16900 | sim_mips_m16_filter="16" |
16901 | case ${target} in #( | |
16902 | mips*tx39*) : | |
07f60ed8 MF |
16903 | SIM_MIPS_GEN=SINGLE |
16904 | sim_mips_single_filter="32,f" | |
16905 | sim_mips_single_machine="-M r3900" ;; #( | |
abc494c6 MF |
16906 | mips64vr41*) : |
16907 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16908 | sim_mips_single_machine="-M vr4100" |
abc494c6 MF |
16909 | sim_mips_m16_machine="-M vr4100" ;; #( |
16910 | mips64*) : | |
16911 | SIM_MIPS_GEN=MULTI | |
16912 | sim_mips_multi_configs="\ | |
16913 | vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\ | |
16914 | vr4120:mipsIII,mips16,vr4120:32,64:mips4120\ | |
16915 | vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\ | |
16916 | vr5400:mipsIV,vr5400:32,64,f:mips5400\ | |
16917 | vr5500:mipsIV,vr5500:32,64,f:mips5500" | |
16918 | sim_mips_multi_default=mips5000 ;; #( | |
16919 | mips*-sde-elf* | mips*-mti-elf*) : | |
16920 | SIM_MIPS_GEN=MULTI | |
16921 | sim_mips_multi_configs="\ | |
16922 | micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\ | |
16923 | mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\ | |
16924 | mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6" | |
16925 | sim_mips_multi_default=mipsisa64r2 ;; #( | |
16926 | mips16*) : | |
16927 | SIM_MIPS_GEN=M16 ;; #( | |
16928 | mipsisa32r2*) : | |
16929 | SIM_MIPS_GEN=MULTI | |
16930 | sim_mips_multi_configs="\ | |
16931 | micromips:micromips32,micromipsdsp:32,f:mips_micromips\ | |
16932 | mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2" | |
16933 | sim_mips_multi_default=mipsisa32r2 ;; #( | |
16934 | mipsisa32r6*) : | |
07f60ed8 MF |
16935 | SIM_MIPS_GEN=SINGLE |
16936 | sim_mips_single_machine="-M mips32r6" | |
16937 | sim_mips_single_filter="32,f" ;; #( | |
abc494c6 MF |
16938 | mipsisa32*) : |
16939 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16940 | sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips" |
abc494c6 | 16941 | sim_mips_m16_machine="-M mips16,mips16e,mips32" |
07f60ed8 | 16942 | sim_mips_single_filter="32,f" ;; #( |
abc494c6 MF |
16943 | mipsisa64r2*) : |
16944 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16945 | sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2" |
abc494c6 MF |
16946 | sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #( |
16947 | mipsisa64r6*) : | |
07f60ed8 MF |
16948 | SIM_MIPS_GEN=SINGLE |
16949 | sim_mips_single_machine="-M mips64r6" ;; #( | |
abc494c6 | 16950 | mipsisa64sb1*) : |
07f60ed8 MF |
16951 | SIM_MIPS_GEN=SINGLE |
16952 | sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #( | |
abc494c6 MF |
16953 | mipsisa64*) : |
16954 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16955 | sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx" |
abc494c6 MF |
16956 | sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #( |
16957 | mips*lsi*) : | |
16958 | SIM_MIPS_GEN=M16 | |
07f60ed8 | 16959 | sim_mips_single_machine="-M mipsIII,mips16" |
abc494c6 | 16960 | sim_mips_m16_machine="-M mips16,mipsIII" |
07f60ed8 | 16961 | sim_mips_single_filter="32,f" ;; #( |
abc494c6 | 16962 | mips*) : |
07f60ed8 MF |
16963 | SIM_MIPS_GEN=SINGLE |
16964 | sim_mips_single_filter="32,f" ;; #( | |
abc494c6 MF |
16965 | *) : |
16966 | ;; | |
16967 | esac | |
16968 | ||
4c45662c | 16969 | SIM_MIPS_IGEN_ITABLE_FLAGS= |
abc494c6 MF |
16970 | SIM_MIPS_MULTI_SRC= |
16971 | SIM_MIPS_MULTI_OBJ= | |
16972 | SIM_MIPS_MULTI_IGEN_CONFIGS= | |
16973 | if test "x$SIM_MIPS_GEN" = x"MULTI"; then : | |
16974 | if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then : | |
16975 | as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5 | |
16976 | fi | |
16977 | ||
16978 | as_dir=mips; as_fn_mkdir_p | |
16979 | rm -f mips/multi-include.h mips/multi-run.c | |
16980 | sim_mips_seen_default=no | |
16981 | ||
16982 | cat << __EOF__ > mips/multi-run.c | |
16983 | /* Main entry point for MULTI simulators. | |
0d9d77e5 | 16984 | Copyright (C) 2003-2023 Free Software Foundation, Inc. |
abc494c6 MF |
16985 | |
16986 | This program is free software; you can redistribute it and/or modify | |
16987 | it under the terms of the GNU General Public License as published by | |
16988 | the Free Software Foundation; either version 3 of the License, or | |
16989 | (at your option) any later version. | |
16990 | ||
16991 | This program is distributed in the hope that it will be useful, | |
16992 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16993 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16994 | GNU General Public License for more details. | |
16995 | ||
16996 | You should have received a copy of the GNU General Public License | |
16997 | along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16998 | ||
16999 | -- | |
17000 | ||
17001 | This file was generated by sim/mips/configure. */ | |
17002 | ||
17003 | #include "sim-main.h" | |
17004 | #include "multi-include.h" | |
c217e3d5 MF |
17005 | #include "bfd/elf-bfd.h" |
17006 | #include "bfd/elfxx-mips.h" | |
abc494c6 MF |
17007 | #include "elf/mips.h" |
17008 | ||
17009 | #define SD sd | |
17010 | #define CPU cpu | |
17011 | ||
17012 | void | |
17013 | sim_engine_run (SIM_DESC sd, | |
17014 | int next_cpu_nr, | |
17015 | int nr_cpus, | |
17016 | int signal) /* ignore */ | |
17017 | { | |
17018 | int mach; | |
17019 | ||
17020 | if (STATE_ARCHITECTURE (sd) == NULL) | |
17021 | mach = bfd_mach_${sim_mips_multi_default}; | |
17022 | else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags | |
17023 | & EF_MIPS_ARCH_ASE_MICROMIPS) | |
17024 | mach = bfd_mach_mips_micromips; | |
17025 | else | |
17026 | { | |
17027 | mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags); | |
17028 | if (!mach) | |
17029 | mach = STATE_ARCHITECTURE (SD)->mach; | |
17030 | } | |
17031 | ||
17032 | switch (mach) | |
17033 | { | |
17034 | __EOF__ | |
17035 | ||
17036 | for fc in ${sim_mips_multi_configs}; do | |
17037 | ||
17038 | c=`echo ${fc} | sed 's/:[^:]*$//'` | |
17039 | bfdmachs=`echo ${fc} | sed 's/.*://'` | |
17040 | name=`echo ${c} | sed 's/:.*//'` | |
17041 | machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'` | |
17042 | filter=`echo ${c} | sed 's/.*://'` | |
17043 | ||
4c45662c | 17044 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}" |
abc494c6 MF |
17045 | |
17046 | case ${c} in #( | |
17047 | *:*mips16*:*) : | |
17048 | ws="m32 m16" | |
17049 | ||
1f1afa43 MF |
17050 | as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c" |
17051 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o" | |
4c45662c | 17052 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16" |
abc494c6 MF |
17053 | ;; #( |
17054 | *:*micromips32*:*) : | |
17055 | ws="micromips_m32 micromips16 micromips32" | |
17056 | ||
1f1afa43 MF |
17057 | as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c" |
17058 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o" | |
4c45662c | 17059 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32" |
abc494c6 MF |
17060 | ;; #( |
17061 | *:*micromips64*:*) : | |
17062 | ws="micromips_m64 micromips16 micromips64" | |
17063 | ||
1f1afa43 MF |
17064 | as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c" |
17065 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o" | |
4c45662c | 17066 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64" |
abc494c6 MF |
17067 | ;; #( |
17068 | *) : | |
17069 | ws=m32 ;; | |
17070 | esac | |
17071 | ||
17072 | for w in ${ws}; do | |
17073 | for base in engine icache idecode model semantics support; do | |
1f1afa43 MF |
17074 | as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c" |
17075 | as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h" | |
17076 | as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o" | |
abc494c6 MF |
17077 | done |
17078 | as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}" | |
17079 | done | |
17080 | ||
17081 | echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h | |
17082 | ||
17083 | for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do | |
17084 | echo " case bfd_mach_${mach}:" >> mips/multi-run.c | |
17085 | if test "x$mach" = x"${sim_mips_multi_default}"; then : | |
17086 | echo " default:" >> mips/multi-run.c | |
17087 | sim_mips_seen_default=yes | |
17088 | ||
17089 | fi | |
17090 | done | |
17091 | echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \ | |
17092 | >> mips/multi-run.c | |
17093 | echo " break;" >> mips/multi-run.c | |
17094 | done | |
17095 | ||
17096 | if test "x$sim_mips_seen_default" = xno; then : | |
17097 | as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5 | |
17098 | fi | |
17099 | ||
17100 | cat << __EOF__ >> mips/multi-run.c | |
17101 | } | |
17102 | } | |
17103 | __EOF__ | |
17104 | ||
17105 | else | |
4c68f4e3 | 17106 | SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)' |
67c952d1 MF |
17107 | if test "x$SIM_MIPS_GEN" = x"M16"; then : |
17108 | as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)' | |
17109 | fi | |
abc494c6 MF |
17110 | |
17111 | fi | |
07f60ed8 | 17112 | SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}" |
111b1cf9 | 17113 | SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}" |
abc494c6 MF |
17114 | |
17115 | ||
17116 | ||
17117 | ||
17118 | ||
17119 | ||
17120 | ||
3a31051b MF |
17121 | if test "$SIM_MIPS_GEN" = "SINGLE"; then |
17122 | SIM_MIPS_GEN_MODE_SINGLE_TRUE= | |
17123 | SIM_MIPS_GEN_MODE_SINGLE_FALSE='#' | |
17124 | else | |
17125 | SIM_MIPS_GEN_MODE_SINGLE_TRUE='#' | |
17126 | SIM_MIPS_GEN_MODE_SINGLE_FALSE= | |
17127 | fi | |
17128 | ||
f6d58d40 MF |
17129 | if test "$SIM_MIPS_GEN" = "M16"; then |
17130 | SIM_MIPS_GEN_MODE_M16_TRUE= | |
17131 | SIM_MIPS_GEN_MODE_M16_FALSE='#' | |
17132 | else | |
17133 | SIM_MIPS_GEN_MODE_M16_TRUE='#' | |
17134 | SIM_MIPS_GEN_MODE_M16_FALSE= | |
17135 | fi | |
17136 | ||
f12c3c63 MF |
17137 | if test "$SIM_MIPS_GEN" = "MULTI"; then |
17138 | SIM_MIPS_GEN_MODE_MULTI_TRUE= | |
17139 | SIM_MIPS_GEN_MODE_MULTI_FALSE='#' | |
17140 | else | |
17141 | SIM_MIPS_GEN_MODE_MULTI_TRUE='#' | |
17142 | SIM_MIPS_GEN_MODE_MULTI_FALSE= | |
17143 | fi | |
5f7e03a6 MF |
17144 | |
17145 | ||
17146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc bitsize settings" >&5 | |
17147 | $as_echo_n "checking for sim ppc bitsize settings... " >&6; } | |
17148 | # Check whether --enable-sim-ppc-bitsize was given. | |
17149 | if test "${enable_sim_ppc_bitsize+set}" = set; then : | |
17150 | enableval=$enable_sim_ppc_bitsize; case "${enableval}" in | |
17151 | 32|64) sim_ppc_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";; | |
17152 | *) as_fn_error $? "\"--enable-sim-ppc-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5;; | |
17153 | esac | |
17154 | else | |
17155 | sim_ppc_bitsize="" | |
17156 | fi | |
17157 | ||
17158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_bitsize" >&5 | |
17159 | $as_echo "$sim_ppc_bitsize" >&6; } | |
17160 | ||
17161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc decode mechanism" >&5 | |
17162 | $as_echo_n "checking for sim ppc decode mechanism... " >&6; } | |
17163 | # Check whether --enable-sim-ppc-decode-mechanism was given. | |
17164 | if test "${enable_sim_ppc_decode_mechanism+set}" = set; then : | |
17165 | enableval=$enable_sim_ppc_decode_mechanism; case "${enableval}" in | |
17166 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-decode-mechanism=file\"" "$LINENO" 5;; | |
17167 | array|switch|padded-switch|goto-switch) sim_ppc_decode_mechanism="-T ${enableval}";; | |
17168 | *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;; | |
17169 | esac | |
17170 | else | |
17171 | sim_ppc_decode_mechanism="" | |
17172 | fi | |
17173 | ||
17174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_decode_mechanism" >&5 | |
17175 | $as_echo "$sim_ppc_decode_mechanism" >&6; } | |
17176 | ||
17177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc default model" >&5 | |
17178 | $as_echo_n "checking for sim ppc default model... " >&6; } | |
17179 | # Check whether --enable-sim-ppc-default-model was given. | |
17180 | if test "${enable_sim_ppc_default_model+set}" = set; then : | |
17181 | enableval=$enable_sim_ppc_default_model; case "${enableval}" in | |
17182 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-default-model=model\"" "$LINENO" 5;; | |
17183 | *) sim_ppc_default_model="-DWITH_DEFAULT_MODEL=${enableval}";; | |
17184 | esac | |
17185 | else | |
17186 | sim_ppc_default_model="" | |
17187 | fi | |
17188 | ||
17189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_default_model" >&5 | |
17190 | $as_echo "$sim_ppc_default_model" >&6; } | |
17191 | ||
17192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc duplicate settings" >&5 | |
17193 | $as_echo_n "checking for sim ppc duplicate settings... " >&6; } | |
17194 | # Check whether --enable-sim-ppc-duplicate was given. | |
17195 | if test "${enable_sim_ppc_duplicate+set}" = set; then : | |
17196 | enableval=$enable_sim_ppc_duplicate; case "${enableval}" in | |
17197 | yes) sim_ppc_dup="-E";; | |
17198 | no) sim_ppc_dup="";; | |
17199 | *) as_fn_error $? "\"--enable-sim-ppc-duplicate does not take a value\"" "$LINENO" 5;; | |
17200 | esac | |
17201 | else | |
17202 | sim_ppc_dup="-E" | |
17203 | fi | |
17204 | ||
17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_dup" >&5 | |
17206 | $as_echo "$sim_ppc_dup" >&6; } | |
17207 | ||
17208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc filter rules" >&5 | |
17209 | $as_echo_n "checking for sim ppc filter rules... " >&6; } | |
17210 | # Check whether --enable-sim-ppc-filter was given. | |
17211 | if test "${enable_sim_ppc_filter+set}" = set; then : | |
17212 | enableval=$enable_sim_ppc_filter; case "${enableval}" in | |
17213 | yes) as_fn_error $? "\"--enable-sim-ppc-filter must be specified with a rule to filter or no\"" "$LINENO" 5;; | |
17214 | no) sim_ppc_filter="";; | |
17215 | *) sim_ppc_filter="-F $enableval";; | |
17216 | esac | |
17217 | else | |
17218 | sim_ppc_filter="-F 32,f,o" | |
17219 | fi | |
17220 | ||
17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_filter" >&5 | |
17222 | $as_echo "$sim_ppc_filter" >&6; } | |
17223 | ||
17224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc float settings" >&5 | |
17225 | $as_echo_n "checking for sim ppc float settings... " >&6; } | |
17226 | # Check whether --enable-sim-ppc-float was given. | |
17227 | if test "${enable_sim_ppc_float+set}" = set; then : | |
17228 | enableval=$enable_sim_ppc_float; case "${enableval}" in | |
17229 | yes | hard) sim_ppc_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";; | |
17230 | no | soft) sim_ppc_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; | |
17231 | altivec) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;; | |
17232 | *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;; | |
17233 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-float\"" "$LINENO" 5;; | |
17234 | esac | |
17235 | else | |
17236 | case "${target}" in | |
17237 | *altivec*) sim_ppc_float="-DWITH_ALTIVEC" ; sim_ppc_filter="${sim_ppc_filter},av" ;; | |
17238 | *spe*|*simd*) sim_ppc_float="-DWITH_E500" ; sim_ppc_filter="${sim_ppc_filter},e500" ;; | |
17239 | *) sim_ppc_float="" | |
17240 | esac | |
17241 | fi | |
17242 | ||
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_float" >&5 | |
17244 | $as_echo "$sim_ppc_float" >&6; } | |
17245 | ||
17246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc hardware settings" >&5 | |
17247 | $as_echo_n "checking for sim ppc hardware settings... " >&6; } | |
17248 | hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide,sem,shm" | |
17249 | # Check whether --enable-sim-ppc-hardware was given. | |
17250 | if test "${enable_sim_ppc_hardware+set}" = set; then : | |
17251 | enableval=$enable_sim_ppc_hardware; case "${enableval}" in | |
17252 | yes) ;; | |
17253 | no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-ppc-hardware\"" "$LINENO" 5;; | |
17254 | ,*) hardware="${hardware}${enableval}";; | |
17255 | *,) hardware="${enableval}${hardware}";; | |
17256 | *) hardware="${enableval}"'';; | |
17257 | esac | |
17258 | fi | |
17259 | ||
17260 | sim_ppc_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` | |
17261 | sim_ppc_hw_obj=`echo $sim_ppc_hw_src | sed -e 's/\.c/.o/g'` | |
17262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardware" >&5 | |
17263 | $as_echo "$hardware" >&6; } | |
17264 | ||
17265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc icache settings" >&5 | |
17266 | $as_echo_n "checking for sim ppc icache settings... " >&6; } | |
17267 | # Check whether --enable-sim-ppc-icache was given. | |
17268 | if test "${enable_sim_ppc_icache+set}" = set; then : | |
17269 | enableval=$enable_sim_ppc_icache; icache="-R" | |
17270 | case "${enableval}" in | |
17271 | yes) icache="1024"; sim_ppc_icache="-I $icache";; | |
17272 | no) sim_ppc_icache="-R";; | |
17273 | *) icache=1024 | |
17274 | sim_ppc_icache="-" | |
17275 | for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do | |
17276 | case "$x" in | |
17277 | define) sim_ppc_icache="${sim_ppc_icache}R";; | |
17278 | semantic) sim_ppc_icache="${sim_ppc_icache}C";; | |
17279 | insn) sim_ppc_icache="${sim_ppc_icache}S";; | |
17280 | 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;; | |
17281 | *) as_fn_error $? "\"Unknown value $x for --enable-sim-ppc-icache\"" "$LINENO" 5;; | |
17282 | esac | |
17283 | done | |
17284 | sim_ppc_icache="${sim_ppc_icache}I $icache";; | |
17285 | esac | |
17286 | else | |
17287 | sim_ppc_icache="-CSRI 1024" | |
17288 | fi | |
17289 | ||
17290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_icache" >&5 | |
17291 | $as_echo "$sim_ppc_icache" >&6; } | |
17292 | ||
17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc jump settings" >&5 | |
17294 | $as_echo_n "checking for sim ppc jump settings... " >&6; } | |
17295 | # Check whether --enable-sim-ppc-jump was given. | |
17296 | if test "${enable_sim_ppc_jump+set}" = set; then : | |
17297 | enableval=$enable_sim_ppc_jump; case "${enableval}" in | |
17298 | yes) sim_ppc_jump="-J";; | |
17299 | no) sim_ppc_jump="";; | |
17300 | *) as_fn_error $? "\"--enable-sim-ppc-jump does not take a value\"" "$LINENO" 5;; | |
17301 | esac | |
17302 | else | |
17303 | sim_ppc_jump="" | |
17304 | fi | |
17305 | ||
17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_jump" >&5 | |
17307 | $as_echo "$sim_ppc_jump" >&6; } | |
17308 | ||
17309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc source debug line numbers" >&5 | |
17310 | $as_echo_n "checking for sim ppc source debug line numbers... " >&6; } | |
17311 | # Check whether --enable-sim-ppc-line-nr was given. | |
17312 | if test "${enable_sim_ppc_line_nr+set}" = set; then : | |
17313 | enableval=$enable_sim_ppc_line_nr; case "${enableval}" in | |
17314 | yes) sim_ppc_line_nr="";; | |
17315 | no) sim_ppc_line_nr="-L";; | |
17316 | *) as_fn_error $? "\"--enable-sim-ppc-line-nr does not take a value\"" "$LINENO" 5;; | |
17317 | esac | |
17318 | else | |
17319 | sim_ppc_line_nr="" | |
17320 | fi | |
17321 | ||
17322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_line_nr" >&5 | |
17323 | $as_echo "$sim_ppc_line_nr" >&6; } | |
17324 | ||
17325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model" >&5 | |
17326 | $as_echo_n "checking for sim ppc model... " >&6; } | |
17327 | # Check whether --enable-sim-ppc-model was given. | |
17328 | if test "${enable_sim_ppc_model+set}" = set; then : | |
17329 | enableval=$enable_sim_ppc_model; case "${enableval}" in | |
17330 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-model=model\"" "$LINENO" 5;; | |
17331 | *) sim_ppc_model="-DWITH_MODEL=${enableval}";; | |
17332 | esac | |
17333 | else | |
17334 | sim_ppc_model="" | |
17335 | fi | |
17336 | ||
17337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model" >&5 | |
17338 | $as_echo "$sim_ppc_model" >&6; } | |
17339 | ||
17340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc model issue" >&5 | |
17341 | $as_echo_n "checking for sim ppc model issue... " >&6; } | |
17342 | # Check whether --enable-sim-ppc-model-issue was given. | |
17343 | if test "${enable_sim_ppc_model_issue+set}" = set; then : | |
17344 | enableval=$enable_sim_ppc_model_issue; case "${enableval}" in | |
17345 | yes) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";; | |
17346 | no) sim_ppc_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";; | |
17347 | *) as_fn_error $? "\"--enable-sim-ppc-model-issue does not take a value\"" "$LINENO" 5;; | |
17348 | esac | |
17349 | else | |
17350 | sim_ppc_model_issue="" | |
17351 | fi | |
17352 | ||
17353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_model_issue" >&5 | |
17354 | $as_echo "$sim_ppc_model_issue" >&6; } | |
17355 | ||
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc event monitoring" >&5 | |
17357 | $as_echo_n "checking for sim ppc event monitoring... " >&6; } | |
17358 | # Check whether --enable-sim-ppc-monitor was given. | |
17359 | if test "${enable_sim_ppc_monitor+set}" = set; then : | |
17360 | enableval=$enable_sim_ppc_monitor; case "${enableval}" in | |
17361 | yes) sim_ppc_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";; | |
17362 | no) sim_ppc_monitor="-DWITH_MON=0";; | |
17363 | instruction) sim_ppc_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";; | |
17364 | memory) sim_ppc_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";; | |
17365 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-ppc-mon\"" "$LINENO" 5;; | |
17366 | esac | |
17367 | else | |
17368 | sim_ppc_monitor="" | |
17369 | fi | |
17370 | ||
17371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_monitor" >&5 | |
17372 | $as_echo "$sim_ppc_monitor" >&6; } | |
17373 | ||
17374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc opcode lookup settings" >&5 | |
17375 | $as_echo_n "checking for sim ppc opcode lookup settings... " >&6; } | |
17376 | # Check whether --enable-sim-ppc-opcode was given. | |
17377 | if test "${enable_sim_ppc_opcode+set}" = set; then : | |
17378 | enableval=$enable_sim_ppc_opcode; case "${enableval}" in | |
17379 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-ppc-opcode=file\"" "$LINENO" 5;; | |
17380 | *) if test -f "${srcdir}/${enableval}"; then | |
17381 | sim_ppc_opcode="${enableval}" | |
17382 | elif test -f "${srcdir}/dc-${enableval}"; then | |
17383 | sim_ppc_opcode="dc-${enableval}" | |
17384 | else | |
17385 | as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5 | |
17386 | fi;; | |
17387 | esac | |
17388 | else | |
17389 | sim_ppc_opcode="dc-complex" | |
17390 | fi | |
17391 | ||
17392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_opcode" >&5 | |
17393 | $as_echo "$sim_ppc_opcode" >&6; } | |
17394 | ||
17395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc smp settings" >&5 | |
17396 | $as_echo_n "checking for sim ppc smp settings... " >&6; } | |
17397 | # Check whether --enable-sim-ppc-smp was given. | |
17398 | if test "${enable_sim_ppc_smp+set}" = set; then : | |
17399 | enableval=$enable_sim_ppc_smp; case "${enableval}" in | |
17400 | yes) sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5";; | |
17401 | no) sim_ppc_smp="-DWITH_SMP=0" ; sim_ppc_igen_smp="-N 0";; | |
17402 | *) sim_ppc_smp="-DWITH_SMP=$enableval" ; sim_ppc_igen_smp="-N $enableval";; | |
17403 | esac | |
17404 | else | |
17405 | sim_ppc_smp="-DWITH_SMP=5" ; sim_ppc_igen_smp="-N 5" | |
17406 | fi | |
17407 | ||
17408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_smp" >&5 | |
17409 | $as_echo "$sim_ppc_smp" >&6; } | |
17410 | ||
17411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc switch table settings" >&5 | |
17412 | $as_echo_n "checking for sim ppc switch table settings... " >&6; } | |
17413 | # Check whether --enable-sim-ppc-switch was given. | |
17414 | if test "${enable_sim_ppc_switch+set}" = set; then : | |
17415 | enableval=$enable_sim_ppc_switch; case "${enableval}" in | |
17416 | yes) sim_ppc_switch="-DWITH_SPREG_SWITCH_TABLE";; | |
17417 | no) sim_ppc_switch="";; | |
17418 | *) as_fn_error $? "\"--enable-sim-ppc-switch does not take a value\"" "$LINENO" 5;; | |
17419 | esac | |
17420 | else | |
17421 | sim_ppc_switch="" | |
17422 | fi | |
17423 | ||
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_switch" >&5 | |
17425 | $as_echo "$sim_ppc_switch" >&6; } | |
17426 | ||
17427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc timebase" >&5 | |
17428 | $as_echo_n "checking for sim ppc timebase... " >&6; } | |
17429 | # Check whether --enable-sim-ppc-timebase was given. | |
17430 | if test "${enable_sim_ppc_timebase+set}" = set; then : | |
17431 | enableval=$enable_sim_ppc_timebase; case "${enableval}" in | |
17432 | yes) sim_ppc_timebase="-DWITH_TIME_BASE=1";; | |
17433 | no) sim_ppc_timebase="-DWITH_TIME_BASE=0";; | |
17434 | *) as_fn_error $? "\"--enable-sim-ppc-timebase does not take a value\"" "$LINENO" 5;; | |
17435 | esac | |
17436 | else | |
17437 | sim_ppc_timebase="" | |
17438 | fi | |
17439 | ||
17440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_timebase" >&5 | |
17441 | $as_echo "$sim_ppc_timebase" >&6; } | |
17442 | ||
17443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim ppc xor endian settings" >&5 | |
17444 | $as_echo_n "checking for sim ppc xor endian settings... " >&6; } | |
17445 | # Check whether --enable-sim-ppc-xor-endian was given. | |
17446 | if test "${enable_sim_ppc_xor_endian+set}" = set; then : | |
17447 | enableval=$enable_sim_ppc_xor_endian; case "${enableval}" in | |
17448 | yes) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=8";; | |
17449 | no) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=0";; | |
17450 | *) sim_ppc_xor_endian="-DWITH_XOR_ENDIAN=$enableval";; | |
17451 | esac | |
17452 | else | |
17453 | sim_ppc_xor_endian="" | |
17454 | fi | |
17455 | ||
17456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ppc_xor_endian" >&5 | |
17457 | $as_echo "$sim_ppc_xor_endian" >&6; } | |
17458 | ||
17459 | ||
17460 | ||
17461 | ||
17462 | ||
17463 | ||
17464 | ||
17465 | ||
17466 | ||
17467 | ||
17468 | ||
17469 | ||
17470 | ||
17471 | ||
17472 | ||
17473 | ||
17474 | ||
17475 | ||
17476 | ||
17477 | ||
f12c3c63 | 17478 | |
abc494c6 | 17479 | |
1787fcc4 MF |
17480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5 |
17481 | $as_echo_n "checking riscv bitsize... " >&6; } | |
17482 | SIM_RISCV_BITSIZE=64 | |
17483 | case $target in #( | |
17484 | riscv32*) : | |
17485 | SIM_RISCV_BITSIZE=32 ;; #( | |
17486 | *) : | |
17487 | ;; | |
17488 | esac | |
4faede61 MF |
17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5 |
17490 | $as_echo "$SIM_RISCV_BITSIZE" >&6; } | |
1787fcc4 MF |
17491 | |
17492 | ||
e173c80f MF |
17493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5 |
17494 | $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; } | |
17495 | # Check whether --enable-sim-rx-cycle-accurate was given. | |
17496 | if test "${enable_sim_rx_cycle_accurate+set}" = set; then : | |
17497 | enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in | |
17498 | yes | no) ;; | |
17499 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;; | |
17500 | esac | |
17501 | fi | |
17502 | ||
17503 | if test "x${enable_sim_rx_cycle_accurate}" != xno; then | |
17504 | SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE" | |
17505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17506 | $as_echo "yes" >&6; } | |
17507 | else | |
17508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17509 | $as_echo "no" >&6; } | |
17510 | fi | |
17511 | ||
17512 | ||
17513 | ||
c67a81c9 | 17514 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
81ecdfbb | 17515 | |
b7026657 | 17516 | cat >confcache <<\_ACEOF |
c906108c SS |
17517 | # This file is a shell script that caches the results of configure |
17518 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
17519 | # scripts and configure runs, see configure's option --config-cache. |
17520 | # It is not useful on other systems. If it contains results you don't | |
17521 | # want to keep, you may remove or edit it. | |
c906108c | 17522 | # |
b7026657 AC |
17523 | # config.status only pays attention to the cache file if you give it |
17524 | # the --recheck option to rerun configure. | |
c906108c | 17525 | # |
b7026657 AC |
17526 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17527 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17528 | # following values. | |
17529 | ||
17530 | _ACEOF | |
17531 | ||
c906108c SS |
17532 | # The following way of writing the cache mishandles newlines in values, |
17533 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 17534 | # So, we kill variables containing newlines. |
c906108c SS |
17535 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17536 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
17537 | ( |
17538 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17539 | eval ac_val=\$$ac_var | |
17540 | case $ac_val in #( | |
17541 | *${as_nl}*) | |
17542 | case $ac_var in #( | |
17543 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
17544 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
17545 | esac | |
17546 | case $ac_var in #( | |
17547 | _ | IFS | as_nl) ;; #( | |
17548 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
17549 | *) { eval $ac_var=; unset $ac_var;} ;; | |
17550 | esac ;; | |
17551 | esac | |
17552 | done | |
17553 | ||
b7026657 | 17554 | (set) 2>&1 | |
81ecdfbb RW |
17555 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17556 | *${as_nl}ac_space=\ *) | |
17557 | # `set' does not quote correctly, so add quotes: double-quote | |
17558 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
17559 | sed -n \ |
17560 | "s/'/'\\\\''/g; | |
17561 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 17562 | ;; #( |
b7026657 AC |
17563 | *) |
17564 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 17565 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 17566 | ;; |
81ecdfbb RW |
17567 | esac | |
17568 | sort | |
17569 | ) | | |
b7026657 | 17570 | sed ' |
81ecdfbb | 17571 | /^ac_cv_env_/b end |
b7026657 | 17572 | t clear |
81ecdfbb | 17573 | :clear |
b7026657 AC |
17574 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17575 | t end | |
81ecdfbb RW |
17576 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17577 | :end' >>confcache | |
17578 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17579 | if test -w "$cache_file"; then | |
d0ac1c44 | 17580 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
17581 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17582 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
17583 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17584 | cat confcache >"$cache_file" | |
17585 | else | |
17586 | case $cache_file in #( | |
17587 | */* | ?:*) | |
17588 | mv -f confcache "$cache_file"$$ && | |
17589 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17590 | *) | |
17591 | mv -f confcache "$cache_file" ;; | |
17592 | esac | |
17593 | fi | |
17594 | fi | |
c906108c | 17595 | else |
81ecdfbb RW |
17596 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17597 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
17598 | fi |
17599 | fi | |
17600 | rm -f confcache | |
17601 | ||
c906108c SS |
17602 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17603 | # Let make expand exec_prefix. | |
17604 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17605 | ||
b15c5d7a | 17606 | DEFS=-DHAVE_CONFIG_H |
b7026657 AC |
17607 | |
17608 | ac_libobjs= | |
17609 | ac_ltlibobjs= | |
d0ac1c44 | 17610 | U= |
b7026657 AC |
17611 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17612 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
17613 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17614 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
17615 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
17616 | # will be set to the directory where LIBOBJS objects are built. | |
17617 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
17618 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
17619 | done |
17620 | LIBOBJS=$ac_libobjs | |
c906108c | 17621 | |
b7026657 AC |
17622 | LTLIBOBJS=$ac_ltlibobjs |
17623 | ||
17624 | ||
c2783492 | 17625 | |
8c379db2 TT |
17626 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17627 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
17628 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17629 | fi | |
6bddc3e8 MF |
17630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17631 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17632 | if test -n "$am_sleep_pid"; then | |
17633 | # Hide warnings about reused PIDs. | |
17634 | wait $am_sleep_pid 2>/dev/null | |
17635 | fi | |
17636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17637 | $as_echo "done" >&6; } | |
6bddc3e8 MF |
17638 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17639 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17640 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17641 | fi | |
17642 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17643 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17644 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17645 | fi | |
c2783492 MF |
17646 | if test -n "$EXEEXT"; then |
17647 | am__EXEEXT_TRUE= | |
17648 | am__EXEEXT_FALSE='#' | |
17649 | else | |
17650 | am__EXEEXT_TRUE='#' | |
17651 | am__EXEEXT_FALSE= | |
6bddc3e8 | 17652 | fi |
b7026657 | 17653 | |
65dcce8f MF |
17654 | if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then |
17655 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined. | |
17656 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17657 | fi | |
17658 | if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then | |
17659 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined. | |
17660 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17661 | fi | |
17662 | if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then | |
17663 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined. | |
17664 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17665 | fi | |
17666 | if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then | |
17667 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined. | |
17668 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17669 | fi | |
17670 | if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then | |
17671 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined. | |
17672 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17673 | fi | |
17674 | if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then | |
17675 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined. | |
17676 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17677 | fi | |
17678 | if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then | |
17679 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined. | |
17680 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17681 | fi | |
17682 | if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then | |
17683 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined. | |
17684 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17685 | fi | |
17686 | if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then | |
17687 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined. | |
17688 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17689 | fi | |
17690 | if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then | |
17691 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined. | |
17692 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17693 | fi | |
17694 | if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then | |
17695 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined. | |
17696 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17697 | fi | |
17698 | if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then | |
17699 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined. | |
17700 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17701 | fi | |
17702 | if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then | |
17703 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined. | |
17704 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17705 | fi | |
17706 | if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then | |
17707 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined. | |
17708 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17709 | fi | |
17710 | if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then | |
17711 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined. | |
17712 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17713 | fi | |
17714 | if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then | |
17715 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined. | |
17716 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17717 | fi | |
17718 | if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then | |
17719 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined. | |
17720 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17721 | fi | |
17722 | if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then | |
17723 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined. | |
17724 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17725 | fi | |
17726 | if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then | |
17727 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined. | |
17728 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17729 | fi | |
17730 | if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then | |
17731 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined. | |
17732 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17733 | fi | |
17734 | if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then | |
17735 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined. | |
17736 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17737 | fi | |
17738 | if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then | |
17739 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined. | |
17740 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17741 | fi | |
17742 | if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then | |
17743 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined. | |
17744 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17745 | fi | |
17746 | if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then | |
17747 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined. | |
17748 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17749 | fi | |
17750 | if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then | |
17751 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined. | |
17752 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17753 | fi | |
17754 | if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then | |
17755 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined. | |
17756 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17757 | fi | |
17758 | if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then | |
17759 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined. | |
17760 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17761 | fi | |
17762 | if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then | |
17763 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined. | |
17764 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17765 | fi | |
17766 | if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then | |
17767 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined. | |
17768 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17769 | fi | |
17770 | if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then | |
17771 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined. | |
17772 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17773 | fi | |
17774 | if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then | |
17775 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined. | |
17776 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17777 | fi | |
c0c25232 MF |
17778 | if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then |
17779 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined. | |
17780 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17781 | fi | |
fb2c495f MF |
17782 | if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then |
17783 | as_fn_error $? "conditional \"ENABLE_SIM\" was never defined. | |
17784 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17785 | fi | |
456ef1c1 MF |
17786 | if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then |
17787 | as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined. | |
17788 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17789 | fi | |
3a31051b MF |
17790 | if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then |
17791 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined. | |
17792 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17793 | fi | |
f6d58d40 MF |
17794 | if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then |
17795 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined. | |
17796 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17797 | fi | |
f12c3c63 MF |
17798 | if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then |
17799 | as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined. | |
17800 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17801 | fi | |
c2783492 | 17802 | |
d0ac1c44 | 17803 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 17804 | ac_write_fail=0 |
b7026657 AC |
17805 | ac_clean_files_save=$ac_clean_files |
17806 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
17807 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17808 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17809 | as_write_fail=0 | |
17810 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
17811 | #! $SHELL |
17812 | # Generated by $as_me. | |
c906108c | 17813 | # Run this file to recreate the current configuration. |
c906108c | 17814 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
17815 | # configure, is in config.log if it exists. |
17816 | ||
17817 | debug=false | |
17818 | ac_cs_recheck=false | |
17819 | ac_cs_silent=false | |
b7026657 | 17820 | |
81ecdfbb RW |
17821 | SHELL=\${CONFIG_SHELL-$SHELL} |
17822 | export SHELL | |
17823 | _ASEOF | |
17824 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17825 | ## -------------------- ## | |
17826 | ## M4sh Initialization. ## | |
17827 | ## -------------------- ## | |
17828 | ||
17829 | # Be more Bourne compatible | |
17830 | DUALCASE=1; export DUALCASE # for MKS sh | |
17831 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
17832 | emulate sh |
17833 | NULLCMD=: | |
81ecdfbb | 17834 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
17835 | # is contrary to our usage. Disable this feature. |
17836 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
17837 | setopt NO_GLOB_SUBST |
17838 | else | |
17839 | case `(set -o) 2>/dev/null` in #( | |
17840 | *posix*) : | |
17841 | set -o posix ;; #( | |
17842 | *) : | |
17843 | ;; | |
17844 | esac | |
b7026657 | 17845 | fi |
c906108c | 17846 | |
81ecdfbb RW |
17847 | |
17848 | as_nl=' | |
17849 | ' | |
17850 | export as_nl | |
17851 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17852 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17853 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17854 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17855 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17856 | # but without wasting forks for bash or zsh. | |
17857 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17858 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17859 | as_echo='print -r --' | |
17860 | as_echo_n='print -rn --' | |
17861 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17862 | as_echo='printf %s\n' | |
17863 | as_echo_n='printf %s' | |
b7026657 | 17864 | else |
81ecdfbb RW |
17865 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
17866 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17867 | as_echo_n='/usr/ucb/echo -n' | |
17868 | else | |
17869 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
17870 | as_echo_n_body='eval | |
17871 | arg=$1; | |
17872 | case $arg in #( | |
17873 | *"$as_nl"*) | |
17874 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17875 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17876 | esac; | |
17877 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17878 | ' | |
17879 | export as_echo_n_body | |
17880 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
17881 | fi | |
17882 | export as_echo_body | |
17883 | as_echo='sh -c $as_echo_body as_echo' | |
17884 | fi | |
17885 | ||
17886 | # The user is always right. | |
17887 | if test "${PATH_SEPARATOR+set}" != set; then | |
17888 | PATH_SEPARATOR=: | |
17889 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17890 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17891 | PATH_SEPARATOR=';' | |
17892 | } | |
b7026657 AC |
17893 | fi |
17894 | ||
17895 | ||
81ecdfbb RW |
17896 | # IFS |
17897 | # We need space, tab and new line, in precisely that order. Quoting is | |
17898 | # there to prevent editors from complaining about space-tab. | |
17899 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17900 | # splitting by setting IFS to empty value.) | |
17901 | IFS=" "" $as_nl" | |
17902 | ||
17903 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 17904 | as_myself= |
81ecdfbb RW |
17905 | case $0 in #(( |
17906 | *[\\/]* ) as_myself=$0 ;; | |
17907 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17908 | for as_dir in $PATH | |
17909 | do | |
17910 | IFS=$as_save_IFS | |
17911 | test -z "$as_dir" && as_dir=. | |
17912 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17913 | done | |
17914 | IFS=$as_save_IFS | |
17915 | ||
17916 | ;; | |
17917 | esac | |
17918 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17919 | # in which case we are not to be found in the path. | |
17920 | if test "x$as_myself" = x; then | |
17921 | as_myself=$0 | |
17922 | fi | |
17923 | if test ! -f "$as_myself"; then | |
17924 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
17925 | exit 1 | |
17926 | fi | |
17927 | ||
17928 | # Unset variables that we do not need and which cause bugs (e.g. in | |
17929 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
17930 | # suppresses any "Segmentation fault" message there. '((' could | |
17931 | # trigger a bug in pdksh 5.2.14. | |
17932 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
17933 | do eval test x\${$as_var+set} = xset \ | |
17934 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
17935 | done | |
b7026657 AC |
17936 | PS1='$ ' |
17937 | PS2='> ' | |
17938 | PS4='+ ' | |
17939 | ||
17940 | # NLS nuisances. | |
81ecdfbb RW |
17941 | LC_ALL=C |
17942 | export LC_ALL | |
17943 | LANGUAGE=C | |
17944 | export LANGUAGE | |
17945 | ||
17946 | # CDPATH. | |
17947 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17948 | ||
17949 | ||
d0ac1c44 SM |
17950 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
17951 | # ---------------------------------------- | |
81ecdfbb RW |
17952 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17953 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 17954 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
17955 | as_fn_error () |
17956 | { | |
d0ac1c44 SM |
17957 | as_status=$1; test $as_status -eq 0 && as_status=1 |
17958 | if test "$4"; then | |
17959 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17960 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 17961 | fi |
d0ac1c44 | 17962 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
17963 | as_fn_exit $as_status |
17964 | } # as_fn_error | |
c906108c | 17965 | |
81ecdfbb RW |
17966 | |
17967 | # as_fn_set_status STATUS | |
17968 | # ----------------------- | |
17969 | # Set $? to STATUS, without forking. | |
17970 | as_fn_set_status () | |
17971 | { | |
17972 | return $1 | |
17973 | } # as_fn_set_status | |
17974 | ||
17975 | # as_fn_exit STATUS | |
17976 | # ----------------- | |
17977 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
17978 | as_fn_exit () | |
17979 | { | |
17980 | set +e | |
17981 | as_fn_set_status $1 | |
17982 | exit $1 | |
17983 | } # as_fn_exit | |
17984 | ||
17985 | # as_fn_unset VAR | |
17986 | # --------------- | |
17987 | # Portably unset VAR. | |
17988 | as_fn_unset () | |
17989 | { | |
17990 | { eval $1=; unset $1;} | |
17991 | } | |
17992 | as_unset=as_fn_unset | |
17993 | # as_fn_append VAR VALUE | |
17994 | # ---------------------- | |
17995 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
17996 | # advantage of any shell optimizations that allow amortized linear growth over | |
17997 | # repeated appends, instead of the typical quadratic growth present in naive | |
17998 | # implementations. | |
17999 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18000 | eval 'as_fn_append () | |
18001 | { | |
18002 | eval $1+=\$2 | |
18003 | }' | |
18004 | else | |
18005 | as_fn_append () | |
18006 | { | |
18007 | eval $1=\$$1\$2 | |
18008 | } | |
18009 | fi # as_fn_append | |
18010 | ||
18011 | # as_fn_arith ARG... | |
18012 | # ------------------ | |
18013 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18014 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18015 | # must be portable across $(()) and expr. | |
18016 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18017 | eval 'as_fn_arith () | |
18018 | { | |
18019 | as_val=$(( $* )) | |
18020 | }' | |
18021 | else | |
18022 | as_fn_arith () | |
18023 | { | |
18024 | as_val=`expr "$@" || test $? -eq 1` | |
18025 | } | |
18026 | fi # as_fn_arith | |
18027 | ||
18028 | ||
18029 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
18030 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
18031 | as_expr=expr |
18032 | else | |
18033 | as_expr=false | |
18034 | fi | |
c906108c | 18035 | |
81ecdfbb | 18036 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
18037 | as_basename=basename |
18038 | else | |
18039 | as_basename=false | |
18040 | fi | |
c906108c | 18041 | |
81ecdfbb RW |
18042 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18043 | as_dirname=dirname | |
18044 | else | |
18045 | as_dirname=false | |
18046 | fi | |
c906108c | 18047 | |
81ecdfbb | 18048 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
18049 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18050 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
18051 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
18052 | $as_echo X/"$0" | | |
18053 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
18054 | s//\1/ | |
18055 | q | |
18056 | } | |
18057 | /^X\/\(\/\/\)$/{ | |
18058 | s//\1/ | |
18059 | q | |
18060 | } | |
18061 | /^X\/\(\/\).*/{ | |
18062 | s//\1/ | |
18063 | q | |
18064 | } | |
18065 | s/.*/./; q'` | |
b7026657 | 18066 | |
fdd6fa61 AG |
18067 | # Avoid depending upon Character Ranges. |
18068 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18069 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18070 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18071 | as_cr_digits='0123456789' | |
18072 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
18073 | ||
81ecdfbb RW |
18074 | ECHO_C= ECHO_N= ECHO_T= |
18075 | case `echo -n x` in #((((( | |
18076 | -n*) | |
18077 | case `echo 'xy\c'` in | |
18078 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
18079 | xy) ECHO_C='\c';; | |
18080 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18081 | ECHO_T=' ';; | |
18082 | esac;; | |
18083 | *) | |
18084 | ECHO_N='-n';; | |
b7026657 AC |
18085 | esac |
18086 | ||
81ecdfbb RW |
18087 | rm -f conf$$ conf$$.exe conf$$.file |
18088 | if test -d conf$$.dir; then | |
18089 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 18090 | else |
81ecdfbb RW |
18091 | rm -f conf$$.dir |
18092 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 18093 | fi |
81ecdfbb RW |
18094 | if (echo >conf$$.file) 2>/dev/null; then |
18095 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 18096 | as_ln_s='ln -s' |
81ecdfbb RW |
18097 | # ... but there are two gotchas: |
18098 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18099 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 18100 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 18101 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 18102 | as_ln_s='cp -pR' |
81ecdfbb RW |
18103 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18104 | as_ln_s=ln | |
18105 | else | |
d0ac1c44 | 18106 | as_ln_s='cp -pR' |
fdd6fa61 | 18107 | fi |
b7026657 | 18108 | else |
d0ac1c44 | 18109 | as_ln_s='cp -pR' |
b7026657 | 18110 | fi |
81ecdfbb RW |
18111 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18112 | rmdir conf$$.dir 2>/dev/null | |
18113 | ||
18114 | ||
18115 | # as_fn_mkdir_p | |
18116 | # ------------- | |
18117 | # Create "$as_dir" as a directory, including parents if necessary. | |
18118 | as_fn_mkdir_p () | |
18119 | { | |
b7026657 | 18120 | |
81ecdfbb RW |
18121 | case $as_dir in #( |
18122 | -*) as_dir=./$as_dir;; | |
18123 | esac | |
18124 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18125 | as_dirs= | |
18126 | while :; do | |
18127 | case $as_dir in #( | |
18128 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18129 | *) as_qdir=$as_dir;; | |
18130 | esac | |
18131 | as_dirs="'$as_qdir' $as_dirs" | |
18132 | as_dir=`$as_dirname -- "$as_dir" || | |
18133 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18134 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18135 | X"$as_dir" : 'X\(//\)$' \| \ | |
18136 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18137 | $as_echo X"$as_dir" | | |
18138 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18139 | s//\1/ | |
18140 | q | |
18141 | } | |
18142 | /^X\(\/\/\)[^/].*/{ | |
18143 | s//\1/ | |
18144 | q | |
18145 | } | |
18146 | /^X\(\/\/\)$/{ | |
18147 | s//\1/ | |
18148 | q | |
18149 | } | |
18150 | /^X\(\/\).*/{ | |
18151 | s//\1/ | |
18152 | q | |
18153 | } | |
18154 | s/.*/./; q'` | |
18155 | test -d "$as_dir" && break | |
18156 | done | |
18157 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 18158 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
18159 | |
18160 | ||
18161 | } # as_fn_mkdir_p | |
b7026657 | 18162 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 18163 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
18164 | else |
18165 | test -d ./-p && rmdir ./-p | |
18166 | as_mkdir_p=false | |
18167 | fi | |
18168 | ||
d0ac1c44 SM |
18169 | |
18170 | # as_fn_executable_p FILE | |
18171 | # ----------------------- | |
18172 | # Test if FILE is an executable regular file. | |
18173 | as_fn_executable_p () | |
18174 | { | |
18175 | test -f "$1" && test -x "$1" | |
18176 | } # as_fn_executable_p | |
18177 | as_test_x='test -x' | |
18178 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
18179 | |
18180 | # Sed expression to map a string onto a valid CPP name. | |
18181 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18182 | ||
18183 | # Sed expression to map a string onto a valid variable name. | |
18184 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18185 | ||
18186 | ||
b7026657 | 18187 | exec 6>&1 |
81ecdfbb RW |
18188 | ## ----------------------------------- ## |
18189 | ## Main body of $CONFIG_STATUS script. ## | |
18190 | ## ----------------------------------- ## | |
18191 | _ASEOF | |
18192 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
18193 | ||
18194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18195 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 18196 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
18197 | # values after options handling. |
18198 | ac_log=" | |
6bddc3e8 | 18199 | This file was extended by sim $as_me 0, which was |
d0ac1c44 | 18200 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
18201 | |
18202 | CONFIG_FILES = $CONFIG_FILES | |
18203 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18204 | CONFIG_LINKS = $CONFIG_LINKS | |
18205 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18206 | $ $0 $@ | |
18207 | ||
81ecdfbb RW |
18208 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18209 | " | |
18210 | ||
b7026657 AC |
18211 | _ACEOF |
18212 | ||
81ecdfbb RW |
18213 | case $ac_config_files in *" |
18214 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18215 | esac | |
b7026657 | 18216 | |
b15c5d7a MF |
18217 | case $ac_config_headers in *" |
18218 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18219 | esac | |
fdd6fa61 | 18220 | |
fdd6fa61 | 18221 | |
81ecdfbb RW |
18222 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18223 | # Files that config.status was made for. | |
18224 | config_files="$ac_config_files" | |
b15c5d7a | 18225 | config_headers="$ac_config_headers" |
6bddc3e8 | 18226 | config_commands="$ac_config_commands" |
b7026657 | 18227 | |
81ecdfbb | 18228 | _ACEOF |
fdd6fa61 | 18229 | |
81ecdfbb | 18230 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 18231 | ac_cs_usage="\ |
81ecdfbb RW |
18232 | \`$as_me' instantiates files and other configuration actions |
18233 | from templates according to the current configuration. Unless the files | |
18234 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 18235 | |
81ecdfbb | 18236 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
18237 | |
18238 | -h, --help print this help, then exit | |
81ecdfbb | 18239 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 18240 | --config print configuration, then exit |
81ecdfbb RW |
18241 | -q, --quiet, --silent |
18242 | do not print progress messages | |
b7026657 AC |
18243 | -d, --debug don't remove temporary files |
18244 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
18245 | --file=FILE[:TEMPLATE] |
18246 | instantiate the configuration file FILE | |
b15c5d7a MF |
18247 | --header=FILE[:TEMPLATE] |
18248 | instantiate the configuration header FILE | |
b7026657 AC |
18249 | |
18250 | Configuration files: | |
18251 | $config_files | |
18252 | ||
b15c5d7a MF |
18253 | Configuration headers: |
18254 | $config_headers | |
18255 | ||
6bddc3e8 MF |
18256 | Configuration commands: |
18257 | $config_commands | |
18258 | ||
18259 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
18260 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>." | |
fdd6fa61 | 18261 | |
81ecdfbb RW |
18262 | _ACEOF |
18263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 18264 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 | 18265 | ac_cs_version="\\ |
6bddc3e8 | 18266 | sim config.status 0 |
d0ac1c44 SM |
18267 | configured by $0, generated by GNU Autoconf 2.69, |
18268 | with options \\"\$ac_cs_config\\" | |
b7026657 | 18269 | |
d0ac1c44 | 18270 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
18271 | This config.status script is free software; the Free Software Foundation |
18272 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
18273 | |
18274 | ac_pwd='$ac_pwd' | |
18275 | srcdir='$srcdir' | |
18276 | INSTALL='$INSTALL' | |
6bddc3e8 MF |
18277 | MKDIR_P='$MKDIR_P' |
18278 | AWK='$AWK' | |
81ecdfbb | 18279 | test -n "\$AWK" || AWK=awk |
b7026657 AC |
18280 | _ACEOF |
18281 | ||
81ecdfbb RW |
18282 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18283 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
18284 | ac_need_defaults=: |
18285 | while test $# != 0 | |
18286 | do | |
18287 | case $1 in | |
d0ac1c44 | 18288 | --*=?*) |
81ecdfbb RW |
18289 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18290 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
18291 | ac_shift=: |
18292 | ;; | |
d0ac1c44 SM |
18293 | --*=) |
18294 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18295 | ac_optarg= | |
18296 | ac_shift=: | |
18297 | ;; | |
81ecdfbb | 18298 | *) |
b7026657 AC |
18299 | ac_option=$1 |
18300 | ac_optarg=$2 | |
18301 | ac_shift=shift | |
18302 | ;; | |
b7026657 AC |
18303 | esac |
18304 | ||
18305 | case $ac_option in | |
18306 | # Handling of the options. | |
b7026657 AC |
18307 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18308 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
18309 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
18310 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
18311 | --config | --confi | --conf | --con | --co | --c ) |
18312 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 18313 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
18314 | debug=: ;; |
18315 | --file | --fil | --fi | --f ) | |
18316 | $ac_shift | |
81ecdfbb RW |
18317 | case $ac_optarg in |
18318 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 18319 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
18320 | esac |
18321 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fdd6fa61 | 18322 | ac_need_defaults=false;; |
b15c5d7a MF |
18323 | --header | --heade | --head | --hea ) |
18324 | $ac_shift | |
18325 | case $ac_optarg in | |
18326 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18327 | esac | |
18328 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
18329 | ac_need_defaults=false;; | |
18330 | --he | --h) | |
18331 | # Conflict between --help and --header | |
18332 | as_fn_error $? "ambiguous option: \`$1' | |
18333 | Try \`$0 --help' for more information.";; | |
18334 | --help | --hel | -h ) | |
81ecdfbb | 18335 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
18336 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18337 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18338 | ac_cs_silent=: ;; | |
18339 | ||
18340 | # This is an error. | |
d0ac1c44 | 18341 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 18342 | Try \`$0 --help' for more information." ;; |
b7026657 | 18343 | |
81ecdfbb RW |
18344 | *) as_fn_append ac_config_targets " $1" |
18345 | ac_need_defaults=false ;; | |
b7026657 AC |
18346 | |
18347 | esac | |
18348 | shift | |
c906108c | 18349 | done |
b7026657 AC |
18350 | |
18351 | ac_configure_extra_args= | |
18352 | ||
18353 | if $ac_cs_silent; then | |
18354 | exec 6>/dev/null | |
18355 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 18356 | fi |
c906108c | 18357 | |
b7026657 | 18358 | _ACEOF |
81ecdfbb | 18359 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 18360 | if \$ac_cs_recheck; then |
d0ac1c44 | 18361 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
18362 | shift |
18363 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18364 | CONFIG_SHELL='$SHELL' | |
18365 | export CONFIG_SHELL | |
18366 | exec "\$@" | |
b7026657 | 18367 | fi |
c906108c | 18368 | |
b7026657 | 18369 | _ACEOF |
81ecdfbb RW |
18370 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18371 | exec 5>>config.log | |
18372 | { | |
18373 | echo | |
18374 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18375 | ## Running $as_me. ## | |
18376 | _ASBOX | |
18377 | $as_echo "$ac_log" | |
18378 | } >&5 | |
b7026657 | 18379 | |
81ecdfbb RW |
18380 | _ACEOF |
18381 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bddc3e8 MF |
18382 | # |
18383 | # INIT-COMMANDS | |
18384 | # | |
b5689863 MF |
18385 | |
18386 | ||
18387 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18388 | # if CDPATH is set. | |
18389 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18390 | ||
18391 | sed_quote_subst='$sed_quote_subst' | |
18392 | double_quote_subst='$double_quote_subst' | |
18393 | delay_variable_subst='$delay_variable_subst' | |
18394 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18395 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18396 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18397 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18398 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18399 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18400 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18401 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18402 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18403 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18404 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18405 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18406 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18407 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18408 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18409 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18410 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18411 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18412 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18413 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18414 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18415 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18416 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18417 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18418 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18419 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18420 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18421 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18422 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18423 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18424 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18425 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18426 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18427 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18428 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18429 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18430 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18431 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18432 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18433 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18434 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18435 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18436 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18437 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18438 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18439 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18440 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18441 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18442 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18443 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18444 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18445 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18446 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18447 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18448 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18449 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18450 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18451 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18452 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18453 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18454 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18455 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18456 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18457 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18458 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18459 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18460 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18461 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18462 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18463 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18464 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18465 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18466 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18467 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18468 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18469 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18470 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18471 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18472 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18473 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18474 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18475 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18476 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18477 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18478 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18479 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18480 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18481 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18482 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18483 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18484 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18485 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18486 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18487 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18488 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18489 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18490 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18491 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18492 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18493 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18494 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18495 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18496 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18497 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18498 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18499 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18500 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18501 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18502 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18503 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18504 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18505 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18506 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18507 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18508 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18509 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18510 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18511 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18512 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18513 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18514 | ||
18515 | LTCC='$LTCC' | |
18516 | LTCFLAGS='$LTCFLAGS' | |
18517 | compiler='$compiler_DEFAULT' | |
18518 | ||
18519 | # A function that is used when there is no print builtin or printf. | |
18520 | func_fallback_echo () | |
18521 | { | |
18522 | eval 'cat <<_LTECHO_EOF | |
18523 | \$1 | |
18524 | _LTECHO_EOF' | |
18525 | } | |
18526 | ||
18527 | # Quote evaled strings. | |
18528 | for var in SHELL \ | |
18529 | ECHO \ | |
18530 | SED \ | |
18531 | GREP \ | |
18532 | EGREP \ | |
18533 | FGREP \ | |
18534 | LD \ | |
18535 | NM \ | |
18536 | LN_S \ | |
18537 | lt_SP2NL \ | |
18538 | lt_NL2SP \ | |
18539 | reload_flag \ | |
18540 | OBJDUMP \ | |
18541 | deplibs_check_method \ | |
18542 | file_magic_cmd \ | |
18543 | AR \ | |
18544 | AR_FLAGS \ | |
18545 | STRIP \ | |
18546 | RANLIB \ | |
18547 | CC \ | |
18548 | CFLAGS \ | |
18549 | compiler \ | |
18550 | lt_cv_sys_global_symbol_pipe \ | |
18551 | lt_cv_sys_global_symbol_to_cdecl \ | |
18552 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18553 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18554 | lt_prog_compiler_no_builtin_flag \ | |
18555 | lt_prog_compiler_wl \ | |
18556 | lt_prog_compiler_pic \ | |
18557 | lt_prog_compiler_static \ | |
18558 | lt_cv_prog_compiler_c_o \ | |
18559 | need_locks \ | |
18560 | DSYMUTIL \ | |
18561 | NMEDIT \ | |
18562 | LIPO \ | |
18563 | OTOOL \ | |
18564 | OTOOL64 \ | |
18565 | shrext_cmds \ | |
18566 | export_dynamic_flag_spec \ | |
18567 | whole_archive_flag_spec \ | |
18568 | compiler_needs_object \ | |
18569 | with_gnu_ld \ | |
18570 | allow_undefined_flag \ | |
18571 | no_undefined_flag \ | |
18572 | hardcode_libdir_flag_spec \ | |
18573 | hardcode_libdir_flag_spec_ld \ | |
18574 | hardcode_libdir_separator \ | |
18575 | fix_srcfile_path \ | |
18576 | exclude_expsyms \ | |
18577 | include_expsyms \ | |
18578 | file_list_spec \ | |
18579 | variables_saved_for_relink \ | |
18580 | libname_spec \ | |
18581 | library_names_spec \ | |
18582 | soname_spec \ | |
18583 | install_override_mode \ | |
18584 | finish_eval \ | |
18585 | old_striplib \ | |
18586 | striplib; do | |
18587 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18588 | *[\\\\\\\`\\"\\\$]*) | |
18589 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18590 | ;; | |
18591 | *) | |
18592 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18593 | ;; | |
18594 | esac | |
18595 | done | |
18596 | ||
18597 | # Double-quote double-evaled strings. | |
18598 | for var in reload_cmds \ | |
18599 | old_postinstall_cmds \ | |
18600 | old_postuninstall_cmds \ | |
18601 | old_archive_cmds \ | |
18602 | extract_expsyms_cmds \ | |
18603 | old_archive_from_new_cmds \ | |
18604 | old_archive_from_expsyms_cmds \ | |
18605 | archive_cmds \ | |
18606 | archive_expsym_cmds \ | |
18607 | module_cmds \ | |
18608 | module_expsym_cmds \ | |
18609 | export_symbols_cmds \ | |
18610 | prelink_cmds \ | |
18611 | postinstall_cmds \ | |
18612 | postuninstall_cmds \ | |
18613 | finish_cmds \ | |
18614 | sys_lib_search_path_spec \ | |
18615 | sys_lib_dlsearch_path_spec; do | |
18616 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18617 | *[\\\\\\\`\\"\\\$]*) | |
18618 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18619 | ;; | |
18620 | *) | |
18621 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18622 | ;; | |
18623 | esac | |
18624 | done | |
18625 | ||
18626 | ac_aux_dir='$ac_aux_dir' | |
18627 | xsi_shell='$xsi_shell' | |
18628 | lt_shell_append='$lt_shell_append' | |
18629 | ||
18630 | # See if we are running on zsh, and set the options which allow our | |
18631 | # commands through without removal of \ escapes INIT. | |
18632 | if test -n "\${ZSH_VERSION+set}" ; then | |
18633 | setopt NO_GLOB_SUBST | |
18634 | fi | |
18635 | ||
18636 | ||
18637 | PACKAGE='$PACKAGE' | |
18638 | VERSION='$VERSION' | |
18639 | TIMESTAMP='$TIMESTAMP' | |
18640 | RM='$RM' | |
18641 | ofile='$ofile' | |
18642 | ||
18643 | ||
18644 | ||
6bddc3e8 MF |
18645 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
18646 | ||
81ecdfbb | 18647 | _ACEOF |
b7026657 | 18648 | |
81ecdfbb | 18649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
df1756f4 | 18650 | |
81ecdfbb | 18651 | # Handling of arguments. |
b7026657 AC |
18652 | for ac_config_target in $ac_config_targets |
18653 | do | |
81ecdfbb | 18654 | case $ac_config_target in |
b15c5d7a | 18655 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
b5689863 | 18656 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
6bddc3e8 | 18657 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
23912acd | 18658 | "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18659 | "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18660 | "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18661 | "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18662 | "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18663 | "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18664 | "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18665 | "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18666 | "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18667 | "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18668 | "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18669 | "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18670 | "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18671 | "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18672 | "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18673 | "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18674 | "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18675 | "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18676 | "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18677 | "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18678 | "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18679 | "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18680 | "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18681 | "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18682 | "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18683 | "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18684 | "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18685 | "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18686 | "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18687 | "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18688 | "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;; |
23912acd | 18689 | "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;; |
81ecdfbb | 18690 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
21672298 | 18691 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
81ecdfbb | 18692 | |
d0ac1c44 | 18693 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 18694 | esac |
b7026657 | 18695 | done |
c906108c | 18696 | |
81ecdfbb | 18697 | |
b7026657 AC |
18698 | # If the user did not use the arguments to specify the items to instantiate, |
18699 | # then the envvar interface is used. Set only those that are not. | |
18700 | # We use the long form for the default assignment because of an extremely | |
18701 | # bizarre bug on SunOS 4.1.3. | |
18702 | if $ac_need_defaults; then | |
18703 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b15c5d7a | 18704 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6bddc3e8 | 18705 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b7026657 | 18706 | fi |
c906108c | 18707 | |
b7026657 | 18708 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 18709 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 18710 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
18711 | # Hook for its removal unless debugging. |
18712 | # Note that there is a small window in which the directory will not be cleaned: | |
18713 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
18714 | $debug || |
18715 | { | |
d0ac1c44 | 18716 | tmp= ac_tmp= |
81ecdfbb | 18717 | trap 'exit_status=$? |
d0ac1c44 SM |
18718 | : "${ac_tmp:=$tmp}" |
18719 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
18720 | ' 0 |
18721 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 18722 | } |
b7026657 AC |
18723 | # Create a (secure) tmp directory for tmp files. |
18724 | ||
18725 | { | |
81ecdfbb | 18726 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 18727 | test -d "$tmp" |
b7026657 AC |
18728 | } || |
18729 | { | |
81ecdfbb RW |
18730 | tmp=./conf$$-$RANDOM |
18731 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
18732 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18733 | ac_tmp=$tmp | |
81ecdfbb RW |
18734 | |
18735 | # Set up the scripts for CONFIG_FILES section. | |
18736 | # No need to generate them if there are no CONFIG_FILES. | |
18737 | # This happens for instance with `./config.status config.h'. | |
18738 | if test -n "$CONFIG_FILES"; then | |
18739 | ||
18740 | ||
18741 | ac_cr=`echo X | tr X '\015'` | |
18742 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18743 | # But we know of no other shell where ac_cr would be empty at this | |
18744 | # point, so we can use a bashism as a fallback. | |
18745 | if test "x$ac_cr" = x; then | |
18746 | eval ac_cr=\$\'\\r\' | |
18747 | fi | |
18748 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18749 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 18750 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
18751 | else |
18752 | ac_cs_awk_cr=$ac_cr | |
18753 | fi | |
18754 | ||
d0ac1c44 | 18755 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
18756 | _ACEOF |
18757 | ||
18758 | ||
18759 | { | |
18760 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18761 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18762 | echo "_ACEOF" | |
18763 | } >conf$$subs.sh || | |
d0ac1c44 SM |
18764 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18765 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
18766 | ac_delim='%!_!# ' |
18767 | for ac_last_try in false false false false false :; do | |
18768 | . ./conf$$subs.sh || | |
d0ac1c44 | 18769 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
18770 | |
18771 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18772 | if test $ac_delim_n = $ac_delim_num; then | |
18773 | break | |
18774 | elif $ac_last_try; then | |
d0ac1c44 | 18775 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
18776 | else |
18777 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18778 | fi | |
18779 | done | |
18780 | rm -f conf$$subs.sh | |
18781 | ||
18782 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 18783 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
18784 | _ACEOF |
18785 | sed -n ' | |
18786 | h | |
18787 | s/^/S["/; s/!.*/"]=/ | |
18788 | p | |
18789 | g | |
18790 | s/^[^!]*!// | |
18791 | :repl | |
18792 | t repl | |
18793 | s/'"$ac_delim"'$// | |
18794 | t delim | |
18795 | :nl | |
18796 | h | |
d0ac1c44 | 18797 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
18798 | t more1 |
18799 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18800 | p | |
18801 | n | |
18802 | b repl | |
18803 | :more1 | |
18804 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18805 | p | |
18806 | g | |
18807 | s/.\{148\}// | |
18808 | t nl | |
18809 | :delim | |
18810 | h | |
d0ac1c44 | 18811 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
18812 | t more2 |
18813 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18814 | p | |
18815 | b | |
18816 | :more2 | |
18817 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18818 | p | |
18819 | g | |
18820 | s/.\{148\}// | |
18821 | t delim | |
18822 | ' <conf$$subs.awk | sed ' | |
18823 | /^[^""]/{ | |
18824 | N | |
18825 | s/\n// | |
18826 | } | |
18827 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18828 | rm -f conf$$subs.awk | |
18829 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18830 | _ACAWK | |
d0ac1c44 | 18831 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
18832 | for (key in S) S_is_set[key] = 1 |
18833 | FS = "\a" | |
18834 | ||
18835 | } | |
b7026657 | 18836 | { |
81ecdfbb RW |
18837 | line = $ 0 |
18838 | nfields = split(line, field, "@") | |
18839 | substed = 0 | |
18840 | len = length(field[1]) | |
18841 | for (i = 2; i < nfields; i++) { | |
18842 | key = field[i] | |
18843 | keylen = length(key) | |
18844 | if (S_is_set[key]) { | |
18845 | value = S[key] | |
18846 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18847 | len += length(value) + length(field[++i]) | |
18848 | substed = 1 | |
18849 | } else | |
18850 | len += 1 + keylen | |
18851 | } | |
18852 | ||
18853 | print line | |
b7026657 AC |
18854 | } |
18855 | ||
81ecdfbb RW |
18856 | _ACAWK |
18857 | _ACEOF | |
18858 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18859 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18860 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18861 | else | |
18862 | cat | |
d0ac1c44 SM |
18863 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18864 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
fdd6fa61 AG |
18865 | _ACEOF |
18866 | ||
d0ac1c44 SM |
18867 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18868 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
18869 | # trailing colons and then remove the whole line if VPATH becomes empty |
18870 | # (actually we leave an empty line to preserve line numbers). | |
18871 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
18872 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18873 | h | |
18874 | s/// | |
18875 | s/^/:/ | |
18876 | s/[ ]*$/:/ | |
18877 | s/:\$(srcdir):/:/g | |
18878 | s/:\${srcdir}:/:/g | |
18879 | s/:@srcdir@:/:/g | |
18880 | s/^:*// | |
81ecdfbb | 18881 | s/:*$// |
d0ac1c44 SM |
18882 | x |
18883 | s/\(=[ ]*\).*/\1/ | |
18884 | G | |
18885 | s/\n// | |
81ecdfbb RW |
18886 | s/^[^=]*=[ ]*$// |
18887 | }' | |
18888 | fi | |
fdd6fa61 | 18889 | |
81ecdfbb RW |
18890 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18891 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 18892 | |
b15c5d7a MF |
18893 | # Set up the scripts for CONFIG_HEADERS section. |
18894 | # No need to generate them if there are no CONFIG_HEADERS. | |
18895 | # This happens for instance with `./config.status Makefile'. | |
18896 | if test -n "$CONFIG_HEADERS"; then | |
18897 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
18898 | BEGIN { | |
18899 | _ACEOF | |
18900 | ||
18901 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18902 | # here-document in config.status, that substitutes the proper values into | |
18903 | # config.h.in to produce config.h. | |
18904 | ||
18905 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18906 | # handling of long lines. | |
18907 | ac_delim='%!_!# ' | |
18908 | for ac_last_try in false false :; do | |
18909 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
18910 | if test -z "$ac_tt"; then | |
18911 | break | |
18912 | elif $ac_last_try; then | |
18913 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
18914 | else | |
18915 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
18916 | fi | |
18917 | done | |
18918 | ||
18919 | # For the awk script, D is an array of macro values keyed by name, | |
18920 | # likewise P contains macro parameters if any. Preserve backslash | |
18921 | # newline sequences. | |
18922 | ||
18923 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
18924 | sed -n ' | |
18925 | s/.\{148\}/&'"$ac_delim"'/g | |
18926 | t rset | |
18927 | :rset | |
18928 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
18929 | t def | |
18930 | d | |
18931 | :def | |
18932 | s/\\$// | |
18933 | t bsnl | |
18934 | s/["\\]/\\&/g | |
18935 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18936 | D["\1"]=" \3"/p | |
18937 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
18938 | d | |
18939 | :bsnl | |
18940 | s/["\\]/\\&/g | |
18941 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
18942 | D["\1"]=" \3\\\\\\n"\\/p | |
18943 | t cont | |
18944 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
18945 | t cont | |
18946 | d | |
18947 | :cont | |
18948 | n | |
18949 | s/.\{148\}/&'"$ac_delim"'/g | |
18950 | t clear | |
18951 | :clear | |
18952 | s/\\$// | |
18953 | t bsnlc | |
18954 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
18955 | d | |
18956 | :bsnlc | |
18957 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
18958 | b cont | |
18959 | ' <confdefs.h | sed ' | |
18960 | s/'"$ac_delim"'/"\\\ | |
18961 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
18962 | ||
18963 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18964 | for (key in D) D_is_set[key] = 1 | |
18965 | FS = "\a" | |
18966 | } | |
18967 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
18968 | line = \$ 0 | |
18969 | split(line, arg, " ") | |
18970 | if (arg[1] == "#") { | |
18971 | defundef = arg[2] | |
18972 | mac1 = arg[3] | |
18973 | } else { | |
18974 | defundef = substr(arg[1], 2) | |
18975 | mac1 = arg[2] | |
18976 | } | |
18977 | split(mac1, mac2, "(") #) | |
18978 | macro = mac2[1] | |
18979 | prefix = substr(line, 1, index(line, defundef) - 1) | |
18980 | if (D_is_set[macro]) { | |
18981 | # Preserve the white space surrounding the "#". | |
18982 | print prefix "define", macro P[macro] D[macro] | |
18983 | next | |
18984 | } else { | |
18985 | # Replace #undef with comments. This is necessary, for example, | |
18986 | # in the case of _POSIX_SOURCE, which is predefined and required | |
18987 | # on some systems where configure will not decide to define it. | |
18988 | if (defundef == "undef") { | |
18989 | print "/*", prefix defundef, macro, "*/" | |
18990 | next | |
18991 | } | |
18992 | } | |
18993 | } | |
18994 | { print } | |
18995 | _ACAWK | |
18996 | _ACEOF | |
18997 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
18998 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
18999 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 19000 | |
b15c5d7a MF |
19001 | |
19002 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
81ecdfbb RW |
19003 | shift |
19004 | for ac_tag | |
19005 | do | |
19006 | case $ac_tag in | |
19007 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19008 | esac | |
19009 | case $ac_mode$ac_tag in | |
19010 | :[FHL]*:*);; | |
d0ac1c44 | 19011 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
19012 | :[FH]-) ac_tag=-:-;; |
19013 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
19014 | esac | |
19015 | ac_save_IFS=$IFS | |
19016 | IFS=: | |
19017 | set x $ac_tag | |
19018 | IFS=$ac_save_IFS | |
19019 | shift | |
19020 | ac_file=$1 | |
19021 | shift | |
b7026657 | 19022 | |
81ecdfbb RW |
19023 | case $ac_mode in |
19024 | :L) ac_source=$1;; | |
19025 | :[FH]) | |
19026 | ac_file_inputs= | |
19027 | for ac_f | |
19028 | do | |
19029 | case $ac_f in | |
d0ac1c44 | 19030 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
19031 | *) # Look for the file first in the build tree, then in the source tree |
19032 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19033 | # because $ac_f cannot contain `:'. | |
19034 | test -f "$ac_f" || | |
19035 | case $ac_f in | |
19036 | [\\/$]*) false;; | |
19037 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19038 | esac || | |
d0ac1c44 | 19039 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
19040 | esac |
19041 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
19042 | as_fn_append ac_file_inputs " '$ac_f'" | |
19043 | done | |
19044 | ||
19045 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19046 | # use $as_me), people would be surprised to read: | |
19047 | # /* config.h. Generated by config.status. */ | |
19048 | configure_input='Generated from '` | |
19049 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19050 | `' by configure.' | |
19051 | if test x"$ac_file" != x-; then | |
19052 | configure_input="$ac_file. $configure_input" | |
19053 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
19054 | $as_echo "$as_me: creating $ac_file" >&6;} | |
fdd6fa61 | 19055 | fi |
81ecdfbb RW |
19056 | # Neutralize special characters interpreted by sed in replacement strings. |
19057 | case $configure_input in #( | |
19058 | *\&* | *\|* | *\\* ) | |
19059 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19060 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19061 | *) ac_sed_conf_input=$configure_input;; | |
19062 | esac | |
df1756f4 | 19063 | |
81ecdfbb | 19064 | case $ac_tag in |
d0ac1c44 SM |
19065 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19066 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
19067 | esac |
19068 | ;; | |
df1756f4 TG |
19069 | esac |
19070 | ||
81ecdfbb | 19071 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
19072 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19073 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19074 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
19075 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
19076 | $as_echo X"$ac_file" | | |
19077 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19078 | s//\1/ | |
19079 | q | |
19080 | } | |
19081 | /^X\(\/\/\)[^/].*/{ | |
19082 | s//\1/ | |
19083 | q | |
19084 | } | |
19085 | /^X\(\/\/\)$/{ | |
19086 | s//\1/ | |
19087 | q | |
19088 | } | |
19089 | /^X\(\/\).*/{ | |
19090 | s//\1/ | |
19091 | q | |
19092 | } | |
19093 | s/.*/./; q'` | |
19094 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
19095 | ac_builddir=. |
19096 | ||
81ecdfbb RW |
19097 | case "$ac_dir" in |
19098 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19099 | *) | |
19100 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19101 | # A ".." for each directory in $ac_dir_suffix. | |
19102 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19103 | case $ac_top_builddir_sub in | |
19104 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19105 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19106 | esac ;; | |
19107 | esac | |
19108 | ac_abs_top_builddir=$ac_pwd | |
19109 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19110 | # for backward compatibility: | |
19111 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
19112 | |
19113 | case $srcdir in | |
81ecdfbb | 19114 | .) # We are building in place. |
b7026657 | 19115 | ac_srcdir=. |
81ecdfbb RW |
19116 | ac_top_srcdir=$ac_top_builddir_sub |
19117 | ac_abs_top_srcdir=$ac_pwd ;; | |
19118 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 19119 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19120 | ac_top_srcdir=$srcdir |
19121 | ac_abs_top_srcdir=$srcdir ;; | |
19122 | *) # Relative name. | |
19123 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19124 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19125 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 19126 | esac |
81ecdfbb | 19127 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 19128 | |
b7026657 | 19129 | |
81ecdfbb RW |
19130 | case $ac_mode in |
19131 | :F) | |
19132 | # | |
19133 | # CONFIG_FILE | |
19134 | # | |
c906108c | 19135 | |
b7026657 AC |
19136 | case $INSTALL in |
19137 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 19138 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 19139 | esac |
6bddc3e8 MF |
19140 | ac_MKDIR_P=$MKDIR_P |
19141 | case $MKDIR_P in | |
19142 | [\\/$]* | ?:[\\/]* ) ;; | |
19143 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19144 | esac | |
81ecdfbb | 19145 | _ACEOF |
c906108c | 19146 | |
81ecdfbb RW |
19147 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19148 | # If the template does not know about datarootdir, expand it. | |
19149 | # FIXME: This hack should be removed a few years after 2.60. | |
19150 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
19151 | ac_sed_dataroot=' | |
19152 | /datarootdir/ { | |
19153 | p | |
19154 | q | |
19155 | } | |
19156 | /@datadir@/p | |
19157 | /@docdir@/p | |
19158 | /@infodir@/p | |
19159 | /@localedir@/p | |
19160 | /@mandir@/p' | |
19161 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
19162 | *datarootdir*) ac_datarootdir_seen=yes;; | |
19163 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
19164 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
19165 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
19166 | _ACEOF | |
19167 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19168 | ac_datarootdir_hack=' | |
19169 | s&@datadir@&$datadir&g | |
19170 | s&@docdir@&$docdir&g | |
19171 | s&@infodir@&$infodir&g | |
19172 | s&@localedir@&$localedir&g | |
19173 | s&@mandir@&$mandir&g | |
19174 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
19175 | esac | |
b7026657 | 19176 | _ACEOF |
81ecdfbb RW |
19177 | |
19178 | # Neutralize VPATH when `$srcdir' = `.'. | |
19179 | # Shell code in configure.ac might set extrasub. | |
19180 | # FIXME: do we really want to maintain this feature? | |
19181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19182 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
19183 | $extrasub |
19184 | _ACEOF | |
81ecdfbb | 19185 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
19186 | :t |
19187 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
19188 | s|@configure_input@|$ac_sed_conf_input|;t t |
19189 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
19190 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
19191 | s&@srcdir@&$ac_srcdir&;t t | |
19192 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19193 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19194 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19195 | s&@builddir@&$ac_builddir&;t t | |
19196 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19197 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19198 | s&@INSTALL@&$ac_INSTALL&;t t | |
6bddc3e8 | 19199 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
19200 | $ac_datarootdir_hack |
19201 | " | |
d0ac1c44 SM |
19202 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19203 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
19204 | |
19205 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
19206 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19207 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19208 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 19209 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19210 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 19211 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 19212 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 19213 | |
d0ac1c44 | 19214 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 19215 | case $ac_file in |
d0ac1c44 SM |
19216 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19217 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 19218 | esac \ |
d0ac1c44 | 19219 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 19220 | ;; |
b15c5d7a MF |
19221 | :H) |
19222 | # | |
19223 | # CONFIG_HEADER | |
19224 | # | |
19225 | if test x"$ac_file" != x-; then | |
19226 | { | |
19227 | $as_echo "/* $configure_input */" \ | |
19228 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
19229 | } >"$ac_tmp/config.h" \ | |
19230 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19231 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
19232 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
19233 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
19234 | else | |
19235 | rm -f "$ac_file" | |
19236 | mv "$ac_tmp/config.h" "$ac_file" \ | |
19237 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19238 | fi | |
19239 | else | |
19240 | $as_echo "/* $configure_input */" \ | |
19241 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
19242 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
19243 | fi | |
19244 | # Compute "$ac_file"'s index in $config_headers. | |
19245 | _am_arg="$ac_file" | |
19246 | _am_stamp_count=1 | |
19247 | for _am_header in $config_headers :; do | |
19248 | case $_am_header in | |
19249 | $_am_arg | $_am_arg:* ) | |
19250 | break ;; | |
19251 | * ) | |
19252 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19253 | esac | |
19254 | done | |
19255 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19256 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19257 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19258 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19259 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19260 | $as_echo X"$_am_arg" | | |
19261 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19262 | s//\1/ | |
19263 | q | |
19264 | } | |
19265 | /^X\(\/\/\)[^/].*/{ | |
19266 | s//\1/ | |
19267 | q | |
19268 | } | |
19269 | /^X\(\/\/\)$/{ | |
19270 | s//\1/ | |
19271 | q | |
19272 | } | |
19273 | /^X\(\/\).*/{ | |
19274 | s//\1/ | |
19275 | q | |
19276 | } | |
19277 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
19278 | ;; | |
df1756f4 | 19279 | |
6bddc3e8 MF |
19280 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19281 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19282 | ;; | |
19283 | esac | |
19284 | ||
c906108c | 19285 | |
6bddc3e8 | 19286 | case $ac_file$ac_mode in |
b5689863 MF |
19287 | "libtool":C) |
19288 | ||
19289 | # See if we are running on zsh, and set the options which allow our | |
19290 | # commands through without removal of \ escapes. | |
19291 | if test -n "${ZSH_VERSION+set}" ; then | |
19292 | setopt NO_GLOB_SUBST | |
19293 | fi | |
19294 | ||
19295 | cfgfile="${ofile}T" | |
19296 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19297 | $RM "$cfgfile" | |
19298 | ||
19299 | cat <<_LT_EOF >> "$cfgfile" | |
19300 | #! $SHELL | |
19301 | ||
19302 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19303 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19304 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19305 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19306 | # | |
19307 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19308 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
19309 | # Written by Gordon Matzigkeit, 1996 | |
19310 | # | |
19311 | # This file is part of GNU Libtool. | |
19312 | # | |
19313 | # GNU Libtool is free software; you can redistribute it and/or | |
19314 | # modify it under the terms of the GNU General Public License as | |
19315 | # published by the Free Software Foundation; either version 2 of | |
19316 | # the License, or (at your option) any later version. | |
19317 | # | |
19318 | # As a special exception to the GNU General Public License, | |
19319 | # if you distribute this file as part of a program or library that | |
19320 | # is built using GNU Libtool, you may include this file under the | |
19321 | # same distribution terms that you use for the rest of that program. | |
19322 | # | |
19323 | # GNU Libtool is distributed in the hope that it will be useful, | |
19324 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19325 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19326 | # GNU General Public License for more details. | |
19327 | # | |
19328 | # You should have received a copy of the GNU General Public License | |
19329 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19330 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19331 | # obtained by writing to the Free Software Foundation, Inc., | |
19332 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19333 | ||
19334 | ||
19335 | # The names of the tagged configurations supported by this script. | |
19336 | available_tags="" | |
19337 | ||
19338 | # ### BEGIN LIBTOOL CONFIG | |
19339 | ||
19340 | # Which release of libtool.m4 was used? | |
19341 | macro_version=$macro_version | |
19342 | macro_revision=$macro_revision | |
19343 | ||
19344 | # Whether or not to build shared libraries. | |
19345 | build_libtool_libs=$enable_shared | |
19346 | ||
19347 | # Whether or not to build static libraries. | |
19348 | build_old_libs=$enable_static | |
19349 | ||
19350 | # What type of objects to build. | |
19351 | pic_mode=$pic_mode | |
19352 | ||
19353 | # Whether or not to optimize for fast installation. | |
19354 | fast_install=$enable_fast_install | |
19355 | ||
19356 | # Shell to use when invoking shell scripts. | |
19357 | SHELL=$lt_SHELL | |
19358 | ||
19359 | # An echo program that protects backslashes. | |
19360 | ECHO=$lt_ECHO | |
19361 | ||
19362 | # The host system. | |
19363 | host_alias=$host_alias | |
19364 | host=$host | |
19365 | host_os=$host_os | |
19366 | ||
19367 | # The build system. | |
19368 | build_alias=$build_alias | |
19369 | build=$build | |
19370 | build_os=$build_os | |
19371 | ||
19372 | # A sed program that does not truncate output. | |
19373 | SED=$lt_SED | |
19374 | ||
19375 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19376 | Xsed="\$SED -e 1s/^X//" | |
19377 | ||
19378 | # A grep program that handles long lines. | |
19379 | GREP=$lt_GREP | |
19380 | ||
19381 | # An ERE matcher. | |
19382 | EGREP=$lt_EGREP | |
19383 | ||
19384 | # A literal string matcher. | |
19385 | FGREP=$lt_FGREP | |
19386 | ||
19387 | # A BSD- or MS-compatible name lister. | |
19388 | NM=$lt_NM | |
19389 | ||
19390 | # Whether we need soft or hard links. | |
19391 | LN_S=$lt_LN_S | |
19392 | ||
19393 | # What is the maximum length of a command? | |
19394 | max_cmd_len=$max_cmd_len | |
19395 | ||
19396 | # Object file suffix (normally "o"). | |
19397 | objext=$ac_objext | |
19398 | ||
19399 | # Executable file suffix (normally ""). | |
19400 | exeext=$exeext | |
19401 | ||
19402 | # whether the shell understands "unset". | |
19403 | lt_unset=$lt_unset | |
19404 | ||
19405 | # turn spaces into newlines. | |
19406 | SP2NL=$lt_lt_SP2NL | |
19407 | ||
19408 | # turn newlines into spaces. | |
19409 | NL2SP=$lt_lt_NL2SP | |
19410 | ||
19411 | # An object symbol dumper. | |
19412 | OBJDUMP=$lt_OBJDUMP | |
19413 | ||
19414 | # Method to check whether dependent libraries are shared objects. | |
19415 | deplibs_check_method=$lt_deplibs_check_method | |
19416 | ||
19417 | # Command to use when deplibs_check_method == "file_magic". | |
19418 | file_magic_cmd=$lt_file_magic_cmd | |
19419 | ||
19420 | # The archiver. | |
19421 | AR=$lt_AR | |
19422 | AR_FLAGS=$lt_AR_FLAGS | |
19423 | ||
19424 | # A symbol stripping program. | |
19425 | STRIP=$lt_STRIP | |
19426 | ||
19427 | # Commands used to install an old-style archive. | |
19428 | RANLIB=$lt_RANLIB | |
19429 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19430 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19431 | ||
19432 | # Whether to use a lock for old archive extraction. | |
19433 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19434 | ||
19435 | # A C compiler. | |
19436 | LTCC=$lt_CC | |
19437 | ||
19438 | # LTCC compiler flags. | |
19439 | LTCFLAGS=$lt_CFLAGS | |
19440 | ||
19441 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19442 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19443 | ||
19444 | # Transform the output of nm in a proper C declaration. | |
19445 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19446 | ||
19447 | # Transform the output of nm in a C name address pair. | |
19448 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19449 | ||
19450 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19451 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19452 | ||
19453 | # The name of the directory that contains temporary libtool files. | |
19454 | objdir=$objdir | |
19455 | ||
19456 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19457 | MAGIC_CMD=$MAGIC_CMD | |
19458 | ||
19459 | # Must we lock files when doing compilation? | |
19460 | need_locks=$lt_need_locks | |
19461 | ||
19462 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19463 | DSYMUTIL=$lt_DSYMUTIL | |
19464 | ||
19465 | # Tool to change global to local symbols on Mac OS X. | |
19466 | NMEDIT=$lt_NMEDIT | |
19467 | ||
19468 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19469 | LIPO=$lt_LIPO | |
19470 | ||
19471 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19472 | OTOOL=$lt_OTOOL | |
19473 | ||
19474 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19475 | OTOOL64=$lt_OTOOL64 | |
19476 | ||
19477 | # Old archive suffix (normally "a"). | |
19478 | libext=$libext | |
19479 | ||
19480 | # Shared library suffix (normally ".so"). | |
19481 | shrext_cmds=$lt_shrext_cmds | |
19482 | ||
19483 | # The commands to extract the exported symbol list from a shared archive. | |
19484 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19485 | ||
19486 | # Variables whose values should be saved in libtool wrapper scripts and | |
19487 | # restored at link time. | |
19488 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19489 | ||
19490 | # Do we need the "lib" prefix for modules? | |
19491 | need_lib_prefix=$need_lib_prefix | |
19492 | ||
19493 | # Do we need a version for libraries? | |
19494 | need_version=$need_version | |
19495 | ||
19496 | # Library versioning type. | |
19497 | version_type=$version_type | |
19498 | ||
19499 | # Shared library runtime path variable. | |
19500 | runpath_var=$runpath_var | |
19501 | ||
19502 | # Shared library path variable. | |
19503 | shlibpath_var=$shlibpath_var | |
19504 | ||
19505 | # Is shlibpath searched before the hard-coded library search path? | |
19506 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19507 | ||
19508 | # Format of library name prefix. | |
19509 | libname_spec=$lt_libname_spec | |
19510 | ||
19511 | # List of archive names. First name is the real one, the rest are links. | |
19512 | # The last name is the one that the linker finds with -lNAME | |
19513 | library_names_spec=$lt_library_names_spec | |
19514 | ||
19515 | # The coded name of the library, if different from the real name. | |
19516 | soname_spec=$lt_soname_spec | |
19517 | ||
19518 | # Permission mode override for installation of shared libraries. | |
19519 | install_override_mode=$lt_install_override_mode | |
19520 | ||
19521 | # Command to use after installation of a shared archive. | |
19522 | postinstall_cmds=$lt_postinstall_cmds | |
19523 | ||
19524 | # Command to use after uninstallation of a shared archive. | |
19525 | postuninstall_cmds=$lt_postuninstall_cmds | |
19526 | ||
19527 | # Commands used to finish a libtool library installation in a directory. | |
19528 | finish_cmds=$lt_finish_cmds | |
19529 | ||
19530 | # As "finish_cmds", except a single script fragment to be evaled but | |
19531 | # not shown. | |
19532 | finish_eval=$lt_finish_eval | |
19533 | ||
19534 | # Whether we should hardcode library paths into libraries. | |
19535 | hardcode_into_libs=$hardcode_into_libs | |
19536 | ||
19537 | # Compile-time system search path for libraries. | |
19538 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19539 | ||
19540 | # Run-time system search path for libraries. | |
19541 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19542 | ||
19543 | # Whether dlopen is supported. | |
19544 | dlopen_support=$enable_dlopen | |
19545 | ||
19546 | # Whether dlopen of programs is supported. | |
19547 | dlopen_self=$enable_dlopen_self | |
19548 | ||
19549 | # Whether dlopen of statically linked programs is supported. | |
19550 | dlopen_self_static=$enable_dlopen_self_static | |
19551 | ||
19552 | # Commands to strip libraries. | |
19553 | old_striplib=$lt_old_striplib | |
19554 | striplib=$lt_striplib | |
19555 | ||
19556 | ||
19557 | # The linker used to build libraries. | |
19558 | LD=$lt_LD | |
19559 | ||
19560 | # How to create reloadable object files. | |
19561 | reload_flag=$lt_reload_flag | |
19562 | reload_cmds=$lt_reload_cmds | |
19563 | ||
19564 | # Commands used to build an old-style archive. | |
19565 | old_archive_cmds=$lt_old_archive_cmds | |
19566 | ||
19567 | # A language specific compiler. | |
19568 | CC=$lt_compiler | |
19569 | ||
19570 | # Is the compiler the GNU compiler? | |
19571 | with_gcc=$GCC | |
19572 | ||
19573 | # Compiler flag to turn off builtin functions. | |
19574 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19575 | ||
19576 | # How to pass a linker flag through the compiler. | |
19577 | wl=$lt_lt_prog_compiler_wl | |
19578 | ||
19579 | # Additional compiler flags for building library objects. | |
19580 | pic_flag=$lt_lt_prog_compiler_pic | |
19581 | ||
19582 | # Compiler flag to prevent dynamic linking. | |
19583 | link_static_flag=$lt_lt_prog_compiler_static | |
19584 | ||
19585 | # Does compiler simultaneously support -c and -o options? | |
19586 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19587 | ||
19588 | # Whether or not to add -lc for building shared libraries. | |
19589 | build_libtool_need_lc=$archive_cmds_need_lc | |
19590 | ||
19591 | # Whether or not to disallow shared libs when runtime libs are static. | |
19592 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19593 | ||
19594 | # Compiler flag to allow reflexive dlopens. | |
19595 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19596 | ||
19597 | # Compiler flag to generate shared objects directly from archives. | |
19598 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19599 | ||
19600 | # Whether the compiler copes with passing no objects directly. | |
19601 | compiler_needs_object=$lt_compiler_needs_object | |
19602 | ||
19603 | # Create an old-style archive from a shared archive. | |
19604 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19605 | ||
19606 | # Create a temporary old-style archive to link instead of a shared archive. | |
19607 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19608 | ||
19609 | # Commands used to build a shared archive. | |
19610 | archive_cmds=$lt_archive_cmds | |
19611 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19612 | ||
19613 | # Commands used to build a loadable module if different from building | |
19614 | # a shared archive. | |
19615 | module_cmds=$lt_module_cmds | |
19616 | module_expsym_cmds=$lt_module_expsym_cmds | |
19617 | ||
19618 | # Whether we are building with GNU ld or not. | |
19619 | with_gnu_ld=$lt_with_gnu_ld | |
19620 | ||
19621 | # Flag that allows shared libraries with undefined symbols to be built. | |
19622 | allow_undefined_flag=$lt_allow_undefined_flag | |
19623 | ||
19624 | # Flag that enforces no undefined symbols. | |
19625 | no_undefined_flag=$lt_no_undefined_flag | |
19626 | ||
19627 | # Flag to hardcode \$libdir into a binary during linking. | |
19628 | # This must work even if \$libdir does not exist | |
19629 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19630 | ||
19631 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19632 | # during linking. This must work even if \$libdir does not exist. | |
19633 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19634 | ||
19635 | # Whether we need a single "-rpath" flag with a separated argument. | |
19636 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19637 | ||
19638 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19639 | # DIR into the resulting binary. | |
19640 | hardcode_direct=$hardcode_direct | |
19641 | ||
19642 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19643 | # DIR into the resulting binary and the resulting library dependency is | |
19644 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19645 | # library is relocated. | |
19646 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19647 | ||
19648 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19649 | # into the resulting binary. | |
19650 | hardcode_minus_L=$hardcode_minus_L | |
19651 | ||
19652 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19653 | # into the resulting binary. | |
19654 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19655 | ||
19656 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19657 | # into the library and all subsequent libraries and executables linked | |
19658 | # against it. | |
19659 | hardcode_automatic=$hardcode_automatic | |
19660 | ||
19661 | # Set to yes if linker adds runtime paths of dependent libraries | |
19662 | # to runtime path list. | |
19663 | inherit_rpath=$inherit_rpath | |
19664 | ||
19665 | # Whether libtool must link a program against all its dependency libraries. | |
19666 | link_all_deplibs=$link_all_deplibs | |
19667 | ||
19668 | # Fix the shell variable \$srcfile for the compiler. | |
19669 | fix_srcfile_path=$lt_fix_srcfile_path | |
19670 | ||
19671 | # Set to "yes" if exported symbols are required. | |
19672 | always_export_symbols=$always_export_symbols | |
19673 | ||
19674 | # The commands to list exported symbols. | |
19675 | export_symbols_cmds=$lt_export_symbols_cmds | |
19676 | ||
19677 | # Symbols that should not be listed in the preloaded symbols. | |
19678 | exclude_expsyms=$lt_exclude_expsyms | |
19679 | ||
19680 | # Symbols that must always be exported. | |
19681 | include_expsyms=$lt_include_expsyms | |
19682 | ||
19683 | # Commands necessary for linking programs (against libraries) with templates. | |
19684 | prelink_cmds=$lt_prelink_cmds | |
19685 | ||
19686 | # Specify filename containing input files. | |
19687 | file_list_spec=$lt_file_list_spec | |
19688 | ||
19689 | # How to hardcode a shared library path into an executable. | |
19690 | hardcode_action=$hardcode_action | |
19691 | ||
19692 | # ### END LIBTOOL CONFIG | |
19693 | ||
19694 | _LT_EOF | |
19695 | ||
19696 | case $host_os in | |
19697 | aix3*) | |
19698 | cat <<\_LT_EOF >> "$cfgfile" | |
19699 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19700 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19701 | # vanish in a puff of smoke. | |
19702 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19703 | COLLECT_NAMES= | |
19704 | export COLLECT_NAMES | |
19705 | fi | |
19706 | _LT_EOF | |
19707 | ;; | |
19708 | esac | |
19709 | ||
19710 | ||
19711 | ltmain="$ac_aux_dir/ltmain.sh" | |
19712 | ||
19713 | ||
19714 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19715 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19716 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19717 | # is reportedly fixed, but why not run on old versions too? | |
19718 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19719 | || (rm -f "$cfgfile"; exit 1) | |
19720 | ||
19721 | case $xsi_shell in | |
19722 | yes) | |
19723 | cat << \_LT_EOF >> "$cfgfile" | |
19724 | ||
19725 | # func_dirname file append nondir_replacement | |
19726 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19727 | # otherwise set result to NONDIR_REPLACEMENT. | |
19728 | func_dirname () | |
19729 | { | |
19730 | case ${1} in | |
19731 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19732 | * ) func_dirname_result="${3}" ;; | |
19733 | esac | |
19734 | } | |
19735 | ||
19736 | # func_basename file | |
19737 | func_basename () | |
19738 | { | |
19739 | func_basename_result="${1##*/}" | |
19740 | } | |
19741 | ||
19742 | # func_dirname_and_basename file append nondir_replacement | |
19743 | # perform func_basename and func_dirname in a single function | |
19744 | # call: | |
19745 | # dirname: Compute the dirname of FILE. If nonempty, | |
19746 | # add APPEND to the result, otherwise set result | |
19747 | # to NONDIR_REPLACEMENT. | |
19748 | # value returned in "$func_dirname_result" | |
19749 | # basename: Compute filename of FILE. | |
19750 | # value retuned in "$func_basename_result" | |
19751 | # Implementation must be kept synchronized with func_dirname | |
19752 | # and func_basename. For efficiency, we do not delegate to | |
19753 | # those functions but instead duplicate the functionality here. | |
19754 | func_dirname_and_basename () | |
19755 | { | |
19756 | case ${1} in | |
19757 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19758 | * ) func_dirname_result="${3}" ;; | |
19759 | esac | |
19760 | func_basename_result="${1##*/}" | |
19761 | } | |
19762 | ||
19763 | # func_stripname prefix suffix name | |
19764 | # strip PREFIX and SUFFIX off of NAME. | |
19765 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19766 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19767 | # dot (in which case that matches only a dot). | |
19768 | func_stripname () | |
19769 | { | |
19770 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19771 | # positional parameters, so assign one to ordinary parameter first. | |
19772 | func_stripname_result=${3} | |
19773 | func_stripname_result=${func_stripname_result#"${1}"} | |
19774 | func_stripname_result=${func_stripname_result%"${2}"} | |
19775 | } | |
19776 | ||
19777 | # func_opt_split | |
19778 | func_opt_split () | |
19779 | { | |
19780 | func_opt_split_opt=${1%%=*} | |
19781 | func_opt_split_arg=${1#*=} | |
19782 | } | |
19783 | ||
19784 | # func_lo2o object | |
19785 | func_lo2o () | |
19786 | { | |
19787 | case ${1} in | |
19788 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19789 | *) func_lo2o_result=${1} ;; | |
19790 | esac | |
19791 | } | |
19792 | ||
19793 | # func_xform libobj-or-source | |
19794 | func_xform () | |
19795 | { | |
19796 | func_xform_result=${1%.*}.lo | |
19797 | } | |
19798 | ||
19799 | # func_arith arithmetic-term... | |
19800 | func_arith () | |
19801 | { | |
19802 | func_arith_result=$(( $* )) | |
19803 | } | |
19804 | ||
19805 | # func_len string | |
19806 | # STRING may not start with a hyphen. | |
19807 | func_len () | |
19808 | { | |
19809 | func_len_result=${#1} | |
19810 | } | |
19811 | ||
19812 | _LT_EOF | |
19813 | ;; | |
19814 | *) # Bourne compatible functions. | |
19815 | cat << \_LT_EOF >> "$cfgfile" | |
19816 | ||
19817 | # func_dirname file append nondir_replacement | |
19818 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19819 | # otherwise set result to NONDIR_REPLACEMENT. | |
19820 | func_dirname () | |
19821 | { | |
19822 | # Extract subdirectory from the argument. | |
19823 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
19824 | if test "X$func_dirname_result" = "X${1}"; then | |
19825 | func_dirname_result="${3}" | |
19826 | else | |
19827 | func_dirname_result="$func_dirname_result${2}" | |
19828 | fi | |
19829 | } | |
19830 | ||
19831 | # func_basename file | |
19832 | func_basename () | |
19833 | { | |
19834 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
19835 | } | |
19836 | ||
19837 | ||
19838 | # func_stripname prefix suffix name | |
19839 | # strip PREFIX and SUFFIX off of NAME. | |
19840 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19841 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19842 | # dot (in which case that matches only a dot). | |
19843 | # func_strip_suffix prefix name | |
19844 | func_stripname () | |
19845 | { | |
19846 | case ${2} in | |
19847 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
19848 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
19849 | esac | |
19850 | } | |
19851 | ||
19852 | # sed scripts: | |
19853 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19854 | my_sed_long_arg='1s/^-[^=]*=//' | |
19855 | ||
19856 | # func_opt_split | |
19857 | func_opt_split () | |
19858 | { | |
19859 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
19860 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
19861 | } | |
19862 | ||
19863 | # func_lo2o object | |
19864 | func_lo2o () | |
19865 | { | |
19866 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
19867 | } | |
19868 | ||
19869 | # func_xform libobj-or-source | |
19870 | func_xform () | |
19871 | { | |
19872 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
19873 | } | |
19874 | ||
19875 | # func_arith arithmetic-term... | |
19876 | func_arith () | |
19877 | { | |
19878 | func_arith_result=`expr "$@"` | |
19879 | } | |
19880 | ||
19881 | # func_len string | |
19882 | # STRING may not start with a hyphen. | |
19883 | func_len () | |
19884 | { | |
19885 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19886 | } | |
19887 | ||
19888 | _LT_EOF | |
19889 | esac | |
19890 | ||
19891 | case $lt_shell_append in | |
19892 | yes) | |
19893 | cat << \_LT_EOF >> "$cfgfile" | |
19894 | ||
19895 | # func_append var value | |
19896 | # Append VALUE to the end of shell variable VAR. | |
19897 | func_append () | |
19898 | { | |
19899 | eval "$1+=\$2" | |
19900 | } | |
19901 | _LT_EOF | |
19902 | ;; | |
19903 | *) | |
19904 | cat << \_LT_EOF >> "$cfgfile" | |
19905 | ||
19906 | # func_append var value | |
19907 | # Append VALUE to the end of shell variable VAR. | |
19908 | func_append () | |
19909 | { | |
19910 | eval "$1=\$$1\$2" | |
19911 | } | |
19912 | ||
19913 | _LT_EOF | |
19914 | ;; | |
19915 | esac | |
19916 | ||
19917 | ||
19918 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19919 | || (rm -f "$cfgfile"; exit 1) | |
19920 | ||
19921 | mv -f "$cfgfile" "$ofile" || | |
19922 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19923 | chmod +x "$ofile" | |
19924 | ||
19925 | ;; | |
6bddc3e8 MF |
19926 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
19927 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19928 | # are listed without --file. Let's play safe and only enable the eval | |
19929 | # if we detect the quoting. | |
19930 | case $CONFIG_FILES in | |
19931 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19932 | *) set x $CONFIG_FILES ;; | |
81ecdfbb | 19933 | esac |
6bddc3e8 MF |
19934 | shift |
19935 | for mf | |
19936 | do | |
19937 | # Strip MF so we end up with the name of the file. | |
19938 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19939 | # Check whether this is an Automake generated Makefile or not. | |
19940 | # We used to match only the files named 'Makefile.in', but | |
19941 | # some people rename them; so instead we look at the file content. | |
19942 | # Grep'ing the first line is not enough: some people post-process | |
19943 | # each Makefile.in and add a new line on top of each file to say so. | |
19944 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19945 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19946 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19947 | dirpart=`$as_dirname -- "$mf" || | |
19948 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19949 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19950 | X"$mf" : 'X\(//\)$' \| \ | |
19951 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19952 | $as_echo X"$mf" | | |
19953 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19954 | s//\1/ | |
19955 | q | |
19956 | } | |
19957 | /^X\(\/\/\)[^/].*/{ | |
19958 | s//\1/ | |
19959 | q | |
19960 | } | |
19961 | /^X\(\/\/\)$/{ | |
19962 | s//\1/ | |
19963 | q | |
19964 | } | |
19965 | /^X\(\/\).*/{ | |
19966 | s//\1/ | |
19967 | q | |
19968 | } | |
19969 | s/.*/./; q'` | |
19970 | else | |
19971 | continue | |
19972 | fi | |
19973 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19974 | # from the Makefile without running 'make'. | |
19975 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19976 | test -z "$DEPDIR" && continue | |
19977 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19978 | test -z "$am__include" && continue | |
19979 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19980 | # Find all dependency output files, they are included files with | |
19981 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19982 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19983 | # expansion. | |
19984 | for file in `sed -n " | |
19985 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19986 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19987 | # Make sure the directory exists. | |
19988 | test -f "$dirpart/$file" && continue | |
19989 | fdir=`$as_dirname -- "$file" || | |
19990 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19991 | X"$file" : 'X\(//\)[^/]' \| \ | |
19992 | X"$file" : 'X\(//\)$' \| \ | |
19993 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19994 | $as_echo X"$file" | | |
19995 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19996 | s//\1/ | |
19997 | q | |
19998 | } | |
19999 | /^X\(\/\/\)[^/].*/{ | |
20000 | s//\1/ | |
20001 | q | |
20002 | } | |
20003 | /^X\(\/\/\)$/{ | |
20004 | s//\1/ | |
20005 | q | |
20006 | } | |
20007 | /^X\(\/\).*/{ | |
20008 | s//\1/ | |
20009 | q | |
20010 | } | |
20011 | s/.*/./; q'` | |
20012 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
20013 | # echo "creating $dirpart/$file" | |
20014 | echo '# dummy' > "$dirpart/$file" | |
20015 | done | |
20016 | done | |
20017 | } | |
20018 | ;; | |
81ecdfbb | 20019 | |
6bddc3e8 | 20020 | esac |
81ecdfbb RW |
20021 | done # for ac_tag |
20022 | ||
20023 | ||
20024 | as_fn_exit 0 | |
b7026657 | 20025 | _ACEOF |
b7026657 AC |
20026 | ac_clean_files=$ac_clean_files_save |
20027 | ||
81ecdfbb | 20028 | test $ac_write_fail = 0 || |
d0ac1c44 | 20029 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 20030 | |
b7026657 AC |
20031 | |
20032 | # configure is writing to config.log, and then calls config.status. | |
20033 | # config.status does its own redirection, appending to config.log. | |
20034 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20035 | # by configure, so config.status won't be able to write to it; its | |
20036 | # output is simply discarded. So we exec the FD to /dev/null, | |
20037 | # effectively closing config.log, so it can be properly (re)opened and | |
20038 | # appended to by config.status. When coming back to configure, we | |
20039 | # need to make the FD available again. | |
20040 | if test "$no_create" != yes; then | |
20041 | ac_cs_success=: | |
20042 | ac_config_status_args= | |
20043 | test "$silent" = yes && | |
20044 | ac_config_status_args="$ac_config_status_args --quiet" | |
20045 | exec 5>/dev/null | |
20046 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20047 | exec 5>>config.log | |
20048 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20049 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 20050 | $ac_cs_success || as_fn_exit 1 |
b7026657 | 20051 | fi |
81ecdfbb RW |
20052 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20054 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20055 | fi | |
c906108c | 20056 |