]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: or1k: drop subdir configure logic
[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 include_makefile
642 SIM_RX_CYCLE_ACCURATE_FLAGS
643 SIM_RISCV_BITSIZE
644 SIM_FRV_TRAPDUMP_FLAGS
645 sim_float
646 sim_bitsize
647 SIM_INLINE
648 SIM_HW_SOCKSER
649 SIM_HW_CFLAGS
650 SIM_ENABLE_HW_FALSE
651 SIM_ENABLE_HW_TRUE
652 cgen
653 cgendir
654 CGEN_MAINT
655 ENABLE_SIM_FALSE
656 ENABLE_SIM_TRUE
657 SIM_ENABLE_IGEN_FALSE
658 SIM_ENABLE_IGEN_TRUE
659 SIM_ENABLE_ARCH_examples_FALSE
660 SIM_ENABLE_ARCH_examples_TRUE
661 CC_FOR_TARGET_EXAMPLE_SYNACOR
662 LD_FOR_TARGET_EXAMPLE_SYNACOR
663 AS_FOR_TARGET_EXAMPLE_SYNACOR
664 SIM_ENABLE_ARCH_v850_FALSE
665 SIM_ENABLE_ARCH_v850_TRUE
666 CC_FOR_TARGET_V850
667 LD_FOR_TARGET_V850
668 AS_FOR_TARGET_V850
669 SIM_ENABLE_ARCH_erc32_FALSE
670 SIM_ENABLE_ARCH_erc32_TRUE
671 CC_FOR_TARGET_ERC32
672 LD_FOR_TARGET_ERC32
673 AS_FOR_TARGET_ERC32
674 SIM_ENABLE_ARCH_sh_FALSE
675 SIM_ENABLE_ARCH_sh_TRUE
676 CC_FOR_TARGET_SH
677 LD_FOR_TARGET_SH
678 AS_FOR_TARGET_SH
679 SIM_ENABLE_ARCH_rx_FALSE
680 SIM_ENABLE_ARCH_rx_TRUE
681 CC_FOR_TARGET_RX
682 LD_FOR_TARGET_RX
683 AS_FOR_TARGET_RX
684 SIM_ENABLE_ARCH_rl78_FALSE
685 SIM_ENABLE_ARCH_rl78_TRUE
686 CC_FOR_TARGET_RL78
687 LD_FOR_TARGET_RL78
688 AS_FOR_TARGET_RL78
689 SIM_ENABLE_ARCH_riscv_FALSE
690 SIM_ENABLE_ARCH_riscv_TRUE
691 CC_FOR_TARGET_RISCV
692 LD_FOR_TARGET_RISCV
693 AS_FOR_TARGET_RISCV
694 SIM_ENABLE_ARCH_pru_FALSE
695 SIM_ENABLE_ARCH_pru_TRUE
696 CC_FOR_TARGET_PRU
697 LD_FOR_TARGET_PRU
698 AS_FOR_TARGET_PRU
699 SIM_ENABLE_ARCH_ppc_FALSE
700 SIM_ENABLE_ARCH_ppc_TRUE
701 CC_FOR_TARGET_PPC
702 LD_FOR_TARGET_PPC
703 AS_FOR_TARGET_PPC
704 SIM_ENABLE_ARCH_or1k_FALSE
705 SIM_ENABLE_ARCH_or1k_TRUE
706 CC_FOR_TARGET_OR1K
707 LD_FOR_TARGET_OR1K
708 AS_FOR_TARGET_OR1K
709 SIM_ENABLE_ARCH_msp430_FALSE
710 SIM_ENABLE_ARCH_msp430_TRUE
711 CC_FOR_TARGET_MSP430
712 LD_FOR_TARGET_MSP430
713 AS_FOR_TARGET_MSP430
714 SIM_ENABLE_ARCH_moxie_FALSE
715 SIM_ENABLE_ARCH_moxie_TRUE
716 CC_FOR_TARGET_MOXIE
717 LD_FOR_TARGET_MOXIE
718 AS_FOR_TARGET_MOXIE
719 SIM_ENABLE_ARCH_mn10300_FALSE
720 SIM_ENABLE_ARCH_mn10300_TRUE
721 CC_FOR_TARGET_MN10300
722 LD_FOR_TARGET_MN10300
723 AS_FOR_TARGET_MN10300
724 SIM_ENABLE_ARCH_mips_FALSE
725 SIM_ENABLE_ARCH_mips_TRUE
726 CC_FOR_TARGET_MIPS
727 LD_FOR_TARGET_MIPS
728 AS_FOR_TARGET_MIPS
729 subdirs
730 SIM_ENABLE_ARCH_microblaze_FALSE
731 SIM_ENABLE_ARCH_microblaze_TRUE
732 CC_FOR_TARGET_MICROBLAZE
733 LD_FOR_TARGET_MICROBLAZE
734 AS_FOR_TARGET_MICROBLAZE
735 SIM_ENABLE_ARCH_mcore_FALSE
736 SIM_ENABLE_ARCH_mcore_TRUE
737 CC_FOR_TARGET_MCORE
738 LD_FOR_TARGET_MCORE
739 AS_FOR_TARGET_MCORE
740 SIM_ENABLE_ARCH_m68hc11_FALSE
741 SIM_ENABLE_ARCH_m68hc11_TRUE
742 CC_FOR_TARGET_M68HC11
743 LD_FOR_TARGET_M68HC11
744 AS_FOR_TARGET_M68HC11
745 SIM_ENABLE_ARCH_m32r_FALSE
746 SIM_ENABLE_ARCH_m32r_TRUE
747 CC_FOR_TARGET_M32R
748 LD_FOR_TARGET_M32R
749 AS_FOR_TARGET_M32R
750 SIM_ENABLE_ARCH_m32c_FALSE
751 SIM_ENABLE_ARCH_m32c_TRUE
752 CC_FOR_TARGET_M32C
753 LD_FOR_TARGET_M32C
754 AS_FOR_TARGET_M32C
755 SIM_ENABLE_ARCH_lm32_FALSE
756 SIM_ENABLE_ARCH_lm32_TRUE
757 CC_FOR_TARGET_LM32
758 LD_FOR_TARGET_LM32
759 AS_FOR_TARGET_LM32
760 SIM_ENABLE_ARCH_iq2000_FALSE
761 SIM_ENABLE_ARCH_iq2000_TRUE
762 CC_FOR_TARGET_IQ2000
763 LD_FOR_TARGET_IQ2000
764 AS_FOR_TARGET_IQ2000
765 SIM_ENABLE_ARCH_h8300_FALSE
766 SIM_ENABLE_ARCH_h8300_TRUE
767 CC_FOR_TARGET_H8300
768 LD_FOR_TARGET_H8300
769 AS_FOR_TARGET_H8300
770 SIM_ENABLE_ARCH_ft32_FALSE
771 SIM_ENABLE_ARCH_ft32_TRUE
772 CC_FOR_TARGET_FT32
773 LD_FOR_TARGET_FT32
774 AS_FOR_TARGET_FT32
775 SIM_ENABLE_ARCH_frv_FALSE
776 SIM_ENABLE_ARCH_frv_TRUE
777 CC_FOR_TARGET_FRV
778 LD_FOR_TARGET_FRV
779 AS_FOR_TARGET_FRV
780 SIM_ENABLE_ARCH_d10v_FALSE
781 SIM_ENABLE_ARCH_d10v_TRUE
782 CC_FOR_TARGET_D10V
783 LD_FOR_TARGET_D10V
784 AS_FOR_TARGET_D10V
785 SIM_ENABLE_ARCH_cris_FALSE
786 SIM_ENABLE_ARCH_cris_TRUE
787 CC_FOR_TARGET_CRIS
788 LD_FOR_TARGET_CRIS
789 AS_FOR_TARGET_CRIS
790 SIM_ENABLE_ARCH_cr16_FALSE
791 SIM_ENABLE_ARCH_cr16_TRUE
792 CC_FOR_TARGET_CR16
793 LD_FOR_TARGET_CR16
794 AS_FOR_TARGET_CR16
795 SIM_ENABLE_ARCH_bpf_FALSE
796 SIM_ENABLE_ARCH_bpf_TRUE
797 CC_FOR_TARGET_BPF
798 LD_FOR_TARGET_BPF
799 AS_FOR_TARGET_BPF
800 SIM_ENABLE_ARCH_bfin_FALSE
801 SIM_ENABLE_ARCH_bfin_TRUE
802 CC_FOR_TARGET_BFIN
803 LD_FOR_TARGET_BFIN
804 AS_FOR_TARGET_BFIN
805 SIM_ENABLE_ARCH_avr_FALSE
806 SIM_ENABLE_ARCH_avr_TRUE
807 CC_FOR_TARGET_AVR
808 LD_FOR_TARGET_AVR
809 AS_FOR_TARGET_AVR
810 SIM_ENABLE_ARCH_arm_FALSE
811 SIM_ENABLE_ARCH_arm_TRUE
812 CC_FOR_TARGET_ARM
813 LD_FOR_TARGET_ARM
814 AS_FOR_TARGET_ARM
815 SIM_ENABLE_ARCH_aarch64_FALSE
816 SIM_ENABLE_ARCH_aarch64_TRUE
817 CC_FOR_TARGET_AARCH64
818 LD_FOR_TARGET_AARCH64
819 AS_FOR_TARGET_AARCH64
820 LD_FOR_TARGET
821 AS_FOR_TARGET
822 CC_FOR_TARGET
823 SIM_COMMON_BUILD_FALSE
824 SIM_COMMON_BUILD_TRUE
825 SIM_ENABLED_ARCHES
826 SIM_SUBDIRS
827 SIM_PRIMARY_TARGET
828 AM_BACKSLASH
829 AM_DEFAULT_VERBOSITY
830 AM_DEFAULT_V
831 AM_V
832 am__fastdepCC_FALSE
833 am__fastdepCC_TRUE
834 CCDEPMODE
835 am__nodep
836 AMDEPBACKSLASH
837 AMDEP_FALSE
838 AMDEP_TRUE
839 am__quote
840 am__include
841 DEPDIR
842 am__untar
843 am__tar
844 AMTAR
845 am__leading_dot
846 SET_MAKE
847 mkdir_p
848 MKDIR_P
849 INSTALL_STRIP_PROGRAM
850 install_sh
851 MAKEINFO
852 AUTOHEADER
853 AUTOMAKE
854 AUTOCONF
855 ACLOCAL
856 VERSION
857 PACKAGE
858 CYGPATH_W
859 am__isrc
860 MAINT
861 MAINTAINER_MODE_FALSE
862 MAINTAINER_MODE_TRUE
863 READLINE_CFLAGS
864 READLINE_LIB
865 TERMCAP_LIB
866 SDL_LIBS
867 SDL_CFLAGS
868 OTOOL64
869 OTOOL
870 LIPO
871 NMEDIT
872 DSYMUTIL
873 AWK
874 STRIP
875 OBJDUMP
876 LN_S
877 NM
878 ac_ct_DUMPBIN
879 DUMPBIN
880 LD
881 FGREP
882 SED
883 LIBTOOL
884 LIBOBJS
885 C_DIALECT
886 PKG_CONFIG_LIBDIR
887 PKG_CONFIG_PATH
888 PKG_CONFIG
889 RANLIB
890 AR
891 LDFLAGS_FOR_BUILD
892 CPPFLAGS_FOR_BUILD
893 CFLAGS_FOR_BUILD
894 RANLIB_FOR_BUILD
895 CC_FOR_BUILD
896 AR_FOR_BUILD
897 DTC
898 INSTALL_DATA
899 INSTALL_SCRIPT
900 INSTALL_PROGRAM
901 EGREP
902 GREP
903 CPP
904 OBJEXT
905 EXEEXT
906 ac_ct_CC
907 CPPFLAGS
908 LDFLAGS
909 CFLAGS
910 CC
911 target_os
912 target_vendor
913 target_cpu
914 target
915 host_os
916 host_vendor
917 host_cpu
918 host
919 build_os
920 build_vendor
921 build_cpu
922 build
923 REPORT_BUGS_TEXI
924 REPORT_BUGS_TO
925 PKGVERSION
926 target_alias
927 host_alias
928 build_alias
929 LIBS
930 ECHO_T
931 ECHO_N
932 ECHO_C
933 DEFS
934 mandir
935 localedir
936 libdir
937 psdir
938 pdfdir
939 dvidir
940 htmldir
941 infodir
942 docdir
943 oldincludedir
944 includedir
945 localstatedir
946 sharedstatedir
947 sysconfdir
948 datadir
949 datarootdir
950 libexecdir
951 sbindir
952 bindir
953 program_transform_name
954 prefix
955 exec_prefix
956 PACKAGE_URL
957 PACKAGE_BUGREPORT
958 PACKAGE_STRING
959 PACKAGE_VERSION
960 PACKAGE_TARNAME
961 PACKAGE_NAME
962 PATH_SEPARATOR
963 SHELL
964 SIM_TOOLCHAIN_VARS
965 WERROR_CFLAGS
966 WARN_CFLAGS'
967 ac_subst_files=''
968 ac_user_opts='
969 enable_option_checking
970 with_pkgversion
971 with_bugurl
972 enable_shared
973 enable_static
974 with_pic
975 enable_fast_install
976 with_gnu_ld
977 enable_libtool_lock
978 enable_maintainer_mode
979 enable_dependency_tracking
980 enable_silent_rules
981 enable_sim
982 enable_example_sims
983 enable_targets
984 enable_sim_alignment
985 enable_sim_assert
986 enable_cgen_maint
987 enable_sim_debug
988 enable_sim_endian
989 enable_sim_environment
990 enable_sim_hardware
991 enable_sim_inline
992 enable_sim_profile
993 enable_sim_reserved_bits
994 enable_sim_scache
995 enable_sim_stdio
996 enable_sim_trace
997 enable_werror
998 enable_build_warnings
999 enable_sim_build_warnings
1000 enable_sim_frv_trapdump
1001 enable_sim_rx_cycle_accurate
1002 '
1003 ac_precious_vars='build_alias
1004 host_alias
1005 target_alias
1006 CC
1007 CFLAGS
1008 LDFLAGS
1009 LIBS
1010 CPPFLAGS
1011 CPP
1012 PKG_CONFIG
1013 PKG_CONFIG_PATH
1014 PKG_CONFIG_LIBDIR
1015 SDL_CFLAGS
1016 SDL_LIBS
1017 AS_FOR_TARGET_AARCH64
1018 LD_FOR_TARGET_AARCH64
1019 CC_FOR_TARGET_AARCH64
1020 AS_FOR_TARGET_ARM
1021 LD_FOR_TARGET_ARM
1022 CC_FOR_TARGET_ARM
1023 AS_FOR_TARGET_AVR
1024 LD_FOR_TARGET_AVR
1025 CC_FOR_TARGET_AVR
1026 AS_FOR_TARGET_BFIN
1027 LD_FOR_TARGET_BFIN
1028 CC_FOR_TARGET_BFIN
1029 AS_FOR_TARGET_BPF
1030 LD_FOR_TARGET_BPF
1031 CC_FOR_TARGET_BPF
1032 AS_FOR_TARGET_CR16
1033 LD_FOR_TARGET_CR16
1034 CC_FOR_TARGET_CR16
1035 AS_FOR_TARGET_CRIS
1036 LD_FOR_TARGET_CRIS
1037 CC_FOR_TARGET_CRIS
1038 AS_FOR_TARGET_D10V
1039 LD_FOR_TARGET_D10V
1040 CC_FOR_TARGET_D10V
1041 AS_FOR_TARGET_FRV
1042 LD_FOR_TARGET_FRV
1043 CC_FOR_TARGET_FRV
1044 AS_FOR_TARGET_FT32
1045 LD_FOR_TARGET_FT32
1046 CC_FOR_TARGET_FT32
1047 AS_FOR_TARGET_H8300
1048 LD_FOR_TARGET_H8300
1049 CC_FOR_TARGET_H8300
1050 AS_FOR_TARGET_IQ2000
1051 LD_FOR_TARGET_IQ2000
1052 CC_FOR_TARGET_IQ2000
1053 AS_FOR_TARGET_LM32
1054 LD_FOR_TARGET_LM32
1055 CC_FOR_TARGET_LM32
1056 AS_FOR_TARGET_M32C
1057 LD_FOR_TARGET_M32C
1058 CC_FOR_TARGET_M32C
1059 AS_FOR_TARGET_M32R
1060 LD_FOR_TARGET_M32R
1061 CC_FOR_TARGET_M32R
1062 AS_FOR_TARGET_M68HC11
1063 LD_FOR_TARGET_M68HC11
1064 CC_FOR_TARGET_M68HC11
1065 AS_FOR_TARGET_MCORE
1066 LD_FOR_TARGET_MCORE
1067 CC_FOR_TARGET_MCORE
1068 AS_FOR_TARGET_MICROBLAZE
1069 LD_FOR_TARGET_MICROBLAZE
1070 CC_FOR_TARGET_MICROBLAZE
1071 AS_FOR_TARGET_MIPS
1072 LD_FOR_TARGET_MIPS
1073 CC_FOR_TARGET_MIPS
1074 AS_FOR_TARGET_MN10300
1075 LD_FOR_TARGET_MN10300
1076 CC_FOR_TARGET_MN10300
1077 AS_FOR_TARGET_MOXIE
1078 LD_FOR_TARGET_MOXIE
1079 CC_FOR_TARGET_MOXIE
1080 AS_FOR_TARGET_MSP430
1081 LD_FOR_TARGET_MSP430
1082 CC_FOR_TARGET_MSP430
1083 AS_FOR_TARGET_OR1K
1084 LD_FOR_TARGET_OR1K
1085 CC_FOR_TARGET_OR1K
1086 AS_FOR_TARGET_PPC
1087 LD_FOR_TARGET_PPC
1088 CC_FOR_TARGET_PPC
1089 AS_FOR_TARGET_PRU
1090 LD_FOR_TARGET_PRU
1091 CC_FOR_TARGET_PRU
1092 AS_FOR_TARGET_RISCV
1093 LD_FOR_TARGET_RISCV
1094 CC_FOR_TARGET_RISCV
1095 AS_FOR_TARGET_RL78
1096 LD_FOR_TARGET_RL78
1097 CC_FOR_TARGET_RL78
1098 AS_FOR_TARGET_RX
1099 LD_FOR_TARGET_RX
1100 CC_FOR_TARGET_RX
1101 AS_FOR_TARGET_SH
1102 LD_FOR_TARGET_SH
1103 CC_FOR_TARGET_SH
1104 AS_FOR_TARGET_ERC32
1105 LD_FOR_TARGET_ERC32
1106 CC_FOR_TARGET_ERC32
1107 AS_FOR_TARGET_V850
1108 LD_FOR_TARGET_V850
1109 CC_FOR_TARGET_V850
1110 AS_FOR_TARGET_EXAMPLE_SYNACOR
1111 LD_FOR_TARGET_EXAMPLE_SYNACOR
1112 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1113 ac_subdirs_all='mips
1114 mn10300
1115 ppc
1116 v850'
1117
1118 # Initialize some variables set by options.
1119 ac_init_help=
1120 ac_init_version=false
1121 ac_unrecognized_opts=
1122 ac_unrecognized_sep=
1123 # The variables have the same names as the options, with
1124 # dashes changed to underlines.
1125 cache_file=/dev/null
1126 exec_prefix=NONE
1127 no_create=
1128 no_recursion=
1129 prefix=NONE
1130 program_prefix=NONE
1131 program_suffix=NONE
1132 program_transform_name=s,x,x,
1133 silent=
1134 site=
1135 srcdir=
1136 verbose=
1137 x_includes=NONE
1138 x_libraries=NONE
1139
1140 # Installation directory options.
1141 # These are left unexpanded so users can "make install exec_prefix=/foo"
1142 # and all the variables that are supposed to be based on exec_prefix
1143 # by default will actually change.
1144 # Use braces instead of parens because sh, perl, etc. also accept them.
1145 # (The list follows the same order as the GNU Coding Standards.)
1146 bindir='${exec_prefix}/bin'
1147 sbindir='${exec_prefix}/sbin'
1148 libexecdir='${exec_prefix}/libexec'
1149 datarootdir='${prefix}/share'
1150 datadir='${datarootdir}'
1151 sysconfdir='${prefix}/etc'
1152 sharedstatedir='${prefix}/com'
1153 localstatedir='${prefix}/var'
1154 includedir='${prefix}/include'
1155 oldincludedir='/usr/include'
1156 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1157 infodir='${datarootdir}/info'
1158 htmldir='${docdir}'
1159 dvidir='${docdir}'
1160 pdfdir='${docdir}'
1161 psdir='${docdir}'
1162 libdir='${exec_prefix}/lib'
1163 localedir='${datarootdir}/locale'
1164 mandir='${datarootdir}/man'
1165
1166 ac_prev=
1167 ac_dashdash=
1168 for ac_option
1169 do
1170 # If the previous option needs an argument, assign it.
1171 if test -n "$ac_prev"; then
1172 eval $ac_prev=\$ac_option
1173 ac_prev=
1174 continue
1175 fi
1176
1177 case $ac_option in
1178 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1179 *=) ac_optarg= ;;
1180 *) ac_optarg=yes ;;
1181 esac
1182
1183 # Accept the important Cygnus configure options, so we can diagnose typos.
1184
1185 case $ac_dashdash$ac_option in
1186 --)
1187 ac_dashdash=yes ;;
1188
1189 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1190 ac_prev=bindir ;;
1191 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1192 bindir=$ac_optarg ;;
1193
1194 -build | --build | --buil | --bui | --bu)
1195 ac_prev=build_alias ;;
1196 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1197 build_alias=$ac_optarg ;;
1198
1199 -cache-file | --cache-file | --cache-fil | --cache-fi \
1200 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1201 ac_prev=cache_file ;;
1202 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1203 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1204 cache_file=$ac_optarg ;;
1205
1206 --config-cache | -C)
1207 cache_file=config.cache ;;
1208
1209 -datadir | --datadir | --datadi | --datad)
1210 ac_prev=datadir ;;
1211 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1212 datadir=$ac_optarg ;;
1213
1214 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1215 | --dataroo | --dataro | --datar)
1216 ac_prev=datarootdir ;;
1217 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1218 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1219 datarootdir=$ac_optarg ;;
1220
1221 -disable-* | --disable-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid feature name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230 "enable_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval enable_$ac_useropt=no ;;
1236
1237 -docdir | --docdir | --docdi | --doc | --do)
1238 ac_prev=docdir ;;
1239 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1240 docdir=$ac_optarg ;;
1241
1242 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1243 ac_prev=dvidir ;;
1244 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1245 dvidir=$ac_optarg ;;
1246
1247 -enable-* | --enable-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 as_fn_error $? "invalid feature name: $ac_useropt"
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256 "enable_$ac_useropt"
1257 "*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
1260 esac
1261 eval enable_$ac_useropt=\$ac_optarg ;;
1262
1263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1265 | --exec | --exe | --ex)
1266 ac_prev=exec_prefix ;;
1267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1269 | --exec=* | --exe=* | --ex=*)
1270 exec_prefix=$ac_optarg ;;
1271
1272 -gas | --gas | --ga | --g)
1273 # Obsolete; use --with-gas.
1274 with_gas=yes ;;
1275
1276 -help | --help | --hel | --he | -h)
1277 ac_init_help=long ;;
1278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1279 ac_init_help=recursive ;;
1280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1281 ac_init_help=short ;;
1282
1283 -host | --host | --hos | --ho)
1284 ac_prev=host_alias ;;
1285 -host=* | --host=* | --hos=* | --ho=*)
1286 host_alias=$ac_optarg ;;
1287
1288 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1289 ac_prev=htmldir ;;
1290 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1291 | --ht=*)
1292 htmldir=$ac_optarg ;;
1293
1294 -includedir | --includedir | --includedi | --included | --include \
1295 | --includ | --inclu | --incl | --inc)
1296 ac_prev=includedir ;;
1297 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1298 | --includ=* | --inclu=* | --incl=* | --inc=*)
1299 includedir=$ac_optarg ;;
1300
1301 -infodir | --infodir | --infodi | --infod | --info | --inf)
1302 ac_prev=infodir ;;
1303 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1304 infodir=$ac_optarg ;;
1305
1306 -libdir | --libdir | --libdi | --libd)
1307 ac_prev=libdir ;;
1308 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1309 libdir=$ac_optarg ;;
1310
1311 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1312 | --libexe | --libex | --libe)
1313 ac_prev=libexecdir ;;
1314 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1315 | --libexe=* | --libex=* | --libe=*)
1316 libexecdir=$ac_optarg ;;
1317
1318 -localedir | --localedir | --localedi | --localed | --locale)
1319 ac_prev=localedir ;;
1320 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1321 localedir=$ac_optarg ;;
1322
1323 -localstatedir | --localstatedir | --localstatedi | --localstated \
1324 | --localstate | --localstat | --localsta | --localst | --locals)
1325 ac_prev=localstatedir ;;
1326 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1327 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1328 localstatedir=$ac_optarg ;;
1329
1330 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1331 ac_prev=mandir ;;
1332 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1333 mandir=$ac_optarg ;;
1334
1335 -nfp | --nfp | --nf)
1336 # Obsolete; use --without-fp.
1337 with_fp=no ;;
1338
1339 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1340 | --no-cr | --no-c | -n)
1341 no_create=yes ;;
1342
1343 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1344 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1345 no_recursion=yes ;;
1346
1347 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1348 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1349 | --oldin | --oldi | --old | --ol | --o)
1350 ac_prev=oldincludedir ;;
1351 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1352 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1353 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1354 oldincludedir=$ac_optarg ;;
1355
1356 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1357 ac_prev=prefix ;;
1358 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1359 prefix=$ac_optarg ;;
1360
1361 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1362 | --program-pre | --program-pr | --program-p)
1363 ac_prev=program_prefix ;;
1364 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1365 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1366 program_prefix=$ac_optarg ;;
1367
1368 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1369 | --program-suf | --program-su | --program-s)
1370 ac_prev=program_suffix ;;
1371 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1372 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1373 program_suffix=$ac_optarg ;;
1374
1375 -program-transform-name | --program-transform-name \
1376 | --program-transform-nam | --program-transform-na \
1377 | --program-transform-n | --program-transform- \
1378 | --program-transform | --program-transfor \
1379 | --program-transfo | --program-transf \
1380 | --program-trans | --program-tran \
1381 | --progr-tra | --program-tr | --program-t)
1382 ac_prev=program_transform_name ;;
1383 -program-transform-name=* | --program-transform-name=* \
1384 | --program-transform-nam=* | --program-transform-na=* \
1385 | --program-transform-n=* | --program-transform-=* \
1386 | --program-transform=* | --program-transfor=* \
1387 | --program-transfo=* | --program-transf=* \
1388 | --program-trans=* | --program-tran=* \
1389 | --progr-tra=* | --program-tr=* | --program-t=*)
1390 program_transform_name=$ac_optarg ;;
1391
1392 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1393 ac_prev=pdfdir ;;
1394 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1395 pdfdir=$ac_optarg ;;
1396
1397 -psdir | --psdir | --psdi | --psd | --ps)
1398 ac_prev=psdir ;;
1399 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1400 psdir=$ac_optarg ;;
1401
1402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1403 | -silent | --silent | --silen | --sile | --sil)
1404 silent=yes ;;
1405
1406 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1407 ac_prev=sbindir ;;
1408 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1409 | --sbi=* | --sb=*)
1410 sbindir=$ac_optarg ;;
1411
1412 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1413 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1414 | --sharedst | --shareds | --shared | --share | --shar \
1415 | --sha | --sh)
1416 ac_prev=sharedstatedir ;;
1417 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1418 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1419 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1420 | --sha=* | --sh=*)
1421 sharedstatedir=$ac_optarg ;;
1422
1423 -site | --site | --sit)
1424 ac_prev=site ;;
1425 -site=* | --site=* | --sit=*)
1426 site=$ac_optarg ;;
1427
1428 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1429 ac_prev=srcdir ;;
1430 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1431 srcdir=$ac_optarg ;;
1432
1433 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1434 | --syscon | --sysco | --sysc | --sys | --sy)
1435 ac_prev=sysconfdir ;;
1436 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1437 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1438 sysconfdir=$ac_optarg ;;
1439
1440 -target | --target | --targe | --targ | --tar | --ta | --t)
1441 ac_prev=target_alias ;;
1442 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1443 target_alias=$ac_optarg ;;
1444
1445 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1446 verbose=yes ;;
1447
1448 -version | --version | --versio | --versi | --vers | -V)
1449 ac_init_version=: ;;
1450
1451 -with-* | --with-*)
1452 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1453 # Reject names that are not valid shell variable names.
1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1455 as_fn_error $? "invalid package name: $ac_useropt"
1456 ac_useropt_orig=$ac_useropt
1457 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1458 case $ac_user_opts in
1459 *"
1460 "with_$ac_useropt"
1461 "*) ;;
1462 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1463 ac_unrecognized_sep=', ';;
1464 esac
1465 eval with_$ac_useropt=\$ac_optarg ;;
1466
1467 -without-* | --without-*)
1468 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1469 # Reject names that are not valid shell variable names.
1470 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1471 as_fn_error $? "invalid package name: $ac_useropt"
1472 ac_useropt_orig=$ac_useropt
1473 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1474 case $ac_user_opts in
1475 *"
1476 "with_$ac_useropt"
1477 "*) ;;
1478 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1479 ac_unrecognized_sep=', ';;
1480 esac
1481 eval with_$ac_useropt=no ;;
1482
1483 --x)
1484 # Obsolete; use --with-x.
1485 with_x=yes ;;
1486
1487 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1488 | --x-incl | --x-inc | --x-in | --x-i)
1489 ac_prev=x_includes ;;
1490 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1491 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1492 x_includes=$ac_optarg ;;
1493
1494 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1495 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1496 ac_prev=x_libraries ;;
1497 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1498 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1499 x_libraries=$ac_optarg ;;
1500
1501 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1502 Try \`$0 --help' for more information"
1503 ;;
1504
1505 *=*)
1506 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1507 # Reject names that are not valid shell variable names.
1508 case $ac_envvar in #(
1509 '' | [0-9]* | *[!_$as_cr_alnum]* )
1510 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1511 esac
1512 eval $ac_envvar=\$ac_optarg
1513 export $ac_envvar ;;
1514
1515 *)
1516 # FIXME: should be removed in autoconf 3.0.
1517 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1518 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1519 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1520 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1521 ;;
1522
1523 esac
1524 done
1525
1526 if test -n "$ac_prev"; then
1527 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1528 as_fn_error $? "missing argument to $ac_option"
1529 fi
1530
1531 if test -n "$ac_unrecognized_opts"; then
1532 case $enable_option_checking in
1533 no) ;;
1534 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1535 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1536 esac
1537 fi
1538
1539 # Check all directory arguments for consistency.
1540 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1541 datadir sysconfdir sharedstatedir localstatedir includedir \
1542 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1543 libdir localedir mandir
1544 do
1545 eval ac_val=\$$ac_var
1546 # Remove trailing slashes.
1547 case $ac_val in
1548 */ )
1549 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1550 eval $ac_var=\$ac_val;;
1551 esac
1552 # Be sure to have absolute directory names.
1553 case $ac_val in
1554 [\\/$]* | ?:[\\/]* ) continue;;
1555 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1556 esac
1557 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1558 done
1559
1560 # There might be people who depend on the old broken behavior: `$host'
1561 # used to hold the argument of --host etc.
1562 # FIXME: To remove some day.
1563 build=$build_alias
1564 host=$host_alias
1565 target=$target_alias
1566
1567 # FIXME: To remove some day.
1568 if test "x$host_alias" != x; then
1569 if test "x$build_alias" = x; then
1570 cross_compiling=maybe
1571 elif test "x$build_alias" != "x$host_alias"; then
1572 cross_compiling=yes
1573 fi
1574 fi
1575
1576 ac_tool_prefix=
1577 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1578
1579 test "$silent" = yes && exec 6>/dev/null
1580
1581
1582 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1583 ac_ls_di=`ls -di .` &&
1584 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1585 as_fn_error $? "working directory cannot be determined"
1586 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1587 as_fn_error $? "pwd does not report name of working directory"
1588
1589
1590 # Find the source files, if location was not specified.
1591 if test -z "$srcdir"; then
1592 ac_srcdir_defaulted=yes
1593 # Try the directory containing this script, then the parent directory.
1594 ac_confdir=`$as_dirname -- "$as_myself" ||
1595 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1596 X"$as_myself" : 'X\(//\)[^/]' \| \
1597 X"$as_myself" : 'X\(//\)$' \| \
1598 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1599 $as_echo X"$as_myself" |
1600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1601 s//\1/
1602 q
1603 }
1604 /^X\(\/\/\)[^/].*/{
1605 s//\1/
1606 q
1607 }
1608 /^X\(\/\/\)$/{
1609 s//\1/
1610 q
1611 }
1612 /^X\(\/\).*/{
1613 s//\1/
1614 q
1615 }
1616 s/.*/./; q'`
1617 srcdir=$ac_confdir
1618 if test ! -r "$srcdir/$ac_unique_file"; then
1619 srcdir=..
1620 fi
1621 else
1622 ac_srcdir_defaulted=no
1623 fi
1624 if test ! -r "$srcdir/$ac_unique_file"; then
1625 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1626 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1627 fi
1628 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1629 ac_abs_confdir=`(
1630 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1631 pwd)`
1632 # When building in place, set srcdir=.
1633 if test "$ac_abs_confdir" = "$ac_pwd"; then
1634 srcdir=.
1635 fi
1636 # Remove unnecessary trailing slashes from srcdir.
1637 # Double slashes in file names in object file debugging info
1638 # mess up M-x gdb in Emacs.
1639 case $srcdir in
1640 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1641 esac
1642 for ac_var in $ac_precious_vars; do
1643 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1644 eval ac_env_${ac_var}_value=\$${ac_var}
1645 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1646 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1647 done
1648
1649 #
1650 # Report the --help message.
1651 #
1652 if test "$ac_init_help" = "long"; then
1653 # Omit some internal or obsolete options to make the list less imposing.
1654 # This message is too long to be a string in the A/UX 3.1 sh.
1655 cat <<_ACEOF
1656 \`configure' configures sim 0 to adapt to many kinds of systems.
1657
1658 Usage: $0 [OPTION]... [VAR=VALUE]...
1659
1660 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1661 VAR=VALUE. See below for descriptions of some of the useful variables.
1662
1663 Defaults for the options are specified in brackets.
1664
1665 Configuration:
1666 -h, --help display this help and exit
1667 --help=short display options specific to this package
1668 --help=recursive display the short help of all the included packages
1669 -V, --version display version information and exit
1670 -q, --quiet, --silent do not print \`checking ...' messages
1671 --cache-file=FILE cache test results in FILE [disabled]
1672 -C, --config-cache alias for \`--cache-file=config.cache'
1673 -n, --no-create do not create output files
1674 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1675
1676 Installation directories:
1677 --prefix=PREFIX install architecture-independent files in PREFIX
1678 [$ac_default_prefix]
1679 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1680 [PREFIX]
1681
1682 By default, \`make install' will install all the files in
1683 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1684 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1685 for instance \`--prefix=\$HOME'.
1686
1687 For better control, use the options below.
1688
1689 Fine tuning of the installation directories:
1690 --bindir=DIR user executables [EPREFIX/bin]
1691 --sbindir=DIR system admin executables [EPREFIX/sbin]
1692 --libexecdir=DIR program executables [EPREFIX/libexec]
1693 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1694 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1695 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1696 --libdir=DIR object code libraries [EPREFIX/lib]
1697 --includedir=DIR C header files [PREFIX/include]
1698 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1699 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1700 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1701 --infodir=DIR info documentation [DATAROOTDIR/info]
1702 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1703 --mandir=DIR man documentation [DATAROOTDIR/man]
1704 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1705 --htmldir=DIR html documentation [DOCDIR]
1706 --dvidir=DIR dvi documentation [DOCDIR]
1707 --pdfdir=DIR pdf documentation [DOCDIR]
1708 --psdir=DIR ps documentation [DOCDIR]
1709 _ACEOF
1710
1711 cat <<\_ACEOF
1712
1713 Program names:
1714 --program-prefix=PREFIX prepend PREFIX to installed program names
1715 --program-suffix=SUFFIX append SUFFIX to installed program names
1716 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1717
1718 System types:
1719 --build=BUILD configure for building on BUILD [guessed]
1720 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1721 --target=TARGET configure for building compilers for TARGET [HOST]
1722 _ACEOF
1723 fi
1724
1725 if test -n "$ac_init_help"; then
1726 case $ac_init_help in
1727 short | recursive ) echo "Configuration of sim 0:";;
1728 esac
1729 cat <<\_ACEOF
1730
1731 Optional Features:
1732 --disable-option-checking ignore unrecognized --enable/--with options
1733 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1734 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1735 --enable-shared[=PKGS] build shared libraries [default=yes]
1736 --enable-static[=PKGS] build static libraries [default=yes]
1737 --enable-fast-install[=PKGS]
1738 optimize for fast installation [default=yes]
1739 --disable-libtool-lock avoid locking (might break parallel builds)
1740 --enable-maintainer-mode
1741 enable make rules and dependencies not useful (and
1742 sometimes confusing) to the casual installer
1743 --enable-dependency-tracking
1744 do not reject slow dependency extractors
1745 --disable-dependency-tracking
1746 speeds up one-time build
1747 --enable-silent-rules less verbose build output (undo: "make V=1")
1748 --disable-silent-rules verbose build output (undo: "make V=0")
1749 --enable-sim Enable the GNU simulator
1750 --enable-example-sims enable example GNU simulators
1751 --enable-targets alternative target configurations
1752 --enable-sim-alignment=align
1753 Specify strict, nonstrict or forced alignment of
1754 memory accesses
1755 --enable-sim-assert Specify whether to perform random assertions
1756 --enable-cgen-maint=DIR build cgen generated files
1757 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1758 itself)
1759 --enable-sim-endian=endian
1760 Specify target byte endian orientation
1761 --enable-sim-environment=environment
1762 Specify mixed, user, virtual or operating
1763 environment
1764 --enable-sim-hardware Whether to enable hardware/device simulation
1765 --enable-sim-inline=inlines
1766 Specify which functions should be inlined
1767 --enable-sim-profile=opts
1768 Enable profiling flags
1769 --enable-sim-reserved-bits
1770 Specify whether to check reserved bits in
1771 instruction
1772 --enable-sim-scache=size
1773 Specify simulator execution cache size
1774 --enable-sim-stdio Specify whether to use stdio for console
1775 input/output
1776 --enable-sim-trace=opts Enable tracing of simulated programs
1777 --enable-werror treat compile warnings as errors
1778 --enable-build-warnings enable build-time compiler warnings if gcc is used
1779 --enable-sim-build-warnings
1780 enable SIM specific build-time compiler warnings if
1781 gcc is used
1782 --enable-sim-frv-trapdump
1783 Make unknown traps dump the registers
1784 --disable-sim-rx-cycle-accurate
1785 Disable cycle accurate simulation (faster runtime)
1786
1787 Optional Packages:
1788 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1789 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1790 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1791 --with-bugurl=URL Direct users to URL to report a bug
1792 --with-pic try to use only PIC/non-PIC objects [default=use
1793 both]
1794 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1795
1796 Some influential environment variables:
1797 CC C compiler command
1798 CFLAGS C compiler flags
1799 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1800 nonstandard directory <lib dir>
1801 LIBS libraries to pass to the linker, e.g. -l<library>
1802 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1803 you have headers in a nonstandard directory <include dir>
1804 CPP C preprocessor
1805 PKG_CONFIG path to pkg-config utility
1806 PKG_CONFIG_PATH
1807 directories to add to pkg-config's search path
1808 PKG_CONFIG_LIBDIR
1809 path overriding pkg-config's built-in search path
1810 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1811 SDL_LIBS linker flags for SDL, overriding pkg-config
1812 AS_FOR_TARGET_AARCH64
1813 Assembler for aarch64 tests
1814 LD_FOR_TARGET_AARCH64
1815 Linker for aarch64 tests
1816 CC_FOR_TARGET_AARCH64
1817 C compiler for aarch64 tests
1818 AS_FOR_TARGET_ARM
1819 Assembler for arm tests
1820 LD_FOR_TARGET_ARM
1821 Linker for arm tests
1822 CC_FOR_TARGET_ARM
1823 C compiler for arm tests
1824 AS_FOR_TARGET_AVR
1825 Assembler for avr tests
1826 LD_FOR_TARGET_AVR
1827 Linker for avr tests
1828 CC_FOR_TARGET_AVR
1829 C compiler for avr tests
1830 AS_FOR_TARGET_BFIN
1831 Assembler for bfin tests
1832 LD_FOR_TARGET_BFIN
1833 Linker for bfin tests
1834 CC_FOR_TARGET_BFIN
1835 C compiler for bfin tests
1836 AS_FOR_TARGET_BPF
1837 Assembler for bpf tests
1838 LD_FOR_TARGET_BPF
1839 Linker for bpf tests
1840 CC_FOR_TARGET_BPF
1841 C compiler for bpf tests
1842 AS_FOR_TARGET_CR16
1843 Assembler for cr16 tests
1844 LD_FOR_TARGET_CR16
1845 Linker for cr16 tests
1846 CC_FOR_TARGET_CR16
1847 C compiler for cr16 tests
1848 AS_FOR_TARGET_CRIS
1849 Assembler for cris tests
1850 LD_FOR_TARGET_CRIS
1851 Linker for cris tests
1852 CC_FOR_TARGET_CRIS
1853 C compiler for cris tests
1854 AS_FOR_TARGET_D10V
1855 Assembler for d10v tests
1856 LD_FOR_TARGET_D10V
1857 Linker for d10v tests
1858 CC_FOR_TARGET_D10V
1859 C compiler for d10v tests
1860 AS_FOR_TARGET_FRV
1861 Assembler for frv tests
1862 LD_FOR_TARGET_FRV
1863 Linker for frv tests
1864 CC_FOR_TARGET_FRV
1865 C compiler for frv tests
1866 AS_FOR_TARGET_FT32
1867 Assembler for ft32 tests
1868 LD_FOR_TARGET_FT32
1869 Linker for ft32 tests
1870 CC_FOR_TARGET_FT32
1871 C compiler for ft32 tests
1872 AS_FOR_TARGET_H8300
1873 Assembler for h8300 tests
1874 LD_FOR_TARGET_H8300
1875 Linker for h8300 tests
1876 CC_FOR_TARGET_H8300
1877 C compiler for h8300 tests
1878 AS_FOR_TARGET_IQ2000
1879 Assembler for iq2000 tests
1880 LD_FOR_TARGET_IQ2000
1881 Linker for iq2000 tests
1882 CC_FOR_TARGET_IQ2000
1883 C compiler for iq2000 tests
1884 AS_FOR_TARGET_LM32
1885 Assembler for lm32 tests
1886 LD_FOR_TARGET_LM32
1887 Linker for lm32 tests
1888 CC_FOR_TARGET_LM32
1889 C compiler for lm32 tests
1890 AS_FOR_TARGET_M32C
1891 Assembler for m32c tests
1892 LD_FOR_TARGET_M32C
1893 Linker for m32c tests
1894 CC_FOR_TARGET_M32C
1895 C compiler for m32c tests
1896 AS_FOR_TARGET_M32R
1897 Assembler for m32r tests
1898 LD_FOR_TARGET_M32R
1899 Linker for m32r tests
1900 CC_FOR_TARGET_M32R
1901 C compiler for m32r tests
1902 AS_FOR_TARGET_M68HC11
1903 Assembler for m68hc11 tests
1904 LD_FOR_TARGET_M68HC11
1905 Linker for m68hc11 tests
1906 CC_FOR_TARGET_M68HC11
1907 C compiler for m68hc11 tests
1908 AS_FOR_TARGET_MCORE
1909 Assembler for mcore tests
1910 LD_FOR_TARGET_MCORE
1911 Linker for mcore tests
1912 CC_FOR_TARGET_MCORE
1913 C compiler for mcore tests
1914 AS_FOR_TARGET_MICROBLAZE
1915 Assembler for microblaze tests
1916 LD_FOR_TARGET_MICROBLAZE
1917 Linker for microblaze tests
1918 CC_FOR_TARGET_MICROBLAZE
1919 C compiler for microblaze tests
1920 AS_FOR_TARGET_MIPS
1921 Assembler for mips tests
1922 LD_FOR_TARGET_MIPS
1923 Linker for mips tests
1924 CC_FOR_TARGET_MIPS
1925 C compiler for mips tests
1926 AS_FOR_TARGET_MN10300
1927 Assembler for mn10300 tests
1928 LD_FOR_TARGET_MN10300
1929 Linker for mn10300 tests
1930 CC_FOR_TARGET_MN10300
1931 C compiler for mn10300 tests
1932 AS_FOR_TARGET_MOXIE
1933 Assembler for moxie tests
1934 LD_FOR_TARGET_MOXIE
1935 Linker for moxie tests
1936 CC_FOR_TARGET_MOXIE
1937 C compiler for moxie tests
1938 AS_FOR_TARGET_MSP430
1939 Assembler for msp430 tests
1940 LD_FOR_TARGET_MSP430
1941 Linker for msp430 tests
1942 CC_FOR_TARGET_MSP430
1943 C compiler for msp430 tests
1944 AS_FOR_TARGET_OR1K
1945 Assembler for or1k tests
1946 LD_FOR_TARGET_OR1K
1947 Linker for or1k tests
1948 CC_FOR_TARGET_OR1K
1949 C compiler for or1k tests
1950 AS_FOR_TARGET_PPC
1951 Assembler for ppc tests
1952 LD_FOR_TARGET_PPC
1953 Linker for ppc tests
1954 CC_FOR_TARGET_PPC
1955 C compiler for ppc tests
1956 AS_FOR_TARGET_PRU
1957 Assembler for pru tests
1958 LD_FOR_TARGET_PRU
1959 Linker for pru tests
1960 CC_FOR_TARGET_PRU
1961 C compiler for pru tests
1962 AS_FOR_TARGET_RISCV
1963 Assembler for riscv tests
1964 LD_FOR_TARGET_RISCV
1965 Linker for riscv tests
1966 CC_FOR_TARGET_RISCV
1967 C compiler for riscv tests
1968 AS_FOR_TARGET_RL78
1969 Assembler for rl78 tests
1970 LD_FOR_TARGET_RL78
1971 Linker for rl78 tests
1972 CC_FOR_TARGET_RL78
1973 C compiler for rl78 tests
1974 AS_FOR_TARGET_RX
1975 Assembler for rx tests
1976 LD_FOR_TARGET_RX
1977 Linker for rx tests
1978 CC_FOR_TARGET_RX
1979 C compiler for rx tests
1980 AS_FOR_TARGET_SH
1981 Assembler for sh tests
1982 LD_FOR_TARGET_SH
1983 Linker for sh tests
1984 CC_FOR_TARGET_SH
1985 C compiler for sh tests
1986 AS_FOR_TARGET_ERC32
1987 Assembler for erc32 tests
1988 LD_FOR_TARGET_ERC32
1989 Linker for erc32 tests
1990 CC_FOR_TARGET_ERC32
1991 C compiler for erc32 tests
1992 AS_FOR_TARGET_V850
1993 Assembler for v850 tests
1994 LD_FOR_TARGET_V850
1995 Linker for v850 tests
1996 CC_FOR_TARGET_V850
1997 C compiler for v850 tests
1998 AS_FOR_TARGET_EXAMPLE_SYNACOR
1999 Assembler for example-synacor tests
2000 LD_FOR_TARGET_EXAMPLE_SYNACOR
2001 Linker for example-synacor tests
2002 CC_FOR_TARGET_EXAMPLE_SYNACOR
2003 C compiler for example-synacor tests
2004
2005 Use these variables to override the choices made by `configure' or to help
2006 it to find libraries and programs with nonstandard names/locations.
2007
2008 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2009 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2010 _ACEOF
2011 ac_status=$?
2012 fi
2013
2014 if test "$ac_init_help" = "recursive"; then
2015 # If there are subdirs, report their specific --help.
2016 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2017 test -d "$ac_dir" ||
2018 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2019 continue
2020 ac_builddir=.
2021
2022 case "$ac_dir" in
2023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2024 *)
2025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2026 # A ".." for each directory in $ac_dir_suffix.
2027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2028 case $ac_top_builddir_sub in
2029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2031 esac ;;
2032 esac
2033 ac_abs_top_builddir=$ac_pwd
2034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2035 # for backward compatibility:
2036 ac_top_builddir=$ac_top_build_prefix
2037
2038 case $srcdir in
2039 .) # We are building in place.
2040 ac_srcdir=.
2041 ac_top_srcdir=$ac_top_builddir_sub
2042 ac_abs_top_srcdir=$ac_pwd ;;
2043 [\\/]* | ?:[\\/]* ) # Absolute name.
2044 ac_srcdir=$srcdir$ac_dir_suffix;
2045 ac_top_srcdir=$srcdir
2046 ac_abs_top_srcdir=$srcdir ;;
2047 *) # Relative name.
2048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2049 ac_top_srcdir=$ac_top_build_prefix$srcdir
2050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2051 esac
2052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2053
2054 cd "$ac_dir" || { ac_status=$?; continue; }
2055 # Check for guested configure.
2056 if test -f "$ac_srcdir/configure.gnu"; then
2057 echo &&
2058 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2059 elif test -f "$ac_srcdir/configure"; then
2060 echo &&
2061 $SHELL "$ac_srcdir/configure" --help=recursive
2062 else
2063 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2064 fi || ac_status=$?
2065 cd "$ac_pwd" || { ac_status=$?; break; }
2066 done
2067 fi
2068
2069 test -n "$ac_init_help" && exit $ac_status
2070 if $ac_init_version; then
2071 cat <<\_ACEOF
2072 sim configure 0
2073 generated by GNU Autoconf 2.69
2074
2075 Copyright (C) 2012 Free Software Foundation, Inc.
2076 This configure script is free software; the Free Software Foundation
2077 gives unlimited permission to copy, distribute and modify it.
2078 _ACEOF
2079 exit
2080 fi
2081
2082 ## ------------------------ ##
2083 ## Autoconf initialization. ##
2084 ## ------------------------ ##
2085
2086 # ac_fn_c_try_compile LINENO
2087 # --------------------------
2088 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2089 ac_fn_c_try_compile ()
2090 {
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 rm -f conftest.$ac_objext
2093 if { { ac_try="$ac_compile"
2094 case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097 esac
2098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2099 $as_echo "$ac_try_echo"; } >&5
2100 (eval "$ac_compile") 2>conftest.err
2101 ac_status=$?
2102 if test -s conftest.err; then
2103 grep -v '^ *+' conftest.err >conftest.er1
2104 cat conftest.er1 >&5
2105 mv -f conftest.er1 conftest.err
2106 fi
2107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2108 test $ac_status = 0; } && {
2109 test -z "$ac_c_werror_flag" ||
2110 test ! -s conftest.err
2111 } && test -s conftest.$ac_objext; then :
2112 ac_retval=0
2113 else
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2116
2117 ac_retval=1
2118 fi
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 as_fn_set_status $ac_retval
2121
2122 } # ac_fn_c_try_compile
2123
2124 # ac_fn_c_try_cpp LINENO
2125 # ----------------------
2126 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_c_try_cpp ()
2128 {
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if { { ac_try="$ac_cpp conftest.$ac_ext"
2131 case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } > conftest.i && {
2146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2147 test ! -s conftest.err
2148 }; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1
2155 fi
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
2158
2159 } # ac_fn_c_try_cpp
2160
2161 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2162 # -------------------------------------------------------
2163 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2164 # the include files in INCLUDES and setting the cache variable VAR
2165 # accordingly.
2166 ac_fn_c_check_header_mongrel ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if eval \${$3+:} false; then :
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 fi
2175 eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 else
2179 # Is the header compilable?
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2181 $as_echo_n "checking $2 usability... " >&6; }
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 #include <$2>
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_header_compiler=yes
2189 else
2190 ac_header_compiler=no
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2194 $as_echo "$ac_header_compiler" >&6; }
2195
2196 # Is the header present?
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2198 $as_echo_n "checking $2 presence... " >&6; }
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 #include <$2>
2202 _ACEOF
2203 if ac_fn_c_try_cpp "$LINENO"; then :
2204 ac_header_preproc=yes
2205 else
2206 ac_header_preproc=no
2207 fi
2208 rm -f conftest.err conftest.i conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2210 $as_echo "$ac_header_preproc" >&6; }
2211
2212 # So? What about this header?
2213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2214 yes:no: )
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2216 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219 ;;
2220 no:yes:* )
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2222 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2224 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2226 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2228 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2232 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
2233 ## -------------------------------------------------------------------------------------- ##"
2234 ) | sed "s/^/$as_me: WARNING: /" >&2
2235 ;;
2236 esac
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 eval "$3=\$ac_header_compiler"
2243 fi
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 fi
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250 } # ac_fn_c_check_header_mongrel
2251
2252 # ac_fn_c_try_run LINENO
2253 # ----------------------
2254 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255 # that executables *can* be run.
2256 ac_fn_c_try_run ()
2257 {
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if { { ac_try="$ac_link"
2260 case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263 esac
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_link") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270 { { case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273 esac
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; }; }; then :
2280 ac_retval=0
2281 else
2282 $as_echo "$as_me: program exited with status $ac_status" >&5
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 ac_retval=$ac_status
2287 fi
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status $ac_retval
2291
2292 } # ac_fn_c_try_run
2293
2294 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2295 # -------------------------------------------------------
2296 # Tests whether HEADER exists and can be compiled using the include files in
2297 # INCLUDES, setting the cache variable VAR accordingly.
2298 ac_fn_c_check_header_compile ()
2299 {
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \${$3+:} false; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 $4
2309 #include <$2>
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312 eval "$3=yes"
2313 else
2314 eval "$3=no"
2315 fi
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 fi
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322
2323 } # ac_fn_c_check_header_compile
2324
2325 # ac_fn_c_try_link LINENO
2326 # -----------------------
2327 # Try to link conftest.$ac_ext, and return whether this succeeded.
2328 ac_fn_c_try_link ()
2329 {
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 rm -f conftest.$ac_objext conftest$ac_exeext
2332 if { { ac_try="$ac_link"
2333 case "(($ac_try" in
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2336 esac
2337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338 $as_echo "$ac_try_echo"; } >&5
2339 (eval "$ac_link") 2>conftest.err
2340 ac_status=$?
2341 if test -s conftest.err; then
2342 grep -v '^ *+' conftest.err >conftest.er1
2343 cat conftest.er1 >&5
2344 mv -f conftest.er1 conftest.err
2345 fi
2346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347 test $ac_status = 0; } && {
2348 test -z "$ac_c_werror_flag" ||
2349 test ! -s conftest.err
2350 } && test -s conftest$ac_exeext && {
2351 test "$cross_compiling" = yes ||
2352 test -x conftest$ac_exeext
2353 }; then :
2354 ac_retval=0
2355 else
2356 $as_echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 ac_retval=1
2360 fi
2361 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2362 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2363 # interfere with the next link command; also delete a directory that is
2364 # left behind by Apple's compiler. We do this before executing the actions.
2365 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367 as_fn_set_status $ac_retval
2368
2369 } # ac_fn_c_try_link
2370
2371 # ac_fn_c_check_func LINENO FUNC VAR
2372 # ----------------------------------
2373 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2374 ac_fn_c_check_func ()
2375 {
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \${$3+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2384 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2386 #define $2 innocuous_$2
2387
2388 /* System header to define __stub macros and hopefully few prototypes,
2389 which can conflict with char $2 (); below.
2390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2391 <limits.h> exists even on freestanding compilers. */
2392
2393 #ifdef __STDC__
2394 # include <limits.h>
2395 #else
2396 # include <assert.h>
2397 #endif
2398
2399 #undef $2
2400
2401 /* Override any GCC internal prototype to avoid an error.
2402 Use char because int might match the return type of a GCC
2403 builtin and then its argument prototype would still apply. */
2404 #ifdef __cplusplus
2405 extern "C"
2406 #endif
2407 char $2 ();
2408 /* The GNU C library defines this for functions which it implements
2409 to always fail with ENOSYS. Some functions are actually named
2410 something starting with __ and the normal name is an alias. */
2411 #if defined __stub_$2 || defined __stub___$2
2412 choke me
2413 #endif
2414
2415 int
2416 main ()
2417 {
2418 return $2 ();
2419 ;
2420 return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_link "$LINENO"; then :
2424 eval "$3=yes"
2425 else
2426 eval "$3=no"
2427 fi
2428 rm -f core conftest.err conftest.$ac_objext \
2429 conftest$ac_exeext conftest.$ac_ext
2430 fi
2431 eval ac_res=\$$3
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435
2436 } # ac_fn_c_check_func
2437
2438 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2439 # ----------------------------------------------------
2440 # Tries to find if the field MEMBER exists in type AGGR, after including
2441 # INCLUDES, setting cache variable VAR accordingly.
2442 ac_fn_c_check_member ()
2443 {
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2446 $as_echo_n "checking for $2.$3... " >&6; }
2447 if eval \${$4+:} false; then :
2448 $as_echo_n "(cached) " >&6
2449 else
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2452 $5
2453 int
2454 main ()
2455 {
2456 static $2 ac_aggr;
2457 if (ac_aggr.$3)
2458 return 0;
2459 ;
2460 return 0;
2461 }
2462 _ACEOF
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464 eval "$4=yes"
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 $5
2469 int
2470 main ()
2471 {
2472 static $2 ac_aggr;
2473 if (sizeof ac_aggr.$3)
2474 return 0;
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 eval "$4=yes"
2481 else
2482 eval "$4=no"
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 fi
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 fi
2488 eval ac_res=\$$4
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492
2493 } # ac_fn_c_check_member
2494
2495 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2496 # ---------------------------------------------
2497 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_check_decl ()
2500 {
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 as_decl_name=`echo $2|sed 's/ *(.*//'`
2503 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2505 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2506 if eval \${$3+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2511 $4
2512 int
2513 main ()
2514 {
2515 #ifndef $as_decl_name
2516 #ifdef __cplusplus
2517 (void) $as_decl_use;
2518 #else
2519 (void) $as_decl_name;
2520 #endif
2521 #endif
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 if ac_fn_c_try_compile "$LINENO"; then :
2528 eval "$3=yes"
2529 else
2530 eval "$3=no"
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538
2539 } # ac_fn_c_check_decl
2540
2541 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2542 # -------------------------------------------
2543 # Tests whether TYPE exists after having included INCLUDES, setting cache
2544 # variable VAR accordingly.
2545 ac_fn_c_check_type ()
2546 {
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if eval \${$3+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 eval "$3=no"
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $4
2557 int
2558 main ()
2559 {
2560 if (sizeof ($2))
2561 return 0;
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 $4
2570 int
2571 main ()
2572 {
2573 if (sizeof (($2)))
2574 return 0;
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580
2581 else
2582 eval "$3=yes"
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 fi
2588 eval ac_res=\$$3
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590 $as_echo "$ac_res" >&6; }
2591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2592
2593 } # ac_fn_c_check_type
2594 cat >config.log <<_ACEOF
2595 This file contains any messages produced by compilers while
2596 running configure, to aid debugging if configure makes a mistake.
2597
2598 It was created by sim $as_me 0, which was
2599 generated by GNU Autoconf 2.69. Invocation command line was
2600
2601 $ $0 $@
2602
2603 _ACEOF
2604 exec 5>>config.log
2605 {
2606 cat <<_ASUNAME
2607 ## --------- ##
2608 ## Platform. ##
2609 ## --------- ##
2610
2611 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2612 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2613 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2614 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2615 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2616
2617 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2618 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2619
2620 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2621 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2622 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2623 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2624 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2625 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2626 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2627
2628 _ASUNAME
2629
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 $as_echo "PATH: $as_dir"
2636 done
2637 IFS=$as_save_IFS
2638
2639 } >&5
2640
2641 cat >&5 <<_ACEOF
2642
2643
2644 ## ----------- ##
2645 ## Core tests. ##
2646 ## ----------- ##
2647
2648 _ACEOF
2649
2650
2651 # Keep a trace of the command line.
2652 # Strip out --no-create and --no-recursion so they do not pile up.
2653 # Strip out --silent because we don't want to record it for future runs.
2654 # Also quote any args containing shell meta-characters.
2655 # Make two passes to allow for proper duplicate-argument suppression.
2656 ac_configure_args=
2657 ac_configure_args0=
2658 ac_configure_args1=
2659 ac_must_keep_next=false
2660 for ac_pass in 1 2
2661 do
2662 for ac_arg
2663 do
2664 case $ac_arg in
2665 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2667 | -silent | --silent | --silen | --sile | --sil)
2668 continue ;;
2669 *\'*)
2670 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2671 esac
2672 case $ac_pass in
2673 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2674 2)
2675 as_fn_append ac_configure_args1 " '$ac_arg'"
2676 if test $ac_must_keep_next = true; then
2677 ac_must_keep_next=false # Got value, back to normal.
2678 else
2679 case $ac_arg in
2680 *=* | --config-cache | -C | -disable-* | --disable-* \
2681 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2682 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2683 | -with-* | --with-* | -without-* | --without-* | --x)
2684 case "$ac_configure_args0 " in
2685 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2686 esac
2687 ;;
2688 -* ) ac_must_keep_next=true ;;
2689 esac
2690 fi
2691 as_fn_append ac_configure_args " '$ac_arg'"
2692 ;;
2693 esac
2694 done
2695 done
2696 { ac_configure_args0=; unset ac_configure_args0;}
2697 { ac_configure_args1=; unset ac_configure_args1;}
2698
2699 # When interrupted or exit'd, cleanup temporary files, and complete
2700 # config.log. We remove comments because anyway the quotes in there
2701 # would cause problems or look ugly.
2702 # WARNING: Use '\'' to represent an apostrophe within the trap.
2703 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2704 trap 'exit_status=$?
2705 # Save into config.log some information that might help in debugging.
2706 {
2707 echo
2708
2709 $as_echo "## ---------------- ##
2710 ## Cache variables. ##
2711 ## ---------------- ##"
2712 echo
2713 # The following way of writing the cache mishandles newlines in values,
2714 (
2715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2716 eval ac_val=\$$ac_var
2717 case $ac_val in #(
2718 *${as_nl}*)
2719 case $ac_var in #(
2720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2722 esac
2723 case $ac_var in #(
2724 _ | IFS | as_nl) ;; #(
2725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2726 *) { eval $ac_var=; unset $ac_var;} ;;
2727 esac ;;
2728 esac
2729 done
2730 (set) 2>&1 |
2731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2732 *${as_nl}ac_space=\ *)
2733 sed -n \
2734 "s/'\''/'\''\\\\'\'''\''/g;
2735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2736 ;; #(
2737 *)
2738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2739 ;;
2740 esac |
2741 sort
2742 )
2743 echo
2744
2745 $as_echo "## ----------------- ##
2746 ## Output variables. ##
2747 ## ----------------- ##"
2748 echo
2749 for ac_var in $ac_subst_vars
2750 do
2751 eval ac_val=\$$ac_var
2752 case $ac_val in
2753 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2754 esac
2755 $as_echo "$ac_var='\''$ac_val'\''"
2756 done | sort
2757 echo
2758
2759 if test -n "$ac_subst_files"; then
2760 $as_echo "## ------------------- ##
2761 ## File substitutions. ##
2762 ## ------------------- ##"
2763 echo
2764 for ac_var in $ac_subst_files
2765 do
2766 eval ac_val=\$$ac_var
2767 case $ac_val in
2768 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2769 esac
2770 $as_echo "$ac_var='\''$ac_val'\''"
2771 done | sort
2772 echo
2773 fi
2774
2775 if test -s confdefs.h; then
2776 $as_echo "## ----------- ##
2777 ## confdefs.h. ##
2778 ## ----------- ##"
2779 echo
2780 cat confdefs.h
2781 echo
2782 fi
2783 test "$ac_signal" != 0 &&
2784 $as_echo "$as_me: caught signal $ac_signal"
2785 $as_echo "$as_me: exit $exit_status"
2786 } >&5
2787 rm -f core *.core core.conftest.* &&
2788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2789 exit $exit_status
2790 ' 0
2791 for ac_signal in 1 2 13 15; do
2792 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2793 done
2794 ac_signal=0
2795
2796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2797 rm -f -r conftest* confdefs.h
2798
2799 $as_echo "/* confdefs.h */" > confdefs.h
2800
2801 # Predefined preprocessor variables.
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE_NAME "$PACKAGE_NAME"
2805 _ACEOF
2806
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2809 _ACEOF
2810
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2813 _ACEOF
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_STRING "$PACKAGE_STRING"
2817 _ACEOF
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2821 _ACEOF
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_URL "$PACKAGE_URL"
2825 _ACEOF
2826
2827
2828 # Let the site file select an alternate cache file if it wants to.
2829 # Prefer an explicitly selected file to automatically selected ones.
2830 ac_site_file1=NONE
2831 ac_site_file2=NONE
2832 if test -n "$CONFIG_SITE"; then
2833 # We do not want a PATH search for config.site.
2834 case $CONFIG_SITE in #((
2835 -*) ac_site_file1=./$CONFIG_SITE;;
2836 */*) ac_site_file1=$CONFIG_SITE;;
2837 *) ac_site_file1=./$CONFIG_SITE;;
2838 esac
2839 elif test "x$prefix" != xNONE; then
2840 ac_site_file1=$prefix/share/config.site
2841 ac_site_file2=$prefix/etc/config.site
2842 else
2843 ac_site_file1=$ac_default_prefix/share/config.site
2844 ac_site_file2=$ac_default_prefix/etc/config.site
2845 fi
2846 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2847 do
2848 test "x$ac_site_file" = xNONE && continue
2849 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2851 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2852 sed 's/^/| /' "$ac_site_file" >&5
2853 . "$ac_site_file" \
2854 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2856 as_fn_error $? "failed to load site script $ac_site_file
2857 See \`config.log' for more details" "$LINENO" 5; }
2858 fi
2859 done
2860
2861 if test -r "$cache_file"; then
2862 # Some versions of bash will fail to source /dev/null (special files
2863 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2864 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2866 $as_echo "$as_me: loading cache $cache_file" >&6;}
2867 case $cache_file in
2868 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2869 *) . "./$cache_file";;
2870 esac
2871 fi
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2874 $as_echo "$as_me: creating cache $cache_file" >&6;}
2875 >$cache_file
2876 fi
2877
2878 as_fn_append ac_header_list " dlfcn.h"
2879 as_fn_append ac_header_list " fcntl.h"
2880 as_fn_append ac_header_list " fpu_control.h"
2881 as_fn_append ac_header_list " termios.h"
2882 as_fn_append ac_header_list " unistd.h"
2883 as_fn_append ac_header_list " utime.h"
2884 as_fn_append ac_header_list " linux/if_tun.h"
2885 as_fn_append ac_header_list " linux/mii.h"
2886 as_fn_append ac_header_list " linux/types.h"
2887 as_fn_append ac_header_list " net/if.h"
2888 as_fn_append ac_header_list " netinet/in.h"
2889 as_fn_append ac_header_list " netinet/tcp.h"
2890 as_fn_append ac_header_list " sys/ioctl.h"
2891 as_fn_append ac_header_list " sys/mman.h"
2892 as_fn_append ac_header_list " sys/mount.h"
2893 as_fn_append ac_header_list " sys/param.h"
2894 as_fn_append ac_header_list " sys/resource.h"
2895 as_fn_append ac_header_list " sys/socket.h"
2896 as_fn_append ac_header_list " sys/stat.h"
2897 as_fn_append ac_header_list " sys/statfs.h"
2898 as_fn_append ac_header_list " sys/termio.h"
2899 as_fn_append ac_header_list " sys/termios.h"
2900 as_fn_append ac_header_list " sys/types.h"
2901 as_fn_append ac_header_list " sys/vfs.h"
2902 as_fn_append ac_func_list " __setfpucw"
2903 as_fn_append ac_func_list " access"
2904 as_fn_append ac_func_list " aint"
2905 as_fn_append ac_func_list " anint"
2906 as_fn_append ac_func_list " cfgetispeed"
2907 as_fn_append ac_func_list " cfgetospeed"
2908 as_fn_append ac_func_list " cfsetispeed"
2909 as_fn_append ac_func_list " cfsetospeed"
2910 as_fn_append ac_func_list " chdir"
2911 as_fn_append ac_func_list " chmod"
2912 as_fn_append ac_func_list " dup"
2913 as_fn_append ac_func_list " dup2"
2914 as_fn_append ac_func_list " execv"
2915 as_fn_append ac_func_list " execve"
2916 as_fn_append ac_func_list " fcntl"
2917 as_fn_append ac_func_list " fork"
2918 as_fn_append ac_func_list " fstat"
2919 as_fn_append ac_func_list " fstatfs"
2920 as_fn_append ac_func_list " ftruncate"
2921 as_fn_append ac_func_list " getdirentries"
2922 as_fn_append ac_func_list " getegid"
2923 as_fn_append ac_func_list " geteuid"
2924 as_fn_append ac_func_list " getgid"
2925 as_fn_append ac_func_list " getpid"
2926 as_fn_append ac_func_list " getppid"
2927 as_fn_append ac_func_list " getrusage"
2928 as_fn_append ac_func_list " gettimeofday"
2929 as_fn_append ac_func_list " getuid"
2930 as_fn_append ac_func_list " ioctl"
2931 as_fn_append ac_func_list " kill"
2932 as_fn_append ac_func_list " link"
2933 as_fn_append ac_func_list " lseek"
2934 as_fn_append ac_func_list " mmap"
2935 as_fn_append ac_func_list " munmap"
2936 as_fn_append ac_func_list " pipe"
2937 as_fn_append ac_func_list " posix_fallocate"
2938 as_fn_append ac_func_list " pread"
2939 as_fn_append ac_func_list " rmdir"
2940 as_fn_append ac_func_list " setregid"
2941 as_fn_append ac_func_list " setreuid"
2942 as_fn_append ac_func_list " setgid"
2943 as_fn_append ac_func_list " setuid"
2944 as_fn_append ac_func_list " sigaction"
2945 as_fn_append ac_func_list " sigprocmask"
2946 as_fn_append ac_func_list " sqrt"
2947 as_fn_append ac_func_list " stat"
2948 as_fn_append ac_func_list " strsignal"
2949 as_fn_append ac_func_list " symlink"
2950 as_fn_append ac_func_list " tcdrain"
2951 as_fn_append ac_func_list " tcflow"
2952 as_fn_append ac_func_list " tcflush"
2953 as_fn_append ac_func_list " tcgetattr"
2954 as_fn_append ac_func_list " tcgetpgrp"
2955 as_fn_append ac_func_list " tcsendbreak"
2956 as_fn_append ac_func_list " tcsetattr"
2957 as_fn_append ac_func_list " tcsetpgrp"
2958 as_fn_append ac_func_list " time"
2959 as_fn_append ac_func_list " truncate"
2960 as_fn_append ac_func_list " umask"
2961 as_fn_append ac_func_list " unlink"
2962 as_fn_append ac_func_list " utime"
2963 # Check that the precious variables saved in the cache have kept the same
2964 # value.
2965 ac_cache_corrupted=false
2966 for ac_var in $ac_precious_vars; do
2967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968 eval ac_new_set=\$ac_env_${ac_var}_set
2969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970 eval ac_new_val=\$ac_env_${ac_var}_value
2971 case $ac_old_set,$ac_new_set in
2972 set,)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2976 ,set)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2980 ,);;
2981 *)
2982 if test "x$ac_old_val" != "x$ac_new_val"; then
2983 # differences in whitespace do not lead to failure.
2984 ac_old_val_w=`echo x $ac_old_val`
2985 ac_new_val_w=`echo x $ac_new_val`
2986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989 ac_cache_corrupted=:
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993 eval $ac_var=\$ac_old_val
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2999 fi;;
3000 esac
3001 # Pass precious variables to config.status.
3002 if test "$ac_new_set" = set; then
3003 case $ac_new_val in
3004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005 *) ac_arg=$ac_var=$ac_new_val ;;
3006 esac
3007 case " $ac_configure_args " in
3008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3009 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010 esac
3011 fi
3012 done
3013 if $ac_cache_corrupted; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 fi
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3023
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030
3031
3032
3033
3034
3035
3036
3037 # Check whether --with-pkgversion was given.
3038 if test "${with_pkgversion+set}" = set; then :
3039 withval=$with_pkgversion; case "$withval" in
3040 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3041 no) PKGVERSION= ;;
3042 *) PKGVERSION="($withval) " ;;
3043 esac
3044 else
3045 PKGVERSION="(SIM) "
3046
3047 fi
3048
3049
3050
3051
3052 cat >>confdefs.h <<_ACEOF
3053 #define PKGVERSION "$PKGVERSION"
3054 _ACEOF
3055
3056
3057
3058 # Check whether --with-bugurl was given.
3059 if test "${with_bugurl+set}" = set; then :
3060 withval=$with_bugurl; case "$withval" in
3061 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3062 no) BUGURL=
3063 ;;
3064 *) BUGURL="$withval"
3065 ;;
3066 esac
3067 else
3068 BUGURL="$PACKAGE_BUGREPORT"
3069
3070 fi
3071
3072 case ${BUGURL} in
3073 "")
3074 REPORT_BUGS_TO=
3075 REPORT_BUGS_TEXI=
3076 ;;
3077 *)
3078 REPORT_BUGS_TO="<$BUGURL>"
3079 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3080 ;;
3081 esac;
3082
3083
3084
3085
3086 cat >>confdefs.h <<_ACEOF
3087 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3088 _ACEOF
3089
3090
3091 ac_config_headers="$ac_config_headers config.h"
3092
3093
3094 ac_aux_dir=
3095 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3096 if test -f "$ac_dir/install-sh"; then
3097 ac_aux_dir=$ac_dir
3098 ac_install_sh="$ac_aux_dir/install-sh -c"
3099 break
3100 elif test -f "$ac_dir/install.sh"; then
3101 ac_aux_dir=$ac_dir
3102 ac_install_sh="$ac_aux_dir/install.sh -c"
3103 break
3104 elif test -f "$ac_dir/shtool"; then
3105 ac_aux_dir=$ac_dir
3106 ac_install_sh="$ac_aux_dir/shtool install -c"
3107 break
3108 fi
3109 done
3110 if test -z "$ac_aux_dir"; then
3111 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3112 fi
3113
3114 # These three variables are undocumented and unsupported,
3115 # and are intended to be withdrawn in a future Autoconf release.
3116 # They can cause serious problems if a builder's source tree is in a directory
3117 # whose full name contains unusual characters.
3118 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3119 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3120 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3121
3122
3123 # Make sure we can run config.sub.
3124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3125 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3126
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3128 $as_echo_n "checking build system type... " >&6; }
3129 if ${ac_cv_build+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 ac_build_alias=$build_alias
3133 test "x$ac_build_alias" = x &&
3134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3135 test "x$ac_build_alias" = x &&
3136 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3139
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3142 $as_echo "$ac_cv_build" >&6; }
3143 case $ac_cv_build in
3144 *-*-*) ;;
3145 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3146 esac
3147 build=$ac_cv_build
3148 ac_save_IFS=$IFS; IFS='-'
3149 set x $ac_cv_build
3150 shift
3151 build_cpu=$1
3152 build_vendor=$2
3153 shift; shift
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3156 build_os=$*
3157 IFS=$ac_save_IFS
3158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3159
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3162 $as_echo_n "checking host system type... " >&6; }
3163 if ${ac_cv_host+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test "x$host_alias" = x; then
3167 ac_cv_host=$ac_cv_build
3168 else
3169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3171 fi
3172
3173 fi
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3175 $as_echo "$ac_cv_host" >&6; }
3176 case $ac_cv_host in
3177 *-*-*) ;;
3178 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3179 esac
3180 host=$ac_cv_host
3181 ac_save_IFS=$IFS; IFS='-'
3182 set x $ac_cv_host
3183 shift
3184 host_cpu=$1
3185 host_vendor=$2
3186 shift; shift
3187 # Remember, the first character of IFS is used to create $*,
3188 # except with old shells:
3189 host_os=$*
3190 IFS=$ac_save_IFS
3191 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3192
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3195 $as_echo_n "checking target system type... " >&6; }
3196 if ${ac_cv_target+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test "x$target_alias" = x; then
3200 ac_cv_target=$ac_cv_host
3201 else
3202 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3204 fi
3205
3206 fi
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3208 $as_echo "$ac_cv_target" >&6; }
3209 case $ac_cv_target in
3210 *-*-*) ;;
3211 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3212 esac
3213 target=$ac_cv_target
3214 ac_save_IFS=$IFS; IFS='-'
3215 set x $ac_cv_target
3216 shift
3217 target_cpu=$1
3218 target_vendor=$2
3219 shift; shift
3220 # Remember, the first character of IFS is used to create $*,
3221 # except with old shells:
3222 target_os=$*
3223 IFS=$ac_save_IFS
3224 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3225
3226
3227 # The aliases save the names the user supplied, while $host etc.
3228 # will get canonicalized.
3229 test -n "$target_alias" &&
3230 test "$program_prefix$program_suffix$program_transform_name" = \
3231 NONENONEs,x,x, &&
3232 program_prefix=${target_alias}-
3233 # Expand $ac_aux_dir to an absolute path.
3234 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3262 fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279 fi
3280 if test -z "$ac_cv_prog_CC"; then
3281 ac_ct_CC=$CC
3282 # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_ac_ct_CC="gcc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3312 $as_echo "$ac_ct_CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318 if test "x$ac_ct_CC" = x; then
3319 CC=""
3320 else
3321 case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325 ac_tool_warned=yes ;;
3326 esac
3327 CC=$ac_ct_CC
3328 fi
3329 else
3330 CC="$ac_cv_prog_CC"
3331 fi
3332
3333 if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}cc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_CC+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_CC="${ac_tool_prefix}cc"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 fi
3373 fi
3374 if test -z "$CC"; then
3375 # Extract the first word of "cc", so it can be a program name with args.
3376 set dummy cc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 ac_prog_rejected=no
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3394 ac_prog_rejected=yes
3395 continue
3396 fi
3397 ac_cv_prog_CC="cc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401 done
3402 done
3403 IFS=$as_save_IFS
3404
3405 if test $ac_prog_rejected = yes; then
3406 # We found a bogon in the path, so make sure we never use it.
3407 set dummy $ac_cv_prog_CC
3408 shift
3409 if test $# != 0; then
3410 # We chose a different compiler from the bogus one.
3411 # However, it has the same basename, so the bogon will be chosen
3412 # first if we set CC to just the basename; use the full file name.
3413 shift
3414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3415 fi
3416 fi
3417 fi
3418 fi
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429 fi
3430 if test -z "$CC"; then
3431 if test -n "$ac_tool_prefix"; then
3432 for ac_prog in cl.exe
3433 do
3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3454 fi
3455 done
3456 done
3457 IFS=$as_save_IFS
3458
3459 fi
3460 fi
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 fi
3469
3470
3471 test -n "$CC" && break
3472 done
3473 fi
3474 if test -z "$CC"; then
3475 ac_ct_CC=$CC
3476 for ac_prog in cl.exe
3477 do
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_CC="$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi
3504 fi
3505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508 $as_echo "$ac_ct_CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 fi
3513
3514
3515 test -n "$ac_ct_CC" && break
3516 done
3517
3518 if test "x$ac_ct_CC" = x; then
3519 CC=""
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527 CC=$ac_ct_CC
3528 fi
3529 fi
3530
3531 fi
3532
3533
3534 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "no acceptable C compiler found in \$PATH
3537 See \`config.log' for more details" "$LINENO" 5; }
3538
3539 # Provide some information about the compiler.
3540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3541 set X $ac_compile
3542 ac_compiler=$2
3543 for ac_option in --version -v -V -qversion; do
3544 { { ac_try="$ac_compiler $ac_option >&5"
3545 case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3552 ac_status=$?
3553 if test -s conftest.err; then
3554 sed '10a\
3555 ... rest of stderr output deleted ...
3556 10q' conftest.err >conftest.er1
3557 cat conftest.er1 >&5
3558 fi
3559 rm -f conftest.er1 conftest.err
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 done
3563
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 ac_clean_files_save=$ac_clean_files
3576 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3577 # Try to create an executable without -o first, disregard a.out.
3578 # It will help us diagnose broken compilers, and finding out an intuition
3579 # of exeext.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3581 $as_echo_n "checking whether the C compiler works... " >&6; }
3582 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3583
3584 # The possible output files:
3585 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3586
3587 ac_rmfiles=
3588 for ac_file in $ac_files
3589 do
3590 case $ac_file in
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3592 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3593 esac
3594 done
3595 rm -f $ac_rmfiles
3596
3597 if { { ac_try="$ac_link_default"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link_default") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3609 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3610 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3611 # so that the user can short-circuit this test for compilers unknown to
3612 # Autoconf.
3613 for ac_file in $ac_files ''
3614 do
3615 test -f "$ac_file" || continue
3616 case $ac_file in
3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3618 ;;
3619 [ab].out )
3620 # We found the default executable, but exeext='' is most
3621 # certainly right.
3622 break;;
3623 *.* )
3624 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3625 then :; else
3626 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 fi
3628 # We set ac_cv_exeext here because the later test for it is not
3629 # safe: cross compilers may not add the suffix if given an `-o'
3630 # argument, so we may need to know it at that point already.
3631 # Even if this section looks crufty: it has the advantage of
3632 # actually working.
3633 break;;
3634 * )
3635 break;;
3636 esac
3637 done
3638 test "$ac_cv_exeext" = no && ac_cv_exeext=
3639
3640 else
3641 ac_file=''
3642 fi
3643 if test -z "$ac_file"; then :
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error 77 "C compiler cannot create executables
3652 See \`config.log' for more details" "$LINENO" 5; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3655 $as_echo "yes" >&6; }
3656 fi
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3658 $as_echo_n "checking for C compiler default output file name... " >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3660 $as_echo "$ac_file" >&6; }
3661 ac_exeext=$ac_cv_exeext
3662
3663 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3664 ac_clean_files=$ac_clean_files_save
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3666 $as_echo_n "checking for suffix of executables... " >&6; }
3667 if { { ac_try="$ac_link"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_link") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; then :
3678 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3679 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3680 # work properly (i.e., refer to `conftest.exe'), while it won't with
3681 # `rm'.
3682 for ac_file in conftest.exe conftest conftest.*; do
3683 test -f "$ac_file" || continue
3684 case $ac_file in
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687 break;;
3688 * ) break;;
3689 esac
3690 done
3691 else
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3695 See \`config.log' for more details" "$LINENO" 5; }
3696 fi
3697 rm -f conftest conftest$ac_cv_exeext
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3699 $as_echo "$ac_cv_exeext" >&6; }
3700
3701 rm -f conftest.$ac_ext
3702 EXEEXT=$ac_cv_exeext
3703 ac_exeext=$EXEEXT
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 #include <stdio.h>
3707 int
3708 main ()
3709 {
3710 FILE *f = fopen ("conftest.out", "w");
3711 return ferror (f) || fclose (f) != 0;
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 ac_clean_files="$ac_clean_files conftest.out"
3718 # Check that the compiler produces executables we can run. If not, either
3719 # the compiler is broken, or we cross compile.
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3721 $as_echo_n "checking whether we are cross compiling... " >&6; }
3722 if test "$cross_compiling" != yes; then
3723 { { ac_try="$ac_link"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_link") 2>&5
3731 ac_status=$?
3732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }
3734 if { ac_try='./conftest$ac_cv_exeext'
3735 { { case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_try") 2>&5
3742 ac_status=$?
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; }; then
3745 cross_compiling=no
3746 else
3747 if test "$cross_compiling" = maybe; then
3748 cross_compiling=yes
3749 else
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error $? "cannot run C compiled programs.
3753 If you meant to cross compile, use \`--host'.
3754 See \`config.log' for more details" "$LINENO" 5; }
3755 fi
3756 fi
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3759 $as_echo "$cross_compiling" >&6; }
3760
3761 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3762 ac_clean_files=$ac_clean_files_save
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3764 $as_echo_n "checking for suffix of object files... " >&6; }
3765 if ${ac_cv_objext+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770
3771 int
3772 main ()
3773 {
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 rm -f conftest.o conftest.obj
3780 if { { ac_try="$ac_compile"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_compile") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 for ac_file in conftest.o conftest.obj conftest.*; do
3792 test -f "$ac_file" || continue;
3793 case $ac_file in
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3796 break;;
3797 esac
3798 done
3799 else
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error $? "cannot compute suffix of object files: cannot compile
3806 See \`config.log' for more details" "$LINENO" 5; }
3807 fi
3808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3811 $as_echo "$ac_cv_objext" >&6; }
3812 OBJEXT=$ac_cv_objext
3813 ac_objext=$OBJEXT
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3815 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3816 if ${ac_cv_c_compiler_gnu+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821
3822 int
3823 main ()
3824 {
3825 #ifndef __GNUC__
3826 choke me
3827 #endif
3828
3829 ;
3830 return 0;
3831 }
3832 _ACEOF
3833 if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_compiler_gnu=yes
3835 else
3836 ac_compiler_gnu=no
3837 fi
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3840
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3843 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3844 if test $ac_compiler_gnu = yes; then
3845 GCC=yes
3846 else
3847 GCC=
3848 fi
3849 ac_test_CFLAGS=${CFLAGS+set}
3850 ac_save_CFLAGS=$CFLAGS
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3852 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3853 if ${ac_cv_prog_cc_g+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_save_c_werror_flag=$ac_c_werror_flag
3857 ac_c_werror_flag=yes
3858 ac_cv_prog_cc_g=no
3859 CFLAGS="-g"
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862
3863 int
3864 main ()
3865 {
3866
3867 ;
3868 return 0;
3869 }
3870 _ACEOF
3871 if ac_fn_c_try_compile "$LINENO"; then :
3872 ac_cv_prog_cc_g=yes
3873 else
3874 CFLAGS=""
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877
3878 int
3879 main ()
3880 {
3881
3882 ;
3883 return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887
3888 else
3889 ac_c_werror_flag=$ac_save_c_werror_flag
3890 CFLAGS="-g"
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893
3894 int
3895 main ()
3896 {
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_prog_cc_g=yes
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3913 $as_echo "$ac_cv_prog_cc_g" >&6; }
3914 if test "$ac_test_CFLAGS" = set; then
3915 CFLAGS=$ac_save_CFLAGS
3916 elif test $ac_cv_prog_cc_g = yes; then
3917 if test "$GCC" = yes; then
3918 CFLAGS="-g -O2"
3919 else
3920 CFLAGS="-g"
3921 fi
3922 else
3923 if test "$GCC" = yes; then
3924 CFLAGS="-O2"
3925 else
3926 CFLAGS=
3927 fi
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3930 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3931 if ${ac_cv_prog_cc_c89+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 ac_cv_prog_cc_c89=no
3935 ac_save_CC=$CC
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 #include <stdarg.h>
3939 #include <stdio.h>
3940 struct stat;
3941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3942 struct buf { int x; };
3943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3944 static char *e (p, i)
3945 char **p;
3946 int i;
3947 {
3948 return p[i];
3949 }
3950 static char *f (char * (*g) (char **, int), char **p, ...)
3951 {
3952 char *s;
3953 va_list v;
3954 va_start (v,p);
3955 s = g (p, va_arg (v,int));
3956 va_end (v);
3957 return s;
3958 }
3959
3960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3961 function prototypes and stuff, but not '\xHH' hex character constants.
3962 These don't provoke an error unfortunately, instead are silently treated
3963 as 'x'. The following induces an error, until -std is added to get
3964 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3965 array size at least. It's necessary to write '\x00'==0 to get something
3966 that's true only with -std. */
3967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3968
3969 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3970 inside strings and character constants. */
3971 #define FOO(x) 'x'
3972 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3973
3974 int test (int i, double x);
3975 struct s1 {int (*f) (int a);};
3976 struct s2 {int (*f) (double a);};
3977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3978 int argc;
3979 char **argv;
3980 int
3981 main ()
3982 {
3983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3989 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3990 do
3991 CC="$ac_save_CC $ac_arg"
3992 if ac_fn_c_try_compile "$LINENO"; then :
3993 ac_cv_prog_cc_c89=$ac_arg
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext
3996 test "x$ac_cv_prog_cc_c89" != "xno" && break
3997 done
3998 rm -f conftest.$ac_ext
3999 CC=$ac_save_CC
4000
4001 fi
4002 # AC_CACHE_VAL
4003 case "x$ac_cv_prog_cc_c89" in
4004 x)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4006 $as_echo "none needed" >&6; } ;;
4007 xno)
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4009 $as_echo "unsupported" >&6; } ;;
4010 *)
4011 CC="$CC $ac_cv_prog_cc_c89"
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4013 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4014 esac
4015 if test "x$ac_cv_prog_cc_c89" != xno; then :
4016
4017 fi
4018
4019 ac_ext=c
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024
4025 ac_ext=c
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4031 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4032 if ${am_cv_prog_cc_c_o+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037
4038 int
4039 main ()
4040 {
4041
4042 ;
4043 return 0;
4044 }
4045 _ACEOF
4046 # Make sure it works both with $CC and with simple cc.
4047 # Following AC_PROG_CC_C_O, we do the test twice because some
4048 # compilers refuse to overwrite an existing .o file with -o,
4049 # though they will create one.
4050 am_cv_prog_cc_c_o=yes
4051 for am_i in 1 2; do
4052 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4053 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } \
4057 && test -f conftest2.$ac_objext; then
4058 : OK
4059 else
4060 am_cv_prog_cc_c_o=no
4061 break
4062 fi
4063 done
4064 rm -f core conftest*
4065 unset am_i
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4068 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4069 if test "$am_cv_prog_cc_c_o" != yes; then
4070 # Losing compiler, so override with the script.
4071 # FIXME: It is wrong to rewrite CC.
4072 # But if we don't then we get into trouble of one sort or another.
4073 # A longer-term fix would be to have automake use am__CC in this case,
4074 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4075 CC="$am_aux_dir/compile $CC"
4076 fi
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4091 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4092 # On Suns, sometimes $CPP names a directory.
4093 if test -n "$CPP" && test -d "$CPP"; then
4094 CPP=
4095 fi
4096 if test -z "$CPP"; then
4097 if ${ac_cv_prog_CPP+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 # Double quotes because CPP needs to be expanded
4101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4102 do
4103 ac_preproc_ok=false
4104 for ac_c_preproc_warn_flag in '' yes
4105 do
4106 # Use a header file that comes with gcc, so configuring glibc
4107 # with a fresh cross-compiler works.
4108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 # <limits.h> exists even on freestanding compilers.
4110 # On the NeXT, cc -E runs the code through the compiler's parser,
4111 # not just through cpp. "Syntax error" is here to catch this case.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
4119 Syntax error
4120 _ACEOF
4121 if ac_fn_c_try_cpp "$LINENO"; then :
4122
4123 else
4124 # Broken: fails on valid input.
4125 continue
4126 fi
4127 rm -f conftest.err conftest.i conftest.$ac_ext
4128
4129 # OK, works on sane cases. Now check whether nonexistent headers
4130 # can be detected and how.
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4133 #include <ac_nonexistent.h>
4134 _ACEOF
4135 if ac_fn_c_try_cpp "$LINENO"; then :
4136 # Broken: success on invalid input.
4137 continue
4138 else
4139 # Passes both tests.
4140 ac_preproc_ok=:
4141 break
4142 fi
4143 rm -f conftest.err conftest.i conftest.$ac_ext
4144
4145 done
4146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4147 rm -f conftest.i conftest.err conftest.$ac_ext
4148 if $ac_preproc_ok; then :
4149 break
4150 fi
4151
4152 done
4153 ac_cv_prog_CPP=$CPP
4154
4155 fi
4156 CPP=$ac_cv_prog_CPP
4157 else
4158 ac_cv_prog_CPP=$CPP
4159 fi
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4161 $as_echo "$CPP" >&6; }
4162 ac_preproc_ok=false
4163 for ac_c_preproc_warn_flag in '' yes
4164 do
4165 # Use a header file that comes with gcc, so configuring glibc
4166 # with a fresh cross-compiler works.
4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168 # <limits.h> exists even on freestanding compilers.
4169 # On the NeXT, cc -E runs the code through the compiler's parser,
4170 # not just through cpp. "Syntax error" is here to catch this case.
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #ifdef __STDC__
4174 # include <limits.h>
4175 #else
4176 # include <assert.h>
4177 #endif
4178 Syntax error
4179 _ACEOF
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4181
4182 else
4183 # Broken: fails on valid input.
4184 continue
4185 fi
4186 rm -f conftest.err conftest.i conftest.$ac_ext
4187
4188 # OK, works on sane cases. Now check whether nonexistent headers
4189 # can be detected and how.
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <ac_nonexistent.h>
4193 _ACEOF
4194 if ac_fn_c_try_cpp "$LINENO"; then :
4195 # Broken: success on invalid input.
4196 continue
4197 else
4198 # Passes both tests.
4199 ac_preproc_ok=:
4200 break
4201 fi
4202 rm -f conftest.err conftest.i conftest.$ac_ext
4203
4204 done
4205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206 rm -f conftest.i conftest.err conftest.$ac_ext
4207 if $ac_preproc_ok; then :
4208
4209 else
4210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4212 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4213 See \`config.log' for more details" "$LINENO" 5; }
4214 fi
4215
4216 ac_ext=c
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
4222
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4224 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4225 if ${ac_cv_path_GREP+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -z "$GREP"; then
4229 ac_path_GREP_found=false
4230 # Loop through the user's path and test for each of PROGNAME-LIST
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_prog in grep ggrep; do
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4239 as_fn_executable_p "$ac_path_GREP" || continue
4240 # Check for GNU ac_path_GREP and select it if it is found.
4241 # Check for GNU $ac_path_GREP
4242 case `"$ac_path_GREP" --version 2>&1` in
4243 *GNU*)
4244 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4245 *)
4246 ac_count=0
4247 $as_echo_n 0123456789 >"conftest.in"
4248 while :
4249 do
4250 cat "conftest.in" "conftest.in" >"conftest.tmp"
4251 mv "conftest.tmp" "conftest.in"
4252 cp "conftest.in" "conftest.nl"
4253 $as_echo 'GREP' >> "conftest.nl"
4254 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256 as_fn_arith $ac_count + 1 && ac_count=$as_val
4257 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4258 # Best one so far, save it but keep looking for a better one
4259 ac_cv_path_GREP="$ac_path_GREP"
4260 ac_path_GREP_max=$ac_count
4261 fi
4262 # 10*(2^10) chars as input seems more than enough
4263 test $ac_count -gt 10 && break
4264 done
4265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266 esac
4267
4268 $ac_path_GREP_found && break 3
4269 done
4270 done
4271 done
4272 IFS=$as_save_IFS
4273 if test -z "$ac_cv_path_GREP"; then
4274 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275 fi
4276 else
4277 ac_cv_path_GREP=$GREP
4278 fi
4279
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4282 $as_echo "$ac_cv_path_GREP" >&6; }
4283 GREP="$ac_cv_path_GREP"
4284
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4287 $as_echo_n "checking for egrep... " >&6; }
4288 if ${ac_cv_path_EGREP+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4292 then ac_cv_path_EGREP="$GREP -E"
4293 else
4294 if test -z "$EGREP"; then
4295 ac_path_EGREP_found=false
4296 # Loop through the user's path and test for each of PROGNAME-LIST
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299 do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_prog in egrep; do
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4305 as_fn_executable_p "$ac_path_EGREP" || continue
4306 # Check for GNU ac_path_EGREP and select it if it is found.
4307 # Check for GNU $ac_path_EGREP
4308 case `"$ac_path_EGREP" --version 2>&1` in
4309 *GNU*)
4310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4311 *)
4312 ac_count=0
4313 $as_echo_n 0123456789 >"conftest.in"
4314 while :
4315 do
4316 cat "conftest.in" "conftest.in" >"conftest.tmp"
4317 mv "conftest.tmp" "conftest.in"
4318 cp "conftest.in" "conftest.nl"
4319 $as_echo 'EGREP' >> "conftest.nl"
4320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322 as_fn_arith $ac_count + 1 && ac_count=$as_val
4323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4324 # Best one so far, save it but keep looking for a better one
4325 ac_cv_path_EGREP="$ac_path_EGREP"
4326 ac_path_EGREP_max=$ac_count
4327 fi
4328 # 10*(2^10) chars as input seems more than enough
4329 test $ac_count -gt 10 && break
4330 done
4331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332 esac
4333
4334 $ac_path_EGREP_found && break 3
4335 done
4336 done
4337 done
4338 IFS=$as_save_IFS
4339 if test -z "$ac_cv_path_EGREP"; then
4340 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4341 fi
4342 else
4343 ac_cv_path_EGREP=$EGREP
4344 fi
4345
4346 fi
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4349 $as_echo "$ac_cv_path_EGREP" >&6; }
4350 EGREP="$ac_cv_path_EGREP"
4351
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4354 $as_echo_n "checking for ANSI C header files... " >&6; }
4355 if ${ac_cv_header_stdc+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <stdlib.h>
4361 #include <stdarg.h>
4362 #include <string.h>
4363 #include <float.h>
4364
4365 int
4366 main ()
4367 {
4368
4369 ;
4370 return 0;
4371 }
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374 ac_cv_header_stdc=yes
4375 else
4376 ac_cv_header_stdc=no
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379
4380 if test $ac_cv_header_stdc = yes; then
4381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 #include <string.h>
4385
4386 _ACEOF
4387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388 $EGREP "memchr" >/dev/null 2>&1; then :
4389
4390 else
4391 ac_cv_header_stdc=no
4392 fi
4393 rm -f conftest*
4394
4395 fi
4396
4397 if test $ac_cv_header_stdc = yes; then
4398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #include <stdlib.h>
4402
4403 _ACEOF
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405 $EGREP "free" >/dev/null 2>&1; then :
4406
4407 else
4408 ac_cv_header_stdc=no
4409 fi
4410 rm -f conftest*
4411
4412 fi
4413
4414 if test $ac_cv_header_stdc = yes; then
4415 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4416 if test "$cross_compiling" = yes; then :
4417 :
4418 else
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <ctype.h>
4422 #include <stdlib.h>
4423 #if ((' ' & 0x0FF) == 0x020)
4424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4426 #else
4427 # define ISLOWER(c) \
4428 (('a' <= (c) && (c) <= 'i') \
4429 || ('j' <= (c) && (c) <= 'r') \
4430 || ('s' <= (c) && (c) <= 'z'))
4431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4432 #endif
4433
4434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4435 int
4436 main ()
4437 {
4438 int i;
4439 for (i = 0; i < 256; i++)
4440 if (XOR (islower (i), ISLOWER (i))
4441 || toupper (i) != TOUPPER (i))
4442 return 2;
4443 return 0;
4444 }
4445 _ACEOF
4446 if ac_fn_c_try_run "$LINENO"; then :
4447
4448 else
4449 ac_cv_header_stdc=no
4450 fi
4451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4452 conftest.$ac_objext conftest.beam conftest.$ac_ext
4453 fi
4454
4455 fi
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4458 $as_echo "$ac_cv_header_stdc" >&6; }
4459 if test $ac_cv_header_stdc = yes; then
4460
4461 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4462
4463 fi
4464
4465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4466 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4467 inttypes.h stdint.h unistd.h
4468 do :
4469 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4470 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4471 "
4472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4473 cat >>confdefs.h <<_ACEOF
4474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 _ACEOF
4476
4477 fi
4478
4479 done
4480
4481
4482
4483 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4484 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4485 MINIX=yes
4486 else
4487 MINIX=
4488 fi
4489
4490
4491 if test "$MINIX" = yes; then
4492
4493 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4494
4495
4496 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4497
4498
4499 $as_echo "#define _MINIX 1" >>confdefs.h
4500
4501 fi
4502
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4505 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4506 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511
4512 # define __EXTENSIONS__ 1
4513 $ac_includes_default
4514 int
4515 main ()
4516 {
4517
4518 ;
4519 return 0;
4520 }
4521 _ACEOF
4522 if ac_fn_c_try_compile "$LINENO"; then :
4523 ac_cv_safe_to_define___extensions__=yes
4524 else
4525 ac_cv_safe_to_define___extensions__=no
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4530 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4531 test $ac_cv_safe_to_define___extensions__ = yes &&
4532 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4533
4534 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4535
4536 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4537
4538 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4539
4540 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4541
4542
4543 test "$program_prefix" != NONE &&
4544 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4545 # Use a double $ so make ignores it.
4546 test "$program_suffix" != NONE &&
4547 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4548 # Double any \ or $.
4549 # By default was `s,x,x', remove it if useless.
4550 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4551 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4552
4553 # Find a good install program. We prefer a C program (faster),
4554 # so one script is as good as another. But avoid the broken or
4555 # incompatible versions:
4556 # SysV /etc/install, /usr/sbin/install
4557 # SunOS /usr/etc/install
4558 # IRIX /sbin/install
4559 # AIX /bin/install
4560 # AmigaOS /C/install, which installs bootblocks on floppy discs
4561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4564 # OS/2's system install, which has a completely different semantic
4565 # ./install, which can be erroneously created by make from ./install.sh.
4566 # Reject install programs that cannot install multiple files.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4569 if test -z "$INSTALL"; then
4570 if ${ac_cv_path_install+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4575 do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 # Account for people who put trailing slashes in PATH elements.
4579 case $as_dir/ in #((
4580 ./ | .// | /[cC]/* | \
4581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4583 /usr/ucb/* ) ;;
4584 *)
4585 # OSF1 and SCO ODT 3.0 have their own names for install.
4586 # Don't use installbsd from OSF since it installs stuff as root
4587 # by default.
4588 for ac_prog in ginstall scoinst install; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4591 if test $ac_prog = install &&
4592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4593 # AIX install. It has an incompatible calling convention.
4594 :
4595 elif test $ac_prog = install &&
4596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4597 # program-specific install script used by HP pwplus--don't use.
4598 :
4599 else
4600 rm -rf conftest.one conftest.two conftest.dir
4601 echo one > conftest.one
4602 echo two > conftest.two
4603 mkdir conftest.dir
4604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4605 test -s conftest.one && test -s conftest.two &&
4606 test -s conftest.dir/conftest.one &&
4607 test -s conftest.dir/conftest.two
4608 then
4609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4610 break 3
4611 fi
4612 fi
4613 fi
4614 done
4615 done
4616 ;;
4617 esac
4618
4619 done
4620 IFS=$as_save_IFS
4621
4622 rm -rf conftest.one conftest.two conftest.dir
4623
4624 fi
4625 if test "${ac_cv_path_install+set}" = set; then
4626 INSTALL=$ac_cv_path_install
4627 else
4628 # As a last resort, use the slow shell script. Don't cache a
4629 # value for INSTALL within a source directory, because that will
4630 # break other packages using the cache if that directory is
4631 # removed, or if the value is a relative name.
4632 INSTALL=$ac_install_sh
4633 fi
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4636 $as_echo "$INSTALL" >&6; }
4637
4638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4639 # It thinks the first close brace ends the variable substitution.
4640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4641
4642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4643
4644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4651 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4652 if ${ac_cv_c_bigendian+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 ac_cv_c_bigendian=unknown
4656 # See if we're dealing with a universal compiler.
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #ifndef __APPLE_CC__
4660 not a universal capable compiler
4661 #endif
4662 typedef int dummy;
4663
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666
4667 # Check for potential -arch flags. It is not universal unless
4668 # there are at least two -arch flags with different values.
4669 ac_arch=
4670 ac_prev=
4671 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4672 if test -n "$ac_prev"; then
4673 case $ac_word in
4674 i?86 | x86_64 | ppc | ppc64)
4675 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4676 ac_arch=$ac_word
4677 else
4678 ac_cv_c_bigendian=universal
4679 break
4680 fi
4681 ;;
4682 esac
4683 ac_prev=
4684 elif test "x$ac_word" = "x-arch"; then
4685 ac_prev=arch
4686 fi
4687 done
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 if test $ac_cv_c_bigendian = unknown; then
4691 # See if sys/param.h defines the BYTE_ORDER macro.
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 #include <sys/types.h>
4695 #include <sys/param.h>
4696
4697 int
4698 main ()
4699 {
4700 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4701 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4702 && LITTLE_ENDIAN)
4703 bogus endian macros
4704 #endif
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 # It does; now see whether it defined to BIG_ENDIAN or not.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <sys/types.h>
4715 #include <sys/param.h>
4716
4717 int
4718 main ()
4719 {
4720 #if BYTE_ORDER != BIG_ENDIAN
4721 not big endian
4722 #endif
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 ac_cv_c_bigendian=yes
4730 else
4731 ac_cv_c_bigendian=no
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 if test $ac_cv_c_bigendian = unknown; then
4738 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <limits.h>
4742
4743 int
4744 main ()
4745 {
4746 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4747 bogus endian macros
4748 #endif
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 # It does; now see whether it defined to _BIG_ENDIAN or not.
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 #include <limits.h>
4759
4760 int
4761 main ()
4762 {
4763 #ifndef _BIG_ENDIAN
4764 not big endian
4765 #endif
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772 ac_cv_c_bigendian=yes
4773 else
4774 ac_cv_c_bigendian=no
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 fi
4780 if test $ac_cv_c_bigendian = unknown; then
4781 # Compile a test program.
4782 if test "$cross_compiling" = yes; then :
4783 # Try to guess by grepping values from an object file.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 short int ascii_mm[] =
4787 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4788 short int ascii_ii[] =
4789 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4790 int use_ascii (int i) {
4791 return ascii_mm[i] + ascii_ii[i];
4792 }
4793 short int ebcdic_ii[] =
4794 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4795 short int ebcdic_mm[] =
4796 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4797 int use_ebcdic (int i) {
4798 return ebcdic_mm[i] + ebcdic_ii[i];
4799 }
4800 extern int foo;
4801
4802 int
4803 main ()
4804 {
4805 return use_ascii (foo) == use_ebcdic (foo);
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 if ac_fn_c_try_compile "$LINENO"; then :
4811 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4812 ac_cv_c_bigendian=yes
4813 fi
4814 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4815 if test "$ac_cv_c_bigendian" = unknown; then
4816 ac_cv_c_bigendian=no
4817 else
4818 # finding both strings is unlikely to happen, but who knows?
4819 ac_cv_c_bigendian=unknown
4820 fi
4821 fi
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 else
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827 $ac_includes_default
4828 int
4829 main ()
4830 {
4831
4832 /* Are we little or big endian? From Harbison&Steele. */
4833 union
4834 {
4835 long int l;
4836 char c[sizeof (long int)];
4837 } u;
4838 u.l = 1;
4839 return u.c[sizeof (long int) - 1] == 1;
4840
4841 ;
4842 return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_run "$LINENO"; then :
4846 ac_cv_c_bigendian=no
4847 else
4848 ac_cv_c_bigendian=yes
4849 fi
4850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4851 conftest.$ac_objext conftest.beam conftest.$ac_ext
4852 fi
4853
4854 fi
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4857 $as_echo "$ac_cv_c_bigendian" >&6; }
4858 case $ac_cv_c_bigendian in #(
4859 yes)
4860 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4861 ;; #(
4862 no)
4863 ;; #(
4864 universal)
4865
4866 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4867
4868 ;; #(
4869 *)
4870 as_fn_error $? "unknown endianness
4871 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4872 esac
4873
4874
4875
4876
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if ${ac_cv_prog_DTC+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$DTC"; then
4886 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 DTC=$ac_cv_prog_DTC
4906 if test -n "$DTC"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4908 $as_echo "$DTC" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913
4914
4915 fi
4916 if test -z "$ac_cv_prog_DTC"; then
4917 ac_ct_DTC=$DTC
4918 # Extract the first word of "dtc", so it can be a program name with args.
4919 set dummy dtc; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$ac_ct_DTC"; then
4926 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_ac_ct_DTC="dtc"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4946 if test -n "$ac_ct_DTC"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4948 $as_echo "$ac_ct_DTC" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954 if test "x$ac_ct_DTC" = x; then
4955 DTC=""
4956 else
4957 case $cross_compiling:$ac_tool_warned in
4958 yes:)
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961 ac_tool_warned=yes ;;
4962 esac
4963 DTC=$ac_ct_DTC
4964 fi
4965 else
4966 DTC="$ac_cv_prog_DTC"
4967 fi
4968
4969
4970 if test "x$cross_compiling" = "xno"; then
4971 : "${AR_FOR_BUILD:=\$(AR)}"
4972 : "${CC_FOR_BUILD:=\$(CC)}"
4973 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4974 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4975 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4976 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4977 else
4978 : "${AR_FOR_BUILD:=ar}"
4979 : "${CC_FOR_BUILD:=gcc}"
4980 : "${RANLIB_FOR_BUILD:=ranlib}"
4981 : "${CFLAGS_FOR_BUILD:=-g -O}"
4982 : "${CPPFLAGS_FOR_BUILD:=}"
4983 : "${LDLFAGS_FOR_BUILD:=}"
4984 fi
4985
4986
4987
4988
4989
4990
4991
4992
4993 if test -n "$ac_tool_prefix"; then
4994 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4995 set dummy ${ac_tool_prefix}ar; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_AR+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$AR"; then
5002 ac_cv_prog_AR="$AR" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_AR="${ac_tool_prefix}ar"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 AR=$ac_cv_prog_AR
5022 if test -n "$AR"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5024 $as_echo "$AR" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031 fi
5032 if test -z "$ac_cv_prog_AR"; then
5033 ac_ct_AR=$AR
5034 # Extract the first word of "ar", so it can be a program name with args.
5035 set dummy ar; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$ac_ct_AR"; then
5042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_ac_ct_AR="ar"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5054 fi
5055 done
5056 done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5062 if test -n "$ac_ct_AR"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5064 $as_echo "$ac_ct_AR" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069
5070 if test "x$ac_ct_AR" = x; then
5071 AR=""
5072 else
5073 case $cross_compiling:$ac_tool_warned in
5074 yes:)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5077 ac_tool_warned=yes ;;
5078 esac
5079 AR=$ac_ct_AR
5080 fi
5081 else
5082 AR="$ac_cv_prog_AR"
5083 fi
5084
5085 if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_RANLIB+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$RANLIB"; then
5094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi
5112 fi
5113 RANLIB=$ac_cv_prog_RANLIB
5114 if test -n "$RANLIB"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5116 $as_echo "$RANLIB" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123 fi
5124 if test -z "$ac_cv_prog_RANLIB"; then
5125 ac_ct_RANLIB=$RANLIB
5126 # Extract the first word of "ranlib", so it can be a program name with args.
5127 set dummy ranlib; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$ac_ct_RANLIB"; then
5134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143 ac_cv_prog_ac_ct_RANLIB="ranlib"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5154 if test -n "$ac_ct_RANLIB"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5156 $as_echo "$ac_ct_RANLIB" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161
5162 if test "x$ac_ct_RANLIB" = x; then
5163 RANLIB=":"
5164 else
5165 case $cross_compiling:$ac_tool_warned in
5166 yes:)
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169 ac_tool_warned=yes ;;
5170 esac
5171 RANLIB=$ac_ct_RANLIB
5172 fi
5173 else
5174 RANLIB="$ac_cv_prog_RANLIB"
5175 fi
5176
5177
5178
5179
5180
5181
5182
5183
5184 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5185 if test -n "$ac_tool_prefix"; then
5186 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5187 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 case $PKG_CONFIG in
5194 [\\/]* | ?:[\\/]*)
5195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5196 ;;
5197 *)
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209 done
5210 done
5211 IFS=$as_save_IFS
5212
5213 ;;
5214 esac
5215 fi
5216 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5217 if test -n "$PKG_CONFIG"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5219 $as_echo "$PKG_CONFIG" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 fi
5224
5225
5226 fi
5227 if test -z "$ac_cv_path_PKG_CONFIG"; then
5228 ac_pt_PKG_CONFIG=$PKG_CONFIG
5229 # Extract the first word of "pkg-config", so it can be a program name with args.
5230 set dummy pkg-config; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 case $ac_pt_PKG_CONFIG in
5237 [\\/]* | ?:[\\/]*)
5238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5239 ;;
5240 *)
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252 done
5253 done
5254 IFS=$as_save_IFS
5255
5256 ;;
5257 esac
5258 fi
5259 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5260 if test -n "$ac_pt_PKG_CONFIG"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5262 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5263 else
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5266 fi
5267
5268 if test "x$ac_pt_PKG_CONFIG" = x; then
5269 PKG_CONFIG=""
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5276 esac
5277 PKG_CONFIG=$ac_pt_PKG_CONFIG
5278 fi
5279 else
5280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5281 fi
5282
5283 fi
5284 if test -n "$PKG_CONFIG"; then
5285 _pkg_min_version=0.9.0
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5287 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5290 $as_echo "yes" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 PKG_CONFIG=""
5295 fi
5296 fi
5297
5298 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5299 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5300 # is C99. So handle it ourselves.
5301 :
5302 C_DIALECT=
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5304 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307
5308 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5309 # error "C11 support not found"
5310 #endif
5311
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"; then :
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315 $as_echo "yes" >&6; }
5316 else
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5321 $as_echo_n "checking for -std=c11 support... " >&6; }
5322 ac_save_CC="$CC"
5323 CC="$CC -std=c11"
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326
5327 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5328 # error "C11 support not found"
5329 #endif
5330
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5336 CC="$ac_save_CC"
5337 C_DIALECT="-std=c11"
5338
5339 else
5340 as_fn_error $? "C11 is required" "$LINENO" 5
5341 fi
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345
5346
5347
5348
5349
5350 for ac_header in $ac_header_list
5351 do :
5352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5354 "
5355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5356 cat >>confdefs.h <<_ACEOF
5357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358 _ACEOF
5359
5360 fi
5361
5362 done
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
5410
5411
5412
5413
5414
5415 for ac_func in $ac_func_list
5416 do :
5417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5420 cat >>confdefs.h <<_ACEOF
5421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5422 _ACEOF
5423
5424 fi
5425 done
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5550 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5551 if ${ac_cv_struct_tm+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 #include <time.h>
5558
5559 int
5560 main ()
5561 {
5562 struct tm tm;
5563 int *p = &tm.tm_sec;
5564 return !p;
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_struct_tm=time.h
5571 else
5572 ac_cv_struct_tm=sys/time.h
5573 fi
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5577 $as_echo "$ac_cv_struct_tm" >&6; }
5578 if test $ac_cv_struct_tm = sys/time.h; then
5579
5580 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5581
5582 fi
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5585 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5586 if ${ac_cv_type_uid_t+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #include <sys/types.h>
5592
5593 _ACEOF
5594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5595 $EGREP "uid_t" >/dev/null 2>&1; then :
5596 ac_cv_type_uid_t=yes
5597 else
5598 ac_cv_type_uid_t=no
5599 fi
5600 rm -f conftest*
5601
5602 fi
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5604 $as_echo "$ac_cv_type_uid_t" >&6; }
5605 if test $ac_cv_type_uid_t = no; then
5606
5607 $as_echo "#define uid_t int" >>confdefs.h
5608
5609
5610 $as_echo "#define gid_t int" >>confdefs.h
5611
5612 fi
5613
5614 case `pwd` in
5615 *\ * | *\ *)
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5617 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5618 esac
5619
5620
5621
5622 macro_version='2.2.7a'
5623 macro_revision='1.3134'
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 ltmain="$ac_aux_dir/ltmain.sh"
5638
5639 # Backslashify metacharacters that are still active within
5640 # double-quoted strings.
5641 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5642
5643 # Same as above, but do not quote variable references.
5644 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5645
5646 # Sed substitution to delay expansion of an escaped shell variable in a
5647 # double_quote_subst'ed string.
5648 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5649
5650 # Sed substitution to delay expansion of an escaped single quote.
5651 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5652
5653 # Sed substitution to avoid accidental globbing in evaled expressions
5654 no_glob_subst='s/\*/\\\*/g'
5655
5656 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5657 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5658 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5659
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5661 $as_echo_n "checking how to print strings... " >&6; }
5662 # Test print first, because it will be a builtin if present.
5663 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5664 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5665 ECHO='print -r --'
5666 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5667 ECHO='printf %s\n'
5668 else
5669 # Use this function as a fallback that always works.
5670 func_fallback_echo ()
5671 {
5672 eval 'cat <<_LTECHO_EOF
5673 $1
5674 _LTECHO_EOF'
5675 }
5676 ECHO='func_fallback_echo'
5677 fi
5678
5679 # func_echo_all arg...
5680 # Invoke $ECHO with all args, space-separated.
5681 func_echo_all ()
5682 {
5683 $ECHO ""
5684 }
5685
5686 case "$ECHO" in
5687 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5688 $as_echo "printf" >&6; } ;;
5689 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5690 $as_echo "print -r" >&6; } ;;
5691 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5692 $as_echo "cat" >&6; } ;;
5693 esac
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5709 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5710 if ${ac_cv_path_SED+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5714 for ac_i in 1 2 3 4 5 6 7; do
5715 ac_script="$ac_script$as_nl$ac_script"
5716 done
5717 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5718 { ac_script=; unset ac_script;}
5719 if test -z "$SED"; then
5720 ac_path_SED_found=false
5721 # Loop through the user's path and test for each of PROGNAME-LIST
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_prog in sed gsed; do
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5730 as_fn_executable_p "$ac_path_SED" || continue
5731 # Check for GNU ac_path_SED and select it if it is found.
5732 # Check for GNU $ac_path_SED
5733 case `"$ac_path_SED" --version 2>&1` in
5734 *GNU*)
5735 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5736 *)
5737 ac_count=0
5738 $as_echo_n 0123456789 >"conftest.in"
5739 while :
5740 do
5741 cat "conftest.in" "conftest.in" >"conftest.tmp"
5742 mv "conftest.tmp" "conftest.in"
5743 cp "conftest.in" "conftest.nl"
5744 $as_echo '' >> "conftest.nl"
5745 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5747 as_fn_arith $ac_count + 1 && ac_count=$as_val
5748 if test $ac_count -gt ${ac_path_SED_max-0}; then
5749 # Best one so far, save it but keep looking for a better one
5750 ac_cv_path_SED="$ac_path_SED"
5751 ac_path_SED_max=$ac_count
5752 fi
5753 # 10*(2^10) chars as input seems more than enough
5754 test $ac_count -gt 10 && break
5755 done
5756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5757 esac
5758
5759 $ac_path_SED_found && break 3
5760 done
5761 done
5762 done
5763 IFS=$as_save_IFS
5764 if test -z "$ac_cv_path_SED"; then
5765 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5766 fi
5767 else
5768 ac_cv_path_SED=$SED
5769 fi
5770
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5773 $as_echo "$ac_cv_path_SED" >&6; }
5774 SED="$ac_cv_path_SED"
5775 rm -f conftest.sed
5776
5777 test -z "$SED" && SED=sed
5778 Xsed="$SED -e 1s/^X//"
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5791 $as_echo_n "checking for fgrep... " >&6; }
5792 if ${ac_cv_path_FGREP+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5796 then ac_cv_path_FGREP="$GREP -F"
5797 else
5798 if test -z "$FGREP"; then
5799 ac_path_FGREP_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_prog in fgrep; do
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5809 as_fn_executable_p "$ac_path_FGREP" || continue
5810 # Check for GNU ac_path_FGREP and select it if it is found.
5811 # Check for GNU $ac_path_FGREP
5812 case `"$ac_path_FGREP" --version 2>&1` in
5813 *GNU*)
5814 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5815 *)
5816 ac_count=0
5817 $as_echo_n 0123456789 >"conftest.in"
5818 while :
5819 do
5820 cat "conftest.in" "conftest.in" >"conftest.tmp"
5821 mv "conftest.tmp" "conftest.in"
5822 cp "conftest.in" "conftest.nl"
5823 $as_echo 'FGREP' >> "conftest.nl"
5824 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5826 as_fn_arith $ac_count + 1 && ac_count=$as_val
5827 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5828 # Best one so far, save it but keep looking for a better one
5829 ac_cv_path_FGREP="$ac_path_FGREP"
5830 ac_path_FGREP_max=$ac_count
5831 fi
5832 # 10*(2^10) chars as input seems more than enough
5833 test $ac_count -gt 10 && break
5834 done
5835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 esac
5837
5838 $ac_path_FGREP_found && break 3
5839 done
5840 done
5841 done
5842 IFS=$as_save_IFS
5843 if test -z "$ac_cv_path_FGREP"; then
5844 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5845 fi
5846 else
5847 ac_cv_path_FGREP=$FGREP
5848 fi
5849
5850 fi
5851 fi
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5853 $as_echo "$ac_cv_path_FGREP" >&6; }
5854 FGREP="$ac_cv_path_FGREP"
5855
5856
5857 test -z "$GREP" && GREP=grep
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877 # Check whether --with-gnu-ld was given.
5878 if test "${with_gnu_ld+set}" = set; then :
5879 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5880 else
5881 with_gnu_ld=no
5882 fi
5883
5884 ac_prog=ld
5885 if test "$GCC" = yes; then
5886 # Check if gcc -print-prog-name=ld gives a path.
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5888 $as_echo_n "checking for ld used by $CC... " >&6; }
5889 case $host in
5890 *-*-mingw*)
5891 # gcc leaves a trailing carriage return which upsets mingw
5892 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5893 *)
5894 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5895 esac
5896 case $ac_prog in
5897 # Accept absolute paths.
5898 [\\/]* | ?:[\\/]*)
5899 re_direlt='/[^/][^/]*/\.\./'
5900 # Canonicalize the pathname of ld
5901 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5902 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5903 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5904 done
5905 test -z "$LD" && LD="$ac_prog"
5906 ;;
5907 "")
5908 # If it fails, then pretend we aren't using GCC.
5909 ac_prog=ld
5910 ;;
5911 *)
5912 # If it is relative, then search for the first ld in PATH.
5913 with_gnu_ld=unknown
5914 ;;
5915 esac
5916 elif test "$with_gnu_ld" = yes; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5918 $as_echo_n "checking for GNU ld... " >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5921 $as_echo_n "checking for non-GNU ld... " >&6; }
5922 fi
5923 if ${lt_cv_path_LD+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 if test -z "$LD"; then
5927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5928 for ac_dir in $PATH; do
5929 IFS="$lt_save_ifs"
5930 test -z "$ac_dir" && ac_dir=.
5931 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5932 lt_cv_path_LD="$ac_dir/$ac_prog"
5933 # Check to see if the program is GNU ld. I'd rather use --version,
5934 # but apparently some variants of GNU ld only accept -v.
5935 # Break only if it was the GNU/non-GNU ld that we prefer.
5936 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5937 *GNU* | *'with BFD'*)
5938 test "$with_gnu_ld" != no && break
5939 ;;
5940 *)
5941 test "$with_gnu_ld" != yes && break
5942 ;;
5943 esac
5944 fi
5945 done
5946 IFS="$lt_save_ifs"
5947 else
5948 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5949 fi
5950 fi
5951
5952 LD="$lt_cv_path_LD"
5953 if test -n "$LD"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5955 $as_echo "$LD" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5962 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5963 if ${lt_cv_prog_gnu_ld+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5967 case `$LD -v 2>&1 </dev/null` in
5968 *GNU* | *'with BFD'*)
5969 lt_cv_prog_gnu_ld=yes
5970 ;;
5971 *)
5972 lt_cv_prog_gnu_ld=no
5973 ;;
5974 esac
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5977 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5978 with_gnu_ld=$lt_cv_prog_gnu_ld
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5989 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5990 if ${lt_cv_path_NM+:} false; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 if test -n "$NM"; then
5994 # Let the user override the nm to test.
5995 lt_nm_to_check="$NM"
5996 else
5997 lt_nm_to_check="${ac_tool_prefix}nm"
5998 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5999 lt_nm_to_check="$lt_nm_to_check nm"
6000 fi
6001 fi
6002 for lt_tmp_nm in "$lt_nm_to_check"; do
6003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6004 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6005 IFS="$lt_save_ifs"
6006 test -z "$ac_dir" && ac_dir=.
6007 # Strip out any user-provided options from the nm to test twice,
6008 # the first time to test to see if nm (rather than its options) has
6009 # an explicit path, the second time to yield a file which can be
6010 # nm'ed itself.
6011 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6012 case "$tmp_nm_path" in
6013 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6014 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6015 esac
6016 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6017 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6018 # Check to see if the nm accepts a BSD-compat flag.
6019 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6020 # nm: unknown option "B" ignored
6021 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6022 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6023 break
6024 ;;
6025 *)
6026 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6027 *$tmp_nm*)
6028 lt_cv_path_NM="$tmp_nm -p"
6029 break
6030 ;;
6031 *)
6032 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6033 continue # so that we can try to find one that supports BSD flags
6034 ;;
6035 esac
6036 ;;
6037 esac
6038 fi
6039 done
6040 IFS="$lt_save_ifs"
6041 done
6042 : ${lt_cv_path_NM=no}
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6045 $as_echo "$lt_cv_path_NM" >&6; }
6046 if test "$lt_cv_path_NM" != "no"; then
6047 NM="$lt_cv_path_NM"
6048 else
6049 # Didn't find any BSD compatible name lister, look for dumpbin.
6050 if test -n "$DUMPBIN"; then :
6051 # Let the user override the test.
6052 else
6053 if test -n "$ac_tool_prefix"; then
6054 for ac_prog in dumpbin "link -dump"
6055 do
6056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_DUMPBIN+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if test -n "$DUMPBIN"; then
6064 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 DUMPBIN=$ac_cv_prog_DUMPBIN
6084 if test -n "$DUMPBIN"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6086 $as_echo "$DUMPBIN" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092
6093 test -n "$DUMPBIN" && break
6094 done
6095 fi
6096 if test -z "$DUMPBIN"; then
6097 ac_ct_DUMPBIN=$DUMPBIN
6098 for ac_prog in dumpbin "link -dump"
6099 do
6100 # Extract the first word of "$ac_prog", so it can be a program name with args.
6101 set dummy $ac_prog; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 if test -n "$ac_ct_DUMPBIN"; then
6108 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6117 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6120 fi
6121 done
6122 done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6128 if test -n "$ac_ct_DUMPBIN"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6130 $as_echo "$ac_ct_DUMPBIN" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135
6136
6137 test -n "$ac_ct_DUMPBIN" && break
6138 done
6139
6140 if test "x$ac_ct_DUMPBIN" = x; then
6141 DUMPBIN=":"
6142 else
6143 case $cross_compiling:$ac_tool_warned in
6144 yes:)
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6148 esac
6149 DUMPBIN=$ac_ct_DUMPBIN
6150 fi
6151 fi
6152
6153 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6154 *COFF*)
6155 DUMPBIN="$DUMPBIN -symbols"
6156 ;;
6157 *)
6158 DUMPBIN=:
6159 ;;
6160 esac
6161 fi
6162
6163 if test "$DUMPBIN" != ":"; then
6164 NM="$DUMPBIN"
6165 fi
6166 fi
6167 test -z "$NM" && NM=nm
6168
6169
6170
6171
6172
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6175 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6176 if ${lt_cv_nm_interface+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 lt_cv_nm_interface="BSD nm"
6180 echo "int some_variable = 0;" > conftest.$ac_ext
6181 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6182 (eval "$ac_compile" 2>conftest.err)
6183 cat conftest.err >&5
6184 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6185 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6186 cat conftest.err >&5
6187 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6188 cat conftest.out >&5
6189 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6190 lt_cv_nm_interface="MS dumpbin"
6191 fi
6192 rm -f conftest*
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6195 $as_echo "$lt_cv_nm_interface" >&6; }
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6198 $as_echo_n "checking whether ln -s works... " >&6; }
6199 LN_S=$as_ln_s
6200 if test "$LN_S" = "ln -s"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 $as_echo "yes" >&6; }
6203 else
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6205 $as_echo "no, using $LN_S" >&6; }
6206 fi
6207
6208 # find the maximum length of command line arguments
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6210 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6211 if ${lt_cv_sys_max_cmd_len+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 i=0
6215 teststring="ABCD"
6216
6217 case $build_os in
6218 msdosdjgpp*)
6219 # On DJGPP, this test can blow up pretty badly due to problems in libc
6220 # (any single argument exceeding 2000 bytes causes a buffer overrun
6221 # during glob expansion). Even if it were fixed, the result of this
6222 # check would be larger than it should be.
6223 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6224 ;;
6225
6226 gnu*)
6227 # Under GNU Hurd, this test is not required because there is
6228 # no limit to the length of command line arguments.
6229 # Libtool will interpret -1 as no limit whatsoever
6230 lt_cv_sys_max_cmd_len=-1;
6231 ;;
6232
6233 cygwin* | mingw* | cegcc*)
6234 # On Win9x/ME, this test blows up -- it succeeds, but takes
6235 # about 5 minutes as the teststring grows exponentially.
6236 # Worse, since 9x/ME are not pre-emptively multitasking,
6237 # you end up with a "frozen" computer, even though with patience
6238 # the test eventually succeeds (with a max line length of 256k).
6239 # Instead, let's just punt: use the minimum linelength reported by
6240 # all of the supported platforms: 8192 (on NT/2K/XP).
6241 lt_cv_sys_max_cmd_len=8192;
6242 ;;
6243
6244 mint*)
6245 # On MiNT this can take a long time and run out of memory.
6246 lt_cv_sys_max_cmd_len=8192;
6247 ;;
6248
6249 amigaos*)
6250 # On AmigaOS with pdksh, this test takes hours, literally.
6251 # So we just punt and use a minimum line length of 8192.
6252 lt_cv_sys_max_cmd_len=8192;
6253 ;;
6254
6255 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6256 # This has been around since 386BSD, at least. Likely further.
6257 if test -x /sbin/sysctl; then
6258 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6259 elif test -x /usr/sbin/sysctl; then
6260 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6261 else
6262 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6263 fi
6264 # And add a safety zone
6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6267 ;;
6268
6269 interix*)
6270 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6271 lt_cv_sys_max_cmd_len=196608
6272 ;;
6273
6274 osf*)
6275 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6276 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6277 # nice to cause kernel panics so lets avoid the loop below.
6278 # First set a reasonable default.
6279 lt_cv_sys_max_cmd_len=16384
6280 #
6281 if test -x /sbin/sysconfig; then
6282 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6283 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6284 esac
6285 fi
6286 ;;
6287 sco3.2v5*)
6288 lt_cv_sys_max_cmd_len=102400
6289 ;;
6290 sysv5* | sco5v6* | sysv4.2uw2*)
6291 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6292 if test -n "$kargmax"; then
6293 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6294 else
6295 lt_cv_sys_max_cmd_len=32768
6296 fi
6297 ;;
6298 *)
6299 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6300 if test -n "$lt_cv_sys_max_cmd_len"; then
6301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6303 else
6304 # Make teststring a little bigger before we do anything with it.
6305 # a 1K string should be a reasonable start.
6306 for i in 1 2 3 4 5 6 7 8 ; do
6307 teststring=$teststring$teststring
6308 done
6309 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6310 # If test is not a shell built-in, we'll probably end up computing a
6311 # maximum length that is only half of the actual maximum length, but
6312 # we can't tell.
6313 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6314 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6315 test $i != 17 # 1/2 MB should be enough
6316 do
6317 i=`expr $i + 1`
6318 teststring=$teststring$teststring
6319 done
6320 # Only check the string length outside the loop.
6321 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6322 teststring=
6323 # Add a significant safety factor because C++ compilers can tack on
6324 # massive amounts of additional arguments before passing them to the
6325 # linker. It appears as though 1/2 is a usable value.
6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6327 fi
6328 ;;
6329 esac
6330
6331 fi
6332
6333 if test -n $lt_cv_sys_max_cmd_len ; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6335 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6338 $as_echo "none" >&6; }
6339 fi
6340 max_cmd_len=$lt_cv_sys_max_cmd_len
6341
6342
6343
6344
6345
6346
6347 : ${CP="cp -f"}
6348 : ${MV="mv -f"}
6349 : ${RM="rm -f"}
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6352 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6353 # Try some XSI features
6354 xsi_shell=no
6355 ( _lt_dummy="a/b/c"
6356 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6357 = c,a/b,, \
6358 && eval 'test $(( 1 + 1 )) -eq 2 \
6359 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6360 && xsi_shell=yes
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6362 $as_echo "$xsi_shell" >&6; }
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6366 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6367 lt_shell_append=no
6368 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6369 >/dev/null 2>&1 \
6370 && lt_shell_append=yes
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6372 $as_echo "$lt_shell_append" >&6; }
6373
6374
6375 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6376 lt_unset=unset
6377 else
6378 lt_unset=false
6379 fi
6380
6381
6382
6383
6384
6385 # test EBCDIC or ASCII
6386 case `echo X|tr X '\101'` in
6387 A) # ASCII based system
6388 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6389 lt_SP2NL='tr \040 \012'
6390 lt_NL2SP='tr \015\012 \040\040'
6391 ;;
6392 *) # EBCDIC based system
6393 lt_SP2NL='tr \100 \n'
6394 lt_NL2SP='tr \r\n \100\100'
6395 ;;
6396 esac
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6407 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6408 if ${lt_cv_ld_reload_flag+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 lt_cv_ld_reload_flag='-r'
6412 fi
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6414 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6415 reload_flag=$lt_cv_ld_reload_flag
6416 case $reload_flag in
6417 "" | " "*) ;;
6418 *) reload_flag=" $reload_flag" ;;
6419 esac
6420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6421 case $host_os in
6422 darwin*)
6423 if test "$GCC" = yes; then
6424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6425 else
6426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6427 fi
6428 ;;
6429 esac
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_OBJDUMP+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if test -n "$OBJDUMP"; then
6448 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461 done
6462 done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 OBJDUMP=$ac_cv_prog_OBJDUMP
6468 if test -n "$OBJDUMP"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6470 $as_echo "$OBJDUMP" >&6; }
6471 else
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_OBJDUMP"; then
6479 ac_ct_OBJDUMP=$OBJDUMP
6480 # Extract the first word of "objdump", so it can be a program name with args.
6481 set dummy objdump; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 if test -n "$ac_ct_OBJDUMP"; then
6488 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6508 if test -n "$ac_ct_OBJDUMP"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6510 $as_echo "$ac_ct_OBJDUMP" >&6; }
6511 else
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516 if test "x$ac_ct_OBJDUMP" = x; then
6517 OBJDUMP="false"
6518 else
6519 case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525 OBJDUMP=$ac_ct_OBJDUMP
6526 fi
6527 else
6528 OBJDUMP="$ac_cv_prog_OBJDUMP"
6529 fi
6530
6531 test -z "$OBJDUMP" && OBJDUMP=objdump
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6542 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6543 if ${lt_cv_deplibs_check_method+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 lt_cv_file_magic_cmd='$MAGIC_CMD'
6547 lt_cv_file_magic_test_file=
6548 lt_cv_deplibs_check_method='unknown'
6549 # Need to set the preceding variable on all platforms that support
6550 # interlibrary dependencies.
6551 # 'none' -- dependencies not supported.
6552 # `unknown' -- same as none, but documents that we really don't know.
6553 # 'pass_all' -- all dependencies passed with no checks.
6554 # 'test_compile' -- check by making test program.
6555 # 'file_magic [[regex]]' -- check by looking for files in library path
6556 # which responds to the $file_magic_cmd with a given extended regex.
6557 # If you have `file' or equivalent on your system and you're not sure
6558 # whether `pass_all' will *always* work, you probably want this one.
6559
6560 case $host_os in
6561 aix[4-9]*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 beos*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568
6569 bsdi[45]*)
6570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6571 lt_cv_file_magic_cmd='/usr/bin/file -L'
6572 lt_cv_file_magic_test_file=/shlib/libc.so
6573 ;;
6574
6575 cygwin*)
6576 # func_win32_libid is a shell function defined in ltmain.sh
6577 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6578 lt_cv_file_magic_cmd='func_win32_libid'
6579 ;;
6580
6581 mingw* | pw32*)
6582 # Base MSYS/MinGW do not provide the 'file' command needed by
6583 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6584 # unless we find 'file', for example because we are cross-compiling.
6585 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6586 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6588 lt_cv_file_magic_cmd='func_win32_libid'
6589 else
6590 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6591 lt_cv_file_magic_cmd='$OBJDUMP -f'
6592 fi
6593 ;;
6594
6595 cegcc*)
6596 # use the weaker test based on 'objdump'. See mingw*.
6597 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6598 lt_cv_file_magic_cmd='$OBJDUMP -f'
6599 ;;
6600
6601 darwin* | rhapsody*)
6602 lt_cv_deplibs_check_method=pass_all
6603 ;;
6604
6605 freebsd* | dragonfly*)
6606 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6607 case $host_cpu in
6608 i*86 )
6609 # Not sure whether the presence of OpenBSD here was a mistake.
6610 # Let's accept both of them until this is cleared up.
6611 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6612 lt_cv_file_magic_cmd=/usr/bin/file
6613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6614 ;;
6615 esac
6616 else
6617 lt_cv_deplibs_check_method=pass_all
6618 fi
6619 ;;
6620
6621 gnu*)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624
6625 haiku*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629 hpux10.20* | hpux11*)
6630 lt_cv_file_magic_cmd=/usr/bin/file
6631 case $host_cpu in
6632 ia64*)
6633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6634 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6635 ;;
6636 hppa*64*)
6637 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]'
6638 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6639 ;;
6640 *)
6641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6642 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6643 ;;
6644 esac
6645 ;;
6646
6647 interix[3-9]*)
6648 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6650 ;;
6651
6652 irix5* | irix6* | nonstopux*)
6653 case $LD in
6654 *-32|*"-32 ") libmagic=32-bit;;
6655 *-n32|*"-n32 ") libmagic=N32;;
6656 *-64|*"-64 ") libmagic=64-bit;;
6657 *) libmagic=never-match;;
6658 esac
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661
6662 # This must be Linux ELF.
6663 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666
6667 netbsd*)
6668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6670 else
6671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6672 fi
6673 ;;
6674
6675 newos6*)
6676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6677 lt_cv_file_magic_cmd=/usr/bin/file
6678 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6679 ;;
6680
6681 *nto* | *qnx*)
6682 lt_cv_deplibs_check_method=pass_all
6683 ;;
6684
6685 openbsd*)
6686 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6688 else
6689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6690 fi
6691 ;;
6692
6693 osf3* | osf4* | osf5*)
6694 lt_cv_deplibs_check_method=pass_all
6695 ;;
6696
6697 rdos*)
6698 lt_cv_deplibs_check_method=pass_all
6699 ;;
6700
6701 solaris*)
6702 lt_cv_deplibs_check_method=pass_all
6703 ;;
6704
6705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
6708
6709 sysv4 | sysv4.3*)
6710 case $host_vendor in
6711 motorola)
6712 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]'
6713 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6714 ;;
6715 ncr)
6716 lt_cv_deplibs_check_method=pass_all
6717 ;;
6718 sequent)
6719 lt_cv_file_magic_cmd='/bin/file'
6720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6721 ;;
6722 sni)
6723 lt_cv_file_magic_cmd='/bin/file'
6724 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6725 lt_cv_file_magic_test_file=/lib/libc.so
6726 ;;
6727 siemens)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
6730 pc)
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733 esac
6734 ;;
6735
6736 tpf*)
6737 lt_cv_deplibs_check_method=pass_all
6738 ;;
6739 esac
6740
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6743 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6744 file_magic_cmd=$lt_cv_file_magic_cmd
6745 deplibs_check_method=$lt_cv_deplibs_check_method
6746 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759 plugin_option=
6760 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6761 for plugin in $plugin_names; do
6762 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6763 if test x$plugin_so = x$plugin; then
6764 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6765 fi
6766 if test x$plugin_so != x$plugin; then
6767 plugin_option="--plugin $plugin_so"
6768 break
6769 fi
6770 done
6771
6772 if test -n "$ac_tool_prefix"; then
6773 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6774 set dummy ${ac_tool_prefix}ar; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if ${ac_cv_prog_AR+:} false; then :
6778 $as_echo_n "(cached) " >&6
6779 else
6780 if test -n "$AR"; then
6781 ac_cv_prog_AR="$AR" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786 IFS=$as_save_IFS
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790 ac_cv_prog_AR="${ac_tool_prefix}ar"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 break 2
6793 fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 AR=$ac_cv_prog_AR
6801 if test -n "$AR"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6803 $as_echo "$AR" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809
6810 fi
6811 if test -z "$ac_cv_prog_AR"; then
6812 ac_ct_AR=$AR
6813 # Extract the first word of "ar", so it can be a program name with args.
6814 set dummy ar; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$ac_ct_AR"; then
6821 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_ac_ct_AR="ar"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6833 fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6841 if test -n "$ac_ct_AR"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6843 $as_echo "$ac_ct_AR" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849 if test "x$ac_ct_AR" = x; then
6850 AR="false"
6851 else
6852 case $cross_compiling:$ac_tool_warned in
6853 yes:)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858 AR=$ac_ct_AR
6859 fi
6860 else
6861 AR="$ac_cv_prog_AR"
6862 fi
6863
6864 test -z "$AR" && AR=ar
6865 if test -n "$plugin_option"; then
6866 if $AR --help 2>&1 | grep -q "\--plugin"; then
6867 touch conftest.c
6868 $AR $plugin_option rc conftest.a conftest.c
6869 if test "$?" != 0; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6871 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6872 else
6873 AR="$AR $plugin_option"
6874 fi
6875 rm -f conftest.*
6876 fi
6877 fi
6878 test -z "$AR_FLAGS" && AR_FLAGS=cru
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}strip; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_STRIP+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$STRIP"; then
6899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 STRIP=$ac_cv_prog_STRIP
6919 if test -n "$STRIP"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6921 $as_echo "$STRIP" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_STRIP"; then
6930 ac_ct_STRIP=$STRIP
6931 # Extract the first word of "strip", so it can be a program name with args.
6932 set dummy strip; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$ac_ct_STRIP"; then
6939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948 ac_cv_prog_ac_ct_STRIP="strip"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6959 if test -n "$ac_ct_STRIP"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6961 $as_echo "$ac_ct_STRIP" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967 if test "x$ac_ct_STRIP" = x; then
6968 STRIP=":"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976 STRIP=$ac_ct_STRIP
6977 fi
6978 else
6979 STRIP="$ac_cv_prog_STRIP"
6980 fi
6981
6982 test -z "$STRIP" && STRIP=:
6983
6984
6985
6986
6987
6988
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_RANLIB+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$RANLIB"; then
6998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 RANLIB=$ac_cv_prog_RANLIB
7018 if test -n "$RANLIB"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7020 $as_echo "$RANLIB" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_RANLIB"; then
7029 ac_ct_RANLIB=$RANLIB
7030 # Extract the first word of "ranlib", so it can be a program name with args.
7031 set dummy ranlib; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 if test -n "$ac_ct_RANLIB"; then
7038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_RANLIB="ranlib"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7058 if test -n "$ac_ct_RANLIB"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7060 $as_echo "$ac_ct_RANLIB" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066 if test "x$ac_ct_RANLIB" = x; then
7067 RANLIB=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075 RANLIB=$ac_ct_RANLIB
7076 fi
7077 else
7078 RANLIB="$ac_cv_prog_RANLIB"
7079 fi
7080
7081 test -z "$RANLIB" && RANLIB=:
7082 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7083 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7084 RANLIB="$RANLIB $plugin_option"
7085 fi
7086 fi
7087
7088
7089
7090
7091
7092
7093 # Determine commands to create old-style static archives.
7094 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7095 old_postinstall_cmds='chmod 644 $oldlib'
7096 old_postuninstall_cmds=
7097
7098 if test -n "$RANLIB"; then
7099 case $host_os in
7100 openbsd*)
7101 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7102 ;;
7103 *)
7104 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7105 ;;
7106 esac
7107 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7108 fi
7109
7110 case $host_os in
7111 darwin*)
7112 lock_old_archive_extraction=yes ;;
7113 *)
7114 lock_old_archive_extraction=no ;;
7115 esac
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137 for ac_prog in gawk mawk nawk awk
7138 do
7139 # Extract the first word of "$ac_prog", so it can be a program name with args.
7140 set dummy $ac_prog; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_AWK+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$AWK"; then
7147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_AWK="$ac_prog"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 AWK=$ac_cv_prog_AWK
7167 if test -n "$AWK"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7169 $as_echo "$AWK" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176 test -n "$AWK" && break
7177 done
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197 # If no C compiler was specified, use CC.
7198 LTCC=${LTCC-"$CC"}
7199
7200 # If no C compiler flags were specified, use CFLAGS.
7201 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7202
7203 # Allow CC to be a program name with arguments.
7204 compiler=$CC
7205
7206
7207 # Check for command to grab the raw symbol name followed by C symbol from nm.
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7209 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7210 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213
7214 # These are sane defaults that work on at least a few old systems.
7215 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7216
7217 # Character class describing NM global symbol codes.
7218 symcode='[BCDEGRST]'
7219
7220 # Regexp to match symbols that can be accessed directly from C.
7221 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7222
7223 # Define system-specific variables.
7224 case $host_os in
7225 aix*)
7226 symcode='[BCDT]'
7227 ;;
7228 cygwin* | mingw* | pw32* | cegcc*)
7229 symcode='[ABCDGISTW]'
7230 ;;
7231 hpux*)
7232 if test "$host_cpu" = ia64; then
7233 symcode='[ABCDEGRST]'
7234 fi
7235 ;;
7236 irix* | nonstopux*)
7237 symcode='[BCDEGRST]'
7238 ;;
7239 osf*)
7240 symcode='[BCDEGQRST]'
7241 ;;
7242 solaris*)
7243 symcode='[BCDRT]'
7244 ;;
7245 sco3.2v5*)
7246 symcode='[DT]'
7247 ;;
7248 sysv4.2uw2*)
7249 symcode='[DT]'
7250 ;;
7251 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7252 symcode='[ABDT]'
7253 ;;
7254 sysv4)
7255 symcode='[DFNSTU]'
7256 ;;
7257 esac
7258
7259 # If we're using GNU nm, then use its standard symbol codes.
7260 case `$NM -V 2>&1` in
7261 *GNU* | *'with BFD'*)
7262 symcode='[ABCDGIRSTW]' ;;
7263 esac
7264
7265 # Transform an extracted symbol line into a proper C declaration.
7266 # Some systems (esp. on ia64) link data and code symbols differently,
7267 # so use this general approach.
7268 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7269
7270 # Transform an extracted symbol line into symbol name and symbol address
7271 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7272 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'"
7273
7274 # Handle CRLF in mingw tool chain
7275 opt_cr=
7276 case $build_os in
7277 mingw*)
7278 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7279 ;;
7280 esac
7281
7282 # Try without a prefix underscore, then with it.
7283 for ac_symprfx in "" "_"; do
7284
7285 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7286 symxfrm="\\1 $ac_symprfx\\2 \\2"
7287
7288 # Write the raw and C identifiers.
7289 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7290 # Fake it for dumpbin and say T for any non-static function
7291 # and D for any global variable.
7292 # Also find C++ and __fastcall symbols from MSVC++,
7293 # which start with @ or ?.
7294 lt_cv_sys_global_symbol_pipe="$AWK '"\
7295 " {last_section=section; section=\$ 3};"\
7296 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7297 " \$ 0!~/External *\|/{next};"\
7298 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7299 " {if(hide[section]) next};"\
7300 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7301 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7302 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7303 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7304 " ' prfx=^$ac_symprfx"
7305 else
7306 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7307 fi
7308
7309 # Check to see that the pipe works correctly.
7310 pipe_works=no
7311
7312 rm -f conftest*
7313 cat > conftest.$ac_ext <<_LT_EOF
7314 #ifdef __cplusplus
7315 extern "C" {
7316 #endif
7317 char nm_test_var;
7318 void nm_test_func(void);
7319 void nm_test_func(void){}
7320 #ifdef __cplusplus
7321 }
7322 #endif
7323 int main(){nm_test_var='a';nm_test_func();return(0);}
7324 _LT_EOF
7325
7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7327 (eval $ac_compile) 2>&5
7328 ac_status=$?
7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330 test $ac_status = 0; }; then
7331 # Now try to grab the symbols.
7332 nlist=conftest.nm
7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7334 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7335 ac_status=$?
7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337 test $ac_status = 0; } && test -s "$nlist"; then
7338 # Try sorting and uniquifying the output.
7339 if sort "$nlist" | uniq > "$nlist"T; then
7340 mv -f "$nlist"T "$nlist"
7341 else
7342 rm -f "$nlist"T
7343 fi
7344
7345 # Make sure that we snagged all the symbols we need.
7346 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7347 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7348 cat <<_LT_EOF > conftest.$ac_ext
7349 #ifdef __cplusplus
7350 extern "C" {
7351 #endif
7352
7353 _LT_EOF
7354 # Now generate the symbol file.
7355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7356
7357 cat <<_LT_EOF >> conftest.$ac_ext
7358
7359 /* The mapping between symbol names and symbols. */
7360 const struct {
7361 const char *name;
7362 void *address;
7363 }
7364 lt__PROGRAM__LTX_preloaded_symbols[] =
7365 {
7366 { "@PROGRAM@", (void *) 0 },
7367 _LT_EOF
7368 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7369 cat <<\_LT_EOF >> conftest.$ac_ext
7370 {0, (void *) 0}
7371 };
7372
7373 /* This works around a problem in FreeBSD linker */
7374 #ifdef FREEBSD_WORKAROUND
7375 static const void *lt_preloaded_setup() {
7376 return lt__PROGRAM__LTX_preloaded_symbols;
7377 }
7378 #endif
7379
7380 #ifdef __cplusplus
7381 }
7382 #endif
7383 _LT_EOF
7384 # Now try linking the two files.
7385 mv conftest.$ac_objext conftstm.$ac_objext
7386 lt_save_LIBS="$LIBS"
7387 lt_save_CFLAGS="$CFLAGS"
7388 LIBS="conftstm.$ac_objext"
7389 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7391 (eval $ac_link) 2>&5
7392 ac_status=$?
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7395 pipe_works=yes
7396 fi
7397 LIBS="$lt_save_LIBS"
7398 CFLAGS="$lt_save_CFLAGS"
7399 else
7400 echo "cannot find nm_test_func in $nlist" >&5
7401 fi
7402 else
7403 echo "cannot find nm_test_var in $nlist" >&5
7404 fi
7405 else
7406 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7407 fi
7408 else
7409 echo "$progname: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7411 fi
7412 rm -rf conftest* conftst*
7413
7414 # Do not use the global_symbol_pipe unless it works.
7415 if test "$pipe_works" = yes; then
7416 break
7417 else
7418 lt_cv_sys_global_symbol_pipe=
7419 fi
7420 done
7421
7422 fi
7423
7424 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7425 lt_cv_sys_global_symbol_to_cdecl=
7426 fi
7427 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7429 $as_echo "failed" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7432 $as_echo "ok" >&6; }
7433 fi
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 # Check whether --enable-libtool-lock was given.
7457 if test "${enable_libtool_lock+set}" = set; then :
7458 enableval=$enable_libtool_lock;
7459 fi
7460
7461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7462
7463 # Some flags need to be propagated to the compiler or linker for good
7464 # libtool support.
7465 case $host in
7466 ia64-*-hpux*)
7467 # Find out which ABI we are using.
7468 echo 'int i;' > conftest.$ac_ext
7469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7470 (eval $ac_compile) 2>&5
7471 ac_status=$?
7472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473 test $ac_status = 0; }; then
7474 case `/usr/bin/file conftest.$ac_objext` in
7475 *ELF-32*)
7476 HPUX_IA64_MODE="32"
7477 ;;
7478 *ELF-64*)
7479 HPUX_IA64_MODE="64"
7480 ;;
7481 esac
7482 fi
7483 rm -rf conftest*
7484 ;;
7485 *-*-irix6*)
7486 # Find out which ABI we are using.
7487 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7489 (eval $ac_compile) 2>&5
7490 ac_status=$?
7491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7492 test $ac_status = 0; }; then
7493 if test "$lt_cv_prog_gnu_ld" = yes; then
7494 case `/usr/bin/file conftest.$ac_objext` in
7495 *32-bit*)
7496 LD="${LD-ld} -melf32bsmip"
7497 ;;
7498 *N32*)
7499 LD="${LD-ld} -melf32bmipn32"
7500 ;;
7501 *64-bit*)
7502 LD="${LD-ld} -melf64bmip"
7503 ;;
7504 esac
7505 else
7506 case `/usr/bin/file conftest.$ac_objext` in
7507 *32-bit*)
7508 LD="${LD-ld} -32"
7509 ;;
7510 *N32*)
7511 LD="${LD-ld} -n32"
7512 ;;
7513 *64-bit*)
7514 LD="${LD-ld} -64"
7515 ;;
7516 esac
7517 fi
7518 fi
7519 rm -rf conftest*
7520 ;;
7521
7522 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7523 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7524 # Find out which ABI we are using.
7525 echo 'int i;' > conftest.$ac_ext
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7528 ac_status=$?
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 case `/usr/bin/file conftest.o` in
7532 *32-bit*)
7533 case $host in
7534 x86_64-*kfreebsd*-gnu)
7535 LD="${LD-ld} -m elf_i386_fbsd"
7536 ;;
7537 x86_64-*linux*)
7538 case `/usr/bin/file conftest.o` in
7539 *x86-64*)
7540 LD="${LD-ld} -m elf32_x86_64"
7541 ;;
7542 *)
7543 LD="${LD-ld} -m elf_i386"
7544 ;;
7545 esac
7546 ;;
7547 powerpc64le-*linux*)
7548 LD="${LD-ld} -m elf32lppclinux"
7549 ;;
7550 powerpc64-*linux*)
7551 LD="${LD-ld} -m elf32ppclinux"
7552 ;;
7553 s390x-*linux*)
7554 LD="${LD-ld} -m elf_s390"
7555 ;;
7556 sparc64-*linux*)
7557 LD="${LD-ld} -m elf32_sparc"
7558 ;;
7559 esac
7560 ;;
7561 *64-bit*)
7562 case $host in
7563 x86_64-*kfreebsd*-gnu)
7564 LD="${LD-ld} -m elf_x86_64_fbsd"
7565 ;;
7566 x86_64-*linux*)
7567 LD="${LD-ld} -m elf_x86_64"
7568 ;;
7569 powerpcle-*linux*)
7570 LD="${LD-ld} -m elf64lppc"
7571 ;;
7572 powerpc-*linux*)
7573 LD="${LD-ld} -m elf64ppc"
7574 ;;
7575 s390*-*linux*|s390*-*tpf*)
7576 LD="${LD-ld} -m elf64_s390"
7577 ;;
7578 sparc*-*linux*)
7579 LD="${LD-ld} -m elf64_sparc"
7580 ;;
7581 esac
7582 ;;
7583 esac
7584 fi
7585 rm -rf conftest*
7586 ;;
7587
7588 *-*-sco3.2v5*)
7589 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7590 SAVE_CFLAGS="$CFLAGS"
7591 CFLAGS="$CFLAGS -belf"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7593 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7594 if ${lt_cv_cc_needs_belf+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 ac_ext=c
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605
7606 int
7607 main ()
7608 {
7609
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_link "$LINENO"; then :
7615 lt_cv_cc_needs_belf=yes
7616 else
7617 lt_cv_cc_needs_belf=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext \
7620 conftest$ac_exeext conftest.$ac_ext
7621 ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7629 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7630 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7631 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7632 CFLAGS="$SAVE_CFLAGS"
7633 fi
7634 ;;
7635 sparc*-*solaris*)
7636 # Find out which ABI we are using.
7637 echo 'int i;' > conftest.$ac_ext
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639 (eval $ac_compile) 2>&5
7640 ac_status=$?
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }; then
7643 case `/usr/bin/file conftest.o` in
7644 *64-bit*)
7645 case $lt_cv_prog_gnu_ld in
7646 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7647 *)
7648 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7649 LD="${LD-ld} -64"
7650 fi
7651 ;;
7652 esac
7653 ;;
7654 esac
7655 fi
7656 rm -rf conftest*
7657 ;;
7658 esac
7659
7660 need_locks="$enable_libtool_lock"
7661
7662
7663 case $host_os in
7664 rhapsody* | darwin*)
7665 if test -n "$ac_tool_prefix"; then
7666 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7667 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 if test -n "$DSYMUTIL"; then
7674 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7694 if test -n "$DSYMUTIL"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7696 $as_echo "$DSYMUTIL" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702
7703 fi
7704 if test -z "$ac_cv_prog_DSYMUTIL"; then
7705 ac_ct_DSYMUTIL=$DSYMUTIL
7706 # Extract the first word of "dsymutil", so it can be a program name with args.
7707 set dummy dsymutil; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test -n "$ac_ct_DSYMUTIL"; then
7714 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7734 if test -n "$ac_ct_DSYMUTIL"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7736 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742 if test "x$ac_ct_DSYMUTIL" = x; then
7743 DSYMUTIL=":"
7744 else
7745 case $cross_compiling:$ac_tool_warned in
7746 yes:)
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7749 ac_tool_warned=yes ;;
7750 esac
7751 DSYMUTIL=$ac_ct_DSYMUTIL
7752 fi
7753 else
7754 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7755 fi
7756
7757 if test -n "$ac_tool_prefix"; then
7758 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7759 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if ${ac_cv_prog_NMEDIT+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 if test -n "$NMEDIT"; then
7766 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 NMEDIT=$ac_cv_prog_NMEDIT
7786 if test -n "$NMEDIT"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7788 $as_echo "$NMEDIT" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 fi
7796 if test -z "$ac_cv_prog_NMEDIT"; then
7797 ac_ct_NMEDIT=$NMEDIT
7798 # Extract the first word of "nmedit", so it can be a program name with args.
7799 set dummy nmedit; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 if test -n "$ac_ct_NMEDIT"; then
7806 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819 done
7820 done
7821 IFS=$as_save_IFS
7822
7823 fi
7824 fi
7825 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7826 if test -n "$ac_ct_NMEDIT"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7828 $as_echo "$ac_ct_NMEDIT" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834 if test "x$ac_ct_NMEDIT" = x; then
7835 NMEDIT=":"
7836 else
7837 case $cross_compiling:$ac_tool_warned in
7838 yes:)
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7841 ac_tool_warned=yes ;;
7842 esac
7843 NMEDIT=$ac_ct_NMEDIT
7844 fi
7845 else
7846 NMEDIT="$ac_cv_prog_NMEDIT"
7847 fi
7848
7849 if test -n "$ac_tool_prefix"; then
7850 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7851 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853 $as_echo_n "checking for $ac_word... " >&6; }
7854 if ${ac_cv_prog_LIPO+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 if test -n "$LIPO"; then
7858 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7859 else
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871 done
7872 done
7873 IFS=$as_save_IFS
7874
7875 fi
7876 fi
7877 LIPO=$ac_cv_prog_LIPO
7878 if test -n "$LIPO"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7880 $as_echo "$LIPO" >&6; }
7881 else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7884 fi
7885
7886
7887 fi
7888 if test -z "$ac_cv_prog_LIPO"; then
7889 ac_ct_LIPO=$LIPO
7890 # Extract the first word of "lipo", so it can be a program name with args.
7891 set dummy lipo; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 if test -n "$ac_ct_LIPO"; then
7898 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7899 else
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907 ac_cv_prog_ac_ct_LIPO="lipo"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915 fi
7916 fi
7917 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7918 if test -n "$ac_ct_LIPO"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7920 $as_echo "$ac_ct_LIPO" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7924 fi
7925
7926 if test "x$ac_ct_LIPO" = x; then
7927 LIPO=":"
7928 else
7929 case $cross_compiling:$ac_tool_warned in
7930 yes:)
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7933 ac_tool_warned=yes ;;
7934 esac
7935 LIPO=$ac_ct_LIPO
7936 fi
7937 else
7938 LIPO="$ac_cv_prog_LIPO"
7939 fi
7940
7941 if test -n "$ac_tool_prefix"; then
7942 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7943 set dummy ${ac_tool_prefix}otool; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if ${ac_cv_prog_OTOOL+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$OTOOL"; then
7950 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963 done
7964 done
7965 IFS=$as_save_IFS
7966
7967 fi
7968 fi
7969 OTOOL=$ac_cv_prog_OTOOL
7970 if test -n "$OTOOL"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7972 $as_echo "$OTOOL" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978
7979 fi
7980 if test -z "$ac_cv_prog_OTOOL"; then
7981 ac_ct_OTOOL=$OTOOL
7982 # Extract the first word of "otool", so it can be a program name with args.
7983 set dummy otool; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$ac_ct_OTOOL"; then
7990 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7999 ac_cv_prog_ac_ct_OTOOL="otool"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 fi
8008 fi
8009 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8010 if test -n "$ac_ct_OTOOL"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8012 $as_echo "$ac_ct_OTOOL" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018 if test "x$ac_ct_OTOOL" = x; then
8019 OTOOL=":"
8020 else
8021 case $cross_compiling:$ac_tool_warned in
8022 yes:)
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8025 ac_tool_warned=yes ;;
8026 esac
8027 OTOOL=$ac_ct_OTOOL
8028 fi
8029 else
8030 OTOOL="$ac_cv_prog_OTOOL"
8031 fi
8032
8033 if test -n "$ac_tool_prefix"; then
8034 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8035 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if ${ac_cv_prog_OTOOL64+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 if test -n "$OTOOL64"; then
8042 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047 IFS=$as_save_IFS
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 break 2
8054 fi
8055 done
8056 done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 OTOOL64=$ac_cv_prog_OTOOL64
8062 if test -n "$OTOOL64"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8064 $as_echo "$OTOOL64" >&6; }
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070
8071 fi
8072 if test -z "$ac_cv_prog_OTOOL64"; then
8073 ac_ct_OTOOL64=$OTOOL64
8074 # Extract the first word of "otool64", so it can be a program name with args.
8075 set dummy otool64; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 if test -n "$ac_ct_OTOOL64"; then
8082 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091 ac_cv_prog_ac_ct_OTOOL64="otool64"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8102 if test -n "$ac_ct_OTOOL64"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8104 $as_echo "$ac_ct_OTOOL64" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110 if test "x$ac_ct_OTOOL64" = x; then
8111 OTOOL64=":"
8112 else
8113 case $cross_compiling:$ac_tool_warned in
8114 yes:)
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8117 ac_tool_warned=yes ;;
8118 esac
8119 OTOOL64=$ac_ct_OTOOL64
8120 fi
8121 else
8122 OTOOL64="$ac_cv_prog_OTOOL64"
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8152 $as_echo_n "checking for -single_module linker flag... " >&6; }
8153 if ${lt_cv_apple_cc_single_mod+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 lt_cv_apple_cc_single_mod=no
8157 if test -z "${LT_MULTI_MODULE}"; then
8158 # By default we will add the -single_module flag. You can override
8159 # by either setting the environment variable LT_MULTI_MODULE
8160 # non-empty at configure time, or by adding -multi_module to the
8161 # link flags.
8162 rm -rf libconftest.dylib*
8163 echo "int foo(void){return 1;}" > conftest.c
8164 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8165 -dynamiclib -Wl,-single_module conftest.c" >&5
8166 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8167 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8168 _lt_result=$?
8169 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8170 lt_cv_apple_cc_single_mod=yes
8171 else
8172 cat conftest.err >&5
8173 fi
8174 rm -rf libconftest.dylib*
8175 rm -f conftest.*
8176 fi
8177 fi
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8179 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8181 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8182 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 lt_cv_ld_exported_symbols_list=no
8186 save_LDFLAGS=$LDFLAGS
8187 echo "_main" > conftest.sym
8188 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191
8192 int
8193 main ()
8194 {
8195
8196 ;
8197 return 0;
8198 }
8199 _ACEOF
8200 if ac_fn_c_try_link "$LINENO"; then :
8201 lt_cv_ld_exported_symbols_list=yes
8202 else
8203 lt_cv_ld_exported_symbols_list=no
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext \
8206 conftest$ac_exeext conftest.$ac_ext
8207 LDFLAGS="$save_LDFLAGS"
8208
8209 fi
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8211 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8213 $as_echo_n "checking for -force_load linker flag... " >&6; }
8214 if ${lt_cv_ld_force_load+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 lt_cv_ld_force_load=no
8218 cat > conftest.c << _LT_EOF
8219 int forced_loaded() { return 2;}
8220 _LT_EOF
8221 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8222 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8223 echo "$AR cru libconftest.a conftest.o" >&5
8224 $AR cru libconftest.a conftest.o 2>&5
8225 cat > conftest.c << _LT_EOF
8226 int main() { return 0;}
8227 _LT_EOF
8228 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8229 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8230 _lt_result=$?
8231 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8232 lt_cv_ld_force_load=yes
8233 else
8234 cat conftest.err >&5
8235 fi
8236 rm -f conftest.err libconftest.a conftest conftest.c
8237 rm -rf conftest.dSYM
8238
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8241 $as_echo "$lt_cv_ld_force_load" >&6; }
8242 case $host_os in
8243 rhapsody* | darwin1.[012])
8244 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8245 darwin1.*)
8246 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8247 darwin*) # darwin 5.x on
8248 # if running on 10.5 or later, the deployment target defaults
8249 # to the OS version, if on x86, and 10.4, the deployment
8250 # target defaults to 10.4. Don't you love it?
8251 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8252 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8253 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8254 10.[012][,.]*)
8255 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8256 10.*)
8257 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8258 esac
8259 ;;
8260 esac
8261 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8262 _lt_dar_single_mod='$single_module'
8263 fi
8264 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8265 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8266 else
8267 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8268 fi
8269 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8270 _lt_dsymutil='~$DSYMUTIL $lib || :'
8271 else
8272 _lt_dsymutil=
8273 fi
8274 ;;
8275 esac
8276
8277 for ac_header in dlfcn.h
8278 do :
8279 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8280 "
8281 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8282 cat >>confdefs.h <<_ACEOF
8283 #define HAVE_DLFCN_H 1
8284 _ACEOF
8285
8286 fi
8287
8288 done
8289
8290
8291 ac_header_dirent=no
8292 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8293 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8295 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8296 if eval \${$as_ac_Header+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8301 #include <sys/types.h>
8302 #include <$ac_hdr>
8303
8304 int
8305 main ()
8306 {
8307 if ((DIR *) 0)
8308 return 0;
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_compile "$LINENO"; then :
8314 eval "$as_ac_Header=yes"
8315 else
8316 eval "$as_ac_Header=no"
8317 fi
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 eval ac_res=\$$as_ac_Header
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8322 $as_echo "$ac_res" >&6; }
8323 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8324 cat >>confdefs.h <<_ACEOF
8325 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8326 _ACEOF
8327
8328 ac_header_dirent=$ac_hdr; break
8329 fi
8330
8331 done
8332 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8333 if test $ac_header_dirent = dirent.h; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8335 $as_echo_n "checking for library containing opendir... " >&6; }
8336 if ${ac_cv_search_opendir+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 ac_func_search_save_LIBS=$LIBS
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8342
8343 /* Override any GCC internal prototype to avoid an error.
8344 Use char because int might match the return type of a GCC
8345 builtin and then its argument prototype would still apply. */
8346 #ifdef __cplusplus
8347 extern "C"
8348 #endif
8349 char opendir ();
8350 int
8351 main ()
8352 {
8353 return opendir ();
8354 ;
8355 return 0;
8356 }
8357 _ACEOF
8358 for ac_lib in '' dir; do
8359 if test -z "$ac_lib"; then
8360 ac_res="none required"
8361 else
8362 ac_res=-l$ac_lib
8363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8364 fi
8365 if ac_fn_c_try_link "$LINENO"; then :
8366 ac_cv_search_opendir=$ac_res
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext \
8369 conftest$ac_exeext
8370 if ${ac_cv_search_opendir+:} false; then :
8371 break
8372 fi
8373 done
8374 if ${ac_cv_search_opendir+:} false; then :
8375
8376 else
8377 ac_cv_search_opendir=no
8378 fi
8379 rm conftest.$ac_ext
8380 LIBS=$ac_func_search_save_LIBS
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8383 $as_echo "$ac_cv_search_opendir" >&6; }
8384 ac_res=$ac_cv_search_opendir
8385 if test "$ac_res" != no; then :
8386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8387
8388 fi
8389
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8392 $as_echo_n "checking for library containing opendir... " >&6; }
8393 if ${ac_cv_search_opendir+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 ac_func_search_save_LIBS=$LIBS
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399
8400 /* Override any GCC internal prototype to avoid an error.
8401 Use char because int might match the return type of a GCC
8402 builtin and then its argument prototype would still apply. */
8403 #ifdef __cplusplus
8404 extern "C"
8405 #endif
8406 char opendir ();
8407 int
8408 main ()
8409 {
8410 return opendir ();
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 for ac_lib in '' x; do
8416 if test -z "$ac_lib"; then
8417 ac_res="none required"
8418 else
8419 ac_res=-l$ac_lib
8420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8421 fi
8422 if ac_fn_c_try_link "$LINENO"; then :
8423 ac_cv_search_opendir=$ac_res
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext
8427 if ${ac_cv_search_opendir+:} false; then :
8428 break
8429 fi
8430 done
8431 if ${ac_cv_search_opendir+:} false; then :
8432
8433 else
8434 ac_cv_search_opendir=no
8435 fi
8436 rm conftest.$ac_ext
8437 LIBS=$ac_func_search_save_LIBS
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8440 $as_echo "$ac_cv_search_opendir" >&6; }
8441 ac_res=$ac_cv_search_opendir
8442 if test "$ac_res" != no; then :
8443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8444
8445 fi
8446
8447 fi
8448
8449
8450
8451
8452 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8453 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8454
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8457 _ACEOF
8458
8459
8460 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8461
8462 fi
8463
8464
8465 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8466 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8470 _ACEOF
8471
8472
8473 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8474
8475 else
8476 case " $LIBOBJS " in
8477 *" fileblocks.$ac_objext "* ) ;;
8478 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8479 ;;
8480 esac
8481
8482 fi
8483
8484
8485 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8486 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8487
8488 cat >>confdefs.h <<_ACEOF
8489 #define HAVE_STRUCT_STAT_ST_RDEV 1
8490 _ACEOF
8491
8492
8493 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8494
8495 fi
8496
8497
8498 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8499 #include <$ac_cv_struct_tm>
8500
8501 "
8502 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8503
8504 cat >>confdefs.h <<_ACEOF
8505 #define HAVE_STRUCT_TM_TM_ZONE 1
8506 _ACEOF
8507
8508
8509 fi
8510
8511 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8512
8513 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8514
8515 else
8516 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8517 "
8518 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8519 ac_have_decl=1
8520 else
8521 ac_have_decl=0
8522 fi
8523
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_DECL_TZNAME $ac_have_decl
8526 _ACEOF
8527
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8529 $as_echo_n "checking for tzname... " >&6; }
8530 if ${ac_cv_var_tzname+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 #include <time.h>
8536 #if !HAVE_DECL_TZNAME
8537 extern char *tzname[];
8538 #endif
8539
8540 int
8541 main ()
8542 {
8543 return tzname[0][0];
8544 ;
8545 return 0;
8546 }
8547 _ACEOF
8548 if ac_fn_c_try_link "$LINENO"; then :
8549 ac_cv_var_tzname=yes
8550 else
8551 ac_cv_var_tzname=no
8552 fi
8553 rm -f core conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8557 $as_echo "$ac_cv_var_tzname" >&6; }
8558 if test $ac_cv_var_tzname = yes; then
8559
8560 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8561
8562 fi
8563 fi
8564
8565
8566 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8567 #include <sys/types.h>
8568 #endif
8569 #ifdef HAVE_SYS_STAT_H
8570 #include <sys/stat.h>
8571 #endif
8572 "
8573 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8574
8575 cat >>confdefs.h <<_ACEOF
8576 #define HAVE_STRUCT_STAT_ST_DEV 1
8577 _ACEOF
8578
8579
8580 fi
8581 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8582 #include <sys/types.h>
8583 #endif
8584 #ifdef HAVE_SYS_STAT_H
8585 #include <sys/stat.h>
8586 #endif
8587 "
8588 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8589
8590 cat >>confdefs.h <<_ACEOF
8591 #define HAVE_STRUCT_STAT_ST_INO 1
8592 _ACEOF
8593
8594
8595 fi
8596 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8597 #include <sys/types.h>
8598 #endif
8599 #ifdef HAVE_SYS_STAT_H
8600 #include <sys/stat.h>
8601 #endif
8602 "
8603 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8604
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_STRUCT_STAT_ST_MODE 1
8607 _ACEOF
8608
8609
8610 fi
8611 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8612 #include <sys/types.h>
8613 #endif
8614 #ifdef HAVE_SYS_STAT_H
8615 #include <sys/stat.h>
8616 #endif
8617 "
8618 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8619
8620 cat >>confdefs.h <<_ACEOF
8621 #define HAVE_STRUCT_STAT_ST_NLINK 1
8622 _ACEOF
8623
8624
8625 fi
8626 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8627 #include <sys/types.h>
8628 #endif
8629 #ifdef HAVE_SYS_STAT_H
8630 #include <sys/stat.h>
8631 #endif
8632 "
8633 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8634
8635 cat >>confdefs.h <<_ACEOF
8636 #define HAVE_STRUCT_STAT_ST_UID 1
8637 _ACEOF
8638
8639
8640 fi
8641 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8642 #include <sys/types.h>
8643 #endif
8644 #ifdef HAVE_SYS_STAT_H
8645 #include <sys/stat.h>
8646 #endif
8647 "
8648 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8649
8650 cat >>confdefs.h <<_ACEOF
8651 #define HAVE_STRUCT_STAT_ST_GID 1
8652 _ACEOF
8653
8654
8655 fi
8656 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8657 #include <sys/types.h>
8658 #endif
8659 #ifdef HAVE_SYS_STAT_H
8660 #include <sys/stat.h>
8661 #endif
8662 "
8663 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8664
8665 cat >>confdefs.h <<_ACEOF
8666 #define HAVE_STRUCT_STAT_ST_RDEV 1
8667 _ACEOF
8668
8669
8670 fi
8671 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8672 #include <sys/types.h>
8673 #endif
8674 #ifdef HAVE_SYS_STAT_H
8675 #include <sys/stat.h>
8676 #endif
8677 "
8678 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define HAVE_STRUCT_STAT_ST_SIZE 1
8682 _ACEOF
8683
8684
8685 fi
8686 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8687 #include <sys/types.h>
8688 #endif
8689 #ifdef HAVE_SYS_STAT_H
8690 #include <sys/stat.h>
8691 #endif
8692 "
8693 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8694
8695 cat >>confdefs.h <<_ACEOF
8696 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8697 _ACEOF
8698
8699
8700 fi
8701 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8702 #include <sys/types.h>
8703 #endif
8704 #ifdef HAVE_SYS_STAT_H
8705 #include <sys/stat.h>
8706 #endif
8707 "
8708 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8712 _ACEOF
8713
8714
8715 fi
8716 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8717 #include <sys/types.h>
8718 #endif
8719 #ifdef HAVE_SYS_STAT_H
8720 #include <sys/stat.h>
8721 #endif
8722 "
8723 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8724
8725 cat >>confdefs.h <<_ACEOF
8726 #define HAVE_STRUCT_STAT_ST_ATIME 1
8727 _ACEOF
8728
8729
8730 fi
8731 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8732 #include <sys/types.h>
8733 #endif
8734 #ifdef HAVE_SYS_STAT_H
8735 #include <sys/stat.h>
8736 #endif
8737 "
8738 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8739
8740 cat >>confdefs.h <<_ACEOF
8741 #define HAVE_STRUCT_STAT_ST_MTIME 1
8742 _ACEOF
8743
8744
8745 fi
8746 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8747 #include <sys/types.h>
8748 #endif
8749 #ifdef HAVE_SYS_STAT_H
8750 #include <sys/stat.h>
8751 #endif
8752 "
8753 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8754
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_STRUCT_STAT_ST_CTIME 1
8757 _ACEOF
8758
8759
8760 fi
8761
8762
8763 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8764 if test "x$ac_cv_type___int128" = xyes; then :
8765
8766 cat >>confdefs.h <<_ACEOF
8767 #define HAVE___INT128 1
8768 _ACEOF
8769
8770
8771 fi
8772
8773 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8774 #include <sys/socket.h>
8775
8776 "
8777 if test "x$ac_cv_type_socklen_t" = xyes; then :
8778
8779 cat >>confdefs.h <<_ACEOF
8780 #define HAVE_SOCKLEN_T 1
8781 _ACEOF
8782
8783
8784 fi
8785
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8788 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8789 if ${ac_cv_type_getgroups+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 if test "$cross_compiling" = yes; then :
8793 ac_cv_type_getgroups=cross
8794 else
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797 /* Thanks to Mike Rendell for this test. */
8798 $ac_includes_default
8799 #define NGID 256
8800 #undef MAX
8801 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8802
8803 int
8804 main ()
8805 {
8806 gid_t gidset[NGID];
8807 int i, n;
8808 union { gid_t gval; long int lval; } val;
8809
8810 val.lval = -1;
8811 for (i = 0; i < NGID; i++)
8812 gidset[i] = val.gval;
8813 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8814 gidset);
8815 /* Exit non-zero if getgroups seems to require an array of ints. This
8816 happens when gid_t is short int but getgroups modifies an array
8817 of ints. */
8818 return n > 0 && gidset[n] != val.gval;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_run "$LINENO"; then :
8822 ac_cv_type_getgroups=gid_t
8823 else
8824 ac_cv_type_getgroups=int
8825 fi
8826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8827 conftest.$ac_objext conftest.beam conftest.$ac_ext
8828 fi
8829
8830 if test $ac_cv_type_getgroups = cross; then
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <unistd.h>
8834
8835 _ACEOF
8836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8837 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8838 ac_cv_type_getgroups=gid_t
8839 else
8840 ac_cv_type_getgroups=int
8841 fi
8842 rm -f conftest*
8843
8844 fi
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8847 $as_echo "$ac_cv_type_getgroups" >&6; }
8848
8849 cat >>confdefs.h <<_ACEOF
8850 #define GETGROUPS_T $ac_cv_type_getgroups
8851 _ACEOF
8852
8853
8854 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8855 if test "x$ac_cv_type_mode_t" = xyes; then :
8856
8857 else
8858
8859 cat >>confdefs.h <<_ACEOF
8860 #define mode_t int
8861 _ACEOF
8862
8863 fi
8864
8865 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8866 if test "x$ac_cv_type_off_t" = xyes; then :
8867
8868 else
8869
8870 cat >>confdefs.h <<_ACEOF
8871 #define off_t long int
8872 _ACEOF
8873
8874 fi
8875
8876 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8877 if test "x$ac_cv_type_pid_t" = xyes; then :
8878
8879 else
8880
8881 cat >>confdefs.h <<_ACEOF
8882 #define pid_t int
8883 _ACEOF
8884
8885 fi
8886
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8888 $as_echo_n "checking return type of signal handlers... " >&6; }
8889 if ${ac_cv_type_signal+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 #include <sys/types.h>
8895 #include <signal.h>
8896
8897 int
8898 main ()
8899 {
8900 return *(signal (0, 0)) (0) == 1;
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 if ac_fn_c_try_compile "$LINENO"; then :
8906 ac_cv_type_signal=int
8907 else
8908 ac_cv_type_signal=void
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8913 $as_echo "$ac_cv_type_signal" >&6; }
8914
8915 cat >>confdefs.h <<_ACEOF
8916 #define RETSIGTYPE $ac_cv_type_signal
8917 _ACEOF
8918
8919
8920 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8921 if test "x$ac_cv_type_size_t" = xyes; then :
8922
8923 else
8924
8925 cat >>confdefs.h <<_ACEOF
8926 #define size_t unsigned int
8927 _ACEOF
8928
8929 fi
8930
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8932 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8933 if ${ac_cv_type_uid_t+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 #include <sys/types.h>
8939
8940 _ACEOF
8941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8942 $EGREP "uid_t" >/dev/null 2>&1; then :
8943 ac_cv_type_uid_t=yes
8944 else
8945 ac_cv_type_uid_t=no
8946 fi
8947 rm -f conftest*
8948
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8951 $as_echo "$ac_cv_type_uid_t" >&6; }
8952 if test $ac_cv_type_uid_t = no; then
8953
8954 $as_echo "#define uid_t int" >>confdefs.h
8955
8956
8957 $as_echo "#define gid_t int" >>confdefs.h
8958
8959 fi
8960
8961
8962
8963
8964
8965
8966 # Set options
8967
8968
8969
8970 enable_dlopen=no
8971
8972
8973 enable_win32_dll=no
8974
8975
8976 # Check whether --enable-shared was given.
8977 if test "${enable_shared+set}" = set; then :
8978 enableval=$enable_shared; p=${PACKAGE-default}
8979 case $enableval in
8980 yes) enable_shared=yes ;;
8981 no) enable_shared=no ;;
8982 *)
8983 enable_shared=no
8984 # Look at the argument we got. We use all the common list separators.
8985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8986 for pkg in $enableval; do
8987 IFS="$lt_save_ifs"
8988 if test "X$pkg" = "X$p"; then
8989 enable_shared=yes
8990 fi
8991 done
8992 IFS="$lt_save_ifs"
8993 ;;
8994 esac
8995 else
8996 enable_shared=yes
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007 # Check whether --enable-static was given.
9008 if test "${enable_static+set}" = set; then :
9009 enableval=$enable_static; p=${PACKAGE-default}
9010 case $enableval in
9011 yes) enable_static=yes ;;
9012 no) enable_static=no ;;
9013 *)
9014 enable_static=no
9015 # Look at the argument we got. We use all the common list separators.
9016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9017 for pkg in $enableval; do
9018 IFS="$lt_save_ifs"
9019 if test "X$pkg" = "X$p"; then
9020 enable_static=yes
9021 fi
9022 done
9023 IFS="$lt_save_ifs"
9024 ;;
9025 esac
9026 else
9027 enable_static=yes
9028 fi
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039 # Check whether --with-pic was given.
9040 if test "${with_pic+set}" = set; then :
9041 withval=$with_pic; pic_mode="$withval"
9042 else
9043 pic_mode=default
9044 fi
9045
9046
9047 test -z "$pic_mode" && pic_mode=default
9048
9049
9050
9051
9052
9053
9054
9055 # Check whether --enable-fast-install was given.
9056 if test "${enable_fast_install+set}" = set; then :
9057 enableval=$enable_fast_install; p=${PACKAGE-default}
9058 case $enableval in
9059 yes) enable_fast_install=yes ;;
9060 no) enable_fast_install=no ;;
9061 *)
9062 enable_fast_install=no
9063 # Look at the argument we got. We use all the common list separators.
9064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9065 for pkg in $enableval; do
9066 IFS="$lt_save_ifs"
9067 if test "X$pkg" = "X$p"; then
9068 enable_fast_install=yes
9069 fi
9070 done
9071 IFS="$lt_save_ifs"
9072 ;;
9073 esac
9074 else
9075 enable_fast_install=yes
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088 # This can be used to rebuild libtool when needed
9089 LIBTOOL_DEPS="$ltmain"
9090
9091 # Always use our own libtool.
9092 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119 test -z "$LN_S" && LN_S="ln -s"
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134 if test -n "${ZSH_VERSION+set}" ; then
9135 setopt NO_GLOB_SUBST
9136 fi
9137
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9139 $as_echo_n "checking for objdir... " >&6; }
9140 if ${lt_cv_objdir+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 rm -f .libs 2>/dev/null
9144 mkdir .libs 2>/dev/null
9145 if test -d .libs; then
9146 lt_cv_objdir=.libs
9147 else
9148 # MS-DOS does not allow filenames that begin with a dot.
9149 lt_cv_objdir=_libs
9150 fi
9151 rmdir .libs 2>/dev/null
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9154 $as_echo "$lt_cv_objdir" >&6; }
9155 objdir=$lt_cv_objdir
9156
9157
9158
9159
9160
9161 cat >>confdefs.h <<_ACEOF
9162 #define LT_OBJDIR "$lt_cv_objdir/"
9163 _ACEOF
9164
9165
9166
9167
9168 case $host_os in
9169 aix3*)
9170 # AIX sometimes has problems with the GCC collect2 program. For some
9171 # reason, if we set the COLLECT_NAMES environment variable, the problems
9172 # vanish in a puff of smoke.
9173 if test "X${COLLECT_NAMES+set}" != Xset; then
9174 COLLECT_NAMES=
9175 export COLLECT_NAMES
9176 fi
9177 ;;
9178 esac
9179
9180 # Global variables:
9181 ofile=libtool
9182 can_build_shared=yes
9183
9184 # All known linkers require a `.a' archive for static linking (except MSVC,
9185 # which needs '.lib').
9186 libext=a
9187
9188 with_gnu_ld="$lt_cv_prog_gnu_ld"
9189
9190 old_CC="$CC"
9191 old_CFLAGS="$CFLAGS"
9192
9193 # Set sane defaults for various variables
9194 test -z "$CC" && CC=cc
9195 test -z "$LTCC" && LTCC=$CC
9196 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9197 test -z "$LD" && LD=ld
9198 test -z "$ac_objext" && ac_objext=o
9199
9200 for cc_temp in $compiler""; do
9201 case $cc_temp in
9202 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9203 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9204 \-*) ;;
9205 *) break;;
9206 esac
9207 done
9208 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9209
9210
9211 # Only perform the check for file, if the check method requires it
9212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9213 case $deplibs_check_method in
9214 file_magic*)
9215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9217 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9218 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 case $MAGIC_CMD in
9222 [\\/*] | ?:[\\/]*)
9223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9224 ;;
9225 *)
9226 lt_save_MAGIC_CMD="$MAGIC_CMD"
9227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9229 for ac_dir in $ac_dummy; do
9230 IFS="$lt_save_ifs"
9231 test -z "$ac_dir" && ac_dir=.
9232 if test -f $ac_dir/${ac_tool_prefix}file; then
9233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9234 if test -n "$file_magic_test_file"; then
9235 case $deplibs_check_method in
9236 "file_magic "*)
9237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9240 $EGREP "$file_magic_regex" > /dev/null; then
9241 :
9242 else
9243 cat <<_LT_EOF 1>&2
9244
9245 *** Warning: the command libtool uses to detect shared libraries,
9246 *** $file_magic_cmd, produces output that libtool cannot recognize.
9247 *** The result is that libtool may fail to recognize shared libraries
9248 *** as such. This will affect the creation of libtool libraries that
9249 *** depend on shared libraries, but programs linked with such libtool
9250 *** libraries will work regardless of this problem. Nevertheless, you
9251 *** may want to report the problem to your system manager and/or to
9252 *** bug-libtool@gnu.org
9253
9254 _LT_EOF
9255 fi ;;
9256 esac
9257 fi
9258 break
9259 fi
9260 done
9261 IFS="$lt_save_ifs"
9262 MAGIC_CMD="$lt_save_MAGIC_CMD"
9263 ;;
9264 esac
9265 fi
9266
9267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268 if test -n "$MAGIC_CMD"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9270 $as_echo "$MAGIC_CMD" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9274 fi
9275
9276
9277
9278
9279
9280 if test -z "$lt_cv_path_MAGIC_CMD"; then
9281 if test -n "$ac_tool_prefix"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9283 $as_echo_n "checking for file... " >&6; }
9284 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 case $MAGIC_CMD in
9288 [\\/*] | ?:[\\/]*)
9289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9290 ;;
9291 *)
9292 lt_save_MAGIC_CMD="$MAGIC_CMD"
9293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9295 for ac_dir in $ac_dummy; do
9296 IFS="$lt_save_ifs"
9297 test -z "$ac_dir" && ac_dir=.
9298 if test -f $ac_dir/file; then
9299 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9300 if test -n "$file_magic_test_file"; then
9301 case $deplibs_check_method in
9302 "file_magic "*)
9303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9306 $EGREP "$file_magic_regex" > /dev/null; then
9307 :
9308 else
9309 cat <<_LT_EOF 1>&2
9310
9311 *** Warning: the command libtool uses to detect shared libraries,
9312 *** $file_magic_cmd, produces output that libtool cannot recognize.
9313 *** The result is that libtool may fail to recognize shared libraries
9314 *** as such. This will affect the creation of libtool libraries that
9315 *** depend on shared libraries, but programs linked with such libtool
9316 *** libraries will work regardless of this problem. Nevertheless, you
9317 *** may want to report the problem to your system manager and/or to
9318 *** bug-libtool@gnu.org
9319
9320 _LT_EOF
9321 fi ;;
9322 esac
9323 fi
9324 break
9325 fi
9326 done
9327 IFS="$lt_save_ifs"
9328 MAGIC_CMD="$lt_save_MAGIC_CMD"
9329 ;;
9330 esac
9331 fi
9332
9333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334 if test -n "$MAGIC_CMD"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9336 $as_echo "$MAGIC_CMD" >&6; }
9337 else
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341
9342
9343 else
9344 MAGIC_CMD=:
9345 fi
9346 fi
9347
9348 fi
9349 ;;
9350 esac
9351
9352 # Use C for the default configuration in the libtool script
9353
9354 lt_save_CC="$CC"
9355 ac_ext=c
9356 ac_cpp='$CPP $CPPFLAGS'
9357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9360
9361
9362 # Source file extension for C test sources.
9363 ac_ext=c
9364
9365 # Object file extension for compiled C test sources.
9366 objext=o
9367 objext=$objext
9368
9369 # Code to be used in simple compile tests
9370 lt_simple_compile_test_code="int some_variable = 0;"
9371
9372 # Code to be used in simple link tests
9373 lt_simple_link_test_code='int main(){return(0);}'
9374
9375
9376
9377
9378
9379
9380
9381 # If no C compiler was specified, use CC.
9382 LTCC=${LTCC-"$CC"}
9383
9384 # If no C compiler flags were specified, use CFLAGS.
9385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386
9387 # Allow CC to be a program name with arguments.
9388 compiler=$CC
9389
9390 # Save the default compiler, since it gets overwritten when the other
9391 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9392 compiler_DEFAULT=$CC
9393
9394 # save warnings/boilerplate of simple test code
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9397 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_compiler_boilerplate=`cat conftest.err`
9399 $RM conftest*
9400
9401 ac_outfile=conftest.$ac_objext
9402 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9403 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9404 _lt_linker_boilerplate=`cat conftest.err`
9405 $RM -r conftest*
9406
9407
9408 ## CAVEAT EMPTOR:
9409 ## There is no encapsulation within the following macros, do not change
9410 ## the running order or otherwise move them around unless you know exactly
9411 ## what you are doing...
9412 if test -n "$compiler"; then
9413
9414 lt_prog_compiler_no_builtin_flag=
9415
9416 if test "$GCC" = yes; then
9417 case $cc_basename in
9418 nvcc*)
9419 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9420 *)
9421 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9422 esac
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9425 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9426 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 lt_cv_prog_compiler_rtti_exceptions=no
9430 ac_outfile=conftest.$ac_objext
9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432 lt_compiler_flag="-fno-rtti -fno-exceptions"
9433 # Insert the option either (1) after the last *FLAGS variable, or
9434 # (2) before a word containing "conftest.", or (3) at the end.
9435 # Note that $ac_compile itself does not contain backslashes and begins
9436 # with a dollar sign (not a hyphen), so the echo should work correctly.
9437 # The option is referenced via a variable to avoid confusing sed.
9438 lt_compile=`echo "$ac_compile" | $SED \
9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441 -e 's:$: $lt_compiler_flag:'`
9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443 (eval "$lt_compile" 2>conftest.err)
9444 ac_status=$?
9445 cat conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 if (exit $ac_status) && test -s "$ac_outfile"; then
9448 # The compiler can only warn and ignore the option if not recognized
9449 # So say no if there are warnings other than the usual output.
9450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9453 lt_cv_prog_compiler_rtti_exceptions=yes
9454 fi
9455 fi
9456 $RM conftest*
9457
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9460 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9461
9462 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9463 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9464 else
9465 :
9466 fi
9467
9468 fi
9469
9470
9471
9472
9473
9474
9475 lt_prog_compiler_wl=
9476 lt_prog_compiler_pic=
9477 lt_prog_compiler_static=
9478
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9480 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9481
9482 if test "$GCC" = yes; then
9483 lt_prog_compiler_wl='-Wl,'
9484 lt_prog_compiler_static='-static'
9485
9486 case $host_os in
9487 aix*)
9488 # All AIX code is PIC.
9489 if test "$host_cpu" = ia64; then
9490 # AIX 5 now supports IA64 processor
9491 lt_prog_compiler_static='-Bstatic'
9492 fi
9493 lt_prog_compiler_pic='-fPIC'
9494 ;;
9495
9496 amigaos*)
9497 case $host_cpu in
9498 powerpc)
9499 # see comment about AmigaOS4 .so support
9500 lt_prog_compiler_pic='-fPIC'
9501 ;;
9502 m68k)
9503 # FIXME: we need at least 68020 code to build shared libraries, but
9504 # adding the `-m68020' flag to GCC prevents building anything better,
9505 # like `-m68040'.
9506 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9507 ;;
9508 esac
9509 ;;
9510
9511 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9512 # PIC is the default for these OSes.
9513 ;;
9514
9515 mingw* | cygwin* | pw32* | os2* | cegcc*)
9516 # This hack is so that the source file can tell whether it is being
9517 # built for inclusion in a dll (and should export symbols for example).
9518 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9519 # (--disable-auto-import) libraries
9520 lt_prog_compiler_pic='-DDLL_EXPORT'
9521 ;;
9522
9523 darwin* | rhapsody*)
9524 # PIC is the default on this platform
9525 # Common symbols not allowed in MH_DYLIB files
9526 lt_prog_compiler_pic='-fno-common'
9527 ;;
9528
9529 haiku*)
9530 # PIC is the default for Haiku.
9531 # The "-static" flag exists, but is broken.
9532 lt_prog_compiler_static=
9533 ;;
9534
9535 hpux*)
9536 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9537 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9538 # sets the default TLS model and affects inlining.
9539 case $host_cpu in
9540 hppa*64*)
9541 # +Z the default
9542 ;;
9543 *)
9544 lt_prog_compiler_pic='-fPIC'
9545 ;;
9546 esac
9547 ;;
9548
9549 interix[3-9]*)
9550 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9551 # Instead, we relocate shared libraries at runtime.
9552 ;;
9553
9554 msdosdjgpp*)
9555 # Just because we use GCC doesn't mean we suddenly get shared libraries
9556 # on systems that don't support them.
9557 lt_prog_compiler_can_build_shared=no
9558 enable_shared=no
9559 ;;
9560
9561 *nto* | *qnx*)
9562 # QNX uses GNU C++, but need to define -shared option too, otherwise
9563 # it will coredump.
9564 lt_prog_compiler_pic='-fPIC -shared'
9565 ;;
9566
9567 sysv4*MP*)
9568 if test -d /usr/nec; then
9569 lt_prog_compiler_pic=-Kconform_pic
9570 fi
9571 ;;
9572
9573 *)
9574 lt_prog_compiler_pic='-fPIC'
9575 ;;
9576 esac
9577
9578 case $cc_basename in
9579 nvcc*) # Cuda Compiler Driver 2.2
9580 lt_prog_compiler_wl='-Xlinker '
9581 lt_prog_compiler_pic='-Xcompiler -fPIC'
9582 ;;
9583 esac
9584 else
9585 # PORTME Check for flag to pass linker flags through the system compiler.
9586 case $host_os in
9587 aix*)
9588 lt_prog_compiler_wl='-Wl,'
9589 if test "$host_cpu" = ia64; then
9590 # AIX 5 now supports IA64 processor
9591 lt_prog_compiler_static='-Bstatic'
9592 else
9593 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9594 fi
9595 ;;
9596
9597 mingw* | cygwin* | pw32* | os2* | cegcc*)
9598 # This hack is so that the source file can tell whether it is being
9599 # built for inclusion in a dll (and should export symbols for example).
9600 lt_prog_compiler_pic='-DDLL_EXPORT'
9601 ;;
9602
9603 hpux9* | hpux10* | hpux11*)
9604 lt_prog_compiler_wl='-Wl,'
9605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9606 # not for PA HP-UX.
9607 case $host_cpu in
9608 hppa*64*|ia64*)
9609 # +Z the default
9610 ;;
9611 *)
9612 lt_prog_compiler_pic='+Z'
9613 ;;
9614 esac
9615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9616 lt_prog_compiler_static='${wl}-a ${wl}archive'
9617 ;;
9618
9619 irix5* | irix6* | nonstopux*)
9620 lt_prog_compiler_wl='-Wl,'
9621 # PIC (with -KPIC) is the default.
9622 lt_prog_compiler_static='-non_shared'
9623 ;;
9624
9625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9626 case $cc_basename in
9627 # old Intel for x86_64 which still supported -KPIC.
9628 ecc*)
9629 lt_prog_compiler_wl='-Wl,'
9630 lt_prog_compiler_pic='-KPIC'
9631 lt_prog_compiler_static='-static'
9632 ;;
9633 # icc used to be incompatible with GCC.
9634 # ICC 10 doesn't accept -KPIC any more.
9635 icc* | ifort*)
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-fPIC'
9638 lt_prog_compiler_static='-static'
9639 ;;
9640 # Lahey Fortran 8.1.
9641 lf95*)
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='--shared'
9644 lt_prog_compiler_static='--static'
9645 ;;
9646 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9647 # Portland Group compilers (*not* the Pentium gcc compiler,
9648 # which looks to be a dead project)
9649 lt_prog_compiler_wl='-Wl,'
9650 lt_prog_compiler_pic='-fpic'
9651 lt_prog_compiler_static='-Bstatic'
9652 ;;
9653 ccc*)
9654 lt_prog_compiler_wl='-Wl,'
9655 # All Alpha code is PIC.
9656 lt_prog_compiler_static='-non_shared'
9657 ;;
9658 xl* | bgxl* | bgf* | mpixl*)
9659 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9660 lt_prog_compiler_wl='-Wl,'
9661 lt_prog_compiler_pic='-qpic'
9662 lt_prog_compiler_static='-qstaticlink'
9663 ;;
9664 *)
9665 case `$CC -V 2>&1 | sed 5q` in
9666 *Sun\ F* | *Sun*Fortran*)
9667 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9668 lt_prog_compiler_pic='-KPIC'
9669 lt_prog_compiler_static='-Bstatic'
9670 lt_prog_compiler_wl=''
9671 ;;
9672 *Sun\ C*)
9673 # Sun C 5.9
9674 lt_prog_compiler_pic='-KPIC'
9675 lt_prog_compiler_static='-Bstatic'
9676 lt_prog_compiler_wl='-Wl,'
9677 ;;
9678 esac
9679 ;;
9680 esac
9681 ;;
9682
9683 newsos6)
9684 lt_prog_compiler_pic='-KPIC'
9685 lt_prog_compiler_static='-Bstatic'
9686 ;;
9687
9688 *nto* | *qnx*)
9689 # QNX uses GNU C++, but need to define -shared option too, otherwise
9690 # it will coredump.
9691 lt_prog_compiler_pic='-fPIC -shared'
9692 ;;
9693
9694 osf3* | osf4* | osf5*)
9695 lt_prog_compiler_wl='-Wl,'
9696 # All OSF/1 code is PIC.
9697 lt_prog_compiler_static='-non_shared'
9698 ;;
9699
9700 rdos*)
9701 lt_prog_compiler_static='-non_shared'
9702 ;;
9703
9704 solaris*)
9705 lt_prog_compiler_pic='-KPIC'
9706 lt_prog_compiler_static='-Bstatic'
9707 case $cc_basename in
9708 f77* | f90* | f95*)
9709 lt_prog_compiler_wl='-Qoption ld ';;
9710 *)
9711 lt_prog_compiler_wl='-Wl,';;
9712 esac
9713 ;;
9714
9715 sunos4*)
9716 lt_prog_compiler_wl='-Qoption ld '
9717 lt_prog_compiler_pic='-PIC'
9718 lt_prog_compiler_static='-Bstatic'
9719 ;;
9720
9721 sysv4 | sysv4.2uw2* | sysv4.3*)
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-KPIC'
9724 lt_prog_compiler_static='-Bstatic'
9725 ;;
9726
9727 sysv4*MP*)
9728 if test -d /usr/nec ;then
9729 lt_prog_compiler_pic='-Kconform_pic'
9730 lt_prog_compiler_static='-Bstatic'
9731 fi
9732 ;;
9733
9734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9735 lt_prog_compiler_wl='-Wl,'
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 ;;
9739
9740 unicos*)
9741 lt_prog_compiler_wl='-Wl,'
9742 lt_prog_compiler_can_build_shared=no
9743 ;;
9744
9745 uts4*)
9746 lt_prog_compiler_pic='-pic'
9747 lt_prog_compiler_static='-Bstatic'
9748 ;;
9749
9750 *)
9751 lt_prog_compiler_can_build_shared=no
9752 ;;
9753 esac
9754 fi
9755
9756 case $host_os in
9757 # For platforms which do not support PIC, -DPIC is meaningless:
9758 *djgpp*)
9759 lt_prog_compiler_pic=
9760 ;;
9761 *)
9762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9763 ;;
9764 esac
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9766 $as_echo "$lt_prog_compiler_pic" >&6; }
9767
9768
9769
9770
9771
9772
9773 #
9774 # Check to make sure the PIC flag actually works.
9775 #
9776 if test -n "$lt_prog_compiler_pic"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9778 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9779 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 lt_cv_prog_compiler_pic_works=no
9783 ac_outfile=conftest.$ac_objext
9784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9786 # Insert the option either (1) after the last *FLAGS variable, or
9787 # (2) before a word containing "conftest.", or (3) at the end.
9788 # Note that $ac_compile itself does not contain backslashes and begins
9789 # with a dollar sign (not a hyphen), so the echo should work correctly.
9790 # The option is referenced via a variable to avoid confusing sed.
9791 lt_compile=`echo "$ac_compile" | $SED \
9792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9794 -e 's:$: $lt_compiler_flag:'`
9795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9796 (eval "$lt_compile" 2>conftest.err)
9797 ac_status=$?
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 if (exit $ac_status) && test -s "$ac_outfile"; then
9801 # The compiler can only warn and ignore the option if not recognized
9802 # So say no if there are warnings other than the usual output.
9803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9806 lt_cv_prog_compiler_pic_works=yes
9807 fi
9808 fi
9809 $RM conftest*
9810
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9813 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9814
9815 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9816 case $lt_prog_compiler_pic in
9817 "" | " "*) ;;
9818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9819 esac
9820 else
9821 lt_prog_compiler_pic=
9822 lt_prog_compiler_can_build_shared=no
9823 fi
9824
9825 fi
9826
9827
9828
9829
9830
9831
9832 #
9833 # Check to make sure the static flag actually works.
9834 #
9835 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9837 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9838 if ${lt_cv_prog_compiler_static_works+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 lt_cv_prog_compiler_static_works=no
9842 save_LDFLAGS="$LDFLAGS"
9843 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9844 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9846 # The linker can only warn and ignore the option if not recognized
9847 # So say no if there are warnings
9848 if test -s conftest.err; then
9849 # Append any errors to the config.log.
9850 cat conftest.err 1>&5
9851 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9853 if diff conftest.exp conftest.er2 >/dev/null; then
9854 lt_cv_prog_compiler_static_works=yes
9855 fi
9856 else
9857 lt_cv_prog_compiler_static_works=yes
9858 fi
9859 fi
9860 $RM -r conftest*
9861 LDFLAGS="$save_LDFLAGS"
9862
9863 fi
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9865 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9866
9867 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9868 :
9869 else
9870 lt_prog_compiler_static=
9871 fi
9872
9873
9874
9875
9876
9877
9878
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9880 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9881 if ${lt_cv_prog_compiler_c_o+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 lt_cv_prog_compiler_c_o=no
9885 $RM -r conftest 2>/dev/null
9886 mkdir conftest
9887 cd conftest
9888 mkdir out
9889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9890
9891 lt_compiler_flag="-o out/conftest2.$ac_objext"
9892 # Insert the option either (1) after the last *FLAGS variable, or
9893 # (2) before a word containing "conftest.", or (3) at the end.
9894 # Note that $ac_compile itself does not contain backslashes and begins
9895 # with a dollar sign (not a hyphen), so the echo should work correctly.
9896 lt_compile=`echo "$ac_compile" | $SED \
9897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9899 -e 's:$: $lt_compiler_flag:'`
9900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9901 (eval "$lt_compile" 2>out/conftest.err)
9902 ac_status=$?
9903 cat out/conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9906 then
9907 # The compiler can only warn and ignore the option if not recognized
9908 # So say no if there are warnings
9909 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9910 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9911 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9912 lt_cv_prog_compiler_c_o=yes
9913 fi
9914 fi
9915 chmod u+w . 2>&5
9916 $RM conftest*
9917 # SGI C++ compiler will create directory out/ii_files/ for
9918 # template instantiation
9919 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9920 $RM out/* && rmdir out
9921 cd ..
9922 $RM -r conftest
9923 $RM conftest*
9924
9925 fi
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9927 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9928
9929
9930
9931
9932
9933
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9935 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9936 if ${lt_cv_prog_compiler_c_o+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 lt_cv_prog_compiler_c_o=no
9940 $RM -r conftest 2>/dev/null
9941 mkdir conftest
9942 cd conftest
9943 mkdir out
9944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9945
9946 lt_compiler_flag="-o out/conftest2.$ac_objext"
9947 # Insert the option either (1) after the last *FLAGS variable, or
9948 # (2) before a word containing "conftest.", or (3) at the end.
9949 # Note that $ac_compile itself does not contain backslashes and begins
9950 # with a dollar sign (not a hyphen), so the echo should work correctly.
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>out/conftest.err)
9957 ac_status=$?
9958 cat out/conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9961 then
9962 # The compiler can only warn and ignore the option if not recognized
9963 # So say no if there are warnings
9964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9967 lt_cv_prog_compiler_c_o=yes
9968 fi
9969 fi
9970 chmod u+w . 2>&5
9971 $RM conftest*
9972 # SGI C++ compiler will create directory out/ii_files/ for
9973 # template instantiation
9974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9975 $RM out/* && rmdir out
9976 cd ..
9977 $RM -r conftest
9978 $RM conftest*
9979
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9982 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9983
9984
9985
9986
9987 hard_links="nottested"
9988 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9989 # do not overwrite the value of need_locks provided by the user
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9991 $as_echo_n "checking if we can lock with hard links... " >&6; }
9992 hard_links=yes
9993 $RM conftest*
9994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9995 touch conftest.a
9996 ln conftest.a conftest.b 2>&5 || hard_links=no
9997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9999 $as_echo "$hard_links" >&6; }
10000 if test "$hard_links" = no; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10002 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10003 need_locks=warn
10004 fi
10005 else
10006 need_locks=no
10007 fi
10008
10009
10010
10011
10012
10013
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10015 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10016
10017 runpath_var=
10018 allow_undefined_flag=
10019 always_export_symbols=no
10020 archive_cmds=
10021 archive_expsym_cmds=
10022 compiler_needs_object=no
10023 enable_shared_with_static_runtimes=no
10024 export_dynamic_flag_spec=
10025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10026 hardcode_automatic=no
10027 hardcode_direct=no
10028 hardcode_direct_absolute=no
10029 hardcode_libdir_flag_spec=
10030 hardcode_libdir_flag_spec_ld=
10031 hardcode_libdir_separator=
10032 hardcode_minus_L=no
10033 hardcode_shlibpath_var=unsupported
10034 inherit_rpath=no
10035 link_all_deplibs=unknown
10036 module_cmds=
10037 module_expsym_cmds=
10038 old_archive_from_new_cmds=
10039 old_archive_from_expsyms_cmds=
10040 thread_safe_flag_spec=
10041 whole_archive_flag_spec=
10042 # include_expsyms should be a list of space-separated symbols to be *always*
10043 # included in the symbol list
10044 include_expsyms=
10045 # exclude_expsyms can be an extended regexp of symbols to exclude
10046 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10047 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10048 # as well as any symbol that contains `d'.
10049 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10050 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10051 # platforms (ab)use it in PIC code, but their linkers get confused if
10052 # the symbol is explicitly referenced. Since portable code cannot
10053 # rely on this symbol name, it's probably fine to never include it in
10054 # preloaded symbol tables.
10055 # Exclude shared library initialization/finalization symbols.
10056 extract_expsyms_cmds=
10057
10058 case $host_os in
10059 cygwin* | mingw* | pw32* | cegcc*)
10060 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10061 # When not using gcc, we currently assume that we are using
10062 # Microsoft Visual C++.
10063 if test "$GCC" != yes; then
10064 with_gnu_ld=no
10065 fi
10066 ;;
10067 interix*)
10068 # we just hope/assume this is gcc and not c89 (= MSVC++)
10069 with_gnu_ld=yes
10070 ;;
10071 openbsd*)
10072 with_gnu_ld=no
10073 ;;
10074 esac
10075
10076 ld_shlibs=yes
10077
10078 # On some targets, GNU ld is compatible enough with the native linker
10079 # that we're better off using the native interface for both.
10080 lt_use_gnu_ld_interface=no
10081 if test "$with_gnu_ld" = yes; then
10082 case $host_os in
10083 aix*)
10084 # The AIX port of GNU ld has always aspired to compatibility
10085 # with the native linker. However, as the warning in the GNU ld
10086 # block says, versions before 2.19.5* couldn't really create working
10087 # shared libraries, regardless of the interface used.
10088 case `$LD -v 2>&1` in
10089 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10090 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10091 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10092 *)
10093 lt_use_gnu_ld_interface=yes
10094 ;;
10095 esac
10096 ;;
10097 *)
10098 lt_use_gnu_ld_interface=yes
10099 ;;
10100 esac
10101 fi
10102
10103 if test "$lt_use_gnu_ld_interface" = yes; then
10104 # If archive_cmds runs LD, not CC, wlarc should be empty
10105 wlarc='${wl}'
10106
10107 # Set some defaults for GNU ld with shared library support. These
10108 # are reset later if shared libraries are not supported. Putting them
10109 # here allows them to be overridden if necessary.
10110 runpath_var=LD_RUN_PATH
10111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112 export_dynamic_flag_spec='${wl}--export-dynamic'
10113 # ancient GNU ld didn't support --whole-archive et. al.
10114 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10115 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10116 else
10117 whole_archive_flag_spec=
10118 fi
10119 supports_anon_versioning=no
10120 case `$LD -v 2>&1` in
10121 *GNU\ gold*) supports_anon_versioning=yes ;;
10122 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10123 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10124 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10125 *\ 2.11.*) ;; # other 2.11 versions
10126 *) supports_anon_versioning=yes ;;
10127 esac
10128
10129 # See if GNU ld supports shared libraries.
10130 case $host_os in
10131 aix[3-9]*)
10132 # On AIX/PPC, the GNU linker is very broken
10133 if test "$host_cpu" != ia64; then
10134 ld_shlibs=no
10135 cat <<_LT_EOF 1>&2
10136
10137 *** Warning: the GNU linker, at least up to release 2.19, is reported
10138 *** to be unable to reliably create shared libraries on AIX.
10139 *** Therefore, libtool is disabling shared libraries support. If you
10140 *** really care for shared libraries, you may want to install binutils
10141 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10142 *** You will then need to restart the configuration process.
10143
10144 _LT_EOF
10145 fi
10146 ;;
10147
10148 amigaos*)
10149 case $host_cpu in
10150 powerpc)
10151 # see comment about AmigaOS4 .so support
10152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153 archive_expsym_cmds=''
10154 ;;
10155 m68k)
10156 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)'
10157 hardcode_libdir_flag_spec='-L$libdir'
10158 hardcode_minus_L=yes
10159 ;;
10160 esac
10161 ;;
10162
10163 beos*)
10164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10165 allow_undefined_flag=unsupported
10166 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10167 # support --undefined. This deserves some investigation. FIXME
10168 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10169 else
10170 ld_shlibs=no
10171 fi
10172 ;;
10173
10174 cygwin* | mingw* | pw32* | cegcc*)
10175 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10176 # as there is no search path for DLLs.
10177 hardcode_libdir_flag_spec='-L$libdir'
10178 export_dynamic_flag_spec='${wl}--export-all-symbols'
10179 allow_undefined_flag=unsupported
10180 always_export_symbols=no
10181 enable_shared_with_static_runtimes=yes
10182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10183
10184 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10186 # If the export-symbols file already is a .def file (1st line
10187 # is EXPORTS), use it as is; otherwise, prepend...
10188 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10189 cp $export_symbols $output_objdir/$soname.def;
10190 else
10191 echo EXPORTS > $output_objdir/$soname.def;
10192 cat $export_symbols >> $output_objdir/$soname.def;
10193 fi~
10194 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10195 else
10196 ld_shlibs=no
10197 fi
10198 ;;
10199
10200 haiku*)
10201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202 link_all_deplibs=yes
10203 ;;
10204
10205 interix[3-9]*)
10206 hardcode_direct=no
10207 hardcode_shlibpath_var=no
10208 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10209 export_dynamic_flag_spec='${wl}-E'
10210 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10211 # Instead, shared libraries are loaded at an image base (0x10000000 by
10212 # default) and relocated if they conflict, which is a slow very memory
10213 # consuming and fragmenting process. To avoid this, we pick a random,
10214 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10215 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10216 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10217 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'
10218 ;;
10219
10220 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10221 tmp_diet=no
10222 if test "$host_os" = linux-dietlibc; then
10223 case $cc_basename in
10224 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10225 esac
10226 fi
10227 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10228 && test "$tmp_diet" = no
10229 then
10230 tmp_addflag=' $pic_flag'
10231 tmp_sharedflag='-shared'
10232 case $cc_basename,$host_cpu in
10233 pgcc*) # Portland Group C compiler
10234 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'
10235 tmp_addflag=' $pic_flag'
10236 ;;
10237 pgf77* | pgf90* | pgf95* | pgfortran*)
10238 # Portland Group f77 and f90 compilers
10239 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'
10240 tmp_addflag=' $pic_flag -Mnomain' ;;
10241 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10242 tmp_addflag=' -i_dynamic' ;;
10243 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10244 tmp_addflag=' -i_dynamic -nofor_main' ;;
10245 ifc* | ifort*) # Intel Fortran compiler
10246 tmp_addflag=' -nofor_main' ;;
10247 lf95*) # Lahey Fortran 8.1
10248 whole_archive_flag_spec=
10249 tmp_sharedflag='--shared' ;;
10250 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10251 tmp_sharedflag='-qmkshrobj'
10252 tmp_addflag= ;;
10253 nvcc*) # Cuda Compiler Driver 2.2
10254 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'
10255 compiler_needs_object=yes
10256 ;;
10257 esac
10258 case `$CC -V 2>&1 | sed 5q` in
10259 *Sun\ C*) # Sun C 5.9
10260 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'
10261 compiler_needs_object=yes
10262 tmp_sharedflag='-G' ;;
10263 *Sun\ F*) # Sun Fortran 8.3
10264 tmp_sharedflag='-G' ;;
10265 esac
10266 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10267
10268 if test "x$supports_anon_versioning" = xyes; then
10269 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10270 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10271 echo "local: *; };" >> $output_objdir/$libname.ver~
10272 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10273 fi
10274
10275 case $cc_basename in
10276 xlf* | bgf* | bgxlf* | mpixlf*)
10277 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10278 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10279 hardcode_libdir_flag_spec=
10280 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10281 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10282 if test "x$supports_anon_versioning" = xyes; then
10283 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10285 echo "local: *; };" >> $output_objdir/$libname.ver~
10286 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10287 fi
10288 ;;
10289 esac
10290 else
10291 ld_shlibs=no
10292 fi
10293 ;;
10294
10295 netbsd*)
10296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10297 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10298 wlarc=
10299 else
10300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10302 fi
10303 ;;
10304
10305 solaris*)
10306 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10307 ld_shlibs=no
10308 cat <<_LT_EOF 1>&2
10309
10310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10311 *** create shared libraries on Solaris systems. Therefore, libtool
10312 *** is disabling shared libraries support. We urge you to upgrade GNU
10313 *** binutils to release 2.9.1 or newer. Another option is to modify
10314 *** your PATH or compiler configuration so that the native linker is
10315 *** used, and then restart.
10316
10317 _LT_EOF
10318 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10321 else
10322 ld_shlibs=no
10323 fi
10324 ;;
10325
10326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10327 case `$LD -v 2>&1` in
10328 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10329 ld_shlibs=no
10330 cat <<_LT_EOF 1>&2
10331
10332 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10333 *** reliably create shared libraries on SCO systems. Therefore, libtool
10334 *** is disabling shared libraries support. We urge you to upgrade GNU
10335 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10336 *** your PATH or compiler configuration so that the native linker is
10337 *** used, and then restart.
10338
10339 _LT_EOF
10340 ;;
10341 *)
10342 # For security reasons, it is highly recommended that you always
10343 # use absolute paths for naming shared libraries, and exclude the
10344 # DT_RUNPATH tag from executables and libraries. But doing so
10345 # requires that you compile everything twice, which is a pain.
10346 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10350 else
10351 ld_shlibs=no
10352 fi
10353 ;;
10354 esac
10355 ;;
10356
10357 sunos4*)
10358 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10359 wlarc=
10360 hardcode_direct=yes
10361 hardcode_shlibpath_var=no
10362 ;;
10363
10364 *)
10365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10368 else
10369 ld_shlibs=no
10370 fi
10371 ;;
10372 esac
10373
10374 if test "$ld_shlibs" = no; then
10375 runpath_var=
10376 hardcode_libdir_flag_spec=
10377 export_dynamic_flag_spec=
10378 whole_archive_flag_spec=
10379 fi
10380 else
10381 # PORTME fill in a description of your system's linker (not GNU ld)
10382 case $host_os in
10383 aix3*)
10384 allow_undefined_flag=unsupported
10385 always_export_symbols=yes
10386 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'
10387 # Note: this linker hardcodes the directories in LIBPATH if there
10388 # are no directories specified by -L.
10389 hardcode_minus_L=yes
10390 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10391 # Neither direct hardcoding nor static linking is supported with a
10392 # broken collect2.
10393 hardcode_direct=unsupported
10394 fi
10395 ;;
10396
10397 aix[4-9]*)
10398 if test "$host_cpu" = ia64; then
10399 # On IA64, the linker does run time linking by default, so we don't
10400 # have to do anything special.
10401 aix_use_runtimelinking=no
10402 exp_sym_flag='-Bexport'
10403 no_entry_flag=""
10404 else
10405 # If we're using GNU nm, then we don't want the "-C" option.
10406 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10407 # Also, AIX nm treats weak defined symbols like other global
10408 # defined symbols, whereas GNU nm marks them as "W".
10409 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10410 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'
10411 else
10412 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'
10413 fi
10414 aix_use_runtimelinking=no
10415
10416 # Test if we are trying to use run time linking or normal
10417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10418 # need to do runtime linking.
10419 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10420 for ld_flag in $LDFLAGS; do
10421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10422 aix_use_runtimelinking=yes
10423 break
10424 fi
10425 done
10426 ;;
10427 esac
10428
10429 exp_sym_flag='-bexport'
10430 no_entry_flag='-bnoentry'
10431 fi
10432
10433 # When large executables or shared objects are built, AIX ld can
10434 # have problems creating the table of contents. If linking a library
10435 # or program results in "error TOC overflow" add -mminimal-toc to
10436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10438
10439 archive_cmds=''
10440 hardcode_direct=yes
10441 hardcode_direct_absolute=yes
10442 hardcode_libdir_separator=':'
10443 link_all_deplibs=yes
10444 file_list_spec='${wl}-f,'
10445
10446 if test "$GCC" = yes; then
10447 case $host_os in aix4.[012]|aix4.[012].*)
10448 # We only want to do this on AIX 4.2 and lower, the check
10449 # below for broken collect2 doesn't work under 4.3+
10450 collect2name=`${CC} -print-prog-name=collect2`
10451 if test -f "$collect2name" &&
10452 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10453 then
10454 # We have reworked collect2
10455 :
10456 else
10457 # We have old collect2
10458 hardcode_direct=unsupported
10459 # It fails to find uninstalled libraries when the uninstalled
10460 # path is not listed in the libpath. Setting hardcode_minus_L
10461 # to unsupported forces relinking
10462 hardcode_minus_L=yes
10463 hardcode_libdir_flag_spec='-L$libdir'
10464 hardcode_libdir_separator=
10465 fi
10466 ;;
10467 esac
10468 shared_flag='-shared'
10469 if test "$aix_use_runtimelinking" = yes; then
10470 shared_flag="$shared_flag "'${wl}-G'
10471 fi
10472 else
10473 # not using gcc
10474 if test "$host_cpu" = ia64; then
10475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10476 # chokes on -Wl,-G. The following line is correct:
10477 shared_flag='-G'
10478 else
10479 if test "$aix_use_runtimelinking" = yes; then
10480 shared_flag='${wl}-G'
10481 else
10482 shared_flag='${wl}-bM:SRE'
10483 fi
10484 fi
10485 fi
10486
10487 export_dynamic_flag_spec='${wl}-bexpall'
10488 # It seems that -bexpall does not export symbols beginning with
10489 # underscore (_), so it is better to generate a list of symbols to export.
10490 always_export_symbols=yes
10491 if test "$aix_use_runtimelinking" = yes; then
10492 # Warning - without using the other runtime loading flags (-brtl),
10493 # -berok will link without error, but may produce a broken library.
10494 allow_undefined_flag='-berok'
10495 # Determine the default libpath from the value encoded in an
10496 # empty executable.
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499
10500 int
10501 main ()
10502 {
10503
10504 ;
10505 return 0;
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509
10510 lt_aix_libpath_sed='
10511 /Import File Strings/,/^$/ {
10512 /^0/ {
10513 s/^0 *\(.*\)$/\1/
10514 p
10515 }
10516 }'
10517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10518 # Check for a 64-bit object if we didn't find anything.
10519 if test -z "$aix_libpath"; then
10520 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10521 fi
10522 fi
10523 rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10526
10527 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10528 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"
10529 else
10530 if test "$host_cpu" = ia64; then
10531 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10532 allow_undefined_flag="-z nodefs"
10533 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"
10534 else
10535 # Determine the default libpath from the value encoded in an
10536 # empty executable.
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10539
10540 int
10541 main ()
10542 {
10543
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549
10550 lt_aix_libpath_sed='
10551 /Import File Strings/,/^$/ {
10552 /^0/ {
10553 s/^0 *\(.*\)$/\1/
10554 p
10555 }
10556 }'
10557 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10558 # Check for a 64-bit object if we didn't find anything.
10559 if test -z "$aix_libpath"; then
10560 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10561 fi
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10566
10567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10568 # Warning - without using the other run time loading flags,
10569 # -berok will link without error, but may produce a broken library.
10570 no_undefined_flag=' ${wl}-bernotok'
10571 allow_undefined_flag=' ${wl}-berok'
10572 if test "$with_gnu_ld" = yes; then
10573 # We only use this code for GNU lds that support --whole-archive.
10574 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10575 else
10576 # Exported symbols can be pulled into shared objects from archives
10577 whole_archive_flag_spec='$convenience'
10578 fi
10579 archive_cmds_need_lc=yes
10580 # This is similar to how AIX traditionally builds its shared libraries.
10581 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'
10582 fi
10583 fi
10584 ;;
10585
10586 amigaos*)
10587 case $host_cpu in
10588 powerpc)
10589 # see comment about AmigaOS4 .so support
10590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10591 archive_expsym_cmds=''
10592 ;;
10593 m68k)
10594 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)'
10595 hardcode_libdir_flag_spec='-L$libdir'
10596 hardcode_minus_L=yes
10597 ;;
10598 esac
10599 ;;
10600
10601 bsdi[45]*)
10602 export_dynamic_flag_spec=-rdynamic
10603 ;;
10604
10605 cygwin* | mingw* | pw32* | cegcc*)
10606 # When not using gcc, we currently assume that we are using
10607 # Microsoft Visual C++.
10608 # hardcode_libdir_flag_spec is actually meaningless, as there is
10609 # no search path for DLLs.
10610 hardcode_libdir_flag_spec=' '
10611 allow_undefined_flag=unsupported
10612 # Tell ltmain to make .lib files, not .a files.
10613 libext=lib
10614 # Tell ltmain to make .dll files, not .so files.
10615 shrext_cmds=".dll"
10616 # FIXME: Setting linknames here is a bad hack.
10617 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10618 # The linker will automatically build a .lib file if we build a DLL.
10619 old_archive_from_new_cmds='true'
10620 # FIXME: Should let the user specify the lib program.
10621 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10622 fix_srcfile_path='`cygpath -w "$srcfile"`'
10623 enable_shared_with_static_runtimes=yes
10624 ;;
10625
10626 darwin* | rhapsody*)
10627
10628
10629 archive_cmds_need_lc=no
10630 hardcode_direct=no
10631 hardcode_automatic=yes
10632 hardcode_shlibpath_var=unsupported
10633 if test "$lt_cv_ld_force_load" = "yes"; then
10634 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\"`'
10635 else
10636 whole_archive_flag_spec=''
10637 fi
10638 link_all_deplibs=yes
10639 allow_undefined_flag="$_lt_dar_allow_undefined"
10640 case $cc_basename in
10641 ifort*) _lt_dar_can_shared=yes ;;
10642 *) _lt_dar_can_shared=$GCC ;;
10643 esac
10644 if test "$_lt_dar_can_shared" = "yes"; then
10645 output_verbose_link_cmd=func_echo_all
10646 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10647 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10648 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}"
10649 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}"
10650
10651 else
10652 ld_shlibs=no
10653 fi
10654
10655 ;;
10656
10657 dgux*)
10658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10659 hardcode_libdir_flag_spec='-L$libdir'
10660 hardcode_shlibpath_var=no
10661 ;;
10662
10663 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10664 # support. Future versions do this automatically, but an explicit c++rt0.o
10665 # does not break anything, and helps significantly (at the cost of a little
10666 # extra space).
10667 freebsd2.2*)
10668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10669 hardcode_libdir_flag_spec='-R$libdir'
10670 hardcode_direct=yes
10671 hardcode_shlibpath_var=no
10672 ;;
10673
10674 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10675 freebsd2.*)
10676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_direct=yes
10678 hardcode_minus_L=yes
10679 hardcode_shlibpath_var=no
10680 ;;
10681
10682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10683 freebsd* | dragonfly*)
10684 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10685 hardcode_libdir_flag_spec='-R$libdir'
10686 hardcode_direct=yes
10687 hardcode_shlibpath_var=no
10688 ;;
10689
10690 hpux9*)
10691 if test "$GCC" = yes; then
10692 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'
10693 else
10694 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'
10695 fi
10696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697 hardcode_libdir_separator=:
10698 hardcode_direct=yes
10699
10700 # hardcode_minus_L: Not really in the search PATH,
10701 # but as the default location of the library.
10702 hardcode_minus_L=yes
10703 export_dynamic_flag_spec='${wl}-E'
10704 ;;
10705
10706 hpux10*)
10707 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10708 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10709 else
10710 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10711 fi
10712 if test "$with_gnu_ld" = no; then
10713 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10714 hardcode_libdir_flag_spec_ld='+b $libdir'
10715 hardcode_libdir_separator=:
10716 hardcode_direct=yes
10717 hardcode_direct_absolute=yes
10718 export_dynamic_flag_spec='${wl}-E'
10719 # hardcode_minus_L: Not really in the search PATH,
10720 # but as the default location of the library.
10721 hardcode_minus_L=yes
10722 fi
10723 ;;
10724
10725 hpux11*)
10726 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10727 case $host_cpu in
10728 hppa*64*)
10729 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 ;;
10731 ia64*)
10732 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10733 ;;
10734 *)
10735 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10736 ;;
10737 esac
10738 else
10739 case $host_cpu in
10740 hppa*64*)
10741 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 ;;
10743 ia64*)
10744 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10745 ;;
10746 *)
10747
10748 # Older versions of the 11.00 compiler do not understand -b yet
10749 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10751 $as_echo_n "checking if $CC understands -b... " >&6; }
10752 if ${lt_cv_prog_compiler__b+:} false; then :
10753 $as_echo_n "(cached) " >&6
10754 else
10755 lt_cv_prog_compiler__b=no
10756 save_LDFLAGS="$LDFLAGS"
10757 LDFLAGS="$LDFLAGS -b"
10758 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10759 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10760 # The linker can only warn and ignore the option if not recognized
10761 # So say no if there are warnings
10762 if test -s conftest.err; then
10763 # Append any errors to the config.log.
10764 cat conftest.err 1>&5
10765 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10767 if diff conftest.exp conftest.er2 >/dev/null; then
10768 lt_cv_prog_compiler__b=yes
10769 fi
10770 else
10771 lt_cv_prog_compiler__b=yes
10772 fi
10773 fi
10774 $RM -r conftest*
10775 LDFLAGS="$save_LDFLAGS"
10776
10777 fi
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10779 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10780
10781 if test x"$lt_cv_prog_compiler__b" = xyes; then
10782 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10783 else
10784 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10785 fi
10786
10787 ;;
10788 esac
10789 fi
10790 if test "$with_gnu_ld" = no; then
10791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10792 hardcode_libdir_separator=:
10793
10794 case $host_cpu in
10795 hppa*64*|ia64*)
10796 hardcode_direct=no
10797 hardcode_shlibpath_var=no
10798 ;;
10799 *)
10800 hardcode_direct=yes
10801 hardcode_direct_absolute=yes
10802 export_dynamic_flag_spec='${wl}-E'
10803
10804 # hardcode_minus_L: Not really in the search PATH,
10805 # but as the default location of the library.
10806 hardcode_minus_L=yes
10807 ;;
10808 esac
10809 fi
10810 ;;
10811
10812 irix5* | irix6* | nonstopux*)
10813 if test "$GCC" = yes; then
10814 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'
10815 # Try to use the -exported_symbol ld option, if it does not
10816 # work, assume that -exports_file does not work either and
10817 # implicitly export all symbols.
10818 save_LDFLAGS="$LDFLAGS"
10819 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822 int foo(void) {}
10823 _ACEOF
10824 if ac_fn_c_try_link "$LINENO"; then :
10825 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'
10826
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LDFLAGS="$save_LDFLAGS"
10831 else
10832 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'
10833 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'
10834 fi
10835 archive_cmds_need_lc='no'
10836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10837 hardcode_libdir_separator=:
10838 inherit_rpath=yes
10839 link_all_deplibs=yes
10840 ;;
10841
10842 netbsd*)
10843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10845 else
10846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10847 fi
10848 hardcode_libdir_flag_spec='-R$libdir'
10849 hardcode_direct=yes
10850 hardcode_shlibpath_var=no
10851 ;;
10852
10853 newsos6)
10854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10855 hardcode_direct=yes
10856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10857 hardcode_libdir_separator=:
10858 hardcode_shlibpath_var=no
10859 ;;
10860
10861 *nto* | *qnx*)
10862 ;;
10863
10864 openbsd*)
10865 if test -f /usr/libexec/ld.so; then
10866 hardcode_direct=yes
10867 hardcode_shlibpath_var=no
10868 hardcode_direct_absolute=yes
10869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10873 export_dynamic_flag_spec='${wl}-E'
10874 else
10875 case $host_os in
10876 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_libdir_flag_spec='-R$libdir'
10879 ;;
10880 *)
10881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10883 ;;
10884 esac
10885 fi
10886 else
10887 ld_shlibs=no
10888 fi
10889 ;;
10890
10891 os2*)
10892 hardcode_libdir_flag_spec='-L$libdir'
10893 hardcode_minus_L=yes
10894 allow_undefined_flag=unsupported
10895 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'
10896 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10897 ;;
10898
10899 osf3*)
10900 if test "$GCC" = yes; then
10901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10902 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'
10903 else
10904 allow_undefined_flag=' -expect_unresolved \*'
10905 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'
10906 fi
10907 archive_cmds_need_lc='no'
10908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10909 hardcode_libdir_separator=:
10910 ;;
10911
10912 osf4* | osf5*) # as osf3* with the addition of -msym flag
10913 if test "$GCC" = yes; then
10914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10915 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'
10916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10917 else
10918 allow_undefined_flag=' -expect_unresolved \*'
10919 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'
10920 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~
10921 $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'
10922
10923 # Both c and cxx compiler support -rpath directly
10924 hardcode_libdir_flag_spec='-rpath $libdir'
10925 fi
10926 archive_cmds_need_lc='no'
10927 hardcode_libdir_separator=:
10928 ;;
10929
10930 solaris*)
10931 no_undefined_flag=' -z defs'
10932 if test "$GCC" = yes; then
10933 wlarc='${wl}'
10934 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10936 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10937 else
10938 case `$CC -V 2>&1` in
10939 *"Compilers 5.0"*)
10940 wlarc=''
10941 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10944 ;;
10945 *)
10946 wlarc='${wl}'
10947 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10949 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10950 ;;
10951 esac
10952 fi
10953 hardcode_libdir_flag_spec='-R$libdir'
10954 hardcode_shlibpath_var=no
10955 case $host_os in
10956 solaris2.[0-5] | solaris2.[0-5].*) ;;
10957 *)
10958 # The compiler driver will combine and reorder linker options,
10959 # but understands `-z linker_flag'. GCC discards it without `$wl',
10960 # but is careful enough not to reorder.
10961 # Supported since Solaris 2.6 (maybe 2.5.1?)
10962 if test "$GCC" = yes; then
10963 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10964 else
10965 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10966 fi
10967 ;;
10968 esac
10969 link_all_deplibs=yes
10970 ;;
10971
10972 sunos4*)
10973 if test "x$host_vendor" = xsequent; then
10974 # Use $CC to link under sequent, because it throws in some extra .o
10975 # files that make .init and .fini sections work.
10976 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10977 else
10978 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10979 fi
10980 hardcode_libdir_flag_spec='-L$libdir'
10981 hardcode_direct=yes
10982 hardcode_minus_L=yes
10983 hardcode_shlibpath_var=no
10984 ;;
10985
10986 sysv4)
10987 case $host_vendor in
10988 sni)
10989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990 hardcode_direct=yes # is this really true???
10991 ;;
10992 siemens)
10993 ## LD is ld it makes a PLAMLIB
10994 ## CC just makes a GrossModule.
10995 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10996 reload_cmds='$CC -r -o $output$reload_objs'
10997 hardcode_direct=no
10998 ;;
10999 motorola)
11000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11001 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11002 ;;
11003 esac
11004 runpath_var='LD_RUN_PATH'
11005 hardcode_shlibpath_var=no
11006 ;;
11007
11008 sysv4.3*)
11009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11010 hardcode_shlibpath_var=no
11011 export_dynamic_flag_spec='-Bexport'
11012 ;;
11013
11014 sysv4*MP*)
11015 if test -d /usr/nec; then
11016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11017 hardcode_shlibpath_var=no
11018 runpath_var=LD_RUN_PATH
11019 hardcode_runpath_var=yes
11020 ld_shlibs=yes
11021 fi
11022 ;;
11023
11024 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11025 no_undefined_flag='${wl}-z,text'
11026 archive_cmds_need_lc=no
11027 hardcode_shlibpath_var=no
11028 runpath_var='LD_RUN_PATH'
11029
11030 if test "$GCC" = yes; then
11031 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 else
11034 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 fi
11037 ;;
11038
11039 sysv5* | sco3.2v5* | sco5v6*)
11040 # Note: We can NOT use -z defs as we might desire, because we do not
11041 # link with -lc, and that would cause any symbols used from libc to
11042 # always be unresolved, which means just about no library would
11043 # ever link correctly. If we're not using GNU ld we use -z text
11044 # though, which does catch some bad symbols but isn't as heavy-handed
11045 # as -z defs.
11046 no_undefined_flag='${wl}-z,text'
11047 allow_undefined_flag='${wl}-z,nodefs'
11048 archive_cmds_need_lc=no
11049 hardcode_shlibpath_var=no
11050 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11051 hardcode_libdir_separator=':'
11052 link_all_deplibs=yes
11053 export_dynamic_flag_spec='${wl}-Bexport'
11054 runpath_var='LD_RUN_PATH'
11055
11056 if test "$GCC" = yes; then
11057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 else
11060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 fi
11063 ;;
11064
11065 uts4*)
11066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11067 hardcode_libdir_flag_spec='-L$libdir'
11068 hardcode_shlibpath_var=no
11069 ;;
11070
11071 *)
11072 ld_shlibs=no
11073 ;;
11074 esac
11075
11076 if test x$host_vendor = xsni; then
11077 case $host in
11078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11079 export_dynamic_flag_spec='${wl}-Blargedynsym'
11080 ;;
11081 esac
11082 fi
11083 fi
11084
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11086 $as_echo "$ld_shlibs" >&6; }
11087 test "$ld_shlibs" = no && can_build_shared=no
11088
11089 with_gnu_ld=$with_gnu_ld
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105 #
11106 # Do we need to explicitly link libc?
11107 #
11108 case "x$archive_cmds_need_lc" in
11109 x|xyes)
11110 # Assume -lc should be added
11111 archive_cmds_need_lc=yes
11112
11113 if test "$enable_shared" = yes && test "$GCC" = yes; then
11114 case $archive_cmds in
11115 *'~'*)
11116 # FIXME: we may have to deal with multi-command sequences.
11117 ;;
11118 '$CC '*)
11119 # Test whether the compiler implicitly links with -lc since on some
11120 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11121 # to ld, don't add -lc before -lgcc.
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11123 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11124 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 $RM conftest*
11128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11129
11130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11131 (eval $ac_compile) 2>&5
11132 ac_status=$?
11133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134 test $ac_status = 0; } 2>conftest.err; then
11135 soname=conftest
11136 lib=conftest
11137 libobjs=conftest.$ac_objext
11138 deplibs=
11139 wl=$lt_prog_compiler_wl
11140 pic_flag=$lt_prog_compiler_pic
11141 compiler_flags=-v
11142 linker_flags=-v
11143 verstring=
11144 output_objdir=.
11145 libname=conftest
11146 lt_save_allow_undefined_flag=$allow_undefined_flag
11147 allow_undefined_flag=
11148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11149 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11150 ac_status=$?
11151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152 test $ac_status = 0; }
11153 then
11154 lt_cv_archive_cmds_need_lc=no
11155 else
11156 lt_cv_archive_cmds_need_lc=yes
11157 fi
11158 allow_undefined_flag=$lt_save_allow_undefined_flag
11159 else
11160 cat conftest.err 1>&5
11161 fi
11162 $RM conftest*
11163
11164 fi
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11166 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11167 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11168 ;;
11169 esac
11170 fi
11171 ;;
11172 esac
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11331 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11332
11333 if test "$GCC" = yes; then
11334 case $host_os in
11335 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11336 *) lt_awk_arg="/^libraries:/" ;;
11337 esac
11338 case $host_os in
11339 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11340 *) lt_sed_strip_eq="s,=/,/,g" ;;
11341 esac
11342 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11343 case $lt_search_path_spec in
11344 *\;*)
11345 # if the path contains ";" then we assume it to be the separator
11346 # otherwise default to the standard path separator (i.e. ":") - it is
11347 # assumed that no part of a normal pathname contains ";" but that should
11348 # okay in the real world where ";" in dirpaths is itself problematic.
11349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11350 ;;
11351 *)
11352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11353 ;;
11354 esac
11355 # Ok, now we have the path, separated by spaces, we can step through it
11356 # and add multilib dir if necessary.
11357 lt_tmp_lt_search_path_spec=
11358 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11359 for lt_sys_path in $lt_search_path_spec; do
11360 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11362 else
11363 test -d "$lt_sys_path" && \
11364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11365 fi
11366 done
11367 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11368 BEGIN {RS=" "; FS="/|\n";} {
11369 lt_foo="";
11370 lt_count=0;
11371 for (lt_i = NF; lt_i > 0; lt_i--) {
11372 if ($lt_i != "" && $lt_i != ".") {
11373 if ($lt_i == "..") {
11374 lt_count++;
11375 } else {
11376 if (lt_count == 0) {
11377 lt_foo="/" $lt_i lt_foo;
11378 } else {
11379 lt_count--;
11380 }
11381 }
11382 }
11383 }
11384 if (lt_foo != "") { lt_freq[lt_foo]++; }
11385 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11386 }'`
11387 # AWK program above erroneously prepends '/' to C:/dos/paths
11388 # for these hosts.
11389 case $host_os in
11390 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11391 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11392 esac
11393 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11394 else
11395 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11396 fi
11397 library_names_spec=
11398 libname_spec='lib$name'
11399 soname_spec=
11400 shrext_cmds=".so"
11401 postinstall_cmds=
11402 postuninstall_cmds=
11403 finish_cmds=
11404 finish_eval=
11405 shlibpath_var=
11406 shlibpath_overrides_runpath=unknown
11407 version_type=none
11408 dynamic_linker="$host_os ld.so"
11409 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11410 need_lib_prefix=unknown
11411 hardcode_into_libs=no
11412
11413 # when you set need_version to no, make sure it does not cause -set_version
11414 # flags to be left without arguments
11415 need_version=unknown
11416
11417 case $host_os in
11418 aix3*)
11419 version_type=linux
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11421 shlibpath_var=LIBPATH
11422
11423 # AIX 3 has no versioning support, so we append a major version to the name.
11424 soname_spec='${libname}${release}${shared_ext}$major'
11425 ;;
11426
11427 aix[4-9]*)
11428 version_type=linux
11429 need_lib_prefix=no
11430 need_version=no
11431 hardcode_into_libs=yes
11432 if test "$host_cpu" = ia64; then
11433 # AIX 5 supports IA64
11434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 else
11437 # With GCC up to 2.95.x, collect2 would create an import file
11438 # for dependence libraries. The import file would start with
11439 # the line `#! .'. This would cause the generated library to
11440 # depend on `.', always an invalid library. This was fixed in
11441 # development snapshots of GCC prior to 3.0.
11442 case $host_os in
11443 aix4 | aix4.[01] | aix4.[01].*)
11444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11445 echo ' yes '
11446 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11447 :
11448 else
11449 can_build_shared=no
11450 fi
11451 ;;
11452 esac
11453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11454 # soname into executable. Probably we can add versioning support to
11455 # collect2, so additional links can be useful in future.
11456 if test "$aix_use_runtimelinking" = yes; then
11457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11458 # instead of lib<name>.a to let people know that these are not
11459 # typical AIX shared libraries.
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 else
11462 # We preserve .a as extension for shared libraries through AIX4.2
11463 # and later when we are not doing run time linking.
11464 library_names_spec='${libname}${release}.a $libname.a'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 fi
11467 shlibpath_var=LIBPATH
11468 fi
11469 ;;
11470
11471 amigaos*)
11472 case $host_cpu in
11473 powerpc)
11474 # Since July 2007 AmigaOS4 officially supports .so libraries.
11475 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 ;;
11478 m68k)
11479 library_names_spec='$libname.ixlibrary $libname.a'
11480 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11481 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'
11482 ;;
11483 esac
11484 ;;
11485
11486 beos*)
11487 library_names_spec='${libname}${shared_ext}'
11488 dynamic_linker="$host_os ld.so"
11489 shlibpath_var=LIBRARY_PATH
11490 ;;
11491
11492 bsdi[45]*)
11493 version_type=linux
11494 need_version=no
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 soname_spec='${libname}${release}${shared_ext}$major'
11497 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11498 shlibpath_var=LD_LIBRARY_PATH
11499 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11500 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11501 # the default ld.so.conf also contains /usr/contrib/lib and
11502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11503 # libtool to hard-code these into programs
11504 ;;
11505
11506 cygwin* | mingw* | pw32* | cegcc*)
11507 version_type=windows
11508 shrext_cmds=".dll"
11509 need_version=no
11510 need_lib_prefix=no
11511
11512 case $GCC,$host_os in
11513 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11514 library_names_spec='$libname.dll.a'
11515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11516 postinstall_cmds='base_file=`basename \${file}`~
11517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11518 dldir=$destdir/`dirname \$dlpath`~
11519 test -d \$dldir || mkdir -p \$dldir~
11520 $install_prog $dir/$dlname \$dldir/$dlname~
11521 chmod a+x \$dldir/$dlname~
11522 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11523 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11524 fi'
11525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11526 dlpath=$dir/\$dldll~
11527 $RM \$dlpath'
11528 shlibpath_overrides_runpath=yes
11529
11530 case $host_os in
11531 cygwin*)
11532 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11533 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11534
11535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11536 ;;
11537 mingw* | cegcc*)
11538 # MinGW DLLs use traditional 'lib' prefix
11539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11540 ;;
11541 pw32*)
11542 # pw32 DLLs use 'pw' prefix rather than 'lib'
11543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11544 ;;
11545 esac
11546 ;;
11547
11548 *)
11549 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11550 ;;
11551 esac
11552 dynamic_linker='Win32 ld.exe'
11553 # FIXME: first we should search . and the directory the executable is in
11554 shlibpath_var=PATH
11555 ;;
11556
11557 darwin* | rhapsody*)
11558 dynamic_linker="$host_os dyld"
11559 version_type=darwin
11560 need_lib_prefix=no
11561 need_version=no
11562 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11563 soname_spec='${libname}${release}${major}$shared_ext'
11564 shlibpath_overrides_runpath=yes
11565 shlibpath_var=DYLD_LIBRARY_PATH
11566 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11567
11568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11570 ;;
11571
11572 dgux*)
11573 version_type=linux
11574 need_lib_prefix=no
11575 need_version=no
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 ;;
11580
11581 freebsd* | dragonfly*)
11582 # DragonFly does not have aout. When/if they implement a new
11583 # versioning mechanism, adjust this.
11584 if test -x /usr/bin/objformat; then
11585 objformat=`/usr/bin/objformat`
11586 else
11587 case $host_os in
11588 freebsd[23].*) objformat=aout ;;
11589 *) objformat=elf ;;
11590 esac
11591 fi
11592 version_type=freebsd-$objformat
11593 case $version_type in
11594 freebsd-elf*)
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11596 need_version=no
11597 need_lib_prefix=no
11598 ;;
11599 freebsd-*)
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11601 need_version=yes
11602 ;;
11603 esac
11604 shlibpath_var=LD_LIBRARY_PATH
11605 case $host_os in
11606 freebsd2.*)
11607 shlibpath_overrides_runpath=yes
11608 ;;
11609 freebsd3.[01]* | freebsdelf3.[01]*)
11610 shlibpath_overrides_runpath=yes
11611 hardcode_into_libs=yes
11612 ;;
11613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11615 shlibpath_overrides_runpath=no
11616 hardcode_into_libs=yes
11617 ;;
11618 *) # from 4.6 on, and DragonFly
11619 shlibpath_overrides_runpath=yes
11620 hardcode_into_libs=yes
11621 ;;
11622 esac
11623 ;;
11624
11625 haiku*)
11626 version_type=linux
11627 need_lib_prefix=no
11628 need_version=no
11629 dynamic_linker="$host_os runtime_loader"
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 shlibpath_var=LIBRARY_PATH
11633 shlibpath_overrides_runpath=yes
11634 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11635 hardcode_into_libs=yes
11636 ;;
11637
11638 hpux9* | hpux10* | hpux11*)
11639 # Give a soname corresponding to the major version so that dld.sl refuses to
11640 # link against other versions.
11641 version_type=sunos
11642 need_lib_prefix=no
11643 need_version=no
11644 case $host_cpu in
11645 ia64*)
11646 shrext_cmds='.so'
11647 hardcode_into_libs=yes
11648 dynamic_linker="$host_os dld.so"
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 if test "X$HPUX_IA64_MODE" = X32; then
11654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11655 else
11656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11657 fi
11658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11659 ;;
11660 hppa*64*)
11661 shrext_cmds='.sl'
11662 hardcode_into_libs=yes
11663 dynamic_linker="$host_os dld.sl"
11664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11670 ;;
11671 *)
11672 shrext_cmds='.sl'
11673 dynamic_linker="$host_os dld.sl"
11674 shlibpath_var=SHLIB_PATH
11675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11677 soname_spec='${libname}${release}${shared_ext}$major'
11678 ;;
11679 esac
11680 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11681 postinstall_cmds='chmod 555 $lib'
11682 # or fails outright, so override atomically:
11683 install_override_mode=555
11684 ;;
11685
11686 interix[3-9]*)
11687 version_type=linux
11688 need_lib_prefix=no
11689 need_version=no
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=no
11695 hardcode_into_libs=yes
11696 ;;
11697
11698 irix5* | irix6* | nonstopux*)
11699 case $host_os in
11700 nonstopux*) version_type=nonstopux ;;
11701 *)
11702 if test "$lt_cv_prog_gnu_ld" = yes; then
11703 version_type=linux
11704 else
11705 version_type=irix
11706 fi ;;
11707 esac
11708 need_lib_prefix=no
11709 need_version=no
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11712 case $host_os in
11713 irix5* | nonstopux*)
11714 libsuff= shlibsuff=
11715 ;;
11716 *)
11717 case $LD in # libtool.m4 will add one of these switches to LD
11718 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11719 libsuff= shlibsuff= libmagic=32-bit;;
11720 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11721 libsuff=32 shlibsuff=N32 libmagic=N32;;
11722 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11723 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11724 *) libsuff= shlibsuff= libmagic=never-match;;
11725 esac
11726 ;;
11727 esac
11728 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11729 shlibpath_overrides_runpath=no
11730 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11731 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11732 hardcode_into_libs=yes
11733 ;;
11734
11735 # No shared lib support for Linux oldld, aout, or coff.
11736 linux*oldld* | linux*aout* | linux*coff*)
11737 dynamic_linker=no
11738 ;;
11739
11740 # This must be Linux ELF.
11741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11742 version_type=linux
11743 need_lib_prefix=no
11744 need_version=no
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=no
11750
11751 # Some binutils ld are patched to set DT_RUNPATH
11752 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 lt_cv_shlibpath_overrides_runpath=no
11756 save_LDFLAGS=$LDFLAGS
11757 save_libdir=$libdir
11758 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11759 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762
11763 int
11764 main ()
11765 {
11766
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_link "$LINENO"; then :
11772 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11773 lt_cv_shlibpath_overrides_runpath=yes
11774 fi
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778 LDFLAGS=$save_LDFLAGS
11779 libdir=$save_libdir
11780
11781 fi
11782
11783 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11784
11785 # This implies no fast_install, which is unacceptable.
11786 # Some rework will be needed to allow for fast_install
11787 # before this can be enabled.
11788 hardcode_into_libs=yes
11789
11790 # Append ld.so.conf contents to the search path
11791 if test -f /etc/ld.so.conf; then
11792 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' ' '`
11793 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11794 fi
11795
11796 # We used to test for /lib/ld.so.1 and disable shared libraries on
11797 # powerpc, because MkLinux only supported shared libraries with the
11798 # GNU dynamic linker. Since this was broken with cross compilers,
11799 # most powerpc-linux boxes support dynamic linking these days and
11800 # people can always --disable-shared, the test was removed, and we
11801 # assume the GNU/Linux dynamic linker is in use.
11802 dynamic_linker='GNU/Linux ld.so'
11803 ;;
11804
11805 netbsd*)
11806 version_type=sunos
11807 need_lib_prefix=no
11808 need_version=no
11809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11812 dynamic_linker='NetBSD (a.out) ld.so'
11813 else
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 dynamic_linker='NetBSD ld.elf_so'
11817 fi
11818 shlibpath_var=LD_LIBRARY_PATH
11819 shlibpath_overrides_runpath=yes
11820 hardcode_into_libs=yes
11821 ;;
11822
11823 newsos6)
11824 version_type=linux
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 shlibpath_overrides_runpath=yes
11828 ;;
11829
11830 *nto* | *qnx*)
11831 version_type=qnx
11832 need_lib_prefix=no
11833 need_version=no
11834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11835 soname_spec='${libname}${release}${shared_ext}$major'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 shlibpath_overrides_runpath=no
11838 hardcode_into_libs=yes
11839 dynamic_linker='ldqnx.so'
11840 ;;
11841
11842 openbsd*)
11843 version_type=sunos
11844 sys_lib_dlsearch_path_spec="/usr/lib"
11845 need_lib_prefix=no
11846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11847 case $host_os in
11848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11849 *) need_version=no ;;
11850 esac
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11855 case $host_os in
11856 openbsd2.[89] | openbsd2.[89].*)
11857 shlibpath_overrides_runpath=no
11858 ;;
11859 *)
11860 shlibpath_overrides_runpath=yes
11861 ;;
11862 esac
11863 else
11864 shlibpath_overrides_runpath=yes
11865 fi
11866 ;;
11867
11868 os2*)
11869 libname_spec='$name'
11870 shrext_cmds=".dll"
11871 need_lib_prefix=no
11872 library_names_spec='$libname${shared_ext} $libname.a'
11873 dynamic_linker='OS/2 ld.exe'
11874 shlibpath_var=LIBPATH
11875 ;;
11876
11877 osf3* | osf4* | osf5*)
11878 version_type=osf
11879 need_lib_prefix=no
11880 need_version=no
11881 soname_spec='${libname}${release}${shared_ext}$major'
11882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11886 ;;
11887
11888 rdos*)
11889 dynamic_linker=no
11890 ;;
11891
11892 solaris*)
11893 version_type=linux
11894 need_lib_prefix=no
11895 need_version=no
11896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11897 soname_spec='${libname}${release}${shared_ext}$major'
11898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=yes
11900 hardcode_into_libs=yes
11901 # ldd complains unless libraries are executable
11902 postinstall_cmds='chmod +x $lib'
11903 ;;
11904
11905 sunos4*)
11906 version_type=sunos
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 shlibpath_overrides_runpath=yes
11911 if test "$with_gnu_ld" = yes; then
11912 need_lib_prefix=no
11913 fi
11914 need_version=yes
11915 ;;
11916
11917 sysv4 | sysv4.3*)
11918 version_type=linux
11919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11920 soname_spec='${libname}${release}${shared_ext}$major'
11921 shlibpath_var=LD_LIBRARY_PATH
11922 case $host_vendor in
11923 sni)
11924 shlibpath_overrides_runpath=no
11925 need_lib_prefix=no
11926 runpath_var=LD_RUN_PATH
11927 ;;
11928 siemens)
11929 need_lib_prefix=no
11930 ;;
11931 motorola)
11932 need_lib_prefix=no
11933 need_version=no
11934 shlibpath_overrides_runpath=no
11935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11936 ;;
11937 esac
11938 ;;
11939
11940 sysv4*MP*)
11941 if test -d /usr/nec ;then
11942 version_type=linux
11943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11944 soname_spec='$libname${shared_ext}.$major'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 fi
11947 ;;
11948
11949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11950 version_type=freebsd-elf
11951 need_lib_prefix=no
11952 need_version=no
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11954 soname_spec='${libname}${release}${shared_ext}$major'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=yes
11957 hardcode_into_libs=yes
11958 if test "$with_gnu_ld" = yes; then
11959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11960 else
11961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11962 case $host_os in
11963 sco3.2v5*)
11964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11965 ;;
11966 esac
11967 fi
11968 sys_lib_dlsearch_path_spec='/usr/lib'
11969 ;;
11970
11971 tpf*)
11972 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11973 version_type=linux
11974 need_lib_prefix=no
11975 need_version=no
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=no
11979 hardcode_into_libs=yes
11980 ;;
11981
11982 uts4*)
11983 version_type=linux
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 ;;
11988
11989 *)
11990 dynamic_linker=no
11991 ;;
11992 esac
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11994 $as_echo "$dynamic_linker" >&6; }
11995 test "$dynamic_linker" = no && can_build_shared=no
11996
11997 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11998 if test "$GCC" = yes; then
11999 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12000 fi
12001
12002 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12003 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12004 fi
12005 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12006 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12007 fi
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12101 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12102 hardcode_action=
12103 if test -n "$hardcode_libdir_flag_spec" ||
12104 test -n "$runpath_var" ||
12105 test "X$hardcode_automatic" = "Xyes" ; then
12106
12107 # We can hardcode non-existent directories.
12108 if test "$hardcode_direct" != no &&
12109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12110 # have to relink, otherwise we might link with an installed library
12111 # when we should be linking with a yet-to-be-installed one
12112 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12113 test "$hardcode_minus_L" != no; then
12114 # Linking always hardcodes the temporary library directory.
12115 hardcode_action=relink
12116 else
12117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12118 hardcode_action=immediate
12119 fi
12120 else
12121 # We cannot hardcode anything, or else we can only hardcode existing
12122 # directories.
12123 hardcode_action=unsupported
12124 fi
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12126 $as_echo "$hardcode_action" >&6; }
12127
12128 if test "$hardcode_action" = relink ||
12129 test "$inherit_rpath" = yes; then
12130 # Fast installation is not supported
12131 enable_fast_install=no
12132 elif test "$shlibpath_overrides_runpath" = yes ||
12133 test "$enable_shared" = no; then
12134 # Fast installation is not necessary
12135 enable_fast_install=needless
12136 fi
12137
12138
12139
12140
12141
12142
12143 if test "x$enable_dlopen" != xyes; then
12144 enable_dlopen=unknown
12145 enable_dlopen_self=unknown
12146 enable_dlopen_self_static=unknown
12147 else
12148 lt_cv_dlopen=no
12149 lt_cv_dlopen_libs=
12150
12151 case $host_os in
12152 beos*)
12153 lt_cv_dlopen="load_add_on"
12154 lt_cv_dlopen_libs=
12155 lt_cv_dlopen_self=yes
12156 ;;
12157
12158 mingw* | pw32* | cegcc*)
12159 lt_cv_dlopen="LoadLibrary"
12160 lt_cv_dlopen_libs=
12161 ;;
12162
12163 cygwin*)
12164 lt_cv_dlopen="dlopen"
12165 lt_cv_dlopen_libs=
12166 ;;
12167
12168 darwin*)
12169 # if libdl is installed we need to link against it
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12171 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12172 if ${ac_cv_lib_dl_dlopen+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-ldl $LIBS"
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183 #ifdef __cplusplus
12184 extern "C"
12185 #endif
12186 char dlopen ();
12187 int
12188 main ()
12189 {
12190 return dlopen ();
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 ac_cv_lib_dl_dlopen=yes
12197 else
12198 ac_cv_lib_dl_dlopen=no
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12206 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12208 else
12209
12210 lt_cv_dlopen="dyld"
12211 lt_cv_dlopen_libs=
12212 lt_cv_dlopen_self=yes
12213
12214 fi
12215
12216 ;;
12217
12218 *)
12219 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12220 if test "x$ac_cv_func_shl_load" = xyes; then :
12221 lt_cv_dlopen="shl_load"
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12224 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12225 if ${ac_cv_lib_dld_shl_load+:} false; then :
12226 $as_echo_n "(cached) " >&6
12227 else
12228 ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-ldld $LIBS"
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char shl_load ();
12240 int
12241 main ()
12242 {
12243 return shl_load ();
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 if ac_fn_c_try_link "$LINENO"; then :
12249 ac_cv_lib_dld_shl_load=yes
12250 else
12251 ac_cv_lib_dld_shl_load=no
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12258 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12259 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12260 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12261 else
12262 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12263 if test "x$ac_cv_func_dlopen" = xyes; then :
12264 lt_cv_dlopen="dlopen"
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12267 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12268 if ${ac_cv_lib_dl_dlopen+:} false; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 ac_check_lib_save_LIBS=$LIBS
12272 LIBS="-ldl $LIBS"
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char dlopen ();
12283 int
12284 main ()
12285 {
12286 return dlopen ();
12287 ;
12288 return 0;
12289 }
12290 _ACEOF
12291 if ac_fn_c_try_link "$LINENO"; then :
12292 ac_cv_lib_dl_dlopen=yes
12293 else
12294 ac_cv_lib_dl_dlopen=no
12295 fi
12296 rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12299 fi
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12301 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12302 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12303 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12306 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12307 if ${ac_cv_lib_svld_dlopen+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-lsvld $LIBS"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char dlopen ();
12322 int
12323 main ()
12324 {
12325 return dlopen ();
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_link "$LINENO"; then :
12331 ac_cv_lib_svld_dlopen=yes
12332 else
12333 ac_cv_lib_svld_dlopen=no
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12340 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12341 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12345 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12346 if ${ac_cv_lib_dld_dld_link+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-ldld $LIBS"
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12357 #ifdef __cplusplus
12358 extern "C"
12359 #endif
12360 char dld_link ();
12361 int
12362 main ()
12363 {
12364 return dld_link ();
12365 ;
12366 return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_c_try_link "$LINENO"; then :
12370 ac_cv_lib_dld_dld_link=yes
12371 else
12372 ac_cv_lib_dld_dld_link=no
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12379 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12380 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12381 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12382 fi
12383
12384
12385 fi
12386
12387
12388 fi
12389
12390
12391 fi
12392
12393
12394 fi
12395
12396
12397 fi
12398
12399 ;;
12400 esac
12401
12402 if test "x$lt_cv_dlopen" != xno; then
12403 enable_dlopen=yes
12404 else
12405 enable_dlopen=no
12406 fi
12407
12408 case $lt_cv_dlopen in
12409 dlopen)
12410 save_CPPFLAGS="$CPPFLAGS"
12411 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12412
12413 save_LDFLAGS="$LDFLAGS"
12414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12415
12416 save_LIBS="$LIBS"
12417 LIBS="$lt_cv_dlopen_libs $LIBS"
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12420 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12421 if ${lt_cv_dlopen_self+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 if test "$cross_compiling" = yes; then :
12425 lt_cv_dlopen_self=cross
12426 else
12427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12428 lt_status=$lt_dlunknown
12429 cat > conftest.$ac_ext <<_LT_EOF
12430 #line 12430 "configure"
12431 #include "confdefs.h"
12432
12433 #if HAVE_DLFCN_H
12434 #include <dlfcn.h>
12435 #endif
12436
12437 #include <stdio.h>
12438
12439 #ifdef RTLD_GLOBAL
12440 # define LT_DLGLOBAL RTLD_GLOBAL
12441 #else
12442 # ifdef DL_GLOBAL
12443 # define LT_DLGLOBAL DL_GLOBAL
12444 # else
12445 # define LT_DLGLOBAL 0
12446 # endif
12447 #endif
12448
12449 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12450 find out it does not work in some platform. */
12451 #ifndef LT_DLLAZY_OR_NOW
12452 # ifdef RTLD_LAZY
12453 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12454 # else
12455 # ifdef DL_LAZY
12456 # define LT_DLLAZY_OR_NOW DL_LAZY
12457 # else
12458 # ifdef RTLD_NOW
12459 # define LT_DLLAZY_OR_NOW RTLD_NOW
12460 # else
12461 # ifdef DL_NOW
12462 # define LT_DLLAZY_OR_NOW DL_NOW
12463 # else
12464 # define LT_DLLAZY_OR_NOW 0
12465 # endif
12466 # endif
12467 # endif
12468 # endif
12469 #endif
12470
12471 /* When -fvisbility=hidden is used, assume the code has been annotated
12472 correspondingly for the symbols needed. */
12473 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12474 void fnord () __attribute__((visibility("default")));
12475 #endif
12476
12477 void fnord () { int i=42; }
12478 int main ()
12479 {
12480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12481 int status = $lt_dlunknown;
12482
12483 if (self)
12484 {
12485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12486 else
12487 {
12488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12489 else puts (dlerror ());
12490 }
12491 /* dlclose (self); */
12492 }
12493 else
12494 puts (dlerror ());
12495
12496 return status;
12497 }
12498 _LT_EOF
12499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12500 (eval $ac_link) 2>&5
12501 ac_status=$?
12502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12503 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12504 (./conftest; exit; ) >&5 2>/dev/null
12505 lt_status=$?
12506 case x$lt_status in
12507 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12508 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12509 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12510 esac
12511 else :
12512 # compilation failed
12513 lt_cv_dlopen_self=no
12514 fi
12515 fi
12516 rm -fr conftest*
12517
12518
12519 fi
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12521 $as_echo "$lt_cv_dlopen_self" >&6; }
12522
12523 if test "x$lt_cv_dlopen_self" = xyes; then
12524 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12526 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12527 if ${lt_cv_dlopen_self_static+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 if test "$cross_compiling" = yes; then :
12531 lt_cv_dlopen_self_static=cross
12532 else
12533 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12534 lt_status=$lt_dlunknown
12535 cat > conftest.$ac_ext <<_LT_EOF
12536 #line 12536 "configure"
12537 #include "confdefs.h"
12538
12539 #if HAVE_DLFCN_H
12540 #include <dlfcn.h>
12541 #endif
12542
12543 #include <stdio.h>
12544
12545 #ifdef RTLD_GLOBAL
12546 # define LT_DLGLOBAL RTLD_GLOBAL
12547 #else
12548 # ifdef DL_GLOBAL
12549 # define LT_DLGLOBAL DL_GLOBAL
12550 # else
12551 # define LT_DLGLOBAL 0
12552 # endif
12553 #endif
12554
12555 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12556 find out it does not work in some platform. */
12557 #ifndef LT_DLLAZY_OR_NOW
12558 # ifdef RTLD_LAZY
12559 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12560 # else
12561 # ifdef DL_LAZY
12562 # define LT_DLLAZY_OR_NOW DL_LAZY
12563 # else
12564 # ifdef RTLD_NOW
12565 # define LT_DLLAZY_OR_NOW RTLD_NOW
12566 # else
12567 # ifdef DL_NOW
12568 # define LT_DLLAZY_OR_NOW DL_NOW
12569 # else
12570 # define LT_DLLAZY_OR_NOW 0
12571 # endif
12572 # endif
12573 # endif
12574 # endif
12575 #endif
12576
12577 /* When -fvisbility=hidden is used, assume the code has been annotated
12578 correspondingly for the symbols needed. */
12579 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12580 void fnord () __attribute__((visibility("default")));
12581 #endif
12582
12583 void fnord () { int i=42; }
12584 int main ()
12585 {
12586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12587 int status = $lt_dlunknown;
12588
12589 if (self)
12590 {
12591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12592 else
12593 {
12594 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12595 else puts (dlerror ());
12596 }
12597 /* dlclose (self); */
12598 }
12599 else
12600 puts (dlerror ());
12601
12602 return status;
12603 }
12604 _LT_EOF
12605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12606 (eval $ac_link) 2>&5
12607 ac_status=$?
12608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12609 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12610 (./conftest; exit; ) >&5 2>/dev/null
12611 lt_status=$?
12612 case x$lt_status in
12613 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12614 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12615 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12616 esac
12617 else :
12618 # compilation failed
12619 lt_cv_dlopen_self_static=no
12620 fi
12621 fi
12622 rm -fr conftest*
12623
12624
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12627 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12628 fi
12629
12630 CPPFLAGS="$save_CPPFLAGS"
12631 LDFLAGS="$save_LDFLAGS"
12632 LIBS="$save_LIBS"
12633 ;;
12634 esac
12635
12636 case $lt_cv_dlopen_self in
12637 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12638 *) enable_dlopen_self=unknown ;;
12639 esac
12640
12641 case $lt_cv_dlopen_self_static in
12642 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12643 *) enable_dlopen_self_static=unknown ;;
12644 esac
12645 fi
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663 striplib=
12664 old_striplib=
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12666 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12667 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12668 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12669 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12671 $as_echo "yes" >&6; }
12672 else
12673 # FIXME - insert some real tests, host_os isn't really good enough
12674 case $host_os in
12675 darwin*)
12676 if test -n "$STRIP" ; then
12677 striplib="$STRIP -x"
12678 old_striplib="$STRIP -S"
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12680 $as_echo "yes" >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12684 fi
12685 ;;
12686 *)
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12689 ;;
12690 esac
12691 fi
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704 # Report which library types will actually be built
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12706 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12708 $as_echo "$can_build_shared" >&6; }
12709
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12711 $as_echo_n "checking whether to build shared libraries... " >&6; }
12712 test "$can_build_shared" = "no" && enable_shared=no
12713
12714 # On AIX, shared libraries and static libraries use the same namespace, and
12715 # are all built from PIC.
12716 case $host_os in
12717 aix3*)
12718 test "$enable_shared" = yes && enable_static=no
12719 if test -n "$RANLIB"; then
12720 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12721 postinstall_cmds='$RANLIB $lib'
12722 fi
12723 ;;
12724
12725 aix[4-9]*)
12726 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12727 test "$enable_shared" = yes && enable_static=no
12728 fi
12729 ;;
12730 esac
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12732 $as_echo "$enable_shared" >&6; }
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12735 $as_echo_n "checking whether to build static libraries... " >&6; }
12736 # Make sure either enable_shared or enable_static is yes.
12737 test "$enable_shared" = yes || enable_static=yes
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12739 $as_echo "$enable_static" >&6; }
12740
12741
12742
12743
12744 fi
12745 ac_ext=c
12746 ac_cpp='$CPP $CPPFLAGS'
12747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12750
12751 CC="$lt_save_CC"
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765 ac_config_commands="$ac_config_commands libtool"
12766
12767
12768
12769
12770 # Only expand once:
12771
12772
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12775 $as_echo_n "checking for library containing bind... " >&6; }
12776 if ${ac_cv_search_bind+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 ac_func_search_save_LIBS=$LIBS
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782
12783 /* Override any GCC internal prototype to avoid an error.
12784 Use char because int might match the return type of a GCC
12785 builtin and then its argument prototype would still apply. */
12786 #ifdef __cplusplus
12787 extern "C"
12788 #endif
12789 char bind ();
12790 int
12791 main ()
12792 {
12793 return bind ();
12794 ;
12795 return 0;
12796 }
12797 _ACEOF
12798 for ac_lib in '' socket; do
12799 if test -z "$ac_lib"; then
12800 ac_res="none required"
12801 else
12802 ac_res=-l$ac_lib
12803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12804 fi
12805 if ac_fn_c_try_link "$LINENO"; then :
12806 ac_cv_search_bind=$ac_res
12807 fi
12808 rm -f core conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext
12810 if ${ac_cv_search_bind+:} false; then :
12811 break
12812 fi
12813 done
12814 if ${ac_cv_search_bind+:} false; then :
12815
12816 else
12817 ac_cv_search_bind=no
12818 fi
12819 rm conftest.$ac_ext
12820 LIBS=$ac_func_search_save_LIBS
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12823 $as_echo "$ac_cv_search_bind" >&6; }
12824 ac_res=$ac_cv_search_bind
12825 if test "$ac_res" != no; then :
12826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12827
12828 fi
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12831 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12832 if ${ac_cv_search_gethostbyname+:} false; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 ac_func_search_save_LIBS=$LIBS
12836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12837 /* end confdefs.h. */
12838
12839 /* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12842 #ifdef __cplusplus
12843 extern "C"
12844 #endif
12845 char gethostbyname ();
12846 int
12847 main ()
12848 {
12849 return gethostbyname ();
12850 ;
12851 return 0;
12852 }
12853 _ACEOF
12854 for ac_lib in '' nsl; do
12855 if test -z "$ac_lib"; then
12856 ac_res="none required"
12857 else
12858 ac_res=-l$ac_lib
12859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12860 fi
12861 if ac_fn_c_try_link "$LINENO"; then :
12862 ac_cv_search_gethostbyname=$ac_res
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext
12866 if ${ac_cv_search_gethostbyname+:} false; then :
12867 break
12868 fi
12869 done
12870 if ${ac_cv_search_gethostbyname+:} false; then :
12871
12872 else
12873 ac_cv_search_gethostbyname=no
12874 fi
12875 rm conftest.$ac_ext
12876 LIBS=$ac_func_search_save_LIBS
12877 fi
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12879 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12880 ac_res=$ac_cv_search_gethostbyname
12881 if test "$ac_res" != no; then :
12882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12883
12884 fi
12885
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12887 $as_echo_n "checking for library containing fabs... " >&6; }
12888 if ${ac_cv_search_fabs+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 ac_func_search_save_LIBS=$LIBS
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12894
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char fabs ();
12902 int
12903 main ()
12904 {
12905 return fabs ();
12906 ;
12907 return 0;
12908 }
12909 _ACEOF
12910 for ac_lib in '' m; do
12911 if test -z "$ac_lib"; then
12912 ac_res="none required"
12913 else
12914 ac_res=-l$ac_lib
12915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12916 fi
12917 if ac_fn_c_try_link "$LINENO"; then :
12918 ac_cv_search_fabs=$ac_res
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext \
12921 conftest$ac_exeext
12922 if ${ac_cv_search_fabs+:} false; then :
12923 break
12924 fi
12925 done
12926 if ${ac_cv_search_fabs+:} false; then :
12927
12928 else
12929 ac_cv_search_fabs=no
12930 fi
12931 rm conftest.$ac_ext
12932 LIBS=$ac_func_search_save_LIBS
12933 fi
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12935 $as_echo "$ac_cv_search_fabs" >&6; }
12936 ac_res=$ac_cv_search_fabs
12937 if test "$ac_res" != no; then :
12938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12939
12940 fi
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12943 $as_echo_n "checking for library containing log2... " >&6; }
12944 if ${ac_cv_search_log2+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 ac_func_search_save_LIBS=$LIBS
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char log2 ();
12958 int
12959 main ()
12960 {
12961 return log2 ();
12962 ;
12963 return 0;
12964 }
12965 _ACEOF
12966 for ac_lib in '' m; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12969 else
12970 ac_res=-l$ac_lib
12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12972 fi
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 ac_cv_search_log2=$ac_res
12975 fi
12976 rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext
12978 if ${ac_cv_search_log2+:} false; then :
12979 break
12980 fi
12981 done
12982 if ${ac_cv_search_log2+:} false; then :
12983
12984 else
12985 ac_cv_search_log2=no
12986 fi
12987 rm conftest.$ac_ext
12988 LIBS=$ac_func_search_save_LIBS
12989 fi
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
12991 $as_echo "$ac_cv_search_log2" >&6; }
12992 ac_res=$ac_cv_search_log2
12993 if test "$ac_res" != no; then :
12994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12995
12996 fi
12997
12998
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13000 $as_echo_n "checking for library containing dlopen... " >&6; }
13001 if ${ac_cv_search_dlopen+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 ac_func_search_save_LIBS=$LIBS
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13011 #ifdef __cplusplus
13012 extern "C"
13013 #endif
13014 char dlopen ();
13015 int
13016 main ()
13017 {
13018 return dlopen ();
13019 ;
13020 return 0;
13021 }
13022 _ACEOF
13023 for ac_lib in '' dl; do
13024 if test -z "$ac_lib"; then
13025 ac_res="none required"
13026 else
13027 ac_res=-l$ac_lib
13028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13029 fi
13030 if ac_fn_c_try_link "$LINENO"; then :
13031 ac_cv_search_dlopen=$ac_res
13032 fi
13033 rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext
13035 if ${ac_cv_search_dlopen+:} false; then :
13036 break
13037 fi
13038 done
13039 if ${ac_cv_search_dlopen+:} false; then :
13040
13041 else
13042 ac_cv_search_dlopen=no
13043 fi
13044 rm conftest.$ac_ext
13045 LIBS=$ac_func_search_save_LIBS
13046 fi
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13048 $as_echo "$ac_cv_search_dlopen" >&6; }
13049 ac_res=$ac_cv_search_dlopen
13050 if test "$ac_res" != no; then :
13051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13052
13053 fi
13054
13055 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13056
13057 pkg_failed=no
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13059 $as_echo_n "checking for sdl2... " >&6; }
13060
13061 if test -n "$SDL_CFLAGS"; then
13062 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13063 elif test -n "$PKG_CONFIG"; then
13064 if test -n "$PKG_CONFIG" && \
13065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13066 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13067 ac_status=$?
13068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13069 test $ac_status = 0; }; then
13070 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13071 test "x$?" != "x0" && pkg_failed=yes
13072 else
13073 pkg_failed=yes
13074 fi
13075 else
13076 pkg_failed=untried
13077 fi
13078 if test -n "$SDL_LIBS"; then
13079 pkg_cv_SDL_LIBS="$SDL_LIBS"
13080 elif test -n "$PKG_CONFIG"; then
13081 if test -n "$PKG_CONFIG" && \
13082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13083 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; }; then
13087 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13088 test "x$?" != "x0" && pkg_failed=yes
13089 else
13090 pkg_failed=yes
13091 fi
13092 else
13093 pkg_failed=untried
13094 fi
13095
13096 if test $pkg_failed = no; then
13097 pkg_save_LDFLAGS="$LDFLAGS"
13098 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101
13102 int
13103 main ()
13104 {
13105
13106 ;
13107 return 0;
13108 }
13109 _ACEOF
13110 if ac_fn_c_try_link "$LINENO"; then :
13111
13112 else
13113 pkg_failed=yes
13114 fi
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 LDFLAGS=$pkg_save_LDFLAGS
13118 fi
13119
13120
13121
13122 if test $pkg_failed = yes; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125
13126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13127 _pkg_short_errors_supported=yes
13128 else
13129 _pkg_short_errors_supported=no
13130 fi
13131 if test $_pkg_short_errors_supported = yes; then
13132 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13133 else
13134 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13135 fi
13136 # Put the nasty error message in config.log where it belongs
13137 echo "$SDL_PKG_ERRORS" >&5
13138
13139
13140
13141 pkg_failed=no
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13143 $as_echo_n "checking for sdl... " >&6; }
13144
13145 if test -n "$SDL_CFLAGS"; then
13146 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13147 elif test -n "$PKG_CONFIG"; then
13148 if test -n "$PKG_CONFIG" && \
13149 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13150 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13151 ac_status=$?
13152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13153 test $ac_status = 0; }; then
13154 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13155 test "x$?" != "x0" && pkg_failed=yes
13156 else
13157 pkg_failed=yes
13158 fi
13159 else
13160 pkg_failed=untried
13161 fi
13162 if test -n "$SDL_LIBS"; then
13163 pkg_cv_SDL_LIBS="$SDL_LIBS"
13164 elif test -n "$PKG_CONFIG"; then
13165 if test -n "$PKG_CONFIG" && \
13166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13167 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13168 ac_status=$?
13169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13170 test $ac_status = 0; }; then
13171 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13172 test "x$?" != "x0" && pkg_failed=yes
13173 else
13174 pkg_failed=yes
13175 fi
13176 else
13177 pkg_failed=untried
13178 fi
13179
13180 if test $pkg_failed = no; then
13181 pkg_save_LDFLAGS="$LDFLAGS"
13182 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185
13186 int
13187 main ()
13188 {
13189
13190 ;
13191 return 0;
13192 }
13193 _ACEOF
13194 if ac_fn_c_try_link "$LINENO"; then :
13195
13196 else
13197 pkg_failed=yes
13198 fi
13199 rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13201 LDFLAGS=$pkg_save_LDFLAGS
13202 fi
13203
13204
13205
13206 if test $pkg_failed = yes; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209
13210 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13211 _pkg_short_errors_supported=yes
13212 else
13213 _pkg_short_errors_supported=no
13214 fi
13215 if test $_pkg_short_errors_supported = yes; then
13216 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13217 else
13218 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13219 fi
13220 # Put the nasty error message in config.log where it belongs
13221 echo "$SDL_PKG_ERRORS" >&5
13222
13223 :
13224 elif test $pkg_failed = untried; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227 :
13228 else
13229 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13230 SDL_LIBS=$pkg_cv_SDL_LIBS
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13232 $as_echo "yes" >&6; }
13233 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13234
13235 fi
13236
13237 elif test $pkg_failed = untried; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239 $as_echo "no" >&6; }
13240
13241
13242 pkg_failed=no
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13244 $as_echo_n "checking for sdl... " >&6; }
13245
13246 if test -n "$SDL_CFLAGS"; then
13247 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13248 elif test -n "$PKG_CONFIG"; then
13249 if test -n "$PKG_CONFIG" && \
13250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13251 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13252 ac_status=$?
13253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13254 test $ac_status = 0; }; then
13255 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13256 test "x$?" != "x0" && pkg_failed=yes
13257 else
13258 pkg_failed=yes
13259 fi
13260 else
13261 pkg_failed=untried
13262 fi
13263 if test -n "$SDL_LIBS"; then
13264 pkg_cv_SDL_LIBS="$SDL_LIBS"
13265 elif test -n "$PKG_CONFIG"; then
13266 if test -n "$PKG_CONFIG" && \
13267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13268 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13269 ac_status=$?
13270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271 test $ac_status = 0; }; then
13272 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13273 test "x$?" != "x0" && pkg_failed=yes
13274 else
13275 pkg_failed=yes
13276 fi
13277 else
13278 pkg_failed=untried
13279 fi
13280
13281 if test $pkg_failed = no; then
13282 pkg_save_LDFLAGS="$LDFLAGS"
13283 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286
13287 int
13288 main ()
13289 {
13290
13291 ;
13292 return 0;
13293 }
13294 _ACEOF
13295 if ac_fn_c_try_link "$LINENO"; then :
13296
13297 else
13298 pkg_failed=yes
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13302 LDFLAGS=$pkg_save_LDFLAGS
13303 fi
13304
13305
13306
13307 if test $pkg_failed = yes; then
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310
13311 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13312 _pkg_short_errors_supported=yes
13313 else
13314 _pkg_short_errors_supported=no
13315 fi
13316 if test $_pkg_short_errors_supported = yes; then
13317 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13318 else
13319 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13320 fi
13321 # Put the nasty error message in config.log where it belongs
13322 echo "$SDL_PKG_ERRORS" >&5
13323
13324 :
13325 elif test $pkg_failed = untried; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 :
13329 else
13330 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13331 SDL_LIBS=$pkg_cv_SDL_LIBS
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13333 $as_echo "yes" >&6; }
13334 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13335
13336 fi
13337
13338 else
13339 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13340 SDL_LIBS=$pkg_cv_SDL_LIBS
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13342 $as_echo "yes" >&6; }
13343 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13344
13345 fi
13346 if test -n "$SDL_CFLAGS"; then :
13347 if test "$ac_cv_search_dlopen" = no; then :
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13349 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13350
13351 fi
13352
13353 fi
13354 else
13355 SDL_CFLAGS=
13356 fi
13357 SDL_LIBS=
13358
13359
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13361 $as_echo_n "checking for cygwin... " >&6; }
13362 if ${sim_cv_os_cygwin+:} false; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367
13368 #ifdef __CYGWIN__
13369 lose
13370 #endif
13371 _ACEOF
13372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13373 $EGREP "lose" >/dev/null 2>&1; then :
13374 sim_cv_os_cygwin=yes
13375 else
13376 sim_cv_os_cygwin=no
13377 fi
13378 rm -f conftest*
13379
13380 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13382 $as_echo "$sim_cv_os_cygwin" >&6; }
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13385 $as_echo_n "checking for library containing tgetent... " >&6; }
13386 if ${ac_cv_search_tgetent+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 ac_func_search_save_LIBS=$LIBS
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13396 #ifdef __cplusplus
13397 extern "C"
13398 #endif
13399 char tgetent ();
13400 int
13401 main ()
13402 {
13403 return tgetent ();
13404 ;
13405 return 0;
13406 }
13407 _ACEOF
13408 for ac_lib in '' termcap tinfo curses ncurses; do
13409 if test -z "$ac_lib"; then
13410 ac_res="none required"
13411 else
13412 ac_res=-l$ac_lib
13413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13414 fi
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 ac_cv_search_tgetent=$ac_res
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext
13420 if ${ac_cv_search_tgetent+:} false; then :
13421 break
13422 fi
13423 done
13424 if ${ac_cv_search_tgetent+:} false; then :
13425
13426 else
13427 ac_cv_search_tgetent=no
13428 fi
13429 rm conftest.$ac_ext
13430 LIBS=$ac_func_search_save_LIBS
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13433 $as_echo "$ac_cv_search_tgetent" >&6; }
13434 ac_res=$ac_cv_search_tgetent
13435 if test "$ac_res" != no; then :
13436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13437 TERMCAP_LIB=$ac_cv_search_tgetent
13438 else
13439 TERMCAP_LIB=""
13440 fi
13441
13442 if test x$sim_cv_os_cygwin = xyes; then
13443 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13444 fi
13445
13446
13447 if test -r ../readline/Makefile; then
13448 READLINE_LIB=../readline/readline/libreadline.a
13449 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13450 else
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13452 $as_echo_n "checking for readline in -lreadline... " >&6; }
13453 if ${ac_cv_lib_readline_readline+:} false; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 ac_check_lib_save_LIBS=$LIBS
13457 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460
13461 /* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
13464 #ifdef __cplusplus
13465 extern "C"
13466 #endif
13467 char readline ();
13468 int
13469 main ()
13470 {
13471 return readline ();
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_link "$LINENO"; then :
13477 ac_cv_lib_readline_readline=yes
13478 else
13479 ac_cv_lib_readline_readline=no
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext \
13482 conftest$ac_exeext conftest.$ac_ext
13483 LIBS=$ac_check_lib_save_LIBS
13484 fi
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13486 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13487 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13488 READLINE_LIB=-lreadline
13489 else
13490 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13491 fi
13492
13493 READLINE_CFLAGS=
13494 fi
13495
13496
13497
13498
13499
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13501 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13502 # Check whether --enable-maintainer-mode was given.
13503 if test "${enable_maintainer_mode+set}" = set; then :
13504 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13505 else
13506 USE_MAINTAINER_MODE=no
13507 fi
13508
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13510 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13511 if test $USE_MAINTAINER_MODE = yes; then
13512 MAINTAINER_MODE_TRUE=
13513 MAINTAINER_MODE_FALSE='#'
13514 else
13515 MAINTAINER_MODE_TRUE='#'
13516 MAINTAINER_MODE_FALSE=
13517 fi
13518
13519 MAINT=$MAINTAINER_MODE_TRUE
13520
13521
13522 am__api_version='1.15'
13523
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13525 $as_echo_n "checking whether build environment is sane... " >&6; }
13526 # Reject unsafe characters in $srcdir or the absolute working directory
13527 # name. Accept space and tab only in the latter.
13528 am_lf='
13529 '
13530 case `pwd` in
13531 *[\\\"\#\$\&\'\`$am_lf]*)
13532 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13533 esac
13534 case $srcdir in
13535 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13536 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13537 esac
13538
13539 # Do 'set' in a subshell so we don't clobber the current shell's
13540 # arguments. Must try -L first in case configure is actually a
13541 # symlink; some systems play weird games with the mod time of symlinks
13542 # (eg FreeBSD returns the mod time of the symlink's containing
13543 # directory).
13544 if (
13545 am_has_slept=no
13546 for am_try in 1 2; do
13547 echo "timestamp, slept: $am_has_slept" > conftest.file
13548 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13549 if test "$*" = "X"; then
13550 # -L didn't work.
13551 set X `ls -t "$srcdir/configure" conftest.file`
13552 fi
13553 if test "$*" != "X $srcdir/configure conftest.file" \
13554 && test "$*" != "X conftest.file $srcdir/configure"; then
13555
13556 # If neither matched, then we have a broken ls. This can happen
13557 # if, for instance, CONFIG_SHELL is bash and it inherits a
13558 # broken ls alias from the environment. This has actually
13559 # happened. Such a system could not be considered "sane".
13560 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13561 alias in your environment" "$LINENO" 5
13562 fi
13563 if test "$2" = conftest.file || test $am_try -eq 2; then
13564 break
13565 fi
13566 # Just in case.
13567 sleep 1
13568 am_has_slept=yes
13569 done
13570 test "$2" = conftest.file
13571 )
13572 then
13573 # Ok.
13574 :
13575 else
13576 as_fn_error $? "newly created file is older than distributed files!
13577 Check your system clock" "$LINENO" 5
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13580 $as_echo "yes" >&6; }
13581 # If we didn't sleep, we still need to ensure time stamps of config.status and
13582 # generated files are strictly newer.
13583 am_sleep_pid=
13584 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13585 ( sleep 1 ) &
13586 am_sleep_pid=$!
13587 fi
13588
13589 rm -f conftest.file
13590
13591 if test x"${MISSING+set}" != xset; then
13592 case $am_aux_dir in
13593 *\ * | *\ *)
13594 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13595 *)
13596 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13597 esac
13598 fi
13599 # Use eval to expand $SHELL
13600 if eval "$MISSING --is-lightweight"; then
13601 am_missing_run="$MISSING "
13602 else
13603 am_missing_run=
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13605 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13606 fi
13607
13608 if test x"${install_sh+set}" != xset; then
13609 case $am_aux_dir in
13610 *\ * | *\ *)
13611 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13612 *)
13613 install_sh="\${SHELL} $am_aux_dir/install-sh"
13614 esac
13615 fi
13616
13617 # Installed binaries are usually stripped using 'strip' when the user
13618 # run "make install-strip". However 'strip' might not be the right
13619 # tool to use in cross-compilation environments, therefore Automake
13620 # will honor the 'STRIP' environment variable to overrule this program.
13621 if test "$cross_compiling" != no; then
13622 if test -n "$ac_tool_prefix"; then
13623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13624 set dummy ${ac_tool_prefix}strip; ac_word=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if ${ac_cv_prog_STRIP+:} false; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 if test -n "$STRIP"; then
13631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13632 else
13633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in $PATH
13635 do
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644 done
13645 done
13646 IFS=$as_save_IFS
13647
13648 fi
13649 fi
13650 STRIP=$ac_cv_prog_STRIP
13651 if test -n "$STRIP"; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13653 $as_echo "$STRIP" >&6; }
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657 fi
13658
13659
13660 fi
13661 if test -z "$ac_cv_prog_STRIP"; then
13662 ac_ct_STRIP=$STRIP
13663 # Extract the first word of "strip", so it can be a program name with args.
13664 set dummy strip; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 if test -n "$ac_ct_STRIP"; then
13671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13680 ac_cv_prog_ac_ct_STRIP="strip"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13683 fi
13684 done
13685 done
13686 IFS=$as_save_IFS
13687
13688 fi
13689 fi
13690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13691 if test -n "$ac_ct_STRIP"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13693 $as_echo "$ac_ct_STRIP" >&6; }
13694 else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13697 fi
13698
13699 if test "x$ac_ct_STRIP" = x; then
13700 STRIP=":"
13701 else
13702 case $cross_compiling:$ac_tool_warned in
13703 yes:)
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13706 ac_tool_warned=yes ;;
13707 esac
13708 STRIP=$ac_ct_STRIP
13709 fi
13710 else
13711 STRIP="$ac_cv_prog_STRIP"
13712 fi
13713
13714 fi
13715 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13718 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13719 if test -z "$MKDIR_P"; then
13720 if ${ac_cv_path_mkdir+:} false; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13725 do
13726 IFS=$as_save_IFS
13727 test -z "$as_dir" && as_dir=.
13728 for ac_prog in mkdir gmkdir; do
13729 for ac_exec_ext in '' $ac_executable_extensions; do
13730 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13731 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13732 'mkdir (GNU coreutils) '* | \
13733 'mkdir (coreutils) '* | \
13734 'mkdir (fileutils) '4.1*)
13735 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13736 break 3;;
13737 esac
13738 done
13739 done
13740 done
13741 IFS=$as_save_IFS
13742
13743 fi
13744
13745 test -d ./--version && rmdir ./--version
13746 if test "${ac_cv_path_mkdir+set}" = set; then
13747 MKDIR_P="$ac_cv_path_mkdir -p"
13748 else
13749 # As a last resort, use the slow shell script. Don't cache a
13750 # value for MKDIR_P within a source directory, because that will
13751 # break other packages using the cache if that directory is
13752 # removed, or if the value is a relative name.
13753 MKDIR_P="$ac_install_sh -d"
13754 fi
13755 fi
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13757 $as_echo "$MKDIR_P" >&6; }
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13760 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13761 set x ${MAKE-make}
13762 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13763 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 cat >conftest.make <<\_ACEOF
13767 SHELL = /bin/sh
13768 all:
13769 @echo '@@@%%%=$(MAKE)=@@@%%%'
13770 _ACEOF
13771 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13772 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13773 *@@@%%%=?*=@@@%%%*)
13774 eval ac_cv_prog_make_${ac_make}_set=yes;;
13775 *)
13776 eval ac_cv_prog_make_${ac_make}_set=no;;
13777 esac
13778 rm -f conftest.make
13779 fi
13780 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13783 SET_MAKE=
13784 else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13787 SET_MAKE="MAKE=${MAKE-make}"
13788 fi
13789
13790 rm -rf .tst 2>/dev/null
13791 mkdir .tst 2>/dev/null
13792 if test -d .tst; then
13793 am__leading_dot=.
13794 else
13795 am__leading_dot=_
13796 fi
13797 rmdir .tst 2>/dev/null
13798
13799 DEPDIR="${am__leading_dot}deps"
13800
13801 ac_config_commands="$ac_config_commands depfiles"
13802
13803
13804 am_make=${MAKE-make}
13805 cat > confinc << 'END'
13806 am__doit:
13807 @echo this is the am__doit target
13808 .PHONY: am__doit
13809 END
13810 # If we don't find an include directive, just comment out the code.
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13812 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13813 am__include="#"
13814 am__quote=
13815 _am_result=none
13816 # First try GNU make style include.
13817 echo "include confinc" > confmf
13818 # Ignore all kinds of additional output from 'make'.
13819 case `$am_make -s -f confmf 2> /dev/null` in #(
13820 *the\ am__doit\ target*)
13821 am__include=include
13822 am__quote=
13823 _am_result=GNU
13824 ;;
13825 esac
13826 # Now try BSD make style include.
13827 if test "$am__include" = "#"; then
13828 echo '.include "confinc"' > confmf
13829 case `$am_make -s -f confmf 2> /dev/null` in #(
13830 *the\ am__doit\ target*)
13831 am__include=.include
13832 am__quote="\""
13833 _am_result=BSD
13834 ;;
13835 esac
13836 fi
13837
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13840 $as_echo "$_am_result" >&6; }
13841 rm -f confinc confmf
13842
13843 # Check whether --enable-dependency-tracking was given.
13844 if test "${enable_dependency_tracking+set}" = set; then :
13845 enableval=$enable_dependency_tracking;
13846 fi
13847
13848 if test "x$enable_dependency_tracking" != xno; then
13849 am_depcomp="$ac_aux_dir/depcomp"
13850 AMDEPBACKSLASH='\'
13851 am__nodep='_no'
13852 fi
13853 if test "x$enable_dependency_tracking" != xno; then
13854 AMDEP_TRUE=
13855 AMDEP_FALSE='#'
13856 else
13857 AMDEP_TRUE='#'
13858 AMDEP_FALSE=
13859 fi
13860
13861
13862 # Check whether --enable-silent-rules was given.
13863 if test "${enable_silent_rules+set}" = set; then :
13864 enableval=$enable_silent_rules;
13865 fi
13866
13867 case $enable_silent_rules in # (((
13868 yes) AM_DEFAULT_VERBOSITY=0;;
13869 no) AM_DEFAULT_VERBOSITY=1;;
13870 *) AM_DEFAULT_VERBOSITY=1;;
13871 esac
13872 am_make=${MAKE-make}
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13874 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13875 if ${am_cv_make_support_nested_variables+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 if $as_echo 'TRUE=$(BAR$(V))
13879 BAR0=false
13880 BAR1=true
13881 V=1
13882 am__doit:
13883 @$(TRUE)
13884 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13885 am_cv_make_support_nested_variables=yes
13886 else
13887 am_cv_make_support_nested_variables=no
13888 fi
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13891 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13892 if test $am_cv_make_support_nested_variables = yes; then
13893 AM_V='$(V)'
13894 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13895 else
13896 AM_V=$AM_DEFAULT_VERBOSITY
13897 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13898 fi
13899 AM_BACKSLASH='\'
13900
13901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13903 # is not polluted with repeated "-I."
13904 am__isrc=' -I$(srcdir)'
13905 # test to see if srcdir already configured
13906 if test -f $srcdir/config.status; then
13907 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13908 fi
13909 fi
13910
13911 # test whether we have cygpath
13912 if test -z "$CYGPATH_W"; then
13913 if (cygpath --version) >/dev/null 2>/dev/null; then
13914 CYGPATH_W='cygpath -w'
13915 else
13916 CYGPATH_W=echo
13917 fi
13918 fi
13919
13920
13921 # Define the identity of the package.
13922 PACKAGE='sim'
13923 VERSION='0'
13924
13925
13926 cat >>confdefs.h <<_ACEOF
13927 #define PACKAGE "$PACKAGE"
13928 _ACEOF
13929
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define VERSION "$VERSION"
13933 _ACEOF
13934
13935 # Some tools Automake needs.
13936
13937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13938
13939
13940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13941
13942
13943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13944
13945
13946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13947
13948
13949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13950
13951 # For better backward compatibility. To be removed once Automake 1.9.x
13952 # dies out for good. For more background, see:
13953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13954 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13955 mkdir_p='$(MKDIR_P)'
13956
13957 # We need awk for the "check" target (and possibly the TAP driver). The
13958 # system "awk" is bad on some platforms.
13959 # Always define AMTAR for backward compatibility. Yes, it's still used
13960 # in the wild :-( We should find a proper way to deprecate it ...
13961 AMTAR='$${TAR-tar}'
13962
13963
13964 # We'll loop over all known methods to create a tar archive until one works.
13965 _am_tools='gnutar pax cpio none'
13966
13967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13968
13969
13970
13971
13972
13973 depcc="$CC" am_compiler_list=
13974
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13976 $as_echo_n "checking dependency style of $depcc... " >&6; }
13977 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13981 # We make a subdir and do the tests there. Otherwise we can end up
13982 # making bogus files that we don't know about and never remove. For
13983 # instance it was reported that on HP-UX the gcc test will end up
13984 # making a dummy file named 'D' -- because '-MD' means "put the output
13985 # in D".
13986 rm -rf conftest.dir
13987 mkdir conftest.dir
13988 # Copy depcomp to subdir because otherwise we won't find it if we're
13989 # using a relative directory.
13990 cp "$am_depcomp" conftest.dir
13991 cd conftest.dir
13992 # We will build objects and dependencies in a subdirectory because
13993 # it helps to detect inapplicable dependency modes. For instance
13994 # both Tru64's cc and ICC support -MD to output dependencies as a
13995 # side effect of compilation, but ICC will put the dependencies in
13996 # the current directory while Tru64 will put them in the object
13997 # directory.
13998 mkdir sub
13999
14000 am_cv_CC_dependencies_compiler_type=none
14001 if test "$am_compiler_list" = ""; then
14002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14003 fi
14004 am__universal=false
14005 case " $depcc " in #(
14006 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14007 esac
14008
14009 for depmode in $am_compiler_list; do
14010 # Setup a source with many dependencies, because some compilers
14011 # like to wrap large dependency lists on column 80 (with \), and
14012 # we should not choose a depcomp mode which is confused by this.
14013 #
14014 # We need to recreate these files for each test, as the compiler may
14015 # overwrite some of them when testing with obscure command lines.
14016 # This happens at least with the AIX C compiler.
14017 : > sub/conftest.c
14018 for i in 1 2 3 4 5 6; do
14019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14020 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14021 # Solaris 10 /bin/sh.
14022 echo '/* dummy */' > sub/conftst$i.h
14023 done
14024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14025
14026 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14027 # mode. It turns out that the SunPro C++ compiler does not properly
14028 # handle '-M -o', and we need to detect this. Also, some Intel
14029 # versions had trouble with output in subdirs.
14030 am__obj=sub/conftest.${OBJEXT-o}
14031 am__minus_obj="-o $am__obj"
14032 case $depmode in
14033 gcc)
14034 # This depmode causes a compiler race in universal mode.
14035 test "$am__universal" = false || continue
14036 ;;
14037 nosideeffect)
14038 # After this tag, mechanisms are not by side-effect, so they'll
14039 # only be used when explicitly requested.
14040 if test "x$enable_dependency_tracking" = xyes; then
14041 continue
14042 else
14043 break
14044 fi
14045 ;;
14046 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14047 # This compiler won't grok '-c -o', but also, the minuso test has
14048 # not run yet. These depmodes are late enough in the game, and
14049 # so weak that their functioning should not be impacted.
14050 am__obj=conftest.${OBJEXT-o}
14051 am__minus_obj=
14052 ;;
14053 none) break ;;
14054 esac
14055 if depmode=$depmode \
14056 source=sub/conftest.c object=$am__obj \
14057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14059 >/dev/null 2>conftest.err &&
14060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14064 # icc doesn't choke on unknown options, it will just issue warnings
14065 # or remarks (even with -Werror). So we grep stderr for any message
14066 # that says an option was ignored or not supported.
14067 # When given -MP, icc 7.0 and 7.1 complain thusly:
14068 # icc: Command line warning: ignoring option '-M'; no argument required
14069 # The diagnosis changed in icc 8.0:
14070 # icc: Command line remark: option '-MP' not supported
14071 if (grep 'ignoring option' conftest.err ||
14072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14073 am_cv_CC_dependencies_compiler_type=$depmode
14074 break
14075 fi
14076 fi
14077 done
14078
14079 cd ..
14080 rm -rf conftest.dir
14081 else
14082 am_cv_CC_dependencies_compiler_type=none
14083 fi
14084
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14087 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14088 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14089
14090 if
14091 test "x$enable_dependency_tracking" != xno \
14092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14093 am__fastdepCC_TRUE=
14094 am__fastdepCC_FALSE='#'
14095 else
14096 am__fastdepCC_TRUE='#'
14097 am__fastdepCC_FALSE=
14098 fi
14099
14100
14101
14102 # POSIX will say in a future version that running "rm -f" with no argument
14103 # is OK; and we want to be able to make that assumption in our Makefile
14104 # recipes. So use an aggressive probe to check that the usage we want is
14105 # actually supported "in the wild" to an acceptable degree.
14106 # See automake bug#10828.
14107 # To make any issue more visible, cause the running configure to be aborted
14108 # by default if the 'rm' program in use doesn't match our expectations; the
14109 # user can still override this though.
14110 if rm -f && rm -fr && rm -rf; then : OK; else
14111 cat >&2 <<'END'
14112 Oops!
14113
14114 Your 'rm' program seems unable to run without file operands specified
14115 on the command line, even when the '-f' option is present. This is contrary
14116 to the behaviour of most rm programs out there, and not conforming with
14117 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14118
14119 Please tell bug-automake@gnu.org about your system, including the value
14120 of your $PATH and any error possibly output before this message. This
14121 can help us improve future automake versions.
14122
14123 END
14124 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14125 echo 'Configuration will proceed anyway, since you have set the' >&2
14126 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14127 echo >&2
14128 else
14129 cat >&2 <<'END'
14130 Aborting the configuration process, to ensure you take notice of the issue.
14131
14132 You can download and install GNU coreutils to get an 'rm' implementation
14133 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14134
14135 If you want to complete the configuration process using your problematic
14136 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14137 to "yes", and re-run configure.
14138
14139 END
14140 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14141 fi
14142 fi
14143
14144 # Check whether --enable-silent-rules was given.
14145 if test "${enable_silent_rules+set}" = set; then :
14146 enableval=$enable_silent_rules;
14147 fi
14148
14149 case $enable_silent_rules in # (((
14150 yes) AM_DEFAULT_VERBOSITY=0;;
14151 no) AM_DEFAULT_VERBOSITY=1;;
14152 *) AM_DEFAULT_VERBOSITY=0;;
14153 esac
14154 am_make=${MAKE-make}
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14156 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14157 if ${am_cv_make_support_nested_variables+:} false; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 if $as_echo 'TRUE=$(BAR$(V))
14161 BAR0=false
14162 BAR1=true
14163 V=1
14164 am__doit:
14165 @$(TRUE)
14166 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14167 am_cv_make_support_nested_variables=yes
14168 else
14169 am_cv_make_support_nested_variables=no
14170 fi
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14173 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14174 if test $am_cv_make_support_nested_variables = yes; then
14175 AM_V='$(V)'
14176 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14177 else
14178 AM_V=$AM_DEFAULT_VERBOSITY
14179 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14180 fi
14181 AM_BACKSLASH='\'
14182
14183
14184 # If a cpu ever has more than one simulator to choose from, use
14185 # --enable-sim=... to choose.
14186 # Check whether --enable-sim was given.
14187 if test "${enable_sim+set}" = set; then :
14188 enableval=$enable_sim; case "${enableval}" in
14189 yes | no) ;;
14190 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14191 esac
14192 fi
14193
14194
14195 # Check whether --enable-example-sims was given.
14196 if test "${enable_example_sims+set}" = set; then :
14197 enableval=$enable_example_sims;
14198 fi
14199
14200
14201 # Check whether --enable-targets was given.
14202 if test "${enable_targets+set}" = set; then :
14203 enableval=$enable_targets; case "${enableval}" in
14204 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14205 ;;
14206 no) enable_targets= ;;
14207 *) enable_targets=$enableval ;;
14208 esac
14209 fi
14210
14211
14212 SIM_PRIMARY_TARGET=
14213
14214
14215 SIM_SUBDIRS=
14216
14217
14218 SIM_ENABLED_ARCHES=
14219
14220
14221 SIM_COMMON_BUILD_TRUE=
14222 SIM_COMMON_BUILD_FALSE='#'
14223
14224
14225
14226 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
14227
14228
14229
14230
14231 if test "${enable_sim}" != no; then
14232 sim_igen=no
14233 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14234 do
14235 sim_enable_arch_aarch64=false
14236 case "${targ}" in
14237 all|aarch64*-*-*)
14238 if test "${targ}" = "${target}"; then
14239 SIM_PRIMARY_TARGET=aarch64
14240 fi
14241 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14242 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
14243
14244 ac_config_commands="$ac_config_commands aarch64/Makefile"
14245
14246 as_fn_append SIM_SUBDIRS " aarch64"
14247
14248 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14249
14250 ac_config_commands="$ac_config_commands depdir-aarch64"
14251
14252
14253 sim_enable_arch_aarch64=true
14254
14255 ;;
14256 esac
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14258 $as_echo_n "checking where to find the target cc... " >&6; }
14259 if test "x${build}" != "x${host}" ; then
14260 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14261 # We already found the complete path
14262 ac_dir=`dirname $CC_FOR_TARGET`
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14264 $as_echo "pre-installed in $ac_dir" >&6; }
14265 else
14266 # Canadian cross, just use what we found
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14268 $as_echo "pre-installed" >&6; }
14269 fi
14270 else
14271 ok=yes
14272 case " ${configdirs} " in
14273 *" ${target_alias}-gcc "*) ;;
14274 *) ok=no ;;
14275 esac
14276
14277 if test $ok = yes; then
14278 # An in-tree tool is available and we can use it
14279 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14281 $as_echo "just compiled" >&6; }
14282 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14283 # We already found the complete path
14284 ac_dir=`dirname $CC_FOR_TARGET`
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14286 $as_echo "pre-installed in $ac_dir" >&6; }
14287 elif test "x$target" = "x$host"; then
14288 # We can use an host tool
14289 CC_FOR_TARGET='$(CC)'
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14291 $as_echo "host tool" >&6; }
14292 else
14293 # We need a cross tool
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14295 $as_echo "pre-installed" >&6; }
14296 fi
14297 fi
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14300 $as_echo_n "checking where to find the target as... " >&6; }
14301 if test "x${build}" != "x${host}" ; then
14302 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14303 # We already found the complete path
14304 ac_dir=`dirname $AS_FOR_TARGET`
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14306 $as_echo "pre-installed in $ac_dir" >&6; }
14307 else
14308 # Canadian cross, just use what we found
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14310 $as_echo "pre-installed" >&6; }
14311 fi
14312 else
14313 ok=yes
14314 case " ${configdirs} " in
14315 *" \$(abs_builddir) "*) ;;
14316 *) ok=no ;;
14317 esac
14318
14319 if test $ok = yes; then
14320 # An in-tree tool is available and we can use it
14321 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14323 $as_echo "just compiled" >&6; }
14324 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14325 # We already found the complete path
14326 ac_dir=`dirname $AS_FOR_TARGET`
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14328 $as_echo "pre-installed in $ac_dir" >&6; }
14329 elif test "x$target" = "x$host"; then
14330 # We can use an host tool
14331 AS_FOR_TARGET='$(AS)'
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14333 $as_echo "host tool" >&6; }
14334 else
14335 # We need a cross tool
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14337 $as_echo "pre-installed" >&6; }
14338 fi
14339 fi
14340
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14342 $as_echo_n "checking where to find the target ld... " >&6; }
14343 if test "x${build}" != "x${host}" ; then
14344 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14345 # We already found the complete path
14346 ac_dir=`dirname $LD_FOR_TARGET`
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14348 $as_echo "pre-installed in $ac_dir" >&6; }
14349 else
14350 # Canadian cross, just use what we found
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14352 $as_echo "pre-installed" >&6; }
14353 fi
14354 else
14355 ok=yes
14356 case " ${configdirs} " in
14357 *" \$(abs_builddir) "*) ;;
14358 *) ok=no ;;
14359 esac
14360
14361 if test $ok = yes; then
14362 # An in-tree tool is available and we can use it
14363 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14365 $as_echo "just compiled" >&6; }
14366 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14367 # We already found the complete path
14368 ac_dir=`dirname $LD_FOR_TARGET`
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14370 $as_echo "pre-installed in $ac_dir" >&6; }
14371 elif test "x$target" = "x$host"; then
14372 # We can use an host tool
14373 LD_FOR_TARGET='$(LD)'
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14375 $as_echo "host tool" >&6; }
14376 else
14377 # We need a cross tool
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14379 $as_echo "pre-installed" >&6; }
14380 fi
14381 fi
14382
14383
14384
14385
14386
14387
14388 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14389 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14390 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14391 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14392
14393 fi
14394
14395 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14396
14397 if ${sim_enable_arch_aarch64}; then
14398 SIM_ENABLE_ARCH_aarch64_TRUE=
14399 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14400 else
14401 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14402 SIM_ENABLE_ARCH_aarch64_FALSE=
14403 fi
14404
14405
14406 sim_enable_arch_arm=false
14407 case "${targ}" in
14408 all|arm*-*-*)
14409 if test "${targ}" = "${target}"; then
14410 SIM_PRIMARY_TARGET=arm
14411 fi
14412 as_fn_append SIM_ENABLED_ARCHES " arm"
14413 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14414
14415 ac_config_commands="$ac_config_commands arm/Makefile"
14416
14417 as_fn_append SIM_SUBDIRS " arm"
14418
14419 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14420
14421 ac_config_commands="$ac_config_commands depdir-arm"
14422
14423
14424 sim_enable_arch_arm=true
14425
14426 ;;
14427 esac
14428
14429
14430
14431
14432 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14433 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14434 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14435 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14436
14437 fi
14438
14439 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14440
14441 if ${sim_enable_arch_arm}; then
14442 SIM_ENABLE_ARCH_arm_TRUE=
14443 SIM_ENABLE_ARCH_arm_FALSE='#'
14444 else
14445 SIM_ENABLE_ARCH_arm_TRUE='#'
14446 SIM_ENABLE_ARCH_arm_FALSE=
14447 fi
14448
14449
14450 sim_enable_arch_avr=false
14451 case "${targ}" in
14452 all|avr*-*-*)
14453 if test "${targ}" = "${target}"; then
14454 SIM_PRIMARY_TARGET=avr
14455 fi
14456 as_fn_append SIM_ENABLED_ARCHES " avr"
14457 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14458
14459 ac_config_commands="$ac_config_commands avr/Makefile"
14460
14461 as_fn_append SIM_SUBDIRS " avr"
14462
14463 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14464
14465 ac_config_commands="$ac_config_commands depdir-avr"
14466
14467
14468 sim_enable_arch_avr=true
14469
14470 ;;
14471 esac
14472
14473
14474
14475
14476 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14477 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14478 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14479 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14480
14481 fi
14482
14483 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14484
14485 if ${sim_enable_arch_avr}; then
14486 SIM_ENABLE_ARCH_avr_TRUE=
14487 SIM_ENABLE_ARCH_avr_FALSE='#'
14488 else
14489 SIM_ENABLE_ARCH_avr_TRUE='#'
14490 SIM_ENABLE_ARCH_avr_FALSE=
14491 fi
14492
14493
14494 sim_enable_arch_bfin=false
14495 case "${targ}" in
14496 all|bfin-*-*)
14497 if test "${targ}" = "${target}"; then
14498 SIM_PRIMARY_TARGET=bfin
14499 fi
14500 as_fn_append SIM_ENABLED_ARCHES " bfin"
14501 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14502
14503 ac_config_commands="$ac_config_commands bfin/Makefile"
14504
14505 as_fn_append SIM_SUBDIRS " bfin"
14506
14507 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14508
14509 ac_config_commands="$ac_config_commands depdir-bfin"
14510
14511
14512 sim_enable_arch_bfin=true
14513
14514 ;;
14515 esac
14516
14517
14518
14519
14520 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14521 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14522 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14523 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14524
14525 fi
14526
14527 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14528
14529 if ${sim_enable_arch_bfin}; then
14530 SIM_ENABLE_ARCH_bfin_TRUE=
14531 SIM_ENABLE_ARCH_bfin_FALSE='#'
14532 else
14533 SIM_ENABLE_ARCH_bfin_TRUE='#'
14534 SIM_ENABLE_ARCH_bfin_FALSE=
14535 fi
14536
14537
14538 sim_enable_arch_bpf=false
14539 case "${targ}" in
14540 all|bpf-*-*)
14541 if test "${targ}" = "${target}"; then
14542 SIM_PRIMARY_TARGET=bpf
14543 fi
14544 as_fn_append SIM_ENABLED_ARCHES " bpf"
14545 ac_config_files="$ac_config_files bpf/Makefile.sim:bpf/Makefile.in"
14546
14547 ac_config_commands="$ac_config_commands bpf/Makefile"
14548
14549 as_fn_append SIM_SUBDIRS " bpf"
14550
14551 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14552
14553 ac_config_commands="$ac_config_commands depdir-bpf"
14554
14555
14556 sim_enable_arch_bpf=true
14557
14558 ;;
14559 esac
14560
14561
14562
14563
14564 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14565 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14566 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14567 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14568
14569 fi
14570
14571 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14572
14573 if ${sim_enable_arch_bpf}; then
14574 SIM_ENABLE_ARCH_bpf_TRUE=
14575 SIM_ENABLE_ARCH_bpf_FALSE='#'
14576 else
14577 SIM_ENABLE_ARCH_bpf_TRUE='#'
14578 SIM_ENABLE_ARCH_bpf_FALSE=
14579 fi
14580
14581
14582 sim_enable_arch_cr16=false
14583 case "${targ}" in
14584 all|cr16*-*-*)
14585 if test "${targ}" = "${target}"; then
14586 SIM_PRIMARY_TARGET=cr16
14587 fi
14588 as_fn_append SIM_ENABLED_ARCHES " cr16"
14589 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14590
14591 ac_config_commands="$ac_config_commands cr16/Makefile"
14592
14593 as_fn_append SIM_SUBDIRS " cr16"
14594
14595 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14596
14597 ac_config_commands="$ac_config_commands depdir-cr16"
14598
14599
14600 sim_enable_arch_cr16=true
14601
14602 ;;
14603 esac
14604
14605
14606
14607
14608 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14609 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14610 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14611 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14612
14613 fi
14614
14615 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14616
14617 if ${sim_enable_arch_cr16}; then
14618 SIM_ENABLE_ARCH_cr16_TRUE=
14619 SIM_ENABLE_ARCH_cr16_FALSE='#'
14620 else
14621 SIM_ENABLE_ARCH_cr16_TRUE='#'
14622 SIM_ENABLE_ARCH_cr16_FALSE=
14623 fi
14624
14625
14626 sim_enable_arch_cris=false
14627 case "${targ}" in
14628 all|cris-*-* | crisv32-*-*)
14629 if test "${targ}" = "${target}"; then
14630 SIM_PRIMARY_TARGET=cris
14631 fi
14632 as_fn_append SIM_ENABLED_ARCHES " cris"
14633 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14634
14635 ac_config_commands="$ac_config_commands cris/Makefile"
14636
14637 as_fn_append SIM_SUBDIRS " cris"
14638
14639 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14640
14641 ac_config_commands="$ac_config_commands depdir-cris"
14642
14643
14644 sim_enable_arch_cris=true
14645
14646 ;;
14647 esac
14648
14649
14650
14651
14652 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14653 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14654 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14655 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14656
14657 fi
14658
14659 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14660
14661 if ${sim_enable_arch_cris}; then
14662 SIM_ENABLE_ARCH_cris_TRUE=
14663 SIM_ENABLE_ARCH_cris_FALSE='#'
14664 else
14665 SIM_ENABLE_ARCH_cris_TRUE='#'
14666 SIM_ENABLE_ARCH_cris_FALSE=
14667 fi
14668
14669
14670 sim_enable_arch_d10v=false
14671 case "${targ}" in
14672 all|d10v-*-*)
14673 if test "${targ}" = "${target}"; then
14674 SIM_PRIMARY_TARGET=d10v
14675 fi
14676 as_fn_append SIM_ENABLED_ARCHES " d10v"
14677 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14678
14679 ac_config_commands="$ac_config_commands d10v/Makefile"
14680
14681 as_fn_append SIM_SUBDIRS " d10v"
14682
14683 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14684
14685 ac_config_commands="$ac_config_commands depdir-d10v"
14686
14687
14688 sim_enable_arch_d10v=true
14689
14690 ;;
14691 esac
14692
14693
14694
14695
14696 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14697 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14698 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14699 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14700
14701 fi
14702
14703 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14704
14705 if ${sim_enable_arch_d10v}; then
14706 SIM_ENABLE_ARCH_d10v_TRUE=
14707 SIM_ENABLE_ARCH_d10v_FALSE='#'
14708 else
14709 SIM_ENABLE_ARCH_d10v_TRUE='#'
14710 SIM_ENABLE_ARCH_d10v_FALSE=
14711 fi
14712
14713
14714 sim_enable_arch_frv=false
14715 case "${targ}" in
14716 all|frv-*-*)
14717 if test "${targ}" = "${target}"; then
14718 SIM_PRIMARY_TARGET=frv
14719 fi
14720 as_fn_append SIM_ENABLED_ARCHES " frv"
14721 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14722
14723 ac_config_commands="$ac_config_commands frv/Makefile"
14724
14725 as_fn_append SIM_SUBDIRS " frv"
14726
14727 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14728
14729 ac_config_commands="$ac_config_commands depdir-frv"
14730
14731
14732 sim_enable_arch_frv=true
14733
14734 ;;
14735 esac
14736
14737
14738
14739
14740 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14741 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14742 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14743 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14744
14745 fi
14746
14747 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14748
14749 if ${sim_enable_arch_frv}; then
14750 SIM_ENABLE_ARCH_frv_TRUE=
14751 SIM_ENABLE_ARCH_frv_FALSE='#'
14752 else
14753 SIM_ENABLE_ARCH_frv_TRUE='#'
14754 SIM_ENABLE_ARCH_frv_FALSE=
14755 fi
14756
14757
14758 sim_enable_arch_ft32=false
14759 case "${targ}" in
14760 all|ft32-*-*)
14761 if test "${targ}" = "${target}"; then
14762 SIM_PRIMARY_TARGET=ft32
14763 fi
14764 as_fn_append SIM_ENABLED_ARCHES " ft32"
14765 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
14766
14767 ac_config_commands="$ac_config_commands ft32/Makefile"
14768
14769 as_fn_append SIM_SUBDIRS " ft32"
14770
14771 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14772
14773 ac_config_commands="$ac_config_commands depdir-ft32"
14774
14775
14776 sim_enable_arch_ft32=true
14777
14778 ;;
14779 esac
14780
14781
14782
14783
14784 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14785 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14786 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14787 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14788
14789 fi
14790
14791 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14792
14793 if ${sim_enable_arch_ft32}; then
14794 SIM_ENABLE_ARCH_ft32_TRUE=
14795 SIM_ENABLE_ARCH_ft32_FALSE='#'
14796 else
14797 SIM_ENABLE_ARCH_ft32_TRUE='#'
14798 SIM_ENABLE_ARCH_ft32_FALSE=
14799 fi
14800
14801
14802 sim_enable_arch_h8300=false
14803 case "${targ}" in
14804 all|h8300*-*-*)
14805 if test "${targ}" = "${target}"; then
14806 SIM_PRIMARY_TARGET=h8300
14807 fi
14808 as_fn_append SIM_ENABLED_ARCHES " h8300"
14809 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
14810
14811 ac_config_commands="$ac_config_commands h8300/Makefile"
14812
14813 as_fn_append SIM_SUBDIRS " h8300"
14814
14815 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14816
14817 ac_config_commands="$ac_config_commands depdir-h8300"
14818
14819
14820 sim_enable_arch_h8300=true
14821
14822 ;;
14823 esac
14824
14825
14826
14827
14828 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14829 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14830 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14831 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14832
14833 fi
14834
14835 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14836
14837 if ${sim_enable_arch_h8300}; then
14838 SIM_ENABLE_ARCH_h8300_TRUE=
14839 SIM_ENABLE_ARCH_h8300_FALSE='#'
14840 else
14841 SIM_ENABLE_ARCH_h8300_TRUE='#'
14842 SIM_ENABLE_ARCH_h8300_FALSE=
14843 fi
14844
14845
14846 sim_enable_arch_iq2000=false
14847 case "${targ}" in
14848 all|iq2000-*-*)
14849 if test "${targ}" = "${target}"; then
14850 SIM_PRIMARY_TARGET=iq2000
14851 fi
14852 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14853 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
14854
14855 ac_config_commands="$ac_config_commands iq2000/Makefile"
14856
14857 as_fn_append SIM_SUBDIRS " iq2000"
14858
14859 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14860
14861 ac_config_commands="$ac_config_commands depdir-iq2000"
14862
14863
14864 sim_enable_arch_iq2000=true
14865
14866 ;;
14867 esac
14868
14869
14870
14871
14872 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14873 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14874 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14875 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14876
14877 fi
14878
14879 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14880
14881 if ${sim_enable_arch_iq2000}; then
14882 SIM_ENABLE_ARCH_iq2000_TRUE=
14883 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14884 else
14885 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14886 SIM_ENABLE_ARCH_iq2000_FALSE=
14887 fi
14888
14889
14890 sim_enable_arch_lm32=false
14891 case "${targ}" in
14892 all|lm32-*-*)
14893 if test "${targ}" = "${target}"; then
14894 SIM_PRIMARY_TARGET=lm32
14895 fi
14896 as_fn_append SIM_ENABLED_ARCHES " lm32"
14897 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
14898
14899 ac_config_commands="$ac_config_commands lm32/Makefile"
14900
14901 as_fn_append SIM_SUBDIRS " lm32"
14902
14903 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14904
14905 ac_config_commands="$ac_config_commands depdir-lm32"
14906
14907
14908 sim_enable_arch_lm32=true
14909
14910 ;;
14911 esac
14912
14913
14914
14915
14916 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14917 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14918 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14919 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14920
14921 fi
14922
14923 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14924
14925 if ${sim_enable_arch_lm32}; then
14926 SIM_ENABLE_ARCH_lm32_TRUE=
14927 SIM_ENABLE_ARCH_lm32_FALSE='#'
14928 else
14929 SIM_ENABLE_ARCH_lm32_TRUE='#'
14930 SIM_ENABLE_ARCH_lm32_FALSE=
14931 fi
14932
14933
14934 sim_enable_arch_m32c=false
14935 case "${targ}" in
14936 all|m32c-*-*)
14937 if test "${targ}" = "${target}"; then
14938 SIM_PRIMARY_TARGET=m32c
14939 fi
14940 as_fn_append SIM_ENABLED_ARCHES " m32c"
14941 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
14942
14943 ac_config_commands="$ac_config_commands m32c/Makefile"
14944
14945 as_fn_append SIM_SUBDIRS " m32c"
14946
14947 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14948
14949 ac_config_commands="$ac_config_commands depdir-m32c"
14950
14951
14952 sim_enable_arch_m32c=true
14953
14954 ;;
14955 esac
14956
14957
14958
14959
14960 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14961 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14962 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14963 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14964
14965 fi
14966
14967 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14968
14969 if ${sim_enable_arch_m32c}; then
14970 SIM_ENABLE_ARCH_m32c_TRUE=
14971 SIM_ENABLE_ARCH_m32c_FALSE='#'
14972 else
14973 SIM_ENABLE_ARCH_m32c_TRUE='#'
14974 SIM_ENABLE_ARCH_m32c_FALSE=
14975 fi
14976
14977
14978 sim_enable_arch_m32r=false
14979 case "${targ}" in
14980 all|m32r-*-*)
14981 if test "${targ}" = "${target}"; then
14982 SIM_PRIMARY_TARGET=m32r
14983 fi
14984 as_fn_append SIM_ENABLED_ARCHES " m32r"
14985 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
14986
14987 ac_config_commands="$ac_config_commands m32r/Makefile"
14988
14989 as_fn_append SIM_SUBDIRS " m32r"
14990
14991 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
14992
14993 ac_config_commands="$ac_config_commands depdir-m32r"
14994
14995
14996 sim_enable_arch_m32r=true
14997
14998 ;;
14999 esac
15000
15001
15002
15003
15004 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15005 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15006 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15007 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15008
15009 fi
15010
15011 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15012
15013 if ${sim_enable_arch_m32r}; then
15014 SIM_ENABLE_ARCH_m32r_TRUE=
15015 SIM_ENABLE_ARCH_m32r_FALSE='#'
15016 else
15017 SIM_ENABLE_ARCH_m32r_TRUE='#'
15018 SIM_ENABLE_ARCH_m32r_FALSE=
15019 fi
15020
15021
15022 sim_enable_arch_m68hc11=false
15023 case "${targ}" in
15024 all|m68hc11-*-*|m6811-*-*)
15025 if test "${targ}" = "${target}"; then
15026 SIM_PRIMARY_TARGET=m68hc11
15027 fi
15028 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
15029 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
15030
15031 ac_config_commands="$ac_config_commands m68hc11/Makefile"
15032
15033 as_fn_append SIM_SUBDIRS " m68hc11"
15034
15035 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15036
15037 ac_config_commands="$ac_config_commands depdir-m68hc11"
15038
15039
15040 sim_enable_arch_m68hc11=true
15041
15042 ;;
15043 esac
15044
15045
15046
15047
15048 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15049 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15050 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15051 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15052
15053 fi
15054
15055 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15056
15057 if ${sim_enable_arch_m68hc11}; then
15058 SIM_ENABLE_ARCH_m68hc11_TRUE=
15059 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15060 else
15061 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15062 SIM_ENABLE_ARCH_m68hc11_FALSE=
15063 fi
15064
15065
15066 sim_enable_arch_mcore=false
15067 case "${targ}" in
15068 all|mcore-*-*)
15069 if test "${targ}" = "${target}"; then
15070 SIM_PRIMARY_TARGET=mcore
15071 fi
15072 as_fn_append SIM_ENABLED_ARCHES " mcore"
15073 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
15074
15075 ac_config_commands="$ac_config_commands mcore/Makefile"
15076
15077 as_fn_append SIM_SUBDIRS " mcore"
15078
15079 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15080
15081 ac_config_commands="$ac_config_commands depdir-mcore"
15082
15083
15084 sim_enable_arch_mcore=true
15085
15086 ;;
15087 esac
15088
15089
15090
15091
15092 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15093 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15094 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15095 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15096
15097 fi
15098
15099 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15100
15101 if ${sim_enable_arch_mcore}; then
15102 SIM_ENABLE_ARCH_mcore_TRUE=
15103 SIM_ENABLE_ARCH_mcore_FALSE='#'
15104 else
15105 SIM_ENABLE_ARCH_mcore_TRUE='#'
15106 SIM_ENABLE_ARCH_mcore_FALSE=
15107 fi
15108
15109
15110 sim_enable_arch_microblaze=false
15111 case "${targ}" in
15112 all|microblaze*-*-*)
15113 if test "${targ}" = "${target}"; then
15114 SIM_PRIMARY_TARGET=microblaze
15115 fi
15116 as_fn_append SIM_ENABLED_ARCHES " microblaze"
15117 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
15118
15119 ac_config_commands="$ac_config_commands microblaze/Makefile"
15120
15121 as_fn_append SIM_SUBDIRS " microblaze"
15122
15123 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15124
15125 ac_config_commands="$ac_config_commands depdir-microblaze"
15126
15127
15128 sim_enable_arch_microblaze=true
15129
15130 ;;
15131 esac
15132
15133
15134
15135
15136 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15137 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15138 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15139 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15140
15141 fi
15142
15143 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15144
15145 if ${sim_enable_arch_microblaze}; then
15146 SIM_ENABLE_ARCH_microblaze_TRUE=
15147 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15148 else
15149 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15150 SIM_ENABLE_ARCH_microblaze_FALSE=
15151 fi
15152
15153
15154 sim_enable_arch_mips=false
15155 case "${targ}" in
15156 all|mips*-*-*)
15157 if test "${targ}" = "${target}"; then
15158 SIM_PRIMARY_TARGET=mips
15159 fi
15160 as_fn_append SIM_ENABLED_ARCHES " mips"
15161
15162
15163 subdirs="$subdirs mips"
15164
15165
15166 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
15167
15168 ac_config_commands="$ac_config_commands depdir-mips"
15169
15170
15171 sim_enable_arch_mips=true
15172 sim_igen=yes
15173 ;;
15174 esac
15175
15176
15177
15178
15179 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15180 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15181 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15182 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15183
15184 fi
15185
15186 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15187
15188 if ${sim_enable_arch_mips}; then
15189 SIM_ENABLE_ARCH_mips_TRUE=
15190 SIM_ENABLE_ARCH_mips_FALSE='#'
15191 else
15192 SIM_ENABLE_ARCH_mips_TRUE='#'
15193 SIM_ENABLE_ARCH_mips_FALSE=
15194 fi
15195
15196
15197 sim_enable_arch_mn10300=false
15198 case "${targ}" in
15199 all|mn10300*-*-*)
15200 if test "${targ}" = "${target}"; then
15201 SIM_PRIMARY_TARGET=mn10300
15202 fi
15203 as_fn_append SIM_ENABLED_ARCHES " mn10300"
15204 subdirs="$subdirs mn10300"
15205
15206
15207 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
15208
15209 ac_config_commands="$ac_config_commands depdir-mn10300"
15210
15211
15212 sim_enable_arch_mn10300=true
15213 sim_igen=yes
15214 ;;
15215 esac
15216
15217
15218
15219
15220 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15221 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15222 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15223 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15224
15225 fi
15226
15227 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15228
15229 if ${sim_enable_arch_mn10300}; then
15230 SIM_ENABLE_ARCH_mn10300_TRUE=
15231 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15232 else
15233 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15234 SIM_ENABLE_ARCH_mn10300_FALSE=
15235 fi
15236
15237
15238 sim_enable_arch_moxie=false
15239 case "${targ}" in
15240 all|moxie-*-*)
15241 if test "${targ}" = "${target}"; then
15242 SIM_PRIMARY_TARGET=moxie
15243 fi
15244 as_fn_append SIM_ENABLED_ARCHES " moxie"
15245 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
15246
15247 ac_config_commands="$ac_config_commands moxie/Makefile"
15248
15249 as_fn_append SIM_SUBDIRS " moxie"
15250
15251 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15252
15253 ac_config_commands="$ac_config_commands depdir-moxie"
15254
15255
15256 sim_enable_arch_moxie=true
15257
15258 ;;
15259 esac
15260
15261
15262
15263
15264 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15265 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15266 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15267 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15268
15269 fi
15270
15271 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15272
15273 if ${sim_enable_arch_moxie}; then
15274 SIM_ENABLE_ARCH_moxie_TRUE=
15275 SIM_ENABLE_ARCH_moxie_FALSE='#'
15276 else
15277 SIM_ENABLE_ARCH_moxie_TRUE='#'
15278 SIM_ENABLE_ARCH_moxie_FALSE=
15279 fi
15280
15281
15282 sim_enable_arch_msp430=false
15283 case "${targ}" in
15284 all|msp430*-*-*)
15285 if test "${targ}" = "${target}"; then
15286 SIM_PRIMARY_TARGET=msp430
15287 fi
15288 as_fn_append SIM_ENABLED_ARCHES " msp430"
15289 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
15290
15291 ac_config_commands="$ac_config_commands msp430/Makefile"
15292
15293 as_fn_append SIM_SUBDIRS " msp430"
15294
15295 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15296
15297 ac_config_commands="$ac_config_commands depdir-msp430"
15298
15299
15300 sim_enable_arch_msp430=true
15301
15302 ;;
15303 esac
15304
15305
15306
15307
15308 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15309 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15310 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15311 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15312
15313 fi
15314
15315 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15316
15317 if ${sim_enable_arch_msp430}; then
15318 SIM_ENABLE_ARCH_msp430_TRUE=
15319 SIM_ENABLE_ARCH_msp430_FALSE='#'
15320 else
15321 SIM_ENABLE_ARCH_msp430_TRUE='#'
15322 SIM_ENABLE_ARCH_msp430_FALSE=
15323 fi
15324
15325
15326 sim_enable_arch_or1k=false
15327 case "${targ}" in
15328 all|or1k*-*-*)
15329 if test "${targ}" = "${target}"; then
15330 SIM_PRIMARY_TARGET=or1k
15331 fi
15332 as_fn_append SIM_ENABLED_ARCHES " or1k"
15333 ac_config_files="$ac_config_files or1k/Makefile.sim:or1k/Makefile.in"
15334
15335 ac_config_commands="$ac_config_commands or1k/Makefile"
15336
15337 as_fn_append SIM_SUBDIRS " or1k"
15338
15339 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15340
15341 ac_config_commands="$ac_config_commands depdir-or1k"
15342
15343
15344 sim_enable_arch_or1k=true
15345
15346 ;;
15347 esac
15348
15349
15350
15351
15352 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15353 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15354 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15355 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15356
15357 fi
15358
15359 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15360
15361 if ${sim_enable_arch_or1k}; then
15362 SIM_ENABLE_ARCH_or1k_TRUE=
15363 SIM_ENABLE_ARCH_or1k_FALSE='#'
15364 else
15365 SIM_ENABLE_ARCH_or1k_TRUE='#'
15366 SIM_ENABLE_ARCH_or1k_FALSE=
15367 fi
15368
15369
15370 sim_enable_arch_ppc=false
15371 case "${targ}" in
15372 all|powerpc*-*-*)
15373 if test "${targ}" = "${target}"; then
15374 SIM_PRIMARY_TARGET=ppc
15375 fi
15376 as_fn_append SIM_ENABLED_ARCHES " ppc"
15377 subdirs="$subdirs ppc"
15378
15379
15380 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15381
15382 ac_config_commands="$ac_config_commands depdir-ppc"
15383
15384
15385 sim_enable_arch_ppc=true
15386
15387 ;;
15388 esac
15389
15390
15391
15392
15393 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15394 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15395 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15396 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15397
15398 fi
15399
15400 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15401
15402 if ${sim_enable_arch_ppc}; then
15403 SIM_ENABLE_ARCH_ppc_TRUE=
15404 SIM_ENABLE_ARCH_ppc_FALSE='#'
15405 else
15406 SIM_ENABLE_ARCH_ppc_TRUE='#'
15407 SIM_ENABLE_ARCH_ppc_FALSE=
15408 fi
15409
15410
15411 sim_enable_arch_pru=false
15412 case "${targ}" in
15413 all|pru*-*-*)
15414 if test "${targ}" = "${target}"; then
15415 SIM_PRIMARY_TARGET=pru
15416 fi
15417 as_fn_append SIM_ENABLED_ARCHES " pru"
15418 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
15419
15420 ac_config_commands="$ac_config_commands pru/Makefile"
15421
15422 as_fn_append SIM_SUBDIRS " pru"
15423
15424 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15425
15426 ac_config_commands="$ac_config_commands depdir-pru"
15427
15428
15429 sim_enable_arch_pru=true
15430
15431 ;;
15432 esac
15433
15434
15435
15436
15437 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15438 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15439 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15440 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15441
15442 fi
15443
15444 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15445
15446 if ${sim_enable_arch_pru}; then
15447 SIM_ENABLE_ARCH_pru_TRUE=
15448 SIM_ENABLE_ARCH_pru_FALSE='#'
15449 else
15450 SIM_ENABLE_ARCH_pru_TRUE='#'
15451 SIM_ENABLE_ARCH_pru_FALSE=
15452 fi
15453
15454
15455 sim_enable_arch_riscv=false
15456 case "${targ}" in
15457 all|riscv*-*-*)
15458 if test "${targ}" = "${target}"; then
15459 SIM_PRIMARY_TARGET=riscv
15460 fi
15461 as_fn_append SIM_ENABLED_ARCHES " riscv"
15462 ac_config_files="$ac_config_files riscv/Makefile.sim:riscv/Makefile.in"
15463
15464 ac_config_commands="$ac_config_commands riscv/Makefile"
15465
15466 as_fn_append SIM_SUBDIRS " riscv"
15467
15468 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15469
15470 ac_config_commands="$ac_config_commands depdir-riscv"
15471
15472
15473 sim_enable_arch_riscv=true
15474
15475 ;;
15476 esac
15477
15478
15479
15480
15481 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15482 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15483 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15484 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15485
15486 fi
15487
15488 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15489
15490 if ${sim_enable_arch_riscv}; then
15491 SIM_ENABLE_ARCH_riscv_TRUE=
15492 SIM_ENABLE_ARCH_riscv_FALSE='#'
15493 else
15494 SIM_ENABLE_ARCH_riscv_TRUE='#'
15495 SIM_ENABLE_ARCH_riscv_FALSE=
15496 fi
15497
15498
15499 sim_enable_arch_rl78=false
15500 case "${targ}" in
15501 all|rl78-*-*)
15502 if test "${targ}" = "${target}"; then
15503 SIM_PRIMARY_TARGET=rl78
15504 fi
15505 as_fn_append SIM_ENABLED_ARCHES " rl78"
15506 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
15507
15508 ac_config_commands="$ac_config_commands rl78/Makefile"
15509
15510 as_fn_append SIM_SUBDIRS " rl78"
15511
15512 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15513
15514 ac_config_commands="$ac_config_commands depdir-rl78"
15515
15516
15517 sim_enable_arch_rl78=true
15518
15519 ;;
15520 esac
15521
15522
15523
15524
15525 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15526 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15527 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15528 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15529
15530 fi
15531
15532 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15533
15534 if ${sim_enable_arch_rl78}; then
15535 SIM_ENABLE_ARCH_rl78_TRUE=
15536 SIM_ENABLE_ARCH_rl78_FALSE='#'
15537 else
15538 SIM_ENABLE_ARCH_rl78_TRUE='#'
15539 SIM_ENABLE_ARCH_rl78_FALSE=
15540 fi
15541
15542
15543 sim_enable_arch_rx=false
15544 case "${targ}" in
15545 all|rx-*-*)
15546 if test "${targ}" = "${target}"; then
15547 SIM_PRIMARY_TARGET=rx
15548 fi
15549 as_fn_append SIM_ENABLED_ARCHES " rx"
15550 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
15551
15552 ac_config_commands="$ac_config_commands rx/Makefile"
15553
15554 as_fn_append SIM_SUBDIRS " rx"
15555
15556 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15557
15558 ac_config_commands="$ac_config_commands depdir-rx"
15559
15560
15561 sim_enable_arch_rx=true
15562
15563 ;;
15564 esac
15565
15566
15567
15568
15569 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15570 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15571 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15572 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15573
15574 fi
15575
15576 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15577
15578 if ${sim_enable_arch_rx}; then
15579 SIM_ENABLE_ARCH_rx_TRUE=
15580 SIM_ENABLE_ARCH_rx_FALSE='#'
15581 else
15582 SIM_ENABLE_ARCH_rx_TRUE='#'
15583 SIM_ENABLE_ARCH_rx_FALSE=
15584 fi
15585
15586
15587 sim_enable_arch_sh=false
15588 case "${targ}" in
15589 all|sh*-*-*)
15590 if test "${targ}" = "${target}"; then
15591 SIM_PRIMARY_TARGET=sh
15592 fi
15593 as_fn_append SIM_ENABLED_ARCHES " sh"
15594 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
15595
15596 ac_config_commands="$ac_config_commands sh/Makefile"
15597
15598 as_fn_append SIM_SUBDIRS " sh"
15599
15600 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15601
15602 ac_config_commands="$ac_config_commands depdir-sh"
15603
15604
15605 sim_enable_arch_sh=true
15606
15607 ;;
15608 esac
15609
15610
15611
15612
15613 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15614 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15615 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15616 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15617
15618 fi
15619
15620 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15621
15622 if ${sim_enable_arch_sh}; then
15623 SIM_ENABLE_ARCH_sh_TRUE=
15624 SIM_ENABLE_ARCH_sh_FALSE='#'
15625 else
15626 SIM_ENABLE_ARCH_sh_TRUE='#'
15627 SIM_ENABLE_ARCH_sh_FALSE=
15628 fi
15629
15630
15631 sim_enable_arch_erc32=false
15632 case "${targ}" in
15633 all|sparc-*-*)
15634 if test "${targ}" = "${target}"; then
15635 SIM_PRIMARY_TARGET=erc32
15636 fi
15637 as_fn_append SIM_ENABLED_ARCHES " erc32"
15638 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
15639
15640 ac_config_commands="$ac_config_commands erc32/Makefile"
15641
15642 as_fn_append SIM_SUBDIRS " erc32"
15643
15644 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15645
15646 ac_config_commands="$ac_config_commands depdir-erc32"
15647
15648
15649 sim_enable_arch_erc32=true
15650
15651 ;;
15652 esac
15653
15654
15655
15656
15657 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15658 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15659 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15660 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15661
15662 fi
15663
15664 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15665
15666 if ${sim_enable_arch_erc32}; then
15667 SIM_ENABLE_ARCH_erc32_TRUE=
15668 SIM_ENABLE_ARCH_erc32_FALSE='#'
15669 else
15670 SIM_ENABLE_ARCH_erc32_TRUE='#'
15671 SIM_ENABLE_ARCH_erc32_FALSE=
15672 fi
15673
15674
15675 sim_enable_arch_v850=false
15676 case "${targ}" in
15677 all|v850*-*-*)
15678 if test "${targ}" = "${target}"; then
15679 SIM_PRIMARY_TARGET=v850
15680 fi
15681 as_fn_append SIM_ENABLED_ARCHES " v850"
15682 subdirs="$subdirs v850"
15683
15684
15685 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15686
15687 ac_config_commands="$ac_config_commands depdir-v850"
15688
15689
15690 sim_enable_arch_v850=true
15691 sim_igen=yes
15692 ;;
15693 esac
15694
15695
15696
15697
15698 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15699 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15700 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15701 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15702
15703 fi
15704
15705 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15706
15707 if ${sim_enable_arch_v850}; then
15708 SIM_ENABLE_ARCH_v850_TRUE=
15709 SIM_ENABLE_ARCH_v850_FALSE='#'
15710 else
15711 SIM_ENABLE_ARCH_v850_TRUE='#'
15712 SIM_ENABLE_ARCH_v850_FALSE=
15713 fi
15714
15715
15716 done
15717
15718 if test "x${enable_example_sims}" = xyes; then
15719
15720
15721
15722
15723 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15724 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15725 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15726
15727 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15728
15729 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15730 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
15731
15732 ac_config_commands="$ac_config_commands example-synacor/Makefile"
15733
15734 as_fn_append SIM_SUBDIRS " example-synacor"
15735
15736 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15737
15738 ac_config_commands="$ac_config_commands depdir-example-synacor"
15739
15740
15741 fi
15742 if test "${enable_example_sims}" = "yes"; then
15743 SIM_ENABLE_ARCH_examples_TRUE=
15744 SIM_ENABLE_ARCH_examples_FALSE='#'
15745 else
15746 SIM_ENABLE_ARCH_examples_TRUE='#'
15747 SIM_ENABLE_ARCH_examples_FALSE=
15748 fi
15749
15750 fi
15751 if test "$sim_igen" = "yes"; then
15752 SIM_ENABLE_IGEN_TRUE=
15753 SIM_ENABLE_IGEN_FALSE='#'
15754 else
15755 SIM_ENABLE_IGEN_TRUE='#'
15756 SIM_ENABLE_IGEN_FALSE=
15757 fi
15758
15759 if test -n "$SIM_SUBDIRS"; then
15760 ENABLE_SIM_TRUE=
15761 ENABLE_SIM_FALSE='#'
15762 else
15763 ENABLE_SIM_TRUE='#'
15764 ENABLE_SIM_FALSE=
15765 fi
15766
15767
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15769 $as_echo_n "checking whether to force sim alignment... " >&6; }
15770 sim_alignment=
15771 # Check whether --enable-sim-alignment was given.
15772 if test "${enable_sim_alignment+set}" = set; then :
15773 enableval=$enable_sim_alignment; case "${enableval}" in
15774 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15775 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15776 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15777 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15778 esac
15779 fi
15780
15781 cat >>confdefs.h <<_ACEOF
15782 #define WITH_ALIGNMENT ${sim_alignment:-0}
15783 _ACEOF
15784
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15786 $as_echo "${sim_alignment:-no}" >&6; }
15787
15788
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15790 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15791 sim_assert="1"
15792 # Check whether --enable-sim-assert was given.
15793 if test "${enable_sim_assert+set}" = set; then :
15794 enableval=$enable_sim_assert; case "${enableval}" in
15795 yes) sim_assert="1";;
15796 no) sim_assert="0";;
15797 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15798 esac
15799 fi
15800
15801 cat >>confdefs.h <<_ACEOF
15802 #define WITH_ASSERT $sim_assert
15803 _ACEOF
15804
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15806 $as_echo "$sim_assert" >&6; }
15807
15808
15809 cgen_maint=no
15810 cgen=guile
15811 cgendir='$(srcdir)/../../cgen'
15812 # Check whether --enable-cgen-maint was given.
15813 if test "${enable_cgen_maint+set}" = set; then :
15814 enableval=$enable_cgen_maint; case "${enableval}" in
15815 yes) cgen_maint=yes ;;
15816 no) cgen_maint=no ;;
15817 *)
15818 # Argument is a directory where cgen can be found. In some
15819 # future world cgen could be installable, but right now this
15820 # is not the case. Instead we assume the directory is a path
15821 # to the cgen source tree.
15822 cgen_maint=yes
15823 if test -r ${enableval}/iformat.scm; then
15824 # This looks like a cgen source tree.
15825 cgendir=${enableval}
15826 else
15827 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15828 fi
15829 ;;
15830 esac
15831 fi
15832 if test x${cgen_maint} != xno ; then
15833 CGEN_MAINT=''
15834 else
15835 CGEN_MAINT='#'
15836 fi
15837
15838
15839
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15842 $as_echo_n "checking for sim debug setting... " >&6; }
15843 sim_debug="0"
15844 # Check whether --enable-sim-debug was given.
15845 if test "${enable_sim_debug+set}" = set; then :
15846 enableval=$enable_sim_debug; case "${enableval}" in
15847 yes) sim_debug="7";;
15848 no) sim_debug="0";;
15849 *) sim_debug="($enableval)";;
15850 esac
15851 fi
15852 if test "$sim_debug" != "0"; then
15853
15854 cat >>confdefs.h <<_ACEOF
15855 #define DEBUG $sim_debug
15856 _ACEOF
15857
15858 fi
15859
15860 cat >>confdefs.h <<_ACEOF
15861 #define WITH_DEBUG $sim_debug
15862 _ACEOF
15863
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15865 $as_echo "$sim_debug" >&6; }
15866
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15868 $as_echo_n "checking whether to force sim endianness... " >&6; }
15869 sim_endian=
15870 # Check whether --enable-sim-endian was given.
15871 if test "${enable_sim_endian+set}" = set; then :
15872 enableval=$enable_sim_endian; case "${enableval}" in
15873 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15874 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15875 yes | no) ;;
15876 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15877 esac
15878 fi
15879
15880 cat >>confdefs.h <<_ACEOF
15881 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15882 _ACEOF
15883
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15885 $as_echo "${sim_alignment:-no}" >&6; }
15886
15887
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15889 $as_echo_n "checking default sim environment setting... " >&6; }
15890 sim_environment="ALL_ENVIRONMENT"
15891 # Check whether --enable-sim-environment was given.
15892 if test "${enable_sim_environment+set}" = set; then :
15893 enableval=$enable_sim_environment; case "${enableval}" in
15894 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15895 user | USER) sim_environment="USER_ENVIRONMENT";;
15896 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15897 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15898 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15899 esac
15900 fi
15901
15902 cat >>confdefs.h <<_ACEOF
15903 #define WITH_ENVIRONMENT $sim_environment
15904 _ACEOF
15905
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15907 $as_echo "$sim_environment" >&6; }
15908
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15910 $as_echo_n "checking for sim hardware settings... " >&6; }
15911 # Check whether --enable-sim-hardware was given.
15912 if test "${enable_sim_hardware+set}" = set; then :
15913 enableval=$enable_sim_hardware;
15914 else
15915 enable_sim_hardware="yes"
15916 fi
15917
15918 sim_hw_sockser=
15919 if test "$enable_sim_hardware" = no; then
15920 sim_hw_cflags="-DWITH_HW=0"
15921 elif test "$enable_sim_hardware" = yes; then
15922 sim_hw_cflags="-DWITH_HW=1"
15923 sim_hw_sockser="dv-sockser.o"
15924 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15925 else
15926 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15927 fi
15928 if test "$enable_sim_hardware" = "yes"; then
15929 SIM_ENABLE_HW_TRUE=
15930 SIM_ENABLE_HW_FALSE='#'
15931 else
15932 SIM_ENABLE_HW_TRUE='#'
15933 SIM_ENABLE_HW_FALSE=
15934 fi
15935
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15937 $as_echo "${enable_sim_hardware}" >&6; }
15938 SIM_HW_CFLAGS=$sim_hw_cflags
15939
15940 SIM_HW_SOCKSER=$sim_hw_sockser
15941
15942
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15944 $as_echo_n "checking sim inline settings... " >&6; }
15945 sim_inline="-DDEFAULT_INLINE=0"
15946 # Check whether --enable-sim-inline was given.
15947 if test "${enable_sim_inline+set}" = set; then :
15948 enableval=$enable_sim_inline; sim_inline=""
15949 case "$enableval" in
15950 no) sim_inline="-DDEFAULT_INLINE=0";;
15951 0) sim_inline="-DDEFAULT_INLINE=0";;
15952 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15953 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15954 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15955 new_flag=""
15956 case "$x" in
15957 *_INLINE=*) new_flag="-D$x";;
15958 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15959 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15960 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15961 esac
15962 if test x"$sim_inline" = x""; then
15963 sim_inline="$new_flag"
15964 else
15965 sim_inline="$sim_inline $new_flag"
15966 fi
15967 done;;
15968 esac
15969
15970 fi
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15972 $as_echo "$sim_inline" >&6; }
15973 SIM_INLINE=$sim_inline
15974
15975
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15977 $as_echo_n "checking for sim profile settings... " >&6; }
15978 profile="1"
15979 sim_profile="-1"
15980 # Check whether --enable-sim-profile was given.
15981 if test "${enable_sim_profile+set}" = set; then :
15982 enableval=$enable_sim_profile; case "${enableval}" in
15983 yes) profile="1" sim_profile="-1";;
15984 no) profile="0" sim_profile="0";;
15985 [-0-9]*)
15986 profile="(${enableval})" sim_profile="(${enableval})";;
15987 [a-z]*)
15988 profile="1"
15989 sim_profile=""
15990 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15991 if test x"$sim_profile" = x; then
15992 sim_profile="(PROFILE_$x"
15993 else
15994 sim_profile="${sim_profile}|PROFILE_$x"
15995 fi
15996 done
15997 sim_profile="$sim_profile)" ;;
15998 esac
15999 fi
16000
16001 cat >>confdefs.h <<_ACEOF
16002 #define PROFILE $profile
16003 _ACEOF
16004
16005
16006 cat >>confdefs.h <<_ACEOF
16007 #define WITH_PROFILE $sim_profile
16008 _ACEOF
16009
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16011 $as_echo "$sim_profile" >&6; }
16012
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16014 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16015 # Check whether --enable-sim-reserved-bits was given.
16016 if test "${enable_sim_reserved_bits+set}" = set; then :
16017 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16018 yes|no) ;;
16019 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16020 esac
16021 fi
16022
16023 if test "x${enable_sim_reserved_bits}" != xno; then
16024 sim_reserved_bits=1
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16027 else
16028 sim_reserved_bits=0
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031 fi
16032
16033 cat >>confdefs.h <<_ACEOF
16034 #define WITH_RESERVED_BITS $sim_reserved_bits
16035 _ACEOF
16036
16037
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16039 $as_echo_n "checking for sim cache size... " >&6; }
16040 sim_scache="16384"
16041 # Check whether --enable-sim-scache was given.
16042 if test "${enable_sim_scache+set}" = set; then :
16043 enableval=$enable_sim_scache; case "${enableval}" in
16044 yes) ;;
16045 no) sim_scache="0";;
16046 [0-9]*) sim_scache="${enableval}";;
16047 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16048 esac
16049 fi
16050
16051
16052 cat >>confdefs.h <<_ACEOF
16053 #define WITH_SCACHE $sim_scache
16054 _ACEOF
16055
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16057 $as_echo "$sim_scache" >&6; }
16058
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16060 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16061 sim_stdio="0"
16062 # Check whether --enable-sim-stdio was given.
16063 if test "${enable_sim_stdio+set}" = set; then :
16064 enableval=$enable_sim_stdio; case "${enableval}" in
16065 yes) sim_stdio="DO_USE_STDIO";;
16066 no) sim_stdio="DONT_USE_STDIO";;
16067 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16068 esac
16069 fi
16070
16071 cat >>confdefs.h <<_ACEOF
16072 #define WITH_STDIO $sim_stdio
16073 _ACEOF
16074
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16076 $as_echo "$sim_stdio" >&6; }
16077
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16079 $as_echo_n "checking for sim trace settings... " >&6; }
16080 sim_trace="~TRACE_debug"
16081 # Check whether --enable-sim-trace was given.
16082 if test "${enable_sim_trace+set}" = set; then :
16083 enableval=$enable_sim_trace; case "${enableval}" in
16084 yes) sim_trace="-1";;
16085 no) sim_trace="0";;
16086 [-0-9]*)
16087 sim_trace="'(${enableval})'";;
16088 [[:lower:]]*)
16089 sim_trace=""
16090 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16091 if test x"$sim_trace" = x; then
16092 sim_trace="(TRACE_$x"
16093 else
16094 sim_trace="${sim_trace}|TRACE_$x"
16095 fi
16096 done
16097 sim_trace="$sim_trace)" ;;
16098 esac
16099 fi
16100
16101 cat >>confdefs.h <<_ACEOF
16102 #define WITH_TRACE $sim_trace
16103 _ACEOF
16104
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16106 $as_echo "$sim_trace" >&6; }
16107
16108
16109 # Check whether --enable-werror was given.
16110 if test "${enable_werror+set}" = set; then :
16111 enableval=$enable_werror; case "${enableval}" in
16112 yes | y) ERROR_ON_WARNING="yes" ;;
16113 no | n) ERROR_ON_WARNING="no" ;;
16114 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16115 esac
16116 fi
16117
16118
16119 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16120 ERROR_ON_WARNING=yes
16121 fi
16122
16123 WERROR_CFLAGS=""
16124 if test "${ERROR_ON_WARNING}" = yes ; then
16125 WERROR_CFLAGS="-Werror"
16126 fi
16127
16128 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
16129 -Wno-unused -Wunused-value -Wunused-function
16130 -Wno-switch -Wno-char-subscripts
16131 -Wempty-body -Wunused-but-set-parameter
16132 -Wno-error=maybe-uninitialized
16133 -Wmissing-declarations
16134 -Wmissing-prototypes
16135 -Wdeclaration-after-statement -Wmissing-parameter-type
16136 -Wpointer-sign
16137 -Wold-style-declaration -Wold-style-definition
16138 "
16139
16140 # Enable -Wno-format by default when using gcc on mingw since many
16141 # GCC versions complain about %I64.
16142 case "${host}" in
16143 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16144 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
16145 esac
16146
16147 # Check whether --enable-build-warnings was given.
16148 if test "${enable_build_warnings+set}" = set; then :
16149 enableval=$enable_build_warnings; case "${enableval}" in
16150 yes) ;;
16151 no) build_warnings="-w";;
16152 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16153 build_warnings="${build_warnings} ${t}";;
16154 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16155 build_warnings="${t} ${build_warnings}";;
16156 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16157 esac
16158 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16159 echo "Setting compiler warning flags = $build_warnings" 6>&1
16160 fi
16161 fi
16162 # Check whether --enable-sim-build-warnings was given.
16163 if test "${enable_sim_build_warnings+set}" = set; then :
16164 enableval=$enable_sim_build_warnings; case "${enableval}" in
16165 yes) ;;
16166 no) build_warnings="-w";;
16167 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16168 build_warnings="${build_warnings} ${t}";;
16169 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16170 build_warnings="${t} ${build_warnings}";;
16171 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16172 esac
16173 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16174 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16175 fi
16176 fi
16177 WARN_CFLAGS=""
16178 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16179 then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16181 $as_echo_n "checking compiler warning flags... " >&6; }
16182 # Separate out the -Werror flag as some files just cannot be
16183 # compiled with it enabled.
16184 for w in ${build_warnings}; do
16185 case $w in
16186 -Werr*) WERROR_CFLAGS=-Werror ;;
16187 *) # Check that GCC accepts it
16188 saved_CFLAGS="$CFLAGS"
16189 CFLAGS="$CFLAGS -Werror $w"
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192
16193 int
16194 main ()
16195 {
16196
16197 ;
16198 return 0;
16199 }
16200 _ACEOF
16201 if ac_fn_c_try_compile "$LINENO"; then :
16202 WARN_CFLAGS="${WARN_CFLAGS} $w"
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205 CFLAGS="$saved_CFLAGS"
16206 esac
16207 done
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16209 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16210 fi
16211
16212
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16214 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16215 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <unistd.h>
16221 int
16222 main ()
16223 {
16224 extern int getopt (int, char *const*, const char *);
16225 ;
16226 return 0;
16227 }
16228 _ACEOF
16229 if ac_fn_c_try_compile "$LINENO"; then :
16230 sim_cv_decl_getopt_unistd_h=yes
16231 else
16232 sim_cv_decl_getopt_unistd_h=no
16233 fi
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 fi
16236
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
16238 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
16239 if test $sim_cv_decl_getopt_unistd_h = yes; then
16240
16241 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16242
16243 fi
16244
16245
16246
16247
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16249 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16250 # Check whether --enable-sim-frv-trapdump was given.
16251 if test "${enable_sim_frv_trapdump+set}" = set; then :
16252 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16253 yes|no) ;;
16254 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16255 esac
16256 fi
16257
16258 if test "x${enable_sim_frv_trapdump}" = xyes; then
16259 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16261 $as_echo "yes" >&6; }
16262 else
16263 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16265 $as_echo "no" >&6; }
16266 fi
16267
16268
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16270 $as_echo_n "checking riscv bitsize... " >&6; }
16271 SIM_RISCV_BITSIZE=64
16272 case $target in #(
16273 riscv32*) :
16274 SIM_RISCV_BITSIZE=32 ;; #(
16275 *) :
16276 ;;
16277 esac
16278
16279
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16281 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16282 # Check whether --enable-sim-rx-cycle-accurate was given.
16283 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16284 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16285 yes | no) ;;
16286 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16287 esac
16288 fi
16289
16290 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16291 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16293 $as_echo "yes" >&6; }
16294 else
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296 $as_echo "no" >&6; }
16297 fi
16298
16299
16300
16301 include_makefile="include"
16302
16303
16304 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16305
16306 cat >confcache <<\_ACEOF
16307 # This file is a shell script that caches the results of configure
16308 # tests run on this system so they can be shared between configure
16309 # scripts and configure runs, see configure's option --config-cache.
16310 # It is not useful on other systems. If it contains results you don't
16311 # want to keep, you may remove or edit it.
16312 #
16313 # config.status only pays attention to the cache file if you give it
16314 # the --recheck option to rerun configure.
16315 #
16316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16318 # following values.
16319
16320 _ACEOF
16321
16322 # The following way of writing the cache mishandles newlines in values,
16323 # but we know of no workaround that is simple, portable, and efficient.
16324 # So, we kill variables containing newlines.
16325 # Ultrix sh set writes to stderr and can't be redirected directly,
16326 # and sets the high bit in the cache file unless we assign to the vars.
16327 (
16328 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16329 eval ac_val=\$$ac_var
16330 case $ac_val in #(
16331 *${as_nl}*)
16332 case $ac_var in #(
16333 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16335 esac
16336 case $ac_var in #(
16337 _ | IFS | as_nl) ;; #(
16338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16339 *) { eval $ac_var=; unset $ac_var;} ;;
16340 esac ;;
16341 esac
16342 done
16343
16344 (set) 2>&1 |
16345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16346 *${as_nl}ac_space=\ *)
16347 # `set' does not quote correctly, so add quotes: double-quote
16348 # substitution turns \\\\ into \\, and sed turns \\ into \.
16349 sed -n \
16350 "s/'/'\\\\''/g;
16351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16352 ;; #(
16353 *)
16354 # `set' quotes correctly as required by POSIX, so do not add quotes.
16355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16356 ;;
16357 esac |
16358 sort
16359 ) |
16360 sed '
16361 /^ac_cv_env_/b end
16362 t clear
16363 :clear
16364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16365 t end
16366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16367 :end' >>confcache
16368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16369 if test -w "$cache_file"; then
16370 if test "x$cache_file" != "x/dev/null"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16372 $as_echo "$as_me: updating cache $cache_file" >&6;}
16373 if test ! -f "$cache_file" || test -h "$cache_file"; then
16374 cat confcache >"$cache_file"
16375 else
16376 case $cache_file in #(
16377 */* | ?:*)
16378 mv -f confcache "$cache_file"$$ &&
16379 mv -f "$cache_file"$$ "$cache_file" ;; #(
16380 *)
16381 mv -f confcache "$cache_file" ;;
16382 esac
16383 fi
16384 fi
16385 else
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16387 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16388 fi
16389 fi
16390 rm -f confcache
16391
16392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16393 # Let make expand exec_prefix.
16394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16395
16396 DEFS=-DHAVE_CONFIG_H
16397
16398 ac_libobjs=
16399 ac_ltlibobjs=
16400 U=
16401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16402 # 1. Remove the extension, and $U if already installed.
16403 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16404 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16405 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16406 # will be set to the directory where LIBOBJS objects are built.
16407 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16408 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16409 done
16410 LIBOBJS=$ac_libobjs
16411
16412 LTLIBOBJS=$ac_ltlibobjs
16413
16414
16415
16416 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16417 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16419 fi
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16421 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16422 if test -n "$am_sleep_pid"; then
16423 # Hide warnings about reused PIDs.
16424 wait $am_sleep_pid 2>/dev/null
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16427 $as_echo "done" >&6; }
16428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16429 as_fn_error $? "conditional \"AMDEP\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431 fi
16432 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16433 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16435 fi
16436 if test -n "$EXEEXT"; then
16437 am__EXEEXT_TRUE=
16438 am__EXEEXT_FALSE='#'
16439 else
16440 am__EXEEXT_TRUE='#'
16441 am__EXEEXT_FALSE=
16442 fi
16443
16444 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16445 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 fi
16448 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16449 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451 fi
16452 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16453 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 fi
16456 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16457 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 fi
16460 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16461 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 fi
16464 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16465 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 fi
16468 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16469 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 fi
16472 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16473 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 fi
16476 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16477 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 fi
16480 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16481 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 fi
16484 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16485 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 fi
16488 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16489 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 fi
16492 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16493 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 fi
16496 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16497 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 fi
16500 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16501 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 fi
16504 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16505 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507 fi
16508 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16509 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 fi
16512 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16513 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16515 fi
16516 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16517 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16519 fi
16520 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16521 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 fi
16524 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16525 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 fi
16528 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16529 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 fi
16532 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16533 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 fi
16536 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16537 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 fi
16540 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16541 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 fi
16544 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16545 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547 fi
16548 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16549 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 fi
16552 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16553 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555 fi
16556 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16557 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559 fi
16560 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16561 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563 fi
16564 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16565 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 fi
16568 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16569 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 fi
16572 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
16573 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 fi
16576 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16577 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 fi
16580 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16581 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 fi
16584
16585 : "${CONFIG_STATUS=./config.status}"
16586 ac_write_fail=0
16587 ac_clean_files_save=$ac_clean_files
16588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16590 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16591 as_write_fail=0
16592 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16593 #! $SHELL
16594 # Generated by $as_me.
16595 # Run this file to recreate the current configuration.
16596 # Compiler output produced by configure, useful for debugging
16597 # configure, is in config.log if it exists.
16598
16599 debug=false
16600 ac_cs_recheck=false
16601 ac_cs_silent=false
16602
16603 SHELL=\${CONFIG_SHELL-$SHELL}
16604 export SHELL
16605 _ASEOF
16606 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16607 ## -------------------- ##
16608 ## M4sh Initialization. ##
16609 ## -------------------- ##
16610
16611 # Be more Bourne compatible
16612 DUALCASE=1; export DUALCASE # for MKS sh
16613 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16614 emulate sh
16615 NULLCMD=:
16616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16617 # is contrary to our usage. Disable this feature.
16618 alias -g '${1+"$@"}'='"$@"'
16619 setopt NO_GLOB_SUBST
16620 else
16621 case `(set -o) 2>/dev/null` in #(
16622 *posix*) :
16623 set -o posix ;; #(
16624 *) :
16625 ;;
16626 esac
16627 fi
16628
16629
16630 as_nl='
16631 '
16632 export as_nl
16633 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16634 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16635 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16637 # Prefer a ksh shell builtin over an external printf program on Solaris,
16638 # but without wasting forks for bash or zsh.
16639 if test -z "$BASH_VERSION$ZSH_VERSION" \
16640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16641 as_echo='print -r --'
16642 as_echo_n='print -rn --'
16643 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16644 as_echo='printf %s\n'
16645 as_echo_n='printf %s'
16646 else
16647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16649 as_echo_n='/usr/ucb/echo -n'
16650 else
16651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16652 as_echo_n_body='eval
16653 arg=$1;
16654 case $arg in #(
16655 *"$as_nl"*)
16656 expr "X$arg" : "X\\(.*\\)$as_nl";
16657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16658 esac;
16659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16660 '
16661 export as_echo_n_body
16662 as_echo_n='sh -c $as_echo_n_body as_echo'
16663 fi
16664 export as_echo_body
16665 as_echo='sh -c $as_echo_body as_echo'
16666 fi
16667
16668 # The user is always right.
16669 if test "${PATH_SEPARATOR+set}" != set; then
16670 PATH_SEPARATOR=:
16671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16673 PATH_SEPARATOR=';'
16674 }
16675 fi
16676
16677
16678 # IFS
16679 # We need space, tab and new line, in precisely that order. Quoting is
16680 # there to prevent editors from complaining about space-tab.
16681 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16682 # splitting by setting IFS to empty value.)
16683 IFS=" "" $as_nl"
16684
16685 # Find who we are. Look in the path if we contain no directory separator.
16686 as_myself=
16687 case $0 in #((
16688 *[\\/]* ) as_myself=$0 ;;
16689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690 for as_dir in $PATH
16691 do
16692 IFS=$as_save_IFS
16693 test -z "$as_dir" && as_dir=.
16694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16695 done
16696 IFS=$as_save_IFS
16697
16698 ;;
16699 esac
16700 # We did not find ourselves, most probably we were run as `sh COMMAND'
16701 # in which case we are not to be found in the path.
16702 if test "x$as_myself" = x; then
16703 as_myself=$0
16704 fi
16705 if test ! -f "$as_myself"; then
16706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16707 exit 1
16708 fi
16709
16710 # Unset variables that we do not need and which cause bugs (e.g. in
16711 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16712 # suppresses any "Segmentation fault" message there. '((' could
16713 # trigger a bug in pdksh 5.2.14.
16714 for as_var in BASH_ENV ENV MAIL MAILPATH
16715 do eval test x\${$as_var+set} = xset \
16716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16717 done
16718 PS1='$ '
16719 PS2='> '
16720 PS4='+ '
16721
16722 # NLS nuisances.
16723 LC_ALL=C
16724 export LC_ALL
16725 LANGUAGE=C
16726 export LANGUAGE
16727
16728 # CDPATH.
16729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16730
16731
16732 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16733 # ----------------------------------------
16734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16736 # script with STATUS, using 1 if that was 0.
16737 as_fn_error ()
16738 {
16739 as_status=$1; test $as_status -eq 0 && as_status=1
16740 if test "$4"; then
16741 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16743 fi
16744 $as_echo "$as_me: error: $2" >&2
16745 as_fn_exit $as_status
16746 } # as_fn_error
16747
16748
16749 # as_fn_set_status STATUS
16750 # -----------------------
16751 # Set $? to STATUS, without forking.
16752 as_fn_set_status ()
16753 {
16754 return $1
16755 } # as_fn_set_status
16756
16757 # as_fn_exit STATUS
16758 # -----------------
16759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16760 as_fn_exit ()
16761 {
16762 set +e
16763 as_fn_set_status $1
16764 exit $1
16765 } # as_fn_exit
16766
16767 # as_fn_unset VAR
16768 # ---------------
16769 # Portably unset VAR.
16770 as_fn_unset ()
16771 {
16772 { eval $1=; unset $1;}
16773 }
16774 as_unset=as_fn_unset
16775 # as_fn_append VAR VALUE
16776 # ----------------------
16777 # Append the text in VALUE to the end of the definition contained in VAR. Take
16778 # advantage of any shell optimizations that allow amortized linear growth over
16779 # repeated appends, instead of the typical quadratic growth present in naive
16780 # implementations.
16781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16782 eval 'as_fn_append ()
16783 {
16784 eval $1+=\$2
16785 }'
16786 else
16787 as_fn_append ()
16788 {
16789 eval $1=\$$1\$2
16790 }
16791 fi # as_fn_append
16792
16793 # as_fn_arith ARG...
16794 # ------------------
16795 # Perform arithmetic evaluation on the ARGs, and store the result in the
16796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16797 # must be portable across $(()) and expr.
16798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16799 eval 'as_fn_arith ()
16800 {
16801 as_val=$(( $* ))
16802 }'
16803 else
16804 as_fn_arith ()
16805 {
16806 as_val=`expr "$@" || test $? -eq 1`
16807 }
16808 fi # as_fn_arith
16809
16810
16811 if expr a : '\(a\)' >/dev/null 2>&1 &&
16812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16813 as_expr=expr
16814 else
16815 as_expr=false
16816 fi
16817
16818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16819 as_basename=basename
16820 else
16821 as_basename=false
16822 fi
16823
16824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16825 as_dirname=dirname
16826 else
16827 as_dirname=false
16828 fi
16829
16830 as_me=`$as_basename -- "$0" ||
16831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16832 X"$0" : 'X\(//\)$' \| \
16833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16834 $as_echo X/"$0" |
16835 sed '/^.*\/\([^/][^/]*\)\/*$/{
16836 s//\1/
16837 q
16838 }
16839 /^X\/\(\/\/\)$/{
16840 s//\1/
16841 q
16842 }
16843 /^X\/\(\/\).*/{
16844 s//\1/
16845 q
16846 }
16847 s/.*/./; q'`
16848
16849 # Avoid depending upon Character Ranges.
16850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16853 as_cr_digits='0123456789'
16854 as_cr_alnum=$as_cr_Letters$as_cr_digits
16855
16856 ECHO_C= ECHO_N= ECHO_T=
16857 case `echo -n x` in #(((((
16858 -n*)
16859 case `echo 'xy\c'` in
16860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16861 xy) ECHO_C='\c';;
16862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16863 ECHO_T=' ';;
16864 esac;;
16865 *)
16866 ECHO_N='-n';;
16867 esac
16868
16869 rm -f conf$$ conf$$.exe conf$$.file
16870 if test -d conf$$.dir; then
16871 rm -f conf$$.dir/conf$$.file
16872 else
16873 rm -f conf$$.dir
16874 mkdir conf$$.dir 2>/dev/null
16875 fi
16876 if (echo >conf$$.file) 2>/dev/null; then
16877 if ln -s conf$$.file conf$$ 2>/dev/null; then
16878 as_ln_s='ln -s'
16879 # ... but there are two gotchas:
16880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16882 # In both cases, we have to default to `cp -pR'.
16883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16884 as_ln_s='cp -pR'
16885 elif ln conf$$.file conf$$ 2>/dev/null; then
16886 as_ln_s=ln
16887 else
16888 as_ln_s='cp -pR'
16889 fi
16890 else
16891 as_ln_s='cp -pR'
16892 fi
16893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16894 rmdir conf$$.dir 2>/dev/null
16895
16896
16897 # as_fn_mkdir_p
16898 # -------------
16899 # Create "$as_dir" as a directory, including parents if necessary.
16900 as_fn_mkdir_p ()
16901 {
16902
16903 case $as_dir in #(
16904 -*) as_dir=./$as_dir;;
16905 esac
16906 test -d "$as_dir" || eval $as_mkdir_p || {
16907 as_dirs=
16908 while :; do
16909 case $as_dir in #(
16910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16911 *) as_qdir=$as_dir;;
16912 esac
16913 as_dirs="'$as_qdir' $as_dirs"
16914 as_dir=`$as_dirname -- "$as_dir" ||
16915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16916 X"$as_dir" : 'X\(//\)[^/]' \| \
16917 X"$as_dir" : 'X\(//\)$' \| \
16918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16919 $as_echo X"$as_dir" |
16920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16921 s//\1/
16922 q
16923 }
16924 /^X\(\/\/\)[^/].*/{
16925 s//\1/
16926 q
16927 }
16928 /^X\(\/\/\)$/{
16929 s//\1/
16930 q
16931 }
16932 /^X\(\/\).*/{
16933 s//\1/
16934 q
16935 }
16936 s/.*/./; q'`
16937 test -d "$as_dir" && break
16938 done
16939 test -z "$as_dirs" || eval "mkdir $as_dirs"
16940 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16941
16942
16943 } # as_fn_mkdir_p
16944 if mkdir -p . 2>/dev/null; then
16945 as_mkdir_p='mkdir -p "$as_dir"'
16946 else
16947 test -d ./-p && rmdir ./-p
16948 as_mkdir_p=false
16949 fi
16950
16951
16952 # as_fn_executable_p FILE
16953 # -----------------------
16954 # Test if FILE is an executable regular file.
16955 as_fn_executable_p ()
16956 {
16957 test -f "$1" && test -x "$1"
16958 } # as_fn_executable_p
16959 as_test_x='test -x'
16960 as_executable_p=as_fn_executable_p
16961
16962 # Sed expression to map a string onto a valid CPP name.
16963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16964
16965 # Sed expression to map a string onto a valid variable name.
16966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16967
16968
16969 exec 6>&1
16970 ## ----------------------------------- ##
16971 ## Main body of $CONFIG_STATUS script. ##
16972 ## ----------------------------------- ##
16973 _ASEOF
16974 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16975
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977 # Save the log message, to keep $0 and so on meaningful, and to
16978 # report actual input values of CONFIG_FILES etc. instead of their
16979 # values after options handling.
16980 ac_log="
16981 This file was extended by sim $as_me 0, which was
16982 generated by GNU Autoconf 2.69. Invocation command line was
16983
16984 CONFIG_FILES = $CONFIG_FILES
16985 CONFIG_HEADERS = $CONFIG_HEADERS
16986 CONFIG_LINKS = $CONFIG_LINKS
16987 CONFIG_COMMANDS = $CONFIG_COMMANDS
16988 $ $0 $@
16989
16990 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16991 "
16992
16993 _ACEOF
16994
16995 case $ac_config_files in *"
16996 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16997 esac
16998
16999 case $ac_config_headers in *"
17000 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17001 esac
17002
17003
17004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17005 # Files that config.status was made for.
17006 config_files="$ac_config_files"
17007 config_headers="$ac_config_headers"
17008 config_commands="$ac_config_commands"
17009
17010 _ACEOF
17011
17012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17013 ac_cs_usage="\
17014 \`$as_me' instantiates files and other configuration actions
17015 from templates according to the current configuration. Unless the files
17016 and actions are specified as TAGs, all are instantiated by default.
17017
17018 Usage: $0 [OPTION]... [TAG]...
17019
17020 -h, --help print this help, then exit
17021 -V, --version print version number and configuration settings, then exit
17022 --config print configuration, then exit
17023 -q, --quiet, --silent
17024 do not print progress messages
17025 -d, --debug don't remove temporary files
17026 --recheck update $as_me by reconfiguring in the same conditions
17027 --file=FILE[:TEMPLATE]
17028 instantiate the configuration file FILE
17029 --header=FILE[:TEMPLATE]
17030 instantiate the configuration header FILE
17031
17032 Configuration files:
17033 $config_files
17034
17035 Configuration headers:
17036 $config_headers
17037
17038 Configuration commands:
17039 $config_commands
17040
17041 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17042 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17043
17044 _ACEOF
17045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17046 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17047 ac_cs_version="\\
17048 sim config.status 0
17049 configured by $0, generated by GNU Autoconf 2.69,
17050 with options \\"\$ac_cs_config\\"
17051
17052 Copyright (C) 2012 Free Software Foundation, Inc.
17053 This config.status script is free software; the Free Software Foundation
17054 gives unlimited permission to copy, distribute and modify it."
17055
17056 ac_pwd='$ac_pwd'
17057 srcdir='$srcdir'
17058 INSTALL='$INSTALL'
17059 MKDIR_P='$MKDIR_P'
17060 AWK='$AWK'
17061 test -n "\$AWK" || AWK=awk
17062 _ACEOF
17063
17064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17065 # The default lists apply if the user does not specify any file.
17066 ac_need_defaults=:
17067 while test $# != 0
17068 do
17069 case $1 in
17070 --*=?*)
17071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17072 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17073 ac_shift=:
17074 ;;
17075 --*=)
17076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17077 ac_optarg=
17078 ac_shift=:
17079 ;;
17080 *)
17081 ac_option=$1
17082 ac_optarg=$2
17083 ac_shift=shift
17084 ;;
17085 esac
17086
17087 case $ac_option in
17088 # Handling of the options.
17089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17090 ac_cs_recheck=: ;;
17091 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17092 $as_echo "$ac_cs_version"; exit ;;
17093 --config | --confi | --conf | --con | --co | --c )
17094 $as_echo "$ac_cs_config"; exit ;;
17095 --debug | --debu | --deb | --de | --d | -d )
17096 debug=: ;;
17097 --file | --fil | --fi | --f )
17098 $ac_shift
17099 case $ac_optarg in
17100 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17101 '') as_fn_error $? "missing file argument" ;;
17102 esac
17103 as_fn_append CONFIG_FILES " '$ac_optarg'"
17104 ac_need_defaults=false;;
17105 --header | --heade | --head | --hea )
17106 $ac_shift
17107 case $ac_optarg in
17108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17109 esac
17110 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17111 ac_need_defaults=false;;
17112 --he | --h)
17113 # Conflict between --help and --header
17114 as_fn_error $? "ambiguous option: \`$1'
17115 Try \`$0 --help' for more information.";;
17116 --help | --hel | -h )
17117 $as_echo "$ac_cs_usage"; exit ;;
17118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17119 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17120 ac_cs_silent=: ;;
17121
17122 # This is an error.
17123 -*) as_fn_error $? "unrecognized option: \`$1'
17124 Try \`$0 --help' for more information." ;;
17125
17126 *) as_fn_append ac_config_targets " $1"
17127 ac_need_defaults=false ;;
17128
17129 esac
17130 shift
17131 done
17132
17133 ac_configure_extra_args=
17134
17135 if $ac_cs_silent; then
17136 exec 6>/dev/null
17137 ac_configure_extra_args="$ac_configure_extra_args --silent"
17138 fi
17139
17140 _ACEOF
17141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17142 if \$ac_cs_recheck; then
17143 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17144 shift
17145 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17146 CONFIG_SHELL='$SHELL'
17147 export CONFIG_SHELL
17148 exec "\$@"
17149 fi
17150
17151 _ACEOF
17152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153 exec 5>>config.log
17154 {
17155 echo
17156 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17157 ## Running $as_me. ##
17158 _ASBOX
17159 $as_echo "$ac_log"
17160 } >&5
17161
17162 _ACEOF
17163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17164 #
17165 # INIT-COMMANDS
17166 #
17167
17168
17169 # The HP-UX ksh and POSIX shell print the target directory to stdout
17170 # if CDPATH is set.
17171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17172
17173 sed_quote_subst='$sed_quote_subst'
17174 double_quote_subst='$double_quote_subst'
17175 delay_variable_subst='$delay_variable_subst'
17176 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17177 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17178 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17179 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17180 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17181 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17182 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17183 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17184 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17185 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17186 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17187 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17188 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17189 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17190 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17191 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17192 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17193 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17194 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17195 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17196 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17197 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17198 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17199 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17200 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17201 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17202 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17203 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17204 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17205 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17206 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17207 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17208 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17209 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17210 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17223 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17224 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"`'
17225 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17226 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17227 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17228 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17229 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17230 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17231 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17232 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17233 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17234 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17235 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17236 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17237 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17238 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17239 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17240 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17241 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17242 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17243 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17244 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17245 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17246 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17247 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17248 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17249 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17250 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17251 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17252 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17253 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17254 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17255 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17256 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17257 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17258 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17259 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17260 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17261 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17262 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17263 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17264 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17265 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17266 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17267 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17268 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17269 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17270 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17271 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17272 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17273 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17274 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17275 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17276 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17277 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17278 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17279 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17280 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17281 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17282 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17283 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17284 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17285 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17286 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17287 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17288 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17289 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17290 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17291 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17292 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17293 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17294 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17295 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17296
17297 LTCC='$LTCC'
17298 LTCFLAGS='$LTCFLAGS'
17299 compiler='$compiler_DEFAULT'
17300
17301 # A function that is used when there is no print builtin or printf.
17302 func_fallback_echo ()
17303 {
17304 eval 'cat <<_LTECHO_EOF
17305 \$1
17306 _LTECHO_EOF'
17307 }
17308
17309 # Quote evaled strings.
17310 for var in SHELL \
17311 ECHO \
17312 SED \
17313 GREP \
17314 EGREP \
17315 FGREP \
17316 LD \
17317 NM \
17318 LN_S \
17319 lt_SP2NL \
17320 lt_NL2SP \
17321 reload_flag \
17322 OBJDUMP \
17323 deplibs_check_method \
17324 file_magic_cmd \
17325 AR \
17326 AR_FLAGS \
17327 STRIP \
17328 RANLIB \
17329 CC \
17330 CFLAGS \
17331 compiler \
17332 lt_cv_sys_global_symbol_pipe \
17333 lt_cv_sys_global_symbol_to_cdecl \
17334 lt_cv_sys_global_symbol_to_c_name_address \
17335 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17336 lt_prog_compiler_no_builtin_flag \
17337 lt_prog_compiler_wl \
17338 lt_prog_compiler_pic \
17339 lt_prog_compiler_static \
17340 lt_cv_prog_compiler_c_o \
17341 need_locks \
17342 DSYMUTIL \
17343 NMEDIT \
17344 LIPO \
17345 OTOOL \
17346 OTOOL64 \
17347 shrext_cmds \
17348 export_dynamic_flag_spec \
17349 whole_archive_flag_spec \
17350 compiler_needs_object \
17351 with_gnu_ld \
17352 allow_undefined_flag \
17353 no_undefined_flag \
17354 hardcode_libdir_flag_spec \
17355 hardcode_libdir_flag_spec_ld \
17356 hardcode_libdir_separator \
17357 fix_srcfile_path \
17358 exclude_expsyms \
17359 include_expsyms \
17360 file_list_spec \
17361 variables_saved_for_relink \
17362 libname_spec \
17363 library_names_spec \
17364 soname_spec \
17365 install_override_mode \
17366 finish_eval \
17367 old_striplib \
17368 striplib; do
17369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17370 *[\\\\\\\`\\"\\\$]*)
17371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17372 ;;
17373 *)
17374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17375 ;;
17376 esac
17377 done
17378
17379 # Double-quote double-evaled strings.
17380 for var in reload_cmds \
17381 old_postinstall_cmds \
17382 old_postuninstall_cmds \
17383 old_archive_cmds \
17384 extract_expsyms_cmds \
17385 old_archive_from_new_cmds \
17386 old_archive_from_expsyms_cmds \
17387 archive_cmds \
17388 archive_expsym_cmds \
17389 module_cmds \
17390 module_expsym_cmds \
17391 export_symbols_cmds \
17392 prelink_cmds \
17393 postinstall_cmds \
17394 postuninstall_cmds \
17395 finish_cmds \
17396 sys_lib_search_path_spec \
17397 sys_lib_dlsearch_path_spec; do
17398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17399 *[\\\\\\\`\\"\\\$]*)
17400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17401 ;;
17402 *)
17403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17404 ;;
17405 esac
17406 done
17407
17408 ac_aux_dir='$ac_aux_dir'
17409 xsi_shell='$xsi_shell'
17410 lt_shell_append='$lt_shell_append'
17411
17412 # See if we are running on zsh, and set the options which allow our
17413 # commands through without removal of \ escapes INIT.
17414 if test -n "\${ZSH_VERSION+set}" ; then
17415 setopt NO_GLOB_SUBST
17416 fi
17417
17418
17419 PACKAGE='$PACKAGE'
17420 VERSION='$VERSION'
17421 TIMESTAMP='$TIMESTAMP'
17422 RM='$RM'
17423 ofile='$ofile'
17424
17425
17426
17427 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17428 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17429 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17430 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17431 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17432 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17433 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17434 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17435 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17436 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17437 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17438 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17439 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17440 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17441 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17442 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17443 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17444 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17445 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17446 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17447 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17448 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17449 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17450 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17451 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17452 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17453 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17454 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17455 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17456 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17457 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17458 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17459 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17460
17461 _ACEOF
17462
17463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17464
17465 # Handling of arguments.
17466 for ac_config_target in $ac_config_targets
17467 do
17468 case $ac_config_target in
17469 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17470 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17471 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17472 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
17473 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
17474 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
17475 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17476 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
17477 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
17478 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
17479 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17480 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
17481 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
17482 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
17483 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17484 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
17485 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
17486 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
17487 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17488 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
17489 "bpf/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bpf/Makefile.sim:bpf/Makefile.in" ;;
17490 "bpf/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bpf/Makefile" ;;
17491 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17492 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
17493 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
17494 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
17495 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17496 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
17497 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
17498 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
17499 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17500 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
17501 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
17502 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
17503 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17504 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
17505 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
17506 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
17507 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17508 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
17509 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
17510 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
17511 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17512 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
17513 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
17514 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
17515 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17516 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
17517 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
17518 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
17519 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17520 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
17521 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
17522 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
17523 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17524 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
17525 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
17526 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
17527 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17528 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
17529 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
17530 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
17531 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17532 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
17533 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
17534 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
17535 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17536 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
17537 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
17538 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
17539 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17540 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
17541 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
17542 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
17543 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17544 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
17545 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17546 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
17547 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17548 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
17549 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
17550 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
17551 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17552 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
17553 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
17554 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
17555 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17556 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
17557 "or1k/Makefile.sim") CONFIG_FILES="$CONFIG_FILES or1k/Makefile.sim:or1k/Makefile.in" ;;
17558 "or1k/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS or1k/Makefile" ;;
17559 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17560 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
17561 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17562 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
17563 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
17564 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
17565 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17566 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
17567 "riscv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES riscv/Makefile.sim:riscv/Makefile.in" ;;
17568 "riscv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS riscv/Makefile" ;;
17569 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17570 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
17571 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
17572 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
17573 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17574 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
17575 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
17576 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
17577 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17578 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
17579 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
17580 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
17581 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17582 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
17583 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
17584 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
17585 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17586 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
17587 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17588 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
17589 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
17590 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
17591 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17592 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
17593 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17595 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17596
17597 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17598 esac
17599 done
17600
17601
17602 # If the user did not use the arguments to specify the items to instantiate,
17603 # then the envvar interface is used. Set only those that are not.
17604 # We use the long form for the default assignment because of an extremely
17605 # bizarre bug on SunOS 4.1.3.
17606 if $ac_need_defaults; then
17607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17609 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17610 fi
17611
17612 # Have a temporary directory for convenience. Make it in the build tree
17613 # simply because there is no reason against having it here, and in addition,
17614 # creating and moving files from /tmp can sometimes cause problems.
17615 # Hook for its removal unless debugging.
17616 # Note that there is a small window in which the directory will not be cleaned:
17617 # after its creation but before its name has been assigned to `$tmp'.
17618 $debug ||
17619 {
17620 tmp= ac_tmp=
17621 trap 'exit_status=$?
17622 : "${ac_tmp:=$tmp}"
17623 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17624 ' 0
17625 trap 'as_fn_exit 1' 1 2 13 15
17626 }
17627 # Create a (secure) tmp directory for tmp files.
17628
17629 {
17630 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17631 test -d "$tmp"
17632 } ||
17633 {
17634 tmp=./conf$$-$RANDOM
17635 (umask 077 && mkdir "$tmp")
17636 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17637 ac_tmp=$tmp
17638
17639 # Set up the scripts for CONFIG_FILES section.
17640 # No need to generate them if there are no CONFIG_FILES.
17641 # This happens for instance with `./config.status config.h'.
17642 if test -n "$CONFIG_FILES"; then
17643
17644
17645 ac_cr=`echo X | tr X '\015'`
17646 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17647 # But we know of no other shell where ac_cr would be empty at this
17648 # point, so we can use a bashism as a fallback.
17649 if test "x$ac_cr" = x; then
17650 eval ac_cr=\$\'\\r\'
17651 fi
17652 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17653 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17654 ac_cs_awk_cr='\\r'
17655 else
17656 ac_cs_awk_cr=$ac_cr
17657 fi
17658
17659 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17660 _ACEOF
17661
17662
17663 {
17664 echo "cat >conf$$subs.awk <<_ACEOF" &&
17665 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17666 echo "_ACEOF"
17667 } >conf$$subs.sh ||
17668 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17669 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17670 ac_delim='%!_!# '
17671 for ac_last_try in false false false false false :; do
17672 . ./conf$$subs.sh ||
17673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17674
17675 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17676 if test $ac_delim_n = $ac_delim_num; then
17677 break
17678 elif $ac_last_try; then
17679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17680 else
17681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17682 fi
17683 done
17684 rm -f conf$$subs.sh
17685
17686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17687 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17688 _ACEOF
17689 sed -n '
17690 h
17691 s/^/S["/; s/!.*/"]=/
17692 p
17693 g
17694 s/^[^!]*!//
17695 :repl
17696 t repl
17697 s/'"$ac_delim"'$//
17698 t delim
17699 :nl
17700 h
17701 s/\(.\{148\}\)..*/\1/
17702 t more1
17703 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17704 p
17705 n
17706 b repl
17707 :more1
17708 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17709 p
17710 g
17711 s/.\{148\}//
17712 t nl
17713 :delim
17714 h
17715 s/\(.\{148\}\)..*/\1/
17716 t more2
17717 s/["\\]/\\&/g; s/^/"/; s/$/"/
17718 p
17719 b
17720 :more2
17721 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17722 p
17723 g
17724 s/.\{148\}//
17725 t delim
17726 ' <conf$$subs.awk | sed '
17727 /^[^""]/{
17728 N
17729 s/\n//
17730 }
17731 ' >>$CONFIG_STATUS || ac_write_fail=1
17732 rm -f conf$$subs.awk
17733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17734 _ACAWK
17735 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17736 for (key in S) S_is_set[key] = 1
17737 FS = "\a"
17738
17739 }
17740 {
17741 line = $ 0
17742 nfields = split(line, field, "@")
17743 substed = 0
17744 len = length(field[1])
17745 for (i = 2; i < nfields; i++) {
17746 key = field[i]
17747 keylen = length(key)
17748 if (S_is_set[key]) {
17749 value = S[key]
17750 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17751 len += length(value) + length(field[++i])
17752 substed = 1
17753 } else
17754 len += 1 + keylen
17755 }
17756
17757 print line
17758 }
17759
17760 _ACAWK
17761 _ACEOF
17762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17763 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17764 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17765 else
17766 cat
17767 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17768 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17769 _ACEOF
17770
17771 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17772 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17773 # trailing colons and then remove the whole line if VPATH becomes empty
17774 # (actually we leave an empty line to preserve line numbers).
17775 if test "x$srcdir" = x.; then
17776 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17777 h
17778 s///
17779 s/^/:/
17780 s/[ ]*$/:/
17781 s/:\$(srcdir):/:/g
17782 s/:\${srcdir}:/:/g
17783 s/:@srcdir@:/:/g
17784 s/^:*//
17785 s/:*$//
17786 x
17787 s/\(=[ ]*\).*/\1/
17788 G
17789 s/\n//
17790 s/^[^=]*=[ ]*$//
17791 }'
17792 fi
17793
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795 fi # test -n "$CONFIG_FILES"
17796
17797 # Set up the scripts for CONFIG_HEADERS section.
17798 # No need to generate them if there are no CONFIG_HEADERS.
17799 # This happens for instance with `./config.status Makefile'.
17800 if test -n "$CONFIG_HEADERS"; then
17801 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17802 BEGIN {
17803 _ACEOF
17804
17805 # Transform confdefs.h into an awk script `defines.awk', embedded as
17806 # here-document in config.status, that substitutes the proper values into
17807 # config.h.in to produce config.h.
17808
17809 # Create a delimiter string that does not exist in confdefs.h, to ease
17810 # handling of long lines.
17811 ac_delim='%!_!# '
17812 for ac_last_try in false false :; do
17813 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17814 if test -z "$ac_tt"; then
17815 break
17816 elif $ac_last_try; then
17817 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17818 else
17819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17820 fi
17821 done
17822
17823 # For the awk script, D is an array of macro values keyed by name,
17824 # likewise P contains macro parameters if any. Preserve backslash
17825 # newline sequences.
17826
17827 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17828 sed -n '
17829 s/.\{148\}/&'"$ac_delim"'/g
17830 t rset
17831 :rset
17832 s/^[ ]*#[ ]*define[ ][ ]*/ /
17833 t def
17834 d
17835 :def
17836 s/\\$//
17837 t bsnl
17838 s/["\\]/\\&/g
17839 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17840 D["\1"]=" \3"/p
17841 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17842 d
17843 :bsnl
17844 s/["\\]/\\&/g
17845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17846 D["\1"]=" \3\\\\\\n"\\/p
17847 t cont
17848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17849 t cont
17850 d
17851 :cont
17852 n
17853 s/.\{148\}/&'"$ac_delim"'/g
17854 t clear
17855 :clear
17856 s/\\$//
17857 t bsnlc
17858 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17859 d
17860 :bsnlc
17861 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17862 b cont
17863 ' <confdefs.h | sed '
17864 s/'"$ac_delim"'/"\\\
17865 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17866
17867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17868 for (key in D) D_is_set[key] = 1
17869 FS = "\a"
17870 }
17871 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17872 line = \$ 0
17873 split(line, arg, " ")
17874 if (arg[1] == "#") {
17875 defundef = arg[2]
17876 mac1 = arg[3]
17877 } else {
17878 defundef = substr(arg[1], 2)
17879 mac1 = arg[2]
17880 }
17881 split(mac1, mac2, "(") #)
17882 macro = mac2[1]
17883 prefix = substr(line, 1, index(line, defundef) - 1)
17884 if (D_is_set[macro]) {
17885 # Preserve the white space surrounding the "#".
17886 print prefix "define", macro P[macro] D[macro]
17887 next
17888 } else {
17889 # Replace #undef with comments. This is necessary, for example,
17890 # in the case of _POSIX_SOURCE, which is predefined and required
17891 # on some systems where configure will not decide to define it.
17892 if (defundef == "undef") {
17893 print "/*", prefix defundef, macro, "*/"
17894 next
17895 }
17896 }
17897 }
17898 { print }
17899 _ACAWK
17900 _ACEOF
17901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17902 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17903 fi # test -n "$CONFIG_HEADERS"
17904
17905
17906 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17907 shift
17908 for ac_tag
17909 do
17910 case $ac_tag in
17911 :[FHLC]) ac_mode=$ac_tag; continue;;
17912 esac
17913 case $ac_mode$ac_tag in
17914 :[FHL]*:*);;
17915 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17916 :[FH]-) ac_tag=-:-;;
17917 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17918 esac
17919 ac_save_IFS=$IFS
17920 IFS=:
17921 set x $ac_tag
17922 IFS=$ac_save_IFS
17923 shift
17924 ac_file=$1
17925 shift
17926
17927 case $ac_mode in
17928 :L) ac_source=$1;;
17929 :[FH])
17930 ac_file_inputs=
17931 for ac_f
17932 do
17933 case $ac_f in
17934 -) ac_f="$ac_tmp/stdin";;
17935 *) # Look for the file first in the build tree, then in the source tree
17936 # (if the path is not absolute). The absolute path cannot be DOS-style,
17937 # because $ac_f cannot contain `:'.
17938 test -f "$ac_f" ||
17939 case $ac_f in
17940 [\\/$]*) false;;
17941 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17942 esac ||
17943 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17944 esac
17945 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17946 as_fn_append ac_file_inputs " '$ac_f'"
17947 done
17948
17949 # Let's still pretend it is `configure' which instantiates (i.e., don't
17950 # use $as_me), people would be surprised to read:
17951 # /* config.h. Generated by config.status. */
17952 configure_input='Generated from '`
17953 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17954 `' by configure.'
17955 if test x"$ac_file" != x-; then
17956 configure_input="$ac_file. $configure_input"
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17958 $as_echo "$as_me: creating $ac_file" >&6;}
17959 fi
17960 # Neutralize special characters interpreted by sed in replacement strings.
17961 case $configure_input in #(
17962 *\&* | *\|* | *\\* )
17963 ac_sed_conf_input=`$as_echo "$configure_input" |
17964 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17965 *) ac_sed_conf_input=$configure_input;;
17966 esac
17967
17968 case $ac_tag in
17969 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17971 esac
17972 ;;
17973 esac
17974
17975 ac_dir=`$as_dirname -- "$ac_file" ||
17976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17977 X"$ac_file" : 'X\(//\)[^/]' \| \
17978 X"$ac_file" : 'X\(//\)$' \| \
17979 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17980 $as_echo X"$ac_file" |
17981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17982 s//\1/
17983 q
17984 }
17985 /^X\(\/\/\)[^/].*/{
17986 s//\1/
17987 q
17988 }
17989 /^X\(\/\/\)$/{
17990 s//\1/
17991 q
17992 }
17993 /^X\(\/\).*/{
17994 s//\1/
17995 q
17996 }
17997 s/.*/./; q'`
17998 as_dir="$ac_dir"; as_fn_mkdir_p
17999 ac_builddir=.
18000
18001 case "$ac_dir" in
18002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18003 *)
18004 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18005 # A ".." for each directory in $ac_dir_suffix.
18006 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18007 case $ac_top_builddir_sub in
18008 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18009 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18010 esac ;;
18011 esac
18012 ac_abs_top_builddir=$ac_pwd
18013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18014 # for backward compatibility:
18015 ac_top_builddir=$ac_top_build_prefix
18016
18017 case $srcdir in
18018 .) # We are building in place.
18019 ac_srcdir=.
18020 ac_top_srcdir=$ac_top_builddir_sub
18021 ac_abs_top_srcdir=$ac_pwd ;;
18022 [\\/]* | ?:[\\/]* ) # Absolute name.
18023 ac_srcdir=$srcdir$ac_dir_suffix;
18024 ac_top_srcdir=$srcdir
18025 ac_abs_top_srcdir=$srcdir ;;
18026 *) # Relative name.
18027 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18028 ac_top_srcdir=$ac_top_build_prefix$srcdir
18029 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18030 esac
18031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18032
18033
18034 case $ac_mode in
18035 :F)
18036 #
18037 # CONFIG_FILE
18038 #
18039
18040 case $INSTALL in
18041 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18042 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18043 esac
18044 ac_MKDIR_P=$MKDIR_P
18045 case $MKDIR_P in
18046 [\\/$]* | ?:[\\/]* ) ;;
18047 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18048 esac
18049 _ACEOF
18050
18051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052 # If the template does not know about datarootdir, expand it.
18053 # FIXME: This hack should be removed a few years after 2.60.
18054 ac_datarootdir_hack=; ac_datarootdir_seen=
18055 ac_sed_dataroot='
18056 /datarootdir/ {
18057 p
18058 q
18059 }
18060 /@datadir@/p
18061 /@docdir@/p
18062 /@infodir@/p
18063 /@localedir@/p
18064 /@mandir@/p'
18065 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18066 *datarootdir*) ac_datarootdir_seen=yes;;
18067 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18069 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18070 _ACEOF
18071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18072 ac_datarootdir_hack='
18073 s&@datadir@&$datadir&g
18074 s&@docdir@&$docdir&g
18075 s&@infodir@&$infodir&g
18076 s&@localedir@&$localedir&g
18077 s&@mandir@&$mandir&g
18078 s&\\\${datarootdir}&$datarootdir&g' ;;
18079 esac
18080 _ACEOF
18081
18082 # Neutralize VPATH when `$srcdir' = `.'.
18083 # Shell code in configure.ac might set extrasub.
18084 # FIXME: do we really want to maintain this feature?
18085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18086 ac_sed_extra="$ac_vpsub
18087 $extrasub
18088 _ACEOF
18089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18090 :t
18091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18092 s|@configure_input@|$ac_sed_conf_input|;t t
18093 s&@top_builddir@&$ac_top_builddir_sub&;t t
18094 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18095 s&@srcdir@&$ac_srcdir&;t t
18096 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18097 s&@top_srcdir@&$ac_top_srcdir&;t t
18098 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18099 s&@builddir@&$ac_builddir&;t t
18100 s&@abs_builddir@&$ac_abs_builddir&;t t
18101 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18102 s&@INSTALL@&$ac_INSTALL&;t t
18103 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18104 $ac_datarootdir_hack
18105 "
18106 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18107 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18108
18109 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18110 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18111 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18112 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18114 which seems to be undefined. Please make sure it is defined" >&5
18115 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18116 which seems to be undefined. Please make sure it is defined" >&2;}
18117
18118 rm -f "$ac_tmp/stdin"
18119 case $ac_file in
18120 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18121 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18122 esac \
18123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18124 ;;
18125 :H)
18126 #
18127 # CONFIG_HEADER
18128 #
18129 if test x"$ac_file" != x-; then
18130 {
18131 $as_echo "/* $configure_input */" \
18132 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18133 } >"$ac_tmp/config.h" \
18134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18135 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18137 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18138 else
18139 rm -f "$ac_file"
18140 mv "$ac_tmp/config.h" "$ac_file" \
18141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18142 fi
18143 else
18144 $as_echo "/* $configure_input */" \
18145 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18146 || as_fn_error $? "could not create -" "$LINENO" 5
18147 fi
18148 # Compute "$ac_file"'s index in $config_headers.
18149 _am_arg="$ac_file"
18150 _am_stamp_count=1
18151 for _am_header in $config_headers :; do
18152 case $_am_header in
18153 $_am_arg | $_am_arg:* )
18154 break ;;
18155 * )
18156 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18157 esac
18158 done
18159 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18160 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18161 X"$_am_arg" : 'X\(//\)[^/]' \| \
18162 X"$_am_arg" : 'X\(//\)$' \| \
18163 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18164 $as_echo X"$_am_arg" |
18165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18166 s//\1/
18167 q
18168 }
18169 /^X\(\/\/\)[^/].*/{
18170 s//\1/
18171 q
18172 }
18173 /^X\(\/\/\)$/{
18174 s//\1/
18175 q
18176 }
18177 /^X\(\/\).*/{
18178 s//\1/
18179 q
18180 }
18181 s/.*/./; q'`/stamp-h$_am_stamp_count
18182 ;;
18183
18184 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18185 $as_echo "$as_me: executing $ac_file commands" >&6;}
18186 ;;
18187 esac
18188
18189
18190 case $ac_file$ac_mode in
18191 "libtool":C)
18192
18193 # See if we are running on zsh, and set the options which allow our
18194 # commands through without removal of \ escapes.
18195 if test -n "${ZSH_VERSION+set}" ; then
18196 setopt NO_GLOB_SUBST
18197 fi
18198
18199 cfgfile="${ofile}T"
18200 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18201 $RM "$cfgfile"
18202
18203 cat <<_LT_EOF >> "$cfgfile"
18204 #! $SHELL
18205
18206 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18207 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18208 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18209 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18210 #
18211 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18212 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18213 # Written by Gordon Matzigkeit, 1996
18214 #
18215 # This file is part of GNU Libtool.
18216 #
18217 # GNU Libtool is free software; you can redistribute it and/or
18218 # modify it under the terms of the GNU General Public License as
18219 # published by the Free Software Foundation; either version 2 of
18220 # the License, or (at your option) any later version.
18221 #
18222 # As a special exception to the GNU General Public License,
18223 # if you distribute this file as part of a program or library that
18224 # is built using GNU Libtool, you may include this file under the
18225 # same distribution terms that you use for the rest of that program.
18226 #
18227 # GNU Libtool is distributed in the hope that it will be useful,
18228 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18229 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18230 # GNU General Public License for more details.
18231 #
18232 # You should have received a copy of the GNU General Public License
18233 # along with GNU Libtool; see the file COPYING. If not, a copy
18234 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18235 # obtained by writing to the Free Software Foundation, Inc.,
18236 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18237
18238
18239 # The names of the tagged configurations supported by this script.
18240 available_tags=""
18241
18242 # ### BEGIN LIBTOOL CONFIG
18243
18244 # Which release of libtool.m4 was used?
18245 macro_version=$macro_version
18246 macro_revision=$macro_revision
18247
18248 # Whether or not to build shared libraries.
18249 build_libtool_libs=$enable_shared
18250
18251 # Whether or not to build static libraries.
18252 build_old_libs=$enable_static
18253
18254 # What type of objects to build.
18255 pic_mode=$pic_mode
18256
18257 # Whether or not to optimize for fast installation.
18258 fast_install=$enable_fast_install
18259
18260 # Shell to use when invoking shell scripts.
18261 SHELL=$lt_SHELL
18262
18263 # An echo program that protects backslashes.
18264 ECHO=$lt_ECHO
18265
18266 # The host system.
18267 host_alias=$host_alias
18268 host=$host
18269 host_os=$host_os
18270
18271 # The build system.
18272 build_alias=$build_alias
18273 build=$build
18274 build_os=$build_os
18275
18276 # A sed program that does not truncate output.
18277 SED=$lt_SED
18278
18279 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18280 Xsed="\$SED -e 1s/^X//"
18281
18282 # A grep program that handles long lines.
18283 GREP=$lt_GREP
18284
18285 # An ERE matcher.
18286 EGREP=$lt_EGREP
18287
18288 # A literal string matcher.
18289 FGREP=$lt_FGREP
18290
18291 # A BSD- or MS-compatible name lister.
18292 NM=$lt_NM
18293
18294 # Whether we need soft or hard links.
18295 LN_S=$lt_LN_S
18296
18297 # What is the maximum length of a command?
18298 max_cmd_len=$max_cmd_len
18299
18300 # Object file suffix (normally "o").
18301 objext=$ac_objext
18302
18303 # Executable file suffix (normally "").
18304 exeext=$exeext
18305
18306 # whether the shell understands "unset".
18307 lt_unset=$lt_unset
18308
18309 # turn spaces into newlines.
18310 SP2NL=$lt_lt_SP2NL
18311
18312 # turn newlines into spaces.
18313 NL2SP=$lt_lt_NL2SP
18314
18315 # An object symbol dumper.
18316 OBJDUMP=$lt_OBJDUMP
18317
18318 # Method to check whether dependent libraries are shared objects.
18319 deplibs_check_method=$lt_deplibs_check_method
18320
18321 # Command to use when deplibs_check_method == "file_magic".
18322 file_magic_cmd=$lt_file_magic_cmd
18323
18324 # The archiver.
18325 AR=$lt_AR
18326 AR_FLAGS=$lt_AR_FLAGS
18327
18328 # A symbol stripping program.
18329 STRIP=$lt_STRIP
18330
18331 # Commands used to install an old-style archive.
18332 RANLIB=$lt_RANLIB
18333 old_postinstall_cmds=$lt_old_postinstall_cmds
18334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18335
18336 # Whether to use a lock for old archive extraction.
18337 lock_old_archive_extraction=$lock_old_archive_extraction
18338
18339 # A C compiler.
18340 LTCC=$lt_CC
18341
18342 # LTCC compiler flags.
18343 LTCFLAGS=$lt_CFLAGS
18344
18345 # Take the output of nm and produce a listing of raw symbols and C names.
18346 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18347
18348 # Transform the output of nm in a proper C declaration.
18349 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18350
18351 # Transform the output of nm in a C name address pair.
18352 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18353
18354 # Transform the output of nm in a C name address pair when lib prefix is needed.
18355 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18356
18357 # The name of the directory that contains temporary libtool files.
18358 objdir=$objdir
18359
18360 # Used to examine libraries when file_magic_cmd begins with "file".
18361 MAGIC_CMD=$MAGIC_CMD
18362
18363 # Must we lock files when doing compilation?
18364 need_locks=$lt_need_locks
18365
18366 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18367 DSYMUTIL=$lt_DSYMUTIL
18368
18369 # Tool to change global to local symbols on Mac OS X.
18370 NMEDIT=$lt_NMEDIT
18371
18372 # Tool to manipulate fat objects and archives on Mac OS X.
18373 LIPO=$lt_LIPO
18374
18375 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18376 OTOOL=$lt_OTOOL
18377
18378 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18379 OTOOL64=$lt_OTOOL64
18380
18381 # Old archive suffix (normally "a").
18382 libext=$libext
18383
18384 # Shared library suffix (normally ".so").
18385 shrext_cmds=$lt_shrext_cmds
18386
18387 # The commands to extract the exported symbol list from a shared archive.
18388 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18389
18390 # Variables whose values should be saved in libtool wrapper scripts and
18391 # restored at link time.
18392 variables_saved_for_relink=$lt_variables_saved_for_relink
18393
18394 # Do we need the "lib" prefix for modules?
18395 need_lib_prefix=$need_lib_prefix
18396
18397 # Do we need a version for libraries?
18398 need_version=$need_version
18399
18400 # Library versioning type.
18401 version_type=$version_type
18402
18403 # Shared library runtime path variable.
18404 runpath_var=$runpath_var
18405
18406 # Shared library path variable.
18407 shlibpath_var=$shlibpath_var
18408
18409 # Is shlibpath searched before the hard-coded library search path?
18410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18411
18412 # Format of library name prefix.
18413 libname_spec=$lt_libname_spec
18414
18415 # List of archive names. First name is the real one, the rest are links.
18416 # The last name is the one that the linker finds with -lNAME
18417 library_names_spec=$lt_library_names_spec
18418
18419 # The coded name of the library, if different from the real name.
18420 soname_spec=$lt_soname_spec
18421
18422 # Permission mode override for installation of shared libraries.
18423 install_override_mode=$lt_install_override_mode
18424
18425 # Command to use after installation of a shared archive.
18426 postinstall_cmds=$lt_postinstall_cmds
18427
18428 # Command to use after uninstallation of a shared archive.
18429 postuninstall_cmds=$lt_postuninstall_cmds
18430
18431 # Commands used to finish a libtool library installation in a directory.
18432 finish_cmds=$lt_finish_cmds
18433
18434 # As "finish_cmds", except a single script fragment to be evaled but
18435 # not shown.
18436 finish_eval=$lt_finish_eval
18437
18438 # Whether we should hardcode library paths into libraries.
18439 hardcode_into_libs=$hardcode_into_libs
18440
18441 # Compile-time system search path for libraries.
18442 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18443
18444 # Run-time system search path for libraries.
18445 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18446
18447 # Whether dlopen is supported.
18448 dlopen_support=$enable_dlopen
18449
18450 # Whether dlopen of programs is supported.
18451 dlopen_self=$enable_dlopen_self
18452
18453 # Whether dlopen of statically linked programs is supported.
18454 dlopen_self_static=$enable_dlopen_self_static
18455
18456 # Commands to strip libraries.
18457 old_striplib=$lt_old_striplib
18458 striplib=$lt_striplib
18459
18460
18461 # The linker used to build libraries.
18462 LD=$lt_LD
18463
18464 # How to create reloadable object files.
18465 reload_flag=$lt_reload_flag
18466 reload_cmds=$lt_reload_cmds
18467
18468 # Commands used to build an old-style archive.
18469 old_archive_cmds=$lt_old_archive_cmds
18470
18471 # A language specific compiler.
18472 CC=$lt_compiler
18473
18474 # Is the compiler the GNU compiler?
18475 with_gcc=$GCC
18476
18477 # Compiler flag to turn off builtin functions.
18478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18479
18480 # How to pass a linker flag through the compiler.
18481 wl=$lt_lt_prog_compiler_wl
18482
18483 # Additional compiler flags for building library objects.
18484 pic_flag=$lt_lt_prog_compiler_pic
18485
18486 # Compiler flag to prevent dynamic linking.
18487 link_static_flag=$lt_lt_prog_compiler_static
18488
18489 # Does compiler simultaneously support -c and -o options?
18490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18491
18492 # Whether or not to add -lc for building shared libraries.
18493 build_libtool_need_lc=$archive_cmds_need_lc
18494
18495 # Whether or not to disallow shared libs when runtime libs are static.
18496 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18497
18498 # Compiler flag to allow reflexive dlopens.
18499 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18500
18501 # Compiler flag to generate shared objects directly from archives.
18502 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18503
18504 # Whether the compiler copes with passing no objects directly.
18505 compiler_needs_object=$lt_compiler_needs_object
18506
18507 # Create an old-style archive from a shared archive.
18508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18509
18510 # Create a temporary old-style archive to link instead of a shared archive.
18511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18512
18513 # Commands used to build a shared archive.
18514 archive_cmds=$lt_archive_cmds
18515 archive_expsym_cmds=$lt_archive_expsym_cmds
18516
18517 # Commands used to build a loadable module if different from building
18518 # a shared archive.
18519 module_cmds=$lt_module_cmds
18520 module_expsym_cmds=$lt_module_expsym_cmds
18521
18522 # Whether we are building with GNU ld or not.
18523 with_gnu_ld=$lt_with_gnu_ld
18524
18525 # Flag that allows shared libraries with undefined symbols to be built.
18526 allow_undefined_flag=$lt_allow_undefined_flag
18527
18528 # Flag that enforces no undefined symbols.
18529 no_undefined_flag=$lt_no_undefined_flag
18530
18531 # Flag to hardcode \$libdir into a binary during linking.
18532 # This must work even if \$libdir does not exist
18533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18534
18535 # If ld is used when linking, flag to hardcode \$libdir into a binary
18536 # during linking. This must work even if \$libdir does not exist.
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18538
18539 # Whether we need a single "-rpath" flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18541
18542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18543 # DIR into the resulting binary.
18544 hardcode_direct=$hardcode_direct
18545
18546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18547 # DIR into the resulting binary and the resulting library dependency is
18548 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18549 # library is relocated.
18550 hardcode_direct_absolute=$hardcode_direct_absolute
18551
18552 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18553 # into the resulting binary.
18554 hardcode_minus_L=$hardcode_minus_L
18555
18556 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18557 # into the resulting binary.
18558 hardcode_shlibpath_var=$hardcode_shlibpath_var
18559
18560 # Set to "yes" if building a shared library automatically hardcodes DIR
18561 # into the library and all subsequent libraries and executables linked
18562 # against it.
18563 hardcode_automatic=$hardcode_automatic
18564
18565 # Set to yes if linker adds runtime paths of dependent libraries
18566 # to runtime path list.
18567 inherit_rpath=$inherit_rpath
18568
18569 # Whether libtool must link a program against all its dependency libraries.
18570 link_all_deplibs=$link_all_deplibs
18571
18572 # Fix the shell variable \$srcfile for the compiler.
18573 fix_srcfile_path=$lt_fix_srcfile_path
18574
18575 # Set to "yes" if exported symbols are required.
18576 always_export_symbols=$always_export_symbols
18577
18578 # The commands to list exported symbols.
18579 export_symbols_cmds=$lt_export_symbols_cmds
18580
18581 # Symbols that should not be listed in the preloaded symbols.
18582 exclude_expsyms=$lt_exclude_expsyms
18583
18584 # Symbols that must always be exported.
18585 include_expsyms=$lt_include_expsyms
18586
18587 # Commands necessary for linking programs (against libraries) with templates.
18588 prelink_cmds=$lt_prelink_cmds
18589
18590 # Specify filename containing input files.
18591 file_list_spec=$lt_file_list_spec
18592
18593 # How to hardcode a shared library path into an executable.
18594 hardcode_action=$hardcode_action
18595
18596 # ### END LIBTOOL CONFIG
18597
18598 _LT_EOF
18599
18600 case $host_os in
18601 aix3*)
18602 cat <<\_LT_EOF >> "$cfgfile"
18603 # AIX sometimes has problems with the GCC collect2 program. For some
18604 # reason, if we set the COLLECT_NAMES environment variable, the problems
18605 # vanish in a puff of smoke.
18606 if test "X${COLLECT_NAMES+set}" != Xset; then
18607 COLLECT_NAMES=
18608 export COLLECT_NAMES
18609 fi
18610 _LT_EOF
18611 ;;
18612 esac
18613
18614
18615 ltmain="$ac_aux_dir/ltmain.sh"
18616
18617
18618 # We use sed instead of cat because bash on DJGPP gets confused if
18619 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18620 # text mode, it properly converts lines to CR/LF. This bash problem
18621 # is reportedly fixed, but why not run on old versions too?
18622 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18623 || (rm -f "$cfgfile"; exit 1)
18624
18625 case $xsi_shell in
18626 yes)
18627 cat << \_LT_EOF >> "$cfgfile"
18628
18629 # func_dirname file append nondir_replacement
18630 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18631 # otherwise set result to NONDIR_REPLACEMENT.
18632 func_dirname ()
18633 {
18634 case ${1} in
18635 */*) func_dirname_result="${1%/*}${2}" ;;
18636 * ) func_dirname_result="${3}" ;;
18637 esac
18638 }
18639
18640 # func_basename file
18641 func_basename ()
18642 {
18643 func_basename_result="${1##*/}"
18644 }
18645
18646 # func_dirname_and_basename file append nondir_replacement
18647 # perform func_basename and func_dirname in a single function
18648 # call:
18649 # dirname: Compute the dirname of FILE. If nonempty,
18650 # add APPEND to the result, otherwise set result
18651 # to NONDIR_REPLACEMENT.
18652 # value returned in "$func_dirname_result"
18653 # basename: Compute filename of FILE.
18654 # value retuned in "$func_basename_result"
18655 # Implementation must be kept synchronized with func_dirname
18656 # and func_basename. For efficiency, we do not delegate to
18657 # those functions but instead duplicate the functionality here.
18658 func_dirname_and_basename ()
18659 {
18660 case ${1} in
18661 */*) func_dirname_result="${1%/*}${2}" ;;
18662 * ) func_dirname_result="${3}" ;;
18663 esac
18664 func_basename_result="${1##*/}"
18665 }
18666
18667 # func_stripname prefix suffix name
18668 # strip PREFIX and SUFFIX off of NAME.
18669 # PREFIX and SUFFIX must not contain globbing or regex special
18670 # characters, hashes, percent signs, but SUFFIX may contain a leading
18671 # dot (in which case that matches only a dot).
18672 func_stripname ()
18673 {
18674 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18675 # positional parameters, so assign one to ordinary parameter first.
18676 func_stripname_result=${3}
18677 func_stripname_result=${func_stripname_result#"${1}"}
18678 func_stripname_result=${func_stripname_result%"${2}"}
18679 }
18680
18681 # func_opt_split
18682 func_opt_split ()
18683 {
18684 func_opt_split_opt=${1%%=*}
18685 func_opt_split_arg=${1#*=}
18686 }
18687
18688 # func_lo2o object
18689 func_lo2o ()
18690 {
18691 case ${1} in
18692 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18693 *) func_lo2o_result=${1} ;;
18694 esac
18695 }
18696
18697 # func_xform libobj-or-source
18698 func_xform ()
18699 {
18700 func_xform_result=${1%.*}.lo
18701 }
18702
18703 # func_arith arithmetic-term...
18704 func_arith ()
18705 {
18706 func_arith_result=$(( $* ))
18707 }
18708
18709 # func_len string
18710 # STRING may not start with a hyphen.
18711 func_len ()
18712 {
18713 func_len_result=${#1}
18714 }
18715
18716 _LT_EOF
18717 ;;
18718 *) # Bourne compatible functions.
18719 cat << \_LT_EOF >> "$cfgfile"
18720
18721 # func_dirname file append nondir_replacement
18722 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18723 # otherwise set result to NONDIR_REPLACEMENT.
18724 func_dirname ()
18725 {
18726 # Extract subdirectory from the argument.
18727 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18728 if test "X$func_dirname_result" = "X${1}"; then
18729 func_dirname_result="${3}"
18730 else
18731 func_dirname_result="$func_dirname_result${2}"
18732 fi
18733 }
18734
18735 # func_basename file
18736 func_basename ()
18737 {
18738 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18739 }
18740
18741
18742 # func_stripname prefix suffix name
18743 # strip PREFIX and SUFFIX off of NAME.
18744 # PREFIX and SUFFIX must not contain globbing or regex special
18745 # characters, hashes, percent signs, but SUFFIX may contain a leading
18746 # dot (in which case that matches only a dot).
18747 # func_strip_suffix prefix name
18748 func_stripname ()
18749 {
18750 case ${2} in
18751 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18752 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18753 esac
18754 }
18755
18756 # sed scripts:
18757 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18758 my_sed_long_arg='1s/^-[^=]*=//'
18759
18760 # func_opt_split
18761 func_opt_split ()
18762 {
18763 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18764 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18765 }
18766
18767 # func_lo2o object
18768 func_lo2o ()
18769 {
18770 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18771 }
18772
18773 # func_xform libobj-or-source
18774 func_xform ()
18775 {
18776 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18777 }
18778
18779 # func_arith arithmetic-term...
18780 func_arith ()
18781 {
18782 func_arith_result=`expr "$@"`
18783 }
18784
18785 # func_len string
18786 # STRING may not start with a hyphen.
18787 func_len ()
18788 {
18789 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18790 }
18791
18792 _LT_EOF
18793 esac
18794
18795 case $lt_shell_append in
18796 yes)
18797 cat << \_LT_EOF >> "$cfgfile"
18798
18799 # func_append var value
18800 # Append VALUE to the end of shell variable VAR.
18801 func_append ()
18802 {
18803 eval "$1+=\$2"
18804 }
18805 _LT_EOF
18806 ;;
18807 *)
18808 cat << \_LT_EOF >> "$cfgfile"
18809
18810 # func_append var value
18811 # Append VALUE to the end of shell variable VAR.
18812 func_append ()
18813 {
18814 eval "$1=\$$1\$2"
18815 }
18816
18817 _LT_EOF
18818 ;;
18819 esac
18820
18821
18822 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18823 || (rm -f "$cfgfile"; exit 1)
18824
18825 mv -f "$cfgfile" "$ofile" ||
18826 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18827 chmod +x "$ofile"
18828
18829 ;;
18830 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18831 # Older Autoconf quotes --file arguments for eval, but not when files
18832 # are listed without --file. Let's play safe and only enable the eval
18833 # if we detect the quoting.
18834 case $CONFIG_FILES in
18835 *\'*) eval set x "$CONFIG_FILES" ;;
18836 *) set x $CONFIG_FILES ;;
18837 esac
18838 shift
18839 for mf
18840 do
18841 # Strip MF so we end up with the name of the file.
18842 mf=`echo "$mf" | sed -e 's/:.*$//'`
18843 # Check whether this is an Automake generated Makefile or not.
18844 # We used to match only the files named 'Makefile.in', but
18845 # some people rename them; so instead we look at the file content.
18846 # Grep'ing the first line is not enough: some people post-process
18847 # each Makefile.in and add a new line on top of each file to say so.
18848 # Grep'ing the whole file is not good either: AIX grep has a line
18849 # limit of 2048, but all sed's we know have understand at least 4000.
18850 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18851 dirpart=`$as_dirname -- "$mf" ||
18852 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18853 X"$mf" : 'X\(//\)[^/]' \| \
18854 X"$mf" : 'X\(//\)$' \| \
18855 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18856 $as_echo X"$mf" |
18857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18858 s//\1/
18859 q
18860 }
18861 /^X\(\/\/\)[^/].*/{
18862 s//\1/
18863 q
18864 }
18865 /^X\(\/\/\)$/{
18866 s//\1/
18867 q
18868 }
18869 /^X\(\/\).*/{
18870 s//\1/
18871 q
18872 }
18873 s/.*/./; q'`
18874 else
18875 continue
18876 fi
18877 # Extract the definition of DEPDIR, am__include, and am__quote
18878 # from the Makefile without running 'make'.
18879 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18880 test -z "$DEPDIR" && continue
18881 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18882 test -z "$am__include" && continue
18883 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18884 # Find all dependency output files, they are included files with
18885 # $(DEPDIR) in their names. We invoke sed twice because it is the
18886 # simplest approach to changing $(DEPDIR) to its actual value in the
18887 # expansion.
18888 for file in `sed -n "
18889 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18890 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18891 # Make sure the directory exists.
18892 test -f "$dirpart/$file" && continue
18893 fdir=`$as_dirname -- "$file" ||
18894 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18895 X"$file" : 'X\(//\)[^/]' \| \
18896 X"$file" : 'X\(//\)$' \| \
18897 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18898 $as_echo X"$file" |
18899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18900 s//\1/
18901 q
18902 }
18903 /^X\(\/\/\)[^/].*/{
18904 s//\1/
18905 q
18906 }
18907 /^X\(\/\/\)$/{
18908 s//\1/
18909 q
18910 }
18911 /^X\(\/\).*/{
18912 s//\1/
18913 q
18914 }
18915 s/.*/./; q'`
18916 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18917 # echo "creating $dirpart/$file"
18918 echo '# dummy' > "$dirpart/$file"
18919 done
18920 done
18921 }
18922 ;;
18923 "aarch64/Makefile":C) sed -n \
18924 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18925 /^srcdir = / s:$:/aarch64:
18926 p
18927 }' \
18928 <Make-common.sim >aarch64/Makesim1.tmp
18929 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
18930 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
18931 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
18932 <aarch64/Makefile.sim >aarch64/Makefile
18933 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
18934 ;;
18935 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
18936 "arm/Makefile":C) sed -n \
18937 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18938 /^srcdir = / s:$:/arm:
18939 p
18940 }' \
18941 <Make-common.sim >arm/Makesim1.tmp
18942 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
18943 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
18944 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
18945 <arm/Makefile.sim >arm/Makefile
18946 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
18947 ;;
18948 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
18949 "avr/Makefile":C) sed -n \
18950 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18951 /^srcdir = / s:$:/avr:
18952 p
18953 }' \
18954 <Make-common.sim >avr/Makesim1.tmp
18955 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
18956 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
18957 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
18958 <avr/Makefile.sim >avr/Makefile
18959 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
18960 ;;
18961 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
18962 "bfin/Makefile":C) sed -n \
18963 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18964 /^srcdir = / s:$:/bfin:
18965 p
18966 }' \
18967 <Make-common.sim >bfin/Makesim1.tmp
18968 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
18969 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
18970 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
18971 <bfin/Makefile.sim >bfin/Makefile
18972 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
18973 ;;
18974 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
18975 "bpf/Makefile":C) sed -n \
18976 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18977 /^srcdir = / s:$:/bpf:
18978 p
18979 }' \
18980 <Make-common.sim >bpf/Makesim1.tmp
18981 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bpf/Makesim2.tmp
18982 sed -e '/^## COMMON_PRE_/ r bpf/Makesim1.tmp' \
18983 -e '/^## COMMON_POST_/ r bpf/Makesim2.tmp' \
18984 <bpf/Makefile.sim >bpf/Makefile
18985 rm -f bpf/Makesim1.tmp bpf/Makesim2.tmp
18986 ;;
18987 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
18988 "cr16/Makefile":C) sed -n \
18989 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
18990 /^srcdir = / s:$:/cr16:
18991 p
18992 }' \
18993 <Make-common.sim >cr16/Makesim1.tmp
18994 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
18995 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
18996 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
18997 <cr16/Makefile.sim >cr16/Makefile
18998 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
18999 ;;
19000 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
19001 "cris/Makefile":C) sed -n \
19002 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19003 /^srcdir = / s:$:/cris:
19004 p
19005 }' \
19006 <Make-common.sim >cris/Makesim1.tmp
19007 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
19008 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
19009 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
19010 <cris/Makefile.sim >cris/Makefile
19011 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
19012 ;;
19013 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
19014 "d10v/Makefile":C) sed -n \
19015 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19016 /^srcdir = / s:$:/d10v:
19017 p
19018 }' \
19019 <Make-common.sim >d10v/Makesim1.tmp
19020 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
19021 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
19022 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
19023 <d10v/Makefile.sim >d10v/Makefile
19024 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
19025 ;;
19026 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
19027 "frv/Makefile":C) sed -n \
19028 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19029 /^srcdir = / s:$:/frv:
19030 p
19031 }' \
19032 <Make-common.sim >frv/Makesim1.tmp
19033 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
19034 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
19035 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
19036 <frv/Makefile.sim >frv/Makefile
19037 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
19038 ;;
19039 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
19040 "ft32/Makefile":C) sed -n \
19041 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19042 /^srcdir = / s:$:/ft32:
19043 p
19044 }' \
19045 <Make-common.sim >ft32/Makesim1.tmp
19046 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
19047 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
19048 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
19049 <ft32/Makefile.sim >ft32/Makefile
19050 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
19051 ;;
19052 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
19053 "h8300/Makefile":C) sed -n \
19054 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19055 /^srcdir = / s:$:/h8300:
19056 p
19057 }' \
19058 <Make-common.sim >h8300/Makesim1.tmp
19059 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
19060 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
19061 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
19062 <h8300/Makefile.sim >h8300/Makefile
19063 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
19064 ;;
19065 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
19066 "iq2000/Makefile":C) sed -n \
19067 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19068 /^srcdir = / s:$:/iq2000:
19069 p
19070 }' \
19071 <Make-common.sim >iq2000/Makesim1.tmp
19072 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
19073 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
19074 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
19075 <iq2000/Makefile.sim >iq2000/Makefile
19076 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
19077 ;;
19078 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
19079 "lm32/Makefile":C) sed -n \
19080 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19081 /^srcdir = / s:$:/lm32:
19082 p
19083 }' \
19084 <Make-common.sim >lm32/Makesim1.tmp
19085 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
19086 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
19087 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
19088 <lm32/Makefile.sim >lm32/Makefile
19089 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
19090 ;;
19091 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
19092 "m32c/Makefile":C) sed -n \
19093 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19094 /^srcdir = / s:$:/m32c:
19095 p
19096 }' \
19097 <Make-common.sim >m32c/Makesim1.tmp
19098 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
19099 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
19100 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
19101 <m32c/Makefile.sim >m32c/Makefile
19102 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
19103 ;;
19104 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
19105 "m32r/Makefile":C) sed -n \
19106 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19107 /^srcdir = / s:$:/m32r:
19108 p
19109 }' \
19110 <Make-common.sim >m32r/Makesim1.tmp
19111 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
19112 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
19113 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
19114 <m32r/Makefile.sim >m32r/Makefile
19115 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
19116 ;;
19117 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
19118 "m68hc11/Makefile":C) sed -n \
19119 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19120 /^srcdir = / s:$:/m68hc11:
19121 p
19122 }' \
19123 <Make-common.sim >m68hc11/Makesim1.tmp
19124 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
19125 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
19126 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
19127 <m68hc11/Makefile.sim >m68hc11/Makefile
19128 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
19129 ;;
19130 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
19131 "mcore/Makefile":C) sed -n \
19132 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19133 /^srcdir = / s:$:/mcore:
19134 p
19135 }' \
19136 <Make-common.sim >mcore/Makesim1.tmp
19137 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
19138 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
19139 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
19140 <mcore/Makefile.sim >mcore/Makefile
19141 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
19142 ;;
19143 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
19144 "microblaze/Makefile":C) sed -n \
19145 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19146 /^srcdir = / s:$:/microblaze:
19147 p
19148 }' \
19149 <Make-common.sim >microblaze/Makesim1.tmp
19150 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
19151 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
19152 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
19153 <microblaze/Makefile.sim >microblaze/Makefile
19154 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
19155 ;;
19156 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
19157 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
19158 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
19159 "moxie/Makefile":C) sed -n \
19160 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19161 /^srcdir = / s:$:/moxie:
19162 p
19163 }' \
19164 <Make-common.sim >moxie/Makesim1.tmp
19165 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
19166 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
19167 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
19168 <moxie/Makefile.sim >moxie/Makefile
19169 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
19170 ;;
19171 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
19172 "msp430/Makefile":C) sed -n \
19173 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19174 /^srcdir = / s:$:/msp430:
19175 p
19176 }' \
19177 <Make-common.sim >msp430/Makesim1.tmp
19178 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
19179 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
19180 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
19181 <msp430/Makefile.sim >msp430/Makefile
19182 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
19183 ;;
19184 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
19185 "or1k/Makefile":C) sed -n \
19186 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19187 /^srcdir = / s:$:/or1k:
19188 p
19189 }' \
19190 <Make-common.sim >or1k/Makesim1.tmp
19191 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >or1k/Makesim2.tmp
19192 sed -e '/^## COMMON_PRE_/ r or1k/Makesim1.tmp' \
19193 -e '/^## COMMON_POST_/ r or1k/Makesim2.tmp' \
19194 <or1k/Makefile.sim >or1k/Makefile
19195 rm -f or1k/Makesim1.tmp or1k/Makesim2.tmp
19196 ;;
19197 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
19198 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
19199 "pru/Makefile":C) sed -n \
19200 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19201 /^srcdir = / s:$:/pru:
19202 p
19203 }' \
19204 <Make-common.sim >pru/Makesim1.tmp
19205 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
19206 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
19207 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
19208 <pru/Makefile.sim >pru/Makefile
19209 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
19210 ;;
19211 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
19212 "riscv/Makefile":C) sed -n \
19213 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19214 /^srcdir = / s:$:/riscv:
19215 p
19216 }' \
19217 <Make-common.sim >riscv/Makesim1.tmp
19218 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >riscv/Makesim2.tmp
19219 sed -e '/^## COMMON_PRE_/ r riscv/Makesim1.tmp' \
19220 -e '/^## COMMON_POST_/ r riscv/Makesim2.tmp' \
19221 <riscv/Makefile.sim >riscv/Makefile
19222 rm -f riscv/Makesim1.tmp riscv/Makesim2.tmp
19223 ;;
19224 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
19225 "rl78/Makefile":C) sed -n \
19226 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19227 /^srcdir = / s:$:/rl78:
19228 p
19229 }' \
19230 <Make-common.sim >rl78/Makesim1.tmp
19231 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
19232 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
19233 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
19234 <rl78/Makefile.sim >rl78/Makefile
19235 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
19236 ;;
19237 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
19238 "rx/Makefile":C) sed -n \
19239 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19240 /^srcdir = / s:$:/rx:
19241 p
19242 }' \
19243 <Make-common.sim >rx/Makesim1.tmp
19244 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
19245 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
19246 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
19247 <rx/Makefile.sim >rx/Makefile
19248 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
19249 ;;
19250 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
19251 "sh/Makefile":C) sed -n \
19252 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19253 /^srcdir = / s:$:/sh:
19254 p
19255 }' \
19256 <Make-common.sim >sh/Makesim1.tmp
19257 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
19258 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
19259 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
19260 <sh/Makefile.sim >sh/Makefile
19261 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
19262 ;;
19263 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
19264 "erc32/Makefile":C) sed -n \
19265 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19266 /^srcdir = / s:$:/erc32:
19267 p
19268 }' \
19269 <Make-common.sim >erc32/Makesim1.tmp
19270 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
19271 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
19272 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
19273 <erc32/Makefile.sim >erc32/Makefile
19274 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
19275 ;;
19276 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
19277 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
19278 "example-synacor/Makefile":C) sed -n \
19279 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19280 /^srcdir = / s:$:/example-synacor:
19281 p
19282 }' \
19283 <Make-common.sim >example-synacor/Makesim1.tmp
19284 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
19285 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
19286 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
19287 <example-synacor/Makefile.sim >example-synacor/Makefile
19288 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
19289 ;;
19290 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
19291
19292 esac
19293 done # for ac_tag
19294
19295
19296 as_fn_exit 0
19297 _ACEOF
19298 ac_clean_files=$ac_clean_files_save
19299
19300 test $ac_write_fail = 0 ||
19301 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19302
19303
19304 # configure is writing to config.log, and then calls config.status.
19305 # config.status does its own redirection, appending to config.log.
19306 # Unfortunately, on DOS this fails, as config.log is still kept open
19307 # by configure, so config.status won't be able to write to it; its
19308 # output is simply discarded. So we exec the FD to /dev/null,
19309 # effectively closing config.log, so it can be properly (re)opened and
19310 # appended to by config.status. When coming back to configure, we
19311 # need to make the FD available again.
19312 if test "$no_create" != yes; then
19313 ac_cs_success=:
19314 ac_config_status_args=
19315 test "$silent" = yes &&
19316 ac_config_status_args="$ac_config_status_args --quiet"
19317 exec 5>/dev/null
19318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19319 exec 5>>config.log
19320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19321 # would make configure fail if this is the last instruction.
19322 $ac_cs_success || as_fn_exit 1
19323 fi
19324
19325 #
19326 # CONFIG_SUBDIRS section.
19327 #
19328 if test "$no_recursion" != yes; then
19329
19330 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19331 # so they do not pile up.
19332 ac_sub_configure_args=
19333 ac_prev=
19334 eval "set x $ac_configure_args"
19335 shift
19336 for ac_arg
19337 do
19338 if test -n "$ac_prev"; then
19339 ac_prev=
19340 continue
19341 fi
19342 case $ac_arg in
19343 -cache-file | --cache-file | --cache-fil | --cache-fi \
19344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19345 ac_prev=cache_file ;;
19346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19348 | --c=*)
19349 ;;
19350 --config-cache | -C)
19351 ;;
19352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19353 ac_prev=srcdir ;;
19354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19355 ;;
19356 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19357 ac_prev=prefix ;;
19358 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19359 ;;
19360 --disable-option-checking)
19361 ;;
19362 *)
19363 case $ac_arg in
19364 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19365 esac
19366 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19367 esac
19368 done
19369
19370 # Always prepend --prefix to ensure using the same prefix
19371 # in subdir configurations.
19372 ac_arg="--prefix=$prefix"
19373 case $ac_arg in
19374 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19375 esac
19376 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19377
19378 # Pass --silent
19379 if test "$silent" = yes; then
19380 ac_sub_configure_args="--silent $ac_sub_configure_args"
19381 fi
19382
19383 # Always prepend --disable-option-checking to silence warnings, since
19384 # different subdirs can have different --enable and --with options.
19385 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19386
19387 ac_popdir=`pwd`
19388 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19389
19390 # Do not complain, so a configure script can configure whichever
19391 # parts of a large source tree are present.
19392 test -d "$srcdir/$ac_dir" || continue
19393
19394 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19395 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19396 $as_echo "$ac_msg" >&6
19397 as_dir="$ac_dir"; as_fn_mkdir_p
19398 ac_builddir=.
19399
19400 case "$ac_dir" in
19401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19402 *)
19403 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19404 # A ".." for each directory in $ac_dir_suffix.
19405 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19406 case $ac_top_builddir_sub in
19407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19409 esac ;;
19410 esac
19411 ac_abs_top_builddir=$ac_pwd
19412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19413 # for backward compatibility:
19414 ac_top_builddir=$ac_top_build_prefix
19415
19416 case $srcdir in
19417 .) # We are building in place.
19418 ac_srcdir=.
19419 ac_top_srcdir=$ac_top_builddir_sub
19420 ac_abs_top_srcdir=$ac_pwd ;;
19421 [\\/]* | ?:[\\/]* ) # Absolute name.
19422 ac_srcdir=$srcdir$ac_dir_suffix;
19423 ac_top_srcdir=$srcdir
19424 ac_abs_top_srcdir=$srcdir ;;
19425 *) # Relative name.
19426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19427 ac_top_srcdir=$ac_top_build_prefix$srcdir
19428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19429 esac
19430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19431
19432
19433 cd "$ac_dir"
19434
19435 # Check for guested configure; otherwise get Cygnus style configure.
19436 if test -f "$ac_srcdir/configure.gnu"; then
19437 ac_sub_configure=$ac_srcdir/configure.gnu
19438 elif test -f "$ac_srcdir/configure"; then
19439 ac_sub_configure=$ac_srcdir/configure
19440 elif test -f "$ac_srcdir/configure.in"; then
19441 # This should be Cygnus configure.
19442 ac_sub_configure=$ac_aux_dir/configure
19443 else
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19446 ac_sub_configure=
19447 fi
19448
19449 # The recursion is here.
19450 if test -n "$ac_sub_configure"; then
19451 # Make the cache file name correct relative to the subdirectory.
19452 case $cache_file in
19453 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19454 *) # Relative name.
19455 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19456 esac
19457
19458 { $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
19459 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19460 # The eval makes quoting arguments work.
19461 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19462 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19463 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19464 fi
19465
19466 cd "$ac_popdir"
19467 done
19468 fi
19469 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19471 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19472 fi
19473