]>
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= | |
81ecdfbb | 637 | enable_option_checking=no |
6bddc3e8 MF |
638 | ac_subst_vars='am__EXEEXT_FALSE |
639 | am__EXEEXT_TRUE | |
640 | LTLIBOBJS | |
e173c80f | 641 | SIM_RX_CYCLE_ACCURATE_FLAGS |
408a44aa | 642 | SIM_FRV_TRAPDUMP_FLAGS |
36bb57e4 MF |
643 | sim_float |
644 | sim_bitsize | |
d73f39ee | 645 | SIM_INLINE |
456ef1c1 MF |
646 | sim_hw_sockser |
647 | sim_hw_cflags | |
648 | SIM_ENABLE_HW_FALSE | |
649 | SIM_ENABLE_HW_TRUE | |
1bf5c342 MF |
650 | cgen |
651 | cgendir | |
652 | CGEN_MAINT | |
fb2c495f MF |
653 | ENABLE_SIM_FALSE |
654 | ENABLE_SIM_TRUE | |
b6b1c790 MF |
655 | SIM_ENABLE_IGEN_FALSE |
656 | SIM_ENABLE_IGEN_TRUE | |
8996c210 MF |
657 | CC_FOR_TARGET_EXAMPLE_SYNACOR |
658 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
659 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
65dcce8f MF |
660 | SIM_ENABLE_ARCH_v850_FALSE |
661 | SIM_ENABLE_ARCH_v850_TRUE | |
8996c210 MF |
662 | CC_FOR_TARGET_V850 |
663 | LD_FOR_TARGET_V850 | |
664 | AS_FOR_TARGET_V850 | |
65dcce8f MF |
665 | SIM_ENABLE_ARCH_erc32_FALSE |
666 | SIM_ENABLE_ARCH_erc32_TRUE | |
8996c210 MF |
667 | CC_FOR_TARGET_ERC32 |
668 | LD_FOR_TARGET_ERC32 | |
669 | AS_FOR_TARGET_ERC32 | |
65dcce8f MF |
670 | SIM_ENABLE_ARCH_sh_FALSE |
671 | SIM_ENABLE_ARCH_sh_TRUE | |
8996c210 MF |
672 | CC_FOR_TARGET_SH |
673 | LD_FOR_TARGET_SH | |
674 | AS_FOR_TARGET_SH | |
65dcce8f MF |
675 | SIM_ENABLE_ARCH_rx_FALSE |
676 | SIM_ENABLE_ARCH_rx_TRUE | |
8996c210 MF |
677 | CC_FOR_TARGET_RX |
678 | LD_FOR_TARGET_RX | |
679 | AS_FOR_TARGET_RX | |
65dcce8f MF |
680 | SIM_ENABLE_ARCH_rl78_FALSE |
681 | SIM_ENABLE_ARCH_rl78_TRUE | |
8996c210 MF |
682 | CC_FOR_TARGET_RL78 |
683 | LD_FOR_TARGET_RL78 | |
684 | AS_FOR_TARGET_RL78 | |
65dcce8f MF |
685 | SIM_ENABLE_ARCH_riscv_FALSE |
686 | SIM_ENABLE_ARCH_riscv_TRUE | |
8996c210 MF |
687 | CC_FOR_TARGET_RISCV |
688 | LD_FOR_TARGET_RISCV | |
689 | AS_FOR_TARGET_RISCV | |
65dcce8f MF |
690 | SIM_ENABLE_ARCH_pru_FALSE |
691 | SIM_ENABLE_ARCH_pru_TRUE | |
8996c210 MF |
692 | CC_FOR_TARGET_PRU |
693 | LD_FOR_TARGET_PRU | |
694 | AS_FOR_TARGET_PRU | |
65dcce8f MF |
695 | SIM_ENABLE_ARCH_ppc_FALSE |
696 | SIM_ENABLE_ARCH_ppc_TRUE | |
8996c210 MF |
697 | CC_FOR_TARGET_PPC |
698 | LD_FOR_TARGET_PPC | |
699 | AS_FOR_TARGET_PPC | |
65dcce8f MF |
700 | SIM_ENABLE_ARCH_or1k_FALSE |
701 | SIM_ENABLE_ARCH_or1k_TRUE | |
8996c210 MF |
702 | CC_FOR_TARGET_OR1K |
703 | LD_FOR_TARGET_OR1K | |
704 | AS_FOR_TARGET_OR1K | |
65dcce8f MF |
705 | SIM_ENABLE_ARCH_msp430_FALSE |
706 | SIM_ENABLE_ARCH_msp430_TRUE | |
8996c210 MF |
707 | CC_FOR_TARGET_MSP430 |
708 | LD_FOR_TARGET_MSP430 | |
709 | AS_FOR_TARGET_MSP430 | |
65dcce8f MF |
710 | SIM_ENABLE_ARCH_moxie_FALSE |
711 | SIM_ENABLE_ARCH_moxie_TRUE | |
8996c210 MF |
712 | CC_FOR_TARGET_MOXIE |
713 | LD_FOR_TARGET_MOXIE | |
714 | AS_FOR_TARGET_MOXIE | |
65dcce8f MF |
715 | SIM_ENABLE_ARCH_mn10300_FALSE |
716 | SIM_ENABLE_ARCH_mn10300_TRUE | |
8996c210 MF |
717 | CC_FOR_TARGET_MN10300 |
718 | LD_FOR_TARGET_MN10300 | |
719 | AS_FOR_TARGET_MN10300 | |
65dcce8f MF |
720 | SIM_ENABLE_ARCH_mips_FALSE |
721 | SIM_ENABLE_ARCH_mips_TRUE | |
8996c210 MF |
722 | CC_FOR_TARGET_MIPS |
723 | LD_FOR_TARGET_MIPS | |
724 | AS_FOR_TARGET_MIPS | |
65dcce8f MF |
725 | SIM_ENABLE_ARCH_microblaze_FALSE |
726 | SIM_ENABLE_ARCH_microblaze_TRUE | |
8996c210 MF |
727 | CC_FOR_TARGET_MICROBLAZE |
728 | LD_FOR_TARGET_MICROBLAZE | |
729 | AS_FOR_TARGET_MICROBLAZE | |
65dcce8f MF |
730 | SIM_ENABLE_ARCH_mcore_FALSE |
731 | SIM_ENABLE_ARCH_mcore_TRUE | |
8996c210 MF |
732 | CC_FOR_TARGET_MCORE |
733 | LD_FOR_TARGET_MCORE | |
734 | AS_FOR_TARGET_MCORE | |
65dcce8f MF |
735 | SIM_ENABLE_ARCH_m68hc11_FALSE |
736 | SIM_ENABLE_ARCH_m68hc11_TRUE | |
8996c210 MF |
737 | CC_FOR_TARGET_M68HC11 |
738 | LD_FOR_TARGET_M68HC11 | |
739 | AS_FOR_TARGET_M68HC11 | |
65dcce8f MF |
740 | SIM_ENABLE_ARCH_m32r_FALSE |
741 | SIM_ENABLE_ARCH_m32r_TRUE | |
8996c210 MF |
742 | CC_FOR_TARGET_M32R |
743 | LD_FOR_TARGET_M32R | |
744 | AS_FOR_TARGET_M32R | |
65dcce8f MF |
745 | SIM_ENABLE_ARCH_m32c_FALSE |
746 | SIM_ENABLE_ARCH_m32c_TRUE | |
8996c210 MF |
747 | CC_FOR_TARGET_M32C |
748 | LD_FOR_TARGET_M32C | |
749 | AS_FOR_TARGET_M32C | |
65dcce8f MF |
750 | SIM_ENABLE_ARCH_lm32_FALSE |
751 | SIM_ENABLE_ARCH_lm32_TRUE | |
8996c210 MF |
752 | CC_FOR_TARGET_LM32 |
753 | LD_FOR_TARGET_LM32 | |
754 | AS_FOR_TARGET_LM32 | |
65dcce8f MF |
755 | SIM_ENABLE_ARCH_iq2000_FALSE |
756 | SIM_ENABLE_ARCH_iq2000_TRUE | |
8996c210 MF |
757 | CC_FOR_TARGET_IQ2000 |
758 | LD_FOR_TARGET_IQ2000 | |
759 | AS_FOR_TARGET_IQ2000 | |
65dcce8f MF |
760 | SIM_ENABLE_ARCH_h8300_FALSE |
761 | SIM_ENABLE_ARCH_h8300_TRUE | |
8996c210 MF |
762 | CC_FOR_TARGET_H8300 |
763 | LD_FOR_TARGET_H8300 | |
764 | AS_FOR_TARGET_H8300 | |
65dcce8f MF |
765 | SIM_ENABLE_ARCH_ft32_FALSE |
766 | SIM_ENABLE_ARCH_ft32_TRUE | |
8996c210 MF |
767 | CC_FOR_TARGET_FT32 |
768 | LD_FOR_TARGET_FT32 | |
769 | AS_FOR_TARGET_FT32 | |
65dcce8f MF |
770 | SIM_ENABLE_ARCH_frv_FALSE |
771 | SIM_ENABLE_ARCH_frv_TRUE | |
8996c210 MF |
772 | CC_FOR_TARGET_FRV |
773 | LD_FOR_TARGET_FRV | |
774 | AS_FOR_TARGET_FRV | |
65dcce8f MF |
775 | SIM_ENABLE_ARCH_d10v_FALSE |
776 | SIM_ENABLE_ARCH_d10v_TRUE | |
8996c210 MF |
777 | CC_FOR_TARGET_D10V |
778 | LD_FOR_TARGET_D10V | |
779 | AS_FOR_TARGET_D10V | |
65dcce8f MF |
780 | SIM_ENABLE_ARCH_cris_FALSE |
781 | SIM_ENABLE_ARCH_cris_TRUE | |
8996c210 MF |
782 | CC_FOR_TARGET_CRIS |
783 | LD_FOR_TARGET_CRIS | |
784 | AS_FOR_TARGET_CRIS | |
65dcce8f MF |
785 | SIM_ENABLE_ARCH_cr16_FALSE |
786 | SIM_ENABLE_ARCH_cr16_TRUE | |
8996c210 MF |
787 | CC_FOR_TARGET_CR16 |
788 | LD_FOR_TARGET_CR16 | |
789 | AS_FOR_TARGET_CR16 | |
65dcce8f MF |
790 | SIM_ENABLE_ARCH_bpf_FALSE |
791 | SIM_ENABLE_ARCH_bpf_TRUE | |
8996c210 MF |
792 | CC_FOR_TARGET_BPF |
793 | LD_FOR_TARGET_BPF | |
794 | AS_FOR_TARGET_BPF | |
81ecdfbb | 795 | subdirs |
65dcce8f MF |
796 | SIM_ENABLE_ARCH_bfin_FALSE |
797 | SIM_ENABLE_ARCH_bfin_TRUE | |
8996c210 MF |
798 | CC_FOR_TARGET_BFIN |
799 | LD_FOR_TARGET_BFIN | |
800 | AS_FOR_TARGET_BFIN | |
65dcce8f MF |
801 | SIM_ENABLE_ARCH_avr_FALSE |
802 | SIM_ENABLE_ARCH_avr_TRUE | |
8996c210 MF |
803 | CC_FOR_TARGET_AVR |
804 | LD_FOR_TARGET_AVR | |
805 | AS_FOR_TARGET_AVR | |
65dcce8f MF |
806 | SIM_ENABLE_ARCH_arm_FALSE |
807 | SIM_ENABLE_ARCH_arm_TRUE | |
8996c210 MF |
808 | CC_FOR_TARGET_ARM |
809 | LD_FOR_TARGET_ARM | |
810 | AS_FOR_TARGET_ARM | |
65dcce8f MF |
811 | SIM_ENABLE_ARCH_aarch64_FALSE |
812 | SIM_ENABLE_ARCH_aarch64_TRUE | |
8996c210 MF |
813 | CC_FOR_TARGET_AARCH64 |
814 | LD_FOR_TARGET_AARCH64 | |
815 | AS_FOR_TARGET_AARCH64 | |
dc4e1fde HPN |
816 | LD_FOR_TARGET |
817 | AS_FOR_TARGET | |
818 | CC_FOR_TARGET | |
36bb57e4 MF |
819 | SIM_COMMON_BUILD_FALSE |
820 | SIM_COMMON_BUILD_TRUE | |
821 | SIM_SUBDIRS | |
a0e674c1 | 822 | SIM_PRIMARY_TARGET |
c2783492 MF |
823 | AM_BACKSLASH |
824 | AM_DEFAULT_VERBOSITY | |
825 | AM_DEFAULT_V | |
826 | AM_V | |
6bddc3e8 MF |
827 | am__fastdepCC_FALSE |
828 | am__fastdepCC_TRUE | |
829 | CCDEPMODE | |
830 | am__nodep | |
831 | AMDEPBACKSLASH | |
832 | AMDEP_FALSE | |
833 | AMDEP_TRUE | |
834 | am__quote | |
835 | am__include | |
836 | DEPDIR | |
6bddc3e8 MF |
837 | am__untar |
838 | am__tar | |
839 | AMTAR | |
840 | am__leading_dot | |
841 | SET_MAKE | |
6bddc3e8 MF |
842 | mkdir_p |
843 | MKDIR_P | |
844 | INSTALL_STRIP_PROGRAM | |
6bddc3e8 MF |
845 | install_sh |
846 | MAKEINFO | |
847 | AUTOHEADER | |
848 | AUTOMAKE | |
849 | AUTOCONF | |
850 | ACLOCAL | |
851 | VERSION | |
852 | PACKAGE | |
853 | CYGPATH_W | |
854 | am__isrc | |
8c379db2 TT |
855 | MAINT |
856 | MAINTAINER_MODE_FALSE | |
857 | MAINTAINER_MODE_TRUE | |
5d0b3088 MF |
858 | READLINE_CFLAGS |
859 | READLINE_LIB | |
860 | TERMCAP_LIB | |
d57b6533 MF |
861 | SDL_LIBS |
862 | SDL_CFLAGS | |
b5689863 MF |
863 | lt_cv_dlopen_libs |
864 | OTOOL64 | |
865 | OTOOL | |
866 | LIPO | |
867 | NMEDIT | |
868 | DSYMUTIL | |
869 | AWK | |
870 | STRIP | |
871 | OBJDUMP | |
872 | LN_S | |
873 | NM | |
874 | ac_ct_DUMPBIN | |
875 | DUMPBIN | |
876 | LD | |
877 | FGREP | |
878 | SED | |
879 | LIBTOOL | |
880 | PLUGINS_FALSE | |
881 | PLUGINS_TRUE | |
882 | zlibinc | |
883 | zlibdir | |
ce3ec98a MF |
884 | CATOBJEXT |
885 | GENCAT | |
886 | INSTOBJEXT | |
887 | DATADIRNAME | |
888 | CATALOGS | |
889 | POSUB | |
890 | GMSGFMT | |
891 | XGETTEXT | |
892 | INCINTL | |
893 | LIBINTL_DEP | |
894 | LIBINTL | |
895 | USE_NLS | |
a48ff3ef | 896 | LIBOBJS |
c2783492 | 897 | C_DIALECT |
d57b6533 MF |
898 | PKG_CONFIG_LIBDIR |
899 | PKG_CONFIG_PATH | |
900 | PKG_CONFIG | |
c2783492 MF |
901 | RANLIB |
902 | AR | |
903 | LDFLAGS_FOR_BUILD | |
904 | CFLAGS_FOR_BUILD | |
aa0fca16 | 905 | RANLIB_FOR_BUILD |
c2783492 | 906 | CC_FOR_BUILD |
aa0fca16 | 907 | AR_FOR_BUILD |
a979f2a0 | 908 | DTC |
c2783492 MF |
909 | INSTALL_DATA |
910 | INSTALL_SCRIPT | |
911 | INSTALL_PROGRAM | |
912 | EGREP | |
913 | GREP | |
914 | CPP | |
915 | OBJEXT | |
916 | EXEEXT | |
917 | ac_ct_CC | |
918 | CPPFLAGS | |
919 | LDFLAGS | |
920 | CFLAGS | |
921 | CC | |
81ecdfbb RW |
922 | target_os |
923 | target_vendor | |
924 | target_cpu | |
925 | target | |
926 | host_os | |
927 | host_vendor | |
928 | host_cpu | |
929 | host | |
930 | build_os | |
931 | build_vendor | |
932 | build_cpu | |
933 | build | |
6dd65fc0 MF |
934 | REPORT_BUGS_TEXI |
935 | REPORT_BUGS_TO | |
936 | PKGVERSION | |
81ecdfbb RW |
937 | target_alias |
938 | host_alias | |
939 | build_alias | |
940 | LIBS | |
941 | ECHO_T | |
942 | ECHO_N | |
943 | ECHO_C | |
944 | DEFS | |
945 | mandir | |
946 | localedir | |
947 | libdir | |
948 | psdir | |
949 | pdfdir | |
950 | dvidir | |
951 | htmldir | |
952 | infodir | |
953 | docdir | |
954 | oldincludedir | |
955 | includedir | |
956 | localstatedir | |
957 | sharedstatedir | |
958 | sysconfdir | |
959 | datadir | |
960 | datarootdir | |
961 | libexecdir | |
962 | sbindir | |
963 | bindir | |
964 | program_transform_name | |
965 | prefix | |
966 | exec_prefix | |
967 | PACKAGE_URL | |
968 | PACKAGE_BUGREPORT | |
969 | PACKAGE_STRING | |
970 | PACKAGE_VERSION | |
971 | PACKAGE_TARNAME | |
972 | PACKAGE_NAME | |
973 | PATH_SEPARATOR | |
47ce766a | 974 | SHELL |
8996c210 | 975 | SIM_TOOLCHAIN_VARS |
47ce766a MF |
976 | WERROR_CFLAGS |
977 | WARN_CFLAGS' | |
b7026657 | 978 | ac_subst_files='' |
81ecdfbb RW |
979 | ac_user_opts=' |
980 | enable_option_checking | |
6dd65fc0 MF |
981 | with_pkgversion |
982 | with_bugurl | |
b5689863 MF |
983 | with_system_zlib |
984 | enable_plugins | |
985 | enable_shared | |
986 | enable_static | |
987 | with_pic | |
988 | enable_fast_install | |
989 | with_gnu_ld | |
990 | enable_libtool_lock | |
8c379db2 | 991 | enable_maintainer_mode |
6bddc3e8 | 992 | enable_dependency_tracking |
c2783492 | 993 | enable_silent_rules |
81ecdfbb | 994 | enable_sim |
26da232c | 995 | enable_example_sims |
a0e674c1 | 996 | enable_targets |
ba307cdd | 997 | enable_sim_alignment |
dba333c1 | 998 | enable_sim_assert |
1bf5c342 | 999 | enable_cgen_maint |
04381273 | 1000 | enable_sim_debug |
f9a4d543 | 1001 | enable_sim_endian |
5ea45474 | 1002 | enable_sim_environment |
456ef1c1 | 1003 | enable_sim_hardware |
d73f39ee | 1004 | enable_sim_inline |
04381273 | 1005 | enable_sim_profile |
7eb1f99a | 1006 | enable_sim_reserved_bits |
b79efe26 | 1007 | enable_sim_scache |
04381273 MF |
1008 | enable_sim_stdio |
1009 | enable_sim_trace | |
47ce766a MF |
1010 | enable_werror |
1011 | enable_build_warnings | |
1012 | enable_sim_build_warnings | |
408a44aa | 1013 | enable_sim_frv_trapdump |
e173c80f | 1014 | enable_sim_rx_cycle_accurate |
81ecdfbb RW |
1015 | ' |
1016 | ac_precious_vars='build_alias | |
1017 | host_alias | |
1018 | target_alias | |
1019 | CC | |
1020 | CFLAGS | |
1021 | LDFLAGS | |
1022 | LIBS | |
5e25901f | 1023 | CPPFLAGS |
d57b6533 MF |
1024 | CPP |
1025 | PKG_CONFIG | |
1026 | PKG_CONFIG_PATH | |
1027 | PKG_CONFIG_LIBDIR | |
1028 | SDL_CFLAGS | |
8996c210 MF |
1029 | SDL_LIBS |
1030 | AS_FOR_TARGET_AARCH64 | |
1031 | LD_FOR_TARGET_AARCH64 | |
1032 | CC_FOR_TARGET_AARCH64 | |
1033 | AS_FOR_TARGET_ARM | |
1034 | LD_FOR_TARGET_ARM | |
1035 | CC_FOR_TARGET_ARM | |
1036 | AS_FOR_TARGET_AVR | |
1037 | LD_FOR_TARGET_AVR | |
1038 | CC_FOR_TARGET_AVR | |
1039 | AS_FOR_TARGET_BFIN | |
1040 | LD_FOR_TARGET_BFIN | |
1041 | CC_FOR_TARGET_BFIN | |
1042 | AS_FOR_TARGET_BPF | |
1043 | LD_FOR_TARGET_BPF | |
1044 | CC_FOR_TARGET_BPF | |
1045 | AS_FOR_TARGET_CR16 | |
1046 | LD_FOR_TARGET_CR16 | |
1047 | CC_FOR_TARGET_CR16 | |
1048 | AS_FOR_TARGET_CRIS | |
1049 | LD_FOR_TARGET_CRIS | |
1050 | CC_FOR_TARGET_CRIS | |
1051 | AS_FOR_TARGET_D10V | |
1052 | LD_FOR_TARGET_D10V | |
1053 | CC_FOR_TARGET_D10V | |
1054 | AS_FOR_TARGET_FRV | |
1055 | LD_FOR_TARGET_FRV | |
1056 | CC_FOR_TARGET_FRV | |
1057 | AS_FOR_TARGET_FT32 | |
1058 | LD_FOR_TARGET_FT32 | |
1059 | CC_FOR_TARGET_FT32 | |
1060 | AS_FOR_TARGET_H8300 | |
1061 | LD_FOR_TARGET_H8300 | |
1062 | CC_FOR_TARGET_H8300 | |
1063 | AS_FOR_TARGET_IQ2000 | |
1064 | LD_FOR_TARGET_IQ2000 | |
1065 | CC_FOR_TARGET_IQ2000 | |
1066 | AS_FOR_TARGET_LM32 | |
1067 | LD_FOR_TARGET_LM32 | |
1068 | CC_FOR_TARGET_LM32 | |
1069 | AS_FOR_TARGET_M32C | |
1070 | LD_FOR_TARGET_M32C | |
1071 | CC_FOR_TARGET_M32C | |
1072 | AS_FOR_TARGET_M32R | |
1073 | LD_FOR_TARGET_M32R | |
1074 | CC_FOR_TARGET_M32R | |
1075 | AS_FOR_TARGET_M68HC11 | |
1076 | LD_FOR_TARGET_M68HC11 | |
1077 | CC_FOR_TARGET_M68HC11 | |
1078 | AS_FOR_TARGET_MCORE | |
1079 | LD_FOR_TARGET_MCORE | |
1080 | CC_FOR_TARGET_MCORE | |
1081 | AS_FOR_TARGET_MICROBLAZE | |
1082 | LD_FOR_TARGET_MICROBLAZE | |
1083 | CC_FOR_TARGET_MICROBLAZE | |
1084 | AS_FOR_TARGET_MIPS | |
1085 | LD_FOR_TARGET_MIPS | |
1086 | CC_FOR_TARGET_MIPS | |
1087 | AS_FOR_TARGET_MN10300 | |
1088 | LD_FOR_TARGET_MN10300 | |
1089 | CC_FOR_TARGET_MN10300 | |
1090 | AS_FOR_TARGET_MOXIE | |
1091 | LD_FOR_TARGET_MOXIE | |
1092 | CC_FOR_TARGET_MOXIE | |
1093 | AS_FOR_TARGET_MSP430 | |
1094 | LD_FOR_TARGET_MSP430 | |
1095 | CC_FOR_TARGET_MSP430 | |
1096 | AS_FOR_TARGET_OR1K | |
1097 | LD_FOR_TARGET_OR1K | |
1098 | CC_FOR_TARGET_OR1K | |
1099 | AS_FOR_TARGET_PPC | |
1100 | LD_FOR_TARGET_PPC | |
1101 | CC_FOR_TARGET_PPC | |
1102 | AS_FOR_TARGET_PRU | |
1103 | LD_FOR_TARGET_PRU | |
1104 | CC_FOR_TARGET_PRU | |
1105 | AS_FOR_TARGET_RISCV | |
1106 | LD_FOR_TARGET_RISCV | |
1107 | CC_FOR_TARGET_RISCV | |
1108 | AS_FOR_TARGET_RL78 | |
1109 | LD_FOR_TARGET_RL78 | |
1110 | CC_FOR_TARGET_RL78 | |
1111 | AS_FOR_TARGET_RX | |
1112 | LD_FOR_TARGET_RX | |
1113 | CC_FOR_TARGET_RX | |
1114 | AS_FOR_TARGET_SH | |
1115 | LD_FOR_TARGET_SH | |
1116 | CC_FOR_TARGET_SH | |
1117 | AS_FOR_TARGET_ERC32 | |
1118 | LD_FOR_TARGET_ERC32 | |
1119 | CC_FOR_TARGET_ERC32 | |
1120 | AS_FOR_TARGET_V850 | |
1121 | LD_FOR_TARGET_V850 | |
1122 | CC_FOR_TARGET_V850 | |
1123 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
1124 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
1125 | CC_FOR_TARGET_EXAMPLE_SYNACOR' | |
d8b04da7 | 1126 | ac_subdirs_all='bpf |
81ecdfbb RW |
1127 | mips |
1128 | mn10300 | |
37f980dc | 1129 | or1k |
81ecdfbb | 1130 | ppc |
99aedb62 | 1131 | riscv |
36bb57e4 | 1132 | v850' |
c906108c SS |
1133 | |
1134 | # Initialize some variables set by options. | |
b7026657 AC |
1135 | ac_init_help= |
1136 | ac_init_version=false | |
81ecdfbb RW |
1137 | ac_unrecognized_opts= |
1138 | ac_unrecognized_sep= | |
c906108c SS |
1139 | # The variables have the same names as the options, with |
1140 | # dashes changed to underlines. | |
b7026657 | 1141 | cache_file=/dev/null |
c906108c | 1142 | exec_prefix=NONE |
c906108c | 1143 | no_create= |
c906108c SS |
1144 | no_recursion= |
1145 | prefix=NONE | |
1146 | program_prefix=NONE | |
1147 | program_suffix=NONE | |
1148 | program_transform_name=s,x,x, | |
1149 | silent= | |
1150 | site= | |
1151 | srcdir= | |
c906108c SS |
1152 | verbose= |
1153 | x_includes=NONE | |
1154 | x_libraries=NONE | |
b7026657 AC |
1155 | |
1156 | # Installation directory options. | |
1157 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1158 | # and all the variables that are supposed to be based on exec_prefix | |
1159 | # by default will actually change. | |
1160 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 1161 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
1162 | bindir='${exec_prefix}/bin' |
1163 | sbindir='${exec_prefix}/sbin' | |
1164 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
1165 | datarootdir='${prefix}/share' |
1166 | datadir='${datarootdir}' | |
c906108c SS |
1167 | sysconfdir='${prefix}/etc' |
1168 | sharedstatedir='${prefix}/com' | |
1169 | localstatedir='${prefix}/var' | |
c906108c SS |
1170 | includedir='${prefix}/include' |
1171 | oldincludedir='/usr/include' | |
6bddc3e8 | 1172 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
1173 | infodir='${datarootdir}/info' |
1174 | htmldir='${docdir}' | |
1175 | dvidir='${docdir}' | |
1176 | pdfdir='${docdir}' | |
1177 | psdir='${docdir}' | |
1178 | libdir='${exec_prefix}/lib' | |
1179 | localedir='${datarootdir}/locale' | |
1180 | mandir='${datarootdir}/man' | |
c906108c | 1181 | |
c906108c | 1182 | ac_prev= |
81ecdfbb | 1183 | ac_dashdash= |
c906108c SS |
1184 | for ac_option |
1185 | do | |
c906108c SS |
1186 | # If the previous option needs an argument, assign it. |
1187 | if test -n "$ac_prev"; then | |
81ecdfbb | 1188 | eval $ac_prev=\$ac_option |
c906108c SS |
1189 | ac_prev= |
1190 | continue | |
1191 | fi | |
1192 | ||
81ecdfbb | 1193 | case $ac_option in |
d0ac1c44 SM |
1194 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1195 | *=) ac_optarg= ;; | |
1196 | *) ac_optarg=yes ;; | |
81ecdfbb | 1197 | esac |
c906108c SS |
1198 | |
1199 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1200 | ||
81ecdfbb RW |
1201 | case $ac_dashdash$ac_option in |
1202 | --) | |
1203 | ac_dashdash=yes ;; | |
c906108c SS |
1204 | |
1205 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1206 | ac_prev=bindir ;; | |
1207 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 1208 | bindir=$ac_optarg ;; |
c906108c SS |
1209 | |
1210 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 1211 | ac_prev=build_alias ;; |
c906108c | 1212 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 1213 | build_alias=$ac_optarg ;; |
c906108c SS |
1214 | |
1215 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1216 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1217 | ac_prev=cache_file ;; | |
1218 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1219 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
1220 | cache_file=$ac_optarg ;; |
1221 | ||
1222 | --config-cache | -C) | |
1223 | cache_file=config.cache ;; | |
c906108c | 1224 | |
81ecdfbb | 1225 | -datadir | --datadir | --datadi | --datad) |
c906108c | 1226 | ac_prev=datadir ;; |
81ecdfbb | 1227 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 1228 | datadir=$ac_optarg ;; |
c906108c | 1229 | |
81ecdfbb RW |
1230 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1231 | | --dataroo | --dataro | --datar) | |
1232 | ac_prev=datarootdir ;; | |
1233 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1234 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1235 | datarootdir=$ac_optarg ;; | |
1236 | ||
c906108c | 1237 | -disable-* | --disable-*) |
81ecdfbb | 1238 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 1239 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1240 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1241 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1242 | ac_useropt_orig=$ac_useropt |
1243 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1244 | case $ac_user_opts in | |
1245 | *" | |
1246 | "enable_$ac_useropt" | |
1247 | "*) ;; | |
1248 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1249 | ac_unrecognized_sep=', ';; | |
1250 | esac | |
1251 | eval enable_$ac_useropt=no ;; | |
1252 | ||
1253 | -docdir | --docdir | --docdi | --doc | --do) | |
1254 | ac_prev=docdir ;; | |
1255 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1256 | docdir=$ac_optarg ;; | |
1257 | ||
1258 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1259 | ac_prev=dvidir ;; | |
1260 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1261 | dvidir=$ac_optarg ;; | |
c906108c SS |
1262 | |
1263 | -enable-* | --enable-*) | |
81ecdfbb | 1264 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 1265 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1266 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1267 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
1268 | ac_useropt_orig=$ac_useropt |
1269 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1270 | case $ac_user_opts in | |
1271 | *" | |
1272 | "enable_$ac_useropt" | |
1273 | "*) ;; | |
1274 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1275 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1276 | esac |
81ecdfbb | 1277 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1278 | |
1279 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1280 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1281 | | --exec | --exe | --ex) | |
1282 | ac_prev=exec_prefix ;; | |
1283 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1284 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1285 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 1286 | exec_prefix=$ac_optarg ;; |
c906108c SS |
1287 | |
1288 | -gas | --gas | --ga | --g) | |
1289 | # Obsolete; use --with-gas. | |
1290 | with_gas=yes ;; | |
1291 | ||
b7026657 AC |
1292 | -help | --help | --hel | --he | -h) |
1293 | ac_init_help=long ;; | |
1294 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1295 | ac_init_help=recursive ;; | |
1296 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1297 | ac_init_help=short ;; | |
c906108c SS |
1298 | |
1299 | -host | --host | --hos | --ho) | |
b7026657 | 1300 | ac_prev=host_alias ;; |
c906108c | 1301 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 1302 | host_alias=$ac_optarg ;; |
c906108c | 1303 | |
81ecdfbb RW |
1304 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1305 | ac_prev=htmldir ;; | |
1306 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1307 | | --ht=*) | |
1308 | htmldir=$ac_optarg ;; | |
1309 | ||
c906108c SS |
1310 | -includedir | --includedir | --includedi | --included | --include \ |
1311 | | --includ | --inclu | --incl | --inc) | |
1312 | ac_prev=includedir ;; | |
1313 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1314 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 1315 | includedir=$ac_optarg ;; |
c906108c SS |
1316 | |
1317 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1318 | ac_prev=infodir ;; | |
1319 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 1320 | infodir=$ac_optarg ;; |
c906108c SS |
1321 | |
1322 | -libdir | --libdir | --libdi | --libd) | |
1323 | ac_prev=libdir ;; | |
1324 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 1325 | libdir=$ac_optarg ;; |
c906108c SS |
1326 | |
1327 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1328 | | --libexe | --libex | --libe) | |
1329 | ac_prev=libexecdir ;; | |
1330 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1331 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 1332 | libexecdir=$ac_optarg ;; |
c906108c | 1333 | |
81ecdfbb RW |
1334 | -localedir | --localedir | --localedi | --localed | --locale) |
1335 | ac_prev=localedir ;; | |
1336 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1337 | localedir=$ac_optarg ;; | |
1338 | ||
c906108c | 1339 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1340 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
1341 | ac_prev=localstatedir ;; |
1342 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1343 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 1344 | localstatedir=$ac_optarg ;; |
c906108c SS |
1345 | |
1346 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1347 | ac_prev=mandir ;; | |
1348 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 1349 | mandir=$ac_optarg ;; |
c906108c SS |
1350 | |
1351 | -nfp | --nfp | --nf) | |
1352 | # Obsolete; use --without-fp. | |
1353 | with_fp=no ;; | |
1354 | ||
1355 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1356 | | --no-cr | --no-c | -n) |
c906108c SS |
1357 | no_create=yes ;; |
1358 | ||
1359 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1360 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1361 | no_recursion=yes ;; | |
1362 | ||
1363 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1364 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1365 | | --oldin | --oldi | --old | --ol | --o) | |
1366 | ac_prev=oldincludedir ;; | |
1367 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1368 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1369 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1370 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1371 | |
1372 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1373 | ac_prev=prefix ;; | |
1374 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1375 | prefix=$ac_optarg ;; |
c906108c SS |
1376 | |
1377 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1378 | | --program-pre | --program-pr | --program-p) | |
1379 | ac_prev=program_prefix ;; | |
1380 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1381 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1382 | program_prefix=$ac_optarg ;; |
c906108c SS |
1383 | |
1384 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1385 | | --program-suf | --program-su | --program-s) | |
1386 | ac_prev=program_suffix ;; | |
1387 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1388 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1389 | program_suffix=$ac_optarg ;; |
c906108c SS |
1390 | |
1391 | -program-transform-name | --program-transform-name \ | |
1392 | | --program-transform-nam | --program-transform-na \ | |
1393 | | --program-transform-n | --program-transform- \ | |
1394 | | --program-transform | --program-transfor \ | |
1395 | | --program-transfo | --program-transf \ | |
1396 | | --program-trans | --program-tran \ | |
1397 | | --progr-tra | --program-tr | --program-t) | |
1398 | ac_prev=program_transform_name ;; | |
1399 | -program-transform-name=* | --program-transform-name=* \ | |
1400 | | --program-transform-nam=* | --program-transform-na=* \ | |
1401 | | --program-transform-n=* | --program-transform-=* \ | |
1402 | | --program-transform=* | --program-transfor=* \ | |
1403 | | --program-transfo=* | --program-transf=* \ | |
1404 | | --program-trans=* | --program-tran=* \ | |
1405 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1406 | program_transform_name=$ac_optarg ;; |
c906108c | 1407 | |
81ecdfbb RW |
1408 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1409 | ac_prev=pdfdir ;; | |
1410 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1411 | pdfdir=$ac_optarg ;; | |
1412 | ||
1413 | -psdir | --psdir | --psdi | --psd | --ps) | |
1414 | ac_prev=psdir ;; | |
1415 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1416 | psdir=$ac_optarg ;; | |
1417 | ||
c906108c SS |
1418 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1419 | | -silent | --silent | --silen | --sile | --sil) | |
1420 | silent=yes ;; | |
1421 | ||
1422 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1423 | ac_prev=sbindir ;; | |
1424 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1425 | | --sbi=* | --sb=*) | |
b7026657 | 1426 | sbindir=$ac_optarg ;; |
c906108c SS |
1427 | |
1428 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1429 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1430 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1431 | | --sha | --sh) | |
1432 | ac_prev=sharedstatedir ;; | |
1433 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1434 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1435 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1436 | | --sha=* | --sh=*) | |
b7026657 | 1437 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1438 | |
1439 | -site | --site | --sit) | |
1440 | ac_prev=site ;; | |
1441 | -site=* | --site=* | --sit=*) | |
b7026657 | 1442 | site=$ac_optarg ;; |
0fda6bd2 | 1443 | |
c906108c SS |
1444 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1445 | ac_prev=srcdir ;; | |
1446 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1447 | srcdir=$ac_optarg ;; |
c906108c SS |
1448 | |
1449 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1450 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1451 | ac_prev=sysconfdir ;; | |
1452 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1453 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1454 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1455 | |
1456 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1457 | ac_prev=target_alias ;; |
c906108c | 1458 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1459 | target_alias=$ac_optarg ;; |
c906108c SS |
1460 | |
1461 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1462 | verbose=yes ;; | |
1463 | ||
b7026657 AC |
1464 | -version | --version | --versio | --versi | --vers | -V) |
1465 | ac_init_version=: ;; | |
c906108c SS |
1466 | |
1467 | -with-* | --with-*) | |
81ecdfbb | 1468 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1469 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1470 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1471 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1472 | ac_useropt_orig=$ac_useropt |
1473 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1474 | case $ac_user_opts in | |
1475 | *" | |
1476 | "with_$ac_useropt" | |
1477 | "*) ;; | |
1478 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1479 | ac_unrecognized_sep=', ';; | |
fdd6fa61 | 1480 | esac |
81ecdfbb | 1481 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1482 | |
1483 | -without-* | --without-*) | |
81ecdfbb | 1484 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1485 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1486 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1487 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1488 | ac_useropt_orig=$ac_useropt |
1489 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1490 | case $ac_user_opts in | |
1491 | *" | |
1492 | "with_$ac_useropt" | |
1493 | "*) ;; | |
1494 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1495 | ac_unrecognized_sep=', ';; | |
1496 | esac | |
1497 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1498 | |
1499 | --x) | |
1500 | # Obsolete; use --with-x. | |
1501 | with_x=yes ;; | |
1502 | ||
1503 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1504 | | --x-incl | --x-inc | --x-in | --x-i) | |
1505 | ac_prev=x_includes ;; | |
1506 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1507 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1508 | x_includes=$ac_optarg ;; |
c906108c SS |
1509 | |
1510 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1511 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1512 | ac_prev=x_libraries ;; | |
1513 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1514 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1515 | x_libraries=$ac_optarg ;; |
c906108c | 1516 | |
d0ac1c44 SM |
1517 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1518 | Try \`$0 --help' for more information" | |
c906108c SS |
1519 | ;; |
1520 | ||
b7026657 AC |
1521 | *=*) |
1522 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1523 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1524 | case $ac_envvar in #( |
1525 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1526 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1527 | esac |
1528 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1529 | export $ac_envvar ;; |
1530 | ||
c906108c | 1531 | *) |
b7026657 | 1532 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1533 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1534 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1535 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1536 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1537 | ;; |
1538 | ||
1539 | esac | |
1540 | done | |
1541 | ||
1542 | if test -n "$ac_prev"; then | |
b7026657 | 1543 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1544 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1545 | fi |
c906108c | 1546 | |
81ecdfbb RW |
1547 | if test -n "$ac_unrecognized_opts"; then |
1548 | case $enable_option_checking in | |
1549 | no) ;; | |
d0ac1c44 | 1550 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1551 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
fdd6fa61 | 1552 | esac |
81ecdfbb | 1553 | fi |
fdd6fa61 | 1554 | |
81ecdfbb RW |
1555 | # Check all directory arguments for consistency. |
1556 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1557 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1558 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1559 | libdir localedir mandir | |
c906108c | 1560 | do |
81ecdfbb RW |
1561 | eval ac_val=\$$ac_var |
1562 | # Remove trailing slashes. | |
1563 | case $ac_val in | |
1564 | */ ) | |
1565 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1566 | eval $ac_var=\$ac_val;; | |
1567 | esac | |
1568 | # Be sure to have absolute directory names. | |
b7026657 | 1569 | case $ac_val in |
81ecdfbb RW |
1570 | [\\/$]* | ?:[\\/]* ) continue;; |
1571 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1572 | esac |
d0ac1c44 | 1573 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1574 | done |
1575 | ||
b7026657 AC |
1576 | # There might be people who depend on the old broken behavior: `$host' |
1577 | # used to hold the argument of --host etc. | |
1578 | # FIXME: To remove some day. | |
1579 | build=$build_alias | |
1580 | host=$host_alias | |
1581 | target=$target_alias | |
1582 | ||
1583 | # FIXME: To remove some day. | |
1584 | if test "x$host_alias" != x; then | |
1585 | if test "x$build_alias" = x; then | |
1586 | cross_compiling=maybe | |
b7026657 AC |
1587 | elif test "x$build_alias" != "x$host_alias"; then |
1588 | cross_compiling=yes | |
1589 | fi | |
1590 | fi | |
c906108c | 1591 | |
b7026657 AC |
1592 | ac_tool_prefix= |
1593 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1594 | ||
1595 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1596 | |
c906108c | 1597 | |
81ecdfbb RW |
1598 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1599 | ac_ls_di=`ls -di .` && | |
1600 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1601 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1602 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1603 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1604 | |
1605 | ||
c906108c SS |
1606 | # Find the source files, if location was not specified. |
1607 | if test -z "$srcdir"; then | |
1608 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1609 | # Try the directory containing this script, then the parent directory. |
1610 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1611 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1612 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1613 | X"$as_myself" : 'X\(//\)$' \| \ | |
1614 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1615 | $as_echo X"$as_myself" | | |
1616 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1617 | s//\1/ | |
1618 | q | |
1619 | } | |
1620 | /^X\(\/\/\)[^/].*/{ | |
1621 | s//\1/ | |
1622 | q | |
1623 | } | |
1624 | /^X\(\/\/\)$/{ | |
1625 | s//\1/ | |
1626 | q | |
1627 | } | |
1628 | /^X\(\/\).*/{ | |
1629 | s//\1/ | |
1630 | q | |
1631 | } | |
1632 | s/.*/./; q'` | |
c906108c | 1633 | srcdir=$ac_confdir |
81ecdfbb | 1634 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1635 | srcdir=.. |
1636 | fi | |
1637 | else | |
1638 | ac_srcdir_defaulted=no | |
1639 | fi | |
81ecdfbb RW |
1640 | if test ! -r "$srcdir/$ac_unique_file"; then |
1641 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1642 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1643 | fi |
1644 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1645 | ac_abs_confdir=`( | |
d0ac1c44 | 1646 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1647 | pwd)` |
1648 | # When building in place, set srcdir=. | |
1649 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1650 | srcdir=. | |
1651 | fi | |
1652 | # Remove unnecessary trailing slashes from srcdir. | |
1653 | # Double slashes in file names in object file debugging info | |
1654 | # mess up M-x gdb in Emacs. | |
1655 | case $srcdir in | |
1656 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1657 | esac | |
1658 | for ac_var in $ac_precious_vars; do | |
1659 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1660 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1661 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1662 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1663 | done | |
df1756f4 TG |
1664 | |
1665 | # | |
b7026657 AC |
1666 | # Report the --help message. |
1667 | # | |
1668 | if test "$ac_init_help" = "long"; then | |
1669 | # Omit some internal or obsolete options to make the list less imposing. | |
1670 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1671 | cat <<_ACEOF | |
6bddc3e8 | 1672 | \`configure' configures sim 0 to adapt to many kinds of systems. |
b7026657 AC |
1673 | |
1674 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1675 | ||
1676 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1677 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1678 | ||
1679 | Defaults for the options are specified in brackets. | |
1680 | ||
1681 | Configuration: | |
1682 | -h, --help display this help and exit | |
1683 | --help=short display options specific to this package | |
1684 | --help=recursive display the short help of all the included packages | |
1685 | -V, --version display version information and exit | |
d0ac1c44 | 1686 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1687 | --cache-file=FILE cache test results in FILE [disabled] |
1688 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1689 | -n, --no-create do not create output files | |
1690 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1691 | ||
b7026657 AC |
1692 | Installation directories: |
1693 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1694 | [$ac_default_prefix] |
b7026657 | 1695 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1696 | [PREFIX] |
b7026657 AC |
1697 | |
1698 | By default, \`make install' will install all the files in | |
1699 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1700 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1701 | for instance \`--prefix=\$HOME'. | |
1702 | ||
1703 | For better control, use the options below. | |
1704 | ||
1705 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1706 | --bindir=DIR user executables [EPREFIX/bin] |
1707 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1708 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1709 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1710 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1711 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1712 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1713 | --includedir=DIR C header files [PREFIX/include] | |
1714 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1715 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1716 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1717 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1718 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1719 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
6bddc3e8 | 1720 | --docdir=DIR documentation root [DATAROOTDIR/doc/sim] |
81ecdfbb RW |
1721 | --htmldir=DIR html documentation [DOCDIR] |
1722 | --dvidir=DIR dvi documentation [DOCDIR] | |
1723 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1724 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1725 | _ACEOF |
1726 | ||
1727 | cat <<\_ACEOF | |
1728 | ||
1729 | Program names: | |
1730 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1731 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1732 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1733 | ||
1734 | System types: | |
1735 | --build=BUILD configure for building on BUILD [guessed] | |
1736 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1737 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1738 | _ACEOF | |
1739 | fi | |
1740 | ||
1741 | if test -n "$ac_init_help"; then | |
6bddc3e8 MF |
1742 | case $ac_init_help in |
1743 | short | recursive ) echo "Configuration of sim 0:";; | |
1744 | esac | |
b7026657 AC |
1745 | cat <<\_ACEOF |
1746 | ||
1747 | Optional Features: | |
81ecdfbb | 1748 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1749 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1750 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b5689863 MF |
1751 | --enable-plugins Enable support for plugins |
1752 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1753 | --enable-static[=PKGS] build static libraries [default=yes] | |
1754 | --enable-fast-install[=PKGS] | |
1755 | optimize for fast installation [default=yes] | |
1756 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8c379db2 TT |
1757 | --enable-maintainer-mode |
1758 | enable make rules and dependencies not useful (and | |
1759 | sometimes confusing) to the casual installer | |
6bddc3e8 MF |
1760 | --enable-dependency-tracking |
1761 | do not reject slow dependency extractors | |
1762 | --disable-dependency-tracking | |
1763 | speeds up one-time build | |
c2783492 MF |
1764 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1765 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8d0978fb | 1766 | --enable-sim Enable the GNU simulator |
26da232c | 1767 | --enable-example-sims enable example GNU simulators |
a0e674c1 | 1768 | --enable-targets alternative target configurations |
ba307cdd MF |
1769 | --enable-sim-alignment=align |
1770 | Specify strict, nonstrict or forced alignment of | |
1771 | memory accesses | |
dba333c1 | 1772 | --enable-sim-assert Specify whether to perform random assertions |
1bf5c342 | 1773 | --enable-cgen-maint=DIR build cgen generated files |
04381273 MF |
1774 | --enable-sim-debug=opts Enable debugging flags (for developers of the sim |
1775 | itself) | |
f9a4d543 MF |
1776 | --enable-sim-endian=endian |
1777 | Specify target byte endian orientation | |
5ea45474 MF |
1778 | --enable-sim-environment=environment |
1779 | Specify mixed, user, virtual or operating | |
1780 | environment | |
456ef1c1 | 1781 | --enable-sim-hardware Whether to enable hardware/device simulation |
d73f39ee MF |
1782 | --enable-sim-inline=inlines |
1783 | Specify which functions should be inlined | |
04381273 MF |
1784 | --enable-sim-profile=opts |
1785 | Enable profiling flags | |
7eb1f99a MF |
1786 | --enable-sim-reserved-bits |
1787 | Specify whether to check reserved bits in | |
1788 | instruction | |
b79efe26 MF |
1789 | --enable-sim-scache=size |
1790 | Specify simulator execution cache size | |
04381273 MF |
1791 | --enable-sim-stdio Specify whether to use stdio for console |
1792 | input/output | |
1793 | --enable-sim-trace=opts Enable tracing of simulated programs | |
47ce766a MF |
1794 | --enable-werror treat compile warnings as errors |
1795 | --enable-build-warnings enable build-time compiler warnings if gcc is used | |
1796 | --enable-sim-build-warnings | |
1797 | enable SIM specific build-time compiler warnings if | |
1798 | gcc is used | |
408a44aa MF |
1799 | --enable-sim-frv-trapdump |
1800 | Make unknown traps dump the registers | |
e173c80f MF |
1801 | --disable-sim-rx-cycle-accurate |
1802 | Disable cycle accurate simulation (faster runtime) | |
b7026657 | 1803 | |
6dd65fc0 MF |
1804 | Optional Packages: |
1805 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1806 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1807 | --with-pkgversion=PKG Use PKG in the version string in place of "SIM" | |
1808 | --with-bugurl=URL Direct users to URL to report a bug | |
b5689863 MF |
1809 | --with-system-zlib use installed libz |
1810 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1811 | both] | |
1812 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
6dd65fc0 | 1813 | |
b7026657 AC |
1814 | Some influential environment variables: |
1815 | CC C compiler command | |
1816 | CFLAGS C compiler flags | |
1817 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1818 | nonstandard directory <lib dir> | |
81ecdfbb | 1819 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1820 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1821 | you have headers in a nonstandard directory <include dir> |
5e25901f | 1822 | CPP C preprocessor |
d57b6533 MF |
1823 | PKG_CONFIG path to pkg-config utility |
1824 | PKG_CONFIG_PATH | |
1825 | directories to add to pkg-config's search path | |
1826 | PKG_CONFIG_LIBDIR | |
1827 | path overriding pkg-config's built-in search path | |
1828 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | |
1829 | SDL_LIBS linker flags for SDL, overriding pkg-config | |
8996c210 MF |
1830 | AS_FOR_TARGET_AARCH64 |
1831 | Assembler for aarch64 tests | |
1832 | LD_FOR_TARGET_AARCH64 | |
1833 | Linker for aarch64 tests | |
1834 | CC_FOR_TARGET_AARCH64 | |
1835 | C compiler for aarch64 tests | |
1836 | AS_FOR_TARGET_ARM | |
1837 | Assembler for arm tests | |
1838 | LD_FOR_TARGET_ARM | |
1839 | Linker for arm tests | |
1840 | CC_FOR_TARGET_ARM | |
1841 | C compiler for arm tests | |
1842 | AS_FOR_TARGET_AVR | |
1843 | Assembler for avr tests | |
1844 | LD_FOR_TARGET_AVR | |
1845 | Linker for avr tests | |
1846 | CC_FOR_TARGET_AVR | |
1847 | C compiler for avr tests | |
1848 | AS_FOR_TARGET_BFIN | |
1849 | Assembler for bfin tests | |
1850 | LD_FOR_TARGET_BFIN | |
1851 | Linker for bfin tests | |
1852 | CC_FOR_TARGET_BFIN | |
1853 | C compiler for bfin tests | |
1854 | AS_FOR_TARGET_BPF | |
1855 | Assembler for bpf tests | |
1856 | LD_FOR_TARGET_BPF | |
1857 | Linker for bpf tests | |
1858 | CC_FOR_TARGET_BPF | |
1859 | C compiler for bpf tests | |
1860 | AS_FOR_TARGET_CR16 | |
1861 | Assembler for cr16 tests | |
1862 | LD_FOR_TARGET_CR16 | |
1863 | Linker for cr16 tests | |
1864 | CC_FOR_TARGET_CR16 | |
1865 | C compiler for cr16 tests | |
1866 | AS_FOR_TARGET_CRIS | |
1867 | Assembler for cris tests | |
1868 | LD_FOR_TARGET_CRIS | |
1869 | Linker for cris tests | |
1870 | CC_FOR_TARGET_CRIS | |
1871 | C compiler for cris tests | |
1872 | AS_FOR_TARGET_D10V | |
1873 | Assembler for d10v tests | |
1874 | LD_FOR_TARGET_D10V | |
1875 | Linker for d10v tests | |
1876 | CC_FOR_TARGET_D10V | |
1877 | C compiler for d10v tests | |
1878 | AS_FOR_TARGET_FRV | |
1879 | Assembler for frv tests | |
1880 | LD_FOR_TARGET_FRV | |
1881 | Linker for frv tests | |
1882 | CC_FOR_TARGET_FRV | |
1883 | C compiler for frv tests | |
1884 | AS_FOR_TARGET_FT32 | |
1885 | Assembler for ft32 tests | |
1886 | LD_FOR_TARGET_FT32 | |
1887 | Linker for ft32 tests | |
1888 | CC_FOR_TARGET_FT32 | |
1889 | C compiler for ft32 tests | |
1890 | AS_FOR_TARGET_H8300 | |
1891 | Assembler for h8300 tests | |
1892 | LD_FOR_TARGET_H8300 | |
1893 | Linker for h8300 tests | |
1894 | CC_FOR_TARGET_H8300 | |
1895 | C compiler for h8300 tests | |
1896 | AS_FOR_TARGET_IQ2000 | |
1897 | Assembler for iq2000 tests | |
1898 | LD_FOR_TARGET_IQ2000 | |
1899 | Linker for iq2000 tests | |
1900 | CC_FOR_TARGET_IQ2000 | |
1901 | C compiler for iq2000 tests | |
1902 | AS_FOR_TARGET_LM32 | |
1903 | Assembler for lm32 tests | |
1904 | LD_FOR_TARGET_LM32 | |
1905 | Linker for lm32 tests | |
1906 | CC_FOR_TARGET_LM32 | |
1907 | C compiler for lm32 tests | |
1908 | AS_FOR_TARGET_M32C | |
1909 | Assembler for m32c tests | |
1910 | LD_FOR_TARGET_M32C | |
1911 | Linker for m32c tests | |
1912 | CC_FOR_TARGET_M32C | |
1913 | C compiler for m32c tests | |
1914 | AS_FOR_TARGET_M32R | |
1915 | Assembler for m32r tests | |
1916 | LD_FOR_TARGET_M32R | |
1917 | Linker for m32r tests | |
1918 | CC_FOR_TARGET_M32R | |
1919 | C compiler for m32r tests | |
1920 | AS_FOR_TARGET_M68HC11 | |
1921 | Assembler for m68hc11 tests | |
1922 | LD_FOR_TARGET_M68HC11 | |
1923 | Linker for m68hc11 tests | |
1924 | CC_FOR_TARGET_M68HC11 | |
1925 | C compiler for m68hc11 tests | |
1926 | AS_FOR_TARGET_MCORE | |
1927 | Assembler for mcore tests | |
1928 | LD_FOR_TARGET_MCORE | |
1929 | Linker for mcore tests | |
1930 | CC_FOR_TARGET_MCORE | |
1931 | C compiler for mcore tests | |
1932 | AS_FOR_TARGET_MICROBLAZE | |
1933 | Assembler for microblaze tests | |
1934 | LD_FOR_TARGET_MICROBLAZE | |
1935 | Linker for microblaze tests | |
1936 | CC_FOR_TARGET_MICROBLAZE | |
1937 | C compiler for microblaze tests | |
1938 | AS_FOR_TARGET_MIPS | |
1939 | Assembler for mips tests | |
1940 | LD_FOR_TARGET_MIPS | |
1941 | Linker for mips tests | |
1942 | CC_FOR_TARGET_MIPS | |
1943 | C compiler for mips tests | |
1944 | AS_FOR_TARGET_MN10300 | |
1945 | Assembler for mn10300 tests | |
1946 | LD_FOR_TARGET_MN10300 | |
1947 | Linker for mn10300 tests | |
1948 | CC_FOR_TARGET_MN10300 | |
1949 | C compiler for mn10300 tests | |
1950 | AS_FOR_TARGET_MOXIE | |
1951 | Assembler for moxie tests | |
1952 | LD_FOR_TARGET_MOXIE | |
1953 | Linker for moxie tests | |
1954 | CC_FOR_TARGET_MOXIE | |
1955 | C compiler for moxie tests | |
1956 | AS_FOR_TARGET_MSP430 | |
1957 | Assembler for msp430 tests | |
1958 | LD_FOR_TARGET_MSP430 | |
1959 | Linker for msp430 tests | |
1960 | CC_FOR_TARGET_MSP430 | |
1961 | C compiler for msp430 tests | |
1962 | AS_FOR_TARGET_OR1K | |
1963 | Assembler for or1k tests | |
1964 | LD_FOR_TARGET_OR1K | |
1965 | Linker for or1k tests | |
1966 | CC_FOR_TARGET_OR1K | |
1967 | C compiler for or1k tests | |
1968 | AS_FOR_TARGET_PPC | |
1969 | Assembler for ppc tests | |
1970 | LD_FOR_TARGET_PPC | |
1971 | Linker for ppc tests | |
1972 | CC_FOR_TARGET_PPC | |
1973 | C compiler for ppc tests | |
1974 | AS_FOR_TARGET_PRU | |
1975 | Assembler for pru tests | |
1976 | LD_FOR_TARGET_PRU | |
1977 | Linker for pru tests | |
1978 | CC_FOR_TARGET_PRU | |
1979 | C compiler for pru tests | |
1980 | AS_FOR_TARGET_RISCV | |
1981 | Assembler for riscv tests | |
1982 | LD_FOR_TARGET_RISCV | |
1983 | Linker for riscv tests | |
1984 | CC_FOR_TARGET_RISCV | |
1985 | C compiler for riscv tests | |
1986 | AS_FOR_TARGET_RL78 | |
1987 | Assembler for rl78 tests | |
1988 | LD_FOR_TARGET_RL78 | |
1989 | Linker for rl78 tests | |
1990 | CC_FOR_TARGET_RL78 | |
1991 | C compiler for rl78 tests | |
1992 | AS_FOR_TARGET_RX | |
1993 | Assembler for rx tests | |
1994 | LD_FOR_TARGET_RX | |
1995 | Linker for rx tests | |
1996 | CC_FOR_TARGET_RX | |
1997 | C compiler for rx tests | |
1998 | AS_FOR_TARGET_SH | |
1999 | Assembler for sh tests | |
2000 | LD_FOR_TARGET_SH | |
2001 | Linker for sh tests | |
2002 | CC_FOR_TARGET_SH | |
2003 | C compiler for sh tests | |
2004 | AS_FOR_TARGET_ERC32 | |
2005 | Assembler for erc32 tests | |
2006 | LD_FOR_TARGET_ERC32 | |
2007 | Linker for erc32 tests | |
2008 | CC_FOR_TARGET_ERC32 | |
2009 | C compiler for erc32 tests | |
2010 | AS_FOR_TARGET_V850 | |
2011 | Assembler for v850 tests | |
2012 | LD_FOR_TARGET_V850 | |
2013 | Linker for v850 tests | |
2014 | CC_FOR_TARGET_V850 | |
2015 | C compiler for v850 tests | |
2016 | AS_FOR_TARGET_EXAMPLE_SYNACOR | |
2017 | Assembler for example-synacor tests | |
2018 | LD_FOR_TARGET_EXAMPLE_SYNACOR | |
2019 | Linker for example-synacor tests | |
2020 | CC_FOR_TARGET_EXAMPLE_SYNACOR | |
2021 | C compiler for example-synacor tests | |
b7026657 AC |
2022 | |
2023 | Use these variables to override the choices made by `configure' or to help | |
2024 | it to find libraries and programs with nonstandard names/locations. | |
2025 | ||
6bddc3e8 MF |
2026 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. |
2027 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>. | |
b7026657 | 2028 | _ACEOF |
81ecdfbb | 2029 | ac_status=$? |
b7026657 AC |
2030 | fi |
2031 | ||
2032 | if test "$ac_init_help" = "recursive"; then | |
2033 | # If there are subdirs, report their specific --help. | |
b7026657 | 2034 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
2035 | test -d "$ac_dir" || |
2036 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
2037 | continue | |
b7026657 AC |
2038 | ac_builddir=. |
2039 | ||
81ecdfbb RW |
2040 | case "$ac_dir" in |
2041 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2042 | *) | |
2043 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
2044 | # A ".." for each directory in $ac_dir_suffix. | |
2045 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
2046 | case $ac_top_builddir_sub in | |
2047 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2048 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
2049 | esac ;; | |
2050 | esac | |
2051 | ac_abs_top_builddir=$ac_pwd | |
2052 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
2053 | # for backward compatibility: | |
2054 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
2055 | |
2056 | case $srcdir in | |
81ecdfbb | 2057 | .) # We are building in place. |
b7026657 | 2058 | ac_srcdir=. |
81ecdfbb RW |
2059 | ac_top_srcdir=$ac_top_builddir_sub |
2060 | ac_abs_top_srcdir=$ac_pwd ;; | |
2061 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 2062 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
2063 | ac_top_srcdir=$srcdir |
2064 | ac_abs_top_srcdir=$srcdir ;; | |
2065 | *) # Relative name. | |
2066 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
2067 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
2068 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fdd6fa61 | 2069 | esac |
81ecdfbb | 2070 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fdd6fa61 | 2071 | |
81ecdfbb RW |
2072 | cd "$ac_dir" || { ac_status=$?; continue; } |
2073 | # Check for guested configure. | |
2074 | if test -f "$ac_srcdir/configure.gnu"; then | |
2075 | echo && | |
2076 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
2077 | elif test -f "$ac_srcdir/configure"; then | |
2078 | echo && | |
2079 | $SHELL "$ac_srcdir/configure" --help=recursive | |
0fda6bd2 | 2080 | else |
81ecdfbb RW |
2081 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
2082 | fi || ac_status=$? | |
2083 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
2084 | done |
2085 | fi | |
2086 | ||
81ecdfbb | 2087 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
2088 | if $ac_init_version; then |
2089 | cat <<\_ACEOF | |
6bddc3e8 | 2090 | sim configure 0 |
d0ac1c44 | 2091 | generated by GNU Autoconf 2.69 |
b7026657 | 2092 | |
d0ac1c44 | 2093 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
2094 | This configure script is free software; the Free Software Foundation |
2095 | gives unlimited permission to copy, distribute and modify it. | |
2096 | _ACEOF | |
81ecdfbb | 2097 | exit |
b7026657 | 2098 | fi |
81ecdfbb RW |
2099 | |
2100 | ## ------------------------ ## | |
2101 | ## Autoconf initialization. ## | |
2102 | ## ------------------------ ## | |
2103 | ||
2104 | # ac_fn_c_try_compile LINENO | |
2105 | # -------------------------- | |
2106 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2107 | ac_fn_c_try_compile () | |
2108 | { | |
2109 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2110 | rm -f conftest.$ac_objext | |
2111 | if { { ac_try="$ac_compile" | |
2112 | case "(($ac_try" in | |
2113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2114 | *) ac_try_echo=$ac_try;; | |
2115 | esac | |
2116 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2117 | $as_echo "$ac_try_echo"; } >&5 | |
2118 | (eval "$ac_compile") 2>conftest.err | |
2119 | ac_status=$? | |
2120 | if test -s conftest.err; then | |
2121 | grep -v '^ *+' conftest.err >conftest.er1 | |
2122 | cat conftest.er1 >&5 | |
2123 | mv -f conftest.er1 conftest.err | |
2124 | fi | |
2125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2126 | test $ac_status = 0; } && { | |
2127 | test -z "$ac_c_werror_flag" || | |
2128 | test ! -s conftest.err | |
2129 | } && test -s conftest.$ac_objext; then : | |
2130 | ac_retval=0 | |
2131 | else | |
2132 | $as_echo "$as_me: failed program was:" >&5 | |
2133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2134 | ||
2135 | ac_retval=1 | |
2136 | fi | |
d0ac1c44 SM |
2137 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2138 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
2139 | |
2140 | } # ac_fn_c_try_compile | |
5e25901f MF |
2141 | |
2142 | # ac_fn_c_try_cpp LINENO | |
2143 | # ---------------------- | |
2144 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2145 | ac_fn_c_try_cpp () | |
2146 | { | |
2147 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2148 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2149 | case "(($ac_try" in | |
2150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2151 | *) ac_try_echo=$ac_try;; | |
2152 | esac | |
2153 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2154 | $as_echo "$ac_try_echo"; } >&5 | |
2155 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2156 | ac_status=$? | |
2157 | if test -s conftest.err; then | |
2158 | grep -v '^ *+' conftest.err >conftest.er1 | |
2159 | cat conftest.er1 >&5 | |
2160 | mv -f conftest.er1 conftest.err | |
2161 | fi | |
2162 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2163 | test $ac_status = 0; } > conftest.i && { | |
2164 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2165 | test ! -s conftest.err | |
2166 | }; then : | |
2167 | ac_retval=0 | |
2168 | else | |
2169 | $as_echo "$as_me: failed program was:" >&5 | |
2170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2171 | ||
2172 | ac_retval=1 | |
2173 | fi | |
2174 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2175 | as_fn_set_status $ac_retval | |
2176 | ||
2177 | } # ac_fn_c_try_cpp | |
c2783492 MF |
2178 | |
2179 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2180 | # ------------------------------------------------------- | |
2181 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2182 | # the include files in INCLUDES and setting the cache variable VAR | |
2183 | # accordingly. | |
2184 | ac_fn_c_check_header_mongrel () | |
2185 | { | |
2186 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2187 | if eval \${$3+:} false; then : | |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2189 | $as_echo_n "checking for $2... " >&6; } | |
2190 | if eval \${$3+:} false; then : | |
2191 | $as_echo_n "(cached) " >&6 | |
2192 | fi | |
2193 | eval ac_res=\$$3 | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2195 | $as_echo "$ac_res" >&6; } | |
2196 | else | |
2197 | # Is the header compilable? | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2199 | $as_echo_n "checking $2 usability... " >&6; } | |
2200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2201 | /* end confdefs.h. */ | |
2202 | $4 | |
2203 | #include <$2> | |
2204 | _ACEOF | |
2205 | if ac_fn_c_try_compile "$LINENO"; then : | |
2206 | ac_header_compiler=yes | |
2207 | else | |
2208 | ac_header_compiler=no | |
2209 | fi | |
2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2212 | $as_echo "$ac_header_compiler" >&6; } | |
2213 | ||
2214 | # Is the header present? | |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2216 | $as_echo_n "checking $2 presence... " >&6; } | |
2217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2218 | /* end confdefs.h. */ | |
2219 | #include <$2> | |
2220 | _ACEOF | |
2221 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2222 | ac_header_preproc=yes | |
2223 | else | |
2224 | ac_header_preproc=no | |
2225 | fi | |
2226 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2228 | $as_echo "$ac_header_preproc" >&6; } | |
2229 | ||
2230 | # So? What about this header? | |
2231 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2232 | yes:no: ) | |
2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2234 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2236 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2237 | ;; | |
2238 | no:yes:* ) | |
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2240 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2242 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2243 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2244 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2246 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2248 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2249 | ( $as_echo "## -------------------------------------------------------------------------------------- ## | |
2250 | ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ## | |
2251 | ## -------------------------------------------------------------------------------------- ##" | |
2252 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2253 | ;; | |
2254 | esac | |
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2256 | $as_echo_n "checking for $2... " >&6; } | |
2257 | if eval \${$3+:} false; then : | |
2258 | $as_echo_n "(cached) " >&6 | |
2259 | else | |
2260 | eval "$3=\$ac_header_compiler" | |
2261 | fi | |
2262 | eval ac_res=\$$3 | |
2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2264 | $as_echo "$ac_res" >&6; } | |
2265 | fi | |
2266 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2267 | ||
2268 | } # ac_fn_c_check_header_mongrel | |
2269 | ||
2270 | # ac_fn_c_try_run LINENO | |
2271 | # ---------------------- | |
2272 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
2273 | # that executables *can* be run. | |
2274 | ac_fn_c_try_run () | |
2275 | { | |
2276 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2277 | if { { ac_try="$ac_link" | |
2278 | case "(($ac_try" in | |
2279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2280 | *) ac_try_echo=$ac_try;; | |
2281 | esac | |
2282 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2283 | $as_echo "$ac_try_echo"; } >&5 | |
2284 | (eval "$ac_link") 2>&5 | |
2285 | ac_status=$? | |
2286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2287 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2288 | { { case "(($ac_try" in | |
2289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2290 | *) ac_try_echo=$ac_try;; | |
2291 | esac | |
2292 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2293 | $as_echo "$ac_try_echo"; } >&5 | |
2294 | (eval "$ac_try") 2>&5 | |
2295 | ac_status=$? | |
2296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2297 | test $ac_status = 0; }; }; then : | |
2298 | ac_retval=0 | |
2299 | else | |
2300 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2301 | $as_echo "$as_me: failed program was:" >&5 | |
2302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2303 | ||
2304 | ac_retval=$ac_status | |
2305 | fi | |
2306 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2307 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2308 | as_fn_set_status $ac_retval | |
2309 | ||
2310 | } # ac_fn_c_try_run | |
2311 | ||
2312 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2313 | # ------------------------------------------------------- | |
2314 | # Tests whether HEADER exists and can be compiled using the include files in | |
2315 | # INCLUDES, setting the cache variable VAR accordingly. | |
2316 | ac_fn_c_check_header_compile () | |
2317 | { | |
2318 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2320 | $as_echo_n "checking for $2... " >&6; } | |
2321 | if eval \${$3+:} false; then : | |
2322 | $as_echo_n "(cached) " >&6 | |
2323 | else | |
2324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2325 | /* end confdefs.h. */ | |
2326 | $4 | |
2327 | #include <$2> | |
2328 | _ACEOF | |
2329 | if ac_fn_c_try_compile "$LINENO"; then : | |
2330 | eval "$3=yes" | |
2331 | else | |
2332 | eval "$3=no" | |
2333 | fi | |
2334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2335 | fi | |
2336 | eval ac_res=\$$3 | |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2338 | $as_echo "$ac_res" >&6; } | |
2339 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2340 | ||
2341 | } # ac_fn_c_check_header_compile | |
b15c5d7a MF |
2342 | |
2343 | # ac_fn_c_try_link LINENO | |
2344 | # ----------------------- | |
2345 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2346 | ac_fn_c_try_link () | |
2347 | { | |
2348 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2350 | if { { ac_try="$ac_link" | |
2351 | case "(($ac_try" in | |
2352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2353 | *) ac_try_echo=$ac_try;; | |
2354 | esac | |
2355 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2356 | $as_echo "$ac_try_echo"; } >&5 | |
2357 | (eval "$ac_link") 2>conftest.err | |
2358 | ac_status=$? | |
2359 | if test -s conftest.err; then | |
2360 | grep -v '^ *+' conftest.err >conftest.er1 | |
2361 | cat conftest.er1 >&5 | |
2362 | mv -f conftest.er1 conftest.err | |
2363 | fi | |
2364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2365 | test $ac_status = 0; } && { | |
2366 | test -z "$ac_c_werror_flag" || | |
2367 | test ! -s conftest.err | |
2368 | } && test -s conftest$ac_exeext && { | |
2369 | test "$cross_compiling" = yes || | |
2370 | test -x conftest$ac_exeext | |
2371 | }; then : | |
2372 | ac_retval=0 | |
2373 | else | |
2374 | $as_echo "$as_me: failed program was:" >&5 | |
2375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2376 | ||
2377 | ac_retval=1 | |
2378 | fi | |
2379 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2380 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2381 | # interfere with the next link command; also delete a directory that is | |
2382 | # left behind by Apple's compiler. We do this before executing the actions. | |
2383 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2384 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2385 | as_fn_set_status $ac_retval | |
2386 | ||
2387 | } # ac_fn_c_try_link | |
2388 | ||
2389 | # ac_fn_c_check_func LINENO FUNC VAR | |
2390 | # ---------------------------------- | |
2391 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2392 | ac_fn_c_check_func () | |
2393 | { | |
2394 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2396 | $as_echo_n "checking for $2... " >&6; } | |
2397 | if eval \${$3+:} false; then : | |
2398 | $as_echo_n "(cached) " >&6 | |
2399 | else | |
2400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2401 | /* end confdefs.h. */ | |
2402 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2404 | #define $2 innocuous_$2 | |
2405 | ||
2406 | /* System header to define __stub macros and hopefully few prototypes, | |
2407 | which can conflict with char $2 (); below. | |
2408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2409 | <limits.h> exists even on freestanding compilers. */ | |
2410 | ||
2411 | #ifdef __STDC__ | |
2412 | # include <limits.h> | |
2413 | #else | |
2414 | # include <assert.h> | |
2415 | #endif | |
2416 | ||
2417 | #undef $2 | |
2418 | ||
2419 | /* Override any GCC internal prototype to avoid an error. | |
2420 | Use char because int might match the return type of a GCC | |
2421 | builtin and then its argument prototype would still apply. */ | |
2422 | #ifdef __cplusplus | |
2423 | extern "C" | |
2424 | #endif | |
2425 | char $2 (); | |
2426 | /* The GNU C library defines this for functions which it implements | |
2427 | to always fail with ENOSYS. Some functions are actually named | |
2428 | something starting with __ and the normal name is an alias. */ | |
2429 | #if defined __stub_$2 || defined __stub___$2 | |
2430 | choke me | |
2431 | #endif | |
2432 | ||
2433 | int | |
2434 | main () | |
2435 | { | |
2436 | return $2 (); | |
2437 | ; | |
2438 | return 0; | |
2439 | } | |
2440 | _ACEOF | |
2441 | if ac_fn_c_try_link "$LINENO"; then : | |
2442 | eval "$3=yes" | |
2443 | else | |
2444 | eval "$3=no" | |
2445 | fi | |
2446 | rm -f core conftest.err conftest.$ac_objext \ | |
2447 | conftest$ac_exeext conftest.$ac_ext | |
2448 | fi | |
2449 | eval ac_res=\$$3 | |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2451 | $as_echo "$ac_res" >&6; } | |
2452 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2453 | ||
2454 | } # ac_fn_c_check_func | |
2455 | ||
2456 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2457 | # ---------------------------------------------------- | |
2458 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2459 | # INCLUDES, setting cache variable VAR accordingly. | |
2460 | ac_fn_c_check_member () | |
2461 | { | |
2462 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2464 | $as_echo_n "checking for $2.$3... " >&6; } | |
2465 | if eval \${$4+:} false; then : | |
2466 | $as_echo_n "(cached) " >&6 | |
2467 | else | |
2468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2469 | /* end confdefs.h. */ | |
2470 | $5 | |
2471 | int | |
2472 | main () | |
2473 | { | |
2474 | static $2 ac_aggr; | |
2475 | if (ac_aggr.$3) | |
2476 | return 0; | |
2477 | ; | |
2478 | return 0; | |
2479 | } | |
2480 | _ACEOF | |
2481 | if ac_fn_c_try_compile "$LINENO"; then : | |
2482 | eval "$4=yes" | |
2483 | else | |
2484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2485 | /* end confdefs.h. */ | |
2486 | $5 | |
2487 | int | |
2488 | main () | |
2489 | { | |
2490 | static $2 ac_aggr; | |
2491 | if (sizeof ac_aggr.$3) | |
2492 | return 0; | |
2493 | ; | |
2494 | return 0; | |
2495 | } | |
2496 | _ACEOF | |
2497 | if ac_fn_c_try_compile "$LINENO"; then : | |
2498 | eval "$4=yes" | |
2499 | else | |
2500 | eval "$4=no" | |
2501 | fi | |
2502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2503 | fi | |
2504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2505 | fi | |
2506 | eval ac_res=\$$4 | |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2508 | $as_echo "$ac_res" >&6; } | |
2509 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2510 | ||
2511 | } # ac_fn_c_check_member | |
2512 | ||
a48ff3ef MF |
2513 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2514 | # --------------------------------------------- | |
2515 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2516 | # accordingly. | |
2517 | ac_fn_c_check_decl () | |
2518 | { | |
2519 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2520 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2521 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2523 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2524 | if eval \${$3+:} false; then : | |
2525 | $as_echo_n "(cached) " >&6 | |
2526 | else | |
2527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2528 | /* end confdefs.h. */ | |
2529 | $4 | |
2530 | int | |
2531 | main () | |
2532 | { | |
2533 | #ifndef $as_decl_name | |
2534 | #ifdef __cplusplus | |
2535 | (void) $as_decl_use; | |
2536 | #else | |
2537 | (void) $as_decl_name; | |
2538 | #endif | |
2539 | #endif | |
2540 | ||
2541 | ; | |
2542 | return 0; | |
2543 | } | |
2544 | _ACEOF | |
2545 | if ac_fn_c_try_compile "$LINENO"; then : | |
2546 | eval "$3=yes" | |
2547 | else | |
2548 | eval "$3=no" | |
2549 | fi | |
2550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2551 | fi | |
2552 | eval ac_res=\$$3 | |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2554 | $as_echo "$ac_res" >&6; } | |
2555 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2556 | ||
2557 | } # ac_fn_c_check_decl | |
2558 | ||
b15c5d7a MF |
2559 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2560 | # ------------------------------------------- | |
2561 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2562 | # variable VAR accordingly. | |
2563 | ac_fn_c_check_type () | |
2564 | { | |
2565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2567 | $as_echo_n "checking for $2... " >&6; } | |
2568 | if eval \${$3+:} false; then : | |
2569 | $as_echo_n "(cached) " >&6 | |
2570 | else | |
2571 | eval "$3=no" | |
2572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2573 | /* end confdefs.h. */ | |
2574 | $4 | |
2575 | int | |
2576 | main () | |
2577 | { | |
2578 | if (sizeof ($2)) | |
2579 | return 0; | |
2580 | ; | |
2581 | return 0; | |
2582 | } | |
2583 | _ACEOF | |
2584 | if ac_fn_c_try_compile "$LINENO"; then : | |
2585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2586 | /* end confdefs.h. */ | |
2587 | $4 | |
2588 | int | |
2589 | main () | |
2590 | { | |
2591 | if (sizeof (($2))) | |
2592 | return 0; | |
2593 | ; | |
2594 | return 0; | |
2595 | } | |
2596 | _ACEOF | |
2597 | if ac_fn_c_try_compile "$LINENO"; then : | |
2598 | ||
2599 | else | |
2600 | eval "$3=yes" | |
2601 | fi | |
2602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2603 | fi | |
2604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2605 | fi | |
2606 | eval ac_res=\$$3 | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2608 | $as_echo "$ac_res" >&6; } | |
2609 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2610 | ||
2611 | } # ac_fn_c_check_type | |
81ecdfbb | 2612 | cat >config.log <<_ACEOF |
b7026657 AC |
2613 | This file contains any messages produced by compilers while |
2614 | running configure, to aid debugging if configure makes a mistake. | |
2615 | ||
6bddc3e8 | 2616 | It was created by sim $as_me 0, which was |
d0ac1c44 | 2617 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
2618 | |
2619 | $ $0 $@ | |
2620 | ||
2621 | _ACEOF | |
81ecdfbb | 2622 | exec 5>>config.log |
b7026657 AC |
2623 | { |
2624 | cat <<_ASUNAME | |
2625 | ## --------- ## | |
2626 | ## Platform. ## | |
2627 | ## --------- ## | |
2628 | ||
2629 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2630 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2631 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2632 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2633 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2634 | ||
2635 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2636 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2637 | ||
2638 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2639 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2640 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 2641 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
b7026657 AC |
2642 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2643 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2644 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2645 | ||
2646 | _ASUNAME | |
2647 | ||
2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2649 | for as_dir in $PATH | |
2650 | do | |
2651 | IFS=$as_save_IFS | |
2652 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2653 | $as_echo "PATH: $as_dir" |
2654 | done | |
2655 | IFS=$as_save_IFS | |
b7026657 AC |
2656 | |
2657 | } >&5 | |
2658 | ||
2659 | cat >&5 <<_ACEOF | |
2660 | ||
2661 | ||
2662 | ## ----------- ## | |
2663 | ## Core tests. ## | |
2664 | ## ----------- ## | |
2665 | ||
2666 | _ACEOF | |
2667 | ||
2668 | ||
2669 | # Keep a trace of the command line. | |
2670 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2671 | # Strip out --silent because we don't want to record it for future runs. | |
2672 | # Also quote any args containing shell meta-characters. | |
2673 | # Make two passes to allow for proper duplicate-argument suppression. | |
2674 | ac_configure_args= | |
2675 | ac_configure_args0= | |
2676 | ac_configure_args1= | |
b7026657 AC |
2677 | ac_must_keep_next=false |
2678 | for ac_pass in 1 2 | |
2679 | do | |
2680 | for ac_arg | |
2681 | do | |
2682 | case $ac_arg in | |
2683 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2684 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2685 | | -silent | --silent | --silen | --sile | --sil) | |
2686 | continue ;; | |
81ecdfbb RW |
2687 | *\'*) |
2688 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
2689 | esac |
2690 | case $ac_pass in | |
81ecdfbb | 2691 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 2692 | 2) |
81ecdfbb | 2693 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
2694 | if test $ac_must_keep_next = true; then |
2695 | ac_must_keep_next=false # Got value, back to normal. | |
2696 | else | |
2697 | case $ac_arg in | |
2698 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2699 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2700 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2701 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2702 | case "$ac_configure_args0 " in | |
2703 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2704 | esac | |
2705 | ;; | |
2706 | -* ) ac_must_keep_next=true ;; | |
2707 | esac | |
2708 | fi | |
81ecdfbb | 2709 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
2710 | ;; |
2711 | esac | |
2712 | done | |
2713 | done | |
81ecdfbb RW |
2714 | { ac_configure_args0=; unset ac_configure_args0;} |
2715 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
2716 | |
2717 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2718 | # config.log. We remove comments because anyway the quotes in there | |
2719 | # would cause problems or look ugly. | |
81ecdfbb RW |
2720 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2721 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
2722 | trap 'exit_status=$? |
2723 | # Save into config.log some information that might help in debugging. | |
2724 | { | |
2725 | echo | |
2726 | ||
d0ac1c44 | 2727 | $as_echo "## ---------------- ## |
b7026657 | 2728 | ## Cache variables. ## |
d0ac1c44 | 2729 | ## ---------------- ##" |
b7026657 AC |
2730 | echo |
2731 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2732 | ( |
2733 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2734 | eval ac_val=\$$ac_var | |
2735 | case $ac_val in #( | |
2736 | *${as_nl}*) | |
2737 | case $ac_var in #( | |
2738 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2739 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2740 | esac | |
2741 | case $ac_var in #( | |
2742 | _ | IFS | as_nl) ;; #( | |
2743 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2744 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2745 | esac ;; | |
2746 | esac | |
2747 | done | |
b7026657 | 2748 | (set) 2>&1 | |
81ecdfbb RW |
2749 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2750 | *${as_nl}ac_space=\ *) | |
b7026657 | 2751 | sed -n \ |
81ecdfbb RW |
2752 | "s/'\''/'\''\\\\'\'''\''/g; |
2753 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2754 | ;; #( | |
b7026657 | 2755 | *) |
81ecdfbb | 2756 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 2757 | ;; |
81ecdfbb RW |
2758 | esac | |
2759 | sort | |
2760 | ) | |
b7026657 AC |
2761 | echo |
2762 | ||
d0ac1c44 | 2763 | $as_echo "## ----------------- ## |
b7026657 | 2764 | ## Output variables. ## |
d0ac1c44 | 2765 | ## ----------------- ##" |
b7026657 AC |
2766 | echo |
2767 | for ac_var in $ac_subst_vars | |
2768 | do | |
81ecdfbb RW |
2769 | eval ac_val=\$$ac_var |
2770 | case $ac_val in | |
2771 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2772 | esac | |
2773 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2774 | done | sort |
2775 | echo | |
2776 | ||
2777 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2778 | $as_echo "## ------------------- ## |
81ecdfbb | 2779 | ## File substitutions. ## |
d0ac1c44 | 2780 | ## ------------------- ##" |
b7026657 AC |
2781 | echo |
2782 | for ac_var in $ac_subst_files | |
2783 | do | |
81ecdfbb RW |
2784 | eval ac_val=\$$ac_var |
2785 | case $ac_val in | |
2786 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2787 | esac | |
2788 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
2789 | done | sort |
2790 | echo | |
2791 | fi | |
2792 | ||
2793 | if test -s confdefs.h; then | |
d0ac1c44 | 2794 | $as_echo "## ----------- ## |
b7026657 | 2795 | ## confdefs.h. ## |
d0ac1c44 | 2796 | ## ----------- ##" |
b7026657 | 2797 | echo |
81ecdfbb | 2798 | cat confdefs.h |
b7026657 | 2799 | echo |
0fda6bd2 | 2800 | fi |
b7026657 | 2801 | test "$ac_signal" != 0 && |
81ecdfbb RW |
2802 | $as_echo "$as_me: caught signal $ac_signal" |
2803 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 2804 | } >&5 |
81ecdfbb RW |
2805 | rm -f core *.core core.conftest.* && |
2806 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 2807 | exit $exit_status |
81ecdfbb | 2808 | ' 0 |
b7026657 | 2809 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2810 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
2811 | done |
2812 | ac_signal=0 | |
2813 | ||
2814 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2815 | rm -f -r conftest* confdefs.h |
2816 | ||
2817 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
2818 | |
2819 | # Predefined preprocessor variables. | |
2820 | ||
2821 | cat >>confdefs.h <<_ACEOF | |
2822 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2823 | _ACEOF | |
2824 | ||
b7026657 AC |
2825 | cat >>confdefs.h <<_ACEOF |
2826 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2827 | _ACEOF | |
2828 | ||
b7026657 AC |
2829 | cat >>confdefs.h <<_ACEOF |
2830 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2831 | _ACEOF | |
2832 | ||
b7026657 AC |
2833 | cat >>confdefs.h <<_ACEOF |
2834 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2835 | _ACEOF | |
2836 | ||
b7026657 AC |
2837 | cat >>confdefs.h <<_ACEOF |
2838 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2839 | _ACEOF | |
2840 | ||
81ecdfbb RW |
2841 | cat >>confdefs.h <<_ACEOF |
2842 | #define PACKAGE_URL "$PACKAGE_URL" | |
2843 | _ACEOF | |
2844 | ||
b7026657 AC |
2845 | |
2846 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2847 | # Prefer an explicitly selected file to automatically selected ones. |
2848 | ac_site_file1=NONE | |
2849 | ac_site_file2=NONE | |
2850 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2851 | # We do not want a PATH search for config.site. |
2852 | case $CONFIG_SITE in #(( | |
2853 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2854 | */*) ac_site_file1=$CONFIG_SITE;; | |
2855 | *) ac_site_file1=./$CONFIG_SITE;; | |
2856 | esac | |
81ecdfbb RW |
2857 | elif test "x$prefix" != xNONE; then |
2858 | ac_site_file1=$prefix/share/config.site | |
2859 | ac_site_file2=$prefix/etc/config.site | |
2860 | else | |
2861 | ac_site_file1=$ac_default_prefix/share/config.site | |
2862 | ac_site_file2=$ac_default_prefix/etc/config.site | |
c906108c | 2863 | fi |
81ecdfbb RW |
2864 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2865 | do | |
2866 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2867 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2869 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 2870 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2871 | . "$ac_site_file" \ |
2872 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2873 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2874 | as_fn_error $? "failed to load site script $ac_site_file | |
2875 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c SS |
2876 | fi |
2877 | done | |
2878 | ||
2879 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2880 | # Some versions of bash will fail to source /dev/null (special files |
2881 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2882 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2884 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2885 | case $cache_file in |
81ecdfbb RW |
2886 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2887 | *) . "./$cache_file";; | |
b7026657 AC |
2888 | esac |
2889 | fi | |
c906108c | 2890 | else |
81ecdfbb RW |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2892 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 | 2893 | >$cache_file |
c906108c SS |
2894 | fi |
2895 | ||
b15c5d7a MF |
2896 | as_fn_append ac_header_list " dlfcn.h" |
2897 | as_fn_append ac_header_list " fcntl.h" | |
2898 | as_fn_append ac_header_list " fpu_control.h" | |
2899 | as_fn_append ac_header_list " termios.h" | |
2900 | as_fn_append ac_header_list " unistd.h" | |
2901 | as_fn_append ac_header_list " utime.h" | |
2902 | as_fn_append ac_header_list " linux/if_tun.h" | |
2903 | as_fn_append ac_header_list " linux/mii.h" | |
2904 | as_fn_append ac_header_list " linux/types.h" | |
2905 | as_fn_append ac_header_list " net/if.h" | |
2906 | as_fn_append ac_header_list " netinet/in.h" | |
2907 | as_fn_append ac_header_list " netinet/tcp.h" | |
2908 | as_fn_append ac_header_list " sys/ioctl.h" | |
2909 | as_fn_append ac_header_list " sys/mman.h" | |
a48ff3ef | 2910 | as_fn_append ac_header_list " sys/mount.h" |
b15c5d7a MF |
2911 | as_fn_append ac_header_list " sys/param.h" |
2912 | as_fn_append ac_header_list " sys/resource.h" | |
b15c5d7a MF |
2913 | as_fn_append ac_header_list " sys/socket.h" |
2914 | as_fn_append ac_header_list " sys/stat.h" | |
a48ff3ef MF |
2915 | as_fn_append ac_header_list " sys/statfs.h" |
2916 | as_fn_append ac_header_list " sys/termio.h" | |
2917 | as_fn_append ac_header_list " sys/termios.h" | |
2918 | as_fn_append ac_header_list " sys/types.h" | |
2919 | as_fn_append ac_header_list " sys/vfs.h" | |
b15c5d7a | 2920 | as_fn_append ac_func_list " __setfpucw" |
a48ff3ef | 2921 | as_fn_append ac_func_list " access" |
b15c5d7a MF |
2922 | as_fn_append ac_func_list " aint" |
2923 | as_fn_append ac_func_list " anint" | |
a48ff3ef MF |
2924 | as_fn_append ac_func_list " cfgetispeed" |
2925 | as_fn_append ac_func_list " cfgetospeed" | |
2926 | as_fn_append ac_func_list " cfsetispeed" | |
2927 | as_fn_append ac_func_list " cfsetospeed" | |
2928 | as_fn_append ac_func_list " chdir" | |
b15c5d7a | 2929 | as_fn_append ac_func_list " chmod" |
a48ff3ef MF |
2930 | as_fn_append ac_func_list " dup" |
2931 | as_fn_append ac_func_list " dup2" | |
b15c5d7a MF |
2932 | as_fn_append ac_func_list " execv" |
2933 | as_fn_append ac_func_list " execve" | |
a48ff3ef | 2934 | as_fn_append ac_func_list " fcntl" |
b15c5d7a | 2935 | as_fn_append ac_func_list " fork" |
a48ff3ef MF |
2936 | as_fn_append ac_func_list " fstat" |
2937 | as_fn_append ac_func_list " fstatfs" | |
b15c5d7a | 2938 | as_fn_append ac_func_list " ftruncate" |
a48ff3ef | 2939 | as_fn_append ac_func_list " getdirentries" |
b15c5d7a | 2940 | as_fn_append ac_func_list " getegid" |
a48ff3ef | 2941 | as_fn_append ac_func_list " geteuid" |
b15c5d7a | 2942 | as_fn_append ac_func_list " getgid" |
a48ff3ef MF |
2943 | as_fn_append ac_func_list " getpid" |
2944 | as_fn_append ac_func_list " getppid" | |
b15c5d7a | 2945 | as_fn_append ac_func_list " getrusage" |
a48ff3ef | 2946 | as_fn_append ac_func_list " gettimeofday" |
b15c5d7a | 2947 | as_fn_append ac_func_list " getuid" |
a48ff3ef | 2948 | as_fn_append ac_func_list " ioctl" |
b15c5d7a | 2949 | as_fn_append ac_func_list " kill" |
a48ff3ef MF |
2950 | as_fn_append ac_func_list " link" |
2951 | as_fn_append ac_func_list " lseek" | |
b15c5d7a MF |
2952 | as_fn_append ac_func_list " mmap" |
2953 | as_fn_append ac_func_list " munmap" | |
a48ff3ef | 2954 | as_fn_append ac_func_list " pipe" |
b15c5d7a MF |
2955 | as_fn_append ac_func_list " posix_fallocate" |
2956 | as_fn_append ac_func_list " pread" | |
a48ff3ef MF |
2957 | as_fn_append ac_func_list " rmdir" |
2958 | as_fn_append ac_func_list " setregid" | |
2959 | as_fn_append ac_func_list " setreuid" | |
b15c5d7a | 2960 | as_fn_append ac_func_list " setgid" |
a48ff3ef | 2961 | as_fn_append ac_func_list " setuid" |
b15c5d7a | 2962 | as_fn_append ac_func_list " sigaction" |
a48ff3ef | 2963 | as_fn_append ac_func_list " sigprocmask" |
b15c5d7a | 2964 | as_fn_append ac_func_list " sqrt" |
a48ff3ef | 2965 | as_fn_append ac_func_list " stat" |
b15c5d7a | 2966 | as_fn_append ac_func_list " strsignal" |
a48ff3ef MF |
2967 | as_fn_append ac_func_list " symlink" |
2968 | as_fn_append ac_func_list " tcdrain" | |
2969 | as_fn_append ac_func_list " tcflow" | |
2970 | as_fn_append ac_func_list " tcflush" | |
2971 | as_fn_append ac_func_list " tcgetattr" | |
2972 | as_fn_append ac_func_list " tcgetpgrp" | |
2973 | as_fn_append ac_func_list " tcsendbreak" | |
2974 | as_fn_append ac_func_list " tcsetattr" | |
2975 | as_fn_append ac_func_list " tcsetpgrp" | |
b15c5d7a MF |
2976 | as_fn_append ac_func_list " time" |
2977 | as_fn_append ac_func_list " truncate" | |
a48ff3ef MF |
2978 | as_fn_append ac_func_list " umask" |
2979 | as_fn_append ac_func_list " unlink" | |
b15c5d7a | 2980 | as_fn_append ac_func_list " utime" |
b7026657 AC |
2981 | # Check that the precious variables saved in the cache have kept the same |
2982 | # value. | |
2983 | ac_cache_corrupted=false | |
81ecdfbb | 2984 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2985 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2986 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2987 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2988 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2989 | case $ac_old_set,$ac_new_set in |
2990 | set,) | |
81ecdfbb RW |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2992 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2993 | ac_cache_corrupted=: ;; |
2994 | ,set) | |
81ecdfbb RW |
2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2996 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2997 | ac_cache_corrupted=: ;; |
2998 | ,);; | |
2999 | *) | |
3000 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
3001 | # differences in whitespace do not lead to failure. |
3002 | ac_old_val_w=`echo x $ac_old_val` | |
3003 | ac_new_val_w=`echo x $ac_new_val` | |
3004 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3006 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3007 | ac_cache_corrupted=: | |
3008 | else | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3010 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3011 | eval $ac_var=\$ac_old_val | |
3012 | fi | |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3014 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3016 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
3017 | fi;; |
3018 | esac | |
3019 | # Pass precious variables to config.status. | |
3020 | if test "$ac_new_set" = set; then | |
3021 | case $ac_new_val in | |
81ecdfbb | 3022 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
3023 | *) ac_arg=$ac_var=$ac_new_val ;; |
3024 | esac | |
3025 | case " $ac_configure_args " in | |
3026 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 3027 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 | 3028 | esac |
c906108c | 3029 | fi |
b7026657 AC |
3030 | done |
3031 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3033 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3035 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 3036 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
c906108c | 3037 | fi |
81ecdfbb RW |
3038 | ## -------------------- ## |
3039 | ## Main body of script. ## | |
3040 | ## -------------------- ## | |
c906108c | 3041 | |
fdd6fa61 AG |
3042 | ac_ext=c |
3043 | ac_cpp='$CPP $CPPFLAGS' | |
3044 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3045 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3046 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3047 | ||
c906108c SS |
3048 | |
3049 | ||
8c379db2 TT |
3050 | |
3051 | ||
3052 | ||
6dd65fc0 MF |
3053 | |
3054 | ||
3055 | # Check whether --with-pkgversion was given. | |
3056 | if test "${with_pkgversion+set}" = set; then : | |
3057 | withval=$with_pkgversion; case "$withval" in | |
3058 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
3059 | no) PKGVERSION= ;; | |
3060 | *) PKGVERSION="($withval) " ;; | |
3061 | esac | |
3062 | else | |
3063 | PKGVERSION="(SIM) " | |
3064 | ||
3065 | fi | |
3066 | ||
3067 | ||
3068 | ||
3069 | ||
3070 | cat >>confdefs.h <<_ACEOF | |
3071 | #define PKGVERSION "$PKGVERSION" | |
3072 | _ACEOF | |
3073 | ||
3074 | ||
3075 | ||
3076 | # Check whether --with-bugurl was given. | |
3077 | if test "${with_bugurl+set}" = set; then : | |
3078 | withval=$with_bugurl; case "$withval" in | |
3079 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
3080 | no) BUGURL= | |
3081 | ;; | |
3082 | *) BUGURL="$withval" | |
3083 | ;; | |
3084 | esac | |
3085 | else | |
3086 | BUGURL="$PACKAGE_BUGREPORT" | |
3087 | ||
3088 | fi | |
3089 | ||
3090 | case ${BUGURL} in | |
3091 | "") | |
3092 | REPORT_BUGS_TO= | |
3093 | REPORT_BUGS_TEXI= | |
3094 | ;; | |
3095 | *) | |
3096 | REPORT_BUGS_TO="<$BUGURL>" | |
3097 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
3098 | ;; | |
3099 | esac; | |
3100 | ||
3101 | ||
3102 | ||
3103 | ||
3104 | cat >>confdefs.h <<_ACEOF | |
3105 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
3106 | _ACEOF | |
3107 | ||
3108 | ||
b15c5d7a MF |
3109 | ac_config_headers="$ac_config_headers config.h" |
3110 | ||
3111 | ||
6bddc3e8 MF |
3112 | ac_aux_dir= |
3113 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3114 | if test -f "$ac_dir/install-sh"; then | |
3115 | ac_aux_dir=$ac_dir | |
3116 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3117 | break | |
3118 | elif test -f "$ac_dir/install.sh"; then | |
3119 | ac_aux_dir=$ac_dir | |
3120 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3121 | break | |
3122 | elif test -f "$ac_dir/shtool"; then | |
3123 | ac_aux_dir=$ac_dir | |
3124 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3125 | break | |
b7026657 AC |
3126 | fi |
3127 | done | |
6bddc3e8 MF |
3128 | if test -z "$ac_aux_dir"; then |
3129 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
c906108c SS |
3130 | fi |
3131 | ||
6bddc3e8 MF |
3132 | # These three variables are undocumented and unsupported, |
3133 | # and are intended to be withdrawn in a future Autoconf release. | |
3134 | # They can cause serious problems if a builder's source tree is in a directory | |
3135 | # whose full name contains unusual characters. | |
3136 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3137 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3138 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
81ecdfbb | 3139 | |
6bddc3e8 MF |
3140 | |
3141 | # Make sure we can run config.sub. | |
3142 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3143 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3144 | ||
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3146 | $as_echo_n "checking build system type... " >&6; } | |
3147 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 3148 | $as_echo_n "(cached) " >&6 |
c906108c | 3149 | else |
6bddc3e8 MF |
3150 | ac_build_alias=$build_alias |
3151 | test "x$ac_build_alias" = x && | |
3152 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3153 | test "x$ac_build_alias" = x && | |
3154 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3155 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3156 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
b7026657 AC |
3157 | |
3158 | fi | |
6bddc3e8 MF |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3160 | $as_echo "$ac_cv_build" >&6; } | |
3161 | case $ac_cv_build in | |
3162 | *-*-*) ;; | |
3163 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
81ecdfbb | 3164 | esac |
6bddc3e8 MF |
3165 | build=$ac_cv_build |
3166 | ac_save_IFS=$IFS; IFS='-' | |
3167 | set x $ac_cv_build | |
3168 | shift | |
3169 | build_cpu=$1 | |
3170 | build_vendor=$2 | |
3171 | shift; shift | |
3172 | # Remember, the first character of IFS is used to create $*, | |
3173 | # except with old shells: | |
3174 | build_os=$* | |
3175 | IFS=$ac_save_IFS | |
3176 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 3177 | |
6bddc3e8 MF |
3178 | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3180 | $as_echo_n "checking host system type... " >&6; } | |
3181 | if ${ac_cv_host+:} false; then : | |
81ecdfbb | 3182 | $as_echo_n "(cached) " >&6 |
b7026657 | 3183 | else |
6bddc3e8 MF |
3184 | if test "x$host_alias" = x; then |
3185 | ac_cv_host=$ac_cv_build | |
b7026657 | 3186 | else |
6bddc3e8 MF |
3187 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3188 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
b7026657 | 3189 | fi |
6bddc3e8 | 3190 | |
fdd6fa61 | 3191 | fi |
6bddc3e8 MF |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3193 | $as_echo "$ac_cv_host" >&6; } | |
3194 | case $ac_cv_host in | |
3195 | *-*-*) ;; | |
3196 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3197 | esac | |
3198 | host=$ac_cv_host | |
3199 | ac_save_IFS=$IFS; IFS='-' | |
3200 | set x $ac_cv_host | |
3201 | shift | |
3202 | host_cpu=$1 | |
3203 | host_vendor=$2 | |
3204 | shift; shift | |
3205 | # Remember, the first character of IFS is used to create $*, | |
3206 | # except with old shells: | |
3207 | host_os=$* | |
3208 | IFS=$ac_save_IFS | |
3209 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fdd6fa61 | 3210 | |
fdd6fa61 | 3211 | |
6bddc3e8 MF |
3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3213 | $as_echo_n "checking target system type... " >&6; } | |
3214 | if ${ac_cv_target+:} false; then : | |
81ecdfbb | 3215 | $as_echo_n "(cached) " >&6 |
b7026657 | 3216 | else |
6bddc3e8 MF |
3217 | if test "x$target_alias" = x; then |
3218 | ac_cv_target=$ac_cv_host | |
c906108c | 3219 | else |
6bddc3e8 MF |
3220 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
3221 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
3222 | fi | |
3223 | ||
3224 | fi | |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
3226 | $as_echo "$ac_cv_target" >&6; } | |
3227 | case $ac_cv_target in | |
3228 | *-*-*) ;; | |
3229 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
3230 | esac | |
3231 | target=$ac_cv_target | |
3232 | ac_save_IFS=$IFS; IFS='-' | |
3233 | set x $ac_cv_target | |
3234 | shift | |
3235 | target_cpu=$1 | |
3236 | target_vendor=$2 | |
3237 | shift; shift | |
3238 | # Remember, the first character of IFS is used to create $*, | |
3239 | # except with old shells: | |
3240 | target_os=$* | |
3241 | IFS=$ac_save_IFS | |
3242 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
3243 | ||
3244 | ||
3245 | # The aliases save the names the user supplied, while $host etc. | |
3246 | # will get canonicalized. | |
3247 | test -n "$target_alias" && | |
3248 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3249 | NONENONEs,x,x, && | |
3250 | program_prefix=${target_alias}- | |
c2783492 MF |
3251 | # Expand $ac_aux_dir to an absolute path. |
3252 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
6bddc3e8 | 3253 | |
c2783492 MF |
3254 | ac_ext=c |
3255 | ac_cpp='$CPP $CPPFLAGS' | |
3256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3259 | if test -n "$ac_tool_prefix"; then | |
3260 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3261 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3263 | $as_echo_n "checking for $ac_word... " >&6; } | |
3264 | if ${ac_cv_prog_CC+:} false; then : | |
3265 | $as_echo_n "(cached) " >&6 | |
8c379db2 | 3266 | else |
c2783492 MF |
3267 | if test -n "$CC"; then |
3268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3269 | else | |
3270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3271 | for as_dir in $PATH | |
3272 | do | |
3273 | IFS=$as_save_IFS | |
3274 | test -z "$as_dir" && as_dir=. | |
3275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3277 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3279 | break 2 | |
3280 | fi | |
3281 | done | |
3282 | done | |
3283 | IFS=$as_save_IFS | |
8c379db2 | 3284 | |
c2783492 MF |
3285 | fi |
3286 | fi | |
3287 | CC=$ac_cv_prog_CC | |
3288 | if test -n "$CC"; then | |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3290 | $as_echo "$CC" >&6; } | |
8c379db2 | 3291 | else |
c2783492 MF |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3293 | $as_echo "no" >&6; } | |
8c379db2 TT |
3294 | fi |
3295 | ||
6bddc3e8 | 3296 | |
c2783492 MF |
3297 | fi |
3298 | if test -z "$ac_cv_prog_CC"; then | |
3299 | ac_ct_CC=$CC | |
3300 | # Extract the first word of "gcc", so it can be a program name with args. | |
3301 | set dummy gcc; ac_word=$2 | |
3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3303 | $as_echo_n "checking for $ac_word... " >&6; } | |
3304 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bddc3e8 MF |
3305 | $as_echo_n "(cached) " >&6 |
3306 | else | |
c2783492 MF |
3307 | if test -n "$ac_ct_CC"; then |
3308 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3309 | else | |
3310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bddc3e8 MF |
3311 | for as_dir in $PATH |
3312 | do | |
3313 | IFS=$as_save_IFS | |
3314 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3315 | for ac_exec_ext in '' $ac_executable_extensions; do |
3316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3317 | ac_cv_prog_ac_ct_CC="gcc" | |
3318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3319 | break 2 | |
3320 | fi | |
3321 | done | |
6bddc3e8 MF |
3322 | done |
3323 | IFS=$as_save_IFS | |
3324 | ||
6bddc3e8 | 3325 | fi |
6bddc3e8 | 3326 | fi |
c2783492 MF |
3327 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3328 | if test -n "$ac_ct_CC"; then | |
3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3330 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 | 3331 | else |
c2783492 MF |
3332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3333 | $as_echo "no" >&6; } | |
6bddc3e8 MF |
3334 | fi |
3335 | ||
c2783492 MF |
3336 | if test "x$ac_ct_CC" = x; then |
3337 | CC="" | |
3338 | else | |
3339 | case $cross_compiling:$ac_tool_warned in | |
3340 | yes:) | |
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3343 | ac_tool_warned=yes ;; | |
3344 | esac | |
3345 | CC=$ac_ct_CC | |
3346 | fi | |
6bddc3e8 | 3347 | else |
c2783492 | 3348 | CC="$ac_cv_prog_CC" |
6bddc3e8 MF |
3349 | fi |
3350 | ||
c2783492 MF |
3351 | if test -z "$CC"; then |
3352 | if test -n "$ac_tool_prefix"; then | |
3353 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3354 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6bddc3e8 MF |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3356 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3357 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3358 | $as_echo_n "(cached) " >&6 |
3359 | else | |
c2783492 MF |
3360 | if test -n "$CC"; then |
3361 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 MF |
3362 | else |
3363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3364 | for as_dir in $PATH | |
3365 | do | |
3366 | IFS=$as_save_IFS | |
3367 | test -z "$as_dir" && as_dir=. | |
3368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3370 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6bddc3e8 MF |
3371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3372 | break 2 | |
3373 | fi | |
3374 | done | |
3375 | done | |
3376 | IFS=$as_save_IFS | |
3377 | ||
3378 | fi | |
3379 | fi | |
c2783492 MF |
3380 | CC=$ac_cv_prog_CC |
3381 | if test -n "$CC"; then | |
3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3383 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3384 | else |
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3386 | $as_echo "no" >&6; } | |
3387 | fi | |
3388 | ||
3389 | ||
c2783492 | 3390 | fi |
6bddc3e8 | 3391 | fi |
c2783492 MF |
3392 | if test -z "$CC"; then |
3393 | # Extract the first word of "cc", so it can be a program name with args. | |
3394 | set dummy cc; ac_word=$2 | |
6bddc3e8 MF |
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3396 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3397 | if ${ac_cv_prog_CC+:} false; then : |
6bddc3e8 MF |
3398 | $as_echo_n "(cached) " >&6 |
3399 | else | |
c2783492 MF |
3400 | if test -n "$CC"; then |
3401 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bddc3e8 | 3402 | else |
c2783492 | 3403 | ac_prog_rejected=no |
6bddc3e8 MF |
3404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3405 | for as_dir in $PATH | |
3406 | do | |
3407 | IFS=$as_save_IFS | |
3408 | test -z "$as_dir" && as_dir=. | |
3409 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3410 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 MF |
3411 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3412 | ac_prog_rejected=yes | |
3413 | continue | |
3414 | fi | |
3415 | ac_cv_prog_CC="cc" | |
6bddc3e8 MF |
3416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3417 | break 2 | |
3418 | fi | |
3419 | done | |
3420 | done | |
3421 | IFS=$as_save_IFS | |
3422 | ||
c2783492 MF |
3423 | if test $ac_prog_rejected = yes; then |
3424 | # We found a bogon in the path, so make sure we never use it. | |
3425 | set dummy $ac_cv_prog_CC | |
3426 | shift | |
3427 | if test $# != 0; then | |
3428 | # We chose a different compiler from the bogus one. | |
3429 | # However, it has the same basename, so the bogon will be chosen | |
3430 | # first if we set CC to just the basename; use the full file name. | |
3431 | shift | |
3432 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3433 | fi | |
6bddc3e8 MF |
3434 | fi |
3435 | fi | |
c2783492 MF |
3436 | fi |
3437 | CC=$ac_cv_prog_CC | |
3438 | if test -n "$CC"; then | |
3439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3440 | $as_echo "$CC" >&6; } | |
6bddc3e8 MF |
3441 | else |
3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3443 | $as_echo "no" >&6; } | |
3444 | fi | |
3445 | ||
6bddc3e8 MF |
3446 | |
3447 | fi | |
c2783492 MF |
3448 | if test -z "$CC"; then |
3449 | if test -n "$ac_tool_prefix"; then | |
3450 | for ac_prog in cl.exe | |
3451 | do | |
3452 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3453 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3455 | $as_echo_n "checking for $ac_word... " >&6; } | |
3456 | if ${ac_cv_prog_CC+:} false; then : | |
6bddc3e8 MF |
3457 | $as_echo_n "(cached) " >&6 |
3458 | else | |
c2783492 MF |
3459 | if test -n "$CC"; then |
3460 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3461 | else | |
3462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3463 | for as_dir in $PATH | |
6bddc3e8 MF |
3464 | do |
3465 | IFS=$as_save_IFS | |
3466 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
3467 | for ac_exec_ext in '' $ac_executable_extensions; do |
3468 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3469 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3471 | break 2 | |
3472 | fi | |
3473 | done | |
6bddc3e8 MF |
3474 | done |
3475 | IFS=$as_save_IFS | |
3476 | ||
3477 | fi | |
6bddc3e8 | 3478 | fi |
c2783492 MF |
3479 | CC=$ac_cv_prog_CC |
3480 | if test -n "$CC"; then | |
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3482 | $as_echo "$CC" >&6; } | |
3483 | else | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3485 | $as_echo "no" >&6; } | |
3486 | fi | |
6bddc3e8 | 3487 | |
c2783492 MF |
3488 | |
3489 | test -n "$CC" && break | |
3490 | done | |
3491 | fi | |
3492 | if test -z "$CC"; then | |
3493 | ac_ct_CC=$CC | |
3494 | for ac_prog in cl.exe | |
6bddc3e8 MF |
3495 | do |
3496 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3497 | set dummy $ac_prog; ac_word=$2 | |
3498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3499 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 3500 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
6bddc3e8 MF |
3501 | $as_echo_n "(cached) " >&6 |
3502 | else | |
c2783492 MF |
3503 | if test -n "$ac_ct_CC"; then |
3504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bddc3e8 MF |
3505 | else |
3506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3507 | for as_dir in $PATH | |
3508 | do | |
3509 | IFS=$as_save_IFS | |
3510 | test -z "$as_dir" && as_dir=. | |
3511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3512 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c2783492 | 3513 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6bddc3e8 MF |
3514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3515 | break 2 | |
3516 | fi | |
3517 | done | |
3518 | done | |
3519 | IFS=$as_save_IFS | |
3520 | ||
3521 | fi | |
3522 | fi | |
c2783492 MF |
3523 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3524 | if test -n "$ac_ct_CC"; then | |
3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3526 | $as_echo "$ac_ct_CC" >&6; } | |
6bddc3e8 MF |
3527 | else |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3529 | $as_echo "no" >&6; } | |
3530 | fi | |
3531 | ||
3532 | ||
c2783492 | 3533 | test -n "$ac_ct_CC" && break |
6bddc3e8 MF |
3534 | done |
3535 | ||
c2783492 MF |
3536 | if test "x$ac_ct_CC" = x; then |
3537 | CC="" | |
3538 | else | |
3539 | case $cross_compiling:$ac_tool_warned in | |
3540 | yes:) | |
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3542 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3543 | ac_tool_warned=yes ;; | |
6bddc3e8 | 3544 | esac |
c2783492 | 3545 | CC=$ac_ct_CC |
6bddc3e8 MF |
3546 | fi |
3547 | fi | |
3548 | ||
6bddc3e8 MF |
3549 | fi |
3550 | ||
3551 | ||
c2783492 MF |
3552 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3553 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3554 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3555 | See \`config.log' for more details" "$LINENO" 5; } | |
6bddc3e8 | 3556 | |
c2783492 MF |
3557 | # Provide some information about the compiler. |
3558 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3559 | set X $ac_compile | |
3560 | ac_compiler=$2 | |
3561 | for ac_option in --version -v -V -qversion; do | |
3562 | { { ac_try="$ac_compiler $ac_option >&5" | |
3563 | case "(($ac_try" in | |
3564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3565 | *) ac_try_echo=$ac_try;; | |
3566 | esac | |
3567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3568 | $as_echo "$ac_try_echo"; } >&5 | |
3569 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3570 | ac_status=$? | |
3571 | if test -s conftest.err; then | |
3572 | sed '10a\ | |
3573 | ... rest of stderr output deleted ... | |
3574 | 10q' conftest.err >conftest.er1 | |
3575 | cat conftest.er1 >&5 | |
3576 | fi | |
3577 | rm -f conftest.er1 conftest.err | |
3578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3579 | test $ac_status = 0; } | |
3580 | done | |
6bddc3e8 | 3581 | |
c2783492 MF |
3582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3583 | /* end confdefs.h. */ | |
6bddc3e8 | 3584 | |
c2783492 MF |
3585 | int |
3586 | main () | |
3587 | { | |
6bddc3e8 | 3588 | |
c2783492 MF |
3589 | ; |
3590 | return 0; | |
3591 | } | |
6bddc3e8 | 3592 | _ACEOF |
c2783492 MF |
3593 | ac_clean_files_save=$ac_clean_files |
3594 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3595 | # Try to create an executable without -o first, disregard a.out. | |
3596 | # It will help us diagnose broken compilers, and finding out an intuition | |
3597 | # of exeext. | |
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3599 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3600 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bddc3e8 | 3601 | |
c2783492 MF |
3602 | # The possible output files: |
3603 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bddc3e8 | 3604 | |
c2783492 MF |
3605 | ac_rmfiles= |
3606 | for ac_file in $ac_files | |
3607 | do | |
3608 | case $ac_file in | |
3609 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3610 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3611 | esac | |
3612 | done | |
3613 | rm -f $ac_rmfiles | |
81ecdfbb RW |
3614 | |
3615 | if { { ac_try="$ac_link_default" | |
3616 | case "(($ac_try" in | |
3617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3618 | *) ac_try_echo=$ac_try;; | |
3619 | esac | |
3620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3621 | $as_echo "$ac_try_echo"; } >&5 | |
3622 | (eval "$ac_link_default") 2>&5 | |
b7026657 | 3623 | ac_status=$? |
81ecdfbb RW |
3624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3625 | test $ac_status = 0; }; then : | |
3626 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3627 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3628 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3629 | # so that the user can short-circuit this test for compilers unknown to | |
3630 | # Autoconf. | |
3631 | for ac_file in $ac_files '' | |
b7026657 AC |
3632 | do |
3633 | test -f "$ac_file" || continue | |
3634 | case $ac_file in | |
81ecdfbb | 3635 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
3636 | ;; |
3637 | [ab].out ) | |
3638 | # We found the default executable, but exeext='' is most | |
3639 | # certainly right. | |
3640 | break;; | |
3641 | *.* ) | |
81ecdfbb RW |
3642 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3643 | then :; else | |
3644 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3645 | fi | |
3646 | # We set ac_cv_exeext here because the later test for it is not | |
3647 | # safe: cross compilers may not add the suffix if given an `-o' | |
3648 | # argument, so we may need to know it at that point already. | |
3649 | # Even if this section looks crufty: it has the advantage of | |
3650 | # actually working. | |
b7026657 AC |
3651 | break;; |
3652 | * ) | |
3653 | break;; | |
3654 | esac | |
3655 | done | |
81ecdfbb RW |
3656 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3657 | ||
b7026657 | 3658 | else |
81ecdfbb RW |
3659 | ac_file='' |
3660 | fi | |
81ecdfbb | 3661 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3663 | $as_echo "no" >&6; } | |
3664 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3665 | sed 's/^/| /' conftest.$ac_ext >&5 |
3666 | ||
81ecdfbb RW |
3667 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3669 | as_fn_error 77 "C compiler cannot create executables |
3670 | See \`config.log' for more details" "$LINENO" 5; } | |
3671 | else | |
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3673 | $as_echo "yes" >&6; } | |
b7026657 | 3674 | fi |
d0ac1c44 SM |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3676 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3678 | $as_echo "$ac_file" >&6; } | |
b7026657 | 3679 | ac_exeext=$ac_cv_exeext |
b7026657 | 3680 | |
d0ac1c44 | 3681 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 3682 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3684 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3685 | if { { ac_try="$ac_link" | |
3686 | case "(($ac_try" in | |
3687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3688 | *) ac_try_echo=$ac_try;; | |
3689 | esac | |
3690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3691 | $as_echo "$ac_try_echo"; } >&5 | |
3692 | (eval "$ac_link") 2>&5 | |
b7026657 | 3693 | ac_status=$? |
81ecdfbb RW |
3694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3695 | test $ac_status = 0; }; then : | |
b7026657 AC |
3696 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3697 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3698 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3699 | # `rm'. | |
3700 | for ac_file in conftest.exe conftest conftest.*; do | |
3701 | test -f "$ac_file" || continue | |
3702 | case $ac_file in | |
81ecdfbb | 3703 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 3704 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
3705 | break;; |
3706 | * ) break;; | |
3707 | esac | |
3708 | done | |
c906108c | 3709 | else |
81ecdfbb RW |
3710 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3712 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3713 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3714 | fi |
d0ac1c44 | 3715 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3717 | $as_echo "$ac_cv_exeext" >&6; } | |
b7026657 AC |
3718 | |
3719 | rm -f conftest.$ac_ext | |
3720 | EXEEXT=$ac_cv_exeext | |
3721 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
3722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3723 | /* end confdefs.h. */ | |
3724 | #include <stdio.h> | |
3725 | int | |
3726 | main () | |
3727 | { | |
3728 | FILE *f = fopen ("conftest.out", "w"); | |
3729 | return ferror (f) || fclose (f) != 0; | |
3730 | ||
3731 | ; | |
3732 | return 0; | |
3733 | } | |
3734 | _ACEOF | |
3735 | ac_clean_files="$ac_clean_files conftest.out" | |
3736 | # Check that the compiler produces executables we can run. If not, either | |
3737 | # the compiler is broken, or we cross compile. | |
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3739 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3740 | if test "$cross_compiling" != yes; then | |
3741 | { { ac_try="$ac_link" | |
3742 | case "(($ac_try" in | |
3743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3744 | *) ac_try_echo=$ac_try;; | |
3745 | esac | |
3746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3747 | $as_echo "$ac_try_echo"; } >&5 | |
3748 | (eval "$ac_link") 2>&5 | |
3749 | ac_status=$? | |
3750 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3751 | test $ac_status = 0; } | |
3752 | if { ac_try='./conftest$ac_cv_exeext' | |
3753 | { { case "(($ac_try" in | |
3754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3755 | *) ac_try_echo=$ac_try;; | |
3756 | esac | |
3757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3758 | $as_echo "$ac_try_echo"; } >&5 | |
3759 | (eval "$ac_try") 2>&5 | |
3760 | ac_status=$? | |
3761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3762 | test $ac_status = 0; }; }; then | |
3763 | cross_compiling=no | |
3764 | else | |
3765 | if test "$cross_compiling" = maybe; then | |
3766 | cross_compiling=yes | |
3767 | else | |
3768 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3769 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3770 | as_fn_error $? "cannot run C compiled programs. | |
3771 | If you meant to cross compile, use \`--host'. | |
3772 | See \`config.log' for more details" "$LINENO" 5; } | |
3773 | fi | |
3774 | fi | |
3775 | fi | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3777 | $as_echo "$cross_compiling" >&6; } | |
3778 | ||
3779 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3780 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3782 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 3783 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 3784 | $as_echo_n "(cached) " >&6 |
b7026657 | 3785 | else |
81ecdfbb | 3786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3787 | /* end confdefs.h. */ |
3788 | ||
3789 | int | |
3790 | main () | |
3791 | { | |
3792 | ||
3793 | ; | |
3794 | return 0; | |
3795 | } | |
3796 | _ACEOF | |
3797 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
3798 | if { { ac_try="$ac_compile" |
3799 | case "(($ac_try" in | |
3800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3801 | *) ac_try_echo=$ac_try;; | |
3802 | esac | |
3803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3804 | $as_echo "$ac_try_echo"; } >&5 | |
3805 | (eval "$ac_compile") 2>&5 | |
b7026657 | 3806 | ac_status=$? |
81ecdfbb RW |
3807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3808 | test $ac_status = 0; }; then : | |
3809 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3810 | test -f "$ac_file" || continue; | |
b7026657 | 3811 | case $ac_file in |
81ecdfbb | 3812 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
3813 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3814 | break;; | |
3815 | esac | |
3816 | done | |
3817 | else | |
81ecdfbb | 3818 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 AC |
3819 | sed 's/^/| /' conftest.$ac_ext >&5 |
3820 | ||
81ecdfbb RW |
3821 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3822 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
3823 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3824 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 3825 | fi |
b7026657 AC |
3826 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3827 | fi | |
81ecdfbb RW |
3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3829 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
3830 | OBJEXT=$ac_cv_objext |
3831 | ac_objext=$OBJEXT | |
81ecdfbb RW |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3833 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 3834 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 3835 | $as_echo_n "(cached) " >&6 |
b7026657 | 3836 | else |
81ecdfbb | 3837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3838 | /* end confdefs.h. */ |
3839 | ||
3840 | int | |
3841 | main () | |
3842 | { | |
3843 | #ifndef __GNUC__ | |
3844 | choke me | |
3845 | #endif | |
c906108c | 3846 | |
b7026657 AC |
3847 | ; |
3848 | return 0; | |
3849 | } | |
3850 | _ACEOF | |
81ecdfbb | 3851 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 | 3852 | ac_compiler_gnu=yes |
c906108c | 3853 | else |
81ecdfbb | 3854 | ac_compiler_gnu=no |
c906108c | 3855 | fi |
81ecdfbb | 3856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3857 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c | 3858 | |
b7026657 | 3859 | fi |
81ecdfbb RW |
3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3861 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3862 | if test $ac_compiler_gnu = yes; then | |
3863 | GCC=yes | |
3864 | else | |
3865 | GCC= | |
3866 | fi | |
b7026657 AC |
3867 | ac_test_CFLAGS=${CFLAGS+set} |
3868 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3870 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 3871 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb | 3872 | $as_echo_n "(cached) " >&6 |
c906108c | 3873 | else |
81ecdfbb RW |
3874 | ac_save_c_werror_flag=$ac_c_werror_flag |
3875 | ac_c_werror_flag=yes | |
3876 | ac_cv_prog_cc_g=no | |
3877 | CFLAGS="-g" | |
3878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 AC |
3879 | /* end confdefs.h. */ |
3880 | ||
3881 | int | |
3882 | main () | |
3883 | { | |
3884 | ||
3885 | ; | |
3886 | return 0; | |
3887 | } | |
3888 | _ACEOF | |
81ecdfbb | 3889 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
3890 | ac_cv_prog_cc_g=yes |
3891 | else | |
81ecdfbb RW |
3892 | CFLAGS="" |
3893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3894 | /* end confdefs.h. */ | |
3895 | ||
3896 | int | |
3897 | main () | |
3898 | { | |
3899 | ||
3900 | ; | |
3901 | return 0; | |
3902 | } | |
3903 | _ACEOF | |
3904 | if ac_fn_c_try_compile "$LINENO"; then : | |
3905 | ||
3906 | else | |
3907 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3908 | CFLAGS="-g" | |
3909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3910 | /* end confdefs.h. */ | |
3911 | ||
3912 | int | |
3913 | main () | |
3914 | { | |
c906108c | 3915 | |
81ecdfbb RW |
3916 | ; |
3917 | return 0; | |
3918 | } | |
3919 | _ACEOF | |
3920 | if ac_fn_c_try_compile "$LINENO"; then : | |
3921 | ac_cv_prog_cc_g=yes | |
3922 | fi | |
3923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3924 | fi |
81ecdfbb | 3925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3926 | fi |
81ecdfbb RW |
3927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3928 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3929 | fi | |
3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3931 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 3932 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 3933 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
3934 | elif test $ac_cv_prog_cc_g = yes; then |
3935 | if test "$GCC" = yes; then | |
3936 | CFLAGS="-g -O2" | |
3937 | else | |
3938 | CFLAGS="-g" | |
3939 | fi | |
3940 | else | |
3941 | if test "$GCC" = yes; then | |
3942 | CFLAGS="-O2" | |
3943 | else | |
3944 | CFLAGS= | |
3945 | fi | |
3946 | fi | |
81ecdfbb RW |
3947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3948 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 3949 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 3950 | $as_echo_n "(cached) " >&6 |
b7026657 | 3951 | else |
81ecdfbb | 3952 | ac_cv_prog_cc_c89=no |
b7026657 | 3953 | ac_save_CC=$CC |
81ecdfbb | 3954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
3955 | /* end confdefs.h. */ |
3956 | #include <stdarg.h> | |
3957 | #include <stdio.h> | |
d0ac1c44 | 3958 | struct stat; |
b7026657 AC |
3959 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3960 | struct buf { int x; }; | |
3961 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3962 | static char *e (p, i) | |
3963 | char **p; | |
3964 | int i; | |
3965 | { | |
3966 | return p[i]; | |
3967 | } | |
3968 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3969 | { | |
3970 | char *s; | |
3971 | va_list v; | |
3972 | va_start (v,p); | |
3973 | s = g (p, va_arg (v,int)); | |
3974 | va_end (v); | |
3975 | return s; | |
3976 | } | |
3977 | ||
3978 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3979 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3980 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 3981 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
3982 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3983 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 3984 | that's true only with -std. */ |
b7026657 AC |
3985 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3986 | ||
81ecdfbb RW |
3987 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3988 | inside strings and character constants. */ | |
3989 | #define FOO(x) 'x' | |
3990 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3991 | ||
b7026657 AC |
3992 | int test (int i, double x); |
3993 | struct s1 {int (*f) (int a);}; | |
3994 | struct s2 {int (*f) (double a);}; | |
3995 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3996 | int argc; | |
3997 | char **argv; | |
3998 | int | |
3999 | main () | |
4000 | { | |
4001 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4002 | ; | |
4003 | return 0; | |
4004 | } | |
4005 | _ACEOF | |
81ecdfbb RW |
4006 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4007 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
4008 | do |
4009 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4010 | if ac_fn_c_try_compile "$LINENO"; then : |
4011 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 4012 | fi |
81ecdfbb RW |
4013 | rm -f core conftest.err conftest.$ac_objext |
4014 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 4015 | done |
81ecdfbb | 4016 | rm -f conftest.$ac_ext |
b7026657 AC |
4017 | CC=$ac_save_CC |
4018 | ||
4019 | fi | |
81ecdfbb RW |
4020 | # AC_CACHE_VAL |
4021 | case "x$ac_cv_prog_cc_c89" in | |
4022 | x) | |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4024 | $as_echo "none needed" >&6; } ;; | |
4025 | xno) | |
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4027 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 4028 | *) |
81ecdfbb RW |
4029 | CC="$CC $ac_cv_prog_cc_c89" |
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4031 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 4032 | esac |
81ecdfbb | 4033 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 4034 | |
fdd6fa61 AG |
4035 | fi |
4036 | ||
fdd6fa61 AG |
4037 | ac_ext=c |
4038 | ac_cpp='$CPP $CPPFLAGS' | |
4039 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4040 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4042 | ||
c2783492 MF |
4043 | ac_ext=c |
4044 | ac_cpp='$CPP $CPPFLAGS' | |
4045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4049 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4050 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4051 | $as_echo_n "(cached) " >&6 | |
4052 | else | |
4053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4054 | /* end confdefs.h. */ | |
4055 | ||
4056 | int | |
4057 | main () | |
4058 | { | |
4059 | ||
4060 | ; | |
4061 | return 0; | |
4062 | } | |
4063 | _ACEOF | |
4064 | # Make sure it works both with $CC and with simple cc. | |
4065 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4066 | # compilers refuse to overwrite an existing .o file with -o, | |
4067 | # though they will create one. | |
4068 | am_cv_prog_cc_c_o=yes | |
4069 | for am_i in 1 2; do | |
4070 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4071 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4072 | ac_status=$? | |
4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4074 | (exit $ac_status); } \ | |
4075 | && test -f conftest2.$ac_objext; then | |
4076 | : OK | |
4077 | else | |
4078 | am_cv_prog_cc_c_o=no | |
4079 | break | |
4080 | fi | |
4081 | done | |
4082 | rm -f core conftest* | |
4083 | unset am_i | |
4084 | fi | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4086 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4087 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4088 | # Losing compiler, so override with the script. | |
4089 | # FIXME: It is wrong to rewrite CC. | |
4090 | # But if we don't then we get into trouble of one sort or another. | |
4091 | # A longer-term fix would be to have automake use am__CC in this case, | |
4092 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4093 | CC="$am_aux_dir/compile $CC" | |
4094 | fi | |
4095 | ac_ext=c | |
4096 | ac_cpp='$CPP $CPPFLAGS' | |
4097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4100 | ||
4101 | ||
4102 | ||
4103 | ac_ext=c | |
4104 | ac_cpp='$CPP $CPPFLAGS' | |
4105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4109 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4110 | # On Suns, sometimes $CPP names a directory. | |
4111 | if test -n "$CPP" && test -d "$CPP"; then | |
4112 | CPP= | |
4113 | fi | |
4114 | if test -z "$CPP"; then | |
4115 | if ${ac_cv_prog_CPP+:} false; then : | |
4116 | $as_echo_n "(cached) " >&6 | |
4117 | else | |
4118 | # Double quotes because CPP needs to be expanded | |
4119 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4120 | do | |
4121 | ac_preproc_ok=false | |
4122 | for ac_c_preproc_warn_flag in '' yes | |
4123 | do | |
4124 | # Use a header file that comes with gcc, so configuring glibc | |
4125 | # with a fresh cross-compiler works. | |
4126 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4127 | # <limits.h> exists even on freestanding compilers. | |
4128 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4129 | # not just through cpp. "Syntax error" is here to catch this case. | |
4130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4131 | /* end confdefs.h. */ | |
4132 | #ifdef __STDC__ | |
4133 | # include <limits.h> | |
4134 | #else | |
4135 | # include <assert.h> | |
4136 | #endif | |
4137 | Syntax error | |
4138 | _ACEOF | |
4139 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4140 | ||
4141 | else | |
4142 | # Broken: fails on valid input. | |
4143 | continue | |
4144 | fi | |
4145 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4146 | ||
4147 | # OK, works on sane cases. Now check whether nonexistent headers | |
4148 | # can be detected and how. | |
4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4150 | /* end confdefs.h. */ | |
4151 | #include <ac_nonexistent.h> | |
4152 | _ACEOF | |
4153 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4154 | # Broken: success on invalid input. | |
4155 | continue | |
4156 | else | |
4157 | # Passes both tests. | |
4158 | ac_preproc_ok=: | |
4159 | break | |
4160 | fi | |
4161 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4162 | ||
4163 | done | |
4164 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4165 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4166 | if $ac_preproc_ok; then : | |
4167 | break | |
4168 | fi | |
4169 | ||
4170 | done | |
4171 | ac_cv_prog_CPP=$CPP | |
4172 | ||
4173 | fi | |
4174 | CPP=$ac_cv_prog_CPP | |
4175 | else | |
4176 | ac_cv_prog_CPP=$CPP | |
4177 | fi | |
4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4179 | $as_echo "$CPP" >&6; } | |
4180 | ac_preproc_ok=false | |
4181 | for ac_c_preproc_warn_flag in '' yes | |
4182 | do | |
4183 | # Use a header file that comes with gcc, so configuring glibc | |
4184 | # with a fresh cross-compiler works. | |
4185 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4186 | # <limits.h> exists even on freestanding compilers. | |
4187 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4188 | # not just through cpp. "Syntax error" is here to catch this case. | |
4189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4190 | /* end confdefs.h. */ | |
4191 | #ifdef __STDC__ | |
4192 | # include <limits.h> | |
4193 | #else | |
4194 | # include <assert.h> | |
4195 | #endif | |
4196 | Syntax error | |
4197 | _ACEOF | |
4198 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4199 | ||
4200 | else | |
4201 | # Broken: fails on valid input. | |
4202 | continue | |
4203 | fi | |
4204 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4205 | ||
4206 | # OK, works on sane cases. Now check whether nonexistent headers | |
4207 | # can be detected and how. | |
4208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4209 | /* end confdefs.h. */ | |
4210 | #include <ac_nonexistent.h> | |
4211 | _ACEOF | |
4212 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4213 | # Broken: success on invalid input. | |
4214 | continue | |
4215 | else | |
4216 | # Passes both tests. | |
4217 | ac_preproc_ok=: | |
4218 | break | |
4219 | fi | |
4220 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4221 | ||
4222 | done | |
4223 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4224 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4225 | if $ac_preproc_ok; then : | |
4226 | ||
4227 | else | |
4228 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4229 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4230 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4231 | See \`config.log' for more details" "$LINENO" 5; } | |
4232 | fi | |
4233 | ||
4234 | ac_ext=c | |
4235 | ac_cpp='$CPP $CPPFLAGS' | |
4236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4239 | ||
4240 | ||
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4242 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4243 | if ${ac_cv_path_GREP+:} false; then : | |
4244 | $as_echo_n "(cached) " >&6 | |
4245 | else | |
4246 | if test -z "$GREP"; then | |
4247 | ac_path_GREP_found=false | |
4248 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4250 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4251 | do | |
4252 | IFS=$as_save_IFS | |
4253 | test -z "$as_dir" && as_dir=. | |
4254 | for ac_prog in grep ggrep; do | |
4255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4256 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4257 | as_fn_executable_p "$ac_path_GREP" || continue | |
4258 | # Check for GNU ac_path_GREP and select it if it is found. | |
4259 | # Check for GNU $ac_path_GREP | |
4260 | case `"$ac_path_GREP" --version 2>&1` in | |
4261 | *GNU*) | |
4262 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4263 | *) | |
4264 | ac_count=0 | |
4265 | $as_echo_n 0123456789 >"conftest.in" | |
4266 | while : | |
4267 | do | |
4268 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4269 | mv "conftest.tmp" "conftest.in" | |
4270 | cp "conftest.in" "conftest.nl" | |
4271 | $as_echo 'GREP' >> "conftest.nl" | |
4272 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4273 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4274 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4275 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4276 | # Best one so far, save it but keep looking for a better one | |
4277 | ac_cv_path_GREP="$ac_path_GREP" | |
4278 | ac_path_GREP_max=$ac_count | |
4279 | fi | |
4280 | # 10*(2^10) chars as input seems more than enough | |
4281 | test $ac_count -gt 10 && break | |
4282 | done | |
4283 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4284 | esac | |
4285 | ||
4286 | $ac_path_GREP_found && break 3 | |
4287 | done | |
4288 | done | |
4289 | done | |
4290 | IFS=$as_save_IFS | |
4291 | if test -z "$ac_cv_path_GREP"; then | |
4292 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4293 | fi | |
4294 | else | |
4295 | ac_cv_path_GREP=$GREP | |
4296 | fi | |
4297 | ||
4298 | fi | |
4299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4300 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4301 | GREP="$ac_cv_path_GREP" | |
4302 | ||
4303 | ||
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4305 | $as_echo_n "checking for egrep... " >&6; } | |
4306 | if ${ac_cv_path_EGREP+:} false; then : | |
4307 | $as_echo_n "(cached) " >&6 | |
4308 | else | |
4309 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4310 | then ac_cv_path_EGREP="$GREP -E" | |
4311 | else | |
4312 | if test -z "$EGREP"; then | |
4313 | ac_path_EGREP_found=false | |
4314 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4316 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4317 | do | |
4318 | IFS=$as_save_IFS | |
4319 | test -z "$as_dir" && as_dir=. | |
4320 | for ac_prog in egrep; do | |
4321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4322 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4323 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4324 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4325 | # Check for GNU $ac_path_EGREP | |
4326 | case `"$ac_path_EGREP" --version 2>&1` in | |
4327 | *GNU*) | |
4328 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4329 | *) | |
4330 | ac_count=0 | |
4331 | $as_echo_n 0123456789 >"conftest.in" | |
4332 | while : | |
4333 | do | |
4334 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4335 | mv "conftest.tmp" "conftest.in" | |
4336 | cp "conftest.in" "conftest.nl" | |
4337 | $as_echo 'EGREP' >> "conftest.nl" | |
4338 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4339 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4340 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4341 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4342 | # Best one so far, save it but keep looking for a better one | |
4343 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4344 | ac_path_EGREP_max=$ac_count | |
4345 | fi | |
4346 | # 10*(2^10) chars as input seems more than enough | |
4347 | test $ac_count -gt 10 && break | |
4348 | done | |
4349 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4350 | esac | |
4351 | ||
4352 | $ac_path_EGREP_found && break 3 | |
4353 | done | |
4354 | done | |
4355 | done | |
4356 | IFS=$as_save_IFS | |
4357 | if test -z "$ac_cv_path_EGREP"; then | |
4358 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4359 | fi | |
4360 | else | |
4361 | ac_cv_path_EGREP=$EGREP | |
4362 | fi | |
4363 | ||
4364 | fi | |
4365 | fi | |
4366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4367 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4368 | EGREP="$ac_cv_path_EGREP" | |
4369 | ||
4370 | ||
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4372 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4373 | if ${ac_cv_header_stdc+:} false; then : | |
6bddc3e8 MF |
4374 | $as_echo_n "(cached) " >&6 |
4375 | else | |
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4377 | /* end confdefs.h. */ | |
c2783492 MF |
4378 | #include <stdlib.h> |
4379 | #include <stdarg.h> | |
4380 | #include <string.h> | |
4381 | #include <float.h> | |
6bddc3e8 MF |
4382 | |
4383 | int | |
4384 | main () | |
4385 | { | |
4386 | ||
4387 | ; | |
4388 | return 0; | |
4389 | } | |
4390 | _ACEOF | |
c2783492 MF |
4391 | if ac_fn_c_try_compile "$LINENO"; then : |
4392 | ac_cv_header_stdc=yes | |
4393 | else | |
4394 | ac_cv_header_stdc=no | |
fdd6fa61 | 4395 | fi |
c2783492 | 4396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
81ecdfbb | 4397 | |
c2783492 MF |
4398 | if test $ac_cv_header_stdc = yes; then |
4399 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4401 | /* end confdefs.h. */ | |
4402 | #include <string.h> | |
6bddc3e8 | 4403 | |
c2783492 MF |
4404 | _ACEOF |
4405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4406 | $EGREP "memchr" >/dev/null 2>&1; then : | |
6bddc3e8 | 4407 | |
c2783492 MF |
4408 | else |
4409 | ac_cv_header_stdc=no | |
4410 | fi | |
4411 | rm -f conftest* | |
6bddc3e8 | 4412 | |
6bddc3e8 | 4413 | fi |
81ecdfbb | 4414 | |
c2783492 MF |
4415 | if test $ac_cv_header_stdc = yes; then |
4416 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4418 | /* end confdefs.h. */ | |
4419 | #include <stdlib.h> | |
fdd6fa61 | 4420 | |
c2783492 MF |
4421 | _ACEOF |
4422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4423 | $EGREP "free" >/dev/null 2>&1; then : | |
6bddc3e8 | 4424 | |
c2783492 MF |
4425 | else |
4426 | ac_cv_header_stdc=no | |
6bddc3e8 | 4427 | fi |
c2783492 | 4428 | rm -f conftest* |
6bddc3e8 | 4429 | |
6bddc3e8 | 4430 | fi |
c2783492 MF |
4431 | |
4432 | if test $ac_cv_header_stdc = yes; then | |
4433 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4434 | if test "$cross_compiling" = yes; then : | |
4435 | : | |
6bddc3e8 | 4436 | else |
c2783492 MF |
4437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4438 | /* end confdefs.h. */ | |
4439 | #include <ctype.h> | |
4440 | #include <stdlib.h> | |
4441 | #if ((' ' & 0x0FF) == 0x020) | |
4442 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4443 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4444 | #else | |
4445 | # define ISLOWER(c) \ | |
4446 | (('a' <= (c) && (c) <= 'i') \ | |
4447 | || ('j' <= (c) && (c) <= 'r') \ | |
4448 | || ('s' <= (c) && (c) <= 'z')) | |
4449 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4450 | #endif | |
4451 | ||
4452 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4453 | int | |
4454 | main () | |
4455 | { | |
4456 | int i; | |
4457 | for (i = 0; i < 256; i++) | |
4458 | if (XOR (islower (i), ISLOWER (i)) | |
4459 | || toupper (i) != TOUPPER (i)) | |
4460 | return 2; | |
4461 | return 0; | |
4462 | } | |
4463 | _ACEOF | |
4464 | if ac_fn_c_try_run "$LINENO"; then : | |
4465 | ||
4466 | else | |
4467 | ac_cv_header_stdc=no | |
4468 | fi | |
4469 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4470 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6bddc3e8 MF |
4471 | fi |
4472 | ||
c2783492 MF |
4473 | fi |
4474 | fi | |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4476 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4477 | if test $ac_cv_header_stdc = yes; then | |
6bddc3e8 | 4478 | |
c2783492 | 4479 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
6bddc3e8 | 4480 | |
c2783492 | 4481 | fi |
6bddc3e8 | 4482 | |
c2783492 MF |
4483 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4484 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4485 | inttypes.h stdint.h unistd.h | |
4486 | do : | |
4487 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4488 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4489 | " | |
4490 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4491 | cat >>confdefs.h <<_ACEOF | |
4492 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4493 | _ACEOF | |
4494 | ||
4495 | fi | |
4496 | ||
4497 | done | |
4498 | ||
4499 | ||
4500 | ||
4501 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4502 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4503 | MINIX=yes | |
fdd6fa61 | 4504 | else |
c2783492 MF |
4505 | MINIX= |
4506 | fi | |
4507 | ||
4508 | ||
4509 | if test "$MINIX" = yes; then | |
4510 | ||
4511 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4512 | ||
4513 | ||
4514 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4515 | ||
4516 | ||
4517 | $as_echo "#define _MINIX 1" >>confdefs.h | |
6bddc3e8 | 4518 | |
6bddc3e8 | 4519 | fi |
6bddc3e8 | 4520 | |
6bddc3e8 | 4521 | |
c2783492 MF |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4523 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4524 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4525 | $as_echo_n "(cached) " >&6 | |
4526 | else | |
4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4528 | /* end confdefs.h. */ | |
c906108c | 4529 | |
c2783492 MF |
4530 | # define __EXTENSIONS__ 1 |
4531 | $ac_includes_default | |
4532 | int | |
4533 | main () | |
4534 | { | |
4535 | ||
4536 | ; | |
4537 | return 0; | |
4538 | } | |
4539 | _ACEOF | |
4540 | if ac_fn_c_try_compile "$LINENO"; then : | |
4541 | ac_cv_safe_to_define___extensions__=yes | |
6bddc3e8 | 4542 | else |
c2783492 MF |
4543 | ac_cv_safe_to_define___extensions__=no |
4544 | fi | |
4545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 4546 | fi |
c2783492 MF |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4548 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4549 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4550 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
6bddc3e8 | 4551 | |
c2783492 | 4552 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c906108c | 4553 | |
c2783492 | 4554 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c906108c | 4555 | |
c2783492 | 4556 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c906108c | 4557 | |
c2783492 | 4558 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c906108c | 4559 | |
c2783492 MF |
4560 | |
4561 | test "$program_prefix" != NONE && | |
4562 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4563 | # Use a double $ so make ignores it. | |
4564 | test "$program_suffix" != NONE && | |
4565 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4566 | # Double any \ or $. | |
4567 | # By default was `s,x,x', remove it if useless. | |
4568 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4569 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4570 | ||
4571 | # Find a good install program. We prefer a C program (faster), | |
4572 | # so one script is as good as another. But avoid the broken or | |
4573 | # incompatible versions: | |
4574 | # SysV /etc/install, /usr/sbin/install | |
4575 | # SunOS /usr/etc/install | |
4576 | # IRIX /sbin/install | |
4577 | # AIX /bin/install | |
4578 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4579 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4580 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4581 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4582 | # OS/2's system install, which has a completely different semantic | |
4583 | # ./install, which can be erroneously created by make from ./install.sh. | |
4584 | # Reject install programs that cannot install multiple files. | |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4586 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4587 | if test -z "$INSTALL"; then | |
4588 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 4589 | $as_echo_n "(cached) " >&6 |
c906108c | 4590 | else |
c2783492 | 4591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b7026657 AC |
4592 | for as_dir in $PATH |
4593 | do | |
4594 | IFS=$as_save_IFS | |
4595 | test -z "$as_dir" && as_dir=. | |
c2783492 MF |
4596 | # Account for people who put trailing slashes in PATH elements. |
4597 | case $as_dir/ in #(( | |
4598 | ./ | .// | /[cC]/* | \ | |
4599 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4600 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4601 | /usr/ucb/* ) ;; | |
4602 | *) | |
4603 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4604 | # Don't use installbsd from OSF since it installs stuff as root | |
4605 | # by default. | |
4606 | for ac_prog in ginstall scoinst install; do | |
4607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4608 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4609 | if test $ac_prog = install && | |
4610 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4611 | # AIX install. It has an incompatible calling convention. | |
4612 | : | |
4613 | elif test $ac_prog = install && | |
4614 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4615 | # program-specific install script used by HP pwplus--don't use. | |
4616 | : | |
4617 | else | |
4618 | rm -rf conftest.one conftest.two conftest.dir | |
4619 | echo one > conftest.one | |
4620 | echo two > conftest.two | |
4621 | mkdir conftest.dir | |
4622 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4623 | test -s conftest.one && test -s conftest.two && | |
4624 | test -s conftest.dir/conftest.one && | |
4625 | test -s conftest.dir/conftest.two | |
4626 | then | |
4627 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4628 | break 3 | |
4629 | fi | |
4630 | fi | |
4631 | fi | |
4632 | done | |
4633 | done | |
4634 | ;; | |
4635 | esac | |
4636 | ||
81ecdfbb RW |
4637 | done |
4638 | IFS=$as_save_IFS | |
b7026657 | 4639 | |
c2783492 MF |
4640 | rm -rf conftest.one conftest.two conftest.dir |
4641 | ||
c906108c | 4642 | fi |
c2783492 MF |
4643 | if test "${ac_cv_path_install+set}" = set; then |
4644 | INSTALL=$ac_cv_path_install | |
4645 | else | |
4646 | # As a last resort, use the slow shell script. Don't cache a | |
4647 | # value for INSTALL within a source directory, because that will | |
4648 | # break other packages using the cache if that directory is | |
4649 | # removed, or if the value is a relative name. | |
4650 | INSTALL=$ac_install_sh | |
4651 | fi | |
c906108c | 4652 | fi |
c2783492 MF |
4653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4654 | $as_echo "$INSTALL" >&6; } | |
b7026657 | 4655 | |
c2783492 MF |
4656 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4657 | # It thinks the first close brace ends the variable substitution. | |
4658 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
81ecdfbb | 4659 | |
c2783492 MF |
4660 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4661 | ||
4662 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | ||
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
4669 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
4670 | if ${ac_cv_c_bigendian+:} false; then : | |
81ecdfbb | 4671 | $as_echo_n "(cached) " >&6 |
b7026657 | 4672 | else |
c2783492 MF |
4673 | ac_cv_c_bigendian=unknown |
4674 | # See if we're dealing with a universal compiler. | |
4675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4676 | /* end confdefs.h. */ | |
4677 | #ifndef __APPLE_CC__ | |
4678 | not a universal capable compiler | |
4679 | #endif | |
4680 | typedef int dummy; | |
c906108c | 4681 | |
c2783492 MF |
4682 | _ACEOF |
4683 | if ac_fn_c_try_compile "$LINENO"; then : | |
4684 | ||
4685 | # Check for potential -arch flags. It is not universal unless | |
4686 | # there are at least two -arch flags with different values. | |
4687 | ac_arch= | |
4688 | ac_prev= | |
4689 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
4690 | if test -n "$ac_prev"; then | |
4691 | case $ac_word in | |
4692 | i?86 | x86_64 | ppc | ppc64) | |
4693 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
4694 | ac_arch=$ac_word | |
4695 | else | |
4696 | ac_cv_c_bigendian=universal | |
4697 | break | |
4698 | fi | |
4699 | ;; | |
4700 | esac | |
4701 | ac_prev= | |
4702 | elif test "x$ac_word" = "x-arch"; then | |
4703 | ac_prev=arch | |
4704 | fi | |
4705 | done | |
b7026657 | 4706 | fi |
c2783492 MF |
4707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4708 | if test $ac_cv_c_bigendian = unknown; then | |
4709 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4711 | /* end confdefs.h. */ | |
4712 | #include <sys/types.h> | |
4713 | #include <sys/param.h> | |
c906108c | 4714 | |
c2783492 MF |
4715 | int |
4716 | main () | |
4717 | { | |
4718 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
4719 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
4720 | && LITTLE_ENDIAN) | |
4721 | bogus endian macros | |
4722 | #endif | |
4723 | ||
4724 | ; | |
4725 | return 0; | |
4726 | } | |
4727 | _ACEOF | |
4728 | if ac_fn_c_try_compile "$LINENO"; then : | |
4729 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4731 | /* end confdefs.h. */ | |
4732 | #include <sys/types.h> | |
4733 | #include <sys/param.h> | |
4734 | ||
4735 | int | |
4736 | main () | |
4737 | { | |
4738 | #if BYTE_ORDER != BIG_ENDIAN | |
4739 | not big endian | |
4740 | #endif | |
4741 | ||
4742 | ; | |
4743 | return 0; | |
4744 | } | |
4745 | _ACEOF | |
4746 | if ac_fn_c_try_compile "$LINENO"; then : | |
4747 | ac_cv_c_bigendian=yes | |
b7026657 | 4748 | else |
c2783492 MF |
4749 | ac_cv_c_bigendian=no |
4750 | fi | |
4751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 4752 | fi |
c2783492 MF |
4753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4754 | fi | |
4755 | if test $ac_cv_c_bigendian = unknown; then | |
4756 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4758 | /* end confdefs.h. */ | |
4759 | #include <limits.h> | |
c906108c | 4760 | |
c2783492 MF |
4761 | int |
4762 | main () | |
4763 | { | |
4764 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
4765 | bogus endian macros | |
4766 | #endif | |
4767 | ||
4768 | ; | |
4769 | return 0; | |
4770 | } | |
4771 | _ACEOF | |
4772 | if ac_fn_c_try_compile "$LINENO"; then : | |
4773 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4775 | /* end confdefs.h. */ | |
4776 | #include <limits.h> | |
4777 | ||
4778 | int | |
4779 | main () | |
4780 | { | |
4781 | #ifndef _BIG_ENDIAN | |
4782 | not big endian | |
4783 | #endif | |
b7026657 | 4784 | |
c2783492 MF |
4785 | ; |
4786 | return 0; | |
4787 | } | |
4788 | _ACEOF | |
4789 | if ac_fn_c_try_compile "$LINENO"; then : | |
4790 | ac_cv_c_bigendian=yes | |
c906108c | 4791 | else |
c2783492 | 4792 | ac_cv_c_bigendian=no |
c906108c | 4793 | fi |
c2783492 MF |
4794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4795 | fi | |
4796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4797 | fi | |
4798 | if test $ac_cv_c_bigendian = unknown; then | |
4799 | # Compile a test program. | |
4800 | if test "$cross_compiling" = yes; then : | |
4801 | # Try to guess by grepping values from an object file. | |
4802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4803 | /* end confdefs.h. */ | |
4804 | short int ascii_mm[] = | |
4805 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
4806 | short int ascii_ii[] = | |
4807 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
4808 | int use_ascii (int i) { | |
4809 | return ascii_mm[i] + ascii_ii[i]; | |
4810 | } | |
4811 | short int ebcdic_ii[] = | |
4812 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
4813 | short int ebcdic_mm[] = | |
4814 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
4815 | int use_ebcdic (int i) { | |
4816 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
4817 | } | |
4818 | extern int foo; | |
c906108c | 4819 | |
c2783492 MF |
4820 | int |
4821 | main () | |
4822 | { | |
4823 | return use_ascii (foo) == use_ebcdic (foo); | |
4824 | ; | |
4825 | return 0; | |
4826 | } | |
4827 | _ACEOF | |
4828 | if ac_fn_c_try_compile "$LINENO"; then : | |
4829 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
4830 | ac_cv_c_bigendian=yes | |
4831 | fi | |
4832 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4833 | if test "$ac_cv_c_bigendian" = unknown; then | |
4834 | ac_cv_c_bigendian=no | |
4835 | else | |
4836 | # finding both strings is unlikely to happen, but who knows? | |
4837 | ac_cv_c_bigendian=unknown | |
4838 | fi | |
4839 | fi | |
b7026657 | 4840 | fi |
c2783492 | 4841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4842 | else |
c2783492 MF |
4843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4844 | /* end confdefs.h. */ | |
4845 | $ac_includes_default | |
4846 | int | |
4847 | main () | |
4848 | { | |
4849 | ||
4850 | /* Are we little or big endian? From Harbison&Steele. */ | |
4851 | union | |
4852 | { | |
4853 | long int l; | |
4854 | char c[sizeof (long int)]; | |
4855 | } u; | |
4856 | u.l = 1; | |
4857 | return u.c[sizeof (long int) - 1] == 1; | |
b7026657 | 4858 | |
c2783492 MF |
4859 | ; |
4860 | return 0; | |
4861 | } | |
4862 | _ACEOF | |
4863 | if ac_fn_c_try_run "$LINENO"; then : | |
4864 | ac_cv_c_bigendian=no | |
4865 | else | |
4866 | ac_cv_c_bigendian=yes | |
c906108c | 4867 | fi |
c2783492 MF |
4868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4869 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4870 | fi |
c2783492 MF |
4871 | |
4872 | fi | |
c906108c | 4873 | fi |
c2783492 MF |
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
4875 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
4876 | case $ac_cv_c_bigendian in #( | |
4877 | yes) | |
4878 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
4879 | ;; #( | |
4880 | no) | |
4881 | ;; #( | |
4882 | universal) | |
c906108c | 4883 | |
c2783492 MF |
4884 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
4885 | ||
4886 | ;; #( | |
4887 | *) | |
4888 | as_fn_error $? "unknown endianness | |
4889 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
4890 | esac | |
4891 | ||
4892 | ||
4893 | ||
4894 | ||
a979f2a0 MF |
4895 | if test -n "$ac_tool_prefix"; then |
4896 | # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args. | |
4897 | set dummy ${ac_tool_prefix}dtc; ac_word=$2 | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4899 | $as_echo_n "checking for $ac_word... " >&6; } | |
4900 | if ${ac_cv_prog_DTC+:} false; then : | |
4901 | $as_echo_n "(cached) " >&6 | |
4902 | else | |
4903 | if test -n "$DTC"; then | |
4904 | ac_cv_prog_DTC="$DTC" # Let the user override the test. | |
4905 | else | |
4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4907 | for as_dir in $PATH | |
4908 | do | |
4909 | IFS=$as_save_IFS | |
4910 | test -z "$as_dir" && as_dir=. | |
4911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4913 | ac_cv_prog_DTC="${ac_tool_prefix}dtc" | |
4914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4915 | break 2 | |
4916 | fi | |
4917 | done | |
4918 | done | |
4919 | IFS=$as_save_IFS | |
4920 | ||
4921 | fi | |
4922 | fi | |
4923 | DTC=$ac_cv_prog_DTC | |
4924 | if test -n "$DTC"; then | |
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5 | |
4926 | $as_echo "$DTC" >&6; } | |
4927 | else | |
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4929 | $as_echo "no" >&6; } | |
4930 | fi | |
4931 | ||
4932 | ||
4933 | fi | |
4934 | if test -z "$ac_cv_prog_DTC"; then | |
4935 | ac_ct_DTC=$DTC | |
4936 | # Extract the first word of "dtc", so it can be a program name with args. | |
4937 | set dummy dtc; ac_word=$2 | |
4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4939 | $as_echo_n "checking for $ac_word... " >&6; } | |
4940 | if ${ac_cv_prog_ac_ct_DTC+:} false; then : | |
4941 | $as_echo_n "(cached) " >&6 | |
4942 | else | |
4943 | if test -n "$ac_ct_DTC"; then | |
4944 | ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test. | |
4945 | else | |
4946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4947 | for as_dir in $PATH | |
4948 | do | |
4949 | IFS=$as_save_IFS | |
4950 | test -z "$as_dir" && as_dir=. | |
4951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4953 | ac_cv_prog_ac_ct_DTC="dtc" | |
4954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4955 | break 2 | |
4956 | fi | |
4957 | done | |
4958 | done | |
4959 | IFS=$as_save_IFS | |
4960 | ||
4961 | fi | |
4962 | fi | |
4963 | ac_ct_DTC=$ac_cv_prog_ac_ct_DTC | |
4964 | if test -n "$ac_ct_DTC"; then | |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5 | |
4966 | $as_echo "$ac_ct_DTC" >&6; } | |
4967 | else | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4969 | $as_echo "no" >&6; } | |
4970 | fi | |
4971 | ||
4972 | if test "x$ac_ct_DTC" = x; then | |
4973 | DTC="" | |
4974 | else | |
4975 | case $cross_compiling:$ac_tool_warned in | |
4976 | yes:) | |
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4978 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4979 | ac_tool_warned=yes ;; | |
4980 | esac | |
4981 | DTC=$ac_ct_DTC | |
4982 | fi | |
4983 | else | |
4984 | DTC="$ac_cv_prog_DTC" | |
4985 | fi | |
4986 | ||
4987 | ||
c2783492 | 4988 | if test "x$cross_compiling" = "xno"; then |
aa0fca16 | 4989 | : "${AR_FOR_BUILD:=\$(AR)}" |
c2783492 | 4990 | : "${CC_FOR_BUILD:=\$(CC)}" |
aa0fca16 | 4991 | : "${RANLIB_FOR_BUILD:=\$(RANLIB)}" |
c2783492 MF |
4992 | : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}" |
4993 | : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}" | |
c906108c | 4994 | else |
aa0fca16 | 4995 | : "${AR_FOR_BUILD:=ar}" |
c2783492 | 4996 | : "${CC_FOR_BUILD:=gcc}" |
aa0fca16 | 4997 | : "${RANLIB_FOR_BUILD:=ranlib}" |
c2783492 MF |
4998 | : "${CFLAGS_FOR_BUILD:=-g -O}" |
4999 | : "${LDLFAGS_FOR_BUILD:=}" | |
c906108c SS |
5000 | fi |
5001 | ||
5002 | ||
c906108c | 5003 | |
c2783492 MF |
5004 | |
5005 | ||
aa0fca16 MF |
5006 | |
5007 | ||
b7026657 | 5008 | if test -n "$ac_tool_prefix"; then |
c2783492 MF |
5009 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5010 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5012 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5013 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 5014 | $as_echo_n "(cached) " >&6 |
c906108c | 5015 | else |
c2783492 MF |
5016 | if test -n "$AR"; then |
5017 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c906108c | 5018 | else |
b7026657 AC |
5019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5020 | for as_dir in $PATH | |
5021 | do | |
5022 | IFS=$as_save_IFS | |
5023 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5024 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5026 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 5027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5028 | break 2 |
5029 | fi | |
5030 | done | |
81ecdfbb RW |
5031 | done |
5032 | IFS=$as_save_IFS | |
b7026657 AC |
5033 | |
5034 | fi | |
5035 | fi | |
c2783492 MF |
5036 | AR=$ac_cv_prog_AR |
5037 | if test -n "$AR"; then | |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5039 | $as_echo "$AR" >&6; } | |
b7026657 | 5040 | else |
81ecdfbb RW |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5042 | $as_echo "no" >&6; } | |
b7026657 AC |
5043 | fi |
5044 | ||
81ecdfbb | 5045 | |
b7026657 | 5046 | fi |
c2783492 MF |
5047 | if test -z "$ac_cv_prog_AR"; then |
5048 | ac_ct_AR=$AR | |
5049 | # Extract the first word of "ar", so it can be a program name with args. | |
5050 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5052 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5053 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 5054 | $as_echo_n "(cached) " >&6 |
b7026657 | 5055 | else |
c2783492 MF |
5056 | if test -n "$ac_ct_AR"; then |
5057 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b7026657 AC |
5058 | else |
5059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5060 | for as_dir in $PATH | |
5061 | do | |
5062 | IFS=$as_save_IFS | |
5063 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5064 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5065 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5066 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 5067 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5068 | break 2 |
5069 | fi | |
5070 | done | |
81ecdfbb RW |
5071 | done |
5072 | IFS=$as_save_IFS | |
b7026657 AC |
5073 | |
5074 | fi | |
5075 | fi | |
c2783492 MF |
5076 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5077 | if test -n "$ac_ct_AR"; then | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5079 | $as_echo "$ac_ct_AR" >&6; } | |
b7026657 | 5080 | else |
81ecdfbb RW |
5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5082 | $as_echo "no" >&6; } | |
c906108c | 5083 | fi |
b7026657 | 5084 | |
c2783492 MF |
5085 | if test "x$ac_ct_AR" = x; then |
5086 | AR="" | |
81ecdfbb RW |
5087 | else |
5088 | case $cross_compiling:$ac_tool_warned in | |
5089 | yes:) | |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5091 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5092 | ac_tool_warned=yes ;; | |
5093 | esac | |
c2783492 | 5094 | AR=$ac_ct_AR |
c906108c | 5095 | fi |
c906108c | 5096 | else |
c2783492 | 5097 | AR="$ac_cv_prog_AR" |
c906108c SS |
5098 | fi |
5099 | ||
c2783492 MF |
5100 | if test -n "$ac_tool_prefix"; then |
5101 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5102 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
5103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5104 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5105 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 5106 | $as_echo_n "(cached) " >&6 |
c906108c | 5107 | else |
c2783492 MF |
5108 | if test -n "$RANLIB"; then |
5109 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 5110 | else |
b7026657 AC |
5111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5112 | for as_dir in $PATH | |
5113 | do | |
5114 | IFS=$as_save_IFS | |
5115 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5116 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5118 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 5119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5120 | break 2 |
5121 | fi | |
5122 | done | |
81ecdfbb RW |
5123 | done |
5124 | IFS=$as_save_IFS | |
b7026657 | 5125 | |
c906108c SS |
5126 | fi |
5127 | fi | |
c2783492 MF |
5128 | RANLIB=$ac_cv_prog_RANLIB |
5129 | if test -n "$RANLIB"; then | |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5131 | $as_echo "$RANLIB" >&6; } | |
c906108c | 5132 | else |
81ecdfbb RW |
5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5134 | $as_echo "no" >&6; } | |
c906108c SS |
5135 | fi |
5136 | ||
81ecdfbb | 5137 | |
b7026657 | 5138 | fi |
c2783492 MF |
5139 | if test -z "$ac_cv_prog_RANLIB"; then |
5140 | ac_ct_RANLIB=$RANLIB | |
5141 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5142 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5144 | $as_echo_n "checking for $ac_word... " >&6; } | |
c2783492 | 5145 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 5146 | $as_echo_n "(cached) " >&6 |
c906108c | 5147 | else |
c2783492 MF |
5148 | if test -n "$ac_ct_RANLIB"; then |
5149 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b7026657 AC |
5150 | else |
5151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5152 | for as_dir in $PATH | |
5153 | do | |
5154 | IFS=$as_save_IFS | |
5155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5156 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c2783492 | 5158 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 5159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
5160 | break 2 |
5161 | fi | |
5162 | done | |
81ecdfbb RW |
5163 | done |
5164 | IFS=$as_save_IFS | |
b7026657 | 5165 | |
c906108c | 5166 | fi |
b7026657 | 5167 | fi |
c2783492 MF |
5168 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5169 | if test -n "$ac_ct_RANLIB"; then | |
5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5171 | $as_echo "$ac_ct_RANLIB" >&6; } | |
c906108c | 5172 | else |
81ecdfbb RW |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5174 | $as_echo "no" >&6; } | |
c906108c | 5175 | fi |
b7026657 | 5176 | |
c2783492 MF |
5177 | if test "x$ac_ct_RANLIB" = x; then |
5178 | RANLIB=":" | |
81ecdfbb RW |
5179 | else |
5180 | case $cross_compiling:$ac_tool_warned in | |
5181 | yes:) | |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5183 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5184 | ac_tool_warned=yes ;; | |
5185 | esac | |
c2783492 | 5186 | RANLIB=$ac_ct_RANLIB |
81ecdfbb | 5187 | fi |
c2783492 MF |
5188 | else |
5189 | RANLIB="$ac_cv_prog_RANLIB" | |
5190 | fi | |
5191 | ||
5192 | ||
d57b6533 MF |
5193 | |
5194 | ||
5195 | ||
5196 | ||
5197 | ||
5198 | ||
5199 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
5200 | if test -n "$ac_tool_prefix"; then | |
5201 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
5202 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5204 | $as_echo_n "checking for $ac_word... " >&6; } | |
5205 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
5206 | $as_echo_n "(cached) " >&6 | |
5207 | else | |
5208 | case $PKG_CONFIG in | |
5209 | [\\/]* | ?:[\\/]*) | |
5210 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5211 | ;; | |
5212 | *) | |
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=. | |
5218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5220 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5222 | break 2 | |
5223 | fi | |
5224 | done | |
5225 | done | |
5226 | IFS=$as_save_IFS | |
5227 | ||
5228 | ;; | |
5229 | esac | |
5230 | fi | |
5231 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5232 | if test -n "$PKG_CONFIG"; then | |
5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5234 | $as_echo "$PKG_CONFIG" >&6; } | |
5235 | else | |
5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5237 | $as_echo "no" >&6; } | |
5238 | fi | |
5239 | ||
5240 | ||
5241 | fi | |
5242 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5243 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5244 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5245 | set dummy pkg-config; ac_word=$2 | |
5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5247 | $as_echo_n "checking for $ac_word... " >&6; } | |
5248 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
5249 | $as_echo_n "(cached) " >&6 | |
5250 | else | |
5251 | case $ac_pt_PKG_CONFIG in | |
5252 | [\\/]* | ?:[\\/]*) | |
5253 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5254 | ;; | |
5255 | *) | |
5256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5257 | for as_dir in $PATH | |
5258 | do | |
5259 | IFS=$as_save_IFS | |
5260 | test -z "$as_dir" && as_dir=. | |
5261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5263 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
5264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5265 | break 2 | |
5266 | fi | |
5267 | done | |
5268 | done | |
5269 | IFS=$as_save_IFS | |
5270 | ||
5271 | ;; | |
5272 | esac | |
5273 | fi | |
5274 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5275 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5277 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5278 | else | |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5280 | $as_echo "no" >&6; } | |
5281 | fi | |
5282 | ||
5283 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
5284 | PKG_CONFIG="" | |
5285 | else | |
5286 | case $cross_compiling:$ac_tool_warned in | |
5287 | yes:) | |
5288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5289 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5290 | ac_tool_warned=yes ;; | |
5291 | esac | |
5292 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
5293 | fi | |
5294 | else | |
5295 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5296 | fi | |
5297 | ||
5298 | fi | |
5299 | if test -n "$PKG_CONFIG"; then | |
5300 | _pkg_min_version=0.9.0 | |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
5302 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
5303 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5305 | $as_echo "yes" >&6; } | |
5306 | else | |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5308 | $as_echo "no" >&6; } | |
5309 | PKG_CONFIG="" | |
5310 | fi | |
5311 | fi | |
5312 | ||
c2783492 MF |
5313 | # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |
5314 | # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands | |
5315 | # is C99. So handle it ourselves. | |
5316 | : | |
5317 | C_DIALECT= | |
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5 | |
5319 | $as_echo_n "checking whether C11 is supported by default... " >&6; } | |
5320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5321 | /* end confdefs.h. */ | |
5322 | ||
5323 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5324 | # error "C11 support not found" | |
5325 | #endif | |
5326 | ||
5327 | _ACEOF | |
5328 | if ac_fn_c_try_compile "$LINENO"; then : | |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5330 | $as_echo "yes" >&6; } | |
5331 | else | |
5332 | ||
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5334 | $as_echo "no" >&6; } | |
5335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5 | |
5336 | $as_echo_n "checking for -std=c11 support... " >&6; } | |
5337 | ac_save_CC="$CC" | |
5338 | CC="$CC -std=c11" | |
5339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5340 | /* end confdefs.h. */ | |
5341 | ||
5342 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
5343 | # error "C11 support not found" | |
5344 | #endif | |
5345 | ||
5346 | _ACEOF | |
5347 | if ac_fn_c_try_compile "$LINENO"; then : | |
5348 | ||
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5350 | $as_echo "yes" >&6; } | |
5351 | CC="$ac_save_CC" | |
5352 | C_DIALECT="-std=c11" | |
5353 | ||
5354 | else | |
5355 | as_fn_error $? "C11 is required" "$LINENO" 5 | |
5356 | fi | |
5357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5358 | fi | |
5359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5360 | ||
5361 | ||
5362 | ||
5363 | ||
c906108c | 5364 | |
b15c5d7a MF |
5365 | for ac_header in $ac_header_list |
5366 | do : | |
5367 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5368 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5369 | " | |
5370 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5371 | cat >>confdefs.h <<_ACEOF | |
5372 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5373 | _ACEOF | |
5374 | ||
b7026657 AC |
5375 | fi |
5376 | ||
b15c5d7a | 5377 | done |
b7026657 | 5378 | |
b7026657 | 5379 | |
c2783492 | 5380 | |
c2783492 | 5381 | |
c2783492 | 5382 | |
c2783492 | 5383 | |
c2783492 | 5384 | |
b15c5d7a MF |
5385 | |
5386 | ||
5387 | ||
5388 | ||
5389 | ||
5390 | ||
5391 | ||
5392 | ||
5393 | ||
5394 | ||
5395 | ||
5396 | ||
5397 | ||
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | ||
5403 | ||
5404 | ||
5405 | ||
5406 | ||
a48ff3ef MF |
5407 | |
5408 | ||
5409 | ||
5410 | ||
5411 | ||
5412 | ||
5413 | ||
5414 | ||
5415 | ||
5416 | ||
5417 | ||
5418 | ||
b15c5d7a MF |
5419 | |
5420 | ||
5421 | ||
5422 | ||
5423 | ||
5424 | ||
5425 | ||
5426 | ||
b15c5d7a MF |
5427 | |
5428 | ||
5429 | ||
5430 | for ac_func in $ac_func_list | |
5431 | do : | |
5432 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5433 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5434 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5435 | cat >>confdefs.h <<_ACEOF | |
5436 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5437 | _ACEOF | |
5438 | ||
5439 | fi | |
5440 | done | |
5441 | ||
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
5460 | ||
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | ||
5468 | ||
5469 | ||
5470 | ||
5471 | ||
5472 | ||
5473 | ||
5474 | ||
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
a48ff3ef MF |
5500 | |
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
5510 | ||
5511 | ||
5512 | ||
5513 | ||
5514 | ||
5515 | ||
5516 | ||
5517 | ||
5518 | ||
5519 | ||
5520 | ||
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | ||
5536 | ||
5537 | ||
5538 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5565 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5566 | if ${ac_cv_struct_tm+:} false; then : | |
5567 | $as_echo_n "(cached) " >&6 | |
5568 | else | |
5569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5570 | /* end confdefs.h. */ | |
5571 | #include <sys/types.h> | |
5572 | #include <time.h> | |
5573 | ||
5574 | int | |
5575 | main () | |
5576 | { | |
5577 | struct tm tm; | |
5578 | int *p = &tm.tm_sec; | |
5579 | return !p; | |
5580 | ; | |
5581 | return 0; | |
5582 | } | |
5583 | _ACEOF | |
5584 | if ac_fn_c_try_compile "$LINENO"; then : | |
5585 | ac_cv_struct_tm=time.h | |
5586 | else | |
5587 | ac_cv_struct_tm=sys/time.h | |
5588 | fi | |
5589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5590 | fi | |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5592 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5593 | if test $ac_cv_struct_tm = sys/time.h; then | |
5594 | ||
5595 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
5596 | ||
5597 | fi | |
5598 | ||
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
5600 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5601 | if ${ac_cv_type_uid_t+:} false; then : | |
5602 | $as_echo_n "(cached) " >&6 | |
5603 | else | |
5604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5605 | /* end confdefs.h. */ | |
5606 | #include <sys/types.h> | |
5607 | ||
5608 | _ACEOF | |
5609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5610 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5611 | ac_cv_type_uid_t=yes | |
5612 | else | |
5613 | ac_cv_type_uid_t=no | |
5614 | fi | |
5615 | rm -f conftest* | |
5616 | ||
5617 | fi | |
5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
5619 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5620 | if test $ac_cv_type_uid_t = no; then | |
5621 | ||
5622 | $as_echo "#define uid_t int" >>confdefs.h | |
5623 | ||
5624 | ||
5625 | $as_echo "#define gid_t int" >>confdefs.h | |
5626 | ||
5627 | fi | |
5628 | ||
b5689863 MF |
5629 | case `pwd` in |
5630 | *\ * | *\ *) | |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5632 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5633 | esac | |
a48ff3ef | 5634 | |
a48ff3ef | 5635 | |
a48ff3ef | 5636 | |
b5689863 MF |
5637 | macro_version='2.2.7a' |
5638 | macro_revision='1.3134' | |
a48ff3ef | 5639 | |
a48ff3ef | 5640 | |
a48ff3ef | 5641 | |
a48ff3ef | 5642 | |
a48ff3ef | 5643 | |
a48ff3ef | 5644 | |
a48ff3ef | 5645 | |
a48ff3ef | 5646 | |
a48ff3ef | 5647 | |
a48ff3ef MF |
5648 | |
5649 | ||
5650 | ||
5651 | ||
b5689863 | 5652 | ltmain="$ac_aux_dir/ltmain.sh" |
a48ff3ef | 5653 | |
b5689863 MF |
5654 | # Backslashify metacharacters that are still active within |
5655 | # double-quoted strings. | |
5656 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
a48ff3ef | 5657 | |
b5689863 MF |
5658 | # Same as above, but do not quote variable references. |
5659 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
a48ff3ef | 5660 | |
b5689863 MF |
5661 | # Sed substitution to delay expansion of an escaped shell variable in a |
5662 | # double_quote_subst'ed string. | |
5663 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5664 | ||
5665 | # Sed substitution to delay expansion of an escaped single quote. | |
5666 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5667 | ||
5668 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5669 | no_glob_subst='s/\*/\\\*/g' | |
5670 | ||
5671 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5672 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5673 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
a48ff3ef | 5674 | |
b5689863 MF |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5676 | $as_echo_n "checking how to print strings... " >&6; } | |
5677 | # Test print first, because it will be a builtin if present. | |
5678 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5679 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5680 | ECHO='print -r --' | |
5681 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5682 | ECHO='printf %s\n' | |
5683 | else | |
5684 | # Use this function as a fallback that always works. | |
5685 | func_fallback_echo () | |
5686 | { | |
5687 | eval 'cat <<_LTECHO_EOF | |
5688 | $1 | |
5689 | _LTECHO_EOF' | |
5690 | } | |
5691 | ECHO='func_fallback_echo' | |
a48ff3ef MF |
5692 | fi |
5693 | ||
b5689863 MF |
5694 | # func_echo_all arg... |
5695 | # Invoke $ECHO with all args, space-separated. | |
5696 | func_echo_all () | |
5697 | { | |
5698 | $ECHO "" | |
5699 | } | |
5700 | ||
5701 | case "$ECHO" in | |
5702 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5703 | $as_echo "printf" >&6; } ;; | |
5704 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5705 | $as_echo "print -r" >&6; } ;; | |
5706 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5707 | $as_echo "cat" >&6; } ;; | |
5708 | esac | |
5709 | ||
5710 | ||
a48ff3ef | 5711 | |
a48ff3ef | 5712 | |
a48ff3ef MF |
5713 | |
5714 | ||
a48ff3ef | 5715 | |
a48ff3ef | 5716 | |
a48ff3ef MF |
5717 | |
5718 | ||
a48ff3ef | 5719 | |
a48ff3ef MF |
5720 | |
5721 | ||
a48ff3ef | 5722 | |
b5689863 MF |
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5724 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5725 | if ${ac_cv_path_SED+:} false; then : | |
5726 | $as_echo_n "(cached) " >&6 | |
5727 | else | |
5728 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5729 | for ac_i in 1 2 3 4 5 6 7; do | |
5730 | ac_script="$ac_script$as_nl$ac_script" | |
5731 | done | |
5732 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5733 | { ac_script=; unset ac_script;} | |
5734 | if test -z "$SED"; then | |
5735 | ac_path_SED_found=false | |
5736 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5738 | for as_dir in $PATH | |
5739 | do | |
5740 | IFS=$as_save_IFS | |
5741 | test -z "$as_dir" && as_dir=. | |
5742 | for ac_prog in sed gsed; do | |
5743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5744 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5745 | as_fn_executable_p "$ac_path_SED" || continue | |
5746 | # Check for GNU ac_path_SED and select it if it is found. | |
5747 | # Check for GNU $ac_path_SED | |
5748 | case `"$ac_path_SED" --version 2>&1` in | |
5749 | *GNU*) | |
5750 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5751 | *) | |
5752 | ac_count=0 | |
5753 | $as_echo_n 0123456789 >"conftest.in" | |
5754 | while : | |
5755 | do | |
5756 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5757 | mv "conftest.tmp" "conftest.in" | |
5758 | cp "conftest.in" "conftest.nl" | |
5759 | $as_echo '' >> "conftest.nl" | |
5760 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5761 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5762 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5763 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5764 | # Best one so far, save it but keep looking for a better one | |
5765 | ac_cv_path_SED="$ac_path_SED" | |
5766 | ac_path_SED_max=$ac_count | |
5767 | fi | |
5768 | # 10*(2^10) chars as input seems more than enough | |
5769 | test $ac_count -gt 10 && break | |
5770 | done | |
5771 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5772 | esac | |
5773 | ||
5774 | $ac_path_SED_found && break 3 | |
5775 | done | |
5776 | done | |
5777 | done | |
5778 | IFS=$as_save_IFS | |
5779 | if test -z "$ac_cv_path_SED"; then | |
5780 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5781 | fi | |
5782 | else | |
5783 | ac_cv_path_SED=$SED | |
a48ff3ef MF |
5784 | fi |
5785 | ||
b5689863 MF |
5786 | fi |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5788 | $as_echo "$ac_cv_path_SED" >&6; } | |
5789 | SED="$ac_cv_path_SED" | |
5790 | rm -f conftest.sed | |
a48ff3ef | 5791 | |
b5689863 MF |
5792 | test -z "$SED" && SED=sed |
5793 | Xsed="$SED -e 1s/^X//" | |
a48ff3ef | 5794 | |
a48ff3ef | 5795 | |
a48ff3ef MF |
5796 | |
5797 | ||
a48ff3ef | 5798 | |
a48ff3ef | 5799 | |
a48ff3ef | 5800 | |
a48ff3ef | 5801 | |
a48ff3ef | 5802 | |
b5689863 MF |
5803 | |
5804 | ||
5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5806 | $as_echo_n "checking for fgrep... " >&6; } | |
5807 | if ${ac_cv_path_FGREP+:} false; then : | |
a48ff3ef MF |
5808 | $as_echo_n "(cached) " >&6 |
5809 | else | |
b5689863 MF |
5810 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5811 | then ac_cv_path_FGREP="$GREP -F" | |
5812 | else | |
5813 | if test -z "$FGREP"; then | |
5814 | ac_path_FGREP_found=false | |
5815 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5817 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5818 | do | |
5819 | IFS=$as_save_IFS | |
5820 | test -z "$as_dir" && as_dir=. | |
5821 | for ac_prog in fgrep; do | |
5822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5823 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5824 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5825 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5826 | # Check for GNU $ac_path_FGREP | |
5827 | case `"$ac_path_FGREP" --version 2>&1` in | |
5828 | *GNU*) | |
5829 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5830 | *) | |
5831 | ac_count=0 | |
5832 | $as_echo_n 0123456789 >"conftest.in" | |
5833 | while : | |
5834 | do | |
5835 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5836 | mv "conftest.tmp" "conftest.in" | |
5837 | cp "conftest.in" "conftest.nl" | |
5838 | $as_echo 'FGREP' >> "conftest.nl" | |
5839 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5840 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5841 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5842 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5843 | # Best one so far, save it but keep looking for a better one | |
5844 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5845 | ac_path_FGREP_max=$ac_count | |
5846 | fi | |
5847 | # 10*(2^10) chars as input seems more than enough | |
5848 | test $ac_count -gt 10 && break | |
5849 | done | |
5850 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5851 | esac | |
5852 | ||
5853 | $ac_path_FGREP_found && break 3 | |
5854 | done | |
5855 | done | |
5856 | done | |
5857 | IFS=$as_save_IFS | |
5858 | if test -z "$ac_cv_path_FGREP"; then | |
5859 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5860 | fi | |
5861 | else | |
5862 | ac_cv_path_FGREP=$FGREP | |
5863 | fi | |
5864 | ||
5865 | fi | |
5866 | fi | |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5868 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5869 | FGREP="$ac_cv_path_FGREP" | |
5870 | ||
5871 | ||
5872 | test -z "$GREP" && GREP=grep | |
5873 | ||
5874 | ||
5875 | ||
5876 | ||
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5881 | ||
5882 | ||
5883 | ||
5884 | ||
5885 | ||
5886 | ||
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | # Check whether --with-gnu-ld was given. | |
5893 | if test "${with_gnu_ld+set}" = set; then : | |
5894 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5895 | else | |
5896 | with_gnu_ld=no | |
5897 | fi | |
5898 | ||
5899 | ac_prog=ld | |
5900 | if test "$GCC" = yes; then | |
5901 | # Check if gcc -print-prog-name=ld gives a path. | |
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5903 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5904 | case $host in | |
5905 | *-*-mingw*) | |
5906 | # gcc leaves a trailing carriage return which upsets mingw | |
5907 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5908 | *) | |
5909 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5910 | esac | |
5911 | case $ac_prog in | |
5912 | # Accept absolute paths. | |
5913 | [\\/]* | ?:[\\/]*) | |
5914 | re_direlt='/[^/][^/]*/\.\./' | |
5915 | # Canonicalize the pathname of ld | |
5916 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5917 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5918 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5919 | done | |
5920 | test -z "$LD" && LD="$ac_prog" | |
5921 | ;; | |
5922 | "") | |
5923 | # If it fails, then pretend we aren't using GCC. | |
5924 | ac_prog=ld | |
5925 | ;; | |
5926 | *) | |
5927 | # If it is relative, then search for the first ld in PATH. | |
5928 | with_gnu_ld=unknown | |
5929 | ;; | |
5930 | esac | |
5931 | elif test "$with_gnu_ld" = yes; then | |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5933 | $as_echo_n "checking for GNU ld... " >&6; } | |
5934 | else | |
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5936 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5937 | fi | |
5938 | if ${lt_cv_path_LD+:} false; then : | |
5939 | $as_echo_n "(cached) " >&6 | |
5940 | else | |
5941 | if test -z "$LD"; then | |
5942 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5943 | for ac_dir in $PATH; do | |
5944 | IFS="$lt_save_ifs" | |
5945 | test -z "$ac_dir" && ac_dir=. | |
5946 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5947 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5948 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5949 | # but apparently some variants of GNU ld only accept -v. | |
5950 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5951 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5952 | *GNU* | *'with BFD'*) | |
5953 | test "$with_gnu_ld" != no && break | |
5954 | ;; | |
5955 | *) | |
5956 | test "$with_gnu_ld" != yes && break | |
5957 | ;; | |
5958 | esac | |
5959 | fi | |
5960 | done | |
5961 | IFS="$lt_save_ifs" | |
5962 | else | |
5963 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5964 | fi | |
5965 | fi | |
5966 | ||
5967 | LD="$lt_cv_path_LD" | |
5968 | if test -n "$LD"; then | |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5970 | $as_echo "$LD" >&6; } | |
5971 | else | |
5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5973 | $as_echo "no" >&6; } | |
5974 | fi | |
5975 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5977 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5978 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5979 | $as_echo_n "(cached) " >&6 | |
5980 | else | |
5981 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5982 | case `$LD -v 2>&1 </dev/null` in | |
5983 | *GNU* | *'with BFD'*) | |
5984 | lt_cv_prog_gnu_ld=yes | |
5985 | ;; | |
5986 | *) | |
5987 | lt_cv_prog_gnu_ld=no | |
5988 | ;; | |
5989 | esac | |
5990 | fi | |
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5992 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5993 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5994 | ||
5995 | ||
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | ||
6002 | ||
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6004 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6005 | if ${lt_cv_path_NM+:} false; then : | |
6006 | $as_echo_n "(cached) " >&6 | |
6007 | else | |
6008 | if test -n "$NM"; then | |
b9004024 NA |
6009 | # Let the user override the nm to test. |
6010 | lt_nm_to_check="$NM" | |
6011 | else | |
6012 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6013 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6014 | lt_nm_to_check="$lt_nm_to_check nm" | |
6015 | fi | |
6016 | fi | |
6017 | for lt_tmp_nm in $lt_nm_to_check; do | |
6018 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6019 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6020 | IFS="$lt_save_ifs" | |
6021 | test -z "$ac_dir" && ac_dir=. | |
6022 | case "$lt_tmp_nm" in | |
6023 | */*|*\\*) tmp_nm="$lt_tmp_nm";; | |
6024 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
6025 | esac | |
6026 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6027 | # Check to see if the nm accepts a BSD-compat flag. | |
6028 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6029 | # nm: unknown option "B" ignored | |
6030 | case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in | |
6031 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" | |
6032 | break | |
6033 | ;; | |
6034 | *) | |
6035 | case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in | |
6036 | *$tmp_nm*) | |
6037 | lt_cv_path_NM="$tmp_nm -p" | |
6038 | break | |
6039 | ;; | |
6040 | *) | |
6041 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6042 | continue # so that we can try to find one that supports BSD flags | |
6043 | ;; | |
6044 | esac | |
6045 | ;; | |
6046 | esac | |
6047 | fi | |
6048 | done | |
6049 | IFS="$lt_save_ifs" | |
6050 | done | |
6051 | : ${lt_cv_path_NM=no} | |
b5689863 MF |
6052 | fi |
6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6054 | $as_echo "$lt_cv_path_NM" >&6; } | |
6055 | if test "$lt_cv_path_NM" != "no"; then | |
6056 | NM="$lt_cv_path_NM" | |
6057 | else | |
6058 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
6059 | if test -n "$DUMPBIN"; then : | |
6060 | # Let the user override the test. | |
6061 | else | |
6062 | if test -n "$ac_tool_prefix"; then | |
6063 | for ac_prog in dumpbin "link -dump" | |
6064 | do | |
6065 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6066 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6068 | $as_echo_n "checking for $ac_word... " >&6; } | |
6069 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
6070 | $as_echo_n "(cached) " >&6 | |
6071 | else | |
6072 | if test -n "$DUMPBIN"; then | |
6073 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6074 | else | |
6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6076 | for as_dir in $PATH | |
6077 | do | |
6078 | IFS=$as_save_IFS | |
6079 | test -z "$as_dir" && as_dir=. | |
6080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6082 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6084 | break 2 | |
6085 | fi | |
6086 | done | |
6087 | done | |
6088 | IFS=$as_save_IFS | |
6089 | ||
6090 | fi | |
6091 | fi | |
6092 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
6093 | if test -n "$DUMPBIN"; then | |
6094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6095 | $as_echo "$DUMPBIN" >&6; } | |
6096 | else | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6098 | $as_echo "no" >&6; } | |
6099 | fi | |
6100 | ||
6101 | ||
6102 | test -n "$DUMPBIN" && break | |
6103 | done | |
6104 | fi | |
6105 | if test -z "$DUMPBIN"; then | |
6106 | ac_ct_DUMPBIN=$DUMPBIN | |
6107 | for ac_prog in dumpbin "link -dump" | |
6108 | do | |
6109 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6110 | set dummy $ac_prog; ac_word=$2 | |
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6112 | $as_echo_n "checking for $ac_word... " >&6; } | |
6113 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6114 | $as_echo_n "(cached) " >&6 | |
6115 | else | |
6116 | if test -n "$ac_ct_DUMPBIN"; then | |
6117 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6118 | else | |
6119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6120 | for as_dir in $PATH | |
6121 | do | |
6122 | IFS=$as_save_IFS | |
6123 | test -z "$as_dir" && as_dir=. | |
6124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6125 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6126 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6128 | break 2 | |
6129 | fi | |
6130 | done | |
6131 | done | |
6132 | IFS=$as_save_IFS | |
6133 | ||
6134 | fi | |
6135 | fi | |
6136 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6137 | if test -n "$ac_ct_DUMPBIN"; then | |
6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6139 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6140 | else | |
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6142 | $as_echo "no" >&6; } | |
6143 | fi | |
6144 | ||
6145 | ||
6146 | test -n "$ac_ct_DUMPBIN" && break | |
6147 | done | |
6148 | ||
6149 | if test "x$ac_ct_DUMPBIN" = x; then | |
6150 | DUMPBIN=":" | |
6151 | else | |
6152 | case $cross_compiling:$ac_tool_warned in | |
6153 | yes:) | |
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6155 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6156 | ac_tool_warned=yes ;; | |
6157 | esac | |
6158 | DUMPBIN=$ac_ct_DUMPBIN | |
6159 | fi | |
6160 | fi | |
6161 | ||
6162 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6163 | *COFF*) | |
6164 | DUMPBIN="$DUMPBIN -symbols" | |
6165 | ;; | |
6166 | *) | |
6167 | DUMPBIN=: | |
6168 | ;; | |
6169 | esac | |
6170 | fi | |
6171 | ||
6172 | if test "$DUMPBIN" != ":"; then | |
6173 | NM="$DUMPBIN" | |
6174 | fi | |
6175 | fi | |
6176 | test -z "$NM" && NM=nm | |
6177 | ||
6178 | ||
6179 | ||
6180 | ||
6181 | ||
6182 | ||
6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6184 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6185 | if ${lt_cv_nm_interface+:} false; then : | |
6186 | $as_echo_n "(cached) " >&6 | |
6187 | else | |
6188 | lt_cv_nm_interface="BSD nm" | |
6189 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6190 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6191 | (eval "$ac_compile" 2>conftest.err) | |
6192 | cat conftest.err >&5 | |
6193 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6194 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6195 | cat conftest.err >&5 | |
6196 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6197 | cat conftest.out >&5 | |
6198 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6199 | lt_cv_nm_interface="MS dumpbin" | |
6200 | fi | |
6201 | rm -f conftest* | |
6202 | fi | |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6204 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6205 | ||
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6207 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6208 | LN_S=$as_ln_s | |
6209 | if test "$LN_S" = "ln -s"; then | |
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6211 | $as_echo "yes" >&6; } | |
6212 | else | |
6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6214 | $as_echo "no, using $LN_S" >&6; } | |
6215 | fi | |
6216 | ||
6217 | # find the maximum length of command line arguments | |
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6219 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6220 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6221 | $as_echo_n "(cached) " >&6 | |
6222 | else | |
6223 | i=0 | |
6224 | teststring="ABCD" | |
6225 | ||
6226 | case $build_os in | |
6227 | msdosdjgpp*) | |
6228 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6229 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6230 | # during glob expansion). Even if it were fixed, the result of this | |
6231 | # check would be larger than it should be. | |
6232 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6233 | ;; | |
6234 | ||
6235 | gnu*) | |
6236 | # Under GNU Hurd, this test is not required because there is | |
6237 | # no limit to the length of command line arguments. | |
6238 | # Libtool will interpret -1 as no limit whatsoever | |
6239 | lt_cv_sys_max_cmd_len=-1; | |
6240 | ;; | |
6241 | ||
6242 | cygwin* | mingw* | cegcc*) | |
6243 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6244 | # about 5 minutes as the teststring grows exponentially. | |
6245 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6246 | # you end up with a "frozen" computer, even though with patience | |
6247 | # the test eventually succeeds (with a max line length of 256k). | |
6248 | # Instead, let's just punt: use the minimum linelength reported by | |
6249 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6250 | lt_cv_sys_max_cmd_len=8192; | |
6251 | ;; | |
6252 | ||
6253 | mint*) | |
6254 | # On MiNT this can take a long time and run out of memory. | |
6255 | lt_cv_sys_max_cmd_len=8192; | |
6256 | ;; | |
6257 | ||
6258 | amigaos*) | |
6259 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6260 | # So we just punt and use a minimum line length of 8192. | |
6261 | lt_cv_sys_max_cmd_len=8192; | |
6262 | ;; | |
6263 | ||
6264 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6265 | # This has been around since 386BSD, at least. Likely further. | |
6266 | if test -x /sbin/sysctl; then | |
6267 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6268 | elif test -x /usr/sbin/sysctl; then | |
6269 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6270 | else | |
6271 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6272 | fi | |
6273 | # And add a safety zone | |
6274 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6275 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6276 | ;; | |
6277 | ||
6278 | interix*) | |
6279 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6280 | lt_cv_sys_max_cmd_len=196608 | |
6281 | ;; | |
6282 | ||
6283 | osf*) | |
6284 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6285 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6286 | # nice to cause kernel panics so lets avoid the loop below. | |
6287 | # First set a reasonable default. | |
6288 | lt_cv_sys_max_cmd_len=16384 | |
6289 | # | |
6290 | if test -x /sbin/sysconfig; then | |
6291 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6292 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6293 | esac | |
6294 | fi | |
6295 | ;; | |
6296 | sco3.2v5*) | |
6297 | lt_cv_sys_max_cmd_len=102400 | |
6298 | ;; | |
6299 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6300 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6301 | if test -n "$kargmax"; then | |
6302 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6303 | else | |
6304 | lt_cv_sys_max_cmd_len=32768 | |
6305 | fi | |
6306 | ;; | |
6307 | *) | |
6308 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6309 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6310 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6311 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6312 | else | |
6313 | # Make teststring a little bigger before we do anything with it. | |
6314 | # a 1K string should be a reasonable start. | |
6315 | for i in 1 2 3 4 5 6 7 8 ; do | |
6316 | teststring=$teststring$teststring | |
6317 | done | |
6318 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6319 | # If test is not a shell built-in, we'll probably end up computing a | |
6320 | # maximum length that is only half of the actual maximum length, but | |
6321 | # we can't tell. | |
6322 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6323 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6324 | test $i != 17 # 1/2 MB should be enough | |
6325 | do | |
6326 | i=`expr $i + 1` | |
6327 | teststring=$teststring$teststring | |
6328 | done | |
6329 | # Only check the string length outside the loop. | |
6330 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6331 | teststring= | |
6332 | # Add a significant safety factor because C++ compilers can tack on | |
6333 | # massive amounts of additional arguments before passing them to the | |
6334 | # linker. It appears as though 1/2 is a usable value. | |
6335 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6336 | fi | |
6337 | ;; | |
6338 | esac | |
6339 | ||
6340 | fi | |
6341 | ||
6342 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6344 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6345 | else | |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6347 | $as_echo "none" >&6; } | |
6348 | fi | |
6349 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | ||
6356 | : ${CP="cp -f"} | |
6357 | : ${MV="mv -f"} | |
6358 | : ${RM="rm -f"} | |
6359 | ||
6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6361 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6362 | # Try some XSI features | |
6363 | xsi_shell=no | |
6364 | ( _lt_dummy="a/b/c" | |
6365 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6366 | = c,a/b,, \ | |
6367 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6368 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6369 | && xsi_shell=yes | |
6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6371 | $as_echo "$xsi_shell" >&6; } | |
6372 | ||
6373 | ||
6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6375 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6376 | lt_shell_append=no | |
6377 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6378 | >/dev/null 2>&1 \ | |
6379 | && lt_shell_append=yes | |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6381 | $as_echo "$lt_shell_append" >&6; } | |
6382 | ||
6383 | ||
6384 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6385 | lt_unset=unset | |
6386 | else | |
6387 | lt_unset=false | |
6388 | fi | |
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | ||
6394 | # test EBCDIC or ASCII | |
6395 | case `echo X|tr X '\101'` in | |
6396 | A) # ASCII based system | |
6397 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6398 | lt_SP2NL='tr \040 \012' | |
6399 | lt_NL2SP='tr \015\012 \040\040' | |
6400 | ;; | |
6401 | *) # EBCDIC based system | |
6402 | lt_SP2NL='tr \100 \n' | |
6403 | lt_NL2SP='tr \r\n \100\100' | |
6404 | ;; | |
6405 | esac | |
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6416 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6417 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6418 | $as_echo_n "(cached) " >&6 | |
6419 | else | |
6420 | lt_cv_ld_reload_flag='-r' | |
6421 | fi | |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6423 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6424 | reload_flag=$lt_cv_ld_reload_flag | |
6425 | case $reload_flag in | |
6426 | "" | " "*) ;; | |
6427 | *) reload_flag=" $reload_flag" ;; | |
6428 | esac | |
6429 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6430 | case $host_os in | |
6431 | darwin*) | |
6432 | if test "$GCC" = yes; then | |
6433 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6434 | else | |
6435 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6436 | fi | |
6437 | ;; | |
6438 | esac | |
6439 | ||
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | if test -n "$ac_tool_prefix"; then | |
6449 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6450 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6452 | $as_echo_n "checking for $ac_word... " >&6; } | |
6453 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6454 | $as_echo_n "(cached) " >&6 | |
6455 | else | |
6456 | if test -n "$OBJDUMP"; then | |
6457 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6458 | else | |
6459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6460 | for as_dir in $PATH | |
6461 | do | |
6462 | IFS=$as_save_IFS | |
6463 | test -z "$as_dir" && as_dir=. | |
6464 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6465 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6466 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6468 | break 2 | |
6469 | fi | |
6470 | done | |
6471 | done | |
6472 | IFS=$as_save_IFS | |
6473 | ||
6474 | fi | |
6475 | fi | |
6476 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6477 | if test -n "$OBJDUMP"; then | |
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6479 | $as_echo "$OBJDUMP" >&6; } | |
6480 | else | |
6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6482 | $as_echo "no" >&6; } | |
6483 | fi | |
6484 | ||
6485 | ||
6486 | fi | |
6487 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6488 | ac_ct_OBJDUMP=$OBJDUMP | |
6489 | # Extract the first word of "objdump", so it can be a program name with args. | |
6490 | set dummy objdump; ac_word=$2 | |
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6492 | $as_echo_n "checking for $ac_word... " >&6; } | |
6493 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6494 | $as_echo_n "(cached) " >&6 | |
6495 | else | |
6496 | if test -n "$ac_ct_OBJDUMP"; then | |
6497 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6498 | else | |
6499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6500 | for as_dir in $PATH | |
6501 | do | |
6502 | IFS=$as_save_IFS | |
6503 | test -z "$as_dir" && as_dir=. | |
6504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6505 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6506 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6508 | break 2 | |
6509 | fi | |
6510 | done | |
6511 | done | |
6512 | IFS=$as_save_IFS | |
6513 | ||
6514 | fi | |
6515 | fi | |
6516 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6517 | if test -n "$ac_ct_OBJDUMP"; then | |
6518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6519 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6520 | else | |
6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6522 | $as_echo "no" >&6; } | |
6523 | fi | |
6524 | ||
6525 | if test "x$ac_ct_OBJDUMP" = x; then | |
6526 | OBJDUMP="false" | |
6527 | else | |
6528 | case $cross_compiling:$ac_tool_warned in | |
6529 | yes:) | |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6531 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6532 | ac_tool_warned=yes ;; | |
6533 | esac | |
6534 | OBJDUMP=$ac_ct_OBJDUMP | |
6535 | fi | |
6536 | else | |
6537 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6538 | fi | |
6539 | ||
6540 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6551 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6552 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6553 | $as_echo_n "(cached) " >&6 | |
6554 | else | |
6555 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6556 | lt_cv_file_magic_test_file= | |
6557 | lt_cv_deplibs_check_method='unknown' | |
6558 | # Need to set the preceding variable on all platforms that support | |
6559 | # interlibrary dependencies. | |
6560 | # 'none' -- dependencies not supported. | |
6561 | # `unknown' -- same as none, but documents that we really don't know. | |
6562 | # 'pass_all' -- all dependencies passed with no checks. | |
6563 | # 'test_compile' -- check by making test program. | |
6564 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6565 | # which responds to the $file_magic_cmd with a given extended regex. | |
6566 | # If you have `file' or equivalent on your system and you're not sure | |
6567 | # whether `pass_all' will *always* work, you probably want this one. | |
6568 | ||
6569 | case $host_os in | |
6570 | aix[4-9]*) | |
6571 | lt_cv_deplibs_check_method=pass_all | |
6572 | ;; | |
6573 | ||
6574 | beos*) | |
6575 | lt_cv_deplibs_check_method=pass_all | |
6576 | ;; | |
6577 | ||
6578 | bsdi[45]*) | |
6579 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6580 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6581 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6582 | ;; | |
6583 | ||
6584 | cygwin*) | |
6585 | # func_win32_libid is a shell function defined in ltmain.sh | |
6586 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6587 | lt_cv_file_magic_cmd='func_win32_libid' | |
6588 | ;; | |
6589 | ||
6590 | mingw* | pw32*) | |
6591 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6592 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6593 | # unless we find 'file', for example because we are cross-compiling. | |
6594 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6595 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6596 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6597 | lt_cv_file_magic_cmd='func_win32_libid' | |
6598 | else | |
6599 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6600 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6601 | fi | |
6602 | ;; | |
6603 | ||
6604 | cegcc*) | |
6605 | # use the weaker test based on 'objdump'. See mingw*. | |
6606 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6607 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6608 | ;; | |
6609 | ||
6610 | darwin* | rhapsody*) | |
6611 | lt_cv_deplibs_check_method=pass_all | |
6612 | ;; | |
6613 | ||
6614 | freebsd* | dragonfly*) | |
6615 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6616 | case $host_cpu in | |
6617 | i*86 ) | |
6618 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6619 | # Let's accept both of them until this is cleared up. | |
6620 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6621 | lt_cv_file_magic_cmd=/usr/bin/file | |
6622 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6623 | ;; | |
6624 | esac | |
6625 | else | |
6626 | lt_cv_deplibs_check_method=pass_all | |
6627 | fi | |
6628 | ;; | |
6629 | ||
6630 | gnu*) | |
6631 | lt_cv_deplibs_check_method=pass_all | |
6632 | ;; | |
6633 | ||
6634 | haiku*) | |
6635 | lt_cv_deplibs_check_method=pass_all | |
6636 | ;; | |
6637 | ||
6638 | hpux10.20* | hpux11*) | |
6639 | lt_cv_file_magic_cmd=/usr/bin/file | |
6640 | case $host_cpu in | |
6641 | ia64*) | |
6642 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6643 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6644 | ;; | |
6645 | hppa*64*) | |
6646 | 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]' | |
6647 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6648 | ;; | |
6649 | *) | |
6650 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6651 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6652 | ;; | |
6653 | esac | |
6654 | ;; | |
6655 | ||
6656 | interix[3-9]*) | |
6657 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6658 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6659 | ;; | |
6660 | ||
6661 | irix5* | irix6* | nonstopux*) | |
6662 | case $LD in | |
6663 | *-32|*"-32 ") libmagic=32-bit;; | |
6664 | *-n32|*"-n32 ") libmagic=N32;; | |
6665 | *-64|*"-64 ") libmagic=64-bit;; | |
6666 | *) libmagic=never-match;; | |
6667 | esac | |
6668 | lt_cv_deplibs_check_method=pass_all | |
6669 | ;; | |
6670 | ||
6671 | # This must be Linux ELF. | |
6672 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6673 | lt_cv_deplibs_check_method=pass_all | |
6674 | ;; | |
6675 | ||
6676 | netbsd*) | |
6677 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6678 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6679 | else | |
6680 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6681 | fi | |
6682 | ;; | |
6683 | ||
6684 | newos6*) | |
6685 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6686 | lt_cv_file_magic_cmd=/usr/bin/file | |
6687 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6688 | ;; | |
6689 | ||
6690 | *nto* | *qnx*) | |
6691 | lt_cv_deplibs_check_method=pass_all | |
6692 | ;; | |
6693 | ||
6694 | openbsd*) | |
6695 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6696 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6697 | else | |
6698 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6699 | fi | |
6700 | ;; | |
6701 | ||
6702 | osf3* | osf4* | osf5*) | |
6703 | lt_cv_deplibs_check_method=pass_all | |
6704 | ;; | |
6705 | ||
6706 | rdos*) | |
6707 | lt_cv_deplibs_check_method=pass_all | |
6708 | ;; | |
6709 | ||
6710 | solaris*) | |
6711 | lt_cv_deplibs_check_method=pass_all | |
6712 | ;; | |
6713 | ||
6714 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6715 | lt_cv_deplibs_check_method=pass_all | |
6716 | ;; | |
6717 | ||
6718 | sysv4 | sysv4.3*) | |
6719 | case $host_vendor in | |
6720 | motorola) | |
6721 | 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]' | |
6722 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6723 | ;; | |
6724 | ncr) | |
6725 | lt_cv_deplibs_check_method=pass_all | |
6726 | ;; | |
6727 | sequent) | |
6728 | lt_cv_file_magic_cmd='/bin/file' | |
6729 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6730 | ;; | |
6731 | sni) | |
6732 | lt_cv_file_magic_cmd='/bin/file' | |
6733 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6734 | lt_cv_file_magic_test_file=/lib/libc.so | |
6735 | ;; | |
6736 | siemens) | |
6737 | lt_cv_deplibs_check_method=pass_all | |
6738 | ;; | |
6739 | pc) | |
6740 | lt_cv_deplibs_check_method=pass_all | |
6741 | ;; | |
6742 | esac | |
6743 | ;; | |
6744 | ||
6745 | tpf*) | |
6746 | lt_cv_deplibs_check_method=pass_all | |
6747 | ;; | |
6748 | esac | |
6749 | ||
6750 | fi | |
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6752 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6753 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6754 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6755 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6756 | ||
6757 | ||
6758 | ||
6759 | ||
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | ||
6765 | ||
6766 | ||
6767 | ||
6768 | plugin_option= | |
6769 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6770 | for plugin in $plugin_names; do | |
6771 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6772 | if test x$plugin_so = x$plugin; then | |
6773 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6774 | fi | |
6775 | if test x$plugin_so != x$plugin; then | |
6776 | plugin_option="--plugin $plugin_so" | |
6777 | break | |
6778 | fi | |
6779 | done | |
6780 | ||
6781 | if test -n "$ac_tool_prefix"; then | |
6782 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6783 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6785 | $as_echo_n "checking for $ac_word... " >&6; } | |
6786 | if ${ac_cv_prog_AR+:} false; then : | |
6787 | $as_echo_n "(cached) " >&6 | |
6788 | else | |
6789 | if test -n "$AR"; then | |
6790 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6791 | else | |
6792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6793 | for as_dir in $PATH | |
6794 | do | |
6795 | IFS=$as_save_IFS | |
6796 | test -z "$as_dir" && as_dir=. | |
6797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6798 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6799 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6801 | break 2 | |
6802 | fi | |
6803 | done | |
6804 | done | |
6805 | IFS=$as_save_IFS | |
6806 | ||
6807 | fi | |
6808 | fi | |
6809 | AR=$ac_cv_prog_AR | |
6810 | if test -n "$AR"; then | |
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6812 | $as_echo "$AR" >&6; } | |
6813 | else | |
6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6815 | $as_echo "no" >&6; } | |
6816 | fi | |
6817 | ||
6818 | ||
6819 | fi | |
6820 | if test -z "$ac_cv_prog_AR"; then | |
6821 | ac_ct_AR=$AR | |
6822 | # Extract the first word of "ar", so it can be a program name with args. | |
6823 | set dummy ar; ac_word=$2 | |
6824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6825 | $as_echo_n "checking for $ac_word... " >&6; } | |
6826 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6827 | $as_echo_n "(cached) " >&6 | |
6828 | else | |
6829 | if test -n "$ac_ct_AR"; then | |
6830 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6831 | else | |
6832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6833 | for as_dir in $PATH | |
6834 | do | |
6835 | IFS=$as_save_IFS | |
6836 | test -z "$as_dir" && as_dir=. | |
6837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6838 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6839 | ac_cv_prog_ac_ct_AR="ar" | |
6840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6841 | break 2 | |
6842 | fi | |
6843 | done | |
6844 | done | |
6845 | IFS=$as_save_IFS | |
6846 | ||
6847 | fi | |
6848 | fi | |
6849 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6850 | if test -n "$ac_ct_AR"; then | |
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6852 | $as_echo "$ac_ct_AR" >&6; } | |
6853 | else | |
6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6855 | $as_echo "no" >&6; } | |
6856 | fi | |
6857 | ||
6858 | if test "x$ac_ct_AR" = x; then | |
6859 | AR="false" | |
6860 | else | |
6861 | case $cross_compiling:$ac_tool_warned in | |
6862 | yes:) | |
6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6864 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6865 | ac_tool_warned=yes ;; | |
6866 | esac | |
6867 | AR=$ac_ct_AR | |
6868 | fi | |
6869 | else | |
6870 | AR="$ac_cv_prog_AR" | |
6871 | fi | |
6872 | ||
6873 | test -z "$AR" && AR=ar | |
6874 | if test -n "$plugin_option"; then | |
6875 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
6876 | touch conftest.c | |
6877 | $AR $plugin_option rc conftest.a conftest.c | |
6878 | if test "$?" != 0; then | |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6880 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6881 | else | |
6882 | AR="$AR $plugin_option" | |
6883 | fi | |
6884 | rm -f conftest.* | |
6885 | fi | |
6886 | fi | |
6887 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6888 | ||
6889 | ||
6890 | ||
6891 | ||
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | if test -n "$ac_tool_prefix"; then | |
6900 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6901 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6903 | $as_echo_n "checking for $ac_word... " >&6; } | |
6904 | if ${ac_cv_prog_STRIP+:} false; then : | |
6905 | $as_echo_n "(cached) " >&6 | |
6906 | else | |
6907 | if test -n "$STRIP"; then | |
6908 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6909 | else | |
6910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6911 | for as_dir in $PATH | |
6912 | do | |
6913 | IFS=$as_save_IFS | |
6914 | test -z "$as_dir" && as_dir=. | |
6915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6917 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6919 | break 2 | |
6920 | fi | |
6921 | done | |
6922 | done | |
6923 | IFS=$as_save_IFS | |
6924 | ||
6925 | fi | |
6926 | fi | |
6927 | STRIP=$ac_cv_prog_STRIP | |
6928 | if test -n "$STRIP"; then | |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6930 | $as_echo "$STRIP" >&6; } | |
6931 | else | |
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6933 | $as_echo "no" >&6; } | |
6934 | fi | |
6935 | ||
6936 | ||
6937 | fi | |
6938 | if test -z "$ac_cv_prog_STRIP"; then | |
6939 | ac_ct_STRIP=$STRIP | |
6940 | # Extract the first word of "strip", so it can be a program name with args. | |
6941 | set dummy strip; ac_word=$2 | |
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6943 | $as_echo_n "checking for $ac_word... " >&6; } | |
6944 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6945 | $as_echo_n "(cached) " >&6 | |
6946 | else | |
6947 | if test -n "$ac_ct_STRIP"; then | |
6948 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6949 | else | |
6950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6951 | for as_dir in $PATH | |
6952 | do | |
6953 | IFS=$as_save_IFS | |
6954 | test -z "$as_dir" && as_dir=. | |
6955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6957 | ac_cv_prog_ac_ct_STRIP="strip" | |
6958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6959 | break 2 | |
6960 | fi | |
6961 | done | |
6962 | done | |
6963 | IFS=$as_save_IFS | |
6964 | ||
6965 | fi | |
6966 | fi | |
6967 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6968 | if test -n "$ac_ct_STRIP"; then | |
6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6970 | $as_echo "$ac_ct_STRIP" >&6; } | |
6971 | else | |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6973 | $as_echo "no" >&6; } | |
6974 | fi | |
6975 | ||
6976 | if test "x$ac_ct_STRIP" = x; then | |
6977 | STRIP=":" | |
6978 | else | |
6979 | case $cross_compiling:$ac_tool_warned in | |
6980 | yes:) | |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6983 | ac_tool_warned=yes ;; | |
6984 | esac | |
6985 | STRIP=$ac_ct_STRIP | |
6986 | fi | |
6987 | else | |
6988 | STRIP="$ac_cv_prog_STRIP" | |
6989 | fi | |
6990 | ||
6991 | test -z "$STRIP" && STRIP=: | |
6992 | ||
6993 | ||
6994 | ||
6995 | ||
6996 | ||
6997 | ||
6998 | if test -n "$ac_tool_prefix"; then | |
6999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7002 | $as_echo_n "checking for $ac_word... " >&6; } | |
7003 | if ${ac_cv_prog_RANLIB+:} false; then : | |
7004 | $as_echo_n "(cached) " >&6 | |
7005 | else | |
7006 | if test -n "$RANLIB"; then | |
7007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7008 | else | |
7009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7010 | for as_dir in $PATH | |
7011 | do | |
7012 | IFS=$as_save_IFS | |
7013 | test -z "$as_dir" && as_dir=. | |
7014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7018 | break 2 | |
7019 | fi | |
7020 | done | |
7021 | done | |
7022 | IFS=$as_save_IFS | |
7023 | ||
7024 | fi | |
7025 | fi | |
7026 | RANLIB=$ac_cv_prog_RANLIB | |
7027 | if test -n "$RANLIB"; then | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7029 | $as_echo "$RANLIB" >&6; } | |
7030 | else | |
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7032 | $as_echo "no" >&6; } | |
7033 | fi | |
7034 | ||
7035 | ||
7036 | fi | |
7037 | if test -z "$ac_cv_prog_RANLIB"; then | |
7038 | ac_ct_RANLIB=$RANLIB | |
7039 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7040 | set dummy ranlib; ac_word=$2 | |
7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7042 | $as_echo_n "checking for $ac_word... " >&6; } | |
7043 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
7044 | $as_echo_n "(cached) " >&6 | |
7045 | else | |
7046 | if test -n "$ac_ct_RANLIB"; then | |
7047 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7048 | else | |
7049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7050 | for as_dir in $PATH | |
7051 | do | |
7052 | IFS=$as_save_IFS | |
7053 | test -z "$as_dir" && as_dir=. | |
7054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7056 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7058 | break 2 | |
7059 | fi | |
7060 | done | |
7061 | done | |
7062 | IFS=$as_save_IFS | |
7063 | ||
7064 | fi | |
7065 | fi | |
7066 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7067 | if test -n "$ac_ct_RANLIB"; then | |
7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7069 | $as_echo "$ac_ct_RANLIB" >&6; } | |
7070 | else | |
7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7072 | $as_echo "no" >&6; } | |
7073 | fi | |
7074 | ||
7075 | if test "x$ac_ct_RANLIB" = x; then | |
7076 | RANLIB=":" | |
7077 | else | |
7078 | case $cross_compiling:$ac_tool_warned in | |
7079 | yes:) | |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7081 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7082 | ac_tool_warned=yes ;; | |
7083 | esac | |
7084 | RANLIB=$ac_ct_RANLIB | |
7085 | fi | |
7086 | else | |
7087 | RANLIB="$ac_cv_prog_RANLIB" | |
7088 | fi | |
7089 | ||
7090 | test -z "$RANLIB" && RANLIB=: | |
7091 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then | |
7092 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
7093 | RANLIB="$RANLIB $plugin_option" | |
7094 | fi | |
7095 | fi | |
7096 | ||
7097 | ||
7098 | ||
7099 | ||
7100 | ||
7101 | ||
7102 | # Determine commands to create old-style static archives. | |
7103 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7104 | old_postinstall_cmds='chmod 644 $oldlib' | |
7105 | old_postuninstall_cmds= | |
7106 | ||
7107 | if test -n "$RANLIB"; then | |
7108 | case $host_os in | |
7109 | openbsd*) | |
7110 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
7111 | ;; | |
7112 | *) | |
7113 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
7114 | ;; | |
7115 | esac | |
7116 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
7117 | fi | |
7118 | ||
7119 | case $host_os in | |
7120 | darwin*) | |
7121 | lock_old_archive_extraction=yes ;; | |
7122 | *) | |
7123 | lock_old_archive_extraction=no ;; | |
7124 | esac | |
7125 | ||
7126 | ||
7127 | ||
7128 | ||
7129 | ||
7130 | ||
7131 | ||
7132 | ||
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | ||
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | for ac_prog in gawk mawk nawk awk | |
7147 | do | |
7148 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7149 | set dummy $ac_prog; ac_word=$2 | |
7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7151 | $as_echo_n "checking for $ac_word... " >&6; } | |
7152 | if ${ac_cv_prog_AWK+:} false; then : | |
7153 | $as_echo_n "(cached) " >&6 | |
7154 | else | |
7155 | if test -n "$AWK"; then | |
7156 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7157 | else | |
7158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7159 | for as_dir in $PATH | |
7160 | do | |
7161 | IFS=$as_save_IFS | |
7162 | test -z "$as_dir" && as_dir=. | |
7163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7165 | ac_cv_prog_AWK="$ac_prog" | |
7166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7167 | break 2 | |
7168 | fi | |
7169 | done | |
7170 | done | |
7171 | IFS=$as_save_IFS | |
7172 | ||
7173 | fi | |
7174 | fi | |
7175 | AWK=$ac_cv_prog_AWK | |
7176 | if test -n "$AWK"; then | |
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
7178 | $as_echo "$AWK" >&6; } | |
7179 | else | |
7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7181 | $as_echo "no" >&6; } | |
7182 | fi | |
7183 | ||
7184 | ||
7185 | test -n "$AWK" && break | |
7186 | done | |
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | ||
7192 | ||
7193 | ||
7194 | ||
7195 | ||
7196 | ||
7197 | ||
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | ||
7203 | ||
7204 | ||
7205 | ||
7206 | # If no C compiler was specified, use CC. | |
7207 | LTCC=${LTCC-"$CC"} | |
7208 | ||
7209 | # If no C compiler flags were specified, use CFLAGS. | |
7210 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7211 | ||
7212 | # Allow CC to be a program name with arguments. | |
7213 | compiler=$CC | |
7214 | ||
7215 | ||
7216 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7218 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7219 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7220 | $as_echo_n "(cached) " >&6 | |
7221 | else | |
7222 | ||
7223 | # These are sane defaults that work on at least a few old systems. | |
7224 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7225 | ||
7226 | # Character class describing NM global symbol codes. | |
7227 | symcode='[BCDEGRST]' | |
7228 | ||
7229 | # Regexp to match symbols that can be accessed directly from C. | |
7230 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7231 | ||
7232 | # Define system-specific variables. | |
7233 | case $host_os in | |
7234 | aix*) | |
7235 | symcode='[BCDT]' | |
7236 | ;; | |
7237 | cygwin* | mingw* | pw32* | cegcc*) | |
7238 | symcode='[ABCDGISTW]' | |
7239 | ;; | |
7240 | hpux*) | |
7241 | if test "$host_cpu" = ia64; then | |
7242 | symcode='[ABCDEGRST]' | |
7243 | fi | |
7244 | ;; | |
7245 | irix* | nonstopux*) | |
7246 | symcode='[BCDEGRST]' | |
7247 | ;; | |
7248 | osf*) | |
7249 | symcode='[BCDEGQRST]' | |
7250 | ;; | |
7251 | solaris*) | |
b9004024 | 7252 | symcode='[BCDRT]' |
b5689863 MF |
7253 | ;; |
7254 | sco3.2v5*) | |
7255 | symcode='[DT]' | |
7256 | ;; | |
7257 | sysv4.2uw2*) | |
7258 | symcode='[DT]' | |
7259 | ;; | |
7260 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7261 | symcode='[ABDT]' | |
7262 | ;; | |
7263 | sysv4) | |
7264 | symcode='[DFNSTU]' | |
7265 | ;; | |
7266 | esac | |
7267 | ||
7268 | # If we're using GNU nm, then use its standard symbol codes. | |
7269 | case `$NM -V 2>&1` in | |
7270 | *GNU* | *'with BFD'*) | |
7271 | symcode='[ABCDGIRSTW]' ;; | |
7272 | esac | |
7273 | ||
7274 | # Transform an extracted symbol line into a proper C declaration. | |
7275 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7276 | # so use this general approach. | |
7277 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7278 | ||
7279 | # Transform an extracted symbol line into symbol name and symbol address | |
7280 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7281 | 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'" | |
7282 | ||
7283 | # Handle CRLF in mingw tool chain | |
7284 | opt_cr= | |
7285 | case $build_os in | |
7286 | mingw*) | |
7287 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7288 | ;; | |
7289 | esac | |
7290 | ||
7291 | # Try without a prefix underscore, then with it. | |
7292 | for ac_symprfx in "" "_"; do | |
7293 | ||
7294 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7295 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7296 | ||
7297 | # Write the raw and C identifiers. | |
7298 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7299 | # Fake it for dumpbin and say T for any non-static function | |
7300 | # and D for any global variable. | |
7301 | # Also find C++ and __fastcall symbols from MSVC++, | |
7302 | # which start with @ or ?. | |
7303 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7304 | " {last_section=section; section=\$ 3};"\ | |
7305 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7306 | " \$ 0!~/External *\|/{next};"\ | |
7307 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7308 | " {if(hide[section]) next};"\ | |
7309 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7310 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7311 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7312 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7313 | " ' prfx=^$ac_symprfx" | |
7314 | else | |
7315 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7316 | fi | |
7317 | ||
7318 | # Check to see that the pipe works correctly. | |
7319 | pipe_works=no | |
7320 | ||
7321 | rm -f conftest* | |
7322 | cat > conftest.$ac_ext <<_LT_EOF | |
7323 | #ifdef __cplusplus | |
7324 | extern "C" { | |
7325 | #endif | |
7326 | char nm_test_var; | |
7327 | void nm_test_func(void); | |
7328 | void nm_test_func(void){} | |
7329 | #ifdef __cplusplus | |
7330 | } | |
7331 | #endif | |
7332 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7333 | _LT_EOF | |
7334 | ||
7335 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7336 | (eval $ac_compile) 2>&5 | |
7337 | ac_status=$? | |
7338 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7339 | test $ac_status = 0; }; then | |
7340 | # Now try to grab the symbols. | |
7341 | nlist=conftest.nm | |
7342 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7343 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7344 | ac_status=$? | |
7345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7346 | test $ac_status = 0; } && test -s "$nlist"; then | |
7347 | # Try sorting and uniquifying the output. | |
7348 | if sort "$nlist" | uniq > "$nlist"T; then | |
7349 | mv -f "$nlist"T "$nlist" | |
7350 | else | |
7351 | rm -f "$nlist"T | |
7352 | fi | |
7353 | ||
7354 | # Make sure that we snagged all the symbols we need. | |
7355 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7356 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7357 | cat <<_LT_EOF > conftest.$ac_ext | |
7358 | #ifdef __cplusplus | |
7359 | extern "C" { | |
7360 | #endif | |
7361 | ||
7362 | _LT_EOF | |
7363 | # Now generate the symbol file. | |
7364 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7365 | ||
7366 | cat <<_LT_EOF >> conftest.$ac_ext | |
7367 | ||
7368 | /* The mapping between symbol names and symbols. */ | |
7369 | const struct { | |
7370 | const char *name; | |
7371 | void *address; | |
7372 | } | |
7373 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7374 | { | |
7375 | { "@PROGRAM@", (void *) 0 }, | |
7376 | _LT_EOF | |
7377 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7378 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7379 | {0, (void *) 0} | |
7380 | }; | |
7381 | ||
7382 | /* This works around a problem in FreeBSD linker */ | |
7383 | #ifdef FREEBSD_WORKAROUND | |
7384 | static const void *lt_preloaded_setup() { | |
7385 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7386 | } | |
7387 | #endif | |
7388 | ||
7389 | #ifdef __cplusplus | |
7390 | } | |
7391 | #endif | |
7392 | _LT_EOF | |
7393 | # Now try linking the two files. | |
7394 | mv conftest.$ac_objext conftstm.$ac_objext | |
7395 | lt_save_LIBS="$LIBS" | |
7396 | lt_save_CFLAGS="$CFLAGS" | |
7397 | LIBS="conftstm.$ac_objext" | |
7398 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7399 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7400 | (eval $ac_link) 2>&5 | |
7401 | ac_status=$? | |
7402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7403 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7404 | pipe_works=yes | |
7405 | fi | |
7406 | LIBS="$lt_save_LIBS" | |
7407 | CFLAGS="$lt_save_CFLAGS" | |
7408 | else | |
7409 | echo "cannot find nm_test_func in $nlist" >&5 | |
7410 | fi | |
7411 | else | |
7412 | echo "cannot find nm_test_var in $nlist" >&5 | |
7413 | fi | |
7414 | else | |
7415 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7416 | fi | |
7417 | else | |
7418 | echo "$progname: failed program was:" >&5 | |
7419 | cat conftest.$ac_ext >&5 | |
7420 | fi | |
7421 | rm -rf conftest* conftst* | |
7422 | ||
7423 | # Do not use the global_symbol_pipe unless it works. | |
7424 | if test "$pipe_works" = yes; then | |
7425 | break | |
7426 | else | |
7427 | lt_cv_sys_global_symbol_pipe= | |
7428 | fi | |
7429 | done | |
7430 | ||
7431 | fi | |
7432 | ||
7433 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7434 | lt_cv_sys_global_symbol_to_cdecl= | |
7435 | fi | |
7436 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7438 | $as_echo "failed" >&6; } | |
7439 | else | |
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7441 | $as_echo "ok" >&6; } | |
7442 | fi | |
7443 | ||
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | # Check whether --enable-libtool-lock was given. | |
7466 | if test "${enable_libtool_lock+set}" = set; then : | |
7467 | enableval=$enable_libtool_lock; | |
7468 | fi | |
7469 | ||
7470 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7471 | ||
7472 | # Some flags need to be propagated to the compiler or linker for good | |
7473 | # libtool support. | |
7474 | case $host in | |
7475 | ia64-*-hpux*) | |
7476 | # Find out which ABI we are using. | |
7477 | echo 'int i;' > conftest.$ac_ext | |
7478 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7479 | (eval $ac_compile) 2>&5 | |
7480 | ac_status=$? | |
7481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7482 | test $ac_status = 0; }; then | |
7483 | case `/usr/bin/file conftest.$ac_objext` in | |
7484 | *ELF-32*) | |
7485 | HPUX_IA64_MODE="32" | |
7486 | ;; | |
7487 | *ELF-64*) | |
7488 | HPUX_IA64_MODE="64" | |
7489 | ;; | |
7490 | esac | |
7491 | fi | |
7492 | rm -rf conftest* | |
7493 | ;; | |
7494 | *-*-irix6*) | |
7495 | # Find out which ABI we are using. | |
7496 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7497 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7498 | (eval $ac_compile) 2>&5 | |
7499 | ac_status=$? | |
7500 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7501 | test $ac_status = 0; }; then | |
7502 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7503 | case `/usr/bin/file conftest.$ac_objext` in | |
7504 | *32-bit*) | |
7505 | LD="${LD-ld} -melf32bsmip" | |
7506 | ;; | |
7507 | *N32*) | |
7508 | LD="${LD-ld} -melf32bmipn32" | |
7509 | ;; | |
7510 | *64-bit*) | |
7511 | LD="${LD-ld} -melf64bmip" | |
7512 | ;; | |
7513 | esac | |
7514 | else | |
7515 | case `/usr/bin/file conftest.$ac_objext` in | |
7516 | *32-bit*) | |
7517 | LD="${LD-ld} -32" | |
7518 | ;; | |
7519 | *N32*) | |
7520 | LD="${LD-ld} -n32" | |
7521 | ;; | |
7522 | *64-bit*) | |
7523 | LD="${LD-ld} -64" | |
7524 | ;; | |
7525 | esac | |
7526 | fi | |
7527 | fi | |
7528 | rm -rf conftest* | |
7529 | ;; | |
7530 | ||
7531 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7532 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7533 | # Find out which ABI we are using. | |
7534 | echo 'int i;' > conftest.$ac_ext | |
7535 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7536 | (eval $ac_compile) 2>&5 | |
7537 | ac_status=$? | |
7538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7539 | test $ac_status = 0; }; then | |
7540 | case `/usr/bin/file conftest.o` in | |
7541 | *32-bit*) | |
7542 | case $host in | |
7543 | x86_64-*kfreebsd*-gnu) | |
7544 | LD="${LD-ld} -m elf_i386_fbsd" | |
7545 | ;; | |
7546 | x86_64-*linux*) | |
7547 | case `/usr/bin/file conftest.o` in | |
7548 | *x86-64*) | |
7549 | LD="${LD-ld} -m elf32_x86_64" | |
7550 | ;; | |
7551 | *) | |
7552 | LD="${LD-ld} -m elf_i386" | |
7553 | ;; | |
7554 | esac | |
7555 | ;; | |
7556 | powerpc64le-*linux*) | |
7557 | LD="${LD-ld} -m elf32lppclinux" | |
7558 | ;; | |
7559 | powerpc64-*linux*) | |
7560 | LD="${LD-ld} -m elf32ppclinux" | |
7561 | ;; | |
7562 | s390x-*linux*) | |
7563 | LD="${LD-ld} -m elf_s390" | |
7564 | ;; | |
7565 | sparc64-*linux*) | |
7566 | LD="${LD-ld} -m elf32_sparc" | |
7567 | ;; | |
7568 | esac | |
7569 | ;; | |
7570 | *64-bit*) | |
7571 | case $host in | |
7572 | x86_64-*kfreebsd*-gnu) | |
7573 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7574 | ;; | |
7575 | x86_64-*linux*) | |
7576 | LD="${LD-ld} -m elf_x86_64" | |
7577 | ;; | |
7578 | powerpcle-*linux*) | |
7579 | LD="${LD-ld} -m elf64lppc" | |
7580 | ;; | |
7581 | powerpc-*linux*) | |
7582 | LD="${LD-ld} -m elf64ppc" | |
7583 | ;; | |
7584 | s390*-*linux*|s390*-*tpf*) | |
7585 | LD="${LD-ld} -m elf64_s390" | |
7586 | ;; | |
7587 | sparc*-*linux*) | |
7588 | LD="${LD-ld} -m elf64_sparc" | |
7589 | ;; | |
7590 | esac | |
7591 | ;; | |
7592 | esac | |
7593 | fi | |
7594 | rm -rf conftest* | |
7595 | ;; | |
7596 | ||
7597 | *-*-sco3.2v5*) | |
7598 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7599 | SAVE_CFLAGS="$CFLAGS" | |
7600 | CFLAGS="$CFLAGS -belf" | |
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7602 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7603 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7604 | $as_echo_n "(cached) " >&6 | |
7605 | else | |
7606 | ac_ext=c | |
7607 | ac_cpp='$CPP $CPPFLAGS' | |
7608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7611 | ||
7612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7613 | /* end confdefs.h. */ | |
7614 | ||
7615 | int | |
7616 | main () | |
7617 | { | |
7618 | ||
7619 | ; | |
7620 | return 0; | |
7621 | } | |
7622 | _ACEOF | |
7623 | if ac_fn_c_try_link "$LINENO"; then : | |
7624 | lt_cv_cc_needs_belf=yes | |
7625 | else | |
7626 | lt_cv_cc_needs_belf=no | |
7627 | fi | |
7628 | rm -f core conftest.err conftest.$ac_objext \ | |
7629 | conftest$ac_exeext conftest.$ac_ext | |
7630 | ac_ext=c | |
7631 | ac_cpp='$CPP $CPPFLAGS' | |
7632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7635 | ||
7636 | fi | |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7638 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7639 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7640 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7641 | CFLAGS="$SAVE_CFLAGS" | |
7642 | fi | |
7643 | ;; | |
7644 | sparc*-*solaris*) | |
7645 | # Find out which ABI we are using. | |
7646 | echo 'int i;' > conftest.$ac_ext | |
7647 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7648 | (eval $ac_compile) 2>&5 | |
7649 | ac_status=$? | |
7650 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7651 | test $ac_status = 0; }; then | |
7652 | case `/usr/bin/file conftest.o` in | |
7653 | *64-bit*) | |
7654 | case $lt_cv_prog_gnu_ld in | |
7655 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7656 | *) | |
7657 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7658 | LD="${LD-ld} -64" | |
7659 | fi | |
7660 | ;; | |
7661 | esac | |
7662 | ;; | |
7663 | esac | |
7664 | fi | |
7665 | rm -rf conftest* | |
7666 | ;; | |
7667 | esac | |
7668 | ||
7669 | need_locks="$enable_libtool_lock" | |
7670 | ||
7671 | ||
7672 | case $host_os in | |
7673 | rhapsody* | darwin*) | |
7674 | if test -n "$ac_tool_prefix"; then | |
7675 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7676 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7678 | $as_echo_n "checking for $ac_word... " >&6; } | |
7679 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7680 | $as_echo_n "(cached) " >&6 | |
7681 | else | |
7682 | if test -n "$DSYMUTIL"; then | |
7683 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7684 | else | |
7685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7686 | for as_dir in $PATH | |
7687 | do | |
7688 | IFS=$as_save_IFS | |
7689 | test -z "$as_dir" && as_dir=. | |
7690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7692 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7694 | break 2 | |
7695 | fi | |
7696 | done | |
7697 | done | |
7698 | IFS=$as_save_IFS | |
7699 | ||
7700 | fi | |
7701 | fi | |
7702 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7703 | if test -n "$DSYMUTIL"; then | |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7705 | $as_echo "$DSYMUTIL" >&6; } | |
7706 | else | |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7708 | $as_echo "no" >&6; } | |
7709 | fi | |
7710 | ||
7711 | ||
7712 | fi | |
7713 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7714 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7715 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7716 | set dummy dsymutil; ac_word=$2 | |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7718 | $as_echo_n "checking for $ac_word... " >&6; } | |
7719 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7720 | $as_echo_n "(cached) " >&6 | |
7721 | else | |
7722 | if test -n "$ac_ct_DSYMUTIL"; then | |
7723 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7724 | else | |
7725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7726 | for as_dir in $PATH | |
7727 | do | |
7728 | IFS=$as_save_IFS | |
7729 | test -z "$as_dir" && as_dir=. | |
7730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7732 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7734 | break 2 | |
7735 | fi | |
7736 | done | |
7737 | done | |
7738 | IFS=$as_save_IFS | |
7739 | ||
7740 | fi | |
7741 | fi | |
7742 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7743 | if test -n "$ac_ct_DSYMUTIL"; then | |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7745 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7746 | else | |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7748 | $as_echo "no" >&6; } | |
7749 | fi | |
7750 | ||
7751 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7752 | DSYMUTIL=":" | |
7753 | else | |
7754 | case $cross_compiling:$ac_tool_warned in | |
7755 | yes:) | |
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7758 | ac_tool_warned=yes ;; | |
7759 | esac | |
7760 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7761 | fi | |
7762 | else | |
7763 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7764 | fi | |
7765 | ||
7766 | if test -n "$ac_tool_prefix"; then | |
7767 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7768 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7770 | $as_echo_n "checking for $ac_word... " >&6; } | |
7771 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7772 | $as_echo_n "(cached) " >&6 | |
7773 | else | |
7774 | if test -n "$NMEDIT"; then | |
7775 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7776 | else | |
7777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7778 | for as_dir in $PATH | |
7779 | do | |
7780 | IFS=$as_save_IFS | |
7781 | test -z "$as_dir" && as_dir=. | |
7782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7784 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7786 | break 2 | |
7787 | fi | |
7788 | done | |
7789 | done | |
7790 | IFS=$as_save_IFS | |
7791 | ||
7792 | fi | |
7793 | fi | |
7794 | NMEDIT=$ac_cv_prog_NMEDIT | |
7795 | if test -n "$NMEDIT"; then | |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7797 | $as_echo "$NMEDIT" >&6; } | |
7798 | else | |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7800 | $as_echo "no" >&6; } | |
7801 | fi | |
7802 | ||
7803 | ||
7804 | fi | |
7805 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7806 | ac_ct_NMEDIT=$NMEDIT | |
7807 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7808 | set dummy nmedit; ac_word=$2 | |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7810 | $as_echo_n "checking for $ac_word... " >&6; } | |
7811 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7812 | $as_echo_n "(cached) " >&6 | |
7813 | else | |
7814 | if test -n "$ac_ct_NMEDIT"; then | |
7815 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7816 | else | |
7817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7818 | for as_dir in $PATH | |
7819 | do | |
7820 | IFS=$as_save_IFS | |
7821 | test -z "$as_dir" && as_dir=. | |
7822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7824 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7826 | break 2 | |
7827 | fi | |
7828 | done | |
7829 | done | |
7830 | IFS=$as_save_IFS | |
7831 | ||
7832 | fi | |
7833 | fi | |
7834 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7835 | if test -n "$ac_ct_NMEDIT"; then | |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7837 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7838 | else | |
7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7840 | $as_echo "no" >&6; } | |
7841 | fi | |
7842 | ||
7843 | if test "x$ac_ct_NMEDIT" = x; then | |
7844 | NMEDIT=":" | |
7845 | else | |
7846 | case $cross_compiling:$ac_tool_warned in | |
7847 | yes:) | |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7850 | ac_tool_warned=yes ;; | |
7851 | esac | |
7852 | NMEDIT=$ac_ct_NMEDIT | |
7853 | fi | |
7854 | else | |
7855 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7856 | fi | |
7857 | ||
7858 | if test -n "$ac_tool_prefix"; then | |
7859 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7860 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7862 | $as_echo_n "checking for $ac_word... " >&6; } | |
7863 | if ${ac_cv_prog_LIPO+:} false; then : | |
7864 | $as_echo_n "(cached) " >&6 | |
7865 | else | |
7866 | if test -n "$LIPO"; then | |
7867 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7868 | else | |
7869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7870 | for as_dir in $PATH | |
7871 | do | |
7872 | IFS=$as_save_IFS | |
7873 | test -z "$as_dir" && as_dir=. | |
7874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7876 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7878 | break 2 | |
7879 | fi | |
7880 | done | |
7881 | done | |
7882 | IFS=$as_save_IFS | |
7883 | ||
7884 | fi | |
7885 | fi | |
7886 | LIPO=$ac_cv_prog_LIPO | |
7887 | if test -n "$LIPO"; then | |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7889 | $as_echo "$LIPO" >&6; } | |
7890 | else | |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7892 | $as_echo "no" >&6; } | |
7893 | fi | |
7894 | ||
7895 | ||
7896 | fi | |
7897 | if test -z "$ac_cv_prog_LIPO"; then | |
7898 | ac_ct_LIPO=$LIPO | |
7899 | # Extract the first word of "lipo", so it can be a program name with args. | |
7900 | set dummy lipo; ac_word=$2 | |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7902 | $as_echo_n "checking for $ac_word... " >&6; } | |
7903 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7904 | $as_echo_n "(cached) " >&6 | |
7905 | else | |
7906 | if test -n "$ac_ct_LIPO"; then | |
7907 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7908 | else | |
7909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7910 | for as_dir in $PATH | |
7911 | do | |
7912 | IFS=$as_save_IFS | |
7913 | test -z "$as_dir" && as_dir=. | |
7914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7915 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7916 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7918 | break 2 | |
7919 | fi | |
7920 | done | |
7921 | done | |
7922 | IFS=$as_save_IFS | |
7923 | ||
7924 | fi | |
7925 | fi | |
7926 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7927 | if test -n "$ac_ct_LIPO"; then | |
7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7929 | $as_echo "$ac_ct_LIPO" >&6; } | |
7930 | else | |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7932 | $as_echo "no" >&6; } | |
7933 | fi | |
7934 | ||
7935 | if test "x$ac_ct_LIPO" = x; then | |
7936 | LIPO=":" | |
7937 | else | |
7938 | case $cross_compiling:$ac_tool_warned in | |
7939 | yes:) | |
7940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7941 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7942 | ac_tool_warned=yes ;; | |
7943 | esac | |
7944 | LIPO=$ac_ct_LIPO | |
7945 | fi | |
7946 | else | |
7947 | LIPO="$ac_cv_prog_LIPO" | |
7948 | fi | |
7949 | ||
7950 | if test -n "$ac_tool_prefix"; then | |
7951 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7952 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7954 | $as_echo_n "checking for $ac_word... " >&6; } | |
7955 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7956 | $as_echo_n "(cached) " >&6 | |
7957 | else | |
7958 | if test -n "$OTOOL"; then | |
7959 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7960 | else | |
7961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7962 | for as_dir in $PATH | |
7963 | do | |
7964 | IFS=$as_save_IFS | |
7965 | test -z "$as_dir" && as_dir=. | |
7966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7968 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7970 | break 2 | |
7971 | fi | |
7972 | done | |
7973 | done | |
7974 | IFS=$as_save_IFS | |
7975 | ||
7976 | fi | |
7977 | fi | |
7978 | OTOOL=$ac_cv_prog_OTOOL | |
7979 | if test -n "$OTOOL"; then | |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7981 | $as_echo "$OTOOL" >&6; } | |
7982 | else | |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7984 | $as_echo "no" >&6; } | |
7985 | fi | |
7986 | ||
7987 | ||
7988 | fi | |
7989 | if test -z "$ac_cv_prog_OTOOL"; then | |
7990 | ac_ct_OTOOL=$OTOOL | |
7991 | # Extract the first word of "otool", so it can be a program name with args. | |
7992 | set dummy otool; ac_word=$2 | |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7994 | $as_echo_n "checking for $ac_word... " >&6; } | |
7995 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7996 | $as_echo_n "(cached) " >&6 | |
7997 | else | |
7998 | if test -n "$ac_ct_OTOOL"; then | |
7999 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8000 | else | |
8001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8002 | for as_dir in $PATH | |
8003 | do | |
8004 | IFS=$as_save_IFS | |
8005 | test -z "$as_dir" && as_dir=. | |
8006 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8008 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8010 | break 2 | |
8011 | fi | |
8012 | done | |
8013 | done | |
8014 | IFS=$as_save_IFS | |
8015 | ||
8016 | fi | |
8017 | fi | |
8018 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8019 | if test -n "$ac_ct_OTOOL"; then | |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8021 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8022 | else | |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8024 | $as_echo "no" >&6; } | |
8025 | fi | |
8026 | ||
8027 | if test "x$ac_ct_OTOOL" = x; then | |
8028 | OTOOL=":" | |
8029 | else | |
8030 | case $cross_compiling:$ac_tool_warned in | |
8031 | yes:) | |
8032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8034 | ac_tool_warned=yes ;; | |
8035 | esac | |
8036 | OTOOL=$ac_ct_OTOOL | |
8037 | fi | |
8038 | else | |
8039 | OTOOL="$ac_cv_prog_OTOOL" | |
8040 | fi | |
8041 | ||
8042 | if test -n "$ac_tool_prefix"; then | |
8043 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8044 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8046 | $as_echo_n "checking for $ac_word... " >&6; } | |
8047 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8048 | $as_echo_n "(cached) " >&6 | |
8049 | else | |
8050 | if test -n "$OTOOL64"; then | |
8051 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8052 | else | |
8053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8054 | for as_dir in $PATH | |
8055 | do | |
8056 | IFS=$as_save_IFS | |
8057 | test -z "$as_dir" && as_dir=. | |
8058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8060 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8062 | break 2 | |
8063 | fi | |
8064 | done | |
8065 | done | |
8066 | IFS=$as_save_IFS | |
8067 | ||
8068 | fi | |
8069 | fi | |
8070 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8071 | if test -n "$OTOOL64"; then | |
8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8073 | $as_echo "$OTOOL64" >&6; } | |
8074 | else | |
8075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8076 | $as_echo "no" >&6; } | |
8077 | fi | |
8078 | ||
8079 | ||
8080 | fi | |
8081 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8082 | ac_ct_OTOOL64=$OTOOL64 | |
8083 | # Extract the first word of "otool64", so it can be a program name with args. | |
8084 | set dummy otool64; ac_word=$2 | |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8086 | $as_echo_n "checking for $ac_word... " >&6; } | |
8087 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8088 | $as_echo_n "(cached) " >&6 | |
8089 | else | |
8090 | if test -n "$ac_ct_OTOOL64"; then | |
8091 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8092 | else | |
8093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8094 | for as_dir in $PATH | |
8095 | do | |
8096 | IFS=$as_save_IFS | |
8097 | test -z "$as_dir" && as_dir=. | |
8098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8100 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8102 | break 2 | |
8103 | fi | |
8104 | done | |
8105 | done | |
8106 | IFS=$as_save_IFS | |
8107 | ||
8108 | fi | |
8109 | fi | |
8110 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8111 | if test -n "$ac_ct_OTOOL64"; then | |
8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8113 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8114 | else | |
8115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8116 | $as_echo "no" >&6; } | |
8117 | fi | |
8118 | ||
8119 | if test "x$ac_ct_OTOOL64" = x; then | |
8120 | OTOOL64=":" | |
8121 | else | |
8122 | case $cross_compiling:$ac_tool_warned in | |
8123 | yes:) | |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8125 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8126 | ac_tool_warned=yes ;; | |
8127 | esac | |
8128 | OTOOL64=$ac_ct_OTOOL64 | |
8129 | fi | |
8130 | else | |
8131 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8132 | fi | |
8133 | ||
8134 | ||
8135 | ||
8136 | ||
8137 | ||
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | ||
8153 | ||
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8161 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8162 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8163 | $as_echo_n "(cached) " >&6 | |
8164 | else | |
8165 | lt_cv_apple_cc_single_mod=no | |
8166 | if test -z "${LT_MULTI_MODULE}"; then | |
8167 | # By default we will add the -single_module flag. You can override | |
8168 | # by either setting the environment variable LT_MULTI_MODULE | |
8169 | # non-empty at configure time, or by adding -multi_module to the | |
8170 | # link flags. | |
8171 | rm -rf libconftest.dylib* | |
8172 | echo "int foo(void){return 1;}" > conftest.c | |
8173 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8174 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8175 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8176 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8177 | _lt_result=$? | |
8178 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
8179 | lt_cv_apple_cc_single_mod=yes | |
8180 | else | |
8181 | cat conftest.err >&5 | |
8182 | fi | |
8183 | rm -rf libconftest.dylib* | |
8184 | rm -f conftest.* | |
8185 | fi | |
8186 | fi | |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8188 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8190 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8191 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8192 | $as_echo_n "(cached) " >&6 | |
8193 | else | |
8194 | lt_cv_ld_exported_symbols_list=no | |
8195 | save_LDFLAGS=$LDFLAGS | |
8196 | echo "_main" > conftest.sym | |
8197 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8199 | /* end confdefs.h. */ | |
8200 | ||
8201 | int | |
8202 | main () | |
8203 | { | |
8204 | ||
8205 | ; | |
8206 | return 0; | |
8207 | } | |
8208 | _ACEOF | |
8209 | if ac_fn_c_try_link "$LINENO"; then : | |
8210 | lt_cv_ld_exported_symbols_list=yes | |
8211 | else | |
8212 | lt_cv_ld_exported_symbols_list=no | |
8213 | fi | |
8214 | rm -f core conftest.err conftest.$ac_objext \ | |
8215 | conftest$ac_exeext conftest.$ac_ext | |
8216 | LDFLAGS="$save_LDFLAGS" | |
8217 | ||
8218 | fi | |
8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8220 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8222 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8223 | if ${lt_cv_ld_force_load+:} false; then : | |
8224 | $as_echo_n "(cached) " >&6 | |
8225 | else | |
8226 | lt_cv_ld_force_load=no | |
8227 | cat > conftest.c << _LT_EOF | |
8228 | int forced_loaded() { return 2;} | |
8229 | _LT_EOF | |
8230 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8231 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8232 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8233 | $AR cru libconftest.a conftest.o 2>&5 | |
8234 | cat > conftest.c << _LT_EOF | |
8235 | int main() { return 0;} | |
8236 | _LT_EOF | |
8237 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8238 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8239 | _lt_result=$? | |
8240 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8241 | lt_cv_ld_force_load=yes | |
8242 | else | |
8243 | cat conftest.err >&5 | |
8244 | fi | |
8245 | rm -f conftest.err libconftest.a conftest conftest.c | |
8246 | rm -rf conftest.dSYM | |
8247 | ||
8248 | fi | |
8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8250 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8251 | case $host_os in | |
8252 | rhapsody* | darwin1.[012]) | |
8253 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8254 | darwin1.*) | |
8255 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8256 | darwin*) # darwin 5.x on | |
8257 | # if running on 10.5 or later, the deployment target defaults | |
8258 | # to the OS version, if on x86, and 10.4, the deployment | |
8259 | # target defaults to 10.4. Don't you love it? | |
8260 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8261 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8262 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8263 | 10.[012][,.]*) | |
8264 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8265 | 10.*) | |
8266 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8267 | esac | |
8268 | ;; | |
8269 | esac | |
8270 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8271 | _lt_dar_single_mod='$single_module' | |
8272 | fi | |
8273 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8274 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8275 | else | |
8276 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8277 | fi | |
8278 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8279 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8280 | else | |
8281 | _lt_dsymutil= | |
8282 | fi | |
8283 | ;; | |
8284 | esac | |
8285 | ||
8286 | for ac_header in dlfcn.h | |
8287 | do : | |
8288 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8289 | " | |
8290 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8291 | cat >>confdefs.h <<_ACEOF | |
8292 | #define HAVE_DLFCN_H 1 | |
8293 | _ACEOF | |
8294 | ||
8295 | fi | |
8296 | ||
8297 | done | |
8298 | ||
8299 | ||
8300 | ac_header_dirent=no | |
8301 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8302 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
8304 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
8305 | if eval \${$as_ac_Header+:} false; then : | |
8306 | $as_echo_n "(cached) " >&6 | |
8307 | else | |
8308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8309 | /* end confdefs.h. */ | |
8310 | #include <sys/types.h> | |
8311 | #include <$ac_hdr> | |
8312 | ||
8313 | int | |
8314 | main () | |
8315 | { | |
8316 | if ((DIR *) 0) | |
8317 | return 0; | |
8318 | ; | |
8319 | return 0; | |
8320 | } | |
8321 | _ACEOF | |
8322 | if ac_fn_c_try_compile "$LINENO"; then : | |
8323 | eval "$as_ac_Header=yes" | |
8324 | else | |
8325 | eval "$as_ac_Header=no" | |
8326 | fi | |
8327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8328 | fi | |
8329 | eval ac_res=\$$as_ac_Header | |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8331 | $as_echo "$ac_res" >&6; } | |
8332 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8333 | cat >>confdefs.h <<_ACEOF | |
8334 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8335 | _ACEOF | |
8336 | ||
8337 | ac_header_dirent=$ac_hdr; break | |
8338 | fi | |
8339 | ||
8340 | done | |
8341 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8342 | if test $ac_header_dirent = dirent.h; then | |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8344 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8345 | if ${ac_cv_search_opendir+:} false; then : | |
8346 | $as_echo_n "(cached) " >&6 | |
8347 | else | |
8348 | ac_func_search_save_LIBS=$LIBS | |
8349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8350 | /* end confdefs.h. */ | |
8351 | ||
8352 | /* Override any GCC internal prototype to avoid an error. | |
8353 | Use char because int might match the return type of a GCC | |
8354 | builtin and then its argument prototype would still apply. */ | |
8355 | #ifdef __cplusplus | |
8356 | extern "C" | |
8357 | #endif | |
8358 | char opendir (); | |
8359 | int | |
8360 | main () | |
8361 | { | |
8362 | return opendir (); | |
8363 | ; | |
8364 | return 0; | |
8365 | } | |
8366 | _ACEOF | |
8367 | for ac_lib in '' dir; do | |
8368 | if test -z "$ac_lib"; then | |
8369 | ac_res="none required" | |
8370 | else | |
8371 | ac_res=-l$ac_lib | |
8372 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8373 | fi | |
8374 | if ac_fn_c_try_link "$LINENO"; then : | |
8375 | ac_cv_search_opendir=$ac_res | |
8376 | fi | |
8377 | rm -f core conftest.err conftest.$ac_objext \ | |
8378 | conftest$ac_exeext | |
8379 | if ${ac_cv_search_opendir+:} false; then : | |
8380 | break | |
8381 | fi | |
8382 | done | |
8383 | if ${ac_cv_search_opendir+:} false; then : | |
8384 | ||
8385 | else | |
8386 | ac_cv_search_opendir=no | |
8387 | fi | |
8388 | rm conftest.$ac_ext | |
8389 | LIBS=$ac_func_search_save_LIBS | |
8390 | fi | |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8392 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8393 | ac_res=$ac_cv_search_opendir | |
8394 | if test "$ac_res" != no; then : | |
8395 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8396 | ||
8397 | fi | |
8398 | ||
8399 | else | |
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
8401 | $as_echo_n "checking for library containing opendir... " >&6; } | |
8402 | if ${ac_cv_search_opendir+:} false; then : | |
8403 | $as_echo_n "(cached) " >&6 | |
8404 | else | |
8405 | ac_func_search_save_LIBS=$LIBS | |
8406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8407 | /* end confdefs.h. */ | |
8408 | ||
8409 | /* Override any GCC internal prototype to avoid an error. | |
8410 | Use char because int might match the return type of a GCC | |
8411 | builtin and then its argument prototype would still apply. */ | |
8412 | #ifdef __cplusplus | |
8413 | extern "C" | |
8414 | #endif | |
8415 | char opendir (); | |
8416 | int | |
8417 | main () | |
8418 | { | |
8419 | return opendir (); | |
8420 | ; | |
8421 | return 0; | |
8422 | } | |
8423 | _ACEOF | |
8424 | for ac_lib in '' x; do | |
8425 | if test -z "$ac_lib"; then | |
8426 | ac_res="none required" | |
8427 | else | |
8428 | ac_res=-l$ac_lib | |
8429 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8430 | fi | |
8431 | if ac_fn_c_try_link "$LINENO"; then : | |
8432 | ac_cv_search_opendir=$ac_res | |
8433 | fi | |
8434 | rm -f core conftest.err conftest.$ac_objext \ | |
8435 | conftest$ac_exeext | |
8436 | if ${ac_cv_search_opendir+:} false; then : | |
8437 | break | |
8438 | fi | |
8439 | done | |
8440 | if ${ac_cv_search_opendir+:} false; then : | |
8441 | ||
8442 | else | |
8443 | ac_cv_search_opendir=no | |
8444 | fi | |
8445 | rm conftest.$ac_ext | |
8446 | LIBS=$ac_func_search_save_LIBS | |
8447 | fi | |
8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
8449 | $as_echo "$ac_cv_search_opendir" >&6; } | |
8450 | ac_res=$ac_cv_search_opendir | |
8451 | if test "$ac_res" != no; then : | |
8452 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8453 | ||
8454 | fi | |
8455 | ||
8456 | fi | |
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | |
8462 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
8463 | ||
8464 | cat >>confdefs.h <<_ACEOF | |
8465 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
8466 | _ACEOF | |
8467 | ||
8468 | ||
8469 | $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h | |
8470 | ||
8471 | fi | |
8472 | ||
8473 | ||
8474 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
8475 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
8476 | ||
8477 | cat >>confdefs.h <<_ACEOF | |
8478 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
8479 | _ACEOF | |
8480 | ||
8481 | ||
8482 | $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h | |
8483 | ||
8484 | else | |
8485 | case " $LIBOBJS " in | |
8486 | *" fileblocks.$ac_objext "* ) ;; | |
8487 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
8488 | ;; | |
8489 | esac | |
8490 | ||
8491 | fi | |
8492 | ||
8493 | ||
8494 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
8495 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
8496 | ||
8497 | cat >>confdefs.h <<_ACEOF | |
8498 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
8499 | _ACEOF | |
8500 | ||
8501 | ||
8502 | $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h | |
8503 | ||
8504 | fi | |
8505 | ||
8506 | ||
8507 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | |
8508 | #include <$ac_cv_struct_tm> | |
8509 | ||
8510 | " | |
8511 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | |
8512 | ||
8513 | cat >>confdefs.h <<_ACEOF | |
8514 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
8515 | _ACEOF | |
8516 | ||
8517 | ||
8518 | fi | |
8519 | ||
8520 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
8521 | ||
8522 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | |
8523 | ||
8524 | else | |
8525 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | |
8526 | " | |
8527 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | |
8528 | ac_have_decl=1 | |
8529 | else | |
8530 | ac_have_decl=0 | |
8531 | fi | |
8532 | ||
8533 | cat >>confdefs.h <<_ACEOF | |
8534 | #define HAVE_DECL_TZNAME $ac_have_decl | |
8535 | _ACEOF | |
8536 | ||
8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | |
8538 | $as_echo_n "checking for tzname... " >&6; } | |
8539 | if ${ac_cv_var_tzname+:} false; then : | |
8540 | $as_echo_n "(cached) " >&6 | |
8541 | else | |
8542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8543 | /* end confdefs.h. */ | |
8544 | #include <time.h> | |
a48ff3ef MF |
8545 | #if !HAVE_DECL_TZNAME |
8546 | extern char *tzname[]; | |
8547 | #endif | |
b5689863 MF |
8548 | |
8549 | int | |
8550 | main () | |
8551 | { | |
8552 | return tzname[0][0]; | |
8553 | ; | |
8554 | return 0; | |
8555 | } | |
8556 | _ACEOF | |
8557 | if ac_fn_c_try_link "$LINENO"; then : | |
8558 | ac_cv_var_tzname=yes | |
8559 | else | |
8560 | ac_cv_var_tzname=no | |
8561 | fi | |
8562 | rm -f core conftest.err conftest.$ac_objext \ | |
8563 | conftest$ac_exeext conftest.$ac_ext | |
8564 | fi | |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | |
8566 | $as_echo "$ac_cv_var_tzname" >&6; } | |
8567 | if test $ac_cv_var_tzname = yes; then | |
8568 | ||
8569 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | |
8570 | ||
8571 | fi | |
8572 | fi | |
8573 | ||
8574 | ||
8575 | ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H | |
8576 | #include <sys/types.h> | |
8577 | #endif | |
8578 | #ifdef HAVE_SYS_STAT_H | |
8579 | #include <sys/stat.h> | |
8580 | #endif | |
8581 | " | |
8582 | if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then : | |
8583 | ||
8584 | cat >>confdefs.h <<_ACEOF | |
8585 | #define HAVE_STRUCT_STAT_ST_DEV 1 | |
8586 | _ACEOF | |
8587 | ||
8588 | ||
8589 | fi | |
8590 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H | |
8591 | #include <sys/types.h> | |
8592 | #endif | |
8593 | #ifdef HAVE_SYS_STAT_H | |
8594 | #include <sys/stat.h> | |
8595 | #endif | |
8596 | " | |
8597 | if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then : | |
8598 | ||
8599 | cat >>confdefs.h <<_ACEOF | |
8600 | #define HAVE_STRUCT_STAT_ST_INO 1 | |
8601 | _ACEOF | |
8602 | ||
8603 | ||
8604 | fi | |
8605 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H | |
8606 | #include <sys/types.h> | |
8607 | #endif | |
8608 | #ifdef HAVE_SYS_STAT_H | |
8609 | #include <sys/stat.h> | |
8610 | #endif | |
8611 | " | |
8612 | if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then : | |
8613 | ||
8614 | cat >>confdefs.h <<_ACEOF | |
8615 | #define HAVE_STRUCT_STAT_ST_MODE 1 | |
8616 | _ACEOF | |
8617 | ||
8618 | ||
8619 | fi | |
8620 | ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H | |
8621 | #include <sys/types.h> | |
8622 | #endif | |
8623 | #ifdef HAVE_SYS_STAT_H | |
8624 | #include <sys/stat.h> | |
8625 | #endif | |
8626 | " | |
8627 | if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then : | |
8628 | ||
8629 | cat >>confdefs.h <<_ACEOF | |
8630 | #define HAVE_STRUCT_STAT_ST_NLINK 1 | |
8631 | _ACEOF | |
8632 | ||
8633 | ||
8634 | fi | |
8635 | ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H | |
8636 | #include <sys/types.h> | |
8637 | #endif | |
8638 | #ifdef HAVE_SYS_STAT_H | |
8639 | #include <sys/stat.h> | |
8640 | #endif | |
8641 | " | |
8642 | if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then : | |
8643 | ||
8644 | cat >>confdefs.h <<_ACEOF | |
8645 | #define HAVE_STRUCT_STAT_ST_UID 1 | |
8646 | _ACEOF | |
8647 | ||
8648 | ||
8649 | fi | |
8650 | ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H | |
8651 | #include <sys/types.h> | |
8652 | #endif | |
8653 | #ifdef HAVE_SYS_STAT_H | |
8654 | #include <sys/stat.h> | |
8655 | #endif | |
8656 | " | |
8657 | if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then : | |
8658 | ||
8659 | cat >>confdefs.h <<_ACEOF | |
8660 | #define HAVE_STRUCT_STAT_ST_GID 1 | |
8661 | _ACEOF | |
8662 | ||
8663 | ||
8664 | fi | |
8665 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H | |
8666 | #include <sys/types.h> | |
8667 | #endif | |
8668 | #ifdef HAVE_SYS_STAT_H | |
8669 | #include <sys/stat.h> | |
8670 | #endif | |
8671 | " | |
8672 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : | |
8673 | ||
8674 | cat >>confdefs.h <<_ACEOF | |
8675 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
8676 | _ACEOF | |
8677 | ||
8678 | ||
8679 | fi | |
8680 | ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H | |
8681 | #include <sys/types.h> | |
8682 | #endif | |
8683 | #ifdef HAVE_SYS_STAT_H | |
8684 | #include <sys/stat.h> | |
8685 | #endif | |
8686 | " | |
8687 | if test "x$ac_cv_member_struct_stat_st_size" = xyes; then : | |
8688 | ||
8689 | cat >>confdefs.h <<_ACEOF | |
8690 | #define HAVE_STRUCT_STAT_ST_SIZE 1 | |
8691 | _ACEOF | |
8692 | ||
8693 | ||
8694 | fi | |
8695 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H | |
8696 | #include <sys/types.h> | |
8697 | #endif | |
8698 | #ifdef HAVE_SYS_STAT_H | |
8699 | #include <sys/stat.h> | |
8700 | #endif | |
8701 | " | |
8702 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | |
8703 | ||
8704 | cat >>confdefs.h <<_ACEOF | |
8705 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
8706 | _ACEOF | |
8707 | ||
8708 | ||
8709 | fi | |
8710 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H | |
8711 | #include <sys/types.h> | |
8712 | #endif | |
8713 | #ifdef HAVE_SYS_STAT_H | |
8714 | #include <sys/stat.h> | |
8715 | #endif | |
8716 | " | |
8717 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : | |
8718 | ||
8719 | cat >>confdefs.h <<_ACEOF | |
8720 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
8721 | _ACEOF | |
8722 | ||
8723 | ||
8724 | fi | |
8725 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H | |
8726 | #include <sys/types.h> | |
8727 | #endif | |
8728 | #ifdef HAVE_SYS_STAT_H | |
8729 | #include <sys/stat.h> | |
8730 | #endif | |
8731 | " | |
8732 | if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then : | |
8733 | ||
8734 | cat >>confdefs.h <<_ACEOF | |
8735 | #define HAVE_STRUCT_STAT_ST_ATIME 1 | |
8736 | _ACEOF | |
8737 | ||
8738 | ||
8739 | fi | |
8740 | ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H | |
8741 | #include <sys/types.h> | |
8742 | #endif | |
8743 | #ifdef HAVE_SYS_STAT_H | |
8744 | #include <sys/stat.h> | |
8745 | #endif | |
8746 | " | |
8747 | if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then : | |
8748 | ||
8749 | cat >>confdefs.h <<_ACEOF | |
8750 | #define HAVE_STRUCT_STAT_ST_MTIME 1 | |
8751 | _ACEOF | |
8752 | ||
8753 | ||
8754 | fi | |
8755 | ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H | |
8756 | #include <sys/types.h> | |
8757 | #endif | |
8758 | #ifdef HAVE_SYS_STAT_H | |
8759 | #include <sys/stat.h> | |
8760 | #endif | |
8761 | " | |
8762 | if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then : | |
8763 | ||
8764 | cat >>confdefs.h <<_ACEOF | |
8765 | #define HAVE_STRUCT_STAT_ST_CTIME 1 | |
8766 | _ACEOF | |
8767 | ||
8768 | ||
8769 | fi | |
8770 | ||
8771 | ||
8772 | ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
8773 | if test "x$ac_cv_type___int128" = xyes; then : | |
8774 | ||
8775 | cat >>confdefs.h <<_ACEOF | |
8776 | #define HAVE___INT128 1 | |
8777 | _ACEOF | |
8778 | ||
8779 | ||
8780 | fi | |
8781 | ||
8782 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
8783 | #include <sys/socket.h> | |
8784 | ||
8785 | " | |
8786 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
8787 | ||
8788 | cat >>confdefs.h <<_ACEOF | |
8789 | #define HAVE_SOCKLEN_T 1 | |
8790 | _ACEOF | |
8791 | ||
8792 | ||
8793 | fi | |
8794 | ||
8795 | ||
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 | |
8797 | $as_echo_n "checking type of array argument to getgroups... " >&6; } | |
8798 | if ${ac_cv_type_getgroups+:} false; then : | |
8799 | $as_echo_n "(cached) " >&6 | |
8800 | else | |
8801 | if test "$cross_compiling" = yes; then : | |
8802 | ac_cv_type_getgroups=cross | |
8803 | else | |
8804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8805 | /* end confdefs.h. */ | |
8806 | /* Thanks to Mike Rendell for this test. */ | |
8807 | $ac_includes_default | |
8808 | #define NGID 256 | |
8809 | #undef MAX | |
8810 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
8811 | ||
8812 | int | |
8813 | main () | |
8814 | { | |
8815 | gid_t gidset[NGID]; | |
8816 | int i, n; | |
8817 | union { gid_t gval; long int lval; } val; | |
8818 | ||
8819 | val.lval = -1; | |
8820 | for (i = 0; i < NGID; i++) | |
8821 | gidset[i] = val.gval; | |
8822 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
8823 | gidset); | |
8824 | /* Exit non-zero if getgroups seems to require an array of ints. This | |
8825 | happens when gid_t is short int but getgroups modifies an array | |
8826 | of ints. */ | |
8827 | return n > 0 && gidset[n] != val.gval; | |
8828 | } | |
8829 | _ACEOF | |
8830 | if ac_fn_c_try_run "$LINENO"; then : | |
8831 | ac_cv_type_getgroups=gid_t | |
8832 | else | |
8833 | ac_cv_type_getgroups=int | |
8834 | fi | |
8835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8836 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8837 | fi | |
8838 | ||
8839 | if test $ac_cv_type_getgroups = cross; then | |
8840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8841 | /* end confdefs.h. */ | |
8842 | #include <unistd.h> | |
8843 | ||
8844 | _ACEOF | |
8845 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8846 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : | |
8847 | ac_cv_type_getgroups=gid_t | |
8848 | else | |
8849 | ac_cv_type_getgroups=int | |
8850 | fi | |
8851 | rm -f conftest* | |
8852 | ||
8853 | fi | |
8854 | fi | |
8855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 | |
8856 | $as_echo "$ac_cv_type_getgroups" >&6; } | |
8857 | ||
8858 | cat >>confdefs.h <<_ACEOF | |
8859 | #define GETGROUPS_T $ac_cv_type_getgroups | |
8860 | _ACEOF | |
8861 | ||
8862 | ||
8863 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
8864 | if test "x$ac_cv_type_mode_t" = xyes; then : | |
8865 | ||
8866 | else | |
8867 | ||
8868 | cat >>confdefs.h <<_ACEOF | |
8869 | #define mode_t int | |
8870 | _ACEOF | |
8871 | ||
8872 | fi | |
8873 | ||
8874 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
8875 | if test "x$ac_cv_type_off_t" = xyes; then : | |
8876 | ||
8877 | else | |
8878 | ||
8879 | cat >>confdefs.h <<_ACEOF | |
8880 | #define off_t long int | |
8881 | _ACEOF | |
8882 | ||
8883 | fi | |
8884 | ||
8885 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
8886 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
8887 | ||
8888 | else | |
8889 | ||
8890 | cat >>confdefs.h <<_ACEOF | |
8891 | #define pid_t int | |
8892 | _ACEOF | |
8893 | ||
8894 | fi | |
8895 | ||
8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
8897 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
8898 | if ${ac_cv_type_signal+:} false; then : | |
8899 | $as_echo_n "(cached) " >&6 | |
8900 | else | |
8901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8902 | /* end confdefs.h. */ | |
8903 | #include <sys/types.h> | |
8904 | #include <signal.h> | |
8905 | ||
8906 | int | |
8907 | main () | |
8908 | { | |
8909 | return *(signal (0, 0)) (0) == 1; | |
8910 | ; | |
8911 | return 0; | |
8912 | } | |
8913 | _ACEOF | |
8914 | if ac_fn_c_try_compile "$LINENO"; then : | |
8915 | ac_cv_type_signal=int | |
8916 | else | |
8917 | ac_cv_type_signal=void | |
8918 | fi | |
8919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8920 | fi | |
8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | |
8922 | $as_echo "$ac_cv_type_signal" >&6; } | |
8923 | ||
8924 | cat >>confdefs.h <<_ACEOF | |
8925 | #define RETSIGTYPE $ac_cv_type_signal | |
8926 | _ACEOF | |
8927 | ||
8928 | ||
8929 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
8930 | if test "x$ac_cv_type_size_t" = xyes; then : | |
8931 | ||
8932 | else | |
8933 | ||
8934 | cat >>confdefs.h <<_ACEOF | |
8935 | #define size_t unsigned int | |
8936 | _ACEOF | |
8937 | ||
8938 | fi | |
8939 | ||
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 | |
8941 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
8942 | if ${ac_cv_type_uid_t+:} false; then : | |
8943 | $as_echo_n "(cached) " >&6 | |
8944 | else | |
8945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8946 | /* end confdefs.h. */ | |
8947 | #include <sys/types.h> | |
8948 | ||
8949 | _ACEOF | |
8950 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8951 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
8952 | ac_cv_type_uid_t=yes | |
8953 | else | |
8954 | ac_cv_type_uid_t=no | |
8955 | fi | |
8956 | rm -f conftest* | |
8957 | ||
8958 | fi | |
8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 | |
8960 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
8961 | if test $ac_cv_type_uid_t = no; then | |
8962 | ||
8963 | $as_echo "#define uid_t int" >>confdefs.h | |
8964 | ||
8965 | ||
8966 | $as_echo "#define gid_t int" >>confdefs.h | |
8967 | ||
8968 | fi | |
8969 | ||
8970 | ||
ce3ec98a MF |
8971 | ALL_LINGUAS= |
8972 | # If we haven't got the data from the intl directory, | |
8973 | # assume NLS is disabled. | |
8974 | USE_NLS=no | |
8975 | LIBINTL= | |
8976 | LIBINTL_DEP= | |
8977 | INCINTL= | |
8978 | XGETTEXT= | |
8979 | GMSGFMT= | |
8980 | POSUB= | |
8981 | ||
8982 | if test -f ../intl/config.intl; then | |
8983 | . ../intl/config.intl | |
8984 | fi | |
8985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
8986 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
8987 | if test x"$USE_NLS" != xyes; then | |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8989 | $as_echo "no" >&6; } | |
8990 | else | |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8992 | $as_echo "yes" >&6; } | |
8993 | ||
8994 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h | |
8995 | ||
8996 | ||
8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 | |
8998 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
8999 | # Look for .po and .gmo files in the source directory. | |
9000 | CATALOGS= | |
9001 | XLINGUAS= | |
9002 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
9003 | # If there aren't any .gmo files the shell will give us the | |
9004 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
9005 | # weeded out. | |
9006 | case "$cat" in *\**) | |
9007 | continue;; | |
9008 | esac | |
9009 | # The quadruple backslash is collapsed to a double backslash | |
9010 | # by the backticks, then collapsed again by the double quotes, | |
9011 | # leaving us with one backslash in the sed expression (right | |
9012 | # before the dot that mustn't act as a wildcard). | |
9013 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
9014 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
9015 | # The user is allowed to set LINGUAS to a list of languages to | |
9016 | # install catalogs for. If it's empty that means "all of them." | |
9017 | if test "x$LINGUAS" = x; then | |
9018 | CATALOGS="$CATALOGS $cat" | |
9019 | XLINGUAS="$XLINGUAS $lang" | |
9020 | else | |
9021 | case "$LINGUAS" in *$lang*) | |
9022 | CATALOGS="$CATALOGS $cat" | |
9023 | XLINGUAS="$XLINGUAS $lang" | |
9024 | ;; | |
9025 | esac | |
9026 | fi | |
9027 | done | |
9028 | LINGUAS="$XLINGUAS" | |
9029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 | |
9030 | $as_echo "$LINGUAS" >&6; } | |
9031 | ||
9032 | ||
9033 | DATADIRNAME=share | |
9034 | ||
9035 | INSTOBJEXT=.mo | |
9036 | ||
9037 | GENCAT=gencat | |
9038 | ||
9039 | CATOBJEXT=.gmo | |
9040 | ||
9041 | fi | |
9042 | ||
b5689863 MF |
9043 | |
9044 | # Use the system's zlib library. | |
9045 | zlibdir="-L\$(top_builddir)/../zlib" | |
9046 | zlibinc="-I\$(top_srcdir)/../zlib" | |
9047 | ||
9048 | # Check whether --with-system-zlib was given. | |
9049 | if test "${with_system_zlib+set}" = set; then : | |
9050 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then | |
9051 | zlibdir= | |
9052 | zlibinc= | |
9053 | fi | |
9054 | ||
9055 | fi | |
9056 | ||
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | ||
9062 | maybe_plugins=no | |
9063 | for ac_header in dlfcn.h | |
9064 | do : | |
9065 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9066 | " | |
9067 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
9068 | cat >>confdefs.h <<_ACEOF | |
9069 | #define HAVE_DLFCN_H 1 | |
9070 | _ACEOF | |
9071 | maybe_plugins=yes | |
9072 | fi | |
9073 | ||
9074 | done | |
9075 | ||
9076 | for ac_header in windows.h | |
9077 | do : | |
9078 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
9079 | " | |
9080 | if test "x$ac_cv_header_windows_h" = xyes; then : | |
9081 | cat >>confdefs.h <<_ACEOF | |
9082 | #define HAVE_WINDOWS_H 1 | |
9083 | _ACEOF | |
9084 | maybe_plugins=yes | |
9085 | fi | |
9086 | ||
9087 | done | |
9088 | ||
9089 | ||
9090 | # Check whether --enable-plugins was given. | |
9091 | if test "${enable_plugins+set}" = set; then : | |
9092 | enableval=$enable_plugins; case "${enableval}" in | |
9093 | no) plugins=no ;; | |
9094 | *) plugins=yes | |
9095 | if test "$maybe_plugins" != "yes" ; then | |
9096 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 | |
9097 | fi ;; | |
9098 | esac | |
9099 | else | |
9100 | plugins=$maybe_plugins | |
9101 | ||
9102 | fi | |
9103 | ||
9104 | if test "$plugins" = "yes"; then | |
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 | |
9106 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
9107 | if ${ac_cv_search_dlsym+:} false; then : | |
9108 | $as_echo_n "(cached) " >&6 | |
9109 | else | |
9110 | ac_func_search_save_LIBS=$LIBS | |
9111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9112 | /* end confdefs.h. */ | |
9113 | ||
9114 | /* Override any GCC internal prototype to avoid an error. | |
9115 | Use char because int might match the return type of a GCC | |
9116 | builtin and then its argument prototype would still apply. */ | |
9117 | #ifdef __cplusplus | |
9118 | extern "C" | |
9119 | #endif | |
9120 | char dlsym (); | |
9121 | int | |
9122 | main () | |
9123 | { | |
9124 | return dlsym (); | |
9125 | ; | |
9126 | return 0; | |
9127 | } | |
9128 | _ACEOF | |
9129 | for ac_lib in '' dl; do | |
9130 | if test -z "$ac_lib"; then | |
9131 | ac_res="none required" | |
9132 | else | |
9133 | ac_res=-l$ac_lib | |
9134 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9135 | fi | |
9136 | if ac_fn_c_try_link "$LINENO"; then : | |
9137 | ac_cv_search_dlsym=$ac_res | |
9138 | fi | |
9139 | rm -f core conftest.err conftest.$ac_objext \ | |
9140 | conftest$ac_exeext | |
9141 | if ${ac_cv_search_dlsym+:} false; then : | |
9142 | break | |
9143 | fi | |
9144 | done | |
9145 | if ${ac_cv_search_dlsym+:} false; then : | |
9146 | ||
9147 | else | |
9148 | ac_cv_search_dlsym=no | |
9149 | fi | |
9150 | rm conftest.$ac_ext | |
9151 | LIBS=$ac_func_search_save_LIBS | |
9152 | fi | |
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 | |
9154 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
9155 | ac_res=$ac_cv_search_dlsym | |
9156 | if test "$ac_res" != no; then : | |
9157 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9158 | ||
9159 | fi | |
9160 | ||
9161 | fi | |
9162 | ||
9163 | if test "$plugins" = yes; then | |
9164 | PLUGINS_TRUE= | |
9165 | PLUGINS_FALSE='#' | |
9166 | else | |
9167 | PLUGINS_TRUE='#' | |
9168 | PLUGINS_FALSE= | |
9169 | fi | |
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | # Set options | |
9176 | enable_dlopen=yes | |
9177 | ||
9178 | ||
9179 | ||
9180 | ||
9181 | enable_win32_dll=no | |
9182 | ||
9183 | ||
9184 | # Check whether --enable-shared was given. | |
9185 | if test "${enable_shared+set}" = set; then : | |
9186 | enableval=$enable_shared; p=${PACKAGE-default} | |
9187 | case $enableval in | |
9188 | yes) enable_shared=yes ;; | |
9189 | no) enable_shared=no ;; | |
9190 | *) | |
9191 | enable_shared=no | |
9192 | # Look at the argument we got. We use all the common list separators. | |
9193 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9194 | for pkg in $enableval; do | |
9195 | IFS="$lt_save_ifs" | |
9196 | if test "X$pkg" = "X$p"; then | |
9197 | enable_shared=yes | |
9198 | fi | |
9199 | done | |
9200 | IFS="$lt_save_ifs" | |
9201 | ;; | |
9202 | esac | |
9203 | else | |
9204 | enable_shared=yes | |
9205 | fi | |
9206 | ||
9207 | ||
9208 | ||
9209 | ||
9210 | ||
9211 | ||
9212 | ||
9213 | ||
9214 | ||
9215 | # Check whether --enable-static was given. | |
9216 | if test "${enable_static+set}" = set; then : | |
9217 | enableval=$enable_static; p=${PACKAGE-default} | |
9218 | case $enableval in | |
9219 | yes) enable_static=yes ;; | |
9220 | no) enable_static=no ;; | |
9221 | *) | |
9222 | enable_static=no | |
9223 | # Look at the argument we got. We use all the common list separators. | |
9224 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9225 | for pkg in $enableval; do | |
9226 | IFS="$lt_save_ifs" | |
9227 | if test "X$pkg" = "X$p"; then | |
9228 | enable_static=yes | |
9229 | fi | |
9230 | done | |
9231 | IFS="$lt_save_ifs" | |
9232 | ;; | |
9233 | esac | |
9234 | else | |
9235 | enable_static=yes | |
9236 | fi | |
9237 | ||
9238 | ||
9239 | ||
9240 | ||
9241 | ||
9242 | ||
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | # Check whether --with-pic was given. | |
9248 | if test "${with_pic+set}" = set; then : | |
9249 | withval=$with_pic; pic_mode="$withval" | |
9250 | else | |
9251 | pic_mode=default | |
9252 | fi | |
9253 | ||
9254 | ||
9255 | test -z "$pic_mode" && pic_mode=default | |
9256 | ||
9257 | ||
9258 | ||
9259 | ||
9260 | ||
9261 | ||
9262 | ||
9263 | # Check whether --enable-fast-install was given. | |
9264 | if test "${enable_fast_install+set}" = set; then : | |
9265 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
9266 | case $enableval in | |
9267 | yes) enable_fast_install=yes ;; | |
9268 | no) enable_fast_install=no ;; | |
9269 | *) | |
9270 | enable_fast_install=no | |
9271 | # Look at the argument we got. We use all the common list separators. | |
9272 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9273 | for pkg in $enableval; do | |
9274 | IFS="$lt_save_ifs" | |
9275 | if test "X$pkg" = "X$p"; then | |
9276 | enable_fast_install=yes | |
9277 | fi | |
9278 | done | |
9279 | IFS="$lt_save_ifs" | |
9280 | ;; | |
9281 | esac | |
9282 | else | |
9283 | enable_fast_install=yes | |
9284 | fi | |
9285 | ||
9286 | ||
9287 | ||
9288 | ||
9289 | ||
9290 | ||
9291 | ||
9292 | ||
9293 | ||
9294 | ||
9295 | ||
9296 | # This can be used to rebuild libtool when needed | |
9297 | LIBTOOL_DEPS="$ltmain" | |
9298 | ||
9299 | # Always use our own libtool. | |
9300 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9301 | ||
9302 | ||
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | ||
9311 | ||
9312 | ||
9313 | ||
9314 | ||
9315 | ||
9316 | ||
9317 | ||
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | test -z "$LN_S" && LN_S="ln -s" | |
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | ||
9334 | ||
9335 | ||
9336 | ||
9337 | ||
9338 | ||
9339 | ||
9340 | ||
9341 | ||
9342 | if test -n "${ZSH_VERSION+set}" ; then | |
9343 | setopt NO_GLOB_SUBST | |
9344 | fi | |
9345 | ||
9346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
9347 | $as_echo_n "checking for objdir... " >&6; } | |
9348 | if ${lt_cv_objdir+:} false; then : | |
9349 | $as_echo_n "(cached) " >&6 | |
9350 | else | |
9351 | rm -f .libs 2>/dev/null | |
9352 | mkdir .libs 2>/dev/null | |
9353 | if test -d .libs; then | |
9354 | lt_cv_objdir=.libs | |
9355 | else | |
9356 | # MS-DOS does not allow filenames that begin with a dot. | |
9357 | lt_cv_objdir=_libs | |
9358 | fi | |
9359 | rmdir .libs 2>/dev/null | |
9360 | fi | |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9362 | $as_echo "$lt_cv_objdir" >&6; } | |
9363 | objdir=$lt_cv_objdir | |
9364 | ||
9365 | ||
9366 | ||
9367 | ||
9368 | ||
9369 | cat >>confdefs.h <<_ACEOF | |
9370 | #define LT_OBJDIR "$lt_cv_objdir/" | |
9371 | _ACEOF | |
9372 | ||
9373 | ||
9374 | ||
9375 | ||
9376 | case $host_os in | |
9377 | aix3*) | |
9378 | # AIX sometimes has problems with the GCC collect2 program. For some | |
9379 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9380 | # vanish in a puff of smoke. | |
9381 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
9382 | COLLECT_NAMES= | |
9383 | export COLLECT_NAMES | |
9384 | fi | |
9385 | ;; | |
9386 | esac | |
9387 | ||
9388 | # Global variables: | |
9389 | ofile=libtool | |
9390 | can_build_shared=yes | |
9391 | ||
9392 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
9393 | # which needs '.lib'). | |
9394 | libext=a | |
9395 | ||
9396 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9397 | ||
9398 | old_CC="$CC" | |
9399 | old_CFLAGS="$CFLAGS" | |
9400 | ||
9401 | # Set sane defaults for various variables | |
9402 | test -z "$CC" && CC=cc | |
9403 | test -z "$LTCC" && LTCC=$CC | |
9404 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9405 | test -z "$LD" && LD=ld | |
9406 | test -z "$ac_objext" && ac_objext=o | |
9407 | ||
9408 | for cc_temp in $compiler""; do | |
9409 | case $cc_temp in | |
9410 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9411 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9412 | \-*) ;; | |
9413 | *) break;; | |
9414 | esac | |
9415 | done | |
9416 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9417 | ||
9418 | ||
9419 | # Only perform the check for file, if the check method requires it | |
9420 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9421 | case $deplibs_check_method in | |
9422 | file_magic*) | |
9423 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9425 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9426 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9427 | $as_echo_n "(cached) " >&6 | |
9428 | else | |
9429 | case $MAGIC_CMD in | |
9430 | [\\/*] | ?:[\\/]*) | |
9431 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9432 | ;; | |
9433 | *) | |
9434 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9435 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9436 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9437 | for ac_dir in $ac_dummy; do | |
9438 | IFS="$lt_save_ifs" | |
9439 | test -z "$ac_dir" && ac_dir=. | |
9440 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
9441 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9442 | if test -n "$file_magic_test_file"; then | |
9443 | case $deplibs_check_method in | |
9444 | "file_magic "*) | |
9445 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9446 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9447 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9448 | $EGREP "$file_magic_regex" > /dev/null; then | |
9449 | : | |
9450 | else | |
9451 | cat <<_LT_EOF 1>&2 | |
9452 | ||
9453 | *** Warning: the command libtool uses to detect shared libraries, | |
9454 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9455 | *** The result is that libtool may fail to recognize shared libraries | |
9456 | *** as such. This will affect the creation of libtool libraries that | |
9457 | *** depend on shared libraries, but programs linked with such libtool | |
9458 | *** libraries will work regardless of this problem. Nevertheless, you | |
9459 | *** may want to report the problem to your system manager and/or to | |
9460 | *** bug-libtool@gnu.org | |
9461 | ||
9462 | _LT_EOF | |
9463 | fi ;; | |
9464 | esac | |
9465 | fi | |
9466 | break | |
9467 | fi | |
9468 | done | |
9469 | IFS="$lt_save_ifs" | |
9470 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9471 | ;; | |
9472 | esac | |
9473 | fi | |
9474 | ||
9475 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9476 | if test -n "$MAGIC_CMD"; then | |
9477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9478 | $as_echo "$MAGIC_CMD" >&6; } | |
9479 | else | |
9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9481 | $as_echo "no" >&6; } | |
9482 | fi | |
9483 | ||
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9489 | if test -n "$ac_tool_prefix"; then | |
9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9491 | $as_echo_n "checking for file... " >&6; } | |
9492 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9493 | $as_echo_n "(cached) " >&6 | |
9494 | else | |
9495 | case $MAGIC_CMD in | |
9496 | [\\/*] | ?:[\\/]*) | |
9497 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9498 | ;; | |
9499 | *) | |
9500 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9501 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9502 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9503 | for ac_dir in $ac_dummy; do | |
9504 | IFS="$lt_save_ifs" | |
9505 | test -z "$ac_dir" && ac_dir=. | |
9506 | if test -f $ac_dir/file; then | |
9507 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9508 | if test -n "$file_magic_test_file"; then | |
9509 | case $deplibs_check_method in | |
9510 | "file_magic "*) | |
9511 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9512 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9513 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9514 | $EGREP "$file_magic_regex" > /dev/null; then | |
9515 | : | |
9516 | else | |
9517 | cat <<_LT_EOF 1>&2 | |
9518 | ||
9519 | *** Warning: the command libtool uses to detect shared libraries, | |
9520 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9521 | *** The result is that libtool may fail to recognize shared libraries | |
9522 | *** as such. This will affect the creation of libtool libraries that | |
9523 | *** depend on shared libraries, but programs linked with such libtool | |
9524 | *** libraries will work regardless of this problem. Nevertheless, you | |
9525 | *** may want to report the problem to your system manager and/or to | |
9526 | *** bug-libtool@gnu.org | |
9527 | ||
9528 | _LT_EOF | |
9529 | fi ;; | |
9530 | esac | |
9531 | fi | |
9532 | break | |
9533 | fi | |
9534 | done | |
9535 | IFS="$lt_save_ifs" | |
9536 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9537 | ;; | |
9538 | esac | |
9539 | fi | |
9540 | ||
9541 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9542 | if test -n "$MAGIC_CMD"; then | |
9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9544 | $as_echo "$MAGIC_CMD" >&6; } | |
9545 | else | |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9547 | $as_echo "no" >&6; } | |
9548 | fi | |
9549 | ||
9550 | ||
9551 | else | |
9552 | MAGIC_CMD=: | |
9553 | fi | |
9554 | fi | |
9555 | ||
9556 | fi | |
9557 | ;; | |
9558 | esac | |
9559 | ||
9560 | # Use C for the default configuration in the libtool script | |
9561 | ||
9562 | lt_save_CC="$CC" | |
9563 | ac_ext=c | |
9564 | ac_cpp='$CPP $CPPFLAGS' | |
9565 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9566 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9567 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9568 | ||
9569 | ||
9570 | # Source file extension for C test sources. | |
9571 | ac_ext=c | |
9572 | ||
9573 | # Object file extension for compiled C test sources. | |
9574 | objext=o | |
9575 | objext=$objext | |
9576 | ||
9577 | # Code to be used in simple compile tests | |
9578 | lt_simple_compile_test_code="int some_variable = 0;" | |
9579 | ||
9580 | # Code to be used in simple link tests | |
9581 | lt_simple_link_test_code='int main(){return(0);}' | |
9582 | ||
9583 | ||
9584 | ||
9585 | ||
9586 | ||
9587 | ||
9588 | ||
9589 | # If no C compiler was specified, use CC. | |
9590 | LTCC=${LTCC-"$CC"} | |
9591 | ||
9592 | # If no C compiler flags were specified, use CFLAGS. | |
9593 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9594 | ||
9595 | # Allow CC to be a program name with arguments. | |
9596 | compiler=$CC | |
9597 | ||
9598 | # Save the default compiler, since it gets overwritten when the other | |
9599 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9600 | compiler_DEFAULT=$CC | |
9601 | ||
9602 | # save warnings/boilerplate of simple test code | |
9603 | ac_outfile=conftest.$ac_objext | |
9604 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9605 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9606 | _lt_compiler_boilerplate=`cat conftest.err` | |
9607 | $RM conftest* | |
9608 | ||
9609 | ac_outfile=conftest.$ac_objext | |
9610 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9611 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9612 | _lt_linker_boilerplate=`cat conftest.err` | |
9613 | $RM -r conftest* | |
9614 | ||
9615 | ||
9616 | ## CAVEAT EMPTOR: | |
9617 | ## There is no encapsulation within the following macros, do not change | |
9618 | ## the running order or otherwise move them around unless you know exactly | |
9619 | ## what you are doing... | |
9620 | if test -n "$compiler"; then | |
9621 | ||
9622 | lt_prog_compiler_no_builtin_flag= | |
9623 | ||
9624 | if test "$GCC" = yes; then | |
9625 | case $cc_basename in | |
9626 | nvcc*) | |
9627 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9628 | *) | |
9629 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9630 | esac | |
9631 | ||
9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9633 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9634 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9635 | $as_echo_n "(cached) " >&6 | |
9636 | else | |
9637 | lt_cv_prog_compiler_rtti_exceptions=no | |
9638 | ac_outfile=conftest.$ac_objext | |
9639 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9640 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9641 | # Insert the option either (1) after the last *FLAGS variable, or | |
9642 | # (2) before a word containing "conftest.", or (3) at the end. | |
9643 | # Note that $ac_compile itself does not contain backslashes and begins | |
9644 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9645 | # The option is referenced via a variable to avoid confusing sed. | |
9646 | lt_compile=`echo "$ac_compile" | $SED \ | |
9647 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9648 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9649 | -e 's:$: $lt_compiler_flag:'` | |
9650 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9651 | (eval "$lt_compile" 2>conftest.err) | |
9652 | ac_status=$? | |
9653 | cat conftest.err >&5 | |
9654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9655 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9656 | # The compiler can only warn and ignore the option if not recognized | |
9657 | # So say no if there are warnings other than the usual output. | |
9658 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9659 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9660 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9661 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9662 | fi | |
9663 | fi | |
9664 | $RM conftest* | |
9665 | ||
9666 | fi | |
9667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9668 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9669 | ||
9670 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9671 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9672 | else | |
9673 | : | |
9674 | fi | |
9675 | ||
9676 | fi | |
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | ||
9682 | ||
9683 | lt_prog_compiler_wl= | |
9684 | lt_prog_compiler_pic= | |
9685 | lt_prog_compiler_static= | |
9686 | ||
9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9688 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9689 | ||
9690 | if test "$GCC" = yes; then | |
9691 | lt_prog_compiler_wl='-Wl,' | |
9692 | lt_prog_compiler_static='-static' | |
9693 | ||
9694 | case $host_os in | |
9695 | aix*) | |
9696 | # All AIX code is PIC. | |
9697 | if test "$host_cpu" = ia64; then | |
9698 | # AIX 5 now supports IA64 processor | |
9699 | lt_prog_compiler_static='-Bstatic' | |
9700 | fi | |
9701 | lt_prog_compiler_pic='-fPIC' | |
9702 | ;; | |
9703 | ||
9704 | amigaos*) | |
9705 | case $host_cpu in | |
9706 | powerpc) | |
9707 | # see comment about AmigaOS4 .so support | |
9708 | lt_prog_compiler_pic='-fPIC' | |
9709 | ;; | |
9710 | m68k) | |
9711 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9712 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9713 | # like `-m68040'. | |
9714 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9715 | ;; | |
9716 | esac | |
9717 | ;; | |
9718 | ||
9719 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9720 | # PIC is the default for these OSes. | |
9721 | ;; | |
9722 | ||
9723 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9724 | # This hack is so that the source file can tell whether it is being | |
9725 | # built for inclusion in a dll (and should export symbols for example). | |
9726 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9727 | # (--disable-auto-import) libraries | |
9728 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9729 | ;; | |
9730 | ||
9731 | darwin* | rhapsody*) | |
9732 | # PIC is the default on this platform | |
9733 | # Common symbols not allowed in MH_DYLIB files | |
9734 | lt_prog_compiler_pic='-fno-common' | |
9735 | ;; | |
9736 | ||
9737 | haiku*) | |
9738 | # PIC is the default for Haiku. | |
9739 | # The "-static" flag exists, but is broken. | |
9740 | lt_prog_compiler_static= | |
9741 | ;; | |
9742 | ||
9743 | hpux*) | |
9744 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9745 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9746 | # sets the default TLS model and affects inlining. | |
9747 | case $host_cpu in | |
9748 | hppa*64*) | |
9749 | # +Z the default | |
9750 | ;; | |
9751 | *) | |
9752 | lt_prog_compiler_pic='-fPIC' | |
9753 | ;; | |
9754 | esac | |
9755 | ;; | |
9756 | ||
9757 | interix[3-9]*) | |
9758 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9759 | # Instead, we relocate shared libraries at runtime. | |
9760 | ;; | |
9761 | ||
9762 | msdosdjgpp*) | |
9763 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9764 | # on systems that don't support them. | |
9765 | lt_prog_compiler_can_build_shared=no | |
9766 | enable_shared=no | |
9767 | ;; | |
9768 | ||
9769 | *nto* | *qnx*) | |
9770 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9771 | # it will coredump. | |
9772 | lt_prog_compiler_pic='-fPIC -shared' | |
9773 | ;; | |
9774 | ||
9775 | sysv4*MP*) | |
9776 | if test -d /usr/nec; then | |
9777 | lt_prog_compiler_pic=-Kconform_pic | |
9778 | fi | |
9779 | ;; | |
9780 | ||
9781 | *) | |
9782 | lt_prog_compiler_pic='-fPIC' | |
9783 | ;; | |
9784 | esac | |
9785 | ||
9786 | case $cc_basename in | |
9787 | nvcc*) # Cuda Compiler Driver 2.2 | |
9788 | lt_prog_compiler_wl='-Xlinker ' | |
9789 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9790 | ;; | |
9791 | esac | |
9792 | else | |
9793 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9794 | case $host_os in | |
9795 | aix*) | |
9796 | lt_prog_compiler_wl='-Wl,' | |
9797 | if test "$host_cpu" = ia64; then | |
9798 | # AIX 5 now supports IA64 processor | |
9799 | lt_prog_compiler_static='-Bstatic' | |
9800 | else | |
9801 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9802 | fi | |
9803 | ;; | |
9804 | ||
9805 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9806 | # This hack is so that the source file can tell whether it is being | |
9807 | # built for inclusion in a dll (and should export symbols for example). | |
9808 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9809 | ;; | |
9810 | ||
9811 | hpux9* | hpux10* | hpux11*) | |
9812 | lt_prog_compiler_wl='-Wl,' | |
9813 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9814 | # not for PA HP-UX. | |
9815 | case $host_cpu in | |
9816 | hppa*64*|ia64*) | |
9817 | # +Z the default | |
9818 | ;; | |
9819 | *) | |
9820 | lt_prog_compiler_pic='+Z' | |
9821 | ;; | |
9822 | esac | |
9823 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9824 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9825 | ;; | |
9826 | ||
9827 | irix5* | irix6* | nonstopux*) | |
9828 | lt_prog_compiler_wl='-Wl,' | |
9829 | # PIC (with -KPIC) is the default. | |
9830 | lt_prog_compiler_static='-non_shared' | |
9831 | ;; | |
9832 | ||
9833 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9834 | case $cc_basename in | |
9835 | # old Intel for x86_64 which still supported -KPIC. | |
9836 | ecc*) | |
9837 | lt_prog_compiler_wl='-Wl,' | |
9838 | lt_prog_compiler_pic='-KPIC' | |
9839 | lt_prog_compiler_static='-static' | |
9840 | ;; | |
9841 | # icc used to be incompatible with GCC. | |
9842 | # ICC 10 doesn't accept -KPIC any more. | |
9843 | icc* | ifort*) | |
9844 | lt_prog_compiler_wl='-Wl,' | |
9845 | lt_prog_compiler_pic='-fPIC' | |
9846 | lt_prog_compiler_static='-static' | |
9847 | ;; | |
9848 | # Lahey Fortran 8.1. | |
9849 | lf95*) | |
9850 | lt_prog_compiler_wl='-Wl,' | |
9851 | lt_prog_compiler_pic='--shared' | |
9852 | lt_prog_compiler_static='--static' | |
9853 | ;; | |
9854 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9855 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9856 | # which looks to be a dead project) | |
9857 | lt_prog_compiler_wl='-Wl,' | |
9858 | lt_prog_compiler_pic='-fpic' | |
9859 | lt_prog_compiler_static='-Bstatic' | |
9860 | ;; | |
9861 | ccc*) | |
9862 | lt_prog_compiler_wl='-Wl,' | |
9863 | # All Alpha code is PIC. | |
9864 | lt_prog_compiler_static='-non_shared' | |
9865 | ;; | |
9866 | xl* | bgxl* | bgf* | mpixl*) | |
9867 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9868 | lt_prog_compiler_wl='-Wl,' | |
9869 | lt_prog_compiler_pic='-qpic' | |
9870 | lt_prog_compiler_static='-qstaticlink' | |
9871 | ;; | |
9872 | *) | |
9873 | case `$CC -V 2>&1 | sed 5q` in | |
9874 | *Sun\ F* | *Sun*Fortran*) | |
9875 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9876 | lt_prog_compiler_pic='-KPIC' | |
9877 | lt_prog_compiler_static='-Bstatic' | |
9878 | lt_prog_compiler_wl='' | |
9879 | ;; | |
9880 | *Sun\ C*) | |
9881 | # Sun C 5.9 | |
9882 | lt_prog_compiler_pic='-KPIC' | |
9883 | lt_prog_compiler_static='-Bstatic' | |
9884 | lt_prog_compiler_wl='-Wl,' | |
9885 | ;; | |
9886 | esac | |
9887 | ;; | |
9888 | esac | |
9889 | ;; | |
9890 | ||
9891 | newsos6) | |
9892 | lt_prog_compiler_pic='-KPIC' | |
9893 | lt_prog_compiler_static='-Bstatic' | |
9894 | ;; | |
9895 | ||
9896 | *nto* | *qnx*) | |
9897 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9898 | # it will coredump. | |
9899 | lt_prog_compiler_pic='-fPIC -shared' | |
9900 | ;; | |
9901 | ||
9902 | osf3* | osf4* | osf5*) | |
9903 | lt_prog_compiler_wl='-Wl,' | |
9904 | # All OSF/1 code is PIC. | |
9905 | lt_prog_compiler_static='-non_shared' | |
9906 | ;; | |
9907 | ||
9908 | rdos*) | |
9909 | lt_prog_compiler_static='-non_shared' | |
9910 | ;; | |
9911 | ||
9912 | solaris*) | |
9913 | lt_prog_compiler_pic='-KPIC' | |
9914 | lt_prog_compiler_static='-Bstatic' | |
9915 | case $cc_basename in | |
9916 | f77* | f90* | f95*) | |
9917 | lt_prog_compiler_wl='-Qoption ld ';; | |
9918 | *) | |
9919 | lt_prog_compiler_wl='-Wl,';; | |
9920 | esac | |
9921 | ;; | |
9922 | ||
9923 | sunos4*) | |
9924 | lt_prog_compiler_wl='-Qoption ld ' | |
9925 | lt_prog_compiler_pic='-PIC' | |
9926 | lt_prog_compiler_static='-Bstatic' | |
9927 | ;; | |
9928 | ||
9929 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9930 | lt_prog_compiler_wl='-Wl,' | |
9931 | lt_prog_compiler_pic='-KPIC' | |
9932 | lt_prog_compiler_static='-Bstatic' | |
9933 | ;; | |
9934 | ||
9935 | sysv4*MP*) | |
9936 | if test -d /usr/nec ;then | |
9937 | lt_prog_compiler_pic='-Kconform_pic' | |
9938 | lt_prog_compiler_static='-Bstatic' | |
9939 | fi | |
9940 | ;; | |
9941 | ||
9942 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9943 | lt_prog_compiler_wl='-Wl,' | |
9944 | lt_prog_compiler_pic='-KPIC' | |
9945 | lt_prog_compiler_static='-Bstatic' | |
9946 | ;; | |
9947 | ||
9948 | unicos*) | |
9949 | lt_prog_compiler_wl='-Wl,' | |
9950 | lt_prog_compiler_can_build_shared=no | |
9951 | ;; | |
9952 | ||
9953 | uts4*) | |
9954 | lt_prog_compiler_pic='-pic' | |
9955 | lt_prog_compiler_static='-Bstatic' | |
9956 | ;; | |
9957 | ||
9958 | *) | |
9959 | lt_prog_compiler_can_build_shared=no | |
9960 | ;; | |
9961 | esac | |
9962 | fi | |
9963 | ||
9964 | case $host_os in | |
9965 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9966 | *djgpp*) | |
9967 | lt_prog_compiler_pic= | |
9968 | ;; | |
9969 | *) | |
9970 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9971 | ;; | |
9972 | esac | |
9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
9974 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | # | |
9982 | # Check to make sure the PIC flag actually works. | |
9983 | # | |
9984 | if test -n "$lt_prog_compiler_pic"; then | |
9985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9986 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9987 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9988 | $as_echo_n "(cached) " >&6 | |
9989 | else | |
9990 | lt_cv_prog_compiler_pic_works=no | |
9991 | ac_outfile=conftest.$ac_objext | |
9992 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9993 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9994 | # Insert the option either (1) after the last *FLAGS variable, or | |
9995 | # (2) before a word containing "conftest.", or (3) at the end. | |
9996 | # Note that $ac_compile itself does not contain backslashes and begins | |
9997 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9998 | # The option is referenced via a variable to avoid confusing sed. | |
9999 | lt_compile=`echo "$ac_compile" | $SED \ | |
10000 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10001 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10002 | -e 's:$: $lt_compiler_flag:'` | |
10003 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10004 | (eval "$lt_compile" 2>conftest.err) | |
10005 | ac_status=$? | |
10006 | cat conftest.err >&5 | |
10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10008 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
10009 | # The compiler can only warn and ignore the option if not recognized | |
10010 | # So say no if there are warnings other than the usual output. | |
10011 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
10012 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10013 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10014 | lt_cv_prog_compiler_pic_works=yes | |
10015 | fi | |
10016 | fi | |
10017 | $RM conftest* | |
10018 | ||
10019 | fi | |
10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
10021 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
10022 | ||
10023 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
10024 | case $lt_prog_compiler_pic in | |
10025 | "" | " "*) ;; | |
10026 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10027 | esac | |
10028 | else | |
10029 | lt_prog_compiler_pic= | |
10030 | lt_prog_compiler_can_build_shared=no | |
10031 | fi | |
10032 | ||
10033 | fi | |
10034 | ||
10035 | ||
10036 | ||
10037 | ||
10038 | ||
10039 | ||
10040 | # | |
10041 | # Check to make sure the static flag actually works. | |
10042 | # | |
10043 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
10044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
10045 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
10046 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
10047 | $as_echo_n "(cached) " >&6 | |
10048 | else | |
10049 | lt_cv_prog_compiler_static_works=no | |
10050 | save_LDFLAGS="$LDFLAGS" | |
10051 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10052 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10053 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10054 | # The linker can only warn and ignore the option if not recognized | |
10055 | # So say no if there are warnings | |
10056 | if test -s conftest.err; then | |
10057 | # Append any errors to the config.log. | |
10058 | cat conftest.err 1>&5 | |
10059 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10060 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10061 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10062 | lt_cv_prog_compiler_static_works=yes | |
10063 | fi | |
10064 | else | |
10065 | lt_cv_prog_compiler_static_works=yes | |
10066 | fi | |
10067 | fi | |
10068 | $RM -r conftest* | |
10069 | LDFLAGS="$save_LDFLAGS" | |
10070 | ||
10071 | fi | |
10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
10073 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
10074 | ||
10075 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
10076 | : | |
10077 | else | |
10078 | lt_prog_compiler_static= | |
10079 | fi | |
10080 | ||
10081 | ||
10082 | ||
10083 | ||
10084 | ||
10085 | ||
10086 | ||
10087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10088 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10089 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10090 | $as_echo_n "(cached) " >&6 | |
10091 | else | |
10092 | lt_cv_prog_compiler_c_o=no | |
10093 | $RM -r conftest 2>/dev/null | |
10094 | mkdir conftest | |
10095 | cd conftest | |
10096 | mkdir out | |
10097 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10098 | ||
10099 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10100 | # Insert the option either (1) after the last *FLAGS variable, or | |
10101 | # (2) before a word containing "conftest.", or (3) at the end. | |
10102 | # Note that $ac_compile itself does not contain backslashes and begins | |
10103 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10104 | lt_compile=`echo "$ac_compile" | $SED \ | |
10105 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10106 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10107 | -e 's:$: $lt_compiler_flag:'` | |
10108 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10109 | (eval "$lt_compile" 2>out/conftest.err) | |
10110 | ac_status=$? | |
10111 | cat out/conftest.err >&5 | |
10112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10113 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10114 | then | |
10115 | # The compiler can only warn and ignore the option if not recognized | |
10116 | # So say no if there are warnings | |
10117 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10118 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10119 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10120 | lt_cv_prog_compiler_c_o=yes | |
10121 | fi | |
10122 | fi | |
10123 | chmod u+w . 2>&5 | |
10124 | $RM conftest* | |
10125 | # SGI C++ compiler will create directory out/ii_files/ for | |
10126 | # template instantiation | |
10127 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10128 | $RM out/* && rmdir out | |
10129 | cd .. | |
10130 | $RM -r conftest | |
10131 | $RM conftest* | |
10132 | ||
10133 | fi | |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10135 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10143 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10144 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10145 | $as_echo_n "(cached) " >&6 | |
10146 | else | |
10147 | lt_cv_prog_compiler_c_o=no | |
10148 | $RM -r conftest 2>/dev/null | |
10149 | mkdir conftest | |
10150 | cd conftest | |
10151 | mkdir out | |
10152 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10153 | ||
10154 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10155 | # Insert the option either (1) after the last *FLAGS variable, or | |
10156 | # (2) before a word containing "conftest.", or (3) at the end. | |
10157 | # Note that $ac_compile itself does not contain backslashes and begins | |
10158 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10159 | lt_compile=`echo "$ac_compile" | $SED \ | |
10160 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10161 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10162 | -e 's:$: $lt_compiler_flag:'` | |
10163 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10164 | (eval "$lt_compile" 2>out/conftest.err) | |
10165 | ac_status=$? | |
10166 | cat out/conftest.err >&5 | |
10167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10168 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10169 | then | |
10170 | # The compiler can only warn and ignore the option if not recognized | |
10171 | # So say no if there are warnings | |
10172 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10173 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10174 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10175 | lt_cv_prog_compiler_c_o=yes | |
10176 | fi | |
10177 | fi | |
10178 | chmod u+w . 2>&5 | |
10179 | $RM conftest* | |
10180 | # SGI C++ compiler will create directory out/ii_files/ for | |
10181 | # template instantiation | |
10182 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10183 | $RM out/* && rmdir out | |
10184 | cd .. | |
10185 | $RM -r conftest | |
10186 | $RM conftest* | |
10187 | ||
10188 | fi | |
10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10190 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | hard_links="nottested" | |
10196 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10197 | # do not overwrite the value of need_locks provided by the user | |
10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10199 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10200 | hard_links=yes | |
10201 | $RM conftest* | |
10202 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10203 | touch conftest.a | |
10204 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
10205 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10207 | $as_echo "$hard_links" >&6; } | |
10208 | if test "$hard_links" = no; then | |
10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10210 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10211 | need_locks=warn | |
10212 | fi | |
10213 | else | |
10214 | need_locks=no | |
10215 | fi | |
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10223 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10224 | ||
10225 | runpath_var= | |
10226 | allow_undefined_flag= | |
10227 | always_export_symbols=no | |
10228 | archive_cmds= | |
10229 | archive_expsym_cmds= | |
10230 | compiler_needs_object=no | |
10231 | enable_shared_with_static_runtimes=no | |
10232 | export_dynamic_flag_spec= | |
10233 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10234 | hardcode_automatic=no | |
10235 | hardcode_direct=no | |
10236 | hardcode_direct_absolute=no | |
10237 | hardcode_libdir_flag_spec= | |
10238 | hardcode_libdir_flag_spec_ld= | |
10239 | hardcode_libdir_separator= | |
10240 | hardcode_minus_L=no | |
10241 | hardcode_shlibpath_var=unsupported | |
10242 | inherit_rpath=no | |
10243 | link_all_deplibs=unknown | |
10244 | module_cmds= | |
10245 | module_expsym_cmds= | |
10246 | old_archive_from_new_cmds= | |
10247 | old_archive_from_expsyms_cmds= | |
10248 | thread_safe_flag_spec= | |
10249 | whole_archive_flag_spec= | |
10250 | # include_expsyms should be a list of space-separated symbols to be *always* | |
10251 | # included in the symbol list | |
10252 | include_expsyms= | |
10253 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
10254 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10255 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10256 | # as well as any symbol that contains `d'. | |
10257 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10258 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10259 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
10260 | # the symbol is explicitly referenced. Since portable code cannot | |
10261 | # rely on this symbol name, it's probably fine to never include it in | |
10262 | # preloaded symbol tables. | |
10263 | # Exclude shared library initialization/finalization symbols. | |
10264 | extract_expsyms_cmds= | |
10265 | ||
10266 | case $host_os in | |
10267 | cygwin* | mingw* | pw32* | cegcc*) | |
10268 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10269 | # When not using gcc, we currently assume that we are using | |
10270 | # Microsoft Visual C++. | |
10271 | if test "$GCC" != yes; then | |
10272 | with_gnu_ld=no | |
10273 | fi | |
10274 | ;; | |
10275 | interix*) | |
10276 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10277 | with_gnu_ld=yes | |
10278 | ;; | |
10279 | openbsd*) | |
10280 | with_gnu_ld=no | |
10281 | ;; | |
10282 | esac | |
10283 | ||
10284 | ld_shlibs=yes | |
10285 | ||
10286 | # On some targets, GNU ld is compatible enough with the native linker | |
10287 | # that we're better off using the native interface for both. | |
10288 | lt_use_gnu_ld_interface=no | |
10289 | if test "$with_gnu_ld" = yes; then | |
10290 | case $host_os in | |
10291 | aix*) | |
10292 | # The AIX port of GNU ld has always aspired to compatibility | |
10293 | # with the native linker. However, as the warning in the GNU ld | |
10294 | # block says, versions before 2.19.5* couldn't really create working | |
10295 | # shared libraries, regardless of the interface used. | |
10296 | case `$LD -v 2>&1` in | |
10297 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10298 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10299 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10300 | *) | |
10301 | lt_use_gnu_ld_interface=yes | |
10302 | ;; | |
10303 | esac | |
10304 | ;; | |
10305 | *) | |
10306 | lt_use_gnu_ld_interface=yes | |
10307 | ;; | |
10308 | esac | |
10309 | fi | |
10310 | ||
10311 | if test "$lt_use_gnu_ld_interface" = yes; then | |
10312 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10313 | wlarc='${wl}' | |
10314 | ||
10315 | # Set some defaults for GNU ld with shared library support. These | |
10316 | # are reset later if shared libraries are not supported. Putting them | |
10317 | # here allows them to be overridden if necessary. | |
10318 | runpath_var=LD_RUN_PATH | |
10319 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10320 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
10321 | # ancient GNU ld didn't support --whole-archive et. al. | |
10322 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10323 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10324 | else | |
10325 | whole_archive_flag_spec= | |
10326 | fi | |
10327 | supports_anon_versioning=no | |
10328 | case `$LD -v 2>&1` in | |
10329 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10330 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10331 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10332 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10333 | *\ 2.11.*) ;; # other 2.11 versions | |
10334 | *) supports_anon_versioning=yes ;; | |
10335 | esac | |
10336 | ||
10337 | # See if GNU ld supports shared libraries. | |
10338 | case $host_os in | |
10339 | aix[3-9]*) | |
10340 | # On AIX/PPC, the GNU linker is very broken | |
10341 | if test "$host_cpu" != ia64; then | |
10342 | ld_shlibs=no | |
10343 | cat <<_LT_EOF 1>&2 | |
10344 | ||
10345 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10346 | *** to be unable to reliably create shared libraries on AIX. | |
10347 | *** Therefore, libtool is disabling shared libraries support. If you | |
10348 | *** really care for shared libraries, you may want to install binutils | |
10349 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10350 | *** You will then need to restart the configuration process. | |
10351 | ||
10352 | _LT_EOF | |
10353 | fi | |
10354 | ;; | |
10355 | ||
10356 | amigaos*) | |
10357 | case $host_cpu in | |
10358 | powerpc) | |
10359 | # see comment about AmigaOS4 .so support | |
10360 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10361 | archive_expsym_cmds='' | |
10362 | ;; | |
10363 | m68k) | |
10364 | 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)' | |
10365 | hardcode_libdir_flag_spec='-L$libdir' | |
10366 | hardcode_minus_L=yes | |
10367 | ;; | |
10368 | esac | |
10369 | ;; | |
10370 | ||
10371 | beos*) | |
10372 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10373 | allow_undefined_flag=unsupported | |
10374 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10375 | # support --undefined. This deserves some investigation. FIXME | |
10376 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10377 | else | |
10378 | ld_shlibs=no | |
10379 | fi | |
10380 | ;; | |
10381 | ||
10382 | cygwin* | mingw* | pw32* | cegcc*) | |
10383 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10384 | # as there is no search path for DLLs. | |
10385 | hardcode_libdir_flag_spec='-L$libdir' | |
10386 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10387 | allow_undefined_flag=unsupported | |
10388 | always_export_symbols=no | |
10389 | enable_shared_with_static_runtimes=yes | |
10390 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10391 | ||
10392 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10393 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10394 | # If the export-symbols file already is a .def file (1st line | |
10395 | # is EXPORTS), use it as is; otherwise, prepend... | |
10396 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10397 | cp $export_symbols $output_objdir/$soname.def; | |
10398 | else | |
10399 | echo EXPORTS > $output_objdir/$soname.def; | |
10400 | cat $export_symbols >> $output_objdir/$soname.def; | |
10401 | fi~ | |
10402 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10403 | else | |
10404 | ld_shlibs=no | |
10405 | fi | |
10406 | ;; | |
10407 | ||
10408 | haiku*) | |
10409 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10410 | link_all_deplibs=yes | |
10411 | ;; | |
10412 | ||
10413 | interix[3-9]*) | |
10414 | hardcode_direct=no | |
10415 | hardcode_shlibpath_var=no | |
10416 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10417 | export_dynamic_flag_spec='${wl}-E' | |
10418 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10419 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10420 | # default) and relocated if they conflict, which is a slow very memory | |
10421 | # consuming and fragmenting process. To avoid this, we pick a random, | |
10422 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10423 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10424 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10425 | 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' | |
10426 | ;; | |
10427 | ||
10428 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
10429 | tmp_diet=no | |
10430 | if test "$host_os" = linux-dietlibc; then | |
10431 | case $cc_basename in | |
10432 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10433 | esac | |
10434 | fi | |
10435 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10436 | && test "$tmp_diet" = no | |
10437 | then | |
10438 | tmp_addflag=' $pic_flag' | |
10439 | tmp_sharedflag='-shared' | |
10440 | case $cc_basename,$host_cpu in | |
10441 | pgcc*) # Portland Group C compiler | |
10442 | 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' | |
10443 | tmp_addflag=' $pic_flag' | |
10444 | ;; | |
10445 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
10446 | # Portland Group f77 and f90 compilers | |
10447 | 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' | |
10448 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
10449 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10450 | tmp_addflag=' -i_dynamic' ;; | |
10451 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10452 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10453 | ifc* | ifort*) # Intel Fortran compiler | |
10454 | tmp_addflag=' -nofor_main' ;; | |
10455 | lf95*) # Lahey Fortran 8.1 | |
10456 | whole_archive_flag_spec= | |
10457 | tmp_sharedflag='--shared' ;; | |
10458 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10459 | tmp_sharedflag='-qmkshrobj' | |
10460 | tmp_addflag= ;; | |
10461 | nvcc*) # Cuda Compiler Driver 2.2 | |
10462 | 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' | |
10463 | compiler_needs_object=yes | |
10464 | ;; | |
10465 | esac | |
10466 | case `$CC -V 2>&1 | sed 5q` in | |
10467 | *Sun\ C*) # Sun C 5.9 | |
10468 | 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' | |
10469 | compiler_needs_object=yes | |
10470 | tmp_sharedflag='-G' ;; | |
10471 | *Sun\ F*) # Sun Fortran 8.3 | |
10472 | tmp_sharedflag='-G' ;; | |
10473 | esac | |
10474 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10475 | ||
10476 | if test "x$supports_anon_versioning" = xyes; then | |
10477 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10478 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10479 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10480 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10481 | fi | |
10482 | ||
10483 | case $cc_basename in | |
10484 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10485 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10486 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10487 | hardcode_libdir_flag_spec= | |
10488 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10489 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
10490 | if test "x$supports_anon_versioning" = xyes; then | |
10491 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10492 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10493 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10494 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10495 | fi | |
10496 | ;; | |
10497 | esac | |
10498 | else | |
10499 | ld_shlibs=no | |
10500 | fi | |
10501 | ;; | |
10502 | ||
10503 | netbsd*) | |
10504 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10505 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10506 | wlarc= | |
10507 | else | |
10508 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10509 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10510 | fi | |
10511 | ;; | |
10512 | ||
10513 | solaris*) | |
10514 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10515 | ld_shlibs=no | |
10516 | cat <<_LT_EOF 1>&2 | |
10517 | ||
10518 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10519 | *** create shared libraries on Solaris systems. Therefore, libtool | |
10520 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10521 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
10522 | *** your PATH or compiler configuration so that the native linker is | |
10523 | *** used, and then restart. | |
10524 | ||
10525 | _LT_EOF | |
10526 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10527 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10528 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10529 | else | |
10530 | ld_shlibs=no | |
10531 | fi | |
10532 | ;; | |
10533 | ||
10534 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10535 | case `$LD -v 2>&1` in | |
10536 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10537 | ld_shlibs=no | |
10538 | cat <<_LT_EOF 1>&2 | |
10539 | ||
10540 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10541 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10542 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
10543 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10544 | *** your PATH or compiler configuration so that the native linker is | |
10545 | *** used, and then restart. | |
10546 | ||
10547 | _LT_EOF | |
10548 | ;; | |
10549 | *) | |
10550 | # For security reasons, it is highly recommended that you always | |
10551 | # use absolute paths for naming shared libraries, and exclude the | |
10552 | # DT_RUNPATH tag from executables and libraries. But doing so | |
10553 | # requires that you compile everything twice, which is a pain. | |
10554 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10555 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10556 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10557 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10558 | else | |
10559 | ld_shlibs=no | |
10560 | fi | |
10561 | ;; | |
10562 | esac | |
10563 | ;; | |
10564 | ||
10565 | sunos4*) | |
10566 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10567 | wlarc= | |
10568 | hardcode_direct=yes | |
10569 | hardcode_shlibpath_var=no | |
10570 | ;; | |
10571 | ||
10572 | *) | |
10573 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10574 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10575 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10576 | else | |
10577 | ld_shlibs=no | |
10578 | fi | |
10579 | ;; | |
10580 | esac | |
10581 | ||
10582 | if test "$ld_shlibs" = no; then | |
10583 | runpath_var= | |
10584 | hardcode_libdir_flag_spec= | |
10585 | export_dynamic_flag_spec= | |
10586 | whole_archive_flag_spec= | |
10587 | fi | |
10588 | else | |
10589 | # PORTME fill in a description of your system's linker (not GNU ld) | |
10590 | case $host_os in | |
10591 | aix3*) | |
10592 | allow_undefined_flag=unsupported | |
10593 | always_export_symbols=yes | |
10594 | 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' | |
10595 | # Note: this linker hardcodes the directories in LIBPATH if there | |
10596 | # are no directories specified by -L. | |
10597 | hardcode_minus_L=yes | |
10598 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10599 | # Neither direct hardcoding nor static linking is supported with a | |
10600 | # broken collect2. | |
10601 | hardcode_direct=unsupported | |
10602 | fi | |
10603 | ;; | |
10604 | ||
10605 | aix[4-9]*) | |
10606 | if test "$host_cpu" = ia64; then | |
10607 | # On IA64, the linker does run time linking by default, so we don't | |
10608 | # have to do anything special. | |
10609 | aix_use_runtimelinking=no | |
10610 | exp_sym_flag='-Bexport' | |
10611 | no_entry_flag="" | |
10612 | else | |
10613 | # If we're using GNU nm, then we don't want the "-C" option. | |
10614 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10615 | # Also, AIX nm treats weak defined symbols like other global | |
10616 | # defined symbols, whereas GNU nm marks them as "W". | |
10617 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10618 | 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' | |
10619 | else | |
10620 | 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' | |
10621 | fi | |
10622 | aix_use_runtimelinking=no | |
10623 | ||
10624 | # Test if we are trying to use run time linking or normal | |
10625 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10626 | # need to do runtime linking. | |
10627 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10628 | for ld_flag in $LDFLAGS; do | |
10629 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10630 | aix_use_runtimelinking=yes | |
10631 | break | |
10632 | fi | |
10633 | done | |
10634 | ;; | |
10635 | esac | |
10636 | ||
10637 | exp_sym_flag='-bexport' | |
10638 | no_entry_flag='-bnoentry' | |
10639 | fi | |
10640 | ||
10641 | # When large executables or shared objects are built, AIX ld can | |
10642 | # have problems creating the table of contents. If linking a library | |
10643 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10644 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10645 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10646 | ||
10647 | archive_cmds='' | |
10648 | hardcode_direct=yes | |
10649 | hardcode_direct_absolute=yes | |
10650 | hardcode_libdir_separator=':' | |
10651 | link_all_deplibs=yes | |
10652 | file_list_spec='${wl}-f,' | |
10653 | ||
10654 | if test "$GCC" = yes; then | |
10655 | case $host_os in aix4.[012]|aix4.[012].*) | |
10656 | # We only want to do this on AIX 4.2 and lower, the check | |
10657 | # below for broken collect2 doesn't work under 4.3+ | |
10658 | collect2name=`${CC} -print-prog-name=collect2` | |
10659 | if test -f "$collect2name" && | |
10660 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10661 | then | |
10662 | # We have reworked collect2 | |
10663 | : | |
10664 | else | |
10665 | # We have old collect2 | |
10666 | hardcode_direct=unsupported | |
10667 | # It fails to find uninstalled libraries when the uninstalled | |
10668 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10669 | # to unsupported forces relinking | |
10670 | hardcode_minus_L=yes | |
10671 | hardcode_libdir_flag_spec='-L$libdir' | |
10672 | hardcode_libdir_separator= | |
10673 | fi | |
10674 | ;; | |
10675 | esac | |
10676 | shared_flag='-shared' | |
10677 | if test "$aix_use_runtimelinking" = yes; then | |
10678 | shared_flag="$shared_flag "'${wl}-G' | |
10679 | fi | |
10680 | else | |
10681 | # not using gcc | |
10682 | if test "$host_cpu" = ia64; then | |
10683 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10684 | # chokes on -Wl,-G. The following line is correct: | |
10685 | shared_flag='-G' | |
10686 | else | |
10687 | if test "$aix_use_runtimelinking" = yes; then | |
10688 | shared_flag='${wl}-G' | |
10689 | else | |
10690 | shared_flag='${wl}-bM:SRE' | |
10691 | fi | |
10692 | fi | |
10693 | fi | |
10694 | ||
10695 | export_dynamic_flag_spec='${wl}-bexpall' | |
10696 | # It seems that -bexpall does not export symbols beginning with | |
10697 | # underscore (_), so it is better to generate a list of symbols to export. | |
10698 | always_export_symbols=yes | |
10699 | if test "$aix_use_runtimelinking" = yes; then | |
10700 | # Warning - without using the other runtime loading flags (-brtl), | |
10701 | # -berok will link without error, but may produce a broken library. | |
10702 | allow_undefined_flag='-berok' | |
10703 | # Determine the default libpath from the value encoded in an | |
10704 | # empty executable. | |
10705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10706 | /* end confdefs.h. */ | |
10707 | ||
10708 | int | |
10709 | main () | |
10710 | { | |
10711 | ||
10712 | ; | |
10713 | return 0; | |
10714 | } | |
10715 | _ACEOF | |
10716 | if ac_fn_c_try_link "$LINENO"; then : | |
10717 | ||
10718 | lt_aix_libpath_sed=' | |
10719 | /Import File Strings/,/^$/ { | |
10720 | /^0/ { | |
10721 | s/^0 *\(.*\)$/\1/ | |
10722 | p | |
10723 | } | |
10724 | }' | |
10725 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10726 | # Check for a 64-bit object if we didn't find anything. | |
10727 | if test -z "$aix_libpath"; then | |
10728 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10729 | fi | |
10730 | fi | |
10731 | rm -f core conftest.err conftest.$ac_objext \ | |
10732 | conftest$ac_exeext conftest.$ac_ext | |
10733 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10734 | ||
10735 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10736 | 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" | |
10737 | else | |
10738 | if test "$host_cpu" = ia64; then | |
10739 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10740 | allow_undefined_flag="-z nodefs" | |
10741 | 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" | |
10742 | else | |
10743 | # Determine the default libpath from the value encoded in an | |
10744 | # empty executable. | |
10745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10746 | /* end confdefs.h. */ | |
10747 | ||
10748 | int | |
10749 | main () | |
10750 | { | |
10751 | ||
10752 | ; | |
10753 | return 0; | |
10754 | } | |
10755 | _ACEOF | |
10756 | if ac_fn_c_try_link "$LINENO"; then : | |
10757 | ||
10758 | lt_aix_libpath_sed=' | |
10759 | /Import File Strings/,/^$/ { | |
10760 | /^0/ { | |
10761 | s/^0 *\(.*\)$/\1/ | |
10762 | p | |
10763 | } | |
10764 | }' | |
10765 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10766 | # Check for a 64-bit object if we didn't find anything. | |
10767 | if test -z "$aix_libpath"; then | |
10768 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10769 | fi | |
10770 | fi | |
10771 | rm -f core conftest.err conftest.$ac_objext \ | |
10772 | conftest$ac_exeext conftest.$ac_ext | |
10773 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10774 | ||
10775 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10776 | # Warning - without using the other run time loading flags, | |
10777 | # -berok will link without error, but may produce a broken library. | |
10778 | no_undefined_flag=' ${wl}-bernotok' | |
10779 | allow_undefined_flag=' ${wl}-berok' | |
10780 | if test "$with_gnu_ld" = yes; then | |
10781 | # We only use this code for GNU lds that support --whole-archive. | |
10782 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10783 | else | |
10784 | # Exported symbols can be pulled into shared objects from archives | |
10785 | whole_archive_flag_spec='$convenience' | |
10786 | fi | |
10787 | archive_cmds_need_lc=yes | |
10788 | # This is similar to how AIX traditionally builds its shared libraries. | |
10789 | 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' | |
10790 | fi | |
10791 | fi | |
10792 | ;; | |
10793 | ||
10794 | amigaos*) | |
10795 | case $host_cpu in | |
10796 | powerpc) | |
10797 | # see comment about AmigaOS4 .so support | |
10798 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10799 | archive_expsym_cmds='' | |
10800 | ;; | |
10801 | m68k) | |
10802 | 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)' | |
10803 | hardcode_libdir_flag_spec='-L$libdir' | |
10804 | hardcode_minus_L=yes | |
10805 | ;; | |
10806 | esac | |
10807 | ;; | |
10808 | ||
10809 | bsdi[45]*) | |
10810 | export_dynamic_flag_spec=-rdynamic | |
10811 | ;; | |
10812 | ||
10813 | cygwin* | mingw* | pw32* | cegcc*) | |
10814 | # When not using gcc, we currently assume that we are using | |
10815 | # Microsoft Visual C++. | |
10816 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10817 | # no search path for DLLs. | |
10818 | hardcode_libdir_flag_spec=' ' | |
10819 | allow_undefined_flag=unsupported | |
10820 | # Tell ltmain to make .lib files, not .a files. | |
10821 | libext=lib | |
10822 | # Tell ltmain to make .dll files, not .so files. | |
10823 | shrext_cmds=".dll" | |
10824 | # FIXME: Setting linknames here is a bad hack. | |
10825 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10826 | # The linker will automatically build a .lib file if we build a DLL. | |
10827 | old_archive_from_new_cmds='true' | |
10828 | # FIXME: Should let the user specify the lib program. | |
10829 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10830 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10831 | enable_shared_with_static_runtimes=yes | |
10832 | ;; | |
10833 | ||
10834 | darwin* | rhapsody*) | |
10835 | ||
10836 | ||
10837 | archive_cmds_need_lc=no | |
10838 | hardcode_direct=no | |
10839 | hardcode_automatic=yes | |
10840 | hardcode_shlibpath_var=unsupported | |
10841 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10842 | 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\"`' | |
10843 | else | |
10844 | whole_archive_flag_spec='' | |
10845 | fi | |
10846 | link_all_deplibs=yes | |
10847 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10848 | case $cc_basename in | |
10849 | ifort*) _lt_dar_can_shared=yes ;; | |
10850 | *) _lt_dar_can_shared=$GCC ;; | |
10851 | esac | |
10852 | if test "$_lt_dar_can_shared" = "yes"; then | |
10853 | output_verbose_link_cmd=func_echo_all | |
10854 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10855 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10856 | 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}" | |
10857 | 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}" | |
10858 | ||
10859 | else | |
10860 | ld_shlibs=no | |
10861 | fi | |
10862 | ||
10863 | ;; | |
10864 | ||
10865 | dgux*) | |
10866 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10867 | hardcode_libdir_flag_spec='-L$libdir' | |
10868 | hardcode_shlibpath_var=no | |
10869 | ;; | |
10870 | ||
10871 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10872 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10873 | # does not break anything, and helps significantly (at the cost of a little | |
10874 | # extra space). | |
10875 | freebsd2.2*) | |
10876 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10877 | hardcode_libdir_flag_spec='-R$libdir' | |
10878 | hardcode_direct=yes | |
10879 | hardcode_shlibpath_var=no | |
10880 | ;; | |
10881 | ||
10882 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10883 | freebsd2.*) | |
10884 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10885 | hardcode_direct=yes | |
10886 | hardcode_minus_L=yes | |
10887 | hardcode_shlibpath_var=no | |
10888 | ;; | |
10889 | ||
10890 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10891 | freebsd* | dragonfly*) | |
10892 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10893 | hardcode_libdir_flag_spec='-R$libdir' | |
10894 | hardcode_direct=yes | |
10895 | hardcode_shlibpath_var=no | |
10896 | ;; | |
10897 | ||
10898 | hpux9*) | |
10899 | if test "$GCC" = yes; then | |
10900 | 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' | |
10901 | else | |
10902 | 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' | |
10903 | fi | |
10904 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10905 | hardcode_libdir_separator=: | |
10906 | hardcode_direct=yes | |
10907 | ||
10908 | # hardcode_minus_L: Not really in the search PATH, | |
10909 | # but as the default location of the library. | |
10910 | hardcode_minus_L=yes | |
10911 | export_dynamic_flag_spec='${wl}-E' | |
10912 | ;; | |
10913 | ||
10914 | hpux10*) | |
10915 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10916 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10917 | else | |
10918 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10919 | fi | |
10920 | if test "$with_gnu_ld" = no; then | |
10921 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10922 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10923 | hardcode_libdir_separator=: | |
10924 | hardcode_direct=yes | |
10925 | hardcode_direct_absolute=yes | |
10926 | export_dynamic_flag_spec='${wl}-E' | |
10927 | # hardcode_minus_L: Not really in the search PATH, | |
10928 | # but as the default location of the library. | |
10929 | hardcode_minus_L=yes | |
10930 | fi | |
10931 | ;; | |
10932 | ||
10933 | hpux11*) | |
10934 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10935 | case $host_cpu in | |
10936 | hppa*64*) | |
10937 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10938 | ;; | |
10939 | ia64*) | |
10940 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10941 | ;; | |
10942 | *) | |
10943 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10944 | ;; | |
10945 | esac | |
10946 | else | |
10947 | case $host_cpu in | |
10948 | hppa*64*) | |
10949 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10950 | ;; | |
10951 | ia64*) | |
10952 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10953 | ;; | |
10954 | *) | |
10955 | ||
10956 | # Older versions of the 11.00 compiler do not understand -b yet | |
10957 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10959 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10960 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10961 | $as_echo_n "(cached) " >&6 | |
10962 | else | |
10963 | lt_cv_prog_compiler__b=no | |
10964 | save_LDFLAGS="$LDFLAGS" | |
10965 | LDFLAGS="$LDFLAGS -b" | |
10966 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10967 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10968 | # The linker can only warn and ignore the option if not recognized | |
10969 | # So say no if there are warnings | |
10970 | if test -s conftest.err; then | |
10971 | # Append any errors to the config.log. | |
10972 | cat conftest.err 1>&5 | |
10973 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10974 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10975 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10976 | lt_cv_prog_compiler__b=yes | |
10977 | fi | |
10978 | else | |
10979 | lt_cv_prog_compiler__b=yes | |
10980 | fi | |
10981 | fi | |
10982 | $RM -r conftest* | |
10983 | LDFLAGS="$save_LDFLAGS" | |
10984 | ||
10985 | fi | |
10986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10987 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10988 | ||
10989 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10990 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10991 | else | |
10992 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10993 | fi | |
10994 | ||
10995 | ;; | |
10996 | esac | |
10997 | fi | |
10998 | if test "$with_gnu_ld" = no; then | |
10999 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11000 | hardcode_libdir_separator=: | |
11001 | ||
11002 | case $host_cpu in | |
11003 | hppa*64*|ia64*) | |
11004 | hardcode_direct=no | |
11005 | hardcode_shlibpath_var=no | |
11006 | ;; | |
11007 | *) | |
11008 | hardcode_direct=yes | |
11009 | hardcode_direct_absolute=yes | |
11010 | export_dynamic_flag_spec='${wl}-E' | |
11011 | ||
11012 | # hardcode_minus_L: Not really in the search PATH, | |
11013 | # but as the default location of the library. | |
11014 | hardcode_minus_L=yes | |
11015 | ;; | |
11016 | esac | |
11017 | fi | |
11018 | ;; | |
11019 | ||
11020 | irix5* | irix6* | nonstopux*) | |
11021 | if test "$GCC" = yes; then | |
11022 | 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' | |
11023 | # Try to use the -exported_symbol ld option, if it does not | |
11024 | # work, assume that -exports_file does not work either and | |
11025 | # implicitly export all symbols. | |
11026 | save_LDFLAGS="$LDFLAGS" | |
11027 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11029 | /* end confdefs.h. */ | |
11030 | int foo(void) {} | |
11031 | _ACEOF | |
11032 | if ac_fn_c_try_link "$LINENO"; then : | |
11033 | 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' | |
11034 | ||
11035 | fi | |
11036 | rm -f core conftest.err conftest.$ac_objext \ | |
11037 | conftest$ac_exeext conftest.$ac_ext | |
11038 | LDFLAGS="$save_LDFLAGS" | |
11039 | else | |
11040 | 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' | |
11041 | 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' | |
11042 | fi | |
11043 | archive_cmds_need_lc='no' | |
11044 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11045 | hardcode_libdir_separator=: | |
11046 | inherit_rpath=yes | |
11047 | link_all_deplibs=yes | |
11048 | ;; | |
11049 | ||
11050 | netbsd*) | |
11051 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11052 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11053 | else | |
11054 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11055 | fi | |
11056 | hardcode_libdir_flag_spec='-R$libdir' | |
11057 | hardcode_direct=yes | |
11058 | hardcode_shlibpath_var=no | |
11059 | ;; | |
11060 | ||
11061 | newsos6) | |
11062 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11063 | hardcode_direct=yes | |
11064 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11065 | hardcode_libdir_separator=: | |
11066 | hardcode_shlibpath_var=no | |
11067 | ;; | |
11068 | ||
11069 | *nto* | *qnx*) | |
11070 | ;; | |
11071 | ||
11072 | openbsd*) | |
11073 | if test -f /usr/libexec/ld.so; then | |
11074 | hardcode_direct=yes | |
11075 | hardcode_shlibpath_var=no | |
11076 | hardcode_direct_absolute=yes | |
11077 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11078 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11079 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
11080 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11081 | export_dynamic_flag_spec='${wl}-E' | |
11082 | else | |
11083 | case $host_os in | |
11084 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11085 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11086 | hardcode_libdir_flag_spec='-R$libdir' | |
11087 | ;; | |
11088 | *) | |
11089 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11090 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11091 | ;; | |
11092 | esac | |
11093 | fi | |
11094 | else | |
11095 | ld_shlibs=no | |
11096 | fi | |
11097 | ;; | |
11098 | ||
11099 | os2*) | |
11100 | hardcode_libdir_flag_spec='-L$libdir' | |
11101 | hardcode_minus_L=yes | |
11102 | allow_undefined_flag=unsupported | |
11103 | 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' | |
11104 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11105 | ;; | |
11106 | ||
11107 | osf3*) | |
11108 | if test "$GCC" = yes; then | |
11109 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11110 | 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' | |
11111 | else | |
11112 | allow_undefined_flag=' -expect_unresolved \*' | |
11113 | 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' | |
11114 | fi | |
11115 | archive_cmds_need_lc='no' | |
11116 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11117 | hardcode_libdir_separator=: | |
11118 | ;; | |
11119 | ||
11120 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11121 | if test "$GCC" = yes; then | |
11122 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11123 | 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' | |
11124 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11125 | else | |
11126 | allow_undefined_flag=' -expect_unresolved \*' | |
11127 | 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' | |
11128 | 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~ | |
11129 | $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' | |
11130 | ||
11131 | # Both c and cxx compiler support -rpath directly | |
11132 | hardcode_libdir_flag_spec='-rpath $libdir' | |
11133 | fi | |
11134 | archive_cmds_need_lc='no' | |
11135 | hardcode_libdir_separator=: | |
11136 | ;; | |
11137 | ||
11138 | solaris*) | |
11139 | no_undefined_flag=' -z defs' | |
11140 | if test "$GCC" = yes; then | |
11141 | wlarc='${wl}' | |
11142 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11143 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11144 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11145 | else | |
11146 | case `$CC -V 2>&1` in | |
11147 | *"Compilers 5.0"*) | |
11148 | wlarc='' | |
11149 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11150 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11151 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11152 | ;; | |
11153 | *) | |
11154 | wlarc='${wl}' | |
11155 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11156 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11157 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11158 | ;; | |
11159 | esac | |
11160 | fi | |
11161 | hardcode_libdir_flag_spec='-R$libdir' | |
11162 | hardcode_shlibpath_var=no | |
11163 | case $host_os in | |
11164 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11165 | *) | |
11166 | # The compiler driver will combine and reorder linker options, | |
11167 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11168 | # but is careful enough not to reorder. | |
11169 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11170 | if test "$GCC" = yes; then | |
11171 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11172 | else | |
11173 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11174 | fi | |
11175 | ;; | |
11176 | esac | |
11177 | link_all_deplibs=yes | |
11178 | ;; | |
11179 | ||
11180 | sunos4*) | |
11181 | if test "x$host_vendor" = xsequent; then | |
11182 | # Use $CC to link under sequent, because it throws in some extra .o | |
11183 | # files that make .init and .fini sections work. | |
11184 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11185 | else | |
11186 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11187 | fi | |
11188 | hardcode_libdir_flag_spec='-L$libdir' | |
11189 | hardcode_direct=yes | |
11190 | hardcode_minus_L=yes | |
11191 | hardcode_shlibpath_var=no | |
11192 | ;; | |
11193 | ||
11194 | sysv4) | |
11195 | case $host_vendor in | |
11196 | sni) | |
11197 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11198 | hardcode_direct=yes # is this really true??? | |
11199 | ;; | |
11200 | siemens) | |
11201 | ## LD is ld it makes a PLAMLIB | |
11202 | ## CC just makes a GrossModule. | |
11203 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11204 | reload_cmds='$CC -r -o $output$reload_objs' | |
11205 | hardcode_direct=no | |
11206 | ;; | |
11207 | motorola) | |
11208 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11209 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11210 | ;; | |
11211 | esac | |
11212 | runpath_var='LD_RUN_PATH' | |
11213 | hardcode_shlibpath_var=no | |
11214 | ;; | |
11215 | ||
11216 | sysv4.3*) | |
11217 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11218 | hardcode_shlibpath_var=no | |
11219 | export_dynamic_flag_spec='-Bexport' | |
11220 | ;; | |
11221 | ||
11222 | sysv4*MP*) | |
11223 | if test -d /usr/nec; then | |
11224 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11225 | hardcode_shlibpath_var=no | |
11226 | runpath_var=LD_RUN_PATH | |
11227 | hardcode_runpath_var=yes | |
11228 | ld_shlibs=yes | |
11229 | fi | |
11230 | ;; | |
11231 | ||
11232 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11233 | no_undefined_flag='${wl}-z,text' | |
11234 | archive_cmds_need_lc=no | |
11235 | hardcode_shlibpath_var=no | |
11236 | runpath_var='LD_RUN_PATH' | |
11237 | ||
11238 | if test "$GCC" = yes; then | |
11239 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11240 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11241 | else | |
11242 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11243 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11244 | fi | |
11245 | ;; | |
11246 | ||
11247 | sysv5* | sco3.2v5* | sco5v6*) | |
11248 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11249 | # link with -lc, and that would cause any symbols used from libc to | |
11250 | # always be unresolved, which means just about no library would | |
11251 | # ever link correctly. If we're not using GNU ld we use -z text | |
11252 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11253 | # as -z defs. | |
11254 | no_undefined_flag='${wl}-z,text' | |
11255 | allow_undefined_flag='${wl}-z,nodefs' | |
11256 | archive_cmds_need_lc=no | |
11257 | hardcode_shlibpath_var=no | |
11258 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11259 | hardcode_libdir_separator=':' | |
11260 | link_all_deplibs=yes | |
11261 | export_dynamic_flag_spec='${wl}-Bexport' | |
11262 | runpath_var='LD_RUN_PATH' | |
11263 | ||
11264 | if test "$GCC" = yes; then | |
11265 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11266 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11267 | else | |
11268 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11269 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11270 | fi | |
11271 | ;; | |
11272 | ||
11273 | uts4*) | |
11274 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11275 | hardcode_libdir_flag_spec='-L$libdir' | |
11276 | hardcode_shlibpath_var=no | |
11277 | ;; | |
11278 | ||
11279 | *) | |
11280 | ld_shlibs=no | |
11281 | ;; | |
11282 | esac | |
11283 | ||
11284 | if test x$host_vendor = xsni; then | |
11285 | case $host in | |
11286 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11287 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11288 | ;; | |
11289 | esac | |
11290 | fi | |
11291 | fi | |
11292 | ||
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11294 | $as_echo "$ld_shlibs" >&6; } | |
11295 | test "$ld_shlibs" = no && can_build_shared=no | |
11296 | ||
11297 | with_gnu_ld=$with_gnu_ld | |
11298 | ||
11299 | ||
11300 | ||
11301 | ||
11302 | ||
11303 | ||
11304 | ||
11305 | ||
11306 | ||
11307 | ||
11308 | ||
11309 | ||
11310 | ||
11311 | ||
11312 | ||
11313 | # | |
11314 | # Do we need to explicitly link libc? | |
11315 | # | |
11316 | case "x$archive_cmds_need_lc" in | |
11317 | x|xyes) | |
11318 | # Assume -lc should be added | |
11319 | archive_cmds_need_lc=yes | |
11320 | ||
11321 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11322 | case $archive_cmds in | |
11323 | *'~'*) | |
11324 | # FIXME: we may have to deal with multi-command sequences. | |
11325 | ;; | |
11326 | '$CC '*) | |
11327 | # Test whether the compiler implicitly links with -lc since on some | |
11328 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11329 | # to ld, don't add -lc before -lgcc. | |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11331 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11332 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11333 | $as_echo_n "(cached) " >&6 | |
11334 | else | |
11335 | $RM conftest* | |
11336 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11337 | ||
11338 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11339 | (eval $ac_compile) 2>&5 | |
11340 | ac_status=$? | |
11341 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11342 | test $ac_status = 0; } 2>conftest.err; then | |
11343 | soname=conftest | |
11344 | lib=conftest | |
11345 | libobjs=conftest.$ac_objext | |
11346 | deplibs= | |
11347 | wl=$lt_prog_compiler_wl | |
11348 | pic_flag=$lt_prog_compiler_pic | |
11349 | compiler_flags=-v | |
11350 | linker_flags=-v | |
11351 | verstring= | |
11352 | output_objdir=. | |
11353 | libname=conftest | |
11354 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11355 | allow_undefined_flag= | |
11356 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11357 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11358 | ac_status=$? | |
11359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11360 | test $ac_status = 0; } | |
11361 | then | |
11362 | lt_cv_archive_cmds_need_lc=no | |
11363 | else | |
11364 | lt_cv_archive_cmds_need_lc=yes | |
11365 | fi | |
11366 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11367 | else | |
11368 | cat conftest.err 1>&5 | |
11369 | fi | |
11370 | $RM conftest* | |
11371 | ||
11372 | fi | |
11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11374 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11375 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11376 | ;; | |
11377 | esac | |
11378 | fi | |
11379 | ;; | |
11380 | esac | |
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | ||
11435 | ||
11436 | ||
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | ||
11444 | ||
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | ||
11483 | ||
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | ||
11508 | ||
11509 | ||
11510 | ||
11511 | ||
11512 | ||
11513 | ||
11514 | ||
11515 | ||
11516 | ||
11517 | ||
11518 | ||
11519 | ||
11520 | ||
11521 | ||
11522 | ||
11523 | ||
11524 | ||
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11539 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11540 | ||
11541 | if test "$GCC" = yes; then | |
11542 | case $host_os in | |
11543 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11544 | *) lt_awk_arg="/^libraries:/" ;; | |
11545 | esac | |
11546 | case $host_os in | |
11547 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11548 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11549 | esac | |
11550 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11551 | case $lt_search_path_spec in | |
11552 | *\;*) | |
11553 | # if the path contains ";" then we assume it to be the separator | |
11554 | # otherwise default to the standard path separator (i.e. ":") - it is | |
11555 | # assumed that no part of a normal pathname contains ";" but that should | |
11556 | # okay in the real world where ";" in dirpaths is itself problematic. | |
11557 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11558 | ;; | |
11559 | *) | |
11560 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11561 | ;; | |
11562 | esac | |
11563 | # Ok, now we have the path, separated by spaces, we can step through it | |
11564 | # and add multilib dir if necessary. | |
11565 | lt_tmp_lt_search_path_spec= | |
11566 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11567 | for lt_sys_path in $lt_search_path_spec; do | |
11568 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11569 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11570 | else | |
11571 | test -d "$lt_sys_path" && \ | |
11572 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11573 | fi | |
11574 | done | |
11575 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11576 | BEGIN {RS=" "; FS="/|\n";} { | |
11577 | lt_foo=""; | |
11578 | lt_count=0; | |
11579 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
11580 | if ($lt_i != "" && $lt_i != ".") { | |
11581 | if ($lt_i == "..") { | |
11582 | lt_count++; | |
11583 | } else { | |
11584 | if (lt_count == 0) { | |
11585 | lt_foo="/" $lt_i lt_foo; | |
11586 | } else { | |
11587 | lt_count--; | |
11588 | } | |
11589 | } | |
11590 | } | |
11591 | } | |
11592 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11593 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11594 | }'` | |
11595 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
11596 | # for these hosts. | |
11597 | case $host_os in | |
11598 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11599 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11600 | esac | |
11601 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11602 | else | |
11603 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11604 | fi | |
11605 | library_names_spec= | |
11606 | libname_spec='lib$name' | |
11607 | soname_spec= | |
11608 | shrext_cmds=".so" | |
11609 | postinstall_cmds= | |
11610 | postuninstall_cmds= | |
11611 | finish_cmds= | |
11612 | finish_eval= | |
11613 | shlibpath_var= | |
11614 | shlibpath_overrides_runpath=unknown | |
11615 | version_type=none | |
11616 | dynamic_linker="$host_os ld.so" | |
11617 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11618 | need_lib_prefix=unknown | |
11619 | hardcode_into_libs=no | |
11620 | ||
11621 | # when you set need_version to no, make sure it does not cause -set_version | |
11622 | # flags to be left without arguments | |
11623 | need_version=unknown | |
11624 | ||
11625 | case $host_os in | |
11626 | aix3*) | |
11627 | version_type=linux | |
11628 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11629 | shlibpath_var=LIBPATH | |
11630 | ||
11631 | # AIX 3 has no versioning support, so we append a major version to the name. | |
11632 | soname_spec='${libname}${release}${shared_ext}$major' | |
11633 | ;; | |
11634 | ||
11635 | aix[4-9]*) | |
11636 | version_type=linux | |
11637 | need_lib_prefix=no | |
11638 | need_version=no | |
11639 | hardcode_into_libs=yes | |
11640 | if test "$host_cpu" = ia64; then | |
11641 | # AIX 5 supports IA64 | |
11642 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11643 | shlibpath_var=LD_LIBRARY_PATH | |
11644 | else | |
11645 | # With GCC up to 2.95.x, collect2 would create an import file | |
11646 | # for dependence libraries. The import file would start with | |
11647 | # the line `#! .'. This would cause the generated library to | |
11648 | # depend on `.', always an invalid library. This was fixed in | |
11649 | # development snapshots of GCC prior to 3.0. | |
11650 | case $host_os in | |
11651 | aix4 | aix4.[01] | aix4.[01].*) | |
11652 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11653 | echo ' yes ' | |
11654 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11655 | : | |
11656 | else | |
11657 | can_build_shared=no | |
11658 | fi | |
11659 | ;; | |
11660 | esac | |
11661 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11662 | # soname into executable. Probably we can add versioning support to | |
11663 | # collect2, so additional links can be useful in future. | |
11664 | if test "$aix_use_runtimelinking" = yes; then | |
11665 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11666 | # instead of lib<name>.a to let people know that these are not | |
11667 | # typical AIX shared libraries. | |
11668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11669 | else | |
11670 | # We preserve .a as extension for shared libraries through AIX4.2 | |
11671 | # and later when we are not doing run time linking. | |
11672 | library_names_spec='${libname}${release}.a $libname.a' | |
11673 | soname_spec='${libname}${release}${shared_ext}$major' | |
11674 | fi | |
11675 | shlibpath_var=LIBPATH | |
11676 | fi | |
11677 | ;; | |
11678 | ||
11679 | amigaos*) | |
11680 | case $host_cpu in | |
11681 | powerpc) | |
11682 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11683 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11685 | ;; | |
11686 | m68k) | |
11687 | library_names_spec='$libname.ixlibrary $libname.a' | |
11688 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11689 | 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' | |
11690 | ;; | |
11691 | esac | |
11692 | ;; | |
11693 | ||
11694 | beos*) | |
11695 | library_names_spec='${libname}${shared_ext}' | |
11696 | dynamic_linker="$host_os ld.so" | |
11697 | shlibpath_var=LIBRARY_PATH | |
11698 | ;; | |
11699 | ||
11700 | bsdi[45]*) | |
11701 | version_type=linux | |
11702 | need_version=no | |
11703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11704 | soname_spec='${libname}${release}${shared_ext}$major' | |
11705 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11706 | shlibpath_var=LD_LIBRARY_PATH | |
11707 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11708 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11709 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11710 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11711 | # libtool to hard-code these into programs | |
11712 | ;; | |
11713 | ||
11714 | cygwin* | mingw* | pw32* | cegcc*) | |
11715 | version_type=windows | |
11716 | shrext_cmds=".dll" | |
11717 | need_version=no | |
11718 | need_lib_prefix=no | |
11719 | ||
11720 | case $GCC,$host_os in | |
11721 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
11722 | library_names_spec='$libname.dll.a' | |
11723 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11724 | postinstall_cmds='base_file=`basename \${file}`~ | |
11725 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11726 | dldir=$destdir/`dirname \$dlpath`~ | |
11727 | test -d \$dldir || mkdir -p \$dldir~ | |
11728 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11729 | chmod a+x \$dldir/$dlname~ | |
11730 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11731 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11732 | fi' | |
11733 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11734 | dlpath=$dir/\$dldll~ | |
11735 | $RM \$dlpath' | |
11736 | shlibpath_overrides_runpath=yes | |
11737 | ||
11738 | case $host_os in | |
11739 | cygwin*) | |
11740 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11741 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11742 | ||
11743 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11744 | ;; | |
11745 | mingw* | cegcc*) | |
11746 | # MinGW DLLs use traditional 'lib' prefix | |
11747 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11748 | ;; | |
11749 | pw32*) | |
11750 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11751 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11752 | ;; | |
11753 | esac | |
11754 | ;; | |
11755 | ||
11756 | *) | |
11757 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11758 | ;; | |
11759 | esac | |
11760 | dynamic_linker='Win32 ld.exe' | |
11761 | # FIXME: first we should search . and the directory the executable is in | |
11762 | shlibpath_var=PATH | |
11763 | ;; | |
11764 | ||
11765 | darwin* | rhapsody*) | |
11766 | dynamic_linker="$host_os dyld" | |
11767 | version_type=darwin | |
11768 | need_lib_prefix=no | |
11769 | need_version=no | |
11770 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11771 | soname_spec='${libname}${release}${major}$shared_ext' | |
11772 | shlibpath_overrides_runpath=yes | |
11773 | shlibpath_var=DYLD_LIBRARY_PATH | |
11774 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11775 | ||
11776 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11777 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11778 | ;; | |
11779 | ||
11780 | dgux*) | |
11781 | version_type=linux | |
11782 | need_lib_prefix=no | |
11783 | need_version=no | |
11784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11785 | soname_spec='${libname}${release}${shared_ext}$major' | |
11786 | shlibpath_var=LD_LIBRARY_PATH | |
11787 | ;; | |
11788 | ||
11789 | freebsd* | dragonfly*) | |
11790 | # DragonFly does not have aout. When/if they implement a new | |
11791 | # versioning mechanism, adjust this. | |
11792 | if test -x /usr/bin/objformat; then | |
11793 | objformat=`/usr/bin/objformat` | |
11794 | else | |
11795 | case $host_os in | |
11796 | freebsd[23].*) objformat=aout ;; | |
11797 | *) objformat=elf ;; | |
11798 | esac | |
11799 | fi | |
11800 | version_type=freebsd-$objformat | |
11801 | case $version_type in | |
11802 | freebsd-elf*) | |
11803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11804 | need_version=no | |
11805 | need_lib_prefix=no | |
11806 | ;; | |
11807 | freebsd-*) | |
11808 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11809 | need_version=yes | |
11810 | ;; | |
11811 | esac | |
11812 | shlibpath_var=LD_LIBRARY_PATH | |
11813 | case $host_os in | |
11814 | freebsd2.*) | |
11815 | shlibpath_overrides_runpath=yes | |
11816 | ;; | |
11817 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11818 | shlibpath_overrides_runpath=yes | |
11819 | hardcode_into_libs=yes | |
11820 | ;; | |
11821 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11822 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11823 | shlibpath_overrides_runpath=no | |
11824 | hardcode_into_libs=yes | |
11825 | ;; | |
11826 | *) # from 4.6 on, and DragonFly | |
11827 | shlibpath_overrides_runpath=yes | |
11828 | hardcode_into_libs=yes | |
11829 | ;; | |
11830 | esac | |
11831 | ;; | |
11832 | ||
11833 | haiku*) | |
11834 | version_type=linux | |
11835 | need_lib_prefix=no | |
11836 | need_version=no | |
11837 | dynamic_linker="$host_os runtime_loader" | |
11838 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11839 | soname_spec='${libname}${release}${shared_ext}$major' | |
11840 | shlibpath_var=LIBRARY_PATH | |
11841 | shlibpath_overrides_runpath=yes | |
99aedb62 | 11842 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
b5689863 MF |
11843 | hardcode_into_libs=yes |
11844 | ;; | |
11845 | ||
11846 | hpux9* | hpux10* | hpux11*) | |
11847 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11848 | # link against other versions. | |
11849 | version_type=sunos | |
11850 | need_lib_prefix=no | |
11851 | need_version=no | |
11852 | case $host_cpu in | |
11853 | ia64*) | |
11854 | shrext_cmds='.so' | |
11855 | hardcode_into_libs=yes | |
11856 | dynamic_linker="$host_os dld.so" | |
11857 | shlibpath_var=LD_LIBRARY_PATH | |
11858 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11860 | soname_spec='${libname}${release}${shared_ext}$major' | |
11861 | if test "X$HPUX_IA64_MODE" = X32; then | |
11862 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11863 | else | |
11864 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11865 | fi | |
11866 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11867 | ;; | |
11868 | hppa*64*) | |
11869 | shrext_cmds='.sl' | |
11870 | hardcode_into_libs=yes | |
11871 | dynamic_linker="$host_os dld.sl" | |
11872 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11873 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11875 | soname_spec='${libname}${release}${shared_ext}$major' | |
11876 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11877 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11878 | ;; | |
11879 | *) | |
11880 | shrext_cmds='.sl' | |
11881 | dynamic_linker="$host_os dld.sl" | |
11882 | shlibpath_var=SHLIB_PATH | |
11883 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11885 | soname_spec='${libname}${release}${shared_ext}$major' | |
11886 | ;; | |
11887 | esac | |
11888 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11889 | postinstall_cmds='chmod 555 $lib' | |
11890 | # or fails outright, so override atomically: | |
11891 | install_override_mode=555 | |
11892 | ;; | |
11893 | ||
11894 | interix[3-9]*) | |
11895 | version_type=linux | |
11896 | need_lib_prefix=no | |
11897 | need_version=no | |
11898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11899 | soname_spec='${libname}${release}${shared_ext}$major' | |
11900 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11901 | shlibpath_var=LD_LIBRARY_PATH | |
11902 | shlibpath_overrides_runpath=no | |
11903 | hardcode_into_libs=yes | |
11904 | ;; | |
11905 | ||
11906 | irix5* | irix6* | nonstopux*) | |
11907 | case $host_os in | |
11908 | nonstopux*) version_type=nonstopux ;; | |
11909 | *) | |
11910 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11911 | version_type=linux | |
11912 | else | |
11913 | version_type=irix | |
11914 | fi ;; | |
11915 | esac | |
11916 | need_lib_prefix=no | |
11917 | need_version=no | |
11918 | soname_spec='${libname}${release}${shared_ext}$major' | |
11919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11920 | case $host_os in | |
11921 | irix5* | nonstopux*) | |
11922 | libsuff= shlibsuff= | |
11923 | ;; | |
11924 | *) | |
11925 | case $LD in # libtool.m4 will add one of these switches to LD | |
11926 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11927 | libsuff= shlibsuff= libmagic=32-bit;; | |
11928 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11929 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11930 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11931 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11932 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11933 | esac | |
11934 | ;; | |
11935 | esac | |
11936 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11937 | shlibpath_overrides_runpath=no | |
11938 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11939 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11940 | hardcode_into_libs=yes | |
11941 | ;; | |
11942 | ||
11943 | # No shared lib support for Linux oldld, aout, or coff. | |
11944 | linux*oldld* | linux*aout* | linux*coff*) | |
11945 | dynamic_linker=no | |
11946 | ;; | |
11947 | ||
11948 | # This must be Linux ELF. | |
11949 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11950 | version_type=linux | |
11951 | need_lib_prefix=no | |
11952 | need_version=no | |
11953 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11954 | soname_spec='${libname}${release}${shared_ext}$major' | |
11955 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11956 | shlibpath_var=LD_LIBRARY_PATH | |
11957 | shlibpath_overrides_runpath=no | |
11958 | ||
11959 | # Some binutils ld are patched to set DT_RUNPATH | |
11960 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11961 | $as_echo_n "(cached) " >&6 | |
11962 | else | |
11963 | lt_cv_shlibpath_overrides_runpath=no | |
11964 | save_LDFLAGS=$LDFLAGS | |
11965 | save_libdir=$libdir | |
11966 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11967 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11969 | /* end confdefs.h. */ | |
11970 | ||
11971 | int | |
11972 | main () | |
11973 | { | |
11974 | ||
11975 | ; | |
11976 | return 0; | |
11977 | } | |
11978 | _ACEOF | |
11979 | if ac_fn_c_try_link "$LINENO"; then : | |
11980 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11981 | lt_cv_shlibpath_overrides_runpath=yes | |
11982 | fi | |
11983 | fi | |
11984 | rm -f core conftest.err conftest.$ac_objext \ | |
11985 | conftest$ac_exeext conftest.$ac_ext | |
11986 | LDFLAGS=$save_LDFLAGS | |
11987 | libdir=$save_libdir | |
11988 | ||
11989 | fi | |
11990 | ||
11991 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11992 | ||
11993 | # This implies no fast_install, which is unacceptable. | |
11994 | # Some rework will be needed to allow for fast_install | |
11995 | # before this can be enabled. | |
11996 | hardcode_into_libs=yes | |
11997 | ||
11998 | # Append ld.so.conf contents to the search path | |
11999 | if test -f /etc/ld.so.conf; then | |
12000 | 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' ' '` | |
12001 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12002 | fi | |
12003 | ||
12004 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12005 | # powerpc, because MkLinux only supported shared libraries with the | |
12006 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12007 | # most powerpc-linux boxes support dynamic linking these days and | |
12008 | # people can always --disable-shared, the test was removed, and we | |
12009 | # assume the GNU/Linux dynamic linker is in use. | |
12010 | dynamic_linker='GNU/Linux ld.so' | |
12011 | ;; | |
12012 | ||
12013 | netbsd*) | |
12014 | version_type=sunos | |
12015 | need_lib_prefix=no | |
12016 | need_version=no | |
12017 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12019 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12020 | dynamic_linker='NetBSD (a.out) ld.so' | |
12021 | else | |
12022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12023 | soname_spec='${libname}${release}${shared_ext}$major' | |
12024 | dynamic_linker='NetBSD ld.elf_so' | |
12025 | fi | |
12026 | shlibpath_var=LD_LIBRARY_PATH | |
12027 | shlibpath_overrides_runpath=yes | |
12028 | hardcode_into_libs=yes | |
12029 | ;; | |
12030 | ||
12031 | newsos6) | |
12032 | version_type=linux | |
12033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12034 | shlibpath_var=LD_LIBRARY_PATH | |
12035 | shlibpath_overrides_runpath=yes | |
12036 | ;; | |
12037 | ||
12038 | *nto* | *qnx*) | |
12039 | version_type=qnx | |
12040 | need_lib_prefix=no | |
12041 | need_version=no | |
12042 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12043 | soname_spec='${libname}${release}${shared_ext}$major' | |
12044 | shlibpath_var=LD_LIBRARY_PATH | |
12045 | shlibpath_overrides_runpath=no | |
12046 | hardcode_into_libs=yes | |
12047 | dynamic_linker='ldqnx.so' | |
12048 | ;; | |
12049 | ||
12050 | openbsd*) | |
12051 | version_type=sunos | |
12052 | sys_lib_dlsearch_path_spec="/usr/lib" | |
12053 | need_lib_prefix=no | |
12054 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12055 | case $host_os in | |
12056 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12057 | *) need_version=no ;; | |
12058 | esac | |
12059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12060 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12061 | shlibpath_var=LD_LIBRARY_PATH | |
12062 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12063 | case $host_os in | |
12064 | openbsd2.[89] | openbsd2.[89].*) | |
12065 | shlibpath_overrides_runpath=no | |
12066 | ;; | |
12067 | *) | |
12068 | shlibpath_overrides_runpath=yes | |
12069 | ;; | |
12070 | esac | |
12071 | else | |
12072 | shlibpath_overrides_runpath=yes | |
12073 | fi | |
12074 | ;; | |
12075 | ||
12076 | os2*) | |
12077 | libname_spec='$name' | |
12078 | shrext_cmds=".dll" | |
12079 | need_lib_prefix=no | |
12080 | library_names_spec='$libname${shared_ext} $libname.a' | |
12081 | dynamic_linker='OS/2 ld.exe' | |
12082 | shlibpath_var=LIBPATH | |
12083 | ;; | |
12084 | ||
12085 | osf3* | osf4* | osf5*) | |
12086 | version_type=osf | |
12087 | need_lib_prefix=no | |
12088 | need_version=no | |
12089 | soname_spec='${libname}${release}${shared_ext}$major' | |
12090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12091 | shlibpath_var=LD_LIBRARY_PATH | |
12092 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12093 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12094 | ;; | |
12095 | ||
12096 | rdos*) | |
12097 | dynamic_linker=no | |
12098 | ;; | |
12099 | ||
12100 | solaris*) | |
12101 | version_type=linux | |
12102 | need_lib_prefix=no | |
12103 | need_version=no | |
12104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12105 | soname_spec='${libname}${release}${shared_ext}$major' | |
12106 | shlibpath_var=LD_LIBRARY_PATH | |
12107 | shlibpath_overrides_runpath=yes | |
12108 | hardcode_into_libs=yes | |
12109 | # ldd complains unless libraries are executable | |
12110 | postinstall_cmds='chmod +x $lib' | |
12111 | ;; | |
12112 | ||
12113 | sunos4*) | |
12114 | version_type=sunos | |
12115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12116 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12117 | shlibpath_var=LD_LIBRARY_PATH | |
12118 | shlibpath_overrides_runpath=yes | |
12119 | if test "$with_gnu_ld" = yes; then | |
12120 | need_lib_prefix=no | |
12121 | fi | |
12122 | need_version=yes | |
12123 | ;; | |
12124 | ||
12125 | sysv4 | sysv4.3*) | |
12126 | version_type=linux | |
12127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12128 | soname_spec='${libname}${release}${shared_ext}$major' | |
12129 | shlibpath_var=LD_LIBRARY_PATH | |
12130 | case $host_vendor in | |
12131 | sni) | |
12132 | shlibpath_overrides_runpath=no | |
12133 | need_lib_prefix=no | |
12134 | runpath_var=LD_RUN_PATH | |
12135 | ;; | |
12136 | siemens) | |
12137 | need_lib_prefix=no | |
12138 | ;; | |
12139 | motorola) | |
12140 | need_lib_prefix=no | |
12141 | need_version=no | |
12142 | shlibpath_overrides_runpath=no | |
12143 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12144 | ;; | |
12145 | esac | |
12146 | ;; | |
12147 | ||
12148 | sysv4*MP*) | |
12149 | if test -d /usr/nec ;then | |
12150 | version_type=linux | |
12151 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12152 | soname_spec='$libname${shared_ext}.$major' | |
12153 | shlibpath_var=LD_LIBRARY_PATH | |
12154 | fi | |
12155 | ;; | |
12156 | ||
12157 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12158 | version_type=freebsd-elf | |
12159 | need_lib_prefix=no | |
12160 | need_version=no | |
12161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12162 | soname_spec='${libname}${release}${shared_ext}$major' | |
12163 | shlibpath_var=LD_LIBRARY_PATH | |
12164 | shlibpath_overrides_runpath=yes | |
12165 | hardcode_into_libs=yes | |
12166 | if test "$with_gnu_ld" = yes; then | |
12167 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12168 | else | |
12169 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12170 | case $host_os in | |
12171 | sco3.2v5*) | |
12172 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12173 | ;; | |
12174 | esac | |
12175 | fi | |
12176 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12177 | ;; | |
12178 | ||
12179 | tpf*) | |
12180 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12181 | version_type=linux | |
12182 | need_lib_prefix=no | |
12183 | need_version=no | |
12184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12185 | shlibpath_var=LD_LIBRARY_PATH | |
12186 | shlibpath_overrides_runpath=no | |
12187 | hardcode_into_libs=yes | |
12188 | ;; | |
12189 | ||
12190 | uts4*) | |
12191 | version_type=linux | |
12192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12193 | soname_spec='${libname}${release}${shared_ext}$major' | |
12194 | shlibpath_var=LD_LIBRARY_PATH | |
12195 | ;; | |
12196 | ||
12197 | *) | |
12198 | dynamic_linker=no | |
12199 | ;; | |
12200 | esac | |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12202 | $as_echo "$dynamic_linker" >&6; } | |
12203 | test "$dynamic_linker" = no && can_build_shared=no | |
12204 | ||
12205 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12206 | if test "$GCC" = yes; then | |
12207 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12208 | fi | |
12209 | ||
12210 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
12211 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12212 | fi | |
12213 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12214 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12215 | fi | |
12216 | ||
12217 | ||
12218 | ||
12219 | ||
12220 | ||
12221 | ||
12222 | ||
12223 | ||
12224 | ||
12225 | ||
12226 | ||
12227 | ||
12228 | ||
12229 | ||
12230 | ||
12231 | ||
12232 | ||
12233 | ||
12234 | ||
12235 | ||
12236 | ||
12237 | ||
12238 | ||
12239 | ||
12240 | ||
12241 | ||
12242 | ||
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | ||
12266 | ||
12267 | ||
12268 | ||
12269 | ||
12270 | ||
12271 | ||
12272 | ||
12273 | ||
12274 | ||
12275 | ||
12276 | ||
12277 | ||
12278 | ||
12279 | ||
12280 | ||
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | ||
12286 | ||
12287 | ||
12288 | ||
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | ||
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12309 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12310 | hardcode_action= | |
12311 | if test -n "$hardcode_libdir_flag_spec" || | |
12312 | test -n "$runpath_var" || | |
12313 | test "X$hardcode_automatic" = "Xyes" ; then | |
12314 | ||
12315 | # We can hardcode non-existent directories. | |
12316 | if test "$hardcode_direct" != no && | |
12317 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12318 | # have to relink, otherwise we might link with an installed library | |
12319 | # when we should be linking with a yet-to-be-installed one | |
12320 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12321 | test "$hardcode_minus_L" != no; then | |
12322 | # Linking always hardcodes the temporary library directory. | |
12323 | hardcode_action=relink | |
12324 | else | |
12325 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12326 | hardcode_action=immediate | |
12327 | fi | |
12328 | else | |
12329 | # We cannot hardcode anything, or else we can only hardcode existing | |
12330 | # directories. | |
12331 | hardcode_action=unsupported | |
12332 | fi | |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12334 | $as_echo "$hardcode_action" >&6; } | |
12335 | ||
12336 | if test "$hardcode_action" = relink || | |
12337 | test "$inherit_rpath" = yes; then | |
12338 | # Fast installation is not supported | |
12339 | enable_fast_install=no | |
12340 | elif test "$shlibpath_overrides_runpath" = yes || | |
12341 | test "$enable_shared" = no; then | |
12342 | # Fast installation is not necessary | |
12343 | enable_fast_install=needless | |
12344 | fi | |
12345 | ||
12346 | ||
12347 | ||
12348 | ||
12349 | ||
12350 | ||
12351 | if test "x$enable_dlopen" != xyes; then | |
12352 | enable_dlopen=unknown | |
12353 | enable_dlopen_self=unknown | |
12354 | enable_dlopen_self_static=unknown | |
12355 | else | |
12356 | lt_cv_dlopen=no | |
12357 | lt_cv_dlopen_libs= | |
12358 | ||
12359 | case $host_os in | |
12360 | beos*) | |
12361 | lt_cv_dlopen="load_add_on" | |
12362 | lt_cv_dlopen_libs= | |
12363 | lt_cv_dlopen_self=yes | |
12364 | ;; | |
12365 | ||
12366 | mingw* | pw32* | cegcc*) | |
12367 | lt_cv_dlopen="LoadLibrary" | |
12368 | lt_cv_dlopen_libs= | |
12369 | ;; | |
12370 | ||
12371 | cygwin*) | |
12372 | lt_cv_dlopen="dlopen" | |
12373 | lt_cv_dlopen_libs= | |
12374 | ;; | |
12375 | ||
12376 | darwin*) | |
12377 | # if libdl is installed we need to link against it | |
12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12379 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12380 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12381 | $as_echo_n "(cached) " >&6 | |
12382 | else | |
12383 | ac_check_lib_save_LIBS=$LIBS | |
12384 | LIBS="-ldl $LIBS" | |
12385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12386 | /* end confdefs.h. */ | |
12387 | ||
12388 | /* Override any GCC internal prototype to avoid an error. | |
12389 | Use char because int might match the return type of a GCC | |
12390 | builtin and then its argument prototype would still apply. */ | |
12391 | #ifdef __cplusplus | |
12392 | extern "C" | |
12393 | #endif | |
12394 | char dlopen (); | |
12395 | int | |
12396 | main () | |
12397 | { | |
12398 | return dlopen (); | |
12399 | ; | |
12400 | return 0; | |
12401 | } | |
12402 | _ACEOF | |
12403 | if ac_fn_c_try_link "$LINENO"; then : | |
12404 | ac_cv_lib_dl_dlopen=yes | |
12405 | else | |
12406 | ac_cv_lib_dl_dlopen=no | |
12407 | fi | |
12408 | rm -f core conftest.err conftest.$ac_objext \ | |
12409 | conftest$ac_exeext conftest.$ac_ext | |
12410 | LIBS=$ac_check_lib_save_LIBS | |
12411 | fi | |
12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12413 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12414 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12415 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12416 | else | |
12417 | ||
12418 | lt_cv_dlopen="dyld" | |
12419 | lt_cv_dlopen_libs= | |
12420 | lt_cv_dlopen_self=yes | |
12421 | ||
12422 | fi | |
12423 | ||
12424 | ;; | |
12425 | ||
12426 | *) | |
12427 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12428 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12429 | lt_cv_dlopen="shl_load" | |
12430 | else | |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12432 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12433 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12434 | $as_echo_n "(cached) " >&6 | |
12435 | else | |
12436 | ac_check_lib_save_LIBS=$LIBS | |
12437 | LIBS="-ldld $LIBS" | |
12438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12439 | /* end confdefs.h. */ | |
12440 | ||
12441 | /* Override any GCC internal prototype to avoid an error. | |
12442 | Use char because int might match the return type of a GCC | |
12443 | builtin and then its argument prototype would still apply. */ | |
12444 | #ifdef __cplusplus | |
12445 | extern "C" | |
12446 | #endif | |
12447 | char shl_load (); | |
a48ff3ef MF |
12448 | int |
12449 | main () | |
12450 | { | |
b5689863 | 12451 | return shl_load (); |
a48ff3ef MF |
12452 | ; |
12453 | return 0; | |
12454 | } | |
12455 | _ACEOF | |
12456 | if ac_fn_c_try_link "$LINENO"; then : | |
b5689863 | 12457 | ac_cv_lib_dld_shl_load=yes |
a48ff3ef | 12458 | else |
b5689863 | 12459 | ac_cv_lib_dld_shl_load=no |
a48ff3ef MF |
12460 | fi |
12461 | rm -f core conftest.err conftest.$ac_objext \ | |
12462 | conftest$ac_exeext conftest.$ac_ext | |
b5689863 | 12463 | LIBS=$ac_check_lib_save_LIBS |
a48ff3ef | 12464 | fi |
b5689863 MF |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
12466 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12467 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12468 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12469 | else | |
12470 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12471 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
12472 | lt_cv_dlopen="dlopen" | |
12473 | else | |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12475 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12476 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12477 | $as_echo_n "(cached) " >&6 | |
12478 | else | |
12479 | ac_check_lib_save_LIBS=$LIBS | |
12480 | LIBS="-ldl $LIBS" | |
12481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12482 | /* end confdefs.h. */ | |
a48ff3ef | 12483 | |
b5689863 MF |
12484 | /* Override any GCC internal prototype to avoid an error. |
12485 | Use char because int might match the return type of a GCC | |
12486 | builtin and then its argument prototype would still apply. */ | |
12487 | #ifdef __cplusplus | |
12488 | extern "C" | |
12489 | #endif | |
12490 | char dlopen (); | |
12491 | int | |
12492 | main () | |
12493 | { | |
12494 | return dlopen (); | |
12495 | ; | |
12496 | return 0; | |
12497 | } | |
12498 | _ACEOF | |
12499 | if ac_fn_c_try_link "$LINENO"; then : | |
12500 | ac_cv_lib_dl_dlopen=yes | |
12501 | else | |
12502 | ac_cv_lib_dl_dlopen=no | |
a48ff3ef | 12503 | fi |
b5689863 MF |
12504 | rm -f core conftest.err conftest.$ac_objext \ |
12505 | conftest$ac_exeext conftest.$ac_ext | |
12506 | LIBS=$ac_check_lib_save_LIBS | |
12507 | fi | |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12509 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12510 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12511 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12512 | else | |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12514 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12515 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12516 | $as_echo_n "(cached) " >&6 | |
12517 | else | |
12518 | ac_check_lib_save_LIBS=$LIBS | |
12519 | LIBS="-lsvld $LIBS" | |
12520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12521 | /* end confdefs.h. */ | |
a48ff3ef | 12522 | |
b5689863 MF |
12523 | /* Override any GCC internal prototype to avoid an error. |
12524 | Use char because int might match the return type of a GCC | |
12525 | builtin and then its argument prototype would still apply. */ | |
12526 | #ifdef __cplusplus | |
12527 | extern "C" | |
b15c5d7a | 12528 | #endif |
b5689863 MF |
12529 | char dlopen (); |
12530 | int | |
12531 | main () | |
12532 | { | |
12533 | return dlopen (); | |
12534 | ; | |
12535 | return 0; | |
12536 | } | |
b15c5d7a | 12537 | _ACEOF |
b5689863 MF |
12538 | if ac_fn_c_try_link "$LINENO"; then : |
12539 | ac_cv_lib_svld_dlopen=yes | |
12540 | else | |
12541 | ac_cv_lib_svld_dlopen=no | |
b15c5d7a | 12542 | fi |
b5689863 MF |
12543 | rm -f core conftest.err conftest.$ac_objext \ |
12544 | conftest$ac_exeext conftest.$ac_ext | |
12545 | LIBS=$ac_check_lib_save_LIBS | |
12546 | fi | |
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12548 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12549 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12550 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12551 | else | |
12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12553 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12554 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12555 | $as_echo_n "(cached) " >&6 | |
12556 | else | |
12557 | ac_check_lib_save_LIBS=$LIBS | |
12558 | LIBS="-ldld $LIBS" | |
12559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12560 | /* end confdefs.h. */ | |
b15c5d7a | 12561 | |
b5689863 MF |
12562 | /* Override any GCC internal prototype to avoid an error. |
12563 | Use char because int might match the return type of a GCC | |
12564 | builtin and then its argument prototype would still apply. */ | |
12565 | #ifdef __cplusplus | |
12566 | extern "C" | |
12567 | #endif | |
12568 | char dld_link (); | |
12569 | int | |
12570 | main () | |
12571 | { | |
12572 | return dld_link (); | |
12573 | ; | |
12574 | return 0; | |
12575 | } | |
b15c5d7a | 12576 | _ACEOF |
b5689863 MF |
12577 | if ac_fn_c_try_link "$LINENO"; then : |
12578 | ac_cv_lib_dld_dld_link=yes | |
12579 | else | |
12580 | ac_cv_lib_dld_dld_link=no | |
12581 | fi | |
12582 | rm -f core conftest.err conftest.$ac_objext \ | |
12583 | conftest$ac_exeext conftest.$ac_ext | |
12584 | LIBS=$ac_check_lib_save_LIBS | |
12585 | fi | |
12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12587 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12588 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12589 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
12590 | fi | |
b15c5d7a MF |
12591 | |
12592 | ||
12593 | fi | |
b15c5d7a | 12594 | |
b5689863 MF |
12595 | |
12596 | fi | |
b15c5d7a MF |
12597 | |
12598 | ||
12599 | fi | |
b15c5d7a | 12600 | |
b5689863 MF |
12601 | |
12602 | fi | |
b15c5d7a MF |
12603 | |
12604 | ||
12605 | fi | |
b15c5d7a | 12606 | |
b5689863 MF |
12607 | ;; |
12608 | esac | |
b15c5d7a | 12609 | |
b5689863 MF |
12610 | if test "x$lt_cv_dlopen" != xno; then |
12611 | enable_dlopen=yes | |
12612 | else | |
12613 | enable_dlopen=no | |
12614 | fi | |
b15c5d7a | 12615 | |
b5689863 MF |
12616 | case $lt_cv_dlopen in |
12617 | dlopen) | |
12618 | save_CPPFLAGS="$CPPFLAGS" | |
12619 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
b15c5d7a | 12620 | |
b5689863 MF |
12621 | save_LDFLAGS="$LDFLAGS" |
12622 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
b15c5d7a | 12623 | |
b5689863 MF |
12624 | save_LIBS="$LIBS" |
12625 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
b15c5d7a | 12626 | |
b5689863 MF |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
12628 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12629 | if ${lt_cv_dlopen_self+:} false; then : | |
12630 | $as_echo_n "(cached) " >&6 | |
12631 | else | |
12632 | if test "$cross_compiling" = yes; then : | |
12633 | lt_cv_dlopen_self=cross | |
12634 | else | |
12635 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12636 | lt_status=$lt_dlunknown | |
12637 | cat > conftest.$ac_ext <<_LT_EOF | |
dc4e1fde | 12638 | #line 12638 "configure" |
b5689863 MF |
12639 | #include "confdefs.h" |
12640 | ||
12641 | #if HAVE_DLFCN_H | |
12642 | #include <dlfcn.h> | |
b15c5d7a | 12643 | #endif |
b15c5d7a | 12644 | |
b5689863 | 12645 | #include <stdio.h> |
b15c5d7a | 12646 | |
b5689863 MF |
12647 | #ifdef RTLD_GLOBAL |
12648 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12649 | #else | |
12650 | # ifdef DL_GLOBAL | |
12651 | # define LT_DLGLOBAL DL_GLOBAL | |
12652 | # else | |
12653 | # define LT_DLGLOBAL 0 | |
12654 | # endif | |
12655 | #endif | |
b15c5d7a | 12656 | |
b5689863 MF |
12657 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12658 | find out it does not work in some platform. */ | |
12659 | #ifndef LT_DLLAZY_OR_NOW | |
12660 | # ifdef RTLD_LAZY | |
12661 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12662 | # else | |
12663 | # ifdef DL_LAZY | |
12664 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12665 | # else | |
12666 | # ifdef RTLD_NOW | |
12667 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12668 | # else | |
12669 | # ifdef DL_NOW | |
12670 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12671 | # else | |
12672 | # define LT_DLLAZY_OR_NOW 0 | |
12673 | # endif | |
12674 | # endif | |
12675 | # endif | |
12676 | # endif | |
b15c5d7a | 12677 | #endif |
b5689863 MF |
12678 | |
12679 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12680 | correspondingly for the symbols needed. */ | |
12681 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12682 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 12683 | #endif |
b15c5d7a | 12684 | |
b5689863 MF |
12685 | void fnord () { int i=42; } |
12686 | int main () | |
12687 | { | |
12688 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12689 | int status = $lt_dlunknown; | |
b15c5d7a | 12690 | |
b5689863 MF |
12691 | if (self) |
12692 | { | |
12693 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12694 | else | |
12695 | { | |
12696 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12697 | else puts (dlerror ()); | |
12698 | } | |
12699 | /* dlclose (self); */ | |
12700 | } | |
12701 | else | |
12702 | puts (dlerror ()); | |
b15c5d7a | 12703 | |
b5689863 MF |
12704 | return status; |
12705 | } | |
12706 | _LT_EOF | |
12707 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12708 | (eval $ac_link) 2>&5 | |
12709 | ac_status=$? | |
12710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12711 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12712 | (./conftest; exit; ) >&5 2>/dev/null | |
12713 | lt_status=$? | |
12714 | case x$lt_status in | |
12715 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12716 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12717 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12718 | esac | |
12719 | else : | |
12720 | # compilation failed | |
12721 | lt_cv_dlopen_self=no | |
12722 | fi | |
b15c5d7a | 12723 | fi |
b5689863 | 12724 | rm -fr conftest* |
b15c5d7a MF |
12725 | |
12726 | ||
12727 | fi | |
b5689863 MF |
12728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12729 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12730 | ||
12731 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12732 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12734 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12735 | if ${lt_cv_dlopen_self_static+:} false; then : | |
12736 | $as_echo_n "(cached) " >&6 | |
12737 | else | |
12738 | if test "$cross_compiling" = yes; then : | |
12739 | lt_cv_dlopen_self_static=cross | |
12740 | else | |
12741 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12742 | lt_status=$lt_dlunknown | |
12743 | cat > conftest.$ac_ext <<_LT_EOF | |
dc4e1fde | 12744 | #line 12744 "configure" |
b5689863 MF |
12745 | #include "confdefs.h" |
12746 | ||
12747 | #if HAVE_DLFCN_H | |
12748 | #include <dlfcn.h> | |
b15c5d7a | 12749 | #endif |
b15c5d7a | 12750 | |
b5689863 | 12751 | #include <stdio.h> |
b15c5d7a | 12752 | |
b5689863 MF |
12753 | #ifdef RTLD_GLOBAL |
12754 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12755 | #else | |
12756 | # ifdef DL_GLOBAL | |
12757 | # define LT_DLGLOBAL DL_GLOBAL | |
12758 | # else | |
12759 | # define LT_DLGLOBAL 0 | |
12760 | # endif | |
12761 | #endif | |
b15c5d7a | 12762 | |
b5689863 MF |
12763 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12764 | find out it does not work in some platform. */ | |
12765 | #ifndef LT_DLLAZY_OR_NOW | |
12766 | # ifdef RTLD_LAZY | |
12767 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12768 | # else | |
12769 | # ifdef DL_LAZY | |
12770 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12771 | # else | |
12772 | # ifdef RTLD_NOW | |
12773 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12774 | # else | |
12775 | # ifdef DL_NOW | |
12776 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12777 | # else | |
12778 | # define LT_DLLAZY_OR_NOW 0 | |
12779 | # endif | |
12780 | # endif | |
12781 | # endif | |
12782 | # endif | |
b15c5d7a | 12783 | #endif |
b5689863 MF |
12784 | |
12785 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12786 | correspondingly for the symbols needed. */ | |
12787 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12788 | void fnord () __attribute__((visibility("default"))); | |
b15c5d7a | 12789 | #endif |
b15c5d7a | 12790 | |
b5689863 MF |
12791 | void fnord () { int i=42; } |
12792 | int main () | |
12793 | { | |
12794 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12795 | int status = $lt_dlunknown; | |
12796 | ||
12797 | if (self) | |
12798 | { | |
12799 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12800 | else | |
12801 | { | |
12802 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12803 | else puts (dlerror ()); | |
12804 | } | |
12805 | /* dlclose (self); */ | |
12806 | } | |
12807 | else | |
12808 | puts (dlerror ()); | |
12809 | ||
12810 | return status; | |
12811 | } | |
12812 | _LT_EOF | |
12813 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12814 | (eval $ac_link) 2>&5 | |
12815 | ac_status=$? | |
12816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12817 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12818 | (./conftest; exit; ) >&5 2>/dev/null | |
12819 | lt_status=$? | |
12820 | case x$lt_status in | |
12821 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12822 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12823 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12824 | esac | |
12825 | else : | |
12826 | # compilation failed | |
12827 | lt_cv_dlopen_self_static=no | |
12828 | fi | |
12829 | fi | |
12830 | rm -fr conftest* | |
b15c5d7a MF |
12831 | |
12832 | ||
12833 | fi | |
b5689863 MF |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12835 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12836 | fi | |
b15c5d7a | 12837 | |
b5689863 MF |
12838 | CPPFLAGS="$save_CPPFLAGS" |
12839 | LDFLAGS="$save_LDFLAGS" | |
12840 | LIBS="$save_LIBS" | |
12841 | ;; | |
12842 | esac | |
b15c5d7a | 12843 | |
b5689863 MF |
12844 | case $lt_cv_dlopen_self in |
12845 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12846 | *) enable_dlopen_self=unknown ;; | |
12847 | esac | |
b15c5d7a | 12848 | |
b5689863 MF |
12849 | case $lt_cv_dlopen_self_static in |
12850 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12851 | *) enable_dlopen_self_static=unknown ;; | |
12852 | esac | |
b15c5d7a | 12853 | fi |
b15c5d7a | 12854 | |
b15c5d7a MF |
12855 | |
12856 | ||
b15c5d7a MF |
12857 | |
12858 | ||
b15c5d7a | 12859 | |
b15c5d7a MF |
12860 | |
12861 | ||
b15c5d7a | 12862 | |
b15c5d7a | 12863 | |
b15c5d7a | 12864 | |
b15c5d7a MF |
12865 | |
12866 | ||
b15c5d7a MF |
12867 | |
12868 | ||
a48ff3ef | 12869 | |
a48ff3ef | 12870 | |
b5689863 MF |
12871 | striplib= |
12872 | old_striplib= | |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12874 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12875 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12876 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12877 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12879 | $as_echo "yes" >&6; } | |
a48ff3ef | 12880 | else |
b5689863 MF |
12881 | # FIXME - insert some real tests, host_os isn't really good enough |
12882 | case $host_os in | |
12883 | darwin*) | |
12884 | if test -n "$STRIP" ; then | |
12885 | striplib="$STRIP -x" | |
12886 | old_striplib="$STRIP -S" | |
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12888 | $as_echo "yes" >&6; } | |
12889 | else | |
12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12891 | $as_echo "no" >&6; } | |
12892 | fi | |
12893 | ;; | |
12894 | *) | |
12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12896 | $as_echo "no" >&6; } | |
12897 | ;; | |
12898 | esac | |
a48ff3ef MF |
12899 | fi |
12900 | ||
a48ff3ef | 12901 | |
a48ff3ef | 12902 | |
a48ff3ef | 12903 | |
a48ff3ef MF |
12904 | |
12905 | ||
a48ff3ef | 12906 | |
a48ff3ef | 12907 | |
a48ff3ef | 12908 | |
a48ff3ef | 12909 | |
a48ff3ef | 12910 | |
a48ff3ef | 12911 | |
b5689863 MF |
12912 | # Report which library types will actually be built |
12913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12914 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12916 | $as_echo "$can_build_shared" >&6; } | |
a48ff3ef | 12917 | |
b5689863 MF |
12918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12919 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12920 | test "$can_build_shared" = "no" && enable_shared=no | |
a48ff3ef | 12921 | |
b5689863 MF |
12922 | # On AIX, shared libraries and static libraries use the same namespace, and |
12923 | # are all built from PIC. | |
12924 | case $host_os in | |
12925 | aix3*) | |
12926 | test "$enable_shared" = yes && enable_static=no | |
12927 | if test -n "$RANLIB"; then | |
12928 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12929 | postinstall_cmds='$RANLIB $lib' | |
12930 | fi | |
12931 | ;; | |
a48ff3ef | 12932 | |
b5689863 MF |
12933 | aix[4-9]*) |
12934 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12935 | test "$enable_shared" = yes && enable_static=no | |
12936 | fi | |
12937 | ;; | |
12938 | esac | |
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12940 | $as_echo "$enable_shared" >&6; } | |
12941 | ||
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12943 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12944 | # Make sure either enable_shared or enable_static is yes. | |
12945 | test "$enable_shared" = yes || enable_static=yes | |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12947 | $as_echo "$enable_static" >&6; } | |
a48ff3ef | 12948 | |
a48ff3ef | 12949 | |
a48ff3ef | 12950 | |
b15c5d7a | 12951 | |
b15c5d7a | 12952 | fi |
b5689863 MF |
12953 | ac_ext=c |
12954 | ac_cpp='$CPP $CPPFLAGS' | |
12955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b15c5d7a | 12958 | |
b5689863 | 12959 | CC="$lt_save_CC" |
b15c5d7a MF |
12960 | |
12961 | ||
a48ff3ef | 12962 | |
a48ff3ef | 12963 | |
a48ff3ef | 12964 | |
a48ff3ef | 12965 | |
a48ff3ef | 12966 | |
a48ff3ef | 12967 | |
a48ff3ef | 12968 | |
a48ff3ef MF |
12969 | |
12970 | ||
a48ff3ef | 12971 | |
b5689863 MF |
12972 | |
12973 | ac_config_commands="$ac_config_commands libtool" | |
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | # Only expand once: | |
12979 | ||
12980 | ||
a48ff3ef | 12981 | |
b15c5d7a | 12982 | |
07490bf8 MF |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5 |
12984 | $as_echo_n "checking for bind in -lsocket... " >&6; } | |
12985 | if ${ac_cv_lib_socket_bind+:} false; then : | |
12986 | $as_echo_n "(cached) " >&6 | |
12987 | else | |
12988 | ac_check_lib_save_LIBS=$LIBS | |
12989 | LIBS="-lsocket $LIBS" | |
12990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12991 | /* end confdefs.h. */ | |
12992 | ||
12993 | /* Override any GCC internal prototype to avoid an error. | |
12994 | Use char because int might match the return type of a GCC | |
12995 | builtin and then its argument prototype would still apply. */ | |
12996 | #ifdef __cplusplus | |
12997 | extern "C" | |
12998 | #endif | |
12999 | char bind (); | |
13000 | int | |
13001 | main () | |
13002 | { | |
13003 | return bind (); | |
13004 | ; | |
13005 | return 0; | |
13006 | } | |
13007 | _ACEOF | |
13008 | if ac_fn_c_try_link "$LINENO"; then : | |
13009 | ac_cv_lib_socket_bind=yes | |
13010 | else | |
13011 | ac_cv_lib_socket_bind=no | |
13012 | fi | |
13013 | rm -f core conftest.err conftest.$ac_objext \ | |
13014 | conftest$ac_exeext conftest.$ac_ext | |
13015 | LIBS=$ac_check_lib_save_LIBS | |
13016 | fi | |
13017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5 | |
13018 | $as_echo "$ac_cv_lib_socket_bind" >&6; } | |
13019 | if test "x$ac_cv_lib_socket_bind" = xyes; then : | |
13020 | cat >>confdefs.h <<_ACEOF | |
13021 | #define HAVE_LIBSOCKET 1 | |
13022 | _ACEOF | |
13023 | ||
13024 | LIBS="-lsocket $LIBS" | |
13025 | ||
13026 | fi | |
13027 | ||
13028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | |
13029 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
13030 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : | |
13031 | $as_echo_n "(cached) " >&6 | |
13032 | else | |
13033 | ac_check_lib_save_LIBS=$LIBS | |
13034 | LIBS="-lnsl $LIBS" | |
13035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13036 | /* end confdefs.h. */ | |
13037 | ||
13038 | /* Override any GCC internal prototype to avoid an error. | |
13039 | Use char because int might match the return type of a GCC | |
13040 | builtin and then its argument prototype would still apply. */ | |
13041 | #ifdef __cplusplus | |
13042 | extern "C" | |
13043 | #endif | |
13044 | char gethostbyname (); | |
13045 | int | |
13046 | main () | |
13047 | { | |
13048 | return gethostbyname (); | |
13049 | ; | |
13050 | return 0; | |
13051 | } | |
13052 | _ACEOF | |
13053 | if ac_fn_c_try_link "$LINENO"; then : | |
13054 | ac_cv_lib_nsl_gethostbyname=yes | |
13055 | else | |
13056 | ac_cv_lib_nsl_gethostbyname=no | |
13057 | fi | |
13058 | rm -f core conftest.err conftest.$ac_objext \ | |
13059 | conftest$ac_exeext conftest.$ac_ext | |
13060 | LIBS=$ac_check_lib_save_LIBS | |
13061 | fi | |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
13063 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
13064 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : | |
13065 | cat >>confdefs.h <<_ACEOF | |
13066 | #define HAVE_LIBNSL 1 | |
13067 | _ACEOF | |
13068 | ||
13069 | LIBS="-lnsl $LIBS" | |
13070 | ||
13071 | fi | |
13072 | ||
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5 | |
13074 | $as_echo_n "checking for fabs in -lm... " >&6; } | |
13075 | if ${ac_cv_lib_m_fabs+:} false; then : | |
13076 | $as_echo_n "(cached) " >&6 | |
13077 | else | |
13078 | ac_check_lib_save_LIBS=$LIBS | |
13079 | LIBS="-lm $LIBS" | |
13080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13081 | /* end confdefs.h. */ | |
13082 | ||
13083 | /* Override any GCC internal prototype to avoid an error. | |
13084 | Use char because int might match the return type of a GCC | |
13085 | builtin and then its argument prototype would still apply. */ | |
13086 | #ifdef __cplusplus | |
13087 | extern "C" | |
13088 | #endif | |
13089 | char fabs (); | |
13090 | int | |
13091 | main () | |
13092 | { | |
13093 | return fabs (); | |
13094 | ; | |
13095 | return 0; | |
13096 | } | |
13097 | _ACEOF | |
13098 | if ac_fn_c_try_link "$LINENO"; then : | |
13099 | ac_cv_lib_m_fabs=yes | |
13100 | else | |
13101 | ac_cv_lib_m_fabs=no | |
13102 | fi | |
13103 | rm -f core conftest.err conftest.$ac_objext \ | |
13104 | conftest$ac_exeext conftest.$ac_ext | |
13105 | LIBS=$ac_check_lib_save_LIBS | |
13106 | fi | |
13107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5 | |
13108 | $as_echo "$ac_cv_lib_m_fabs" >&6; } | |
13109 | if test "x$ac_cv_lib_m_fabs" = xyes; then : | |
13110 | cat >>confdefs.h <<_ACEOF | |
13111 | #define HAVE_LIBM 1 | |
13112 | _ACEOF | |
13113 | ||
13114 | LIBS="-lm $LIBS" | |
13115 | ||
13116 | fi | |
13117 | ||
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5 | |
13119 | $as_echo_n "checking for log2 in -lm... " >&6; } | |
13120 | if ${ac_cv_lib_m_log2+:} false; then : | |
13121 | $as_echo_n "(cached) " >&6 | |
13122 | else | |
13123 | ac_check_lib_save_LIBS=$LIBS | |
13124 | LIBS="-lm $LIBS" | |
13125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13126 | /* end confdefs.h. */ | |
13127 | ||
13128 | /* Override any GCC internal prototype to avoid an error. | |
13129 | Use char because int might match the return type of a GCC | |
13130 | builtin and then its argument prototype would still apply. */ | |
13131 | #ifdef __cplusplus | |
13132 | extern "C" | |
13133 | #endif | |
13134 | char log2 (); | |
13135 | int | |
13136 | main () | |
13137 | { | |
13138 | return log2 (); | |
13139 | ; | |
13140 | return 0; | |
13141 | } | |
13142 | _ACEOF | |
13143 | if ac_fn_c_try_link "$LINENO"; then : | |
13144 | ac_cv_lib_m_log2=yes | |
13145 | else | |
13146 | ac_cv_lib_m_log2=no | |
13147 | fi | |
13148 | rm -f core conftest.err conftest.$ac_objext \ | |
13149 | conftest$ac_exeext conftest.$ac_ext | |
13150 | LIBS=$ac_check_lib_save_LIBS | |
13151 | fi | |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5 | |
13153 | $as_echo "$ac_cv_lib_m_log2" >&6; } | |
13154 | if test "x$ac_cv_lib_m_log2" = xyes; then : | |
13155 | cat >>confdefs.h <<_ACEOF | |
13156 | #define HAVE_LIBM 1 | |
13157 | _ACEOF | |
13158 | ||
13159 | LIBS="-lm $LIBS" | |
13160 | ||
13161 | fi | |
13162 | ||
13163 | ||
f050cfdd MF |
13164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
13165 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
13166 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
13167 | $as_echo_n "(cached) " >&6 | |
13168 | else | |
13169 | ac_check_lib_save_LIBS=$LIBS | |
13170 | LIBS="-ldl $LIBS" | |
13171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13172 | /* end confdefs.h. */ | |
13173 | ||
13174 | /* Override any GCC internal prototype to avoid an error. | |
13175 | Use char because int might match the return type of a GCC | |
13176 | builtin and then its argument prototype would still apply. */ | |
13177 | #ifdef __cplusplus | |
13178 | extern "C" | |
13179 | #endif | |
13180 | char dlopen (); | |
13181 | int | |
13182 | main () | |
13183 | { | |
13184 | return dlopen (); | |
13185 | ; | |
13186 | return 0; | |
13187 | } | |
13188 | _ACEOF | |
13189 | if ac_fn_c_try_link "$LINENO"; then : | |
13190 | ac_cv_lib_dl_dlopen=yes | |
13191 | else | |
13192 | ac_cv_lib_dl_dlopen=no | |
13193 | fi | |
13194 | rm -f core conftest.err conftest.$ac_objext \ | |
13195 | conftest$ac_exeext conftest.$ac_ext | |
13196 | LIBS=$ac_check_lib_save_LIBS | |
13197 | fi | |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
13199 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
13200 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
13201 | cat >>confdefs.h <<_ACEOF | |
13202 | #define HAVE_LIBDL 1 | |
13203 | _ACEOF | |
13204 | ||
13205 | LIBS="-ldl $LIBS" | |
13206 | ||
13207 | fi | |
13208 | ||
13209 | if test "${ac_cv_lib_dl_dlopen}" = "yes"; then | |
13210 | ||
13211 | pkg_failed=no | |
13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5 | |
13213 | $as_echo_n "checking for sdl2... " >&6; } | |
13214 | ||
13215 | if test -n "$SDL_CFLAGS"; then | |
13216 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13217 | elif test -n "$PKG_CONFIG"; then | |
13218 | if test -n "$PKG_CONFIG" && \ | |
13219 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13220 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13221 | ac_status=$? | |
13222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13223 | test $ac_status = 0; }; then | |
13224 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null` | |
13225 | test "x$?" != "x0" && pkg_failed=yes | |
13226 | else | |
13227 | pkg_failed=yes | |
13228 | fi | |
13229 | else | |
13230 | pkg_failed=untried | |
13231 | fi | |
13232 | if test -n "$SDL_LIBS"; then | |
13233 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13234 | elif test -n "$PKG_CONFIG"; then | |
13235 | if test -n "$PKG_CONFIG" && \ | |
13236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5 | |
13237 | ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5 | |
13238 | ac_status=$? | |
13239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13240 | test $ac_status = 0; }; then | |
13241 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null` | |
13242 | test "x$?" != "x0" && pkg_failed=yes | |
13243 | else | |
13244 | pkg_failed=yes | |
13245 | fi | |
13246 | else | |
13247 | pkg_failed=untried | |
13248 | fi | |
13249 | ||
13250 | if test $pkg_failed = no; then | |
13251 | pkg_save_LDFLAGS="$LDFLAGS" | |
13252 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13254 | /* end confdefs.h. */ | |
13255 | ||
13256 | int | |
13257 | main () | |
13258 | { | |
13259 | ||
13260 | ; | |
13261 | return 0; | |
13262 | } | |
13263 | _ACEOF | |
13264 | if ac_fn_c_try_link "$LINENO"; then : | |
13265 | ||
13266 | else | |
13267 | pkg_failed=yes | |
13268 | fi | |
13269 | rm -f core conftest.err conftest.$ac_objext \ | |
13270 | conftest$ac_exeext conftest.$ac_ext | |
13271 | LDFLAGS=$pkg_save_LDFLAGS | |
13272 | fi | |
13273 | ||
13274 | ||
13275 | ||
13276 | if test $pkg_failed = yes; then | |
13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13278 | $as_echo "no" >&6; } | |
13279 | ||
13280 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13281 | _pkg_short_errors_supported=yes | |
13282 | else | |
13283 | _pkg_short_errors_supported=no | |
13284 | fi | |
13285 | if test $_pkg_short_errors_supported = yes; then | |
13286 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1` | |
13287 | else | |
13288 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1` | |
13289 | fi | |
13290 | # Put the nasty error message in config.log where it belongs | |
13291 | echo "$SDL_PKG_ERRORS" >&5 | |
13292 | ||
13293 | ||
b15c5d7a | 13294 | |
d57b6533 MF |
13295 | pkg_failed=no |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13297 | $as_echo_n "checking for sdl... " >&6; } | |
13298 | ||
13299 | if test -n "$SDL_CFLAGS"; then | |
13300 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13301 | elif test -n "$PKG_CONFIG"; then | |
13302 | if test -n "$PKG_CONFIG" && \ | |
13303 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13304 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13305 | ac_status=$? | |
13306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13307 | test $ac_status = 0; }; then | |
13308 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
13309 | test "x$?" != "x0" && pkg_failed=yes | |
13310 | else | |
13311 | pkg_failed=yes | |
13312 | fi | |
13313 | else | |
13314 | pkg_failed=untried | |
13315 | fi | |
13316 | if test -n "$SDL_LIBS"; then | |
13317 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13318 | elif test -n "$PKG_CONFIG"; then | |
13319 | if test -n "$PKG_CONFIG" && \ | |
13320 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13321 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13322 | ac_status=$? | |
13323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13324 | test $ac_status = 0; }; then | |
13325 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
13326 | test "x$?" != "x0" && pkg_failed=yes | |
13327 | else | |
13328 | pkg_failed=yes | |
13329 | fi | |
13330 | else | |
13331 | pkg_failed=untried | |
13332 | fi | |
13333 | ||
13334 | if test $pkg_failed = no; then | |
13335 | pkg_save_LDFLAGS="$LDFLAGS" | |
13336 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13338 | /* end confdefs.h. */ | |
13339 | ||
13340 | int | |
13341 | main () | |
13342 | { | |
13343 | ||
13344 | ; | |
13345 | return 0; | |
13346 | } | |
13347 | _ACEOF | |
13348 | if ac_fn_c_try_link "$LINENO"; then : | |
13349 | ||
13350 | else | |
13351 | pkg_failed=yes | |
13352 | fi | |
13353 | rm -f core conftest.err conftest.$ac_objext \ | |
13354 | conftest$ac_exeext conftest.$ac_ext | |
13355 | LDFLAGS=$pkg_save_LDFLAGS | |
13356 | fi | |
13357 | ||
13358 | ||
13359 | ||
13360 | if test $pkg_failed = yes; then | |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13362 | $as_echo "no" >&6; } | |
13363 | ||
13364 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13365 | _pkg_short_errors_supported=yes | |
13366 | else | |
13367 | _pkg_short_errors_supported=no | |
13368 | fi | |
13369 | if test $_pkg_short_errors_supported = yes; then | |
13370 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
13371 | else | |
13372 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
13373 | fi | |
13374 | # Put the nasty error message in config.log where it belongs | |
13375 | echo "$SDL_PKG_ERRORS" >&5 | |
13376 | ||
13377 | : | |
13378 | elif test $pkg_failed = untried; then | |
13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13380 | $as_echo "no" >&6; } | |
13381 | : | |
13382 | else | |
13383 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13384 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13386 | $as_echo "yes" >&6; } | |
f050cfdd MF |
13387 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" |
13388 | SDL_LIBS="-ldl" | |
13389 | ||
13390 | fi | |
13391 | ||
13392 | elif test $pkg_failed = untried; then | |
13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13394 | $as_echo "no" >&6; } | |
13395 | ||
13396 | ||
13397 | pkg_failed=no | |
13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
13399 | $as_echo_n "checking for sdl... " >&6; } | |
13400 | ||
13401 | if test -n "$SDL_CFLAGS"; then | |
13402 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
13403 | elif test -n "$PKG_CONFIG"; then | |
13404 | if test -n "$PKG_CONFIG" && \ | |
13405 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13406 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13407 | ac_status=$? | |
13408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13409 | test $ac_status = 0; }; then | |
13410 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
13411 | test "x$?" != "x0" && pkg_failed=yes | |
d57b6533 | 13412 | else |
f050cfdd MF |
13413 | pkg_failed=yes |
13414 | fi | |
13415 | else | |
13416 | pkg_failed=untried | |
13417 | fi | |
13418 | if test -n "$SDL_LIBS"; then | |
13419 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
13420 | elif test -n "$PKG_CONFIG"; then | |
13421 | if test -n "$PKG_CONFIG" && \ | |
13422 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
13423 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
13424 | ac_status=$? | |
13425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13426 | test $ac_status = 0; }; then | |
13427 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
13428 | test "x$?" != "x0" && pkg_failed=yes | |
13429 | else | |
13430 | pkg_failed=yes | |
13431 | fi | |
13432 | else | |
13433 | pkg_failed=untried | |
13434 | fi | |
13435 | ||
13436 | if test $pkg_failed = no; then | |
13437 | pkg_save_LDFLAGS="$LDFLAGS" | |
13438 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
13439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d57b6533 MF |
13440 | /* end confdefs.h. */ |
13441 | ||
d57b6533 MF |
13442 | int |
13443 | main () | |
13444 | { | |
f050cfdd | 13445 | |
d57b6533 MF |
13446 | ; |
13447 | return 0; | |
13448 | } | |
13449 | _ACEOF | |
13450 | if ac_fn_c_try_link "$LINENO"; then : | |
f050cfdd | 13451 | |
d57b6533 | 13452 | else |
f050cfdd | 13453 | pkg_failed=yes |
d57b6533 MF |
13454 | fi |
13455 | rm -f core conftest.err conftest.$ac_objext \ | |
13456 | conftest$ac_exeext conftest.$ac_ext | |
f050cfdd | 13457 | LDFLAGS=$pkg_save_LDFLAGS |
d57b6533 | 13458 | fi |
d57b6533 | 13459 | |
f050cfdd MF |
13460 | |
13461 | ||
13462 | if test $pkg_failed = yes; then | |
13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13464 | $as_echo "no" >&6; } | |
13465 | ||
13466 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13467 | _pkg_short_errors_supported=yes | |
d57b6533 | 13468 | else |
f050cfdd | 13469 | _pkg_short_errors_supported=no |
d57b6533 | 13470 | fi |
f050cfdd MF |
13471 | if test $_pkg_short_errors_supported = yes; then |
13472 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
13473 | else | |
13474 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
13475 | fi | |
13476 | # Put the nasty error message in config.log where it belongs | |
13477 | echo "$SDL_PKG_ERRORS" >&5 | |
13478 | ||
13479 | : | |
13480 | elif test $pkg_failed = untried; then | |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13482 | $as_echo "no" >&6; } | |
13483 | : | |
13484 | else | |
13485 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13486 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13488 | $as_echo "yes" >&6; } | |
13489 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1" | |
13490 | SDL_LIBS="-ldl" | |
d57b6533 | 13491 | |
f050cfdd MF |
13492 | fi |
13493 | ||
13494 | else | |
13495 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
13496 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13498 | $as_echo "yes" >&6; } | |
13499 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2" | |
13500 | SDL_LIBS="-ldl" | |
d57b6533 MF |
13501 | |
13502 | fi | |
f050cfdd MF |
13503 | else |
13504 | SDL_CFLAGS= | |
13505 | SDL_LIBS= | |
13506 | fi | |
d57b6533 MF |
13507 | |
13508 | ||
13509 | ||
5d0b3088 MF |
13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5 |
13511 | $as_echo_n "checking for cygwin... " >&6; } | |
13512 | if ${sim_cv_os_cygwin+:} false; then : | |
13513 | $as_echo_n "(cached) " >&6 | |
13514 | else | |
13515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13516 | /* end confdefs.h. */ | |
13517 | ||
13518 | #ifdef __CYGWIN__ | |
13519 | lose | |
13520 | #endif | |
13521 | _ACEOF | |
13522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13523 | $EGREP "lose" >/dev/null 2>&1; then : | |
13524 | sim_cv_os_cygwin=yes | |
13525 | else | |
13526 | sim_cv_os_cygwin=no | |
13527 | fi | |
13528 | rm -f conftest* | |
13529 | ||
13530 | fi | |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5 | |
13532 | $as_echo "$sim_cv_os_cygwin" >&6; } | |
13533 | ||
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
13535 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
13536 | if ${ac_cv_search_tgetent+:} false; then : | |
13537 | $as_echo_n "(cached) " >&6 | |
13538 | else | |
13539 | ac_func_search_save_LIBS=$LIBS | |
13540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13541 | /* end confdefs.h. */ | |
13542 | ||
13543 | /* Override any GCC internal prototype to avoid an error. | |
13544 | Use char because int might match the return type of a GCC | |
13545 | builtin and then its argument prototype would still apply. */ | |
13546 | #ifdef __cplusplus | |
13547 | extern "C" | |
13548 | #endif | |
13549 | char tgetent (); | |
13550 | int | |
13551 | main () | |
13552 | { | |
13553 | return tgetent (); | |
13554 | ; | |
13555 | return 0; | |
13556 | } | |
13557 | _ACEOF | |
13558 | for ac_lib in '' termcap tinfo curses ncurses; do | |
13559 | if test -z "$ac_lib"; then | |
13560 | ac_res="none required" | |
13561 | else | |
13562 | ac_res=-l$ac_lib | |
13563 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13564 | fi | |
13565 | if ac_fn_c_try_link "$LINENO"; then : | |
13566 | ac_cv_search_tgetent=$ac_res | |
13567 | fi | |
13568 | rm -f core conftest.err conftest.$ac_objext \ | |
13569 | conftest$ac_exeext | |
13570 | if ${ac_cv_search_tgetent+:} false; then : | |
13571 | break | |
13572 | fi | |
13573 | done | |
13574 | if ${ac_cv_search_tgetent+:} false; then : | |
13575 | ||
13576 | else | |
13577 | ac_cv_search_tgetent=no | |
13578 | fi | |
13579 | rm conftest.$ac_ext | |
13580 | LIBS=$ac_func_search_save_LIBS | |
13581 | fi | |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
13583 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
13584 | ac_res=$ac_cv_search_tgetent | |
13585 | if test "$ac_res" != no; then : | |
13586 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
13587 | TERMCAP_LIB=$ac_cv_search_tgetent | |
13588 | else | |
13589 | TERMCAP_LIB="" | |
13590 | fi | |
13591 | ||
13592 | if test x$sim_cv_os_cygwin = xyes; then | |
13593 | TERMCAP_LIB="${TERMCAP_LIB} -luser32" | |
13594 | fi | |
13595 | ||
13596 | ||
13597 | if test -r ../readline/Makefile; then | |
13598 | READLINE_LIB=../../readline/readline/libreadline.a | |
13599 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
13600 | else | |
13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 | |
13602 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
13603 | if ${ac_cv_lib_readline_readline+:} false; then : | |
13604 | $as_echo_n "(cached) " >&6 | |
13605 | else | |
13606 | ac_check_lib_save_LIBS=$LIBS | |
13607 | LIBS="-lreadline $TERMCAP_LIB $LIBS" | |
13608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13609 | /* end confdefs.h. */ | |
13610 | ||
13611 | /* Override any GCC internal prototype to avoid an error. | |
13612 | Use char because int might match the return type of a GCC | |
13613 | builtin and then its argument prototype would still apply. */ | |
13614 | #ifdef __cplusplus | |
13615 | extern "C" | |
13616 | #endif | |
13617 | char readline (); | |
13618 | int | |
13619 | main () | |
13620 | { | |
13621 | return readline (); | |
13622 | ; | |
13623 | return 0; | |
13624 | } | |
13625 | _ACEOF | |
13626 | if ac_fn_c_try_link "$LINENO"; then : | |
13627 | ac_cv_lib_readline_readline=yes | |
13628 | else | |
13629 | ac_cv_lib_readline_readline=no | |
13630 | fi | |
13631 | rm -f core conftest.err conftest.$ac_objext \ | |
13632 | conftest$ac_exeext conftest.$ac_ext | |
13633 | LIBS=$ac_check_lib_save_LIBS | |
13634 | fi | |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
13636 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
13637 | if test "x$ac_cv_lib_readline_readline" = xyes; then : | |
13638 | READLINE_LIB=-lreadline | |
13639 | else | |
13640 | as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5 | |
13641 | fi | |
13642 | ||
13643 | READLINE_CFLAGS= | |
13644 | fi | |
13645 | ||
13646 | ||
13647 | ||
d57b6533 | 13648 | |
b15c5d7a MF |
13649 | |
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
13651 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13652 | # Check whether --enable-maintainer-mode was given. | |
13653 | if test "${enable_maintainer_mode+set}" = set; then : | |
13654 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
13655 | else | |
13656 | USE_MAINTAINER_MODE=no | |
13657 | fi | |
13658 | ||
13659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13660 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
13661 | if test $USE_MAINTAINER_MODE = yes; then | |
13662 | MAINTAINER_MODE_TRUE= | |
13663 | MAINTAINER_MODE_FALSE='#' | |
13664 | else | |
13665 | MAINTAINER_MODE_TRUE='#' | |
13666 | MAINTAINER_MODE_FALSE= | |
13667 | fi | |
13668 | ||
13669 | MAINT=$MAINTAINER_MODE_TRUE | |
13670 | ||
13671 | ||
13672 | am__api_version='1.15' | |
13673 | ||
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
13675 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
13676 | # Reject unsafe characters in $srcdir or the absolute working directory | |
13677 | # name. Accept space and tab only in the latter. | |
13678 | am_lf=' | |
13679 | ' | |
13680 | case `pwd` in | |
13681 | *[\\\"\#\$\&\'\`$am_lf]*) | |
13682 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
13683 | esac | |
13684 | case $srcdir in | |
13685 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
13686 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
13687 | esac | |
13688 | ||
13689 | # Do 'set' in a subshell so we don't clobber the current shell's | |
13690 | # arguments. Must try -L first in case configure is actually a | |
13691 | # symlink; some systems play weird games with the mod time of symlinks | |
13692 | # (eg FreeBSD returns the mod time of the symlink's containing | |
13693 | # directory). | |
13694 | if ( | |
13695 | am_has_slept=no | |
13696 | for am_try in 1 2; do | |
13697 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
13698 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
13699 | if test "$*" = "X"; then | |
13700 | # -L didn't work. | |
13701 | set X `ls -t "$srcdir/configure" conftest.file` | |
13702 | fi | |
13703 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
13704 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
13705 | ||
13706 | # If neither matched, then we have a broken ls. This can happen | |
13707 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
13708 | # broken ls alias from the environment. This has actually | |
13709 | # happened. Such a system could not be considered "sane". | |
13710 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
13711 | alias in your environment" "$LINENO" 5 | |
13712 | fi | |
13713 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
13714 | break | |
13715 | fi | |
13716 | # Just in case. | |
13717 | sleep 1 | |
13718 | am_has_slept=yes | |
13719 | done | |
13720 | test "$2" = conftest.file | |
13721 | ) | |
13722 | then | |
13723 | # Ok. | |
13724 | : | |
13725 | else | |
13726 | as_fn_error $? "newly created file is older than distributed files! | |
13727 | Check your system clock" "$LINENO" 5 | |
13728 | fi | |
13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13730 | $as_echo "yes" >&6; } | |
13731 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
13732 | # generated files are strictly newer. | |
13733 | am_sleep_pid= | |
13734 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
13735 | ( sleep 1 ) & | |
13736 | am_sleep_pid=$! | |
13737 | fi | |
13738 | ||
13739 | rm -f conftest.file | |
13740 | ||
13741 | if test x"${MISSING+set}" != xset; then | |
13742 | case $am_aux_dir in | |
13743 | *\ * | *\ *) | |
13744 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
13745 | *) | |
13746 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
13747 | esac | |
13748 | fi | |
13749 | # Use eval to expand $SHELL | |
13750 | if eval "$MISSING --is-lightweight"; then | |
13751 | am_missing_run="$MISSING " | |
c2783492 MF |
13752 | else |
13753 | am_missing_run= | |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
13755 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
13756 | fi | |
13757 | ||
13758 | if test x"${install_sh+set}" != xset; then | |
13759 | case $am_aux_dir in | |
13760 | *\ * | *\ *) | |
13761 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
13762 | *) | |
13763 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
13764 | esac | |
13765 | fi | |
13766 | ||
13767 | # Installed binaries are usually stripped using 'strip' when the user | |
13768 | # run "make install-strip". However 'strip' might not be the right | |
13769 | # tool to use in cross-compilation environments, therefore Automake | |
13770 | # will honor the 'STRIP' environment variable to overrule this program. | |
13771 | if test "$cross_compiling" != no; then | |
13772 | if test -n "$ac_tool_prefix"; then | |
13773 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
13774 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13776 | $as_echo_n "checking for $ac_word... " >&6; } | |
13777 | if ${ac_cv_prog_STRIP+:} false; then : | |
13778 | $as_echo_n "(cached) " >&6 | |
13779 | else | |
13780 | if test -n "$STRIP"; then | |
13781 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
13782 | else | |
13783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13784 | for as_dir in $PATH | |
13785 | do | |
13786 | IFS=$as_save_IFS | |
13787 | test -z "$as_dir" && as_dir=. | |
13788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13790 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
13791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13792 | break 2 | |
81ecdfbb | 13793 | fi |
81ecdfbb | 13794 | done |
c2783492 MF |
13795 | done |
13796 | IFS=$as_save_IFS | |
b7026657 | 13797 | |
c906108c | 13798 | fi |
b7026657 | 13799 | fi |
c2783492 MF |
13800 | STRIP=$ac_cv_prog_STRIP |
13801 | if test -n "$STRIP"; then | |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
13803 | $as_echo "$STRIP" >&6; } | |
81ecdfbb | 13804 | else |
c2783492 MF |
13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13806 | $as_echo "no" >&6; } | |
81ecdfbb | 13807 | fi |
b7026657 | 13808 | |
b7026657 | 13809 | |
c2783492 MF |
13810 | fi |
13811 | if test -z "$ac_cv_prog_STRIP"; then | |
13812 | ac_ct_STRIP=$STRIP | |
13813 | # Extract the first word of "strip", so it can be a program name with args. | |
13814 | set dummy strip; ac_word=$2 | |
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13816 | $as_echo_n "checking for $ac_word... " >&6; } | |
13817 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
13818 | $as_echo_n "(cached) " >&6 | |
c906108c | 13819 | else |
c2783492 MF |
13820 | if test -n "$ac_ct_STRIP"; then |
13821 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
81ecdfbb | 13822 | else |
c2783492 MF |
13823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13824 | for as_dir in $PATH | |
13825 | do | |
13826 | IFS=$as_save_IFS | |
13827 | test -z "$as_dir" && as_dir=. | |
13828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13830 | ac_cv_prog_ac_ct_STRIP="strip" | |
13831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13832 | break 2 | |
13833 | fi | |
13834 | done | |
13835 | done | |
13836 | IFS=$as_save_IFS | |
81ecdfbb | 13837 | |
81ecdfbb | 13838 | fi |
df1756f4 | 13839 | fi |
c2783492 MF |
13840 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
13841 | if test -n "$ac_ct_STRIP"; then | |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
13843 | $as_echo "$ac_ct_STRIP" >&6; } | |
13844 | else | |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13846 | $as_echo "no" >&6; } | |
b7026657 | 13847 | fi |
c2783492 MF |
13848 | |
13849 | if test "x$ac_ct_STRIP" = x; then | |
13850 | STRIP=":" | |
c906108c | 13851 | else |
c2783492 MF |
13852 | case $cross_compiling:$ac_tool_warned in |
13853 | yes:) | |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13855 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13856 | ac_tool_warned=yes ;; | |
13857 | esac | |
13858 | STRIP=$ac_ct_STRIP | |
c906108c SS |
13859 | fi |
13860 | else | |
c2783492 | 13861 | STRIP="$ac_cv_prog_STRIP" |
c906108c | 13862 | fi |
81ecdfbb | 13863 | |
b7026657 | 13864 | fi |
c2783492 | 13865 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
b7026657 | 13866 | |
c2783492 MF |
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
13868 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
13869 | if test -z "$MKDIR_P"; then | |
13870 | if ${ac_cv_path_mkdir+:} false; then : | |
13871 | $as_echo_n "(cached) " >&6 | |
13872 | else | |
13873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13874 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
13875 | do | |
13876 | IFS=$as_save_IFS | |
13877 | test -z "$as_dir" && as_dir=. | |
13878 | for ac_prog in mkdir gmkdir; do | |
13879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13880 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
13881 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
13882 | 'mkdir (GNU coreutils) '* | \ | |
13883 | 'mkdir (coreutils) '* | \ | |
13884 | 'mkdir (fileutils) '4.1*) | |
13885 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
13886 | break 3;; | |
13887 | esac | |
13888 | done | |
13889 | done | |
13890 | done | |
13891 | IFS=$as_save_IFS | |
b7026657 | 13892 | |
fdd6fa61 AG |
13893 | fi |
13894 | ||
c2783492 MF |
13895 | test -d ./--version && rmdir ./--version |
13896 | if test "${ac_cv_path_mkdir+set}" = set; then | |
13897 | MKDIR_P="$ac_cv_path_mkdir -p" | |
b5689863 MF |
13898 | else |
13899 | # As a last resort, use the slow shell script. Don't cache a | |
13900 | # value for MKDIR_P within a source directory, because that will | |
13901 | # break other packages using the cache if that directory is | |
13902 | # removed, or if the value is a relative name. | |
13903 | MKDIR_P="$ac_install_sh -d" | |
13904 | fi | |
c2783492 | 13905 | fi |
b5689863 MF |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
13907 | $as_echo "$MKDIR_P" >&6; } | |
6bddc3e8 | 13908 | |
c2783492 MF |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
13910 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13911 | set x ${MAKE-make} | |
13912 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
13913 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
6bddc3e8 MF |
13914 | $as_echo_n "(cached) " >&6 |
13915 | else | |
c2783492 MF |
13916 | cat >conftest.make <<\_ACEOF |
13917 | SHELL = /bin/sh | |
13918 | all: | |
13919 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
13920 | _ACEOF | |
13921 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
13922 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
13923 | *@@@%%%=?*=@@@%%%*) | |
13924 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13925 | *) | |
13926 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
13927 | esac | |
13928 | rm -f conftest.make | |
13929 | fi | |
13930 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13932 | $as_echo "yes" >&6; } | |
13933 | SET_MAKE= | |
13934 | else | |
13935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13936 | $as_echo "no" >&6; } | |
13937 | SET_MAKE="MAKE=${MAKE-make}" | |
13938 | fi | |
6bddc3e8 | 13939 | |
c2783492 MF |
13940 | rm -rf .tst 2>/dev/null |
13941 | mkdir .tst 2>/dev/null | |
13942 | if test -d .tst; then | |
13943 | am__leading_dot=. | |
13944 | else | |
13945 | am__leading_dot=_ | |
13946 | fi | |
13947 | rmdir .tst 2>/dev/null | |
6bddc3e8 | 13948 | |
c2783492 | 13949 | DEPDIR="${am__leading_dot}deps" |
6bddc3e8 | 13950 | |
c2783492 | 13951 | ac_config_commands="$ac_config_commands depfiles" |
6bddc3e8 | 13952 | |
c2783492 MF |
13953 | |
13954 | am_make=${MAKE-make} | |
13955 | cat > confinc << 'END' | |
13956 | am__doit: | |
13957 | @echo this is the am__doit target | |
13958 | .PHONY: am__doit | |
13959 | END | |
13960 | # If we don't find an include directive, just comment out the code. | |
13961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
13962 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
13963 | am__include="#" | |
13964 | am__quote= | |
13965 | _am_result=none | |
13966 | # First try GNU make style include. | |
13967 | echo "include confinc" > confmf | |
13968 | # Ignore all kinds of additional output from 'make'. | |
13969 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
13970 | *the\ am__doit\ target*) | |
13971 | am__include=include | |
13972 | am__quote= | |
13973 | _am_result=GNU | |
13974 | ;; | |
13975 | esac | |
13976 | # Now try BSD make style include. | |
13977 | if test "$am__include" = "#"; then | |
13978 | echo '.include "confinc"' > confmf | |
13979 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
13980 | *the\ am__doit\ target*) | |
13981 | am__include=.include | |
13982 | am__quote="\"" | |
13983 | _am_result=BSD | |
13984 | ;; | |
13985 | esac | |
6bddc3e8 MF |
13986 | fi |
13987 | ||
c2783492 MF |
13988 | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
13990 | $as_echo "$_am_result" >&6; } | |
13991 | rm -f confinc confmf | |
13992 | ||
13993 | # Check whether --enable-dependency-tracking was given. | |
13994 | if test "${enable_dependency_tracking+set}" = set; then : | |
13995 | enableval=$enable_dependency_tracking; | |
6bddc3e8 | 13996 | fi |
6bddc3e8 | 13997 | |
c2783492 MF |
13998 | if test "x$enable_dependency_tracking" != xno; then |
13999 | am_depcomp="$ac_aux_dir/depcomp" | |
14000 | AMDEPBACKSLASH='\' | |
14001 | am__nodep='_no' | |
14002 | fi | |
14003 | if test "x$enable_dependency_tracking" != xno; then | |
14004 | AMDEP_TRUE= | |
14005 | AMDEP_FALSE='#' | |
6bddc3e8 | 14006 | else |
c2783492 MF |
14007 | AMDEP_TRUE='#' |
14008 | AMDEP_FALSE= | |
6bddc3e8 MF |
14009 | fi |
14010 | ||
14011 | ||
c2783492 MF |
14012 | # Check whether --enable-silent-rules was given. |
14013 | if test "${enable_silent_rules+set}" = set; then : | |
14014 | enableval=$enable_silent_rules; | |
5e25901f | 14015 | fi |
c2783492 MF |
14016 | |
14017 | case $enable_silent_rules in # ((( | |
14018 | yes) AM_DEFAULT_VERBOSITY=0;; | |
14019 | no) AM_DEFAULT_VERBOSITY=1;; | |
14020 | *) AM_DEFAULT_VERBOSITY=1;; | |
14021 | esac | |
14022 | am_make=${MAKE-make} | |
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
14024 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
14025 | if ${am_cv_make_support_nested_variables+:} false; then : | |
5e25901f MF |
14026 | $as_echo_n "(cached) " >&6 |
14027 | else | |
c2783492 MF |
14028 | if $as_echo 'TRUE=$(BAR$(V)) |
14029 | BAR0=false | |
14030 | BAR1=true | |
14031 | V=1 | |
14032 | am__doit: | |
14033 | @$(TRUE) | |
14034 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
14035 | am_cv_make_support_nested_variables=yes | |
5e25901f | 14036 | else |
c2783492 | 14037 | am_cv_make_support_nested_variables=no |
5e25901f | 14038 | fi |
c2783492 MF |
14039 | fi |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
14041 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
14042 | if test $am_cv_make_support_nested_variables = yes; then | |
14043 | AM_V='$(V)' | |
14044 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
5e25901f | 14045 | else |
c2783492 MF |
14046 | AM_V=$AM_DEFAULT_VERBOSITY |
14047 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
5e25901f | 14048 | fi |
c2783492 | 14049 | AM_BACKSLASH='\' |
5e25901f | 14050 | |
c2783492 MF |
14051 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
14052 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
14053 | # is not polluted with repeated "-I." | |
14054 | am__isrc=' -I$(srcdir)' | |
14055 | # test to see if srcdir already configured | |
14056 | if test -f $srcdir/config.status; then | |
14057 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
14058 | fi | |
5e25901f MF |
14059 | fi |
14060 | ||
c2783492 MF |
14061 | # test whether we have cygpath |
14062 | if test -z "$CYGPATH_W"; then | |
14063 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
14064 | CYGPATH_W='cygpath -w' | |
14065 | else | |
14066 | CYGPATH_W=echo | |
14067 | fi | |
5e25901f | 14068 | fi |
c2783492 MF |
14069 | |
14070 | ||
14071 | # Define the identity of the package. | |
14072 | PACKAGE='sim' | |
14073 | VERSION='0' | |
14074 | ||
14075 | ||
14076 | cat >>confdefs.h <<_ACEOF | |
14077 | #define PACKAGE "$PACKAGE" | |
5e25901f | 14078 | _ACEOF |
5e25901f | 14079 | |
5e25901f | 14080 | |
c2783492 MF |
14081 | cat >>confdefs.h <<_ACEOF |
14082 | #define VERSION "$VERSION" | |
5e25901f | 14083 | _ACEOF |
5e25901f | 14084 | |
c2783492 | 14085 | # Some tools Automake needs. |
5e25901f | 14086 | |
c2783492 MF |
14087 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
14088 | ||
14089 | ||
14090 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
14091 | ||
14092 | ||
14093 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
14094 | ||
14095 | ||
14096 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
14097 | ||
14098 | ||
14099 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
14100 | ||
14101 | # For better backward compatibility. To be removed once Automake 1.9.x | |
14102 | # dies out for good. For more background, see: | |
14103 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
14104 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
14105 | mkdir_p='$(MKDIR_P)' | |
14106 | ||
14107 | # We need awk for the "check" target (and possibly the TAP driver). The | |
14108 | # system "awk" is bad on some platforms. | |
14109 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
14110 | # in the wild :-( We should find a proper way to deprecate it ... | |
14111 | AMTAR='$${TAR-tar}' | |
14112 | ||
14113 | ||
14114 | # We'll loop over all known methods to create a tar archive until one works. | |
14115 | _am_tools='gnutar pax cpio none' | |
14116 | ||
14117 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
5e25901f | 14118 | |
5e25901f | 14119 | |
c906108c | 14120 | |
c906108c | 14121 | |
c2783492 MF |
14122 | |
14123 | depcc="$CC" am_compiler_list= | |
14124 | ||
14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
14126 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
14127 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
81ecdfbb | 14128 | $as_echo_n "(cached) " >&6 |
c906108c | 14129 | else |
c2783492 MF |
14130 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
14131 | # We make a subdir and do the tests there. Otherwise we can end up | |
14132 | # making bogus files that we don't know about and never remove. For | |
14133 | # instance it was reported that on HP-UX the gcc test will end up | |
14134 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
14135 | # in D". | |
14136 | rm -rf conftest.dir | |
14137 | mkdir conftest.dir | |
14138 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
14139 | # using a relative directory. | |
14140 | cp "$am_depcomp" conftest.dir | |
14141 | cd conftest.dir | |
14142 | # We will build objects and dependencies in a subdirectory because | |
14143 | # it helps to detect inapplicable dependency modes. For instance | |
14144 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
14145 | # side effect of compilation, but ICC will put the dependencies in | |
14146 | # the current directory while Tru64 will put them in the object | |
14147 | # directory. | |
14148 | mkdir sub | |
14149 | ||
14150 | am_cv_CC_dependencies_compiler_type=none | |
14151 | if test "$am_compiler_list" = ""; then | |
14152 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
b7026657 | 14153 | fi |
c2783492 MF |
14154 | am__universal=false |
14155 | case " $depcc " in #( | |
14156 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
14157 | esac | |
14158 | ||
14159 | for depmode in $am_compiler_list; do | |
14160 | # Setup a source with many dependencies, because some compilers | |
14161 | # like to wrap large dependency lists on column 80 (with \), and | |
14162 | # we should not choose a depcomp mode which is confused by this. | |
14163 | # | |
14164 | # We need to recreate these files for each test, as the compiler may | |
14165 | # overwrite some of them when testing with obscure command lines. | |
14166 | # This happens at least with the AIX C compiler. | |
14167 | : > sub/conftest.c | |
14168 | for i in 1 2 3 4 5 6; do | |
14169 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
14170 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
14171 | # Solaris 10 /bin/sh. | |
14172 | echo '/* dummy */' > sub/conftst$i.h | |
14173 | done | |
14174 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
14175 | ||
14176 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
14177 | # mode. It turns out that the SunPro C++ compiler does not properly | |
14178 | # handle '-M -o', and we need to detect this. Also, some Intel | |
14179 | # versions had trouble with output in subdirs. | |
14180 | am__obj=sub/conftest.${OBJEXT-o} | |
14181 | am__minus_obj="-o $am__obj" | |
14182 | case $depmode in | |
14183 | gcc) | |
14184 | # This depmode causes a compiler race in universal mode. | |
14185 | test "$am__universal" = false || continue | |
14186 | ;; | |
14187 | nosideeffect) | |
14188 | # After this tag, mechanisms are not by side-effect, so they'll | |
14189 | # only be used when explicitly requested. | |
14190 | if test "x$enable_dependency_tracking" = xyes; then | |
14191 | continue | |
14192 | else | |
14193 | break | |
14194 | fi | |
14195 | ;; | |
14196 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
14197 | # This compiler won't grok '-c -o', but also, the minuso test has | |
14198 | # not run yet. These depmodes are late enough in the game, and | |
14199 | # so weak that their functioning should not be impacted. | |
14200 | am__obj=conftest.${OBJEXT-o} | |
14201 | am__minus_obj= | |
14202 | ;; | |
14203 | none) break ;; | |
14204 | esac | |
14205 | if depmode=$depmode \ | |
14206 | source=sub/conftest.c object=$am__obj \ | |
14207 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
14208 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
14209 | >/dev/null 2>conftest.err && | |
14210 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
14211 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
14212 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
14213 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
14214 | # icc doesn't choke on unknown options, it will just issue warnings | |
14215 | # or remarks (even with -Werror). So we grep stderr for any message | |
14216 | # that says an option was ignored or not supported. | |
14217 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
14218 | # icc: Command line warning: ignoring option '-M'; no argument required | |
14219 | # The diagnosis changed in icc 8.0: | |
14220 | # icc: Command line remark: option '-MP' not supported | |
14221 | if (grep 'ignoring option' conftest.err || | |
14222 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
14223 | am_cv_CC_dependencies_compiler_type=$depmode | |
14224 | break | |
14225 | fi | |
14226 | fi | |
81ecdfbb | 14227 | done |
b7026657 | 14228 | |
c2783492 MF |
14229 | cd .. |
14230 | rm -rf conftest.dir | |
b7026657 | 14231 | else |
c2783492 | 14232 | am_cv_CC_dependencies_compiler_type=none |
b7026657 AC |
14233 | fi |
14234 | ||
14235 | fi | |
c2783492 MF |
14236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
14237 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
14238 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
b7026657 | 14239 | |
c2783492 MF |
14240 | if |
14241 | test "x$enable_dependency_tracking" != xno \ | |
14242 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
14243 | am__fastdepCC_TRUE= | |
14244 | am__fastdepCC_FALSE='#' | |
c906108c | 14245 | else |
c2783492 MF |
14246 | am__fastdepCC_TRUE='#' |
14247 | am__fastdepCC_FALSE= | |
b7026657 AC |
14248 | fi |
14249 | ||
c906108c SS |
14250 | |
14251 | ||
c2783492 MF |
14252 | # POSIX will say in a future version that running "rm -f" with no argument |
14253 | # is OK; and we want to be able to make that assumption in our Makefile | |
14254 | # recipes. So use an aggressive probe to check that the usage we want is | |
14255 | # actually supported "in the wild" to an acceptable degree. | |
14256 | # See automake bug#10828. | |
14257 | # To make any issue more visible, cause the running configure to be aborted | |
14258 | # by default if the 'rm' program in use doesn't match our expectations; the | |
14259 | # user can still override this though. | |
14260 | if rm -f && rm -fr && rm -rf; then : OK; else | |
14261 | cat >&2 <<'END' | |
14262 | Oops! | |
14263 | ||
14264 | Your 'rm' program seems unable to run without file operands specified | |
14265 | on the command line, even when the '-f' option is present. This is contrary | |
14266 | to the behaviour of most rm programs out there, and not conforming with | |
14267 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
14268 | ||
14269 | Please tell bug-automake@gnu.org about your system, including the value | |
14270 | of your $PATH and any error possibly output before this message. This | |
14271 | can help us improve future automake versions. | |
14272 | ||
14273 | END | |
14274 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
14275 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
14276 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
14277 | echo >&2 | |
5c887dd5 | 14278 | else |
c2783492 MF |
14279 | cat >&2 <<'END' |
14280 | Aborting the configuration process, to ensure you take notice of the issue. | |
14281 | ||
14282 | You can download and install GNU coreutils to get an 'rm' implementation | |
14283 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
14284 | ||
14285 | If you want to complete the configuration process using your problematic | |
14286 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
14287 | to "yes", and re-run configure. | |
14288 | ||
14289 | END | |
14290 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
5c887dd5 | 14291 | fi |
c906108c SS |
14292 | fi |
14293 | ||
fbe8d1cf MF |
14294 | # Check whether --enable-silent-rules was given. |
14295 | if test "${enable_silent_rules+set}" = set; then : | |
14296 | enableval=$enable_silent_rules; | |
14297 | fi | |
14298 | ||
14299 | case $enable_silent_rules in # ((( | |
14300 | yes) AM_DEFAULT_VERBOSITY=0;; | |
14301 | no) AM_DEFAULT_VERBOSITY=1;; | |
14302 | *) AM_DEFAULT_VERBOSITY=0;; | |
14303 | esac | |
14304 | am_make=${MAKE-make} | |
14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
14306 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
14307 | if ${am_cv_make_support_nested_variables+:} false; then : | |
14308 | $as_echo_n "(cached) " >&6 | |
14309 | else | |
14310 | if $as_echo 'TRUE=$(BAR$(V)) | |
14311 | BAR0=false | |
14312 | BAR1=true | |
14313 | V=1 | |
14314 | am__doit: | |
14315 | @$(TRUE) | |
14316 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
14317 | am_cv_make_support_nested_variables=yes | |
14318 | else | |
14319 | am_cv_make_support_nested_variables=no | |
14320 | fi | |
14321 | fi | |
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
14323 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
14324 | if test $am_cv_make_support_nested_variables = yes; then | |
14325 | AM_V='$(V)' | |
14326 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
14327 | else | |
14328 | AM_V=$AM_DEFAULT_VERBOSITY | |
14329 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
14330 | fi | |
14331 | AM_BACKSLASH='\' | |
14332 | ||
c906108c SS |
14333 | |
14334 | # If a cpu ever has more than one simulator to choose from, use | |
14335 | # --enable-sim=... to choose. | |
81ecdfbb RW |
14336 | # Check whether --enable-sim was given. |
14337 | if test "${enable_sim+set}" = set; then : | |
14338 | enableval=$enable_sim; case "${enableval}" in | |
c906108c | 14339 | yes | no) ;; |
d0ac1c44 | 14340 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;; |
c906108c | 14341 | esac |
81ecdfbb RW |
14342 | fi |
14343 | ||
c906108c | 14344 | |
26da232c MF |
14345 | # Check whether --enable-example-sims was given. |
14346 | if test "${enable_example_sims+set}" = set; then : | |
14347 | enableval=$enable_example_sims; | |
14348 | fi | |
14349 | ||
14350 | ||
a0e674c1 MF |
14351 | # Check whether --enable-targets was given. |
14352 | if test "${enable_targets+set}" = set; then : | |
14353 | enableval=$enable_targets; case "${enableval}" in | |
14354 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 | |
14355 | ;; | |
14356 | no) enable_targets= ;; | |
14357 | *) enable_targets=$enableval ;; | |
14358 | esac | |
14359 | fi | |
14360 | ||
14361 | ||
14362 | SIM_PRIMARY_TARGET= | |
14363 | ||
14364 | ||
36bb57e4 MF |
14365 | SIM_SUBDIRS= |
14366 | ||
14367 | ||
14368 | SIM_COMMON_BUILD_TRUE= | |
14369 | SIM_COMMON_BUILD_FALSE='#' | |
14370 | ||
14371 | ||
14372 | ||
14373 | ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in" | |
14374 | ||
a0e674c1 MF |
14375 | |
14376 | ||
bc56166f | 14377 | |
119da465 | 14378 | if test "${enable_sim}" != no; then |
3e8bb3e9 | 14379 | sim_igen=no |
a0e674c1 MF |
14380 | for targ in `echo $target $enable_targets | sed 's/,/ /g'` |
14381 | do | |
65dcce8f MF |
14382 | sim_enable_arch_aarch64=false |
14383 | case "${targ}" in | |
a0e674c1 MF |
14384 | all|aarch64*-*-*) |
14385 | if test "${targ}" = "${target}"; then | |
14386 | SIM_PRIMARY_TARGET=aarch64 | |
14387 | fi | |
36bb57e4 | 14388 | ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in" |
2e8cf49e | 14389 | |
36bb57e4 | 14390 | ac_config_commands="$ac_config_commands aarch64/Makefile" |
2e8cf49e | 14391 | |
36bb57e4 | 14392 | as_fn_append SIM_SUBDIRS " aarch64" |
fdd6fa61 | 14393 | |
bc56166f MF |
14394 | ac_config_commands="$ac_config_commands depdir-aarch64" |
14395 | ||
14396 | ||
65dcce8f | 14397 | sim_enable_arch_aarch64=true |
a0e674c1 | 14398 | |
3e8bb3e9 | 14399 | ;; |
a0e674c1 | 14400 | esac |
dc4e1fde HPN |
14401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14402 | $as_echo_n "checking where to find the target cc... " >&6; } | |
14403 | if test "x${build}" != "x${host}" ; then | |
14404 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
14405 | # We already found the complete path | |
14406 | ac_dir=`dirname $CC_FOR_TARGET` | |
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14408 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14409 | else | |
14410 | # Canadian cross, just use what we found | |
14411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14412 | $as_echo "pre-installed" >&6; } | |
14413 | fi | |
14414 | else | |
14415 | ok=yes | |
14416 | case " ${configdirs} " in | |
14417 | *" ${target_alias}-gcc "*) ;; | |
14418 | *) ok=no ;; | |
14419 | esac | |
14420 | ||
14421 | if test $ok = yes; then | |
14422 | # An in-tree tool is available and we can use it | |
14423 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc' | |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14425 | $as_echo "just compiled" >&6; } | |
14426 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then | |
14427 | # We already found the complete path | |
14428 | ac_dir=`dirname $CC_FOR_TARGET` | |
14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14430 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14431 | elif test "x$target" = "x$host"; then | |
14432 | # We can use an host tool | |
14433 | CC_FOR_TARGET='$(CC)' | |
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14435 | $as_echo "host tool" >&6; } | |
14436 | else | |
14437 | # We need a cross tool | |
14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14439 | $as_echo "pre-installed" >&6; } | |
14440 | fi | |
14441 | fi | |
14442 | ||
14443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 | |
14444 | $as_echo_n "checking where to find the target as... " >&6; } | |
14445 | if test "x${build}" != "x${host}" ; then | |
14446 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
14447 | # We already found the complete path | |
14448 | ac_dir=`dirname $AS_FOR_TARGET` | |
14449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14450 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14451 | else | |
14452 | # Canadian cross, just use what we found | |
14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14454 | $as_echo "pre-installed" >&6; } | |
14455 | fi | |
14456 | else | |
14457 | ok=yes | |
14458 | case " ${configdirs} " in | |
14459 | *" \$(abs_builddir) "*) ;; | |
14460 | *) ok=no ;; | |
14461 | esac | |
14462 | ||
14463 | if test $ok = yes; then | |
14464 | # An in-tree tool is available and we can use it | |
14465 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new' | |
14466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14467 | $as_echo "just compiled" >&6; } | |
14468 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then | |
14469 | # We already found the complete path | |
14470 | ac_dir=`dirname $AS_FOR_TARGET` | |
14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14472 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14473 | elif test "x$target" = "x$host"; then | |
14474 | # We can use an host tool | |
14475 | AS_FOR_TARGET='$(AS)' | |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14477 | $as_echo "host tool" >&6; } | |
14478 | else | |
14479 | # We need a cross tool | |
14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14481 | $as_echo "pre-installed" >&6; } | |
14482 | fi | |
14483 | fi | |
14484 | ||
14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 | |
14486 | $as_echo_n "checking where to find the target ld... " >&6; } | |
14487 | if test "x${build}" != "x${host}" ; then | |
14488 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
14489 | # We already found the complete path | |
14490 | ac_dir=`dirname $LD_FOR_TARGET` | |
14491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14492 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14493 | else | |
14494 | # Canadian cross, just use what we found | |
14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14496 | $as_echo "pre-installed" >&6; } | |
14497 | fi | |
14498 | else | |
14499 | ok=yes | |
14500 | case " ${configdirs} " in | |
14501 | *" \$(abs_builddir) "*) ;; | |
14502 | *) ok=no ;; | |
14503 | esac | |
14504 | ||
14505 | if test $ok = yes; then | |
14506 | # An in-tree tool is available and we can use it | |
14507 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new' | |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14509 | $as_echo "just compiled" >&6; } | |
14510 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then | |
14511 | # We already found the complete path | |
14512 | ac_dir=`dirname $LD_FOR_TARGET` | |
14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14514 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14515 | elif test "x$target" = "x$host"; then | |
14516 | # We can use an host tool | |
14517 | LD_FOR_TARGET='$(LD)' | |
14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14519 | $as_echo "host tool" >&6; } | |
14520 | else | |
14521 | # We need a cross tool | |
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14523 | $as_echo "pre-installed" >&6; } | |
14524 | fi | |
14525 | fi | |
14526 | ||
14527 | ||
14528 | ||
8996c210 MF |
14529 | |
14530 | ||
14531 | ||
14532 | if test "$SIM_PRIMARY_TARGET" = "aarch64"; then : | |
dc4e1fde HPN |
14533 | : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}" |
14534 | : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}" | |
14535 | : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14536 | |
14537 | fi | |
14538 | ||
14539 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64" | |
14540 | ||
65dcce8f MF |
14541 | if ${sim_enable_arch_aarch64}; then |
14542 | SIM_ENABLE_ARCH_aarch64_TRUE= | |
14543 | SIM_ENABLE_ARCH_aarch64_FALSE='#' | |
14544 | else | |
14545 | SIM_ENABLE_ARCH_aarch64_TRUE='#' | |
14546 | SIM_ENABLE_ARCH_aarch64_FALSE= | |
14547 | fi | |
14548 | ||
a0e674c1 | 14549 | |
65dcce8f MF |
14550 | sim_enable_arch_arm=false |
14551 | case "${targ}" in | |
a0e674c1 MF |
14552 | all|arm*-*-*) |
14553 | if test "${targ}" = "${target}"; then | |
14554 | SIM_PRIMARY_TARGET=arm | |
14555 | fi | |
36bb57e4 MF |
14556 | ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in" |
14557 | ||
14558 | ac_config_commands="$ac_config_commands arm/Makefile" | |
14559 | ||
14560 | as_fn_append SIM_SUBDIRS " arm" | |
bc56166f MF |
14561 | |
14562 | ac_config_commands="$ac_config_commands depdir-arm" | |
14563 | ||
fdd6fa61 | 14564 | |
65dcce8f | 14565 | sim_enable_arch_arm=true |
a0e674c1 | 14566 | |
3e8bb3e9 | 14567 | ;; |
a0e674c1 | 14568 | esac |
8996c210 MF |
14569 | |
14570 | ||
14571 | ||
dc4e1fde | 14572 | |
8996c210 | 14573 | if test "$SIM_PRIMARY_TARGET" = "arm"; then : |
dc4e1fde HPN |
14574 | : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}" |
14575 | : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}" | |
14576 | : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14577 | |
14578 | fi | |
14579 | ||
14580 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM" | |
14581 | ||
65dcce8f MF |
14582 | if ${sim_enable_arch_arm}; then |
14583 | SIM_ENABLE_ARCH_arm_TRUE= | |
14584 | SIM_ENABLE_ARCH_arm_FALSE='#' | |
14585 | else | |
14586 | SIM_ENABLE_ARCH_arm_TRUE='#' | |
14587 | SIM_ENABLE_ARCH_arm_FALSE= | |
14588 | fi | |
a0e674c1 | 14589 | |
65dcce8f MF |
14590 | |
14591 | sim_enable_arch_avr=false | |
14592 | case "${targ}" in | |
a0e674c1 MF |
14593 | all|avr*-*-*) |
14594 | if test "${targ}" = "${target}"; then | |
14595 | SIM_PRIMARY_TARGET=avr | |
14596 | fi | |
36bb57e4 MF |
14597 | ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in" |
14598 | ||
14599 | ac_config_commands="$ac_config_commands avr/Makefile" | |
14600 | ||
14601 | as_fn_append SIM_SUBDIRS " avr" | |
bc56166f MF |
14602 | |
14603 | ac_config_commands="$ac_config_commands depdir-avr" | |
14604 | ||
0cd79707 | 14605 | |
65dcce8f | 14606 | sim_enable_arch_avr=true |
a0e674c1 | 14607 | |
3e8bb3e9 | 14608 | ;; |
a0e674c1 | 14609 | esac |
8996c210 MF |
14610 | |
14611 | ||
14612 | ||
dc4e1fde | 14613 | |
8996c210 | 14614 | if test "$SIM_PRIMARY_TARGET" = "avr"; then : |
dc4e1fde HPN |
14615 | : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}" |
14616 | : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}" | |
14617 | : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14618 | |
14619 | fi | |
14620 | ||
14621 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR" | |
14622 | ||
65dcce8f MF |
14623 | if ${sim_enable_arch_avr}; then |
14624 | SIM_ENABLE_ARCH_avr_TRUE= | |
14625 | SIM_ENABLE_ARCH_avr_FALSE='#' | |
14626 | else | |
14627 | SIM_ENABLE_ARCH_avr_TRUE='#' | |
14628 | SIM_ENABLE_ARCH_avr_FALSE= | |
14629 | fi | |
a0e674c1 | 14630 | |
65dcce8f MF |
14631 | |
14632 | sim_enable_arch_bfin=false | |
14633 | case "${targ}" in | |
a0e674c1 MF |
14634 | all|bfin-*-*) |
14635 | if test "${targ}" = "${target}"; then | |
14636 | SIM_PRIMARY_TARGET=bfin | |
14637 | fi | |
d8b04da7 | 14638 | ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in" |
36bb57e4 | 14639 | |
d8b04da7 | 14640 | ac_config_commands="$ac_config_commands bfin/Makefile" |
36bb57e4 | 14641 | |
d8b04da7 | 14642 | as_fn_append SIM_SUBDIRS " bfin" |
bc56166f MF |
14643 | |
14644 | ac_config_commands="$ac_config_commands depdir-bfin" | |
14645 | ||
ddd44b70 | 14646 | |
65dcce8f | 14647 | sim_enable_arch_bfin=true |
a0e674c1 | 14648 | |
3e8bb3e9 | 14649 | ;; |
a0e674c1 | 14650 | esac |
8996c210 MF |
14651 | |
14652 | ||
14653 | ||
dc4e1fde | 14654 | |
8996c210 | 14655 | if test "$SIM_PRIMARY_TARGET" = "bfin"; then : |
dc4e1fde HPN |
14656 | : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}" |
14657 | : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}" | |
14658 | : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14659 | |
14660 | fi | |
14661 | ||
14662 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN" | |
14663 | ||
65dcce8f MF |
14664 | if ${sim_enable_arch_bfin}; then |
14665 | SIM_ENABLE_ARCH_bfin_TRUE= | |
14666 | SIM_ENABLE_ARCH_bfin_FALSE='#' | |
14667 | else | |
14668 | SIM_ENABLE_ARCH_bfin_TRUE='#' | |
14669 | SIM_ENABLE_ARCH_bfin_FALSE= | |
14670 | fi | |
14671 | ||
a0e674c1 | 14672 | |
65dcce8f MF |
14673 | sim_enable_arch_bpf=false |
14674 | case "${targ}" in | |
a0e674c1 MF |
14675 | all|bpf-*-*) |
14676 | if test "${targ}" = "${target}"; then | |
14677 | SIM_PRIMARY_TARGET=bpf | |
14678 | fi | |
d8b04da7 MF |
14679 | |
14680 | ||
14681 | subdirs="$subdirs bpf" | |
36bb57e4 | 14682 | |
bc56166f MF |
14683 | |
14684 | ac_config_commands="$ac_config_commands depdir-bpf" | |
14685 | ||
ddd44b70 | 14686 | |
65dcce8f | 14687 | sim_enable_arch_bpf=true |
a0e674c1 | 14688 | |
3e8bb3e9 | 14689 | ;; |
a0e674c1 | 14690 | esac |
8996c210 MF |
14691 | |
14692 | ||
14693 | ||
dc4e1fde | 14694 | |
8996c210 | 14695 | if test "$SIM_PRIMARY_TARGET" = "bpf"; then : |
dc4e1fde HPN |
14696 | : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}" |
14697 | : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}" | |
14698 | : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14699 | |
14700 | fi | |
14701 | ||
14702 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF" | |
14703 | ||
65dcce8f MF |
14704 | if ${sim_enable_arch_bpf}; then |
14705 | SIM_ENABLE_ARCH_bpf_TRUE= | |
14706 | SIM_ENABLE_ARCH_bpf_FALSE='#' | |
14707 | else | |
14708 | SIM_ENABLE_ARCH_bpf_TRUE='#' | |
14709 | SIM_ENABLE_ARCH_bpf_FALSE= | |
14710 | fi | |
14711 | ||
a0e674c1 | 14712 | |
65dcce8f MF |
14713 | sim_enable_arch_cr16=false |
14714 | case "${targ}" in | |
a0e674c1 MF |
14715 | all|cr16*-*-*) |
14716 | if test "${targ}" = "${target}"; then | |
14717 | SIM_PRIMARY_TARGET=cr16 | |
14718 | fi | |
36bb57e4 MF |
14719 | ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in" |
14720 | ||
14721 | ac_config_commands="$ac_config_commands cr16/Makefile" | |
14722 | ||
14723 | as_fn_append SIM_SUBDIRS " cr16" | |
bc56166f MF |
14724 | |
14725 | ac_config_commands="$ac_config_commands depdir-cr16" | |
14726 | ||
ddd44b70 | 14727 | |
65dcce8f | 14728 | sim_enable_arch_cr16=true |
a0e674c1 | 14729 | |
3e8bb3e9 | 14730 | ;; |
a0e674c1 | 14731 | esac |
8996c210 MF |
14732 | |
14733 | ||
14734 | ||
dc4e1fde | 14735 | |
8996c210 | 14736 | if test "$SIM_PRIMARY_TARGET" = "cr16"; then : |
dc4e1fde HPN |
14737 | : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}" |
14738 | : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}" | |
14739 | : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14740 | |
14741 | fi | |
14742 | ||
14743 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16" | |
14744 | ||
65dcce8f MF |
14745 | if ${sim_enable_arch_cr16}; then |
14746 | SIM_ENABLE_ARCH_cr16_TRUE= | |
14747 | SIM_ENABLE_ARCH_cr16_FALSE='#' | |
14748 | else | |
14749 | SIM_ENABLE_ARCH_cr16_TRUE='#' | |
14750 | SIM_ENABLE_ARCH_cr16_FALSE= | |
14751 | fi | |
14752 | ||
a0e674c1 | 14753 | |
65dcce8f MF |
14754 | sim_enable_arch_cris=false |
14755 | case "${targ}" in | |
a0e674c1 MF |
14756 | all|cris-*-* | crisv32-*-*) |
14757 | if test "${targ}" = "${target}"; then | |
14758 | SIM_PRIMARY_TARGET=cris | |
14759 | fi | |
408a44aa | 14760 | ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in" |
36bb57e4 | 14761 | |
408a44aa MF |
14762 | ac_config_commands="$ac_config_commands cris/Makefile" |
14763 | ||
14764 | as_fn_append SIM_SUBDIRS " cris" | |
bc56166f MF |
14765 | |
14766 | ac_config_commands="$ac_config_commands depdir-cris" | |
14767 | ||
b9249c46 | 14768 | |
65dcce8f | 14769 | sim_enable_arch_cris=true |
a0e674c1 | 14770 | |
3e8bb3e9 | 14771 | ;; |
a0e674c1 | 14772 | esac |
8996c210 MF |
14773 | |
14774 | ||
14775 | ||
dc4e1fde | 14776 | |
8996c210 | 14777 | if test "$SIM_PRIMARY_TARGET" = "cris"; then : |
dc4e1fde HPN |
14778 | : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}" |
14779 | : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}" | |
14780 | : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14781 | |
14782 | fi | |
14783 | ||
14784 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS" | |
14785 | ||
65dcce8f MF |
14786 | if ${sim_enable_arch_cris}; then |
14787 | SIM_ENABLE_ARCH_cris_TRUE= | |
14788 | SIM_ENABLE_ARCH_cris_FALSE='#' | |
14789 | else | |
14790 | SIM_ENABLE_ARCH_cris_TRUE='#' | |
14791 | SIM_ENABLE_ARCH_cris_FALSE= | |
14792 | fi | |
a0e674c1 | 14793 | |
65dcce8f MF |
14794 | |
14795 | sim_enable_arch_d10v=false | |
14796 | case "${targ}" in | |
a0e674c1 MF |
14797 | all|d10v-*-*) |
14798 | if test "${targ}" = "${target}"; then | |
14799 | SIM_PRIMARY_TARGET=d10v | |
14800 | fi | |
36bb57e4 MF |
14801 | ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in" |
14802 | ||
14803 | ac_config_commands="$ac_config_commands d10v/Makefile" | |
14804 | ||
14805 | as_fn_append SIM_SUBDIRS " d10v" | |
bc56166f MF |
14806 | |
14807 | ac_config_commands="$ac_config_commands depdir-d10v" | |
14808 | ||
b9249c46 | 14809 | |
65dcce8f | 14810 | sim_enable_arch_d10v=true |
a0e674c1 | 14811 | |
3e8bb3e9 | 14812 | ;; |
a0e674c1 | 14813 | esac |
8996c210 MF |
14814 | |
14815 | ||
14816 | ||
dc4e1fde | 14817 | |
8996c210 | 14818 | if test "$SIM_PRIMARY_TARGET" = "d10v"; then : |
dc4e1fde HPN |
14819 | : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}" |
14820 | : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}" | |
14821 | : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14822 | |
14823 | fi | |
14824 | ||
14825 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V" | |
14826 | ||
65dcce8f MF |
14827 | if ${sim_enable_arch_d10v}; then |
14828 | SIM_ENABLE_ARCH_d10v_TRUE= | |
14829 | SIM_ENABLE_ARCH_d10v_FALSE='#' | |
14830 | else | |
14831 | SIM_ENABLE_ARCH_d10v_TRUE='#' | |
14832 | SIM_ENABLE_ARCH_d10v_FALSE= | |
14833 | fi | |
a0e674c1 | 14834 | |
65dcce8f MF |
14835 | |
14836 | sim_enable_arch_frv=false | |
14837 | case "${targ}" in | |
a0e674c1 MF |
14838 | all|frv-*-*) |
14839 | if test "${targ}" = "${target}"; then | |
14840 | SIM_PRIMARY_TARGET=frv | |
14841 | fi | |
408a44aa MF |
14842 | ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in" |
14843 | ||
14844 | ac_config_commands="$ac_config_commands frv/Makefile" | |
36bb57e4 | 14845 | |
408a44aa | 14846 | as_fn_append SIM_SUBDIRS " frv" |
bc56166f MF |
14847 | |
14848 | ac_config_commands="$ac_config_commands depdir-frv" | |
14849 | ||
b9249c46 | 14850 | |
65dcce8f | 14851 | sim_enable_arch_frv=true |
a0e674c1 | 14852 | |
36bb57e4 MF |
14853 | ;; |
14854 | esac | |
8996c210 MF |
14855 | |
14856 | ||
14857 | ||
dc4e1fde | 14858 | |
8996c210 | 14859 | if test "$SIM_PRIMARY_TARGET" = "frv"; then : |
dc4e1fde HPN |
14860 | : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}" |
14861 | : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}" | |
14862 | : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14863 | |
14864 | fi | |
14865 | ||
14866 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV" | |
14867 | ||
65dcce8f MF |
14868 | if ${sim_enable_arch_frv}; then |
14869 | SIM_ENABLE_ARCH_frv_TRUE= | |
14870 | SIM_ENABLE_ARCH_frv_FALSE='#' | |
14871 | else | |
14872 | SIM_ENABLE_ARCH_frv_TRUE='#' | |
14873 | SIM_ENABLE_ARCH_frv_FALSE= | |
14874 | fi | |
14875 | ||
36bb57e4 | 14876 | |
65dcce8f MF |
14877 | sim_enable_arch_ft32=false |
14878 | case "${targ}" in | |
36bb57e4 MF |
14879 | all|ft32-*-*) |
14880 | if test "${targ}" = "${target}"; then | |
14881 | SIM_PRIMARY_TARGET=ft32 | |
14882 | fi | |
14883 | ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in" | |
14884 | ||
14885 | ac_config_commands="$ac_config_commands ft32/Makefile" | |
14886 | ||
14887 | as_fn_append SIM_SUBDIRS " ft32" | |
14888 | ||
14889 | ac_config_commands="$ac_config_commands depdir-ft32" | |
14890 | ||
14891 | ||
65dcce8f | 14892 | sim_enable_arch_ft32=true |
36bb57e4 | 14893 | |
3e8bb3e9 | 14894 | ;; |
a0e674c1 | 14895 | esac |
8996c210 MF |
14896 | |
14897 | ||
14898 | ||
dc4e1fde | 14899 | |
8996c210 | 14900 | if test "$SIM_PRIMARY_TARGET" = "ft32"; then : |
dc4e1fde HPN |
14901 | : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}" |
14902 | : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}" | |
14903 | : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14904 | |
14905 | fi | |
14906 | ||
14907 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32" | |
14908 | ||
65dcce8f MF |
14909 | if ${sim_enable_arch_ft32}; then |
14910 | SIM_ENABLE_ARCH_ft32_TRUE= | |
14911 | SIM_ENABLE_ARCH_ft32_FALSE='#' | |
14912 | else | |
14913 | SIM_ENABLE_ARCH_ft32_TRUE='#' | |
14914 | SIM_ENABLE_ARCH_ft32_FALSE= | |
14915 | fi | |
14916 | ||
a0e674c1 | 14917 | |
65dcce8f MF |
14918 | sim_enable_arch_h8300=false |
14919 | case "${targ}" in | |
a0e674c1 MF |
14920 | all|h8300*-*-*) |
14921 | if test "${targ}" = "${target}"; then | |
14922 | SIM_PRIMARY_TARGET=h8300 | |
14923 | fi | |
36bb57e4 MF |
14924 | ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in" |
14925 | ||
14926 | ac_config_commands="$ac_config_commands h8300/Makefile" | |
14927 | ||
14928 | as_fn_append SIM_SUBDIRS " h8300" | |
bc56166f MF |
14929 | |
14930 | ac_config_commands="$ac_config_commands depdir-h8300" | |
14931 | ||
119da465 | 14932 | |
65dcce8f | 14933 | sim_enable_arch_h8300=true |
a0e674c1 | 14934 | |
3e8bb3e9 | 14935 | ;; |
a0e674c1 | 14936 | esac |
8996c210 MF |
14937 | |
14938 | ||
14939 | ||
dc4e1fde | 14940 | |
8996c210 | 14941 | if test "$SIM_PRIMARY_TARGET" = "h8300"; then : |
dc4e1fde HPN |
14942 | : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}" |
14943 | : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}" | |
14944 | : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14945 | |
14946 | fi | |
14947 | ||
14948 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300" | |
14949 | ||
65dcce8f MF |
14950 | if ${sim_enable_arch_h8300}; then |
14951 | SIM_ENABLE_ARCH_h8300_TRUE= | |
14952 | SIM_ENABLE_ARCH_h8300_FALSE='#' | |
14953 | else | |
14954 | SIM_ENABLE_ARCH_h8300_TRUE='#' | |
14955 | SIM_ENABLE_ARCH_h8300_FALSE= | |
14956 | fi | |
14957 | ||
a0e674c1 | 14958 | |
65dcce8f MF |
14959 | sim_enable_arch_iq2000=false |
14960 | case "${targ}" in | |
a0e674c1 MF |
14961 | all|iq2000-*-*) |
14962 | if test "${targ}" = "${target}"; then | |
14963 | SIM_PRIMARY_TARGET=iq2000 | |
14964 | fi | |
408a44aa | 14965 | ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in" |
36bb57e4 | 14966 | |
408a44aa MF |
14967 | ac_config_commands="$ac_config_commands iq2000/Makefile" |
14968 | ||
14969 | as_fn_append SIM_SUBDIRS " iq2000" | |
bc56166f MF |
14970 | |
14971 | ac_config_commands="$ac_config_commands depdir-iq2000" | |
14972 | ||
119da465 | 14973 | |
65dcce8f | 14974 | sim_enable_arch_iq2000=true |
a0e674c1 | 14975 | |
3e8bb3e9 | 14976 | ;; |
a0e674c1 | 14977 | esac |
8996c210 MF |
14978 | |
14979 | ||
14980 | ||
dc4e1fde | 14981 | |
8996c210 | 14982 | if test "$SIM_PRIMARY_TARGET" = "iq2000"; then : |
dc4e1fde HPN |
14983 | : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}" |
14984 | : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}" | |
14985 | : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
14986 | |
14987 | fi | |
14988 | ||
14989 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000" | |
14990 | ||
65dcce8f MF |
14991 | if ${sim_enable_arch_iq2000}; then |
14992 | SIM_ENABLE_ARCH_iq2000_TRUE= | |
14993 | SIM_ENABLE_ARCH_iq2000_FALSE='#' | |
14994 | else | |
14995 | SIM_ENABLE_ARCH_iq2000_TRUE='#' | |
14996 | SIM_ENABLE_ARCH_iq2000_FALSE= | |
14997 | fi | |
a0e674c1 | 14998 | |
65dcce8f MF |
14999 | |
15000 | sim_enable_arch_lm32=false | |
15001 | case "${targ}" in | |
a0e674c1 MF |
15002 | all|lm32-*-*) |
15003 | if test "${targ}" = "${target}"; then | |
15004 | SIM_PRIMARY_TARGET=lm32 | |
15005 | fi | |
408a44aa MF |
15006 | ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in" |
15007 | ||
15008 | ac_config_commands="$ac_config_commands lm32/Makefile" | |
36bb57e4 | 15009 | |
408a44aa | 15010 | as_fn_append SIM_SUBDIRS " lm32" |
bc56166f MF |
15011 | |
15012 | ac_config_commands="$ac_config_commands depdir-lm32" | |
15013 | ||
119da465 | 15014 | |
65dcce8f | 15015 | sim_enable_arch_lm32=true |
a0e674c1 | 15016 | |
3e8bb3e9 | 15017 | ;; |
a0e674c1 | 15018 | esac |
8996c210 MF |
15019 | |
15020 | ||
15021 | ||
dc4e1fde | 15022 | |
8996c210 | 15023 | if test "$SIM_PRIMARY_TARGET" = "lm32"; then : |
dc4e1fde HPN |
15024 | : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}" |
15025 | : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}" | |
15026 | : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15027 | |
15028 | fi | |
15029 | ||
15030 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32" | |
15031 | ||
65dcce8f MF |
15032 | if ${sim_enable_arch_lm32}; then |
15033 | SIM_ENABLE_ARCH_lm32_TRUE= | |
15034 | SIM_ENABLE_ARCH_lm32_FALSE='#' | |
15035 | else | |
15036 | SIM_ENABLE_ARCH_lm32_TRUE='#' | |
15037 | SIM_ENABLE_ARCH_lm32_FALSE= | |
15038 | fi | |
15039 | ||
a0e674c1 | 15040 | |
65dcce8f MF |
15041 | sim_enable_arch_m32c=false |
15042 | case "${targ}" in | |
a0e674c1 MF |
15043 | all|m32c-*-*) |
15044 | if test "${targ}" = "${target}"; then | |
15045 | SIM_PRIMARY_TARGET=m32c | |
15046 | fi | |
36bb57e4 MF |
15047 | ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in" |
15048 | ||
15049 | ac_config_commands="$ac_config_commands m32c/Makefile" | |
15050 | ||
15051 | as_fn_append SIM_SUBDIRS " m32c" | |
bc56166f MF |
15052 | |
15053 | ac_config_commands="$ac_config_commands depdir-m32c" | |
15054 | ||
87326c78 | 15055 | |
65dcce8f | 15056 | sim_enable_arch_m32c=true |
a0e674c1 | 15057 | |
3e8bb3e9 | 15058 | ;; |
a0e674c1 | 15059 | esac |
8996c210 MF |
15060 | |
15061 | ||
15062 | ||
dc4e1fde | 15063 | |
8996c210 | 15064 | if test "$SIM_PRIMARY_TARGET" = "m32c"; then : |
dc4e1fde HPN |
15065 | : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}" |
15066 | : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}" | |
15067 | : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15068 | |
15069 | fi | |
15070 | ||
15071 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C" | |
15072 | ||
65dcce8f MF |
15073 | if ${sim_enable_arch_m32c}; then |
15074 | SIM_ENABLE_ARCH_m32c_TRUE= | |
15075 | SIM_ENABLE_ARCH_m32c_FALSE='#' | |
15076 | else | |
15077 | SIM_ENABLE_ARCH_m32c_TRUE='#' | |
15078 | SIM_ENABLE_ARCH_m32c_FALSE= | |
15079 | fi | |
15080 | ||
a0e674c1 | 15081 | |
65dcce8f MF |
15082 | sim_enable_arch_m32r=false |
15083 | case "${targ}" in | |
a0e674c1 MF |
15084 | all|m32r-*-*) |
15085 | if test "${targ}" = "${target}"; then | |
15086 | SIM_PRIMARY_TARGET=m32r | |
15087 | fi | |
313c332f | 15088 | ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in" |
36bb57e4 | 15089 | |
313c332f MF |
15090 | ac_config_commands="$ac_config_commands m32r/Makefile" |
15091 | ||
15092 | as_fn_append SIM_SUBDIRS " m32r" | |
bc56166f MF |
15093 | |
15094 | ac_config_commands="$ac_config_commands depdir-m32r" | |
15095 | ||
87326c78 | 15096 | |
65dcce8f | 15097 | sim_enable_arch_m32r=true |
a0e674c1 | 15098 | |
3e8bb3e9 | 15099 | ;; |
a0e674c1 | 15100 | esac |
8996c210 MF |
15101 | |
15102 | ||
15103 | ||
dc4e1fde | 15104 | |
8996c210 | 15105 | if test "$SIM_PRIMARY_TARGET" = "m32r"; then : |
dc4e1fde HPN |
15106 | : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}" |
15107 | : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}" | |
15108 | : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15109 | |
15110 | fi | |
15111 | ||
15112 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R" | |
15113 | ||
65dcce8f MF |
15114 | if ${sim_enable_arch_m32r}; then |
15115 | SIM_ENABLE_ARCH_m32r_TRUE= | |
15116 | SIM_ENABLE_ARCH_m32r_FALSE='#' | |
15117 | else | |
15118 | SIM_ENABLE_ARCH_m32r_TRUE='#' | |
15119 | SIM_ENABLE_ARCH_m32r_FALSE= | |
15120 | fi | |
a0e674c1 | 15121 | |
65dcce8f MF |
15122 | |
15123 | sim_enable_arch_m68hc11=false | |
15124 | case "${targ}" in | |
a0e674c1 MF |
15125 | all|m68hc11-*-*|m6811-*-*) |
15126 | if test "${targ}" = "${target}"; then | |
15127 | SIM_PRIMARY_TARGET=m68hc11 | |
15128 | fi | |
36bb57e4 MF |
15129 | ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in" |
15130 | ||
15131 | ac_config_commands="$ac_config_commands m68hc11/Makefile" | |
15132 | ||
15133 | as_fn_append SIM_SUBDIRS " m68hc11" | |
bc56166f MF |
15134 | |
15135 | ac_config_commands="$ac_config_commands depdir-m68hc11" | |
15136 | ||
87326c78 | 15137 | |
65dcce8f | 15138 | sim_enable_arch_m68hc11=true |
a0e674c1 | 15139 | |
3e8bb3e9 | 15140 | ;; |
a0e674c1 | 15141 | esac |
8996c210 MF |
15142 | |
15143 | ||
15144 | ||
dc4e1fde | 15145 | |
8996c210 | 15146 | if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then : |
dc4e1fde HPN |
15147 | : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}" |
15148 | : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}" | |
15149 | : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15150 | |
15151 | fi | |
15152 | ||
15153 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11" | |
15154 | ||
65dcce8f MF |
15155 | if ${sim_enable_arch_m68hc11}; then |
15156 | SIM_ENABLE_ARCH_m68hc11_TRUE= | |
15157 | SIM_ENABLE_ARCH_m68hc11_FALSE='#' | |
15158 | else | |
15159 | SIM_ENABLE_ARCH_m68hc11_TRUE='#' | |
15160 | SIM_ENABLE_ARCH_m68hc11_FALSE= | |
15161 | fi | |
a0e674c1 | 15162 | |
65dcce8f MF |
15163 | |
15164 | sim_enable_arch_mcore=false | |
15165 | case "${targ}" in | |
a0e674c1 MF |
15166 | all|mcore-*-*) |
15167 | if test "${targ}" = "${target}"; then | |
15168 | SIM_PRIMARY_TARGET=mcore | |
15169 | fi | |
36bb57e4 MF |
15170 | ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in" |
15171 | ||
15172 | ac_config_commands="$ac_config_commands mcore/Makefile" | |
15173 | ||
15174 | as_fn_append SIM_SUBDIRS " mcore" | |
bc56166f MF |
15175 | |
15176 | ac_config_commands="$ac_config_commands depdir-mcore" | |
15177 | ||
119da465 | 15178 | |
65dcce8f | 15179 | sim_enable_arch_mcore=true |
a0e674c1 | 15180 | |
3e8bb3e9 | 15181 | ;; |
a0e674c1 | 15182 | esac |
8996c210 MF |
15183 | |
15184 | ||
15185 | ||
dc4e1fde | 15186 | |
8996c210 | 15187 | if test "$SIM_PRIMARY_TARGET" = "mcore"; then : |
dc4e1fde HPN |
15188 | : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}" |
15189 | : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}" | |
15190 | : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15191 | |
15192 | fi | |
15193 | ||
15194 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE" | |
15195 | ||
65dcce8f MF |
15196 | if ${sim_enable_arch_mcore}; then |
15197 | SIM_ENABLE_ARCH_mcore_TRUE= | |
15198 | SIM_ENABLE_ARCH_mcore_FALSE='#' | |
15199 | else | |
15200 | SIM_ENABLE_ARCH_mcore_TRUE='#' | |
15201 | SIM_ENABLE_ARCH_mcore_FALSE= | |
15202 | fi | |
15203 | ||
a0e674c1 | 15204 | |
65dcce8f MF |
15205 | sim_enable_arch_microblaze=false |
15206 | case "${targ}" in | |
99aedb62 | 15207 | all|microblaze*-*-*) |
a0e674c1 MF |
15208 | if test "${targ}" = "${target}"; then |
15209 | SIM_PRIMARY_TARGET=microblaze | |
15210 | fi | |
36bb57e4 MF |
15211 | ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in" |
15212 | ||
15213 | ac_config_commands="$ac_config_commands microblaze/Makefile" | |
15214 | ||
15215 | as_fn_append SIM_SUBDIRS " microblaze" | |
bc56166f MF |
15216 | |
15217 | ac_config_commands="$ac_config_commands depdir-microblaze" | |
15218 | ||
119da465 | 15219 | |
65dcce8f | 15220 | sim_enable_arch_microblaze=true |
a0e674c1 | 15221 | |
3e8bb3e9 | 15222 | ;; |
a0e674c1 | 15223 | esac |
8996c210 MF |
15224 | |
15225 | ||
15226 | ||
dc4e1fde | 15227 | |
8996c210 | 15228 | if test "$SIM_PRIMARY_TARGET" = "microblaze"; then : |
dc4e1fde HPN |
15229 | : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}" |
15230 | : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}" | |
15231 | : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15232 | |
15233 | fi | |
15234 | ||
15235 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE" | |
15236 | ||
65dcce8f MF |
15237 | if ${sim_enable_arch_microblaze}; then |
15238 | SIM_ENABLE_ARCH_microblaze_TRUE= | |
15239 | SIM_ENABLE_ARCH_microblaze_FALSE='#' | |
15240 | else | |
15241 | SIM_ENABLE_ARCH_microblaze_TRUE='#' | |
15242 | SIM_ENABLE_ARCH_microblaze_FALSE= | |
15243 | fi | |
15244 | ||
a0e674c1 | 15245 | |
65dcce8f MF |
15246 | sim_enable_arch_mips=false |
15247 | case "${targ}" in | |
a0e674c1 MF |
15248 | all|mips*-*-*) |
15249 | if test "${targ}" = "${target}"; then | |
15250 | SIM_PRIMARY_TARGET=mips | |
15251 | fi | |
36bb57e4 MF |
15252 | subdirs="$subdirs mips" |
15253 | ||
bc56166f MF |
15254 | |
15255 | ac_config_commands="$ac_config_commands depdir-mips" | |
15256 | ||
119da465 | 15257 | |
65dcce8f | 15258 | sim_enable_arch_mips=true |
3e8bb3e9 MF |
15259 | sim_igen=yes |
15260 | ;; | |
a0e674c1 | 15261 | esac |
8996c210 MF |
15262 | |
15263 | ||
15264 | ||
dc4e1fde | 15265 | |
8996c210 | 15266 | if test "$SIM_PRIMARY_TARGET" = "mips"; then : |
dc4e1fde HPN |
15267 | : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}" |
15268 | : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}" | |
15269 | : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15270 | |
15271 | fi | |
15272 | ||
15273 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS" | |
15274 | ||
65dcce8f MF |
15275 | if ${sim_enable_arch_mips}; then |
15276 | SIM_ENABLE_ARCH_mips_TRUE= | |
15277 | SIM_ENABLE_ARCH_mips_FALSE='#' | |
15278 | else | |
15279 | SIM_ENABLE_ARCH_mips_TRUE='#' | |
15280 | SIM_ENABLE_ARCH_mips_FALSE= | |
15281 | fi | |
15282 | ||
a0e674c1 | 15283 | |
65dcce8f MF |
15284 | sim_enable_arch_mn10300=false |
15285 | case "${targ}" in | |
a0e674c1 MF |
15286 | all|mn10300*-*-*) |
15287 | if test "${targ}" = "${target}"; then | |
15288 | SIM_PRIMARY_TARGET=mn10300 | |
15289 | fi | |
36bb57e4 MF |
15290 | subdirs="$subdirs mn10300" |
15291 | ||
bc56166f MF |
15292 | |
15293 | ac_config_commands="$ac_config_commands depdir-mn10300" | |
15294 | ||
119da465 | 15295 | |
65dcce8f | 15296 | sim_enable_arch_mn10300=true |
3e8bb3e9 MF |
15297 | sim_igen=yes |
15298 | ;; | |
a0e674c1 | 15299 | esac |
8996c210 MF |
15300 | |
15301 | ||
15302 | ||
dc4e1fde | 15303 | |
8996c210 | 15304 | if test "$SIM_PRIMARY_TARGET" = "mn10300"; then : |
dc4e1fde HPN |
15305 | : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}" |
15306 | : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}" | |
15307 | : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15308 | |
15309 | fi | |
15310 | ||
15311 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300" | |
15312 | ||
65dcce8f MF |
15313 | if ${sim_enable_arch_mn10300}; then |
15314 | SIM_ENABLE_ARCH_mn10300_TRUE= | |
15315 | SIM_ENABLE_ARCH_mn10300_FALSE='#' | |
15316 | else | |
15317 | SIM_ENABLE_ARCH_mn10300_TRUE='#' | |
15318 | SIM_ENABLE_ARCH_mn10300_FALSE= | |
15319 | fi | |
a0e674c1 | 15320 | |
65dcce8f MF |
15321 | |
15322 | sim_enable_arch_moxie=false | |
15323 | case "${targ}" in | |
a0e674c1 MF |
15324 | all|moxie-*-*) |
15325 | if test "${targ}" = "${target}"; then | |
15326 | SIM_PRIMARY_TARGET=moxie | |
15327 | fi | |
36bb57e4 MF |
15328 | ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in" |
15329 | ||
15330 | ac_config_commands="$ac_config_commands moxie/Makefile" | |
15331 | ||
15332 | as_fn_append SIM_SUBDIRS " moxie" | |
bc56166f MF |
15333 | |
15334 | ac_config_commands="$ac_config_commands depdir-moxie" | |
15335 | ||
119da465 | 15336 | |
65dcce8f | 15337 | sim_enable_arch_moxie=true |
a0e674c1 | 15338 | |
3e8bb3e9 | 15339 | ;; |
a0e674c1 | 15340 | esac |
8996c210 MF |
15341 | |
15342 | ||
15343 | ||
dc4e1fde | 15344 | |
8996c210 | 15345 | if test "$SIM_PRIMARY_TARGET" = "moxie"; then : |
dc4e1fde HPN |
15346 | : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}" |
15347 | : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}" | |
15348 | : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15349 | |
15350 | fi | |
15351 | ||
15352 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE" | |
15353 | ||
65dcce8f MF |
15354 | if ${sim_enable_arch_moxie}; then |
15355 | SIM_ENABLE_ARCH_moxie_TRUE= | |
15356 | SIM_ENABLE_ARCH_moxie_FALSE='#' | |
15357 | else | |
15358 | SIM_ENABLE_ARCH_moxie_TRUE='#' | |
15359 | SIM_ENABLE_ARCH_moxie_FALSE= | |
15360 | fi | |
a0e674c1 | 15361 | |
65dcce8f MF |
15362 | |
15363 | sim_enable_arch_msp430=false | |
15364 | case "${targ}" in | |
a0e674c1 MF |
15365 | all|msp430*-*-*) |
15366 | if test "${targ}" = "${target}"; then | |
15367 | SIM_PRIMARY_TARGET=msp430 | |
15368 | fi | |
36bb57e4 MF |
15369 | ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in" |
15370 | ||
15371 | ac_config_commands="$ac_config_commands msp430/Makefile" | |
15372 | ||
15373 | as_fn_append SIM_SUBDIRS " msp430" | |
bc56166f MF |
15374 | |
15375 | ac_config_commands="$ac_config_commands depdir-msp430" | |
15376 | ||
119da465 | 15377 | |
65dcce8f | 15378 | sim_enable_arch_msp430=true |
a0e674c1 | 15379 | |
3e8bb3e9 | 15380 | ;; |
a0e674c1 | 15381 | esac |
8996c210 MF |
15382 | |
15383 | ||
15384 | ||
dc4e1fde | 15385 | |
8996c210 | 15386 | if test "$SIM_PRIMARY_TARGET" = "msp430"; then : |
dc4e1fde HPN |
15387 | : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}" |
15388 | : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}" | |
15389 | : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15390 | |
15391 | fi | |
15392 | ||
15393 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430" | |
15394 | ||
65dcce8f MF |
15395 | if ${sim_enable_arch_msp430}; then |
15396 | SIM_ENABLE_ARCH_msp430_TRUE= | |
15397 | SIM_ENABLE_ARCH_msp430_FALSE='#' | |
15398 | else | |
15399 | SIM_ENABLE_ARCH_msp430_TRUE='#' | |
15400 | SIM_ENABLE_ARCH_msp430_FALSE= | |
15401 | fi | |
15402 | ||
a0e674c1 | 15403 | |
65dcce8f MF |
15404 | sim_enable_arch_or1k=false |
15405 | case "${targ}" in | |
99aedb62 | 15406 | all|or1k*-*-*) |
a0e674c1 MF |
15407 | if test "${targ}" = "${target}"; then |
15408 | SIM_PRIMARY_TARGET=or1k | |
15409 | fi | |
36bb57e4 MF |
15410 | subdirs="$subdirs or1k" |
15411 | ||
bc56166f MF |
15412 | |
15413 | ac_config_commands="$ac_config_commands depdir-or1k" | |
15414 | ||
119da465 | 15415 | |
65dcce8f | 15416 | sim_enable_arch_or1k=true |
a0e674c1 | 15417 | |
99aedb62 MF |
15418 | ;; |
15419 | esac | |
8996c210 MF |
15420 | |
15421 | ||
15422 | ||
dc4e1fde | 15423 | |
8996c210 | 15424 | if test "$SIM_PRIMARY_TARGET" = "or1k"; then : |
dc4e1fde HPN |
15425 | : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}" |
15426 | : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}" | |
15427 | : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15428 | |
15429 | fi | |
15430 | ||
15431 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K" | |
15432 | ||
65dcce8f MF |
15433 | if ${sim_enable_arch_or1k}; then |
15434 | SIM_ENABLE_ARCH_or1k_TRUE= | |
15435 | SIM_ENABLE_ARCH_or1k_FALSE='#' | |
15436 | else | |
15437 | SIM_ENABLE_ARCH_or1k_TRUE='#' | |
15438 | SIM_ENABLE_ARCH_or1k_FALSE= | |
15439 | fi | |
15440 | ||
99aedb62 | 15441 | |
65dcce8f MF |
15442 | sim_enable_arch_ppc=false |
15443 | case "${targ}" in | |
99aedb62 MF |
15444 | all|powerpc*-*-*) |
15445 | if test "${targ}" = "${target}"; then | |
15446 | SIM_PRIMARY_TARGET=ppc | |
15447 | fi | |
15448 | subdirs="$subdirs ppc" | |
15449 | ||
15450 | ||
15451 | ac_config_commands="$ac_config_commands depdir-ppc" | |
15452 | ||
15453 | ||
65dcce8f | 15454 | sim_enable_arch_ppc=true |
99aedb62 | 15455 | |
3e8bb3e9 | 15456 | ;; |
a0e674c1 | 15457 | esac |
8996c210 MF |
15458 | |
15459 | ||
15460 | ||
dc4e1fde | 15461 | |
8996c210 | 15462 | if test "$SIM_PRIMARY_TARGET" = "ppc"; then : |
dc4e1fde HPN |
15463 | : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}" |
15464 | : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}" | |
15465 | : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15466 | |
15467 | fi | |
15468 | ||
15469 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC" | |
15470 | ||
65dcce8f MF |
15471 | if ${sim_enable_arch_ppc}; then |
15472 | SIM_ENABLE_ARCH_ppc_TRUE= | |
15473 | SIM_ENABLE_ARCH_ppc_FALSE='#' | |
15474 | else | |
15475 | SIM_ENABLE_ARCH_ppc_TRUE='#' | |
15476 | SIM_ENABLE_ARCH_ppc_FALSE= | |
15477 | fi | |
15478 | ||
a0e674c1 | 15479 | |
65dcce8f MF |
15480 | sim_enable_arch_pru=false |
15481 | case "${targ}" in | |
a0e674c1 MF |
15482 | all|pru*-*-*) |
15483 | if test "${targ}" = "${target}"; then | |
15484 | SIM_PRIMARY_TARGET=pru | |
15485 | fi | |
36bb57e4 MF |
15486 | ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in" |
15487 | ||
15488 | ac_config_commands="$ac_config_commands pru/Makefile" | |
15489 | ||
15490 | as_fn_append SIM_SUBDIRS " pru" | |
bc56166f MF |
15491 | |
15492 | ac_config_commands="$ac_config_commands depdir-pru" | |
15493 | ||
119da465 | 15494 | |
65dcce8f | 15495 | sim_enable_arch_pru=true |
a0e674c1 | 15496 | |
3e8bb3e9 | 15497 | ;; |
a0e674c1 | 15498 | esac |
8996c210 MF |
15499 | |
15500 | ||
15501 | ||
dc4e1fde | 15502 | |
8996c210 | 15503 | if test "$SIM_PRIMARY_TARGET" = "pru"; then : |
dc4e1fde HPN |
15504 | : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}" |
15505 | : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}" | |
15506 | : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15507 | |
15508 | fi | |
15509 | ||
15510 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU" | |
15511 | ||
65dcce8f MF |
15512 | if ${sim_enable_arch_pru}; then |
15513 | SIM_ENABLE_ARCH_pru_TRUE= | |
15514 | SIM_ENABLE_ARCH_pru_FALSE='#' | |
15515 | else | |
15516 | SIM_ENABLE_ARCH_pru_TRUE='#' | |
15517 | SIM_ENABLE_ARCH_pru_FALSE= | |
15518 | fi | |
a0e674c1 | 15519 | |
65dcce8f MF |
15520 | |
15521 | sim_enable_arch_riscv=false | |
15522 | case "${targ}" in | |
a0e674c1 MF |
15523 | all|riscv*-*-*) |
15524 | if test "${targ}" = "${target}"; then | |
15525 | SIM_PRIMARY_TARGET=riscv | |
15526 | fi | |
36bb57e4 MF |
15527 | subdirs="$subdirs riscv" |
15528 | ||
bc56166f MF |
15529 | |
15530 | ac_config_commands="$ac_config_commands depdir-riscv" | |
15531 | ||
119da465 | 15532 | |
65dcce8f | 15533 | sim_enable_arch_riscv=true |
a0e674c1 | 15534 | |
3e8bb3e9 | 15535 | ;; |
a0e674c1 | 15536 | esac |
8996c210 MF |
15537 | |
15538 | ||
15539 | ||
dc4e1fde | 15540 | |
8996c210 | 15541 | if test "$SIM_PRIMARY_TARGET" = "riscv"; then : |
dc4e1fde HPN |
15542 | : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}" |
15543 | : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}" | |
15544 | : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15545 | |
15546 | fi | |
15547 | ||
15548 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV" | |
15549 | ||
65dcce8f MF |
15550 | if ${sim_enable_arch_riscv}; then |
15551 | SIM_ENABLE_ARCH_riscv_TRUE= | |
15552 | SIM_ENABLE_ARCH_riscv_FALSE='#' | |
15553 | else | |
15554 | SIM_ENABLE_ARCH_riscv_TRUE='#' | |
15555 | SIM_ENABLE_ARCH_riscv_FALSE= | |
15556 | fi | |
15557 | ||
a0e674c1 | 15558 | |
65dcce8f MF |
15559 | sim_enable_arch_rl78=false |
15560 | case "${targ}" in | |
a0e674c1 MF |
15561 | all|rl78-*-*) |
15562 | if test "${targ}" = "${target}"; then | |
15563 | SIM_PRIMARY_TARGET=rl78 | |
15564 | fi | |
36bb57e4 MF |
15565 | ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in" |
15566 | ||
15567 | ac_config_commands="$ac_config_commands rl78/Makefile" | |
15568 | ||
15569 | as_fn_append SIM_SUBDIRS " rl78" | |
bc56166f MF |
15570 | |
15571 | ac_config_commands="$ac_config_commands depdir-rl78" | |
15572 | ||
f46e4eb7 | 15573 | |
65dcce8f | 15574 | sim_enable_arch_rl78=true |
a0e674c1 | 15575 | |
3e8bb3e9 | 15576 | ;; |
a0e674c1 | 15577 | esac |
8996c210 MF |
15578 | |
15579 | ||
15580 | ||
dc4e1fde | 15581 | |
8996c210 | 15582 | if test "$SIM_PRIMARY_TARGET" = "rl78"; then : |
dc4e1fde HPN |
15583 | : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}" |
15584 | : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}" | |
15585 | : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15586 | |
15587 | fi | |
15588 | ||
15589 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78" | |
15590 | ||
65dcce8f MF |
15591 | if ${sim_enable_arch_rl78}; then |
15592 | SIM_ENABLE_ARCH_rl78_TRUE= | |
15593 | SIM_ENABLE_ARCH_rl78_FALSE='#' | |
15594 | else | |
15595 | SIM_ENABLE_ARCH_rl78_TRUE='#' | |
15596 | SIM_ENABLE_ARCH_rl78_FALSE= | |
15597 | fi | |
15598 | ||
a0e674c1 | 15599 | |
65dcce8f MF |
15600 | sim_enable_arch_rx=false |
15601 | case "${targ}" in | |
a0e674c1 MF |
15602 | all|rx-*-*) |
15603 | if test "${targ}" = "${target}"; then | |
15604 | SIM_PRIMARY_TARGET=rx | |
15605 | fi | |
e173c80f | 15606 | ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in" |
36bb57e4 | 15607 | |
e173c80f MF |
15608 | ac_config_commands="$ac_config_commands rx/Makefile" |
15609 | ||
15610 | as_fn_append SIM_SUBDIRS " rx" | |
bc56166f MF |
15611 | |
15612 | ac_config_commands="$ac_config_commands depdir-rx" | |
15613 | ||
f46e4eb7 | 15614 | |
65dcce8f | 15615 | sim_enable_arch_rx=true |
a0e674c1 | 15616 | |
3e8bb3e9 | 15617 | ;; |
a0e674c1 | 15618 | esac |
8996c210 MF |
15619 | |
15620 | ||
15621 | ||
dc4e1fde | 15622 | |
8996c210 | 15623 | if test "$SIM_PRIMARY_TARGET" = "rx"; then : |
dc4e1fde HPN |
15624 | : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}" |
15625 | : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}" | |
15626 | : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15627 | |
15628 | fi | |
15629 | ||
15630 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX" | |
15631 | ||
65dcce8f MF |
15632 | if ${sim_enable_arch_rx}; then |
15633 | SIM_ENABLE_ARCH_rx_TRUE= | |
15634 | SIM_ENABLE_ARCH_rx_FALSE='#' | |
15635 | else | |
15636 | SIM_ENABLE_ARCH_rx_TRUE='#' | |
15637 | SIM_ENABLE_ARCH_rx_FALSE= | |
15638 | fi | |
a0e674c1 | 15639 | |
65dcce8f MF |
15640 | |
15641 | sim_enable_arch_sh=false | |
15642 | case "${targ}" in | |
a0e674c1 MF |
15643 | all|sh*-*-*) |
15644 | if test "${targ}" = "${target}"; then | |
15645 | SIM_PRIMARY_TARGET=sh | |
15646 | fi | |
36bb57e4 MF |
15647 | ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in" |
15648 | ||
15649 | ac_config_commands="$ac_config_commands sh/Makefile" | |
15650 | ||
15651 | as_fn_append SIM_SUBDIRS " sh" | |
bc56166f MF |
15652 | |
15653 | ac_config_commands="$ac_config_commands depdir-sh" | |
15654 | ||
f46e4eb7 | 15655 | |
65dcce8f | 15656 | sim_enable_arch_sh=true |
a0e674c1 | 15657 | |
3e8bb3e9 | 15658 | ;; |
a0e674c1 | 15659 | esac |
8996c210 MF |
15660 | |
15661 | ||
15662 | ||
dc4e1fde | 15663 | |
8996c210 | 15664 | if test "$SIM_PRIMARY_TARGET" = "sh"; then : |
dc4e1fde HPN |
15665 | : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}" |
15666 | : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}" | |
15667 | : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15668 | |
15669 | fi | |
15670 | ||
15671 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH" | |
15672 | ||
65dcce8f MF |
15673 | if ${sim_enable_arch_sh}; then |
15674 | SIM_ENABLE_ARCH_sh_TRUE= | |
15675 | SIM_ENABLE_ARCH_sh_FALSE='#' | |
15676 | else | |
15677 | SIM_ENABLE_ARCH_sh_TRUE='#' | |
15678 | SIM_ENABLE_ARCH_sh_FALSE= | |
15679 | fi | |
a0e674c1 | 15680 | |
65dcce8f MF |
15681 | |
15682 | sim_enable_arch_erc32=false | |
15683 | case "${targ}" in | |
99aedb62 | 15684 | all|sparc-*-*) |
a0e674c1 MF |
15685 | if test "${targ}" = "${target}"; then |
15686 | SIM_PRIMARY_TARGET=erc32 | |
15687 | fi | |
5d0b3088 MF |
15688 | ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in" |
15689 | ||
15690 | ac_config_commands="$ac_config_commands erc32/Makefile" | |
36bb57e4 | 15691 | |
5d0b3088 | 15692 | as_fn_append SIM_SUBDIRS " erc32" |
bc56166f MF |
15693 | |
15694 | ac_config_commands="$ac_config_commands depdir-erc32" | |
15695 | ||
119da465 | 15696 | |
65dcce8f | 15697 | sim_enable_arch_erc32=true |
a0e674c1 | 15698 | |
3e8bb3e9 | 15699 | ;; |
a0e674c1 | 15700 | esac |
8996c210 MF |
15701 | |
15702 | ||
15703 | ||
dc4e1fde | 15704 | |
8996c210 | 15705 | if test "$SIM_PRIMARY_TARGET" = "erc32"; then : |
dc4e1fde HPN |
15706 | : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}" |
15707 | : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}" | |
15708 | : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15709 | |
15710 | fi | |
15711 | ||
15712 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32" | |
15713 | ||
65dcce8f MF |
15714 | if ${sim_enable_arch_erc32}; then |
15715 | SIM_ENABLE_ARCH_erc32_TRUE= | |
15716 | SIM_ENABLE_ARCH_erc32_FALSE='#' | |
15717 | else | |
15718 | SIM_ENABLE_ARCH_erc32_TRUE='#' | |
15719 | SIM_ENABLE_ARCH_erc32_FALSE= | |
15720 | fi | |
15721 | ||
a0e674c1 | 15722 | |
65dcce8f MF |
15723 | sim_enable_arch_v850=false |
15724 | case "${targ}" in | |
a0e674c1 MF |
15725 | all|v850*-*-*) |
15726 | if test "${targ}" = "${target}"; then | |
15727 | SIM_PRIMARY_TARGET=v850 | |
15728 | fi | |
36bb57e4 MF |
15729 | subdirs="$subdirs v850" |
15730 | ||
bc56166f MF |
15731 | |
15732 | ac_config_commands="$ac_config_commands depdir-v850" | |
15733 | ||
119da465 | 15734 | |
65dcce8f | 15735 | sim_enable_arch_v850=true |
3e8bb3e9 MF |
15736 | sim_igen=yes |
15737 | ;; | |
15738 | esac | |
8996c210 MF |
15739 | |
15740 | ||
15741 | ||
dc4e1fde | 15742 | |
8996c210 | 15743 | if test "$SIM_PRIMARY_TARGET" = "v850"; then : |
dc4e1fde HPN |
15744 | : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}" |
15745 | : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}" | |
15746 | : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}" | |
8996c210 MF |
15747 | |
15748 | fi | |
15749 | ||
15750 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850" | |
15751 | ||
65dcce8f MF |
15752 | if ${sim_enable_arch_v850}; then |
15753 | SIM_ENABLE_ARCH_v850_TRUE= | |
15754 | SIM_ENABLE_ARCH_v850_FALSE='#' | |
15755 | else | |
15756 | SIM_ENABLE_ARCH_v850_TRUE='#' | |
15757 | SIM_ENABLE_ARCH_v850_FALSE= | |
15758 | fi | |
15759 | ||
a0e674c1 MF |
15760 | |
15761 | done | |
26da232c MF |
15762 | |
15763 | if test "x${enable_example_sims}" = xyes; then | |
8996c210 MF |
15764 | |
15765 | ||
15766 | ||
dc4e1fde HPN |
15767 | |
15768 | : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}" | |
15769 | : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}" | |
8996c210 MF |
15770 | : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}" |
15771 | ||
15772 | as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR" | |
15773 | ||
36bb57e4 MF |
15774 | ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in" |
15775 | ||
15776 | ac_config_commands="$ac_config_commands example-synacor/Makefile" | |
15777 | ||
15778 | as_fn_append SIM_SUBDIRS " example-synacor" | |
bc56166f MF |
15779 | |
15780 | ac_config_commands="$ac_config_commands depdir-example-synacor" | |
15781 | ||
26da232c MF |
15782 | |
15783 | fi | |
b6b1c790 MF |
15784 | fi |
15785 | if test "$sim_igen" = "yes"; then | |
15786 | SIM_ENABLE_IGEN_TRUE= | |
15787 | SIM_ENABLE_IGEN_FALSE='#' | |
15788 | else | |
15789 | SIM_ENABLE_IGEN_TRUE='#' | |
15790 | SIM_ENABLE_IGEN_FALSE= | |
c906108c SS |
15791 | fi |
15792 | ||
fb2c495f MF |
15793 | if test -n "$SIM_SUBDIRS"; then |
15794 | ENABLE_SIM_TRUE= | |
15795 | ENABLE_SIM_FALSE='#' | |
15796 | else | |
15797 | ENABLE_SIM_TRUE='#' | |
15798 | ENABLE_SIM_FALSE= | |
15799 | fi | |
15800 | ||
b6b1c790 | 15801 | |
ba307cdd MF |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5 |
15803 | $as_echo_n "checking whether to force sim alignment... " >&6; } | |
15804 | sim_alignment= | |
15805 | # Check whether --enable-sim-alignment was given. | |
15806 | if test "${enable_sim_alignment+set}" = set; then : | |
15807 | enableval=$enable_sim_alignment; case "${enableval}" in | |
15808 | yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";; | |
15809 | no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";; | |
15810 | forced | FORCED) sim_alignment="FORCED_ALIGNMENT";; | |
15811 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;; | |
15812 | esac | |
15813 | fi | |
15814 | ||
15815 | cat >>confdefs.h <<_ACEOF | |
15816 | #define WITH_ALIGNMENT ${sim_alignment:-0} | |
15817 | _ACEOF | |
15818 | ||
15819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
15820 | $as_echo "${sim_alignment:-no}" >&6; } | |
15821 | ||
dba333c1 MF |
15822 | |
15823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5 | |
15824 | $as_echo_n "checking whether to enable sim asserts... " >&6; } | |
15825 | sim_assert="1" | |
15826 | # Check whether --enable-sim-assert was given. | |
15827 | if test "${enable_sim_assert+set}" = set; then : | |
15828 | enableval=$enable_sim_assert; case "${enableval}" in | |
15829 | yes) sim_assert="1";; | |
15830 | no) sim_assert="0";; | |
15831 | *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;; | |
15832 | esac | |
15833 | fi | |
15834 | ||
15835 | cat >>confdefs.h <<_ACEOF | |
15836 | #define WITH_ASSERT $sim_assert | |
15837 | _ACEOF | |
15838 | ||
15839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5 | |
15840 | $as_echo "$sim_assert" >&6; } | |
15841 | ||
1bf5c342 MF |
15842 | |
15843 | cgen_maint=no | |
15844 | cgen=guile | |
15845 | cgendir='$(srcdir)/../../cgen' | |
15846 | # Check whether --enable-cgen-maint was given. | |
15847 | if test "${enable_cgen_maint+set}" = set; then : | |
15848 | enableval=$enable_cgen_maint; case "${enableval}" in | |
15849 | yes) cgen_maint=yes ;; | |
15850 | no) cgen_maint=no ;; | |
15851 | *) | |
15852 | # Argument is a directory where cgen can be found. In some | |
15853 | # future world cgen could be installable, but right now this | |
15854 | # is not the case. Instead we assume the directory is a path | |
15855 | # to the cgen source tree. | |
15856 | cgen_maint=yes | |
15857 | if test -r ${enableval}/iformat.scm; then | |
15858 | # This looks like a cgen source tree. | |
15859 | cgendir=${enableval} | |
15860 | else | |
15861 | as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 | |
15862 | fi | |
15863 | ;; | |
15864 | esac | |
15865 | fi | |
15866 | if test x${cgen_maint} != xno ; then | |
15867 | CGEN_MAINT='' | |
15868 | else | |
15869 | CGEN_MAINT='#' | |
15870 | fi | |
15871 | ||
15872 | ||
15873 | ||
15874 | ||
04381273 MF |
15875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5 |
15876 | $as_echo_n "checking for sim debug setting... " >&6; } | |
15877 | sim_debug="0" | |
15878 | # Check whether --enable-sim-debug was given. | |
15879 | if test "${enable_sim_debug+set}" = set; then : | |
15880 | enableval=$enable_sim_debug; case "${enableval}" in | |
15881 | yes) sim_debug="7";; | |
15882 | no) sim_debug="0";; | |
15883 | *) sim_debug="($enableval)";; | |
15884 | esac | |
15885 | fi | |
15886 | if test "$sim_debug" != "0"; then | |
15887 | ||
15888 | cat >>confdefs.h <<_ACEOF | |
15889 | #define DEBUG $sim_debug | |
15890 | _ACEOF | |
15891 | ||
15892 | fi | |
15893 | ||
15894 | cat >>confdefs.h <<_ACEOF | |
15895 | #define WITH_DEBUG $sim_debug | |
15896 | _ACEOF | |
15897 | ||
15898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5 | |
15899 | $as_echo "$sim_debug" >&6; } | |
f9a4d543 MF |
15900 | |
15901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5 | |
15902 | $as_echo_n "checking whether to force sim endianness... " >&6; } | |
15903 | sim_endian= | |
15904 | # Check whether --enable-sim-endian was given. | |
15905 | if test "${enable_sim_endian+set}" = set; then : | |
15906 | enableval=$enable_sim_endian; case "${enableval}" in | |
15907 | b*|B*) sim_endian="BFD_ENDIAN_BIG";; | |
15908 | l*|L*) sim_endian="BFD_ENDIAN_LITTLE";; | |
15909 | yes | no) ;; | |
15910 | *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;; | |
15911 | esac | |
15912 | fi | |
15913 | ||
15914 | cat >>confdefs.h <<_ACEOF | |
15915 | #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN} | |
15916 | _ACEOF | |
15917 | ||
15918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5 | |
15919 | $as_echo "${sim_alignment:-no}" >&6; } | |
04381273 | 15920 | |
dba333c1 | 15921 | |
5ea45474 MF |
15922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5 |
15923 | $as_echo_n "checking default sim environment setting... " >&6; } | |
15924 | sim_environment="ALL_ENVIRONMENT" | |
15925 | # Check whether --enable-sim-environment was given. | |
15926 | if test "${enable_sim_environment+set}" = set; then : | |
15927 | enableval=$enable_sim_environment; case "${enableval}" in | |
15928 | all | ALL) sim_environment="ALL_ENVIRONMENT";; | |
15929 | user | USER) sim_environment="USER_ENVIRONMENT";; | |
15930 | virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";; | |
15931 | operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";; | |
15932 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;; | |
15933 | esac | |
15934 | fi | |
15935 | ||
15936 | cat >>confdefs.h <<_ACEOF | |
15937 | #define WITH_ENVIRONMENT $sim_environment | |
15938 | _ACEOF | |
15939 | ||
15940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5 | |
15941 | $as_echo "$sim_environment" >&6; } | |
15942 | ||
456ef1c1 MF |
15943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5 |
15944 | $as_echo_n "checking for sim hardware settings... " >&6; } | |
15945 | # Check whether --enable-sim-hardware was given. | |
15946 | if test "${enable_sim_hardware+set}" = set; then : | |
15947 | enableval=$enable_sim_hardware; | |
15948 | else | |
15949 | enable_sim_hardware="yes" | |
15950 | fi | |
15951 | ||
15952 | sim_hw_sockser= | |
15953 | if test "$enable_sim_hardware" = no; then | |
15954 | sim_hw_cflags="-DWITH_HW=0" | |
15955 | elif test "$enable_sim_hardware" = yes; then | |
15956 | sim_hw_cflags="-DWITH_HW=1" | |
03de8f26 MF |
15957 | sim_hw_sockser="dv-sockser.o" |
15958 | sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER" | |
456ef1c1 MF |
15959 | else |
15960 | as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5 | |
15961 | fi | |
15962 | if test "$enable_sim_hardware" = "yes"; then | |
15963 | SIM_ENABLE_HW_TRUE= | |
15964 | SIM_ENABLE_HW_FALSE='#' | |
15965 | else | |
15966 | SIM_ENABLE_HW_TRUE='#' | |
15967 | SIM_ENABLE_HW_FALSE= | |
15968 | fi | |
15969 | ||
15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5 | |
15971 | $as_echo "${enable_sim_hardware}" >&6; } | |
15972 | ||
15973 | ||
15974 | ||
d73f39ee MF |
15975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5 |
15976 | $as_echo_n "checking sim inline settings... " >&6; } | |
15977 | sim_inline="-DDEFAULT_INLINE=0" | |
15978 | # Check whether --enable-sim-inline was given. | |
15979 | if test "${enable_sim_inline+set}" = set; then : | |
15980 | enableval=$enable_sim_inline; sim_inline="" | |
15981 | case "$enableval" in | |
15982 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
15983 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
15984 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";; | |
15985 | 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";; | |
15986 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
15987 | new_flag="" | |
15988 | case "$x" in | |
15989 | *_INLINE=*) new_flag="-D$x";; | |
15990 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
15991 | *_INLINE) new_flag="-D$x=ALL_C_INLINE";; | |
15992 | *) new_flag="-D$x""_INLINE=ALL_C_INLINE";; | |
15993 | esac | |
15994 | if test x"$sim_inline" = x""; then | |
15995 | sim_inline="$new_flag" | |
15996 | else | |
15997 | sim_inline="$sim_inline $new_flag" | |
15998 | fi | |
15999 | done;; | |
16000 | esac | |
16001 | ||
16002 | fi | |
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5 | |
16004 | $as_echo "$sim_inline" >&6; } | |
16005 | SIM_INLINE=$sim_inline | |
16006 | ||
16007 | ||
04381273 MF |
16008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5 |
16009 | $as_echo_n "checking for sim profile settings... " >&6; } | |
16010 | profile="1" | |
16011 | sim_profile="-1" | |
16012 | # Check whether --enable-sim-profile was given. | |
16013 | if test "${enable_sim_profile+set}" = set; then : | |
16014 | enableval=$enable_sim_profile; case "${enableval}" in | |
16015 | yes) profile="1" sim_profile="-1";; | |
16016 | no) profile="0" sim_profile="0";; | |
16017 | [-0-9]*) | |
16018 | profile="(${enableval})" sim_profile="(${enableval})";; | |
16019 | [a-z]*) | |
16020 | profile="1" | |
16021 | sim_profile="" | |
16022 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16023 | if test x"$sim_profile" = x; then | |
16024 | sim_profile="(PROFILE_$x" | |
16025 | else | |
16026 | sim_profile="${sim_profile}|PROFILE_$x" | |
16027 | fi | |
16028 | done | |
16029 | sim_profile="$sim_profile)" ;; | |
16030 | esac | |
16031 | fi | |
16032 | ||
16033 | cat >>confdefs.h <<_ACEOF | |
16034 | #define PROFILE $profile | |
16035 | _ACEOF | |
16036 | ||
16037 | ||
16038 | cat >>confdefs.h <<_ACEOF | |
16039 | #define WITH_PROFILE $sim_profile | |
16040 | _ACEOF | |
16041 | ||
16042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5 | |
16043 | $as_echo "$sim_profile" >&6; } | |
16044 | ||
7eb1f99a MF |
16045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5 |
16046 | $as_echo_n "checking whether to check reserved bits in instruction... " >&6; } | |
16047 | # Check whether --enable-sim-reserved-bits was given. | |
16048 | if test "${enable_sim_reserved_bits+set}" = set; then : | |
16049 | enableval=$enable_sim_reserved_bits; case "${enableval}" in | |
16050 | yes|no) ;; | |
16051 | *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;; | |
16052 | esac | |
16053 | fi | |
16054 | ||
16055 | if test "x${enable_sim_reserved_bits}" != xno; then | |
16056 | sim_reserved_bits=1 | |
16057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16058 | $as_echo "yes" >&6; } | |
16059 | else | |
16060 | sim_reserved_bits=0 | |
16061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16062 | $as_echo "no" >&6; } | |
16063 | fi | |
16064 | ||
16065 | cat >>confdefs.h <<_ACEOF | |
16066 | #define WITH_RESERVED_BITS $sim_reserved_bits | |
16067 | _ACEOF | |
16068 | ||
16069 | ||
b79efe26 MF |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5 |
16071 | $as_echo_n "checking for sim cache size... " >&6; } | |
16072 | sim_scache="16384" | |
16073 | # Check whether --enable-sim-scache was given. | |
16074 | if test "${enable_sim_scache+set}" = set; then : | |
16075 | enableval=$enable_sim_scache; case "${enableval}" in | |
16076 | yes) ;; | |
16077 | no) sim_scache="0";; | |
16078 | [0-9]*) sim_scache="${enableval}";; | |
16079 | *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;; | |
16080 | esac | |
16081 | fi | |
16082 | ||
16083 | ||
16084 | cat >>confdefs.h <<_ACEOF | |
16085 | #define WITH_SCACHE $sim_scache | |
16086 | _ACEOF | |
16087 | ||
16088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5 | |
16089 | $as_echo "$sim_scache" >&6; } | |
16090 | ||
04381273 MF |
16091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5 |
16092 | $as_echo_n "checking for sim stdio debug behavior... " >&6; } | |
16093 | sim_stdio="0" | |
16094 | # Check whether --enable-sim-stdio was given. | |
16095 | if test "${enable_sim_stdio+set}" = set; then : | |
16096 | enableval=$enable_sim_stdio; case "${enableval}" in | |
16097 | yes) sim_stdio="DO_USE_STDIO";; | |
16098 | no) sim_stdio="DONT_USE_STDIO";; | |
16099 | *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;; | |
16100 | esac | |
16101 | fi | |
16102 | ||
16103 | cat >>confdefs.h <<_ACEOF | |
16104 | #define WITH_STDIO $sim_stdio | |
16105 | _ACEOF | |
16106 | ||
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5 | |
16108 | $as_echo "$sim_stdio" >&6; } | |
16109 | ||
16110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5 | |
16111 | $as_echo_n "checking for sim trace settings... " >&6; } | |
16112 | sim_trace="~TRACE_debug" | |
16113 | # Check whether --enable-sim-trace was given. | |
16114 | if test "${enable_sim_trace+set}" = set; then : | |
16115 | enableval=$enable_sim_trace; case "${enableval}" in | |
16116 | yes) sim_trace="-1";; | |
16117 | no) sim_trace="0";; | |
16118 | [-0-9]*) | |
16119 | sim_trace="'(${enableval})'";; | |
16120 | [[:lower:]]*) | |
16121 | sim_trace="" | |
16122 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
16123 | if test x"$sim_trace" = x; then | |
16124 | sim_trace="(TRACE_$x" | |
16125 | else | |
16126 | sim_trace="${sim_trace}|TRACE_$x" | |
16127 | fi | |
16128 | done | |
16129 | sim_trace="$sim_trace)" ;; | |
16130 | esac | |
16131 | fi | |
16132 | ||
16133 | cat >>confdefs.h <<_ACEOF | |
16134 | #define WITH_TRACE $sim_trace | |
16135 | _ACEOF | |
16136 | ||
16137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5 | |
16138 | $as_echo "$sim_trace" >&6; } | |
16139 | ||
5ea45474 | 16140 | |
47ce766a MF |
16141 | # Check whether --enable-werror was given. |
16142 | if test "${enable_werror+set}" = set; then : | |
16143 | enableval=$enable_werror; case "${enableval}" in | |
16144 | yes | y) ERROR_ON_WARNING="yes" ;; | |
16145 | no | n) ERROR_ON_WARNING="no" ;; | |
16146 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
16147 | esac | |
16148 | fi | |
16149 | ||
16150 | ||
16151 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
16152 | ERROR_ON_WARNING=yes | |
16153 | fi | |
16154 | ||
16155 | WERROR_CFLAGS="" | |
16156 | if test "${ERROR_ON_WARNING}" = yes ; then | |
16157 | WERROR_CFLAGS="-Werror" | |
16158 | fi | |
16159 | ||
7f6fa743 MF |
16160 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith |
16161 | -Wno-unused -Wunused-value -Wunused-function | |
16162 | -Wno-switch -Wno-char-subscripts | |
16163 | -Wempty-body -Wunused-but-set-parameter | |
3167423f | 16164 | -Wno-error=maybe-uninitialized |
7f6fa743 MF |
16165 | -Wmissing-declarations |
16166 | -Wmissing-prototypes | |
16167 | -Wdeclaration-after-statement -Wmissing-parameter-type | |
16168 | -Wpointer-sign | |
16169 | -Wold-style-declaration -Wold-style-definition | |
16170 | " | |
47ce766a MF |
16171 | |
16172 | # Enable -Wno-format by default when using gcc on mingw since many | |
16173 | # GCC versions complain about %I64. | |
16174 | case "${host}" in | |
16175 | *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;; | |
16176 | *) build_warnings="$build_warnings -Wformat-nonliteral" ;; | |
16177 | esac | |
16178 | ||
16179 | # Check whether --enable-build-warnings was given. | |
16180 | if test "${enable_build_warnings+set}" = set; then : | |
16181 | enableval=$enable_build_warnings; case "${enableval}" in | |
16182 | yes) ;; | |
16183 | no) build_warnings="-w";; | |
16184 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16185 | build_warnings="${build_warnings} ${t}";; | |
16186 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16187 | build_warnings="${t} ${build_warnings}";; | |
16188 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16189 | esac | |
16190 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16191 | echo "Setting compiler warning flags = $build_warnings" 6>&1 | |
16192 | fi | |
16193 | fi | |
16194 | # Check whether --enable-sim-build-warnings was given. | |
16195 | if test "${enable_sim_build_warnings+set}" = set; then : | |
16196 | enableval=$enable_sim_build_warnings; case "${enableval}" in | |
16197 | yes) ;; | |
16198 | no) build_warnings="-w";; | |
16199 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16200 | build_warnings="${build_warnings} ${t}";; | |
16201 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
16202 | build_warnings="${t} ${build_warnings}";; | |
16203 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
16204 | esac | |
16205 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
16206 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
16207 | fi | |
16208 | fi | |
16209 | WARN_CFLAGS="" | |
16210 | if test "x${build_warnings}" != x -a "x$GCC" = xyes | |
16211 | then | |
16212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 | |
16213 | $as_echo_n "checking compiler warning flags... " >&6; } | |
16214 | # Separate out the -Werror flag as some files just cannot be | |
16215 | # compiled with it enabled. | |
16216 | for w in ${build_warnings}; do | |
16217 | case $w in | |
16218 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
16219 | *) # Check that GCC accepts it | |
16220 | saved_CFLAGS="$CFLAGS" | |
16221 | CFLAGS="$CFLAGS -Werror $w" | |
16222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16223 | /* end confdefs.h. */ | |
16224 | ||
16225 | int | |
16226 | main () | |
16227 | { | |
16228 | ||
16229 | ; | |
16230 | return 0; | |
16231 | } | |
16232 | _ACEOF | |
16233 | if ac_fn_c_try_compile "$LINENO"; then : | |
16234 | WARN_CFLAGS="${WARN_CFLAGS} $w" | |
16235 | fi | |
16236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16237 | CFLAGS="$saved_CFLAGS" | |
16238 | esac | |
16239 | done | |
16240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 | |
16241 | $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } | |
16242 | fi | |
16243 | ||
16244 | ||
36bb57e4 MF |
16245 | |
16246 | ||
16247 | ||
408a44aa MF |
16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5 |
16249 | $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; } | |
16250 | # Check whether --enable-sim-frv-trapdump was given. | |
16251 | if test "${enable_sim_frv_trapdump+set}" = set; then : | |
16252 | enableval=$enable_sim_frv_trapdump; case "${enableval}" in | |
16253 | yes|no) ;; | |
16254 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;; | |
16255 | esac | |
16256 | fi | |
16257 | ||
1ee4d0e3 | 16258 | if test "x${enable_sim_frv_trapdump}" = xyes; then |
408a44aa MF |
16259 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1" |
16260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16261 | $as_echo "yes" >&6; } | |
16262 | else | |
16263 | SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0" | |
16264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16265 | $as_echo "no" >&6; } | |
16266 | fi | |
16267 | ||
16268 | ||
e173c80f MF |
16269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5 |
16270 | $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; } | |
16271 | # Check whether --enable-sim-rx-cycle-accurate was given. | |
16272 | if test "${enable_sim_rx_cycle_accurate+set}" = set; then : | |
16273 | enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in | |
16274 | yes | no) ;; | |
16275 | *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;; | |
16276 | esac | |
16277 | fi | |
16278 | ||
16279 | if test "x${enable_sim_rx_cycle_accurate}" != xno; then | |
16280 | SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE" | |
16281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16282 | $as_echo "yes" >&6; } | |
16283 | else | |
16284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16285 | $as_echo "no" >&6; } | |
16286 | fi | |
16287 | ||
16288 | ||
16289 | ||
21672298 | 16290 | ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in" |
81ecdfbb | 16291 | |
b7026657 | 16292 | cat >confcache <<\_ACEOF |
c906108c SS |
16293 | # This file is a shell script that caches the results of configure |
16294 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
16295 | # scripts and configure runs, see configure's option --config-cache. |
16296 | # It is not useful on other systems. If it contains results you don't | |
16297 | # want to keep, you may remove or edit it. | |
c906108c | 16298 | # |
b7026657 AC |
16299 | # config.status only pays attention to the cache file if you give it |
16300 | # the --recheck option to rerun configure. | |
c906108c | 16301 | # |
b7026657 AC |
16302 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
16303 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16304 | # following values. | |
16305 | ||
16306 | _ACEOF | |
16307 | ||
c906108c SS |
16308 | # The following way of writing the cache mishandles newlines in values, |
16309 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 16310 | # So, we kill variables containing newlines. |
c906108c SS |
16311 | # Ultrix sh set writes to stderr and can't be redirected directly, |
16312 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
16313 | ( |
16314 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16315 | eval ac_val=\$$ac_var | |
16316 | case $ac_val in #( | |
16317 | *${as_nl}*) | |
16318 | case $ac_var in #( | |
16319 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16320 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16321 | esac | |
16322 | case $ac_var in #( | |
16323 | _ | IFS | as_nl) ;; #( | |
16324 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16325 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16326 | esac ;; | |
16327 | esac | |
16328 | done | |
16329 | ||
b7026657 | 16330 | (set) 2>&1 | |
81ecdfbb RW |
16331 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
16332 | *${as_nl}ac_space=\ *) | |
16333 | # `set' does not quote correctly, so add quotes: double-quote | |
16334 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
16335 | sed -n \ |
16336 | "s/'/'\\\\''/g; | |
16337 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 16338 | ;; #( |
b7026657 AC |
16339 | *) |
16340 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 16341 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 16342 | ;; |
81ecdfbb RW |
16343 | esac | |
16344 | sort | |
16345 | ) | | |
b7026657 | 16346 | sed ' |
81ecdfbb | 16347 | /^ac_cv_env_/b end |
b7026657 | 16348 | t clear |
81ecdfbb | 16349 | :clear |
b7026657 AC |
16350 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
16351 | t end | |
81ecdfbb RW |
16352 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
16353 | :end' >>confcache | |
16354 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16355 | if test -w "$cache_file"; then | |
d0ac1c44 | 16356 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
16357 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16358 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
16359 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16360 | cat confcache >"$cache_file" | |
16361 | else | |
16362 | case $cache_file in #( | |
16363 | */* | ?:*) | |
16364 | mv -f confcache "$cache_file"$$ && | |
16365 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16366 | *) | |
16367 | mv -f confcache "$cache_file" ;; | |
16368 | esac | |
16369 | fi | |
16370 | fi | |
c906108c | 16371 | else |
81ecdfbb RW |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
16373 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
16374 | fi |
16375 | fi | |
16376 | rm -f confcache | |
16377 | ||
c906108c SS |
16378 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16379 | # Let make expand exec_prefix. | |
16380 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16381 | ||
b15c5d7a | 16382 | DEFS=-DHAVE_CONFIG_H |
b7026657 AC |
16383 | |
16384 | ac_libobjs= | |
16385 | ac_ltlibobjs= | |
d0ac1c44 | 16386 | U= |
b7026657 AC |
16387 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16388 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
16389 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
16390 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16391 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16392 | # will be set to the directory where LIBOBJS objects are built. | |
16393 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16394 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
16395 | done |
16396 | LIBOBJS=$ac_libobjs | |
c906108c | 16397 | |
b7026657 AC |
16398 | LTLIBOBJS=$ac_ltlibobjs |
16399 | ||
16400 | ||
c2783492 | 16401 | |
b5689863 MF |
16402 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
16403 | as_fn_error $? "conditional \"PLUGINS\" was never defined. | |
16404 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16405 | fi | |
8c379db2 TT |
16406 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
16407 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
16408 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16409 | fi | |
6bddc3e8 MF |
16410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
16411 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
16412 | if test -n "$am_sleep_pid"; then | |
16413 | # Hide warnings about reused PIDs. | |
16414 | wait $am_sleep_pid 2>/dev/null | |
16415 | fi | |
16416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
16417 | $as_echo "done" >&6; } | |
6bddc3e8 MF |
16418 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
16419 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
16420 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16421 | fi | |
16422 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
16423 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
16424 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16425 | fi | |
c2783492 MF |
16426 | if test -n "$EXEEXT"; then |
16427 | am__EXEEXT_TRUE= | |
16428 | am__EXEEXT_FALSE='#' | |
16429 | else | |
16430 | am__EXEEXT_TRUE='#' | |
16431 | am__EXEEXT_FALSE= | |
6bddc3e8 | 16432 | fi |
b7026657 | 16433 | |
65dcce8f MF |
16434 | if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then |
16435 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined. | |
16436 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16437 | fi | |
16438 | if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then | |
16439 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined. | |
16440 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16441 | fi | |
16442 | if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then | |
16443 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined. | |
16444 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16445 | fi | |
16446 | if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then | |
16447 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined. | |
16448 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16449 | fi | |
16450 | if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then | |
16451 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined. | |
16452 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16453 | fi | |
16454 | if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then | |
16455 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined. | |
16456 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16457 | fi | |
16458 | if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then | |
16459 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined. | |
16460 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16461 | fi | |
16462 | if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then | |
16463 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined. | |
16464 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16465 | fi | |
16466 | if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then | |
16467 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined. | |
16468 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16469 | fi | |
16470 | if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then | |
16471 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined. | |
16472 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16473 | fi | |
16474 | if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then | |
16475 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined. | |
16476 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16477 | fi | |
16478 | if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then | |
16479 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined. | |
16480 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16481 | fi | |
16482 | if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then | |
16483 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined. | |
16484 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16485 | fi | |
16486 | if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then | |
16487 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined. | |
16488 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16489 | fi | |
16490 | if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then | |
16491 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined. | |
16492 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16493 | fi | |
16494 | if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then | |
16495 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined. | |
16496 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16497 | fi | |
16498 | if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then | |
16499 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined. | |
16500 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16501 | fi | |
16502 | if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then | |
16503 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined. | |
16504 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16505 | fi | |
16506 | if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then | |
16507 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined. | |
16508 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16509 | fi | |
16510 | if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then | |
16511 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined. | |
16512 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16513 | fi | |
16514 | if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then | |
16515 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined. | |
16516 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16517 | fi | |
16518 | if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then | |
16519 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined. | |
16520 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16521 | fi | |
16522 | if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then | |
16523 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined. | |
16524 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16525 | fi | |
16526 | if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then | |
16527 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined. | |
16528 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16529 | fi | |
16530 | if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then | |
16531 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined. | |
16532 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16533 | fi | |
16534 | if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then | |
16535 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined. | |
16536 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16537 | fi | |
16538 | if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then | |
16539 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined. | |
16540 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16541 | fi | |
16542 | if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then | |
16543 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined. | |
16544 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16545 | fi | |
16546 | if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then | |
16547 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined. | |
16548 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16549 | fi | |
16550 | if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then | |
16551 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined. | |
16552 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16553 | fi | |
16554 | if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then | |
16555 | as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined. | |
16556 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16557 | fi | |
b6b1c790 MF |
16558 | if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then |
16559 | as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined. | |
16560 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16561 | fi | |
fb2c495f MF |
16562 | if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then |
16563 | as_fn_error $? "conditional \"ENABLE_SIM\" was never defined. | |
16564 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16565 | fi | |
456ef1c1 MF |
16566 | if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then |
16567 | as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined. | |
16568 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16569 | fi | |
c2783492 | 16570 | |
d0ac1c44 | 16571 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 16572 | ac_write_fail=0 |
b7026657 AC |
16573 | ac_clean_files_save=$ac_clean_files |
16574 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16576 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16577 | as_write_fail=0 | |
16578 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
16579 | #! $SHELL |
16580 | # Generated by $as_me. | |
c906108c | 16581 | # Run this file to recreate the current configuration. |
c906108c | 16582 | # Compiler output produced by configure, useful for debugging |
b7026657 AC |
16583 | # configure, is in config.log if it exists. |
16584 | ||
16585 | debug=false | |
16586 | ac_cs_recheck=false | |
16587 | ac_cs_silent=false | |
b7026657 | 16588 | |
81ecdfbb RW |
16589 | SHELL=\${CONFIG_SHELL-$SHELL} |
16590 | export SHELL | |
16591 | _ASEOF | |
16592 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16593 | ## -------------------- ## | |
16594 | ## M4sh Initialization. ## | |
16595 | ## -------------------- ## | |
16596 | ||
16597 | # Be more Bourne compatible | |
16598 | DUALCASE=1; export DUALCASE # for MKS sh | |
16599 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
16600 | emulate sh |
16601 | NULLCMD=: | |
81ecdfbb | 16602 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
16603 | # is contrary to our usage. Disable this feature. |
16604 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
16605 | setopt NO_GLOB_SUBST |
16606 | else | |
16607 | case `(set -o) 2>/dev/null` in #( | |
16608 | *posix*) : | |
16609 | set -o posix ;; #( | |
16610 | *) : | |
16611 | ;; | |
16612 | esac | |
b7026657 | 16613 | fi |
c906108c | 16614 | |
81ecdfbb RW |
16615 | |
16616 | as_nl=' | |
16617 | ' | |
16618 | export as_nl | |
16619 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16620 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16621 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16622 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
16623 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
16624 | # but without wasting forks for bash or zsh. | |
16625 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16626 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16627 | as_echo='print -r --' | |
16628 | as_echo_n='print -rn --' | |
16629 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16630 | as_echo='printf %s\n' | |
16631 | as_echo_n='printf %s' | |
b7026657 | 16632 | else |
81ecdfbb RW |
16633 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
16634 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16635 | as_echo_n='/usr/ucb/echo -n' | |
16636 | else | |
16637 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16638 | as_echo_n_body='eval | |
16639 | arg=$1; | |
16640 | case $arg in #( | |
16641 | *"$as_nl"*) | |
16642 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16643 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16644 | esac; | |
16645 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16646 | ' | |
16647 | export as_echo_n_body | |
16648 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16649 | fi | |
16650 | export as_echo_body | |
16651 | as_echo='sh -c $as_echo_body as_echo' | |
16652 | fi | |
16653 | ||
16654 | # The user is always right. | |
16655 | if test "${PATH_SEPARATOR+set}" != set; then | |
16656 | PATH_SEPARATOR=: | |
16657 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16658 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16659 | PATH_SEPARATOR=';' | |
16660 | } | |
b7026657 AC |
16661 | fi |
16662 | ||
16663 | ||
81ecdfbb RW |
16664 | # IFS |
16665 | # We need space, tab and new line, in precisely that order. Quoting is | |
16666 | # there to prevent editors from complaining about space-tab. | |
16667 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16668 | # splitting by setting IFS to empty value.) | |
16669 | IFS=" "" $as_nl" | |
16670 | ||
16671 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 16672 | as_myself= |
81ecdfbb RW |
16673 | case $0 in #(( |
16674 | *[\\/]* ) as_myself=$0 ;; | |
16675 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16676 | for as_dir in $PATH | |
16677 | do | |
16678 | IFS=$as_save_IFS | |
16679 | test -z "$as_dir" && as_dir=. | |
16680 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16681 | done | |
16682 | IFS=$as_save_IFS | |
16683 | ||
16684 | ;; | |
16685 | esac | |
16686 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16687 | # in which case we are not to be found in the path. | |
16688 | if test "x$as_myself" = x; then | |
16689 | as_myself=$0 | |
16690 | fi | |
16691 | if test ! -f "$as_myself"; then | |
16692 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16693 | exit 1 | |
16694 | fi | |
16695 | ||
16696 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16697 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16698 | # suppresses any "Segmentation fault" message there. '((' could | |
16699 | # trigger a bug in pdksh 5.2.14. | |
16700 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16701 | do eval test x\${$as_var+set} = xset \ | |
16702 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16703 | done | |
b7026657 AC |
16704 | PS1='$ ' |
16705 | PS2='> ' | |
16706 | PS4='+ ' | |
16707 | ||
16708 | # NLS nuisances. | |
81ecdfbb RW |
16709 | LC_ALL=C |
16710 | export LC_ALL | |
16711 | LANGUAGE=C | |
16712 | export LANGUAGE | |
16713 | ||
16714 | # CDPATH. | |
16715 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16716 | ||
16717 | ||
d0ac1c44 SM |
16718 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
16719 | # ---------------------------------------- | |
81ecdfbb RW |
16720 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
16721 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 16722 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
16723 | as_fn_error () |
16724 | { | |
d0ac1c44 SM |
16725 | as_status=$1; test $as_status -eq 0 && as_status=1 |
16726 | if test "$4"; then | |
16727 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16728 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 16729 | fi |
d0ac1c44 | 16730 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
16731 | as_fn_exit $as_status |
16732 | } # as_fn_error | |
c906108c | 16733 | |
81ecdfbb RW |
16734 | |
16735 | # as_fn_set_status STATUS | |
16736 | # ----------------------- | |
16737 | # Set $? to STATUS, without forking. | |
16738 | as_fn_set_status () | |
16739 | { | |
16740 | return $1 | |
16741 | } # as_fn_set_status | |
16742 | ||
16743 | # as_fn_exit STATUS | |
16744 | # ----------------- | |
16745 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16746 | as_fn_exit () | |
16747 | { | |
16748 | set +e | |
16749 | as_fn_set_status $1 | |
16750 | exit $1 | |
16751 | } # as_fn_exit | |
16752 | ||
16753 | # as_fn_unset VAR | |
16754 | # --------------- | |
16755 | # Portably unset VAR. | |
16756 | as_fn_unset () | |
16757 | { | |
16758 | { eval $1=; unset $1;} | |
16759 | } | |
16760 | as_unset=as_fn_unset | |
16761 | # as_fn_append VAR VALUE | |
16762 | # ---------------------- | |
16763 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16764 | # advantage of any shell optimizations that allow amortized linear growth over | |
16765 | # repeated appends, instead of the typical quadratic growth present in naive | |
16766 | # implementations. | |
16767 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16768 | eval 'as_fn_append () | |
16769 | { | |
16770 | eval $1+=\$2 | |
16771 | }' | |
16772 | else | |
16773 | as_fn_append () | |
16774 | { | |
16775 | eval $1=\$$1\$2 | |
16776 | } | |
16777 | fi # as_fn_append | |
16778 | ||
16779 | # as_fn_arith ARG... | |
16780 | # ------------------ | |
16781 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16782 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16783 | # must be portable across $(()) and expr. | |
16784 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16785 | eval 'as_fn_arith () | |
16786 | { | |
16787 | as_val=$(( $* )) | |
16788 | }' | |
16789 | else | |
16790 | as_fn_arith () | |
16791 | { | |
16792 | as_val=`expr "$@" || test $? -eq 1` | |
16793 | } | |
16794 | fi # as_fn_arith | |
16795 | ||
16796 | ||
16797 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16798 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
16799 | as_expr=expr |
16800 | else | |
16801 | as_expr=false | |
16802 | fi | |
c906108c | 16803 | |
81ecdfbb | 16804 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
16805 | as_basename=basename |
16806 | else | |
16807 | as_basename=false | |
16808 | fi | |
c906108c | 16809 | |
81ecdfbb RW |
16810 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16811 | as_dirname=dirname | |
16812 | else | |
16813 | as_dirname=false | |
16814 | fi | |
c906108c | 16815 | |
81ecdfbb | 16816 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
16817 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16818 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16819 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
16820 | $as_echo X/"$0" | | |
16821 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16822 | s//\1/ | |
16823 | q | |
16824 | } | |
16825 | /^X\/\(\/\/\)$/{ | |
16826 | s//\1/ | |
16827 | q | |
16828 | } | |
16829 | /^X\/\(\/\).*/{ | |
16830 | s//\1/ | |
16831 | q | |
16832 | } | |
16833 | s/.*/./; q'` | |
b7026657 | 16834 | |
fdd6fa61 AG |
16835 | # Avoid depending upon Character Ranges. |
16836 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16837 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16838 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16839 | as_cr_digits='0123456789' | |
16840 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16841 | ||
81ecdfbb RW |
16842 | ECHO_C= ECHO_N= ECHO_T= |
16843 | case `echo -n x` in #((((( | |
16844 | -n*) | |
16845 | case `echo 'xy\c'` in | |
16846 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16847 | xy) ECHO_C='\c';; | |
16848 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16849 | ECHO_T=' ';; | |
16850 | esac;; | |
16851 | *) | |
16852 | ECHO_N='-n';; | |
b7026657 AC |
16853 | esac |
16854 | ||
81ecdfbb RW |
16855 | rm -f conf$$ conf$$.exe conf$$.file |
16856 | if test -d conf$$.dir; then | |
16857 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 16858 | else |
81ecdfbb RW |
16859 | rm -f conf$$.dir |
16860 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 16861 | fi |
81ecdfbb RW |
16862 | if (echo >conf$$.file) 2>/dev/null; then |
16863 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fdd6fa61 | 16864 | as_ln_s='ln -s' |
81ecdfbb RW |
16865 | # ... but there are two gotchas: |
16866 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16867 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 16868 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 16869 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 16870 | as_ln_s='cp -pR' |
81ecdfbb RW |
16871 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16872 | as_ln_s=ln | |
16873 | else | |
d0ac1c44 | 16874 | as_ln_s='cp -pR' |
fdd6fa61 | 16875 | fi |
b7026657 | 16876 | else |
d0ac1c44 | 16877 | as_ln_s='cp -pR' |
b7026657 | 16878 | fi |
81ecdfbb RW |
16879 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16880 | rmdir conf$$.dir 2>/dev/null | |
16881 | ||
16882 | ||
16883 | # as_fn_mkdir_p | |
16884 | # ------------- | |
16885 | # Create "$as_dir" as a directory, including parents if necessary. | |
16886 | as_fn_mkdir_p () | |
16887 | { | |
b7026657 | 16888 | |
81ecdfbb RW |
16889 | case $as_dir in #( |
16890 | -*) as_dir=./$as_dir;; | |
16891 | esac | |
16892 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16893 | as_dirs= | |
16894 | while :; do | |
16895 | case $as_dir in #( | |
16896 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16897 | *) as_qdir=$as_dir;; | |
16898 | esac | |
16899 | as_dirs="'$as_qdir' $as_dirs" | |
16900 | as_dir=`$as_dirname -- "$as_dir" || | |
16901 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16902 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16903 | X"$as_dir" : 'X\(//\)$' \| \ | |
16904 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16905 | $as_echo X"$as_dir" | | |
16906 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16907 | s//\1/ | |
16908 | q | |
16909 | } | |
16910 | /^X\(\/\/\)[^/].*/{ | |
16911 | s//\1/ | |
16912 | q | |
16913 | } | |
16914 | /^X\(\/\/\)$/{ | |
16915 | s//\1/ | |
16916 | q | |
16917 | } | |
16918 | /^X\(\/\).*/{ | |
16919 | s//\1/ | |
16920 | q | |
16921 | } | |
16922 | s/.*/./; q'` | |
16923 | test -d "$as_dir" && break | |
16924 | done | |
16925 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 16926 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
16927 | |
16928 | ||
16929 | } # as_fn_mkdir_p | |
b7026657 | 16930 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 16931 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
16932 | else |
16933 | test -d ./-p && rmdir ./-p | |
16934 | as_mkdir_p=false | |
16935 | fi | |
16936 | ||
d0ac1c44 SM |
16937 | |
16938 | # as_fn_executable_p FILE | |
16939 | # ----------------------- | |
16940 | # Test if FILE is an executable regular file. | |
16941 | as_fn_executable_p () | |
16942 | { | |
16943 | test -f "$1" && test -x "$1" | |
16944 | } # as_fn_executable_p | |
16945 | as_test_x='test -x' | |
16946 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
16947 | |
16948 | # Sed expression to map a string onto a valid CPP name. | |
16949 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16950 | ||
16951 | # Sed expression to map a string onto a valid variable name. | |
16952 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16953 | ||
16954 | ||
b7026657 | 16955 | exec 6>&1 |
81ecdfbb RW |
16956 | ## ----------------------------------- ## |
16957 | ## Main body of $CONFIG_STATUS script. ## | |
16958 | ## ----------------------------------- ## | |
16959 | _ASEOF | |
16960 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16961 | ||
16962 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16963 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 16964 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
16965 | # values after options handling. |
16966 | ac_log=" | |
6bddc3e8 | 16967 | This file was extended by sim $as_me 0, which was |
d0ac1c44 | 16968 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
16969 | |
16970 | CONFIG_FILES = $CONFIG_FILES | |
16971 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16972 | CONFIG_LINKS = $CONFIG_LINKS | |
16973 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16974 | $ $0 $@ | |
16975 | ||
81ecdfbb RW |
16976 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16977 | " | |
16978 | ||
b7026657 AC |
16979 | _ACEOF |
16980 | ||
81ecdfbb RW |
16981 | case $ac_config_files in *" |
16982 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16983 | esac | |
b7026657 | 16984 | |
b15c5d7a MF |
16985 | case $ac_config_headers in *" |
16986 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16987 | esac | |
fdd6fa61 | 16988 | |
fdd6fa61 | 16989 | |
81ecdfbb RW |
16990 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16991 | # Files that config.status was made for. | |
16992 | config_files="$ac_config_files" | |
b15c5d7a | 16993 | config_headers="$ac_config_headers" |
6bddc3e8 | 16994 | config_commands="$ac_config_commands" |
b7026657 | 16995 | |
81ecdfbb | 16996 | _ACEOF |
fdd6fa61 | 16997 | |
81ecdfbb | 16998 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 16999 | ac_cs_usage="\ |
81ecdfbb RW |
17000 | \`$as_me' instantiates files and other configuration actions |
17001 | from templates according to the current configuration. Unless the files | |
17002 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 17003 | |
81ecdfbb | 17004 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
17005 | |
17006 | -h, --help print this help, then exit | |
81ecdfbb | 17007 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 17008 | --config print configuration, then exit |
81ecdfbb RW |
17009 | -q, --quiet, --silent |
17010 | do not print progress messages | |
b7026657 AC |
17011 | -d, --debug don't remove temporary files |
17012 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
17013 | --file=FILE[:TEMPLATE] |
17014 | instantiate the configuration file FILE | |
b15c5d7a MF |
17015 | --header=FILE[:TEMPLATE] |
17016 | instantiate the configuration header FILE | |
b7026657 AC |
17017 | |
17018 | Configuration files: | |
17019 | $config_files | |
17020 | ||
b15c5d7a MF |
17021 | Configuration headers: |
17022 | $config_headers | |
17023 | ||
6bddc3e8 MF |
17024 | Configuration commands: |
17025 | $config_commands | |
17026 | ||
17027 | Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>. | |
17028 | sim home page: <https://sourceware.org/gdb/wiki/Sim/>." | |
fdd6fa61 | 17029 | |
81ecdfbb RW |
17030 | _ACEOF |
17031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 17032 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 | 17033 | ac_cs_version="\\ |
6bddc3e8 | 17034 | sim config.status 0 |
d0ac1c44 SM |
17035 | configured by $0, generated by GNU Autoconf 2.69, |
17036 | with options \\"\$ac_cs_config\\" | |
b7026657 | 17037 | |
d0ac1c44 | 17038 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
17039 | This config.status script is free software; the Free Software Foundation |
17040 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
17041 | |
17042 | ac_pwd='$ac_pwd' | |
17043 | srcdir='$srcdir' | |
17044 | INSTALL='$INSTALL' | |
6bddc3e8 MF |
17045 | MKDIR_P='$MKDIR_P' |
17046 | AWK='$AWK' | |
81ecdfbb | 17047 | test -n "\$AWK" || AWK=awk |
b7026657 AC |
17048 | _ACEOF |
17049 | ||
81ecdfbb RW |
17050 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17051 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
17052 | ac_need_defaults=: |
17053 | while test $# != 0 | |
17054 | do | |
17055 | case $1 in | |
d0ac1c44 | 17056 | --*=?*) |
81ecdfbb RW |
17057 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17058 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
17059 | ac_shift=: |
17060 | ;; | |
d0ac1c44 SM |
17061 | --*=) |
17062 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17063 | ac_optarg= | |
17064 | ac_shift=: | |
17065 | ;; | |
81ecdfbb | 17066 | *) |
b7026657 AC |
17067 | ac_option=$1 |
17068 | ac_optarg=$2 | |
17069 | ac_shift=shift | |
17070 | ;; | |
b7026657 AC |
17071 | esac |
17072 | ||
17073 | case $ac_option in | |
17074 | # Handling of the options. | |
b7026657 AC |
17075 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17076 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
17077 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
17078 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
17079 | --config | --confi | --conf | --con | --co | --c ) |
17080 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 17081 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
17082 | debug=: ;; |
17083 | --file | --fil | --fi | --f ) | |
17084 | $ac_shift | |
81ecdfbb RW |
17085 | case $ac_optarg in |
17086 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 17087 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
17088 | esac |
17089 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
fdd6fa61 | 17090 | ac_need_defaults=false;; |
b15c5d7a MF |
17091 | --header | --heade | --head | --hea ) |
17092 | $ac_shift | |
17093 | case $ac_optarg in | |
17094 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17095 | esac | |
17096 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
17097 | ac_need_defaults=false;; | |
17098 | --he | --h) | |
17099 | # Conflict between --help and --header | |
17100 | as_fn_error $? "ambiguous option: \`$1' | |
17101 | Try \`$0 --help' for more information.";; | |
17102 | --help | --hel | -h ) | |
81ecdfbb | 17103 | $as_echo "$ac_cs_usage"; exit ;; |
b7026657 AC |
17104 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17105 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17106 | ac_cs_silent=: ;; | |
17107 | ||
17108 | # This is an error. | |
d0ac1c44 | 17109 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 17110 | Try \`$0 --help' for more information." ;; |
b7026657 | 17111 | |
81ecdfbb RW |
17112 | *) as_fn_append ac_config_targets " $1" |
17113 | ac_need_defaults=false ;; | |
b7026657 AC |
17114 | |
17115 | esac | |
17116 | shift | |
c906108c | 17117 | done |
b7026657 AC |
17118 | |
17119 | ac_configure_extra_args= | |
17120 | ||
17121 | if $ac_cs_silent; then | |
17122 | exec 6>/dev/null | |
17123 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
c906108c | 17124 | fi |
c906108c | 17125 | |
b7026657 | 17126 | _ACEOF |
81ecdfbb | 17127 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 17128 | if \$ac_cs_recheck; then |
d0ac1c44 | 17129 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
17130 | shift |
17131 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17132 | CONFIG_SHELL='$SHELL' | |
17133 | export CONFIG_SHELL | |
17134 | exec "\$@" | |
b7026657 | 17135 | fi |
c906108c | 17136 | |
b7026657 | 17137 | _ACEOF |
81ecdfbb RW |
17138 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17139 | exec 5>>config.log | |
17140 | { | |
17141 | echo | |
17142 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17143 | ## Running $as_me. ## | |
17144 | _ASBOX | |
17145 | $as_echo "$ac_log" | |
17146 | } >&5 | |
b7026657 | 17147 | |
81ecdfbb RW |
17148 | _ACEOF |
17149 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6bddc3e8 MF |
17150 | # |
17151 | # INIT-COMMANDS | |
17152 | # | |
b5689863 MF |
17153 | |
17154 | ||
17155 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17156 | # if CDPATH is set. | |
17157 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17158 | ||
17159 | sed_quote_subst='$sed_quote_subst' | |
17160 | double_quote_subst='$double_quote_subst' | |
17161 | delay_variable_subst='$delay_variable_subst' | |
17162 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
17163 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
17164 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
17165 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
17166 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
17167 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
17168 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
17169 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
17170 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
17171 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
17172 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
17173 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
17174 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
17175 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
17176 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
17177 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
17178 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
17179 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
17180 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
17181 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
17182 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
17183 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
17184 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
17185 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
17186 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
17187 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
17188 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
17189 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
17190 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
17191 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
17192 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
17193 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
17194 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
17195 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
17196 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
17197 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
17198 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
17199 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17200 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17201 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17202 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
17203 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
17204 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
17205 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
17206 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
17207 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
17208 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
17209 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
17210 | 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"`' | |
17211 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
17212 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
17213 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
17214 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
17215 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
17216 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
17217 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
17218 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
17219 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
17220 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
17221 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
17222 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
17223 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
17224 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
17225 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
17226 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17227 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
17228 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
17229 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17230 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17231 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
17232 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
17233 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
17234 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
17235 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17236 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
17237 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
17238 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
17239 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17240 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
17241 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
17242 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
17243 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
17244 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
17245 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
17246 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
17247 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17248 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
17249 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
17250 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
17251 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
17252 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
17253 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
17254 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
17255 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
17256 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
17257 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
17258 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
17259 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
17260 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
17261 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
17262 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
17263 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
17264 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
17265 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
17266 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
17267 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
17268 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
17269 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17270 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
17271 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
17272 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
17273 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
17274 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
17275 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
17276 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
17277 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
17278 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
17279 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
17280 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
17281 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
17282 | ||
17283 | LTCC='$LTCC' | |
17284 | LTCFLAGS='$LTCFLAGS' | |
17285 | compiler='$compiler_DEFAULT' | |
17286 | ||
17287 | # A function that is used when there is no print builtin or printf. | |
17288 | func_fallback_echo () | |
17289 | { | |
17290 | eval 'cat <<_LTECHO_EOF | |
17291 | \$1 | |
17292 | _LTECHO_EOF' | |
17293 | } | |
17294 | ||
17295 | # Quote evaled strings. | |
17296 | for var in SHELL \ | |
17297 | ECHO \ | |
17298 | SED \ | |
17299 | GREP \ | |
17300 | EGREP \ | |
17301 | FGREP \ | |
17302 | LD \ | |
17303 | NM \ | |
17304 | LN_S \ | |
17305 | lt_SP2NL \ | |
17306 | lt_NL2SP \ | |
17307 | reload_flag \ | |
17308 | OBJDUMP \ | |
17309 | deplibs_check_method \ | |
17310 | file_magic_cmd \ | |
17311 | AR \ | |
17312 | AR_FLAGS \ | |
17313 | STRIP \ | |
17314 | RANLIB \ | |
17315 | CC \ | |
17316 | CFLAGS \ | |
17317 | compiler \ | |
17318 | lt_cv_sys_global_symbol_pipe \ | |
17319 | lt_cv_sys_global_symbol_to_cdecl \ | |
17320 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17321 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
17322 | lt_prog_compiler_no_builtin_flag \ | |
17323 | lt_prog_compiler_wl \ | |
17324 | lt_prog_compiler_pic \ | |
17325 | lt_prog_compiler_static \ | |
17326 | lt_cv_prog_compiler_c_o \ | |
17327 | need_locks \ | |
17328 | DSYMUTIL \ | |
17329 | NMEDIT \ | |
17330 | LIPO \ | |
17331 | OTOOL \ | |
17332 | OTOOL64 \ | |
17333 | shrext_cmds \ | |
17334 | export_dynamic_flag_spec \ | |
17335 | whole_archive_flag_spec \ | |
17336 | compiler_needs_object \ | |
17337 | with_gnu_ld \ | |
17338 | allow_undefined_flag \ | |
17339 | no_undefined_flag \ | |
17340 | hardcode_libdir_flag_spec \ | |
17341 | hardcode_libdir_flag_spec_ld \ | |
17342 | hardcode_libdir_separator \ | |
17343 | fix_srcfile_path \ | |
17344 | exclude_expsyms \ | |
17345 | include_expsyms \ | |
17346 | file_list_spec \ | |
17347 | variables_saved_for_relink \ | |
17348 | libname_spec \ | |
17349 | library_names_spec \ | |
17350 | soname_spec \ | |
17351 | install_override_mode \ | |
17352 | finish_eval \ | |
17353 | old_striplib \ | |
17354 | striplib; do | |
17355 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
17356 | *[\\\\\\\`\\"\\\$]*) | |
17357 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17358 | ;; | |
17359 | *) | |
17360 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17361 | ;; | |
17362 | esac | |
17363 | done | |
17364 | ||
17365 | # Double-quote double-evaled strings. | |
17366 | for var in reload_cmds \ | |
17367 | old_postinstall_cmds \ | |
17368 | old_postuninstall_cmds \ | |
17369 | old_archive_cmds \ | |
17370 | extract_expsyms_cmds \ | |
17371 | old_archive_from_new_cmds \ | |
17372 | old_archive_from_expsyms_cmds \ | |
17373 | archive_cmds \ | |
17374 | archive_expsym_cmds \ | |
17375 | module_cmds \ | |
17376 | module_expsym_cmds \ | |
17377 | export_symbols_cmds \ | |
17378 | prelink_cmds \ | |
17379 | postinstall_cmds \ | |
17380 | postuninstall_cmds \ | |
17381 | finish_cmds \ | |
17382 | sys_lib_search_path_spec \ | |
17383 | sys_lib_dlsearch_path_spec; do | |
17384 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
17385 | *[\\\\\\\`\\"\\\$]*) | |
17386 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17387 | ;; | |
17388 | *) | |
17389 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17390 | ;; | |
17391 | esac | |
17392 | done | |
17393 | ||
17394 | ac_aux_dir='$ac_aux_dir' | |
17395 | xsi_shell='$xsi_shell' | |
17396 | lt_shell_append='$lt_shell_append' | |
17397 | ||
17398 | # See if we are running on zsh, and set the options which allow our | |
17399 | # commands through without removal of \ escapes INIT. | |
17400 | if test -n "\${ZSH_VERSION+set}" ; then | |
17401 | setopt NO_GLOB_SUBST | |
17402 | fi | |
17403 | ||
17404 | ||
17405 | PACKAGE='$PACKAGE' | |
17406 | VERSION='$VERSION' | |
17407 | TIMESTAMP='$TIMESTAMP' | |
17408 | RM='$RM' | |
17409 | ofile='$ofile' | |
17410 | ||
17411 | ||
17412 | ||
6bddc3e8 | 17413 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
bc56166f MF |
17414 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR |
17415 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17416 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17417 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17418 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17419 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17420 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17421 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17422 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17423 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17424 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17425 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17426 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17427 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17428 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17429 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17430 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17431 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17432 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17433 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17434 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17435 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17436 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17437 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17438 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17439 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17440 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17441 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17442 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17443 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17444 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
17445 | ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR | |
6bddc3e8 | 17446 | |
81ecdfbb | 17447 | _ACEOF |
b7026657 | 17448 | |
81ecdfbb | 17449 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
df1756f4 | 17450 | |
81ecdfbb | 17451 | # Handling of arguments. |
b7026657 AC |
17452 | for ac_config_target in $ac_config_targets |
17453 | do | |
81ecdfbb | 17454 | case $ac_config_target in |
b15c5d7a | 17455 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
b5689863 | 17456 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
6bddc3e8 | 17457 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
36bb57e4 MF |
17458 | "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;; |
17459 | "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;; | |
17460 | "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;; | |
bc56166f | 17461 | "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;; |
36bb57e4 MF |
17462 | "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;; |
17463 | "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;; | |
bc56166f | 17464 | "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;; |
36bb57e4 MF |
17465 | "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;; |
17466 | "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;; | |
bc56166f | 17467 | "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;; |
d8b04da7 MF |
17468 | "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;; |
17469 | "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;; | |
bc56166f MF |
17470 | "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;; |
17471 | "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;; | |
36bb57e4 MF |
17472 | "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;; |
17473 | "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;; | |
bc56166f | 17474 | "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;; |
408a44aa MF |
17475 | "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;; |
17476 | "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;; | |
bc56166f | 17477 | "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;; |
36bb57e4 MF |
17478 | "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;; |
17479 | "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;; | |
bc56166f | 17480 | "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;; |
408a44aa MF |
17481 | "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;; |
17482 | "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;; | |
bc56166f | 17483 | "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;; |
36bb57e4 MF |
17484 | "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;; |
17485 | "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;; | |
17486 | "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;; | |
17487 | "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;; | |
17488 | "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;; | |
bc56166f | 17489 | "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;; |
408a44aa MF |
17490 | "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;; |
17491 | "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;; | |
bc56166f | 17492 | "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;; |
408a44aa MF |
17493 | "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;; |
17494 | "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;; | |
bc56166f | 17495 | "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;; |
36bb57e4 MF |
17496 | "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;; |
17497 | "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;; | |
bc56166f | 17498 | "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;; |
313c332f MF |
17499 | "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;; |
17500 | "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;; | |
bc56166f | 17501 | "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;; |
36bb57e4 MF |
17502 | "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;; |
17503 | "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;; | |
bc56166f | 17504 | "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;; |
36bb57e4 MF |
17505 | "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;; |
17506 | "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;; | |
bc56166f | 17507 | "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;; |
36bb57e4 MF |
17508 | "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;; |
17509 | "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;; | |
bc56166f MF |
17510 | "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;; |
17511 | "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;; | |
17512 | "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;; | |
36bb57e4 MF |
17513 | "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;; |
17514 | "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;; | |
bc56166f | 17515 | "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;; |
36bb57e4 MF |
17516 | "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;; |
17517 | "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;; | |
bc56166f MF |
17518 | "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;; |
17519 | "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;; | |
99aedb62 | 17520 | "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;; |
36bb57e4 MF |
17521 | "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;; |
17522 | "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;; | |
bc56166f MF |
17523 | "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;; |
17524 | "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;; | |
36bb57e4 MF |
17525 | "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;; |
17526 | "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;; | |
bc56166f | 17527 | "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;; |
e173c80f MF |
17528 | "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;; |
17529 | "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;; | |
bc56166f | 17530 | "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;; |
36bb57e4 MF |
17531 | "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;; |
17532 | "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;; | |
bc56166f | 17533 | "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;; |
5d0b3088 MF |
17534 | "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;; |
17535 | "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;; | |
bc56166f | 17536 | "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;; |
bc56166f | 17537 | "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;; |
36bb57e4 MF |
17538 | "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;; |
17539 | "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;; | |
bc56166f | 17540 | "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;; |
3f8414df | 17541 | "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;; |
81ecdfbb | 17542 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
21672298 | 17543 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; |
81ecdfbb | 17544 | |
d0ac1c44 | 17545 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 17546 | esac |
b7026657 | 17547 | done |
c906108c | 17548 | |
81ecdfbb | 17549 | |
b7026657 AC |
17550 | # If the user did not use the arguments to specify the items to instantiate, |
17551 | # then the envvar interface is used. Set only those that are not. | |
17552 | # We use the long form for the default assignment because of an extremely | |
17553 | # bizarre bug on SunOS 4.1.3. | |
17554 | if $ac_need_defaults; then | |
17555 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
b15c5d7a | 17556 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6bddc3e8 | 17557 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
b7026657 | 17558 | fi |
c906108c | 17559 | |
b7026657 | 17560 | # Have a temporary directory for convenience. Make it in the build tree |
81ecdfbb | 17561 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 17562 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
17563 | # Hook for its removal unless debugging. |
17564 | # Note that there is a small window in which the directory will not be cleaned: | |
17565 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
17566 | $debug || |
17567 | { | |
d0ac1c44 | 17568 | tmp= ac_tmp= |
81ecdfbb | 17569 | trap 'exit_status=$? |
d0ac1c44 SM |
17570 | : "${ac_tmp:=$tmp}" |
17571 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
17572 | ' 0 |
17573 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 17574 | } |
b7026657 AC |
17575 | # Create a (secure) tmp directory for tmp files. |
17576 | ||
17577 | { | |
81ecdfbb | 17578 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 17579 | test -d "$tmp" |
b7026657 AC |
17580 | } || |
17581 | { | |
81ecdfbb RW |
17582 | tmp=./conf$$-$RANDOM |
17583 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
17584 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
17585 | ac_tmp=$tmp | |
81ecdfbb RW |
17586 | |
17587 | # Set up the scripts for CONFIG_FILES section. | |
17588 | # No need to generate them if there are no CONFIG_FILES. | |
17589 | # This happens for instance with `./config.status config.h'. | |
17590 | if test -n "$CONFIG_FILES"; then | |
17591 | ||
17592 | ||
17593 | ac_cr=`echo X | tr X '\015'` | |
17594 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17595 | # But we know of no other shell where ac_cr would be empty at this | |
17596 | # point, so we can use a bashism as a fallback. | |
17597 | if test "x$ac_cr" = x; then | |
17598 | eval ac_cr=\$\'\\r\' | |
17599 | fi | |
17600 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17601 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 17602 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
17603 | else |
17604 | ac_cs_awk_cr=$ac_cr | |
17605 | fi | |
17606 | ||
d0ac1c44 | 17607 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
17608 | _ACEOF |
17609 | ||
17610 | ||
17611 | { | |
17612 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17613 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17614 | echo "_ACEOF" | |
17615 | } >conf$$subs.sh || | |
d0ac1c44 SM |
17616 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
17617 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
17618 | ac_delim='%!_!# ' |
17619 | for ac_last_try in false false false false false :; do | |
17620 | . ./conf$$subs.sh || | |
d0ac1c44 | 17621 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
17622 | |
17623 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17624 | if test $ac_delim_n = $ac_delim_num; then | |
17625 | break | |
17626 | elif $ac_last_try; then | |
d0ac1c44 | 17627 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
17628 | else |
17629 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17630 | fi | |
17631 | done | |
17632 | rm -f conf$$subs.sh | |
17633 | ||
17634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 17635 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
17636 | _ACEOF |
17637 | sed -n ' | |
17638 | h | |
17639 | s/^/S["/; s/!.*/"]=/ | |
17640 | p | |
17641 | g | |
17642 | s/^[^!]*!// | |
17643 | :repl | |
17644 | t repl | |
17645 | s/'"$ac_delim"'$// | |
17646 | t delim | |
17647 | :nl | |
17648 | h | |
d0ac1c44 | 17649 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
17650 | t more1 |
17651 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17652 | p | |
17653 | n | |
17654 | b repl | |
17655 | :more1 | |
17656 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17657 | p | |
17658 | g | |
17659 | s/.\{148\}// | |
17660 | t nl | |
17661 | :delim | |
17662 | h | |
d0ac1c44 | 17663 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
17664 | t more2 |
17665 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17666 | p | |
17667 | b | |
17668 | :more2 | |
17669 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17670 | p | |
17671 | g | |
17672 | s/.\{148\}// | |
17673 | t delim | |
17674 | ' <conf$$subs.awk | sed ' | |
17675 | /^[^""]/{ | |
17676 | N | |
17677 | s/\n// | |
17678 | } | |
17679 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17680 | rm -f conf$$subs.awk | |
17681 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17682 | _ACAWK | |
d0ac1c44 | 17683 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
17684 | for (key in S) S_is_set[key] = 1 |
17685 | FS = "\a" | |
17686 | ||
17687 | } | |
b7026657 | 17688 | { |
81ecdfbb RW |
17689 | line = $ 0 |
17690 | nfields = split(line, field, "@") | |
17691 | substed = 0 | |
17692 | len = length(field[1]) | |
17693 | for (i = 2; i < nfields; i++) { | |
17694 | key = field[i] | |
17695 | keylen = length(key) | |
17696 | if (S_is_set[key]) { | |
17697 | value = S[key] | |
17698 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17699 | len += length(value) + length(field[++i]) | |
17700 | substed = 1 | |
17701 | } else | |
17702 | len += 1 + keylen | |
17703 | } | |
17704 | ||
17705 | print line | |
b7026657 AC |
17706 | } |
17707 | ||
81ecdfbb RW |
17708 | _ACAWK |
17709 | _ACEOF | |
17710 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17711 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17712 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17713 | else | |
17714 | cat | |
d0ac1c44 SM |
17715 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
17716 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
fdd6fa61 AG |
17717 | _ACEOF |
17718 | ||
d0ac1c44 SM |
17719 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17720 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
17721 | # trailing colons and then remove the whole line if VPATH becomes empty |
17722 | # (actually we leave an empty line to preserve line numbers). | |
17723 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
17724 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17725 | h | |
17726 | s/// | |
17727 | s/^/:/ | |
17728 | s/[ ]*$/:/ | |
17729 | s/:\$(srcdir):/:/g | |
17730 | s/:\${srcdir}:/:/g | |
17731 | s/:@srcdir@:/:/g | |
17732 | s/^:*// | |
81ecdfbb | 17733 | s/:*$// |
d0ac1c44 SM |
17734 | x |
17735 | s/\(=[ ]*\).*/\1/ | |
17736 | G | |
17737 | s/\n// | |
81ecdfbb RW |
17738 | s/^[^=]*=[ ]*$// |
17739 | }' | |
17740 | fi | |
fdd6fa61 | 17741 | |
81ecdfbb RW |
17742 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17743 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 17744 | |
b15c5d7a MF |
17745 | # Set up the scripts for CONFIG_HEADERS section. |
17746 | # No need to generate them if there are no CONFIG_HEADERS. | |
17747 | # This happens for instance with `./config.status Makefile'. | |
17748 | if test -n "$CONFIG_HEADERS"; then | |
17749 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
17750 | BEGIN { | |
17751 | _ACEOF | |
17752 | ||
17753 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
17754 | # here-document in config.status, that substitutes the proper values into | |
17755 | # config.h.in to produce config.h. | |
17756 | ||
17757 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17758 | # handling of long lines. | |
17759 | ac_delim='%!_!# ' | |
17760 | for ac_last_try in false false :; do | |
17761 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
17762 | if test -z "$ac_tt"; then | |
17763 | break | |
17764 | elif $ac_last_try; then | |
17765 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
17766 | else | |
17767 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17768 | fi | |
17769 | done | |
17770 | ||
17771 | # For the awk script, D is an array of macro values keyed by name, | |
17772 | # likewise P contains macro parameters if any. Preserve backslash | |
17773 | # newline sequences. | |
17774 | ||
17775 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17776 | sed -n ' | |
17777 | s/.\{148\}/&'"$ac_delim"'/g | |
17778 | t rset | |
17779 | :rset | |
17780 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17781 | t def | |
17782 | d | |
17783 | :def | |
17784 | s/\\$// | |
17785 | t bsnl | |
17786 | s/["\\]/\\&/g | |
17787 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17788 | D["\1"]=" \3"/p | |
17789 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17790 | d | |
17791 | :bsnl | |
17792 | s/["\\]/\\&/g | |
17793 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17794 | D["\1"]=" \3\\\\\\n"\\/p | |
17795 | t cont | |
17796 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17797 | t cont | |
17798 | d | |
17799 | :cont | |
17800 | n | |
17801 | s/.\{148\}/&'"$ac_delim"'/g | |
17802 | t clear | |
17803 | :clear | |
17804 | s/\\$// | |
17805 | t bsnlc | |
17806 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17807 | d | |
17808 | :bsnlc | |
17809 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17810 | b cont | |
17811 | ' <confdefs.h | sed ' | |
17812 | s/'"$ac_delim"'/"\\\ | |
17813 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17814 | ||
17815 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17816 | for (key in D) D_is_set[key] = 1 | |
17817 | FS = "\a" | |
17818 | } | |
17819 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17820 | line = \$ 0 | |
17821 | split(line, arg, " ") | |
17822 | if (arg[1] == "#") { | |
17823 | defundef = arg[2] | |
17824 | mac1 = arg[3] | |
17825 | } else { | |
17826 | defundef = substr(arg[1], 2) | |
17827 | mac1 = arg[2] | |
17828 | } | |
17829 | split(mac1, mac2, "(") #) | |
17830 | macro = mac2[1] | |
17831 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17832 | if (D_is_set[macro]) { | |
17833 | # Preserve the white space surrounding the "#". | |
17834 | print prefix "define", macro P[macro] D[macro] | |
17835 | next | |
17836 | } else { | |
17837 | # Replace #undef with comments. This is necessary, for example, | |
17838 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17839 | # on some systems where configure will not decide to define it. | |
17840 | if (defundef == "undef") { | |
17841 | print "/*", prefix defundef, macro, "*/" | |
17842 | next | |
17843 | } | |
17844 | } | |
17845 | } | |
17846 | { print } | |
17847 | _ACAWK | |
17848 | _ACEOF | |
17849 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17850 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
17851 | fi # test -n "$CONFIG_HEADERS" | |
b7026657 | 17852 | |
b15c5d7a MF |
17853 | |
17854 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
81ecdfbb RW |
17855 | shift |
17856 | for ac_tag | |
17857 | do | |
17858 | case $ac_tag in | |
17859 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17860 | esac | |
17861 | case $ac_mode$ac_tag in | |
17862 | :[FHL]*:*);; | |
d0ac1c44 | 17863 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
17864 | :[FH]-) ac_tag=-:-;; |
17865 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17866 | esac | |
17867 | ac_save_IFS=$IFS | |
17868 | IFS=: | |
17869 | set x $ac_tag | |
17870 | IFS=$ac_save_IFS | |
17871 | shift | |
17872 | ac_file=$1 | |
17873 | shift | |
b7026657 | 17874 | |
81ecdfbb RW |
17875 | case $ac_mode in |
17876 | :L) ac_source=$1;; | |
17877 | :[FH]) | |
17878 | ac_file_inputs= | |
17879 | for ac_f | |
17880 | do | |
17881 | case $ac_f in | |
d0ac1c44 | 17882 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
17883 | *) # Look for the file first in the build tree, then in the source tree |
17884 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17885 | # because $ac_f cannot contain `:'. | |
17886 | test -f "$ac_f" || | |
17887 | case $ac_f in | |
17888 | [\\/$]*) false;; | |
17889 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17890 | esac || | |
d0ac1c44 | 17891 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
17892 | esac |
17893 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17894 | as_fn_append ac_file_inputs " '$ac_f'" | |
17895 | done | |
17896 | ||
17897 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17898 | # use $as_me), people would be surprised to read: | |
17899 | # /* config.h. Generated by config.status. */ | |
17900 | configure_input='Generated from '` | |
17901 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17902 | `' by configure.' | |
17903 | if test x"$ac_file" != x-; then | |
17904 | configure_input="$ac_file. $configure_input" | |
17905 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17906 | $as_echo "$as_me: creating $ac_file" >&6;} | |
fdd6fa61 | 17907 | fi |
81ecdfbb RW |
17908 | # Neutralize special characters interpreted by sed in replacement strings. |
17909 | case $configure_input in #( | |
17910 | *\&* | *\|* | *\\* ) | |
17911 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17912 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17913 | *) ac_sed_conf_input=$configure_input;; | |
17914 | esac | |
df1756f4 | 17915 | |
81ecdfbb | 17916 | case $ac_tag in |
d0ac1c44 SM |
17917 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
17918 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
17919 | esac |
17920 | ;; | |
df1756f4 TG |
17921 | esac |
17922 | ||
81ecdfbb | 17923 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
17924 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
17925 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17926 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
17927 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
17928 | $as_echo X"$ac_file" | | |
17929 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17930 | s//\1/ | |
17931 | q | |
17932 | } | |
17933 | /^X\(\/\/\)[^/].*/{ | |
17934 | s//\1/ | |
17935 | q | |
17936 | } | |
17937 | /^X\(\/\/\)$/{ | |
17938 | s//\1/ | |
17939 | q | |
17940 | } | |
17941 | /^X\(\/\).*/{ | |
17942 | s//\1/ | |
17943 | q | |
17944 | } | |
17945 | s/.*/./; q'` | |
17946 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
17947 | ac_builddir=. |
17948 | ||
81ecdfbb RW |
17949 | case "$ac_dir" in |
17950 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17951 | *) | |
17952 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17953 | # A ".." for each directory in $ac_dir_suffix. | |
17954 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17955 | case $ac_top_builddir_sub in | |
17956 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17957 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17958 | esac ;; | |
17959 | esac | |
17960 | ac_abs_top_builddir=$ac_pwd | |
17961 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17962 | # for backward compatibility: | |
17963 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
17964 | |
17965 | case $srcdir in | |
81ecdfbb | 17966 | .) # We are building in place. |
b7026657 | 17967 | ac_srcdir=. |
81ecdfbb RW |
17968 | ac_top_srcdir=$ac_top_builddir_sub |
17969 | ac_abs_top_srcdir=$ac_pwd ;; | |
17970 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 17971 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
17972 | ac_top_srcdir=$srcdir |
17973 | ac_abs_top_srcdir=$srcdir ;; | |
17974 | *) # Relative name. | |
17975 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17976 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17977 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 17978 | esac |
81ecdfbb | 17979 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 17980 | |
b7026657 | 17981 | |
81ecdfbb RW |
17982 | case $ac_mode in |
17983 | :F) | |
17984 | # | |
17985 | # CONFIG_FILE | |
17986 | # | |
c906108c | 17987 | |
b7026657 AC |
17988 | case $INSTALL in |
17989 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 17990 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 17991 | esac |
6bddc3e8 MF |
17992 | ac_MKDIR_P=$MKDIR_P |
17993 | case $MKDIR_P in | |
17994 | [\\/$]* | ?:[\\/]* ) ;; | |
17995 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17996 | esac | |
81ecdfbb | 17997 | _ACEOF |
c906108c | 17998 | |
81ecdfbb RW |
17999 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18000 | # If the template does not know about datarootdir, expand it. | |
18001 | # FIXME: This hack should be removed a few years after 2.60. | |
18002 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
18003 | ac_sed_dataroot=' | |
18004 | /datarootdir/ { | |
18005 | p | |
18006 | q | |
18007 | } | |
18008 | /@datadir@/p | |
18009 | /@docdir@/p | |
18010 | /@infodir@/p | |
18011 | /@localedir@/p | |
18012 | /@mandir@/p' | |
18013 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
18014 | *datarootdir*) ac_datarootdir_seen=yes;; | |
18015 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
18016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
18017 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
18018 | _ACEOF | |
18019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18020 | ac_datarootdir_hack=' | |
18021 | s&@datadir@&$datadir&g | |
18022 | s&@docdir@&$docdir&g | |
18023 | s&@infodir@&$infodir&g | |
18024 | s&@localedir@&$localedir&g | |
18025 | s&@mandir@&$mandir&g | |
18026 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
18027 | esac | |
b7026657 | 18028 | _ACEOF |
81ecdfbb RW |
18029 | |
18030 | # Neutralize VPATH when `$srcdir' = `.'. | |
18031 | # Shell code in configure.ac might set extrasub. | |
18032 | # FIXME: do we really want to maintain this feature? | |
18033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18034 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
18035 | $extrasub |
18036 | _ACEOF | |
81ecdfbb | 18037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
18038 | :t |
18039 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
18040 | s|@configure_input@|$ac_sed_conf_input|;t t |
18041 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
18042 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
18043 | s&@srcdir@&$ac_srcdir&;t t | |
18044 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
18045 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
18046 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
18047 | s&@builddir@&$ac_builddir&;t t | |
18048 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
18049 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
18050 | s&@INSTALL@&$ac_INSTALL&;t t | |
6bddc3e8 | 18051 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
81ecdfbb RW |
18052 | $ac_datarootdir_hack |
18053 | " | |
d0ac1c44 SM |
18054 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
18055 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
18056 | |
18057 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
18058 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
18059 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
18060 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 18061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 18062 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 18063 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 18064 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 18065 | |
d0ac1c44 | 18066 | rm -f "$ac_tmp/stdin" |
81ecdfbb | 18067 | case $ac_file in |
d0ac1c44 SM |
18068 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
18069 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 18070 | esac \ |
d0ac1c44 | 18071 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb | 18072 | ;; |
b15c5d7a MF |
18073 | :H) |
18074 | # | |
18075 | # CONFIG_HEADER | |
18076 | # | |
18077 | if test x"$ac_file" != x-; then | |
18078 | { | |
18079 | $as_echo "/* $configure_input */" \ | |
18080 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
18081 | } >"$ac_tmp/config.h" \ | |
18082 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
18083 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
18084 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
18085 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
18086 | else | |
18087 | rm -f "$ac_file" | |
18088 | mv "$ac_tmp/config.h" "$ac_file" \ | |
18089 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
18090 | fi | |
18091 | else | |
18092 | $as_echo "/* $configure_input */" \ | |
18093 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
18094 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
18095 | fi | |
18096 | # Compute "$ac_file"'s index in $config_headers. | |
18097 | _am_arg="$ac_file" | |
18098 | _am_stamp_count=1 | |
18099 | for _am_header in $config_headers :; do | |
18100 | case $_am_header in | |
18101 | $_am_arg | $_am_arg:* ) | |
18102 | break ;; | |
18103 | * ) | |
18104 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18105 | esac | |
18106 | done | |
18107 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
18108 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18109 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
18110 | X"$_am_arg" : 'X\(//\)$' \| \ | |
18111 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
18112 | $as_echo X"$_am_arg" | | |
18113 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18114 | s//\1/ | |
18115 | q | |
18116 | } | |
18117 | /^X\(\/\/\)[^/].*/{ | |
18118 | s//\1/ | |
18119 | q | |
18120 | } | |
18121 | /^X\(\/\/\)$/{ | |
18122 | s//\1/ | |
18123 | q | |
18124 | } | |
18125 | /^X\(\/\).*/{ | |
18126 | s//\1/ | |
18127 | q | |
18128 | } | |
18129 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18130 | ;; | |
df1756f4 | 18131 | |
6bddc3e8 MF |
18132 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
18133 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
18134 | ;; | |
18135 | esac | |
18136 | ||
c906108c | 18137 | |
6bddc3e8 | 18138 | case $ac_file$ac_mode in |
b5689863 MF |
18139 | "libtool":C) |
18140 | ||
18141 | # See if we are running on zsh, and set the options which allow our | |
18142 | # commands through without removal of \ escapes. | |
18143 | if test -n "${ZSH_VERSION+set}" ; then | |
18144 | setopt NO_GLOB_SUBST | |
18145 | fi | |
18146 | ||
18147 | cfgfile="${ofile}T" | |
18148 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18149 | $RM "$cfgfile" | |
18150 | ||
18151 | cat <<_LT_EOF >> "$cfgfile" | |
18152 | #! $SHELL | |
18153 | ||
18154 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
18155 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
18156 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18157 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18158 | # | |
18159 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
18160 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
18161 | # Written by Gordon Matzigkeit, 1996 | |
18162 | # | |
18163 | # This file is part of GNU Libtool. | |
18164 | # | |
18165 | # GNU Libtool is free software; you can redistribute it and/or | |
18166 | # modify it under the terms of the GNU General Public License as | |
18167 | # published by the Free Software Foundation; either version 2 of | |
18168 | # the License, or (at your option) any later version. | |
18169 | # | |
18170 | # As a special exception to the GNU General Public License, | |
18171 | # if you distribute this file as part of a program or library that | |
18172 | # is built using GNU Libtool, you may include this file under the | |
18173 | # same distribution terms that you use for the rest of that program. | |
18174 | # | |
18175 | # GNU Libtool is distributed in the hope that it will be useful, | |
18176 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18177 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18178 | # GNU General Public License for more details. | |
18179 | # | |
18180 | # You should have received a copy of the GNU General Public License | |
18181 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18182 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18183 | # obtained by writing to the Free Software Foundation, Inc., | |
18184 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
18185 | ||
18186 | ||
18187 | # The names of the tagged configurations supported by this script. | |
18188 | available_tags="" | |
18189 | ||
18190 | # ### BEGIN LIBTOOL CONFIG | |
18191 | ||
18192 | # Which release of libtool.m4 was used? | |
18193 | macro_version=$macro_version | |
18194 | macro_revision=$macro_revision | |
18195 | ||
18196 | # Whether or not to build shared libraries. | |
18197 | build_libtool_libs=$enable_shared | |
18198 | ||
18199 | # Whether or not to build static libraries. | |
18200 | build_old_libs=$enable_static | |
18201 | ||
18202 | # What type of objects to build. | |
18203 | pic_mode=$pic_mode | |
18204 | ||
18205 | # Whether or not to optimize for fast installation. | |
18206 | fast_install=$enable_fast_install | |
18207 | ||
18208 | # Shell to use when invoking shell scripts. | |
18209 | SHELL=$lt_SHELL | |
18210 | ||
18211 | # An echo program that protects backslashes. | |
18212 | ECHO=$lt_ECHO | |
18213 | ||
18214 | # The host system. | |
18215 | host_alias=$host_alias | |
18216 | host=$host | |
18217 | host_os=$host_os | |
18218 | ||
18219 | # The build system. | |
18220 | build_alias=$build_alias | |
18221 | build=$build | |
18222 | build_os=$build_os | |
18223 | ||
18224 | # A sed program that does not truncate output. | |
18225 | SED=$lt_SED | |
18226 | ||
18227 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18228 | Xsed="\$SED -e 1s/^X//" | |
18229 | ||
18230 | # A grep program that handles long lines. | |
18231 | GREP=$lt_GREP | |
18232 | ||
18233 | # An ERE matcher. | |
18234 | EGREP=$lt_EGREP | |
18235 | ||
18236 | # A literal string matcher. | |
18237 | FGREP=$lt_FGREP | |
18238 | ||
18239 | # A BSD- or MS-compatible name lister. | |
18240 | NM=$lt_NM | |
18241 | ||
18242 | # Whether we need soft or hard links. | |
18243 | LN_S=$lt_LN_S | |
18244 | ||
18245 | # What is the maximum length of a command? | |
18246 | max_cmd_len=$max_cmd_len | |
18247 | ||
18248 | # Object file suffix (normally "o"). | |
18249 | objext=$ac_objext | |
18250 | ||
18251 | # Executable file suffix (normally ""). | |
18252 | exeext=$exeext | |
18253 | ||
18254 | # whether the shell understands "unset". | |
18255 | lt_unset=$lt_unset | |
18256 | ||
18257 | # turn spaces into newlines. | |
18258 | SP2NL=$lt_lt_SP2NL | |
18259 | ||
18260 | # turn newlines into spaces. | |
18261 | NL2SP=$lt_lt_NL2SP | |
18262 | ||
18263 | # An object symbol dumper. | |
18264 | OBJDUMP=$lt_OBJDUMP | |
18265 | ||
18266 | # Method to check whether dependent libraries are shared objects. | |
18267 | deplibs_check_method=$lt_deplibs_check_method | |
18268 | ||
18269 | # Command to use when deplibs_check_method == "file_magic". | |
18270 | file_magic_cmd=$lt_file_magic_cmd | |
18271 | ||
18272 | # The archiver. | |
18273 | AR=$lt_AR | |
18274 | AR_FLAGS=$lt_AR_FLAGS | |
18275 | ||
18276 | # A symbol stripping program. | |
18277 | STRIP=$lt_STRIP | |
18278 | ||
18279 | # Commands used to install an old-style archive. | |
18280 | RANLIB=$lt_RANLIB | |
18281 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18282 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18283 | ||
18284 | # Whether to use a lock for old archive extraction. | |
18285 | lock_old_archive_extraction=$lock_old_archive_extraction | |
18286 | ||
18287 | # A C compiler. | |
18288 | LTCC=$lt_CC | |
18289 | ||
18290 | # LTCC compiler flags. | |
18291 | LTCFLAGS=$lt_CFLAGS | |
18292 | ||
18293 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18294 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18295 | ||
18296 | # Transform the output of nm in a proper C declaration. | |
18297 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18298 | ||
18299 | # Transform the output of nm in a C name address pair. | |
18300 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18301 | ||
18302 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
18303 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18304 | ||
18305 | # The name of the directory that contains temporary libtool files. | |
18306 | objdir=$objdir | |
18307 | ||
18308 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18309 | MAGIC_CMD=$MAGIC_CMD | |
18310 | ||
18311 | # Must we lock files when doing compilation? | |
18312 | need_locks=$lt_need_locks | |
18313 | ||
18314 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
18315 | DSYMUTIL=$lt_DSYMUTIL | |
18316 | ||
18317 | # Tool to change global to local symbols on Mac OS X. | |
18318 | NMEDIT=$lt_NMEDIT | |
18319 | ||
18320 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18321 | LIPO=$lt_LIPO | |
18322 | ||
18323 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18324 | OTOOL=$lt_OTOOL | |
18325 | ||
18326 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18327 | OTOOL64=$lt_OTOOL64 | |
18328 | ||
18329 | # Old archive suffix (normally "a"). | |
18330 | libext=$libext | |
18331 | ||
18332 | # Shared library suffix (normally ".so"). | |
18333 | shrext_cmds=$lt_shrext_cmds | |
18334 | ||
18335 | # The commands to extract the exported symbol list from a shared archive. | |
18336 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18337 | ||
18338 | # Variables whose values should be saved in libtool wrapper scripts and | |
18339 | # restored at link time. | |
18340 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
18341 | ||
18342 | # Do we need the "lib" prefix for modules? | |
18343 | need_lib_prefix=$need_lib_prefix | |
18344 | ||
18345 | # Do we need a version for libraries? | |
18346 | need_version=$need_version | |
18347 | ||
18348 | # Library versioning type. | |
18349 | version_type=$version_type | |
18350 | ||
18351 | # Shared library runtime path variable. | |
18352 | runpath_var=$runpath_var | |
18353 | ||
18354 | # Shared library path variable. | |
18355 | shlibpath_var=$shlibpath_var | |
18356 | ||
18357 | # Is shlibpath searched before the hard-coded library search path? | |
18358 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18359 | ||
18360 | # Format of library name prefix. | |
18361 | libname_spec=$lt_libname_spec | |
18362 | ||
18363 | # List of archive names. First name is the real one, the rest are links. | |
18364 | # The last name is the one that the linker finds with -lNAME | |
18365 | library_names_spec=$lt_library_names_spec | |
18366 | ||
18367 | # The coded name of the library, if different from the real name. | |
18368 | soname_spec=$lt_soname_spec | |
18369 | ||
18370 | # Permission mode override for installation of shared libraries. | |
18371 | install_override_mode=$lt_install_override_mode | |
18372 | ||
18373 | # Command to use after installation of a shared archive. | |
18374 | postinstall_cmds=$lt_postinstall_cmds | |
18375 | ||
18376 | # Command to use after uninstallation of a shared archive. | |
18377 | postuninstall_cmds=$lt_postuninstall_cmds | |
18378 | ||
18379 | # Commands used to finish a libtool library installation in a directory. | |
18380 | finish_cmds=$lt_finish_cmds | |
18381 | ||
18382 | # As "finish_cmds", except a single script fragment to be evaled but | |
18383 | # not shown. | |
18384 | finish_eval=$lt_finish_eval | |
18385 | ||
18386 | # Whether we should hardcode library paths into libraries. | |
18387 | hardcode_into_libs=$hardcode_into_libs | |
18388 | ||
18389 | # Compile-time system search path for libraries. | |
18390 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18391 | ||
18392 | # Run-time system search path for libraries. | |
18393 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18394 | ||
18395 | # Whether dlopen is supported. | |
18396 | dlopen_support=$enable_dlopen | |
18397 | ||
18398 | # Whether dlopen of programs is supported. | |
18399 | dlopen_self=$enable_dlopen_self | |
18400 | ||
18401 | # Whether dlopen of statically linked programs is supported. | |
18402 | dlopen_self_static=$enable_dlopen_self_static | |
18403 | ||
18404 | # Commands to strip libraries. | |
18405 | old_striplib=$lt_old_striplib | |
18406 | striplib=$lt_striplib | |
18407 | ||
18408 | ||
18409 | # The linker used to build libraries. | |
18410 | LD=$lt_LD | |
18411 | ||
18412 | # How to create reloadable object files. | |
18413 | reload_flag=$lt_reload_flag | |
18414 | reload_cmds=$lt_reload_cmds | |
18415 | ||
18416 | # Commands used to build an old-style archive. | |
18417 | old_archive_cmds=$lt_old_archive_cmds | |
18418 | ||
18419 | # A language specific compiler. | |
18420 | CC=$lt_compiler | |
18421 | ||
18422 | # Is the compiler the GNU compiler? | |
18423 | with_gcc=$GCC | |
18424 | ||
18425 | # Compiler flag to turn off builtin functions. | |
18426 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18427 | ||
18428 | # How to pass a linker flag through the compiler. | |
18429 | wl=$lt_lt_prog_compiler_wl | |
18430 | ||
18431 | # Additional compiler flags for building library objects. | |
18432 | pic_flag=$lt_lt_prog_compiler_pic | |
18433 | ||
18434 | # Compiler flag to prevent dynamic linking. | |
18435 | link_static_flag=$lt_lt_prog_compiler_static | |
18436 | ||
18437 | # Does compiler simultaneously support -c and -o options? | |
18438 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18439 | ||
18440 | # Whether or not to add -lc for building shared libraries. | |
18441 | build_libtool_need_lc=$archive_cmds_need_lc | |
18442 | ||
18443 | # Whether or not to disallow shared libs when runtime libs are static. | |
18444 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18445 | ||
18446 | # Compiler flag to allow reflexive dlopens. | |
18447 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18448 | ||
18449 | # Compiler flag to generate shared objects directly from archives. | |
18450 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18451 | ||
18452 | # Whether the compiler copes with passing no objects directly. | |
18453 | compiler_needs_object=$lt_compiler_needs_object | |
18454 | ||
18455 | # Create an old-style archive from a shared archive. | |
18456 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18457 | ||
18458 | # Create a temporary old-style archive to link instead of a shared archive. | |
18459 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18460 | ||
18461 | # Commands used to build a shared archive. | |
18462 | archive_cmds=$lt_archive_cmds | |
18463 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18464 | ||
18465 | # Commands used to build a loadable module if different from building | |
18466 | # a shared archive. | |
18467 | module_cmds=$lt_module_cmds | |
18468 | module_expsym_cmds=$lt_module_expsym_cmds | |
18469 | ||
18470 | # Whether we are building with GNU ld or not. | |
18471 | with_gnu_ld=$lt_with_gnu_ld | |
18472 | ||
18473 | # Flag that allows shared libraries with undefined symbols to be built. | |
18474 | allow_undefined_flag=$lt_allow_undefined_flag | |
18475 | ||
18476 | # Flag that enforces no undefined symbols. | |
18477 | no_undefined_flag=$lt_no_undefined_flag | |
18478 | ||
18479 | # Flag to hardcode \$libdir into a binary during linking. | |
18480 | # This must work even if \$libdir does not exist | |
18481 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18482 | ||
18483 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18484 | # during linking. This must work even if \$libdir does not exist. | |
18485 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
18486 | ||
18487 | # Whether we need a single "-rpath" flag with a separated argument. | |
18488 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18489 | ||
18490 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18491 | # DIR into the resulting binary. | |
18492 | hardcode_direct=$hardcode_direct | |
18493 | ||
18494 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18495 | # DIR into the resulting binary and the resulting library dependency is | |
18496 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18497 | # library is relocated. | |
18498 | hardcode_direct_absolute=$hardcode_direct_absolute | |
18499 | ||
18500 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18501 | # into the resulting binary. | |
18502 | hardcode_minus_L=$hardcode_minus_L | |
18503 | ||
18504 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18505 | # into the resulting binary. | |
18506 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18507 | ||
18508 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18509 | # into the library and all subsequent libraries and executables linked | |
18510 | # against it. | |
18511 | hardcode_automatic=$hardcode_automatic | |
18512 | ||
18513 | # Set to yes if linker adds runtime paths of dependent libraries | |
18514 | # to runtime path list. | |
18515 | inherit_rpath=$inherit_rpath | |
18516 | ||
18517 | # Whether libtool must link a program against all its dependency libraries. | |
18518 | link_all_deplibs=$link_all_deplibs | |
18519 | ||
18520 | # Fix the shell variable \$srcfile for the compiler. | |
18521 | fix_srcfile_path=$lt_fix_srcfile_path | |
18522 | ||
18523 | # Set to "yes" if exported symbols are required. | |
18524 | always_export_symbols=$always_export_symbols | |
18525 | ||
18526 | # The commands to list exported symbols. | |
18527 | export_symbols_cmds=$lt_export_symbols_cmds | |
18528 | ||
18529 | # Symbols that should not be listed in the preloaded symbols. | |
18530 | exclude_expsyms=$lt_exclude_expsyms | |
18531 | ||
18532 | # Symbols that must always be exported. | |
18533 | include_expsyms=$lt_include_expsyms | |
18534 | ||
18535 | # Commands necessary for linking programs (against libraries) with templates. | |
18536 | prelink_cmds=$lt_prelink_cmds | |
18537 | ||
18538 | # Specify filename containing input files. | |
18539 | file_list_spec=$lt_file_list_spec | |
18540 | ||
18541 | # How to hardcode a shared library path into an executable. | |
18542 | hardcode_action=$hardcode_action | |
18543 | ||
18544 | # ### END LIBTOOL CONFIG | |
18545 | ||
18546 | _LT_EOF | |
18547 | ||
18548 | case $host_os in | |
18549 | aix3*) | |
18550 | cat <<\_LT_EOF >> "$cfgfile" | |
18551 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18552 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18553 | # vanish in a puff of smoke. | |
18554 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18555 | COLLECT_NAMES= | |
18556 | export COLLECT_NAMES | |
18557 | fi | |
18558 | _LT_EOF | |
18559 | ;; | |
18560 | esac | |
18561 | ||
18562 | ||
18563 | ltmain="$ac_aux_dir/ltmain.sh" | |
18564 | ||
18565 | ||
18566 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18567 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18568 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18569 | # is reportedly fixed, but why not run on old versions too? | |
18570 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
18571 | || (rm -f "$cfgfile"; exit 1) | |
18572 | ||
18573 | case $xsi_shell in | |
18574 | yes) | |
18575 | cat << \_LT_EOF >> "$cfgfile" | |
18576 | ||
18577 | # func_dirname file append nondir_replacement | |
18578 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18579 | # otherwise set result to NONDIR_REPLACEMENT. | |
18580 | func_dirname () | |
18581 | { | |
18582 | case ${1} in | |
18583 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18584 | * ) func_dirname_result="${3}" ;; | |
18585 | esac | |
18586 | } | |
18587 | ||
18588 | # func_basename file | |
18589 | func_basename () | |
18590 | { | |
18591 | func_basename_result="${1##*/}" | |
18592 | } | |
18593 | ||
18594 | # func_dirname_and_basename file append nondir_replacement | |
18595 | # perform func_basename and func_dirname in a single function | |
18596 | # call: | |
18597 | # dirname: Compute the dirname of FILE. If nonempty, | |
18598 | # add APPEND to the result, otherwise set result | |
18599 | # to NONDIR_REPLACEMENT. | |
18600 | # value returned in "$func_dirname_result" | |
18601 | # basename: Compute filename of FILE. | |
18602 | # value retuned in "$func_basename_result" | |
18603 | # Implementation must be kept synchronized with func_dirname | |
18604 | # and func_basename. For efficiency, we do not delegate to | |
18605 | # those functions but instead duplicate the functionality here. | |
18606 | func_dirname_and_basename () | |
18607 | { | |
18608 | case ${1} in | |
18609 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18610 | * ) func_dirname_result="${3}" ;; | |
18611 | esac | |
18612 | func_basename_result="${1##*/}" | |
18613 | } | |
18614 | ||
18615 | # func_stripname prefix suffix name | |
18616 | # strip PREFIX and SUFFIX off of NAME. | |
18617 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18618 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18619 | # dot (in which case that matches only a dot). | |
18620 | func_stripname () | |
18621 | { | |
18622 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18623 | # positional parameters, so assign one to ordinary parameter first. | |
18624 | func_stripname_result=${3} | |
18625 | func_stripname_result=${func_stripname_result#"${1}"} | |
18626 | func_stripname_result=${func_stripname_result%"${2}"} | |
18627 | } | |
18628 | ||
18629 | # func_opt_split | |
18630 | func_opt_split () | |
18631 | { | |
18632 | func_opt_split_opt=${1%%=*} | |
18633 | func_opt_split_arg=${1#*=} | |
18634 | } | |
18635 | ||
18636 | # func_lo2o object | |
18637 | func_lo2o () | |
18638 | { | |
18639 | case ${1} in | |
18640 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18641 | *) func_lo2o_result=${1} ;; | |
18642 | esac | |
18643 | } | |
18644 | ||
18645 | # func_xform libobj-or-source | |
18646 | func_xform () | |
18647 | { | |
18648 | func_xform_result=${1%.*}.lo | |
18649 | } | |
18650 | ||
18651 | # func_arith arithmetic-term... | |
18652 | func_arith () | |
18653 | { | |
18654 | func_arith_result=$(( $* )) | |
18655 | } | |
18656 | ||
18657 | # func_len string | |
18658 | # STRING may not start with a hyphen. | |
18659 | func_len () | |
18660 | { | |
18661 | func_len_result=${#1} | |
18662 | } | |
18663 | ||
18664 | _LT_EOF | |
18665 | ;; | |
18666 | *) # Bourne compatible functions. | |
18667 | cat << \_LT_EOF >> "$cfgfile" | |
18668 | ||
18669 | # func_dirname file append nondir_replacement | |
18670 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18671 | # otherwise set result to NONDIR_REPLACEMENT. | |
18672 | func_dirname () | |
18673 | { | |
18674 | # Extract subdirectory from the argument. | |
18675 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
18676 | if test "X$func_dirname_result" = "X${1}"; then | |
18677 | func_dirname_result="${3}" | |
18678 | else | |
18679 | func_dirname_result="$func_dirname_result${2}" | |
18680 | fi | |
18681 | } | |
18682 | ||
18683 | # func_basename file | |
18684 | func_basename () | |
18685 | { | |
18686 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
18687 | } | |
18688 | ||
18689 | ||
18690 | # func_stripname prefix suffix name | |
18691 | # strip PREFIX and SUFFIX off of NAME. | |
18692 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18693 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18694 | # dot (in which case that matches only a dot). | |
18695 | # func_strip_suffix prefix name | |
18696 | func_stripname () | |
18697 | { | |
18698 | case ${2} in | |
18699 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
18700 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
18701 | esac | |
18702 | } | |
18703 | ||
18704 | # sed scripts: | |
18705 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18706 | my_sed_long_arg='1s/^-[^=]*=//' | |
18707 | ||
18708 | # func_opt_split | |
18709 | func_opt_split () | |
18710 | { | |
18711 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
18712 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
18713 | } | |
18714 | ||
18715 | # func_lo2o object | |
18716 | func_lo2o () | |
18717 | { | |
18718 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
18719 | } | |
18720 | ||
18721 | # func_xform libobj-or-source | |
18722 | func_xform () | |
18723 | { | |
18724 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
18725 | } | |
18726 | ||
18727 | # func_arith arithmetic-term... | |
18728 | func_arith () | |
18729 | { | |
18730 | func_arith_result=`expr "$@"` | |
18731 | } | |
18732 | ||
18733 | # func_len string | |
18734 | # STRING may not start with a hyphen. | |
18735 | func_len () | |
18736 | { | |
18737 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18738 | } | |
18739 | ||
18740 | _LT_EOF | |
18741 | esac | |
18742 | ||
18743 | case $lt_shell_append in | |
18744 | yes) | |
18745 | cat << \_LT_EOF >> "$cfgfile" | |
18746 | ||
18747 | # func_append var value | |
18748 | # Append VALUE to the end of shell variable VAR. | |
18749 | func_append () | |
18750 | { | |
18751 | eval "$1+=\$2" | |
18752 | } | |
18753 | _LT_EOF | |
18754 | ;; | |
18755 | *) | |
18756 | cat << \_LT_EOF >> "$cfgfile" | |
18757 | ||
18758 | # func_append var value | |
18759 | # Append VALUE to the end of shell variable VAR. | |
18760 | func_append () | |
18761 | { | |
18762 | eval "$1=\$$1\$2" | |
18763 | } | |
18764 | ||
18765 | _LT_EOF | |
18766 | ;; | |
18767 | esac | |
18768 | ||
18769 | ||
18770 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18771 | || (rm -f "$cfgfile"; exit 1) | |
18772 | ||
18773 | mv -f "$cfgfile" "$ofile" || | |
18774 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18775 | chmod +x "$ofile" | |
18776 | ||
18777 | ;; | |
6bddc3e8 MF |
18778 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
18779 | # Older Autoconf quotes --file arguments for eval, but not when files | |
18780 | # are listed without --file. Let's play safe and only enable the eval | |
18781 | # if we detect the quoting. | |
18782 | case $CONFIG_FILES in | |
18783 | *\'*) eval set x "$CONFIG_FILES" ;; | |
18784 | *) set x $CONFIG_FILES ;; | |
81ecdfbb | 18785 | esac |
6bddc3e8 MF |
18786 | shift |
18787 | for mf | |
18788 | do | |
18789 | # Strip MF so we end up with the name of the file. | |
18790 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18791 | # Check whether this is an Automake generated Makefile or not. | |
18792 | # We used to match only the files named 'Makefile.in', but | |
18793 | # some people rename them; so instead we look at the file content. | |
18794 | # Grep'ing the first line is not enough: some people post-process | |
18795 | # each Makefile.in and add a new line on top of each file to say so. | |
18796 | # Grep'ing the whole file is not good either: AIX grep has a line | |
18797 | # limit of 2048, but all sed's we know have understand at least 4000. | |
18798 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
18799 | dirpart=`$as_dirname -- "$mf" || | |
18800 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18801 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18802 | X"$mf" : 'X\(//\)$' \| \ | |
18803 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
18804 | $as_echo X"$mf" | | |
18805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18806 | s//\1/ | |
18807 | q | |
18808 | } | |
18809 | /^X\(\/\/\)[^/].*/{ | |
18810 | s//\1/ | |
18811 | q | |
18812 | } | |
18813 | /^X\(\/\/\)$/{ | |
18814 | s//\1/ | |
18815 | q | |
18816 | } | |
18817 | /^X\(\/\).*/{ | |
18818 | s//\1/ | |
18819 | q | |
18820 | } | |
18821 | s/.*/./; q'` | |
18822 | else | |
18823 | continue | |
18824 | fi | |
18825 | # Extract the definition of DEPDIR, am__include, and am__quote | |
18826 | # from the Makefile without running 'make'. | |
18827 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
18828 | test -z "$DEPDIR" && continue | |
18829 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
18830 | test -z "$am__include" && continue | |
18831 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
18832 | # Find all dependency output files, they are included files with | |
18833 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18834 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18835 | # expansion. | |
18836 | for file in `sed -n " | |
18837 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
18838 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
18839 | # Make sure the directory exists. | |
18840 | test -f "$dirpart/$file" && continue | |
18841 | fdir=`$as_dirname -- "$file" || | |
18842 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18843 | X"$file" : 'X\(//\)[^/]' \| \ | |
18844 | X"$file" : 'X\(//\)$' \| \ | |
18845 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
18846 | $as_echo X"$file" | | |
18847 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18848 | s//\1/ | |
18849 | q | |
18850 | } | |
18851 | /^X\(\/\/\)[^/].*/{ | |
18852 | s//\1/ | |
18853 | q | |
18854 | } | |
18855 | /^X\(\/\/\)$/{ | |
18856 | s//\1/ | |
18857 | q | |
18858 | } | |
18859 | /^X\(\/\).*/{ | |
18860 | s//\1/ | |
18861 | q | |
18862 | } | |
18863 | s/.*/./; q'` | |
18864 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
18865 | # echo "creating $dirpart/$file" | |
18866 | echo '# dummy' > "$dirpart/$file" | |
18867 | done | |
18868 | done | |
18869 | } | |
36bb57e4 MF |
18870 | ;; |
18871 | "aarch64/Makefile":C) sed -n \ | |
18872 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 18873 | /^srcdir = / s:$:/aarch64: |
36bb57e4 MF |
18874 | p |
18875 | }' \ | |
18876 | <Make-common.sim >aarch64/Makesim1.tmp | |
18877 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp | |
18878 | sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \ | |
18879 | -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \ | |
18880 | <aarch64/Makefile.sim >aarch64/Makefile | |
18881 | rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp | |
6bddc3e8 | 18882 | ;; |
bc56166f | 18883 | "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;; |
36bb57e4 MF |
18884 | "arm/Makefile":C) sed -n \ |
18885 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 18886 | /^srcdir = / s:$:/arm: |
36bb57e4 MF |
18887 | p |
18888 | }' \ | |
18889 | <Make-common.sim >arm/Makesim1.tmp | |
18890 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp | |
18891 | sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \ | |
18892 | -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \ | |
18893 | <arm/Makefile.sim >arm/Makefile | |
18894 | rm -f arm/Makesim1.tmp arm/Makesim2.tmp | |
18895 | ;; | |
bc56166f | 18896 | "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;; |
36bb57e4 MF |
18897 | "avr/Makefile":C) sed -n \ |
18898 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 18899 | /^srcdir = / s:$:/avr: |
36bb57e4 MF |
18900 | p |
18901 | }' \ | |
18902 | <Make-common.sim >avr/Makesim1.tmp | |
18903 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp | |
18904 | sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \ | |
18905 | -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \ | |
18906 | <avr/Makefile.sim >avr/Makefile | |
18907 | rm -f avr/Makesim1.tmp avr/Makesim2.tmp | |
18908 | ;; | |
bc56166f | 18909 | "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;; |
d8b04da7 MF |
18910 | "bfin/Makefile":C) sed -n \ |
18911 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
18912 | /^srcdir = / s:$:/bfin: | |
18913 | p | |
18914 | }' \ | |
18915 | <Make-common.sim >bfin/Makesim1.tmp | |
18916 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp | |
18917 | sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \ | |
18918 | -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \ | |
18919 | <bfin/Makefile.sim >bfin/Makefile | |
18920 | rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp | |
18921 | ;; | |
bc56166f MF |
18922 | "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;; |
18923 | "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;; | |
36bb57e4 MF |
18924 | "cr16/Makefile":C) sed -n \ |
18925 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 18926 | /^srcdir = / s:$:/cr16: |
36bb57e4 MF |
18927 | p |
18928 | }' \ | |
18929 | <Make-common.sim >cr16/Makesim1.tmp | |
18930 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp | |
18931 | sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \ | |
18932 | -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \ | |
18933 | <cr16/Makefile.sim >cr16/Makefile | |
18934 | rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp | |
18935 | ;; | |
bc56166f | 18936 | "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;; |
408a44aa MF |
18937 | "cris/Makefile":C) sed -n \ |
18938 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
18939 | /^srcdir = / s:$:/cris: | |
18940 | p | |
18941 | }' \ | |
18942 | <Make-common.sim >cris/Makesim1.tmp | |
18943 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp | |
18944 | sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \ | |
18945 | -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \ | |
18946 | <cris/Makefile.sim >cris/Makefile | |
18947 | rm -f cris/Makesim1.tmp cris/Makesim2.tmp | |
18948 | ;; | |
bc56166f | 18949 | "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;; |
36bb57e4 MF |
18950 | "d10v/Makefile":C) sed -n \ |
18951 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 18952 | /^srcdir = / s:$:/d10v: |
36bb57e4 MF |
18953 | p |
18954 | }' \ | |
18955 | <Make-common.sim >d10v/Makesim1.tmp | |
18956 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp | |
18957 | sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \ | |
18958 | -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \ | |
18959 | <d10v/Makefile.sim >d10v/Makefile | |
18960 | rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp | |
18961 | ;; | |
bc56166f | 18962 | "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;; |
408a44aa MF |
18963 | "frv/Makefile":C) sed -n \ |
18964 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
18965 | /^srcdir = / s:$:/frv: | |
18966 | p | |
18967 | }' \ | |
18968 | <Make-common.sim >frv/Makesim1.tmp | |
18969 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp | |
18970 | sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \ | |
18971 | -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \ | |
18972 | <frv/Makefile.sim >frv/Makefile | |
18973 | rm -f frv/Makesim1.tmp frv/Makesim2.tmp | |
18974 | ;; | |
bc56166f | 18975 | "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;; |
36bb57e4 MF |
18976 | "ft32/Makefile":C) sed -n \ |
18977 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 18978 | /^srcdir = / s:$:/ft32: |
36bb57e4 MF |
18979 | p |
18980 | }' \ | |
18981 | <Make-common.sim >ft32/Makesim1.tmp | |
18982 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp | |
18983 | sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \ | |
18984 | -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \ | |
18985 | <ft32/Makefile.sim >ft32/Makefile | |
18986 | rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp | |
18987 | ;; | |
18988 | "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;; | |
18989 | "h8300/Makefile":C) sed -n \ | |
18990 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 18991 | /^srcdir = / s:$:/h8300: |
36bb57e4 MF |
18992 | p |
18993 | }' \ | |
18994 | <Make-common.sim >h8300/Makesim1.tmp | |
18995 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp | |
18996 | sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \ | |
18997 | -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \ | |
18998 | <h8300/Makefile.sim >h8300/Makefile | |
18999 | rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp | |
19000 | ;; | |
bc56166f | 19001 | "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;; |
408a44aa MF |
19002 | "iq2000/Makefile":C) sed -n \ |
19003 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
19004 | /^srcdir = / s:$:/iq2000: | |
19005 | p | |
19006 | }' \ | |
19007 | <Make-common.sim >iq2000/Makesim1.tmp | |
19008 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp | |
19009 | sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \ | |
19010 | -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \ | |
19011 | <iq2000/Makefile.sim >iq2000/Makefile | |
19012 | rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp | |
19013 | ;; | |
bc56166f | 19014 | "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;; |
408a44aa MF |
19015 | "lm32/Makefile":C) sed -n \ |
19016 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
19017 | /^srcdir = / s:$:/lm32: | |
19018 | p | |
19019 | }' \ | |
19020 | <Make-common.sim >lm32/Makesim1.tmp | |
19021 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp | |
19022 | sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \ | |
19023 | -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \ | |
19024 | <lm32/Makefile.sim >lm32/Makefile | |
19025 | rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp | |
19026 | ;; | |
bc56166f | 19027 | "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;; |
36bb57e4 MF |
19028 | "m32c/Makefile":C) sed -n \ |
19029 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19030 | /^srcdir = / s:$:/m32c: |
36bb57e4 MF |
19031 | p |
19032 | }' \ | |
19033 | <Make-common.sim >m32c/Makesim1.tmp | |
19034 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp | |
19035 | sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \ | |
19036 | -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \ | |
19037 | <m32c/Makefile.sim >m32c/Makefile | |
19038 | rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp | |
19039 | ;; | |
bc56166f | 19040 | "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;; |
313c332f MF |
19041 | "m32r/Makefile":C) sed -n \ |
19042 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
19043 | /^srcdir = / s:$:/m32r: | |
19044 | p | |
19045 | }' \ | |
19046 | <Make-common.sim >m32r/Makesim1.tmp | |
19047 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp | |
19048 | sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \ | |
19049 | -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \ | |
19050 | <m32r/Makefile.sim >m32r/Makefile | |
19051 | rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp | |
19052 | ;; | |
bc56166f | 19053 | "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;; |
36bb57e4 MF |
19054 | "m68hc11/Makefile":C) sed -n \ |
19055 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19056 | /^srcdir = / s:$:/m68hc11: |
36bb57e4 MF |
19057 | p |
19058 | }' \ | |
19059 | <Make-common.sim >m68hc11/Makesim1.tmp | |
19060 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp | |
19061 | sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \ | |
19062 | -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \ | |
19063 | <m68hc11/Makefile.sim >m68hc11/Makefile | |
19064 | rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp | |
19065 | ;; | |
bc56166f | 19066 | "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;; |
36bb57e4 MF |
19067 | "mcore/Makefile":C) sed -n \ |
19068 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19069 | /^srcdir = / s:$:/mcore: |
36bb57e4 MF |
19070 | p |
19071 | }' \ | |
19072 | <Make-common.sim >mcore/Makesim1.tmp | |
19073 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp | |
19074 | sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \ | |
19075 | -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \ | |
19076 | <mcore/Makefile.sim >mcore/Makefile | |
19077 | rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp | |
19078 | ;; | |
bc56166f | 19079 | "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;; |
36bb57e4 MF |
19080 | "microblaze/Makefile":C) sed -n \ |
19081 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19082 | /^srcdir = / s:$:/microblaze: |
36bb57e4 MF |
19083 | p |
19084 | }' \ | |
19085 | <Make-common.sim >microblaze/Makesim1.tmp | |
19086 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp | |
19087 | sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \ | |
19088 | -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \ | |
19089 | <microblaze/Makefile.sim >microblaze/Makefile | |
19090 | rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp | |
19091 | ;; | |
bc56166f MF |
19092 | "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;; |
19093 | "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;; | |
19094 | "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;; | |
36bb57e4 MF |
19095 | "moxie/Makefile":C) sed -n \ |
19096 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19097 | /^srcdir = / s:$:/moxie: |
36bb57e4 MF |
19098 | p |
19099 | }' \ | |
19100 | <Make-common.sim >moxie/Makesim1.tmp | |
19101 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp | |
19102 | sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \ | |
19103 | -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \ | |
19104 | <moxie/Makefile.sim >moxie/Makefile | |
19105 | rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp | |
19106 | ;; | |
bc56166f | 19107 | "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;; |
36bb57e4 MF |
19108 | "msp430/Makefile":C) sed -n \ |
19109 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19110 | /^srcdir = / s:$:/msp430: |
36bb57e4 MF |
19111 | p |
19112 | }' \ | |
19113 | <Make-common.sim >msp430/Makesim1.tmp | |
19114 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp | |
19115 | sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \ | |
19116 | -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \ | |
19117 | <msp430/Makefile.sim >msp430/Makefile | |
19118 | rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp | |
19119 | ;; | |
bc56166f MF |
19120 | "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;; |
19121 | "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;; | |
99aedb62 | 19122 | "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;; |
36bb57e4 MF |
19123 | "pru/Makefile":C) sed -n \ |
19124 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19125 | /^srcdir = / s:$:/pru: |
36bb57e4 MF |
19126 | p |
19127 | }' \ | |
19128 | <Make-common.sim >pru/Makesim1.tmp | |
19129 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp | |
19130 | sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \ | |
19131 | -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \ | |
19132 | <pru/Makefile.sim >pru/Makefile | |
19133 | rm -f pru/Makesim1.tmp pru/Makesim2.tmp | |
19134 | ;; | |
bc56166f MF |
19135 | "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;; |
19136 | "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;; | |
36bb57e4 MF |
19137 | "rl78/Makefile":C) sed -n \ |
19138 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19139 | /^srcdir = / s:$:/rl78: |
36bb57e4 MF |
19140 | p |
19141 | }' \ | |
19142 | <Make-common.sim >rl78/Makesim1.tmp | |
19143 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp | |
19144 | sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \ | |
19145 | -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \ | |
19146 | <rl78/Makefile.sim >rl78/Makefile | |
19147 | rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp | |
19148 | ;; | |
bc56166f | 19149 | "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;; |
e173c80f MF |
19150 | "rx/Makefile":C) sed -n \ |
19151 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19152 | /^srcdir = / s:$:/rx: |
e173c80f MF |
19153 | p |
19154 | }' \ | |
19155 | <Make-common.sim >rx/Makesim1.tmp | |
19156 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp | |
19157 | sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \ | |
19158 | -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \ | |
19159 | <rx/Makefile.sim >rx/Makefile | |
19160 | rm -f rx/Makesim1.tmp rx/Makesim2.tmp | |
19161 | ;; | |
bc56166f | 19162 | "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;; |
36bb57e4 MF |
19163 | "sh/Makefile":C) sed -n \ |
19164 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19165 | /^srcdir = / s:$:/sh: |
36bb57e4 MF |
19166 | p |
19167 | }' \ | |
19168 | <Make-common.sim >sh/Makesim1.tmp | |
19169 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp | |
19170 | sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \ | |
19171 | -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \ | |
19172 | <sh/Makefile.sim >sh/Makefile | |
19173 | rm -f sh/Makesim1.tmp sh/Makesim2.tmp | |
19174 | ;; | |
bc56166f | 19175 | "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;; |
5d0b3088 MF |
19176 | "erc32/Makefile":C) sed -n \ |
19177 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
19178 | /^srcdir = / s:$:/erc32: | |
19179 | p | |
19180 | }' \ | |
19181 | <Make-common.sim >erc32/Makesim1.tmp | |
19182 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp | |
19183 | sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \ | |
19184 | -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \ | |
19185 | <erc32/Makefile.sim >erc32/Makefile | |
19186 | rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp | |
19187 | ;; | |
bc56166f | 19188 | "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;; |
bc56166f | 19189 | "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;; |
36bb57e4 MF |
19190 | "example-synacor/Makefile":C) sed -n \ |
19191 | -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ { | |
b3408412 | 19192 | /^srcdir = / s:$:/example-synacor: |
36bb57e4 MF |
19193 | p |
19194 | }' \ | |
19195 | <Make-common.sim >example-synacor/Makesim1.tmp | |
19196 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp | |
19197 | sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \ | |
19198 | -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \ | |
19199 | <example-synacor/Makefile.sim >example-synacor/Makefile | |
19200 | rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp | |
19201 | ;; | |
bc56166f | 19202 | "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;; |
81ecdfbb | 19203 | |
6bddc3e8 | 19204 | esac |
81ecdfbb RW |
19205 | done # for ac_tag |
19206 | ||
19207 | ||
19208 | as_fn_exit 0 | |
b7026657 | 19209 | _ACEOF |
b7026657 AC |
19210 | ac_clean_files=$ac_clean_files_save |
19211 | ||
81ecdfbb | 19212 | test $ac_write_fail = 0 || |
d0ac1c44 | 19213 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 19214 | |
b7026657 AC |
19215 | |
19216 | # configure is writing to config.log, and then calls config.status. | |
19217 | # config.status does its own redirection, appending to config.log. | |
19218 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19219 | # by configure, so config.status won't be able to write to it; its | |
19220 | # output is simply discarded. So we exec the FD to /dev/null, | |
19221 | # effectively closing config.log, so it can be properly (re)opened and | |
19222 | # appended to by config.status. When coming back to configure, we | |
19223 | # need to make the FD available again. | |
19224 | if test "$no_create" != yes; then | |
19225 | ac_cs_success=: | |
19226 | ac_config_status_args= | |
19227 | test "$silent" = yes && | |
19228 | ac_config_status_args="$ac_config_status_args --quiet" | |
19229 | exec 5>/dev/null | |
19230 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19231 | exec 5>>config.log | |
19232 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19233 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 19234 | $ac_cs_success || as_fn_exit 1 |
b7026657 | 19235 | fi |
c906108c | 19236 | |
b7026657 | 19237 | # |
81ecdfbb | 19238 | # CONFIG_SUBDIRS section. |
b7026657 | 19239 | # |
c906108c SS |
19240 | if test "$no_recursion" != yes; then |
19241 | ||
81ecdfbb RW |
19242 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
19243 | # so they do not pile up. | |
c906108c SS |
19244 | ac_sub_configure_args= |
19245 | ac_prev= | |
d6416cdc RW |
19246 | eval "set x $ac_configure_args" |
19247 | shift | |
19248 | for ac_arg | |
19249 | do | |
c906108c SS |
19250 | if test -n "$ac_prev"; then |
19251 | ac_prev= | |
19252 | continue | |
19253 | fi | |
b7026657 | 19254 | case $ac_arg in |
c906108c SS |
19255 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
19256 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
19257 | ac_prev=cache_file ;; | |
19258 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
b7026657 AC |
19259 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
19260 | | --c=*) | |
19261 | ;; | |
19262 | --config-cache | -C) | |
c906108c SS |
19263 | ;; |
19264 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
19265 | ac_prev=srcdir ;; | |
19266 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
19267 | ;; | |
b7026657 AC |
19268 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
19269 | ac_prev=prefix ;; | |
19270 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
19271 | ;; | |
81ecdfbb RW |
19272 | --disable-option-checking) |
19273 | ;; | |
d6416cdc RW |
19274 | *) |
19275 | case $ac_arg in | |
81ecdfbb | 19276 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 19277 | esac |
81ecdfbb | 19278 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
c906108c SS |
19279 | esac |
19280 | done | |
19281 | ||
b7026657 AC |
19282 | # Always prepend --prefix to ensure using the same prefix |
19283 | # in subdir configurations. | |
d6416cdc RW |
19284 | ac_arg="--prefix=$prefix" |
19285 | case $ac_arg in | |
81ecdfbb | 19286 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6416cdc | 19287 | esac |
81ecdfbb RW |
19288 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
19289 | ||
19290 | # Pass --silent | |
19291 | if test "$silent" = yes; then | |
19292 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
19293 | fi | |
19294 | ||
19295 | # Always prepend --disable-option-checking to silence warnings, since | |
19296 | # different subdirs can have different --enable and --with options. | |
19297 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
b7026657 AC |
19298 | |
19299 | ac_popdir=`pwd` | |
19300 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
19301 | |
19302 | # Do not complain, so a configure script can configure whichever | |
19303 | # parts of a large source tree are present. | |
d6416cdc | 19304 | test -d "$srcdir/$ac_dir" || continue |
fdd6fa61 | 19305 | |
81ecdfbb RW |
19306 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
19307 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
19308 | $as_echo "$ac_msg" >&6 | |
19309 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
19310 | ac_builddir=. |
19311 | ||
81ecdfbb RW |
19312 | case "$ac_dir" in |
19313 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19314 | *) | |
19315 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
19316 | # A ".." for each directory in $ac_dir_suffix. | |
19317 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
19318 | case $ac_top_builddir_sub in | |
19319 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19320 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19321 | esac ;; | |
19322 | esac | |
19323 | ac_abs_top_builddir=$ac_pwd | |
19324 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19325 | # for backward compatibility: | |
19326 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 19327 | |
b7026657 | 19328 | case $srcdir in |
81ecdfbb | 19329 | .) # We are building in place. |
b7026657 | 19330 | ac_srcdir=. |
81ecdfbb RW |
19331 | ac_top_srcdir=$ac_top_builddir_sub |
19332 | ac_abs_top_srcdir=$ac_pwd ;; | |
19333 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 19334 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
19335 | ac_top_srcdir=$srcdir |
19336 | ac_abs_top_srcdir=$srcdir ;; | |
19337 | *) # Relative name. | |
19338 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19339 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19340 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 19341 | esac |
81ecdfbb | 19342 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c906108c | 19343 | |
c906108c | 19344 | |
d6416cdc | 19345 | cd "$ac_dir" |
c906108c SS |
19346 | |
19347 | # Check for guested configure; otherwise get Cygnus style configure. | |
d6416cdc RW |
19348 | if test -f "$ac_srcdir/configure.gnu"; then |
19349 | ac_sub_configure=$ac_srcdir/configure.gnu | |
19350 | elif test -f "$ac_srcdir/configure"; then | |
19351 | ac_sub_configure=$ac_srcdir/configure | |
19352 | elif test -f "$ac_srcdir/configure.in"; then | |
19353 | # This should be Cygnus configure. | |
19354 | ac_sub_configure=$ac_aux_dir/configure | |
c906108c | 19355 | else |
81ecdfbb RW |
19356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
19357 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
19358 | ac_sub_configure= |
19359 | fi | |
19360 | ||
19361 | # The recursion is here. | |
19362 | if test -n "$ac_sub_configure"; then | |
c906108c | 19363 | # Make the cache file name correct relative to the subdirectory. |
b7026657 AC |
19364 | case $cache_file in |
19365 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
81ecdfbb RW |
19366 | *) # Relative name. |
19367 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
c906108c | 19368 | esac |
c906108c | 19369 | |
81ecdfbb RW |
19370 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
19371 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 19372 | # The eval makes quoting arguments work. |
d6416cdc RW |
19373 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
19374 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
d0ac1c44 | 19375 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
c906108c SS |
19376 | fi |
19377 | ||
d6416cdc | 19378 | cd "$ac_popdir" |
c906108c SS |
19379 | done |
19380 | fi | |
81ecdfbb RW |
19381 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
19382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
19383 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
19384 | fi | |
c906108c | 19385 |