]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: ppc: move termios probes to top-level
[thirdparty/binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
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>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
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 :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
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
33 fi
34
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'
52 else
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 }
81 fi
82
83
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.
92 as_myself=
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
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
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
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;}
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
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
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'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
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"
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
221 do
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 :
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
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."
276 else
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."
283 fi
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"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
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
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
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
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
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
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
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
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
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
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'`
468
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
475
476
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 |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
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; }
499
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
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
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
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';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
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.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
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
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
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
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
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 SIM_RISCV_BITSIZE
643 SIM_MIPS_GEN_MODE_MULTI_FALSE
644 SIM_MIPS_GEN_MODE_MULTI_TRUE
645 SIM_MIPS_GEN_MODE_M16_FALSE
646 SIM_MIPS_GEN_MODE_M16_TRUE
647 SIM_MIPS_GEN_MODE_SINGLE_FALSE
648 SIM_MIPS_GEN_MODE_SINGLE_TRUE
649 SIM_MIPS_MULTI_OBJ
650 SIM_MIPS_MULTI_SRC
651 SIM_MIPS_MULTI_IGEN_CONFIGS
652 SIM_MIPS_IGEN_ITABLE_FLAGS
653 SIM_MIPS_GEN
654 SIM_MIPS_M16_FLAGS
655 SIM_MIPS_SINGLE_FLAGS
656 SIM_MIPS_FPU_BITSIZE
657 SIM_MIPS_BITSIZE
658 SIM_MIPS_SUBTARGET
659 SIM_FRV_TRAPDUMP_FLAGS
660 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE
661 SIM_CFLAG_WNO_SHADOW_LOCAL
662 IGEN_FLAGS_SMP
663 SIM_INLINE
664 SIM_HW_SOCKSER
665 SIM_HW_CFLAGS
666 SIM_ENABLE_HW_FALSE
667 SIM_ENABLE_HW_TRUE
668 cgen
669 cgendir
670 CGEN_MAINT
671 ENABLE_SIM_FALSE
672 ENABLE_SIM_TRUE
673 SIM_ENABLE_ARCH_examples_FALSE
674 SIM_ENABLE_ARCH_examples_TRUE
675 CC_FOR_TARGET_EXAMPLE_SYNACOR
676 LD_FOR_TARGET_EXAMPLE_SYNACOR
677 AS_FOR_TARGET_EXAMPLE_SYNACOR
678 SIM_ENABLE_ARCH_v850_FALSE
679 SIM_ENABLE_ARCH_v850_TRUE
680 CC_FOR_TARGET_V850
681 LD_FOR_TARGET_V850
682 AS_FOR_TARGET_V850
683 SIM_ENABLE_ARCH_erc32_FALSE
684 SIM_ENABLE_ARCH_erc32_TRUE
685 CC_FOR_TARGET_ERC32
686 LD_FOR_TARGET_ERC32
687 AS_FOR_TARGET_ERC32
688 SIM_ENABLE_ARCH_sh_FALSE
689 SIM_ENABLE_ARCH_sh_TRUE
690 CC_FOR_TARGET_SH
691 LD_FOR_TARGET_SH
692 AS_FOR_TARGET_SH
693 SIM_ENABLE_ARCH_rx_FALSE
694 SIM_ENABLE_ARCH_rx_TRUE
695 CC_FOR_TARGET_RX
696 LD_FOR_TARGET_RX
697 AS_FOR_TARGET_RX
698 SIM_ENABLE_ARCH_rl78_FALSE
699 SIM_ENABLE_ARCH_rl78_TRUE
700 CC_FOR_TARGET_RL78
701 LD_FOR_TARGET_RL78
702 AS_FOR_TARGET_RL78
703 SIM_ENABLE_ARCH_riscv_FALSE
704 SIM_ENABLE_ARCH_riscv_TRUE
705 CC_FOR_TARGET_RISCV
706 LD_FOR_TARGET_RISCV
707 AS_FOR_TARGET_RISCV
708 SIM_ENABLE_ARCH_pru_FALSE
709 SIM_ENABLE_ARCH_pru_TRUE
710 CC_FOR_TARGET_PRU
711 LD_FOR_TARGET_PRU
712 AS_FOR_TARGET_PRU
713 SIM_ENABLE_ARCH_ppc_FALSE
714 SIM_ENABLE_ARCH_ppc_TRUE
715 CC_FOR_TARGET_PPC
716 LD_FOR_TARGET_PPC
717 AS_FOR_TARGET_PPC
718 subdirs
719 SIM_ENABLE_ARCH_or1k_FALSE
720 SIM_ENABLE_ARCH_or1k_TRUE
721 CC_FOR_TARGET_OR1K
722 LD_FOR_TARGET_OR1K
723 AS_FOR_TARGET_OR1K
724 SIM_ENABLE_ARCH_msp430_FALSE
725 SIM_ENABLE_ARCH_msp430_TRUE
726 CC_FOR_TARGET_MSP430
727 LD_FOR_TARGET_MSP430
728 AS_FOR_TARGET_MSP430
729 SIM_ENABLE_ARCH_moxie_FALSE
730 SIM_ENABLE_ARCH_moxie_TRUE
731 CC_FOR_TARGET_MOXIE
732 LD_FOR_TARGET_MOXIE
733 AS_FOR_TARGET_MOXIE
734 SIM_ENABLE_ARCH_mn10300_FALSE
735 SIM_ENABLE_ARCH_mn10300_TRUE
736 CC_FOR_TARGET_MN10300
737 LD_FOR_TARGET_MN10300
738 AS_FOR_TARGET_MN10300
739 SIM_ENABLE_ARCH_mips_FALSE
740 SIM_ENABLE_ARCH_mips_TRUE
741 CC_FOR_TARGET_MIPS
742 LD_FOR_TARGET_MIPS
743 AS_FOR_TARGET_MIPS
744 SIM_ENABLE_ARCH_microblaze_FALSE
745 SIM_ENABLE_ARCH_microblaze_TRUE
746 CC_FOR_TARGET_MICROBLAZE
747 LD_FOR_TARGET_MICROBLAZE
748 AS_FOR_TARGET_MICROBLAZE
749 SIM_ENABLE_ARCH_mcore_FALSE
750 SIM_ENABLE_ARCH_mcore_TRUE
751 CC_FOR_TARGET_MCORE
752 LD_FOR_TARGET_MCORE
753 AS_FOR_TARGET_MCORE
754 SIM_ENABLE_ARCH_m68hc11_FALSE
755 SIM_ENABLE_ARCH_m68hc11_TRUE
756 CC_FOR_TARGET_M68HC11
757 LD_FOR_TARGET_M68HC11
758 AS_FOR_TARGET_M68HC11
759 SIM_ENABLE_ARCH_m32r_FALSE
760 SIM_ENABLE_ARCH_m32r_TRUE
761 CC_FOR_TARGET_M32R
762 LD_FOR_TARGET_M32R
763 AS_FOR_TARGET_M32R
764 SIM_ENABLE_ARCH_m32c_FALSE
765 SIM_ENABLE_ARCH_m32c_TRUE
766 CC_FOR_TARGET_M32C
767 LD_FOR_TARGET_M32C
768 AS_FOR_TARGET_M32C
769 SIM_ENABLE_ARCH_lm32_FALSE
770 SIM_ENABLE_ARCH_lm32_TRUE
771 CC_FOR_TARGET_LM32
772 LD_FOR_TARGET_LM32
773 AS_FOR_TARGET_LM32
774 SIM_ENABLE_ARCH_iq2000_FALSE
775 SIM_ENABLE_ARCH_iq2000_TRUE
776 CC_FOR_TARGET_IQ2000
777 LD_FOR_TARGET_IQ2000
778 AS_FOR_TARGET_IQ2000
779 SIM_ENABLE_ARCH_h8300_FALSE
780 SIM_ENABLE_ARCH_h8300_TRUE
781 CC_FOR_TARGET_H8300
782 LD_FOR_TARGET_H8300
783 AS_FOR_TARGET_H8300
784 SIM_ENABLE_ARCH_ft32_FALSE
785 SIM_ENABLE_ARCH_ft32_TRUE
786 CC_FOR_TARGET_FT32
787 LD_FOR_TARGET_FT32
788 AS_FOR_TARGET_FT32
789 SIM_ENABLE_ARCH_frv_FALSE
790 SIM_ENABLE_ARCH_frv_TRUE
791 CC_FOR_TARGET_FRV
792 LD_FOR_TARGET_FRV
793 AS_FOR_TARGET_FRV
794 SIM_ENABLE_ARCH_d10v_FALSE
795 SIM_ENABLE_ARCH_d10v_TRUE
796 CC_FOR_TARGET_D10V
797 LD_FOR_TARGET_D10V
798 AS_FOR_TARGET_D10V
799 SIM_ENABLE_ARCH_cris_FALSE
800 SIM_ENABLE_ARCH_cris_TRUE
801 CC_FOR_TARGET_CRIS
802 LD_FOR_TARGET_CRIS
803 AS_FOR_TARGET_CRIS
804 SIM_ENABLE_ARCH_cr16_FALSE
805 SIM_ENABLE_ARCH_cr16_TRUE
806 CC_FOR_TARGET_CR16
807 LD_FOR_TARGET_CR16
808 AS_FOR_TARGET_CR16
809 SIM_ENABLE_ARCH_bpf_FALSE
810 SIM_ENABLE_ARCH_bpf_TRUE
811 CC_FOR_TARGET_BPF
812 LD_FOR_TARGET_BPF
813 AS_FOR_TARGET_BPF
814 SIM_ENABLE_ARCH_bfin_FALSE
815 SIM_ENABLE_ARCH_bfin_TRUE
816 CC_FOR_TARGET_BFIN
817 LD_FOR_TARGET_BFIN
818 AS_FOR_TARGET_BFIN
819 SIM_ENABLE_ARCH_avr_FALSE
820 SIM_ENABLE_ARCH_avr_TRUE
821 CC_FOR_TARGET_AVR
822 LD_FOR_TARGET_AVR
823 AS_FOR_TARGET_AVR
824 SIM_ENABLE_ARCH_arm_FALSE
825 SIM_ENABLE_ARCH_arm_TRUE
826 CC_FOR_TARGET_ARM
827 LD_FOR_TARGET_ARM
828 AS_FOR_TARGET_ARM
829 SIM_ENABLE_ARCH_aarch64_FALSE
830 SIM_ENABLE_ARCH_aarch64_TRUE
831 CC_FOR_TARGET_AARCH64
832 LD_FOR_TARGET_AARCH64
833 AS_FOR_TARGET_AARCH64
834 LD_FOR_TARGET
835 AS_FOR_TARGET
836 CC_FOR_TARGET
837 SIM_ENABLED_ARCHES
838 SIM_PRIMARY_TARGET
839 AM_BACKSLASH
840 AM_DEFAULT_VERBOSITY
841 AM_DEFAULT_V
842 AM_V
843 am__fastdepCC_FALSE
844 am__fastdepCC_TRUE
845 CCDEPMODE
846 am__nodep
847 AMDEPBACKSLASH
848 AMDEP_FALSE
849 AMDEP_TRUE
850 am__quote
851 am__include
852 DEPDIR
853 am__untar
854 am__tar
855 AMTAR
856 am__leading_dot
857 SET_MAKE
858 mkdir_p
859 MKDIR_P
860 INSTALL_STRIP_PROGRAM
861 install_sh
862 MAKEINFO
863 AUTOHEADER
864 AUTOMAKE
865 AUTOCONF
866 ACLOCAL
867 VERSION
868 PACKAGE
869 CYGPATH_W
870 am__isrc
871 MAINT
872 MAINTAINER_MODE_FALSE
873 MAINTAINER_MODE_TRUE
874 READLINE_CFLAGS
875 READLINE_LIB
876 TERMCAP_LIB
877 SDL_LIBS
878 SDL_CFLAGS
879 OTOOL64
880 OTOOL
881 LIPO
882 NMEDIT
883 DSYMUTIL
884 AWK
885 STRIP
886 OBJDUMP
887 LN_S
888 NM
889 ac_ct_DUMPBIN
890 DUMPBIN
891 LD
892 FGREP
893 SED
894 LIBTOOL
895 LIBOBJS
896 C_DIALECT
897 PKG_CONFIG_LIBDIR
898 PKG_CONFIG_PATH
899 PKG_CONFIG
900 RANLIB
901 AR
902 LDFLAGS_FOR_BUILD
903 CPPFLAGS_FOR_BUILD
904 CFLAGS_FOR_BUILD
905 RANLIB_FOR_BUILD
906 CC_FOR_BUILD
907 AR_FOR_BUILD
908 DTC
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
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
934 REPORT_BUGS_TEXI
935 REPORT_BUGS_TO
936 PKGVERSION
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
974 SHELL
975 SIM_TOOLCHAIN_VARS
976 WERROR_CFLAGS
977 WARN_CFLAGS'
978 ac_subst_files=''
979 ac_user_opts='
980 enable_option_checking
981 with_pkgversion
982 with_bugurl
983 enable_shared
984 enable_static
985 with_pic
986 enable_fast_install
987 with_gnu_ld
988 enable_libtool_lock
989 enable_maintainer_mode
990 enable_dependency_tracking
991 enable_silent_rules
992 enable_sim
993 enable_example_sims
994 enable_targets
995 enable_sim_alignment
996 enable_sim_assert
997 enable_cgen_maint
998 enable_sim_debug
999 enable_sim_endian
1000 enable_sim_environment
1001 enable_sim_hardware
1002 enable_sim_inline
1003 enable_sim_profile
1004 enable_sim_reserved_bits
1005 enable_sim_scache
1006 enable_sim_smp
1007 enable_sim_stdio
1008 enable_sim_trace
1009 enable_werror
1010 enable_build_warnings
1011 enable_sim_build_warnings
1012 enable_sim_frv_trapdump
1013 enable_sim_rx_cycle_accurate
1014 '
1015 ac_precious_vars='build_alias
1016 host_alias
1017 target_alias
1018 CC
1019 CFLAGS
1020 LDFLAGS
1021 LIBS
1022 CPPFLAGS
1023 CPP
1024 PKG_CONFIG
1025 PKG_CONFIG_PATH
1026 PKG_CONFIG_LIBDIR
1027 SDL_CFLAGS
1028 SDL_LIBS
1029 AS_FOR_TARGET_AARCH64
1030 LD_FOR_TARGET_AARCH64
1031 CC_FOR_TARGET_AARCH64
1032 AS_FOR_TARGET_ARM
1033 LD_FOR_TARGET_ARM
1034 CC_FOR_TARGET_ARM
1035 AS_FOR_TARGET_AVR
1036 LD_FOR_TARGET_AVR
1037 CC_FOR_TARGET_AVR
1038 AS_FOR_TARGET_BFIN
1039 LD_FOR_TARGET_BFIN
1040 CC_FOR_TARGET_BFIN
1041 AS_FOR_TARGET_BPF
1042 LD_FOR_TARGET_BPF
1043 CC_FOR_TARGET_BPF
1044 AS_FOR_TARGET_CR16
1045 LD_FOR_TARGET_CR16
1046 CC_FOR_TARGET_CR16
1047 AS_FOR_TARGET_CRIS
1048 LD_FOR_TARGET_CRIS
1049 CC_FOR_TARGET_CRIS
1050 AS_FOR_TARGET_D10V
1051 LD_FOR_TARGET_D10V
1052 CC_FOR_TARGET_D10V
1053 AS_FOR_TARGET_FRV
1054 LD_FOR_TARGET_FRV
1055 CC_FOR_TARGET_FRV
1056 AS_FOR_TARGET_FT32
1057 LD_FOR_TARGET_FT32
1058 CC_FOR_TARGET_FT32
1059 AS_FOR_TARGET_H8300
1060 LD_FOR_TARGET_H8300
1061 CC_FOR_TARGET_H8300
1062 AS_FOR_TARGET_IQ2000
1063 LD_FOR_TARGET_IQ2000
1064 CC_FOR_TARGET_IQ2000
1065 AS_FOR_TARGET_LM32
1066 LD_FOR_TARGET_LM32
1067 CC_FOR_TARGET_LM32
1068 AS_FOR_TARGET_M32C
1069 LD_FOR_TARGET_M32C
1070 CC_FOR_TARGET_M32C
1071 AS_FOR_TARGET_M32R
1072 LD_FOR_TARGET_M32R
1073 CC_FOR_TARGET_M32R
1074 AS_FOR_TARGET_M68HC11
1075 LD_FOR_TARGET_M68HC11
1076 CC_FOR_TARGET_M68HC11
1077 AS_FOR_TARGET_MCORE
1078 LD_FOR_TARGET_MCORE
1079 CC_FOR_TARGET_MCORE
1080 AS_FOR_TARGET_MICROBLAZE
1081 LD_FOR_TARGET_MICROBLAZE
1082 CC_FOR_TARGET_MICROBLAZE
1083 AS_FOR_TARGET_MIPS
1084 LD_FOR_TARGET_MIPS
1085 CC_FOR_TARGET_MIPS
1086 AS_FOR_TARGET_MN10300
1087 LD_FOR_TARGET_MN10300
1088 CC_FOR_TARGET_MN10300
1089 AS_FOR_TARGET_MOXIE
1090 LD_FOR_TARGET_MOXIE
1091 CC_FOR_TARGET_MOXIE
1092 AS_FOR_TARGET_MSP430
1093 LD_FOR_TARGET_MSP430
1094 CC_FOR_TARGET_MSP430
1095 AS_FOR_TARGET_OR1K
1096 LD_FOR_TARGET_OR1K
1097 CC_FOR_TARGET_OR1K
1098 AS_FOR_TARGET_PPC
1099 LD_FOR_TARGET_PPC
1100 CC_FOR_TARGET_PPC
1101 AS_FOR_TARGET_PRU
1102 LD_FOR_TARGET_PRU
1103 CC_FOR_TARGET_PRU
1104 AS_FOR_TARGET_RISCV
1105 LD_FOR_TARGET_RISCV
1106 CC_FOR_TARGET_RISCV
1107 AS_FOR_TARGET_RL78
1108 LD_FOR_TARGET_RL78
1109 CC_FOR_TARGET_RL78
1110 AS_FOR_TARGET_RX
1111 LD_FOR_TARGET_RX
1112 CC_FOR_TARGET_RX
1113 AS_FOR_TARGET_SH
1114 LD_FOR_TARGET_SH
1115 CC_FOR_TARGET_SH
1116 AS_FOR_TARGET_ERC32
1117 LD_FOR_TARGET_ERC32
1118 CC_FOR_TARGET_ERC32
1119 AS_FOR_TARGET_V850
1120 LD_FOR_TARGET_V850
1121 CC_FOR_TARGET_V850
1122 AS_FOR_TARGET_EXAMPLE_SYNACOR
1123 LD_FOR_TARGET_EXAMPLE_SYNACOR
1124 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1125 ac_subdirs_all='ppc'
1126
1127 # Initialize some variables set by options.
1128 ac_init_help=
1129 ac_init_version=false
1130 ac_unrecognized_opts=
1131 ac_unrecognized_sep=
1132 # The variables have the same names as the options, with
1133 # dashes changed to underlines.
1134 cache_file=/dev/null
1135 exec_prefix=NONE
1136 no_create=
1137 no_recursion=
1138 prefix=NONE
1139 program_prefix=NONE
1140 program_suffix=NONE
1141 program_transform_name=s,x,x,
1142 silent=
1143 site=
1144 srcdir=
1145 verbose=
1146 x_includes=NONE
1147 x_libraries=NONE
1148
1149 # Installation directory options.
1150 # These are left unexpanded so users can "make install exec_prefix=/foo"
1151 # and all the variables that are supposed to be based on exec_prefix
1152 # by default will actually change.
1153 # Use braces instead of parens because sh, perl, etc. also accept them.
1154 # (The list follows the same order as the GNU Coding Standards.)
1155 bindir='${exec_prefix}/bin'
1156 sbindir='${exec_prefix}/sbin'
1157 libexecdir='${exec_prefix}/libexec'
1158 datarootdir='${prefix}/share'
1159 datadir='${datarootdir}'
1160 sysconfdir='${prefix}/etc'
1161 sharedstatedir='${prefix}/com'
1162 localstatedir='${prefix}/var'
1163 includedir='${prefix}/include'
1164 oldincludedir='/usr/include'
1165 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1166 infodir='${datarootdir}/info'
1167 htmldir='${docdir}'
1168 dvidir='${docdir}'
1169 pdfdir='${docdir}'
1170 psdir='${docdir}'
1171 libdir='${exec_prefix}/lib'
1172 localedir='${datarootdir}/locale'
1173 mandir='${datarootdir}/man'
1174
1175 ac_prev=
1176 ac_dashdash=
1177 for ac_option
1178 do
1179 # If the previous option needs an argument, assign it.
1180 if test -n "$ac_prev"; then
1181 eval $ac_prev=\$ac_option
1182 ac_prev=
1183 continue
1184 fi
1185
1186 case $ac_option in
1187 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1188 *=) ac_optarg= ;;
1189 *) ac_optarg=yes ;;
1190 esac
1191
1192 # Accept the important Cygnus configure options, so we can diagnose typos.
1193
1194 case $ac_dashdash$ac_option in
1195 --)
1196 ac_dashdash=yes ;;
1197
1198 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1199 ac_prev=bindir ;;
1200 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1201 bindir=$ac_optarg ;;
1202
1203 -build | --build | --buil | --bui | --bu)
1204 ac_prev=build_alias ;;
1205 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1206 build_alias=$ac_optarg ;;
1207
1208 -cache-file | --cache-file | --cache-fil | --cache-fi \
1209 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1210 ac_prev=cache_file ;;
1211 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1212 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1213 cache_file=$ac_optarg ;;
1214
1215 --config-cache | -C)
1216 cache_file=config.cache ;;
1217
1218 -datadir | --datadir | --datadi | --datad)
1219 ac_prev=datadir ;;
1220 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1221 datadir=$ac_optarg ;;
1222
1223 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1224 | --dataroo | --dataro | --datar)
1225 ac_prev=datarootdir ;;
1226 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1227 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1228 datarootdir=$ac_optarg ;;
1229
1230 -disable-* | --disable-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid feature name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "enable_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval enable_$ac_useropt=no ;;
1245
1246 -docdir | --docdir | --docdi | --doc | --do)
1247 ac_prev=docdir ;;
1248 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1249 docdir=$ac_optarg ;;
1250
1251 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1252 ac_prev=dvidir ;;
1253 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1254 dvidir=$ac_optarg ;;
1255
1256 -enable-* | --enable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid feature name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265 "enable_$ac_useropt"
1266 "*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval enable_$ac_useropt=\$ac_optarg ;;
1271
1272 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1273 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1274 | --exec | --exe | --ex)
1275 ac_prev=exec_prefix ;;
1276 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1277 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1278 | --exec=* | --exe=* | --ex=*)
1279 exec_prefix=$ac_optarg ;;
1280
1281 -gas | --gas | --ga | --g)
1282 # Obsolete; use --with-gas.
1283 with_gas=yes ;;
1284
1285 -help | --help | --hel | --he | -h)
1286 ac_init_help=long ;;
1287 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1288 ac_init_help=recursive ;;
1289 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1290 ac_init_help=short ;;
1291
1292 -host | --host | --hos | --ho)
1293 ac_prev=host_alias ;;
1294 -host=* | --host=* | --hos=* | --ho=*)
1295 host_alias=$ac_optarg ;;
1296
1297 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1298 ac_prev=htmldir ;;
1299 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1300 | --ht=*)
1301 htmldir=$ac_optarg ;;
1302
1303 -includedir | --includedir | --includedi | --included | --include \
1304 | --includ | --inclu | --incl | --inc)
1305 ac_prev=includedir ;;
1306 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1307 | --includ=* | --inclu=* | --incl=* | --inc=*)
1308 includedir=$ac_optarg ;;
1309
1310 -infodir | --infodir | --infodi | --infod | --info | --inf)
1311 ac_prev=infodir ;;
1312 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1313 infodir=$ac_optarg ;;
1314
1315 -libdir | --libdir | --libdi | --libd)
1316 ac_prev=libdir ;;
1317 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1318 libdir=$ac_optarg ;;
1319
1320 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1321 | --libexe | --libex | --libe)
1322 ac_prev=libexecdir ;;
1323 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1324 | --libexe=* | --libex=* | --libe=*)
1325 libexecdir=$ac_optarg ;;
1326
1327 -localedir | --localedir | --localedi | --localed | --locale)
1328 ac_prev=localedir ;;
1329 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1330 localedir=$ac_optarg ;;
1331
1332 -localstatedir | --localstatedir | --localstatedi | --localstated \
1333 | --localstate | --localstat | --localsta | --localst | --locals)
1334 ac_prev=localstatedir ;;
1335 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1336 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1337 localstatedir=$ac_optarg ;;
1338
1339 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1340 ac_prev=mandir ;;
1341 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1342 mandir=$ac_optarg ;;
1343
1344 -nfp | --nfp | --nf)
1345 # Obsolete; use --without-fp.
1346 with_fp=no ;;
1347
1348 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1349 | --no-cr | --no-c | -n)
1350 no_create=yes ;;
1351
1352 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1353 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1354 no_recursion=yes ;;
1355
1356 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1357 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1358 | --oldin | --oldi | --old | --ol | --o)
1359 ac_prev=oldincludedir ;;
1360 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1361 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1362 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1363 oldincludedir=$ac_optarg ;;
1364
1365 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1366 ac_prev=prefix ;;
1367 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1368 prefix=$ac_optarg ;;
1369
1370 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1371 | --program-pre | --program-pr | --program-p)
1372 ac_prev=program_prefix ;;
1373 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1374 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1375 program_prefix=$ac_optarg ;;
1376
1377 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1378 | --program-suf | --program-su | --program-s)
1379 ac_prev=program_suffix ;;
1380 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1381 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1382 program_suffix=$ac_optarg ;;
1383
1384 -program-transform-name | --program-transform-name \
1385 | --program-transform-nam | --program-transform-na \
1386 | --program-transform-n | --program-transform- \
1387 | --program-transform | --program-transfor \
1388 | --program-transfo | --program-transf \
1389 | --program-trans | --program-tran \
1390 | --progr-tra | --program-tr | --program-t)
1391 ac_prev=program_transform_name ;;
1392 -program-transform-name=* | --program-transform-name=* \
1393 | --program-transform-nam=* | --program-transform-na=* \
1394 | --program-transform-n=* | --program-transform-=* \
1395 | --program-transform=* | --program-transfor=* \
1396 | --program-transfo=* | --program-transf=* \
1397 | --program-trans=* | --program-tran=* \
1398 | --progr-tra=* | --program-tr=* | --program-t=*)
1399 program_transform_name=$ac_optarg ;;
1400
1401 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1402 ac_prev=pdfdir ;;
1403 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1404 pdfdir=$ac_optarg ;;
1405
1406 -psdir | --psdir | --psdi | --psd | --ps)
1407 ac_prev=psdir ;;
1408 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1409 psdir=$ac_optarg ;;
1410
1411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1412 | -silent | --silent | --silen | --sile | --sil)
1413 silent=yes ;;
1414
1415 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1416 ac_prev=sbindir ;;
1417 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1418 | --sbi=* | --sb=*)
1419 sbindir=$ac_optarg ;;
1420
1421 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1422 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1423 | --sharedst | --shareds | --shared | --share | --shar \
1424 | --sha | --sh)
1425 ac_prev=sharedstatedir ;;
1426 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1427 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1428 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1429 | --sha=* | --sh=*)
1430 sharedstatedir=$ac_optarg ;;
1431
1432 -site | --site | --sit)
1433 ac_prev=site ;;
1434 -site=* | --site=* | --sit=*)
1435 site=$ac_optarg ;;
1436
1437 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1438 ac_prev=srcdir ;;
1439 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1440 srcdir=$ac_optarg ;;
1441
1442 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1443 | --syscon | --sysco | --sysc | --sys | --sy)
1444 ac_prev=sysconfdir ;;
1445 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1446 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1447 sysconfdir=$ac_optarg ;;
1448
1449 -target | --target | --targe | --targ | --tar | --ta | --t)
1450 ac_prev=target_alias ;;
1451 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1452 target_alias=$ac_optarg ;;
1453
1454 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1455 verbose=yes ;;
1456
1457 -version | --version | --versio | --versi | --vers | -V)
1458 ac_init_version=: ;;
1459
1460 -with-* | --with-*)
1461 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1464 as_fn_error $? "invalid package name: $ac_useropt"
1465 ac_useropt_orig=$ac_useropt
1466 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1468 *"
1469 "with_$ac_useropt"
1470 "*) ;;
1471 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1472 ac_unrecognized_sep=', ';;
1473 esac
1474 eval with_$ac_useropt=\$ac_optarg ;;
1475
1476 -without-* | --without-*)
1477 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1478 # Reject names that are not valid shell variable names.
1479 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1480 as_fn_error $? "invalid package name: $ac_useropt"
1481 ac_useropt_orig=$ac_useropt
1482 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1483 case $ac_user_opts in
1484 *"
1485 "with_$ac_useropt"
1486 "*) ;;
1487 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1488 ac_unrecognized_sep=', ';;
1489 esac
1490 eval with_$ac_useropt=no ;;
1491
1492 --x)
1493 # Obsolete; use --with-x.
1494 with_x=yes ;;
1495
1496 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1497 | --x-incl | --x-inc | --x-in | --x-i)
1498 ac_prev=x_includes ;;
1499 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1500 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1501 x_includes=$ac_optarg ;;
1502
1503 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1504 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1505 ac_prev=x_libraries ;;
1506 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1507 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1508 x_libraries=$ac_optarg ;;
1509
1510 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1511 Try \`$0 --help' for more information"
1512 ;;
1513
1514 *=*)
1515 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1516 # Reject names that are not valid shell variable names.
1517 case $ac_envvar in #(
1518 '' | [0-9]* | *[!_$as_cr_alnum]* )
1519 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1520 esac
1521 eval $ac_envvar=\$ac_optarg
1522 export $ac_envvar ;;
1523
1524 *)
1525 # FIXME: should be removed in autoconf 3.0.
1526 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1527 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1528 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1529 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1530 ;;
1531
1532 esac
1533 done
1534
1535 if test -n "$ac_prev"; then
1536 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1537 as_fn_error $? "missing argument to $ac_option"
1538 fi
1539
1540 if test -n "$ac_unrecognized_opts"; then
1541 case $enable_option_checking in
1542 no) ;;
1543 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1544 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1545 esac
1546 fi
1547
1548 # Check all directory arguments for consistency.
1549 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1550 datadir sysconfdir sharedstatedir localstatedir includedir \
1551 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1552 libdir localedir mandir
1553 do
1554 eval ac_val=\$$ac_var
1555 # Remove trailing slashes.
1556 case $ac_val in
1557 */ )
1558 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1559 eval $ac_var=\$ac_val;;
1560 esac
1561 # Be sure to have absolute directory names.
1562 case $ac_val in
1563 [\\/$]* | ?:[\\/]* ) continue;;
1564 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1565 esac
1566 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1567 done
1568
1569 # There might be people who depend on the old broken behavior: `$host'
1570 # used to hold the argument of --host etc.
1571 # FIXME: To remove some day.
1572 build=$build_alias
1573 host=$host_alias
1574 target=$target_alias
1575
1576 # FIXME: To remove some day.
1577 if test "x$host_alias" != x; then
1578 if test "x$build_alias" = x; then
1579 cross_compiling=maybe
1580 elif test "x$build_alias" != "x$host_alias"; then
1581 cross_compiling=yes
1582 fi
1583 fi
1584
1585 ac_tool_prefix=
1586 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1587
1588 test "$silent" = yes && exec 6>/dev/null
1589
1590
1591 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1592 ac_ls_di=`ls -di .` &&
1593 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1594 as_fn_error $? "working directory cannot be determined"
1595 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1596 as_fn_error $? "pwd does not report name of working directory"
1597
1598
1599 # Find the source files, if location was not specified.
1600 if test -z "$srcdir"; then
1601 ac_srcdir_defaulted=yes
1602 # Try the directory containing this script, then the parent directory.
1603 ac_confdir=`$as_dirname -- "$as_myself" ||
1604 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1605 X"$as_myself" : 'X\(//\)[^/]' \| \
1606 X"$as_myself" : 'X\(//\)$' \| \
1607 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1608 $as_echo X"$as_myself" |
1609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1610 s//\1/
1611 q
1612 }
1613 /^X\(\/\/\)[^/].*/{
1614 s//\1/
1615 q
1616 }
1617 /^X\(\/\/\)$/{
1618 s//\1/
1619 q
1620 }
1621 /^X\(\/\).*/{
1622 s//\1/
1623 q
1624 }
1625 s/.*/./; q'`
1626 srcdir=$ac_confdir
1627 if test ! -r "$srcdir/$ac_unique_file"; then
1628 srcdir=..
1629 fi
1630 else
1631 ac_srcdir_defaulted=no
1632 fi
1633 if test ! -r "$srcdir/$ac_unique_file"; then
1634 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1635 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1636 fi
1637 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1638 ac_abs_confdir=`(
1639 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1640 pwd)`
1641 # When building in place, set srcdir=.
1642 if test "$ac_abs_confdir" = "$ac_pwd"; then
1643 srcdir=.
1644 fi
1645 # Remove unnecessary trailing slashes from srcdir.
1646 # Double slashes in file names in object file debugging info
1647 # mess up M-x gdb in Emacs.
1648 case $srcdir in
1649 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1650 esac
1651 for ac_var in $ac_precious_vars; do
1652 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1653 eval ac_env_${ac_var}_value=\$${ac_var}
1654 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1655 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1656 done
1657
1658 #
1659 # Report the --help message.
1660 #
1661 if test "$ac_init_help" = "long"; then
1662 # Omit some internal or obsolete options to make the list less imposing.
1663 # This message is too long to be a string in the A/UX 3.1 sh.
1664 cat <<_ACEOF
1665 \`configure' configures sim 0 to adapt to many kinds of systems.
1666
1667 Usage: $0 [OPTION]... [VAR=VALUE]...
1668
1669 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1670 VAR=VALUE. See below for descriptions of some of the useful variables.
1671
1672 Defaults for the options are specified in brackets.
1673
1674 Configuration:
1675 -h, --help display this help and exit
1676 --help=short display options specific to this package
1677 --help=recursive display the short help of all the included packages
1678 -V, --version display version information and exit
1679 -q, --quiet, --silent do not print \`checking ...' messages
1680 --cache-file=FILE cache test results in FILE [disabled]
1681 -C, --config-cache alias for \`--cache-file=config.cache'
1682 -n, --no-create do not create output files
1683 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1684
1685 Installation directories:
1686 --prefix=PREFIX install architecture-independent files in PREFIX
1687 [$ac_default_prefix]
1688 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1689 [PREFIX]
1690
1691 By default, \`make install' will install all the files in
1692 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1693 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1694 for instance \`--prefix=\$HOME'.
1695
1696 For better control, use the options below.
1697
1698 Fine tuning of the installation directories:
1699 --bindir=DIR user executables [EPREFIX/bin]
1700 --sbindir=DIR system admin executables [EPREFIX/sbin]
1701 --libexecdir=DIR program executables [EPREFIX/libexec]
1702 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1703 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1704 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1705 --libdir=DIR object code libraries [EPREFIX/lib]
1706 --includedir=DIR C header files [PREFIX/include]
1707 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1708 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1709 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1710 --infodir=DIR info documentation [DATAROOTDIR/info]
1711 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1712 --mandir=DIR man documentation [DATAROOTDIR/man]
1713 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1714 --htmldir=DIR html documentation [DOCDIR]
1715 --dvidir=DIR dvi documentation [DOCDIR]
1716 --pdfdir=DIR pdf documentation [DOCDIR]
1717 --psdir=DIR ps documentation [DOCDIR]
1718 _ACEOF
1719
1720 cat <<\_ACEOF
1721
1722 Program names:
1723 --program-prefix=PREFIX prepend PREFIX to installed program names
1724 --program-suffix=SUFFIX append SUFFIX to installed program names
1725 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1726
1727 System types:
1728 --build=BUILD configure for building on BUILD [guessed]
1729 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1730 --target=TARGET configure for building compilers for TARGET [HOST]
1731 _ACEOF
1732 fi
1733
1734 if test -n "$ac_init_help"; then
1735 case $ac_init_help in
1736 short | recursive ) echo "Configuration of sim 0:";;
1737 esac
1738 cat <<\_ACEOF
1739
1740 Optional Features:
1741 --disable-option-checking ignore unrecognized --enable/--with options
1742 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1743 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1744 --enable-shared[=PKGS] build shared libraries [default=yes]
1745 --enable-static[=PKGS] build static libraries [default=yes]
1746 --enable-fast-install[=PKGS]
1747 optimize for fast installation [default=yes]
1748 --disable-libtool-lock avoid locking (might break parallel builds)
1749 --enable-maintainer-mode
1750 enable make rules and dependencies not useful (and
1751 sometimes confusing) to the casual installer
1752 --enable-dependency-tracking
1753 do not reject slow dependency extractors
1754 --disable-dependency-tracking
1755 speeds up one-time build
1756 --enable-silent-rules less verbose build output (undo: "make V=1")
1757 --disable-silent-rules verbose build output (undo: "make V=0")
1758 --enable-sim Enable the GNU simulator
1759 --enable-example-sims enable example GNU simulators
1760 --enable-targets alternative target configurations
1761 --enable-sim-alignment=align
1762 Specify strict, nonstrict or forced alignment of
1763 memory accesses
1764 --enable-sim-assert Specify whether to perform random assertions
1765 --enable-cgen-maint=DIR build cgen generated files
1766 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1767 itself)
1768 --enable-sim-endian=endian
1769 Specify target byte endian orientation
1770 --enable-sim-environment=environment
1771 Specify mixed, user, virtual or operating
1772 environment
1773 --enable-sim-hardware Whether to enable hardware/device simulation
1774 --enable-sim-inline=inlines
1775 Specify which functions should be inlined
1776 --enable-sim-profile=opts
1777 Enable profiling flags
1778 --enable-sim-reserved-bits
1779 Specify whether to check reserved bits in
1780 instruction
1781 --enable-sim-scache=size
1782 Specify simulator execution cache size
1783 --enable-sim-smp=n Specify number of processors to configure for
1784 (default 1)
1785 --enable-sim-stdio Specify whether to use stdio for console
1786 input/output
1787 --enable-sim-trace=opts Enable tracing of simulated programs
1788 --enable-werror treat compile warnings as errors
1789 --enable-build-warnings enable build-time compiler warnings if gcc is used
1790 --enable-sim-build-warnings
1791 enable SIM specific build-time compiler warnings if
1792 gcc is used
1793 --enable-sim-frv-trapdump
1794 Make unknown traps dump the registers
1795 --disable-sim-rx-cycle-accurate
1796 Disable cycle accurate simulation (faster runtime)
1797
1798 Optional Packages:
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1802 --with-bugurl=URL Direct users to URL to report a bug
1803 --with-pic try to use only PIC/non-PIC objects [default=use
1804 both]
1805 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1806
1807 Some influential environment variables:
1808 CC C compiler command
1809 CFLAGS C compiler flags
1810 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1811 nonstandard directory <lib dir>
1812 LIBS libraries to pass to the linker, e.g. -l<library>
1813 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1814 you have headers in a nonstandard directory <include dir>
1815 CPP C preprocessor
1816 PKG_CONFIG path to pkg-config utility
1817 PKG_CONFIG_PATH
1818 directories to add to pkg-config's search path
1819 PKG_CONFIG_LIBDIR
1820 path overriding pkg-config's built-in search path
1821 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1822 SDL_LIBS linker flags for SDL, overriding pkg-config
1823 AS_FOR_TARGET_AARCH64
1824 Assembler for aarch64 tests
1825 LD_FOR_TARGET_AARCH64
1826 Linker for aarch64 tests
1827 CC_FOR_TARGET_AARCH64
1828 C compiler for aarch64 tests
1829 AS_FOR_TARGET_ARM
1830 Assembler for arm tests
1831 LD_FOR_TARGET_ARM
1832 Linker for arm tests
1833 CC_FOR_TARGET_ARM
1834 C compiler for arm tests
1835 AS_FOR_TARGET_AVR
1836 Assembler for avr tests
1837 LD_FOR_TARGET_AVR
1838 Linker for avr tests
1839 CC_FOR_TARGET_AVR
1840 C compiler for avr tests
1841 AS_FOR_TARGET_BFIN
1842 Assembler for bfin tests
1843 LD_FOR_TARGET_BFIN
1844 Linker for bfin tests
1845 CC_FOR_TARGET_BFIN
1846 C compiler for bfin tests
1847 AS_FOR_TARGET_BPF
1848 Assembler for bpf tests
1849 LD_FOR_TARGET_BPF
1850 Linker for bpf tests
1851 CC_FOR_TARGET_BPF
1852 C compiler for bpf tests
1853 AS_FOR_TARGET_CR16
1854 Assembler for cr16 tests
1855 LD_FOR_TARGET_CR16
1856 Linker for cr16 tests
1857 CC_FOR_TARGET_CR16
1858 C compiler for cr16 tests
1859 AS_FOR_TARGET_CRIS
1860 Assembler for cris tests
1861 LD_FOR_TARGET_CRIS
1862 Linker for cris tests
1863 CC_FOR_TARGET_CRIS
1864 C compiler for cris tests
1865 AS_FOR_TARGET_D10V
1866 Assembler for d10v tests
1867 LD_FOR_TARGET_D10V
1868 Linker for d10v tests
1869 CC_FOR_TARGET_D10V
1870 C compiler for d10v tests
1871 AS_FOR_TARGET_FRV
1872 Assembler for frv tests
1873 LD_FOR_TARGET_FRV
1874 Linker for frv tests
1875 CC_FOR_TARGET_FRV
1876 C compiler for frv tests
1877 AS_FOR_TARGET_FT32
1878 Assembler for ft32 tests
1879 LD_FOR_TARGET_FT32
1880 Linker for ft32 tests
1881 CC_FOR_TARGET_FT32
1882 C compiler for ft32 tests
1883 AS_FOR_TARGET_H8300
1884 Assembler for h8300 tests
1885 LD_FOR_TARGET_H8300
1886 Linker for h8300 tests
1887 CC_FOR_TARGET_H8300
1888 C compiler for h8300 tests
1889 AS_FOR_TARGET_IQ2000
1890 Assembler for iq2000 tests
1891 LD_FOR_TARGET_IQ2000
1892 Linker for iq2000 tests
1893 CC_FOR_TARGET_IQ2000
1894 C compiler for iq2000 tests
1895 AS_FOR_TARGET_LM32
1896 Assembler for lm32 tests
1897 LD_FOR_TARGET_LM32
1898 Linker for lm32 tests
1899 CC_FOR_TARGET_LM32
1900 C compiler for lm32 tests
1901 AS_FOR_TARGET_M32C
1902 Assembler for m32c tests
1903 LD_FOR_TARGET_M32C
1904 Linker for m32c tests
1905 CC_FOR_TARGET_M32C
1906 C compiler for m32c tests
1907 AS_FOR_TARGET_M32R
1908 Assembler for m32r tests
1909 LD_FOR_TARGET_M32R
1910 Linker for m32r tests
1911 CC_FOR_TARGET_M32R
1912 C compiler for m32r tests
1913 AS_FOR_TARGET_M68HC11
1914 Assembler for m68hc11 tests
1915 LD_FOR_TARGET_M68HC11
1916 Linker for m68hc11 tests
1917 CC_FOR_TARGET_M68HC11
1918 C compiler for m68hc11 tests
1919 AS_FOR_TARGET_MCORE
1920 Assembler for mcore tests
1921 LD_FOR_TARGET_MCORE
1922 Linker for mcore tests
1923 CC_FOR_TARGET_MCORE
1924 C compiler for mcore tests
1925 AS_FOR_TARGET_MICROBLAZE
1926 Assembler for microblaze tests
1927 LD_FOR_TARGET_MICROBLAZE
1928 Linker for microblaze tests
1929 CC_FOR_TARGET_MICROBLAZE
1930 C compiler for microblaze tests
1931 AS_FOR_TARGET_MIPS
1932 Assembler for mips tests
1933 LD_FOR_TARGET_MIPS
1934 Linker for mips tests
1935 CC_FOR_TARGET_MIPS
1936 C compiler for mips tests
1937 AS_FOR_TARGET_MN10300
1938 Assembler for mn10300 tests
1939 LD_FOR_TARGET_MN10300
1940 Linker for mn10300 tests
1941 CC_FOR_TARGET_MN10300
1942 C compiler for mn10300 tests
1943 AS_FOR_TARGET_MOXIE
1944 Assembler for moxie tests
1945 LD_FOR_TARGET_MOXIE
1946 Linker for moxie tests
1947 CC_FOR_TARGET_MOXIE
1948 C compiler for moxie tests
1949 AS_FOR_TARGET_MSP430
1950 Assembler for msp430 tests
1951 LD_FOR_TARGET_MSP430
1952 Linker for msp430 tests
1953 CC_FOR_TARGET_MSP430
1954 C compiler for msp430 tests
1955 AS_FOR_TARGET_OR1K
1956 Assembler for or1k tests
1957 LD_FOR_TARGET_OR1K
1958 Linker for or1k tests
1959 CC_FOR_TARGET_OR1K
1960 C compiler for or1k tests
1961 AS_FOR_TARGET_PPC
1962 Assembler for ppc tests
1963 LD_FOR_TARGET_PPC
1964 Linker for ppc tests
1965 CC_FOR_TARGET_PPC
1966 C compiler for ppc tests
1967 AS_FOR_TARGET_PRU
1968 Assembler for pru tests
1969 LD_FOR_TARGET_PRU
1970 Linker for pru tests
1971 CC_FOR_TARGET_PRU
1972 C compiler for pru tests
1973 AS_FOR_TARGET_RISCV
1974 Assembler for riscv tests
1975 LD_FOR_TARGET_RISCV
1976 Linker for riscv tests
1977 CC_FOR_TARGET_RISCV
1978 C compiler for riscv tests
1979 AS_FOR_TARGET_RL78
1980 Assembler for rl78 tests
1981 LD_FOR_TARGET_RL78
1982 Linker for rl78 tests
1983 CC_FOR_TARGET_RL78
1984 C compiler for rl78 tests
1985 AS_FOR_TARGET_RX
1986 Assembler for rx tests
1987 LD_FOR_TARGET_RX
1988 Linker for rx tests
1989 CC_FOR_TARGET_RX
1990 C compiler for rx tests
1991 AS_FOR_TARGET_SH
1992 Assembler for sh tests
1993 LD_FOR_TARGET_SH
1994 Linker for sh tests
1995 CC_FOR_TARGET_SH
1996 C compiler for sh tests
1997 AS_FOR_TARGET_ERC32
1998 Assembler for erc32 tests
1999 LD_FOR_TARGET_ERC32
2000 Linker for erc32 tests
2001 CC_FOR_TARGET_ERC32
2002 C compiler for erc32 tests
2003 AS_FOR_TARGET_V850
2004 Assembler for v850 tests
2005 LD_FOR_TARGET_V850
2006 Linker for v850 tests
2007 CC_FOR_TARGET_V850
2008 C compiler for v850 tests
2009 AS_FOR_TARGET_EXAMPLE_SYNACOR
2010 Assembler for example-synacor tests
2011 LD_FOR_TARGET_EXAMPLE_SYNACOR
2012 Linker for example-synacor tests
2013 CC_FOR_TARGET_EXAMPLE_SYNACOR
2014 C compiler for example-synacor tests
2015
2016 Use these variables to override the choices made by `configure' or to help
2017 it to find libraries and programs with nonstandard names/locations.
2018
2019 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2020 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2021 _ACEOF
2022 ac_status=$?
2023 fi
2024
2025 if test "$ac_init_help" = "recursive"; then
2026 # If there are subdirs, report their specific --help.
2027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2028 test -d "$ac_dir" ||
2029 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2030 continue
2031 ac_builddir=.
2032
2033 case "$ac_dir" in
2034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2035 *)
2036 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2037 # A ".." for each directory in $ac_dir_suffix.
2038 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2039 case $ac_top_builddir_sub in
2040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2042 esac ;;
2043 esac
2044 ac_abs_top_builddir=$ac_pwd
2045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2046 # for backward compatibility:
2047 ac_top_builddir=$ac_top_build_prefix
2048
2049 case $srcdir in
2050 .) # We are building in place.
2051 ac_srcdir=.
2052 ac_top_srcdir=$ac_top_builddir_sub
2053 ac_abs_top_srcdir=$ac_pwd ;;
2054 [\\/]* | ?:[\\/]* ) # Absolute name.
2055 ac_srcdir=$srcdir$ac_dir_suffix;
2056 ac_top_srcdir=$srcdir
2057 ac_abs_top_srcdir=$srcdir ;;
2058 *) # Relative name.
2059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2060 ac_top_srcdir=$ac_top_build_prefix$srcdir
2061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2062 esac
2063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2064
2065 cd "$ac_dir" || { ac_status=$?; continue; }
2066 # Check for guested configure.
2067 if test -f "$ac_srcdir/configure.gnu"; then
2068 echo &&
2069 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2070 elif test -f "$ac_srcdir/configure"; then
2071 echo &&
2072 $SHELL "$ac_srcdir/configure" --help=recursive
2073 else
2074 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2075 fi || ac_status=$?
2076 cd "$ac_pwd" || { ac_status=$?; break; }
2077 done
2078 fi
2079
2080 test -n "$ac_init_help" && exit $ac_status
2081 if $ac_init_version; then
2082 cat <<\_ACEOF
2083 sim configure 0
2084 generated by GNU Autoconf 2.69
2085
2086 Copyright (C) 2012 Free Software Foundation, Inc.
2087 This configure script is free software; the Free Software Foundation
2088 gives unlimited permission to copy, distribute and modify it.
2089 _ACEOF
2090 exit
2091 fi
2092
2093 ## ------------------------ ##
2094 ## Autoconf initialization. ##
2095 ## ------------------------ ##
2096
2097 # ac_fn_c_try_compile LINENO
2098 # --------------------------
2099 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_c_try_compile ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 rm -f conftest.$ac_objext
2104 if { { ac_try="$ac_compile"
2105 case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_compile") 2>conftest.err
2112 ac_status=$?
2113 if test -s conftest.err; then
2114 grep -v '^ *+' conftest.err >conftest.er1
2115 cat conftest.er1 >&5
2116 mv -f conftest.er1 conftest.err
2117 fi
2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 test $ac_status = 0; } && {
2120 test -z "$ac_c_werror_flag" ||
2121 test ! -s conftest.err
2122 } && test -s conftest.$ac_objext; then :
2123 ac_retval=0
2124 else
2125 $as_echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 ac_retval=1
2129 fi
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 as_fn_set_status $ac_retval
2132
2133 } # ac_fn_c_try_compile
2134
2135 # ac_fn_c_try_cpp LINENO
2136 # ----------------------
2137 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_c_try_cpp ()
2139 {
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 if { { ac_try="$ac_cpp conftest.$ac_ext"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } > conftest.i && {
2157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2158 test ! -s conftest.err
2159 }; then :
2160 ac_retval=0
2161 else
2162 $as_echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 ac_retval=1
2166 fi
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2169
2170 } # ac_fn_c_try_cpp
2171
2172 # ac_fn_c_try_run LINENO
2173 # ----------------------
2174 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2175 # that executables *can* be run.
2176 ac_fn_c_try_run ()
2177 {
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if { { ac_try="$ac_link"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>&5
2187 ac_status=$?
2188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2190 { { case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_try") 2>&5
2197 ac_status=$?
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; }; }; then :
2200 ac_retval=0
2201 else
2202 $as_echo "$as_me: program exited with status $ac_status" >&5
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=$ac_status
2207 fi
2208 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 as_fn_set_status $ac_retval
2211
2212 } # ac_fn_c_try_run
2213
2214 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2215 # -------------------------------------------------------
2216 # Tests whether HEADER exists and can be compiled using the include files in
2217 # INCLUDES, setting the cache variable VAR accordingly.
2218 ac_fn_c_check_header_compile ()
2219 {
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 $as_echo_n "checking for $2... " >&6; }
2223 if eval \${$3+:} false; then :
2224 $as_echo_n "(cached) " >&6
2225 else
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $4
2229 #include <$2>
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232 eval "$3=yes"
2233 else
2234 eval "$3=no"
2235 fi
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242
2243 } # ac_fn_c_check_header_compile
2244
2245 # ac_fn_c_try_link LINENO
2246 # -----------------------
2247 # Try to link conftest.$ac_ext, and return whether this succeeded.
2248 ac_fn_c_try_link ()
2249 {
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext conftest$ac_exeext
2252 if { { ac_try="$ac_link"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2265 fi
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_c_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest$ac_exeext && {
2271 test "$cross_compiling" = yes ||
2272 test -x conftest$ac_exeext
2273 }; then :
2274 ac_retval=0
2275 else
2276 $as_echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=1
2280 fi
2281 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2282 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2283 # interfere with the next link command; also delete a directory that is
2284 # left behind by Apple's compiler. We do this before executing the actions.
2285 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2288
2289 } # ac_fn_c_try_link
2290
2291 # ac_fn_c_check_func LINENO FUNC VAR
2292 # ----------------------------------
2293 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2294 ac_fn_c_check_func ()
2295 {
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2298 $as_echo_n "checking for $2... " >&6; }
2299 if eval \${$3+:} false; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2306 #define $2 innocuous_$2
2307
2308 /* System header to define __stub macros and hopefully few prototypes,
2309 which can conflict with char $2 (); below.
2310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2311 <limits.h> exists even on freestanding compilers. */
2312
2313 #ifdef __STDC__
2314 # include <limits.h>
2315 #else
2316 # include <assert.h>
2317 #endif
2318
2319 #undef $2
2320
2321 /* Override any GCC internal prototype to avoid an error.
2322 Use char because int might match the return type of a GCC
2323 builtin and then its argument prototype would still apply. */
2324 #ifdef __cplusplus
2325 extern "C"
2326 #endif
2327 char $2 ();
2328 /* The GNU C library defines this for functions which it implements
2329 to always fail with ENOSYS. Some functions are actually named
2330 something starting with __ and the normal name is an alias. */
2331 #if defined __stub_$2 || defined __stub___$2
2332 choke me
2333 #endif
2334
2335 int
2336 main ()
2337 {
2338 return $2 ();
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 if ac_fn_c_try_link "$LINENO"; then :
2344 eval "$3=yes"
2345 else
2346 eval "$3=no"
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext \
2349 conftest$ac_exeext conftest.$ac_ext
2350 fi
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355
2356 } # ac_fn_c_check_func
2357
2358 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2359 # ----------------------------------------------------
2360 # Tries to find if the field MEMBER exists in type AGGR, after including
2361 # INCLUDES, setting cache variable VAR accordingly.
2362 ac_fn_c_check_member ()
2363 {
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2366 $as_echo_n "checking for $2.$3... " >&6; }
2367 if eval \${$4+:} false; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2372 $5
2373 int
2374 main ()
2375 {
2376 static $2 ac_aggr;
2377 if (ac_aggr.$3)
2378 return 0;
2379 ;
2380 return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384 eval "$4=yes"
2385 else
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2388 $5
2389 int
2390 main ()
2391 {
2392 static $2 ac_aggr;
2393 if (sizeof ac_aggr.$3)
2394 return 0;
2395 ;
2396 return 0;
2397 }
2398 _ACEOF
2399 if ac_fn_c_try_compile "$LINENO"; then :
2400 eval "$4=yes"
2401 else
2402 eval "$4=no"
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 fi
2408 eval ac_res=\$$4
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412
2413 } # ac_fn_c_check_member
2414
2415 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2416 # ---------------------------------------------
2417 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2418 # accordingly.
2419 ac_fn_c_check_decl ()
2420 {
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 as_decl_name=`echo $2|sed 's/ *(.*//'`
2423 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2425 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2426 if eval \${$3+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 $4
2432 int
2433 main ()
2434 {
2435 #ifndef $as_decl_name
2436 #ifdef __cplusplus
2437 (void) $as_decl_use;
2438 #else
2439 (void) $as_decl_name;
2440 #endif
2441 #endif
2442
2443 ;
2444 return 0;
2445 }
2446 _ACEOF
2447 if ac_fn_c_try_compile "$LINENO"; then :
2448 eval "$3=yes"
2449 else
2450 eval "$3=no"
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 fi
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458
2459 } # ac_fn_c_check_decl
2460
2461 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2462 # -------------------------------------------
2463 # Tests whether TYPE exists after having included INCLUDES, setting cache
2464 # variable VAR accordingly.
2465 ac_fn_c_check_type ()
2466 {
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2469 $as_echo_n "checking for $2... " >&6; }
2470 if eval \${$3+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 eval "$3=no"
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 $4
2477 int
2478 main ()
2479 {
2480 if (sizeof ($2))
2481 return 0;
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 if ac_fn_c_try_compile "$LINENO"; then :
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2489 $4
2490 int
2491 main ()
2492 {
2493 if (sizeof (($2)))
2494 return 0;
2495 ;
2496 return 0;
2497 }
2498 _ACEOF
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500
2501 else
2502 eval "$3=yes"
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 fi
2508 eval ac_res=\$$3
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 $as_echo "$ac_res" >&6; }
2511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2512
2513 } # ac_fn_c_check_type
2514 cat >config.log <<_ACEOF
2515 This file contains any messages produced by compilers while
2516 running configure, to aid debugging if configure makes a mistake.
2517
2518 It was created by sim $as_me 0, which was
2519 generated by GNU Autoconf 2.69. Invocation command line was
2520
2521 $ $0 $@
2522
2523 _ACEOF
2524 exec 5>>config.log
2525 {
2526 cat <<_ASUNAME
2527 ## --------- ##
2528 ## Platform. ##
2529 ## --------- ##
2530
2531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2536
2537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2539
2540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2547
2548 _ASUNAME
2549
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 $as_echo "PATH: $as_dir"
2556 done
2557 IFS=$as_save_IFS
2558
2559 } >&5
2560
2561 cat >&5 <<_ACEOF
2562
2563
2564 ## ----------- ##
2565 ## Core tests. ##
2566 ## ----------- ##
2567
2568 _ACEOF
2569
2570
2571 # Keep a trace of the command line.
2572 # Strip out --no-create and --no-recursion so they do not pile up.
2573 # Strip out --silent because we don't want to record it for future runs.
2574 # Also quote any args containing shell meta-characters.
2575 # Make two passes to allow for proper duplicate-argument suppression.
2576 ac_configure_args=
2577 ac_configure_args0=
2578 ac_configure_args1=
2579 ac_must_keep_next=false
2580 for ac_pass in 1 2
2581 do
2582 for ac_arg
2583 do
2584 case $ac_arg in
2585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2587 | -silent | --silent | --silen | --sile | --sil)
2588 continue ;;
2589 *\'*)
2590 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 esac
2592 case $ac_pass in
2593 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2594 2)
2595 as_fn_append ac_configure_args1 " '$ac_arg'"
2596 if test $ac_must_keep_next = true; then
2597 ac_must_keep_next=false # Got value, back to normal.
2598 else
2599 case $ac_arg in
2600 *=* | --config-cache | -C | -disable-* | --disable-* \
2601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2603 | -with-* | --with-* | -without-* | --without-* | --x)
2604 case "$ac_configure_args0 " in
2605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2606 esac
2607 ;;
2608 -* ) ac_must_keep_next=true ;;
2609 esac
2610 fi
2611 as_fn_append ac_configure_args " '$ac_arg'"
2612 ;;
2613 esac
2614 done
2615 done
2616 { ac_configure_args0=; unset ac_configure_args0;}
2617 { ac_configure_args1=; unset ac_configure_args1;}
2618
2619 # When interrupted or exit'd, cleanup temporary files, and complete
2620 # config.log. We remove comments because anyway the quotes in there
2621 # would cause problems or look ugly.
2622 # WARNING: Use '\'' to represent an apostrophe within the trap.
2623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2624 trap 'exit_status=$?
2625 # Save into config.log some information that might help in debugging.
2626 {
2627 echo
2628
2629 $as_echo "## ---------------- ##
2630 ## Cache variables. ##
2631 ## ---------------- ##"
2632 echo
2633 # The following way of writing the cache mishandles newlines in values,
2634 (
2635 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2636 eval ac_val=\$$ac_var
2637 case $ac_val in #(
2638 *${as_nl}*)
2639 case $ac_var in #(
2640 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2641 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2642 esac
2643 case $ac_var in #(
2644 _ | IFS | as_nl) ;; #(
2645 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2646 *) { eval $ac_var=; unset $ac_var;} ;;
2647 esac ;;
2648 esac
2649 done
2650 (set) 2>&1 |
2651 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2652 *${as_nl}ac_space=\ *)
2653 sed -n \
2654 "s/'\''/'\''\\\\'\'''\''/g;
2655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2656 ;; #(
2657 *)
2658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2659 ;;
2660 esac |
2661 sort
2662 )
2663 echo
2664
2665 $as_echo "## ----------------- ##
2666 ## Output variables. ##
2667 ## ----------------- ##"
2668 echo
2669 for ac_var in $ac_subst_vars
2670 do
2671 eval ac_val=\$$ac_var
2672 case $ac_val in
2673 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2674 esac
2675 $as_echo "$ac_var='\''$ac_val'\''"
2676 done | sort
2677 echo
2678
2679 if test -n "$ac_subst_files"; then
2680 $as_echo "## ------------------- ##
2681 ## File substitutions. ##
2682 ## ------------------- ##"
2683 echo
2684 for ac_var in $ac_subst_files
2685 do
2686 eval ac_val=\$$ac_var
2687 case $ac_val in
2688 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2689 esac
2690 $as_echo "$ac_var='\''$ac_val'\''"
2691 done | sort
2692 echo
2693 fi
2694
2695 if test -s confdefs.h; then
2696 $as_echo "## ----------- ##
2697 ## confdefs.h. ##
2698 ## ----------- ##"
2699 echo
2700 cat confdefs.h
2701 echo
2702 fi
2703 test "$ac_signal" != 0 &&
2704 $as_echo "$as_me: caught signal $ac_signal"
2705 $as_echo "$as_me: exit $exit_status"
2706 } >&5
2707 rm -f core *.core core.conftest.* &&
2708 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2709 exit $exit_status
2710 ' 0
2711 for ac_signal in 1 2 13 15; do
2712 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2713 done
2714 ac_signal=0
2715
2716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2717 rm -f -r conftest* confdefs.h
2718
2719 $as_echo "/* confdefs.h */" > confdefs.h
2720
2721 # Predefined preprocessor variables.
2722
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE_NAME "$PACKAGE_NAME"
2725 _ACEOF
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2729 _ACEOF
2730
2731 cat >>confdefs.h <<_ACEOF
2732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2733 _ACEOF
2734
2735 cat >>confdefs.h <<_ACEOF
2736 #define PACKAGE_STRING "$PACKAGE_STRING"
2737 _ACEOF
2738
2739 cat >>confdefs.h <<_ACEOF
2740 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2741 _ACEOF
2742
2743 cat >>confdefs.h <<_ACEOF
2744 #define PACKAGE_URL "$PACKAGE_URL"
2745 _ACEOF
2746
2747
2748 # Let the site file select an alternate cache file if it wants to.
2749 # Prefer an explicitly selected file to automatically selected ones.
2750 ac_site_file1=NONE
2751 ac_site_file2=NONE
2752 if test -n "$CONFIG_SITE"; then
2753 # We do not want a PATH search for config.site.
2754 case $CONFIG_SITE in #((
2755 -*) ac_site_file1=./$CONFIG_SITE;;
2756 */*) ac_site_file1=$CONFIG_SITE;;
2757 *) ac_site_file1=./$CONFIG_SITE;;
2758 esac
2759 elif test "x$prefix" != xNONE; then
2760 ac_site_file1=$prefix/share/config.site
2761 ac_site_file2=$prefix/etc/config.site
2762 else
2763 ac_site_file1=$ac_default_prefix/share/config.site
2764 ac_site_file2=$ac_default_prefix/etc/config.site
2765 fi
2766 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2767 do
2768 test "x$ac_site_file" = xNONE && continue
2769 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2771 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2772 sed 's/^/| /' "$ac_site_file" >&5
2773 . "$ac_site_file" \
2774 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 as_fn_error $? "failed to load site script $ac_site_file
2777 See \`config.log' for more details" "$LINENO" 5; }
2778 fi
2779 done
2780
2781 if test -r "$cache_file"; then
2782 # Some versions of bash will fail to source /dev/null (special files
2783 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2784 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2786 $as_echo "$as_me: loading cache $cache_file" >&6;}
2787 case $cache_file in
2788 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2789 *) . "./$cache_file";;
2790 esac
2791 fi
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2794 $as_echo "$as_me: creating cache $cache_file" >&6;}
2795 >$cache_file
2796 fi
2797
2798 as_fn_append ac_header_list " dlfcn.h"
2799 as_fn_append ac_header_list " fcntl.h"
2800 as_fn_append ac_header_list " fpu_control.h"
2801 as_fn_append ac_header_list " termios.h"
2802 as_fn_append ac_header_list " utime.h"
2803 as_fn_append ac_header_list " linux/if_tun.h"
2804 as_fn_append ac_header_list " linux/mii.h"
2805 as_fn_append ac_header_list " linux/types.h"
2806 as_fn_append ac_header_list " net/if.h"
2807 as_fn_append ac_header_list " netinet/in.h"
2808 as_fn_append ac_header_list " netinet/tcp.h"
2809 as_fn_append ac_header_list " sys/ioctl.h"
2810 as_fn_append ac_header_list " sys/mman.h"
2811 as_fn_append ac_header_list " sys/mount.h"
2812 as_fn_append ac_header_list " sys/param.h"
2813 as_fn_append ac_header_list " sys/resource.h"
2814 as_fn_append ac_header_list " sys/socket.h"
2815 as_fn_append ac_header_list " sys/statfs.h"
2816 as_fn_append ac_header_list " sys/termio.h"
2817 as_fn_append ac_header_list " sys/termios.h"
2818 as_fn_append ac_header_list " sys/types.h"
2819 as_fn_append ac_header_list " sys/vfs.h"
2820 as_fn_append ac_func_list " __setfpucw"
2821 as_fn_append ac_func_list " access"
2822 as_fn_append ac_func_list " aint"
2823 as_fn_append ac_func_list " anint"
2824 as_fn_append ac_func_list " cfgetispeed"
2825 as_fn_append ac_func_list " cfgetospeed"
2826 as_fn_append ac_func_list " cfsetispeed"
2827 as_fn_append ac_func_list " cfsetospeed"
2828 as_fn_append ac_func_list " chdir"
2829 as_fn_append ac_func_list " chmod"
2830 as_fn_append ac_func_list " dup"
2831 as_fn_append ac_func_list " dup2"
2832 as_fn_append ac_func_list " execv"
2833 as_fn_append ac_func_list " execve"
2834 as_fn_append ac_func_list " fcntl"
2835 as_fn_append ac_func_list " fork"
2836 as_fn_append ac_func_list " fstat"
2837 as_fn_append ac_func_list " fstatfs"
2838 as_fn_append ac_func_list " ftruncate"
2839 as_fn_append ac_func_list " getdirentries"
2840 as_fn_append ac_func_list " getegid"
2841 as_fn_append ac_func_list " geteuid"
2842 as_fn_append ac_func_list " getgid"
2843 as_fn_append ac_func_list " getpid"
2844 as_fn_append ac_func_list " getppid"
2845 as_fn_append ac_func_list " getrusage"
2846 as_fn_append ac_func_list " gettimeofday"
2847 as_fn_append ac_func_list " getuid"
2848 as_fn_append ac_func_list " ioctl"
2849 as_fn_append ac_func_list " kill"
2850 as_fn_append ac_func_list " link"
2851 as_fn_append ac_func_list " lseek"
2852 as_fn_append ac_func_list " lstat"
2853 as_fn_append ac_func_list " mkdir"
2854 as_fn_append ac_func_list " mmap"
2855 as_fn_append ac_func_list " munmap"
2856 as_fn_append ac_func_list " pipe"
2857 as_fn_append ac_func_list " posix_fallocate"
2858 as_fn_append ac_func_list " pread"
2859 as_fn_append ac_func_list " rmdir"
2860 as_fn_append ac_func_list " setregid"
2861 as_fn_append ac_func_list " setreuid"
2862 as_fn_append ac_func_list " setgid"
2863 as_fn_append ac_func_list " setuid"
2864 as_fn_append ac_func_list " sigaction"
2865 as_fn_append ac_func_list " sigprocmask"
2866 as_fn_append ac_func_list " sqrt"
2867 as_fn_append ac_func_list " stat"
2868 as_fn_append ac_func_list " strsignal"
2869 as_fn_append ac_func_list " symlink"
2870 as_fn_append ac_func_list " tcdrain"
2871 as_fn_append ac_func_list " tcflow"
2872 as_fn_append ac_func_list " tcflush"
2873 as_fn_append ac_func_list " tcgetattr"
2874 as_fn_append ac_func_list " tcgetpgrp"
2875 as_fn_append ac_func_list " tcsendbreak"
2876 as_fn_append ac_func_list " tcsetattr"
2877 as_fn_append ac_func_list " tcsetpgrp"
2878 as_fn_append ac_func_list " time"
2879 as_fn_append ac_func_list " truncate"
2880 as_fn_append ac_func_list " umask"
2881 as_fn_append ac_func_list " unlink"
2882 as_fn_append ac_func_list " utime"
2883 # Check that the precious variables saved in the cache have kept the same
2884 # value.
2885 ac_cache_corrupted=false
2886 for ac_var in $ac_precious_vars; do
2887 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2888 eval ac_new_set=\$ac_env_${ac_var}_set
2889 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2890 eval ac_new_val=\$ac_env_${ac_var}_value
2891 case $ac_old_set,$ac_new_set in
2892 set,)
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2894 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2895 ac_cache_corrupted=: ;;
2896 ,set)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2898 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2899 ac_cache_corrupted=: ;;
2900 ,);;
2901 *)
2902 if test "x$ac_old_val" != "x$ac_new_val"; then
2903 # differences in whitespace do not lead to failure.
2904 ac_old_val_w=`echo x $ac_old_val`
2905 ac_new_val_w=`echo x $ac_new_val`
2906 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2908 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2909 ac_cache_corrupted=:
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2912 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2913 eval $ac_var=\$ac_old_val
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2916 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2918 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2919 fi;;
2920 esac
2921 # Pass precious variables to config.status.
2922 if test "$ac_new_set" = set; then
2923 case $ac_new_val in
2924 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2925 *) ac_arg=$ac_var=$ac_new_val ;;
2926 esac
2927 case " $ac_configure_args " in
2928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2929 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2930 esac
2931 fi
2932 done
2933 if $ac_cache_corrupted; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2938 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2939 fi
2940 ## -------------------- ##
2941 ## Main body of script. ##
2942 ## -------------------- ##
2943
2944 ac_ext=c
2945 ac_cpp='$CPP $CPPFLAGS'
2946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949
2950
2951
2952
2953
2954
2955
2956
2957 # Check whether --with-pkgversion was given.
2958 if test "${with_pkgversion+set}" = set; then :
2959 withval=$with_pkgversion; case "$withval" in
2960 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2961 no) PKGVERSION= ;;
2962 *) PKGVERSION="($withval) " ;;
2963 esac
2964 else
2965 PKGVERSION="(SIM) "
2966
2967 fi
2968
2969
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define PKGVERSION "$PKGVERSION"
2974 _ACEOF
2975
2976
2977
2978 # Check whether --with-bugurl was given.
2979 if test "${with_bugurl+set}" = set; then :
2980 withval=$with_bugurl; case "$withval" in
2981 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2982 no) BUGURL=
2983 ;;
2984 *) BUGURL="$withval"
2985 ;;
2986 esac
2987 else
2988 BUGURL="$PACKAGE_BUGREPORT"
2989
2990 fi
2991
2992 case ${BUGURL} in
2993 "")
2994 REPORT_BUGS_TO=
2995 REPORT_BUGS_TEXI=
2996 ;;
2997 *)
2998 REPORT_BUGS_TO="<$BUGURL>"
2999 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3000 ;;
3001 esac;
3002
3003
3004
3005
3006 cat >>confdefs.h <<_ACEOF
3007 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3008 _ACEOF
3009
3010
3011 ac_config_headers="$ac_config_headers config.h"
3012
3013
3014 . $srcdir/../bfd/development.sh
3015
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 if test -f "$ac_dir/install-sh"; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/install-sh -c"
3021 break
3022 elif test -f "$ac_dir/install.sh"; then
3023 ac_aux_dir=$ac_dir
3024 ac_install_sh="$ac_aux_dir/install.sh -c"
3025 break
3026 elif test -f "$ac_dir/shtool"; then
3027 ac_aux_dir=$ac_dir
3028 ac_install_sh="$ac_aux_dir/shtool install -c"
3029 break
3030 fi
3031 done
3032 if test -z "$ac_aux_dir"; then
3033 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3034 fi
3035
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3043
3044
3045 # Make sure we can run config.sub.
3046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3047 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3050 $as_echo_n "checking build system type... " >&6; }
3051 if ${ac_cv_build+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 ac_build_alias=$build_alias
3055 test "x$ac_build_alias" = x &&
3056 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3057 test "x$ac_build_alias" = x &&
3058 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3059 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3060 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3061
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3064 $as_echo "$ac_cv_build" >&6; }
3065 case $ac_cv_build in
3066 *-*-*) ;;
3067 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3068 esac
3069 build=$ac_cv_build
3070 ac_save_IFS=$IFS; IFS='-'
3071 set x $ac_cv_build
3072 shift
3073 build_cpu=$1
3074 build_vendor=$2
3075 shift; shift
3076 # Remember, the first character of IFS is used to create $*,
3077 # except with old shells:
3078 build_os=$*
3079 IFS=$ac_save_IFS
3080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3081
3082
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3084 $as_echo_n "checking host system type... " >&6; }
3085 if ${ac_cv_host+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test "x$host_alias" = x; then
3089 ac_cv_host=$ac_cv_build
3090 else
3091 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3092 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3093 fi
3094
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3097 $as_echo "$ac_cv_host" >&6; }
3098 case $ac_cv_host in
3099 *-*-*) ;;
3100 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3101 esac
3102 host=$ac_cv_host
3103 ac_save_IFS=$IFS; IFS='-'
3104 set x $ac_cv_host
3105 shift
3106 host_cpu=$1
3107 host_vendor=$2
3108 shift; shift
3109 # Remember, the first character of IFS is used to create $*,
3110 # except with old shells:
3111 host_os=$*
3112 IFS=$ac_save_IFS
3113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3114
3115
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3117 $as_echo_n "checking target system type... " >&6; }
3118 if ${ac_cv_target+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test "x$target_alias" = x; then
3122 ac_cv_target=$ac_cv_host
3123 else
3124 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3125 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3126 fi
3127
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3130 $as_echo "$ac_cv_target" >&6; }
3131 case $ac_cv_target in
3132 *-*-*) ;;
3133 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3134 esac
3135 target=$ac_cv_target
3136 ac_save_IFS=$IFS; IFS='-'
3137 set x $ac_cv_target
3138 shift
3139 target_cpu=$1
3140 target_vendor=$2
3141 shift; shift
3142 # Remember, the first character of IFS is used to create $*,
3143 # except with old shells:
3144 target_os=$*
3145 IFS=$ac_save_IFS
3146 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3147
3148
3149 # The aliases save the names the user supplied, while $host etc.
3150 # will get canonicalized.
3151 test -n "$target_alias" &&
3152 test "$program_prefix$program_suffix$program_transform_name" = \
3153 NONENONEs,x,x, &&
3154 program_prefix=${target_alias}-
3155 # Expand $ac_aux_dir to an absolute path.
3156 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3157
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_CC+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$CC"; then
3172 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 CC=$ac_cv_prog_CC
3192 if test -n "$CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194 $as_echo "$CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 fi
3202 if test -z "$ac_cv_prog_CC"; then
3203 ac_ct_CC=$CC
3204 # Extract the first word of "gcc", so it can be a program name with args.
3205 set dummy gcc; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 if test -n "$ac_ct_CC"; then
3212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_ac_ct_CC="gcc"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227 IFS=$as_save_IFS
3228
3229 fi
3230 fi
3231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232 if test -n "$ac_ct_CC"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234 $as_echo "$ac_ct_CC" >&6; }
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240 if test "x$ac_ct_CC" = x; then
3241 CC=""
3242 else
3243 case $cross_compiling:$ac_tool_warned in
3244 yes:)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249 CC=$ac_ct_CC
3250 fi
3251 else
3252 CC="$ac_cv_prog_CC"
3253 fi
3254
3255 if test -z "$CC"; then
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}cc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_CC="${ac_tool_prefix}cc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 fi
3296 if test -z "$CC"; then
3297 # Extract the first word of "cc", so it can be a program name with args.
3298 set dummy cc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 ac_prog_rejected=no
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3316 ac_prog_rejected=yes
3317 continue
3318 fi
3319 ac_cv_prog_CC="cc"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 if test $ac_prog_rejected = yes; then
3328 # We found a bogon in the path, so make sure we never use it.
3329 set dummy $ac_cv_prog_CC
3330 shift
3331 if test $# != 0; then
3332 # We chose a different compiler from the bogus one.
3333 # However, it has the same basename, so the bogon will be chosen
3334 # first if we set CC to just the basename; use the full file name.
3335 shift
3336 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3337 fi
3338 fi
3339 fi
3340 fi
3341 CC=$ac_cv_prog_CC
3342 if test -n "$CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3344 $as_echo "$CC" >&6; }
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 fi
3349
3350
3351 fi
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 for ac_prog in cl.exe
3355 do
3356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3387 else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393 test -n "$CC" && break
3394 done
3395 fi
3396 if test -z "$CC"; then
3397 ac_ct_CC=$CC
3398 for ac_prog in cl.exe
3399 do
3400 # Extract the first word of "$ac_prog", so it can be a program name with args.
3401 set dummy $ac_prog; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -n "$ac_ct_CC"; then
3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_ac_ct_CC="$ac_prog"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421 done
3422 done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428 if test -n "$ac_ct_CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3430 $as_echo "$ac_ct_CC" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 fi
3435
3436
3437 test -n "$ac_ct_CC" && break
3438 done
3439
3440 if test "x$ac_ct_CC" = x; then
3441 CC=""
3442 else
3443 case $cross_compiling:$ac_tool_warned in
3444 yes:)
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447 ac_tool_warned=yes ;;
3448 esac
3449 CC=$ac_ct_CC
3450 fi
3451 fi
3452
3453 fi
3454
3455
3456 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error $? "no acceptable C compiler found in \$PATH
3459 See \`config.log' for more details" "$LINENO" 5; }
3460
3461 # Provide some information about the compiler.
3462 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3463 set X $ac_compile
3464 ac_compiler=$2
3465 for ac_option in --version -v -V -qversion; do
3466 { { ac_try="$ac_compiler $ac_option >&5"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3474 ac_status=$?
3475 if test -s conftest.err; then
3476 sed '10a\
3477 ... rest of stderr output deleted ...
3478 10q' conftest.err >conftest.er1
3479 cat conftest.er1 >&5
3480 fi
3481 rm -f conftest.er1 conftest.err
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }
3484 done
3485
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488
3489 int
3490 main ()
3491 {
3492
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 ac_clean_files_save=$ac_clean_files
3498 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3499 # Try to create an executable without -o first, disregard a.out.
3500 # It will help us diagnose broken compilers, and finding out an intuition
3501 # of exeext.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3503 $as_echo_n "checking whether the C compiler works... " >&6; }
3504 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3505
3506 # The possible output files:
3507 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3508
3509 ac_rmfiles=
3510 for ac_file in $ac_files
3511 do
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3514 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3515 esac
3516 done
3517 rm -f $ac_rmfiles
3518
3519 if { { ac_try="$ac_link_default"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_link_default") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; then :
3530 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3531 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3532 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3533 # so that the user can short-circuit this test for compilers unknown to
3534 # Autoconf.
3535 for ac_file in $ac_files ''
3536 do
3537 test -f "$ac_file" || continue
3538 case $ac_file in
3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3540 ;;
3541 [ab].out )
3542 # We found the default executable, but exeext='' is most
3543 # certainly right.
3544 break;;
3545 *.* )
3546 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3547 then :; else
3548 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 fi
3550 # We set ac_cv_exeext here because the later test for it is not
3551 # safe: cross compilers may not add the suffix if given an `-o'
3552 # argument, so we may need to know it at that point already.
3553 # Even if this section looks crufty: it has the advantage of
3554 # actually working.
3555 break;;
3556 * )
3557 break;;
3558 esac
3559 done
3560 test "$ac_cv_exeext" = no && ac_cv_exeext=
3561
3562 else
3563 ac_file=''
3564 fi
3565 if test -z "$ac_file"; then :
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error 77 "C compiler cannot create executables
3574 See \`config.log' for more details" "$LINENO" 5; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3577 $as_echo "yes" >&6; }
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3580 $as_echo_n "checking for C compiler default output file name... " >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582 $as_echo "$ac_file" >&6; }
3583 ac_exeext=$ac_cv_exeext
3584
3585 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3586 ac_clean_files=$ac_clean_files_save
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3588 $as_echo_n "checking for suffix of executables... " >&6; }
3589 if { { ac_try="$ac_link"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3602 # work properly (i.e., refer to `conftest.exe'), while it won't with
3603 # `rm'.
3604 for ac_file in conftest.exe conftest conftest.*; do
3605 test -f "$ac_file" || continue
3606 case $ac_file in
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609 break;;
3610 * ) break;;
3611 esac
3612 done
3613 else
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3617 See \`config.log' for more details" "$LINENO" 5; }
3618 fi
3619 rm -f conftest conftest$ac_cv_exeext
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3621 $as_echo "$ac_cv_exeext" >&6; }
3622
3623 rm -f conftest.$ac_ext
3624 EXEEXT=$ac_cv_exeext
3625 ac_exeext=$EXEEXT
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <stdio.h>
3629 int
3630 main ()
3631 {
3632 FILE *f = fopen ("conftest.out", "w");
3633 return ferror (f) || fclose (f) != 0;
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 ac_clean_files="$ac_clean_files conftest.out"
3640 # Check that the compiler produces executables we can run. If not, either
3641 # the compiler is broken, or we cross compile.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3643 $as_echo_n "checking whether we are cross compiling... " >&6; }
3644 if test "$cross_compiling" != yes; then
3645 { { ac_try="$ac_link"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_link") 2>&5
3653 ac_status=$?
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }
3656 if { ac_try='./conftest$ac_cv_exeext'
3657 { { case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_try") 2>&5
3664 ac_status=$?
3665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666 test $ac_status = 0; }; }; then
3667 cross_compiling=no
3668 else
3669 if test "$cross_compiling" = maybe; then
3670 cross_compiling=yes
3671 else
3672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $? "cannot run C compiled programs.
3675 If you meant to cross compile, use \`--host'.
3676 See \`config.log' for more details" "$LINENO" 5; }
3677 fi
3678 fi
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681 $as_echo "$cross_compiling" >&6; }
3682
3683 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3684 ac_clean_files=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3686 $as_echo_n "checking for suffix of object files... " >&6; }
3687 if ${ac_cv_objext+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.o conftest.obj
3702 if { { ac_try="$ac_compile"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_compile") 2>&5
3710 ac_status=$?
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; then :
3713 for ac_file in conftest.o conftest.obj conftest.*; do
3714 test -f "$ac_file" || continue;
3715 case $ac_file in
3716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3717 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3718 break;;
3719 esac
3720 done
3721 else
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details" "$LINENO" 5; }
3729 fi
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3733 $as_echo "$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3735 ac_objext=$OBJEXT
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3737 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3738 if ${ac_cv_c_compiler_gnu+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main ()
3746 {
3747 #ifndef __GNUC__
3748 choke me
3749 #endif
3750
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 if ac_fn_c_try_compile "$LINENO"; then :
3756 ac_compiler_gnu=yes
3757 else
3758 ac_compiler_gnu=no
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3762
3763 fi
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3765 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3766 if test $ac_compiler_gnu = yes; then
3767 GCC=yes
3768 else
3769 GCC=
3770 fi
3771 ac_test_CFLAGS=${CFLAGS+set}
3772 ac_save_CFLAGS=$CFLAGS
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3774 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3775 if ${ac_cv_prog_cc_g+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 ac_save_c_werror_flag=$ac_c_werror_flag
3779 ac_c_werror_flag=yes
3780 ac_cv_prog_cc_g=no
3781 CFLAGS="-g"
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_cv_prog_cc_g=yes
3795 else
3796 CFLAGS=""
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799
3800 int
3801 main ()
3802 {
3803
3804 ;
3805 return 0;
3806 }
3807 _ACEOF
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809
3810 else
3811 ac_c_werror_flag=$ac_save_c_werror_flag
3812 CFLAGS="-g"
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_g=yes
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_c_werror_flag=$ac_save_c_werror_flag
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3835 $as_echo "$ac_cv_prog_cc_g" >&6; }
3836 if test "$ac_test_CFLAGS" = set; then
3837 CFLAGS=$ac_save_CFLAGS
3838 elif test $ac_cv_prog_cc_g = yes; then
3839 if test "$GCC" = yes; then
3840 CFLAGS="-g -O2"
3841 else
3842 CFLAGS="-g"
3843 fi
3844 else
3845 if test "$GCC" = yes; then
3846 CFLAGS="-O2"
3847 else
3848 CFLAGS=
3849 fi
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3852 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3853 if ${ac_cv_prog_cc_c89+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_cv_prog_cc_c89=no
3857 ac_save_CC=$CC
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <stdarg.h>
3861 #include <stdio.h>
3862 struct stat;
3863 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3864 struct buf { int x; };
3865 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3866 static char *e (p, i)
3867 char **p;
3868 int i;
3869 {
3870 return p[i];
3871 }
3872 static char *f (char * (*g) (char **, int), char **p, ...)
3873 {
3874 char *s;
3875 va_list v;
3876 va_start (v,p);
3877 s = g (p, va_arg (v,int));
3878 va_end (v);
3879 return s;
3880 }
3881
3882 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3883 function prototypes and stuff, but not '\xHH' hex character constants.
3884 These don't provoke an error unfortunately, instead are silently treated
3885 as 'x'. The following induces an error, until -std is added to get
3886 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3887 array size at least. It's necessary to write '\x00'==0 to get something
3888 that's true only with -std. */
3889 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3890
3891 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3892 inside strings and character constants. */
3893 #define FOO(x) 'x'
3894 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3895
3896 int test (int i, double x);
3897 struct s1 {int (*f) (int a);};
3898 struct s2 {int (*f) (double a);};
3899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3900 int argc;
3901 char **argv;
3902 int
3903 main ()
3904 {
3905 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3906 ;
3907 return 0;
3908 }
3909 _ACEOF
3910 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3911 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3912 do
3913 CC="$ac_save_CC $ac_arg"
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915 ac_cv_prog_cc_c89=$ac_arg
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext
3918 test "x$ac_cv_prog_cc_c89" != "xno" && break
3919 done
3920 rm -f conftest.$ac_ext
3921 CC=$ac_save_CC
3922
3923 fi
3924 # AC_CACHE_VAL
3925 case "x$ac_cv_prog_cc_c89" in
3926 x)
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3928 $as_echo "none needed" >&6; } ;;
3929 xno)
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3931 $as_echo "unsupported" >&6; } ;;
3932 *)
3933 CC="$CC $ac_cv_prog_cc_c89"
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3935 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3936 esac
3937 if test "x$ac_cv_prog_cc_c89" != xno; then :
3938
3939 fi
3940
3941 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3953 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3954 if ${am_cv_prog_cc_c_o+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959
3960 int
3961 main ()
3962 {
3963
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 # Make sure it works both with $CC and with simple cc.
3969 # Following AC_PROG_CC_C_O, we do the test twice because some
3970 # compilers refuse to overwrite an existing .o file with -o,
3971 # though they will create one.
3972 am_cv_prog_cc_c_o=yes
3973 for am_i in 1 2; do
3974 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3975 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } \
3979 && test -f conftest2.$ac_objext; then
3980 : OK
3981 else
3982 am_cv_prog_cc_c_o=no
3983 break
3984 fi
3985 done
3986 rm -f core conftest*
3987 unset am_i
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3990 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3991 if test "$am_cv_prog_cc_c_o" != yes; then
3992 # Losing compiler, so override with the script.
3993 # FIXME: It is wrong to rewrite CC.
3994 # But if we don't then we get into trouble of one sort or another.
3995 # A longer-term fix would be to have automake use am__CC in this case,
3996 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3997 CC="$am_aux_dir/compile $CC"
3998 fi
3999 ac_ext=c
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004
4005
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4013 # On Suns, sometimes $CPP names a directory.
4014 if test -n "$CPP" && test -d "$CPP"; then
4015 CPP=
4016 fi
4017 if test -z "$CPP"; then
4018 if ${ac_cv_prog_CPP+:} false; then :
4019 $as_echo_n "(cached) " >&6
4020 else
4021 # Double quotes because CPP needs to be expanded
4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4023 do
4024 ac_preproc_ok=false
4025 for ac_c_preproc_warn_flag in '' yes
4026 do
4027 # Use a header file that comes with gcc, so configuring glibc
4028 # with a fresh cross-compiler works.
4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 # <limits.h> exists even on freestanding compilers.
4031 # On the NeXT, cc -E runs the code through the compiler's parser,
4032 # not just through cpp. "Syntax error" is here to catch this case.
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 #ifdef __STDC__
4036 # include <limits.h>
4037 #else
4038 # include <assert.h>
4039 #endif
4040 Syntax error
4041 _ACEOF
4042 if ac_fn_c_try_cpp "$LINENO"; then :
4043
4044 else
4045 # Broken: fails on valid input.
4046 continue
4047 fi
4048 rm -f conftest.err conftest.i conftest.$ac_ext
4049
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <ac_nonexistent.h>
4055 _ACEOF
4056 if ac_fn_c_try_cpp "$LINENO"; then :
4057 # Broken: success on invalid input.
4058 continue
4059 else
4060 # Passes both tests.
4061 ac_preproc_ok=:
4062 break
4063 fi
4064 rm -f conftest.err conftest.i conftest.$ac_ext
4065
4066 done
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.i conftest.err conftest.$ac_ext
4069 if $ac_preproc_ok; then :
4070 break
4071 fi
4072
4073 done
4074 ac_cv_prog_CPP=$CPP
4075
4076 fi
4077 CPP=$ac_cv_prog_CPP
4078 else
4079 ac_cv_prog_CPP=$CPP
4080 fi
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4082 $as_echo "$CPP" >&6; }
4083 ac_preproc_ok=false
4084 for ac_c_preproc_warn_flag in '' yes
4085 do
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error" is here to catch this case.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #ifdef __STDC__
4095 # include <limits.h>
4096 #else
4097 # include <assert.h>
4098 #endif
4099 Syntax error
4100 _ACEOF
4101 if ac_fn_c_try_cpp "$LINENO"; then :
4102
4103 else
4104 # Broken: fails on valid input.
4105 continue
4106 fi
4107 rm -f conftest.err conftest.i conftest.$ac_ext
4108
4109 # OK, works on sane cases. Now check whether nonexistent headers
4110 # can be detected and how.
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <ac_nonexistent.h>
4114 _ACEOF
4115 if ac_fn_c_try_cpp "$LINENO"; then :
4116 # Broken: success on invalid input.
4117 continue
4118 else
4119 # Passes both tests.
4120 ac_preproc_ok=:
4121 break
4122 fi
4123 rm -f conftest.err conftest.i conftest.$ac_ext
4124
4125 done
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.i conftest.err conftest.$ac_ext
4128 if $ac_preproc_ok; then :
4129
4130 else
4131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4133 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4134 See \`config.log' for more details" "$LINENO" 5; }
4135 fi
4136
4137 ac_ext=c
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4146 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4147 if ${ac_cv_path_GREP+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -z "$GREP"; then
4151 ac_path_GREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155 do
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in grep ggrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4161 as_fn_executable_p "$ac_path_GREP" || continue
4162 # Check for GNU ac_path_GREP and select it if it is found.
4163 # Check for GNU $ac_path_GREP
4164 case `"$ac_path_GREP" --version 2>&1` in
4165 *GNU*)
4166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4167 *)
4168 ac_count=0
4169 $as_echo_n 0123456789 >"conftest.in"
4170 while :
4171 do
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'GREP' >> "conftest.nl"
4176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_GREP="$ac_path_GREP"
4182 ac_path_GREP_max=$ac_count
4183 fi
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 esac
4189
4190 $ac_path_GREP_found && break 3
4191 done
4192 done
4193 done
4194 IFS=$as_save_IFS
4195 if test -z "$ac_cv_path_GREP"; then
4196 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197 fi
4198 else
4199 ac_cv_path_GREP=$GREP
4200 fi
4201
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4204 $as_echo "$ac_cv_path_GREP" >&6; }
4205 GREP="$ac_cv_path_GREP"
4206
4207
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4209 $as_echo_n "checking for egrep... " >&6; }
4210 if ${ac_cv_path_EGREP+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4214 then ac_cv_path_EGREP="$GREP -E"
4215 else
4216 if test -z "$EGREP"; then
4217 ac_path_EGREP_found=false
4218 # Loop through the user's path and test for each of PROGNAME-LIST
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_prog in egrep; do
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4227 as_fn_executable_p "$ac_path_EGREP" || continue
4228 # Check for GNU ac_path_EGREP and select it if it is found.
4229 # Check for GNU $ac_path_EGREP
4230 case `"$ac_path_EGREP" --version 2>&1` in
4231 *GNU*)
4232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4233 *)
4234 ac_count=0
4235 $as_echo_n 0123456789 >"conftest.in"
4236 while :
4237 do
4238 cat "conftest.in" "conftest.in" >"conftest.tmp"
4239 mv "conftest.tmp" "conftest.in"
4240 cp "conftest.in" "conftest.nl"
4241 $as_echo 'EGREP' >> "conftest.nl"
4242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244 as_fn_arith $ac_count + 1 && ac_count=$as_val
4245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4246 # Best one so far, save it but keep looking for a better one
4247 ac_cv_path_EGREP="$ac_path_EGREP"
4248 ac_path_EGREP_max=$ac_count
4249 fi
4250 # 10*(2^10) chars as input seems more than enough
4251 test $ac_count -gt 10 && break
4252 done
4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254 esac
4255
4256 $ac_path_EGREP_found && break 3
4257 done
4258 done
4259 done
4260 IFS=$as_save_IFS
4261 if test -z "$ac_cv_path_EGREP"; then
4262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4263 fi
4264 else
4265 ac_cv_path_EGREP=$EGREP
4266 fi
4267
4268 fi
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4271 $as_echo "$ac_cv_path_EGREP" >&6; }
4272 EGREP="$ac_cv_path_EGREP"
4273
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4276 $as_echo_n "checking for ANSI C header files... " >&6; }
4277 if ${ac_cv_header_stdc+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <stdlib.h>
4283 #include <stdarg.h>
4284 #include <string.h>
4285 #include <float.h>
4286
4287 int
4288 main ()
4289 {
4290
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_header_stdc=yes
4297 else
4298 ac_cv_header_stdc=no
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301
4302 if test $ac_cv_header_stdc = yes; then
4303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <string.h>
4307
4308 _ACEOF
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310 $EGREP "memchr" >/dev/null 2>&1; then :
4311
4312 else
4313 ac_cv_header_stdc=no
4314 fi
4315 rm -f conftest*
4316
4317 fi
4318
4319 if test $ac_cv_header_stdc = yes; then
4320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 #include <stdlib.h>
4324
4325 _ACEOF
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 $EGREP "free" >/dev/null 2>&1; then :
4328
4329 else
4330 ac_cv_header_stdc=no
4331 fi
4332 rm -f conftest*
4333
4334 fi
4335
4336 if test $ac_cv_header_stdc = yes; then
4337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4338 if test "$cross_compiling" = yes; then :
4339 :
4340 else
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <ctype.h>
4344 #include <stdlib.h>
4345 #if ((' ' & 0x0FF) == 0x020)
4346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4348 #else
4349 # define ISLOWER(c) \
4350 (('a' <= (c) && (c) <= 'i') \
4351 || ('j' <= (c) && (c) <= 'r') \
4352 || ('s' <= (c) && (c) <= 'z'))
4353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4354 #endif
4355
4356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4357 int
4358 main ()
4359 {
4360 int i;
4361 for (i = 0; i < 256; i++)
4362 if (XOR (islower (i), ISLOWER (i))
4363 || toupper (i) != TOUPPER (i))
4364 return 2;
4365 return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_c_try_run "$LINENO"; then :
4369
4370 else
4371 ac_cv_header_stdc=no
4372 fi
4373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4374 conftest.$ac_objext conftest.beam conftest.$ac_ext
4375 fi
4376
4377 fi
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4380 $as_echo "$ac_cv_header_stdc" >&6; }
4381 if test $ac_cv_header_stdc = yes; then
4382
4383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4384
4385 fi
4386
4387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4388 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4389 inttypes.h stdint.h unistd.h
4390 do :
4391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4393 "
4394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4395 cat >>confdefs.h <<_ACEOF
4396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4397 _ACEOF
4398
4399 fi
4400
4401 done
4402
4403
4404 test "$program_prefix" != NONE &&
4405 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4406 # Use a double $ so make ignores it.
4407 test "$program_suffix" != NONE &&
4408 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4409 # Double any \ or $.
4410 # By default was `s,x,x', remove it if useless.
4411 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4412 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4413
4414 # Find a good install program. We prefer a C program (faster),
4415 # so one script is as good as another. But avoid the broken or
4416 # incompatible versions:
4417 # SysV /etc/install, /usr/sbin/install
4418 # SunOS /usr/etc/install
4419 # IRIX /sbin/install
4420 # AIX /bin/install
4421 # AmigaOS /C/install, which installs bootblocks on floppy discs
4422 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4423 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4424 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4425 # OS/2's system install, which has a completely different semantic
4426 # ./install, which can be erroneously created by make from ./install.sh.
4427 # Reject install programs that cannot install multiple files.
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4429 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4430 if test -z "$INSTALL"; then
4431 if ${ac_cv_path_install+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 # Account for people who put trailing slashes in PATH elements.
4440 case $as_dir/ in #((
4441 ./ | .// | /[cC]/* | \
4442 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4443 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4444 /usr/ucb/* ) ;;
4445 *)
4446 # OSF1 and SCO ODT 3.0 have their own names for install.
4447 # Don't use installbsd from OSF since it installs stuff as root
4448 # by default.
4449 for ac_prog in ginstall scoinst install; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4452 if test $ac_prog = install &&
4453 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4454 # AIX install. It has an incompatible calling convention.
4455 :
4456 elif test $ac_prog = install &&
4457 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4458 # program-specific install script used by HP pwplus--don't use.
4459 :
4460 else
4461 rm -rf conftest.one conftest.two conftest.dir
4462 echo one > conftest.one
4463 echo two > conftest.two
4464 mkdir conftest.dir
4465 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4466 test -s conftest.one && test -s conftest.two &&
4467 test -s conftest.dir/conftest.one &&
4468 test -s conftest.dir/conftest.two
4469 then
4470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4471 break 3
4472 fi
4473 fi
4474 fi
4475 done
4476 done
4477 ;;
4478 esac
4479
4480 done
4481 IFS=$as_save_IFS
4482
4483 rm -rf conftest.one conftest.two conftest.dir
4484
4485 fi
4486 if test "${ac_cv_path_install+set}" = set; then
4487 INSTALL=$ac_cv_path_install
4488 else
4489 # As a last resort, use the slow shell script. Don't cache a
4490 # value for INSTALL within a source directory, because that will
4491 # break other packages using the cache if that directory is
4492 # removed, or if the value is a relative name.
4493 INSTALL=$ac_install_sh
4494 fi
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4497 $as_echo "$INSTALL" >&6; }
4498
4499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4500 # It thinks the first close brace ends the variable substitution.
4501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4502
4503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4504
4505 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4506
4507
4508
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4511 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4512 if ${ac_cv_c_bigendian+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 ac_cv_c_bigendian=unknown
4516 # See if we're dealing with a universal compiler.
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #ifndef __APPLE_CC__
4520 not a universal capable compiler
4521 #endif
4522 typedef int dummy;
4523
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526
4527 # Check for potential -arch flags. It is not universal unless
4528 # there are at least two -arch flags with different values.
4529 ac_arch=
4530 ac_prev=
4531 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4532 if test -n "$ac_prev"; then
4533 case $ac_word in
4534 i?86 | x86_64 | ppc | ppc64)
4535 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4536 ac_arch=$ac_word
4537 else
4538 ac_cv_c_bigendian=universal
4539 break
4540 fi
4541 ;;
4542 esac
4543 ac_prev=
4544 elif test "x$ac_word" = "x-arch"; then
4545 ac_prev=arch
4546 fi
4547 done
4548 fi
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 if test $ac_cv_c_bigendian = unknown; then
4551 # See if sys/param.h defines the BYTE_ORDER macro.
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #include <sys/types.h>
4555 #include <sys/param.h>
4556
4557 int
4558 main ()
4559 {
4560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4561 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4562 && LITTLE_ENDIAN)
4563 bogus endian macros
4564 #endif
4565
4566 ;
4567 return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <sys/types.h>
4575 #include <sys/param.h>
4576
4577 int
4578 main ()
4579 {
4580 #if BYTE_ORDER != BIG_ENDIAN
4581 not big endian
4582 #endif
4583
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_c_bigendian=yes
4590 else
4591 ac_cv_c_bigendian=no
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 fi
4597 if test $ac_cv_c_bigendian = unknown; then
4598 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4601 #include <limits.h>
4602
4603 int
4604 main ()
4605 {
4606 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4607 bogus endian macros
4608 #endif
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 # It does; now see whether it defined to _BIG_ENDIAN or not.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <limits.h>
4619
4620 int
4621 main ()
4622 {
4623 #ifndef _BIG_ENDIAN
4624 not big endian
4625 #endif
4626
4627 ;
4628 return 0;
4629 }
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_c_bigendian=yes
4633 else
4634 ac_cv_c_bigendian=no
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 fi
4640 if test $ac_cv_c_bigendian = unknown; then
4641 # Compile a test program.
4642 if test "$cross_compiling" = yes; then :
4643 # Try to guess by grepping values from an object file.
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646 short int ascii_mm[] =
4647 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4648 short int ascii_ii[] =
4649 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4650 int use_ascii (int i) {
4651 return ascii_mm[i] + ascii_ii[i];
4652 }
4653 short int ebcdic_ii[] =
4654 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4655 short int ebcdic_mm[] =
4656 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4657 int use_ebcdic (int i) {
4658 return ebcdic_mm[i] + ebcdic_ii[i];
4659 }
4660 extern int foo;
4661
4662 int
4663 main ()
4664 {
4665 return use_ascii (foo) == use_ebcdic (foo);
4666 ;
4667 return 0;
4668 }
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4672 ac_cv_c_bigendian=yes
4673 fi
4674 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4675 if test "$ac_cv_c_bigendian" = unknown; then
4676 ac_cv_c_bigendian=no
4677 else
4678 # finding both strings is unlikely to happen, but who knows?
4679 ac_cv_c_bigendian=unknown
4680 fi
4681 fi
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 else
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 $ac_includes_default
4688 int
4689 main ()
4690 {
4691
4692 /* Are we little or big endian? From Harbison&Steele. */
4693 union
4694 {
4695 long int l;
4696 char c[sizeof (long int)];
4697 } u;
4698 u.l = 1;
4699 return u.c[sizeof (long int) - 1] == 1;
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_run "$LINENO"; then :
4706 ac_cv_c_bigendian=no
4707 else
4708 ac_cv_c_bigendian=yes
4709 fi
4710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4711 conftest.$ac_objext conftest.beam conftest.$ac_ext
4712 fi
4713
4714 fi
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4717 $as_echo "$ac_cv_c_bigendian" >&6; }
4718 case $ac_cv_c_bigendian in #(
4719 yes)
4720 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4721 ;; #(
4722 no)
4723 ;; #(
4724 universal)
4725
4726 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4727
4728 ;; #(
4729 *)
4730 as_fn_error $? "unknown endianness
4731 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4732 esac
4733
4734
4735
4736
4737 if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_prog_DTC+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if test -n "$DTC"; then
4746 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759 done
4760 done
4761 IFS=$as_save_IFS
4762
4763 fi
4764 fi
4765 DTC=$ac_cv_prog_DTC
4766 if test -n "$DTC"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4768 $as_echo "$DTC" >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4772 fi
4773
4774
4775 fi
4776 if test -z "$ac_cv_prog_DTC"; then
4777 ac_ct_DTC=$DTC
4778 # Extract the first word of "dtc", so it can be a program name with args.
4779 set dummy dtc; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -n "$ac_ct_DTC"; then
4786 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_ac_ct_DTC="dtc"
4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4806 if test -n "$ac_ct_DTC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4808 $as_echo "$ac_ct_DTC" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814 if test "x$ac_ct_DTC" = x; then
4815 DTC=""
4816 else
4817 case $cross_compiling:$ac_tool_warned in
4818 yes:)
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned=yes ;;
4822 esac
4823 DTC=$ac_ct_DTC
4824 fi
4825 else
4826 DTC="$ac_cv_prog_DTC"
4827 fi
4828
4829
4830 if test "x$cross_compiling" = "xno"; then
4831 : "${AR_FOR_BUILD:=\$(AR)}"
4832 : "${CC_FOR_BUILD:=\$(CC)}"
4833 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4834 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4835 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4836 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4837 else
4838 : "${AR_FOR_BUILD:=ar}"
4839 : "${CC_FOR_BUILD:=gcc}"
4840 : "${RANLIB_FOR_BUILD:=ranlib}"
4841 : "${CFLAGS_FOR_BUILD:=-g -O}"
4842 : "${CPPFLAGS_FOR_BUILD:=}"
4843 : "${LDLFAGS_FOR_BUILD:=}"
4844 fi
4845
4846
4847
4848
4849
4850
4851
4852
4853 if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4855 set dummy ${ac_tool_prefix}ar; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_AR+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$AR"; then
4862 ac_cv_prog_AR="$AR" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_AR="${ac_tool_prefix}ar"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875 done
4876 done
4877 IFS=$as_save_IFS
4878
4879 fi
4880 fi
4881 AR=$ac_cv_prog_AR
4882 if test -n "$AR"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4884 $as_echo "$AR" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 fi
4892 if test -z "$ac_cv_prog_AR"; then
4893 ac_ct_AR=$AR
4894 # Extract the first word of "ar", so it can be a program name with args.
4895 set dummy ar; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -n "$ac_ct_AR"; then
4902 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_ac_ct_AR="ar"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4914 fi
4915 done
4916 done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4922 if test -n "$ac_ct_AR"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4924 $as_echo "$ac_ct_AR" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930 if test "x$ac_ct_AR" = x; then
4931 AR=""
4932 else
4933 case $cross_compiling:$ac_tool_warned in
4934 yes:)
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937 ac_tool_warned=yes ;;
4938 esac
4939 AR=$ac_ct_AR
4940 fi
4941 else
4942 AR="$ac_cv_prog_AR"
4943 fi
4944
4945 if test -n "$ac_tool_prefix"; then
4946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_prog_RANLIB+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -n "$RANLIB"; then
4954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967 done
4968 done
4969 IFS=$as_save_IFS
4970
4971 fi
4972 fi
4973 RANLIB=$ac_cv_prog_RANLIB
4974 if test -n "$RANLIB"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4976 $as_echo "$RANLIB" >&6; }
4977 else
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981
4982
4983 fi
4984 if test -z "$ac_cv_prog_RANLIB"; then
4985 ac_ct_RANLIB=$RANLIB
4986 # Extract the first word of "ranlib", so it can be a program name with args.
4987 set dummy ranlib; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$ac_ct_RANLIB"; then
4994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_ac_ct_RANLIB="ranlib"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5006 fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5014 if test -n "$ac_ct_RANLIB"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5016 $as_echo "$ac_ct_RANLIB" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022 if test "x$ac_ct_RANLIB" = x; then
5023 RANLIB=":"
5024 else
5025 case $cross_compiling:$ac_tool_warned in
5026 yes:)
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5029 ac_tool_warned=yes ;;
5030 esac
5031 RANLIB=$ac_ct_RANLIB
5032 fi
5033 else
5034 RANLIB="$ac_cv_prog_RANLIB"
5035 fi
5036
5037
5038
5039
5040
5041
5042
5043
5044 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 case $PKG_CONFIG in
5054 [\\/]* | ?:[\\/]*)
5055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5056 ;;
5057 *)
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069 done
5070 done
5071 IFS=$as_save_IFS
5072
5073 ;;
5074 esac
5075 fi
5076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5077 if test -n "$PKG_CONFIG"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5079 $as_echo "$PKG_CONFIG" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086 fi
5087 if test -z "$ac_cv_path_PKG_CONFIG"; then
5088 ac_pt_PKG_CONFIG=$PKG_CONFIG
5089 # Extract the first word of "pkg-config", so it can be a program name with args.
5090 set dummy pkg-config; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 case $ac_pt_PKG_CONFIG in
5097 [\\/]* | ?:[\\/]*)
5098 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5099 ;;
5100 *)
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116 ;;
5117 esac
5118 fi
5119 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5120 if test -n "$ac_pt_PKG_CONFIG"; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5122 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5123 else
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5125 $as_echo "no" >&6; }
5126 fi
5127
5128 if test "x$ac_pt_PKG_CONFIG" = x; then
5129 PKG_CONFIG=""
5130 else
5131 case $cross_compiling:$ac_tool_warned in
5132 yes:)
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5135 ac_tool_warned=yes ;;
5136 esac
5137 PKG_CONFIG=$ac_pt_PKG_CONFIG
5138 fi
5139 else
5140 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5141 fi
5142
5143 fi
5144 if test -n "$PKG_CONFIG"; then
5145 _pkg_min_version=0.9.0
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5147 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5148 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150 $as_echo "yes" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5154 PKG_CONFIG=""
5155 fi
5156 fi
5157
5158 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5159 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5160 # is C99. So handle it ourselves.
5161 :
5162 C_DIALECT=
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5164 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167
5168 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5169 # error "C11 support not found"
5170 #endif
5171
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }
5176 else
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5181 $as_echo_n "checking for -std=c11 support... " >&6; }
5182 ac_save_CC="$CC"
5183 CC="$CC -std=c11"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186
5187 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5188 # error "C11 support not found"
5189 #endif
5190
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5195 $as_echo "yes" >&6; }
5196 CC="$ac_save_CC"
5197 C_DIALECT="-std=c11"
5198
5199 else
5200 as_fn_error $? "C11 is required" "$LINENO" 5
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 fi
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205
5206
5207
5208
5209
5210 for ac_header in $ac_header_list
5211 do :
5212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5213 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5214 "
5215 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5216 cat >>confdefs.h <<_ACEOF
5217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5218 _ACEOF
5219
5220 fi
5221
5222 done
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 for ac_func in $ac_func_list
5272 do :
5273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5274 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5275 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5276 cat >>confdefs.h <<_ACEOF
5277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5278 _ACEOF
5279
5280 fi
5281 done
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5410 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5411 if ${ac_cv_struct_tm+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 #include <sys/types.h>
5417 #include <time.h>
5418
5419 int
5420 main ()
5421 {
5422 struct tm tm;
5423 int *p = &tm.tm_sec;
5424 return !p;
5425 ;
5426 return 0;
5427 }
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_struct_tm=time.h
5431 else
5432 ac_cv_struct_tm=sys/time.h
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5437 $as_echo "$ac_cv_struct_tm" >&6; }
5438 if test $ac_cv_struct_tm = sys/time.h; then
5439
5440 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5441
5442 fi
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5445 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5446 if ${ac_cv_type_uid_t+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #include <sys/types.h>
5452
5453 _ACEOF
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 $EGREP "uid_t" >/dev/null 2>&1; then :
5456 ac_cv_type_uid_t=yes
5457 else
5458 ac_cv_type_uid_t=no
5459 fi
5460 rm -f conftest*
5461
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5464 $as_echo "$ac_cv_type_uid_t" >&6; }
5465 if test $ac_cv_type_uid_t = no; then
5466
5467 $as_echo "#define uid_t int" >>confdefs.h
5468
5469
5470 $as_echo "#define gid_t int" >>confdefs.h
5471
5472 fi
5473
5474 case `pwd` in
5475 *\ * | *\ *)
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5477 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5478 esac
5479
5480
5481
5482 macro_version='2.2.7a'
5483 macro_revision='1.3134'
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 ltmain="$ac_aux_dir/ltmain.sh"
5498
5499 # Backslashify metacharacters that are still active within
5500 # double-quoted strings.
5501 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5502
5503 # Same as above, but do not quote variable references.
5504 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5505
5506 # Sed substitution to delay expansion of an escaped shell variable in a
5507 # double_quote_subst'ed string.
5508 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5509
5510 # Sed substitution to delay expansion of an escaped single quote.
5511 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5512
5513 # Sed substitution to avoid accidental globbing in evaled expressions
5514 no_glob_subst='s/\*/\\\*/g'
5515
5516 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5517 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5518 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5521 $as_echo_n "checking how to print strings... " >&6; }
5522 # Test print first, because it will be a builtin if present.
5523 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5524 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5525 ECHO='print -r --'
5526 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5527 ECHO='printf %s\n'
5528 else
5529 # Use this function as a fallback that always works.
5530 func_fallback_echo ()
5531 {
5532 eval 'cat <<_LTECHO_EOF
5533 $1
5534 _LTECHO_EOF'
5535 }
5536 ECHO='func_fallback_echo'
5537 fi
5538
5539 # func_echo_all arg...
5540 # Invoke $ECHO with all args, space-separated.
5541 func_echo_all ()
5542 {
5543 $ECHO ""
5544 }
5545
5546 case "$ECHO" in
5547 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5548 $as_echo "printf" >&6; } ;;
5549 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5550 $as_echo "print -r" >&6; } ;;
5551 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5552 $as_echo "cat" >&6; } ;;
5553 esac
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5569 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5570 if ${ac_cv_path_SED+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5574 for ac_i in 1 2 3 4 5 6 7; do
5575 ac_script="$ac_script$as_nl$ac_script"
5576 done
5577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5578 { ac_script=; unset ac_script;}
5579 if test -z "$SED"; then
5580 ac_path_SED_found=false
5581 # Loop through the user's path and test for each of PROGNAME-LIST
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_prog in sed gsed; do
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5590 as_fn_executable_p "$ac_path_SED" || continue
5591 # Check for GNU ac_path_SED and select it if it is found.
5592 # Check for GNU $ac_path_SED
5593 case `"$ac_path_SED" --version 2>&1` in
5594 *GNU*)
5595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5596 *)
5597 ac_count=0
5598 $as_echo_n 0123456789 >"conftest.in"
5599 while :
5600 do
5601 cat "conftest.in" "conftest.in" >"conftest.tmp"
5602 mv "conftest.tmp" "conftest.in"
5603 cp "conftest.in" "conftest.nl"
5604 $as_echo '' >> "conftest.nl"
5605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5607 as_fn_arith $ac_count + 1 && ac_count=$as_val
5608 if test $ac_count -gt ${ac_path_SED_max-0}; then
5609 # Best one so far, save it but keep looking for a better one
5610 ac_cv_path_SED="$ac_path_SED"
5611 ac_path_SED_max=$ac_count
5612 fi
5613 # 10*(2^10) chars as input seems more than enough
5614 test $ac_count -gt 10 && break
5615 done
5616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5617 esac
5618
5619 $ac_path_SED_found && break 3
5620 done
5621 done
5622 done
5623 IFS=$as_save_IFS
5624 if test -z "$ac_cv_path_SED"; then
5625 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5626 fi
5627 else
5628 ac_cv_path_SED=$SED
5629 fi
5630
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5633 $as_echo "$ac_cv_path_SED" >&6; }
5634 SED="$ac_cv_path_SED"
5635 rm -f conftest.sed
5636
5637 test -z "$SED" && SED=sed
5638 Xsed="$SED -e 1s/^X//"
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5651 $as_echo_n "checking for fgrep... " >&6; }
5652 if ${ac_cv_path_FGREP+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5656 then ac_cv_path_FGREP="$GREP -F"
5657 else
5658 if test -z "$FGREP"; then
5659 ac_path_FGREP_found=false
5660 # Loop through the user's path and test for each of PROGNAME-LIST
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_prog in fgrep; do
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5669 as_fn_executable_p "$ac_path_FGREP" || continue
5670 # Check for GNU ac_path_FGREP and select it if it is found.
5671 # Check for GNU $ac_path_FGREP
5672 case `"$ac_path_FGREP" --version 2>&1` in
5673 *GNU*)
5674 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5675 *)
5676 ac_count=0
5677 $as_echo_n 0123456789 >"conftest.in"
5678 while :
5679 do
5680 cat "conftest.in" "conftest.in" >"conftest.tmp"
5681 mv "conftest.tmp" "conftest.in"
5682 cp "conftest.in" "conftest.nl"
5683 $as_echo 'FGREP' >> "conftest.nl"
5684 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5686 as_fn_arith $ac_count + 1 && ac_count=$as_val
5687 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5688 # Best one so far, save it but keep looking for a better one
5689 ac_cv_path_FGREP="$ac_path_FGREP"
5690 ac_path_FGREP_max=$ac_count
5691 fi
5692 # 10*(2^10) chars as input seems more than enough
5693 test $ac_count -gt 10 && break
5694 done
5695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5696 esac
5697
5698 $ac_path_FGREP_found && break 3
5699 done
5700 done
5701 done
5702 IFS=$as_save_IFS
5703 if test -z "$ac_cv_path_FGREP"; then
5704 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5705 fi
5706 else
5707 ac_cv_path_FGREP=$FGREP
5708 fi
5709
5710 fi
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5713 $as_echo "$ac_cv_path_FGREP" >&6; }
5714 FGREP="$ac_cv_path_FGREP"
5715
5716
5717 test -z "$GREP" && GREP=grep
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737 # Check whether --with-gnu-ld was given.
5738 if test "${with_gnu_ld+set}" = set; then :
5739 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5740 else
5741 with_gnu_ld=no
5742 fi
5743
5744 ac_prog=ld
5745 if test "$GCC" = yes; then
5746 # Check if gcc -print-prog-name=ld gives a path.
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5748 $as_echo_n "checking for ld used by $CC... " >&6; }
5749 case $host in
5750 *-*-mingw*)
5751 # gcc leaves a trailing carriage return which upsets mingw
5752 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5753 *)
5754 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5755 esac
5756 case $ac_prog in
5757 # Accept absolute paths.
5758 [\\/]* | ?:[\\/]*)
5759 re_direlt='/[^/][^/]*/\.\./'
5760 # Canonicalize the pathname of ld
5761 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5762 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5763 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5764 done
5765 test -z "$LD" && LD="$ac_prog"
5766 ;;
5767 "")
5768 # If it fails, then pretend we aren't using GCC.
5769 ac_prog=ld
5770 ;;
5771 *)
5772 # If it is relative, then search for the first ld in PATH.
5773 with_gnu_ld=unknown
5774 ;;
5775 esac
5776 elif test "$with_gnu_ld" = yes; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5778 $as_echo_n "checking for GNU ld... " >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5781 $as_echo_n "checking for non-GNU ld... " >&6; }
5782 fi
5783 if ${lt_cv_path_LD+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 if test -z "$LD"; then
5787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5788 for ac_dir in $PATH; do
5789 IFS="$lt_save_ifs"
5790 test -z "$ac_dir" && ac_dir=.
5791 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5792 lt_cv_path_LD="$ac_dir/$ac_prog"
5793 # Check to see if the program is GNU ld. I'd rather use --version,
5794 # but apparently some variants of GNU ld only accept -v.
5795 # Break only if it was the GNU/non-GNU ld that we prefer.
5796 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5797 *GNU* | *'with BFD'*)
5798 test "$with_gnu_ld" != no && break
5799 ;;
5800 *)
5801 test "$with_gnu_ld" != yes && break
5802 ;;
5803 esac
5804 fi
5805 done
5806 IFS="$lt_save_ifs"
5807 else
5808 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5809 fi
5810 fi
5811
5812 LD="$lt_cv_path_LD"
5813 if test -n "$LD"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5815 $as_echo "$LD" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5822 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5823 if ${lt_cv_prog_gnu_ld+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5827 case `$LD -v 2>&1 </dev/null` in
5828 *GNU* | *'with BFD'*)
5829 lt_cv_prog_gnu_ld=yes
5830 ;;
5831 *)
5832 lt_cv_prog_gnu_ld=no
5833 ;;
5834 esac
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5837 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5838 with_gnu_ld=$lt_cv_prog_gnu_ld
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5849 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5850 if ${lt_cv_path_NM+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$NM"; then
5854 # Let the user override the nm to test.
5855 lt_nm_to_check="$NM"
5856 else
5857 lt_nm_to_check="${ac_tool_prefix}nm"
5858 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5859 lt_nm_to_check="$lt_nm_to_check nm"
5860 fi
5861 fi
5862 for lt_tmp_nm in "$lt_nm_to_check"; do
5863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5864 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5865 IFS="$lt_save_ifs"
5866 test -z "$ac_dir" && ac_dir=.
5867 # Strip out any user-provided options from the nm to test twice,
5868 # the first time to test to see if nm (rather than its options) has
5869 # an explicit path, the second time to yield a file which can be
5870 # nm'ed itself.
5871 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5872 case "$tmp_nm_path" in
5873 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5874 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5875 esac
5876 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5877 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5878 # Check to see if the nm accepts a BSD-compat flag.
5879 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5880 # nm: unknown option "B" ignored
5881 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5882 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5883 break
5884 ;;
5885 *)
5886 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5887 *$tmp_nm*)
5888 lt_cv_path_NM="$tmp_nm -p"
5889 break
5890 ;;
5891 *)
5892 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5893 continue # so that we can try to find one that supports BSD flags
5894 ;;
5895 esac
5896 ;;
5897 esac
5898 fi
5899 done
5900 IFS="$lt_save_ifs"
5901 done
5902 : ${lt_cv_path_NM=no}
5903 fi
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5905 $as_echo "$lt_cv_path_NM" >&6; }
5906 if test "$lt_cv_path_NM" != "no"; then
5907 NM="$lt_cv_path_NM"
5908 else
5909 # Didn't find any BSD compatible name lister, look for dumpbin.
5910 if test -n "$DUMPBIN"; then :
5911 # Let the user override the test.
5912 else
5913 if test -n "$ac_tool_prefix"; then
5914 for ac_prog in dumpbin "link -dump"
5915 do
5916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_DUMPBIN+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$DUMPBIN"; then
5924 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 DUMPBIN=$ac_cv_prog_DUMPBIN
5944 if test -n "$DUMPBIN"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5946 $as_echo "$DUMPBIN" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952
5953 test -n "$DUMPBIN" && break
5954 done
5955 fi
5956 if test -z "$DUMPBIN"; then
5957 ac_ct_DUMPBIN=$DUMPBIN
5958 for ac_prog in dumpbin "link -dump"
5959 do
5960 # Extract the first word of "$ac_prog", so it can be a program name with args.
5961 set dummy $ac_prog; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$ac_ct_DUMPBIN"; then
5968 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5988 if test -n "$ac_ct_DUMPBIN"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5990 $as_echo "$ac_ct_DUMPBIN" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997 test -n "$ac_ct_DUMPBIN" && break
5998 done
5999
6000 if test "x$ac_ct_DUMPBIN" = x; then
6001 DUMPBIN=":"
6002 else
6003 case $cross_compiling:$ac_tool_warned in
6004 yes:)
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6007 ac_tool_warned=yes ;;
6008 esac
6009 DUMPBIN=$ac_ct_DUMPBIN
6010 fi
6011 fi
6012
6013 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6014 *COFF*)
6015 DUMPBIN="$DUMPBIN -symbols"
6016 ;;
6017 *)
6018 DUMPBIN=:
6019 ;;
6020 esac
6021 fi
6022
6023 if test "$DUMPBIN" != ":"; then
6024 NM="$DUMPBIN"
6025 fi
6026 fi
6027 test -z "$NM" && NM=nm
6028
6029
6030
6031
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6035 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6036 if ${lt_cv_nm_interface+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 lt_cv_nm_interface="BSD nm"
6040 echo "int some_variable = 0;" > conftest.$ac_ext
6041 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6042 (eval "$ac_compile" 2>conftest.err)
6043 cat conftest.err >&5
6044 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6045 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6046 cat conftest.err >&5
6047 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6048 cat conftest.out >&5
6049 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6050 lt_cv_nm_interface="MS dumpbin"
6051 fi
6052 rm -f conftest*
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6055 $as_echo "$lt_cv_nm_interface" >&6; }
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6058 $as_echo_n "checking whether ln -s works... " >&6; }
6059 LN_S=$as_ln_s
6060 if test "$LN_S" = "ln -s"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6062 $as_echo "yes" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6065 $as_echo "no, using $LN_S" >&6; }
6066 fi
6067
6068 # find the maximum length of command line arguments
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6070 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6071 if ${lt_cv_sys_max_cmd_len+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 i=0
6075 teststring="ABCD"
6076
6077 case $build_os in
6078 msdosdjgpp*)
6079 # On DJGPP, this test can blow up pretty badly due to problems in libc
6080 # (any single argument exceeding 2000 bytes causes a buffer overrun
6081 # during glob expansion). Even if it were fixed, the result of this
6082 # check would be larger than it should be.
6083 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6084 ;;
6085
6086 gnu*)
6087 # Under GNU Hurd, this test is not required because there is
6088 # no limit to the length of command line arguments.
6089 # Libtool will interpret -1 as no limit whatsoever
6090 lt_cv_sys_max_cmd_len=-1;
6091 ;;
6092
6093 cygwin* | mingw* | cegcc*)
6094 # On Win9x/ME, this test blows up -- it succeeds, but takes
6095 # about 5 minutes as the teststring grows exponentially.
6096 # Worse, since 9x/ME are not pre-emptively multitasking,
6097 # you end up with a "frozen" computer, even though with patience
6098 # the test eventually succeeds (with a max line length of 256k).
6099 # Instead, let's just punt: use the minimum linelength reported by
6100 # all of the supported platforms: 8192 (on NT/2K/XP).
6101 lt_cv_sys_max_cmd_len=8192;
6102 ;;
6103
6104 mint*)
6105 # On MiNT this can take a long time and run out of memory.
6106 lt_cv_sys_max_cmd_len=8192;
6107 ;;
6108
6109 amigaos*)
6110 # On AmigaOS with pdksh, this test takes hours, literally.
6111 # So we just punt and use a minimum line length of 8192.
6112 lt_cv_sys_max_cmd_len=8192;
6113 ;;
6114
6115 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6116 # This has been around since 386BSD, at least. Likely further.
6117 if test -x /sbin/sysctl; then
6118 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6119 elif test -x /usr/sbin/sysctl; then
6120 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6121 else
6122 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6123 fi
6124 # And add a safety zone
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6127 ;;
6128
6129 interix*)
6130 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6131 lt_cv_sys_max_cmd_len=196608
6132 ;;
6133
6134 osf*)
6135 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6136 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6137 # nice to cause kernel panics so lets avoid the loop below.
6138 # First set a reasonable default.
6139 lt_cv_sys_max_cmd_len=16384
6140 #
6141 if test -x /sbin/sysconfig; then
6142 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6143 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6144 esac
6145 fi
6146 ;;
6147 sco3.2v5*)
6148 lt_cv_sys_max_cmd_len=102400
6149 ;;
6150 sysv5* | sco5v6* | sysv4.2uw2*)
6151 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6152 if test -n "$kargmax"; then
6153 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6154 else
6155 lt_cv_sys_max_cmd_len=32768
6156 fi
6157 ;;
6158 *)
6159 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6160 if test -n "$lt_cv_sys_max_cmd_len"; then
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6163 else
6164 # Make teststring a little bigger before we do anything with it.
6165 # a 1K string should be a reasonable start.
6166 for i in 1 2 3 4 5 6 7 8 ; do
6167 teststring=$teststring$teststring
6168 done
6169 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6170 # If test is not a shell built-in, we'll probably end up computing a
6171 # maximum length that is only half of the actual maximum length, but
6172 # we can't tell.
6173 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6174 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6175 test $i != 17 # 1/2 MB should be enough
6176 do
6177 i=`expr $i + 1`
6178 teststring=$teststring$teststring
6179 done
6180 # Only check the string length outside the loop.
6181 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6182 teststring=
6183 # Add a significant safety factor because C++ compilers can tack on
6184 # massive amounts of additional arguments before passing them to the
6185 # linker. It appears as though 1/2 is a usable value.
6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6187 fi
6188 ;;
6189 esac
6190
6191 fi
6192
6193 if test -n $lt_cv_sys_max_cmd_len ; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6195 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6198 $as_echo "none" >&6; }
6199 fi
6200 max_cmd_len=$lt_cv_sys_max_cmd_len
6201
6202
6203
6204
6205
6206
6207 : ${CP="cp -f"}
6208 : ${MV="mv -f"}
6209 : ${RM="rm -f"}
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6212 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6213 # Try some XSI features
6214 xsi_shell=no
6215 ( _lt_dummy="a/b/c"
6216 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6217 = c,a/b,, \
6218 && eval 'test $(( 1 + 1 )) -eq 2 \
6219 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6220 && xsi_shell=yes
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6222 $as_echo "$xsi_shell" >&6; }
6223
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6226 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6227 lt_shell_append=no
6228 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6229 >/dev/null 2>&1 \
6230 && lt_shell_append=yes
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6232 $as_echo "$lt_shell_append" >&6; }
6233
6234
6235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6236 lt_unset=unset
6237 else
6238 lt_unset=false
6239 fi
6240
6241
6242
6243
6244
6245 # test EBCDIC or ASCII
6246 case `echo X|tr X '\101'` in
6247 A) # ASCII based system
6248 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6249 lt_SP2NL='tr \040 \012'
6250 lt_NL2SP='tr \015\012 \040\040'
6251 ;;
6252 *) # EBCDIC based system
6253 lt_SP2NL='tr \100 \n'
6254 lt_NL2SP='tr \r\n \100\100'
6255 ;;
6256 esac
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6268 if ${lt_cv_ld_reload_flag+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 lt_cv_ld_reload_flag='-r'
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6275 reload_flag=$lt_cv_ld_reload_flag
6276 case $reload_flag in
6277 "" | " "*) ;;
6278 *) reload_flag=" $reload_flag" ;;
6279 esac
6280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6281 case $host_os in
6282 darwin*)
6283 if test "$GCC" = yes; then
6284 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6285 else
6286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6287 fi
6288 ;;
6289 esac
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_OBJDUMP+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$OBJDUMP"; then
6308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 OBJDUMP=$ac_cv_prog_OBJDUMP
6328 if test -n "$OBJDUMP"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6330 $as_echo "$OBJDUMP" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336
6337 fi
6338 if test -z "$ac_cv_prog_OBJDUMP"; then
6339 ac_ct_OBJDUMP=$OBJDUMP
6340 # Extract the first word of "objdump", so it can be a program name with args.
6341 set dummy objdump; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$ac_ct_OBJDUMP"; then
6348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6368 if test -n "$ac_ct_OBJDUMP"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6370 $as_echo "$ac_ct_OBJDUMP" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376 if test "x$ac_ct_OBJDUMP" = x; then
6377 OBJDUMP="false"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 OBJDUMP=$ac_ct_OBJDUMP
6386 fi
6387 else
6388 OBJDUMP="$ac_cv_prog_OBJDUMP"
6389 fi
6390
6391 test -z "$OBJDUMP" && OBJDUMP=objdump
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6402 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6403 if ${lt_cv_deplibs_check_method+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 lt_cv_file_magic_cmd='$MAGIC_CMD'
6407 lt_cv_file_magic_test_file=
6408 lt_cv_deplibs_check_method='unknown'
6409 # Need to set the preceding variable on all platforms that support
6410 # interlibrary dependencies.
6411 # 'none' -- dependencies not supported.
6412 # `unknown' -- same as none, but documents that we really don't know.
6413 # 'pass_all' -- all dependencies passed with no checks.
6414 # 'test_compile' -- check by making test program.
6415 # 'file_magic [[regex]]' -- check by looking for files in library path
6416 # which responds to the $file_magic_cmd with a given extended regex.
6417 # If you have `file' or equivalent on your system and you're not sure
6418 # whether `pass_all' will *always* work, you probably want this one.
6419
6420 case $host_os in
6421 aix[4-9]*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425 beos*)
6426 lt_cv_deplibs_check_method=pass_all
6427 ;;
6428
6429 bsdi[45]*)
6430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6431 lt_cv_file_magic_cmd='/usr/bin/file -L'
6432 lt_cv_file_magic_test_file=/shlib/libc.so
6433 ;;
6434
6435 cygwin*)
6436 # func_win32_libid is a shell function defined in ltmain.sh
6437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6438 lt_cv_file_magic_cmd='func_win32_libid'
6439 ;;
6440
6441 mingw* | pw32*)
6442 # Base MSYS/MinGW do not provide the 'file' command needed by
6443 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6444 # unless we find 'file', for example because we are cross-compiling.
6445 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6446 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6448 lt_cv_file_magic_cmd='func_win32_libid'
6449 else
6450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6451 lt_cv_file_magic_cmd='$OBJDUMP -f'
6452 fi
6453 ;;
6454
6455 cegcc*)
6456 # use the weaker test based on 'objdump'. See mingw*.
6457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6458 lt_cv_file_magic_cmd='$OBJDUMP -f'
6459 ;;
6460
6461 darwin* | rhapsody*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 freebsd* | dragonfly*)
6466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6467 case $host_cpu in
6468 i*86 )
6469 # Not sure whether the presence of OpenBSD here was a mistake.
6470 # Let's accept both of them until this is cleared up.
6471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6472 lt_cv_file_magic_cmd=/usr/bin/file
6473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6474 ;;
6475 esac
6476 else
6477 lt_cv_deplibs_check_method=pass_all
6478 fi
6479 ;;
6480
6481 gnu*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 haiku*)
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489 hpux10.20* | hpux11*)
6490 lt_cv_file_magic_cmd=/usr/bin/file
6491 case $host_cpu in
6492 ia64*)
6493 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6494 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6495 ;;
6496 hppa*64*)
6497 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]'
6498 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6499 ;;
6500 *)
6501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6502 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6503 ;;
6504 esac
6505 ;;
6506
6507 interix[3-9]*)
6508 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6510 ;;
6511
6512 irix5* | irix6* | nonstopux*)
6513 case $LD in
6514 *-32|*"-32 ") libmagic=32-bit;;
6515 *-n32|*"-n32 ") libmagic=N32;;
6516 *-64|*"-64 ") libmagic=64-bit;;
6517 *) libmagic=never-match;;
6518 esac
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521
6522 # This must be Linux ELF.
6523 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526
6527 netbsd*)
6528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6530 else
6531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6532 fi
6533 ;;
6534
6535 newos6*)
6536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6537 lt_cv_file_magic_cmd=/usr/bin/file
6538 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6539 ;;
6540
6541 *nto* | *qnx*)
6542 lt_cv_deplibs_check_method=pass_all
6543 ;;
6544
6545 openbsd*)
6546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6548 else
6549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6550 fi
6551 ;;
6552
6553 osf3* | osf4* | osf5*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557 rdos*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 solaris*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568
6569 sysv4 | sysv4.3*)
6570 case $host_vendor in
6571 motorola)
6572 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]'
6573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6574 ;;
6575 ncr)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578 sequent)
6579 lt_cv_file_magic_cmd='/bin/file'
6580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6581 ;;
6582 sni)
6583 lt_cv_file_magic_cmd='/bin/file'
6584 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6585 lt_cv_file_magic_test_file=/lib/libc.so
6586 ;;
6587 siemens)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590 pc)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
6593 esac
6594 ;;
6595
6596 tpf*)
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
6599 vxworks*)
6600 # Assume VxWorks cross toolchains are built on Linux, possibly
6601 # as canadian for Windows hosts.
6602 lt_cv_deplibs_check_method=pass_all
6603 ;;
6604 esac
6605
6606 fi
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6608 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6609 file_magic_cmd=$lt_cv_file_magic_cmd
6610 deplibs_check_method=$lt_cv_deplibs_check_method
6611 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624 plugin_option=
6625 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6626 for plugin in $plugin_names; do
6627 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6628 if test x$plugin_so = x$plugin; then
6629 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6630 fi
6631 if test x$plugin_so != x$plugin; then
6632 plugin_option="--plugin $plugin_so"
6633 break
6634 fi
6635 done
6636
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_AR+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655 ac_cv_prog_AR="${ac_tool_prefix}ar"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 AR=$ac_cv_prog_AR
6666 if test -n "$AR"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668 $as_echo "$AR" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674
6675 fi
6676 if test -z "$ac_cv_prog_AR"; then
6677 ac_ct_AR=$AR
6678 # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 if test -n "$ac_ct_AR"; then
6686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_AR="ar"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714 if test "x$ac_ct_AR" = x; then
6715 AR="false"
6716 else
6717 case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723 AR=$ac_ct_AR
6724 fi
6725 else
6726 AR="$ac_cv_prog_AR"
6727 fi
6728
6729 test -z "$AR" && AR=ar
6730 if test -n "$plugin_option"; then
6731 if $AR --help 2>&1 | grep -q "\--plugin"; then
6732 touch conftest.c
6733 $AR $plugin_option rc conftest.a conftest.c
6734 if test "$?" != 0; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6736 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6737 else
6738 AR="$AR $plugin_option"
6739 fi
6740 rm -f conftest.*
6741 fi
6742 fi
6743 test -z "$AR_FLAGS" && AR_FLAGS=cru
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755 if test -n "$ac_tool_prefix"; then
6756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}strip; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_STRIP+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if test -n "$STRIP"; then
6764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 STRIP=$ac_cv_prog_STRIP
6784 if test -n "$STRIP"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6786 $as_echo "$STRIP" >&6; }
6787 else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792
6793 fi
6794 if test -z "$ac_cv_prog_STRIP"; then
6795 ac_ct_STRIP=$STRIP
6796 # Extract the first word of "strip", so it can be a program name with args.
6797 set dummy strip; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$ac_ct_STRIP"; then
6804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_STRIP="strip"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6824 if test -n "$ac_ct_STRIP"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6826 $as_echo "$ac_ct_STRIP" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832 if test "x$ac_ct_STRIP" = x; then
6833 STRIP=":"
6834 else
6835 case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839 ac_tool_warned=yes ;;
6840 esac
6841 STRIP=$ac_ct_STRIP
6842 fi
6843 else
6844 STRIP="$ac_cv_prog_STRIP"
6845 fi
6846
6847 test -z "$STRIP" && STRIP=:
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_RANLIB+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$RANLIB"; then
6863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876 done
6877 done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 RANLIB=$ac_cv_prog_RANLIB
6883 if test -n "$RANLIB"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6885 $as_echo "$RANLIB" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891
6892 fi
6893 if test -z "$ac_cv_prog_RANLIB"; then
6894 ac_ct_RANLIB=$RANLIB
6895 # Extract the first word of "ranlib", so it can be a program name with args.
6896 set dummy ranlib; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 if test -n "$ac_ct_RANLIB"; then
6903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_RANLIB="ranlib"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6923 if test -n "$ac_ct_RANLIB"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6925 $as_echo "$ac_ct_RANLIB" >&6; }
6926 else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928 $as_echo "no" >&6; }
6929 fi
6930
6931 if test "x$ac_ct_RANLIB" = x; then
6932 RANLIB=":"
6933 else
6934 case $cross_compiling:$ac_tool_warned in
6935 yes:)
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940 RANLIB=$ac_ct_RANLIB
6941 fi
6942 else
6943 RANLIB="$ac_cv_prog_RANLIB"
6944 fi
6945
6946 test -z "$RANLIB" && RANLIB=:
6947 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6948 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6949 RANLIB="$RANLIB $plugin_option"
6950 fi
6951 fi
6952
6953
6954
6955
6956
6957
6958 # Determine commands to create old-style static archives.
6959 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6960 old_postinstall_cmds='chmod 644 $oldlib'
6961 old_postuninstall_cmds=
6962
6963 if test -n "$RANLIB"; then
6964 case $host_os in
6965 openbsd*)
6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6967 ;;
6968 *)
6969 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6970 ;;
6971 esac
6972 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6973 fi
6974
6975 case $host_os in
6976 darwin*)
6977 lock_old_archive_extraction=yes ;;
6978 *)
6979 lock_old_archive_extraction=no ;;
6980 esac
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002 for ac_prog in gawk mawk nawk awk
7003 do
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_AWK+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_AWK="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7024 fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 AWK=$ac_cv_prog_AWK
7032 if test -n "$AWK"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7034 $as_echo "$AWK" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040
7041 test -n "$AWK" && break
7042 done
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 # If no C compiler was specified, use CC.
7063 LTCC=${LTCC-"$CC"}
7064
7065 # If no C compiler flags were specified, use CFLAGS.
7066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7067
7068 # Allow CC to be a program name with arguments.
7069 compiler=$CC
7070
7071
7072 # Check for command to grab the raw symbol name followed by C symbol from nm.
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7074 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7075 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078
7079 # These are sane defaults that work on at least a few old systems.
7080 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7081
7082 # Character class describing NM global symbol codes.
7083 symcode='[BCDEGRST]'
7084
7085 # Regexp to match symbols that can be accessed directly from C.
7086 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7087
7088 # Define system-specific variables.
7089 case $host_os in
7090 aix*)
7091 symcode='[BCDT]'
7092 ;;
7093 cygwin* | mingw* | pw32* | cegcc*)
7094 symcode='[ABCDGISTW]'
7095 ;;
7096 hpux*)
7097 if test "$host_cpu" = ia64; then
7098 symcode='[ABCDEGRST]'
7099 fi
7100 ;;
7101 irix* | nonstopux*)
7102 symcode='[BCDEGRST]'
7103 ;;
7104 osf*)
7105 symcode='[BCDEGQRST]'
7106 ;;
7107 solaris*)
7108 symcode='[BCDRT]'
7109 ;;
7110 sco3.2v5*)
7111 symcode='[DT]'
7112 ;;
7113 sysv4.2uw2*)
7114 symcode='[DT]'
7115 ;;
7116 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7117 symcode='[ABDT]'
7118 ;;
7119 sysv4)
7120 symcode='[DFNSTU]'
7121 ;;
7122 esac
7123
7124 # If we're using GNU nm, then use its standard symbol codes.
7125 case `$NM -V 2>&1` in
7126 *GNU* | *'with BFD'*)
7127 symcode='[ABCDGIRSTW]' ;;
7128 esac
7129
7130 # Transform an extracted symbol line into a proper C declaration.
7131 # Some systems (esp. on ia64) link data and code symbols differently,
7132 # so use this general approach.
7133 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7134
7135 # Transform an extracted symbol line into symbol name and symbol address
7136 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7137 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'"
7138
7139 # Handle CRLF in mingw tool chain
7140 opt_cr=
7141 case $build_os in
7142 mingw*)
7143 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7144 ;;
7145 esac
7146
7147 # Try without a prefix underscore, then with it.
7148 for ac_symprfx in "" "_"; do
7149
7150 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7151 symxfrm="\\1 $ac_symprfx\\2 \\2"
7152
7153 # Write the raw and C identifiers.
7154 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7155 # Fake it for dumpbin and say T for any non-static function
7156 # and D for any global variable.
7157 # Also find C++ and __fastcall symbols from MSVC++,
7158 # which start with @ or ?.
7159 lt_cv_sys_global_symbol_pipe="$AWK '"\
7160 " {last_section=section; section=\$ 3};"\
7161 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7162 " \$ 0!~/External *\|/{next};"\
7163 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7164 " {if(hide[section]) next};"\
7165 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7166 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7167 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7168 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7169 " ' prfx=^$ac_symprfx"
7170 else
7171 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7172 fi
7173
7174 # Check to see that the pipe works correctly.
7175 pipe_works=no
7176
7177 rm -f conftest*
7178 cat > conftest.$ac_ext <<_LT_EOF
7179 #ifdef __cplusplus
7180 extern "C" {
7181 #endif
7182 char nm_test_var;
7183 void nm_test_func(void);
7184 void nm_test_func(void){}
7185 #ifdef __cplusplus
7186 }
7187 #endif
7188 int main(){nm_test_var='a';nm_test_func();return(0);}
7189 _LT_EOF
7190
7191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7192 (eval $ac_compile) 2>&5
7193 ac_status=$?
7194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195 test $ac_status = 0; }; then
7196 # Now try to grab the symbols.
7197 nlist=conftest.nm
7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7199 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7200 ac_status=$?
7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202 test $ac_status = 0; } && test -s "$nlist"; then
7203 # Try sorting and uniquifying the output.
7204 if sort "$nlist" | uniq > "$nlist"T; then
7205 mv -f "$nlist"T "$nlist"
7206 else
7207 rm -f "$nlist"T
7208 fi
7209
7210 # Make sure that we snagged all the symbols we need.
7211 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7212 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7213 cat <<_LT_EOF > conftest.$ac_ext
7214 #ifdef __cplusplus
7215 extern "C" {
7216 #endif
7217
7218 _LT_EOF
7219 # Now generate the symbol file.
7220 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7221
7222 cat <<_LT_EOF >> conftest.$ac_ext
7223
7224 /* The mapping between symbol names and symbols. */
7225 const struct {
7226 const char *name;
7227 void *address;
7228 }
7229 lt__PROGRAM__LTX_preloaded_symbols[] =
7230 {
7231 { "@PROGRAM@", (void *) 0 },
7232 _LT_EOF
7233 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7234 cat <<\_LT_EOF >> conftest.$ac_ext
7235 {0, (void *) 0}
7236 };
7237
7238 /* This works around a problem in FreeBSD linker */
7239 #ifdef FREEBSD_WORKAROUND
7240 static const void *lt_preloaded_setup() {
7241 return lt__PROGRAM__LTX_preloaded_symbols;
7242 }
7243 #endif
7244
7245 #ifdef __cplusplus
7246 }
7247 #endif
7248 _LT_EOF
7249 # Now try linking the two files.
7250 mv conftest.$ac_objext conftstm.$ac_objext
7251 lt_save_LIBS="$LIBS"
7252 lt_save_CFLAGS="$CFLAGS"
7253 LIBS="conftstm.$ac_objext"
7254 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7256 (eval $ac_link) 2>&5
7257 ac_status=$?
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7260 pipe_works=yes
7261 fi
7262 LIBS="$lt_save_LIBS"
7263 CFLAGS="$lt_save_CFLAGS"
7264 else
7265 echo "cannot find nm_test_func in $nlist" >&5
7266 fi
7267 else
7268 echo "cannot find nm_test_var in $nlist" >&5
7269 fi
7270 else
7271 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7272 fi
7273 else
7274 echo "$progname: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7276 fi
7277 rm -rf conftest* conftst*
7278
7279 # Do not use the global_symbol_pipe unless it works.
7280 if test "$pipe_works" = yes; then
7281 break
7282 else
7283 lt_cv_sys_global_symbol_pipe=
7284 fi
7285 done
7286
7287 fi
7288
7289 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7290 lt_cv_sys_global_symbol_to_cdecl=
7291 fi
7292 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7294 $as_echo "failed" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7297 $as_echo "ok" >&6; }
7298 fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321 # Check whether --enable-libtool-lock was given.
7322 if test "${enable_libtool_lock+set}" = set; then :
7323 enableval=$enable_libtool_lock;
7324 fi
7325
7326 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7327
7328 # Some flags need to be propagated to the compiler or linker for good
7329 # libtool support.
7330 case $host in
7331 ia64-*-hpux*)
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 case `/usr/bin/file conftest.$ac_objext` in
7340 *ELF-32*)
7341 HPUX_IA64_MODE="32"
7342 ;;
7343 *ELF-64*)
7344 HPUX_IA64_MODE="64"
7345 ;;
7346 esac
7347 fi
7348 rm -rf conftest*
7349 ;;
7350 *-*-irix6*)
7351 # Find out which ABI we are using.
7352 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7354 (eval $ac_compile) 2>&5
7355 ac_status=$?
7356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7357 test $ac_status = 0; }; then
7358 if test "$lt_cv_prog_gnu_ld" = yes; then
7359 case `/usr/bin/file conftest.$ac_objext` in
7360 *32-bit*)
7361 LD="${LD-ld} -melf32bsmip"
7362 ;;
7363 *N32*)
7364 LD="${LD-ld} -melf32bmipn32"
7365 ;;
7366 *64-bit*)
7367 LD="${LD-ld} -melf64bmip"
7368 ;;
7369 esac
7370 else
7371 case `/usr/bin/file conftest.$ac_objext` in
7372 *32-bit*)
7373 LD="${LD-ld} -32"
7374 ;;
7375 *N32*)
7376 LD="${LD-ld} -n32"
7377 ;;
7378 *64-bit*)
7379 LD="${LD-ld} -64"
7380 ;;
7381 esac
7382 fi
7383 fi
7384 rm -rf conftest*
7385 ;;
7386
7387 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7388 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7389 # Find out which ABI we are using.
7390 echo 'int i;' > conftest.$ac_ext
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392 (eval $ac_compile) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; }; then
7396 case `/usr/bin/file conftest.o` in
7397 *32-bit*)
7398 case $host in
7399 x86_64-*kfreebsd*-gnu)
7400 LD="${LD-ld} -m elf_i386_fbsd"
7401 ;;
7402 x86_64-*linux*)
7403 case `/usr/bin/file conftest.o` in
7404 *x86-64*)
7405 LD="${LD-ld} -m elf32_x86_64"
7406 ;;
7407 *)
7408 LD="${LD-ld} -m elf_i386"
7409 ;;
7410 esac
7411 ;;
7412 powerpc64le-*linux*)
7413 LD="${LD-ld} -m elf32lppclinux"
7414 ;;
7415 powerpc64-*linux*)
7416 LD="${LD-ld} -m elf32ppclinux"
7417 ;;
7418 s390x-*linux*)
7419 LD="${LD-ld} -m elf_s390"
7420 ;;
7421 sparc64-*linux*)
7422 LD="${LD-ld} -m elf32_sparc"
7423 ;;
7424 esac
7425 ;;
7426 *64-bit*)
7427 case $host in
7428 x86_64-*kfreebsd*-gnu)
7429 LD="${LD-ld} -m elf_x86_64_fbsd"
7430 ;;
7431 x86_64-*linux*)
7432 LD="${LD-ld} -m elf_x86_64"
7433 ;;
7434 powerpcle-*linux*)
7435 LD="${LD-ld} -m elf64lppc"
7436 ;;
7437 powerpc-*linux*)
7438 LD="${LD-ld} -m elf64ppc"
7439 ;;
7440 s390*-*linux*|s390*-*tpf*)
7441 LD="${LD-ld} -m elf64_s390"
7442 ;;
7443 sparc*-*linux*)
7444 LD="${LD-ld} -m elf64_sparc"
7445 ;;
7446 esac
7447 ;;
7448 esac
7449 fi
7450 rm -rf conftest*
7451 ;;
7452
7453 *-*-sco3.2v5*)
7454 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7455 SAVE_CFLAGS="$CFLAGS"
7456 CFLAGS="$CFLAGS -belf"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7458 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7459 if ${lt_cv_cc_needs_belf+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 ac_ext=c
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470
7471 int
7472 main ()
7473 {
7474
7475 ;
7476 return 0;
7477 }
7478 _ACEOF
7479 if ac_fn_c_try_link "$LINENO"; then :
7480 lt_cv_cc_needs_belf=yes
7481 else
7482 lt_cv_cc_needs_belf=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
7486 ac_ext=c
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7491
7492 fi
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7494 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7495 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7496 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7497 CFLAGS="$SAVE_CFLAGS"
7498 fi
7499 ;;
7500 sparc*-*solaris*)
7501 # Find out which ABI we are using.
7502 echo 'int i;' > conftest.$ac_ext
7503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7504 (eval $ac_compile) 2>&5
7505 ac_status=$?
7506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; }; then
7508 case `/usr/bin/file conftest.o` in
7509 *64-bit*)
7510 case $lt_cv_prog_gnu_ld in
7511 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7512 *)
7513 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7514 LD="${LD-ld} -64"
7515 fi
7516 ;;
7517 esac
7518 ;;
7519 esac
7520 fi
7521 rm -rf conftest*
7522 ;;
7523 esac
7524
7525 need_locks="$enable_libtool_lock"
7526
7527
7528 case $host_os in
7529 rhapsody* | darwin*)
7530 if test -n "$ac_tool_prefix"; then
7531 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7532 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$DSYMUTIL"; then
7539 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7559 if test -n "$DSYMUTIL"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7561 $as_echo "$DSYMUTIL" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 fi
7569 if test -z "$ac_cv_prog_DSYMUTIL"; then
7570 ac_ct_DSYMUTIL=$DSYMUTIL
7571 # Extract the first word of "dsymutil", so it can be a program name with args.
7572 set dummy dsymutil; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 if test -n "$ac_ct_DSYMUTIL"; then
7579 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7599 if test -n "$ac_ct_DSYMUTIL"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7601 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607 if test "x$ac_ct_DSYMUTIL" = x; then
7608 DSYMUTIL=":"
7609 else
7610 case $cross_compiling:$ac_tool_warned in
7611 yes:)
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614 ac_tool_warned=yes ;;
7615 esac
7616 DSYMUTIL=$ac_ct_DSYMUTIL
7617 fi
7618 else
7619 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7620 fi
7621
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_NMEDIT+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 if test -n "$NMEDIT"; then
7631 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 NMEDIT=$ac_cv_prog_NMEDIT
7651 if test -n "$NMEDIT"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7653 $as_echo "$NMEDIT" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659
7660 fi
7661 if test -z "$ac_cv_prog_NMEDIT"; then
7662 ac_ct_NMEDIT=$NMEDIT
7663 # Extract the first word of "nmedit", so it can be a program name with args.
7664 set dummy nmedit; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$ac_ct_NMEDIT"; then
7671 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7691 if test -n "$ac_ct_NMEDIT"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7693 $as_echo "$ac_ct_NMEDIT" >&6; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699 if test "x$ac_ct_NMEDIT" = x; then
7700 NMEDIT=":"
7701 else
7702 case $cross_compiling:$ac_tool_warned in
7703 yes:)
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7707 esac
7708 NMEDIT=$ac_ct_NMEDIT
7709 fi
7710 else
7711 NMEDIT="$ac_cv_prog_NMEDIT"
7712 fi
7713
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 if test -n "$LIPO"; then
7723 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo"
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 LIPO=$ac_cv_prog_LIPO
7743 if test -n "$LIPO"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7745 $as_echo "$LIPO" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752 fi
7753 if test -z "$ac_cv_prog_LIPO"; then
7754 ac_ct_LIPO=$LIPO
7755 # Extract the first word of "lipo", so it can be a program name with args.
7756 set dummy lipo; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$ac_ct_LIPO"; then
7763 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_ac_ct_LIPO="lipo"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7775 fi
7776 done
7777 done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7783 if test -n "$ac_ct_LIPO"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7785 $as_echo "$ac_ct_LIPO" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791 if test "x$ac_ct_LIPO" = x; then
7792 LIPO=":"
7793 else
7794 case $cross_compiling:$ac_tool_warned in
7795 yes:)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7799 esac
7800 LIPO=$ac_ct_LIPO
7801 fi
7802 else
7803 LIPO="$ac_cv_prog_LIPO"
7804 fi
7805
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 if test -n "$OTOOL"; then
7815 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 OTOOL=$ac_cv_prog_OTOOL
7835 if test -n "$OTOOL"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7837 $as_echo "$OTOOL" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843
7844 fi
7845 if test -z "$ac_cv_prog_OTOOL"; then
7846 ac_ct_OTOOL=$OTOOL
7847 # Extract the first word of "otool", so it can be a program name with args.
7848 set dummy otool; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$ac_ct_OTOOL"; then
7855 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_ac_ct_OTOOL="otool"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868 done
7869 done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7875 if test -n "$ac_ct_OTOOL"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7877 $as_echo "$ac_ct_OTOOL" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883 if test "x$ac_ct_OTOOL" = x; then
7884 OTOOL=":"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887 yes:)
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892 OTOOL=$ac_ct_OTOOL
7893 fi
7894 else
7895 OTOOL="$ac_cv_prog_OTOOL"
7896 fi
7897
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$OTOOL64"; then
7907 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64"
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 OTOOL64=$ac_cv_prog_OTOOL64
7927 if test -n "$OTOOL64"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7929 $as_echo "$OTOOL64" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936 fi
7937 if test -z "$ac_cv_prog_OTOOL64"; then
7938 ac_ct_OTOOL64=$OTOOL64
7939 # Extract the first word of "otool64", so it can be a program name with args.
7940 set dummy otool64; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 if test -n "$ac_ct_OTOOL64"; then
7947 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_ac_ct_OTOOL64="otool64"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960 done
7961 done
7962 IFS=$as_save_IFS
7963
7964 fi
7965 fi
7966 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7967 if test -n "$ac_ct_OTOOL64"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7969 $as_echo "$ac_ct_OTOOL64" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975 if test "x$ac_ct_OTOOL64" = x; then
7976 OTOOL64=":"
7977 else
7978 case $cross_compiling:$ac_tool_warned in
7979 yes:)
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7983 esac
7984 OTOOL64=$ac_ct_OTOOL64
7985 fi
7986 else
7987 OTOOL64="$ac_cv_prog_OTOOL64"
7988 fi
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8017 $as_echo_n "checking for -single_module linker flag... " >&6; }
8018 if ${lt_cv_apple_cc_single_mod+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 lt_cv_apple_cc_single_mod=no
8022 if test -z "${LT_MULTI_MODULE}"; then
8023 # By default we will add the -single_module flag. You can override
8024 # by either setting the environment variable LT_MULTI_MODULE
8025 # non-empty at configure time, or by adding -multi_module to the
8026 # link flags.
8027 rm -rf libconftest.dylib*
8028 echo "int foo(void){return 1;}" > conftest.c
8029 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8030 -dynamiclib -Wl,-single_module conftest.c" >&5
8031 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8032 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8033 _lt_result=$?
8034 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8035 lt_cv_apple_cc_single_mod=yes
8036 else
8037 cat conftest.err >&5
8038 fi
8039 rm -rf libconftest.dylib*
8040 rm -f conftest.*
8041 fi
8042 fi
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8044 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8046 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8047 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 lt_cv_ld_exported_symbols_list=no
8051 save_LDFLAGS=$LDFLAGS
8052 echo "_main" > conftest.sym
8053 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8056
8057 int
8058 main ()
8059 {
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_link "$LINENO"; then :
8066 lt_cv_ld_exported_symbols_list=yes
8067 else
8068 lt_cv_ld_exported_symbols_list=no
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 LDFLAGS="$save_LDFLAGS"
8073
8074 fi
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8076 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8078 $as_echo_n "checking for -force_load linker flag... " >&6; }
8079 if ${lt_cv_ld_force_load+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 lt_cv_ld_force_load=no
8083 cat > conftest.c << _LT_EOF
8084 int forced_loaded() { return 2;}
8085 _LT_EOF
8086 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8087 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8088 echo "$AR cru libconftest.a conftest.o" >&5
8089 $AR cru libconftest.a conftest.o 2>&5
8090 cat > conftest.c << _LT_EOF
8091 int main() { return 0;}
8092 _LT_EOF
8093 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8094 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8095 _lt_result=$?
8096 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8097 lt_cv_ld_force_load=yes
8098 else
8099 cat conftest.err >&5
8100 fi
8101 rm -f conftest.err libconftest.a conftest conftest.c
8102 rm -rf conftest.dSYM
8103
8104 fi
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8106 $as_echo "$lt_cv_ld_force_load" >&6; }
8107 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8108 # build without first building modern cctools / linker.
8109 case $host_cpu-$host_os in
8110 *-rhapsody* | *-darwin1.[012])
8111 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8112 *-darwin1.*)
8113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8114 *-darwin*)
8115 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8116 # deployment target is forced to an earlier version.
8117 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8118 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8119 ;;
8120 10.[012][,.]*)
8121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8122 ;;
8123 *)
8124 ;;
8125 esac
8126 ;;
8127 esac
8128 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8129 _lt_dar_single_mod='$single_module'
8130 fi
8131 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8132 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8133 else
8134 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8135 fi
8136 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8137 _lt_dsymutil='~$DSYMUTIL $lib || :'
8138 else
8139 _lt_dsymutil=
8140 fi
8141 ;;
8142 esac
8143
8144 for ac_header in dlfcn.h
8145 do :
8146 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8147 "
8148 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8149 cat >>confdefs.h <<_ACEOF
8150 #define HAVE_DLFCN_H 1
8151 _ACEOF
8152
8153 fi
8154
8155 done
8156
8157
8158 ac_header_dirent=no
8159 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8160 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8162 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8163 if eval \${$as_ac_Header+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include <sys/types.h>
8169 #include <$ac_hdr>
8170
8171 int
8172 main ()
8173 {
8174 if ((DIR *) 0)
8175 return 0;
8176 ;
8177 return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"; then :
8181 eval "$as_ac_Header=yes"
8182 else
8183 eval "$as_ac_Header=no"
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 fi
8187 eval ac_res=\$$as_ac_Header
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8193 _ACEOF
8194
8195 ac_header_dirent=$ac_hdr; break
8196 fi
8197
8198 done
8199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8200 if test $ac_header_dirent = dirent.h; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8202 $as_echo_n "checking for library containing opendir... " >&6; }
8203 if ${ac_cv_search_opendir+:} false; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 ac_func_search_save_LIBS=$LIBS
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209
8210 /* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 char opendir ();
8217 int
8218 main ()
8219 {
8220 return opendir ();
8221 ;
8222 return 0;
8223 }
8224 _ACEOF
8225 for ac_lib in '' dir; do
8226 if test -z "$ac_lib"; then
8227 ac_res="none required"
8228 else
8229 ac_res=-l$ac_lib
8230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8231 fi
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_search_opendir=$ac_res
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext
8237 if ${ac_cv_search_opendir+:} false; then :
8238 break
8239 fi
8240 done
8241 if ${ac_cv_search_opendir+:} false; then :
8242
8243 else
8244 ac_cv_search_opendir=no
8245 fi
8246 rm conftest.$ac_ext
8247 LIBS=$ac_func_search_save_LIBS
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8250 $as_echo "$ac_cv_search_opendir" >&6; }
8251 ac_res=$ac_cv_search_opendir
8252 if test "$ac_res" != no; then :
8253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8254
8255 fi
8256
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8259 $as_echo_n "checking for library containing opendir... " >&6; }
8260 if ${ac_cv_search_opendir+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 ac_func_search_save_LIBS=$LIBS
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266
8267 /* Override any GCC internal prototype to avoid an error.
8268 Use char because int might match the return type of a GCC
8269 builtin and then its argument prototype would still apply. */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 char opendir ();
8274 int
8275 main ()
8276 {
8277 return opendir ();
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 for ac_lib in '' x; do
8283 if test -z "$ac_lib"; then
8284 ac_res="none required"
8285 else
8286 ac_res=-l$ac_lib
8287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8288 fi
8289 if ac_fn_c_try_link "$LINENO"; then :
8290 ac_cv_search_opendir=$ac_res
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext
8294 if ${ac_cv_search_opendir+:} false; then :
8295 break
8296 fi
8297 done
8298 if ${ac_cv_search_opendir+:} false; then :
8299
8300 else
8301 ac_cv_search_opendir=no
8302 fi
8303 rm conftest.$ac_ext
8304 LIBS=$ac_func_search_save_LIBS
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8307 $as_echo "$ac_cv_search_opendir" >&6; }
8308 ac_res=$ac_cv_search_opendir
8309 if test "$ac_res" != no; then :
8310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8311
8312 fi
8313
8314 fi
8315
8316
8317
8318
8319 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8320 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8321
8322 cat >>confdefs.h <<_ACEOF
8323 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8324 _ACEOF
8325
8326
8327 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8328
8329 fi
8330
8331
8332 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8333 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8334
8335 cat >>confdefs.h <<_ACEOF
8336 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8337 _ACEOF
8338
8339
8340 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8341
8342 else
8343 case " $LIBOBJS " in
8344 *" fileblocks.$ac_objext "* ) ;;
8345 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8346 ;;
8347 esac
8348
8349 fi
8350
8351
8352 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8353 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8354
8355 cat >>confdefs.h <<_ACEOF
8356 #define HAVE_STRUCT_STAT_ST_RDEV 1
8357 _ACEOF
8358
8359
8360 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8361
8362 fi
8363
8364
8365 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8366 #include <$ac_cv_struct_tm>
8367
8368 "
8369 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8370
8371 cat >>confdefs.h <<_ACEOF
8372 #define HAVE_STRUCT_TM_TM_ZONE 1
8373 _ACEOF
8374
8375
8376 fi
8377
8378 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8379
8380 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8381
8382 else
8383 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8384 "
8385 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8386 ac_have_decl=1
8387 else
8388 ac_have_decl=0
8389 fi
8390
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DECL_TZNAME $ac_have_decl
8393 _ACEOF
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8396 $as_echo_n "checking for tzname... " >&6; }
8397 if ${ac_cv_var_tzname+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 #include <time.h>
8403 #if !HAVE_DECL_TZNAME
8404 extern char *tzname[];
8405 #endif
8406
8407 int
8408 main ()
8409 {
8410 return tzname[0][0];
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416 ac_cv_var_tzname=yes
8417 else
8418 ac_cv_var_tzname=no
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8424 $as_echo "$ac_cv_var_tzname" >&6; }
8425 if test $ac_cv_var_tzname = yes; then
8426
8427 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8428
8429 fi
8430 fi
8431
8432
8433 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8434 #include <sys/types.h>
8435 #endif
8436 #include <sys/stat.h>
8437 "
8438 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8439
8440 cat >>confdefs.h <<_ACEOF
8441 #define HAVE_STRUCT_STAT_ST_DEV 1
8442 _ACEOF
8443
8444
8445 fi
8446 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8447 #include <sys/types.h>
8448 #endif
8449 #include <sys/stat.h>
8450 "
8451 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8452
8453 cat >>confdefs.h <<_ACEOF
8454 #define HAVE_STRUCT_STAT_ST_INO 1
8455 _ACEOF
8456
8457
8458 fi
8459 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8460 #include <sys/types.h>
8461 #endif
8462 #include <sys/stat.h>
8463 "
8464 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8465
8466 cat >>confdefs.h <<_ACEOF
8467 #define HAVE_STRUCT_STAT_ST_MODE 1
8468 _ACEOF
8469
8470
8471 fi
8472 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8473 #include <sys/types.h>
8474 #endif
8475 #include <sys/stat.h>
8476 "
8477 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8478
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_STRUCT_STAT_ST_NLINK 1
8481 _ACEOF
8482
8483
8484 fi
8485 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8486 #include <sys/types.h>
8487 #endif
8488 #include <sys/stat.h>
8489 "
8490 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8491
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_STRUCT_STAT_ST_UID 1
8494 _ACEOF
8495
8496
8497 fi
8498 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8499 #include <sys/types.h>
8500 #endif
8501 #include <sys/stat.h>
8502 "
8503 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8504
8505 cat >>confdefs.h <<_ACEOF
8506 #define HAVE_STRUCT_STAT_ST_GID 1
8507 _ACEOF
8508
8509
8510 fi
8511 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8512 #include <sys/types.h>
8513 #endif
8514 #include <sys/stat.h>
8515 "
8516 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8517
8518 cat >>confdefs.h <<_ACEOF
8519 #define HAVE_STRUCT_STAT_ST_RDEV 1
8520 _ACEOF
8521
8522
8523 fi
8524 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8525 #include <sys/types.h>
8526 #endif
8527 #include <sys/stat.h>
8528 "
8529 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8530
8531 cat >>confdefs.h <<_ACEOF
8532 #define HAVE_STRUCT_STAT_ST_SIZE 1
8533 _ACEOF
8534
8535
8536 fi
8537 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8538 #include <sys/types.h>
8539 #endif
8540 #include <sys/stat.h>
8541 "
8542 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8543
8544 cat >>confdefs.h <<_ACEOF
8545 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8546 _ACEOF
8547
8548
8549 fi
8550 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8551 #include <sys/types.h>
8552 #endif
8553 #include <sys/stat.h>
8554 "
8555 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8556
8557 cat >>confdefs.h <<_ACEOF
8558 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8559 _ACEOF
8560
8561
8562 fi
8563 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8564 #include <sys/types.h>
8565 #endif
8566 #include <sys/stat.h>
8567 "
8568 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8569
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_STRUCT_STAT_ST_ATIME 1
8572 _ACEOF
8573
8574
8575 fi
8576 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8577 #include <sys/types.h>
8578 #endif
8579 #include <sys/stat.h>
8580 "
8581 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8582
8583 cat >>confdefs.h <<_ACEOF
8584 #define HAVE_STRUCT_STAT_ST_MTIME 1
8585 _ACEOF
8586
8587
8588 fi
8589 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8590 #include <sys/types.h>
8591 #endif
8592 #include <sys/stat.h>
8593 "
8594 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8595
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_STRUCT_STAT_ST_CTIME 1
8598 _ACEOF
8599
8600
8601 fi
8602
8603
8604 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8605 if test "x$ac_cv_type___int128" = xyes; then :
8606
8607 cat >>confdefs.h <<_ACEOF
8608 #define HAVE___INT128 1
8609 _ACEOF
8610
8611
8612 fi
8613
8614 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8615 #include <sys/socket.h>
8616
8617 "
8618 if test "x$ac_cv_type_socklen_t" = xyes; then :
8619
8620 cat >>confdefs.h <<_ACEOF
8621 #define HAVE_SOCKLEN_T 1
8622 _ACEOF
8623
8624
8625 fi
8626
8627 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
8628 if test "x$ac_cv_type_long_long" = xyes; then :
8629
8630 cat >>confdefs.h <<_ACEOF
8631 #define HAVE_LONG_LONG 1
8632 _ACEOF
8633
8634
8635 fi
8636
8637
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
8639 $as_echo_n "checking for struct statfs... " >&6; }
8640 if ${sim_cv_struct_statfs+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645
8646 #include <sys/types.h>
8647 #ifdef HAVE_SYS_PARAM_H
8648 #include <sys/param.h>
8649 #endif
8650 #ifdef HAVE_SYS_MOUNT_H
8651 #include <sys/mount.h>
8652 #endif
8653 #ifdef HAVE_SYS_VFS_H
8654 #include <sys/vfs.h>
8655 #endif
8656 #ifdef HAVE_SYS_STATFS_H
8657 #include <sys/statfs.h>
8658 #endif
8659 int
8660 main ()
8661 {
8662
8663 struct statfs s;
8664
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_compile "$LINENO"; then :
8670 sim_cv_struct_statfs="yes"
8671 else
8672 sim_cv_struct_statfs="no"
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_struct_statfs" >&5
8677 $as_echo "$sim_cv_struct_statfs" >&6; }
8678 if test x"sim_cv_struct_statfs" = x"yes"; then :
8679
8680 $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
8681
8682
8683 fi
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
8686 $as_echo_n "checking if union semun defined... " >&6; }
8687 if ${sim_cv_has_union_semun+:} false; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692
8693 #include <sys/types.h>
8694 #include <sys/ipc.h>
8695 #include <sys/sem.h>
8696 int
8697 main ()
8698 {
8699
8700 union semun arg;
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 sim_cv_has_union_semun="yes"
8708 else
8709 sim_cv_has_union_semun="no"
8710 fi
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_has_union_semun" >&5
8714 $as_echo "$sim_cv_has_union_semun" >&6; }
8715 if test x"$sim_cv_has_union_semun" = x"yes"; then :
8716
8717 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
8718
8719
8720 fi
8721
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
8723 $as_echo_n "checking whether System V semaphores are supported... " >&6; }
8724 if ${sim_cv_sysv_sem+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729
8730 #include <sys/types.h>
8731 #include <sys/ipc.h>
8732 #include <sys/sem.h>
8733 #ifndef HAVE_UNION_SEMUN
8734 union semun {
8735 int val;
8736 struct semid_ds *buf;
8737 ushort *array;
8738 };
8739 #endif
8740 int
8741 main ()
8742 {
8743
8744 union semun arg;
8745 int id = semget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8746 if (id == -1)
8747 return 1;
8748 arg.val = 0; /* avoid implicit type cast to union */
8749 if (semctl(id, 0, IPC_RMID, arg) == -1)
8750 return 1;
8751
8752 ;
8753 return 0;
8754 }
8755 _ACEOF
8756 if ac_fn_c_try_compile "$LINENO"; then :
8757 sim_cv_sysv_sem="yes"
8758 else
8759 sim_cv_sysv_sem="no"
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_sem" >&5
8764 $as_echo "$sim_cv_sysv_sem" >&6; }
8765 if test x"$sim_cv_sysv_sem" = x"yes"; then :
8766
8767 $as_echo "#define HAVE_SYSV_SEM 1" >>confdefs.h
8768
8769
8770 fi
8771
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
8773 $as_echo_n "checking whether System V shared memory is supported... " >&6; }
8774 if ${sim_cv_sysv_shm+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779
8780 #include <sys/types.h>
8781 #include <sys/ipc.h>
8782 #include <sys/shm.h>
8783 int
8784 main ()
8785 {
8786
8787 int id = shmget(IPC_PRIVATE, 1, IPC_CREAT|0400);
8788 if (id == -1)
8789 return 1;
8790 if (shmctl(id, IPC_RMID, 0) == -1)
8791 return 1;
8792
8793 ;
8794 return 0;
8795 }
8796 _ACEOF
8797 if ac_fn_c_try_compile "$LINENO"; then :
8798 sim_cv_sysv_shm="yes"
8799 else
8800 sim_cv_sysv_shm="no"
8801 fi
8802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_sysv_shm" >&5
8805 $as_echo "$sim_cv_sysv_shm" >&6; }
8806 if test x"$sim_cv_sysv_shm" = x"yes"; then :
8807
8808 $as_echo "#define HAVE_SYSV_SHM 1" >>confdefs.h
8809
8810
8811 fi
8812
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
8814 $as_echo_n "checking for struct termios... " >&6; }
8815 if ${sim_cv_termios_struct+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820
8821 #include <sys/types.h>
8822 #include <sys/termios.h>
8823 int
8824 main ()
8825 {
8826
8827 static struct termios x;
8828 x.c_iflag = 0;
8829 x.c_oflag = 0;
8830 x.c_cflag = 0;
8831 x.c_lflag = 0;
8832 x.c_cc[NCCS] = 0;
8833
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 sim_cv_termios_struct="yes"
8840 else
8841 sim_cv_termios_struct="no"
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
8846 $as_echo "$sim_cv_termios_struct" >&6; }
8847 if test $sim_cv_termios_struct = yes; then
8848
8849 $as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
8850
8851 fi
8852
8853 if test "$sim_cv_termios_struct" = "yes"; then
8854 if ${sim_cv_termios_cline+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 fi
8857
8858 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
8859 #include <sys/types.h>
8860 #include <sys/termios.h>
8861
8862 "
8863 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
8864 sim_cv_termios_cline="yes"
8865 else
8866 sim_cv_termios_cline="no"
8867 fi
8868
8869 if test $sim_cv_termios_cline = yes; then
8870
8871 $as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
8872
8873 fi
8874 else
8875 sim_cv_termios_cline=no
8876 fi
8877
8878 if test "$sim_cv_termios_struct" != "yes"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
8880 $as_echo_n "checking for struct termio... " >&6; }
8881 if ${sim_cv_termio_struct+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886
8887 #include <sys/types.h>
8888 #include <sys/termio.h>
8889 int
8890 main ()
8891 {
8892
8893 static struct termio x;
8894 x.c_iflag = 0;
8895 x.c_oflag = 0;
8896 x.c_cflag = 0;
8897 x.c_lflag = 0;
8898 x.c_cc[NCC] = 0;
8899
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"; then :
8905 sim_cv_termio_struct="yes"
8906 else
8907 sim_cv_termio_struct="no"
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
8912 $as_echo "$sim_cv_termio_struct" >&6; }
8913 if test $sim_cv_termio_struct = yes; then
8914
8915 $as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
8916
8917 fi
8918 else
8919 sim_cv_termio_struct=no
8920 fi
8921
8922 if test "$sim_cv_termio_struct" = "yes"; then
8923 if ${sim_cv_termio_cline+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 fi
8926
8927 ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
8928 #include <sys/types.h>
8929 #include <sys/termio.h>
8930
8931 "
8932 if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
8933 sim_cv_termio_cline="yes"
8934 else
8935 sim_cv_termio_cline="no"
8936 fi
8937
8938 if test $sim_cv_termio_cline = yes; then
8939
8940 $as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
8941
8942 fi
8943 else
8944 sim_cv_termio_cline=no
8945 fi
8946
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8948 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8949 if ${ac_cv_type_getgroups+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 if test "$cross_compiling" = yes; then :
8953 ac_cv_type_getgroups=cross
8954 else
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 /* Thanks to Mike Rendell for this test. */
8958 $ac_includes_default
8959 #define NGID 256
8960 #undef MAX
8961 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8962
8963 int
8964 main ()
8965 {
8966 gid_t gidset[NGID];
8967 int i, n;
8968 union { gid_t gval; long int lval; } val;
8969
8970 val.lval = -1;
8971 for (i = 0; i < NGID; i++)
8972 gidset[i] = val.gval;
8973 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8974 gidset);
8975 /* Exit non-zero if getgroups seems to require an array of ints. This
8976 happens when gid_t is short int but getgroups modifies an array
8977 of ints. */
8978 return n > 0 && gidset[n] != val.gval;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_run "$LINENO"; then :
8982 ac_cv_type_getgroups=gid_t
8983 else
8984 ac_cv_type_getgroups=int
8985 fi
8986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8987 conftest.$ac_objext conftest.beam conftest.$ac_ext
8988 fi
8989
8990 if test $ac_cv_type_getgroups = cross; then
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 #include <unistd.h>
8994
8995 _ACEOF
8996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8997 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8998 ac_cv_type_getgroups=gid_t
8999 else
9000 ac_cv_type_getgroups=int
9001 fi
9002 rm -f conftest*
9003
9004 fi
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
9007 $as_echo "$ac_cv_type_getgroups" >&6; }
9008
9009 cat >>confdefs.h <<_ACEOF
9010 #define GETGROUPS_T $ac_cv_type_getgroups
9011 _ACEOF
9012
9013
9014 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9015 if test "x$ac_cv_type_mode_t" = xyes; then :
9016
9017 else
9018
9019 cat >>confdefs.h <<_ACEOF
9020 #define mode_t int
9021 _ACEOF
9022
9023 fi
9024
9025 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9026 if test "x$ac_cv_type_off_t" = xyes; then :
9027
9028 else
9029
9030 cat >>confdefs.h <<_ACEOF
9031 #define off_t long int
9032 _ACEOF
9033
9034 fi
9035
9036 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9037 if test "x$ac_cv_type_pid_t" = xyes; then :
9038
9039 else
9040
9041 cat >>confdefs.h <<_ACEOF
9042 #define pid_t int
9043 _ACEOF
9044
9045 fi
9046
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9048 $as_echo_n "checking return type of signal handlers... " >&6; }
9049 if ${ac_cv_type_signal+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 #include <sys/types.h>
9055 #include <signal.h>
9056
9057 int
9058 main ()
9059 {
9060 return *(signal (0, 0)) (0) == 1;
9061 ;
9062 return 0;
9063 }
9064 _ACEOF
9065 if ac_fn_c_try_compile "$LINENO"; then :
9066 ac_cv_type_signal=int
9067 else
9068 ac_cv_type_signal=void
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9073 $as_echo "$ac_cv_type_signal" >&6; }
9074
9075 cat >>confdefs.h <<_ACEOF
9076 #define RETSIGTYPE $ac_cv_type_signal
9077 _ACEOF
9078
9079
9080 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9081 if test "x$ac_cv_type_size_t" = xyes; then :
9082
9083 else
9084
9085 cat >>confdefs.h <<_ACEOF
9086 #define size_t unsigned int
9087 _ACEOF
9088
9089 fi
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9092 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9093 if ${ac_cv_type_uid_t+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 #include <sys/types.h>
9099
9100 _ACEOF
9101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9102 $EGREP "uid_t" >/dev/null 2>&1; then :
9103 ac_cv_type_uid_t=yes
9104 else
9105 ac_cv_type_uid_t=no
9106 fi
9107 rm -f conftest*
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9111 $as_echo "$ac_cv_type_uid_t" >&6; }
9112 if test $ac_cv_type_uid_t = no; then
9113
9114 $as_echo "#define uid_t int" >>confdefs.h
9115
9116
9117 $as_echo "#define gid_t int" >>confdefs.h
9118
9119 fi
9120
9121
9122
9123
9124
9125
9126 # Set options
9127
9128
9129
9130 enable_dlopen=no
9131
9132
9133 enable_win32_dll=no
9134
9135
9136 # Check whether --enable-shared was given.
9137 if test "${enable_shared+set}" = set; then :
9138 enableval=$enable_shared; p=${PACKAGE-default}
9139 case $enableval in
9140 yes) enable_shared=yes ;;
9141 no) enable_shared=no ;;
9142 *)
9143 enable_shared=no
9144 # Look at the argument we got. We use all the common list separators.
9145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9146 for pkg in $enableval; do
9147 IFS="$lt_save_ifs"
9148 if test "X$pkg" = "X$p"; then
9149 enable_shared=yes
9150 fi
9151 done
9152 IFS="$lt_save_ifs"
9153 ;;
9154 esac
9155 else
9156 enable_shared=yes
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167 # Check whether --enable-static was given.
9168 if test "${enable_static+set}" = set; then :
9169 enableval=$enable_static; p=${PACKAGE-default}
9170 case $enableval in
9171 yes) enable_static=yes ;;
9172 no) enable_static=no ;;
9173 *)
9174 enable_static=no
9175 # Look at the argument we got. We use all the common list separators.
9176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9177 for pkg in $enableval; do
9178 IFS="$lt_save_ifs"
9179 if test "X$pkg" = "X$p"; then
9180 enable_static=yes
9181 fi
9182 done
9183 IFS="$lt_save_ifs"
9184 ;;
9185 esac
9186 else
9187 enable_static=yes
9188 fi
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199 # Check whether --with-pic was given.
9200 if test "${with_pic+set}" = set; then :
9201 withval=$with_pic; pic_mode="$withval"
9202 else
9203 pic_mode=default
9204 fi
9205
9206
9207 test -z "$pic_mode" && pic_mode=default
9208
9209
9210
9211
9212
9213
9214
9215 # Check whether --enable-fast-install was given.
9216 if test "${enable_fast_install+set}" = set; then :
9217 enableval=$enable_fast_install; p=${PACKAGE-default}
9218 case $enableval in
9219 yes) enable_fast_install=yes ;;
9220 no) enable_fast_install=no ;;
9221 *)
9222 enable_fast_install=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_fast_install=yes
9229 fi
9230 done
9231 IFS="$lt_save_ifs"
9232 ;;
9233 esac
9234 else
9235 enable_fast_install=yes
9236 fi
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248 # This can be used to rebuild libtool when needed
9249 LIBTOOL_DEPS="$ltmain"
9250
9251 # Always use our own libtool.
9252 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279 test -z "$LN_S" && LN_S="ln -s"
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294 if test -n "${ZSH_VERSION+set}" ; then
9295 setopt NO_GLOB_SUBST
9296 fi
9297
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9299 $as_echo_n "checking for objdir... " >&6; }
9300 if ${lt_cv_objdir+:} false; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 rm -f .libs 2>/dev/null
9304 mkdir .libs 2>/dev/null
9305 if test -d .libs; then
9306 lt_cv_objdir=.libs
9307 else
9308 # MS-DOS does not allow filenames that begin with a dot.
9309 lt_cv_objdir=_libs
9310 fi
9311 rmdir .libs 2>/dev/null
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9314 $as_echo "$lt_cv_objdir" >&6; }
9315 objdir=$lt_cv_objdir
9316
9317
9318
9319
9320
9321 cat >>confdefs.h <<_ACEOF
9322 #define LT_OBJDIR "$lt_cv_objdir/"
9323 _ACEOF
9324
9325
9326
9327
9328 case $host_os in
9329 aix3*)
9330 # AIX sometimes has problems with the GCC collect2 program. For some
9331 # reason, if we set the COLLECT_NAMES environment variable, the problems
9332 # vanish in a puff of smoke.
9333 if test "X${COLLECT_NAMES+set}" != Xset; then
9334 COLLECT_NAMES=
9335 export COLLECT_NAMES
9336 fi
9337 ;;
9338 esac
9339
9340 # Global variables:
9341 ofile=libtool
9342 can_build_shared=yes
9343
9344 # All known linkers require a `.a' archive for static linking (except MSVC,
9345 # which needs '.lib').
9346 libext=a
9347
9348 with_gnu_ld="$lt_cv_prog_gnu_ld"
9349
9350 old_CC="$CC"
9351 old_CFLAGS="$CFLAGS"
9352
9353 # Set sane defaults for various variables
9354 test -z "$CC" && CC=cc
9355 test -z "$LTCC" && LTCC=$CC
9356 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9357 test -z "$LD" && LD=ld
9358 test -z "$ac_objext" && ac_objext=o
9359
9360 for cc_temp in $compiler""; do
9361 case $cc_temp in
9362 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9363 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9364 \-*) ;;
9365 *) break;;
9366 esac
9367 done
9368 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9369
9370
9371 # Only perform the check for file, if the check method requires it
9372 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9373 case $deplibs_check_method in
9374 file_magic*)
9375 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9377 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9378 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 case $MAGIC_CMD in
9382 [\\/*] | ?:[\\/]*)
9383 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9384 ;;
9385 *)
9386 lt_save_MAGIC_CMD="$MAGIC_CMD"
9387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9388 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9389 for ac_dir in $ac_dummy; do
9390 IFS="$lt_save_ifs"
9391 test -z "$ac_dir" && ac_dir=.
9392 if test -f $ac_dir/${ac_tool_prefix}file; then
9393 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9394 if test -n "$file_magic_test_file"; then
9395 case $deplibs_check_method in
9396 "file_magic "*)
9397 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9399 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9400 $EGREP "$file_magic_regex" > /dev/null; then
9401 :
9402 else
9403 cat <<_LT_EOF 1>&2
9404
9405 *** Warning: the command libtool uses to detect shared libraries,
9406 *** $file_magic_cmd, produces output that libtool cannot recognize.
9407 *** The result is that libtool may fail to recognize shared libraries
9408 *** as such. This will affect the creation of libtool libraries that
9409 *** depend on shared libraries, but programs linked with such libtool
9410 *** libraries will work regardless of this problem. Nevertheless, you
9411 *** may want to report the problem to your system manager and/or to
9412 *** bug-libtool@gnu.org
9413
9414 _LT_EOF
9415 fi ;;
9416 esac
9417 fi
9418 break
9419 fi
9420 done
9421 IFS="$lt_save_ifs"
9422 MAGIC_CMD="$lt_save_MAGIC_CMD"
9423 ;;
9424 esac
9425 fi
9426
9427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9428 if test -n "$MAGIC_CMD"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9430 $as_echo "$MAGIC_CMD" >&6; }
9431 else
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9434 fi
9435
9436
9437
9438
9439
9440 if test -z "$lt_cv_path_MAGIC_CMD"; then
9441 if test -n "$ac_tool_prefix"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9443 $as_echo_n "checking for file... " >&6; }
9444 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 case $MAGIC_CMD in
9448 [\\/*] | ?:[\\/]*)
9449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9450 ;;
9451 *)
9452 lt_save_MAGIC_CMD="$MAGIC_CMD"
9453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9455 for ac_dir in $ac_dummy; do
9456 IFS="$lt_save_ifs"
9457 test -z "$ac_dir" && ac_dir=.
9458 if test -f $ac_dir/file; then
9459 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9460 if test -n "$file_magic_test_file"; then
9461 case $deplibs_check_method in
9462 "file_magic "*)
9463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9466 $EGREP "$file_magic_regex" > /dev/null; then
9467 :
9468 else
9469 cat <<_LT_EOF 1>&2
9470
9471 *** Warning: the command libtool uses to detect shared libraries,
9472 *** $file_magic_cmd, produces output that libtool cannot recognize.
9473 *** The result is that libtool may fail to recognize shared libraries
9474 *** as such. This will affect the creation of libtool libraries that
9475 *** depend on shared libraries, but programs linked with such libtool
9476 *** libraries will work regardless of this problem. Nevertheless, you
9477 *** may want to report the problem to your system manager and/or to
9478 *** bug-libtool@gnu.org
9479
9480 _LT_EOF
9481 fi ;;
9482 esac
9483 fi
9484 break
9485 fi
9486 done
9487 IFS="$lt_save_ifs"
9488 MAGIC_CMD="$lt_save_MAGIC_CMD"
9489 ;;
9490 esac
9491 fi
9492
9493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9494 if test -n "$MAGIC_CMD"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9496 $as_echo "$MAGIC_CMD" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 fi
9501
9502
9503 else
9504 MAGIC_CMD=:
9505 fi
9506 fi
9507
9508 fi
9509 ;;
9510 esac
9511
9512 # Use C for the default configuration in the libtool script
9513
9514 lt_save_CC="$CC"
9515 ac_ext=c
9516 ac_cpp='$CPP $CPPFLAGS'
9517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9520
9521
9522 # Source file extension for C test sources.
9523 ac_ext=c
9524
9525 # Object file extension for compiled C test sources.
9526 objext=o
9527 objext=$objext
9528
9529 # Code to be used in simple compile tests
9530 lt_simple_compile_test_code="int some_variable = 0;"
9531
9532 # Code to be used in simple link tests
9533 lt_simple_link_test_code='int main(){return(0);}'
9534
9535
9536
9537
9538
9539
9540
9541 # If no C compiler was specified, use CC.
9542 LTCC=${LTCC-"$CC"}
9543
9544 # If no C compiler flags were specified, use CFLAGS.
9545 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9546
9547 # Allow CC to be a program name with arguments.
9548 compiler=$CC
9549
9550 # Save the default compiler, since it gets overwritten when the other
9551 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9552 compiler_DEFAULT=$CC
9553
9554 # save warnings/boilerplate of simple test code
9555 ac_outfile=conftest.$ac_objext
9556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9558 _lt_compiler_boilerplate=`cat conftest.err`
9559 $RM conftest*
9560
9561 ac_outfile=conftest.$ac_objext
9562 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9563 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9564 _lt_linker_boilerplate=`cat conftest.err`
9565 $RM -r conftest*
9566
9567
9568 ## CAVEAT EMPTOR:
9569 ## There is no encapsulation within the following macros, do not change
9570 ## the running order or otherwise move them around unless you know exactly
9571 ## what you are doing...
9572 if test -n "$compiler"; then
9573
9574 lt_prog_compiler_no_builtin_flag=
9575
9576 if test "$GCC" = yes; then
9577 case $cc_basename in
9578 nvcc*)
9579 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9580 *)
9581 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9582 esac
9583
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9585 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9586 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 lt_cv_prog_compiler_rtti_exceptions=no
9590 ac_outfile=conftest.$ac_objext
9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592 lt_compiler_flag="-fno-rtti -fno-exceptions"
9593 # Insert the option either (1) after the last *FLAGS variable, or
9594 # (2) before a word containing "conftest.", or (3) at the end.
9595 # Note that $ac_compile itself does not contain backslashes and begins
9596 # with a dollar sign (not a hyphen), so the echo should work correctly.
9597 # The option is referenced via a variable to avoid confusing sed.
9598 lt_compile=`echo "$ac_compile" | $SED \
9599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9601 -e 's:$: $lt_compiler_flag:'`
9602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9603 (eval "$lt_compile" 2>conftest.err)
9604 ac_status=$?
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 if (exit $ac_status) && test -s "$ac_outfile"; then
9608 # The compiler can only warn and ignore the option if not recognized
9609 # So say no if there are warnings other than the usual output.
9610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9613 lt_cv_prog_compiler_rtti_exceptions=yes
9614 fi
9615 fi
9616 $RM conftest*
9617
9618 fi
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9620 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9621
9622 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9623 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9624 else
9625 :
9626 fi
9627
9628 fi
9629
9630
9631
9632
9633
9634
9635 lt_prog_compiler_wl=
9636 lt_prog_compiler_pic=
9637 lt_prog_compiler_static=
9638
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9641
9642 if test "$GCC" = yes; then
9643 lt_prog_compiler_wl='-Wl,'
9644 lt_prog_compiler_static='-static'
9645
9646 case $host_os in
9647 aix*)
9648 # All AIX code is PIC.
9649 if test "$host_cpu" = ia64; then
9650 # AIX 5 now supports IA64 processor
9651 lt_prog_compiler_static='-Bstatic'
9652 fi
9653 lt_prog_compiler_pic='-fPIC'
9654 ;;
9655
9656 amigaos*)
9657 case $host_cpu in
9658 powerpc)
9659 # see comment about AmigaOS4 .so support
9660 lt_prog_compiler_pic='-fPIC'
9661 ;;
9662 m68k)
9663 # FIXME: we need at least 68020 code to build shared libraries, but
9664 # adding the `-m68020' flag to GCC prevents building anything better,
9665 # like `-m68040'.
9666 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9667 ;;
9668 esac
9669 ;;
9670
9671 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9672 # PIC is the default for these OSes.
9673 ;;
9674
9675 mingw* | cygwin* | pw32* | os2* | cegcc*)
9676 # This hack is so that the source file can tell whether it is being
9677 # built for inclusion in a dll (and should export symbols for example).
9678 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9679 # (--disable-auto-import) libraries
9680 lt_prog_compiler_pic='-DDLL_EXPORT'
9681 ;;
9682
9683 darwin* | rhapsody*)
9684 # PIC is the default on this platform
9685 # Common symbols not allowed in MH_DYLIB files
9686 lt_prog_compiler_pic='-fno-common'
9687 ;;
9688
9689 haiku*)
9690 # PIC is the default for Haiku.
9691 # The "-static" flag exists, but is broken.
9692 lt_prog_compiler_static=
9693 ;;
9694
9695 hpux*)
9696 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9697 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9698 # sets the default TLS model and affects inlining.
9699 case $host_cpu in
9700 hppa*64*)
9701 # +Z the default
9702 ;;
9703 *)
9704 lt_prog_compiler_pic='-fPIC'
9705 ;;
9706 esac
9707 ;;
9708
9709 interix[3-9]*)
9710 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9711 # Instead, we relocate shared libraries at runtime.
9712 ;;
9713
9714 msdosdjgpp*)
9715 # Just because we use GCC doesn't mean we suddenly get shared libraries
9716 # on systems that don't support them.
9717 lt_prog_compiler_can_build_shared=no
9718 enable_shared=no
9719 ;;
9720
9721 *nto* | *qnx*)
9722 # QNX uses GNU C++, but need to define -shared option too, otherwise
9723 # it will coredump.
9724 lt_prog_compiler_pic='-fPIC -shared'
9725 ;;
9726
9727 sysv4*MP*)
9728 if test -d /usr/nec; then
9729 lt_prog_compiler_pic=-Kconform_pic
9730 fi
9731 ;;
9732
9733 *)
9734 lt_prog_compiler_pic='-fPIC'
9735 ;;
9736 esac
9737
9738 case $cc_basename in
9739 nvcc*) # Cuda Compiler Driver 2.2
9740 lt_prog_compiler_wl='-Xlinker '
9741 lt_prog_compiler_pic='-Xcompiler -fPIC'
9742 ;;
9743 esac
9744 else
9745 # PORTME Check for flag to pass linker flags through the system compiler.
9746 case $host_os in
9747 aix*)
9748 lt_prog_compiler_wl='-Wl,'
9749 if test "$host_cpu" = ia64; then
9750 # AIX 5 now supports IA64 processor
9751 lt_prog_compiler_static='-Bstatic'
9752 else
9753 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9754 fi
9755 ;;
9756
9757 mingw* | cygwin* | pw32* | os2* | cegcc*)
9758 # This hack is so that the source file can tell whether it is being
9759 # built for inclusion in a dll (and should export symbols for example).
9760 lt_prog_compiler_pic='-DDLL_EXPORT'
9761 ;;
9762
9763 hpux9* | hpux10* | hpux11*)
9764 lt_prog_compiler_wl='-Wl,'
9765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9766 # not for PA HP-UX.
9767 case $host_cpu in
9768 hppa*64*|ia64*)
9769 # +Z the default
9770 ;;
9771 *)
9772 lt_prog_compiler_pic='+Z'
9773 ;;
9774 esac
9775 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9776 lt_prog_compiler_static='${wl}-a ${wl}archive'
9777 ;;
9778
9779 irix5* | irix6* | nonstopux*)
9780 lt_prog_compiler_wl='-Wl,'
9781 # PIC (with -KPIC) is the default.
9782 lt_prog_compiler_static='-non_shared'
9783 ;;
9784
9785 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9786 case $cc_basename in
9787 # old Intel for x86_64 which still supported -KPIC.
9788 ecc*)
9789 lt_prog_compiler_wl='-Wl,'
9790 lt_prog_compiler_pic='-KPIC'
9791 lt_prog_compiler_static='-static'
9792 ;;
9793 # icc used to be incompatible with GCC.
9794 # ICC 10 doesn't accept -KPIC any more.
9795 icc* | ifort*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-fPIC'
9798 lt_prog_compiler_static='-static'
9799 ;;
9800 # Lahey Fortran 8.1.
9801 lf95*)
9802 lt_prog_compiler_wl='-Wl,'
9803 lt_prog_compiler_pic='--shared'
9804 lt_prog_compiler_static='--static'
9805 ;;
9806 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9807 # Portland Group compilers (*not* the Pentium gcc compiler,
9808 # which looks to be a dead project)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-fpic'
9811 lt_prog_compiler_static='-Bstatic'
9812 ;;
9813 ccc*)
9814 lt_prog_compiler_wl='-Wl,'
9815 # All Alpha code is PIC.
9816 lt_prog_compiler_static='-non_shared'
9817 ;;
9818 xl* | bgxl* | bgf* | mpixl*)
9819 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9820 lt_prog_compiler_wl='-Wl,'
9821 lt_prog_compiler_pic='-qpic'
9822 lt_prog_compiler_static='-qstaticlink'
9823 ;;
9824 *)
9825 case `$CC -V 2>&1 | sed 5q` in
9826 *Sun\ F* | *Sun*Fortran*)
9827 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9828 lt_prog_compiler_pic='-KPIC'
9829 lt_prog_compiler_static='-Bstatic'
9830 lt_prog_compiler_wl=''
9831 ;;
9832 *Sun\ C*)
9833 # Sun C 5.9
9834 lt_prog_compiler_pic='-KPIC'
9835 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_wl='-Wl,'
9837 ;;
9838 esac
9839 ;;
9840 esac
9841 ;;
9842
9843 newsos6)
9844 lt_prog_compiler_pic='-KPIC'
9845 lt_prog_compiler_static='-Bstatic'
9846 ;;
9847
9848 *nto* | *qnx*)
9849 # QNX uses GNU C++, but need to define -shared option too, otherwise
9850 # it will coredump.
9851 lt_prog_compiler_pic='-fPIC -shared'
9852 ;;
9853
9854 osf3* | osf4* | osf5*)
9855 lt_prog_compiler_wl='-Wl,'
9856 # All OSF/1 code is PIC.
9857 lt_prog_compiler_static='-non_shared'
9858 ;;
9859
9860 rdos*)
9861 lt_prog_compiler_static='-non_shared'
9862 ;;
9863
9864 solaris*)
9865 lt_prog_compiler_pic='-KPIC'
9866 lt_prog_compiler_static='-Bstatic'
9867 case $cc_basename in
9868 f77* | f90* | f95*)
9869 lt_prog_compiler_wl='-Qoption ld ';;
9870 *)
9871 lt_prog_compiler_wl='-Wl,';;
9872 esac
9873 ;;
9874
9875 sunos4*)
9876 lt_prog_compiler_wl='-Qoption ld '
9877 lt_prog_compiler_pic='-PIC'
9878 lt_prog_compiler_static='-Bstatic'
9879 ;;
9880
9881 sysv4 | sysv4.2uw2* | sysv4.3*)
9882 lt_prog_compiler_wl='-Wl,'
9883 lt_prog_compiler_pic='-KPIC'
9884 lt_prog_compiler_static='-Bstatic'
9885 ;;
9886
9887 sysv4*MP*)
9888 if test -d /usr/nec ;then
9889 lt_prog_compiler_pic='-Kconform_pic'
9890 lt_prog_compiler_static='-Bstatic'
9891 fi
9892 ;;
9893
9894 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9895 lt_prog_compiler_wl='-Wl,'
9896 lt_prog_compiler_pic='-KPIC'
9897 lt_prog_compiler_static='-Bstatic'
9898 ;;
9899
9900 unicos*)
9901 lt_prog_compiler_wl='-Wl,'
9902 lt_prog_compiler_can_build_shared=no
9903 ;;
9904
9905 uts4*)
9906 lt_prog_compiler_pic='-pic'
9907 lt_prog_compiler_static='-Bstatic'
9908 ;;
9909
9910 *)
9911 lt_prog_compiler_can_build_shared=no
9912 ;;
9913 esac
9914 fi
9915
9916 case $host_os in
9917 # For platforms which do not support PIC, -DPIC is meaningless:
9918 *djgpp*)
9919 lt_prog_compiler_pic=
9920 ;;
9921 *)
9922 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9923 ;;
9924 esac
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9926 $as_echo "$lt_prog_compiler_pic" >&6; }
9927
9928
9929
9930
9931
9932
9933 #
9934 # Check to make sure the PIC flag actually works.
9935 #
9936 if test -n "$lt_prog_compiler_pic"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9938 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9939 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 lt_cv_prog_compiler_pic_works=no
9943 ac_outfile=conftest.$ac_objext
9944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9945 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9946 # Insert the option either (1) after the last *FLAGS variable, or
9947 # (2) before a word containing "conftest.", or (3) at the end.
9948 # Note that $ac_compile itself does not contain backslashes and begins
9949 # with a dollar sign (not a hyphen), so the echo should work correctly.
9950 # The option is referenced via a variable to avoid confusing sed.
9951 lt_compile=`echo "$ac_compile" | $SED \
9952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9954 -e 's:$: $lt_compiler_flag:'`
9955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9956 (eval "$lt_compile" 2>conftest.err)
9957 ac_status=$?
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 if (exit $ac_status) && test -s "$ac_outfile"; then
9961 # The compiler can only warn and ignore the option if not recognized
9962 # So say no if there are warnings other than the usual output.
9963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9966 lt_cv_prog_compiler_pic_works=yes
9967 fi
9968 fi
9969 $RM conftest*
9970
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9973 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9974
9975 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9976 case $lt_prog_compiler_pic in
9977 "" | " "*) ;;
9978 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9979 esac
9980 else
9981 lt_prog_compiler_pic=
9982 lt_prog_compiler_can_build_shared=no
9983 fi
9984
9985 fi
9986
9987
9988
9989
9990
9991
9992 #
9993 # Check to make sure the static flag actually works.
9994 #
9995 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9997 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9998 if ${lt_cv_prog_compiler_static_works+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 lt_cv_prog_compiler_static_works=no
10002 save_LDFLAGS="$LDFLAGS"
10003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10004 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10006 # The linker can only warn and ignore the option if not recognized
10007 # So say no if there are warnings
10008 if test -s conftest.err; then
10009 # Append any errors to the config.log.
10010 cat conftest.err 1>&5
10011 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10013 if diff conftest.exp conftest.er2 >/dev/null; then
10014 lt_cv_prog_compiler_static_works=yes
10015 fi
10016 else
10017 lt_cv_prog_compiler_static_works=yes
10018 fi
10019 fi
10020 $RM -r conftest*
10021 LDFLAGS="$save_LDFLAGS"
10022
10023 fi
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10025 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10026
10027 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10028 :
10029 else
10030 lt_prog_compiler_static=
10031 fi
10032
10033
10034
10035
10036
10037
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10040 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10041 if ${lt_cv_prog_compiler_c_o+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 lt_cv_prog_compiler_c_o=no
10045 $RM -r conftest 2>/dev/null
10046 mkdir conftest
10047 cd conftest
10048 mkdir out
10049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10050
10051 lt_compiler_flag="-o out/conftest2.$ac_objext"
10052 # Insert the option either (1) after the last *FLAGS variable, or
10053 # (2) before a word containing "conftest.", or (3) at the end.
10054 # Note that $ac_compile itself does not contain backslashes and begins
10055 # with a dollar sign (not a hyphen), so the echo should work correctly.
10056 lt_compile=`echo "$ac_compile" | $SED \
10057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10059 -e 's:$: $lt_compiler_flag:'`
10060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10061 (eval "$lt_compile" 2>out/conftest.err)
10062 ac_status=$?
10063 cat out/conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10066 then
10067 # The compiler can only warn and ignore the option if not recognized
10068 # So say no if there are warnings
10069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10072 lt_cv_prog_compiler_c_o=yes
10073 fi
10074 fi
10075 chmod u+w . 2>&5
10076 $RM conftest*
10077 # SGI C++ compiler will create directory out/ii_files/ for
10078 # template instantiation
10079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10080 $RM out/* && rmdir out
10081 cd ..
10082 $RM -r conftest
10083 $RM conftest*
10084
10085 fi
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10087 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10088
10089
10090
10091
10092
10093
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10095 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10096 if ${lt_cv_prog_compiler_c_o+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 lt_cv_prog_compiler_c_o=no
10100 $RM -r conftest 2>/dev/null
10101 mkdir conftest
10102 cd conftest
10103 mkdir out
10104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10105
10106 lt_compiler_flag="-o out/conftest2.$ac_objext"
10107 # Insert the option either (1) after the last *FLAGS variable, or
10108 # (2) before a word containing "conftest.", or (3) at the end.
10109 # Note that $ac_compile itself does not contain backslashes and begins
10110 # with a dollar sign (not a hyphen), so the echo should work correctly.
10111 lt_compile=`echo "$ac_compile" | $SED \
10112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10114 -e 's:$: $lt_compiler_flag:'`
10115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10116 (eval "$lt_compile" 2>out/conftest.err)
10117 ac_status=$?
10118 cat out/conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10121 then
10122 # The compiler can only warn and ignore the option if not recognized
10123 # So say no if there are warnings
10124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10127 lt_cv_prog_compiler_c_o=yes
10128 fi
10129 fi
10130 chmod u+w . 2>&5
10131 $RM conftest*
10132 # SGI C++ compiler will create directory out/ii_files/ for
10133 # template instantiation
10134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10135 $RM out/* && rmdir out
10136 cd ..
10137 $RM -r conftest
10138 $RM conftest*
10139
10140 fi
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10142 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10143
10144
10145
10146
10147 hard_links="nottested"
10148 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10149 # do not overwrite the value of need_locks provided by the user
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10151 $as_echo_n "checking if we can lock with hard links... " >&6; }
10152 hard_links=yes
10153 $RM conftest*
10154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10155 touch conftest.a
10156 ln conftest.a conftest.b 2>&5 || hard_links=no
10157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10159 $as_echo "$hard_links" >&6; }
10160 if test "$hard_links" = no; then
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10162 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10163 need_locks=warn
10164 fi
10165 else
10166 need_locks=no
10167 fi
10168
10169
10170
10171
10172
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10175 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10176
10177 runpath_var=
10178 allow_undefined_flag=
10179 always_export_symbols=no
10180 archive_cmds=
10181 archive_expsym_cmds=
10182 compiler_needs_object=no
10183 enable_shared_with_static_runtimes=no
10184 export_dynamic_flag_spec=
10185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10186 hardcode_automatic=no
10187 hardcode_direct=no
10188 hardcode_direct_absolute=no
10189 hardcode_libdir_flag_spec=
10190 hardcode_libdir_flag_spec_ld=
10191 hardcode_libdir_separator=
10192 hardcode_minus_L=no
10193 hardcode_shlibpath_var=unsupported
10194 inherit_rpath=no
10195 link_all_deplibs=unknown
10196 module_cmds=
10197 module_expsym_cmds=
10198 old_archive_from_new_cmds=
10199 old_archive_from_expsyms_cmds=
10200 thread_safe_flag_spec=
10201 whole_archive_flag_spec=
10202 # include_expsyms should be a list of space-separated symbols to be *always*
10203 # included in the symbol list
10204 include_expsyms=
10205 # exclude_expsyms can be an extended regexp of symbols to exclude
10206 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10207 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10208 # as well as any symbol that contains `d'.
10209 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10210 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10211 # platforms (ab)use it in PIC code, but their linkers get confused if
10212 # the symbol is explicitly referenced. Since portable code cannot
10213 # rely on this symbol name, it's probably fine to never include it in
10214 # preloaded symbol tables.
10215 # Exclude shared library initialization/finalization symbols.
10216 extract_expsyms_cmds=
10217
10218 case $host_os in
10219 cygwin* | mingw* | pw32* | cegcc*)
10220 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10221 # When not using gcc, we currently assume that we are using
10222 # Microsoft Visual C++.
10223 if test "$GCC" != yes; then
10224 with_gnu_ld=no
10225 fi
10226 ;;
10227 interix*)
10228 # we just hope/assume this is gcc and not c89 (= MSVC++)
10229 with_gnu_ld=yes
10230 ;;
10231 openbsd*)
10232 with_gnu_ld=no
10233 ;;
10234 esac
10235
10236 ld_shlibs=yes
10237
10238 # On some targets, GNU ld is compatible enough with the native linker
10239 # that we're better off using the native interface for both.
10240 lt_use_gnu_ld_interface=no
10241 if test "$with_gnu_ld" = yes; then
10242 case $host_os in
10243 aix*)
10244 # The AIX port of GNU ld has always aspired to compatibility
10245 # with the native linker. However, as the warning in the GNU ld
10246 # block says, versions before 2.19.5* couldn't really create working
10247 # shared libraries, regardless of the interface used.
10248 case `$LD -v 2>&1` in
10249 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10250 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10251 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10252 *)
10253 lt_use_gnu_ld_interface=yes
10254 ;;
10255 esac
10256 ;;
10257 *)
10258 lt_use_gnu_ld_interface=yes
10259 ;;
10260 esac
10261 fi
10262
10263 if test "$lt_use_gnu_ld_interface" = yes; then
10264 # If archive_cmds runs LD, not CC, wlarc should be empty
10265 wlarc='${wl}'
10266
10267 # Set some defaults for GNU ld with shared library support. These
10268 # are reset later if shared libraries are not supported. Putting them
10269 # here allows them to be overridden if necessary.
10270 runpath_var=LD_RUN_PATH
10271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272 export_dynamic_flag_spec='${wl}--export-dynamic'
10273 # ancient GNU ld didn't support --whole-archive et. al.
10274 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10276 else
10277 whole_archive_flag_spec=
10278 fi
10279 supports_anon_versioning=no
10280 case `$LD -v 2>&1` in
10281 *GNU\ gold*) supports_anon_versioning=yes ;;
10282 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10285 *\ 2.11.*) ;; # other 2.11 versions
10286 *) supports_anon_versioning=yes ;;
10287 esac
10288
10289 # See if GNU ld supports shared libraries.
10290 case $host_os in
10291 aix[3-9]*)
10292 # On AIX/PPC, the GNU linker is very broken
10293 if test "$host_cpu" != ia64; then
10294 ld_shlibs=no
10295 cat <<_LT_EOF 1>&2
10296
10297 *** Warning: the GNU linker, at least up to release 2.19, is reported
10298 *** to be unable to reliably create shared libraries on AIX.
10299 *** Therefore, libtool is disabling shared libraries support. If you
10300 *** really care for shared libraries, you may want to install binutils
10301 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10302 *** You will then need to restart the configuration process.
10303
10304 _LT_EOF
10305 fi
10306 ;;
10307
10308 amigaos*)
10309 case $host_cpu in
10310 powerpc)
10311 # see comment about AmigaOS4 .so support
10312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10313 archive_expsym_cmds=''
10314 ;;
10315 m68k)
10316 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)'
10317 hardcode_libdir_flag_spec='-L$libdir'
10318 hardcode_minus_L=yes
10319 ;;
10320 esac
10321 ;;
10322
10323 beos*)
10324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10325 allow_undefined_flag=unsupported
10326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10327 # support --undefined. This deserves some investigation. FIXME
10328 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10329 else
10330 ld_shlibs=no
10331 fi
10332 ;;
10333
10334 cygwin* | mingw* | pw32* | cegcc*)
10335 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10336 # as there is no search path for DLLs.
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 export_dynamic_flag_spec='${wl}--export-all-symbols'
10339 allow_undefined_flag=unsupported
10340 always_export_symbols=no
10341 enable_shared_with_static_runtimes=yes
10342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10343
10344 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10346 # If the export-symbols file already is a .def file (1st line
10347 # is EXPORTS), use it as is; otherwise, prepend...
10348 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10349 cp $export_symbols $output_objdir/$soname.def;
10350 else
10351 echo EXPORTS > $output_objdir/$soname.def;
10352 cat $export_symbols >> $output_objdir/$soname.def;
10353 fi~
10354 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10355 else
10356 ld_shlibs=no
10357 fi
10358 ;;
10359
10360 haiku*)
10361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10362 link_all_deplibs=yes
10363 ;;
10364
10365 interix[3-9]*)
10366 hardcode_direct=no
10367 hardcode_shlibpath_var=no
10368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10369 export_dynamic_flag_spec='${wl}-E'
10370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10371 # Instead, shared libraries are loaded at an image base (0x10000000 by
10372 # default) and relocated if they conflict, which is a slow very memory
10373 # consuming and fragmenting process. To avoid this, we pick a random,
10374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10376 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10377 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'
10378 ;;
10379
10380 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10381 tmp_diet=no
10382 if test "$host_os" = linux-dietlibc; then
10383 case $cc_basename in
10384 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10385 esac
10386 fi
10387 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10388 && test "$tmp_diet" = no
10389 then
10390 tmp_addflag=' $pic_flag'
10391 tmp_sharedflag='-shared'
10392 case $cc_basename,$host_cpu in
10393 pgcc*) # Portland Group C compiler
10394 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'
10395 tmp_addflag=' $pic_flag'
10396 ;;
10397 pgf77* | pgf90* | pgf95* | pgfortran*)
10398 # Portland Group f77 and f90 compilers
10399 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'
10400 tmp_addflag=' $pic_flag -Mnomain' ;;
10401 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10402 tmp_addflag=' -i_dynamic' ;;
10403 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10404 tmp_addflag=' -i_dynamic -nofor_main' ;;
10405 ifc* | ifort*) # Intel Fortran compiler
10406 tmp_addflag=' -nofor_main' ;;
10407 lf95*) # Lahey Fortran 8.1
10408 whole_archive_flag_spec=
10409 tmp_sharedflag='--shared' ;;
10410 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10411 tmp_sharedflag='-qmkshrobj'
10412 tmp_addflag= ;;
10413 nvcc*) # Cuda Compiler Driver 2.2
10414 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'
10415 compiler_needs_object=yes
10416 ;;
10417 esac
10418 case `$CC -V 2>&1 | sed 5q` in
10419 *Sun\ C*) # Sun C 5.9
10420 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'
10421 compiler_needs_object=yes
10422 tmp_sharedflag='-G' ;;
10423 *Sun\ F*) # Sun Fortran 8.3
10424 tmp_sharedflag='-G' ;;
10425 esac
10426 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10427
10428 if test "x$supports_anon_versioning" = xyes; then
10429 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10431 echo "local: *; };" >> $output_objdir/$libname.ver~
10432 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10433 fi
10434
10435 case $cc_basename in
10436 xlf* | bgf* | bgxlf* | mpixlf*)
10437 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10438 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10439 hardcode_libdir_flag_spec=
10440 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10441 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10442 if test "x$supports_anon_versioning" = xyes; then
10443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10445 echo "local: *; };" >> $output_objdir/$libname.ver~
10446 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10447 fi
10448 ;;
10449 esac
10450 else
10451 ld_shlibs=no
10452 fi
10453 ;;
10454
10455 netbsd*)
10456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10458 wlarc=
10459 else
10460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10462 fi
10463 ;;
10464
10465 solaris*)
10466 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10467 ld_shlibs=no
10468 cat <<_LT_EOF 1>&2
10469
10470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10471 *** create shared libraries on Solaris systems. Therefore, libtool
10472 *** is disabling shared libraries support. We urge you to upgrade GNU
10473 *** binutils to release 2.9.1 or newer. Another option is to modify
10474 *** your PATH or compiler configuration so that the native linker is
10475 *** used, and then restart.
10476
10477 _LT_EOF
10478 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10480 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10481 else
10482 ld_shlibs=no
10483 fi
10484 ;;
10485
10486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10487 case `$LD -v 2>&1` in
10488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10489 ld_shlibs=no
10490 cat <<_LT_EOF 1>&2
10491
10492 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10493 *** reliably create shared libraries on SCO systems. Therefore, libtool
10494 *** is disabling shared libraries support. We urge you to upgrade GNU
10495 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10496 *** your PATH or compiler configuration so that the native linker is
10497 *** used, and then restart.
10498
10499 _LT_EOF
10500 ;;
10501 *)
10502 # For security reasons, it is highly recommended that you always
10503 # use absolute paths for naming shared libraries, and exclude the
10504 # DT_RUNPATH tag from executables and libraries. But doing so
10505 # requires that you compile everything twice, which is a pain.
10506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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 else
10511 ld_shlibs=no
10512 fi
10513 ;;
10514 esac
10515 ;;
10516
10517 sunos4*)
10518 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10519 wlarc=
10520 hardcode_direct=yes
10521 hardcode_shlibpath_var=no
10522 ;;
10523
10524 *)
10525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10528 else
10529 ld_shlibs=no
10530 fi
10531 ;;
10532 esac
10533
10534 if test "$ld_shlibs" = no; then
10535 runpath_var=
10536 hardcode_libdir_flag_spec=
10537 export_dynamic_flag_spec=
10538 whole_archive_flag_spec=
10539 fi
10540 else
10541 # PORTME fill in a description of your system's linker (not GNU ld)
10542 case $host_os in
10543 aix3*)
10544 allow_undefined_flag=unsupported
10545 always_export_symbols=yes
10546 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'
10547 # Note: this linker hardcodes the directories in LIBPATH if there
10548 # are no directories specified by -L.
10549 hardcode_minus_L=yes
10550 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10551 # Neither direct hardcoding nor static linking is supported with a
10552 # broken collect2.
10553 hardcode_direct=unsupported
10554 fi
10555 ;;
10556
10557 aix[4-9]*)
10558 if test "$host_cpu" = ia64; then
10559 # On IA64, the linker does run time linking by default, so we don't
10560 # have to do anything special.
10561 aix_use_runtimelinking=no
10562 exp_sym_flag='-Bexport'
10563 no_entry_flag=""
10564 else
10565 # If we're using GNU nm, then we don't want the "-C" option.
10566 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10567 # Also, AIX nm treats weak defined symbols like other global
10568 # defined symbols, whereas GNU nm marks them as "W".
10569 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10570 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'
10571 else
10572 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'
10573 fi
10574 aix_use_runtimelinking=no
10575
10576 # Test if we are trying to use run time linking or normal
10577 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10578 # need to do runtime linking.
10579 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10580 for ld_flag in $LDFLAGS; do
10581 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10582 aix_use_runtimelinking=yes
10583 break
10584 fi
10585 done
10586 ;;
10587 esac
10588
10589 exp_sym_flag='-bexport'
10590 no_entry_flag='-bnoentry'
10591 fi
10592
10593 # When large executables or shared objects are built, AIX ld can
10594 # have problems creating the table of contents. If linking a library
10595 # or program results in "error TOC overflow" add -mminimal-toc to
10596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10598
10599 archive_cmds=''
10600 hardcode_direct=yes
10601 hardcode_direct_absolute=yes
10602 hardcode_libdir_separator=':'
10603 link_all_deplibs=yes
10604 file_list_spec='${wl}-f,'
10605
10606 if test "$GCC" = yes; then
10607 case $host_os in aix4.[012]|aix4.[012].*)
10608 # We only want to do this on AIX 4.2 and lower, the check
10609 # below for broken collect2 doesn't work under 4.3+
10610 collect2name=`${CC} -print-prog-name=collect2`
10611 if test -f "$collect2name" &&
10612 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10613 then
10614 # We have reworked collect2
10615 :
10616 else
10617 # We have old collect2
10618 hardcode_direct=unsupported
10619 # It fails to find uninstalled libraries when the uninstalled
10620 # path is not listed in the libpath. Setting hardcode_minus_L
10621 # to unsupported forces relinking
10622 hardcode_minus_L=yes
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_libdir_separator=
10625 fi
10626 ;;
10627 esac
10628 shared_flag='-shared'
10629 if test "$aix_use_runtimelinking" = yes; then
10630 shared_flag="$shared_flag "'${wl}-G'
10631 fi
10632 else
10633 # not using gcc
10634 if test "$host_cpu" = ia64; then
10635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10636 # chokes on -Wl,-G. The following line is correct:
10637 shared_flag='-G'
10638 else
10639 if test "$aix_use_runtimelinking" = yes; then
10640 shared_flag='${wl}-G'
10641 else
10642 shared_flag='${wl}-bM:SRE'
10643 fi
10644 fi
10645 fi
10646
10647 export_dynamic_flag_spec='${wl}-bexpall'
10648 # It seems that -bexpall does not export symbols beginning with
10649 # underscore (_), so it is better to generate a list of symbols to export.
10650 always_export_symbols=yes
10651 if test "$aix_use_runtimelinking" = yes; then
10652 # Warning - without using the other runtime loading flags (-brtl),
10653 # -berok will link without error, but may produce a broken library.
10654 allow_undefined_flag='-berok'
10655 # Determine the default libpath from the value encoded in an
10656 # empty executable.
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10659
10660 int
10661 main ()
10662 {
10663
10664 ;
10665 return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669
10670 lt_aix_libpath_sed='
10671 /Import File Strings/,/^$/ {
10672 /^0/ {
10673 s/^0 *\(.*\)$/\1/
10674 p
10675 }
10676 }'
10677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$aix_libpath"; then
10680 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 fi
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10686
10687 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10688 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"
10689 else
10690 if test "$host_cpu" = ia64; then
10691 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10692 allow_undefined_flag="-z nodefs"
10693 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"
10694 else
10695 # Determine the default libpath from the value encoded in an
10696 # empty executable.
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699
10700 int
10701 main ()
10702 {
10703
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 if ac_fn_c_try_link "$LINENO"; then :
10709
10710 lt_aix_libpath_sed='
10711 /Import File Strings/,/^$/ {
10712 /^0/ {
10713 s/^0 *\(.*\)$/\1/
10714 p
10715 }
10716 }'
10717 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10718 # Check for a 64-bit object if we didn't find anything.
10719 if test -z "$aix_libpath"; then
10720 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10721 fi
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10726
10727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10728 # Warning - without using the other run time loading flags,
10729 # -berok will link without error, but may produce a broken library.
10730 no_undefined_flag=' ${wl}-bernotok'
10731 allow_undefined_flag=' ${wl}-berok'
10732 if test "$with_gnu_ld" = yes; then
10733 # We only use this code for GNU lds that support --whole-archive.
10734 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10735 else
10736 # Exported symbols can be pulled into shared objects from archives
10737 whole_archive_flag_spec='$convenience'
10738 fi
10739 archive_cmds_need_lc=yes
10740 # This is similar to how AIX traditionally builds its shared libraries.
10741 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'
10742 fi
10743 fi
10744 ;;
10745
10746 amigaos*)
10747 case $host_cpu in
10748 powerpc)
10749 # see comment about AmigaOS4 .so support
10750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10751 archive_expsym_cmds=''
10752 ;;
10753 m68k)
10754 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)'
10755 hardcode_libdir_flag_spec='-L$libdir'
10756 hardcode_minus_L=yes
10757 ;;
10758 esac
10759 ;;
10760
10761 bsdi[45]*)
10762 export_dynamic_flag_spec=-rdynamic
10763 ;;
10764
10765 cygwin* | mingw* | pw32* | cegcc*)
10766 # When not using gcc, we currently assume that we are using
10767 # Microsoft Visual C++.
10768 # hardcode_libdir_flag_spec is actually meaningless, as there is
10769 # no search path for DLLs.
10770 hardcode_libdir_flag_spec=' '
10771 allow_undefined_flag=unsupported
10772 # Tell ltmain to make .lib files, not .a files.
10773 libext=lib
10774 # Tell ltmain to make .dll files, not .so files.
10775 shrext_cmds=".dll"
10776 # FIXME: Setting linknames here is a bad hack.
10777 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10778 # The linker will automatically build a .lib file if we build a DLL.
10779 old_archive_from_new_cmds='true'
10780 # FIXME: Should let the user specify the lib program.
10781 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10782 fix_srcfile_path='`cygpath -w "$srcfile"`'
10783 enable_shared_with_static_runtimes=yes
10784 ;;
10785
10786 darwin* | rhapsody*)
10787
10788
10789 archive_cmds_need_lc=no
10790 hardcode_direct=no
10791 hardcode_automatic=yes
10792 hardcode_shlibpath_var=unsupported
10793 if test "$lt_cv_ld_force_load" = "yes"; then
10794 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\"`'
10795 else
10796 whole_archive_flag_spec=''
10797 fi
10798 link_all_deplibs=yes
10799 allow_undefined_flag="$_lt_dar_allow_undefined"
10800 case $cc_basename in
10801 ifort*) _lt_dar_can_shared=yes ;;
10802 *) _lt_dar_can_shared=$GCC ;;
10803 esac
10804 if test "$_lt_dar_can_shared" = "yes"; then
10805 output_verbose_link_cmd=func_echo_all
10806 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10807 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10808 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}"
10809 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}"
10810
10811 else
10812 ld_shlibs=no
10813 fi
10814
10815 ;;
10816
10817 dgux*)
10818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819 hardcode_libdir_flag_spec='-L$libdir'
10820 hardcode_shlibpath_var=no
10821 ;;
10822
10823 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10824 # support. Future versions do this automatically, but an explicit c++rt0.o
10825 # does not break anything, and helps significantly (at the cost of a little
10826 # extra space).
10827 freebsd2.2*)
10828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10829 hardcode_libdir_flag_spec='-R$libdir'
10830 hardcode_direct=yes
10831 hardcode_shlibpath_var=no
10832 ;;
10833
10834 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10835 freebsd2.*)
10836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10837 hardcode_direct=yes
10838 hardcode_minus_L=yes
10839 hardcode_shlibpath_var=no
10840 ;;
10841
10842 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10843 freebsd* | dragonfly*)
10844 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10845 hardcode_libdir_flag_spec='-R$libdir'
10846 hardcode_direct=yes
10847 hardcode_shlibpath_var=no
10848 ;;
10849
10850 hpux9*)
10851 if test "$GCC" = yes; then
10852 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'
10853 else
10854 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'
10855 fi
10856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10857 hardcode_libdir_separator=:
10858 hardcode_direct=yes
10859
10860 # hardcode_minus_L: Not really in the search PATH,
10861 # but as the default location of the library.
10862 hardcode_minus_L=yes
10863 export_dynamic_flag_spec='${wl}-E'
10864 ;;
10865
10866 hpux10*)
10867 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10869 else
10870 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10871 fi
10872 if test "$with_gnu_ld" = no; then
10873 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10874 hardcode_libdir_flag_spec_ld='+b $libdir'
10875 hardcode_libdir_separator=:
10876 hardcode_direct=yes
10877 hardcode_direct_absolute=yes
10878 export_dynamic_flag_spec='${wl}-E'
10879 # hardcode_minus_L: Not really in the search PATH,
10880 # but as the default location of the library.
10881 hardcode_minus_L=yes
10882 fi
10883 ;;
10884
10885 hpux11*)
10886 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10887 case $host_cpu in
10888 hppa*64*)
10889 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10890 ;;
10891 ia64*)
10892 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10893 ;;
10894 *)
10895 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10896 ;;
10897 esac
10898 else
10899 case $host_cpu in
10900 hppa*64*)
10901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10902 ;;
10903 ia64*)
10904 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10905 ;;
10906 *)
10907
10908 # Older versions of the 11.00 compiler do not understand -b yet
10909 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10911 $as_echo_n "checking if $CC understands -b... " >&6; }
10912 if ${lt_cv_prog_compiler__b+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914 else
10915 lt_cv_prog_compiler__b=no
10916 save_LDFLAGS="$LDFLAGS"
10917 LDFLAGS="$LDFLAGS -b"
10918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10920 # The linker can only warn and ignore the option if not recognized
10921 # So say no if there are warnings
10922 if test -s conftest.err; then
10923 # Append any errors to the config.log.
10924 cat conftest.err 1>&5
10925 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10927 if diff conftest.exp conftest.er2 >/dev/null; then
10928 lt_cv_prog_compiler__b=yes
10929 fi
10930 else
10931 lt_cv_prog_compiler__b=yes
10932 fi
10933 fi
10934 $RM -r conftest*
10935 LDFLAGS="$save_LDFLAGS"
10936
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10939 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10940
10941 if test x"$lt_cv_prog_compiler__b" = xyes; then
10942 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10943 else
10944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10945 fi
10946
10947 ;;
10948 esac
10949 fi
10950 if test "$with_gnu_ld" = no; then
10951 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10952 hardcode_libdir_separator=:
10953
10954 case $host_cpu in
10955 hppa*64*|ia64*)
10956 hardcode_direct=no
10957 hardcode_shlibpath_var=no
10958 ;;
10959 *)
10960 hardcode_direct=yes
10961 hardcode_direct_absolute=yes
10962 export_dynamic_flag_spec='${wl}-E'
10963
10964 # hardcode_minus_L: Not really in the search PATH,
10965 # but as the default location of the library.
10966 hardcode_minus_L=yes
10967 ;;
10968 esac
10969 fi
10970 ;;
10971
10972 irix5* | irix6* | nonstopux*)
10973 if test "$GCC" = yes; then
10974 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'
10975 # Try to use the -exported_symbol ld option, if it does not
10976 # work, assume that -exports_file does not work either and
10977 # implicitly export all symbols.
10978 save_LDFLAGS="$LDFLAGS"
10979 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982 int foo(void) {}
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985 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'
10986
10987 fi
10988 rm -f core conftest.err conftest.$ac_objext \
10989 conftest$ac_exeext conftest.$ac_ext
10990 LDFLAGS="$save_LDFLAGS"
10991 else
10992 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'
10993 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'
10994 fi
10995 archive_cmds_need_lc='no'
10996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10997 hardcode_libdir_separator=:
10998 inherit_rpath=yes
10999 link_all_deplibs=yes
11000 ;;
11001
11002 netbsd*)
11003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11005 else
11006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11007 fi
11008 hardcode_libdir_flag_spec='-R$libdir'
11009 hardcode_direct=yes
11010 hardcode_shlibpath_var=no
11011 ;;
11012
11013 newsos6)
11014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11015 hardcode_direct=yes
11016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11017 hardcode_libdir_separator=:
11018 hardcode_shlibpath_var=no
11019 ;;
11020
11021 *nto* | *qnx*)
11022 ;;
11023
11024 openbsd*)
11025 if test -f /usr/libexec/ld.so; then
11026 hardcode_direct=yes
11027 hardcode_shlibpath_var=no
11028 hardcode_direct_absolute=yes
11029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11033 export_dynamic_flag_spec='${wl}-E'
11034 else
11035 case $host_os in
11036 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_libdir_flag_spec='-R$libdir'
11039 ;;
11040 *)
11041 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11042 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11043 ;;
11044 esac
11045 fi
11046 else
11047 ld_shlibs=no
11048 fi
11049 ;;
11050
11051 os2*)
11052 hardcode_libdir_flag_spec='-L$libdir'
11053 hardcode_minus_L=yes
11054 allow_undefined_flag=unsupported
11055 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'
11056 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11057 ;;
11058
11059 osf3*)
11060 if test "$GCC" = yes; then
11061 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11062 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'
11063 else
11064 allow_undefined_flag=' -expect_unresolved \*'
11065 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'
11066 fi
11067 archive_cmds_need_lc='no'
11068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11069 hardcode_libdir_separator=:
11070 ;;
11071
11072 osf4* | osf5*) # as osf3* with the addition of -msym flag
11073 if test "$GCC" = yes; then
11074 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11075 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'
11076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11077 else
11078 allow_undefined_flag=' -expect_unresolved \*'
11079 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'
11080 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~
11081 $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'
11082
11083 # Both c and cxx compiler support -rpath directly
11084 hardcode_libdir_flag_spec='-rpath $libdir'
11085 fi
11086 archive_cmds_need_lc='no'
11087 hardcode_libdir_separator=:
11088 ;;
11089
11090 solaris*)
11091 no_undefined_flag=' -z defs'
11092 if test "$GCC" = yes; then
11093 wlarc='${wl}'
11094 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11096 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11097 else
11098 case `$CC -V 2>&1` in
11099 *"Compilers 5.0"*)
11100 wlarc=''
11101 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11102 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11104 ;;
11105 *)
11106 wlarc='${wl}'
11107 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11109 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11110 ;;
11111 esac
11112 fi
11113 hardcode_libdir_flag_spec='-R$libdir'
11114 hardcode_shlibpath_var=no
11115 case $host_os in
11116 solaris2.[0-5] | solaris2.[0-5].*) ;;
11117 *)
11118 # The compiler driver will combine and reorder linker options,
11119 # but understands `-z linker_flag'. GCC discards it without `$wl',
11120 # but is careful enough not to reorder.
11121 # Supported since Solaris 2.6 (maybe 2.5.1?)
11122 if test "$GCC" = yes; then
11123 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11124 else
11125 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11126 fi
11127 ;;
11128 esac
11129 link_all_deplibs=yes
11130 ;;
11131
11132 sunos4*)
11133 if test "x$host_vendor" = xsequent; then
11134 # Use $CC to link under sequent, because it throws in some extra .o
11135 # files that make .init and .fini sections work.
11136 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11137 else
11138 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11139 fi
11140 hardcode_libdir_flag_spec='-L$libdir'
11141 hardcode_direct=yes
11142 hardcode_minus_L=yes
11143 hardcode_shlibpath_var=no
11144 ;;
11145
11146 sysv4)
11147 case $host_vendor in
11148 sni)
11149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11150 hardcode_direct=yes # is this really true???
11151 ;;
11152 siemens)
11153 ## LD is ld it makes a PLAMLIB
11154 ## CC just makes a GrossModule.
11155 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11156 reload_cmds='$CC -r -o $output$reload_objs'
11157 hardcode_direct=no
11158 ;;
11159 motorola)
11160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11162 ;;
11163 esac
11164 runpath_var='LD_RUN_PATH'
11165 hardcode_shlibpath_var=no
11166 ;;
11167
11168 sysv4.3*)
11169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11170 hardcode_shlibpath_var=no
11171 export_dynamic_flag_spec='-Bexport'
11172 ;;
11173
11174 sysv4*MP*)
11175 if test -d /usr/nec; then
11176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11177 hardcode_shlibpath_var=no
11178 runpath_var=LD_RUN_PATH
11179 hardcode_runpath_var=yes
11180 ld_shlibs=yes
11181 fi
11182 ;;
11183
11184 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11185 no_undefined_flag='${wl}-z,text'
11186 archive_cmds_need_lc=no
11187 hardcode_shlibpath_var=no
11188 runpath_var='LD_RUN_PATH'
11189
11190 if test "$GCC" = yes; then
11191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193 else
11194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11196 fi
11197 ;;
11198
11199 sysv5* | sco3.2v5* | sco5v6*)
11200 # Note: We can NOT use -z defs as we might desire, because we do not
11201 # link with -lc, and that would cause any symbols used from libc to
11202 # always be unresolved, which means just about no library would
11203 # ever link correctly. If we're not using GNU ld we use -z text
11204 # though, which does catch some bad symbols but isn't as heavy-handed
11205 # as -z defs.
11206 no_undefined_flag='${wl}-z,text'
11207 allow_undefined_flag='${wl}-z,nodefs'
11208 archive_cmds_need_lc=no
11209 hardcode_shlibpath_var=no
11210 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11211 hardcode_libdir_separator=':'
11212 link_all_deplibs=yes
11213 export_dynamic_flag_spec='${wl}-Bexport'
11214 runpath_var='LD_RUN_PATH'
11215
11216 if test "$GCC" = yes; then
11217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 else
11220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11222 fi
11223 ;;
11224
11225 uts4*)
11226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227 hardcode_libdir_flag_spec='-L$libdir'
11228 hardcode_shlibpath_var=no
11229 ;;
11230
11231 *)
11232 ld_shlibs=no
11233 ;;
11234 esac
11235
11236 if test x$host_vendor = xsni; then
11237 case $host in
11238 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11239 export_dynamic_flag_spec='${wl}-Blargedynsym'
11240 ;;
11241 esac
11242 fi
11243 fi
11244
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11246 $as_echo "$ld_shlibs" >&6; }
11247 test "$ld_shlibs" = no && can_build_shared=no
11248
11249 with_gnu_ld=$with_gnu_ld
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265 #
11266 # Do we need to explicitly link libc?
11267 #
11268 case "x$archive_cmds_need_lc" in
11269 x|xyes)
11270 # Assume -lc should be added
11271 archive_cmds_need_lc=yes
11272
11273 if test "$enable_shared" = yes && test "$GCC" = yes; then
11274 case $archive_cmds in
11275 *'~'*)
11276 # FIXME: we may have to deal with multi-command sequences.
11277 ;;
11278 '$CC '*)
11279 # Test whether the compiler implicitly links with -lc since on some
11280 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11281 # to ld, don't add -lc before -lgcc.
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11283 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11284 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 $RM conftest*
11288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11289
11290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11291 (eval $ac_compile) 2>&5
11292 ac_status=$?
11293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11294 test $ac_status = 0; } 2>conftest.err; then
11295 soname=conftest
11296 lib=conftest
11297 libobjs=conftest.$ac_objext
11298 deplibs=
11299 wl=$lt_prog_compiler_wl
11300 pic_flag=$lt_prog_compiler_pic
11301 compiler_flags=-v
11302 linker_flags=-v
11303 verstring=
11304 output_objdir=.
11305 libname=conftest
11306 lt_save_allow_undefined_flag=$allow_undefined_flag
11307 allow_undefined_flag=
11308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11309 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11312 test $ac_status = 0; }
11313 then
11314 lt_cv_archive_cmds_need_lc=no
11315 else
11316 lt_cv_archive_cmds_need_lc=yes
11317 fi
11318 allow_undefined_flag=$lt_save_allow_undefined_flag
11319 else
11320 cat conftest.err 1>&5
11321 fi
11322 $RM conftest*
11323
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11326 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11327 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11328 ;;
11329 esac
11330 fi
11331 ;;
11332 esac
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11491 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11492
11493 if test "$GCC" = yes; then
11494 case $host_os in
11495 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11496 *) lt_awk_arg="/^libraries:/" ;;
11497 esac
11498 case $host_os in
11499 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11500 *) lt_sed_strip_eq="s,=/,/,g" ;;
11501 esac
11502 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11503 case $lt_search_path_spec in
11504 *\;*)
11505 # if the path contains ";" then we assume it to be the separator
11506 # otherwise default to the standard path separator (i.e. ":") - it is
11507 # assumed that no part of a normal pathname contains ";" but that should
11508 # okay in the real world where ";" in dirpaths is itself problematic.
11509 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11510 ;;
11511 *)
11512 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11513 ;;
11514 esac
11515 # Ok, now we have the path, separated by spaces, we can step through it
11516 # and add multilib dir if necessary.
11517 lt_tmp_lt_search_path_spec=
11518 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11519 for lt_sys_path in $lt_search_path_spec; do
11520 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11522 else
11523 test -d "$lt_sys_path" && \
11524 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11525 fi
11526 done
11527 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11528 BEGIN {RS=" "; FS="/|\n";} {
11529 lt_foo="";
11530 lt_count=0;
11531 for (lt_i = NF; lt_i > 0; lt_i--) {
11532 if ($lt_i != "" && $lt_i != ".") {
11533 if ($lt_i == "..") {
11534 lt_count++;
11535 } else {
11536 if (lt_count == 0) {
11537 lt_foo="/" $lt_i lt_foo;
11538 } else {
11539 lt_count--;
11540 }
11541 }
11542 }
11543 }
11544 if (lt_foo != "") { lt_freq[lt_foo]++; }
11545 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11546 }'`
11547 # AWK program above erroneously prepends '/' to C:/dos/paths
11548 # for these hosts.
11549 case $host_os in
11550 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11551 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11552 esac
11553 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11554 else
11555 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11556 fi
11557 library_names_spec=
11558 libname_spec='lib$name'
11559 soname_spec=
11560 shrext_cmds=".so"
11561 postinstall_cmds=
11562 postuninstall_cmds=
11563 finish_cmds=
11564 finish_eval=
11565 shlibpath_var=
11566 shlibpath_overrides_runpath=unknown
11567 version_type=none
11568 dynamic_linker="$host_os ld.so"
11569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11570 need_lib_prefix=unknown
11571 hardcode_into_libs=no
11572
11573 # when you set need_version to no, make sure it does not cause -set_version
11574 # flags to be left without arguments
11575 need_version=unknown
11576
11577 case $host_os in
11578 aix3*)
11579 version_type=linux
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11581 shlibpath_var=LIBPATH
11582
11583 # AIX 3 has no versioning support, so we append a major version to the name.
11584 soname_spec='${libname}${release}${shared_ext}$major'
11585 ;;
11586
11587 aix[4-9]*)
11588 version_type=linux
11589 need_lib_prefix=no
11590 need_version=no
11591 hardcode_into_libs=yes
11592 if test "$host_cpu" = ia64; then
11593 # AIX 5 supports IA64
11594 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 else
11597 # With GCC up to 2.95.x, collect2 would create an import file
11598 # for dependence libraries. The import file would start with
11599 # the line `#! .'. This would cause the generated library to
11600 # depend on `.', always an invalid library. This was fixed in
11601 # development snapshots of GCC prior to 3.0.
11602 case $host_os in
11603 aix4 | aix4.[01] | aix4.[01].*)
11604 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11605 echo ' yes '
11606 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11607 :
11608 else
11609 can_build_shared=no
11610 fi
11611 ;;
11612 esac
11613 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11614 # soname into executable. Probably we can add versioning support to
11615 # collect2, so additional links can be useful in future.
11616 if test "$aix_use_runtimelinking" = yes; then
11617 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11618 # instead of lib<name>.a to let people know that these are not
11619 # typical AIX shared libraries.
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11621 else
11622 # We preserve .a as extension for shared libraries through AIX4.2
11623 # and later when we are not doing run time linking.
11624 library_names_spec='${libname}${release}.a $libname.a'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 fi
11627 shlibpath_var=LIBPATH
11628 fi
11629 ;;
11630
11631 amigaos*)
11632 case $host_cpu in
11633 powerpc)
11634 # Since July 2007 AmigaOS4 officially supports .so libraries.
11635 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637 ;;
11638 m68k)
11639 library_names_spec='$libname.ixlibrary $libname.a'
11640 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11641 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'
11642 ;;
11643 esac
11644 ;;
11645
11646 beos*)
11647 library_names_spec='${libname}${shared_ext}'
11648 dynamic_linker="$host_os ld.so"
11649 shlibpath_var=LIBRARY_PATH
11650 ;;
11651
11652 bsdi[45]*)
11653 version_type=linux
11654 need_version=no
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11661 # the default ld.so.conf also contains /usr/contrib/lib and
11662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11663 # libtool to hard-code these into programs
11664 ;;
11665
11666 cygwin* | mingw* | pw32* | cegcc*)
11667 version_type=windows
11668 shrext_cmds=".dll"
11669 need_version=no
11670 need_lib_prefix=no
11671
11672 case $GCC,$host_os in
11673 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11674 library_names_spec='$libname.dll.a'
11675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11676 postinstall_cmds='base_file=`basename \${file}`~
11677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11678 dldir=$destdir/`dirname \$dlpath`~
11679 test -d \$dldir || mkdir -p \$dldir~
11680 $install_prog $dir/$dlname \$dldir/$dlname~
11681 chmod a+x \$dldir/$dlname~
11682 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11683 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11684 fi'
11685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11686 dlpath=$dir/\$dldll~
11687 $RM \$dlpath'
11688 shlibpath_overrides_runpath=yes
11689
11690 case $host_os in
11691 cygwin*)
11692 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11694
11695 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11696 ;;
11697 mingw* | cegcc*)
11698 # MinGW DLLs use traditional 'lib' prefix
11699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11700 ;;
11701 pw32*)
11702 # pw32 DLLs use 'pw' prefix rather than 'lib'
11703 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11704 ;;
11705 esac
11706 ;;
11707
11708 *)
11709 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11710 ;;
11711 esac
11712 dynamic_linker='Win32 ld.exe'
11713 # FIXME: first we should search . and the directory the executable is in
11714 shlibpath_var=PATH
11715 ;;
11716
11717 darwin* | rhapsody*)
11718 dynamic_linker="$host_os dyld"
11719 version_type=darwin
11720 need_lib_prefix=no
11721 need_version=no
11722 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11723 soname_spec='${libname}${release}${major}$shared_ext'
11724 shlibpath_overrides_runpath=yes
11725 shlibpath_var=DYLD_LIBRARY_PATH
11726 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11727
11728 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11730 ;;
11731
11732 dgux*)
11733 version_type=linux
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 ;;
11740
11741 freebsd* | dragonfly*)
11742 # DragonFly does not have aout. When/if they implement a new
11743 # versioning mechanism, adjust this.
11744 if test -x /usr/bin/objformat; then
11745 objformat=`/usr/bin/objformat`
11746 else
11747 case $host_os in
11748 freebsd[23].*) objformat=aout ;;
11749 *) objformat=elf ;;
11750 esac
11751 fi
11752 version_type=freebsd-$objformat
11753 case $version_type in
11754 freebsd-elf*)
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11756 need_version=no
11757 need_lib_prefix=no
11758 ;;
11759 freebsd-*)
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11761 need_version=yes
11762 ;;
11763 esac
11764 shlibpath_var=LD_LIBRARY_PATH
11765 case $host_os in
11766 freebsd2.*)
11767 shlibpath_overrides_runpath=yes
11768 ;;
11769 freebsd3.[01]* | freebsdelf3.[01]*)
11770 shlibpath_overrides_runpath=yes
11771 hardcode_into_libs=yes
11772 ;;
11773 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11774 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11775 shlibpath_overrides_runpath=no
11776 hardcode_into_libs=yes
11777 ;;
11778 *) # from 4.6 on, and DragonFly
11779 shlibpath_overrides_runpath=yes
11780 hardcode_into_libs=yes
11781 ;;
11782 esac
11783 ;;
11784
11785 haiku*)
11786 version_type=linux
11787 need_lib_prefix=no
11788 need_version=no
11789 dynamic_linker="$host_os runtime_loader"
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 shlibpath_var=LIBRARY_PATH
11793 shlibpath_overrides_runpath=yes
11794 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11795 hardcode_into_libs=yes
11796 ;;
11797
11798 hpux9* | hpux10* | hpux11*)
11799 # Give a soname corresponding to the major version so that dld.sl refuses to
11800 # link against other versions.
11801 version_type=sunos
11802 need_lib_prefix=no
11803 need_version=no
11804 case $host_cpu in
11805 ia64*)
11806 shrext_cmds='.so'
11807 hardcode_into_libs=yes
11808 dynamic_linker="$host_os dld.so"
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 if test "X$HPUX_IA64_MODE" = X32; then
11814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11815 else
11816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11817 fi
11818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11819 ;;
11820 hppa*64*)
11821 shrext_cmds='.sl'
11822 hardcode_into_libs=yes
11823 dynamic_linker="$host_os dld.sl"
11824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11830 ;;
11831 *)
11832 shrext_cmds='.sl'
11833 dynamic_linker="$host_os dld.sl"
11834 shlibpath_var=SHLIB_PATH
11835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837 soname_spec='${libname}${release}${shared_ext}$major'
11838 ;;
11839 esac
11840 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11841 postinstall_cmds='chmod 555 $lib'
11842 # or fails outright, so override atomically:
11843 install_override_mode=555
11844 ;;
11845
11846 interix[3-9]*)
11847 version_type=linux
11848 need_lib_prefix=no
11849 need_version=no
11850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11851 soname_spec='${libname}${release}${shared_ext}$major'
11852 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath=no
11855 hardcode_into_libs=yes
11856 ;;
11857
11858 irix5* | irix6* | nonstopux*)
11859 case $host_os in
11860 nonstopux*) version_type=nonstopux ;;
11861 *)
11862 if test "$lt_cv_prog_gnu_ld" = yes; then
11863 version_type=linux
11864 else
11865 version_type=irix
11866 fi ;;
11867 esac
11868 need_lib_prefix=no
11869 need_version=no
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11872 case $host_os in
11873 irix5* | nonstopux*)
11874 libsuff= shlibsuff=
11875 ;;
11876 *)
11877 case $LD in # libtool.m4 will add one of these switches to LD
11878 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11879 libsuff= shlibsuff= libmagic=32-bit;;
11880 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11881 libsuff=32 shlibsuff=N32 libmagic=N32;;
11882 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11883 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11884 *) libsuff= shlibsuff= libmagic=never-match;;
11885 esac
11886 ;;
11887 esac
11888 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11889 shlibpath_overrides_runpath=no
11890 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11891 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11892 hardcode_into_libs=yes
11893 ;;
11894
11895 # No shared lib support for Linux oldld, aout, or coff.
11896 linux*oldld* | linux*aout* | linux*coff*)
11897 dynamic_linker=no
11898 ;;
11899
11900 # This must be Linux ELF.
11901
11902 # uclinux* changes (here and below) have been submitted to the libtool
11903 # project, but have not yet been accepted: they are GCC-local changes
11904 # for the time being. (See
11905 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11907 version_type=linux
11908 need_lib_prefix=no
11909 need_version=no
11910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911 soname_spec='${libname}${release}${shared_ext}$major'
11912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=no
11915
11916 # Some binutils ld are patched to set DT_RUNPATH
11917 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11920 lt_cv_shlibpath_overrides_runpath=no
11921 save_LDFLAGS=$LDFLAGS
11922 save_libdir=$libdir
11923 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11924 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11927
11928 int
11929 main ()
11930 {
11931
11932 ;
11933 return 0;
11934 }
11935 _ACEOF
11936 if ac_fn_c_try_link "$LINENO"; then :
11937 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11938 lt_cv_shlibpath_overrides_runpath=yes
11939 fi
11940 fi
11941 rm -f core conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11943 LDFLAGS=$save_LDFLAGS
11944 libdir=$save_libdir
11945
11946 fi
11947
11948 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11949
11950 # This implies no fast_install, which is unacceptable.
11951 # Some rework will be needed to allow for fast_install
11952 # before this can be enabled.
11953 hardcode_into_libs=yes
11954
11955 # Append ld.so.conf contents to the search path
11956 if test -f /etc/ld.so.conf; then
11957 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' ' '`
11958 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11959 fi
11960
11961 # We used to test for /lib/ld.so.1 and disable shared libraries on
11962 # powerpc, because MkLinux only supported shared libraries with the
11963 # GNU dynamic linker. Since this was broken with cross compilers,
11964 # most powerpc-linux boxes support dynamic linking these days and
11965 # people can always --disable-shared, the test was removed, and we
11966 # assume the GNU/Linux dynamic linker is in use.
11967 dynamic_linker='GNU/Linux ld.so'
11968 ;;
11969
11970 netbsd*)
11971 version_type=sunos
11972 need_lib_prefix=no
11973 need_version=no
11974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11977 dynamic_linker='NetBSD (a.out) ld.so'
11978 else
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 dynamic_linker='NetBSD ld.elf_so'
11982 fi
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=yes
11985 hardcode_into_libs=yes
11986 ;;
11987
11988 newsos6)
11989 version_type=linux
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991 shlibpath_var=LD_LIBRARY_PATH
11992 shlibpath_overrides_runpath=yes
11993 ;;
11994
11995 *nto* | *qnx*)
11996 version_type=qnx
11997 need_lib_prefix=no
11998 need_version=no
11999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000 soname_spec='${libname}${release}${shared_ext}$major'
12001 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=no
12003 hardcode_into_libs=yes
12004 dynamic_linker='ldqnx.so'
12005 ;;
12006
12007 openbsd*)
12008 version_type=sunos
12009 sys_lib_dlsearch_path_spec="/usr/lib"
12010 need_lib_prefix=no
12011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12012 case $host_os in
12013 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12014 *) need_version=no ;;
12015 esac
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12018 shlibpath_var=LD_LIBRARY_PATH
12019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12020 case $host_os in
12021 openbsd2.[89] | openbsd2.[89].*)
12022 shlibpath_overrides_runpath=no
12023 ;;
12024 *)
12025 shlibpath_overrides_runpath=yes
12026 ;;
12027 esac
12028 else
12029 shlibpath_overrides_runpath=yes
12030 fi
12031 ;;
12032
12033 os2*)
12034 libname_spec='$name'
12035 shrext_cmds=".dll"
12036 need_lib_prefix=no
12037 library_names_spec='$libname${shared_ext} $libname.a'
12038 dynamic_linker='OS/2 ld.exe'
12039 shlibpath_var=LIBPATH
12040 ;;
12041
12042 osf3* | osf4* | osf5*)
12043 version_type=osf
12044 need_lib_prefix=no
12045 need_version=no
12046 soname_spec='${libname}${release}${shared_ext}$major'
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12051 ;;
12052
12053 rdos*)
12054 dynamic_linker=no
12055 ;;
12056
12057 solaris*)
12058 version_type=linux
12059 need_lib_prefix=no
12060 need_version=no
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=yes
12065 hardcode_into_libs=yes
12066 # ldd complains unless libraries are executable
12067 postinstall_cmds='chmod +x $lib'
12068 ;;
12069
12070 sunos4*)
12071 version_type=sunos
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath=yes
12076 if test "$with_gnu_ld" = yes; then
12077 need_lib_prefix=no
12078 fi
12079 need_version=yes
12080 ;;
12081
12082 sysv4 | sysv4.3*)
12083 version_type=linux
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085 soname_spec='${libname}${release}${shared_ext}$major'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 case $host_vendor in
12088 sni)
12089 shlibpath_overrides_runpath=no
12090 need_lib_prefix=no
12091 runpath_var=LD_RUN_PATH
12092 ;;
12093 siemens)
12094 need_lib_prefix=no
12095 ;;
12096 motorola)
12097 need_lib_prefix=no
12098 need_version=no
12099 shlibpath_overrides_runpath=no
12100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12101 ;;
12102 esac
12103 ;;
12104
12105 sysv4*MP*)
12106 if test -d /usr/nec ;then
12107 version_type=linux
12108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12109 soname_spec='$libname${shared_ext}.$major'
12110 shlibpath_var=LD_LIBRARY_PATH
12111 fi
12112 ;;
12113
12114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12115 version_type=freebsd-elf
12116 need_lib_prefix=no
12117 need_version=no
12118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12119 soname_spec='${libname}${release}${shared_ext}$major'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=yes
12122 hardcode_into_libs=yes
12123 if test "$with_gnu_ld" = yes; then
12124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12125 else
12126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12127 case $host_os in
12128 sco3.2v5*)
12129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12130 ;;
12131 esac
12132 fi
12133 sys_lib_dlsearch_path_spec='/usr/lib'
12134 ;;
12135
12136 tpf*)
12137 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12138 version_type=linux
12139 need_lib_prefix=no
12140 need_version=no
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=no
12144 hardcode_into_libs=yes
12145 ;;
12146
12147 uts4*)
12148 version_type=linux
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12150 soname_spec='${libname}${release}${shared_ext}$major'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 ;;
12153
12154 # Shared libraries for VwWorks, >= 7 only at this stage
12155 # and (fpic) still incompatible with "large" code models
12156 # in a few configurations. Only for RTP mode in any case,
12157 # and upon explicit request at configure time.
12158 vxworks7*)
12159 dynamic_linker=no
12160 case ${with_multisubdir}-${enable_shared} in
12161 *large*)
12162 ;;
12163 *mrtp*-yes)
12164 version_type=linux
12165 need_lib_prefix=no
12166 need_version=no
12167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12168 soname_spec='${libname}${release}${shared_ext}$major'
12169 dynamic_linker="$host_os module_loader"
12170 ;;
12171 esac
12172 ;;
12173 *)
12174 dynamic_linker=no
12175 ;;
12176 esac
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12178 $as_echo "$dynamic_linker" >&6; }
12179 test "$dynamic_linker" = no && can_build_shared=no
12180
12181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12182 if test "$GCC" = yes; then
12183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12184 fi
12185
12186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12187 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12188 fi
12189 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12190 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12191 fi
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12285 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12286 hardcode_action=
12287 if test -n "$hardcode_libdir_flag_spec" ||
12288 test -n "$runpath_var" ||
12289 test "X$hardcode_automatic" = "Xyes" ; then
12290
12291 # We can hardcode non-existent directories.
12292 if test "$hardcode_direct" != no &&
12293 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12294 # have to relink, otherwise we might link with an installed library
12295 # when we should be linking with a yet-to-be-installed one
12296 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12297 test "$hardcode_minus_L" != no; then
12298 # Linking always hardcodes the temporary library directory.
12299 hardcode_action=relink
12300 else
12301 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12302 hardcode_action=immediate
12303 fi
12304 else
12305 # We cannot hardcode anything, or else we can only hardcode existing
12306 # directories.
12307 hardcode_action=unsupported
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12310 $as_echo "$hardcode_action" >&6; }
12311
12312 if test "$hardcode_action" = relink ||
12313 test "$inherit_rpath" = yes; then
12314 # Fast installation is not supported
12315 enable_fast_install=no
12316 elif test "$shlibpath_overrides_runpath" = yes ||
12317 test "$enable_shared" = no; then
12318 # Fast installation is not necessary
12319 enable_fast_install=needless
12320 fi
12321
12322
12323
12324
12325
12326
12327 if test "x$enable_dlopen" != xyes; then
12328 enable_dlopen=unknown
12329 enable_dlopen_self=unknown
12330 enable_dlopen_self_static=unknown
12331 else
12332 lt_cv_dlopen=no
12333 lt_cv_dlopen_libs=
12334
12335 case $host_os in
12336 beos*)
12337 lt_cv_dlopen="load_add_on"
12338 lt_cv_dlopen_libs=
12339 lt_cv_dlopen_self=yes
12340 ;;
12341
12342 mingw* | pw32* | cegcc*)
12343 lt_cv_dlopen="LoadLibrary"
12344 lt_cv_dlopen_libs=
12345 ;;
12346
12347 cygwin*)
12348 lt_cv_dlopen="dlopen"
12349 lt_cv_dlopen_libs=
12350 ;;
12351
12352 darwin*)
12353 # if libdl is installed we need to link against it
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12356 if ${ac_cv_lib_dl_dlopen+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 ac_check_lib_save_LIBS=$LIBS
12360 LIBS="-ldl $LIBS"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12367 #ifdef __cplusplus
12368 extern "C"
12369 #endif
12370 char dlopen ();
12371 int
12372 main ()
12373 {
12374 return dlopen ();
12375 ;
12376 return 0;
12377 }
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380 ac_cv_lib_dl_dlopen=yes
12381 else
12382 ac_cv_lib_dl_dlopen=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12390 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12392 else
12393
12394 lt_cv_dlopen="dyld"
12395 lt_cv_dlopen_libs=
12396 lt_cv_dlopen_self=yes
12397
12398 fi
12399
12400 ;;
12401
12402 *)
12403 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12404 if test "x$ac_cv_func_shl_load" = xyes; then :
12405 lt_cv_dlopen="shl_load"
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12408 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12409 if ${ac_cv_lib_dld_shl_load+:} false; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412 ac_check_lib_save_LIBS=$LIBS
12413 LIBS="-ldld $LIBS"
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12416
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 char shl_load ();
12424 int
12425 main ()
12426 {
12427 return shl_load ();
12428 ;
12429 return 0;
12430 }
12431 _ACEOF
12432 if ac_fn_c_try_link "$LINENO"; then :
12433 ac_cv_lib_dld_shl_load=yes
12434 else
12435 ac_cv_lib_dld_shl_load=no
12436 fi
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12440 fi
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12442 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12443 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12444 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12445 else
12446 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12447 if test "x$ac_cv_func_dlopen" = xyes; then :
12448 lt_cv_dlopen="dlopen"
12449 else
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12451 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12452 if ${ac_cv_lib_dl_dlopen+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 ac_check_lib_save_LIBS=$LIBS
12456 LIBS="-ldl $LIBS"
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12459
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12463 #ifdef __cplusplus
12464 extern "C"
12465 #endif
12466 char dlopen ();
12467 int
12468 main ()
12469 {
12470 return dlopen ();
12471 ;
12472 return 0;
12473 }
12474 _ACEOF
12475 if ac_fn_c_try_link "$LINENO"; then :
12476 ac_cv_lib_dl_dlopen=yes
12477 else
12478 ac_cv_lib_dl_dlopen=no
12479 fi
12480 rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12485 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12486 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12490 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12491 if ${ac_cv_lib_svld_dlopen+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-lsvld $LIBS"
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12502 #ifdef __cplusplus
12503 extern "C"
12504 #endif
12505 char dlopen ();
12506 int
12507 main ()
12508 {
12509 return dlopen ();
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12515 ac_cv_lib_svld_dlopen=yes
12516 else
12517 ac_cv_lib_svld_dlopen=no
12518 fi
12519 rm -f core conftest.err conftest.$ac_objext \
12520 conftest$ac_exeext conftest.$ac_ext
12521 LIBS=$ac_check_lib_save_LIBS
12522 fi
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12524 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12525 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12529 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12530 if ${ac_cv_lib_dld_dld_link+:} false; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_check_lib_save_LIBS=$LIBS
12534 LIBS="-ldld $LIBS"
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char dld_link ();
12545 int
12546 main ()
12547 {
12548 return dld_link ();
12549 ;
12550 return 0;
12551 }
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 ac_cv_lib_dld_dld_link=yes
12555 else
12556 ac_cv_lib_dld_dld_link=no
12557 fi
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12563 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12564 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12565 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12566 fi
12567
12568
12569 fi
12570
12571
12572 fi
12573
12574
12575 fi
12576
12577
12578 fi
12579
12580
12581 fi
12582
12583 ;;
12584 esac
12585
12586 if test "x$lt_cv_dlopen" != xno; then
12587 enable_dlopen=yes
12588 else
12589 enable_dlopen=no
12590 fi
12591
12592 case $lt_cv_dlopen in
12593 dlopen)
12594 save_CPPFLAGS="$CPPFLAGS"
12595 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12596
12597 save_LDFLAGS="$LDFLAGS"
12598 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12599
12600 save_LIBS="$LIBS"
12601 LIBS="$lt_cv_dlopen_libs $LIBS"
12602
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12604 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12605 if ${lt_cv_dlopen_self+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 if test "$cross_compiling" = yes; then :
12609 lt_cv_dlopen_self=cross
12610 else
12611 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12612 lt_status=$lt_dlunknown
12613 cat > conftest.$ac_ext <<_LT_EOF
12614 #line 12614 "configure"
12615 #include "confdefs.h"
12616
12617 #if HAVE_DLFCN_H
12618 #include <dlfcn.h>
12619 #endif
12620
12621 #include <stdio.h>
12622
12623 #ifdef RTLD_GLOBAL
12624 # define LT_DLGLOBAL RTLD_GLOBAL
12625 #else
12626 # ifdef DL_GLOBAL
12627 # define LT_DLGLOBAL DL_GLOBAL
12628 # else
12629 # define LT_DLGLOBAL 0
12630 # endif
12631 #endif
12632
12633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12634 find out it does not work in some platform. */
12635 #ifndef LT_DLLAZY_OR_NOW
12636 # ifdef RTLD_LAZY
12637 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12638 # else
12639 # ifdef DL_LAZY
12640 # define LT_DLLAZY_OR_NOW DL_LAZY
12641 # else
12642 # ifdef RTLD_NOW
12643 # define LT_DLLAZY_OR_NOW RTLD_NOW
12644 # else
12645 # ifdef DL_NOW
12646 # define LT_DLLAZY_OR_NOW DL_NOW
12647 # else
12648 # define LT_DLLAZY_OR_NOW 0
12649 # endif
12650 # endif
12651 # endif
12652 # endif
12653 #endif
12654
12655 /* When -fvisbility=hidden is used, assume the code has been annotated
12656 correspondingly for the symbols needed. */
12657 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12658 void fnord () __attribute__((visibility("default")));
12659 #endif
12660
12661 void fnord () { int i=42; }
12662 int main ()
12663 {
12664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665 int status = $lt_dlunknown;
12666
12667 if (self)
12668 {
12669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12670 else
12671 {
12672 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12673 else puts (dlerror ());
12674 }
12675 /* dlclose (self); */
12676 }
12677 else
12678 puts (dlerror ());
12679
12680 return status;
12681 }
12682 _LT_EOF
12683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12684 (eval $ac_link) 2>&5
12685 ac_status=$?
12686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12687 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12688 (./conftest; exit; ) >&5 2>/dev/null
12689 lt_status=$?
12690 case x$lt_status in
12691 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12692 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12693 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12694 esac
12695 else :
12696 # compilation failed
12697 lt_cv_dlopen_self=no
12698 fi
12699 fi
12700 rm -fr conftest*
12701
12702
12703 fi
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12705 $as_echo "$lt_cv_dlopen_self" >&6; }
12706
12707 if test "x$lt_cv_dlopen_self" = xyes; then
12708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12710 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12711 if ${lt_cv_dlopen_self_static+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 if test "$cross_compiling" = yes; then :
12715 lt_cv_dlopen_self_static=cross
12716 else
12717 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12718 lt_status=$lt_dlunknown
12719 cat > conftest.$ac_ext <<_LT_EOF
12720 #line 12720 "configure"
12721 #include "confdefs.h"
12722
12723 #if HAVE_DLFCN_H
12724 #include <dlfcn.h>
12725 #endif
12726
12727 #include <stdio.h>
12728
12729 #ifdef RTLD_GLOBAL
12730 # define LT_DLGLOBAL RTLD_GLOBAL
12731 #else
12732 # ifdef DL_GLOBAL
12733 # define LT_DLGLOBAL DL_GLOBAL
12734 # else
12735 # define LT_DLGLOBAL 0
12736 # endif
12737 #endif
12738
12739 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12740 find out it does not work in some platform. */
12741 #ifndef LT_DLLAZY_OR_NOW
12742 # ifdef RTLD_LAZY
12743 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12744 # else
12745 # ifdef DL_LAZY
12746 # define LT_DLLAZY_OR_NOW DL_LAZY
12747 # else
12748 # ifdef RTLD_NOW
12749 # define LT_DLLAZY_OR_NOW RTLD_NOW
12750 # else
12751 # ifdef DL_NOW
12752 # define LT_DLLAZY_OR_NOW DL_NOW
12753 # else
12754 # define LT_DLLAZY_OR_NOW 0
12755 # endif
12756 # endif
12757 # endif
12758 # endif
12759 #endif
12760
12761 /* When -fvisbility=hidden is used, assume the code has been annotated
12762 correspondingly for the symbols needed. */
12763 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12764 void fnord () __attribute__((visibility("default")));
12765 #endif
12766
12767 void fnord () { int i=42; }
12768 int main ()
12769 {
12770 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12771 int status = $lt_dlunknown;
12772
12773 if (self)
12774 {
12775 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12776 else
12777 {
12778 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12779 else puts (dlerror ());
12780 }
12781 /* dlclose (self); */
12782 }
12783 else
12784 puts (dlerror ());
12785
12786 return status;
12787 }
12788 _LT_EOF
12789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12790 (eval $ac_link) 2>&5
12791 ac_status=$?
12792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12793 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12794 (./conftest; exit; ) >&5 2>/dev/null
12795 lt_status=$?
12796 case x$lt_status in
12797 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12798 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12799 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12800 esac
12801 else :
12802 # compilation failed
12803 lt_cv_dlopen_self_static=no
12804 fi
12805 fi
12806 rm -fr conftest*
12807
12808
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12811 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12812 fi
12813
12814 CPPFLAGS="$save_CPPFLAGS"
12815 LDFLAGS="$save_LDFLAGS"
12816 LIBS="$save_LIBS"
12817 ;;
12818 esac
12819
12820 case $lt_cv_dlopen_self in
12821 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12822 *) enable_dlopen_self=unknown ;;
12823 esac
12824
12825 case $lt_cv_dlopen_self_static in
12826 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12827 *) enable_dlopen_self_static=unknown ;;
12828 esac
12829 fi
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847 striplib=
12848 old_striplib=
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12850 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12851 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12852 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12853 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12856 else
12857 # FIXME - insert some real tests, host_os isn't really good enough
12858 case $host_os in
12859 darwin*)
12860 if test -n "$STRIP" ; then
12861 striplib="$STRIP -x"
12862 old_striplib="$STRIP -S"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864 $as_echo "yes" >&6; }
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869 ;;
12870 *)
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 ;;
12874 esac
12875 fi
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888 # Report which library types will actually be built
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12890 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12892 $as_echo "$can_build_shared" >&6; }
12893
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12895 $as_echo_n "checking whether to build shared libraries... " >&6; }
12896 test "$can_build_shared" = "no" && enable_shared=no
12897
12898 # On AIX, shared libraries and static libraries use the same namespace, and
12899 # are all built from PIC.
12900 case $host_os in
12901 aix3*)
12902 test "$enable_shared" = yes && enable_static=no
12903 if test -n "$RANLIB"; then
12904 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12905 postinstall_cmds='$RANLIB $lib'
12906 fi
12907 ;;
12908
12909 aix[4-9]*)
12910 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12911 test "$enable_shared" = yes && enable_static=no
12912 fi
12913 ;;
12914 esac
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12916 $as_echo "$enable_shared" >&6; }
12917
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12919 $as_echo_n "checking whether to build static libraries... " >&6; }
12920 # Make sure either enable_shared or enable_static is yes.
12921 test "$enable_shared" = yes || enable_static=yes
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12923 $as_echo "$enable_static" >&6; }
12924
12925
12926
12927
12928 fi
12929 ac_ext=c
12930 ac_cpp='$CPP $CPPFLAGS'
12931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
12935 CC="$lt_save_CC"
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949 ac_config_commands="$ac_config_commands libtool"
12950
12951
12952
12953
12954 # Only expand once:
12955
12956
12957
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12959 $as_echo_n "checking for library containing bind... " >&6; }
12960 if ${ac_cv_search_bind+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 ac_func_search_save_LIBS=$LIBS
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966
12967 /* Override any GCC internal prototype to avoid an error.
12968 Use char because int might match the return type of a GCC
12969 builtin and then its argument prototype would still apply. */
12970 #ifdef __cplusplus
12971 extern "C"
12972 #endif
12973 char bind ();
12974 int
12975 main ()
12976 {
12977 return bind ();
12978 ;
12979 return 0;
12980 }
12981 _ACEOF
12982 for ac_lib in '' socket; do
12983 if test -z "$ac_lib"; then
12984 ac_res="none required"
12985 else
12986 ac_res=-l$ac_lib
12987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12988 fi
12989 if ac_fn_c_try_link "$LINENO"; then :
12990 ac_cv_search_bind=$ac_res
12991 fi
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext
12994 if ${ac_cv_search_bind+:} false; then :
12995 break
12996 fi
12997 done
12998 if ${ac_cv_search_bind+:} false; then :
12999
13000 else
13001 ac_cv_search_bind=no
13002 fi
13003 rm conftest.$ac_ext
13004 LIBS=$ac_func_search_save_LIBS
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
13007 $as_echo "$ac_cv_search_bind" >&6; }
13008 ac_res=$ac_cv_search_bind
13009 if test "$ac_res" != no; then :
13010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13011
13012 fi
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13015 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13016 if ${ac_cv_search_gethostbyname+:} false; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019 ac_func_search_save_LIBS=$LIBS
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022
13023 /* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13026 #ifdef __cplusplus
13027 extern "C"
13028 #endif
13029 char gethostbyname ();
13030 int
13031 main ()
13032 {
13033 return gethostbyname ();
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 for ac_lib in '' nsl; do
13039 if test -z "$ac_lib"; then
13040 ac_res="none required"
13041 else
13042 ac_res=-l$ac_lib
13043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13044 fi
13045 if ac_fn_c_try_link "$LINENO"; then :
13046 ac_cv_search_gethostbyname=$ac_res
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext
13050 if ${ac_cv_search_gethostbyname+:} false; then :
13051 break
13052 fi
13053 done
13054 if ${ac_cv_search_gethostbyname+:} false; then :
13055
13056 else
13057 ac_cv_search_gethostbyname=no
13058 fi
13059 rm conftest.$ac_ext
13060 LIBS=$ac_func_search_save_LIBS
13061 fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13063 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13064 ac_res=$ac_cv_search_gethostbyname
13065 if test "$ac_res" != no; then :
13066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13067
13068 fi
13069
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
13071 $as_echo_n "checking for library containing fabs... " >&6; }
13072 if ${ac_cv_search_fabs+:} false; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 ac_func_search_save_LIBS=$LIBS
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char fabs ();
13086 int
13087 main ()
13088 {
13089 return fabs ();
13090 ;
13091 return 0;
13092 }
13093 _ACEOF
13094 for ac_lib in '' m; do
13095 if test -z "$ac_lib"; then
13096 ac_res="none required"
13097 else
13098 ac_res=-l$ac_lib
13099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13100 fi
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_search_fabs=$ac_res
13103 fi
13104 rm -f core conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext
13106 if ${ac_cv_search_fabs+:} false; then :
13107 break
13108 fi
13109 done
13110 if ${ac_cv_search_fabs+:} false; then :
13111
13112 else
13113 ac_cv_search_fabs=no
13114 fi
13115 rm conftest.$ac_ext
13116 LIBS=$ac_func_search_save_LIBS
13117 fi
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
13119 $as_echo "$ac_cv_search_fabs" >&6; }
13120 ac_res=$ac_cv_search_fabs
13121 if test "$ac_res" != no; then :
13122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13123
13124 fi
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
13127 $as_echo_n "checking for library containing log2... " >&6; }
13128 if ${ac_cv_search_log2+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 ac_func_search_save_LIBS=$LIBS
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char log2 ();
13142 int
13143 main ()
13144 {
13145 return log2 ();
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 for ac_lib in '' m; do
13151 if test -z "$ac_lib"; then
13152 ac_res="none required"
13153 else
13154 ac_res=-l$ac_lib
13155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13156 fi
13157 if ac_fn_c_try_link "$LINENO"; then :
13158 ac_cv_search_log2=$ac_res
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext
13162 if ${ac_cv_search_log2+:} false; then :
13163 break
13164 fi
13165 done
13166 if ${ac_cv_search_log2+:} false; then :
13167
13168 else
13169 ac_cv_search_log2=no
13170 fi
13171 rm conftest.$ac_ext
13172 LIBS=$ac_func_search_save_LIBS
13173 fi
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
13175 $as_echo "$ac_cv_search_log2" >&6; }
13176 ac_res=$ac_cv_search_log2
13177 if test "$ac_res" != no; then :
13178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13179
13180 fi
13181
13182
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13184 $as_echo_n "checking for library containing dlopen... " >&6; }
13185 if ${ac_cv_search_dlopen+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187 else
13188 ac_func_search_save_LIBS=$LIBS
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char dlopen ();
13199 int
13200 main ()
13201 {
13202 return dlopen ();
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 for ac_lib in '' dl; do
13208 if test -z "$ac_lib"; then
13209 ac_res="none required"
13210 else
13211 ac_res=-l$ac_lib
13212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13213 fi
13214 if ac_fn_c_try_link "$LINENO"; then :
13215 ac_cv_search_dlopen=$ac_res
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext
13219 if ${ac_cv_search_dlopen+:} false; then :
13220 break
13221 fi
13222 done
13223 if ${ac_cv_search_dlopen+:} false; then :
13224
13225 else
13226 ac_cv_search_dlopen=no
13227 fi
13228 rm conftest.$ac_ext
13229 LIBS=$ac_func_search_save_LIBS
13230 fi
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13232 $as_echo "$ac_cv_search_dlopen" >&6; }
13233 ac_res=$ac_cv_search_dlopen
13234 if test "$ac_res" != no; then :
13235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13236
13237 fi
13238
13239 if test "${ac_cv_search_dlopen}" = "none required" || test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13240
13241 pkg_failed=no
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13243 $as_echo_n "checking for sdl2... " >&6; }
13244
13245 if test -n "$SDL_CFLAGS"; then
13246 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13247 elif test -n "$PKG_CONFIG"; then
13248 if test -n "$PKG_CONFIG" && \
13249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13250 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13251 ac_status=$?
13252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13253 test $ac_status = 0; }; then
13254 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13255 test "x$?" != "x0" && pkg_failed=yes
13256 else
13257 pkg_failed=yes
13258 fi
13259 else
13260 pkg_failed=untried
13261 fi
13262 if test -n "$SDL_LIBS"; then
13263 pkg_cv_SDL_LIBS="$SDL_LIBS"
13264 elif test -n "$PKG_CONFIG"; then
13265 if test -n "$PKG_CONFIG" && \
13266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13267 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13268 ac_status=$?
13269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13270 test $ac_status = 0; }; then
13271 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13272 test "x$?" != "x0" && pkg_failed=yes
13273 else
13274 pkg_failed=yes
13275 fi
13276 else
13277 pkg_failed=untried
13278 fi
13279
13280 if test $pkg_failed = no; then
13281 pkg_save_LDFLAGS="$LDFLAGS"
13282 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285
13286 int
13287 main ()
13288 {
13289
13290 ;
13291 return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_link "$LINENO"; then :
13295
13296 else
13297 pkg_failed=yes
13298 fi
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13301 LDFLAGS=$pkg_save_LDFLAGS
13302 fi
13303
13304
13305
13306 if test $pkg_failed = yes; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309
13310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13311 _pkg_short_errors_supported=yes
13312 else
13313 _pkg_short_errors_supported=no
13314 fi
13315 if test $_pkg_short_errors_supported = yes; then
13316 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13317 else
13318 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13319 fi
13320 # Put the nasty error message in config.log where it belongs
13321 echo "$SDL_PKG_ERRORS" >&5
13322
13323
13324
13325 pkg_failed=no
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13327 $as_echo_n "checking for sdl... " >&6; }
13328
13329 if test -n "$SDL_CFLAGS"; then
13330 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13331 elif test -n "$PKG_CONFIG"; then
13332 if test -n "$PKG_CONFIG" && \
13333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13334 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13335 ac_status=$?
13336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337 test $ac_status = 0; }; then
13338 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13339 test "x$?" != "x0" && pkg_failed=yes
13340 else
13341 pkg_failed=yes
13342 fi
13343 else
13344 pkg_failed=untried
13345 fi
13346 if test -n "$SDL_LIBS"; then
13347 pkg_cv_SDL_LIBS="$SDL_LIBS"
13348 elif test -n "$PKG_CONFIG"; then
13349 if test -n "$PKG_CONFIG" && \
13350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13351 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13352 ac_status=$?
13353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13354 test $ac_status = 0; }; then
13355 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13356 test "x$?" != "x0" && pkg_failed=yes
13357 else
13358 pkg_failed=yes
13359 fi
13360 else
13361 pkg_failed=untried
13362 fi
13363
13364 if test $pkg_failed = no; then
13365 pkg_save_LDFLAGS="$LDFLAGS"
13366 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369
13370 int
13371 main ()
13372 {
13373
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_link "$LINENO"; then :
13379
13380 else
13381 pkg_failed=yes
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13385 LDFLAGS=$pkg_save_LDFLAGS
13386 fi
13387
13388
13389
13390 if test $pkg_failed = yes; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13393
13394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13395 _pkg_short_errors_supported=yes
13396 else
13397 _pkg_short_errors_supported=no
13398 fi
13399 if test $_pkg_short_errors_supported = yes; then
13400 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13401 else
13402 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13403 fi
13404 # Put the nasty error message in config.log where it belongs
13405 echo "$SDL_PKG_ERRORS" >&5
13406
13407 :
13408 elif test $pkg_failed = untried; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13411 :
13412 else
13413 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13414 SDL_LIBS=$pkg_cv_SDL_LIBS
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13416 $as_echo "yes" >&6; }
13417 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13418
13419 fi
13420
13421 elif test $pkg_failed = untried; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13424
13425
13426 pkg_failed=no
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13428 $as_echo_n "checking for sdl... " >&6; }
13429
13430 if test -n "$SDL_CFLAGS"; then
13431 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13432 elif test -n "$PKG_CONFIG"; then
13433 if test -n "$PKG_CONFIG" && \
13434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13435 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13436 ac_status=$?
13437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13438 test $ac_status = 0; }; then
13439 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13440 test "x$?" != "x0" && pkg_failed=yes
13441 else
13442 pkg_failed=yes
13443 fi
13444 else
13445 pkg_failed=untried
13446 fi
13447 if test -n "$SDL_LIBS"; then
13448 pkg_cv_SDL_LIBS="$SDL_LIBS"
13449 elif test -n "$PKG_CONFIG"; then
13450 if test -n "$PKG_CONFIG" && \
13451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13452 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13453 ac_status=$?
13454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13455 test $ac_status = 0; }; then
13456 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13457 test "x$?" != "x0" && pkg_failed=yes
13458 else
13459 pkg_failed=yes
13460 fi
13461 else
13462 pkg_failed=untried
13463 fi
13464
13465 if test $pkg_failed = no; then
13466 pkg_save_LDFLAGS="$LDFLAGS"
13467 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470
13471 int
13472 main ()
13473 {
13474
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_link "$LINENO"; then :
13480
13481 else
13482 pkg_failed=yes
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LDFLAGS=$pkg_save_LDFLAGS
13487 fi
13488
13489
13490
13491 if test $pkg_failed = yes; then
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493 $as_echo "no" >&6; }
13494
13495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13496 _pkg_short_errors_supported=yes
13497 else
13498 _pkg_short_errors_supported=no
13499 fi
13500 if test $_pkg_short_errors_supported = yes; then
13501 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13502 else
13503 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13504 fi
13505 # Put the nasty error message in config.log where it belongs
13506 echo "$SDL_PKG_ERRORS" >&5
13507
13508 :
13509 elif test $pkg_failed = untried; then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13511 $as_echo "no" >&6; }
13512 :
13513 else
13514 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13515 SDL_LIBS=$pkg_cv_SDL_LIBS
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13517 $as_echo "yes" >&6; }
13518 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13519
13520 fi
13521
13522 else
13523 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13524 SDL_LIBS=$pkg_cv_SDL_LIBS
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13526 $as_echo "yes" >&6; }
13527 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13528
13529 fi
13530 if test -n "$SDL_CFLAGS"; then :
13531 if test "$ac_cv_search_dlopen" = no; then :
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13533 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13534
13535 fi
13536
13537 fi
13538 else
13539 SDL_CFLAGS=
13540 fi
13541 SDL_LIBS=
13542
13543
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13545 $as_echo_n "checking for cygwin... " >&6; }
13546 if ${sim_cv_os_cygwin+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551
13552 #ifdef __CYGWIN__
13553 lose
13554 #endif
13555 _ACEOF
13556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13557 $EGREP "lose" >/dev/null 2>&1; then :
13558 sim_cv_os_cygwin=yes
13559 else
13560 sim_cv_os_cygwin=no
13561 fi
13562 rm -f conftest*
13563
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13566 $as_echo "$sim_cv_os_cygwin" >&6; }
13567
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13569 $as_echo_n "checking for library containing tgetent... " >&6; }
13570 if ${ac_cv_search_tgetent+:} false; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 ac_func_search_save_LIBS=$LIBS
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char tgetent ();
13584 int
13585 main ()
13586 {
13587 return tgetent ();
13588 ;
13589 return 0;
13590 }
13591 _ACEOF
13592 for ac_lib in '' termcap tinfo curses ncurses; do
13593 if test -z "$ac_lib"; then
13594 ac_res="none required"
13595 else
13596 ac_res=-l$ac_lib
13597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13598 fi
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 ac_cv_search_tgetent=$ac_res
13601 fi
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext
13604 if ${ac_cv_search_tgetent+:} false; then :
13605 break
13606 fi
13607 done
13608 if ${ac_cv_search_tgetent+:} false; then :
13609
13610 else
13611 ac_cv_search_tgetent=no
13612 fi
13613 rm conftest.$ac_ext
13614 LIBS=$ac_func_search_save_LIBS
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13617 $as_echo "$ac_cv_search_tgetent" >&6; }
13618 ac_res=$ac_cv_search_tgetent
13619 if test "$ac_res" != no; then :
13620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13621 TERMCAP_LIB=$ac_cv_search_tgetent
13622 else
13623 TERMCAP_LIB=""
13624 fi
13625
13626 if test x$sim_cv_os_cygwin = xyes; then
13627 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13628 fi
13629
13630
13631 if test -r ../readline/Makefile; then
13632 READLINE_LIB=../readline/readline/libreadline.a
13633 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13636 $as_echo_n "checking for readline in -lreadline... " >&6; }
13637 if ${ac_cv_lib_readline_readline+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 ac_check_lib_save_LIBS=$LIBS
13641 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644
13645 /* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
13648 #ifdef __cplusplus
13649 extern "C"
13650 #endif
13651 char readline ();
13652 int
13653 main ()
13654 {
13655 return readline ();
13656 ;
13657 return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_link "$LINENO"; then :
13661 ac_cv_lib_readline_readline=yes
13662 else
13663 ac_cv_lib_readline_readline=no
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
13667 LIBS=$ac_check_lib_save_LIBS
13668 fi
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13670 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13671 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13672 READLINE_LIB=-lreadline
13673 else
13674 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13675 fi
13676
13677 READLINE_CFLAGS=
13678 fi
13679
13680
13681
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13683 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13684 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #include <unistd.h>
13690 int
13691 main ()
13692 {
13693 extern int getopt (int, char *const*, const char *);
13694 ;
13695 return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_c_try_compile "$LINENO"; then :
13699 sim_cv_decl_getopt_unistd_h=yes
13700 else
13701 sim_cv_decl_getopt_unistd_h=no
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13704 fi
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13707 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13708 if test $sim_cv_decl_getopt_unistd_h = yes; then
13709
13710 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13711
13712 fi
13713
13714
13715
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13717 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13718 # Check whether --enable-maintainer-mode was given.
13719 if test "${enable_maintainer_mode+set}" = set; then :
13720 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13721 else
13722 USE_MAINTAINER_MODE=no
13723 fi
13724
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13726 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13727 if test $USE_MAINTAINER_MODE = yes; then
13728 MAINTAINER_MODE_TRUE=
13729 MAINTAINER_MODE_FALSE='#'
13730 else
13731 MAINTAINER_MODE_TRUE='#'
13732 MAINTAINER_MODE_FALSE=
13733 fi
13734
13735 MAINT=$MAINTAINER_MODE_TRUE
13736
13737
13738 am__api_version='1.15'
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13741 $as_echo_n "checking whether build environment is sane... " >&6; }
13742 # Reject unsafe characters in $srcdir or the absolute working directory
13743 # name. Accept space and tab only in the latter.
13744 am_lf='
13745 '
13746 case `pwd` in
13747 *[\\\"\#\$\&\'\`$am_lf]*)
13748 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13749 esac
13750 case $srcdir in
13751 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13752 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13753 esac
13754
13755 # Do 'set' in a subshell so we don't clobber the current shell's
13756 # arguments. Must try -L first in case configure is actually a
13757 # symlink; some systems play weird games with the mod time of symlinks
13758 # (eg FreeBSD returns the mod time of the symlink's containing
13759 # directory).
13760 if (
13761 am_has_slept=no
13762 for am_try in 1 2; do
13763 echo "timestamp, slept: $am_has_slept" > conftest.file
13764 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13765 if test "$*" = "X"; then
13766 # -L didn't work.
13767 set X `ls -t "$srcdir/configure" conftest.file`
13768 fi
13769 if test "$*" != "X $srcdir/configure conftest.file" \
13770 && test "$*" != "X conftest.file $srcdir/configure"; then
13771
13772 # If neither matched, then we have a broken ls. This can happen
13773 # if, for instance, CONFIG_SHELL is bash and it inherits a
13774 # broken ls alias from the environment. This has actually
13775 # happened. Such a system could not be considered "sane".
13776 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13777 alias in your environment" "$LINENO" 5
13778 fi
13779 if test "$2" = conftest.file || test $am_try -eq 2; then
13780 break
13781 fi
13782 # Just in case.
13783 sleep 1
13784 am_has_slept=yes
13785 done
13786 test "$2" = conftest.file
13787 )
13788 then
13789 # Ok.
13790 :
13791 else
13792 as_fn_error $? "newly created file is older than distributed files!
13793 Check your system clock" "$LINENO" 5
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 $as_echo "yes" >&6; }
13797 # If we didn't sleep, we still need to ensure time stamps of config.status and
13798 # generated files are strictly newer.
13799 am_sleep_pid=
13800 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13801 ( sleep 1 ) &
13802 am_sleep_pid=$!
13803 fi
13804
13805 rm -f conftest.file
13806
13807 if test x"${MISSING+set}" != xset; then
13808 case $am_aux_dir in
13809 *\ * | *\ *)
13810 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13811 *)
13812 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13813 esac
13814 fi
13815 # Use eval to expand $SHELL
13816 if eval "$MISSING --is-lightweight"; then
13817 am_missing_run="$MISSING "
13818 else
13819 am_missing_run=
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13821 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13822 fi
13823
13824 if test x"${install_sh+set}" != xset; then
13825 case $am_aux_dir in
13826 *\ * | *\ *)
13827 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13828 *)
13829 install_sh="\${SHELL} $am_aux_dir/install-sh"
13830 esac
13831 fi
13832
13833 # Installed binaries are usually stripped using 'strip' when the user
13834 # run "make install-strip". However 'strip' might not be the right
13835 # tool to use in cross-compilation environments, therefore Automake
13836 # will honor the 'STRIP' environment variable to overrule this program.
13837 if test "$cross_compiling" != no; then
13838 if test -n "$ac_tool_prefix"; then
13839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13840 set dummy ${ac_tool_prefix}strip; ac_word=$2
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13842 $as_echo_n "checking for $ac_word... " >&6; }
13843 if ${ac_cv_prog_STRIP+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 if test -n "$STRIP"; then
13847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13848 else
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13851 do
13852 IFS=$as_save_IFS
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13858 break 2
13859 fi
13860 done
13861 done
13862 IFS=$as_save_IFS
13863
13864 fi
13865 fi
13866 STRIP=$ac_cv_prog_STRIP
13867 if test -n "$STRIP"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13869 $as_echo "$STRIP" >&6; }
13870 else
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13872 $as_echo "no" >&6; }
13873 fi
13874
13875
13876 fi
13877 if test -z "$ac_cv_prog_STRIP"; then
13878 ac_ct_STRIP=$STRIP
13879 # Extract the first word of "strip", so it can be a program name with args.
13880 set dummy strip; ac_word=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 if test -n "$ac_ct_STRIP"; then
13887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13888 else
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890 for as_dir in $PATH
13891 do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for ac_exec_ext in '' $ac_executable_extensions; do
13895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_prog_ac_ct_STRIP="strip"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13898 break 2
13899 fi
13900 done
13901 done
13902 IFS=$as_save_IFS
13903
13904 fi
13905 fi
13906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13907 if test -n "$ac_ct_STRIP"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13909 $as_echo "$ac_ct_STRIP" >&6; }
13910 else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13913 fi
13914
13915 if test "x$ac_ct_STRIP" = x; then
13916 STRIP=":"
13917 else
13918 case $cross_compiling:$ac_tool_warned in
13919 yes:)
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13922 ac_tool_warned=yes ;;
13923 esac
13924 STRIP=$ac_ct_STRIP
13925 fi
13926 else
13927 STRIP="$ac_cv_prog_STRIP"
13928 fi
13929
13930 fi
13931 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13932
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13934 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13935 if test -z "$MKDIR_P"; then
13936 if ${ac_cv_path_mkdir+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13941 do
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_prog in mkdir gmkdir; do
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13947 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13948 'mkdir (GNU coreutils) '* | \
13949 'mkdir (coreutils) '* | \
13950 'mkdir (fileutils) '4.1*)
13951 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13952 break 3;;
13953 esac
13954 done
13955 done
13956 done
13957 IFS=$as_save_IFS
13958
13959 fi
13960
13961 test -d ./--version && rmdir ./--version
13962 if test "${ac_cv_path_mkdir+set}" = set; then
13963 MKDIR_P="$ac_cv_path_mkdir -p"
13964 else
13965 # As a last resort, use the slow shell script. Don't cache a
13966 # value for MKDIR_P within a source directory, because that will
13967 # break other packages using the cache if that directory is
13968 # removed, or if the value is a relative name.
13969 MKDIR_P="$ac_install_sh -d"
13970 fi
13971 fi
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13973 $as_echo "$MKDIR_P" >&6; }
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13977 set x ${MAKE-make}
13978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13979 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 cat >conftest.make <<\_ACEOF
13983 SHELL = /bin/sh
13984 all:
13985 @echo '@@@%%%=$(MAKE)=@@@%%%'
13986 _ACEOF
13987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13989 *@@@%%%=?*=@@@%%%*)
13990 eval ac_cv_prog_make_${ac_make}_set=yes;;
13991 *)
13992 eval ac_cv_prog_make_${ac_make}_set=no;;
13993 esac
13994 rm -f conftest.make
13995 fi
13996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13998 $as_echo "yes" >&6; }
13999 SET_MAKE=
14000 else
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14003 SET_MAKE="MAKE=${MAKE-make}"
14004 fi
14005
14006 rm -rf .tst 2>/dev/null
14007 mkdir .tst 2>/dev/null
14008 if test -d .tst; then
14009 am__leading_dot=.
14010 else
14011 am__leading_dot=_
14012 fi
14013 rmdir .tst 2>/dev/null
14014
14015 DEPDIR="${am__leading_dot}deps"
14016
14017 ac_config_commands="$ac_config_commands depfiles"
14018
14019
14020 am_make=${MAKE-make}
14021 cat > confinc << 'END'
14022 am__doit:
14023 @echo this is the am__doit target
14024 .PHONY: am__doit
14025 END
14026 # If we don't find an include directive, just comment out the code.
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14028 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14029 am__include="#"
14030 am__quote=
14031 _am_result=none
14032 # First try GNU make style include.
14033 echo "include confinc" > confmf
14034 # Ignore all kinds of additional output from 'make'.
14035 case `$am_make -s -f confmf 2> /dev/null` in #(
14036 *the\ am__doit\ target*)
14037 am__include=include
14038 am__quote=
14039 _am_result=GNU
14040 ;;
14041 esac
14042 # Now try BSD make style include.
14043 if test "$am__include" = "#"; then
14044 echo '.include "confinc"' > confmf
14045 case `$am_make -s -f confmf 2> /dev/null` in #(
14046 *the\ am__doit\ target*)
14047 am__include=.include
14048 am__quote="\""
14049 _am_result=BSD
14050 ;;
14051 esac
14052 fi
14053
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14056 $as_echo "$_am_result" >&6; }
14057 rm -f confinc confmf
14058
14059 # Check whether --enable-dependency-tracking was given.
14060 if test "${enable_dependency_tracking+set}" = set; then :
14061 enableval=$enable_dependency_tracking;
14062 fi
14063
14064 if test "x$enable_dependency_tracking" != xno; then
14065 am_depcomp="$ac_aux_dir/depcomp"
14066 AMDEPBACKSLASH='\'
14067 am__nodep='_no'
14068 fi
14069 if test "x$enable_dependency_tracking" != xno; then
14070 AMDEP_TRUE=
14071 AMDEP_FALSE='#'
14072 else
14073 AMDEP_TRUE='#'
14074 AMDEP_FALSE=
14075 fi
14076
14077
14078 # Check whether --enable-silent-rules was given.
14079 if test "${enable_silent_rules+set}" = set; then :
14080 enableval=$enable_silent_rules;
14081 fi
14082
14083 case $enable_silent_rules in # (((
14084 yes) AM_DEFAULT_VERBOSITY=0;;
14085 no) AM_DEFAULT_VERBOSITY=1;;
14086 *) AM_DEFAULT_VERBOSITY=1;;
14087 esac
14088 am_make=${MAKE-make}
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14090 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14091 if ${am_cv_make_support_nested_variables+:} false; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 if $as_echo 'TRUE=$(BAR$(V))
14095 BAR0=false
14096 BAR1=true
14097 V=1
14098 am__doit:
14099 @$(TRUE)
14100 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14101 am_cv_make_support_nested_variables=yes
14102 else
14103 am_cv_make_support_nested_variables=no
14104 fi
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14107 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14108 if test $am_cv_make_support_nested_variables = yes; then
14109 AM_V='$(V)'
14110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14111 else
14112 AM_V=$AM_DEFAULT_VERBOSITY
14113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14114 fi
14115 AM_BACKSLASH='\'
14116
14117 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14119 # is not polluted with repeated "-I."
14120 am__isrc=' -I$(srcdir)'
14121 # test to see if srcdir already configured
14122 if test -f $srcdir/config.status; then
14123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14124 fi
14125 fi
14126
14127 # test whether we have cygpath
14128 if test -z "$CYGPATH_W"; then
14129 if (cygpath --version) >/dev/null 2>/dev/null; then
14130 CYGPATH_W='cygpath -w'
14131 else
14132 CYGPATH_W=echo
14133 fi
14134 fi
14135
14136
14137 # Define the identity of the package.
14138 PACKAGE='sim'
14139 VERSION='0'
14140
14141
14142 cat >>confdefs.h <<_ACEOF
14143 #define PACKAGE "$PACKAGE"
14144 _ACEOF
14145
14146
14147 cat >>confdefs.h <<_ACEOF
14148 #define VERSION "$VERSION"
14149 _ACEOF
14150
14151 # Some tools Automake needs.
14152
14153 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14154
14155
14156 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14157
14158
14159 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14160
14161
14162 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14163
14164
14165 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14166
14167 # For better backward compatibility. To be removed once Automake 1.9.x
14168 # dies out for good. For more background, see:
14169 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14170 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14171 mkdir_p='$(MKDIR_P)'
14172
14173 # We need awk for the "check" target (and possibly the TAP driver). The
14174 # system "awk" is bad on some platforms.
14175 # Always define AMTAR for backward compatibility. Yes, it's still used
14176 # in the wild :-( We should find a proper way to deprecate it ...
14177 AMTAR='$${TAR-tar}'
14178
14179
14180 # We'll loop over all known methods to create a tar archive until one works.
14181 _am_tools='gnutar pax cpio none'
14182
14183 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
14184
14185
14186
14187
14188
14189 depcc="$CC" am_compiler_list=
14190
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14192 $as_echo_n "checking dependency style of $depcc... " >&6; }
14193 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14197 # We make a subdir and do the tests there. Otherwise we can end up
14198 # making bogus files that we don't know about and never remove. For
14199 # instance it was reported that on HP-UX the gcc test will end up
14200 # making a dummy file named 'D' -- because '-MD' means "put the output
14201 # in D".
14202 rm -rf conftest.dir
14203 mkdir conftest.dir
14204 # Copy depcomp to subdir because otherwise we won't find it if we're
14205 # using a relative directory.
14206 cp "$am_depcomp" conftest.dir
14207 cd conftest.dir
14208 # We will build objects and dependencies in a subdirectory because
14209 # it helps to detect inapplicable dependency modes. For instance
14210 # both Tru64's cc and ICC support -MD to output dependencies as a
14211 # side effect of compilation, but ICC will put the dependencies in
14212 # the current directory while Tru64 will put them in the object
14213 # directory.
14214 mkdir sub
14215
14216 am_cv_CC_dependencies_compiler_type=none
14217 if test "$am_compiler_list" = ""; then
14218 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14219 fi
14220 am__universal=false
14221 case " $depcc " in #(
14222 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14223 esac
14224
14225 for depmode in $am_compiler_list; do
14226 # Setup a source with many dependencies, because some compilers
14227 # like to wrap large dependency lists on column 80 (with \), and
14228 # we should not choose a depcomp mode which is confused by this.
14229 #
14230 # We need to recreate these files for each test, as the compiler may
14231 # overwrite some of them when testing with obscure command lines.
14232 # This happens at least with the AIX C compiler.
14233 : > sub/conftest.c
14234 for i in 1 2 3 4 5 6; do
14235 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14236 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14237 # Solaris 10 /bin/sh.
14238 echo '/* dummy */' > sub/conftst$i.h
14239 done
14240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14241
14242 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14243 # mode. It turns out that the SunPro C++ compiler does not properly
14244 # handle '-M -o', and we need to detect this. Also, some Intel
14245 # versions had trouble with output in subdirs.
14246 am__obj=sub/conftest.${OBJEXT-o}
14247 am__minus_obj="-o $am__obj"
14248 case $depmode in
14249 gcc)
14250 # This depmode causes a compiler race in universal mode.
14251 test "$am__universal" = false || continue
14252 ;;
14253 nosideeffect)
14254 # After this tag, mechanisms are not by side-effect, so they'll
14255 # only be used when explicitly requested.
14256 if test "x$enable_dependency_tracking" = xyes; then
14257 continue
14258 else
14259 break
14260 fi
14261 ;;
14262 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14263 # This compiler won't grok '-c -o', but also, the minuso test has
14264 # not run yet. These depmodes are late enough in the game, and
14265 # so weak that their functioning should not be impacted.
14266 am__obj=conftest.${OBJEXT-o}
14267 am__minus_obj=
14268 ;;
14269 none) break ;;
14270 esac
14271 if depmode=$depmode \
14272 source=sub/conftest.c object=$am__obj \
14273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14274 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14275 >/dev/null 2>conftest.err &&
14276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14278 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14280 # icc doesn't choke on unknown options, it will just issue warnings
14281 # or remarks (even with -Werror). So we grep stderr for any message
14282 # that says an option was ignored or not supported.
14283 # When given -MP, icc 7.0 and 7.1 complain thusly:
14284 # icc: Command line warning: ignoring option '-M'; no argument required
14285 # The diagnosis changed in icc 8.0:
14286 # icc: Command line remark: option '-MP' not supported
14287 if (grep 'ignoring option' conftest.err ||
14288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14289 am_cv_CC_dependencies_compiler_type=$depmode
14290 break
14291 fi
14292 fi
14293 done
14294
14295 cd ..
14296 rm -rf conftest.dir
14297 else
14298 am_cv_CC_dependencies_compiler_type=none
14299 fi
14300
14301 fi
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14303 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14304 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14305
14306 if
14307 test "x$enable_dependency_tracking" != xno \
14308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14309 am__fastdepCC_TRUE=
14310 am__fastdepCC_FALSE='#'
14311 else
14312 am__fastdepCC_TRUE='#'
14313 am__fastdepCC_FALSE=
14314 fi
14315
14316
14317
14318 # POSIX will say in a future version that running "rm -f" with no argument
14319 # is OK; and we want to be able to make that assumption in our Makefile
14320 # recipes. So use an aggressive probe to check that the usage we want is
14321 # actually supported "in the wild" to an acceptable degree.
14322 # See automake bug#10828.
14323 # To make any issue more visible, cause the running configure to be aborted
14324 # by default if the 'rm' program in use doesn't match our expectations; the
14325 # user can still override this though.
14326 if rm -f && rm -fr && rm -rf; then : OK; else
14327 cat >&2 <<'END'
14328 Oops!
14329
14330 Your 'rm' program seems unable to run without file operands specified
14331 on the command line, even when the '-f' option is present. This is contrary
14332 to the behaviour of most rm programs out there, and not conforming with
14333 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14334
14335 Please tell bug-automake@gnu.org about your system, including the value
14336 of your $PATH and any error possibly output before this message. This
14337 can help us improve future automake versions.
14338
14339 END
14340 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14341 echo 'Configuration will proceed anyway, since you have set the' >&2
14342 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14343 echo >&2
14344 else
14345 cat >&2 <<'END'
14346 Aborting the configuration process, to ensure you take notice of the issue.
14347
14348 You can download and install GNU coreutils to get an 'rm' implementation
14349 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14350
14351 If you want to complete the configuration process using your problematic
14352 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14353 to "yes", and re-run configure.
14354
14355 END
14356 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14357 fi
14358 fi
14359
14360 # Check whether --enable-silent-rules was given.
14361 if test "${enable_silent_rules+set}" = set; then :
14362 enableval=$enable_silent_rules;
14363 fi
14364
14365 case $enable_silent_rules in # (((
14366 yes) AM_DEFAULT_VERBOSITY=0;;
14367 no) AM_DEFAULT_VERBOSITY=1;;
14368 *) AM_DEFAULT_VERBOSITY=0;;
14369 esac
14370 am_make=${MAKE-make}
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14372 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14373 if ${am_cv_make_support_nested_variables+:} false; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 if $as_echo 'TRUE=$(BAR$(V))
14377 BAR0=false
14378 BAR1=true
14379 V=1
14380 am__doit:
14381 @$(TRUE)
14382 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14383 am_cv_make_support_nested_variables=yes
14384 else
14385 am_cv_make_support_nested_variables=no
14386 fi
14387 fi
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14389 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14390 if test $am_cv_make_support_nested_variables = yes; then
14391 AM_V='$(V)'
14392 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14393 else
14394 AM_V=$AM_DEFAULT_VERBOSITY
14395 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14396 fi
14397 AM_BACKSLASH='\'
14398
14399
14400 # If a cpu ever has more than one simulator to choose from, use
14401 # --enable-sim=... to choose.
14402 # Check whether --enable-sim was given.
14403 if test "${enable_sim+set}" = set; then :
14404 enableval=$enable_sim; case "${enableval}" in
14405 yes | no) ;;
14406 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14407 esac
14408 fi
14409
14410
14411 # Check whether --enable-example-sims was given.
14412 if test "${enable_example_sims+set}" = set; then :
14413 enableval=$enable_example_sims;
14414 fi
14415
14416
14417 # Check whether --enable-targets was given.
14418 if test "${enable_targets+set}" = set; then :
14419 enableval=$enable_targets; case "${enableval}" in
14420 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14421 ;;
14422 no) enable_targets= ;;
14423 *) enable_targets=$enableval ;;
14424 esac
14425 fi
14426
14427
14428 SIM_PRIMARY_TARGET=
14429
14430
14431 SIM_ENABLED_ARCHES=
14432
14433
14434 ENABLE_SIM=no
14435
14436
14437
14438 if test "${enable_sim}" != no; then
14439 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14440 do
14441 sim_enable_arch_aarch64=false
14442 case "${targ}" in
14443 all|aarch64*-*-*)
14444 if test "${targ}" = "${target}"; then
14445 SIM_PRIMARY_TARGET=aarch64
14446 fi
14447 ENABLE_SIM=yes
14448 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14449
14450 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14451
14452
14453 sim_enable_arch_aarch64=true
14454 ;;
14455 esac
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14457 $as_echo_n "checking where to find the target cc... " >&6; }
14458 if test "x${build}" != "x${host}" ; then
14459 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14460 # We already found the complete path
14461 ac_dir=`dirname $CC_FOR_TARGET`
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14463 $as_echo "pre-installed in $ac_dir" >&6; }
14464 else
14465 # Canadian cross, just use what we found
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14467 $as_echo "pre-installed" >&6; }
14468 fi
14469 else
14470 ok=yes
14471 case " ${configdirs} " in
14472 *" ${target_alias}-gcc "*) ;;
14473 *) ok=no ;;
14474 esac
14475
14476 if test $ok = yes; then
14477 # An in-tree tool is available and we can use it
14478 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14480 $as_echo "just compiled" >&6; }
14481 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14482 # We already found the complete path
14483 ac_dir=`dirname $CC_FOR_TARGET`
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14485 $as_echo "pre-installed in $ac_dir" >&6; }
14486 elif test "x$target" = "x$host"; then
14487 # We can use an host tool
14488 CC_FOR_TARGET='$(CC)'
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14490 $as_echo "host tool" >&6; }
14491 else
14492 # We need a cross tool
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14494 $as_echo "pre-installed" >&6; }
14495 fi
14496 fi
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14499 $as_echo_n "checking where to find the target as... " >&6; }
14500 if test "x${build}" != "x${host}" ; then
14501 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14502 # We already found the complete path
14503 ac_dir=`dirname $AS_FOR_TARGET`
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14505 $as_echo "pre-installed in $ac_dir" >&6; }
14506 else
14507 # Canadian cross, just use what we found
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14509 $as_echo "pre-installed" >&6; }
14510 fi
14511 else
14512 ok=yes
14513 case " ${configdirs} " in
14514 *" \$(abs_builddir) "*) ;;
14515 *) ok=no ;;
14516 esac
14517
14518 if test $ok = yes; then
14519 # An in-tree tool is available and we can use it
14520 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14522 $as_echo "just compiled" >&6; }
14523 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14524 # We already found the complete path
14525 ac_dir=`dirname $AS_FOR_TARGET`
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14527 $as_echo "pre-installed in $ac_dir" >&6; }
14528 elif test "x$target" = "x$host"; then
14529 # We can use an host tool
14530 AS_FOR_TARGET='$(AS)'
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14532 $as_echo "host tool" >&6; }
14533 else
14534 # We need a cross tool
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14536 $as_echo "pre-installed" >&6; }
14537 fi
14538 fi
14539
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14541 $as_echo_n "checking where to find the target ld... " >&6; }
14542 if test "x${build}" != "x${host}" ; then
14543 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14544 # We already found the complete path
14545 ac_dir=`dirname $LD_FOR_TARGET`
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14547 $as_echo "pre-installed in $ac_dir" >&6; }
14548 else
14549 # Canadian cross, just use what we found
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14551 $as_echo "pre-installed" >&6; }
14552 fi
14553 else
14554 ok=yes
14555 case " ${configdirs} " in
14556 *" \$(abs_builddir) "*) ;;
14557 *) ok=no ;;
14558 esac
14559
14560 if test $ok = yes; then
14561 # An in-tree tool is available and we can use it
14562 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14564 $as_echo "just compiled" >&6; }
14565 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14566 # We already found the complete path
14567 ac_dir=`dirname $LD_FOR_TARGET`
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14569 $as_echo "pre-installed in $ac_dir" >&6; }
14570 elif test "x$target" = "x$host"; then
14571 # We can use an host tool
14572 LD_FOR_TARGET='$(LD)'
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14574 $as_echo "host tool" >&6; }
14575 else
14576 # We need a cross tool
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14578 $as_echo "pre-installed" >&6; }
14579 fi
14580 fi
14581
14582
14583
14584
14585
14586
14587 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14588 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14589 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14590 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14591
14592 fi
14593
14594 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14595
14596 if ${sim_enable_arch_aarch64}; then
14597 SIM_ENABLE_ARCH_aarch64_TRUE=
14598 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14599 else
14600 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14601 SIM_ENABLE_ARCH_aarch64_FALSE=
14602 fi
14603
14604
14605 sim_enable_arch_arm=false
14606 case "${targ}" in
14607 all|arm*-*-*)
14608 if test "${targ}" = "${target}"; then
14609 SIM_PRIMARY_TARGET=arm
14610 fi
14611 ENABLE_SIM=yes
14612 as_fn_append SIM_ENABLED_ARCHES " arm"
14613
14614 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14615
14616
14617 sim_enable_arch_arm=true
14618 ;;
14619 esac
14620
14621
14622
14623
14624 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14625 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14626 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14627 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14628
14629 fi
14630
14631 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14632
14633 if ${sim_enable_arch_arm}; then
14634 SIM_ENABLE_ARCH_arm_TRUE=
14635 SIM_ENABLE_ARCH_arm_FALSE='#'
14636 else
14637 SIM_ENABLE_ARCH_arm_TRUE='#'
14638 SIM_ENABLE_ARCH_arm_FALSE=
14639 fi
14640
14641
14642 sim_enable_arch_avr=false
14643 case "${targ}" in
14644 all|avr*-*-*)
14645 if test "${targ}" = "${target}"; then
14646 SIM_PRIMARY_TARGET=avr
14647 fi
14648 ENABLE_SIM=yes
14649 as_fn_append SIM_ENABLED_ARCHES " avr"
14650
14651 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14652
14653
14654 sim_enable_arch_avr=true
14655 ;;
14656 esac
14657
14658
14659
14660
14661 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14662 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14663 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14664 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14665
14666 fi
14667
14668 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14669
14670 if ${sim_enable_arch_avr}; then
14671 SIM_ENABLE_ARCH_avr_TRUE=
14672 SIM_ENABLE_ARCH_avr_FALSE='#'
14673 else
14674 SIM_ENABLE_ARCH_avr_TRUE='#'
14675 SIM_ENABLE_ARCH_avr_FALSE=
14676 fi
14677
14678
14679 sim_enable_arch_bfin=false
14680 case "${targ}" in
14681 all|bfin-*-*)
14682 if test "${targ}" = "${target}"; then
14683 SIM_PRIMARY_TARGET=bfin
14684 fi
14685 ENABLE_SIM=yes
14686 as_fn_append SIM_ENABLED_ARCHES " bfin"
14687
14688 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14689
14690
14691 sim_enable_arch_bfin=true
14692 ;;
14693 esac
14694
14695
14696
14697
14698 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14699 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14700 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14701 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14702
14703 fi
14704
14705 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14706
14707 if ${sim_enable_arch_bfin}; then
14708 SIM_ENABLE_ARCH_bfin_TRUE=
14709 SIM_ENABLE_ARCH_bfin_FALSE='#'
14710 else
14711 SIM_ENABLE_ARCH_bfin_TRUE='#'
14712 SIM_ENABLE_ARCH_bfin_FALSE=
14713 fi
14714
14715
14716 sim_enable_arch_bpf=false
14717 case "${targ}" in
14718 all|bpf-*-*)
14719 if test "${targ}" = "${target}"; then
14720 SIM_PRIMARY_TARGET=bpf
14721 fi
14722 ENABLE_SIM=yes
14723 as_fn_append SIM_ENABLED_ARCHES " bpf"
14724
14725 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14726
14727
14728 sim_enable_arch_bpf=true
14729 ;;
14730 esac
14731
14732
14733
14734
14735 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14736 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14737 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14738 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14739
14740 fi
14741
14742 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14743
14744 if ${sim_enable_arch_bpf}; then
14745 SIM_ENABLE_ARCH_bpf_TRUE=
14746 SIM_ENABLE_ARCH_bpf_FALSE='#'
14747 else
14748 SIM_ENABLE_ARCH_bpf_TRUE='#'
14749 SIM_ENABLE_ARCH_bpf_FALSE=
14750 fi
14751
14752
14753 sim_enable_arch_cr16=false
14754 case "${targ}" in
14755 all|cr16*-*-*)
14756 if test "${targ}" = "${target}"; then
14757 SIM_PRIMARY_TARGET=cr16
14758 fi
14759 ENABLE_SIM=yes
14760 as_fn_append SIM_ENABLED_ARCHES " cr16"
14761
14762 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14763
14764
14765 sim_enable_arch_cr16=true
14766 ;;
14767 esac
14768
14769
14770
14771
14772 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14773 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14774 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14775 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14776
14777 fi
14778
14779 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14780
14781 if ${sim_enable_arch_cr16}; then
14782 SIM_ENABLE_ARCH_cr16_TRUE=
14783 SIM_ENABLE_ARCH_cr16_FALSE='#'
14784 else
14785 SIM_ENABLE_ARCH_cr16_TRUE='#'
14786 SIM_ENABLE_ARCH_cr16_FALSE=
14787 fi
14788
14789
14790 sim_enable_arch_cris=false
14791 case "${targ}" in
14792 all|cris-*-* | crisv32-*-*)
14793 if test "${targ}" = "${target}"; then
14794 SIM_PRIMARY_TARGET=cris
14795 fi
14796 ENABLE_SIM=yes
14797 as_fn_append SIM_ENABLED_ARCHES " cris"
14798
14799 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14800
14801
14802 sim_enable_arch_cris=true
14803 ;;
14804 esac
14805
14806
14807
14808
14809 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14810 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14811 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14812 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14813
14814 fi
14815
14816 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14817
14818 if ${sim_enable_arch_cris}; then
14819 SIM_ENABLE_ARCH_cris_TRUE=
14820 SIM_ENABLE_ARCH_cris_FALSE='#'
14821 else
14822 SIM_ENABLE_ARCH_cris_TRUE='#'
14823 SIM_ENABLE_ARCH_cris_FALSE=
14824 fi
14825
14826
14827 sim_enable_arch_d10v=false
14828 case "${targ}" in
14829 all|d10v-*-*)
14830 if test "${targ}" = "${target}"; then
14831 SIM_PRIMARY_TARGET=d10v
14832 fi
14833 ENABLE_SIM=yes
14834 as_fn_append SIM_ENABLED_ARCHES " d10v"
14835
14836 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14837
14838
14839 sim_enable_arch_d10v=true
14840 ;;
14841 esac
14842
14843
14844
14845
14846 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14847 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14848 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14849 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14850
14851 fi
14852
14853 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14854
14855 if ${sim_enable_arch_d10v}; then
14856 SIM_ENABLE_ARCH_d10v_TRUE=
14857 SIM_ENABLE_ARCH_d10v_FALSE='#'
14858 else
14859 SIM_ENABLE_ARCH_d10v_TRUE='#'
14860 SIM_ENABLE_ARCH_d10v_FALSE=
14861 fi
14862
14863
14864 sim_enable_arch_frv=false
14865 case "${targ}" in
14866 all|frv-*-*)
14867 if test "${targ}" = "${target}"; then
14868 SIM_PRIMARY_TARGET=frv
14869 fi
14870 ENABLE_SIM=yes
14871 as_fn_append SIM_ENABLED_ARCHES " frv"
14872
14873 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14874
14875
14876 sim_enable_arch_frv=true
14877 ;;
14878 esac
14879
14880
14881
14882
14883 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14884 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14885 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14886 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14887
14888 fi
14889
14890 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14891
14892 if ${sim_enable_arch_frv}; then
14893 SIM_ENABLE_ARCH_frv_TRUE=
14894 SIM_ENABLE_ARCH_frv_FALSE='#'
14895 else
14896 SIM_ENABLE_ARCH_frv_TRUE='#'
14897 SIM_ENABLE_ARCH_frv_FALSE=
14898 fi
14899
14900
14901 sim_enable_arch_ft32=false
14902 case "${targ}" in
14903 all|ft32-*-*)
14904 if test "${targ}" = "${target}"; then
14905 SIM_PRIMARY_TARGET=ft32
14906 fi
14907 ENABLE_SIM=yes
14908 as_fn_append SIM_ENABLED_ARCHES " ft32"
14909
14910 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14911
14912
14913 sim_enable_arch_ft32=true
14914 ;;
14915 esac
14916
14917
14918
14919
14920 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14921 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14922 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14923 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14924
14925 fi
14926
14927 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14928
14929 if ${sim_enable_arch_ft32}; then
14930 SIM_ENABLE_ARCH_ft32_TRUE=
14931 SIM_ENABLE_ARCH_ft32_FALSE='#'
14932 else
14933 SIM_ENABLE_ARCH_ft32_TRUE='#'
14934 SIM_ENABLE_ARCH_ft32_FALSE=
14935 fi
14936
14937
14938 sim_enable_arch_h8300=false
14939 case "${targ}" in
14940 all|h8300*-*-*)
14941 if test "${targ}" = "${target}"; then
14942 SIM_PRIMARY_TARGET=h8300
14943 fi
14944 ENABLE_SIM=yes
14945 as_fn_append SIM_ENABLED_ARCHES " h8300"
14946
14947 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14948
14949
14950 sim_enable_arch_h8300=true
14951 ;;
14952 esac
14953
14954
14955
14956
14957 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14958 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14959 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14960 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14961
14962 fi
14963
14964 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14965
14966 if ${sim_enable_arch_h8300}; then
14967 SIM_ENABLE_ARCH_h8300_TRUE=
14968 SIM_ENABLE_ARCH_h8300_FALSE='#'
14969 else
14970 SIM_ENABLE_ARCH_h8300_TRUE='#'
14971 SIM_ENABLE_ARCH_h8300_FALSE=
14972 fi
14973
14974
14975 sim_enable_arch_iq2000=false
14976 case "${targ}" in
14977 all|iq2000-*-*)
14978 if test "${targ}" = "${target}"; then
14979 SIM_PRIMARY_TARGET=iq2000
14980 fi
14981 ENABLE_SIM=yes
14982 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14983
14984 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14985
14986
14987 sim_enable_arch_iq2000=true
14988 ;;
14989 esac
14990
14991
14992
14993
14994 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14995 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14996 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14997 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14998
14999 fi
15000
15001 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15002
15003 if ${sim_enable_arch_iq2000}; then
15004 SIM_ENABLE_ARCH_iq2000_TRUE=
15005 SIM_ENABLE_ARCH_iq2000_FALSE='#'
15006 else
15007 SIM_ENABLE_ARCH_iq2000_TRUE='#'
15008 SIM_ENABLE_ARCH_iq2000_FALSE=
15009 fi
15010
15011
15012 sim_enable_arch_lm32=false
15013 case "${targ}" in
15014 all|lm32-*-*)
15015 if test "${targ}" = "${target}"; then
15016 SIM_PRIMARY_TARGET=lm32
15017 fi
15018 ENABLE_SIM=yes
15019 as_fn_append SIM_ENABLED_ARCHES " lm32"
15020
15021 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15022
15023
15024 sim_enable_arch_lm32=true
15025 ;;
15026 esac
15027
15028
15029
15030
15031 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15032 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15033 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15034 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15035
15036 fi
15037
15038 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15039
15040 if ${sim_enable_arch_lm32}; then
15041 SIM_ENABLE_ARCH_lm32_TRUE=
15042 SIM_ENABLE_ARCH_lm32_FALSE='#'
15043 else
15044 SIM_ENABLE_ARCH_lm32_TRUE='#'
15045 SIM_ENABLE_ARCH_lm32_FALSE=
15046 fi
15047
15048
15049 sim_enable_arch_m32c=false
15050 case "${targ}" in
15051 all|m32c-*-*)
15052 if test "${targ}" = "${target}"; then
15053 SIM_PRIMARY_TARGET=m32c
15054 fi
15055 ENABLE_SIM=yes
15056 as_fn_append SIM_ENABLED_ARCHES " m32c"
15057
15058 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15059
15060
15061 sim_enable_arch_m32c=true
15062 ;;
15063 esac
15064
15065
15066
15067
15068 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15069 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15070 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15071 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15072
15073 fi
15074
15075 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15076
15077 if ${sim_enable_arch_m32c}; then
15078 SIM_ENABLE_ARCH_m32c_TRUE=
15079 SIM_ENABLE_ARCH_m32c_FALSE='#'
15080 else
15081 SIM_ENABLE_ARCH_m32c_TRUE='#'
15082 SIM_ENABLE_ARCH_m32c_FALSE=
15083 fi
15084
15085
15086 sim_enable_arch_m32r=false
15087 case "${targ}" in
15088 all|m32r-*-*)
15089 if test "${targ}" = "${target}"; then
15090 SIM_PRIMARY_TARGET=m32r
15091 fi
15092 ENABLE_SIM=yes
15093 as_fn_append SIM_ENABLED_ARCHES " m32r"
15094
15095 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15096
15097
15098 sim_enable_arch_m32r=true
15099 ;;
15100 esac
15101
15102
15103
15104
15105 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15106 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15107 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15108 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15109
15110 fi
15111
15112 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15113
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
15121
15122
15123 sim_enable_arch_m68hc11=false
15124 case "${targ}" in
15125 all|m68hc11-*-*|m6811-*-*)
15126 if test "${targ}" = "${target}"; then
15127 SIM_PRIMARY_TARGET=m68hc11
15128 fi
15129 ENABLE_SIM=yes
15130 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
15131
15132 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15133
15134
15135 sim_enable_arch_m68hc11=true
15136 ;;
15137 esac
15138
15139
15140
15141
15142 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15143 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15144 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15145 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15146
15147 fi
15148
15149 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15150
15151 if ${sim_enable_arch_m68hc11}; then
15152 SIM_ENABLE_ARCH_m68hc11_TRUE=
15153 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15154 else
15155 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15156 SIM_ENABLE_ARCH_m68hc11_FALSE=
15157 fi
15158
15159
15160 sim_enable_arch_mcore=false
15161 case "${targ}" in
15162 all|mcore-*-*)
15163 if test "${targ}" = "${target}"; then
15164 SIM_PRIMARY_TARGET=mcore
15165 fi
15166 ENABLE_SIM=yes
15167 as_fn_append SIM_ENABLED_ARCHES " mcore"
15168
15169 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15170
15171
15172 sim_enable_arch_mcore=true
15173 ;;
15174 esac
15175
15176
15177
15178
15179 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15180 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15181 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15182 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15183
15184 fi
15185
15186 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15187
15188 if ${sim_enable_arch_mcore}; then
15189 SIM_ENABLE_ARCH_mcore_TRUE=
15190 SIM_ENABLE_ARCH_mcore_FALSE='#'
15191 else
15192 SIM_ENABLE_ARCH_mcore_TRUE='#'
15193 SIM_ENABLE_ARCH_mcore_FALSE=
15194 fi
15195
15196
15197 sim_enable_arch_microblaze=false
15198 case "${targ}" in
15199 all|microblaze*-*-*)
15200 if test "${targ}" = "${target}"; then
15201 SIM_PRIMARY_TARGET=microblaze
15202 fi
15203 ENABLE_SIM=yes
15204 as_fn_append SIM_ENABLED_ARCHES " microblaze"
15205
15206 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15207
15208
15209 sim_enable_arch_microblaze=true
15210 ;;
15211 esac
15212
15213
15214
15215
15216 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15217 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15218 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15219 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15220
15221 fi
15222
15223 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15224
15225 if ${sim_enable_arch_microblaze}; then
15226 SIM_ENABLE_ARCH_microblaze_TRUE=
15227 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15228 else
15229 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15230 SIM_ENABLE_ARCH_microblaze_FALSE=
15231 fi
15232
15233
15234 sim_enable_arch_mips=false
15235 case "${targ}" in
15236 all|mips*-*-*)
15237 if test "${targ}" = "${target}"; then
15238 SIM_PRIMARY_TARGET=mips
15239 fi
15240 ENABLE_SIM=yes
15241 as_fn_append SIM_ENABLED_ARCHES " mips"
15242
15243 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15244
15245
15246 sim_enable_arch_mips=true
15247 ;;
15248 esac
15249
15250
15251
15252
15253 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15254 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15255 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15256 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15257
15258 fi
15259
15260 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15261
15262 if ${sim_enable_arch_mips}; then
15263 SIM_ENABLE_ARCH_mips_TRUE=
15264 SIM_ENABLE_ARCH_mips_FALSE='#'
15265 else
15266 SIM_ENABLE_ARCH_mips_TRUE='#'
15267 SIM_ENABLE_ARCH_mips_FALSE=
15268 fi
15269
15270
15271 sim_enable_arch_mn10300=false
15272 case "${targ}" in
15273 all|mn10300*-*-*)
15274 if test "${targ}" = "${target}"; then
15275 SIM_PRIMARY_TARGET=mn10300
15276 fi
15277 ENABLE_SIM=yes
15278 as_fn_append SIM_ENABLED_ARCHES " mn10300"
15279
15280 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15281
15282
15283 sim_enable_arch_mn10300=true
15284 ;;
15285 esac
15286
15287
15288
15289
15290 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15291 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15292 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15293 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15294
15295 fi
15296
15297 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15298
15299 if ${sim_enable_arch_mn10300}; then
15300 SIM_ENABLE_ARCH_mn10300_TRUE=
15301 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15302 else
15303 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15304 SIM_ENABLE_ARCH_mn10300_FALSE=
15305 fi
15306
15307
15308 sim_enable_arch_moxie=false
15309 case "${targ}" in
15310 all|moxie-*-*)
15311 if test "${targ}" = "${target}"; then
15312 SIM_PRIMARY_TARGET=moxie
15313 fi
15314 ENABLE_SIM=yes
15315 as_fn_append SIM_ENABLED_ARCHES " moxie"
15316
15317 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15318
15319
15320 sim_enable_arch_moxie=true
15321 ;;
15322 esac
15323
15324
15325
15326
15327 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15328 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15329 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15330 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15331
15332 fi
15333
15334 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15335
15336 if ${sim_enable_arch_moxie}; then
15337 SIM_ENABLE_ARCH_moxie_TRUE=
15338 SIM_ENABLE_ARCH_moxie_FALSE='#'
15339 else
15340 SIM_ENABLE_ARCH_moxie_TRUE='#'
15341 SIM_ENABLE_ARCH_moxie_FALSE=
15342 fi
15343
15344
15345 sim_enable_arch_msp430=false
15346 case "${targ}" in
15347 all|msp430*-*-*)
15348 if test "${targ}" = "${target}"; then
15349 SIM_PRIMARY_TARGET=msp430
15350 fi
15351 ENABLE_SIM=yes
15352 as_fn_append SIM_ENABLED_ARCHES " msp430"
15353
15354 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15355
15356
15357 sim_enable_arch_msp430=true
15358 ;;
15359 esac
15360
15361
15362
15363
15364 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15365 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15366 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15367 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15368
15369 fi
15370
15371 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15372
15373 if ${sim_enable_arch_msp430}; then
15374 SIM_ENABLE_ARCH_msp430_TRUE=
15375 SIM_ENABLE_ARCH_msp430_FALSE='#'
15376 else
15377 SIM_ENABLE_ARCH_msp430_TRUE='#'
15378 SIM_ENABLE_ARCH_msp430_FALSE=
15379 fi
15380
15381
15382 sim_enable_arch_or1k=false
15383 case "${targ}" in
15384 all|or1k*-*-*)
15385 if test "${targ}" = "${target}"; then
15386 SIM_PRIMARY_TARGET=or1k
15387 fi
15388 ENABLE_SIM=yes
15389 as_fn_append SIM_ENABLED_ARCHES " or1k"
15390
15391 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15392
15393
15394 sim_enable_arch_or1k=true
15395 ;;
15396 esac
15397
15398
15399
15400
15401 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15402 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15403 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15404 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15405
15406 fi
15407
15408 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15409
15410 if ${sim_enable_arch_or1k}; then
15411 SIM_ENABLE_ARCH_or1k_TRUE=
15412 SIM_ENABLE_ARCH_or1k_FALSE='#'
15413 else
15414 SIM_ENABLE_ARCH_or1k_TRUE='#'
15415 SIM_ENABLE_ARCH_or1k_FALSE=
15416 fi
15417
15418
15419 sim_enable_arch_ppc=false
15420 case "${targ}" in
15421 all|powerpc*-*-*)
15422 if test "${targ}" = "${target}"; then
15423 SIM_PRIMARY_TARGET=ppc
15424 fi
15425 ENABLE_SIM=yes
15426 as_fn_append SIM_ENABLED_ARCHES " ppc"
15427
15428
15429 subdirs="$subdirs ppc"
15430
15431
15432 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15433
15434
15435 sim_enable_arch_ppc=true
15436 ;;
15437 esac
15438
15439
15440
15441
15442 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15443 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15444 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15445 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15446
15447 fi
15448
15449 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15450
15451 if ${sim_enable_arch_ppc}; then
15452 SIM_ENABLE_ARCH_ppc_TRUE=
15453 SIM_ENABLE_ARCH_ppc_FALSE='#'
15454 else
15455 SIM_ENABLE_ARCH_ppc_TRUE='#'
15456 SIM_ENABLE_ARCH_ppc_FALSE=
15457 fi
15458
15459
15460 sim_enable_arch_pru=false
15461 case "${targ}" in
15462 all|pru*-*-*)
15463 if test "${targ}" = "${target}"; then
15464 SIM_PRIMARY_TARGET=pru
15465 fi
15466 ENABLE_SIM=yes
15467 as_fn_append SIM_ENABLED_ARCHES " pru"
15468
15469 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15470
15471
15472 sim_enable_arch_pru=true
15473 ;;
15474 esac
15475
15476
15477
15478
15479 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15480 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15481 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15482 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15483
15484 fi
15485
15486 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15487
15488 if ${sim_enable_arch_pru}; then
15489 SIM_ENABLE_ARCH_pru_TRUE=
15490 SIM_ENABLE_ARCH_pru_FALSE='#'
15491 else
15492 SIM_ENABLE_ARCH_pru_TRUE='#'
15493 SIM_ENABLE_ARCH_pru_FALSE=
15494 fi
15495
15496
15497 sim_enable_arch_riscv=false
15498 case "${targ}" in
15499 all|riscv*-*-*)
15500 if test "${targ}" = "${target}"; then
15501 SIM_PRIMARY_TARGET=riscv
15502 fi
15503 ENABLE_SIM=yes
15504 as_fn_append SIM_ENABLED_ARCHES " riscv"
15505
15506 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15507
15508
15509 sim_enable_arch_riscv=true
15510 ;;
15511 esac
15512
15513
15514
15515
15516 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15517 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15518 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15519 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15520
15521 fi
15522
15523 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15524
15525 if ${sim_enable_arch_riscv}; then
15526 SIM_ENABLE_ARCH_riscv_TRUE=
15527 SIM_ENABLE_ARCH_riscv_FALSE='#'
15528 else
15529 SIM_ENABLE_ARCH_riscv_TRUE='#'
15530 SIM_ENABLE_ARCH_riscv_FALSE=
15531 fi
15532
15533
15534 sim_enable_arch_rl78=false
15535 case "${targ}" in
15536 all|rl78-*-*)
15537 if test "${targ}" = "${target}"; then
15538 SIM_PRIMARY_TARGET=rl78
15539 fi
15540 ENABLE_SIM=yes
15541 as_fn_append SIM_ENABLED_ARCHES " rl78"
15542
15543 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15544
15545
15546 sim_enable_arch_rl78=true
15547 ;;
15548 esac
15549
15550
15551
15552
15553 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15554 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15555 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15556 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15557
15558 fi
15559
15560 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15561
15562 if ${sim_enable_arch_rl78}; then
15563 SIM_ENABLE_ARCH_rl78_TRUE=
15564 SIM_ENABLE_ARCH_rl78_FALSE='#'
15565 else
15566 SIM_ENABLE_ARCH_rl78_TRUE='#'
15567 SIM_ENABLE_ARCH_rl78_FALSE=
15568 fi
15569
15570
15571 sim_enable_arch_rx=false
15572 case "${targ}" in
15573 all|rx-*-*)
15574 if test "${targ}" = "${target}"; then
15575 SIM_PRIMARY_TARGET=rx
15576 fi
15577 ENABLE_SIM=yes
15578 as_fn_append SIM_ENABLED_ARCHES " rx"
15579
15580 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15581
15582
15583 sim_enable_arch_rx=true
15584 ;;
15585 esac
15586
15587
15588
15589
15590 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15591 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15592 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15593 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15594
15595 fi
15596
15597 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15598
15599 if ${sim_enable_arch_rx}; then
15600 SIM_ENABLE_ARCH_rx_TRUE=
15601 SIM_ENABLE_ARCH_rx_FALSE='#'
15602 else
15603 SIM_ENABLE_ARCH_rx_TRUE='#'
15604 SIM_ENABLE_ARCH_rx_FALSE=
15605 fi
15606
15607
15608 sim_enable_arch_sh=false
15609 case "${targ}" in
15610 all|sh*-*-*)
15611 if test "${targ}" = "${target}"; then
15612 SIM_PRIMARY_TARGET=sh
15613 fi
15614 ENABLE_SIM=yes
15615 as_fn_append SIM_ENABLED_ARCHES " sh"
15616
15617 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15618
15619
15620 sim_enable_arch_sh=true
15621 ;;
15622 esac
15623
15624
15625
15626
15627 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15628 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15629 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15630 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15631
15632 fi
15633
15634 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15635
15636 if ${sim_enable_arch_sh}; then
15637 SIM_ENABLE_ARCH_sh_TRUE=
15638 SIM_ENABLE_ARCH_sh_FALSE='#'
15639 else
15640 SIM_ENABLE_ARCH_sh_TRUE='#'
15641 SIM_ENABLE_ARCH_sh_FALSE=
15642 fi
15643
15644
15645 sim_enable_arch_erc32=false
15646 case "${targ}" in
15647 all|sparc-*-*)
15648 if test "${targ}" = "${target}"; then
15649 SIM_PRIMARY_TARGET=erc32
15650 fi
15651 ENABLE_SIM=yes
15652 as_fn_append SIM_ENABLED_ARCHES " erc32"
15653
15654 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15655
15656
15657 sim_enable_arch_erc32=true
15658 ;;
15659 esac
15660
15661
15662
15663
15664 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15665 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15666 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15667 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15668
15669 fi
15670
15671 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15672
15673 if ${sim_enable_arch_erc32}; then
15674 SIM_ENABLE_ARCH_erc32_TRUE=
15675 SIM_ENABLE_ARCH_erc32_FALSE='#'
15676 else
15677 SIM_ENABLE_ARCH_erc32_TRUE='#'
15678 SIM_ENABLE_ARCH_erc32_FALSE=
15679 fi
15680
15681
15682 sim_enable_arch_v850=false
15683 case "${targ}" in
15684 all|v850*-*-*)
15685 if test "${targ}" = "${target}"; then
15686 SIM_PRIMARY_TARGET=v850
15687 fi
15688 ENABLE_SIM=yes
15689 as_fn_append SIM_ENABLED_ARCHES " v850"
15690
15691 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15692
15693
15694 sim_enable_arch_v850=true
15695 ;;
15696 esac
15697
15698
15699
15700
15701 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15702 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15703 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15704 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15705
15706 fi
15707
15708 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15709
15710 if ${sim_enable_arch_v850}; then
15711 SIM_ENABLE_ARCH_v850_TRUE=
15712 SIM_ENABLE_ARCH_v850_FALSE='#'
15713 else
15714 SIM_ENABLE_ARCH_v850_TRUE='#'
15715 SIM_ENABLE_ARCH_v850_FALSE=
15716 fi
15717
15718
15719 done
15720
15721 if test "x${enable_example_sims}" = xyes; then
15722
15723
15724
15725
15726 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15727 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15728 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15729
15730 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15731
15732 ENABLE_SIM=yes
15733 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15734
15735 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15736
15737
15738 fi
15739 if test "${enable_example_sims}" = "yes"; then
15740 SIM_ENABLE_ARCH_examples_TRUE=
15741 SIM_ENABLE_ARCH_examples_FALSE='#'
15742 else
15743 SIM_ENABLE_ARCH_examples_TRUE='#'
15744 SIM_ENABLE_ARCH_examples_FALSE=
15745 fi
15746
15747 fi
15748 if test "$ENABLE_SIM" = "yes"; then
15749 ENABLE_SIM_TRUE=
15750 ENABLE_SIM_FALSE='#'
15751 else
15752 ENABLE_SIM_TRUE='#'
15753 ENABLE_SIM_FALSE=
15754 fi
15755
15756
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15758 $as_echo_n "checking whether to force sim alignment... " >&6; }
15759 sim_alignment=
15760 # Check whether --enable-sim-alignment was given.
15761 if test "${enable_sim_alignment+set}" = set; then :
15762 enableval=$enable_sim_alignment; case "${enableval}" in
15763 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15764 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15765 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15766 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15767 esac
15768 fi
15769
15770 cat >>confdefs.h <<_ACEOF
15771 #define WITH_ALIGNMENT ${sim_alignment:-0}
15772 _ACEOF
15773
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15775 $as_echo "${sim_alignment:-no}" >&6; }
15776
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15779 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15780 sim_assert="1"
15781 # Check whether --enable-sim-assert was given.
15782 if test "${enable_sim_assert+set}" = set; then :
15783 enableval=$enable_sim_assert; case "${enableval}" in
15784 yes) sim_assert="1";;
15785 no) sim_assert="0";;
15786 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15787 esac
15788 fi
15789
15790 cat >>confdefs.h <<_ACEOF
15791 #define WITH_ASSERT $sim_assert
15792 _ACEOF
15793
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15795 $as_echo "$sim_assert" >&6; }
15796
15797
15798 cgen_maint=no
15799 cgen=guile
15800 cgendir='$(srcdir)/../../cgen'
15801 if test -r ${srcdir}/../cgen/iformat.scm; then
15802 cgendir='$(srcdir)/../cgen'
15803 fi
15804 # Check whether --enable-cgen-maint was given.
15805 if test "${enable_cgen_maint+set}" = set; then :
15806 enableval=$enable_cgen_maint; case "${enableval}" in
15807 yes) cgen_maint=yes ;;
15808 no) cgen_maint=no ;;
15809 *)
15810 # Argument is a directory where cgen can be found. In some
15811 # future world cgen could be installable, but right now this
15812 # is not the case. Instead we assume the directory is a path
15813 # to the cgen source tree.
15814 cgen_maint=yes
15815 if test -r ${enableval}/iformat.scm; then
15816 # This looks like a cgen source tree.
15817 cgendir=${enableval}
15818 else
15819 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15820 fi
15821 ;;
15822 esac
15823 fi
15824 if test x${cgen_maint} != xno ; then
15825 CGEN_MAINT=''
15826 else
15827 CGEN_MAINT='#'
15828 fi
15829
15830
15831
15832
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15834 $as_echo_n "checking for sim debug setting... " >&6; }
15835 sim_debug="0"
15836 # Check whether --enable-sim-debug was given.
15837 if test "${enable_sim_debug+set}" = set; then :
15838 enableval=$enable_sim_debug; case "${enableval}" in
15839 yes) sim_debug="7";;
15840 no) sim_debug="0";;
15841 *) sim_debug="($enableval)";;
15842 esac
15843 fi
15844 if test "$sim_debug" != "0"; then
15845
15846 cat >>confdefs.h <<_ACEOF
15847 #define DEBUG $sim_debug
15848 _ACEOF
15849
15850 fi
15851
15852 cat >>confdefs.h <<_ACEOF
15853 #define WITH_DEBUG $sim_debug
15854 _ACEOF
15855
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15857 $as_echo "$sim_debug" >&6; }
15858
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15860 $as_echo_n "checking whether to force sim endianness... " >&6; }
15861 sim_endian=
15862 # Check whether --enable-sim-endian was given.
15863 if test "${enable_sim_endian+set}" = set; then :
15864 enableval=$enable_sim_endian; case "${enableval}" in
15865 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15866 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15867 yes | no) ;;
15868 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15869 esac
15870 fi
15871
15872 cat >>confdefs.h <<_ACEOF
15873 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15874 _ACEOF
15875
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15877 $as_echo "${sim_alignment:-no}" >&6; }
15878
15879
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15881 $as_echo_n "checking default sim environment setting... " >&6; }
15882 sim_environment="ALL_ENVIRONMENT"
15883 # Check whether --enable-sim-environment was given.
15884 if test "${enable_sim_environment+set}" = set; then :
15885 enableval=$enable_sim_environment; case "${enableval}" in
15886 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15887 user | USER) sim_environment="USER_ENVIRONMENT";;
15888 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15889 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15890 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15891 esac
15892 fi
15893
15894 cat >>confdefs.h <<_ACEOF
15895 #define WITH_ENVIRONMENT $sim_environment
15896 _ACEOF
15897
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15899 $as_echo "$sim_environment" >&6; }
15900
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15902 $as_echo_n "checking for sim hardware settings... " >&6; }
15903 # Check whether --enable-sim-hardware was given.
15904 if test "${enable_sim_hardware+set}" = set; then :
15905 enableval=$enable_sim_hardware;
15906 else
15907 enable_sim_hardware="yes"
15908 fi
15909
15910 sim_hw_sockser=
15911 if test "$enable_sim_hardware" = no; then
15912 sim_hw_cflags="-DWITH_HW=0"
15913 elif test "$enable_sim_hardware" = yes; then
15914 sim_hw_cflags="-DWITH_HW=1"
15915 sim_hw_sockser="dv-sockser.o"
15916 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15917 else
15918 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15919 fi
15920 if test "$enable_sim_hardware" = "yes"; then
15921 SIM_ENABLE_HW_TRUE=
15922 SIM_ENABLE_HW_FALSE='#'
15923 else
15924 SIM_ENABLE_HW_TRUE='#'
15925 SIM_ENABLE_HW_FALSE=
15926 fi
15927
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15929 $as_echo "${enable_sim_hardware}" >&6; }
15930 SIM_HW_CFLAGS=$sim_hw_cflags
15931
15932 SIM_HW_SOCKSER=$sim_hw_sockser
15933
15934
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15936 $as_echo_n "checking sim inline settings... " >&6; }
15937 sim_inline="-DDEFAULT_INLINE=0"
15938 # Check whether --enable-sim-inline was given.
15939 if test "${enable_sim_inline+set}" = set; then :
15940 enableval=$enable_sim_inline; sim_inline=""
15941 case "$enableval" in
15942 no) sim_inline="-DDEFAULT_INLINE=0";;
15943 0) sim_inline="-DDEFAULT_INLINE=0";;
15944 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15945 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15946 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15947 new_flag=""
15948 case "$x" in
15949 *_INLINE=*) new_flag="-D$x";;
15950 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15951 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15952 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15953 esac
15954 if test x"$sim_inline" = x""; then
15955 sim_inline="$new_flag"
15956 else
15957 sim_inline="$sim_inline $new_flag"
15958 fi
15959 done;;
15960 esac
15961
15962 fi
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15964 $as_echo "$sim_inline" >&6; }
15965 SIM_INLINE=$sim_inline
15966
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15969 $as_echo_n "checking for sim profile settings... " >&6; }
15970 profile="1"
15971 sim_profile="-1"
15972 # Check whether --enable-sim-profile was given.
15973 if test "${enable_sim_profile+set}" = set; then :
15974 enableval=$enable_sim_profile; case "${enableval}" in
15975 yes) profile="1" sim_profile="-1";;
15976 no) profile="0" sim_profile="0";;
15977 [-0-9]*)
15978 profile="(${enableval})" sim_profile="(${enableval})";;
15979 [a-z]*)
15980 profile="1"
15981 sim_profile=""
15982 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15983 if test x"$sim_profile" = x; then
15984 sim_profile="(PROFILE_$x"
15985 else
15986 sim_profile="${sim_profile}|PROFILE_$x"
15987 fi
15988 done
15989 sim_profile="$sim_profile)" ;;
15990 esac
15991 fi
15992
15993 cat >>confdefs.h <<_ACEOF
15994 #define PROFILE $profile
15995 _ACEOF
15996
15997
15998 cat >>confdefs.h <<_ACEOF
15999 #define WITH_PROFILE $sim_profile
16000 _ACEOF
16001
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16003 $as_echo "$sim_profile" >&6; }
16004
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16006 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16007 # Check whether --enable-sim-reserved-bits was given.
16008 if test "${enable_sim_reserved_bits+set}" = set; then :
16009 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16010 yes|no) ;;
16011 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16012 esac
16013 fi
16014
16015 if test "x${enable_sim_reserved_bits}" != xno; then
16016 sim_reserved_bits=1
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16018 $as_echo "yes" >&6; }
16019 else
16020 sim_reserved_bits=0
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16022 $as_echo "no" >&6; }
16023 fi
16024
16025 cat >>confdefs.h <<_ACEOF
16026 #define WITH_RESERVED_BITS $sim_reserved_bits
16027 _ACEOF
16028
16029
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16031 $as_echo_n "checking for sim cache size... " >&6; }
16032 sim_scache="16384"
16033 # Check whether --enable-sim-scache was given.
16034 if test "${enable_sim_scache+set}" = set; then :
16035 enableval=$enable_sim_scache; case "${enableval}" in
16036 yes) ;;
16037 no) sim_scache="0";;
16038 [0-9]*) sim_scache="${enableval}";;
16039 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16040 esac
16041 fi
16042
16043
16044 cat >>confdefs.h <<_ACEOF
16045 #define WITH_SCACHE $sim_scache
16046 _ACEOF
16047
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16049 $as_echo "$sim_scache" >&6; }
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
16052 $as_echo_n "checking number of sim cpus to support... " >&6; }
16053 default_sim_smp="0"
16054 sim_smp="$default_sim_smp"
16055 # Check whether --enable-sim-smp was given.
16056 if test "${enable_sim_smp+set}" = set; then :
16057 enableval=$enable_sim_smp; case "${enableval}" in
16058 yes) sim_smp="5";;
16059 no) sim_smp="0";;
16060 *) sim_smp="$enableval";;
16061 esac
16062 fi
16063 IGEN_FLAGS_SMP="-N ${sim_smp}"
16064
16065 if test "x$sim_smp" = x0; then :
16066
16067 else
16068
16069 cat >>confdefs.h <<_ACEOF
16070 #define WITH_SMP $sim_smp
16071 _ACEOF
16072
16073 fi
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
16075 $as_echo "$sim_smp" >&6; }
16076
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16078 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16079 sim_stdio="0"
16080 # Check whether --enable-sim-stdio was given.
16081 if test "${enable_sim_stdio+set}" = set; then :
16082 enableval=$enable_sim_stdio; case "${enableval}" in
16083 yes) sim_stdio="DO_USE_STDIO";;
16084 no) sim_stdio="DONT_USE_STDIO";;
16085 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16086 esac
16087 fi
16088
16089 cat >>confdefs.h <<_ACEOF
16090 #define WITH_STDIO $sim_stdio
16091 _ACEOF
16092
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16094 $as_echo "$sim_stdio" >&6; }
16095
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16097 $as_echo_n "checking for sim trace settings... " >&6; }
16098 sim_trace="~TRACE_debug"
16099 # Check whether --enable-sim-trace was given.
16100 if test "${enable_sim_trace+set}" = set; then :
16101 enableval=$enable_sim_trace; case "${enableval}" in
16102 yes) sim_trace="-1";;
16103 no) sim_trace="0";;
16104 [-0-9]*)
16105 sim_trace="'(${enableval})'";;
16106 [[:lower:]]*)
16107 sim_trace=""
16108 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16109 if test x"$sim_trace" = x; then
16110 sim_trace="(TRACE_$x"
16111 else
16112 sim_trace="${sim_trace}|TRACE_$x"
16113 fi
16114 done
16115 sim_trace="$sim_trace)" ;;
16116 esac
16117 fi
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define WITH_TRACE $sim_trace
16121 _ACEOF
16122
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16124 $as_echo "$sim_trace" >&6; }
16125
16126 # Check whether --enable-werror was given.
16127 if test "${enable_werror+set}" = set; then :
16128 enableval=$enable_werror; case "${enableval}" in
16129 yes | y) ERROR_ON_WARNING="yes" ;;
16130 no | n) ERROR_ON_WARNING="no" ;;
16131 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16132 esac
16133 fi
16134
16135
16136 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16137 ERROR_ON_WARNING=yes
16138 fi
16139
16140 WERROR_CFLAGS=""
16141 if test "${ERROR_ON_WARNING}" = yes ; then
16142 WERROR_CFLAGS="-Werror"
16143 fi
16144
16145 build_warnings="-Wall -Wpointer-arith
16146 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function
16147 -Wno-switch -Wno-char-subscripts
16148 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable
16149 -Wno-sign-compare -Wno-error=maybe-uninitialized
16150 -Wno-error=deprecated-register
16151 -Wimplicit-fallthrough=5
16152 -Wduplicated-cond
16153 -Wmissing-declarations
16154 "
16155 build_warnings="$build_warnings
16156 -Wdeclaration-after-statement
16157 -Wdeprecated-non-prototype
16158 -Wimplicit-function-declaration
16159 -Wimplicit-int
16160 -Wincompatible-function-pointer-types
16161 -Wincompatible-pointer-types
16162 -Wint-conversion
16163 -Wmisleading-indentation
16164 -Wmissing-parameter-type
16165 -Wmissing-prototypes
16166 -Wold-style-declaration
16167 -Wold-style-definition
16168 -Wpointer-sign
16169 -Wreturn-mismatch
16170 -Wreturn-type
16171 -Wstrict-prototypes
16172 -Wno-enum-conversion
16173 "
16174
16175 case "${host}" in
16176 *-*-mingw32*)
16177 # Enable -Wno-format by default when using gcc on mingw since many
16178 # GCC versions complain about %I64.
16179 build_warnings="$build_warnings -Wno-format" ;;
16180 *-*-solaris*)
16181 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16182 # doesn't understand.
16183 build_warnings="$build_warnings -Wno-unknown-pragmas"
16184 # Solaris 11 <unistd.h> marks vfork deprecated.
16185 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
16186 *)
16187 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16188 # but there's a special case for this below.
16189 build_warnings="$build_warnings -Wformat-nonliteral" ;;
16190 esac
16191
16192 # Check whether --enable-build-warnings was given.
16193 if test "${enable_build_warnings+set}" = set; then :
16194 enableval=$enable_build_warnings; case "${enableval}" in
16195 yes) ;;
16196 no) build_warnings="-w";;
16197 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16198 build_warnings="${build_warnings} ${t}";;
16199 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16200 build_warnings="${t} ${build_warnings}";;
16201 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16202 esac
16203 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16204 echo "Setting compiler warning flags = $build_warnings" 6>&1
16205 fi
16206 fi
16207 # Check whether --enable-sim-build-warnings was given.
16208 if test "${enable_sim_build_warnings+set}" = set; then :
16209 enableval=$enable_sim_build_warnings; case "${enableval}" in
16210 yes) ;;
16211 no) build_warnings="-w";;
16212 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16213 build_warnings="${build_warnings} ${t}";;
16214 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16215 build_warnings="${t} ${build_warnings}";;
16216 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16217 esac
16218 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16219 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16220 fi
16221 fi
16222 WARN_CFLAGS=""
16223 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16224 then
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16226 $as_echo_n "checking compiler warning flags... " >&6; }
16227 # Separate out the -Werror flag as some files just cannot be
16228 # compiled with it enabled.
16229 for w in ${build_warnings}; do
16230 case $w in
16231 -Werr*) WERROR_CFLAGS=-Werror ;;
16232 *) w="$w"
16233 case $w in
16234 -Wno-*)
16235 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16236 -Wformat-nonliteral)
16237 w="-Wformat $w"
16238 wtest="$w"
16239 ;;
16240 *)
16241 wtest=$w ;;
16242 esac
16243
16244 saved_CFLAGS="$CFLAGS"
16245 CFLAGS="$CFLAGS -Werror $wtest"
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248
16249 int
16250 main ()
16251 {
16252
16253 ;
16254 return 0;
16255 }
16256 _ACEOF
16257 if ac_fn_c_try_compile "$LINENO"; then :
16258 WARN_CFLAGS="${WARN_CFLAGS} $w"
16259 fi
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 CFLAGS="$saved_CFLAGS"
16262 ;;
16263 esac
16264 done
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16266 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16267
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-shadow=local is supported" >&5
16269 $as_echo_n "checking whether -Wno-shadow=local is supported... " >&6; }
16270 w="-Wno-shadow=local"
16271 case $w in
16272 -Wno-*)
16273 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16274 -Wformat-nonliteral)
16275 w="-Wformat $w"
16276 wtest="$w"
16277 ;;
16278 *)
16279 wtest=$w ;;
16280 esac
16281
16282 saved_CFLAGS="$CFLAGS"
16283 CFLAGS="$CFLAGS -Werror $wtest"
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286
16287 int
16288 main ()
16289 {
16290
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 if ac_fn_c_try_compile "$LINENO"; then :
16296 SIM_CFLAG_WNO_SHADOW_LOCAL=-Wno-shadow=local
16297
16298
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16300 $as_echo "yes" >&6; }
16301
16302 else
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304 $as_echo "no" >&6; }
16305 fi
16306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 CFLAGS="$saved_CFLAGS"
16308
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-unused-but-set-variable is supported" >&5
16310 $as_echo_n "checking whether -Wno-unused-but-set-variable is supported... " >&6; }
16311 w="-Wno-unused-but-set-variable"
16312 case $w in
16313 -Wno-*)
16314 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
16315 -Wformat-nonliteral)
16316 w="-Wformat $w"
16317 wtest="$w"
16318 ;;
16319 *)
16320 wtest=$w ;;
16321 esac
16322
16323 saved_CFLAGS="$CFLAGS"
16324 CFLAGS="$CFLAGS -Werror $wtest"
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327
16328 int
16329 main ()
16330 {
16331
16332 ;
16333 return 0;
16334 }
16335 _ACEOF
16336 if ac_fn_c_try_compile "$LINENO"; then :
16337 SIM_CFLAG_WNO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
16338
16339
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16341 $as_echo "yes" >&6; }
16342
16343 else
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16345 $as_echo "no" >&6; }
16346 fi
16347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348 CFLAGS="$saved_CFLAGS"
16349
16350 fi
16351
16352
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16354 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16355 # Check whether --enable-sim-frv-trapdump was given.
16356 if test "${enable_sim_frv_trapdump+set}" = set; then :
16357 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16358 yes|no) ;;
16359 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16360 esac
16361 fi
16362
16363 if test "x${enable_sim_frv_trapdump}" = xyes; then
16364 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16366 $as_echo "yes" >&6; }
16367 else
16368 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16370 $as_echo "no" >&6; }
16371 fi
16372
16373
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
16376 $as_echo_n "checking mips subtarget... " >&6; }
16377 SIM_MIPS_SUBTARGET=
16378 case ${target} in #(
16379 mips64vr*-*-*) :
16380 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16381 mips*tx39*) :
16382 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
16383 mips*-sde-elf*) :
16384 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16385 mips*-mti-elf*) :
16386 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16387 mipsisa32*-*-*) :
16388 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16389 mipsisa64*-*-*) :
16390 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
16391 *) :
16392 ;;
16393 esac
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
16395 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
16396
16397
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
16399 $as_echo_n "checking mips bitsize... " >&6; }
16400 SIM_MIPS_BITSIZE=64
16401 case ${target} in #(
16402 mips*-sde-elf*) :
16403 SIM_MIPS_BITSIZE=64 ;; #(
16404 mips*-mti-elf*) :
16405 SIM_MIPS_BITSIZE=64 ;; #(
16406 mips64*-*-*) :
16407 SIM_MIPS_BITSIZE=64 ;; #(
16408 mips16*-*-*) :
16409 SIM_MIPS_BITSIZE=64 ;; #(
16410 mipsisa32*-*-*) :
16411 SIM_MIPS_BITSIZE=32 ;; #(
16412 mipsisa64*-*-*) :
16413 SIM_MIPS_BITSIZE=64 ;; #(
16414 mips*-*-*) :
16415 SIM_MIPS_BITSIZE=32 ;; #(
16416 *) :
16417 ;;
16418 esac
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16420 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16421
16422
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16424 $as_echo_n "checking mips fpu bitsize... " >&6; }
16425 SIM_MIPS_FPU_BITSIZE=64
16426 case ${target} in #(
16427 mips*tx39*) :
16428 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16429 mips*-sde-elf*) :
16430 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16431 mips*-mti-elf*) :
16432 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16433 mipsisa32*-*-*) :
16434 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16435 mipsisa64*-*-*) :
16436 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16437 mips*-*-*) :
16438 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16439 *) :
16440 ;;
16441 esac
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16443 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16444
16445
16446 SIM_MIPS_GEN=SINGLE
16447 sim_mips_single_machine="-M mipsIV"
16448 sim_mips_m16_machine="-M mips16,mipsIII"
16449 sim_mips_single_filter="32,64,f"
16450 sim_mips_m16_filter="16"
16451 case ${target} in #(
16452 mips*tx39*) :
16453 SIM_MIPS_GEN=SINGLE
16454 sim_mips_single_filter="32,f"
16455 sim_mips_single_machine="-M r3900" ;; #(
16456 mips64vr41*) :
16457 SIM_MIPS_GEN=M16
16458 sim_mips_single_machine="-M vr4100"
16459 sim_mips_m16_machine="-M vr4100" ;; #(
16460 mips64*) :
16461 SIM_MIPS_GEN=MULTI
16462 sim_mips_multi_configs="\
16463 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16464 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16465 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16466 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16467 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16468 sim_mips_multi_default=mips5000 ;; #(
16469 mips*-sde-elf* | mips*-mti-elf*) :
16470 SIM_MIPS_GEN=MULTI
16471 sim_mips_multi_configs="\
16472 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16473 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16474 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16475 sim_mips_multi_default=mipsisa64r2 ;; #(
16476 mips16*) :
16477 SIM_MIPS_GEN=M16 ;; #(
16478 mipsisa32r2*) :
16479 SIM_MIPS_GEN=MULTI
16480 sim_mips_multi_configs="\
16481 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16482 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16483 sim_mips_multi_default=mipsisa32r2 ;; #(
16484 mipsisa32r6*) :
16485 SIM_MIPS_GEN=SINGLE
16486 sim_mips_single_machine="-M mips32r6"
16487 sim_mips_single_filter="32,f" ;; #(
16488 mipsisa32*) :
16489 SIM_MIPS_GEN=M16
16490 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16491 sim_mips_m16_machine="-M mips16,mips16e,mips32"
16492 sim_mips_single_filter="32,f" ;; #(
16493 mipsisa64r2*) :
16494 SIM_MIPS_GEN=M16
16495 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16496 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16497 mipsisa64r6*) :
16498 SIM_MIPS_GEN=SINGLE
16499 sim_mips_single_machine="-M mips64r6" ;; #(
16500 mipsisa64sb1*) :
16501 SIM_MIPS_GEN=SINGLE
16502 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16503 mipsisa64*) :
16504 SIM_MIPS_GEN=M16
16505 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16506 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16507 mips*lsi*) :
16508 SIM_MIPS_GEN=M16
16509 sim_mips_single_machine="-M mipsIII,mips16"
16510 sim_mips_m16_machine="-M mips16,mipsIII"
16511 sim_mips_single_filter="32,f" ;; #(
16512 mips*) :
16513 SIM_MIPS_GEN=SINGLE
16514 sim_mips_single_filter="32,f" ;; #(
16515 *) :
16516 ;;
16517 esac
16518
16519 SIM_MIPS_IGEN_ITABLE_FLAGS=
16520 SIM_MIPS_MULTI_SRC=
16521 SIM_MIPS_MULTI_OBJ=
16522 SIM_MIPS_MULTI_IGEN_CONFIGS=
16523 if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16524 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16525 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16526 fi
16527
16528 as_dir=mips; as_fn_mkdir_p
16529 rm -f mips/multi-include.h mips/multi-run.c
16530 sim_mips_seen_default=no
16531
16532 cat << __EOF__ > mips/multi-run.c
16533 /* Main entry point for MULTI simulators.
16534 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16535
16536 This program is free software; you can redistribute it and/or modify
16537 it under the terms of the GNU General Public License as published by
16538 the Free Software Foundation; either version 3 of the License, or
16539 (at your option) any later version.
16540
16541 This program is distributed in the hope that it will be useful,
16542 but WITHOUT ANY WARRANTY; without even the implied warranty of
16543 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16544 GNU General Public License for more details.
16545
16546 You should have received a copy of the GNU General Public License
16547 along with this program. If not, see <http://www.gnu.org/licenses/>.
16548
16549 --
16550
16551 This file was generated by sim/mips/configure. */
16552
16553 #include "sim-main.h"
16554 #include "multi-include.h"
16555 #include "bfd/elf-bfd.h"
16556 #include "bfd/elfxx-mips.h"
16557 #include "elf/mips.h"
16558
16559 #define SD sd
16560 #define CPU cpu
16561
16562 void
16563 sim_engine_run (SIM_DESC sd,
16564 int next_cpu_nr,
16565 int nr_cpus,
16566 int signal) /* ignore */
16567 {
16568 int mach;
16569
16570 if (STATE_ARCHITECTURE (sd) == NULL)
16571 mach = bfd_mach_${sim_mips_multi_default};
16572 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16573 & EF_MIPS_ARCH_ASE_MICROMIPS)
16574 mach = bfd_mach_mips_micromips;
16575 else
16576 {
16577 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16578 if (!mach)
16579 mach = STATE_ARCHITECTURE (SD)->mach;
16580 }
16581
16582 switch (mach)
16583 {
16584 __EOF__
16585
16586 for fc in ${sim_mips_multi_configs}; do
16587
16588 c=`echo ${fc} | sed 's/:[^:]*$//'`
16589 bfdmachs=`echo ${fc} | sed 's/.*://'`
16590 name=`echo ${c} | sed 's/:.*//'`
16591 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16592 filter=`echo ${c} | sed 's/.*://'`
16593
16594 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16595
16596 case ${c} in #(
16597 *:*mips16*:*) :
16598 ws="m32 m16"
16599
16600 as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
16601 as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
16602 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16603 ;; #(
16604 *:*micromips32*:*) :
16605 ws="micromips_m32 micromips16 micromips32"
16606
16607 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16608 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16609 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16610 ;; #(
16611 *:*micromips64*:*) :
16612 ws="micromips_m64 micromips16 micromips64"
16613
16614 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16615 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16616 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16617 ;; #(
16618 *) :
16619 ws=m32 ;;
16620 esac
16621
16622 for w in ${ws}; do
16623 for base in engine icache idecode model semantics support; do
16624 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
16625 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
16626 as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
16627 done
16628 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16629 done
16630
16631 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16632
16633 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16634 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16635 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16636 echo " default:" >> mips/multi-run.c
16637 sim_mips_seen_default=yes
16638
16639 fi
16640 done
16641 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16642 >> mips/multi-run.c
16643 echo " break;" >> mips/multi-run.c
16644 done
16645
16646 if test "x$sim_mips_seen_default" = xno; then :
16647 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16648 fi
16649
16650 cat << __EOF__ >> mips/multi-run.c
16651 }
16652 }
16653 __EOF__
16654
16655 else
16656 SIM_MIPS_MULTI_SRC=mips/doesnt-exist.c
16657 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
16658 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16659 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16660 fi
16661
16662 fi
16663 SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16664 SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16665
16666
16667
16668
16669
16670
16671
16672 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16673 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16674 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16675 else
16676 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16677 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16678 fi
16679
16680 if test "$SIM_MIPS_GEN" = "M16"; then
16681 SIM_MIPS_GEN_MODE_M16_TRUE=
16682 SIM_MIPS_GEN_MODE_M16_FALSE='#'
16683 else
16684 SIM_MIPS_GEN_MODE_M16_TRUE='#'
16685 SIM_MIPS_GEN_MODE_M16_FALSE=
16686 fi
16687
16688 if test "$SIM_MIPS_GEN" = "MULTI"; then
16689 SIM_MIPS_GEN_MODE_MULTI_TRUE=
16690 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
16691 else
16692 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
16693 SIM_MIPS_GEN_MODE_MULTI_FALSE=
16694 fi
16695
16696
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16698 $as_echo_n "checking riscv bitsize... " >&6; }
16699 SIM_RISCV_BITSIZE=64
16700 case $target in #(
16701 riscv32*) :
16702 SIM_RISCV_BITSIZE=32 ;; #(
16703 *) :
16704 ;;
16705 esac
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16707 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16708
16709
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16711 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16712 # Check whether --enable-sim-rx-cycle-accurate was given.
16713 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16714 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16715 yes | no) ;;
16716 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16717 esac
16718 fi
16719
16720 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16721 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16723 $as_echo "yes" >&6; }
16724 else
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16726 $as_echo "no" >&6; }
16727 fi
16728
16729
16730
16731 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16732
16733 cat >confcache <<\_ACEOF
16734 # This file is a shell script that caches the results of configure
16735 # tests run on this system so they can be shared between configure
16736 # scripts and configure runs, see configure's option --config-cache.
16737 # It is not useful on other systems. If it contains results you don't
16738 # want to keep, you may remove or edit it.
16739 #
16740 # config.status only pays attention to the cache file if you give it
16741 # the --recheck option to rerun configure.
16742 #
16743 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16744 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16745 # following values.
16746
16747 _ACEOF
16748
16749 # The following way of writing the cache mishandles newlines in values,
16750 # but we know of no workaround that is simple, portable, and efficient.
16751 # So, we kill variables containing newlines.
16752 # Ultrix sh set writes to stderr and can't be redirected directly,
16753 # and sets the high bit in the cache file unless we assign to the vars.
16754 (
16755 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16756 eval ac_val=\$$ac_var
16757 case $ac_val in #(
16758 *${as_nl}*)
16759 case $ac_var in #(
16760 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16762 esac
16763 case $ac_var in #(
16764 _ | IFS | as_nl) ;; #(
16765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16766 *) { eval $ac_var=; unset $ac_var;} ;;
16767 esac ;;
16768 esac
16769 done
16770
16771 (set) 2>&1 |
16772 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16773 *${as_nl}ac_space=\ *)
16774 # `set' does not quote correctly, so add quotes: double-quote
16775 # substitution turns \\\\ into \\, and sed turns \\ into \.
16776 sed -n \
16777 "s/'/'\\\\''/g;
16778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16779 ;; #(
16780 *)
16781 # `set' quotes correctly as required by POSIX, so do not add quotes.
16782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16783 ;;
16784 esac |
16785 sort
16786 ) |
16787 sed '
16788 /^ac_cv_env_/b end
16789 t clear
16790 :clear
16791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16792 t end
16793 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16794 :end' >>confcache
16795 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16796 if test -w "$cache_file"; then
16797 if test "x$cache_file" != "x/dev/null"; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16799 $as_echo "$as_me: updating cache $cache_file" >&6;}
16800 if test ! -f "$cache_file" || test -h "$cache_file"; then
16801 cat confcache >"$cache_file"
16802 else
16803 case $cache_file in #(
16804 */* | ?:*)
16805 mv -f confcache "$cache_file"$$ &&
16806 mv -f "$cache_file"$$ "$cache_file" ;; #(
16807 *)
16808 mv -f confcache "$cache_file" ;;
16809 esac
16810 fi
16811 fi
16812 else
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16814 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16815 fi
16816 fi
16817 rm -f confcache
16818
16819 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16820 # Let make expand exec_prefix.
16821 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16822
16823 DEFS=-DHAVE_CONFIG_H
16824
16825 ac_libobjs=
16826 ac_ltlibobjs=
16827 U=
16828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16829 # 1. Remove the extension, and $U if already installed.
16830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16833 # will be set to the directory where LIBOBJS objects are built.
16834 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16835 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16836 done
16837 LIBOBJS=$ac_libobjs
16838
16839 LTLIBOBJS=$ac_ltlibobjs
16840
16841
16842
16843 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16844 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16848 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16849 if test -n "$am_sleep_pid"; then
16850 # Hide warnings about reused PIDs.
16851 wait $am_sleep_pid 2>/dev/null
16852 fi
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16854 $as_echo "done" >&6; }
16855 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16856 as_fn_error $? "conditional \"AMDEP\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16858 fi
16859 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16860 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16862 fi
16863 if test -n "$EXEEXT"; then
16864 am__EXEEXT_TRUE=
16865 am__EXEEXT_FALSE='#'
16866 else
16867 am__EXEEXT_TRUE='#'
16868 am__EXEEXT_FALSE=
16869 fi
16870
16871 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16872 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16874 fi
16875 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16876 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16878 fi
16879 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16880 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16882 fi
16883 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16884 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16886 fi
16887 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16888 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16890 fi
16891 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16892 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16894 fi
16895 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16896 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16898 fi
16899 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16900 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16902 fi
16903 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16904 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 fi
16907 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16908 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 fi
16911 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16912 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16914 fi
16915 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16916 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 fi
16919 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16920 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 fi
16923 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16924 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 fi
16927 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16928 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 fi
16931 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16932 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 fi
16935 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16936 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 fi
16939 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16940 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 fi
16943 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16944 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 fi
16947 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16948 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 fi
16951 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16952 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16954 fi
16955 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16956 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16958 fi
16959 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16960 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16962 fi
16963 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16964 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16966 fi
16967 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16968 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16970 fi
16971 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16972 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 fi
16975 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16976 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 fi
16979 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16980 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 fi
16983 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16984 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 fi
16987 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16988 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 fi
16991 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16992 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16994 fi
16995 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16996 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16998 fi
16999 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
17000 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
17001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17002 fi
17003 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
17004 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
17005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17006 fi
17007 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
17008 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
17009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17010 fi
17011 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
17012 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
17013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17014 fi
17015 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
17016 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
17017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17018 fi
17019
17020 : "${CONFIG_STATUS=./config.status}"
17021 ac_write_fail=0
17022 ac_clean_files_save=$ac_clean_files
17023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17025 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17026 as_write_fail=0
17027 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17028 #! $SHELL
17029 # Generated by $as_me.
17030 # Run this file to recreate the current configuration.
17031 # Compiler output produced by configure, useful for debugging
17032 # configure, is in config.log if it exists.
17033
17034 debug=false
17035 ac_cs_recheck=false
17036 ac_cs_silent=false
17037
17038 SHELL=\${CONFIG_SHELL-$SHELL}
17039 export SHELL
17040 _ASEOF
17041 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17042 ## -------------------- ##
17043 ## M4sh Initialization. ##
17044 ## -------------------- ##
17045
17046 # Be more Bourne compatible
17047 DUALCASE=1; export DUALCASE # for MKS sh
17048 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17049 emulate sh
17050 NULLCMD=:
17051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17052 # is contrary to our usage. Disable this feature.
17053 alias -g '${1+"$@"}'='"$@"'
17054 setopt NO_GLOB_SUBST
17055 else
17056 case `(set -o) 2>/dev/null` in #(
17057 *posix*) :
17058 set -o posix ;; #(
17059 *) :
17060 ;;
17061 esac
17062 fi
17063
17064
17065 as_nl='
17066 '
17067 export as_nl
17068 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17069 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17070 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17072 # Prefer a ksh shell builtin over an external printf program on Solaris,
17073 # but without wasting forks for bash or zsh.
17074 if test -z "$BASH_VERSION$ZSH_VERSION" \
17075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17076 as_echo='print -r --'
17077 as_echo_n='print -rn --'
17078 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17079 as_echo='printf %s\n'
17080 as_echo_n='printf %s'
17081 else
17082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17083 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17084 as_echo_n='/usr/ucb/echo -n'
17085 else
17086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17087 as_echo_n_body='eval
17088 arg=$1;
17089 case $arg in #(
17090 *"$as_nl"*)
17091 expr "X$arg" : "X\\(.*\\)$as_nl";
17092 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17093 esac;
17094 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17095 '
17096 export as_echo_n_body
17097 as_echo_n='sh -c $as_echo_n_body as_echo'
17098 fi
17099 export as_echo_body
17100 as_echo='sh -c $as_echo_body as_echo'
17101 fi
17102
17103 # The user is always right.
17104 if test "${PATH_SEPARATOR+set}" != set; then
17105 PATH_SEPARATOR=:
17106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17108 PATH_SEPARATOR=';'
17109 }
17110 fi
17111
17112
17113 # IFS
17114 # We need space, tab and new line, in precisely that order. Quoting is
17115 # there to prevent editors from complaining about space-tab.
17116 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17117 # splitting by setting IFS to empty value.)
17118 IFS=" "" $as_nl"
17119
17120 # Find who we are. Look in the path if we contain no directory separator.
17121 as_myself=
17122 case $0 in #((
17123 *[\\/]* ) as_myself=$0 ;;
17124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17125 for as_dir in $PATH
17126 do
17127 IFS=$as_save_IFS
17128 test -z "$as_dir" && as_dir=.
17129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17130 done
17131 IFS=$as_save_IFS
17132
17133 ;;
17134 esac
17135 # We did not find ourselves, most probably we were run as `sh COMMAND'
17136 # in which case we are not to be found in the path.
17137 if test "x$as_myself" = x; then
17138 as_myself=$0
17139 fi
17140 if test ! -f "$as_myself"; then
17141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17142 exit 1
17143 fi
17144
17145 # Unset variables that we do not need and which cause bugs (e.g. in
17146 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17147 # suppresses any "Segmentation fault" message there. '((' could
17148 # trigger a bug in pdksh 5.2.14.
17149 for as_var in BASH_ENV ENV MAIL MAILPATH
17150 do eval test x\${$as_var+set} = xset \
17151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17152 done
17153 PS1='$ '
17154 PS2='> '
17155 PS4='+ '
17156
17157 # NLS nuisances.
17158 LC_ALL=C
17159 export LC_ALL
17160 LANGUAGE=C
17161 export LANGUAGE
17162
17163 # CDPATH.
17164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17165
17166
17167 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17168 # ----------------------------------------
17169 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17170 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17171 # script with STATUS, using 1 if that was 0.
17172 as_fn_error ()
17173 {
17174 as_status=$1; test $as_status -eq 0 && as_status=1
17175 if test "$4"; then
17176 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17178 fi
17179 $as_echo "$as_me: error: $2" >&2
17180 as_fn_exit $as_status
17181 } # as_fn_error
17182
17183
17184 # as_fn_set_status STATUS
17185 # -----------------------
17186 # Set $? to STATUS, without forking.
17187 as_fn_set_status ()
17188 {
17189 return $1
17190 } # as_fn_set_status
17191
17192 # as_fn_exit STATUS
17193 # -----------------
17194 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17195 as_fn_exit ()
17196 {
17197 set +e
17198 as_fn_set_status $1
17199 exit $1
17200 } # as_fn_exit
17201
17202 # as_fn_unset VAR
17203 # ---------------
17204 # Portably unset VAR.
17205 as_fn_unset ()
17206 {
17207 { eval $1=; unset $1;}
17208 }
17209 as_unset=as_fn_unset
17210 # as_fn_append VAR VALUE
17211 # ----------------------
17212 # Append the text in VALUE to the end of the definition contained in VAR. Take
17213 # advantage of any shell optimizations that allow amortized linear growth over
17214 # repeated appends, instead of the typical quadratic growth present in naive
17215 # implementations.
17216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17217 eval 'as_fn_append ()
17218 {
17219 eval $1+=\$2
17220 }'
17221 else
17222 as_fn_append ()
17223 {
17224 eval $1=\$$1\$2
17225 }
17226 fi # as_fn_append
17227
17228 # as_fn_arith ARG...
17229 # ------------------
17230 # Perform arithmetic evaluation on the ARGs, and store the result in the
17231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17232 # must be portable across $(()) and expr.
17233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17234 eval 'as_fn_arith ()
17235 {
17236 as_val=$(( $* ))
17237 }'
17238 else
17239 as_fn_arith ()
17240 {
17241 as_val=`expr "$@" || test $? -eq 1`
17242 }
17243 fi # as_fn_arith
17244
17245
17246 if expr a : '\(a\)' >/dev/null 2>&1 &&
17247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17248 as_expr=expr
17249 else
17250 as_expr=false
17251 fi
17252
17253 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17254 as_basename=basename
17255 else
17256 as_basename=false
17257 fi
17258
17259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17260 as_dirname=dirname
17261 else
17262 as_dirname=false
17263 fi
17264
17265 as_me=`$as_basename -- "$0" ||
17266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17267 X"$0" : 'X\(//\)$' \| \
17268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17269 $as_echo X/"$0" |
17270 sed '/^.*\/\([^/][^/]*\)\/*$/{
17271 s//\1/
17272 q
17273 }
17274 /^X\/\(\/\/\)$/{
17275 s//\1/
17276 q
17277 }
17278 /^X\/\(\/\).*/{
17279 s//\1/
17280 q
17281 }
17282 s/.*/./; q'`
17283
17284 # Avoid depending upon Character Ranges.
17285 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17286 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17287 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17288 as_cr_digits='0123456789'
17289 as_cr_alnum=$as_cr_Letters$as_cr_digits
17290
17291 ECHO_C= ECHO_N= ECHO_T=
17292 case `echo -n x` in #(((((
17293 -n*)
17294 case `echo 'xy\c'` in
17295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17296 xy) ECHO_C='\c';;
17297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17298 ECHO_T=' ';;
17299 esac;;
17300 *)
17301 ECHO_N='-n';;
17302 esac
17303
17304 rm -f conf$$ conf$$.exe conf$$.file
17305 if test -d conf$$.dir; then
17306 rm -f conf$$.dir/conf$$.file
17307 else
17308 rm -f conf$$.dir
17309 mkdir conf$$.dir 2>/dev/null
17310 fi
17311 if (echo >conf$$.file) 2>/dev/null; then
17312 if ln -s conf$$.file conf$$ 2>/dev/null; then
17313 as_ln_s='ln -s'
17314 # ... but there are two gotchas:
17315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17317 # In both cases, we have to default to `cp -pR'.
17318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17319 as_ln_s='cp -pR'
17320 elif ln conf$$.file conf$$ 2>/dev/null; then
17321 as_ln_s=ln
17322 else
17323 as_ln_s='cp -pR'
17324 fi
17325 else
17326 as_ln_s='cp -pR'
17327 fi
17328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17329 rmdir conf$$.dir 2>/dev/null
17330
17331
17332 # as_fn_mkdir_p
17333 # -------------
17334 # Create "$as_dir" as a directory, including parents if necessary.
17335 as_fn_mkdir_p ()
17336 {
17337
17338 case $as_dir in #(
17339 -*) as_dir=./$as_dir;;
17340 esac
17341 test -d "$as_dir" || eval $as_mkdir_p || {
17342 as_dirs=
17343 while :; do
17344 case $as_dir in #(
17345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17346 *) as_qdir=$as_dir;;
17347 esac
17348 as_dirs="'$as_qdir' $as_dirs"
17349 as_dir=`$as_dirname -- "$as_dir" ||
17350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17351 X"$as_dir" : 'X\(//\)[^/]' \| \
17352 X"$as_dir" : 'X\(//\)$' \| \
17353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17354 $as_echo X"$as_dir" |
17355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17356 s//\1/
17357 q
17358 }
17359 /^X\(\/\/\)[^/].*/{
17360 s//\1/
17361 q
17362 }
17363 /^X\(\/\/\)$/{
17364 s//\1/
17365 q
17366 }
17367 /^X\(\/\).*/{
17368 s//\1/
17369 q
17370 }
17371 s/.*/./; q'`
17372 test -d "$as_dir" && break
17373 done
17374 test -z "$as_dirs" || eval "mkdir $as_dirs"
17375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17376
17377
17378 } # as_fn_mkdir_p
17379 if mkdir -p . 2>/dev/null; then
17380 as_mkdir_p='mkdir -p "$as_dir"'
17381 else
17382 test -d ./-p && rmdir ./-p
17383 as_mkdir_p=false
17384 fi
17385
17386
17387 # as_fn_executable_p FILE
17388 # -----------------------
17389 # Test if FILE is an executable regular file.
17390 as_fn_executable_p ()
17391 {
17392 test -f "$1" && test -x "$1"
17393 } # as_fn_executable_p
17394 as_test_x='test -x'
17395 as_executable_p=as_fn_executable_p
17396
17397 # Sed expression to map a string onto a valid CPP name.
17398 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17399
17400 # Sed expression to map a string onto a valid variable name.
17401 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17402
17403
17404 exec 6>&1
17405 ## ----------------------------------- ##
17406 ## Main body of $CONFIG_STATUS script. ##
17407 ## ----------------------------------- ##
17408 _ASEOF
17409 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17410
17411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17412 # Save the log message, to keep $0 and so on meaningful, and to
17413 # report actual input values of CONFIG_FILES etc. instead of their
17414 # values after options handling.
17415 ac_log="
17416 This file was extended by sim $as_me 0, which was
17417 generated by GNU Autoconf 2.69. Invocation command line was
17418
17419 CONFIG_FILES = $CONFIG_FILES
17420 CONFIG_HEADERS = $CONFIG_HEADERS
17421 CONFIG_LINKS = $CONFIG_LINKS
17422 CONFIG_COMMANDS = $CONFIG_COMMANDS
17423 $ $0 $@
17424
17425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17426 "
17427
17428 _ACEOF
17429
17430 case $ac_config_files in *"
17431 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17432 esac
17433
17434 case $ac_config_headers in *"
17435 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17436 esac
17437
17438
17439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17440 # Files that config.status was made for.
17441 config_files="$ac_config_files"
17442 config_headers="$ac_config_headers"
17443 config_commands="$ac_config_commands"
17444
17445 _ACEOF
17446
17447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17448 ac_cs_usage="\
17449 \`$as_me' instantiates files and other configuration actions
17450 from templates according to the current configuration. Unless the files
17451 and actions are specified as TAGs, all are instantiated by default.
17452
17453 Usage: $0 [OPTION]... [TAG]...
17454
17455 -h, --help print this help, then exit
17456 -V, --version print version number and configuration settings, then exit
17457 --config print configuration, then exit
17458 -q, --quiet, --silent
17459 do not print progress messages
17460 -d, --debug don't remove temporary files
17461 --recheck update $as_me by reconfiguring in the same conditions
17462 --file=FILE[:TEMPLATE]
17463 instantiate the configuration file FILE
17464 --header=FILE[:TEMPLATE]
17465 instantiate the configuration header FILE
17466
17467 Configuration files:
17468 $config_files
17469
17470 Configuration headers:
17471 $config_headers
17472
17473 Configuration commands:
17474 $config_commands
17475
17476 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17477 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17478
17479 _ACEOF
17480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17481 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17482 ac_cs_version="\\
17483 sim config.status 0
17484 configured by $0, generated by GNU Autoconf 2.69,
17485 with options \\"\$ac_cs_config\\"
17486
17487 Copyright (C) 2012 Free Software Foundation, Inc.
17488 This config.status script is free software; the Free Software Foundation
17489 gives unlimited permission to copy, distribute and modify it."
17490
17491 ac_pwd='$ac_pwd'
17492 srcdir='$srcdir'
17493 INSTALL='$INSTALL'
17494 MKDIR_P='$MKDIR_P'
17495 AWK='$AWK'
17496 test -n "\$AWK" || AWK=awk
17497 _ACEOF
17498
17499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17500 # The default lists apply if the user does not specify any file.
17501 ac_need_defaults=:
17502 while test $# != 0
17503 do
17504 case $1 in
17505 --*=?*)
17506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17508 ac_shift=:
17509 ;;
17510 --*=)
17511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17512 ac_optarg=
17513 ac_shift=:
17514 ;;
17515 *)
17516 ac_option=$1
17517 ac_optarg=$2
17518 ac_shift=shift
17519 ;;
17520 esac
17521
17522 case $ac_option in
17523 # Handling of the options.
17524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17525 ac_cs_recheck=: ;;
17526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17527 $as_echo "$ac_cs_version"; exit ;;
17528 --config | --confi | --conf | --con | --co | --c )
17529 $as_echo "$ac_cs_config"; exit ;;
17530 --debug | --debu | --deb | --de | --d | -d )
17531 debug=: ;;
17532 --file | --fil | --fi | --f )
17533 $ac_shift
17534 case $ac_optarg in
17535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17536 '') as_fn_error $? "missing file argument" ;;
17537 esac
17538 as_fn_append CONFIG_FILES " '$ac_optarg'"
17539 ac_need_defaults=false;;
17540 --header | --heade | --head | --hea )
17541 $ac_shift
17542 case $ac_optarg in
17543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17544 esac
17545 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17546 ac_need_defaults=false;;
17547 --he | --h)
17548 # Conflict between --help and --header
17549 as_fn_error $? "ambiguous option: \`$1'
17550 Try \`$0 --help' for more information.";;
17551 --help | --hel | -h )
17552 $as_echo "$ac_cs_usage"; exit ;;
17553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17555 ac_cs_silent=: ;;
17556
17557 # This is an error.
17558 -*) as_fn_error $? "unrecognized option: \`$1'
17559 Try \`$0 --help' for more information." ;;
17560
17561 *) as_fn_append ac_config_targets " $1"
17562 ac_need_defaults=false ;;
17563
17564 esac
17565 shift
17566 done
17567
17568 ac_configure_extra_args=
17569
17570 if $ac_cs_silent; then
17571 exec 6>/dev/null
17572 ac_configure_extra_args="$ac_configure_extra_args --silent"
17573 fi
17574
17575 _ACEOF
17576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17577 if \$ac_cs_recheck; then
17578 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17579 shift
17580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17581 CONFIG_SHELL='$SHELL'
17582 export CONFIG_SHELL
17583 exec "\$@"
17584 fi
17585
17586 _ACEOF
17587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17588 exec 5>>config.log
17589 {
17590 echo
17591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17592 ## Running $as_me. ##
17593 _ASBOX
17594 $as_echo "$ac_log"
17595 } >&5
17596
17597 _ACEOF
17598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17599 #
17600 # INIT-COMMANDS
17601 #
17602
17603
17604 # The HP-UX ksh and POSIX shell print the target directory to stdout
17605 # if CDPATH is set.
17606 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17607
17608 sed_quote_subst='$sed_quote_subst'
17609 double_quote_subst='$double_quote_subst'
17610 delay_variable_subst='$delay_variable_subst'
17611 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17612 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17613 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17614 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17615 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17616 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17617 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17618 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17619 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17620 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17621 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17622 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17623 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17624 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17625 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17626 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17627 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17628 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17629 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17630 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17631 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17632 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17633 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17634 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17635 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17636 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17637 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17638 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17639 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17640 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17641 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17642 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17643 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17644 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17645 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17646 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17647 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17648 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17649 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17650 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17651 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17652 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17653 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17654 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17655 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17656 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17657 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17659 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"`'
17660 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17661 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17662 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17663 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17664 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17665 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17666 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17667 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17668 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17669 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17670 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17671 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17672 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17673 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17674 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17675 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17676 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17677 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17678 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17679 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17680 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17681 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17682 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17683 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17684 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17685 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17686 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17687 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17688 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17689 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17690 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17691 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17692 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17693 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17694 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17695 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17696 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17697 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17698 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17699 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17700 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17701 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17702 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17703 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17704 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17705 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17706 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17707 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17708 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17709 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17710 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17711 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17712 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17713 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17714 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17715 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17716 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17717 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17718 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17719 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17720 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17721 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17722 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17723 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17724 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17725 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17726 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17727 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17728 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17729 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17730 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17731
17732 LTCC='$LTCC'
17733 LTCFLAGS='$LTCFLAGS'
17734 compiler='$compiler_DEFAULT'
17735
17736 # A function that is used when there is no print builtin or printf.
17737 func_fallback_echo ()
17738 {
17739 eval 'cat <<_LTECHO_EOF
17740 \$1
17741 _LTECHO_EOF'
17742 }
17743
17744 # Quote evaled strings.
17745 for var in SHELL \
17746 ECHO \
17747 SED \
17748 GREP \
17749 EGREP \
17750 FGREP \
17751 LD \
17752 NM \
17753 LN_S \
17754 lt_SP2NL \
17755 lt_NL2SP \
17756 reload_flag \
17757 OBJDUMP \
17758 deplibs_check_method \
17759 file_magic_cmd \
17760 AR \
17761 AR_FLAGS \
17762 STRIP \
17763 RANLIB \
17764 CC \
17765 CFLAGS \
17766 compiler \
17767 lt_cv_sys_global_symbol_pipe \
17768 lt_cv_sys_global_symbol_to_cdecl \
17769 lt_cv_sys_global_symbol_to_c_name_address \
17770 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17771 lt_prog_compiler_no_builtin_flag \
17772 lt_prog_compiler_wl \
17773 lt_prog_compiler_pic \
17774 lt_prog_compiler_static \
17775 lt_cv_prog_compiler_c_o \
17776 need_locks \
17777 DSYMUTIL \
17778 NMEDIT \
17779 LIPO \
17780 OTOOL \
17781 OTOOL64 \
17782 shrext_cmds \
17783 export_dynamic_flag_spec \
17784 whole_archive_flag_spec \
17785 compiler_needs_object \
17786 with_gnu_ld \
17787 allow_undefined_flag \
17788 no_undefined_flag \
17789 hardcode_libdir_flag_spec \
17790 hardcode_libdir_flag_spec_ld \
17791 hardcode_libdir_separator \
17792 fix_srcfile_path \
17793 exclude_expsyms \
17794 include_expsyms \
17795 file_list_spec \
17796 variables_saved_for_relink \
17797 libname_spec \
17798 library_names_spec \
17799 soname_spec \
17800 install_override_mode \
17801 finish_eval \
17802 old_striplib \
17803 striplib; do
17804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17805 *[\\\\\\\`\\"\\\$]*)
17806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17807 ;;
17808 *)
17809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17810 ;;
17811 esac
17812 done
17813
17814 # Double-quote double-evaled strings.
17815 for var in reload_cmds \
17816 old_postinstall_cmds \
17817 old_postuninstall_cmds \
17818 old_archive_cmds \
17819 extract_expsyms_cmds \
17820 old_archive_from_new_cmds \
17821 old_archive_from_expsyms_cmds \
17822 archive_cmds \
17823 archive_expsym_cmds \
17824 module_cmds \
17825 module_expsym_cmds \
17826 export_symbols_cmds \
17827 prelink_cmds \
17828 postinstall_cmds \
17829 postuninstall_cmds \
17830 finish_cmds \
17831 sys_lib_search_path_spec \
17832 sys_lib_dlsearch_path_spec; do
17833 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17834 *[\\\\\\\`\\"\\\$]*)
17835 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17836 ;;
17837 *)
17838 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17839 ;;
17840 esac
17841 done
17842
17843 ac_aux_dir='$ac_aux_dir'
17844 xsi_shell='$xsi_shell'
17845 lt_shell_append='$lt_shell_append'
17846
17847 # See if we are running on zsh, and set the options which allow our
17848 # commands through without removal of \ escapes INIT.
17849 if test -n "\${ZSH_VERSION+set}" ; then
17850 setopt NO_GLOB_SUBST
17851 fi
17852
17853
17854 PACKAGE='$PACKAGE'
17855 VERSION='$VERSION'
17856 TIMESTAMP='$TIMESTAMP'
17857 RM='$RM'
17858 ofile='$ofile'
17859
17860
17861
17862 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17863
17864 _ACEOF
17865
17866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17867
17868 # Handling of arguments.
17869 for ac_config_target in $ac_config_targets
17870 do
17871 case $ac_config_target in
17872 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17873 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17874 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17875 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17876 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17877 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17878 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17879 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17880 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17881 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17882 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17883 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17884 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17885 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17886 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17887 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17888 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17889 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17890 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17891 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17892 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17893 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17894 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17895 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17896 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17897 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17898 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17899 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17900 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17901 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17902 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17903 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17904 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17905 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17906 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17907 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17909 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17910
17911 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17912 esac
17913 done
17914
17915
17916 # If the user did not use the arguments to specify the items to instantiate,
17917 # then the envvar interface is used. Set only those that are not.
17918 # We use the long form for the default assignment because of an extremely
17919 # bizarre bug on SunOS 4.1.3.
17920 if $ac_need_defaults; then
17921 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17922 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17924 fi
17925
17926 # Have a temporary directory for convenience. Make it in the build tree
17927 # simply because there is no reason against having it here, and in addition,
17928 # creating and moving files from /tmp can sometimes cause problems.
17929 # Hook for its removal unless debugging.
17930 # Note that there is a small window in which the directory will not be cleaned:
17931 # after its creation but before its name has been assigned to `$tmp'.
17932 $debug ||
17933 {
17934 tmp= ac_tmp=
17935 trap 'exit_status=$?
17936 : "${ac_tmp:=$tmp}"
17937 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17938 ' 0
17939 trap 'as_fn_exit 1' 1 2 13 15
17940 }
17941 # Create a (secure) tmp directory for tmp files.
17942
17943 {
17944 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17945 test -d "$tmp"
17946 } ||
17947 {
17948 tmp=./conf$$-$RANDOM
17949 (umask 077 && mkdir "$tmp")
17950 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17951 ac_tmp=$tmp
17952
17953 # Set up the scripts for CONFIG_FILES section.
17954 # No need to generate them if there are no CONFIG_FILES.
17955 # This happens for instance with `./config.status config.h'.
17956 if test -n "$CONFIG_FILES"; then
17957
17958
17959 ac_cr=`echo X | tr X '\015'`
17960 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17961 # But we know of no other shell where ac_cr would be empty at this
17962 # point, so we can use a bashism as a fallback.
17963 if test "x$ac_cr" = x; then
17964 eval ac_cr=\$\'\\r\'
17965 fi
17966 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17967 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17968 ac_cs_awk_cr='\\r'
17969 else
17970 ac_cs_awk_cr=$ac_cr
17971 fi
17972
17973 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17974 _ACEOF
17975
17976
17977 {
17978 echo "cat >conf$$subs.awk <<_ACEOF" &&
17979 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17980 echo "_ACEOF"
17981 } >conf$$subs.sh ||
17982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17983 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17984 ac_delim='%!_!# '
17985 for ac_last_try in false false false false false :; do
17986 . ./conf$$subs.sh ||
17987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17988
17989 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17990 if test $ac_delim_n = $ac_delim_num; then
17991 break
17992 elif $ac_last_try; then
17993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17994 else
17995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17996 fi
17997 done
17998 rm -f conf$$subs.sh
17999
18000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18001 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18002 _ACEOF
18003 sed -n '
18004 h
18005 s/^/S["/; s/!.*/"]=/
18006 p
18007 g
18008 s/^[^!]*!//
18009 :repl
18010 t repl
18011 s/'"$ac_delim"'$//
18012 t delim
18013 :nl
18014 h
18015 s/\(.\{148\}\)..*/\1/
18016 t more1
18017 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18018 p
18019 n
18020 b repl
18021 :more1
18022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18023 p
18024 g
18025 s/.\{148\}//
18026 t nl
18027 :delim
18028 h
18029 s/\(.\{148\}\)..*/\1/
18030 t more2
18031 s/["\\]/\\&/g; s/^/"/; s/$/"/
18032 p
18033 b
18034 :more2
18035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18036 p
18037 g
18038 s/.\{148\}//
18039 t delim
18040 ' <conf$$subs.awk | sed '
18041 /^[^""]/{
18042 N
18043 s/\n//
18044 }
18045 ' >>$CONFIG_STATUS || ac_write_fail=1
18046 rm -f conf$$subs.awk
18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18048 _ACAWK
18049 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18050 for (key in S) S_is_set[key] = 1
18051 FS = "\a"
18052
18053 }
18054 {
18055 line = $ 0
18056 nfields = split(line, field, "@")
18057 substed = 0
18058 len = length(field[1])
18059 for (i = 2; i < nfields; i++) {
18060 key = field[i]
18061 keylen = length(key)
18062 if (S_is_set[key]) {
18063 value = S[key]
18064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18065 len += length(value) + length(field[++i])
18066 substed = 1
18067 } else
18068 len += 1 + keylen
18069 }
18070
18071 print line
18072 }
18073
18074 _ACAWK
18075 _ACEOF
18076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18077 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18078 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18079 else
18080 cat
18081 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18082 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18083 _ACEOF
18084
18085 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18086 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18087 # trailing colons and then remove the whole line if VPATH becomes empty
18088 # (actually we leave an empty line to preserve line numbers).
18089 if test "x$srcdir" = x.; then
18090 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18091 h
18092 s///
18093 s/^/:/
18094 s/[ ]*$/:/
18095 s/:\$(srcdir):/:/g
18096 s/:\${srcdir}:/:/g
18097 s/:@srcdir@:/:/g
18098 s/^:*//
18099 s/:*$//
18100 x
18101 s/\(=[ ]*\).*/\1/
18102 G
18103 s/\n//
18104 s/^[^=]*=[ ]*$//
18105 }'
18106 fi
18107
18108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18109 fi # test -n "$CONFIG_FILES"
18110
18111 # Set up the scripts for CONFIG_HEADERS section.
18112 # No need to generate them if there are no CONFIG_HEADERS.
18113 # This happens for instance with `./config.status Makefile'.
18114 if test -n "$CONFIG_HEADERS"; then
18115 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18116 BEGIN {
18117 _ACEOF
18118
18119 # Transform confdefs.h into an awk script `defines.awk', embedded as
18120 # here-document in config.status, that substitutes the proper values into
18121 # config.h.in to produce config.h.
18122
18123 # Create a delimiter string that does not exist in confdefs.h, to ease
18124 # handling of long lines.
18125 ac_delim='%!_!# '
18126 for ac_last_try in false false :; do
18127 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18128 if test -z "$ac_tt"; then
18129 break
18130 elif $ac_last_try; then
18131 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18132 else
18133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18134 fi
18135 done
18136
18137 # For the awk script, D is an array of macro values keyed by name,
18138 # likewise P contains macro parameters if any. Preserve backslash
18139 # newline sequences.
18140
18141 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18142 sed -n '
18143 s/.\{148\}/&'"$ac_delim"'/g
18144 t rset
18145 :rset
18146 s/^[ ]*#[ ]*define[ ][ ]*/ /
18147 t def
18148 d
18149 :def
18150 s/\\$//
18151 t bsnl
18152 s/["\\]/\\&/g
18153 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18154 D["\1"]=" \3"/p
18155 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18156 d
18157 :bsnl
18158 s/["\\]/\\&/g
18159 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18160 D["\1"]=" \3\\\\\\n"\\/p
18161 t cont
18162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18163 t cont
18164 d
18165 :cont
18166 n
18167 s/.\{148\}/&'"$ac_delim"'/g
18168 t clear
18169 :clear
18170 s/\\$//
18171 t bsnlc
18172 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18173 d
18174 :bsnlc
18175 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18176 b cont
18177 ' <confdefs.h | sed '
18178 s/'"$ac_delim"'/"\\\
18179 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18180
18181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18182 for (key in D) D_is_set[key] = 1
18183 FS = "\a"
18184 }
18185 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18186 line = \$ 0
18187 split(line, arg, " ")
18188 if (arg[1] == "#") {
18189 defundef = arg[2]
18190 mac1 = arg[3]
18191 } else {
18192 defundef = substr(arg[1], 2)
18193 mac1 = arg[2]
18194 }
18195 split(mac1, mac2, "(") #)
18196 macro = mac2[1]
18197 prefix = substr(line, 1, index(line, defundef) - 1)
18198 if (D_is_set[macro]) {
18199 # Preserve the white space surrounding the "#".
18200 print prefix "define", macro P[macro] D[macro]
18201 next
18202 } else {
18203 # Replace #undef with comments. This is necessary, for example,
18204 # in the case of _POSIX_SOURCE, which is predefined and required
18205 # on some systems where configure will not decide to define it.
18206 if (defundef == "undef") {
18207 print "/*", prefix defundef, macro, "*/"
18208 next
18209 }
18210 }
18211 }
18212 { print }
18213 _ACAWK
18214 _ACEOF
18215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18216 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18217 fi # test -n "$CONFIG_HEADERS"
18218
18219
18220 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18221 shift
18222 for ac_tag
18223 do
18224 case $ac_tag in
18225 :[FHLC]) ac_mode=$ac_tag; continue;;
18226 esac
18227 case $ac_mode$ac_tag in
18228 :[FHL]*:*);;
18229 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18230 :[FH]-) ac_tag=-:-;;
18231 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18232 esac
18233 ac_save_IFS=$IFS
18234 IFS=:
18235 set x $ac_tag
18236 IFS=$ac_save_IFS
18237 shift
18238 ac_file=$1
18239 shift
18240
18241 case $ac_mode in
18242 :L) ac_source=$1;;
18243 :[FH])
18244 ac_file_inputs=
18245 for ac_f
18246 do
18247 case $ac_f in
18248 -) ac_f="$ac_tmp/stdin";;
18249 *) # Look for the file first in the build tree, then in the source tree
18250 # (if the path is not absolute). The absolute path cannot be DOS-style,
18251 # because $ac_f cannot contain `:'.
18252 test -f "$ac_f" ||
18253 case $ac_f in
18254 [\\/$]*) false;;
18255 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18256 esac ||
18257 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18258 esac
18259 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18260 as_fn_append ac_file_inputs " '$ac_f'"
18261 done
18262
18263 # Let's still pretend it is `configure' which instantiates (i.e., don't
18264 # use $as_me), people would be surprised to read:
18265 # /* config.h. Generated by config.status. */
18266 configure_input='Generated from '`
18267 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18268 `' by configure.'
18269 if test x"$ac_file" != x-; then
18270 configure_input="$ac_file. $configure_input"
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18272 $as_echo "$as_me: creating $ac_file" >&6;}
18273 fi
18274 # Neutralize special characters interpreted by sed in replacement strings.
18275 case $configure_input in #(
18276 *\&* | *\|* | *\\* )
18277 ac_sed_conf_input=`$as_echo "$configure_input" |
18278 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18279 *) ac_sed_conf_input=$configure_input;;
18280 esac
18281
18282 case $ac_tag in
18283 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18285 esac
18286 ;;
18287 esac
18288
18289 ac_dir=`$as_dirname -- "$ac_file" ||
18290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18291 X"$ac_file" : 'X\(//\)[^/]' \| \
18292 X"$ac_file" : 'X\(//\)$' \| \
18293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18294 $as_echo X"$ac_file" |
18295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18296 s//\1/
18297 q
18298 }
18299 /^X\(\/\/\)[^/].*/{
18300 s//\1/
18301 q
18302 }
18303 /^X\(\/\/\)$/{
18304 s//\1/
18305 q
18306 }
18307 /^X\(\/\).*/{
18308 s//\1/
18309 q
18310 }
18311 s/.*/./; q'`
18312 as_dir="$ac_dir"; as_fn_mkdir_p
18313 ac_builddir=.
18314
18315 case "$ac_dir" in
18316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18317 *)
18318 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18319 # A ".." for each directory in $ac_dir_suffix.
18320 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18321 case $ac_top_builddir_sub in
18322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18324 esac ;;
18325 esac
18326 ac_abs_top_builddir=$ac_pwd
18327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18328 # for backward compatibility:
18329 ac_top_builddir=$ac_top_build_prefix
18330
18331 case $srcdir in
18332 .) # We are building in place.
18333 ac_srcdir=.
18334 ac_top_srcdir=$ac_top_builddir_sub
18335 ac_abs_top_srcdir=$ac_pwd ;;
18336 [\\/]* | ?:[\\/]* ) # Absolute name.
18337 ac_srcdir=$srcdir$ac_dir_suffix;
18338 ac_top_srcdir=$srcdir
18339 ac_abs_top_srcdir=$srcdir ;;
18340 *) # Relative name.
18341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18342 ac_top_srcdir=$ac_top_build_prefix$srcdir
18343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18344 esac
18345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18346
18347
18348 case $ac_mode in
18349 :F)
18350 #
18351 # CONFIG_FILE
18352 #
18353
18354 case $INSTALL in
18355 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18356 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18357 esac
18358 ac_MKDIR_P=$MKDIR_P
18359 case $MKDIR_P in
18360 [\\/$]* | ?:[\\/]* ) ;;
18361 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18362 esac
18363 _ACEOF
18364
18365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18366 # If the template does not know about datarootdir, expand it.
18367 # FIXME: This hack should be removed a few years after 2.60.
18368 ac_datarootdir_hack=; ac_datarootdir_seen=
18369 ac_sed_dataroot='
18370 /datarootdir/ {
18371 p
18372 q
18373 }
18374 /@datadir@/p
18375 /@docdir@/p
18376 /@infodir@/p
18377 /@localedir@/p
18378 /@mandir@/p'
18379 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18380 *datarootdir*) ac_datarootdir_seen=yes;;
18381 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18383 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18384 _ACEOF
18385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18386 ac_datarootdir_hack='
18387 s&@datadir@&$datadir&g
18388 s&@docdir@&$docdir&g
18389 s&@infodir@&$infodir&g
18390 s&@localedir@&$localedir&g
18391 s&@mandir@&$mandir&g
18392 s&\\\${datarootdir}&$datarootdir&g' ;;
18393 esac
18394 _ACEOF
18395
18396 # Neutralize VPATH when `$srcdir' = `.'.
18397 # Shell code in configure.ac might set extrasub.
18398 # FIXME: do we really want to maintain this feature?
18399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18400 ac_sed_extra="$ac_vpsub
18401 $extrasub
18402 _ACEOF
18403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18404 :t
18405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18406 s|@configure_input@|$ac_sed_conf_input|;t t
18407 s&@top_builddir@&$ac_top_builddir_sub&;t t
18408 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18409 s&@srcdir@&$ac_srcdir&;t t
18410 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18411 s&@top_srcdir@&$ac_top_srcdir&;t t
18412 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18413 s&@builddir@&$ac_builddir&;t t
18414 s&@abs_builddir@&$ac_abs_builddir&;t t
18415 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18416 s&@INSTALL@&$ac_INSTALL&;t t
18417 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18418 $ac_datarootdir_hack
18419 "
18420 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18421 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18422
18423 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18424 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18425 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18426 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18428 which seems to be undefined. Please make sure it is defined" >&5
18429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18430 which seems to be undefined. Please make sure it is defined" >&2;}
18431
18432 rm -f "$ac_tmp/stdin"
18433 case $ac_file in
18434 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18435 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18436 esac \
18437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18438 ;;
18439 :H)
18440 #
18441 # CONFIG_HEADER
18442 #
18443 if test x"$ac_file" != x-; then
18444 {
18445 $as_echo "/* $configure_input */" \
18446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18447 } >"$ac_tmp/config.h" \
18448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18449 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18452 else
18453 rm -f "$ac_file"
18454 mv "$ac_tmp/config.h" "$ac_file" \
18455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18456 fi
18457 else
18458 $as_echo "/* $configure_input */" \
18459 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18460 || as_fn_error $? "could not create -" "$LINENO" 5
18461 fi
18462 # Compute "$ac_file"'s index in $config_headers.
18463 _am_arg="$ac_file"
18464 _am_stamp_count=1
18465 for _am_header in $config_headers :; do
18466 case $_am_header in
18467 $_am_arg | $_am_arg:* )
18468 break ;;
18469 * )
18470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18471 esac
18472 done
18473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18475 X"$_am_arg" : 'X\(//\)[^/]' \| \
18476 X"$_am_arg" : 'X\(//\)$' \| \
18477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18478 $as_echo X"$_am_arg" |
18479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18480 s//\1/
18481 q
18482 }
18483 /^X\(\/\/\)[^/].*/{
18484 s//\1/
18485 q
18486 }
18487 /^X\(\/\/\)$/{
18488 s//\1/
18489 q
18490 }
18491 /^X\(\/\).*/{
18492 s//\1/
18493 q
18494 }
18495 s/.*/./; q'`/stamp-h$_am_stamp_count
18496 ;;
18497
18498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18499 $as_echo "$as_me: executing $ac_file commands" >&6;}
18500 ;;
18501 esac
18502
18503
18504 case $ac_file$ac_mode in
18505 "libtool":C)
18506
18507 # See if we are running on zsh, and set the options which allow our
18508 # commands through without removal of \ escapes.
18509 if test -n "${ZSH_VERSION+set}" ; then
18510 setopt NO_GLOB_SUBST
18511 fi
18512
18513 cfgfile="${ofile}T"
18514 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18515 $RM "$cfgfile"
18516
18517 cat <<_LT_EOF >> "$cfgfile"
18518 #! $SHELL
18519
18520 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18521 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18522 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18523 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18524 #
18525 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18526 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18527 # Written by Gordon Matzigkeit, 1996
18528 #
18529 # This file is part of GNU Libtool.
18530 #
18531 # GNU Libtool is free software; you can redistribute it and/or
18532 # modify it under the terms of the GNU General Public License as
18533 # published by the Free Software Foundation; either version 2 of
18534 # the License, or (at your option) any later version.
18535 #
18536 # As a special exception to the GNU General Public License,
18537 # if you distribute this file as part of a program or library that
18538 # is built using GNU Libtool, you may include this file under the
18539 # same distribution terms that you use for the rest of that program.
18540 #
18541 # GNU Libtool is distributed in the hope that it will be useful,
18542 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18544 # GNU General Public License for more details.
18545 #
18546 # You should have received a copy of the GNU General Public License
18547 # along with GNU Libtool; see the file COPYING. If not, a copy
18548 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18549 # obtained by writing to the Free Software Foundation, Inc.,
18550 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18551
18552
18553 # The names of the tagged configurations supported by this script.
18554 available_tags=""
18555
18556 # ### BEGIN LIBTOOL CONFIG
18557
18558 # Which release of libtool.m4 was used?
18559 macro_version=$macro_version
18560 macro_revision=$macro_revision
18561
18562 # Whether or not to build shared libraries.
18563 build_libtool_libs=$enable_shared
18564
18565 # Whether or not to build static libraries.
18566 build_old_libs=$enable_static
18567
18568 # What type of objects to build.
18569 pic_mode=$pic_mode
18570
18571 # Whether or not to optimize for fast installation.
18572 fast_install=$enable_fast_install
18573
18574 # Shell to use when invoking shell scripts.
18575 SHELL=$lt_SHELL
18576
18577 # An echo program that protects backslashes.
18578 ECHO=$lt_ECHO
18579
18580 # The host system.
18581 host_alias=$host_alias
18582 host=$host
18583 host_os=$host_os
18584
18585 # The build system.
18586 build_alias=$build_alias
18587 build=$build
18588 build_os=$build_os
18589
18590 # A sed program that does not truncate output.
18591 SED=$lt_SED
18592
18593 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18594 Xsed="\$SED -e 1s/^X//"
18595
18596 # A grep program that handles long lines.
18597 GREP=$lt_GREP
18598
18599 # An ERE matcher.
18600 EGREP=$lt_EGREP
18601
18602 # A literal string matcher.
18603 FGREP=$lt_FGREP
18604
18605 # A BSD- or MS-compatible name lister.
18606 NM=$lt_NM
18607
18608 # Whether we need soft or hard links.
18609 LN_S=$lt_LN_S
18610
18611 # What is the maximum length of a command?
18612 max_cmd_len=$max_cmd_len
18613
18614 # Object file suffix (normally "o").
18615 objext=$ac_objext
18616
18617 # Executable file suffix (normally "").
18618 exeext=$exeext
18619
18620 # whether the shell understands "unset".
18621 lt_unset=$lt_unset
18622
18623 # turn spaces into newlines.
18624 SP2NL=$lt_lt_SP2NL
18625
18626 # turn newlines into spaces.
18627 NL2SP=$lt_lt_NL2SP
18628
18629 # An object symbol dumper.
18630 OBJDUMP=$lt_OBJDUMP
18631
18632 # Method to check whether dependent libraries are shared objects.
18633 deplibs_check_method=$lt_deplibs_check_method
18634
18635 # Command to use when deplibs_check_method == "file_magic".
18636 file_magic_cmd=$lt_file_magic_cmd
18637
18638 # The archiver.
18639 AR=$lt_AR
18640 AR_FLAGS=$lt_AR_FLAGS
18641
18642 # A symbol stripping program.
18643 STRIP=$lt_STRIP
18644
18645 # Commands used to install an old-style archive.
18646 RANLIB=$lt_RANLIB
18647 old_postinstall_cmds=$lt_old_postinstall_cmds
18648 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18649
18650 # Whether to use a lock for old archive extraction.
18651 lock_old_archive_extraction=$lock_old_archive_extraction
18652
18653 # A C compiler.
18654 LTCC=$lt_CC
18655
18656 # LTCC compiler flags.
18657 LTCFLAGS=$lt_CFLAGS
18658
18659 # Take the output of nm and produce a listing of raw symbols and C names.
18660 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18661
18662 # Transform the output of nm in a proper C declaration.
18663 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18664
18665 # Transform the output of nm in a C name address pair.
18666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18667
18668 # Transform the output of nm in a C name address pair when lib prefix is needed.
18669 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18670
18671 # The name of the directory that contains temporary libtool files.
18672 objdir=$objdir
18673
18674 # Used to examine libraries when file_magic_cmd begins with "file".
18675 MAGIC_CMD=$MAGIC_CMD
18676
18677 # Must we lock files when doing compilation?
18678 need_locks=$lt_need_locks
18679
18680 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18681 DSYMUTIL=$lt_DSYMUTIL
18682
18683 # Tool to change global to local symbols on Mac OS X.
18684 NMEDIT=$lt_NMEDIT
18685
18686 # Tool to manipulate fat objects and archives on Mac OS X.
18687 LIPO=$lt_LIPO
18688
18689 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18690 OTOOL=$lt_OTOOL
18691
18692 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18693 OTOOL64=$lt_OTOOL64
18694
18695 # Old archive suffix (normally "a").
18696 libext=$libext
18697
18698 # Shared library suffix (normally ".so").
18699 shrext_cmds=$lt_shrext_cmds
18700
18701 # The commands to extract the exported symbol list from a shared archive.
18702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18703
18704 # Variables whose values should be saved in libtool wrapper scripts and
18705 # restored at link time.
18706 variables_saved_for_relink=$lt_variables_saved_for_relink
18707
18708 # Do we need the "lib" prefix for modules?
18709 need_lib_prefix=$need_lib_prefix
18710
18711 # Do we need a version for libraries?
18712 need_version=$need_version
18713
18714 # Library versioning type.
18715 version_type=$version_type
18716
18717 # Shared library runtime path variable.
18718 runpath_var=$runpath_var
18719
18720 # Shared library path variable.
18721 shlibpath_var=$shlibpath_var
18722
18723 # Is shlibpath searched before the hard-coded library search path?
18724 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18725
18726 # Format of library name prefix.
18727 libname_spec=$lt_libname_spec
18728
18729 # List of archive names. First name is the real one, the rest are links.
18730 # The last name is the one that the linker finds with -lNAME
18731 library_names_spec=$lt_library_names_spec
18732
18733 # The coded name of the library, if different from the real name.
18734 soname_spec=$lt_soname_spec
18735
18736 # Permission mode override for installation of shared libraries.
18737 install_override_mode=$lt_install_override_mode
18738
18739 # Command to use after installation of a shared archive.
18740 postinstall_cmds=$lt_postinstall_cmds
18741
18742 # Command to use after uninstallation of a shared archive.
18743 postuninstall_cmds=$lt_postuninstall_cmds
18744
18745 # Commands used to finish a libtool library installation in a directory.
18746 finish_cmds=$lt_finish_cmds
18747
18748 # As "finish_cmds", except a single script fragment to be evaled but
18749 # not shown.
18750 finish_eval=$lt_finish_eval
18751
18752 # Whether we should hardcode library paths into libraries.
18753 hardcode_into_libs=$hardcode_into_libs
18754
18755 # Compile-time system search path for libraries.
18756 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18757
18758 # Run-time system search path for libraries.
18759 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18760
18761 # Whether dlopen is supported.
18762 dlopen_support=$enable_dlopen
18763
18764 # Whether dlopen of programs is supported.
18765 dlopen_self=$enable_dlopen_self
18766
18767 # Whether dlopen of statically linked programs is supported.
18768 dlopen_self_static=$enable_dlopen_self_static
18769
18770 # Commands to strip libraries.
18771 old_striplib=$lt_old_striplib
18772 striplib=$lt_striplib
18773
18774
18775 # The linker used to build libraries.
18776 LD=$lt_LD
18777
18778 # How to create reloadable object files.
18779 reload_flag=$lt_reload_flag
18780 reload_cmds=$lt_reload_cmds
18781
18782 # Commands used to build an old-style archive.
18783 old_archive_cmds=$lt_old_archive_cmds
18784
18785 # A language specific compiler.
18786 CC=$lt_compiler
18787
18788 # Is the compiler the GNU compiler?
18789 with_gcc=$GCC
18790
18791 # Compiler flag to turn off builtin functions.
18792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18793
18794 # How to pass a linker flag through the compiler.
18795 wl=$lt_lt_prog_compiler_wl
18796
18797 # Additional compiler flags for building library objects.
18798 pic_flag=$lt_lt_prog_compiler_pic
18799
18800 # Compiler flag to prevent dynamic linking.
18801 link_static_flag=$lt_lt_prog_compiler_static
18802
18803 # Does compiler simultaneously support -c and -o options?
18804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18805
18806 # Whether or not to add -lc for building shared libraries.
18807 build_libtool_need_lc=$archive_cmds_need_lc
18808
18809 # Whether or not to disallow shared libs when runtime libs are static.
18810 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18811
18812 # Compiler flag to allow reflexive dlopens.
18813 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18814
18815 # Compiler flag to generate shared objects directly from archives.
18816 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18817
18818 # Whether the compiler copes with passing no objects directly.
18819 compiler_needs_object=$lt_compiler_needs_object
18820
18821 # Create an old-style archive from a shared archive.
18822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18823
18824 # Create a temporary old-style archive to link instead of a shared archive.
18825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18826
18827 # Commands used to build a shared archive.
18828 archive_cmds=$lt_archive_cmds
18829 archive_expsym_cmds=$lt_archive_expsym_cmds
18830
18831 # Commands used to build a loadable module if different from building
18832 # a shared archive.
18833 module_cmds=$lt_module_cmds
18834 module_expsym_cmds=$lt_module_expsym_cmds
18835
18836 # Whether we are building with GNU ld or not.
18837 with_gnu_ld=$lt_with_gnu_ld
18838
18839 # Flag that allows shared libraries with undefined symbols to be built.
18840 allow_undefined_flag=$lt_allow_undefined_flag
18841
18842 # Flag that enforces no undefined symbols.
18843 no_undefined_flag=$lt_no_undefined_flag
18844
18845 # Flag to hardcode \$libdir into a binary during linking.
18846 # This must work even if \$libdir does not exist
18847 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18848
18849 # If ld is used when linking, flag to hardcode \$libdir into a binary
18850 # during linking. This must work even if \$libdir does not exist.
18851 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18852
18853 # Whether we need a single "-rpath" flag with a separated argument.
18854 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18855
18856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18857 # DIR into the resulting binary.
18858 hardcode_direct=$hardcode_direct
18859
18860 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18861 # DIR into the resulting binary and the resulting library dependency is
18862 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18863 # library is relocated.
18864 hardcode_direct_absolute=$hardcode_direct_absolute
18865
18866 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18867 # into the resulting binary.
18868 hardcode_minus_L=$hardcode_minus_L
18869
18870 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18871 # into the resulting binary.
18872 hardcode_shlibpath_var=$hardcode_shlibpath_var
18873
18874 # Set to "yes" if building a shared library automatically hardcodes DIR
18875 # into the library and all subsequent libraries and executables linked
18876 # against it.
18877 hardcode_automatic=$hardcode_automatic
18878
18879 # Set to yes if linker adds runtime paths of dependent libraries
18880 # to runtime path list.
18881 inherit_rpath=$inherit_rpath
18882
18883 # Whether libtool must link a program against all its dependency libraries.
18884 link_all_deplibs=$link_all_deplibs
18885
18886 # Fix the shell variable \$srcfile for the compiler.
18887 fix_srcfile_path=$lt_fix_srcfile_path
18888
18889 # Set to "yes" if exported symbols are required.
18890 always_export_symbols=$always_export_symbols
18891
18892 # The commands to list exported symbols.
18893 export_symbols_cmds=$lt_export_symbols_cmds
18894
18895 # Symbols that should not be listed in the preloaded symbols.
18896 exclude_expsyms=$lt_exclude_expsyms
18897
18898 # Symbols that must always be exported.
18899 include_expsyms=$lt_include_expsyms
18900
18901 # Commands necessary for linking programs (against libraries) with templates.
18902 prelink_cmds=$lt_prelink_cmds
18903
18904 # Specify filename containing input files.
18905 file_list_spec=$lt_file_list_spec
18906
18907 # How to hardcode a shared library path into an executable.
18908 hardcode_action=$hardcode_action
18909
18910 # ### END LIBTOOL CONFIG
18911
18912 _LT_EOF
18913
18914 case $host_os in
18915 aix3*)
18916 cat <<\_LT_EOF >> "$cfgfile"
18917 # AIX sometimes has problems with the GCC collect2 program. For some
18918 # reason, if we set the COLLECT_NAMES environment variable, the problems
18919 # vanish in a puff of smoke.
18920 if test "X${COLLECT_NAMES+set}" != Xset; then
18921 COLLECT_NAMES=
18922 export COLLECT_NAMES
18923 fi
18924 _LT_EOF
18925 ;;
18926 esac
18927
18928
18929 ltmain="$ac_aux_dir/ltmain.sh"
18930
18931
18932 # We use sed instead of cat because bash on DJGPP gets confused if
18933 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18934 # text mode, it properly converts lines to CR/LF. This bash problem
18935 # is reportedly fixed, but why not run on old versions too?
18936 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18937 || (rm -f "$cfgfile"; exit 1)
18938
18939 case $xsi_shell in
18940 yes)
18941 cat << \_LT_EOF >> "$cfgfile"
18942
18943 # func_dirname file append nondir_replacement
18944 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18945 # otherwise set result to NONDIR_REPLACEMENT.
18946 func_dirname ()
18947 {
18948 case ${1} in
18949 */*) func_dirname_result="${1%/*}${2}" ;;
18950 * ) func_dirname_result="${3}" ;;
18951 esac
18952 }
18953
18954 # func_basename file
18955 func_basename ()
18956 {
18957 func_basename_result="${1##*/}"
18958 }
18959
18960 # func_dirname_and_basename file append nondir_replacement
18961 # perform func_basename and func_dirname in a single function
18962 # call:
18963 # dirname: Compute the dirname of FILE. If nonempty,
18964 # add APPEND to the result, otherwise set result
18965 # to NONDIR_REPLACEMENT.
18966 # value returned in "$func_dirname_result"
18967 # basename: Compute filename of FILE.
18968 # value retuned in "$func_basename_result"
18969 # Implementation must be kept synchronized with func_dirname
18970 # and func_basename. For efficiency, we do not delegate to
18971 # those functions but instead duplicate the functionality here.
18972 func_dirname_and_basename ()
18973 {
18974 case ${1} in
18975 */*) func_dirname_result="${1%/*}${2}" ;;
18976 * ) func_dirname_result="${3}" ;;
18977 esac
18978 func_basename_result="${1##*/}"
18979 }
18980
18981 # func_stripname prefix suffix name
18982 # strip PREFIX and SUFFIX off of NAME.
18983 # PREFIX and SUFFIX must not contain globbing or regex special
18984 # characters, hashes, percent signs, but SUFFIX may contain a leading
18985 # dot (in which case that matches only a dot).
18986 func_stripname ()
18987 {
18988 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18989 # positional parameters, so assign one to ordinary parameter first.
18990 func_stripname_result=${3}
18991 func_stripname_result=${func_stripname_result#"${1}"}
18992 func_stripname_result=${func_stripname_result%"${2}"}
18993 }
18994
18995 # func_opt_split
18996 func_opt_split ()
18997 {
18998 func_opt_split_opt=${1%%=*}
18999 func_opt_split_arg=${1#*=}
19000 }
19001
19002 # func_lo2o object
19003 func_lo2o ()
19004 {
19005 case ${1} in
19006 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19007 *) func_lo2o_result=${1} ;;
19008 esac
19009 }
19010
19011 # func_xform libobj-or-source
19012 func_xform ()
19013 {
19014 func_xform_result=${1%.*}.lo
19015 }
19016
19017 # func_arith arithmetic-term...
19018 func_arith ()
19019 {
19020 func_arith_result=$(( $* ))
19021 }
19022
19023 # func_len string
19024 # STRING may not start with a hyphen.
19025 func_len ()
19026 {
19027 func_len_result=${#1}
19028 }
19029
19030 _LT_EOF
19031 ;;
19032 *) # Bourne compatible functions.
19033 cat << \_LT_EOF >> "$cfgfile"
19034
19035 # func_dirname file append nondir_replacement
19036 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19037 # otherwise set result to NONDIR_REPLACEMENT.
19038 func_dirname ()
19039 {
19040 # Extract subdirectory from the argument.
19041 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19042 if test "X$func_dirname_result" = "X${1}"; then
19043 func_dirname_result="${3}"
19044 else
19045 func_dirname_result="$func_dirname_result${2}"
19046 fi
19047 }
19048
19049 # func_basename file
19050 func_basename ()
19051 {
19052 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19053 }
19054
19055
19056 # func_stripname prefix suffix name
19057 # strip PREFIX and SUFFIX off of NAME.
19058 # PREFIX and SUFFIX must not contain globbing or regex special
19059 # characters, hashes, percent signs, but SUFFIX may contain a leading
19060 # dot (in which case that matches only a dot).
19061 # func_strip_suffix prefix name
19062 func_stripname ()
19063 {
19064 case ${2} in
19065 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19066 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19067 esac
19068 }
19069
19070 # sed scripts:
19071 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19072 my_sed_long_arg='1s/^-[^=]*=//'
19073
19074 # func_opt_split
19075 func_opt_split ()
19076 {
19077 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19078 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19079 }
19080
19081 # func_lo2o object
19082 func_lo2o ()
19083 {
19084 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19085 }
19086
19087 # func_xform libobj-or-source
19088 func_xform ()
19089 {
19090 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19091 }
19092
19093 # func_arith arithmetic-term...
19094 func_arith ()
19095 {
19096 func_arith_result=`expr "$@"`
19097 }
19098
19099 # func_len string
19100 # STRING may not start with a hyphen.
19101 func_len ()
19102 {
19103 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19104 }
19105
19106 _LT_EOF
19107 esac
19108
19109 case $lt_shell_append in
19110 yes)
19111 cat << \_LT_EOF >> "$cfgfile"
19112
19113 # func_append var value
19114 # Append VALUE to the end of shell variable VAR.
19115 func_append ()
19116 {
19117 eval "$1+=\$2"
19118 }
19119 _LT_EOF
19120 ;;
19121 *)
19122 cat << \_LT_EOF >> "$cfgfile"
19123
19124 # func_append var value
19125 # Append VALUE to the end of shell variable VAR.
19126 func_append ()
19127 {
19128 eval "$1=\$$1\$2"
19129 }
19130
19131 _LT_EOF
19132 ;;
19133 esac
19134
19135
19136 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19137 || (rm -f "$cfgfile"; exit 1)
19138
19139 mv -f "$cfgfile" "$ofile" ||
19140 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19141 chmod +x "$ofile"
19142
19143 ;;
19144 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19145 # Older Autoconf quotes --file arguments for eval, but not when files
19146 # are listed without --file. Let's play safe and only enable the eval
19147 # if we detect the quoting.
19148 case $CONFIG_FILES in
19149 *\'*) eval set x "$CONFIG_FILES" ;;
19150 *) set x $CONFIG_FILES ;;
19151 esac
19152 shift
19153 for mf
19154 do
19155 # Strip MF so we end up with the name of the file.
19156 mf=`echo "$mf" | sed -e 's/:.*$//'`
19157 # Check whether this is an Automake generated Makefile or not.
19158 # We used to match only the files named 'Makefile.in', but
19159 # some people rename them; so instead we look at the file content.
19160 # Grep'ing the first line is not enough: some people post-process
19161 # each Makefile.in and add a new line on top of each file to say so.
19162 # Grep'ing the whole file is not good either: AIX grep has a line
19163 # limit of 2048, but all sed's we know have understand at least 4000.
19164 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19165 dirpart=`$as_dirname -- "$mf" ||
19166 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19167 X"$mf" : 'X\(//\)[^/]' \| \
19168 X"$mf" : 'X\(//\)$' \| \
19169 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19170 $as_echo X"$mf" |
19171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19172 s//\1/
19173 q
19174 }
19175 /^X\(\/\/\)[^/].*/{
19176 s//\1/
19177 q
19178 }
19179 /^X\(\/\/\)$/{
19180 s//\1/
19181 q
19182 }
19183 /^X\(\/\).*/{
19184 s//\1/
19185 q
19186 }
19187 s/.*/./; q'`
19188 else
19189 continue
19190 fi
19191 # Extract the definition of DEPDIR, am__include, and am__quote
19192 # from the Makefile without running 'make'.
19193 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19194 test -z "$DEPDIR" && continue
19195 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19196 test -z "$am__include" && continue
19197 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19198 # Find all dependency output files, they are included files with
19199 # $(DEPDIR) in their names. We invoke sed twice because it is the
19200 # simplest approach to changing $(DEPDIR) to its actual value in the
19201 # expansion.
19202 for file in `sed -n "
19203 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19204 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19205 # Make sure the directory exists.
19206 test -f "$dirpart/$file" && continue
19207 fdir=`$as_dirname -- "$file" ||
19208 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19209 X"$file" : 'X\(//\)[^/]' \| \
19210 X"$file" : 'X\(//\)$' \| \
19211 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19212 $as_echo X"$file" |
19213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19214 s//\1/
19215 q
19216 }
19217 /^X\(\/\/\)[^/].*/{
19218 s//\1/
19219 q
19220 }
19221 /^X\(\/\/\)$/{
19222 s//\1/
19223 q
19224 }
19225 /^X\(\/\).*/{
19226 s//\1/
19227 q
19228 }
19229 s/.*/./; q'`
19230 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19231 # echo "creating $dirpart/$file"
19232 echo '# dummy' > "$dirpart/$file"
19233 done
19234 done
19235 }
19236 ;;
19237
19238 esac
19239 done # for ac_tag
19240
19241
19242 as_fn_exit 0
19243 _ACEOF
19244 ac_clean_files=$ac_clean_files_save
19245
19246 test $ac_write_fail = 0 ||
19247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19248
19249
19250 # configure is writing to config.log, and then calls config.status.
19251 # config.status does its own redirection, appending to config.log.
19252 # Unfortunately, on DOS this fails, as config.log is still kept open
19253 # by configure, so config.status won't be able to write to it; its
19254 # output is simply discarded. So we exec the FD to /dev/null,
19255 # effectively closing config.log, so it can be properly (re)opened and
19256 # appended to by config.status. When coming back to configure, we
19257 # need to make the FD available again.
19258 if test "$no_create" != yes; then
19259 ac_cs_success=:
19260 ac_config_status_args=
19261 test "$silent" = yes &&
19262 ac_config_status_args="$ac_config_status_args --quiet"
19263 exec 5>/dev/null
19264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19265 exec 5>>config.log
19266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19267 # would make configure fail if this is the last instruction.
19268 $ac_cs_success || as_fn_exit 1
19269 fi
19270
19271 #
19272 # CONFIG_SUBDIRS section.
19273 #
19274 if test "$no_recursion" != yes; then
19275
19276 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19277 # so they do not pile up.
19278 ac_sub_configure_args=
19279 ac_prev=
19280 eval "set x $ac_configure_args"
19281 shift
19282 for ac_arg
19283 do
19284 if test -n "$ac_prev"; then
19285 ac_prev=
19286 continue
19287 fi
19288 case $ac_arg in
19289 -cache-file | --cache-file | --cache-fil | --cache-fi \
19290 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19291 ac_prev=cache_file ;;
19292 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19293 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19294 | --c=*)
19295 ;;
19296 --config-cache | -C)
19297 ;;
19298 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19299 ac_prev=srcdir ;;
19300 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19301 ;;
19302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19303 ac_prev=prefix ;;
19304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19305 ;;
19306 --disable-option-checking)
19307 ;;
19308 *)
19309 case $ac_arg in
19310 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19311 esac
19312 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19313 esac
19314 done
19315
19316 # Always prepend --prefix to ensure using the same prefix
19317 # in subdir configurations.
19318 ac_arg="--prefix=$prefix"
19319 case $ac_arg in
19320 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19321 esac
19322 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19323
19324 # Pass --silent
19325 if test "$silent" = yes; then
19326 ac_sub_configure_args="--silent $ac_sub_configure_args"
19327 fi
19328
19329 # Always prepend --disable-option-checking to silence warnings, since
19330 # different subdirs can have different --enable and --with options.
19331 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19332
19333 ac_popdir=`pwd`
19334 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19335
19336 # Do not complain, so a configure script can configure whichever
19337 # parts of a large source tree are present.
19338 test -d "$srcdir/$ac_dir" || continue
19339
19340 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19341 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19342 $as_echo "$ac_msg" >&6
19343 as_dir="$ac_dir"; as_fn_mkdir_p
19344 ac_builddir=.
19345
19346 case "$ac_dir" in
19347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19348 *)
19349 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19350 # A ".." for each directory in $ac_dir_suffix.
19351 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19352 case $ac_top_builddir_sub in
19353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19355 esac ;;
19356 esac
19357 ac_abs_top_builddir=$ac_pwd
19358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19359 # for backward compatibility:
19360 ac_top_builddir=$ac_top_build_prefix
19361
19362 case $srcdir in
19363 .) # We are building in place.
19364 ac_srcdir=.
19365 ac_top_srcdir=$ac_top_builddir_sub
19366 ac_abs_top_srcdir=$ac_pwd ;;
19367 [\\/]* | ?:[\\/]* ) # Absolute name.
19368 ac_srcdir=$srcdir$ac_dir_suffix;
19369 ac_top_srcdir=$srcdir
19370 ac_abs_top_srcdir=$srcdir ;;
19371 *) # Relative name.
19372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19373 ac_top_srcdir=$ac_top_build_prefix$srcdir
19374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19375 esac
19376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19377
19378
19379 cd "$ac_dir"
19380
19381 # Check for guested configure; otherwise get Cygnus style configure.
19382 if test -f "$ac_srcdir/configure.gnu"; then
19383 ac_sub_configure=$ac_srcdir/configure.gnu
19384 elif test -f "$ac_srcdir/configure"; then
19385 ac_sub_configure=$ac_srcdir/configure
19386 elif test -f "$ac_srcdir/configure.in"; then
19387 # This should be Cygnus configure.
19388 ac_sub_configure=$ac_aux_dir/configure
19389 else
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19392 ac_sub_configure=
19393 fi
19394
19395 # The recursion is here.
19396 if test -n "$ac_sub_configure"; then
19397 # Make the cache file name correct relative to the subdirectory.
19398 case $cache_file in
19399 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19400 *) # Relative name.
19401 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19402 esac
19403
19404 { $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
19405 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19406 # The eval makes quoting arguments work.
19407 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19408 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19409 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19410 fi
19411
19412 cd "$ac_popdir"
19413 done
19414 fi
19415 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19417 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19418 fi
19419