]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: warnings: add more flags
[thirdparty/binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sim 0.
4 #
5 # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
595 PACKAGE_STRING='sim 0'
596 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 SIM_RISCV_BITSIZE
643 SIM_MIPS_GEN_MODE_MULTI_FALSE
644 SIM_MIPS_GEN_MODE_MULTI_TRUE
645 SIM_MIPS_GEN_MODE_M16_FALSE
646 SIM_MIPS_GEN_MODE_M16_TRUE
647 SIM_MIPS_GEN_MODE_SINGLE_FALSE
648 SIM_MIPS_GEN_MODE_SINGLE_TRUE
649 SIM_MIPS_MULTI_OBJ
650 SIM_MIPS_MULTI_SRC
651 SIM_MIPS_MULTI_IGEN_CONFIGS
652 SIM_MIPS_IGEN_ITABLE_FLAGS
653 SIM_MIPS_GEN
654 SIM_MIPS_M16_FLAGS
655 SIM_MIPS_SINGLE_FLAGS
656 SIM_MIPS_FPU_BITSIZE
657 SIM_MIPS_BITSIZE
658 SIM_MIPS_SUBTARGET
659 SIM_FRV_TRAPDUMP_FLAGS
660 IGEN_FLAGS_SMP
661 SIM_INLINE
662 SIM_HW_SOCKSER
663 SIM_HW_CFLAGS
664 SIM_ENABLE_HW_FALSE
665 SIM_ENABLE_HW_TRUE
666 cgen
667 cgendir
668 CGEN_MAINT
669 ENABLE_SIM_FALSE
670 ENABLE_SIM_TRUE
671 SIM_ENABLE_ARCH_examples_FALSE
672 SIM_ENABLE_ARCH_examples_TRUE
673 CC_FOR_TARGET_EXAMPLE_SYNACOR
674 LD_FOR_TARGET_EXAMPLE_SYNACOR
675 AS_FOR_TARGET_EXAMPLE_SYNACOR
676 SIM_ENABLE_ARCH_v850_FALSE
677 SIM_ENABLE_ARCH_v850_TRUE
678 CC_FOR_TARGET_V850
679 LD_FOR_TARGET_V850
680 AS_FOR_TARGET_V850
681 SIM_ENABLE_ARCH_erc32_FALSE
682 SIM_ENABLE_ARCH_erc32_TRUE
683 CC_FOR_TARGET_ERC32
684 LD_FOR_TARGET_ERC32
685 AS_FOR_TARGET_ERC32
686 SIM_ENABLE_ARCH_sh_FALSE
687 SIM_ENABLE_ARCH_sh_TRUE
688 CC_FOR_TARGET_SH
689 LD_FOR_TARGET_SH
690 AS_FOR_TARGET_SH
691 SIM_ENABLE_ARCH_rx_FALSE
692 SIM_ENABLE_ARCH_rx_TRUE
693 CC_FOR_TARGET_RX
694 LD_FOR_TARGET_RX
695 AS_FOR_TARGET_RX
696 SIM_ENABLE_ARCH_rl78_FALSE
697 SIM_ENABLE_ARCH_rl78_TRUE
698 CC_FOR_TARGET_RL78
699 LD_FOR_TARGET_RL78
700 AS_FOR_TARGET_RL78
701 SIM_ENABLE_ARCH_riscv_FALSE
702 SIM_ENABLE_ARCH_riscv_TRUE
703 CC_FOR_TARGET_RISCV
704 LD_FOR_TARGET_RISCV
705 AS_FOR_TARGET_RISCV
706 SIM_ENABLE_ARCH_pru_FALSE
707 SIM_ENABLE_ARCH_pru_TRUE
708 CC_FOR_TARGET_PRU
709 LD_FOR_TARGET_PRU
710 AS_FOR_TARGET_PRU
711 SIM_ENABLE_ARCH_ppc_FALSE
712 SIM_ENABLE_ARCH_ppc_TRUE
713 CC_FOR_TARGET_PPC
714 LD_FOR_TARGET_PPC
715 AS_FOR_TARGET_PPC
716 subdirs
717 SIM_ENABLE_ARCH_or1k_FALSE
718 SIM_ENABLE_ARCH_or1k_TRUE
719 CC_FOR_TARGET_OR1K
720 LD_FOR_TARGET_OR1K
721 AS_FOR_TARGET_OR1K
722 SIM_ENABLE_ARCH_msp430_FALSE
723 SIM_ENABLE_ARCH_msp430_TRUE
724 CC_FOR_TARGET_MSP430
725 LD_FOR_TARGET_MSP430
726 AS_FOR_TARGET_MSP430
727 SIM_ENABLE_ARCH_moxie_FALSE
728 SIM_ENABLE_ARCH_moxie_TRUE
729 CC_FOR_TARGET_MOXIE
730 LD_FOR_TARGET_MOXIE
731 AS_FOR_TARGET_MOXIE
732 SIM_ENABLE_ARCH_mn10300_FALSE
733 SIM_ENABLE_ARCH_mn10300_TRUE
734 CC_FOR_TARGET_MN10300
735 LD_FOR_TARGET_MN10300
736 AS_FOR_TARGET_MN10300
737 SIM_ENABLE_ARCH_mips_FALSE
738 SIM_ENABLE_ARCH_mips_TRUE
739 CC_FOR_TARGET_MIPS
740 LD_FOR_TARGET_MIPS
741 AS_FOR_TARGET_MIPS
742 SIM_ENABLE_ARCH_microblaze_FALSE
743 SIM_ENABLE_ARCH_microblaze_TRUE
744 CC_FOR_TARGET_MICROBLAZE
745 LD_FOR_TARGET_MICROBLAZE
746 AS_FOR_TARGET_MICROBLAZE
747 SIM_ENABLE_ARCH_mcore_FALSE
748 SIM_ENABLE_ARCH_mcore_TRUE
749 CC_FOR_TARGET_MCORE
750 LD_FOR_TARGET_MCORE
751 AS_FOR_TARGET_MCORE
752 SIM_ENABLE_ARCH_m68hc11_FALSE
753 SIM_ENABLE_ARCH_m68hc11_TRUE
754 CC_FOR_TARGET_M68HC11
755 LD_FOR_TARGET_M68HC11
756 AS_FOR_TARGET_M68HC11
757 SIM_ENABLE_ARCH_m32r_FALSE
758 SIM_ENABLE_ARCH_m32r_TRUE
759 CC_FOR_TARGET_M32R
760 LD_FOR_TARGET_M32R
761 AS_FOR_TARGET_M32R
762 SIM_ENABLE_ARCH_m32c_FALSE
763 SIM_ENABLE_ARCH_m32c_TRUE
764 CC_FOR_TARGET_M32C
765 LD_FOR_TARGET_M32C
766 AS_FOR_TARGET_M32C
767 SIM_ENABLE_ARCH_lm32_FALSE
768 SIM_ENABLE_ARCH_lm32_TRUE
769 CC_FOR_TARGET_LM32
770 LD_FOR_TARGET_LM32
771 AS_FOR_TARGET_LM32
772 SIM_ENABLE_ARCH_iq2000_FALSE
773 SIM_ENABLE_ARCH_iq2000_TRUE
774 CC_FOR_TARGET_IQ2000
775 LD_FOR_TARGET_IQ2000
776 AS_FOR_TARGET_IQ2000
777 SIM_ENABLE_ARCH_h8300_FALSE
778 SIM_ENABLE_ARCH_h8300_TRUE
779 CC_FOR_TARGET_H8300
780 LD_FOR_TARGET_H8300
781 AS_FOR_TARGET_H8300
782 SIM_ENABLE_ARCH_ft32_FALSE
783 SIM_ENABLE_ARCH_ft32_TRUE
784 CC_FOR_TARGET_FT32
785 LD_FOR_TARGET_FT32
786 AS_FOR_TARGET_FT32
787 SIM_ENABLE_ARCH_frv_FALSE
788 SIM_ENABLE_ARCH_frv_TRUE
789 CC_FOR_TARGET_FRV
790 LD_FOR_TARGET_FRV
791 AS_FOR_TARGET_FRV
792 SIM_ENABLE_ARCH_d10v_FALSE
793 SIM_ENABLE_ARCH_d10v_TRUE
794 CC_FOR_TARGET_D10V
795 LD_FOR_TARGET_D10V
796 AS_FOR_TARGET_D10V
797 SIM_ENABLE_ARCH_cris_FALSE
798 SIM_ENABLE_ARCH_cris_TRUE
799 CC_FOR_TARGET_CRIS
800 LD_FOR_TARGET_CRIS
801 AS_FOR_TARGET_CRIS
802 SIM_ENABLE_ARCH_cr16_FALSE
803 SIM_ENABLE_ARCH_cr16_TRUE
804 CC_FOR_TARGET_CR16
805 LD_FOR_TARGET_CR16
806 AS_FOR_TARGET_CR16
807 SIM_ENABLE_ARCH_bpf_FALSE
808 SIM_ENABLE_ARCH_bpf_TRUE
809 CC_FOR_TARGET_BPF
810 LD_FOR_TARGET_BPF
811 AS_FOR_TARGET_BPF
812 SIM_ENABLE_ARCH_bfin_FALSE
813 SIM_ENABLE_ARCH_bfin_TRUE
814 CC_FOR_TARGET_BFIN
815 LD_FOR_TARGET_BFIN
816 AS_FOR_TARGET_BFIN
817 SIM_ENABLE_ARCH_avr_FALSE
818 SIM_ENABLE_ARCH_avr_TRUE
819 CC_FOR_TARGET_AVR
820 LD_FOR_TARGET_AVR
821 AS_FOR_TARGET_AVR
822 SIM_ENABLE_ARCH_arm_FALSE
823 SIM_ENABLE_ARCH_arm_TRUE
824 CC_FOR_TARGET_ARM
825 LD_FOR_TARGET_ARM
826 AS_FOR_TARGET_ARM
827 SIM_ENABLE_ARCH_aarch64_FALSE
828 SIM_ENABLE_ARCH_aarch64_TRUE
829 CC_FOR_TARGET_AARCH64
830 LD_FOR_TARGET_AARCH64
831 AS_FOR_TARGET_AARCH64
832 LD_FOR_TARGET
833 AS_FOR_TARGET
834 CC_FOR_TARGET
835 SIM_ENABLED_ARCHES
836 SIM_PRIMARY_TARGET
837 AM_BACKSLASH
838 AM_DEFAULT_VERBOSITY
839 AM_DEFAULT_V
840 AM_V
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 am__nodep
845 AMDEPBACKSLASH
846 AMDEP_FALSE
847 AMDEP_TRUE
848 am__quote
849 am__include
850 DEPDIR
851 am__untar
852 am__tar
853 AMTAR
854 am__leading_dot
855 SET_MAKE
856 mkdir_p
857 MKDIR_P
858 INSTALL_STRIP_PROGRAM
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 MAINT
870 MAINTAINER_MODE_FALSE
871 MAINTAINER_MODE_TRUE
872 READLINE_CFLAGS
873 READLINE_LIB
874 TERMCAP_LIB
875 SDL_LIBS
876 SDL_CFLAGS
877 OTOOL64
878 OTOOL
879 LIPO
880 NMEDIT
881 DSYMUTIL
882 AWK
883 STRIP
884 OBJDUMP
885 LN_S
886 NM
887 ac_ct_DUMPBIN
888 DUMPBIN
889 LD
890 FGREP
891 SED
892 LIBTOOL
893 LIBOBJS
894 C_DIALECT
895 PKG_CONFIG_LIBDIR
896 PKG_CONFIG_PATH
897 PKG_CONFIG
898 RANLIB
899 AR
900 LDFLAGS_FOR_BUILD
901 CPPFLAGS_FOR_BUILD
902 CFLAGS_FOR_BUILD
903 RANLIB_FOR_BUILD
904 CC_FOR_BUILD
905 AR_FOR_BUILD
906 DTC
907 INSTALL_DATA
908 INSTALL_SCRIPT
909 INSTALL_PROGRAM
910 EGREP
911 GREP
912 CPP
913 OBJEXT
914 EXEEXT
915 ac_ct_CC
916 CPPFLAGS
917 LDFLAGS
918 CFLAGS
919 CC
920 target_os
921 target_vendor
922 target_cpu
923 target
924 host_os
925 host_vendor
926 host_cpu
927 host
928 build_os
929 build_vendor
930 build_cpu
931 build
932 REPORT_BUGS_TEXI
933 REPORT_BUGS_TO
934 PKGVERSION
935 target_alias
936 host_alias
937 build_alias
938 LIBS
939 ECHO_T
940 ECHO_N
941 ECHO_C
942 DEFS
943 mandir
944 localedir
945 libdir
946 psdir
947 pdfdir
948 dvidir
949 htmldir
950 infodir
951 docdir
952 oldincludedir
953 includedir
954 localstatedir
955 sharedstatedir
956 sysconfdir
957 datadir
958 datarootdir
959 libexecdir
960 sbindir
961 bindir
962 program_transform_name
963 prefix
964 exec_prefix
965 PACKAGE_URL
966 PACKAGE_BUGREPORT
967 PACKAGE_STRING
968 PACKAGE_VERSION
969 PACKAGE_TARNAME
970 PACKAGE_NAME
971 PATH_SEPARATOR
972 SHELL
973 SIM_TOOLCHAIN_VARS
974 WERROR_CFLAGS
975 WARN_CFLAGS'
976 ac_subst_files=''
977 ac_user_opts='
978 enable_option_checking
979 with_pkgversion
980 with_bugurl
981 enable_shared
982 enable_static
983 with_pic
984 enable_fast_install
985 with_gnu_ld
986 enable_libtool_lock
987 enable_maintainer_mode
988 enable_dependency_tracking
989 enable_silent_rules
990 enable_sim
991 enable_example_sims
992 enable_targets
993 enable_sim_alignment
994 enable_sim_assert
995 enable_cgen_maint
996 enable_sim_debug
997 enable_sim_endian
998 enable_sim_environment
999 enable_sim_hardware
1000 enable_sim_inline
1001 enable_sim_profile
1002 enable_sim_reserved_bits
1003 enable_sim_scache
1004 enable_sim_smp
1005 enable_sim_stdio
1006 enable_sim_trace
1007 enable_werror
1008 enable_build_warnings
1009 enable_sim_build_warnings
1010 enable_sim_frv_trapdump
1011 enable_sim_rx_cycle_accurate
1012 '
1013 ac_precious_vars='build_alias
1014 host_alias
1015 target_alias
1016 CC
1017 CFLAGS
1018 LDFLAGS
1019 LIBS
1020 CPPFLAGS
1021 CPP
1022 PKG_CONFIG
1023 PKG_CONFIG_PATH
1024 PKG_CONFIG_LIBDIR
1025 SDL_CFLAGS
1026 SDL_LIBS
1027 AS_FOR_TARGET_AARCH64
1028 LD_FOR_TARGET_AARCH64
1029 CC_FOR_TARGET_AARCH64
1030 AS_FOR_TARGET_ARM
1031 LD_FOR_TARGET_ARM
1032 CC_FOR_TARGET_ARM
1033 AS_FOR_TARGET_AVR
1034 LD_FOR_TARGET_AVR
1035 CC_FOR_TARGET_AVR
1036 AS_FOR_TARGET_BFIN
1037 LD_FOR_TARGET_BFIN
1038 CC_FOR_TARGET_BFIN
1039 AS_FOR_TARGET_BPF
1040 LD_FOR_TARGET_BPF
1041 CC_FOR_TARGET_BPF
1042 AS_FOR_TARGET_CR16
1043 LD_FOR_TARGET_CR16
1044 CC_FOR_TARGET_CR16
1045 AS_FOR_TARGET_CRIS
1046 LD_FOR_TARGET_CRIS
1047 CC_FOR_TARGET_CRIS
1048 AS_FOR_TARGET_D10V
1049 LD_FOR_TARGET_D10V
1050 CC_FOR_TARGET_D10V
1051 AS_FOR_TARGET_FRV
1052 LD_FOR_TARGET_FRV
1053 CC_FOR_TARGET_FRV
1054 AS_FOR_TARGET_FT32
1055 LD_FOR_TARGET_FT32
1056 CC_FOR_TARGET_FT32
1057 AS_FOR_TARGET_H8300
1058 LD_FOR_TARGET_H8300
1059 CC_FOR_TARGET_H8300
1060 AS_FOR_TARGET_IQ2000
1061 LD_FOR_TARGET_IQ2000
1062 CC_FOR_TARGET_IQ2000
1063 AS_FOR_TARGET_LM32
1064 LD_FOR_TARGET_LM32
1065 CC_FOR_TARGET_LM32
1066 AS_FOR_TARGET_M32C
1067 LD_FOR_TARGET_M32C
1068 CC_FOR_TARGET_M32C
1069 AS_FOR_TARGET_M32R
1070 LD_FOR_TARGET_M32R
1071 CC_FOR_TARGET_M32R
1072 AS_FOR_TARGET_M68HC11
1073 LD_FOR_TARGET_M68HC11
1074 CC_FOR_TARGET_M68HC11
1075 AS_FOR_TARGET_MCORE
1076 LD_FOR_TARGET_MCORE
1077 CC_FOR_TARGET_MCORE
1078 AS_FOR_TARGET_MICROBLAZE
1079 LD_FOR_TARGET_MICROBLAZE
1080 CC_FOR_TARGET_MICROBLAZE
1081 AS_FOR_TARGET_MIPS
1082 LD_FOR_TARGET_MIPS
1083 CC_FOR_TARGET_MIPS
1084 AS_FOR_TARGET_MN10300
1085 LD_FOR_TARGET_MN10300
1086 CC_FOR_TARGET_MN10300
1087 AS_FOR_TARGET_MOXIE
1088 LD_FOR_TARGET_MOXIE
1089 CC_FOR_TARGET_MOXIE
1090 AS_FOR_TARGET_MSP430
1091 LD_FOR_TARGET_MSP430
1092 CC_FOR_TARGET_MSP430
1093 AS_FOR_TARGET_OR1K
1094 LD_FOR_TARGET_OR1K
1095 CC_FOR_TARGET_OR1K
1096 AS_FOR_TARGET_PPC
1097 LD_FOR_TARGET_PPC
1098 CC_FOR_TARGET_PPC
1099 AS_FOR_TARGET_PRU
1100 LD_FOR_TARGET_PRU
1101 CC_FOR_TARGET_PRU
1102 AS_FOR_TARGET_RISCV
1103 LD_FOR_TARGET_RISCV
1104 CC_FOR_TARGET_RISCV
1105 AS_FOR_TARGET_RL78
1106 LD_FOR_TARGET_RL78
1107 CC_FOR_TARGET_RL78
1108 AS_FOR_TARGET_RX
1109 LD_FOR_TARGET_RX
1110 CC_FOR_TARGET_RX
1111 AS_FOR_TARGET_SH
1112 LD_FOR_TARGET_SH
1113 CC_FOR_TARGET_SH
1114 AS_FOR_TARGET_ERC32
1115 LD_FOR_TARGET_ERC32
1116 CC_FOR_TARGET_ERC32
1117 AS_FOR_TARGET_V850
1118 LD_FOR_TARGET_V850
1119 CC_FOR_TARGET_V850
1120 AS_FOR_TARGET_EXAMPLE_SYNACOR
1121 LD_FOR_TARGET_EXAMPLE_SYNACOR
1122 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1123 ac_subdirs_all='ppc'
1124
1125 # Initialize some variables set by options.
1126 ac_init_help=
1127 ac_init_version=false
1128 ac_unrecognized_opts=
1129 ac_unrecognized_sep=
1130 # The variables have the same names as the options, with
1131 # dashes changed to underlines.
1132 cache_file=/dev/null
1133 exec_prefix=NONE
1134 no_create=
1135 no_recursion=
1136 prefix=NONE
1137 program_prefix=NONE
1138 program_suffix=NONE
1139 program_transform_name=s,x,x,
1140 silent=
1141 site=
1142 srcdir=
1143 verbose=
1144 x_includes=NONE
1145 x_libraries=NONE
1146
1147 # Installation directory options.
1148 # These are left unexpanded so users can "make install exec_prefix=/foo"
1149 # and all the variables that are supposed to be based on exec_prefix
1150 # by default will actually change.
1151 # Use braces instead of parens because sh, perl, etc. also accept them.
1152 # (The list follows the same order as the GNU Coding Standards.)
1153 bindir='${exec_prefix}/bin'
1154 sbindir='${exec_prefix}/sbin'
1155 libexecdir='${exec_prefix}/libexec'
1156 datarootdir='${prefix}/share'
1157 datadir='${datarootdir}'
1158 sysconfdir='${prefix}/etc'
1159 sharedstatedir='${prefix}/com'
1160 localstatedir='${prefix}/var'
1161 includedir='${prefix}/include'
1162 oldincludedir='/usr/include'
1163 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1164 infodir='${datarootdir}/info'
1165 htmldir='${docdir}'
1166 dvidir='${docdir}'
1167 pdfdir='${docdir}'
1168 psdir='${docdir}'
1169 libdir='${exec_prefix}/lib'
1170 localedir='${datarootdir}/locale'
1171 mandir='${datarootdir}/man'
1172
1173 ac_prev=
1174 ac_dashdash=
1175 for ac_option
1176 do
1177 # If the previous option needs an argument, assign it.
1178 if test -n "$ac_prev"; then
1179 eval $ac_prev=\$ac_option
1180 ac_prev=
1181 continue
1182 fi
1183
1184 case $ac_option in
1185 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1186 *=) ac_optarg= ;;
1187 *) ac_optarg=yes ;;
1188 esac
1189
1190 # Accept the important Cygnus configure options, so we can diagnose typos.
1191
1192 case $ac_dashdash$ac_option in
1193 --)
1194 ac_dashdash=yes ;;
1195
1196 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1197 ac_prev=bindir ;;
1198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1199 bindir=$ac_optarg ;;
1200
1201 -build | --build | --buil | --bui | --bu)
1202 ac_prev=build_alias ;;
1203 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1204 build_alias=$ac_optarg ;;
1205
1206 -cache-file | --cache-file | --cache-fil | --cache-fi \
1207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1208 ac_prev=cache_file ;;
1209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1211 cache_file=$ac_optarg ;;
1212
1213 --config-cache | -C)
1214 cache_file=config.cache ;;
1215
1216 -datadir | --datadir | --datadi | --datad)
1217 ac_prev=datadir ;;
1218 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1219 datadir=$ac_optarg ;;
1220
1221 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1222 | --dataroo | --dataro | --datar)
1223 ac_prev=datarootdir ;;
1224 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1225 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1226 datarootdir=$ac_optarg ;;
1227
1228 -disable-* | --disable-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid feature name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "enable_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval enable_$ac_useropt=no ;;
1243
1244 -docdir | --docdir | --docdi | --doc | --do)
1245 ac_prev=docdir ;;
1246 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1247 docdir=$ac_optarg ;;
1248
1249 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1250 ac_prev=dvidir ;;
1251 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1252 dvidir=$ac_optarg ;;
1253
1254 -enable-* | --enable-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid feature name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "enable_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval enable_$ac_useropt=\$ac_optarg ;;
1269
1270 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1271 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1272 | --exec | --exe | --ex)
1273 ac_prev=exec_prefix ;;
1274 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1275 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1276 | --exec=* | --exe=* | --ex=*)
1277 exec_prefix=$ac_optarg ;;
1278
1279 -gas | --gas | --ga | --g)
1280 # Obsolete; use --with-gas.
1281 with_gas=yes ;;
1282
1283 -help | --help | --hel | --he | -h)
1284 ac_init_help=long ;;
1285 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1286 ac_init_help=recursive ;;
1287 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1288 ac_init_help=short ;;
1289
1290 -host | --host | --hos | --ho)
1291 ac_prev=host_alias ;;
1292 -host=* | --host=* | --hos=* | --ho=*)
1293 host_alias=$ac_optarg ;;
1294
1295 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1296 ac_prev=htmldir ;;
1297 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1298 | --ht=*)
1299 htmldir=$ac_optarg ;;
1300
1301 -includedir | --includedir | --includedi | --included | --include \
1302 | --includ | --inclu | --incl | --inc)
1303 ac_prev=includedir ;;
1304 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1305 | --includ=* | --inclu=* | --incl=* | --inc=*)
1306 includedir=$ac_optarg ;;
1307
1308 -infodir | --infodir | --infodi | --infod | --info | --inf)
1309 ac_prev=infodir ;;
1310 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1311 infodir=$ac_optarg ;;
1312
1313 -libdir | --libdir | --libdi | --libd)
1314 ac_prev=libdir ;;
1315 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1316 libdir=$ac_optarg ;;
1317
1318 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1319 | --libexe | --libex | --libe)
1320 ac_prev=libexecdir ;;
1321 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1322 | --libexe=* | --libex=* | --libe=*)
1323 libexecdir=$ac_optarg ;;
1324
1325 -localedir | --localedir | --localedi | --localed | --locale)
1326 ac_prev=localedir ;;
1327 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1328 localedir=$ac_optarg ;;
1329
1330 -localstatedir | --localstatedir | --localstatedi | --localstated \
1331 | --localstate | --localstat | --localsta | --localst | --locals)
1332 ac_prev=localstatedir ;;
1333 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1334 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1335 localstatedir=$ac_optarg ;;
1336
1337 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1338 ac_prev=mandir ;;
1339 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1340 mandir=$ac_optarg ;;
1341
1342 -nfp | --nfp | --nf)
1343 # Obsolete; use --without-fp.
1344 with_fp=no ;;
1345
1346 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1347 | --no-cr | --no-c | -n)
1348 no_create=yes ;;
1349
1350 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1351 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1352 no_recursion=yes ;;
1353
1354 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1355 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1356 | --oldin | --oldi | --old | --ol | --o)
1357 ac_prev=oldincludedir ;;
1358 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1359 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1360 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1361 oldincludedir=$ac_optarg ;;
1362
1363 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1364 ac_prev=prefix ;;
1365 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1366 prefix=$ac_optarg ;;
1367
1368 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1369 | --program-pre | --program-pr | --program-p)
1370 ac_prev=program_prefix ;;
1371 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1372 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1373 program_prefix=$ac_optarg ;;
1374
1375 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1376 | --program-suf | --program-su | --program-s)
1377 ac_prev=program_suffix ;;
1378 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1379 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1380 program_suffix=$ac_optarg ;;
1381
1382 -program-transform-name | --program-transform-name \
1383 | --program-transform-nam | --program-transform-na \
1384 | --program-transform-n | --program-transform- \
1385 | --program-transform | --program-transfor \
1386 | --program-transfo | --program-transf \
1387 | --program-trans | --program-tran \
1388 | --progr-tra | --program-tr | --program-t)
1389 ac_prev=program_transform_name ;;
1390 -program-transform-name=* | --program-transform-name=* \
1391 | --program-transform-nam=* | --program-transform-na=* \
1392 | --program-transform-n=* | --program-transform-=* \
1393 | --program-transform=* | --program-transfor=* \
1394 | --program-transfo=* | --program-transf=* \
1395 | --program-trans=* | --program-tran=* \
1396 | --progr-tra=* | --program-tr=* | --program-t=*)
1397 program_transform_name=$ac_optarg ;;
1398
1399 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1400 ac_prev=pdfdir ;;
1401 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1402 pdfdir=$ac_optarg ;;
1403
1404 -psdir | --psdir | --psdi | --psd | --ps)
1405 ac_prev=psdir ;;
1406 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1407 psdir=$ac_optarg ;;
1408
1409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1410 | -silent | --silent | --silen | --sile | --sil)
1411 silent=yes ;;
1412
1413 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1414 ac_prev=sbindir ;;
1415 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1416 | --sbi=* | --sb=*)
1417 sbindir=$ac_optarg ;;
1418
1419 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1420 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1421 | --sharedst | --shareds | --shared | --share | --shar \
1422 | --sha | --sh)
1423 ac_prev=sharedstatedir ;;
1424 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1425 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1426 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1427 | --sha=* | --sh=*)
1428 sharedstatedir=$ac_optarg ;;
1429
1430 -site | --site | --sit)
1431 ac_prev=site ;;
1432 -site=* | --site=* | --sit=*)
1433 site=$ac_optarg ;;
1434
1435 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1436 ac_prev=srcdir ;;
1437 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1438 srcdir=$ac_optarg ;;
1439
1440 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1441 | --syscon | --sysco | --sysc | --sys | --sy)
1442 ac_prev=sysconfdir ;;
1443 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1444 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1445 sysconfdir=$ac_optarg ;;
1446
1447 -target | --target | --targe | --targ | --tar | --ta | --t)
1448 ac_prev=target_alias ;;
1449 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1450 target_alias=$ac_optarg ;;
1451
1452 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1453 verbose=yes ;;
1454
1455 -version | --version | --versio | --versi | --vers | -V)
1456 ac_init_version=: ;;
1457
1458 -with-* | --with-*)
1459 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1460 # Reject names that are not valid shell variable names.
1461 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462 as_fn_error $? "invalid package name: $ac_useropt"
1463 ac_useropt_orig=$ac_useropt
1464 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1465 case $ac_user_opts in
1466 *"
1467 "with_$ac_useropt"
1468 "*) ;;
1469 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1470 ac_unrecognized_sep=', ';;
1471 esac
1472 eval with_$ac_useropt=\$ac_optarg ;;
1473
1474 -without-* | --without-*)
1475 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1476 # Reject names that are not valid shell variable names.
1477 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1478 as_fn_error $? "invalid package name: $ac_useropt"
1479 ac_useropt_orig=$ac_useropt
1480 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1481 case $ac_user_opts in
1482 *"
1483 "with_$ac_useropt"
1484 "*) ;;
1485 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1486 ac_unrecognized_sep=', ';;
1487 esac
1488 eval with_$ac_useropt=no ;;
1489
1490 --x)
1491 # Obsolete; use --with-x.
1492 with_x=yes ;;
1493
1494 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1495 | --x-incl | --x-inc | --x-in | --x-i)
1496 ac_prev=x_includes ;;
1497 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1498 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1499 x_includes=$ac_optarg ;;
1500
1501 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1502 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1503 ac_prev=x_libraries ;;
1504 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1505 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1506 x_libraries=$ac_optarg ;;
1507
1508 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1509 Try \`$0 --help' for more information"
1510 ;;
1511
1512 *=*)
1513 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1514 # Reject names that are not valid shell variable names.
1515 case $ac_envvar in #(
1516 '' | [0-9]* | *[!_$as_cr_alnum]* )
1517 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1518 esac
1519 eval $ac_envvar=\$ac_optarg
1520 export $ac_envvar ;;
1521
1522 *)
1523 # FIXME: should be removed in autoconf 3.0.
1524 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1525 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1526 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1527 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1528 ;;
1529
1530 esac
1531 done
1532
1533 if test -n "$ac_prev"; then
1534 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1535 as_fn_error $? "missing argument to $ac_option"
1536 fi
1537
1538 if test -n "$ac_unrecognized_opts"; then
1539 case $enable_option_checking in
1540 no) ;;
1541 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1542 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1543 esac
1544 fi
1545
1546 # Check all directory arguments for consistency.
1547 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1548 datadir sysconfdir sharedstatedir localstatedir includedir \
1549 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1550 libdir localedir mandir
1551 do
1552 eval ac_val=\$$ac_var
1553 # Remove trailing slashes.
1554 case $ac_val in
1555 */ )
1556 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1557 eval $ac_var=\$ac_val;;
1558 esac
1559 # Be sure to have absolute directory names.
1560 case $ac_val in
1561 [\\/$]* | ?:[\\/]* ) continue;;
1562 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1563 esac
1564 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1565 done
1566
1567 # There might be people who depend on the old broken behavior: `$host'
1568 # used to hold the argument of --host etc.
1569 # FIXME: To remove some day.
1570 build=$build_alias
1571 host=$host_alias
1572 target=$target_alias
1573
1574 # FIXME: To remove some day.
1575 if test "x$host_alias" != x; then
1576 if test "x$build_alias" = x; then
1577 cross_compiling=maybe
1578 elif test "x$build_alias" != "x$host_alias"; then
1579 cross_compiling=yes
1580 fi
1581 fi
1582
1583 ac_tool_prefix=
1584 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1585
1586 test "$silent" = yes && exec 6>/dev/null
1587
1588
1589 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1590 ac_ls_di=`ls -di .` &&
1591 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1592 as_fn_error $? "working directory cannot be determined"
1593 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1594 as_fn_error $? "pwd does not report name of working directory"
1595
1596
1597 # Find the source files, if location was not specified.
1598 if test -z "$srcdir"; then
1599 ac_srcdir_defaulted=yes
1600 # Try the directory containing this script, then the parent directory.
1601 ac_confdir=`$as_dirname -- "$as_myself" ||
1602 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1603 X"$as_myself" : 'X\(//\)[^/]' \| \
1604 X"$as_myself" : 'X\(//\)$' \| \
1605 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1606 $as_echo X"$as_myself" |
1607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1608 s//\1/
1609 q
1610 }
1611 /^X\(\/\/\)[^/].*/{
1612 s//\1/
1613 q
1614 }
1615 /^X\(\/\/\)$/{
1616 s//\1/
1617 q
1618 }
1619 /^X\(\/\).*/{
1620 s//\1/
1621 q
1622 }
1623 s/.*/./; q'`
1624 srcdir=$ac_confdir
1625 if test ! -r "$srcdir/$ac_unique_file"; then
1626 srcdir=..
1627 fi
1628 else
1629 ac_srcdir_defaulted=no
1630 fi
1631 if test ! -r "$srcdir/$ac_unique_file"; then
1632 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1633 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1634 fi
1635 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1636 ac_abs_confdir=`(
1637 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1638 pwd)`
1639 # When building in place, set srcdir=.
1640 if test "$ac_abs_confdir" = "$ac_pwd"; then
1641 srcdir=.
1642 fi
1643 # Remove unnecessary trailing slashes from srcdir.
1644 # Double slashes in file names in object file debugging info
1645 # mess up M-x gdb in Emacs.
1646 case $srcdir in
1647 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1648 esac
1649 for ac_var in $ac_precious_vars; do
1650 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1651 eval ac_env_${ac_var}_value=\$${ac_var}
1652 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1653 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1654 done
1655
1656 #
1657 # Report the --help message.
1658 #
1659 if test "$ac_init_help" = "long"; then
1660 # Omit some internal or obsolete options to make the list less imposing.
1661 # This message is too long to be a string in the A/UX 3.1 sh.
1662 cat <<_ACEOF
1663 \`configure' configures sim 0 to adapt to many kinds of systems.
1664
1665 Usage: $0 [OPTION]... [VAR=VALUE]...
1666
1667 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1668 VAR=VALUE. See below for descriptions of some of the useful variables.
1669
1670 Defaults for the options are specified in brackets.
1671
1672 Configuration:
1673 -h, --help display this help and exit
1674 --help=short display options specific to this package
1675 --help=recursive display the short help of all the included packages
1676 -V, --version display version information and exit
1677 -q, --quiet, --silent do not print \`checking ...' messages
1678 --cache-file=FILE cache test results in FILE [disabled]
1679 -C, --config-cache alias for \`--cache-file=config.cache'
1680 -n, --no-create do not create output files
1681 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1682
1683 Installation directories:
1684 --prefix=PREFIX install architecture-independent files in PREFIX
1685 [$ac_default_prefix]
1686 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1687 [PREFIX]
1688
1689 By default, \`make install' will install all the files in
1690 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1691 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1692 for instance \`--prefix=\$HOME'.
1693
1694 For better control, use the options below.
1695
1696 Fine tuning of the installation directories:
1697 --bindir=DIR user executables [EPREFIX/bin]
1698 --sbindir=DIR system admin executables [EPREFIX/sbin]
1699 --libexecdir=DIR program executables [EPREFIX/libexec]
1700 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1701 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1702 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1703 --libdir=DIR object code libraries [EPREFIX/lib]
1704 --includedir=DIR C header files [PREFIX/include]
1705 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1706 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1707 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1708 --infodir=DIR info documentation [DATAROOTDIR/info]
1709 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1710 --mandir=DIR man documentation [DATAROOTDIR/man]
1711 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1712 --htmldir=DIR html documentation [DOCDIR]
1713 --dvidir=DIR dvi documentation [DOCDIR]
1714 --pdfdir=DIR pdf documentation [DOCDIR]
1715 --psdir=DIR ps documentation [DOCDIR]
1716 _ACEOF
1717
1718 cat <<\_ACEOF
1719
1720 Program names:
1721 --program-prefix=PREFIX prepend PREFIX to installed program names
1722 --program-suffix=SUFFIX append SUFFIX to installed program names
1723 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1724
1725 System types:
1726 --build=BUILD configure for building on BUILD [guessed]
1727 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1728 --target=TARGET configure for building compilers for TARGET [HOST]
1729 _ACEOF
1730 fi
1731
1732 if test -n "$ac_init_help"; then
1733 case $ac_init_help in
1734 short | recursive ) echo "Configuration of sim 0:";;
1735 esac
1736 cat <<\_ACEOF
1737
1738 Optional Features:
1739 --disable-option-checking ignore unrecognized --enable/--with options
1740 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1741 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1742 --enable-shared[=PKGS] build shared libraries [default=yes]
1743 --enable-static[=PKGS] build static libraries [default=yes]
1744 --enable-fast-install[=PKGS]
1745 optimize for fast installation [default=yes]
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1747 --enable-maintainer-mode
1748 enable make rules and dependencies not useful (and
1749 sometimes confusing) to the casual installer
1750 --enable-dependency-tracking
1751 do not reject slow dependency extractors
1752 --disable-dependency-tracking
1753 speeds up one-time build
1754 --enable-silent-rules less verbose build output (undo: "make V=1")
1755 --disable-silent-rules verbose build output (undo: "make V=0")
1756 --enable-sim Enable the GNU simulator
1757 --enable-example-sims enable example GNU simulators
1758 --enable-targets alternative target configurations
1759 --enable-sim-alignment=align
1760 Specify strict, nonstrict or forced alignment of
1761 memory accesses
1762 --enable-sim-assert Specify whether to perform random assertions
1763 --enable-cgen-maint=DIR build cgen generated files
1764 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1765 itself)
1766 --enable-sim-endian=endian
1767 Specify target byte endian orientation
1768 --enable-sim-environment=environment
1769 Specify mixed, user, virtual or operating
1770 environment
1771 --enable-sim-hardware Whether to enable hardware/device simulation
1772 --enable-sim-inline=inlines
1773 Specify which functions should be inlined
1774 --enable-sim-profile=opts
1775 Enable profiling flags
1776 --enable-sim-reserved-bits
1777 Specify whether to check reserved bits in
1778 instruction
1779 --enable-sim-scache=size
1780 Specify simulator execution cache size
1781 --enable-sim-smp=n Specify number of processors to configure for
1782 (default 1)
1783 --enable-sim-stdio Specify whether to use stdio for console
1784 input/output
1785 --enable-sim-trace=opts Enable tracing of simulated programs
1786 --enable-werror treat compile warnings as errors
1787 --enable-build-warnings enable build-time compiler warnings if gcc is used
1788 --enable-sim-build-warnings
1789 enable SIM specific build-time compiler warnings if
1790 gcc is used
1791 --enable-sim-frv-trapdump
1792 Make unknown traps dump the registers
1793 --disable-sim-rx-cycle-accurate
1794 Disable cycle accurate simulation (faster runtime)
1795
1796 Optional Packages:
1797 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1798 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1799 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1800 --with-bugurl=URL Direct users to URL to report a bug
1801 --with-pic try to use only PIC/non-PIC objects [default=use
1802 both]
1803 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1804
1805 Some influential environment variables:
1806 CC C compiler command
1807 CFLAGS C compiler flags
1808 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1809 nonstandard directory <lib dir>
1810 LIBS libraries to pass to the linker, e.g. -l<library>
1811 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1812 you have headers in a nonstandard directory <include dir>
1813 CPP C preprocessor
1814 PKG_CONFIG path to pkg-config utility
1815 PKG_CONFIG_PATH
1816 directories to add to pkg-config's search path
1817 PKG_CONFIG_LIBDIR
1818 path overriding pkg-config's built-in search path
1819 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1820 SDL_LIBS linker flags for SDL, overriding pkg-config
1821 AS_FOR_TARGET_AARCH64
1822 Assembler for aarch64 tests
1823 LD_FOR_TARGET_AARCH64
1824 Linker for aarch64 tests
1825 CC_FOR_TARGET_AARCH64
1826 C compiler for aarch64 tests
1827 AS_FOR_TARGET_ARM
1828 Assembler for arm tests
1829 LD_FOR_TARGET_ARM
1830 Linker for arm tests
1831 CC_FOR_TARGET_ARM
1832 C compiler for arm tests
1833 AS_FOR_TARGET_AVR
1834 Assembler for avr tests
1835 LD_FOR_TARGET_AVR
1836 Linker for avr tests
1837 CC_FOR_TARGET_AVR
1838 C compiler for avr tests
1839 AS_FOR_TARGET_BFIN
1840 Assembler for bfin tests
1841 LD_FOR_TARGET_BFIN
1842 Linker for bfin tests
1843 CC_FOR_TARGET_BFIN
1844 C compiler for bfin tests
1845 AS_FOR_TARGET_BPF
1846 Assembler for bpf tests
1847 LD_FOR_TARGET_BPF
1848 Linker for bpf tests
1849 CC_FOR_TARGET_BPF
1850 C compiler for bpf tests
1851 AS_FOR_TARGET_CR16
1852 Assembler for cr16 tests
1853 LD_FOR_TARGET_CR16
1854 Linker for cr16 tests
1855 CC_FOR_TARGET_CR16
1856 C compiler for cr16 tests
1857 AS_FOR_TARGET_CRIS
1858 Assembler for cris tests
1859 LD_FOR_TARGET_CRIS
1860 Linker for cris tests
1861 CC_FOR_TARGET_CRIS
1862 C compiler for cris tests
1863 AS_FOR_TARGET_D10V
1864 Assembler for d10v tests
1865 LD_FOR_TARGET_D10V
1866 Linker for d10v tests
1867 CC_FOR_TARGET_D10V
1868 C compiler for d10v tests
1869 AS_FOR_TARGET_FRV
1870 Assembler for frv tests
1871 LD_FOR_TARGET_FRV
1872 Linker for frv tests
1873 CC_FOR_TARGET_FRV
1874 C compiler for frv tests
1875 AS_FOR_TARGET_FT32
1876 Assembler for ft32 tests
1877 LD_FOR_TARGET_FT32
1878 Linker for ft32 tests
1879 CC_FOR_TARGET_FT32
1880 C compiler for ft32 tests
1881 AS_FOR_TARGET_H8300
1882 Assembler for h8300 tests
1883 LD_FOR_TARGET_H8300
1884 Linker for h8300 tests
1885 CC_FOR_TARGET_H8300
1886 C compiler for h8300 tests
1887 AS_FOR_TARGET_IQ2000
1888 Assembler for iq2000 tests
1889 LD_FOR_TARGET_IQ2000
1890 Linker for iq2000 tests
1891 CC_FOR_TARGET_IQ2000
1892 C compiler for iq2000 tests
1893 AS_FOR_TARGET_LM32
1894 Assembler for lm32 tests
1895 LD_FOR_TARGET_LM32
1896 Linker for lm32 tests
1897 CC_FOR_TARGET_LM32
1898 C compiler for lm32 tests
1899 AS_FOR_TARGET_M32C
1900 Assembler for m32c tests
1901 LD_FOR_TARGET_M32C
1902 Linker for m32c tests
1903 CC_FOR_TARGET_M32C
1904 C compiler for m32c tests
1905 AS_FOR_TARGET_M32R
1906 Assembler for m32r tests
1907 LD_FOR_TARGET_M32R
1908 Linker for m32r tests
1909 CC_FOR_TARGET_M32R
1910 C compiler for m32r tests
1911 AS_FOR_TARGET_M68HC11
1912 Assembler for m68hc11 tests
1913 LD_FOR_TARGET_M68HC11
1914 Linker for m68hc11 tests
1915 CC_FOR_TARGET_M68HC11
1916 C compiler for m68hc11 tests
1917 AS_FOR_TARGET_MCORE
1918 Assembler for mcore tests
1919 LD_FOR_TARGET_MCORE
1920 Linker for mcore tests
1921 CC_FOR_TARGET_MCORE
1922 C compiler for mcore tests
1923 AS_FOR_TARGET_MICROBLAZE
1924 Assembler for microblaze tests
1925 LD_FOR_TARGET_MICROBLAZE
1926 Linker for microblaze tests
1927 CC_FOR_TARGET_MICROBLAZE
1928 C compiler for microblaze tests
1929 AS_FOR_TARGET_MIPS
1930 Assembler for mips tests
1931 LD_FOR_TARGET_MIPS
1932 Linker for mips tests
1933 CC_FOR_TARGET_MIPS
1934 C compiler for mips tests
1935 AS_FOR_TARGET_MN10300
1936 Assembler for mn10300 tests
1937 LD_FOR_TARGET_MN10300
1938 Linker for mn10300 tests
1939 CC_FOR_TARGET_MN10300
1940 C compiler for mn10300 tests
1941 AS_FOR_TARGET_MOXIE
1942 Assembler for moxie tests
1943 LD_FOR_TARGET_MOXIE
1944 Linker for moxie tests
1945 CC_FOR_TARGET_MOXIE
1946 C compiler for moxie tests
1947 AS_FOR_TARGET_MSP430
1948 Assembler for msp430 tests
1949 LD_FOR_TARGET_MSP430
1950 Linker for msp430 tests
1951 CC_FOR_TARGET_MSP430
1952 C compiler for msp430 tests
1953 AS_FOR_TARGET_OR1K
1954 Assembler for or1k tests
1955 LD_FOR_TARGET_OR1K
1956 Linker for or1k tests
1957 CC_FOR_TARGET_OR1K
1958 C compiler for or1k tests
1959 AS_FOR_TARGET_PPC
1960 Assembler for ppc tests
1961 LD_FOR_TARGET_PPC
1962 Linker for ppc tests
1963 CC_FOR_TARGET_PPC
1964 C compiler for ppc tests
1965 AS_FOR_TARGET_PRU
1966 Assembler for pru tests
1967 LD_FOR_TARGET_PRU
1968 Linker for pru tests
1969 CC_FOR_TARGET_PRU
1970 C compiler for pru tests
1971 AS_FOR_TARGET_RISCV
1972 Assembler for riscv tests
1973 LD_FOR_TARGET_RISCV
1974 Linker for riscv tests
1975 CC_FOR_TARGET_RISCV
1976 C compiler for riscv tests
1977 AS_FOR_TARGET_RL78
1978 Assembler for rl78 tests
1979 LD_FOR_TARGET_RL78
1980 Linker for rl78 tests
1981 CC_FOR_TARGET_RL78
1982 C compiler for rl78 tests
1983 AS_FOR_TARGET_RX
1984 Assembler for rx tests
1985 LD_FOR_TARGET_RX
1986 Linker for rx tests
1987 CC_FOR_TARGET_RX
1988 C compiler for rx tests
1989 AS_FOR_TARGET_SH
1990 Assembler for sh tests
1991 LD_FOR_TARGET_SH
1992 Linker for sh tests
1993 CC_FOR_TARGET_SH
1994 C compiler for sh tests
1995 AS_FOR_TARGET_ERC32
1996 Assembler for erc32 tests
1997 LD_FOR_TARGET_ERC32
1998 Linker for erc32 tests
1999 CC_FOR_TARGET_ERC32
2000 C compiler for erc32 tests
2001 AS_FOR_TARGET_V850
2002 Assembler for v850 tests
2003 LD_FOR_TARGET_V850
2004 Linker for v850 tests
2005 CC_FOR_TARGET_V850
2006 C compiler for v850 tests
2007 AS_FOR_TARGET_EXAMPLE_SYNACOR
2008 Assembler for example-synacor tests
2009 LD_FOR_TARGET_EXAMPLE_SYNACOR
2010 Linker for example-synacor tests
2011 CC_FOR_TARGET_EXAMPLE_SYNACOR
2012 C compiler for example-synacor tests
2013
2014 Use these variables to override the choices made by `configure' or to help
2015 it to find libraries and programs with nonstandard names/locations.
2016
2017 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2018 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2019 _ACEOF
2020 ac_status=$?
2021 fi
2022
2023 if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2030
2031 case "$ac_dir" in
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033 *)
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041 esac
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2046
2047 case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060 esac
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2076 fi
2077
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2080 cat <<\_ACEOF
2081 sim configure 0
2082 generated by GNU Autoconf 2.69
2083
2084 Copyright (C) 2012 Free Software Foundation, Inc.
2085 This configure script is free software; the Free Software Foundation
2086 gives unlimited permission to copy, distribute and modify it.
2087 _ACEOF
2088 exit
2089 fi
2090
2091 ## ------------------------ ##
2092 ## Autoconf initialization. ##
2093 ## ------------------------ ##
2094
2095 # ac_fn_c_try_compile LINENO
2096 # --------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_c_try_compile ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2115 fi
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127 fi
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_compile
2132
2133 # ac_fn_c_try_cpp LINENO
2134 # ----------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_cpp ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } > conftest.i && {
2155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164 fi
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status $ac_retval
2167
2168 } # ac_fn_c_try_cpp
2169
2170 # ac_fn_c_try_run LINENO
2171 # ----------------------
2172 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2173 # that executables *can* be run.
2174 ac_fn_c_try_run ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if { { ac_try="$ac_link"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_link") 2>&5
2185 ac_status=$?
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2188 { { case "(($ac_try" in
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_try") 2>&5
2195 ac_status=$?
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; }; }; then :
2198 ac_retval=0
2199 else
2200 $as_echo "$as_me: program exited with status $ac_status" >&5
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 ac_retval=$ac_status
2205 fi
2206 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 as_fn_set_status $ac_retval
2209
2210 } # ac_fn_c_try_run
2211
2212 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2213 # -------------------------------------------------------
2214 # Tests whether HEADER exists and can be compiled using the include files in
2215 # INCLUDES, setting the cache variable VAR accordingly.
2216 ac_fn_c_check_header_compile ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval \${$3+:} false; then :
2222 $as_echo_n "(cached) " >&6
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 #include <$2>
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 eval "$3=yes"
2231 else
2232 eval "$3=no"
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 fi
2236 eval ac_res=\$$3
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2238 $as_echo "$ac_res" >&6; }
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240
2241 } # ac_fn_c_check_header_compile
2242
2243 # ac_fn_c_try_link LINENO
2244 # -----------------------
2245 # Try to link conftest.$ac_ext, and return whether this succeeded.
2246 ac_fn_c_try_link ()
2247 {
2248 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249 rm -f conftest.$ac_objext conftest$ac_exeext
2250 if { { ac_try="$ac_link"
2251 case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2254 esac
2255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256 $as_echo "$ac_try_echo"; } >&5
2257 (eval "$ac_link") 2>conftest.err
2258 ac_status=$?
2259 if test -s conftest.err; then
2260 grep -v '^ *+' conftest.err >conftest.er1
2261 cat conftest.er1 >&5
2262 mv -f conftest.er1 conftest.err
2263 fi
2264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265 test $ac_status = 0; } && {
2266 test -z "$ac_c_werror_flag" ||
2267 test ! -s conftest.err
2268 } && test -s conftest$ac_exeext && {
2269 test "$cross_compiling" = yes ||
2270 test -x conftest$ac_exeext
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 ac_retval=1
2278 fi
2279 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2280 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2281 # interfere with the next link command; also delete a directory that is
2282 # left behind by Apple's compiler. We do this before executing the actions.
2283 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2286
2287 } # ac_fn_c_try_link
2288
2289 # ac_fn_c_check_func LINENO FUNC VAR
2290 # ----------------------------------
2291 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2292 ac_fn_c_check_func ()
2293 {
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296 $as_echo_n "checking for $2... " >&6; }
2297 if eval \${$3+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2302 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2304 #define $2 innocuous_$2
2305
2306 /* System header to define __stub macros and hopefully few prototypes,
2307 which can conflict with char $2 (); below.
2308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2309 <limits.h> exists even on freestanding compilers. */
2310
2311 #ifdef __STDC__
2312 # include <limits.h>
2313 #else
2314 # include <assert.h>
2315 #endif
2316
2317 #undef $2
2318
2319 /* Override any GCC internal prototype to avoid an error.
2320 Use char because int might match the return type of a GCC
2321 builtin and then its argument prototype would still apply. */
2322 #ifdef __cplusplus
2323 extern "C"
2324 #endif
2325 char $2 ();
2326 /* The GNU C library defines this for functions which it implements
2327 to always fail with ENOSYS. Some functions are actually named
2328 something starting with __ and the normal name is an alias. */
2329 #if defined __stub_$2 || defined __stub___$2
2330 choke me
2331 #endif
2332
2333 int
2334 main ()
2335 {
2336 return $2 ();
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_link "$LINENO"; then :
2342 eval "$3=yes"
2343 else
2344 eval "$3=no"
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext \
2347 conftest$ac_exeext conftest.$ac_ext
2348 fi
2349 eval ac_res=\$$3
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353
2354 } # ac_fn_c_check_func
2355
2356 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2357 # ----------------------------------------------------
2358 # Tries to find if the field MEMBER exists in type AGGR, after including
2359 # INCLUDES, setting cache variable VAR accordingly.
2360 ac_fn_c_check_member ()
2361 {
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2364 $as_echo_n "checking for $2.$3... " >&6; }
2365 if eval \${$4+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2370 $5
2371 int
2372 main ()
2373 {
2374 static $2 ac_aggr;
2375 if (ac_aggr.$3)
2376 return 0;
2377 ;
2378 return 0;
2379 }
2380 _ACEOF
2381 if ac_fn_c_try_compile "$LINENO"; then :
2382 eval "$4=yes"
2383 else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2386 $5
2387 int
2388 main ()
2389 {
2390 static $2 ac_aggr;
2391 if (sizeof ac_aggr.$3)
2392 return 0;
2393 ;
2394 return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398 eval "$4=yes"
2399 else
2400 eval "$4=no"
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 eval ac_res=\$$4
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410
2411 } # ac_fn_c_check_member
2412
2413 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2414 # ---------------------------------------------
2415 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2416 # accordingly.
2417 ac_fn_c_check_decl ()
2418 {
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 as_decl_name=`echo $2|sed 's/ *(.*//'`
2421 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2423 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2424 if eval \${$3+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $4
2430 int
2431 main ()
2432 {
2433 #ifndef $as_decl_name
2434 #ifdef __cplusplus
2435 (void) $as_decl_use;
2436 #else
2437 (void) $as_decl_name;
2438 #endif
2439 #endif
2440
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446 eval "$3=yes"
2447 else
2448 eval "$3=no"
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 eval ac_res=\$$3
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456
2457 } # ac_fn_c_check_decl
2458
2459 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2460 # -------------------------------------------
2461 # Tests whether TYPE exists after having included INCLUDES, setting cache
2462 # variable VAR accordingly.
2463 ac_fn_c_check_type ()
2464 {
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if eval \${$3+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 eval "$3=no"
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $4
2475 int
2476 main ()
2477 {
2478 if (sizeof ($2))
2479 return 0;
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $4
2488 int
2489 main ()
2490 {
2491 if (sizeof (($2)))
2492 return 0;
2493 ;
2494 return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498
2499 else
2500 eval "$3=yes"
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 eval ac_res=\$$3
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508 $as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510
2511 } # ac_fn_c_check_type
2512 cat >config.log <<_ACEOF
2513 This file contains any messages produced by compilers while
2514 running configure, to aid debugging if configure makes a mistake.
2515
2516 It was created by sim $as_me 0, which was
2517 generated by GNU Autoconf 2.69. Invocation command line was
2518
2519 $ $0 $@
2520
2521 _ACEOF
2522 exec 5>>config.log
2523 {
2524 cat <<_ASUNAME
2525 ## --------- ##
2526 ## Platform. ##
2527 ## --------- ##
2528
2529 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2530 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2531 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2532 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2533 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2534
2535 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2536 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2537
2538 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2539 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2540 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2541 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2542 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2543 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2544 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2545
2546 _ASUNAME
2547
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 $as_echo "PATH: $as_dir"
2554 done
2555 IFS=$as_save_IFS
2556
2557 } >&5
2558
2559 cat >&5 <<_ACEOF
2560
2561
2562 ## ----------- ##
2563 ## Core tests. ##
2564 ## ----------- ##
2565
2566 _ACEOF
2567
2568
2569 # Keep a trace of the command line.
2570 # Strip out --no-create and --no-recursion so they do not pile up.
2571 # Strip out --silent because we don't want to record it for future runs.
2572 # Also quote any args containing shell meta-characters.
2573 # Make two passes to allow for proper duplicate-argument suppression.
2574 ac_configure_args=
2575 ac_configure_args0=
2576 ac_configure_args1=
2577 ac_must_keep_next=false
2578 for ac_pass in 1 2
2579 do
2580 for ac_arg
2581 do
2582 case $ac_arg in
2583 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2585 | -silent | --silent | --silen | --sile | --sil)
2586 continue ;;
2587 *\'*)
2588 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2589 esac
2590 case $ac_pass in
2591 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2592 2)
2593 as_fn_append ac_configure_args1 " '$ac_arg'"
2594 if test $ac_must_keep_next = true; then
2595 ac_must_keep_next=false # Got value, back to normal.
2596 else
2597 case $ac_arg in
2598 *=* | --config-cache | -C | -disable-* | --disable-* \
2599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2601 | -with-* | --with-* | -without-* | --without-* | --x)
2602 case "$ac_configure_args0 " in
2603 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2604 esac
2605 ;;
2606 -* ) ac_must_keep_next=true ;;
2607 esac
2608 fi
2609 as_fn_append ac_configure_args " '$ac_arg'"
2610 ;;
2611 esac
2612 done
2613 done
2614 { ac_configure_args0=; unset ac_configure_args0;}
2615 { ac_configure_args1=; unset ac_configure_args1;}
2616
2617 # When interrupted or exit'd, cleanup temporary files, and complete
2618 # config.log. We remove comments because anyway the quotes in there
2619 # would cause problems or look ugly.
2620 # WARNING: Use '\'' to represent an apostrophe within the trap.
2621 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2622 trap 'exit_status=$?
2623 # Save into config.log some information that might help in debugging.
2624 {
2625 echo
2626
2627 $as_echo "## ---------------- ##
2628 ## Cache variables. ##
2629 ## ---------------- ##"
2630 echo
2631 # The following way of writing the cache mishandles newlines in values,
2632 (
2633 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2634 eval ac_val=\$$ac_var
2635 case $ac_val in #(
2636 *${as_nl}*)
2637 case $ac_var in #(
2638 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2639 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2640 esac
2641 case $ac_var in #(
2642 _ | IFS | as_nl) ;; #(
2643 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2644 *) { eval $ac_var=; unset $ac_var;} ;;
2645 esac ;;
2646 esac
2647 done
2648 (set) 2>&1 |
2649 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2650 *${as_nl}ac_space=\ *)
2651 sed -n \
2652 "s/'\''/'\''\\\\'\'''\''/g;
2653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2654 ;; #(
2655 *)
2656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2657 ;;
2658 esac |
2659 sort
2660 )
2661 echo
2662
2663 $as_echo "## ----------------- ##
2664 ## Output variables. ##
2665 ## ----------------- ##"
2666 echo
2667 for ac_var in $ac_subst_vars
2668 do
2669 eval ac_val=\$$ac_var
2670 case $ac_val in
2671 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2672 esac
2673 $as_echo "$ac_var='\''$ac_val'\''"
2674 done | sort
2675 echo
2676
2677 if test -n "$ac_subst_files"; then
2678 $as_echo "## ------------------- ##
2679 ## File substitutions. ##
2680 ## ------------------- ##"
2681 echo
2682 for ac_var in $ac_subst_files
2683 do
2684 eval ac_val=\$$ac_var
2685 case $ac_val in
2686 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2687 esac
2688 $as_echo "$ac_var='\''$ac_val'\''"
2689 done | sort
2690 echo
2691 fi
2692
2693 if test -s confdefs.h; then
2694 $as_echo "## ----------- ##
2695 ## confdefs.h. ##
2696 ## ----------- ##"
2697 echo
2698 cat confdefs.h
2699 echo
2700 fi
2701 test "$ac_signal" != 0 &&
2702 $as_echo "$as_me: caught signal $ac_signal"
2703 $as_echo "$as_me: exit $exit_status"
2704 } >&5
2705 rm -f core *.core core.conftest.* &&
2706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2707 exit $exit_status
2708 ' 0
2709 for ac_signal in 1 2 13 15; do
2710 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2711 done
2712 ac_signal=0
2713
2714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2715 rm -f -r conftest* confdefs.h
2716
2717 $as_echo "/* confdefs.h */" > confdefs.h
2718
2719 # Predefined preprocessor variables.
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_NAME "$PACKAGE_NAME"
2723 _ACEOF
2724
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2727 _ACEOF
2728
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2731 _ACEOF
2732
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_STRING "$PACKAGE_STRING"
2735 _ACEOF
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2739 _ACEOF
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_URL "$PACKAGE_URL"
2743 _ACEOF
2744
2745
2746 # Let the site file select an alternate cache file if it wants to.
2747 # Prefer an explicitly selected file to automatically selected ones.
2748 ac_site_file1=NONE
2749 ac_site_file2=NONE
2750 if test -n "$CONFIG_SITE"; then
2751 # We do not want a PATH search for config.site.
2752 case $CONFIG_SITE in #((
2753 -*) ac_site_file1=./$CONFIG_SITE;;
2754 */*) ac_site_file1=$CONFIG_SITE;;
2755 *) ac_site_file1=./$CONFIG_SITE;;
2756 esac
2757 elif test "x$prefix" != xNONE; then
2758 ac_site_file1=$prefix/share/config.site
2759 ac_site_file2=$prefix/etc/config.site
2760 else
2761 ac_site_file1=$ac_default_prefix/share/config.site
2762 ac_site_file2=$ac_default_prefix/etc/config.site
2763 fi
2764 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2765 do
2766 test "x$ac_site_file" = xNONE && continue
2767 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2769 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2770 sed 's/^/| /' "$ac_site_file" >&5
2771 . "$ac_site_file" \
2772 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 as_fn_error $? "failed to load site script $ac_site_file
2775 See \`config.log' for more details" "$LINENO" 5; }
2776 fi
2777 done
2778
2779 if test -r "$cache_file"; then
2780 # Some versions of bash will fail to source /dev/null (special files
2781 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2782 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2784 $as_echo "$as_me: loading cache $cache_file" >&6;}
2785 case $cache_file in
2786 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2787 *) . "./$cache_file";;
2788 esac
2789 fi
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2792 $as_echo "$as_me: creating cache $cache_file" >&6;}
2793 >$cache_file
2794 fi
2795
2796 as_fn_append ac_header_list " dlfcn.h"
2797 as_fn_append ac_header_list " fcntl.h"
2798 as_fn_append ac_header_list " fpu_control.h"
2799 as_fn_append ac_header_list " termios.h"
2800 as_fn_append ac_header_list " utime.h"
2801 as_fn_append ac_header_list " linux/if_tun.h"
2802 as_fn_append ac_header_list " linux/mii.h"
2803 as_fn_append ac_header_list " linux/types.h"
2804 as_fn_append ac_header_list " net/if.h"
2805 as_fn_append ac_header_list " netinet/in.h"
2806 as_fn_append ac_header_list " netinet/tcp.h"
2807 as_fn_append ac_header_list " sys/ioctl.h"
2808 as_fn_append ac_header_list " sys/mman.h"
2809 as_fn_append ac_header_list " sys/mount.h"
2810 as_fn_append ac_header_list " sys/param.h"
2811 as_fn_append ac_header_list " sys/resource.h"
2812 as_fn_append ac_header_list " sys/socket.h"
2813 as_fn_append ac_header_list " sys/statfs.h"
2814 as_fn_append ac_header_list " sys/termio.h"
2815 as_fn_append ac_header_list " sys/termios.h"
2816 as_fn_append ac_header_list " sys/types.h"
2817 as_fn_append ac_header_list " sys/vfs.h"
2818 as_fn_append ac_func_list " __setfpucw"
2819 as_fn_append ac_func_list " access"
2820 as_fn_append ac_func_list " aint"
2821 as_fn_append ac_func_list " anint"
2822 as_fn_append ac_func_list " cfgetispeed"
2823 as_fn_append ac_func_list " cfgetospeed"
2824 as_fn_append ac_func_list " cfsetispeed"
2825 as_fn_append ac_func_list " cfsetospeed"
2826 as_fn_append ac_func_list " chdir"
2827 as_fn_append ac_func_list " chmod"
2828 as_fn_append ac_func_list " dup"
2829 as_fn_append ac_func_list " dup2"
2830 as_fn_append ac_func_list " execv"
2831 as_fn_append ac_func_list " execve"
2832 as_fn_append ac_func_list " fcntl"
2833 as_fn_append ac_func_list " fork"
2834 as_fn_append ac_func_list " fstat"
2835 as_fn_append ac_func_list " fstatfs"
2836 as_fn_append ac_func_list " ftruncate"
2837 as_fn_append ac_func_list " getdirentries"
2838 as_fn_append ac_func_list " getegid"
2839 as_fn_append ac_func_list " geteuid"
2840 as_fn_append ac_func_list " getgid"
2841 as_fn_append ac_func_list " getpid"
2842 as_fn_append ac_func_list " getppid"
2843 as_fn_append ac_func_list " getrusage"
2844 as_fn_append ac_func_list " gettimeofday"
2845 as_fn_append ac_func_list " getuid"
2846 as_fn_append ac_func_list " ioctl"
2847 as_fn_append ac_func_list " kill"
2848 as_fn_append ac_func_list " link"
2849 as_fn_append ac_func_list " lseek"
2850 as_fn_append ac_func_list " lstat"
2851 as_fn_append ac_func_list " mkdir"
2852 as_fn_append ac_func_list " mmap"
2853 as_fn_append ac_func_list " munmap"
2854 as_fn_append ac_func_list " pipe"
2855 as_fn_append ac_func_list " posix_fallocate"
2856 as_fn_append ac_func_list " pread"
2857 as_fn_append ac_func_list " rmdir"
2858 as_fn_append ac_func_list " setregid"
2859 as_fn_append ac_func_list " setreuid"
2860 as_fn_append ac_func_list " setgid"
2861 as_fn_append ac_func_list " setuid"
2862 as_fn_append ac_func_list " sigaction"
2863 as_fn_append ac_func_list " sigprocmask"
2864 as_fn_append ac_func_list " sqrt"
2865 as_fn_append ac_func_list " stat"
2866 as_fn_append ac_func_list " strsignal"
2867 as_fn_append ac_func_list " symlink"
2868 as_fn_append ac_func_list " tcdrain"
2869 as_fn_append ac_func_list " tcflow"
2870 as_fn_append ac_func_list " tcflush"
2871 as_fn_append ac_func_list " tcgetattr"
2872 as_fn_append ac_func_list " tcgetpgrp"
2873 as_fn_append ac_func_list " tcsendbreak"
2874 as_fn_append ac_func_list " tcsetattr"
2875 as_fn_append ac_func_list " tcsetpgrp"
2876 as_fn_append ac_func_list " time"
2877 as_fn_append ac_func_list " truncate"
2878 as_fn_append ac_func_list " umask"
2879 as_fn_append ac_func_list " unlink"
2880 as_fn_append ac_func_list " utime"
2881 # Check that the precious variables saved in the cache have kept the same
2882 # value.
2883 ac_cache_corrupted=false
2884 for ac_var in $ac_precious_vars; do
2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
2889 case $ac_old_set,$ac_new_set in
2890 set,)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,set)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2897 ac_cache_corrupted=: ;;
2898 ,);;
2899 *)
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
2901 # differences in whitespace do not lead to failure.
2902 ac_old_val_w=`echo x $ac_old_val`
2903 ac_new_val_w=`echo x $ac_new_val`
2904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2907 ac_cache_corrupted=:
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2911 eval $ac_var=\$ac_old_val
2912 fi
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2917 fi;;
2918 esac
2919 # Pass precious variables to config.status.
2920 if test "$ac_new_set" = set; then
2921 case $ac_new_val in
2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 *) ac_arg=$ac_var=$ac_new_val ;;
2924 esac
2925 case " $ac_configure_args " in
2926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2928 esac
2929 fi
2930 done
2931 if $ac_cache_corrupted; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2935 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2936 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2937 fi
2938 ## -------------------- ##
2939 ## Main body of script. ##
2940 ## -------------------- ##
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948
2949
2950
2951
2952
2953
2954
2955 # Check whether --with-pkgversion was given.
2956 if test "${with_pkgversion+set}" = set; then :
2957 withval=$with_pkgversion; case "$withval" in
2958 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2959 no) PKGVERSION= ;;
2960 *) PKGVERSION="($withval) " ;;
2961 esac
2962 else
2963 PKGVERSION="(SIM) "
2964
2965 fi
2966
2967
2968
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define PKGVERSION "$PKGVERSION"
2972 _ACEOF
2973
2974
2975
2976 # Check whether --with-bugurl was given.
2977 if test "${with_bugurl+set}" = set; then :
2978 withval=$with_bugurl; case "$withval" in
2979 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2980 no) BUGURL=
2981 ;;
2982 *) BUGURL="$withval"
2983 ;;
2984 esac
2985 else
2986 BUGURL="$PACKAGE_BUGREPORT"
2987
2988 fi
2989
2990 case ${BUGURL} in
2991 "")
2992 REPORT_BUGS_TO=
2993 REPORT_BUGS_TEXI=
2994 ;;
2995 *)
2996 REPORT_BUGS_TO="<$BUGURL>"
2997 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2998 ;;
2999 esac;
3000
3001
3002
3003
3004 cat >>confdefs.h <<_ACEOF
3005 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3006 _ACEOF
3007
3008
3009 ac_config_headers="$ac_config_headers config.h"
3010
3011
3012 . $srcdir/../bfd/development.sh
3013
3014 ac_aux_dir=
3015 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3016 if test -f "$ac_dir/install-sh"; then
3017 ac_aux_dir=$ac_dir
3018 ac_install_sh="$ac_aux_dir/install-sh -c"
3019 break
3020 elif test -f "$ac_dir/install.sh"; then
3021 ac_aux_dir=$ac_dir
3022 ac_install_sh="$ac_aux_dir/install.sh -c"
3023 break
3024 elif test -f "$ac_dir/shtool"; then
3025 ac_aux_dir=$ac_dir
3026 ac_install_sh="$ac_aux_dir/shtool install -c"
3027 break
3028 fi
3029 done
3030 if test -z "$ac_aux_dir"; then
3031 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3032 fi
3033
3034 # These three variables are undocumented and unsupported,
3035 # and are intended to be withdrawn in a future Autoconf release.
3036 # They can cause serious problems if a builder's source tree is in a directory
3037 # whose full name contains unusual characters.
3038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3041
3042
3043 # Make sure we can run config.sub.
3044 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3045 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3046
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3048 $as_echo_n "checking build system type... " >&6; }
3049 if ${ac_cv_build+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 ac_build_alias=$build_alias
3053 test "x$ac_build_alias" = x &&
3054 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3055 test "x$ac_build_alias" = x &&
3056 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3058 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3059
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3062 $as_echo "$ac_cv_build" >&6; }
3063 case $ac_cv_build in
3064 *-*-*) ;;
3065 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3066 esac
3067 build=$ac_cv_build
3068 ac_save_IFS=$IFS; IFS='-'
3069 set x $ac_cv_build
3070 shift
3071 build_cpu=$1
3072 build_vendor=$2
3073 shift; shift
3074 # Remember, the first character of IFS is used to create $*,
3075 # except with old shells:
3076 build_os=$*
3077 IFS=$ac_save_IFS
3078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3079
3080
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3082 $as_echo_n "checking host system type... " >&6; }
3083 if ${ac_cv_host+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test "x$host_alias" = x; then
3087 ac_cv_host=$ac_cv_build
3088 else
3089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3090 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3091 fi
3092
3093 fi
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3095 $as_echo "$ac_cv_host" >&6; }
3096 case $ac_cv_host in
3097 *-*-*) ;;
3098 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3099 esac
3100 host=$ac_cv_host
3101 ac_save_IFS=$IFS; IFS='-'
3102 set x $ac_cv_host
3103 shift
3104 host_cpu=$1
3105 host_vendor=$2
3106 shift; shift
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3109 host_os=$*
3110 IFS=$ac_save_IFS
3111 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3112
3113
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3115 $as_echo_n "checking target system type... " >&6; }
3116 if ${ac_cv_target+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test "x$target_alias" = x; then
3120 ac_cv_target=$ac_cv_host
3121 else
3122 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3123 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3124 fi
3125
3126 fi
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3128 $as_echo "$ac_cv_target" >&6; }
3129 case $ac_cv_target in
3130 *-*-*) ;;
3131 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3132 esac
3133 target=$ac_cv_target
3134 ac_save_IFS=$IFS; IFS='-'
3135 set x $ac_cv_target
3136 shift
3137 target_cpu=$1
3138 target_vendor=$2
3139 shift; shift
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3142 target_os=$*
3143 IFS=$ac_save_IFS
3144 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3145
3146
3147 # The aliases save the names the user supplied, while $host etc.
3148 # will get canonicalized.
3149 test -n "$target_alias" &&
3150 test "$program_prefix$program_suffix$program_transform_name" = \
3151 NONENONEs,x,x, &&
3152 program_prefix=${target_alias}-
3153 # Expand $ac_aux_dir to an absolute path.
3154 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3155
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3163 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_CC+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192 $as_echo "$CC" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199 fi
3200 if test -z "$ac_cv_prog_CC"; then
3201 ac_ct_CC=$CC
3202 # Extract the first word of "gcc", so it can be a program name with args.
3203 set dummy gcc; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$ac_ct_CC"; then
3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_CC="gcc"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225 IFS=$as_save_IFS
3226
3227 fi
3228 fi
3229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3230 if test -n "$ac_ct_CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3232 $as_echo "$ac_ct_CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 fi
3237
3238 if test "x$ac_ct_CC" = x; then
3239 CC=""
3240 else
3241 case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247 CC=$ac_ct_CC
3248 fi
3249 else
3250 CC="$ac_cv_prog_CC"
3251 fi
3252
3253 if test -z "$CC"; then
3254 if test -n "$ac_tool_prefix"; then
3255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3256 set dummy ${ac_tool_prefix}cc; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$CC"; then
3263 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_CC="${ac_tool_prefix}cc"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 CC=$ac_cv_prog_CC
3283 if test -n "$CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3285 $as_echo "$CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 fi
3293 fi
3294 if test -z "$CC"; then
3295 # Extract the first word of "cc", so it can be a program name with args.
3296 set dummy cc; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_CC+:} false; then :
3300 $as_echo_n "(cached) " >&6
3301 else
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3304 else
3305 ac_prog_rejected=no
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3314 ac_prog_rejected=yes
3315 continue
3316 fi
3317 ac_cv_prog_CC="cc"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 if test $ac_prog_rejected = yes; then
3326 # We found a bogon in the path, so make sure we never use it.
3327 set dummy $ac_cv_prog_CC
3328 shift
3329 if test $# != 0; then
3330 # We chose a different compiler from the bogus one.
3331 # However, it has the same basename, so the bogon will be chosen
3332 # first if we set CC to just the basename; use the full file name.
3333 shift
3334 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3335 fi
3336 fi
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349 fi
3350 if test -z "$CC"; then
3351 if test -n "$ac_tool_prefix"; then
3352 for ac_prog in cl.exe
3353 do
3354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if ${ac_cv_prog_CC+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 CC=$ac_cv_prog_CC
3382 if test -n "$CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384 $as_echo "$CC" >&6; }
3385 else
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 fi
3389
3390
3391 test -n "$CC" && break
3392 done
3393 fi
3394 if test -z "$CC"; then
3395 ac_ct_CC=$CC
3396 for ac_prog in cl.exe
3397 do
3398 # Extract the first word of "$ac_prog", so it can be a program name with args.
3399 set dummy $ac_prog; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$ac_ct_CC"; then
3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_ac_ct_CC="$ac_prog"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3422
3423 fi
3424 fi
3425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426 if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3428 $as_echo "$ac_ct_CC" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434
3435 test -n "$ac_ct_CC" && break
3436 done
3437
3438 if test "x$ac_ct_CC" = x; then
3439 CC=""
3440 else
3441 case $cross_compiling:$ac_tool_warned in
3442 yes:)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445 ac_tool_warned=yes ;;
3446 esac
3447 CC=$ac_ct_CC
3448 fi
3449 fi
3450
3451 fi
3452
3453
3454 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "no acceptable C compiler found in \$PATH
3457 See \`config.log' for more details" "$LINENO" 5; }
3458
3459 # Provide some information about the compiler.
3460 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3461 set X $ac_compile
3462 ac_compiler=$2
3463 for ac_option in --version -v -V -qversion; do
3464 { { ac_try="$ac_compiler $ac_option >&5"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3472 ac_status=$?
3473 if test -s conftest.err; then
3474 sed '10a\
3475 ... rest of stderr output deleted ...
3476 10q' conftest.err >conftest.er1
3477 cat conftest.er1 >&5
3478 fi
3479 rm -f conftest.er1 conftest.err
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }
3482 done
3483
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486
3487 int
3488 main ()
3489 {
3490
3491 ;
3492 return 0;
3493 }
3494 _ACEOF
3495 ac_clean_files_save=$ac_clean_files
3496 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3497 # Try to create an executable without -o first, disregard a.out.
3498 # It will help us diagnose broken compilers, and finding out an intuition
3499 # of exeext.
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3501 $as_echo_n "checking whether the C compiler works... " >&6; }
3502 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3503
3504 # The possible output files:
3505 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3506
3507 ac_rmfiles=
3508 for ac_file in $ac_files
3509 do
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3512 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3513 esac
3514 done
3515 rm -f $ac_rmfiles
3516
3517 if { { ac_try="$ac_link_default"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_link_default") 2>&5
3525 ac_status=$?
3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527 test $ac_status = 0; }; then :
3528 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3529 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3530 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3531 # so that the user can short-circuit this test for compilers unknown to
3532 # Autoconf.
3533 for ac_file in $ac_files ''
3534 do
3535 test -f "$ac_file" || continue
3536 case $ac_file in
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3538 ;;
3539 [ab].out )
3540 # We found the default executable, but exeext='' is most
3541 # certainly right.
3542 break;;
3543 *.* )
3544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3545 then :; else
3546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547 fi
3548 # We set ac_cv_exeext here because the later test for it is not
3549 # safe: cross compilers may not add the suffix if given an `-o'
3550 # argument, so we may need to know it at that point already.
3551 # Even if this section looks crufty: it has the advantage of
3552 # actually working.
3553 break;;
3554 * )
3555 break;;
3556 esac
3557 done
3558 test "$ac_cv_exeext" = no && ac_cv_exeext=
3559
3560 else
3561 ac_file=''
3562 fi
3563 if test -z "$ac_file"; then :
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 $as_echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error 77 "C compiler cannot create executables
3572 See \`config.log' for more details" "$LINENO" 5; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3575 $as_echo "yes" >&6; }
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3578 $as_echo_n "checking for C compiler default output file name... " >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3580 $as_echo "$ac_file" >&6; }
3581 ac_exeext=$ac_cv_exeext
3582
3583 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3584 ac_clean_files=$ac_clean_files_save
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3586 $as_echo_n "checking for suffix of executables... " >&6; }
3587 if { { ac_try="$ac_link"
3588 case "(($ac_try" in
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593 $as_echo "$ac_try_echo"; } >&5
3594 (eval "$ac_link") 2>&5
3595 ac_status=$?
3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597 test $ac_status = 0; }; then :
3598 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3599 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3600 # work properly (i.e., refer to `conftest.exe'), while it won't with
3601 # `rm'.
3602 for ac_file in conftest.exe conftest conftest.*; do
3603 test -f "$ac_file" || continue
3604 case $ac_file in
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3607 break;;
3608 * ) break;;
3609 esac
3610 done
3611 else
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3615 See \`config.log' for more details" "$LINENO" 5; }
3616 fi
3617 rm -f conftest conftest$ac_cv_exeext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3619 $as_echo "$ac_cv_exeext" >&6; }
3620
3621 rm -f conftest.$ac_ext
3622 EXEEXT=$ac_cv_exeext
3623 ac_exeext=$EXEEXT
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626 #include <stdio.h>
3627 int
3628 main ()
3629 {
3630 FILE *f = fopen ("conftest.out", "w");
3631 return ferror (f) || fclose (f) != 0;
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 ac_clean_files="$ac_clean_files conftest.out"
3638 # Check that the compiler produces executables we can run. If not, either
3639 # the compiler is broken, or we cross compile.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3641 $as_echo_n "checking whether we are cross compiling... " >&6; }
3642 if test "$cross_compiling" != yes; then
3643 { { ac_try="$ac_link"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_link") 2>&5
3651 ac_status=$?
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }
3654 if { ac_try='./conftest$ac_cv_exeext'
3655 { { case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_try") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; }; then
3665 cross_compiling=no
3666 else
3667 if test "$cross_compiling" = maybe; then
3668 cross_compiling=yes
3669 else
3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error $? "cannot run C compiled programs.
3673 If you meant to cross compile, use \`--host'.
3674 See \`config.log' for more details" "$LINENO" 5; }
3675 fi
3676 fi
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3679 $as_echo "$cross_compiling" >&6; }
3680
3681 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3682 ac_clean_files=$ac_clean_files_save
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3684 $as_echo_n "checking for suffix of object files... " >&6; }
3685 if ${ac_cv_objext+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 int
3692 main ()
3693 {
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.o conftest.obj
3700 if { { ac_try="$ac_compile"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_compile") 2>&5
3708 ac_status=$?
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }; then :
3711 for ac_file in conftest.o conftest.obj conftest.*; do
3712 test -f "$ac_file" || continue;
3713 case $ac_file in
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3716 break;;
3717 esac
3718 done
3719 else
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details" "$LINENO" 5; }
3727 fi
3728 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3731 $as_echo "$ac_cv_objext" >&6; }
3732 OBJEXT=$ac_cv_objext
3733 ac_objext=$OBJEXT
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3735 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3736 if ${ac_cv_c_compiler_gnu+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741
3742 int
3743 main ()
3744 {
3745 #ifndef __GNUC__
3746 choke me
3747 #endif
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754 ac_compiler_gnu=yes
3755 else
3756 ac_compiler_gnu=no
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3760
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3763 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3764 if test $ac_compiler_gnu = yes; then
3765 GCC=yes
3766 else
3767 GCC=
3768 fi
3769 ac_test_CFLAGS=${CFLAGS+set}
3770 ac_save_CFLAGS=$CFLAGS
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3772 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3773 if ${ac_cv_prog_cc_g+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 ac_save_c_werror_flag=$ac_c_werror_flag
3777 ac_c_werror_flag=yes
3778 ac_cv_prog_cc_g=no
3779 CFLAGS="-g"
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792 ac_cv_prog_cc_g=yes
3793 else
3794 CFLAGS=""
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807
3808 else
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3810 CFLAGS="-g"
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_prog_cc_g=yes
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_c_werror_flag=$ac_save_c_werror_flag
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3833 $as_echo "$ac_cv_prog_cc_g" >&6; }
3834 if test "$ac_test_CFLAGS" = set; then
3835 CFLAGS=$ac_save_CFLAGS
3836 elif test $ac_cv_prog_cc_g = yes; then
3837 if test "$GCC" = yes; then
3838 CFLAGS="-g -O2"
3839 else
3840 CFLAGS="-g"
3841 fi
3842 else
3843 if test "$GCC" = yes; then
3844 CFLAGS="-O2"
3845 else
3846 CFLAGS=
3847 fi
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3850 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3851 if ${ac_cv_prog_cc_c89+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 ac_cv_prog_cc_c89=no
3855 ac_save_CC=$CC
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3858 #include <stdarg.h>
3859 #include <stdio.h>
3860 struct stat;
3861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3862 struct buf { int x; };
3863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3864 static char *e (p, i)
3865 char **p;
3866 int i;
3867 {
3868 return p[i];
3869 }
3870 static char *f (char * (*g) (char **, int), char **p, ...)
3871 {
3872 char *s;
3873 va_list v;
3874 va_start (v,p);
3875 s = g (p, va_arg (v,int));
3876 va_end (v);
3877 return s;
3878 }
3879
3880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3881 function prototypes and stuff, but not '\xHH' hex character constants.
3882 These don't provoke an error unfortunately, instead are silently treated
3883 as 'x'. The following induces an error, until -std is added to get
3884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3885 array size at least. It's necessary to write '\x00'==0 to get something
3886 that's true only with -std. */
3887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888
3889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3890 inside strings and character constants. */
3891 #define FOO(x) 'x'
3892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893
3894 int test (int i, double x);
3895 struct s1 {int (*f) (int a);};
3896 struct s2 {int (*f) (double a);};
3897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3898 int argc;
3899 char **argv;
3900 int
3901 main ()
3902 {
3903 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 do
3911 CC="$ac_save_CC $ac_arg"
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_cv_prog_cc_c89=$ac_arg
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext
3916 test "x$ac_cv_prog_cc_c89" != "xno" && break
3917 done
3918 rm -f conftest.$ac_ext
3919 CC=$ac_save_CC
3920
3921 fi
3922 # AC_CACHE_VAL
3923 case "x$ac_cv_prog_cc_c89" in
3924 x)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3926 $as_echo "none needed" >&6; } ;;
3927 xno)
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3929 $as_echo "unsupported" >&6; } ;;
3930 *)
3931 CC="$CC $ac_cv_prog_cc_c89"
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3934 esac
3935 if test "x$ac_cv_prog_cc_c89" != xno; then :
3936
3937 fi
3938
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3951 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3952 if ${am_cv_prog_cc_c_o+:} false; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957
3958 int
3959 main ()
3960 {
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 # Make sure it works both with $CC and with simple cc.
3967 # Following AC_PROG_CC_C_O, we do the test twice because some
3968 # compilers refuse to overwrite an existing .o file with -o,
3969 # though they will create one.
3970 am_cv_prog_cc_c_o=yes
3971 for am_i in 1 2; do
3972 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3973 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } \
3977 && test -f conftest2.$ac_objext; then
3978 : OK
3979 else
3980 am_cv_prog_cc_c_o=no
3981 break
3982 fi
3983 done
3984 rm -f core conftest*
3985 unset am_i
3986 fi
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3988 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3989 if test "$am_cv_prog_cc_c_o" != yes; then
3990 # Losing compiler, so override with the script.
3991 # FIXME: It is wrong to rewrite CC.
3992 # But if we don't then we get into trouble of one sort or another.
3993 # A longer-term fix would be to have automake use am__CC in this case,
3994 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3995 CC="$am_aux_dir/compile $CC"
3996 fi
3997 ac_ext=c
3998 ac_cpp='$CPP $CPPFLAGS'
3999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002
4003
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4010 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4011 # On Suns, sometimes $CPP names a directory.
4012 if test -n "$CPP" && test -d "$CPP"; then
4013 CPP=
4014 fi
4015 if test -z "$CPP"; then
4016 if ${ac_cv_prog_CPP+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 # Double quotes because CPP needs to be expanded
4020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4021 do
4022 ac_preproc_ok=false
4023 for ac_c_preproc_warn_flag in '' yes
4024 do
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033 #ifdef __STDC__
4034 # include <limits.h>
4035 #else
4036 # include <assert.h>
4037 #endif
4038 Syntax error
4039 _ACEOF
4040 if ac_fn_c_try_cpp "$LINENO"; then :
4041
4042 else
4043 # Broken: fails on valid input.
4044 continue
4045 fi
4046 rm -f conftest.err conftest.i conftest.$ac_ext
4047
4048 # OK, works on sane cases. Now check whether nonexistent headers
4049 # can be detected and how.
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 #include <ac_nonexistent.h>
4053 _ACEOF
4054 if ac_fn_c_try_cpp "$LINENO"; then :
4055 # Broken: success on invalid input.
4056 continue
4057 else
4058 # Passes both tests.
4059 ac_preproc_ok=:
4060 break
4061 fi
4062 rm -f conftest.err conftest.i conftest.$ac_ext
4063
4064 done
4065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066 rm -f conftest.i conftest.err conftest.$ac_ext
4067 if $ac_preproc_ok; then :
4068 break
4069 fi
4070
4071 done
4072 ac_cv_prog_CPP=$CPP
4073
4074 fi
4075 CPP=$ac_cv_prog_CPP
4076 else
4077 ac_cv_prog_CPP=$CPP
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4080 $as_echo "$CPP" >&6; }
4081 ac_preproc_ok=false
4082 for ac_c_preproc_warn_flag in '' yes
4083 do
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #ifdef __STDC__
4093 # include <limits.h>
4094 #else
4095 # include <assert.h>
4096 #endif
4097 Syntax error
4098 _ACEOF
4099 if ac_fn_c_try_cpp "$LINENO"; then :
4100
4101 else
4102 # Broken: fails on valid input.
4103 continue
4104 fi
4105 rm -f conftest.err conftest.i conftest.$ac_ext
4106
4107 # OK, works on sane cases. Now check whether nonexistent headers
4108 # can be detected and how.
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <ac_nonexistent.h>
4112 _ACEOF
4113 if ac_fn_c_try_cpp "$LINENO"; then :
4114 # Broken: success on invalid input.
4115 continue
4116 else
4117 # Passes both tests.
4118 ac_preproc_ok=:
4119 break
4120 fi
4121 rm -f conftest.err conftest.i conftest.$ac_ext
4122
4123 done
4124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4125 rm -f conftest.i conftest.err conftest.$ac_ext
4126 if $ac_preproc_ok; then :
4127
4128 else
4129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4132 See \`config.log' for more details" "$LINENO" 5; }
4133 fi
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141
4142
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4145 if ${ac_cv_path_GREP+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -z "$GREP"; then
4149 ac_path_GREP_found=false
4150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_prog in grep ggrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4159 as_fn_executable_p "$ac_path_GREP" || continue
4160 # Check for GNU ac_path_GREP and select it if it is found.
4161 # Check for GNU $ac_path_GREP
4162 case `"$ac_path_GREP" --version 2>&1` in
4163 *GNU*)
4164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4165 *)
4166 ac_count=0
4167 $as_echo_n 0123456789 >"conftest.in"
4168 while :
4169 do
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 $as_echo 'GREP' >> "conftest.nl"
4174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176 as_fn_arith $ac_count + 1 && ac_count=$as_val
4177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_GREP="$ac_path_GREP"
4180 ac_path_GREP_max=$ac_count
4181 fi
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4184 done
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 esac
4187
4188 $ac_path_GREP_found && break 3
4189 done
4190 done
4191 done
4192 IFS=$as_save_IFS
4193 if test -z "$ac_cv_path_GREP"; then
4194 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195 fi
4196 else
4197 ac_cv_path_GREP=$GREP
4198 fi
4199
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4202 $as_echo "$ac_cv_path_GREP" >&6; }
4203 GREP="$ac_cv_path_GREP"
4204
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4207 $as_echo_n "checking for egrep... " >&6; }
4208 if ${ac_cv_path_EGREP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4212 then ac_cv_path_EGREP="$GREP -E"
4213 else
4214 if test -z "$EGREP"; then
4215 ac_path_EGREP_found=false
4216 # Loop through the user's path and test for each of PROGNAME-LIST
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219 do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in egrep; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4225 as_fn_executable_p "$ac_path_EGREP" || continue
4226 # Check for GNU ac_path_EGREP and select it if it is found.
4227 # Check for GNU $ac_path_EGREP
4228 case `"$ac_path_EGREP" --version 2>&1` in
4229 *GNU*)
4230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4231 *)
4232 ac_count=0
4233 $as_echo_n 0123456789 >"conftest.in"
4234 while :
4235 do
4236 cat "conftest.in" "conftest.in" >"conftest.tmp"
4237 mv "conftest.tmp" "conftest.in"
4238 cp "conftest.in" "conftest.nl"
4239 $as_echo 'EGREP' >> "conftest.nl"
4240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242 as_fn_arith $ac_count + 1 && ac_count=$as_val
4243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4244 # Best one so far, save it but keep looking for a better one
4245 ac_cv_path_EGREP="$ac_path_EGREP"
4246 ac_path_EGREP_max=$ac_count
4247 fi
4248 # 10*(2^10) chars as input seems more than enough
4249 test $ac_count -gt 10 && break
4250 done
4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4253
4254 $ac_path_EGREP_found && break 3
4255 done
4256 done
4257 done
4258 IFS=$as_save_IFS
4259 if test -z "$ac_cv_path_EGREP"; then
4260 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261 fi
4262 else
4263 ac_cv_path_EGREP=$EGREP
4264 fi
4265
4266 fi
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4269 $as_echo "$ac_cv_path_EGREP" >&6; }
4270 EGREP="$ac_cv_path_EGREP"
4271
4272
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4274 $as_echo_n "checking for ANSI C header files... " >&6; }
4275 if ${ac_cv_header_stdc+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <stdlib.h>
4281 #include <stdarg.h>
4282 #include <string.h>
4283 #include <float.h>
4284
4285 int
4286 main ()
4287 {
4288
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_header_stdc=yes
4295 else
4296 ac_cv_header_stdc=no
4297 fi
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299
4300 if test $ac_cv_header_stdc = yes; then
4301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <string.h>
4305
4306 _ACEOF
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then :
4309
4310 else
4311 ac_cv_header_stdc=no
4312 fi
4313 rm -f conftest*
4314
4315 fi
4316
4317 if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 #include <stdlib.h>
4322
4323 _ACEOF
4324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325 $EGREP "free" >/dev/null 2>&1; then :
4326
4327 else
4328 ac_cv_header_stdc=no
4329 fi
4330 rm -f conftest*
4331
4332 fi
4333
4334 if test $ac_cv_header_stdc = yes; then
4335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4336 if test "$cross_compiling" = yes; then :
4337 :
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <ctype.h>
4342 #include <stdlib.h>
4343 #if ((' ' & 0x0FF) == 0x020)
4344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346 #else
4347 # define ISLOWER(c) \
4348 (('a' <= (c) && (c) <= 'i') \
4349 || ('j' <= (c) && (c) <= 'r') \
4350 || ('s' <= (c) && (c) <= 'z'))
4351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4352 #endif
4353
4354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4355 int
4356 main ()
4357 {
4358 int i;
4359 for (i = 0; i < 256; i++)
4360 if (XOR (islower (i), ISLOWER (i))
4361 || toupper (i) != TOUPPER (i))
4362 return 2;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_run "$LINENO"; then :
4367
4368 else
4369 ac_cv_header_stdc=no
4370 fi
4371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4372 conftest.$ac_objext conftest.beam conftest.$ac_ext
4373 fi
4374
4375 fi
4376 fi
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4378 $as_echo "$ac_cv_header_stdc" >&6; }
4379 if test $ac_cv_header_stdc = yes; then
4380
4381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4382
4383 fi
4384
4385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4386 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4387 inttypes.h stdint.h unistd.h
4388 do :
4389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4390 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4391 "
4392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4393 cat >>confdefs.h <<_ACEOF
4394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395 _ACEOF
4396
4397 fi
4398
4399 done
4400
4401
4402 test "$program_prefix" != NONE &&
4403 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4404 # Use a double $ so make ignores it.
4405 test "$program_suffix" != NONE &&
4406 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4407 # Double any \ or $.
4408 # By default was `s,x,x', remove it if useless.
4409 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4410 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4411
4412 # Find a good install program. We prefer a C program (faster),
4413 # so one script is as good as another. But avoid the broken or
4414 # incompatible versions:
4415 # SysV /etc/install, /usr/sbin/install
4416 # SunOS /usr/etc/install
4417 # IRIX /sbin/install
4418 # AIX /bin/install
4419 # AmigaOS /C/install, which installs bootblocks on floppy discs
4420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4423 # OS/2's system install, which has a completely different semantic
4424 # ./install, which can be erroneously created by make from ./install.sh.
4425 # Reject install programs that cannot install multiple files.
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4428 if test -z "$INSTALL"; then
4429 if ${ac_cv_path_install+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 # Account for people who put trailing slashes in PATH elements.
4438 case $as_dir/ in #((
4439 ./ | .// | /[cC]/* | \
4440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4442 /usr/ucb/* ) ;;
4443 *)
4444 # OSF1 and SCO ODT 3.0 have their own names for install.
4445 # Don't use installbsd from OSF since it installs stuff as root
4446 # by default.
4447 for ac_prog in ginstall scoinst install; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4450 if test $ac_prog = install &&
4451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # AIX install. It has an incompatible calling convention.
4453 :
4454 elif test $ac_prog = install &&
4455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456 # program-specific install script used by HP pwplus--don't use.
4457 :
4458 else
4459 rm -rf conftest.one conftest.two conftest.dir
4460 echo one > conftest.one
4461 echo two > conftest.two
4462 mkdir conftest.dir
4463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4464 test -s conftest.one && test -s conftest.two &&
4465 test -s conftest.dir/conftest.one &&
4466 test -s conftest.dir/conftest.two
4467 then
4468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4469 break 3
4470 fi
4471 fi
4472 fi
4473 done
4474 done
4475 ;;
4476 esac
4477
4478 done
4479 IFS=$as_save_IFS
4480
4481 rm -rf conftest.one conftest.two conftest.dir
4482
4483 fi
4484 if test "${ac_cv_path_install+set}" = set; then
4485 INSTALL=$ac_cv_path_install
4486 else
4487 # As a last resort, use the slow shell script. Don't cache a
4488 # value for INSTALL within a source directory, because that will
4489 # break other packages using the cache if that directory is
4490 # removed, or if the value is a relative name.
4491 INSTALL=$ac_install_sh
4492 fi
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4495 $as_echo "$INSTALL" >&6; }
4496
4497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4498 # It thinks the first close brace ends the variable substitution.
4499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4500
4501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4502
4503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4504
4505
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4509 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4510 if ${ac_cv_c_bigendian+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 ac_cv_c_bigendian=unknown
4514 # See if we're dealing with a universal compiler.
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #ifndef __APPLE_CC__
4518 not a universal capable compiler
4519 #endif
4520 typedef int dummy;
4521
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524
4525 # Check for potential -arch flags. It is not universal unless
4526 # there are at least two -arch flags with different values.
4527 ac_arch=
4528 ac_prev=
4529 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4530 if test -n "$ac_prev"; then
4531 case $ac_word in
4532 i?86 | x86_64 | ppc | ppc64)
4533 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4534 ac_arch=$ac_word
4535 else
4536 ac_cv_c_bigendian=universal
4537 break
4538 fi
4539 ;;
4540 esac
4541 ac_prev=
4542 elif test "x$ac_word" = "x-arch"; then
4543 ac_prev=arch
4544 fi
4545 done
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 if test $ac_cv_c_bigendian = unknown; then
4549 # See if sys/param.h defines the BYTE_ORDER macro.
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #include <sys/types.h>
4553 #include <sys/param.h>
4554
4555 int
4556 main ()
4557 {
4558 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4559 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4560 && LITTLE_ENDIAN)
4561 bogus endian macros
4562 #endif
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 # It does; now see whether it defined to BIG_ENDIAN or not.
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 #include <sys/param.h>
4574
4575 int
4576 main ()
4577 {
4578 #if BYTE_ORDER != BIG_ENDIAN
4579 not big endian
4580 #endif
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_cv_c_bigendian=yes
4588 else
4589 ac_cv_c_bigendian=no
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 fi
4595 if test $ac_cv_c_bigendian = unknown; then
4596 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <limits.h>
4600
4601 int
4602 main ()
4603 {
4604 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4605 bogus endian macros
4606 #endif
4607
4608 ;
4609 return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613 # It does; now see whether it defined to _BIG_ENDIAN or not.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <limits.h>
4617
4618 int
4619 main ()
4620 {
4621 #ifndef _BIG_ENDIAN
4622 not big endian
4623 #endif
4624
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 ac_cv_c_bigendian=yes
4631 else
4632 ac_cv_c_bigendian=no
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi
4638 if test $ac_cv_c_bigendian = unknown; then
4639 # Compile a test program.
4640 if test "$cross_compiling" = yes; then :
4641 # Try to guess by grepping values from an object file.
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 short int ascii_mm[] =
4645 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4646 short int ascii_ii[] =
4647 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4648 int use_ascii (int i) {
4649 return ascii_mm[i] + ascii_ii[i];
4650 }
4651 short int ebcdic_ii[] =
4652 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4653 short int ebcdic_mm[] =
4654 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4655 int use_ebcdic (int i) {
4656 return ebcdic_mm[i] + ebcdic_ii[i];
4657 }
4658 extern int foo;
4659
4660 int
4661 main ()
4662 {
4663 return use_ascii (foo) == use_ebcdic (foo);
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4670 ac_cv_c_bigendian=yes
4671 fi
4672 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4673 if test "$ac_cv_c_bigendian" = unknown; then
4674 ac_cv_c_bigendian=no
4675 else
4676 # finding both strings is unlikely to happen, but who knows?
4677 ac_cv_c_bigendian=unknown
4678 fi
4679 fi
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 else
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 $ac_includes_default
4686 int
4687 main ()
4688 {
4689
4690 /* Are we little or big endian? From Harbison&Steele. */
4691 union
4692 {
4693 long int l;
4694 char c[sizeof (long int)];
4695 } u;
4696 u.l = 1;
4697 return u.c[sizeof (long int) - 1] == 1;
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_c_try_run "$LINENO"; then :
4704 ac_cv_c_bigendian=no
4705 else
4706 ac_cv_c_bigendian=yes
4707 fi
4708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4709 conftest.$ac_objext conftest.beam conftest.$ac_ext
4710 fi
4711
4712 fi
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4715 $as_echo "$ac_cv_c_bigendian" >&6; }
4716 case $ac_cv_c_bigendian in #(
4717 yes)
4718 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4719 ;; #(
4720 no)
4721 ;; #(
4722 universal)
4723
4724 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4725
4726 ;; #(
4727 *)
4728 as_fn_error $? "unknown endianness
4729 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4730 esac
4731
4732
4733
4734
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_DTC+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$DTC"; then
4744 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 DTC=$ac_cv_prog_DTC
4764 if test -n "$DTC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4766 $as_echo "$DTC" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_DTC"; then
4775 ac_ct_DTC=$DTC
4776 # Extract the first word of "dtc", so it can be a program name with args.
4777 set dummy dtc; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ac_ct_DTC"; then
4784 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_DTC="dtc"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4804 if test -n "$ac_ct_DTC"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4806 $as_echo "$ac_ct_DTC" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812 if test "x$ac_ct_DTC" = x; then
4813 DTC=""
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821 DTC=$ac_ct_DTC
4822 fi
4823 else
4824 DTC="$ac_cv_prog_DTC"
4825 fi
4826
4827
4828 if test "x$cross_compiling" = "xno"; then
4829 : "${AR_FOR_BUILD:=\$(AR)}"
4830 : "${CC_FOR_BUILD:=\$(CC)}"
4831 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4832 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4833 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4834 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4835 else
4836 : "${AR_FOR_BUILD:=ar}"
4837 : "${CC_FOR_BUILD:=gcc}"
4838 : "${RANLIB_FOR_BUILD:=ranlib}"
4839 : "${CFLAGS_FOR_BUILD:=-g -O}"
4840 : "${CPPFLAGS_FOR_BUILD:=}"
4841 : "${LDLFAGS_FOR_BUILD:=}"
4842 fi
4843
4844
4845
4846
4847
4848
4849
4850
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}ar; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_AR+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$AR"; then
4860 ac_cv_prog_AR="$AR" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_AR="${ac_tool_prefix}ar"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 AR=$ac_cv_prog_AR
4880 if test -n "$AR"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4882 $as_echo "$AR" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 fi
4890 if test -z "$ac_cv_prog_AR"; then
4891 ac_ct_AR=$AR
4892 # Extract the first word of "ar", so it can be a program name with args.
4893 set dummy ar; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_AR"; then
4900 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_AR="ar"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4912 fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4920 if test -n "$ac_ct_AR"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4922 $as_echo "$ac_ct_AR" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928 if test "x$ac_ct_AR" = x; then
4929 AR=""
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937 AR=$ac_ct_AR
4938 fi
4939 else
4940 AR="$ac_cv_prog_AR"
4941 fi
4942
4943 if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if ${ac_cv_prog_RANLIB+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -n "$RANLIB"; then
4952 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4964 fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969 fi
4970 fi
4971 RANLIB=$ac_cv_prog_RANLIB
4972 if test -n "$RANLIB"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4974 $as_echo "$RANLIB" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4978 fi
4979
4980
4981 fi
4982 if test -z "$ac_cv_prog_RANLIB"; then
4983 ac_ct_RANLIB=$RANLIB
4984 # Extract the first word of "ranlib", so it can be a program name with args.
4985 set dummy ranlib; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$ac_ct_RANLIB"; then
4992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_ac_ct_RANLIB="ranlib"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005 done
5006 done
5007 IFS=$as_save_IFS
5008
5009 fi
5010 fi
5011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5012 if test -n "$ac_ct_RANLIB"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5014 $as_echo "$ac_ct_RANLIB" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019
5020 if test "x$ac_ct_RANLIB" = x; then
5021 RANLIB=":"
5022 else
5023 case $cross_compiling:$ac_tool_warned in
5024 yes:)
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5027 ac_tool_warned=yes ;;
5028 esac
5029 RANLIB=$ac_ct_RANLIB
5030 fi
5031 else
5032 RANLIB="$ac_cv_prog_RANLIB"
5033 fi
5034
5035
5036
5037
5038
5039
5040
5041
5042 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5043 if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5045 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 case $PKG_CONFIG in
5052 [\\/]* | ?:[\\/]*)
5053 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5054 ;;
5055 *)
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 ;;
5072 esac
5073 fi
5074 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5075 if test -n "$PKG_CONFIG"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5077 $as_echo "$PKG_CONFIG" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 fi
5085 if test -z "$ac_cv_path_PKG_CONFIG"; then
5086 ac_pt_PKG_CONFIG=$PKG_CONFIG
5087 # Extract the first word of "pkg-config", so it can be a program name with args.
5088 set dummy pkg-config; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 case $ac_pt_PKG_CONFIG in
5095 [\\/]* | ?:[\\/]*)
5096 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5097 ;;
5098 *)
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 ;;
5115 esac
5116 fi
5117 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5118 if test -n "$ac_pt_PKG_CONFIG"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5120 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5121 else
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125
5126 if test "x$ac_pt_PKG_CONFIG" = x; then
5127 PKG_CONFIG=""
5128 else
5129 case $cross_compiling:$ac_tool_warned in
5130 yes:)
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5134 esac
5135 PKG_CONFIG=$ac_pt_PKG_CONFIG
5136 fi
5137 else
5138 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5139 fi
5140
5141 fi
5142 if test -n "$PKG_CONFIG"; then
5143 _pkg_min_version=0.9.0
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5145 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5146 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5148 $as_echo "yes" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5152 PKG_CONFIG=""
5153 fi
5154 fi
5155
5156 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5157 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5158 # is C99. So handle it ourselves.
5159 :
5160 C_DIALECT=
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5162 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165
5166 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5167 # error "C11 support not found"
5168 #endif
5169
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173 $as_echo "yes" >&6; }
5174 else
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5179 $as_echo_n "checking for -std=c11 support... " >&6; }
5180 ac_save_CC="$CC"
5181 CC="$CC -std=c11"
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184
5185 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5186 # error "C11 support not found"
5187 #endif
5188
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"; then :
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5194 CC="$ac_save_CC"
5195 C_DIALECT="-std=c11"
5196
5197 else
5198 as_fn_error $? "C11 is required" "$LINENO" 5
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203
5204
5205
5206
5207
5208 for ac_header in $ac_header_list
5209 do :
5210 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5211 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5212 "
5213 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5214 cat >>confdefs.h <<_ACEOF
5215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216 _ACEOF
5217
5218 fi
5219
5220 done
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269 for ac_func in $ac_func_list
5270 do :
5271 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5272 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5273 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5274 cat >>confdefs.h <<_ACEOF
5275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5276 _ACEOF
5277
5278 fi
5279 done
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5408 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5409 if ${ac_cv_struct_tm+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 #include <sys/types.h>
5415 #include <time.h>
5416
5417 int
5418 main ()
5419 {
5420 struct tm tm;
5421 int *p = &tm.tm_sec;
5422 return !p;
5423 ;
5424 return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 ac_cv_struct_tm=time.h
5429 else
5430 ac_cv_struct_tm=sys/time.h
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5435 $as_echo "$ac_cv_struct_tm" >&6; }
5436 if test $ac_cv_struct_tm = sys/time.h; then
5437
5438 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5439
5440 fi
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5443 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5444 if ${ac_cv_type_uid_t+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #include <sys/types.h>
5450
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "uid_t" >/dev/null 2>&1; then :
5454 ac_cv_type_uid_t=yes
5455 else
5456 ac_cv_type_uid_t=no
5457 fi
5458 rm -f conftest*
5459
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5462 $as_echo "$ac_cv_type_uid_t" >&6; }
5463 if test $ac_cv_type_uid_t = no; then
5464
5465 $as_echo "#define uid_t int" >>confdefs.h
5466
5467
5468 $as_echo "#define gid_t int" >>confdefs.h
5469
5470 fi
5471
5472 case `pwd` in
5473 *\ * | *\ *)
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5475 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5476 esac
5477
5478
5479
5480 macro_version='2.2.7a'
5481 macro_revision='1.3134'
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 ltmain="$ac_aux_dir/ltmain.sh"
5496
5497 # Backslashify metacharacters that are still active within
5498 # double-quoted strings.
5499 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5500
5501 # Same as above, but do not quote variable references.
5502 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5503
5504 # Sed substitution to delay expansion of an escaped shell variable in a
5505 # double_quote_subst'ed string.
5506 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5507
5508 # Sed substitution to delay expansion of an escaped single quote.
5509 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5510
5511 # Sed substitution to avoid accidental globbing in evaled expressions
5512 no_glob_subst='s/\*/\\\*/g'
5513
5514 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5515 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5516 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5519 $as_echo_n "checking how to print strings... " >&6; }
5520 # Test print first, because it will be a builtin if present.
5521 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5522 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5523 ECHO='print -r --'
5524 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5525 ECHO='printf %s\n'
5526 else
5527 # Use this function as a fallback that always works.
5528 func_fallback_echo ()
5529 {
5530 eval 'cat <<_LTECHO_EOF
5531 $1
5532 _LTECHO_EOF'
5533 }
5534 ECHO='func_fallback_echo'
5535 fi
5536
5537 # func_echo_all arg...
5538 # Invoke $ECHO with all args, space-separated.
5539 func_echo_all ()
5540 {
5541 $ECHO ""
5542 }
5543
5544 case "$ECHO" in
5545 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5546 $as_echo "printf" >&6; } ;;
5547 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5548 $as_echo "print -r" >&6; } ;;
5549 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5550 $as_echo "cat" >&6; } ;;
5551 esac
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5567 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5568 if ${ac_cv_path_SED+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5572 for ac_i in 1 2 3 4 5 6 7; do
5573 ac_script="$ac_script$as_nl$ac_script"
5574 done
5575 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5576 { ac_script=; unset ac_script;}
5577 if test -z "$SED"; then
5578 ac_path_SED_found=false
5579 # Loop through the user's path and test for each of PROGNAME-LIST
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_prog in sed gsed; do
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5588 as_fn_executable_p "$ac_path_SED" || continue
5589 # Check for GNU ac_path_SED and select it if it is found.
5590 # Check for GNU $ac_path_SED
5591 case `"$ac_path_SED" --version 2>&1` in
5592 *GNU*)
5593 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5594 *)
5595 ac_count=0
5596 $as_echo_n 0123456789 >"conftest.in"
5597 while :
5598 do
5599 cat "conftest.in" "conftest.in" >"conftest.tmp"
5600 mv "conftest.tmp" "conftest.in"
5601 cp "conftest.in" "conftest.nl"
5602 $as_echo '' >> "conftest.nl"
5603 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5605 as_fn_arith $ac_count + 1 && ac_count=$as_val
5606 if test $ac_count -gt ${ac_path_SED_max-0}; then
5607 # Best one so far, save it but keep looking for a better one
5608 ac_cv_path_SED="$ac_path_SED"
5609 ac_path_SED_max=$ac_count
5610 fi
5611 # 10*(2^10) chars as input seems more than enough
5612 test $ac_count -gt 10 && break
5613 done
5614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5615 esac
5616
5617 $ac_path_SED_found && break 3
5618 done
5619 done
5620 done
5621 IFS=$as_save_IFS
5622 if test -z "$ac_cv_path_SED"; then
5623 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5624 fi
5625 else
5626 ac_cv_path_SED=$SED
5627 fi
5628
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5631 $as_echo "$ac_cv_path_SED" >&6; }
5632 SED="$ac_cv_path_SED"
5633 rm -f conftest.sed
5634
5635 test -z "$SED" && SED=sed
5636 Xsed="$SED -e 1s/^X//"
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5649 $as_echo_n "checking for fgrep... " >&6; }
5650 if ${ac_cv_path_FGREP+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5654 then ac_cv_path_FGREP="$GREP -F"
5655 else
5656 if test -z "$FGREP"; then
5657 ac_path_FGREP_found=false
5658 # Loop through the user's path and test for each of PROGNAME-LIST
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_prog in fgrep; do
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5667 as_fn_executable_p "$ac_path_FGREP" || continue
5668 # Check for GNU ac_path_FGREP and select it if it is found.
5669 # Check for GNU $ac_path_FGREP
5670 case `"$ac_path_FGREP" --version 2>&1` in
5671 *GNU*)
5672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5673 *)
5674 ac_count=0
5675 $as_echo_n 0123456789 >"conftest.in"
5676 while :
5677 do
5678 cat "conftest.in" "conftest.in" >"conftest.tmp"
5679 mv "conftest.tmp" "conftest.in"
5680 cp "conftest.in" "conftest.nl"
5681 $as_echo 'FGREP' >> "conftest.nl"
5682 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5684 as_fn_arith $ac_count + 1 && ac_count=$as_val
5685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5686 # Best one so far, save it but keep looking for a better one
5687 ac_cv_path_FGREP="$ac_path_FGREP"
5688 ac_path_FGREP_max=$ac_count
5689 fi
5690 # 10*(2^10) chars as input seems more than enough
5691 test $ac_count -gt 10 && break
5692 done
5693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5694 esac
5695
5696 $ac_path_FGREP_found && break 3
5697 done
5698 done
5699 done
5700 IFS=$as_save_IFS
5701 if test -z "$ac_cv_path_FGREP"; then
5702 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5703 fi
5704 else
5705 ac_cv_path_FGREP=$FGREP
5706 fi
5707
5708 fi
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5711 $as_echo "$ac_cv_path_FGREP" >&6; }
5712 FGREP="$ac_cv_path_FGREP"
5713
5714
5715 test -z "$GREP" && GREP=grep
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735 # Check whether --with-gnu-ld was given.
5736 if test "${with_gnu_ld+set}" = set; then :
5737 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5738 else
5739 with_gnu_ld=no
5740 fi
5741
5742 ac_prog=ld
5743 if test "$GCC" = yes; then
5744 # Check if gcc -print-prog-name=ld gives a path.
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5746 $as_echo_n "checking for ld used by $CC... " >&6; }
5747 case $host in
5748 *-*-mingw*)
5749 # gcc leaves a trailing carriage return which upsets mingw
5750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5751 *)
5752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5753 esac
5754 case $ac_prog in
5755 # Accept absolute paths.
5756 [\\/]* | ?:[\\/]*)
5757 re_direlt='/[^/][^/]*/\.\./'
5758 # Canonicalize the pathname of ld
5759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5762 done
5763 test -z "$LD" && LD="$ac_prog"
5764 ;;
5765 "")
5766 # If it fails, then pretend we aren't using GCC.
5767 ac_prog=ld
5768 ;;
5769 *)
5770 # If it is relative, then search for the first ld in PATH.
5771 with_gnu_ld=unknown
5772 ;;
5773 esac
5774 elif test "$with_gnu_ld" = yes; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5776 $as_echo_n "checking for GNU ld... " >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5779 $as_echo_n "checking for non-GNU ld... " >&6; }
5780 fi
5781 if ${lt_cv_path_LD+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 if test -z "$LD"; then
5785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5786 for ac_dir in $PATH; do
5787 IFS="$lt_save_ifs"
5788 test -z "$ac_dir" && ac_dir=.
5789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5790 lt_cv_path_LD="$ac_dir/$ac_prog"
5791 # Check to see if the program is GNU ld. I'd rather use --version,
5792 # but apparently some variants of GNU ld only accept -v.
5793 # Break only if it was the GNU/non-GNU ld that we prefer.
5794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5795 *GNU* | *'with BFD'*)
5796 test "$with_gnu_ld" != no && break
5797 ;;
5798 *)
5799 test "$with_gnu_ld" != yes && break
5800 ;;
5801 esac
5802 fi
5803 done
5804 IFS="$lt_save_ifs"
5805 else
5806 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5807 fi
5808 fi
5809
5810 LD="$lt_cv_path_LD"
5811 if test -n "$LD"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5813 $as_echo "$LD" >&6; }
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5821 if ${lt_cv_prog_gnu_ld+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5825 case `$LD -v 2>&1 </dev/null` in
5826 *GNU* | *'with BFD'*)
5827 lt_cv_prog_gnu_ld=yes
5828 ;;
5829 *)
5830 lt_cv_prog_gnu_ld=no
5831 ;;
5832 esac
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld=$lt_cv_prog_gnu_ld
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5847 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5848 if ${lt_cv_path_NM+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if test -n "$NM"; then
5852 # Let the user override the nm to test.
5853 lt_nm_to_check="$NM"
5854 else
5855 lt_nm_to_check="${ac_tool_prefix}nm"
5856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5857 lt_nm_to_check="$lt_nm_to_check nm"
5858 fi
5859 fi
5860 for lt_tmp_nm in "$lt_nm_to_check"; do
5861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5863 IFS="$lt_save_ifs"
5864 test -z "$ac_dir" && ac_dir=.
5865 # Strip out any user-provided options from the nm to test twice,
5866 # the first time to test to see if nm (rather than its options) has
5867 # an explicit path, the second time to yield a file which can be
5868 # nm'ed itself.
5869 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5870 case "$tmp_nm_path" in
5871 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5872 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5873 esac
5874 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5875 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5876 # Check to see if the nm accepts a BSD-compat flag.
5877 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5878 # nm: unknown option "B" ignored
5879 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5880 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5881 break
5882 ;;
5883 *)
5884 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5885 *$tmp_nm*)
5886 lt_cv_path_NM="$tmp_nm -p"
5887 break
5888 ;;
5889 *)
5890 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5891 continue # so that we can try to find one that supports BSD flags
5892 ;;
5893 esac
5894 ;;
5895 esac
5896 fi
5897 done
5898 IFS="$lt_save_ifs"
5899 done
5900 : ${lt_cv_path_NM=no}
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5903 $as_echo "$lt_cv_path_NM" >&6; }
5904 if test "$lt_cv_path_NM" != "no"; then
5905 NM="$lt_cv_path_NM"
5906 else
5907 # Didn't find any BSD compatible name lister, look for dumpbin.
5908 if test -n "$DUMPBIN"; then :
5909 # Let the user override the test.
5910 else
5911 if test -n "$ac_tool_prefix"; then
5912 for ac_prog in dumpbin "link -dump"
5913 do
5914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_DUMPBIN+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$DUMPBIN"; then
5922 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935 done
5936 done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 DUMPBIN=$ac_cv_prog_DUMPBIN
5942 if test -n "$DUMPBIN"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5944 $as_echo "$DUMPBIN" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951 test -n "$DUMPBIN" && break
5952 done
5953 fi
5954 if test -z "$DUMPBIN"; then
5955 ac_ct_DUMPBIN=$DUMPBIN
5956 for ac_prog in dumpbin "link -dump"
5957 do
5958 # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_DUMPBIN"; then
5966 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5986 if test -n "$ac_ct_DUMPBIN"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5988 $as_echo "$ac_ct_DUMPBIN" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994
5995 test -n "$ac_ct_DUMPBIN" && break
5996 done
5997
5998 if test "x$ac_ct_DUMPBIN" = x; then
5999 DUMPBIN=":"
6000 else
6001 case $cross_compiling:$ac_tool_warned in
6002 yes:)
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007 DUMPBIN=$ac_ct_DUMPBIN
6008 fi
6009 fi
6010
6011 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6012 *COFF*)
6013 DUMPBIN="$DUMPBIN -symbols"
6014 ;;
6015 *)
6016 DUMPBIN=:
6017 ;;
6018 esac
6019 fi
6020
6021 if test "$DUMPBIN" != ":"; then
6022 NM="$DUMPBIN"
6023 fi
6024 fi
6025 test -z "$NM" && NM=nm
6026
6027
6028
6029
6030
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6033 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6034 if ${lt_cv_nm_interface+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 lt_cv_nm_interface="BSD nm"
6038 echo "int some_variable = 0;" > conftest.$ac_ext
6039 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6040 (eval "$ac_compile" 2>conftest.err)
6041 cat conftest.err >&5
6042 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6043 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6044 cat conftest.err >&5
6045 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6046 cat conftest.out >&5
6047 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6048 lt_cv_nm_interface="MS dumpbin"
6049 fi
6050 rm -f conftest*
6051 fi
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6053 $as_echo "$lt_cv_nm_interface" >&6; }
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6056 $as_echo_n "checking whether ln -s works... " >&6; }
6057 LN_S=$as_ln_s
6058 if test "$LN_S" = "ln -s"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6060 $as_echo "yes" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6063 $as_echo "no, using $LN_S" >&6; }
6064 fi
6065
6066 # find the maximum length of command line arguments
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6068 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6069 if ${lt_cv_sys_max_cmd_len+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 i=0
6073 teststring="ABCD"
6074
6075 case $build_os in
6076 msdosdjgpp*)
6077 # On DJGPP, this test can blow up pretty badly due to problems in libc
6078 # (any single argument exceeding 2000 bytes causes a buffer overrun
6079 # during glob expansion). Even if it were fixed, the result of this
6080 # check would be larger than it should be.
6081 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6082 ;;
6083
6084 gnu*)
6085 # Under GNU Hurd, this test is not required because there is
6086 # no limit to the length of command line arguments.
6087 # Libtool will interpret -1 as no limit whatsoever
6088 lt_cv_sys_max_cmd_len=-1;
6089 ;;
6090
6091 cygwin* | mingw* | cegcc*)
6092 # On Win9x/ME, this test blows up -- it succeeds, but takes
6093 # about 5 minutes as the teststring grows exponentially.
6094 # Worse, since 9x/ME are not pre-emptively multitasking,
6095 # you end up with a "frozen" computer, even though with patience
6096 # the test eventually succeeds (with a max line length of 256k).
6097 # Instead, let's just punt: use the minimum linelength reported by
6098 # all of the supported platforms: 8192 (on NT/2K/XP).
6099 lt_cv_sys_max_cmd_len=8192;
6100 ;;
6101
6102 mint*)
6103 # On MiNT this can take a long time and run out of memory.
6104 lt_cv_sys_max_cmd_len=8192;
6105 ;;
6106
6107 amigaos*)
6108 # On AmigaOS with pdksh, this test takes hours, literally.
6109 # So we just punt and use a minimum line length of 8192.
6110 lt_cv_sys_max_cmd_len=8192;
6111 ;;
6112
6113 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6114 # This has been around since 386BSD, at least. Likely further.
6115 if test -x /sbin/sysctl; then
6116 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6117 elif test -x /usr/sbin/sysctl; then
6118 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6119 else
6120 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6121 fi
6122 # And add a safety zone
6123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6125 ;;
6126
6127 interix*)
6128 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6129 lt_cv_sys_max_cmd_len=196608
6130 ;;
6131
6132 osf*)
6133 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6134 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6135 # nice to cause kernel panics so lets avoid the loop below.
6136 # First set a reasonable default.
6137 lt_cv_sys_max_cmd_len=16384
6138 #
6139 if test -x /sbin/sysconfig; then
6140 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6141 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6142 esac
6143 fi
6144 ;;
6145 sco3.2v5*)
6146 lt_cv_sys_max_cmd_len=102400
6147 ;;
6148 sysv5* | sco5v6* | sysv4.2uw2*)
6149 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6150 if test -n "$kargmax"; then
6151 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6152 else
6153 lt_cv_sys_max_cmd_len=32768
6154 fi
6155 ;;
6156 *)
6157 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6158 if test -n "$lt_cv_sys_max_cmd_len"; then
6159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6161 else
6162 # Make teststring a little bigger before we do anything with it.
6163 # a 1K string should be a reasonable start.
6164 for i in 1 2 3 4 5 6 7 8 ; do
6165 teststring=$teststring$teststring
6166 done
6167 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6168 # If test is not a shell built-in, we'll probably end up computing a
6169 # maximum length that is only half of the actual maximum length, but
6170 # we can't tell.
6171 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6172 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6173 test $i != 17 # 1/2 MB should be enough
6174 do
6175 i=`expr $i + 1`
6176 teststring=$teststring$teststring
6177 done
6178 # Only check the string length outside the loop.
6179 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6180 teststring=
6181 # Add a significant safety factor because C++ compilers can tack on
6182 # massive amounts of additional arguments before passing them to the
6183 # linker. It appears as though 1/2 is a usable value.
6184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6185 fi
6186 ;;
6187 esac
6188
6189 fi
6190
6191 if test -n $lt_cv_sys_max_cmd_len ; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6193 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6196 $as_echo "none" >&6; }
6197 fi
6198 max_cmd_len=$lt_cv_sys_max_cmd_len
6199
6200
6201
6202
6203
6204
6205 : ${CP="cp -f"}
6206 : ${MV="mv -f"}
6207 : ${RM="rm -f"}
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6210 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6211 # Try some XSI features
6212 xsi_shell=no
6213 ( _lt_dummy="a/b/c"
6214 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6215 = c,a/b,, \
6216 && eval 'test $(( 1 + 1 )) -eq 2 \
6217 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6218 && xsi_shell=yes
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6220 $as_echo "$xsi_shell" >&6; }
6221
6222
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6224 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6225 lt_shell_append=no
6226 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6227 >/dev/null 2>&1 \
6228 && lt_shell_append=yes
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6230 $as_echo "$lt_shell_append" >&6; }
6231
6232
6233 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6234 lt_unset=unset
6235 else
6236 lt_unset=false
6237 fi
6238
6239
6240
6241
6242
6243 # test EBCDIC or ASCII
6244 case `echo X|tr X '\101'` in
6245 A) # ASCII based system
6246 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6247 lt_SP2NL='tr \040 \012'
6248 lt_NL2SP='tr \015\012 \040\040'
6249 ;;
6250 *) # EBCDIC based system
6251 lt_SP2NL='tr \100 \n'
6252 lt_NL2SP='tr \r\n \100\100'
6253 ;;
6254 esac
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6265 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6266 if ${lt_cv_ld_reload_flag+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 lt_cv_ld_reload_flag='-r'
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6272 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6273 reload_flag=$lt_cv_ld_reload_flag
6274 case $reload_flag in
6275 "" | " "*) ;;
6276 *) reload_flag=" $reload_flag" ;;
6277 esac
6278 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6279 case $host_os in
6280 darwin*)
6281 if test "$GCC" = yes; then
6282 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6283 else
6284 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6285 fi
6286 ;;
6287 esac
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_OBJDUMP+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$OBJDUMP"; then
6306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 OBJDUMP=$ac_cv_prog_OBJDUMP
6326 if test -n "$OBJDUMP"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6328 $as_echo "$OBJDUMP" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334
6335 fi
6336 if test -z "$ac_cv_prog_OBJDUMP"; then
6337 ac_ct_OBJDUMP=$OBJDUMP
6338 # Extract the first word of "objdump", so it can be a program name with args.
6339 set dummy objdump; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$ac_ct_OBJDUMP"; then
6346 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi
6364 fi
6365 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6366 if test -n "$ac_ct_OBJDUMP"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6368 $as_echo "$ac_ct_OBJDUMP" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6373
6374 if test "x$ac_ct_OBJDUMP" = x; then
6375 OBJDUMP="false"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378 yes:)
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned=yes ;;
6382 esac
6383 OBJDUMP=$ac_ct_OBJDUMP
6384 fi
6385 else
6386 OBJDUMP="$ac_cv_prog_OBJDUMP"
6387 fi
6388
6389 test -z "$OBJDUMP" && OBJDUMP=objdump
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6400 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6401 if ${lt_cv_deplibs_check_method+:} false; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 lt_cv_file_magic_cmd='$MAGIC_CMD'
6405 lt_cv_file_magic_test_file=
6406 lt_cv_deplibs_check_method='unknown'
6407 # Need to set the preceding variable on all platforms that support
6408 # interlibrary dependencies.
6409 # 'none' -- dependencies not supported.
6410 # `unknown' -- same as none, but documents that we really don't know.
6411 # 'pass_all' -- all dependencies passed with no checks.
6412 # 'test_compile' -- check by making test program.
6413 # 'file_magic [[regex]]' -- check by looking for files in library path
6414 # which responds to the $file_magic_cmd with a given extended regex.
6415 # If you have `file' or equivalent on your system and you're not sure
6416 # whether `pass_all' will *always* work, you probably want this one.
6417
6418 case $host_os in
6419 aix[4-9]*)
6420 lt_cv_deplibs_check_method=pass_all
6421 ;;
6422
6423 beos*)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426
6427 bsdi[45]*)
6428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6429 lt_cv_file_magic_cmd='/usr/bin/file -L'
6430 lt_cv_file_magic_test_file=/shlib/libc.so
6431 ;;
6432
6433 cygwin*)
6434 # func_win32_libid is a shell function defined in ltmain.sh
6435 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6436 lt_cv_file_magic_cmd='func_win32_libid'
6437 ;;
6438
6439 mingw* | pw32*)
6440 # Base MSYS/MinGW do not provide the 'file' command needed by
6441 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6442 # unless we find 'file', for example because we are cross-compiling.
6443 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6444 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6445 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6446 lt_cv_file_magic_cmd='func_win32_libid'
6447 else
6448 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6449 lt_cv_file_magic_cmd='$OBJDUMP -f'
6450 fi
6451 ;;
6452
6453 cegcc*)
6454 # use the weaker test based on 'objdump'. See mingw*.
6455 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6456 lt_cv_file_magic_cmd='$OBJDUMP -f'
6457 ;;
6458
6459 darwin* | rhapsody*)
6460 lt_cv_deplibs_check_method=pass_all
6461 ;;
6462
6463 freebsd* | dragonfly*)
6464 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6465 case $host_cpu in
6466 i*86 )
6467 # Not sure whether the presence of OpenBSD here was a mistake.
6468 # Let's accept both of them until this is cleared up.
6469 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6470 lt_cv_file_magic_cmd=/usr/bin/file
6471 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6472 ;;
6473 esac
6474 else
6475 lt_cv_deplibs_check_method=pass_all
6476 fi
6477 ;;
6478
6479 gnu*)
6480 lt_cv_deplibs_check_method=pass_all
6481 ;;
6482
6483 haiku*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486
6487 hpux10.20* | hpux11*)
6488 lt_cv_file_magic_cmd=/usr/bin/file
6489 case $host_cpu in
6490 ia64*)
6491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6492 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6493 ;;
6494 hppa*64*)
6495 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]'
6496 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6497 ;;
6498 *)
6499 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6500 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6501 ;;
6502 esac
6503 ;;
6504
6505 interix[3-9]*)
6506 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6508 ;;
6509
6510 irix5* | irix6* | nonstopux*)
6511 case $LD in
6512 *-32|*"-32 ") libmagic=32-bit;;
6513 *-n32|*"-n32 ") libmagic=N32;;
6514 *-64|*"-64 ") libmagic=64-bit;;
6515 *) libmagic=never-match;;
6516 esac
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520 # This must be Linux ELF.
6521 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524
6525 netbsd*)
6526 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6528 else
6529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6530 fi
6531 ;;
6532
6533 newos6*)
6534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6535 lt_cv_file_magic_cmd=/usr/bin/file
6536 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6537 ;;
6538
6539 *nto* | *qnx*)
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542
6543 openbsd*)
6544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6546 else
6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6548 fi
6549 ;;
6550
6551 osf3* | osf4* | osf5*)
6552 lt_cv_deplibs_check_method=pass_all
6553 ;;
6554
6555 rdos*)
6556 lt_cv_deplibs_check_method=pass_all
6557 ;;
6558
6559 solaris*)
6560 lt_cv_deplibs_check_method=pass_all
6561 ;;
6562
6563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6564 lt_cv_deplibs_check_method=pass_all
6565 ;;
6566
6567 sysv4 | sysv4.3*)
6568 case $host_vendor in
6569 motorola)
6570 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]'
6571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6572 ;;
6573 ncr)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576 sequent)
6577 lt_cv_file_magic_cmd='/bin/file'
6578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6579 ;;
6580 sni)
6581 lt_cv_file_magic_cmd='/bin/file'
6582 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6583 lt_cv_file_magic_test_file=/lib/libc.so
6584 ;;
6585 siemens)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588 pc)
6589 lt_cv_deplibs_check_method=pass_all
6590 ;;
6591 esac
6592 ;;
6593
6594 tpf*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597 vxworks*)
6598 # Assume VxWorks cross toolchains are built on Linux, possibly
6599 # as canadian for Windows hosts.
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602 esac
6603
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6606 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6607 file_magic_cmd=$lt_cv_file_magic_cmd
6608 deplibs_check_method=$lt_cv_deplibs_check_method
6609 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622 plugin_option=
6623 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6624 for plugin in $plugin_names; do
6625 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6626 if test x$plugin_so = x$plugin; then
6627 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6628 fi
6629 if test x$plugin_so != x$plugin; then
6630 plugin_option="--plugin $plugin_so"
6631 break
6632 fi
6633 done
6634
6635 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}ar; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_AR+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$AR"; then
6644 ac_cv_prog_AR="$AR" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6653 ac_cv_prog_AR="${ac_tool_prefix}ar"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 AR=$ac_cv_prog_AR
6664 if test -n "$AR"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6666 $as_echo "$AR" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671
6672
6673 fi
6674 if test -z "$ac_cv_prog_AR"; then
6675 ac_ct_AR=$AR
6676 # Extract the first word of "ar", so it can be a program name with args.
6677 set dummy ar; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$ac_ct_AR"; then
6684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_ac_ct_AR="ar"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6704 if test -n "$ac_ct_AR"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6706 $as_echo "$ac_ct_AR" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712 if test "x$ac_ct_AR" = x; then
6713 AR="false"
6714 else
6715 case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721 AR=$ac_ct_AR
6722 fi
6723 else
6724 AR="$ac_cv_prog_AR"
6725 fi
6726
6727 test -z "$AR" && AR=ar
6728 if test -n "$plugin_option"; then
6729 if $AR --help 2>&1 | grep -q "\--plugin"; then
6730 touch conftest.c
6731 $AR $plugin_option rc conftest.a conftest.c
6732 if test "$?" != 0; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6734 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6735 else
6736 AR="$AR $plugin_option"
6737 fi
6738 rm -f conftest.*
6739 fi
6740 fi
6741 test -z "$AR_FLAGS" && AR_FLAGS=cru
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}strip; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_STRIP+:} false; then :
6759 $as_echo_n "(cached) " >&6
6760 else
6761 if test -n "$STRIP"; then
6762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 break 2
6774 fi
6775 done
6776 done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 STRIP=$ac_cv_prog_STRIP
6782 if test -n "$STRIP"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6784 $as_echo "$STRIP" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790
6791 fi
6792 if test -z "$ac_cv_prog_STRIP"; then
6793 ac_ct_STRIP=$STRIP
6794 # Extract the first word of "strip", so it can be a program name with args.
6795 set dummy strip; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$ac_ct_STRIP"; then
6802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_ac_ct_STRIP="strip"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822 if test -n "$ac_ct_STRIP"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6824 $as_echo "$ac_ct_STRIP" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830 if test "x$ac_ct_STRIP" = x; then
6831 STRIP=":"
6832 else
6833 case $cross_compiling:$ac_tool_warned in
6834 yes:)
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6838 esac
6839 STRIP=$ac_ct_STRIP
6840 fi
6841 else
6842 STRIP="$ac_cv_prog_STRIP"
6843 fi
6844
6845 test -z "$STRIP" && STRIP=:
6846
6847
6848
6849
6850
6851
6852 if test -n "$ac_tool_prefix"; then
6853 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if ${ac_cv_prog_RANLIB+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$RANLIB"; then
6861 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 RANLIB=$ac_cv_prog_RANLIB
6881 if test -n "$RANLIB"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6883 $as_echo "$RANLIB" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6887 fi
6888
6889
6890 fi
6891 if test -z "$ac_cv_prog_RANLIB"; then
6892 ac_ct_RANLIB=$RANLIB
6893 # Extract the first word of "ranlib", so it can be a program name with args.
6894 set dummy ranlib; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 if test -n "$ac_ct_RANLIB"; then
6901 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906 IFS=$as_save_IFS
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_ac_ct_RANLIB="ranlib"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 break 2
6913 fi
6914 done
6915 done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6921 if test -n "$ac_ct_RANLIB"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6923 $as_echo "$ac_ct_RANLIB" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929 if test "x$ac_ct_RANLIB" = x; then
6930 RANLIB=":"
6931 else
6932 case $cross_compiling:$ac_tool_warned in
6933 yes:)
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936 ac_tool_warned=yes ;;
6937 esac
6938 RANLIB=$ac_ct_RANLIB
6939 fi
6940 else
6941 RANLIB="$ac_cv_prog_RANLIB"
6942 fi
6943
6944 test -z "$RANLIB" && RANLIB=:
6945 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6946 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6947 RANLIB="$RANLIB $plugin_option"
6948 fi
6949 fi
6950
6951
6952
6953
6954
6955
6956 # Determine commands to create old-style static archives.
6957 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6958 old_postinstall_cmds='chmod 644 $oldlib'
6959 old_postuninstall_cmds=
6960
6961 if test -n "$RANLIB"; then
6962 case $host_os in
6963 openbsd*)
6964 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6965 ;;
6966 *)
6967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6968 ;;
6969 esac
6970 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6971 fi
6972
6973 case $host_os in
6974 darwin*)
6975 lock_old_archive_extraction=yes ;;
6976 *)
6977 lock_old_archive_extraction=no ;;
6978 esac
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 for ac_prog in gawk mawk nawk awk
7001 do
7002 # Extract the first word of "$ac_prog", so it can be a program name with args.
7003 set dummy $ac_prog; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_AWK+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$AWK"; then
7010 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_AWK="$ac_prog"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 AWK=$ac_cv_prog_AWK
7030 if test -n "$AWK"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7032 $as_echo "$AWK" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038
7039 test -n "$AWK" && break
7040 done
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 # If no C compiler was specified, use CC.
7061 LTCC=${LTCC-"$CC"}
7062
7063 # If no C compiler flags were specified, use CFLAGS.
7064 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7065
7066 # Allow CC to be a program name with arguments.
7067 compiler=$CC
7068
7069
7070 # Check for command to grab the raw symbol name followed by C symbol from nm.
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7072 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7073 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076
7077 # These are sane defaults that work on at least a few old systems.
7078 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7079
7080 # Character class describing NM global symbol codes.
7081 symcode='[BCDEGRST]'
7082
7083 # Regexp to match symbols that can be accessed directly from C.
7084 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7085
7086 # Define system-specific variables.
7087 case $host_os in
7088 aix*)
7089 symcode='[BCDT]'
7090 ;;
7091 cygwin* | mingw* | pw32* | cegcc*)
7092 symcode='[ABCDGISTW]'
7093 ;;
7094 hpux*)
7095 if test "$host_cpu" = ia64; then
7096 symcode='[ABCDEGRST]'
7097 fi
7098 ;;
7099 irix* | nonstopux*)
7100 symcode='[BCDEGRST]'
7101 ;;
7102 osf*)
7103 symcode='[BCDEGQRST]'
7104 ;;
7105 solaris*)
7106 symcode='[BCDRT]'
7107 ;;
7108 sco3.2v5*)
7109 symcode='[DT]'
7110 ;;
7111 sysv4.2uw2*)
7112 symcode='[DT]'
7113 ;;
7114 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7115 symcode='[ABDT]'
7116 ;;
7117 sysv4)
7118 symcode='[DFNSTU]'
7119 ;;
7120 esac
7121
7122 # If we're using GNU nm, then use its standard symbol codes.
7123 case `$NM -V 2>&1` in
7124 *GNU* | *'with BFD'*)
7125 symcode='[ABCDGIRSTW]' ;;
7126 esac
7127
7128 # Transform an extracted symbol line into a proper C declaration.
7129 # Some systems (esp. on ia64) link data and code symbols differently,
7130 # so use this general approach.
7131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7132
7133 # Transform an extracted symbol line into symbol name and symbol address
7134 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7135 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'"
7136
7137 # Handle CRLF in mingw tool chain
7138 opt_cr=
7139 case $build_os in
7140 mingw*)
7141 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7142 ;;
7143 esac
7144
7145 # Try without a prefix underscore, then with it.
7146 for ac_symprfx in "" "_"; do
7147
7148 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7149 symxfrm="\\1 $ac_symprfx\\2 \\2"
7150
7151 # Write the raw and C identifiers.
7152 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7153 # Fake it for dumpbin and say T for any non-static function
7154 # and D for any global variable.
7155 # Also find C++ and __fastcall symbols from MSVC++,
7156 # which start with @ or ?.
7157 lt_cv_sys_global_symbol_pipe="$AWK '"\
7158 " {last_section=section; section=\$ 3};"\
7159 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7160 " \$ 0!~/External *\|/{next};"\
7161 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7162 " {if(hide[section]) next};"\
7163 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7164 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7165 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7166 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7167 " ' prfx=^$ac_symprfx"
7168 else
7169 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7170 fi
7171
7172 # Check to see that the pipe works correctly.
7173 pipe_works=no
7174
7175 rm -f conftest*
7176 cat > conftest.$ac_ext <<_LT_EOF
7177 #ifdef __cplusplus
7178 extern "C" {
7179 #endif
7180 char nm_test_var;
7181 void nm_test_func(void);
7182 void nm_test_func(void){}
7183 #ifdef __cplusplus
7184 }
7185 #endif
7186 int main(){nm_test_var='a';nm_test_func();return(0);}
7187 _LT_EOF
7188
7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7190 (eval $ac_compile) 2>&5
7191 ac_status=$?
7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7193 test $ac_status = 0; }; then
7194 # Now try to grab the symbols.
7195 nlist=conftest.nm
7196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7197 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7198 ac_status=$?
7199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; } && test -s "$nlist"; then
7201 # Try sorting and uniquifying the output.
7202 if sort "$nlist" | uniq > "$nlist"T; then
7203 mv -f "$nlist"T "$nlist"
7204 else
7205 rm -f "$nlist"T
7206 fi
7207
7208 # Make sure that we snagged all the symbols we need.
7209 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7210 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7211 cat <<_LT_EOF > conftest.$ac_ext
7212 #ifdef __cplusplus
7213 extern "C" {
7214 #endif
7215
7216 _LT_EOF
7217 # Now generate the symbol file.
7218 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7219
7220 cat <<_LT_EOF >> conftest.$ac_ext
7221
7222 /* The mapping between symbol names and symbols. */
7223 const struct {
7224 const char *name;
7225 void *address;
7226 }
7227 lt__PROGRAM__LTX_preloaded_symbols[] =
7228 {
7229 { "@PROGRAM@", (void *) 0 },
7230 _LT_EOF
7231 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7232 cat <<\_LT_EOF >> conftest.$ac_ext
7233 {0, (void *) 0}
7234 };
7235
7236 /* This works around a problem in FreeBSD linker */
7237 #ifdef FREEBSD_WORKAROUND
7238 static const void *lt_preloaded_setup() {
7239 return lt__PROGRAM__LTX_preloaded_symbols;
7240 }
7241 #endif
7242
7243 #ifdef __cplusplus
7244 }
7245 #endif
7246 _LT_EOF
7247 # Now try linking the two files.
7248 mv conftest.$ac_objext conftstm.$ac_objext
7249 lt_save_LIBS="$LIBS"
7250 lt_save_CFLAGS="$CFLAGS"
7251 LIBS="conftstm.$ac_objext"
7252 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7254 (eval $ac_link) 2>&5
7255 ac_status=$?
7256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7258 pipe_works=yes
7259 fi
7260 LIBS="$lt_save_LIBS"
7261 CFLAGS="$lt_save_CFLAGS"
7262 else
7263 echo "cannot find nm_test_func in $nlist" >&5
7264 fi
7265 else
7266 echo "cannot find nm_test_var in $nlist" >&5
7267 fi
7268 else
7269 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7270 fi
7271 else
7272 echo "$progname: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7274 fi
7275 rm -rf conftest* conftst*
7276
7277 # Do not use the global_symbol_pipe unless it works.
7278 if test "$pipe_works" = yes; then
7279 break
7280 else
7281 lt_cv_sys_global_symbol_pipe=
7282 fi
7283 done
7284
7285 fi
7286
7287 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7288 lt_cv_sys_global_symbol_to_cdecl=
7289 fi
7290 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7292 $as_echo "failed" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7295 $as_echo "ok" >&6; }
7296 fi
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319 # Check whether --enable-libtool-lock was given.
7320 if test "${enable_libtool_lock+set}" = set; then :
7321 enableval=$enable_libtool_lock;
7322 fi
7323
7324 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7325
7326 # Some flags need to be propagated to the compiler or linker for good
7327 # libtool support.
7328 case $host in
7329 ia64-*-hpux*)
7330 # Find out which ABI we are using.
7331 echo 'int i;' > conftest.$ac_ext
7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333 (eval $ac_compile) 2>&5
7334 ac_status=$?
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 case `/usr/bin/file conftest.$ac_objext` in
7338 *ELF-32*)
7339 HPUX_IA64_MODE="32"
7340 ;;
7341 *ELF-64*)
7342 HPUX_IA64_MODE="64"
7343 ;;
7344 esac
7345 fi
7346 rm -rf conftest*
7347 ;;
7348 *-*-irix6*)
7349 # Find out which ABI we are using.
7350 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7352 (eval $ac_compile) 2>&5
7353 ac_status=$?
7354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7355 test $ac_status = 0; }; then
7356 if test "$lt_cv_prog_gnu_ld" = yes; then
7357 case `/usr/bin/file conftest.$ac_objext` in
7358 *32-bit*)
7359 LD="${LD-ld} -melf32bsmip"
7360 ;;
7361 *N32*)
7362 LD="${LD-ld} -melf32bmipn32"
7363 ;;
7364 *64-bit*)
7365 LD="${LD-ld} -melf64bmip"
7366 ;;
7367 esac
7368 else
7369 case `/usr/bin/file conftest.$ac_objext` in
7370 *32-bit*)
7371 LD="${LD-ld} -32"
7372 ;;
7373 *N32*)
7374 LD="${LD-ld} -n32"
7375 ;;
7376 *64-bit*)
7377 LD="${LD-ld} -64"
7378 ;;
7379 esac
7380 fi
7381 fi
7382 rm -rf conftest*
7383 ;;
7384
7385 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7386 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7387 # Find out which ABI we are using.
7388 echo 'int i;' > conftest.$ac_ext
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390 (eval $ac_compile) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
7394 case `/usr/bin/file conftest.o` in
7395 *32-bit*)
7396 case $host in
7397 x86_64-*kfreebsd*-gnu)
7398 LD="${LD-ld} -m elf_i386_fbsd"
7399 ;;
7400 x86_64-*linux*)
7401 case `/usr/bin/file conftest.o` in
7402 *x86-64*)
7403 LD="${LD-ld} -m elf32_x86_64"
7404 ;;
7405 *)
7406 LD="${LD-ld} -m elf_i386"
7407 ;;
7408 esac
7409 ;;
7410 powerpc64le-*linux*)
7411 LD="${LD-ld} -m elf32lppclinux"
7412 ;;
7413 powerpc64-*linux*)
7414 LD="${LD-ld} -m elf32ppclinux"
7415 ;;
7416 s390x-*linux*)
7417 LD="${LD-ld} -m elf_s390"
7418 ;;
7419 sparc64-*linux*)
7420 LD="${LD-ld} -m elf32_sparc"
7421 ;;
7422 esac
7423 ;;
7424 *64-bit*)
7425 case $host in
7426 x86_64-*kfreebsd*-gnu)
7427 LD="${LD-ld} -m elf_x86_64_fbsd"
7428 ;;
7429 x86_64-*linux*)
7430 LD="${LD-ld} -m elf_x86_64"
7431 ;;
7432 powerpcle-*linux*)
7433 LD="${LD-ld} -m elf64lppc"
7434 ;;
7435 powerpc-*linux*)
7436 LD="${LD-ld} -m elf64ppc"
7437 ;;
7438 s390*-*linux*|s390*-*tpf*)
7439 LD="${LD-ld} -m elf64_s390"
7440 ;;
7441 sparc*-*linux*)
7442 LD="${LD-ld} -m elf64_sparc"
7443 ;;
7444 esac
7445 ;;
7446 esac
7447 fi
7448 rm -rf conftest*
7449 ;;
7450
7451 *-*-sco3.2v5*)
7452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7453 SAVE_CFLAGS="$CFLAGS"
7454 CFLAGS="$CFLAGS -belf"
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7456 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7457 if ${lt_cv_cc_needs_belf+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 ac_ext=c
7461 ac_cpp='$CPP $CPPFLAGS'
7462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468
7469 int
7470 main ()
7471 {
7472
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 lt_cv_cc_needs_belf=yes
7479 else
7480 lt_cv_cc_needs_belf=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 ac_ext=c
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489
7490 fi
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7492 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7493 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7494 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7495 CFLAGS="$SAVE_CFLAGS"
7496 fi
7497 ;;
7498 sparc*-*solaris*)
7499 # Find out which ABI we are using.
7500 echo 'int i;' > conftest.$ac_ext
7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502 (eval $ac_compile) 2>&5
7503 ac_status=$?
7504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; }; then
7506 case `/usr/bin/file conftest.o` in
7507 *64-bit*)
7508 case $lt_cv_prog_gnu_ld in
7509 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7510 *)
7511 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7512 LD="${LD-ld} -64"
7513 fi
7514 ;;
7515 esac
7516 ;;
7517 esac
7518 fi
7519 rm -rf conftest*
7520 ;;
7521 esac
7522
7523 need_locks="$enable_libtool_lock"
7524
7525
7526 case $host_os in
7527 rhapsody* | darwin*)
7528 if test -n "$ac_tool_prefix"; then
7529 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7530 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 if test -n "$DSYMUTIL"; then
7537 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554 fi
7555 fi
7556 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7557 if test -n "$DSYMUTIL"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7559 $as_echo "$DSYMUTIL" >&6; }
7560 else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565
7566 fi
7567 if test -z "$ac_cv_prog_DSYMUTIL"; then
7568 ac_ct_DSYMUTIL=$DSYMUTIL
7569 # Extract the first word of "dsymutil", so it can be a program name with args.
7570 set dummy dsymutil; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 if test -n "$ac_ct_DSYMUTIL"; then
7577 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7589 fi
7590 done
7591 done
7592 IFS=$as_save_IFS
7593
7594 fi
7595 fi
7596 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7597 if test -n "$ac_ct_DSYMUTIL"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7599 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7600 else
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605 if test "x$ac_ct_DSYMUTIL" = x; then
7606 DSYMUTIL=":"
7607 else
7608 case $cross_compiling:$ac_tool_warned in
7609 yes:)
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7612 ac_tool_warned=yes ;;
7613 esac
7614 DSYMUTIL=$ac_ct_DSYMUTIL
7615 fi
7616 else
7617 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7618 fi
7619
7620 if test -n "$ac_tool_prefix"; then
7621 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7622 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_NMEDIT+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$NMEDIT"; then
7629 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7641 fi
7642 done
7643 done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 NMEDIT=$ac_cv_prog_NMEDIT
7649 if test -n "$NMEDIT"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7651 $as_echo "$NMEDIT" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657
7658 fi
7659 if test -z "$ac_cv_prog_NMEDIT"; then
7660 ac_ct_NMEDIT=$NMEDIT
7661 # Extract the first word of "nmedit", so it can be a program name with args.
7662 set dummy nmedit; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 if test -n "$ac_ct_NMEDIT"; then
7669 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7689 if test -n "$ac_ct_NMEDIT"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7691 $as_echo "$ac_ct_NMEDIT" >&6; }
7692 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697 if test "x$ac_ct_NMEDIT" = x; then
7698 NMEDIT=":"
7699 else
7700 case $cross_compiling:$ac_tool_warned in
7701 yes:)
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704 ac_tool_warned=yes ;;
7705 esac
7706 NMEDIT=$ac_ct_NMEDIT
7707 fi
7708 else
7709 NMEDIT="$ac_cv_prog_NMEDIT"
7710 fi
7711
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_LIPO+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$LIPO"; then
7721 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 LIPO=$ac_cv_prog_LIPO
7741 if test -n "$LIPO"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7743 $as_echo "$LIPO" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_LIPO"; then
7752 ac_ct_LIPO=$LIPO
7753 # Extract the first word of "lipo", so it can be a program name with args.
7754 set dummy lipo; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$ac_ct_LIPO"; then
7761 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_ac_ct_LIPO="lipo"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7773 fi
7774 done
7775 done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7781 if test -n "$ac_ct_LIPO"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7783 $as_echo "$ac_ct_LIPO" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789 if test "x$ac_ct_LIPO" = x; then
7790 LIPO=":"
7791 else
7792 case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798 LIPO=$ac_ct_LIPO
7799 fi
7800 else
7801 LIPO="$ac_cv_prog_LIPO"
7802 fi
7803
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}otool; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_OTOOL+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$OTOOL"; then
7813 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7825 fi
7826 done
7827 done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 OTOOL=$ac_cv_prog_OTOOL
7833 if test -n "$OTOOL"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7835 $as_echo "$OTOOL" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 fi
7843 if test -z "$ac_cv_prog_OTOOL"; then
7844 ac_ct_OTOOL=$OTOOL
7845 # Extract the first word of "otool", so it can be a program name with args.
7846 set dummy otool; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$ac_ct_OTOOL"; then
7853 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_OTOOL="otool"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7873 if test -n "$ac_ct_OTOOL"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7875 $as_echo "$ac_ct_OTOOL" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881 if test "x$ac_ct_OTOOL" = x; then
7882 OTOOL=":"
7883 else
7884 case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890 OTOOL=$ac_ct_OTOOL
7891 fi
7892 else
7893 OTOOL="$ac_cv_prog_OTOOL"
7894 fi
7895
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_OTOOL64+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$OTOOL64"; then
7905 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7917 fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 OTOOL64=$ac_cv_prog_OTOOL64
7925 if test -n "$OTOOL64"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7927 $as_echo "$OTOOL64" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934 fi
7935 if test -z "$ac_cv_prog_OTOOL64"; then
7936 ac_ct_OTOOL64=$OTOOL64
7937 # Extract the first word of "otool64", so it can be a program name with args.
7938 set dummy otool64; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$ac_ct_OTOOL64"; then
7945 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_OTOOL64="otool64"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7965 if test -n "$ac_ct_OTOOL64"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7967 $as_echo "$ac_ct_OTOOL64" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973 if test "x$ac_ct_OTOOL64" = x; then
7974 OTOOL64=":"
7975 else
7976 case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982 OTOOL64=$ac_ct_OTOOL64
7983 fi
7984 else
7985 OTOOL64="$ac_cv_prog_OTOOL64"
7986 fi
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8015 $as_echo_n "checking for -single_module linker flag... " >&6; }
8016 if ${lt_cv_apple_cc_single_mod+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 lt_cv_apple_cc_single_mod=no
8020 if test -z "${LT_MULTI_MODULE}"; then
8021 # By default we will add the -single_module flag. You can override
8022 # by either setting the environment variable LT_MULTI_MODULE
8023 # non-empty at configure time, or by adding -multi_module to the
8024 # link flags.
8025 rm -rf libconftest.dylib*
8026 echo "int foo(void){return 1;}" > conftest.c
8027 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8028 -dynamiclib -Wl,-single_module conftest.c" >&5
8029 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8030 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8031 _lt_result=$?
8032 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8033 lt_cv_apple_cc_single_mod=yes
8034 else
8035 cat conftest.err >&5
8036 fi
8037 rm -rf libconftest.dylib*
8038 rm -f conftest.*
8039 fi
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8042 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8044 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8045 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 lt_cv_ld_exported_symbols_list=no
8049 save_LDFLAGS=$LDFLAGS
8050 echo "_main" > conftest.sym
8051 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054
8055 int
8056 main ()
8057 {
8058
8059 ;
8060 return 0;
8061 }
8062 _ACEOF
8063 if ac_fn_c_try_link "$LINENO"; then :
8064 lt_cv_ld_exported_symbols_list=yes
8065 else
8066 lt_cv_ld_exported_symbols_list=no
8067 fi
8068 rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 LDFLAGS="$save_LDFLAGS"
8071
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8074 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8076 $as_echo_n "checking for -force_load linker flag... " >&6; }
8077 if ${lt_cv_ld_force_load+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 lt_cv_ld_force_load=no
8081 cat > conftest.c << _LT_EOF
8082 int forced_loaded() { return 2;}
8083 _LT_EOF
8084 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8085 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8086 echo "$AR cru libconftest.a conftest.o" >&5
8087 $AR cru libconftest.a conftest.o 2>&5
8088 cat > conftest.c << _LT_EOF
8089 int main() { return 0;}
8090 _LT_EOF
8091 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8092 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8093 _lt_result=$?
8094 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8095 lt_cv_ld_force_load=yes
8096 else
8097 cat conftest.err >&5
8098 fi
8099 rm -f conftest.err libconftest.a conftest conftest.c
8100 rm -rf conftest.dSYM
8101
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8104 $as_echo "$lt_cv_ld_force_load" >&6; }
8105 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8106 # build without first building modern cctools / linker.
8107 case $host_cpu-$host_os in
8108 *-rhapsody* | *-darwin1.[012])
8109 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8110 *-darwin1.*)
8111 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8112 *-darwin*)
8113 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8114 # deployment target is forced to an earlier version.
8115 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8116 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8117 ;;
8118 10.[012][,.]*)
8119 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8120 ;;
8121 *)
8122 ;;
8123 esac
8124 ;;
8125 esac
8126 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8127 _lt_dar_single_mod='$single_module'
8128 fi
8129 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8130 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8131 else
8132 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8133 fi
8134 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8135 _lt_dsymutil='~$DSYMUTIL $lib || :'
8136 else
8137 _lt_dsymutil=
8138 fi
8139 ;;
8140 esac
8141
8142 for ac_header in dlfcn.h
8143 do :
8144 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8145 "
8146 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8147 cat >>confdefs.h <<_ACEOF
8148 #define HAVE_DLFCN_H 1
8149 _ACEOF
8150
8151 fi
8152
8153 done
8154
8155
8156 ac_header_dirent=no
8157 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8158 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8160 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8161 if eval \${$as_ac_Header+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <sys/types.h>
8167 #include <$ac_hdr>
8168
8169 int
8170 main ()
8171 {
8172 if ((DIR *) 0)
8173 return 0;
8174 ;
8175 return 0;
8176 }
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"; then :
8179 eval "$as_ac_Header=yes"
8180 else
8181 eval "$as_ac_Header=no"
8182 fi
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 fi
8185 eval ac_res=\$$as_ac_Header
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8187 $as_echo "$ac_res" >&6; }
8188 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8191 _ACEOF
8192
8193 ac_header_dirent=$ac_hdr; break
8194 fi
8195
8196 done
8197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8198 if test $ac_header_dirent = dirent.h; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8200 $as_echo_n "checking for library containing opendir... " >&6; }
8201 if ${ac_cv_search_opendir+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 ac_func_search_save_LIBS=$LIBS
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207
8208 /* Override any GCC internal prototype to avoid an error.
8209 Use char because int might match the return type of a GCC
8210 builtin and then its argument prototype would still apply. */
8211 #ifdef __cplusplus
8212 extern "C"
8213 #endif
8214 char opendir ();
8215 int
8216 main ()
8217 {
8218 return opendir ();
8219 ;
8220 return 0;
8221 }
8222 _ACEOF
8223 for ac_lib in '' dir; do
8224 if test -z "$ac_lib"; then
8225 ac_res="none required"
8226 else
8227 ac_res=-l$ac_lib
8228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8229 fi
8230 if ac_fn_c_try_link "$LINENO"; then :
8231 ac_cv_search_opendir=$ac_res
8232 fi
8233 rm -f core conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext
8235 if ${ac_cv_search_opendir+:} false; then :
8236 break
8237 fi
8238 done
8239 if ${ac_cv_search_opendir+:} false; then :
8240
8241 else
8242 ac_cv_search_opendir=no
8243 fi
8244 rm conftest.$ac_ext
8245 LIBS=$ac_func_search_save_LIBS
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8248 $as_echo "$ac_cv_search_opendir" >&6; }
8249 ac_res=$ac_cv_search_opendir
8250 if test "$ac_res" != no; then :
8251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8252
8253 fi
8254
8255 else
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8257 $as_echo_n "checking for library containing opendir... " >&6; }
8258 if ${ac_cv_search_opendir+:} false; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 ac_func_search_save_LIBS=$LIBS
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264
8265 /* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 char opendir ();
8272 int
8273 main ()
8274 {
8275 return opendir ();
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 for ac_lib in '' x; do
8281 if test -z "$ac_lib"; then
8282 ac_res="none required"
8283 else
8284 ac_res=-l$ac_lib
8285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8286 fi
8287 if ac_fn_c_try_link "$LINENO"; then :
8288 ac_cv_search_opendir=$ac_res
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext
8292 if ${ac_cv_search_opendir+:} false; then :
8293 break
8294 fi
8295 done
8296 if ${ac_cv_search_opendir+:} false; then :
8297
8298 else
8299 ac_cv_search_opendir=no
8300 fi
8301 rm conftest.$ac_ext
8302 LIBS=$ac_func_search_save_LIBS
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8305 $as_echo "$ac_cv_search_opendir" >&6; }
8306 ac_res=$ac_cv_search_opendir
8307 if test "$ac_res" != no; then :
8308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309
8310 fi
8311
8312 fi
8313
8314
8315
8316
8317 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8318 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8319
8320 cat >>confdefs.h <<_ACEOF
8321 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8322 _ACEOF
8323
8324
8325 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8326
8327 fi
8328
8329
8330 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8331 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8332
8333 cat >>confdefs.h <<_ACEOF
8334 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8335 _ACEOF
8336
8337
8338 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8339
8340 else
8341 case " $LIBOBJS " in
8342 *" fileblocks.$ac_objext "* ) ;;
8343 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8344 ;;
8345 esac
8346
8347 fi
8348
8349
8350 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8351 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8352
8353 cat >>confdefs.h <<_ACEOF
8354 #define HAVE_STRUCT_STAT_ST_RDEV 1
8355 _ACEOF
8356
8357
8358 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8359
8360 fi
8361
8362
8363 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8364 #include <$ac_cv_struct_tm>
8365
8366 "
8367 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8368
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_STRUCT_TM_TM_ZONE 1
8371 _ACEOF
8372
8373
8374 fi
8375
8376 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8377
8378 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8379
8380 else
8381 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8382 "
8383 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8384 ac_have_decl=1
8385 else
8386 ac_have_decl=0
8387 fi
8388
8389 cat >>confdefs.h <<_ACEOF
8390 #define HAVE_DECL_TZNAME $ac_have_decl
8391 _ACEOF
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8394 $as_echo_n "checking for tzname... " >&6; }
8395 if ${ac_cv_var_tzname+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8400 #include <time.h>
8401 #if !HAVE_DECL_TZNAME
8402 extern char *tzname[];
8403 #endif
8404
8405 int
8406 main ()
8407 {
8408 return tzname[0][0];
8409 ;
8410 return 0;
8411 }
8412 _ACEOF
8413 if ac_fn_c_try_link "$LINENO"; then :
8414 ac_cv_var_tzname=yes
8415 else
8416 ac_cv_var_tzname=no
8417 fi
8418 rm -f core conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8422 $as_echo "$ac_cv_var_tzname" >&6; }
8423 if test $ac_cv_var_tzname = yes; then
8424
8425 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8426
8427 fi
8428 fi
8429
8430
8431 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8432 #include <sys/types.h>
8433 #endif
8434 #include <sys/stat.h>
8435 "
8436 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8437
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_STRUCT_STAT_ST_DEV 1
8440 _ACEOF
8441
8442
8443 fi
8444 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8445 #include <sys/types.h>
8446 #endif
8447 #include <sys/stat.h>
8448 "
8449 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8450
8451 cat >>confdefs.h <<_ACEOF
8452 #define HAVE_STRUCT_STAT_ST_INO 1
8453 _ACEOF
8454
8455
8456 fi
8457 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8458 #include <sys/types.h>
8459 #endif
8460 #include <sys/stat.h>
8461 "
8462 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8463
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_STRUCT_STAT_ST_MODE 1
8466 _ACEOF
8467
8468
8469 fi
8470 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8471 #include <sys/types.h>
8472 #endif
8473 #include <sys/stat.h>
8474 "
8475 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8476
8477 cat >>confdefs.h <<_ACEOF
8478 #define HAVE_STRUCT_STAT_ST_NLINK 1
8479 _ACEOF
8480
8481
8482 fi
8483 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8484 #include <sys/types.h>
8485 #endif
8486 #include <sys/stat.h>
8487 "
8488 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8489
8490 cat >>confdefs.h <<_ACEOF
8491 #define HAVE_STRUCT_STAT_ST_UID 1
8492 _ACEOF
8493
8494
8495 fi
8496 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8497 #include <sys/types.h>
8498 #endif
8499 #include <sys/stat.h>
8500 "
8501 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8502
8503 cat >>confdefs.h <<_ACEOF
8504 #define HAVE_STRUCT_STAT_ST_GID 1
8505 _ACEOF
8506
8507
8508 fi
8509 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8510 #include <sys/types.h>
8511 #endif
8512 #include <sys/stat.h>
8513 "
8514 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8515
8516 cat >>confdefs.h <<_ACEOF
8517 #define HAVE_STRUCT_STAT_ST_RDEV 1
8518 _ACEOF
8519
8520
8521 fi
8522 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8523 #include <sys/types.h>
8524 #endif
8525 #include <sys/stat.h>
8526 "
8527 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8528
8529 cat >>confdefs.h <<_ACEOF
8530 #define HAVE_STRUCT_STAT_ST_SIZE 1
8531 _ACEOF
8532
8533
8534 fi
8535 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8536 #include <sys/types.h>
8537 #endif
8538 #include <sys/stat.h>
8539 "
8540 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8541
8542 cat >>confdefs.h <<_ACEOF
8543 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8544 _ACEOF
8545
8546
8547 fi
8548 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8549 #include <sys/types.h>
8550 #endif
8551 #include <sys/stat.h>
8552 "
8553 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8554
8555 cat >>confdefs.h <<_ACEOF
8556 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8557 _ACEOF
8558
8559
8560 fi
8561 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8562 #include <sys/types.h>
8563 #endif
8564 #include <sys/stat.h>
8565 "
8566 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8567
8568 cat >>confdefs.h <<_ACEOF
8569 #define HAVE_STRUCT_STAT_ST_ATIME 1
8570 _ACEOF
8571
8572
8573 fi
8574 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8575 #include <sys/types.h>
8576 #endif
8577 #include <sys/stat.h>
8578 "
8579 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8580
8581 cat >>confdefs.h <<_ACEOF
8582 #define HAVE_STRUCT_STAT_ST_MTIME 1
8583 _ACEOF
8584
8585
8586 fi
8587 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8588 #include <sys/types.h>
8589 #endif
8590 #include <sys/stat.h>
8591 "
8592 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8593
8594 cat >>confdefs.h <<_ACEOF
8595 #define HAVE_STRUCT_STAT_ST_CTIME 1
8596 _ACEOF
8597
8598
8599 fi
8600
8601
8602 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8603 if test "x$ac_cv_type___int128" = xyes; then :
8604
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE___INT128 1
8607 _ACEOF
8608
8609
8610 fi
8611
8612 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8613 #include <sys/socket.h>
8614
8615 "
8616 if test "x$ac_cv_type_socklen_t" = xyes; then :
8617
8618 cat >>confdefs.h <<_ACEOF
8619 #define HAVE_SOCKLEN_T 1
8620 _ACEOF
8621
8622
8623 fi
8624
8625
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8627 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8628 if ${ac_cv_type_getgroups+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 if test "$cross_compiling" = yes; then :
8632 ac_cv_type_getgroups=cross
8633 else
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 /* Thanks to Mike Rendell for this test. */
8637 $ac_includes_default
8638 #define NGID 256
8639 #undef MAX
8640 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8641
8642 int
8643 main ()
8644 {
8645 gid_t gidset[NGID];
8646 int i, n;
8647 union { gid_t gval; long int lval; } val;
8648
8649 val.lval = -1;
8650 for (i = 0; i < NGID; i++)
8651 gidset[i] = val.gval;
8652 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8653 gidset);
8654 /* Exit non-zero if getgroups seems to require an array of ints. This
8655 happens when gid_t is short int but getgroups modifies an array
8656 of ints. */
8657 return n > 0 && gidset[n] != val.gval;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_run "$LINENO"; then :
8661 ac_cv_type_getgroups=gid_t
8662 else
8663 ac_cv_type_getgroups=int
8664 fi
8665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8666 conftest.$ac_objext conftest.beam conftest.$ac_ext
8667 fi
8668
8669 if test $ac_cv_type_getgroups = cross; then
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 #include <unistd.h>
8673
8674 _ACEOF
8675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8676 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8677 ac_cv_type_getgroups=gid_t
8678 else
8679 ac_cv_type_getgroups=int
8680 fi
8681 rm -f conftest*
8682
8683 fi
8684 fi
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8686 $as_echo "$ac_cv_type_getgroups" >&6; }
8687
8688 cat >>confdefs.h <<_ACEOF
8689 #define GETGROUPS_T $ac_cv_type_getgroups
8690 _ACEOF
8691
8692
8693 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8694 if test "x$ac_cv_type_mode_t" = xyes; then :
8695
8696 else
8697
8698 cat >>confdefs.h <<_ACEOF
8699 #define mode_t int
8700 _ACEOF
8701
8702 fi
8703
8704 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8705 if test "x$ac_cv_type_off_t" = xyes; then :
8706
8707 else
8708
8709 cat >>confdefs.h <<_ACEOF
8710 #define off_t long int
8711 _ACEOF
8712
8713 fi
8714
8715 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8716 if test "x$ac_cv_type_pid_t" = xyes; then :
8717
8718 else
8719
8720 cat >>confdefs.h <<_ACEOF
8721 #define pid_t int
8722 _ACEOF
8723
8724 fi
8725
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8727 $as_echo_n "checking return type of signal handlers... " >&6; }
8728 if ${ac_cv_type_signal+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <sys/types.h>
8734 #include <signal.h>
8735
8736 int
8737 main ()
8738 {
8739 return *(signal (0, 0)) (0) == 1;
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_compile "$LINENO"; then :
8745 ac_cv_type_signal=int
8746 else
8747 ac_cv_type_signal=void
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8752 $as_echo "$ac_cv_type_signal" >&6; }
8753
8754 cat >>confdefs.h <<_ACEOF
8755 #define RETSIGTYPE $ac_cv_type_signal
8756 _ACEOF
8757
8758
8759 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8760 if test "x$ac_cv_type_size_t" = xyes; then :
8761
8762 else
8763
8764 cat >>confdefs.h <<_ACEOF
8765 #define size_t unsigned int
8766 _ACEOF
8767
8768 fi
8769
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8771 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8772 if ${ac_cv_type_uid_t+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8777 #include <sys/types.h>
8778
8779 _ACEOF
8780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8781 $EGREP "uid_t" >/dev/null 2>&1; then :
8782 ac_cv_type_uid_t=yes
8783 else
8784 ac_cv_type_uid_t=no
8785 fi
8786 rm -f conftest*
8787
8788 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8790 $as_echo "$ac_cv_type_uid_t" >&6; }
8791 if test $ac_cv_type_uid_t = no; then
8792
8793 $as_echo "#define uid_t int" >>confdefs.h
8794
8795
8796 $as_echo "#define gid_t int" >>confdefs.h
8797
8798 fi
8799
8800
8801
8802
8803
8804
8805 # Set options
8806
8807
8808
8809 enable_dlopen=no
8810
8811
8812 enable_win32_dll=no
8813
8814
8815 # Check whether --enable-shared was given.
8816 if test "${enable_shared+set}" = set; then :
8817 enableval=$enable_shared; p=${PACKAGE-default}
8818 case $enableval in
8819 yes) enable_shared=yes ;;
8820 no) enable_shared=no ;;
8821 *)
8822 enable_shared=no
8823 # Look at the argument we got. We use all the common list separators.
8824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8825 for pkg in $enableval; do
8826 IFS="$lt_save_ifs"
8827 if test "X$pkg" = "X$p"; then
8828 enable_shared=yes
8829 fi
8830 done
8831 IFS="$lt_save_ifs"
8832 ;;
8833 esac
8834 else
8835 enable_shared=yes
8836 fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846 # Check whether --enable-static was given.
8847 if test "${enable_static+set}" = set; then :
8848 enableval=$enable_static; p=${PACKAGE-default}
8849 case $enableval in
8850 yes) enable_static=yes ;;
8851 no) enable_static=no ;;
8852 *)
8853 enable_static=no
8854 # Look at the argument we got. We use all the common list separators.
8855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8856 for pkg in $enableval; do
8857 IFS="$lt_save_ifs"
8858 if test "X$pkg" = "X$p"; then
8859 enable_static=yes
8860 fi
8861 done
8862 IFS="$lt_save_ifs"
8863 ;;
8864 esac
8865 else
8866 enable_static=yes
8867 fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878 # Check whether --with-pic was given.
8879 if test "${with_pic+set}" = set; then :
8880 withval=$with_pic; pic_mode="$withval"
8881 else
8882 pic_mode=default
8883 fi
8884
8885
8886 test -z "$pic_mode" && pic_mode=default
8887
8888
8889
8890
8891
8892
8893
8894 # Check whether --enable-fast-install was given.
8895 if test "${enable_fast_install+set}" = set; then :
8896 enableval=$enable_fast_install; p=${PACKAGE-default}
8897 case $enableval in
8898 yes) enable_fast_install=yes ;;
8899 no) enable_fast_install=no ;;
8900 *)
8901 enable_fast_install=no
8902 # Look at the argument we got. We use all the common list separators.
8903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8904 for pkg in $enableval; do
8905 IFS="$lt_save_ifs"
8906 if test "X$pkg" = "X$p"; then
8907 enable_fast_install=yes
8908 fi
8909 done
8910 IFS="$lt_save_ifs"
8911 ;;
8912 esac
8913 else
8914 enable_fast_install=yes
8915 fi
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 # This can be used to rebuild libtool when needed
8928 LIBTOOL_DEPS="$ltmain"
8929
8930 # Always use our own libtool.
8931 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 test -z "$LN_S" && LN_S="ln -s"
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 if test -n "${ZSH_VERSION+set}" ; then
8974 setopt NO_GLOB_SUBST
8975 fi
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8978 $as_echo_n "checking for objdir... " >&6; }
8979 if ${lt_cv_objdir+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 rm -f .libs 2>/dev/null
8983 mkdir .libs 2>/dev/null
8984 if test -d .libs; then
8985 lt_cv_objdir=.libs
8986 else
8987 # MS-DOS does not allow filenames that begin with a dot.
8988 lt_cv_objdir=_libs
8989 fi
8990 rmdir .libs 2>/dev/null
8991 fi
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8993 $as_echo "$lt_cv_objdir" >&6; }
8994 objdir=$lt_cv_objdir
8995
8996
8997
8998
8999
9000 cat >>confdefs.h <<_ACEOF
9001 #define LT_OBJDIR "$lt_cv_objdir/"
9002 _ACEOF
9003
9004
9005
9006
9007 case $host_os in
9008 aix3*)
9009 # AIX sometimes has problems with the GCC collect2 program. For some
9010 # reason, if we set the COLLECT_NAMES environment variable, the problems
9011 # vanish in a puff of smoke.
9012 if test "X${COLLECT_NAMES+set}" != Xset; then
9013 COLLECT_NAMES=
9014 export COLLECT_NAMES
9015 fi
9016 ;;
9017 esac
9018
9019 # Global variables:
9020 ofile=libtool
9021 can_build_shared=yes
9022
9023 # All known linkers require a `.a' archive for static linking (except MSVC,
9024 # which needs '.lib').
9025 libext=a
9026
9027 with_gnu_ld="$lt_cv_prog_gnu_ld"
9028
9029 old_CC="$CC"
9030 old_CFLAGS="$CFLAGS"
9031
9032 # Set sane defaults for various variables
9033 test -z "$CC" && CC=cc
9034 test -z "$LTCC" && LTCC=$CC
9035 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9036 test -z "$LD" && LD=ld
9037 test -z "$ac_objext" && ac_objext=o
9038
9039 for cc_temp in $compiler""; do
9040 case $cc_temp in
9041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9043 \-*) ;;
9044 *) break;;
9045 esac
9046 done
9047 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9048
9049
9050 # Only perform the check for file, if the check method requires it
9051 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9052 case $deplibs_check_method in
9053 file_magic*)
9054 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9056 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9057 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 case $MAGIC_CMD in
9061 [\\/*] | ?:[\\/]*)
9062 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9063 ;;
9064 *)
9065 lt_save_MAGIC_CMD="$MAGIC_CMD"
9066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9067 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9068 for ac_dir in $ac_dummy; do
9069 IFS="$lt_save_ifs"
9070 test -z "$ac_dir" && ac_dir=.
9071 if test -f $ac_dir/${ac_tool_prefix}file; then
9072 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9073 if test -n "$file_magic_test_file"; then
9074 case $deplibs_check_method in
9075 "file_magic "*)
9076 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9077 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9079 $EGREP "$file_magic_regex" > /dev/null; then
9080 :
9081 else
9082 cat <<_LT_EOF 1>&2
9083
9084 *** Warning: the command libtool uses to detect shared libraries,
9085 *** $file_magic_cmd, produces output that libtool cannot recognize.
9086 *** The result is that libtool may fail to recognize shared libraries
9087 *** as such. This will affect the creation of libtool libraries that
9088 *** depend on shared libraries, but programs linked with such libtool
9089 *** libraries will work regardless of this problem. Nevertheless, you
9090 *** may want to report the problem to your system manager and/or to
9091 *** bug-libtool@gnu.org
9092
9093 _LT_EOF
9094 fi ;;
9095 esac
9096 fi
9097 break
9098 fi
9099 done
9100 IFS="$lt_save_ifs"
9101 MAGIC_CMD="$lt_save_MAGIC_CMD"
9102 ;;
9103 esac
9104 fi
9105
9106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9107 if test -n "$MAGIC_CMD"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9109 $as_echo "$MAGIC_CMD" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115
9116
9117
9118
9119 if test -z "$lt_cv_path_MAGIC_CMD"; then
9120 if test -n "$ac_tool_prefix"; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9122 $as_echo_n "checking for file... " >&6; }
9123 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 case $MAGIC_CMD in
9127 [\\/*] | ?:[\\/]*)
9128 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9129 ;;
9130 *)
9131 lt_save_MAGIC_CMD="$MAGIC_CMD"
9132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9133 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9134 for ac_dir in $ac_dummy; do
9135 IFS="$lt_save_ifs"
9136 test -z "$ac_dir" && ac_dir=.
9137 if test -f $ac_dir/file; then
9138 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9139 if test -n "$file_magic_test_file"; then
9140 case $deplibs_check_method in
9141 "file_magic "*)
9142 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9145 $EGREP "$file_magic_regex" > /dev/null; then
9146 :
9147 else
9148 cat <<_LT_EOF 1>&2
9149
9150 *** Warning: the command libtool uses to detect shared libraries,
9151 *** $file_magic_cmd, produces output that libtool cannot recognize.
9152 *** The result is that libtool may fail to recognize shared libraries
9153 *** as such. This will affect the creation of libtool libraries that
9154 *** depend on shared libraries, but programs linked with such libtool
9155 *** libraries will work regardless of this problem. Nevertheless, you
9156 *** may want to report the problem to your system manager and/or to
9157 *** bug-libtool@gnu.org
9158
9159 _LT_EOF
9160 fi ;;
9161 esac
9162 fi
9163 break
9164 fi
9165 done
9166 IFS="$lt_save_ifs"
9167 MAGIC_CMD="$lt_save_MAGIC_CMD"
9168 ;;
9169 esac
9170 fi
9171
9172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9173 if test -n "$MAGIC_CMD"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9175 $as_echo "$MAGIC_CMD" >&6; }
9176 else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9179 fi
9180
9181
9182 else
9183 MAGIC_CMD=:
9184 fi
9185 fi
9186
9187 fi
9188 ;;
9189 esac
9190
9191 # Use C for the default configuration in the libtool script
9192
9193 lt_save_CC="$CC"
9194 ac_ext=c
9195 ac_cpp='$CPP $CPPFLAGS'
9196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9199
9200
9201 # Source file extension for C test sources.
9202 ac_ext=c
9203
9204 # Object file extension for compiled C test sources.
9205 objext=o
9206 objext=$objext
9207
9208 # Code to be used in simple compile tests
9209 lt_simple_compile_test_code="int some_variable = 0;"
9210
9211 # Code to be used in simple link tests
9212 lt_simple_link_test_code='int main(){return(0);}'
9213
9214
9215
9216
9217
9218
9219
9220 # If no C compiler was specified, use CC.
9221 LTCC=${LTCC-"$CC"}
9222
9223 # If no C compiler flags were specified, use CFLAGS.
9224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9225
9226 # Allow CC to be a program name with arguments.
9227 compiler=$CC
9228
9229 # Save the default compiler, since it gets overwritten when the other
9230 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9231 compiler_DEFAULT=$CC
9232
9233 # save warnings/boilerplate of simple test code
9234 ac_outfile=conftest.$ac_objext
9235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9237 _lt_compiler_boilerplate=`cat conftest.err`
9238 $RM conftest*
9239
9240 ac_outfile=conftest.$ac_objext
9241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9243 _lt_linker_boilerplate=`cat conftest.err`
9244 $RM -r conftest*
9245
9246
9247 ## CAVEAT EMPTOR:
9248 ## There is no encapsulation within the following macros, do not change
9249 ## the running order or otherwise move them around unless you know exactly
9250 ## what you are doing...
9251 if test -n "$compiler"; then
9252
9253 lt_prog_compiler_no_builtin_flag=
9254
9255 if test "$GCC" = yes; then
9256 case $cc_basename in
9257 nvcc*)
9258 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9259 *)
9260 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9261 esac
9262
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9264 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9265 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 lt_cv_prog_compiler_rtti_exceptions=no
9269 ac_outfile=conftest.$ac_objext
9270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9271 lt_compiler_flag="-fno-rtti -fno-exceptions"
9272 # Insert the option either (1) after the last *FLAGS variable, or
9273 # (2) before a word containing "conftest.", or (3) at the end.
9274 # Note that $ac_compile itself does not contain backslashes and begins
9275 # with a dollar sign (not a hyphen), so the echo should work correctly.
9276 # The option is referenced via a variable to avoid confusing sed.
9277 lt_compile=`echo "$ac_compile" | $SED \
9278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9280 -e 's:$: $lt_compiler_flag:'`
9281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9282 (eval "$lt_compile" 2>conftest.err)
9283 ac_status=$?
9284 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 if (exit $ac_status) && test -s "$ac_outfile"; then
9287 # The compiler can only warn and ignore the option if not recognized
9288 # So say no if there are warnings other than the usual output.
9289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9292 lt_cv_prog_compiler_rtti_exceptions=yes
9293 fi
9294 fi
9295 $RM conftest*
9296
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9299 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9300
9301 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9302 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9303 else
9304 :
9305 fi
9306
9307 fi
9308
9309
9310
9311
9312
9313
9314 lt_prog_compiler_wl=
9315 lt_prog_compiler_pic=
9316 lt_prog_compiler_static=
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9319 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9320
9321 if test "$GCC" = yes; then
9322 lt_prog_compiler_wl='-Wl,'
9323 lt_prog_compiler_static='-static'
9324
9325 case $host_os in
9326 aix*)
9327 # All AIX code is PIC.
9328 if test "$host_cpu" = ia64; then
9329 # AIX 5 now supports IA64 processor
9330 lt_prog_compiler_static='-Bstatic'
9331 fi
9332 lt_prog_compiler_pic='-fPIC'
9333 ;;
9334
9335 amigaos*)
9336 case $host_cpu in
9337 powerpc)
9338 # see comment about AmigaOS4 .so support
9339 lt_prog_compiler_pic='-fPIC'
9340 ;;
9341 m68k)
9342 # FIXME: we need at least 68020 code to build shared libraries, but
9343 # adding the `-m68020' flag to GCC prevents building anything better,
9344 # like `-m68040'.
9345 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9346 ;;
9347 esac
9348 ;;
9349
9350 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9351 # PIC is the default for these OSes.
9352 ;;
9353
9354 mingw* | cygwin* | pw32* | os2* | cegcc*)
9355 # This hack is so that the source file can tell whether it is being
9356 # built for inclusion in a dll (and should export symbols for example).
9357 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9358 # (--disable-auto-import) libraries
9359 lt_prog_compiler_pic='-DDLL_EXPORT'
9360 ;;
9361
9362 darwin* | rhapsody*)
9363 # PIC is the default on this platform
9364 # Common symbols not allowed in MH_DYLIB files
9365 lt_prog_compiler_pic='-fno-common'
9366 ;;
9367
9368 haiku*)
9369 # PIC is the default for Haiku.
9370 # The "-static" flag exists, but is broken.
9371 lt_prog_compiler_static=
9372 ;;
9373
9374 hpux*)
9375 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9376 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9377 # sets the default TLS model and affects inlining.
9378 case $host_cpu in
9379 hppa*64*)
9380 # +Z the default
9381 ;;
9382 *)
9383 lt_prog_compiler_pic='-fPIC'
9384 ;;
9385 esac
9386 ;;
9387
9388 interix[3-9]*)
9389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9390 # Instead, we relocate shared libraries at runtime.
9391 ;;
9392
9393 msdosdjgpp*)
9394 # Just because we use GCC doesn't mean we suddenly get shared libraries
9395 # on systems that don't support them.
9396 lt_prog_compiler_can_build_shared=no
9397 enable_shared=no
9398 ;;
9399
9400 *nto* | *qnx*)
9401 # QNX uses GNU C++, but need to define -shared option too, otherwise
9402 # it will coredump.
9403 lt_prog_compiler_pic='-fPIC -shared'
9404 ;;
9405
9406 sysv4*MP*)
9407 if test -d /usr/nec; then
9408 lt_prog_compiler_pic=-Kconform_pic
9409 fi
9410 ;;
9411
9412 *)
9413 lt_prog_compiler_pic='-fPIC'
9414 ;;
9415 esac
9416
9417 case $cc_basename in
9418 nvcc*) # Cuda Compiler Driver 2.2
9419 lt_prog_compiler_wl='-Xlinker '
9420 lt_prog_compiler_pic='-Xcompiler -fPIC'
9421 ;;
9422 esac
9423 else
9424 # PORTME Check for flag to pass linker flags through the system compiler.
9425 case $host_os in
9426 aix*)
9427 lt_prog_compiler_wl='-Wl,'
9428 if test "$host_cpu" = ia64; then
9429 # AIX 5 now supports IA64 processor
9430 lt_prog_compiler_static='-Bstatic'
9431 else
9432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9433 fi
9434 ;;
9435
9436 mingw* | cygwin* | pw32* | os2* | cegcc*)
9437 # This hack is so that the source file can tell whether it is being
9438 # built for inclusion in a dll (and should export symbols for example).
9439 lt_prog_compiler_pic='-DDLL_EXPORT'
9440 ;;
9441
9442 hpux9* | hpux10* | hpux11*)
9443 lt_prog_compiler_wl='-Wl,'
9444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9445 # not for PA HP-UX.
9446 case $host_cpu in
9447 hppa*64*|ia64*)
9448 # +Z the default
9449 ;;
9450 *)
9451 lt_prog_compiler_pic='+Z'
9452 ;;
9453 esac
9454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9455 lt_prog_compiler_static='${wl}-a ${wl}archive'
9456 ;;
9457
9458 irix5* | irix6* | nonstopux*)
9459 lt_prog_compiler_wl='-Wl,'
9460 # PIC (with -KPIC) is the default.
9461 lt_prog_compiler_static='-non_shared'
9462 ;;
9463
9464 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9465 case $cc_basename in
9466 # old Intel for x86_64 which still supported -KPIC.
9467 ecc*)
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-KPIC'
9470 lt_prog_compiler_static='-static'
9471 ;;
9472 # icc used to be incompatible with GCC.
9473 # ICC 10 doesn't accept -KPIC any more.
9474 icc* | ifort*)
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_pic='-fPIC'
9477 lt_prog_compiler_static='-static'
9478 ;;
9479 # Lahey Fortran 8.1.
9480 lf95*)
9481 lt_prog_compiler_wl='-Wl,'
9482 lt_prog_compiler_pic='--shared'
9483 lt_prog_compiler_static='--static'
9484 ;;
9485 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9486 # Portland Group compilers (*not* the Pentium gcc compiler,
9487 # which looks to be a dead project)
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-fpic'
9490 lt_prog_compiler_static='-Bstatic'
9491 ;;
9492 ccc*)
9493 lt_prog_compiler_wl='-Wl,'
9494 # All Alpha code is PIC.
9495 lt_prog_compiler_static='-non_shared'
9496 ;;
9497 xl* | bgxl* | bgf* | mpixl*)
9498 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9499 lt_prog_compiler_wl='-Wl,'
9500 lt_prog_compiler_pic='-qpic'
9501 lt_prog_compiler_static='-qstaticlink'
9502 ;;
9503 *)
9504 case `$CC -V 2>&1 | sed 5q` in
9505 *Sun\ F* | *Sun*Fortran*)
9506 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9507 lt_prog_compiler_pic='-KPIC'
9508 lt_prog_compiler_static='-Bstatic'
9509 lt_prog_compiler_wl=''
9510 ;;
9511 *Sun\ C*)
9512 # Sun C 5.9
9513 lt_prog_compiler_pic='-KPIC'
9514 lt_prog_compiler_static='-Bstatic'
9515 lt_prog_compiler_wl='-Wl,'
9516 ;;
9517 esac
9518 ;;
9519 esac
9520 ;;
9521
9522 newsos6)
9523 lt_prog_compiler_pic='-KPIC'
9524 lt_prog_compiler_static='-Bstatic'
9525 ;;
9526
9527 *nto* | *qnx*)
9528 # QNX uses GNU C++, but need to define -shared option too, otherwise
9529 # it will coredump.
9530 lt_prog_compiler_pic='-fPIC -shared'
9531 ;;
9532
9533 osf3* | osf4* | osf5*)
9534 lt_prog_compiler_wl='-Wl,'
9535 # All OSF/1 code is PIC.
9536 lt_prog_compiler_static='-non_shared'
9537 ;;
9538
9539 rdos*)
9540 lt_prog_compiler_static='-non_shared'
9541 ;;
9542
9543 solaris*)
9544 lt_prog_compiler_pic='-KPIC'
9545 lt_prog_compiler_static='-Bstatic'
9546 case $cc_basename in
9547 f77* | f90* | f95*)
9548 lt_prog_compiler_wl='-Qoption ld ';;
9549 *)
9550 lt_prog_compiler_wl='-Wl,';;
9551 esac
9552 ;;
9553
9554 sunos4*)
9555 lt_prog_compiler_wl='-Qoption ld '
9556 lt_prog_compiler_pic='-PIC'
9557 lt_prog_compiler_static='-Bstatic'
9558 ;;
9559
9560 sysv4 | sysv4.2uw2* | sysv4.3*)
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_pic='-KPIC'
9563 lt_prog_compiler_static='-Bstatic'
9564 ;;
9565
9566 sysv4*MP*)
9567 if test -d /usr/nec ;then
9568 lt_prog_compiler_pic='-Kconform_pic'
9569 lt_prog_compiler_static='-Bstatic'
9570 fi
9571 ;;
9572
9573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9574 lt_prog_compiler_wl='-Wl,'
9575 lt_prog_compiler_pic='-KPIC'
9576 lt_prog_compiler_static='-Bstatic'
9577 ;;
9578
9579 unicos*)
9580 lt_prog_compiler_wl='-Wl,'
9581 lt_prog_compiler_can_build_shared=no
9582 ;;
9583
9584 uts4*)
9585 lt_prog_compiler_pic='-pic'
9586 lt_prog_compiler_static='-Bstatic'
9587 ;;
9588
9589 *)
9590 lt_prog_compiler_can_build_shared=no
9591 ;;
9592 esac
9593 fi
9594
9595 case $host_os in
9596 # For platforms which do not support PIC, -DPIC is meaningless:
9597 *djgpp*)
9598 lt_prog_compiler_pic=
9599 ;;
9600 *)
9601 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9602 ;;
9603 esac
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9605 $as_echo "$lt_prog_compiler_pic" >&6; }
9606
9607
9608
9609
9610
9611
9612 #
9613 # Check to make sure the PIC flag actually works.
9614 #
9615 if test -n "$lt_prog_compiler_pic"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9618 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 lt_cv_prog_compiler_pic_works=no
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9624 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9625 # Insert the option either (1) after the last *FLAGS variable, or
9626 # (2) before a word containing "conftest.", or (3) at the end.
9627 # Note that $ac_compile itself does not contain backslashes and begins
9628 # with a dollar sign (not a hyphen), so the echo should work correctly.
9629 # The option is referenced via a variable to avoid confusing sed.
9630 lt_compile=`echo "$ac_compile" | $SED \
9631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9633 -e 's:$: $lt_compiler_flag:'`
9634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9635 (eval "$lt_compile" 2>conftest.err)
9636 ac_status=$?
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 if (exit $ac_status) && test -s "$ac_outfile"; then
9640 # The compiler can only warn and ignore the option if not recognized
9641 # So say no if there are warnings other than the usual output.
9642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9645 lt_cv_prog_compiler_pic_works=yes
9646 fi
9647 fi
9648 $RM conftest*
9649
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9652 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9653
9654 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9655 case $lt_prog_compiler_pic in
9656 "" | " "*) ;;
9657 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9658 esac
9659 else
9660 lt_prog_compiler_pic=
9661 lt_prog_compiler_can_build_shared=no
9662 fi
9663
9664 fi
9665
9666
9667
9668
9669
9670
9671 #
9672 # Check to make sure the static flag actually works.
9673 #
9674 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9676 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9677 if ${lt_cv_prog_compiler_static_works+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679 else
9680 lt_cv_prog_compiler_static_works=no
9681 save_LDFLAGS="$LDFLAGS"
9682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9683 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9685 # The linker can only warn and ignore the option if not recognized
9686 # So say no if there are warnings
9687 if test -s conftest.err; then
9688 # Append any errors to the config.log.
9689 cat conftest.err 1>&5
9690 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9692 if diff conftest.exp conftest.er2 >/dev/null; then
9693 lt_cv_prog_compiler_static_works=yes
9694 fi
9695 else
9696 lt_cv_prog_compiler_static_works=yes
9697 fi
9698 fi
9699 $RM -r conftest*
9700 LDFLAGS="$save_LDFLAGS"
9701
9702 fi
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9704 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9705
9706 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9707 :
9708 else
9709 lt_prog_compiler_static=
9710 fi
9711
9712
9713
9714
9715
9716
9717
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9719 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9720 if ${lt_cv_prog_compiler_c_o+:} false; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 lt_cv_prog_compiler_c_o=no
9724 $RM -r conftest 2>/dev/null
9725 mkdir conftest
9726 cd conftest
9727 mkdir out
9728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9729
9730 lt_compiler_flag="-o out/conftest2.$ac_objext"
9731 # Insert the option either (1) after the last *FLAGS variable, or
9732 # (2) before a word containing "conftest.", or (3) at the end.
9733 # Note that $ac_compile itself does not contain backslashes and begins
9734 # with a dollar sign (not a hyphen), so the echo should work correctly.
9735 lt_compile=`echo "$ac_compile" | $SED \
9736 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9737 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9738 -e 's:$: $lt_compiler_flag:'`
9739 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9740 (eval "$lt_compile" 2>out/conftest.err)
9741 ac_status=$?
9742 cat out/conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9745 then
9746 # The compiler can only warn and ignore the option if not recognized
9747 # So say no if there are warnings
9748 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9749 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9750 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9751 lt_cv_prog_compiler_c_o=yes
9752 fi
9753 fi
9754 chmod u+w . 2>&5
9755 $RM conftest*
9756 # SGI C++ compiler will create directory out/ii_files/ for
9757 # template instantiation
9758 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9759 $RM out/* && rmdir out
9760 cd ..
9761 $RM -r conftest
9762 $RM conftest*
9763
9764 fi
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9766 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9767
9768
9769
9770
9771
9772
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9774 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9775 if ${lt_cv_prog_compiler_c_o+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 lt_cv_prog_compiler_c_o=no
9779 $RM -r conftest 2>/dev/null
9780 mkdir conftest
9781 cd conftest
9782 mkdir out
9783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9784
9785 lt_compiler_flag="-o out/conftest2.$ac_objext"
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 lt_compile=`echo "$ac_compile" | $SED \
9791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9793 -e 's:$: $lt_compiler_flag:'`
9794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9795 (eval "$lt_compile" 2>out/conftest.err)
9796 ac_status=$?
9797 cat out/conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9800 then
9801 # The compiler can only warn and ignore the option if not recognized
9802 # So say no if there are warnings
9803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9804 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9805 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9806 lt_cv_prog_compiler_c_o=yes
9807 fi
9808 fi
9809 chmod u+w . 2>&5
9810 $RM conftest*
9811 # SGI C++ compiler will create directory out/ii_files/ for
9812 # template instantiation
9813 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9814 $RM out/* && rmdir out
9815 cd ..
9816 $RM -r conftest
9817 $RM conftest*
9818
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9821 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9822
9823
9824
9825
9826 hard_links="nottested"
9827 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9828 # do not overwrite the value of need_locks provided by the user
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9830 $as_echo_n "checking if we can lock with hard links... " >&6; }
9831 hard_links=yes
9832 $RM conftest*
9833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9834 touch conftest.a
9835 ln conftest.a conftest.b 2>&5 || hard_links=no
9836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9838 $as_echo "$hard_links" >&6; }
9839 if test "$hard_links" = no; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9841 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9842 need_locks=warn
9843 fi
9844 else
9845 need_locks=no
9846 fi
9847
9848
9849
9850
9851
9852
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9855
9856 runpath_var=
9857 allow_undefined_flag=
9858 always_export_symbols=no
9859 archive_cmds=
9860 archive_expsym_cmds=
9861 compiler_needs_object=no
9862 enable_shared_with_static_runtimes=no
9863 export_dynamic_flag_spec=
9864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9865 hardcode_automatic=no
9866 hardcode_direct=no
9867 hardcode_direct_absolute=no
9868 hardcode_libdir_flag_spec=
9869 hardcode_libdir_flag_spec_ld=
9870 hardcode_libdir_separator=
9871 hardcode_minus_L=no
9872 hardcode_shlibpath_var=unsupported
9873 inherit_rpath=no
9874 link_all_deplibs=unknown
9875 module_cmds=
9876 module_expsym_cmds=
9877 old_archive_from_new_cmds=
9878 old_archive_from_expsyms_cmds=
9879 thread_safe_flag_spec=
9880 whole_archive_flag_spec=
9881 # include_expsyms should be a list of space-separated symbols to be *always*
9882 # included in the symbol list
9883 include_expsyms=
9884 # exclude_expsyms can be an extended regexp of symbols to exclude
9885 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9886 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9887 # as well as any symbol that contains `d'.
9888 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9889 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9890 # platforms (ab)use it in PIC code, but their linkers get confused if
9891 # the symbol is explicitly referenced. Since portable code cannot
9892 # rely on this symbol name, it's probably fine to never include it in
9893 # preloaded symbol tables.
9894 # Exclude shared library initialization/finalization symbols.
9895 extract_expsyms_cmds=
9896
9897 case $host_os in
9898 cygwin* | mingw* | pw32* | cegcc*)
9899 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9900 # When not using gcc, we currently assume that we are using
9901 # Microsoft Visual C++.
9902 if test "$GCC" != yes; then
9903 with_gnu_ld=no
9904 fi
9905 ;;
9906 interix*)
9907 # we just hope/assume this is gcc and not c89 (= MSVC++)
9908 with_gnu_ld=yes
9909 ;;
9910 openbsd*)
9911 with_gnu_ld=no
9912 ;;
9913 esac
9914
9915 ld_shlibs=yes
9916
9917 # On some targets, GNU ld is compatible enough with the native linker
9918 # that we're better off using the native interface for both.
9919 lt_use_gnu_ld_interface=no
9920 if test "$with_gnu_ld" = yes; then
9921 case $host_os in
9922 aix*)
9923 # The AIX port of GNU ld has always aspired to compatibility
9924 # with the native linker. However, as the warning in the GNU ld
9925 # block says, versions before 2.19.5* couldn't really create working
9926 # shared libraries, regardless of the interface used.
9927 case `$LD -v 2>&1` in
9928 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9929 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9930 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9931 *)
9932 lt_use_gnu_ld_interface=yes
9933 ;;
9934 esac
9935 ;;
9936 *)
9937 lt_use_gnu_ld_interface=yes
9938 ;;
9939 esac
9940 fi
9941
9942 if test "$lt_use_gnu_ld_interface" = yes; then
9943 # If archive_cmds runs LD, not CC, wlarc should be empty
9944 wlarc='${wl}'
9945
9946 # Set some defaults for GNU ld with shared library support. These
9947 # are reset later if shared libraries are not supported. Putting them
9948 # here allows them to be overridden if necessary.
9949 runpath_var=LD_RUN_PATH
9950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951 export_dynamic_flag_spec='${wl}--export-dynamic'
9952 # ancient GNU ld didn't support --whole-archive et. al.
9953 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9955 else
9956 whole_archive_flag_spec=
9957 fi
9958 supports_anon_versioning=no
9959 case `$LD -v 2>&1` in
9960 *GNU\ gold*) supports_anon_versioning=yes ;;
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9964 *\ 2.11.*) ;; # other 2.11 versions
9965 *) supports_anon_versioning=yes ;;
9966 esac
9967
9968 # See if GNU ld supports shared libraries.
9969 case $host_os in
9970 aix[3-9]*)
9971 # On AIX/PPC, the GNU linker is very broken
9972 if test "$host_cpu" != ia64; then
9973 ld_shlibs=no
9974 cat <<_LT_EOF 1>&2
9975
9976 *** Warning: the GNU linker, at least up to release 2.19, is reported
9977 *** to be unable to reliably create shared libraries on AIX.
9978 *** Therefore, libtool is disabling shared libraries support. If you
9979 *** really care for shared libraries, you may want to install binutils
9980 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9981 *** You will then need to restart the configuration process.
9982
9983 _LT_EOF
9984 fi
9985 ;;
9986
9987 amigaos*)
9988 case $host_cpu in
9989 powerpc)
9990 # see comment about AmigaOS4 .so support
9991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992 archive_expsym_cmds=''
9993 ;;
9994 m68k)
9995 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)'
9996 hardcode_libdir_flag_spec='-L$libdir'
9997 hardcode_minus_L=yes
9998 ;;
9999 esac
10000 ;;
10001
10002 beos*)
10003 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10004 allow_undefined_flag=unsupported
10005 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10006 # support --undefined. This deserves some investigation. FIXME
10007 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008 else
10009 ld_shlibs=no
10010 fi
10011 ;;
10012
10013 cygwin* | mingw* | pw32* | cegcc*)
10014 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10015 # as there is no search path for DLLs.
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 export_dynamic_flag_spec='${wl}--export-all-symbols'
10018 allow_undefined_flag=unsupported
10019 always_export_symbols=no
10020 enable_shared_with_static_runtimes=yes
10021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10022
10023 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10025 # If the export-symbols file already is a .def file (1st line
10026 # is EXPORTS), use it as is; otherwise, prepend...
10027 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10028 cp $export_symbols $output_objdir/$soname.def;
10029 else
10030 echo EXPORTS > $output_objdir/$soname.def;
10031 cat $export_symbols >> $output_objdir/$soname.def;
10032 fi~
10033 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10034 else
10035 ld_shlibs=no
10036 fi
10037 ;;
10038
10039 haiku*)
10040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10041 link_all_deplibs=yes
10042 ;;
10043
10044 interix[3-9]*)
10045 hardcode_direct=no
10046 hardcode_shlibpath_var=no
10047 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10048 export_dynamic_flag_spec='${wl}-E'
10049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10050 # Instead, shared libraries are loaded at an image base (0x10000000 by
10051 # default) and relocated if they conflict, which is a slow very memory
10052 # consuming and fragmenting process. To avoid this, we pick a random,
10053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10056 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'
10057 ;;
10058
10059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10060 tmp_diet=no
10061 if test "$host_os" = linux-dietlibc; then
10062 case $cc_basename in
10063 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10064 esac
10065 fi
10066 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10067 && test "$tmp_diet" = no
10068 then
10069 tmp_addflag=' $pic_flag'
10070 tmp_sharedflag='-shared'
10071 case $cc_basename,$host_cpu in
10072 pgcc*) # Portland Group C compiler
10073 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'
10074 tmp_addflag=' $pic_flag'
10075 ;;
10076 pgf77* | pgf90* | pgf95* | pgfortran*)
10077 # Portland Group f77 and f90 compilers
10078 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'
10079 tmp_addflag=' $pic_flag -Mnomain' ;;
10080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10081 tmp_addflag=' -i_dynamic' ;;
10082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10083 tmp_addflag=' -i_dynamic -nofor_main' ;;
10084 ifc* | ifort*) # Intel Fortran compiler
10085 tmp_addflag=' -nofor_main' ;;
10086 lf95*) # Lahey Fortran 8.1
10087 whole_archive_flag_spec=
10088 tmp_sharedflag='--shared' ;;
10089 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10090 tmp_sharedflag='-qmkshrobj'
10091 tmp_addflag= ;;
10092 nvcc*) # Cuda Compiler Driver 2.2
10093 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'
10094 compiler_needs_object=yes
10095 ;;
10096 esac
10097 case `$CC -V 2>&1 | sed 5q` in
10098 *Sun\ C*) # Sun C 5.9
10099 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'
10100 compiler_needs_object=yes
10101 tmp_sharedflag='-G' ;;
10102 *Sun\ F*) # Sun Fortran 8.3
10103 tmp_sharedflag='-G' ;;
10104 esac
10105 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106
10107 if test "x$supports_anon_versioning" = xyes; then
10108 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10109 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10110 echo "local: *; };" >> $output_objdir/$libname.ver~
10111 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10112 fi
10113
10114 case $cc_basename in
10115 xlf* | bgf* | bgxlf* | mpixlf*)
10116 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10117 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10118 hardcode_libdir_flag_spec=
10119 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10120 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10121 if test "x$supports_anon_versioning" = xyes; then
10122 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10123 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10124 echo "local: *; };" >> $output_objdir/$libname.ver~
10125 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10126 fi
10127 ;;
10128 esac
10129 else
10130 ld_shlibs=no
10131 fi
10132 ;;
10133
10134 netbsd*)
10135 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10136 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10137 wlarc=
10138 else
10139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10141 fi
10142 ;;
10143
10144 solaris*)
10145 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10146 ld_shlibs=no
10147 cat <<_LT_EOF 1>&2
10148
10149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10150 *** create shared libraries on Solaris systems. Therefore, libtool
10151 *** is disabling shared libraries support. We urge you to upgrade GNU
10152 *** binutils to release 2.9.1 or newer. Another option is to modify
10153 *** your PATH or compiler configuration so that the native linker is
10154 *** used, and then restart.
10155
10156 _LT_EOF
10157 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10160 else
10161 ld_shlibs=no
10162 fi
10163 ;;
10164
10165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10166 case `$LD -v 2>&1` in
10167 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10168 ld_shlibs=no
10169 cat <<_LT_EOF 1>&2
10170
10171 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10172 *** reliably create shared libraries on SCO systems. Therefore, libtool
10173 *** is disabling shared libraries support. We urge you to upgrade GNU
10174 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10175 *** your PATH or compiler configuration so that the native linker is
10176 *** used, and then restart.
10177
10178 _LT_EOF
10179 ;;
10180 *)
10181 # For security reasons, it is highly recommended that you always
10182 # use absolute paths for naming shared libraries, and exclude the
10183 # DT_RUNPATH tag from executables and libraries. But doing so
10184 # requires that you compile everything twice, which is a pain.
10185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10189 else
10190 ld_shlibs=no
10191 fi
10192 ;;
10193 esac
10194 ;;
10195
10196 sunos4*)
10197 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10198 wlarc=
10199 hardcode_direct=yes
10200 hardcode_shlibpath_var=no
10201 ;;
10202
10203 *)
10204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207 else
10208 ld_shlibs=no
10209 fi
10210 ;;
10211 esac
10212
10213 if test "$ld_shlibs" = no; then
10214 runpath_var=
10215 hardcode_libdir_flag_spec=
10216 export_dynamic_flag_spec=
10217 whole_archive_flag_spec=
10218 fi
10219 else
10220 # PORTME fill in a description of your system's linker (not GNU ld)
10221 case $host_os in
10222 aix3*)
10223 allow_undefined_flag=unsupported
10224 always_export_symbols=yes
10225 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'
10226 # Note: this linker hardcodes the directories in LIBPATH if there
10227 # are no directories specified by -L.
10228 hardcode_minus_L=yes
10229 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10230 # Neither direct hardcoding nor static linking is supported with a
10231 # broken collect2.
10232 hardcode_direct=unsupported
10233 fi
10234 ;;
10235
10236 aix[4-9]*)
10237 if test "$host_cpu" = ia64; then
10238 # On IA64, the linker does run time linking by default, so we don't
10239 # have to do anything special.
10240 aix_use_runtimelinking=no
10241 exp_sym_flag='-Bexport'
10242 no_entry_flag=""
10243 else
10244 # If we're using GNU nm, then we don't want the "-C" option.
10245 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10246 # Also, AIX nm treats weak defined symbols like other global
10247 # defined symbols, whereas GNU nm marks them as "W".
10248 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10249 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'
10250 else
10251 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'
10252 fi
10253 aix_use_runtimelinking=no
10254
10255 # Test if we are trying to use run time linking or normal
10256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10257 # need to do runtime linking.
10258 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10259 for ld_flag in $LDFLAGS; do
10260 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10261 aix_use_runtimelinking=yes
10262 break
10263 fi
10264 done
10265 ;;
10266 esac
10267
10268 exp_sym_flag='-bexport'
10269 no_entry_flag='-bnoentry'
10270 fi
10271
10272 # When large executables or shared objects are built, AIX ld can
10273 # have problems creating the table of contents. If linking a library
10274 # or program results in "error TOC overflow" add -mminimal-toc to
10275 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10276 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10277
10278 archive_cmds=''
10279 hardcode_direct=yes
10280 hardcode_direct_absolute=yes
10281 hardcode_libdir_separator=':'
10282 link_all_deplibs=yes
10283 file_list_spec='${wl}-f,'
10284
10285 if test "$GCC" = yes; then
10286 case $host_os in aix4.[012]|aix4.[012].*)
10287 # We only want to do this on AIX 4.2 and lower, the check
10288 # below for broken collect2 doesn't work under 4.3+
10289 collect2name=`${CC} -print-prog-name=collect2`
10290 if test -f "$collect2name" &&
10291 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10292 then
10293 # We have reworked collect2
10294 :
10295 else
10296 # We have old collect2
10297 hardcode_direct=unsupported
10298 # It fails to find uninstalled libraries when the uninstalled
10299 # path is not listed in the libpath. Setting hardcode_minus_L
10300 # to unsupported forces relinking
10301 hardcode_minus_L=yes
10302 hardcode_libdir_flag_spec='-L$libdir'
10303 hardcode_libdir_separator=
10304 fi
10305 ;;
10306 esac
10307 shared_flag='-shared'
10308 if test "$aix_use_runtimelinking" = yes; then
10309 shared_flag="$shared_flag "'${wl}-G'
10310 fi
10311 else
10312 # not using gcc
10313 if test "$host_cpu" = ia64; then
10314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10315 # chokes on -Wl,-G. The following line is correct:
10316 shared_flag='-G'
10317 else
10318 if test "$aix_use_runtimelinking" = yes; then
10319 shared_flag='${wl}-G'
10320 else
10321 shared_flag='${wl}-bM:SRE'
10322 fi
10323 fi
10324 fi
10325
10326 export_dynamic_flag_spec='${wl}-bexpall'
10327 # It seems that -bexpall does not export symbols beginning with
10328 # underscore (_), so it is better to generate a list of symbols to export.
10329 always_export_symbols=yes
10330 if test "$aix_use_runtimelinking" = yes; then
10331 # Warning - without using the other runtime loading flags (-brtl),
10332 # -berok will link without error, but may produce a broken library.
10333 allow_undefined_flag='-berok'
10334 # Determine the default libpath from the value encoded in an
10335 # empty executable.
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338
10339 int
10340 main ()
10341 {
10342
10343 ;
10344 return 0;
10345 }
10346 _ACEOF
10347 if ac_fn_c_try_link "$LINENO"; then :
10348
10349 lt_aix_libpath_sed='
10350 /Import File Strings/,/^$/ {
10351 /^0/ {
10352 s/^0 *\(.*\)$/\1/
10353 p
10354 }
10355 }'
10356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10357 # Check for a 64-bit object if we didn't find anything.
10358 if test -z "$aix_libpath"; then
10359 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10360 fi
10361 fi
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10365
10366 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10367 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"
10368 else
10369 if test "$host_cpu" = ia64; then
10370 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10371 allow_undefined_flag="-z nodefs"
10372 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"
10373 else
10374 # Determine the default libpath from the value encoded in an
10375 # empty executable.
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378
10379 int
10380 main ()
10381 {
10382
10383 ;
10384 return 0;
10385 }
10386 _ACEOF
10387 if ac_fn_c_try_link "$LINENO"; then :
10388
10389 lt_aix_libpath_sed='
10390 /Import File Strings/,/^$/ {
10391 /^0/ {
10392 s/^0 *\(.*\)$/\1/
10393 p
10394 }
10395 }'
10396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10397 # Check for a 64-bit object if we didn't find anything.
10398 if test -z "$aix_libpath"; then
10399 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10400 fi
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10405
10406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10407 # Warning - without using the other run time loading flags,
10408 # -berok will link without error, but may produce a broken library.
10409 no_undefined_flag=' ${wl}-bernotok'
10410 allow_undefined_flag=' ${wl}-berok'
10411 if test "$with_gnu_ld" = yes; then
10412 # We only use this code for GNU lds that support --whole-archive.
10413 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10414 else
10415 # Exported symbols can be pulled into shared objects from archives
10416 whole_archive_flag_spec='$convenience'
10417 fi
10418 archive_cmds_need_lc=yes
10419 # This is similar to how AIX traditionally builds its shared libraries.
10420 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'
10421 fi
10422 fi
10423 ;;
10424
10425 amigaos*)
10426 case $host_cpu in
10427 powerpc)
10428 # see comment about AmigaOS4 .so support
10429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10430 archive_expsym_cmds=''
10431 ;;
10432 m68k)
10433 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)'
10434 hardcode_libdir_flag_spec='-L$libdir'
10435 hardcode_minus_L=yes
10436 ;;
10437 esac
10438 ;;
10439
10440 bsdi[45]*)
10441 export_dynamic_flag_spec=-rdynamic
10442 ;;
10443
10444 cygwin* | mingw* | pw32* | cegcc*)
10445 # When not using gcc, we currently assume that we are using
10446 # Microsoft Visual C++.
10447 # hardcode_libdir_flag_spec is actually meaningless, as there is
10448 # no search path for DLLs.
10449 hardcode_libdir_flag_spec=' '
10450 allow_undefined_flag=unsupported
10451 # Tell ltmain to make .lib files, not .a files.
10452 libext=lib
10453 # Tell ltmain to make .dll files, not .so files.
10454 shrext_cmds=".dll"
10455 # FIXME: Setting linknames here is a bad hack.
10456 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10457 # The linker will automatically build a .lib file if we build a DLL.
10458 old_archive_from_new_cmds='true'
10459 # FIXME: Should let the user specify the lib program.
10460 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10461 fix_srcfile_path='`cygpath -w "$srcfile"`'
10462 enable_shared_with_static_runtimes=yes
10463 ;;
10464
10465 darwin* | rhapsody*)
10466
10467
10468 archive_cmds_need_lc=no
10469 hardcode_direct=no
10470 hardcode_automatic=yes
10471 hardcode_shlibpath_var=unsupported
10472 if test "$lt_cv_ld_force_load" = "yes"; then
10473 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\"`'
10474 else
10475 whole_archive_flag_spec=''
10476 fi
10477 link_all_deplibs=yes
10478 allow_undefined_flag="$_lt_dar_allow_undefined"
10479 case $cc_basename in
10480 ifort*) _lt_dar_can_shared=yes ;;
10481 *) _lt_dar_can_shared=$GCC ;;
10482 esac
10483 if test "$_lt_dar_can_shared" = "yes"; then
10484 output_verbose_link_cmd=func_echo_all
10485 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10486 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10487 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}"
10488 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}"
10489
10490 else
10491 ld_shlibs=no
10492 fi
10493
10494 ;;
10495
10496 dgux*)
10497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10498 hardcode_libdir_flag_spec='-L$libdir'
10499 hardcode_shlibpath_var=no
10500 ;;
10501
10502 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10503 # support. Future versions do this automatically, but an explicit c++rt0.o
10504 # does not break anything, and helps significantly (at the cost of a little
10505 # extra space).
10506 freebsd2.2*)
10507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10508 hardcode_libdir_flag_spec='-R$libdir'
10509 hardcode_direct=yes
10510 hardcode_shlibpath_var=no
10511 ;;
10512
10513 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10514 freebsd2.*)
10515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10516 hardcode_direct=yes
10517 hardcode_minus_L=yes
10518 hardcode_shlibpath_var=no
10519 ;;
10520
10521 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10522 freebsd* | dragonfly*)
10523 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10524 hardcode_libdir_flag_spec='-R$libdir'
10525 hardcode_direct=yes
10526 hardcode_shlibpath_var=no
10527 ;;
10528
10529 hpux9*)
10530 if test "$GCC" = yes; then
10531 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'
10532 else
10533 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'
10534 fi
10535 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10536 hardcode_libdir_separator=:
10537 hardcode_direct=yes
10538
10539 # hardcode_minus_L: Not really in the search PATH,
10540 # but as the default location of the library.
10541 hardcode_minus_L=yes
10542 export_dynamic_flag_spec='${wl}-E'
10543 ;;
10544
10545 hpux10*)
10546 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10547 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10548 else
10549 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10550 fi
10551 if test "$with_gnu_ld" = no; then
10552 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10553 hardcode_libdir_flag_spec_ld='+b $libdir'
10554 hardcode_libdir_separator=:
10555 hardcode_direct=yes
10556 hardcode_direct_absolute=yes
10557 export_dynamic_flag_spec='${wl}-E'
10558 # hardcode_minus_L: Not really in the search PATH,
10559 # but as the default location of the library.
10560 hardcode_minus_L=yes
10561 fi
10562 ;;
10563
10564 hpux11*)
10565 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10566 case $host_cpu in
10567 hppa*64*)
10568 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10569 ;;
10570 ia64*)
10571 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10572 ;;
10573 *)
10574 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10575 ;;
10576 esac
10577 else
10578 case $host_cpu in
10579 hppa*64*)
10580 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10581 ;;
10582 ia64*)
10583 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10584 ;;
10585 *)
10586
10587 # Older versions of the 11.00 compiler do not understand -b yet
10588 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10590 $as_echo_n "checking if $CC understands -b... " >&6; }
10591 if ${lt_cv_prog_compiler__b+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 lt_cv_prog_compiler__b=no
10595 save_LDFLAGS="$LDFLAGS"
10596 LDFLAGS="$LDFLAGS -b"
10597 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10598 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10599 # The linker can only warn and ignore the option if not recognized
10600 # So say no if there are warnings
10601 if test -s conftest.err; then
10602 # Append any errors to the config.log.
10603 cat conftest.err 1>&5
10604 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10606 if diff conftest.exp conftest.er2 >/dev/null; then
10607 lt_cv_prog_compiler__b=yes
10608 fi
10609 else
10610 lt_cv_prog_compiler__b=yes
10611 fi
10612 fi
10613 $RM -r conftest*
10614 LDFLAGS="$save_LDFLAGS"
10615
10616 fi
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10618 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10619
10620 if test x"$lt_cv_prog_compiler__b" = xyes; then
10621 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10622 else
10623 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10624 fi
10625
10626 ;;
10627 esac
10628 fi
10629 if test "$with_gnu_ld" = no; then
10630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10631 hardcode_libdir_separator=:
10632
10633 case $host_cpu in
10634 hppa*64*|ia64*)
10635 hardcode_direct=no
10636 hardcode_shlibpath_var=no
10637 ;;
10638 *)
10639 hardcode_direct=yes
10640 hardcode_direct_absolute=yes
10641 export_dynamic_flag_spec='${wl}-E'
10642
10643 # hardcode_minus_L: Not really in the search PATH,
10644 # but as the default location of the library.
10645 hardcode_minus_L=yes
10646 ;;
10647 esac
10648 fi
10649 ;;
10650
10651 irix5* | irix6* | nonstopux*)
10652 if test "$GCC" = yes; then
10653 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'
10654 # Try to use the -exported_symbol ld option, if it does not
10655 # work, assume that -exports_file does not work either and
10656 # implicitly export all symbols.
10657 save_LDFLAGS="$LDFLAGS"
10658 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 int foo(void) {}
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 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'
10665
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LDFLAGS="$save_LDFLAGS"
10670 else
10671 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'
10672 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'
10673 fi
10674 archive_cmds_need_lc='no'
10675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10676 hardcode_libdir_separator=:
10677 inherit_rpath=yes
10678 link_all_deplibs=yes
10679 ;;
10680
10681 netbsd*)
10682 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10684 else
10685 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10686 fi
10687 hardcode_libdir_flag_spec='-R$libdir'
10688 hardcode_direct=yes
10689 hardcode_shlibpath_var=no
10690 ;;
10691
10692 newsos6)
10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10694 hardcode_direct=yes
10695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10696 hardcode_libdir_separator=:
10697 hardcode_shlibpath_var=no
10698 ;;
10699
10700 *nto* | *qnx*)
10701 ;;
10702
10703 openbsd*)
10704 if test -f /usr/libexec/ld.so; then
10705 hardcode_direct=yes
10706 hardcode_shlibpath_var=no
10707 hardcode_direct_absolute=yes
10708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10710 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10712 export_dynamic_flag_spec='${wl}-E'
10713 else
10714 case $host_os in
10715 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_libdir_flag_spec='-R$libdir'
10718 ;;
10719 *)
10720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10722 ;;
10723 esac
10724 fi
10725 else
10726 ld_shlibs=no
10727 fi
10728 ;;
10729
10730 os2*)
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_minus_L=yes
10733 allow_undefined_flag=unsupported
10734 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'
10735 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10736 ;;
10737
10738 osf3*)
10739 if test "$GCC" = yes; then
10740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10741 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'
10742 else
10743 allow_undefined_flag=' -expect_unresolved \*'
10744 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'
10745 fi
10746 archive_cmds_need_lc='no'
10747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10748 hardcode_libdir_separator=:
10749 ;;
10750
10751 osf4* | osf5*) # as osf3* with the addition of -msym flag
10752 if test "$GCC" = yes; then
10753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10754 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'
10755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10756 else
10757 allow_undefined_flag=' -expect_unresolved \*'
10758 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'
10759 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~
10760 $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'
10761
10762 # Both c and cxx compiler support -rpath directly
10763 hardcode_libdir_flag_spec='-rpath $libdir'
10764 fi
10765 archive_cmds_need_lc='no'
10766 hardcode_libdir_separator=:
10767 ;;
10768
10769 solaris*)
10770 no_undefined_flag=' -z defs'
10771 if test "$GCC" = yes; then
10772 wlarc='${wl}'
10773 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10775 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10776 else
10777 case `$CC -V 2>&1` in
10778 *"Compilers 5.0"*)
10779 wlarc=''
10780 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10781 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10782 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10783 ;;
10784 *)
10785 wlarc='${wl}'
10786 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10787 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10788 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10789 ;;
10790 esac
10791 fi
10792 hardcode_libdir_flag_spec='-R$libdir'
10793 hardcode_shlibpath_var=no
10794 case $host_os in
10795 solaris2.[0-5] | solaris2.[0-5].*) ;;
10796 *)
10797 # The compiler driver will combine and reorder linker options,
10798 # but understands `-z linker_flag'. GCC discards it without `$wl',
10799 # but is careful enough not to reorder.
10800 # Supported since Solaris 2.6 (maybe 2.5.1?)
10801 if test "$GCC" = yes; then
10802 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10803 else
10804 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10805 fi
10806 ;;
10807 esac
10808 link_all_deplibs=yes
10809 ;;
10810
10811 sunos4*)
10812 if test "x$host_vendor" = xsequent; then
10813 # Use $CC to link under sequent, because it throws in some extra .o
10814 # files that make .init and .fini sections work.
10815 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10816 else
10817 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10818 fi
10819 hardcode_libdir_flag_spec='-L$libdir'
10820 hardcode_direct=yes
10821 hardcode_minus_L=yes
10822 hardcode_shlibpath_var=no
10823 ;;
10824
10825 sysv4)
10826 case $host_vendor in
10827 sni)
10828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_direct=yes # is this really true???
10830 ;;
10831 siemens)
10832 ## LD is ld it makes a PLAMLIB
10833 ## CC just makes a GrossModule.
10834 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10835 reload_cmds='$CC -r -o $output$reload_objs'
10836 hardcode_direct=no
10837 ;;
10838 motorola)
10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10841 ;;
10842 esac
10843 runpath_var='LD_RUN_PATH'
10844 hardcode_shlibpath_var=no
10845 ;;
10846
10847 sysv4.3*)
10848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_shlibpath_var=no
10850 export_dynamic_flag_spec='-Bexport'
10851 ;;
10852
10853 sysv4*MP*)
10854 if test -d /usr/nec; then
10855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10856 hardcode_shlibpath_var=no
10857 runpath_var=LD_RUN_PATH
10858 hardcode_runpath_var=yes
10859 ld_shlibs=yes
10860 fi
10861 ;;
10862
10863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10864 no_undefined_flag='${wl}-z,text'
10865 archive_cmds_need_lc=no
10866 hardcode_shlibpath_var=no
10867 runpath_var='LD_RUN_PATH'
10868
10869 if test "$GCC" = yes; then
10870 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10871 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 else
10873 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10874 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10875 fi
10876 ;;
10877
10878 sysv5* | sco3.2v5* | sco5v6*)
10879 # Note: We can NOT use -z defs as we might desire, because we do not
10880 # link with -lc, and that would cause any symbols used from libc to
10881 # always be unresolved, which means just about no library would
10882 # ever link correctly. If we're not using GNU ld we use -z text
10883 # though, which does catch some bad symbols but isn't as heavy-handed
10884 # as -z defs.
10885 no_undefined_flag='${wl}-z,text'
10886 allow_undefined_flag='${wl}-z,nodefs'
10887 archive_cmds_need_lc=no
10888 hardcode_shlibpath_var=no
10889 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10890 hardcode_libdir_separator=':'
10891 link_all_deplibs=yes
10892 export_dynamic_flag_spec='${wl}-Bexport'
10893 runpath_var='LD_RUN_PATH'
10894
10895 if test "$GCC" = yes; then
10896 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 else
10899 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10900 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 fi
10902 ;;
10903
10904 uts4*)
10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10906 hardcode_libdir_flag_spec='-L$libdir'
10907 hardcode_shlibpath_var=no
10908 ;;
10909
10910 *)
10911 ld_shlibs=no
10912 ;;
10913 esac
10914
10915 if test x$host_vendor = xsni; then
10916 case $host in
10917 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10918 export_dynamic_flag_spec='${wl}-Blargedynsym'
10919 ;;
10920 esac
10921 fi
10922 fi
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10925 $as_echo "$ld_shlibs" >&6; }
10926 test "$ld_shlibs" = no && can_build_shared=no
10927
10928 with_gnu_ld=$with_gnu_ld
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944 #
10945 # Do we need to explicitly link libc?
10946 #
10947 case "x$archive_cmds_need_lc" in
10948 x|xyes)
10949 # Assume -lc should be added
10950 archive_cmds_need_lc=yes
10951
10952 if test "$enable_shared" = yes && test "$GCC" = yes; then
10953 case $archive_cmds in
10954 *'~'*)
10955 # FIXME: we may have to deal with multi-command sequences.
10956 ;;
10957 '$CC '*)
10958 # Test whether the compiler implicitly links with -lc since on some
10959 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10960 # to ld, don't add -lc before -lgcc.
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10962 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10963 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10966 $RM conftest*
10967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10968
10969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10970 (eval $ac_compile) 2>&5
10971 ac_status=$?
10972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10973 test $ac_status = 0; } 2>conftest.err; then
10974 soname=conftest
10975 lib=conftest
10976 libobjs=conftest.$ac_objext
10977 deplibs=
10978 wl=$lt_prog_compiler_wl
10979 pic_flag=$lt_prog_compiler_pic
10980 compiler_flags=-v
10981 linker_flags=-v
10982 verstring=
10983 output_objdir=.
10984 libname=conftest
10985 lt_save_allow_undefined_flag=$allow_undefined_flag
10986 allow_undefined_flag=
10987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10988 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10989 ac_status=$?
10990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991 test $ac_status = 0; }
10992 then
10993 lt_cv_archive_cmds_need_lc=no
10994 else
10995 lt_cv_archive_cmds_need_lc=yes
10996 fi
10997 allow_undefined_flag=$lt_save_allow_undefined_flag
10998 else
10999 cat conftest.err 1>&5
11000 fi
11001 $RM conftest*
11002
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11005 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11006 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11007 ;;
11008 esac
11009 fi
11010 ;;
11011 esac
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11170 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11171
11172 if test "$GCC" = yes; then
11173 case $host_os in
11174 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11175 *) lt_awk_arg="/^libraries:/" ;;
11176 esac
11177 case $host_os in
11178 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11179 *) lt_sed_strip_eq="s,=/,/,g" ;;
11180 esac
11181 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11182 case $lt_search_path_spec in
11183 *\;*)
11184 # if the path contains ";" then we assume it to be the separator
11185 # otherwise default to the standard path separator (i.e. ":") - it is
11186 # assumed that no part of a normal pathname contains ";" but that should
11187 # okay in the real world where ";" in dirpaths is itself problematic.
11188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11189 ;;
11190 *)
11191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11192 ;;
11193 esac
11194 # Ok, now we have the path, separated by spaces, we can step through it
11195 # and add multilib dir if necessary.
11196 lt_tmp_lt_search_path_spec=
11197 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11198 for lt_sys_path in $lt_search_path_spec; do
11199 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11200 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11201 else
11202 test -d "$lt_sys_path" && \
11203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11204 fi
11205 done
11206 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11207 BEGIN {RS=" "; FS="/|\n";} {
11208 lt_foo="";
11209 lt_count=0;
11210 for (lt_i = NF; lt_i > 0; lt_i--) {
11211 if ($lt_i != "" && $lt_i != ".") {
11212 if ($lt_i == "..") {
11213 lt_count++;
11214 } else {
11215 if (lt_count == 0) {
11216 lt_foo="/" $lt_i lt_foo;
11217 } else {
11218 lt_count--;
11219 }
11220 }
11221 }
11222 }
11223 if (lt_foo != "") { lt_freq[lt_foo]++; }
11224 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11225 }'`
11226 # AWK program above erroneously prepends '/' to C:/dos/paths
11227 # for these hosts.
11228 case $host_os in
11229 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11230 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11231 esac
11232 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11233 else
11234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11235 fi
11236 library_names_spec=
11237 libname_spec='lib$name'
11238 soname_spec=
11239 shrext_cmds=".so"
11240 postinstall_cmds=
11241 postuninstall_cmds=
11242 finish_cmds=
11243 finish_eval=
11244 shlibpath_var=
11245 shlibpath_overrides_runpath=unknown
11246 version_type=none
11247 dynamic_linker="$host_os ld.so"
11248 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11249 need_lib_prefix=unknown
11250 hardcode_into_libs=no
11251
11252 # when you set need_version to no, make sure it does not cause -set_version
11253 # flags to be left without arguments
11254 need_version=unknown
11255
11256 case $host_os in
11257 aix3*)
11258 version_type=linux
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11260 shlibpath_var=LIBPATH
11261
11262 # AIX 3 has no versioning support, so we append a major version to the name.
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 ;;
11265
11266 aix[4-9]*)
11267 version_type=linux
11268 need_lib_prefix=no
11269 need_version=no
11270 hardcode_into_libs=yes
11271 if test "$host_cpu" = ia64; then
11272 # AIX 5 supports IA64
11273 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 else
11276 # With GCC up to 2.95.x, collect2 would create an import file
11277 # for dependence libraries. The import file would start with
11278 # the line `#! .'. This would cause the generated library to
11279 # depend on `.', always an invalid library. This was fixed in
11280 # development snapshots of GCC prior to 3.0.
11281 case $host_os in
11282 aix4 | aix4.[01] | aix4.[01].*)
11283 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11284 echo ' yes '
11285 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11286 :
11287 else
11288 can_build_shared=no
11289 fi
11290 ;;
11291 esac
11292 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11293 # soname into executable. Probably we can add versioning support to
11294 # collect2, so additional links can be useful in future.
11295 if test "$aix_use_runtimelinking" = yes; then
11296 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11297 # instead of lib<name>.a to let people know that these are not
11298 # typical AIX shared libraries.
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11300 else
11301 # We preserve .a as extension for shared libraries through AIX4.2
11302 # and later when we are not doing run time linking.
11303 library_names_spec='${libname}${release}.a $libname.a'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 fi
11306 shlibpath_var=LIBPATH
11307 fi
11308 ;;
11309
11310 amigaos*)
11311 case $host_cpu in
11312 powerpc)
11313 # Since July 2007 AmigaOS4 officially supports .so libraries.
11314 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 ;;
11317 m68k)
11318 library_names_spec='$libname.ixlibrary $libname.a'
11319 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11320 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'
11321 ;;
11322 esac
11323 ;;
11324
11325 beos*)
11326 library_names_spec='${libname}${shared_ext}'
11327 dynamic_linker="$host_os ld.so"
11328 shlibpath_var=LIBRARY_PATH
11329 ;;
11330
11331 bsdi[45]*)
11332 version_type=linux
11333 need_version=no
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335 soname_spec='${libname}${release}${shared_ext}$major'
11336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11340 # the default ld.so.conf also contains /usr/contrib/lib and
11341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11342 # libtool to hard-code these into programs
11343 ;;
11344
11345 cygwin* | mingw* | pw32* | cegcc*)
11346 version_type=windows
11347 shrext_cmds=".dll"
11348 need_version=no
11349 need_lib_prefix=no
11350
11351 case $GCC,$host_os in
11352 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11353 library_names_spec='$libname.dll.a'
11354 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11355 postinstall_cmds='base_file=`basename \${file}`~
11356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11357 dldir=$destdir/`dirname \$dlpath`~
11358 test -d \$dldir || mkdir -p \$dldir~
11359 $install_prog $dir/$dlname \$dldir/$dlname~
11360 chmod a+x \$dldir/$dlname~
11361 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11362 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11363 fi'
11364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11365 dlpath=$dir/\$dldll~
11366 $RM \$dlpath'
11367 shlibpath_overrides_runpath=yes
11368
11369 case $host_os in
11370 cygwin*)
11371 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11372 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11373
11374 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11375 ;;
11376 mingw* | cegcc*)
11377 # MinGW DLLs use traditional 'lib' prefix
11378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11379 ;;
11380 pw32*)
11381 # pw32 DLLs use 'pw' prefix rather than 'lib'
11382 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11383 ;;
11384 esac
11385 ;;
11386
11387 *)
11388 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11389 ;;
11390 esac
11391 dynamic_linker='Win32 ld.exe'
11392 # FIXME: first we should search . and the directory the executable is in
11393 shlibpath_var=PATH
11394 ;;
11395
11396 darwin* | rhapsody*)
11397 dynamic_linker="$host_os dyld"
11398 version_type=darwin
11399 need_lib_prefix=no
11400 need_version=no
11401 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11402 soname_spec='${libname}${release}${major}$shared_ext'
11403 shlibpath_overrides_runpath=yes
11404 shlibpath_var=DYLD_LIBRARY_PATH
11405 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11406
11407 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11409 ;;
11410
11411 dgux*)
11412 version_type=linux
11413 need_lib_prefix=no
11414 need_version=no
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11416 soname_spec='${libname}${release}${shared_ext}$major'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 ;;
11419
11420 freebsd* | dragonfly*)
11421 # DragonFly does not have aout. When/if they implement a new
11422 # versioning mechanism, adjust this.
11423 if test -x /usr/bin/objformat; then
11424 objformat=`/usr/bin/objformat`
11425 else
11426 case $host_os in
11427 freebsd[23].*) objformat=aout ;;
11428 *) objformat=elf ;;
11429 esac
11430 fi
11431 version_type=freebsd-$objformat
11432 case $version_type in
11433 freebsd-elf*)
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11435 need_version=no
11436 need_lib_prefix=no
11437 ;;
11438 freebsd-*)
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11440 need_version=yes
11441 ;;
11442 esac
11443 shlibpath_var=LD_LIBRARY_PATH
11444 case $host_os in
11445 freebsd2.*)
11446 shlibpath_overrides_runpath=yes
11447 ;;
11448 freebsd3.[01]* | freebsdelf3.[01]*)
11449 shlibpath_overrides_runpath=yes
11450 hardcode_into_libs=yes
11451 ;;
11452 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11453 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11454 shlibpath_overrides_runpath=no
11455 hardcode_into_libs=yes
11456 ;;
11457 *) # from 4.6 on, and DragonFly
11458 shlibpath_overrides_runpath=yes
11459 hardcode_into_libs=yes
11460 ;;
11461 esac
11462 ;;
11463
11464 haiku*)
11465 version_type=linux
11466 need_lib_prefix=no
11467 need_version=no
11468 dynamic_linker="$host_os runtime_loader"
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 shlibpath_var=LIBRARY_PATH
11472 shlibpath_overrides_runpath=yes
11473 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11474 hardcode_into_libs=yes
11475 ;;
11476
11477 hpux9* | hpux10* | hpux11*)
11478 # Give a soname corresponding to the major version so that dld.sl refuses to
11479 # link against other versions.
11480 version_type=sunos
11481 need_lib_prefix=no
11482 need_version=no
11483 case $host_cpu in
11484 ia64*)
11485 shrext_cmds='.so'
11486 hardcode_into_libs=yes
11487 dynamic_linker="$host_os dld.so"
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 soname_spec='${libname}${release}${shared_ext}$major'
11492 if test "X$HPUX_IA64_MODE" = X32; then
11493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11494 else
11495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11496 fi
11497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11498 ;;
11499 hppa*64*)
11500 shrext_cmds='.sl'
11501 hardcode_into_libs=yes
11502 dynamic_linker="$host_os dld.sl"
11503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11509 ;;
11510 *)
11511 shrext_cmds='.sl'
11512 dynamic_linker="$host_os dld.sl"
11513 shlibpath_var=SHLIB_PATH
11514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 soname_spec='${libname}${release}${shared_ext}$major'
11517 ;;
11518 esac
11519 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11520 postinstall_cmds='chmod 555 $lib'
11521 # or fails outright, so override atomically:
11522 install_override_mode=555
11523 ;;
11524
11525 interix[3-9]*)
11526 version_type=linux
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath=no
11534 hardcode_into_libs=yes
11535 ;;
11536
11537 irix5* | irix6* | nonstopux*)
11538 case $host_os in
11539 nonstopux*) version_type=nonstopux ;;
11540 *)
11541 if test "$lt_cv_prog_gnu_ld" = yes; then
11542 version_type=linux
11543 else
11544 version_type=irix
11545 fi ;;
11546 esac
11547 need_lib_prefix=no
11548 need_version=no
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11551 case $host_os in
11552 irix5* | nonstopux*)
11553 libsuff= shlibsuff=
11554 ;;
11555 *)
11556 case $LD in # libtool.m4 will add one of these switches to LD
11557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11558 libsuff= shlibsuff= libmagic=32-bit;;
11559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11560 libsuff=32 shlibsuff=N32 libmagic=N32;;
11561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11563 *) libsuff= shlibsuff= libmagic=never-match;;
11564 esac
11565 ;;
11566 esac
11567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11568 shlibpath_overrides_runpath=no
11569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11571 hardcode_into_libs=yes
11572 ;;
11573
11574 # No shared lib support for Linux oldld, aout, or coff.
11575 linux*oldld* | linux*aout* | linux*coff*)
11576 dynamic_linker=no
11577 ;;
11578
11579 # This must be Linux ELF.
11580
11581 # uclinux* changes (here and below) have been submitted to the libtool
11582 # project, but have not yet been accepted: they are GCC-local changes
11583 # for the time being. (See
11584 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11585 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11586 version_type=linux
11587 need_lib_prefix=no
11588 need_version=no
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 shlibpath_overrides_runpath=no
11594
11595 # Some binutils ld are patched to set DT_RUNPATH
11596 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 lt_cv_shlibpath_overrides_runpath=no
11600 save_LDFLAGS=$LDFLAGS
11601 save_libdir=$libdir
11602 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11603 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 int
11608 main ()
11609 {
11610
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_link "$LINENO"; then :
11616 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11617 lt_cv_shlibpath_overrides_runpath=yes
11618 fi
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
11622 LDFLAGS=$save_LDFLAGS
11623 libdir=$save_libdir
11624
11625 fi
11626
11627 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11628
11629 # This implies no fast_install, which is unacceptable.
11630 # Some rework will be needed to allow for fast_install
11631 # before this can be enabled.
11632 hardcode_into_libs=yes
11633
11634 # Append ld.so.conf contents to the search path
11635 if test -f /etc/ld.so.conf; then
11636 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' ' '`
11637 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11638 fi
11639
11640 # We used to test for /lib/ld.so.1 and disable shared libraries on
11641 # powerpc, because MkLinux only supported shared libraries with the
11642 # GNU dynamic linker. Since this was broken with cross compilers,
11643 # most powerpc-linux boxes support dynamic linking these days and
11644 # people can always --disable-shared, the test was removed, and we
11645 # assume the GNU/Linux dynamic linker is in use.
11646 dynamic_linker='GNU/Linux ld.so'
11647 ;;
11648
11649 netbsd*)
11650 version_type=sunos
11651 need_lib_prefix=no
11652 need_version=no
11653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 dynamic_linker='NetBSD (a.out) ld.so'
11657 else
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11659 soname_spec='${libname}${release}${shared_ext}$major'
11660 dynamic_linker='NetBSD ld.elf_so'
11661 fi
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=yes
11664 hardcode_into_libs=yes
11665 ;;
11666
11667 newsos6)
11668 version_type=linux
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath=yes
11672 ;;
11673
11674 *nto* | *qnx*)
11675 version_type=qnx
11676 need_lib_prefix=no
11677 need_version=no
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=no
11682 hardcode_into_libs=yes
11683 dynamic_linker='ldqnx.so'
11684 ;;
11685
11686 openbsd*)
11687 version_type=sunos
11688 sys_lib_dlsearch_path_spec="/usr/lib"
11689 need_lib_prefix=no
11690 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11691 case $host_os in
11692 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11693 *) need_version=no ;;
11694 esac
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11699 case $host_os in
11700 openbsd2.[89] | openbsd2.[89].*)
11701 shlibpath_overrides_runpath=no
11702 ;;
11703 *)
11704 shlibpath_overrides_runpath=yes
11705 ;;
11706 esac
11707 else
11708 shlibpath_overrides_runpath=yes
11709 fi
11710 ;;
11711
11712 os2*)
11713 libname_spec='$name'
11714 shrext_cmds=".dll"
11715 need_lib_prefix=no
11716 library_names_spec='$libname${shared_ext} $libname.a'
11717 dynamic_linker='OS/2 ld.exe'
11718 shlibpath_var=LIBPATH
11719 ;;
11720
11721 osf3* | osf4* | osf5*)
11722 version_type=osf
11723 need_lib_prefix=no
11724 need_version=no
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11729 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11730 ;;
11731
11732 rdos*)
11733 dynamic_linker=no
11734 ;;
11735
11736 solaris*)
11737 version_type=linux
11738 need_lib_prefix=no
11739 need_version=no
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11741 soname_spec='${libname}${release}${shared_ext}$major'
11742 shlibpath_var=LD_LIBRARY_PATH
11743 shlibpath_overrides_runpath=yes
11744 hardcode_into_libs=yes
11745 # ldd complains unless libraries are executable
11746 postinstall_cmds='chmod +x $lib'
11747 ;;
11748
11749 sunos4*)
11750 version_type=sunos
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11753 shlibpath_var=LD_LIBRARY_PATH
11754 shlibpath_overrides_runpath=yes
11755 if test "$with_gnu_ld" = yes; then
11756 need_lib_prefix=no
11757 fi
11758 need_version=yes
11759 ;;
11760
11761 sysv4 | sysv4.3*)
11762 version_type=linux
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 case $host_vendor in
11767 sni)
11768 shlibpath_overrides_runpath=no
11769 need_lib_prefix=no
11770 runpath_var=LD_RUN_PATH
11771 ;;
11772 siemens)
11773 need_lib_prefix=no
11774 ;;
11775 motorola)
11776 need_lib_prefix=no
11777 need_version=no
11778 shlibpath_overrides_runpath=no
11779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11780 ;;
11781 esac
11782 ;;
11783
11784 sysv4*MP*)
11785 if test -d /usr/nec ;then
11786 version_type=linux
11787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11788 soname_spec='$libname${shared_ext}.$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 fi
11791 ;;
11792
11793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11794 version_type=freebsd-elf
11795 need_lib_prefix=no
11796 need_version=no
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11801 hardcode_into_libs=yes
11802 if test "$with_gnu_ld" = yes; then
11803 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11804 else
11805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11806 case $host_os in
11807 sco3.2v5*)
11808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11809 ;;
11810 esac
11811 fi
11812 sys_lib_dlsearch_path_spec='/usr/lib'
11813 ;;
11814
11815 tpf*)
11816 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11817 version_type=linux
11818 need_lib_prefix=no
11819 need_version=no
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=no
11823 hardcode_into_libs=yes
11824 ;;
11825
11826 uts4*)
11827 version_type=linux
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829 soname_spec='${libname}${release}${shared_ext}$major'
11830 shlibpath_var=LD_LIBRARY_PATH
11831 ;;
11832
11833 # Shared libraries for VwWorks, >= 7 only at this stage
11834 # and (fpic) still incompatible with "large" code models
11835 # in a few configurations. Only for RTP mode in any case,
11836 # and upon explicit request at configure time.
11837 vxworks7*)
11838 dynamic_linker=no
11839 case ${with_multisubdir}-${enable_shared} in
11840 *large*)
11841 ;;
11842 *mrtp*-yes)
11843 version_type=linux
11844 need_lib_prefix=no
11845 need_version=no
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847 soname_spec='${libname}${release}${shared_ext}$major'
11848 dynamic_linker="$host_os module_loader"
11849 ;;
11850 esac
11851 ;;
11852 *)
11853 dynamic_linker=no
11854 ;;
11855 esac
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11857 $as_echo "$dynamic_linker" >&6; }
11858 test "$dynamic_linker" = no && can_build_shared=no
11859
11860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11861 if test "$GCC" = yes; then
11862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11863 fi
11864
11865 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11866 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11867 fi
11868 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11869 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11870 fi
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11965 hardcode_action=
11966 if test -n "$hardcode_libdir_flag_spec" ||
11967 test -n "$runpath_var" ||
11968 test "X$hardcode_automatic" = "Xyes" ; then
11969
11970 # We can hardcode non-existent directories.
11971 if test "$hardcode_direct" != no &&
11972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11973 # have to relink, otherwise we might link with an installed library
11974 # when we should be linking with a yet-to-be-installed one
11975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11976 test "$hardcode_minus_L" != no; then
11977 # Linking always hardcodes the temporary library directory.
11978 hardcode_action=relink
11979 else
11980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11981 hardcode_action=immediate
11982 fi
11983 else
11984 # We cannot hardcode anything, or else we can only hardcode existing
11985 # directories.
11986 hardcode_action=unsupported
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11989 $as_echo "$hardcode_action" >&6; }
11990
11991 if test "$hardcode_action" = relink ||
11992 test "$inherit_rpath" = yes; then
11993 # Fast installation is not supported
11994 enable_fast_install=no
11995 elif test "$shlibpath_overrides_runpath" = yes ||
11996 test "$enable_shared" = no; then
11997 # Fast installation is not necessary
11998 enable_fast_install=needless
11999 fi
12000
12001
12002
12003
12004
12005
12006 if test "x$enable_dlopen" != xyes; then
12007 enable_dlopen=unknown
12008 enable_dlopen_self=unknown
12009 enable_dlopen_self_static=unknown
12010 else
12011 lt_cv_dlopen=no
12012 lt_cv_dlopen_libs=
12013
12014 case $host_os in
12015 beos*)
12016 lt_cv_dlopen="load_add_on"
12017 lt_cv_dlopen_libs=
12018 lt_cv_dlopen_self=yes
12019 ;;
12020
12021 mingw* | pw32* | cegcc*)
12022 lt_cv_dlopen="LoadLibrary"
12023 lt_cv_dlopen_libs=
12024 ;;
12025
12026 cygwin*)
12027 lt_cv_dlopen="dlopen"
12028 lt_cv_dlopen_libs=
12029 ;;
12030
12031 darwin*)
12032 # if libdl is installed we need to link against it
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12034 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12035 if ${ac_cv_lib_dl_dlopen+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-ldl $LIBS"
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
12042
12043 /* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 char dlopen ();
12050 int
12051 main ()
12052 {
12053 return dlopen ();
12054 ;
12055 return 0;
12056 }
12057 _ACEOF
12058 if ac_fn_c_try_link "$LINENO"; then :
12059 ac_cv_lib_dl_dlopen=yes
12060 else
12061 ac_cv_lib_dl_dlopen=no
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12066 fi
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12068 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12069 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12071 else
12072
12073 lt_cv_dlopen="dyld"
12074 lt_cv_dlopen_libs=
12075 lt_cv_dlopen_self=yes
12076
12077 fi
12078
12079 ;;
12080
12081 *)
12082 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12083 if test "x$ac_cv_func_shl_load" = xyes; then :
12084 lt_cv_dlopen="shl_load"
12085 else
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12087 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12088 if ${ac_cv_lib_dld_shl_load+:} false; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-ldld $LIBS"
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095
12096 /* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply. */
12099 #ifdef __cplusplus
12100 extern "C"
12101 #endif
12102 char shl_load ();
12103 int
12104 main ()
12105 {
12106 return shl_load ();
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 if ac_fn_c_try_link "$LINENO"; then :
12112 ac_cv_lib_dld_shl_load=yes
12113 else
12114 ac_cv_lib_dld_shl_load=no
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12121 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12122 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12124 else
12125 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12126 if test "x$ac_cv_func_dlopen" = xyes; then :
12127 lt_cv_dlopen="dlopen"
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12131 if ${ac_cv_lib_dl_dlopen+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-ldl $LIBS"
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138
12139 /* Override any GCC internal prototype to avoid an error.
12140 Use char because int might match the return type of a GCC
12141 builtin and then its argument prototype would still apply. */
12142 #ifdef __cplusplus
12143 extern "C"
12144 #endif
12145 char dlopen ();
12146 int
12147 main ()
12148 {
12149 return dlopen ();
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 if ac_fn_c_try_link "$LINENO"; then :
12155 ac_cv_lib_dl_dlopen=yes
12156 else
12157 ac_cv_lib_dl_dlopen=no
12158 fi
12159 rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12161 LIBS=$ac_check_lib_save_LIBS
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12169 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12170 if ${ac_cv_lib_svld_dlopen+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 ac_check_lib_save_LIBS=$LIBS
12174 LIBS="-lsvld $LIBS"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char dlopen ();
12185 int
12186 main ()
12187 {
12188 return dlopen ();
12189 ;
12190 return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_lib_svld_dlopen=yes
12195 else
12196 ac_cv_lib_svld_dlopen=no
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12203 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12204 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12208 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12209 if ${ac_cv_lib_dld_dld_link+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-ldld $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char dld_link ();
12224 int
12225 main ()
12226 {
12227 return dld_link ();
12228 ;
12229 return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_dld_dld_link=yes
12234 else
12235 ac_cv_lib_dld_dld_link=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12242 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12243 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12245 fi
12246
12247
12248 fi
12249
12250
12251 fi
12252
12253
12254 fi
12255
12256
12257 fi
12258
12259
12260 fi
12261
12262 ;;
12263 esac
12264
12265 if test "x$lt_cv_dlopen" != xno; then
12266 enable_dlopen=yes
12267 else
12268 enable_dlopen=no
12269 fi
12270
12271 case $lt_cv_dlopen in
12272 dlopen)
12273 save_CPPFLAGS="$CPPFLAGS"
12274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12275
12276 save_LDFLAGS="$LDFLAGS"
12277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12278
12279 save_LIBS="$LIBS"
12280 LIBS="$lt_cv_dlopen_libs $LIBS"
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12283 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12284 if ${lt_cv_dlopen_self+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 if test "$cross_compiling" = yes; then :
12288 lt_cv_dlopen_self=cross
12289 else
12290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12291 lt_status=$lt_dlunknown
12292 cat > conftest.$ac_ext <<_LT_EOF
12293 #line 12293 "configure"
12294 #include "confdefs.h"
12295
12296 #if HAVE_DLFCN_H
12297 #include <dlfcn.h>
12298 #endif
12299
12300 #include <stdio.h>
12301
12302 #ifdef RTLD_GLOBAL
12303 # define LT_DLGLOBAL RTLD_GLOBAL
12304 #else
12305 # ifdef DL_GLOBAL
12306 # define LT_DLGLOBAL DL_GLOBAL
12307 # else
12308 # define LT_DLGLOBAL 0
12309 # endif
12310 #endif
12311
12312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12313 find out it does not work in some platform. */
12314 #ifndef LT_DLLAZY_OR_NOW
12315 # ifdef RTLD_LAZY
12316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12317 # else
12318 # ifdef DL_LAZY
12319 # define LT_DLLAZY_OR_NOW DL_LAZY
12320 # else
12321 # ifdef RTLD_NOW
12322 # define LT_DLLAZY_OR_NOW RTLD_NOW
12323 # else
12324 # ifdef DL_NOW
12325 # define LT_DLLAZY_OR_NOW DL_NOW
12326 # else
12327 # define LT_DLLAZY_OR_NOW 0
12328 # endif
12329 # endif
12330 # endif
12331 # endif
12332 #endif
12333
12334 /* When -fvisbility=hidden is used, assume the code has been annotated
12335 correspondingly for the symbols needed. */
12336 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12337 void fnord () __attribute__((visibility("default")));
12338 #endif
12339
12340 void fnord () { int i=42; }
12341 int main ()
12342 {
12343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12344 int status = $lt_dlunknown;
12345
12346 if (self)
12347 {
12348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12349 else
12350 {
12351 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12352 else puts (dlerror ());
12353 }
12354 /* dlclose (self); */
12355 }
12356 else
12357 puts (dlerror ());
12358
12359 return status;
12360 }
12361 _LT_EOF
12362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12363 (eval $ac_link) 2>&5
12364 ac_status=$?
12365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12366 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12367 (./conftest; exit; ) >&5 2>/dev/null
12368 lt_status=$?
12369 case x$lt_status in
12370 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12371 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12372 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12373 esac
12374 else :
12375 # compilation failed
12376 lt_cv_dlopen_self=no
12377 fi
12378 fi
12379 rm -fr conftest*
12380
12381
12382 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12384 $as_echo "$lt_cv_dlopen_self" >&6; }
12385
12386 if test "x$lt_cv_dlopen_self" = xyes; then
12387 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12389 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12390 if ${lt_cv_dlopen_self_static+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if test "$cross_compiling" = yes; then :
12394 lt_cv_dlopen_self_static=cross
12395 else
12396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12397 lt_status=$lt_dlunknown
12398 cat > conftest.$ac_ext <<_LT_EOF
12399 #line 12399 "configure"
12400 #include "confdefs.h"
12401
12402 #if HAVE_DLFCN_H
12403 #include <dlfcn.h>
12404 #endif
12405
12406 #include <stdio.h>
12407
12408 #ifdef RTLD_GLOBAL
12409 # define LT_DLGLOBAL RTLD_GLOBAL
12410 #else
12411 # ifdef DL_GLOBAL
12412 # define LT_DLGLOBAL DL_GLOBAL
12413 # else
12414 # define LT_DLGLOBAL 0
12415 # endif
12416 #endif
12417
12418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12419 find out it does not work in some platform. */
12420 #ifndef LT_DLLAZY_OR_NOW
12421 # ifdef RTLD_LAZY
12422 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12423 # else
12424 # ifdef DL_LAZY
12425 # define LT_DLLAZY_OR_NOW DL_LAZY
12426 # else
12427 # ifdef RTLD_NOW
12428 # define LT_DLLAZY_OR_NOW RTLD_NOW
12429 # else
12430 # ifdef DL_NOW
12431 # define LT_DLLAZY_OR_NOW DL_NOW
12432 # else
12433 # define LT_DLLAZY_OR_NOW 0
12434 # endif
12435 # endif
12436 # endif
12437 # endif
12438 #endif
12439
12440 /* When -fvisbility=hidden is used, assume the code has been annotated
12441 correspondingly for the symbols needed. */
12442 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12443 void fnord () __attribute__((visibility("default")));
12444 #endif
12445
12446 void fnord () { int i=42; }
12447 int main ()
12448 {
12449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12450 int status = $lt_dlunknown;
12451
12452 if (self)
12453 {
12454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12455 else
12456 {
12457 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12458 else puts (dlerror ());
12459 }
12460 /* dlclose (self); */
12461 }
12462 else
12463 puts (dlerror ());
12464
12465 return status;
12466 }
12467 _LT_EOF
12468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12469 (eval $ac_link) 2>&5
12470 ac_status=$?
12471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12473 (./conftest; exit; ) >&5 2>/dev/null
12474 lt_status=$?
12475 case x$lt_status in
12476 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12477 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12478 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12479 esac
12480 else :
12481 # compilation failed
12482 lt_cv_dlopen_self_static=no
12483 fi
12484 fi
12485 rm -fr conftest*
12486
12487
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12490 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12491 fi
12492
12493 CPPFLAGS="$save_CPPFLAGS"
12494 LDFLAGS="$save_LDFLAGS"
12495 LIBS="$save_LIBS"
12496 ;;
12497 esac
12498
12499 case $lt_cv_dlopen_self in
12500 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12501 *) enable_dlopen_self=unknown ;;
12502 esac
12503
12504 case $lt_cv_dlopen_self_static in
12505 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12506 *) enable_dlopen_self_static=unknown ;;
12507 esac
12508 fi
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526 striplib=
12527 old_striplib=
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12529 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12530 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12531 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12532 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12534 $as_echo "yes" >&6; }
12535 else
12536 # FIXME - insert some real tests, host_os isn't really good enough
12537 case $host_os in
12538 darwin*)
12539 if test -n "$STRIP" ; then
12540 striplib="$STRIP -x"
12541 old_striplib="$STRIP -S"
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543 $as_echo "yes" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 fi
12548 ;;
12549 *)
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552 ;;
12553 esac
12554 fi
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567 # Report which library types will actually be built
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12569 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12571 $as_echo "$can_build_shared" >&6; }
12572
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12574 $as_echo_n "checking whether to build shared libraries... " >&6; }
12575 test "$can_build_shared" = "no" && enable_shared=no
12576
12577 # On AIX, shared libraries and static libraries use the same namespace, and
12578 # are all built from PIC.
12579 case $host_os in
12580 aix3*)
12581 test "$enable_shared" = yes && enable_static=no
12582 if test -n "$RANLIB"; then
12583 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12584 postinstall_cmds='$RANLIB $lib'
12585 fi
12586 ;;
12587
12588 aix[4-9]*)
12589 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12590 test "$enable_shared" = yes && enable_static=no
12591 fi
12592 ;;
12593 esac
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12595 $as_echo "$enable_shared" >&6; }
12596
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12598 $as_echo_n "checking whether to build static libraries... " >&6; }
12599 # Make sure either enable_shared or enable_static is yes.
12600 test "$enable_shared" = yes || enable_static=yes
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12602 $as_echo "$enable_static" >&6; }
12603
12604
12605
12606
12607 fi
12608 ac_ext=c
12609 ac_cpp='$CPP $CPPFLAGS'
12610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12613
12614 CC="$lt_save_CC"
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628 ac_config_commands="$ac_config_commands libtool"
12629
12630
12631
12632
12633 # Only expand once:
12634
12635
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12638 $as_echo_n "checking for library containing bind... " >&6; }
12639 if ${ac_cv_search_bind+:} false; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 ac_func_search_save_LIBS=$LIBS
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12649 #ifdef __cplusplus
12650 extern "C"
12651 #endif
12652 char bind ();
12653 int
12654 main ()
12655 {
12656 return bind ();
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 for ac_lib in '' socket; do
12662 if test -z "$ac_lib"; then
12663 ac_res="none required"
12664 else
12665 ac_res=-l$ac_lib
12666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12667 fi
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 ac_cv_search_bind=$ac_res
12670 fi
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext
12673 if ${ac_cv_search_bind+:} false; then :
12674 break
12675 fi
12676 done
12677 if ${ac_cv_search_bind+:} false; then :
12678
12679 else
12680 ac_cv_search_bind=no
12681 fi
12682 rm conftest.$ac_ext
12683 LIBS=$ac_func_search_save_LIBS
12684 fi
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12686 $as_echo "$ac_cv_search_bind" >&6; }
12687 ac_res=$ac_cv_search_bind
12688 if test "$ac_res" != no; then :
12689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690
12691 fi
12692
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12694 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12695 if ${ac_cv_search_gethostbyname+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 ac_func_search_save_LIBS=$LIBS
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12701
12702 /* Override any GCC internal prototype to avoid an error.
12703 Use char because int might match the return type of a GCC
12704 builtin and then its argument prototype would still apply. */
12705 #ifdef __cplusplus
12706 extern "C"
12707 #endif
12708 char gethostbyname ();
12709 int
12710 main ()
12711 {
12712 return gethostbyname ();
12713 ;
12714 return 0;
12715 }
12716 _ACEOF
12717 for ac_lib in '' nsl; do
12718 if test -z "$ac_lib"; then
12719 ac_res="none required"
12720 else
12721 ac_res=-l$ac_lib
12722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12723 fi
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_search_gethostbyname=$ac_res
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext
12729 if ${ac_cv_search_gethostbyname+:} false; then :
12730 break
12731 fi
12732 done
12733 if ${ac_cv_search_gethostbyname+:} false; then :
12734
12735 else
12736 ac_cv_search_gethostbyname=no
12737 fi
12738 rm conftest.$ac_ext
12739 LIBS=$ac_func_search_save_LIBS
12740 fi
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12742 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12743 ac_res=$ac_cv_search_gethostbyname
12744 if test "$ac_res" != no; then :
12745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12746
12747 fi
12748
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12750 $as_echo_n "checking for library containing fabs... " >&6; }
12751 if ${ac_cv_search_fabs+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 ac_func_search_save_LIBS=$LIBS
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char fabs ();
12765 int
12766 main ()
12767 {
12768 return fabs ();
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 for ac_lib in '' m; do
12774 if test -z "$ac_lib"; then
12775 ac_res="none required"
12776 else
12777 ac_res=-l$ac_lib
12778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12779 fi
12780 if ac_fn_c_try_link "$LINENO"; then :
12781 ac_cv_search_fabs=$ac_res
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext
12785 if ${ac_cv_search_fabs+:} false; then :
12786 break
12787 fi
12788 done
12789 if ${ac_cv_search_fabs+:} false; then :
12790
12791 else
12792 ac_cv_search_fabs=no
12793 fi
12794 rm conftest.$ac_ext
12795 LIBS=$ac_func_search_save_LIBS
12796 fi
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12798 $as_echo "$ac_cv_search_fabs" >&6; }
12799 ac_res=$ac_cv_search_fabs
12800 if test "$ac_res" != no; then :
12801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12802
12803 fi
12804
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12806 $as_echo_n "checking for library containing log2... " >&6; }
12807 if ${ac_cv_search_log2+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810 ac_func_search_save_LIBS=$LIBS
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char log2 ();
12821 int
12822 main ()
12823 {
12824 return log2 ();
12825 ;
12826 return 0;
12827 }
12828 _ACEOF
12829 for ac_lib in '' m; do
12830 if test -z "$ac_lib"; then
12831 ac_res="none required"
12832 else
12833 ac_res=-l$ac_lib
12834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12835 fi
12836 if ac_fn_c_try_link "$LINENO"; then :
12837 ac_cv_search_log2=$ac_res
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext \
12840 conftest$ac_exeext
12841 if ${ac_cv_search_log2+:} false; then :
12842 break
12843 fi
12844 done
12845 if ${ac_cv_search_log2+:} false; then :
12846
12847 else
12848 ac_cv_search_log2=no
12849 fi
12850 rm conftest.$ac_ext
12851 LIBS=$ac_func_search_save_LIBS
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
12854 $as_echo "$ac_cv_search_log2" >&6; }
12855 ac_res=$ac_cv_search_log2
12856 if test "$ac_res" != no; then :
12857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12858
12859 fi
12860
12861
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12863 $as_echo_n "checking for library containing dlopen... " >&6; }
12864 if ${ac_cv_search_dlopen+:} false; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 ac_func_search_save_LIBS=$LIBS
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870
12871 /* Override any GCC internal prototype to avoid an error.
12872 Use char because int might match the return type of a GCC
12873 builtin and then its argument prototype would still apply. */
12874 #ifdef __cplusplus
12875 extern "C"
12876 #endif
12877 char dlopen ();
12878 int
12879 main ()
12880 {
12881 return dlopen ();
12882 ;
12883 return 0;
12884 }
12885 _ACEOF
12886 for ac_lib in '' dl; do
12887 if test -z "$ac_lib"; then
12888 ac_res="none required"
12889 else
12890 ac_res=-l$ac_lib
12891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12892 fi
12893 if ac_fn_c_try_link "$LINENO"; then :
12894 ac_cv_search_dlopen=$ac_res
12895 fi
12896 rm -f core conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext
12898 if ${ac_cv_search_dlopen+:} false; then :
12899 break
12900 fi
12901 done
12902 if ${ac_cv_search_dlopen+:} false; then :
12903
12904 else
12905 ac_cv_search_dlopen=no
12906 fi
12907 rm conftest.$ac_ext
12908 LIBS=$ac_func_search_save_LIBS
12909 fi
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12911 $as_echo "$ac_cv_search_dlopen" >&6; }
12912 ac_res=$ac_cv_search_dlopen
12913 if test "$ac_res" != no; then :
12914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12915
12916 fi
12917
12918 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
12919
12920 pkg_failed=no
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
12922 $as_echo_n "checking for sdl2... " >&6; }
12923
12924 if test -n "$SDL_CFLAGS"; then
12925 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12926 elif test -n "$PKG_CONFIG"; then
12927 if test -n "$PKG_CONFIG" && \
12928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12929 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12930 ac_status=$?
12931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932 test $ac_status = 0; }; then
12933 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
12934 test "x$?" != "x0" && pkg_failed=yes
12935 else
12936 pkg_failed=yes
12937 fi
12938 else
12939 pkg_failed=untried
12940 fi
12941 if test -n "$SDL_LIBS"; then
12942 pkg_cv_SDL_LIBS="$SDL_LIBS"
12943 elif test -n "$PKG_CONFIG"; then
12944 if test -n "$PKG_CONFIG" && \
12945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12946 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12947 ac_status=$?
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; }; then
12950 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
12951 test "x$?" != "x0" && pkg_failed=yes
12952 else
12953 pkg_failed=yes
12954 fi
12955 else
12956 pkg_failed=untried
12957 fi
12958
12959 if test $pkg_failed = no; then
12960 pkg_save_LDFLAGS="$LDFLAGS"
12961 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964
12965 int
12966 main ()
12967 {
12968
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974
12975 else
12976 pkg_failed=yes
12977 fi
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LDFLAGS=$pkg_save_LDFLAGS
12981 fi
12982
12983
12984
12985 if test $pkg_failed = yes; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12988
12989 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12990 _pkg_short_errors_supported=yes
12991 else
12992 _pkg_short_errors_supported=no
12993 fi
12994 if test $_pkg_short_errors_supported = yes; then
12995 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
12996 else
12997 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
12998 fi
12999 # Put the nasty error message in config.log where it belongs
13000 echo "$SDL_PKG_ERRORS" >&5
13001
13002
13003
13004 pkg_failed=no
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13006 $as_echo_n "checking for sdl... " >&6; }
13007
13008 if test -n "$SDL_CFLAGS"; then
13009 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13010 elif test -n "$PKG_CONFIG"; then
13011 if test -n "$PKG_CONFIG" && \
13012 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13013 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13014 ac_status=$?
13015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13016 test $ac_status = 0; }; then
13017 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13018 test "x$?" != "x0" && pkg_failed=yes
13019 else
13020 pkg_failed=yes
13021 fi
13022 else
13023 pkg_failed=untried
13024 fi
13025 if test -n "$SDL_LIBS"; then
13026 pkg_cv_SDL_LIBS="$SDL_LIBS"
13027 elif test -n "$PKG_CONFIG"; then
13028 if test -n "$PKG_CONFIG" && \
13029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13030 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13031 ac_status=$?
13032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13033 test $ac_status = 0; }; then
13034 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13035 test "x$?" != "x0" && pkg_failed=yes
13036 else
13037 pkg_failed=yes
13038 fi
13039 else
13040 pkg_failed=untried
13041 fi
13042
13043 if test $pkg_failed = no; then
13044 pkg_save_LDFLAGS="$LDFLAGS"
13045 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048
13049 int
13050 main ()
13051 {
13052
13053 ;
13054 return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_c_try_link "$LINENO"; then :
13058
13059 else
13060 pkg_failed=yes
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064 LDFLAGS=$pkg_save_LDFLAGS
13065 fi
13066
13067
13068
13069 if test $pkg_failed = yes; then
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13072
13073 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13074 _pkg_short_errors_supported=yes
13075 else
13076 _pkg_short_errors_supported=no
13077 fi
13078 if test $_pkg_short_errors_supported = yes; then
13079 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13080 else
13081 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13082 fi
13083 # Put the nasty error message in config.log where it belongs
13084 echo "$SDL_PKG_ERRORS" >&5
13085
13086 :
13087 elif test $pkg_failed = untried; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 :
13091 else
13092 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13093 SDL_LIBS=$pkg_cv_SDL_LIBS
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13095 $as_echo "yes" >&6; }
13096 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13097
13098 fi
13099
13100 elif test $pkg_failed = untried; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13103
13104
13105 pkg_failed=no
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13107 $as_echo_n "checking for sdl... " >&6; }
13108
13109 if test -n "$SDL_CFLAGS"; then
13110 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13111 elif test -n "$PKG_CONFIG"; then
13112 if test -n "$PKG_CONFIG" && \
13113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13114 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13115 ac_status=$?
13116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13117 test $ac_status = 0; }; then
13118 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13119 test "x$?" != "x0" && pkg_failed=yes
13120 else
13121 pkg_failed=yes
13122 fi
13123 else
13124 pkg_failed=untried
13125 fi
13126 if test -n "$SDL_LIBS"; then
13127 pkg_cv_SDL_LIBS="$SDL_LIBS"
13128 elif test -n "$PKG_CONFIG"; then
13129 if test -n "$PKG_CONFIG" && \
13130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13131 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13132 ac_status=$?
13133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134 test $ac_status = 0; }; then
13135 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13136 test "x$?" != "x0" && pkg_failed=yes
13137 else
13138 pkg_failed=yes
13139 fi
13140 else
13141 pkg_failed=untried
13142 fi
13143
13144 if test $pkg_failed = no; then
13145 pkg_save_LDFLAGS="$LDFLAGS"
13146 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149
13150 int
13151 main ()
13152 {
13153
13154 ;
13155 return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_link "$LINENO"; then :
13159
13160 else
13161 pkg_failed=yes
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext \
13164 conftest$ac_exeext conftest.$ac_ext
13165 LDFLAGS=$pkg_save_LDFLAGS
13166 fi
13167
13168
13169
13170 if test $pkg_failed = yes; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173
13174 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13175 _pkg_short_errors_supported=yes
13176 else
13177 _pkg_short_errors_supported=no
13178 fi
13179 if test $_pkg_short_errors_supported = yes; then
13180 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13181 else
13182 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13183 fi
13184 # Put the nasty error message in config.log where it belongs
13185 echo "$SDL_PKG_ERRORS" >&5
13186
13187 :
13188 elif test $pkg_failed = untried; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 :
13192 else
13193 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13194 SDL_LIBS=$pkg_cv_SDL_LIBS
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13196 $as_echo "yes" >&6; }
13197 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13198
13199 fi
13200
13201 else
13202 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13203 SDL_LIBS=$pkg_cv_SDL_LIBS
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13205 $as_echo "yes" >&6; }
13206 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13207
13208 fi
13209 if test -n "$SDL_CFLAGS"; then :
13210 if test "$ac_cv_search_dlopen" = no; then :
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13212 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13213
13214 fi
13215
13216 fi
13217 else
13218 SDL_CFLAGS=
13219 fi
13220 SDL_LIBS=
13221
13222
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13224 $as_echo_n "checking for cygwin... " >&6; }
13225 if ${sim_cv_os_cygwin+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227 else
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230
13231 #ifdef __CYGWIN__
13232 lose
13233 #endif
13234 _ACEOF
13235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13236 $EGREP "lose" >/dev/null 2>&1; then :
13237 sim_cv_os_cygwin=yes
13238 else
13239 sim_cv_os_cygwin=no
13240 fi
13241 rm -f conftest*
13242
13243 fi
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13245 $as_echo "$sim_cv_os_cygwin" >&6; }
13246
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13248 $as_echo_n "checking for library containing tgetent... " >&6; }
13249 if ${ac_cv_search_tgetent+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 ac_func_search_save_LIBS=$LIBS
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 char tgetent ();
13263 int
13264 main ()
13265 {
13266 return tgetent ();
13267 ;
13268 return 0;
13269 }
13270 _ACEOF
13271 for ac_lib in '' termcap tinfo curses ncurses; do
13272 if test -z "$ac_lib"; then
13273 ac_res="none required"
13274 else
13275 ac_res=-l$ac_lib
13276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13277 fi
13278 if ac_fn_c_try_link "$LINENO"; then :
13279 ac_cv_search_tgetent=$ac_res
13280 fi
13281 rm -f core conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext
13283 if ${ac_cv_search_tgetent+:} false; then :
13284 break
13285 fi
13286 done
13287 if ${ac_cv_search_tgetent+:} false; then :
13288
13289 else
13290 ac_cv_search_tgetent=no
13291 fi
13292 rm conftest.$ac_ext
13293 LIBS=$ac_func_search_save_LIBS
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13296 $as_echo "$ac_cv_search_tgetent" >&6; }
13297 ac_res=$ac_cv_search_tgetent
13298 if test "$ac_res" != no; then :
13299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13300 TERMCAP_LIB=$ac_cv_search_tgetent
13301 else
13302 TERMCAP_LIB=""
13303 fi
13304
13305 if test x$sim_cv_os_cygwin = xyes; then
13306 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13307 fi
13308
13309
13310 if test -r ../readline/Makefile; then
13311 READLINE_LIB=../readline/readline/libreadline.a
13312 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13315 $as_echo_n "checking for readline in -lreadline... " >&6; }
13316 if ${ac_cv_lib_readline_readline+:} false; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 ac_check_lib_save_LIBS=$LIBS
13320 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323
13324 /* Override any GCC internal prototype to avoid an error.
13325 Use char because int might match the return type of a GCC
13326 builtin and then its argument prototype would still apply. */
13327 #ifdef __cplusplus
13328 extern "C"
13329 #endif
13330 char readline ();
13331 int
13332 main ()
13333 {
13334 return readline ();
13335 ;
13336 return 0;
13337 }
13338 _ACEOF
13339 if ac_fn_c_try_link "$LINENO"; then :
13340 ac_cv_lib_readline_readline=yes
13341 else
13342 ac_cv_lib_readline_readline=no
13343 fi
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13347 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13349 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13350 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13351 READLINE_LIB=-lreadline
13352 else
13353 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13354 fi
13355
13356 READLINE_CFLAGS=
13357 fi
13358
13359
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13362 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13363 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 #include <unistd.h>
13369 int
13370 main ()
13371 {
13372 extern int getopt (int, char *const*, const char *);
13373 ;
13374 return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"; then :
13378 sim_cv_decl_getopt_unistd_h=yes
13379 else
13380 sim_cv_decl_getopt_unistd_h=no
13381 fi
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 fi
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13386 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13387 if test $sim_cv_decl_getopt_unistd_h = yes; then
13388
13389 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13390
13391 fi
13392
13393
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13396 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13397 # Check whether --enable-maintainer-mode was given.
13398 if test "${enable_maintainer_mode+set}" = set; then :
13399 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13400 else
13401 USE_MAINTAINER_MODE=no
13402 fi
13403
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13405 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13406 if test $USE_MAINTAINER_MODE = yes; then
13407 MAINTAINER_MODE_TRUE=
13408 MAINTAINER_MODE_FALSE='#'
13409 else
13410 MAINTAINER_MODE_TRUE='#'
13411 MAINTAINER_MODE_FALSE=
13412 fi
13413
13414 MAINT=$MAINTAINER_MODE_TRUE
13415
13416
13417 am__api_version='1.15'
13418
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13420 $as_echo_n "checking whether build environment is sane... " >&6; }
13421 # Reject unsafe characters in $srcdir or the absolute working directory
13422 # name. Accept space and tab only in the latter.
13423 am_lf='
13424 '
13425 case `pwd` in
13426 *[\\\"\#\$\&\'\`$am_lf]*)
13427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13428 esac
13429 case $srcdir in
13430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13431 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13432 esac
13433
13434 # Do 'set' in a subshell so we don't clobber the current shell's
13435 # arguments. Must try -L first in case configure is actually a
13436 # symlink; some systems play weird games with the mod time of symlinks
13437 # (eg FreeBSD returns the mod time of the symlink's containing
13438 # directory).
13439 if (
13440 am_has_slept=no
13441 for am_try in 1 2; do
13442 echo "timestamp, slept: $am_has_slept" > conftest.file
13443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13444 if test "$*" = "X"; then
13445 # -L didn't work.
13446 set X `ls -t "$srcdir/configure" conftest.file`
13447 fi
13448 if test "$*" != "X $srcdir/configure conftest.file" \
13449 && test "$*" != "X conftest.file $srcdir/configure"; then
13450
13451 # If neither matched, then we have a broken ls. This can happen
13452 # if, for instance, CONFIG_SHELL is bash and it inherits a
13453 # broken ls alias from the environment. This has actually
13454 # happened. Such a system could not be considered "sane".
13455 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13456 alias in your environment" "$LINENO" 5
13457 fi
13458 if test "$2" = conftest.file || test $am_try -eq 2; then
13459 break
13460 fi
13461 # Just in case.
13462 sleep 1
13463 am_has_slept=yes
13464 done
13465 test "$2" = conftest.file
13466 )
13467 then
13468 # Ok.
13469 :
13470 else
13471 as_fn_error $? "newly created file is older than distributed files!
13472 Check your system clock" "$LINENO" 5
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13475 $as_echo "yes" >&6; }
13476 # If we didn't sleep, we still need to ensure time stamps of config.status and
13477 # generated files are strictly newer.
13478 am_sleep_pid=
13479 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13480 ( sleep 1 ) &
13481 am_sleep_pid=$!
13482 fi
13483
13484 rm -f conftest.file
13485
13486 if test x"${MISSING+set}" != xset; then
13487 case $am_aux_dir in
13488 *\ * | *\ *)
13489 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13490 *)
13491 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13492 esac
13493 fi
13494 # Use eval to expand $SHELL
13495 if eval "$MISSING --is-lightweight"; then
13496 am_missing_run="$MISSING "
13497 else
13498 am_missing_run=
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13500 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13501 fi
13502
13503 if test x"${install_sh+set}" != xset; then
13504 case $am_aux_dir in
13505 *\ * | *\ *)
13506 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13507 *)
13508 install_sh="\${SHELL} $am_aux_dir/install-sh"
13509 esac
13510 fi
13511
13512 # Installed binaries are usually stripped using 'strip' when the user
13513 # run "make install-strip". However 'strip' might not be the right
13514 # tool to use in cross-compilation environments, therefore Automake
13515 # will honor the 'STRIP' environment variable to overrule this program.
13516 if test "$cross_compiling" != no; then
13517 if test -n "$ac_tool_prefix"; then
13518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13519 set dummy ${ac_tool_prefix}strip; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if ${ac_cv_prog_STRIP+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 if test -n "$STRIP"; then
13526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13530 do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539 done
13540 done
13541 IFS=$as_save_IFS
13542
13543 fi
13544 fi
13545 STRIP=$ac_cv_prog_STRIP
13546 if test -n "$STRIP"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13548 $as_echo "$STRIP" >&6; }
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 fi
13553
13554
13555 fi
13556 if test -z "$ac_cv_prog_STRIP"; then
13557 ac_ct_STRIP=$STRIP
13558 # Extract the first word of "strip", so it can be a program name with args.
13559 set dummy strip; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 if test -n "$ac_ct_STRIP"; then
13566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13570 do
13571 IFS=$as_save_IFS
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13575 ac_cv_prog_ac_ct_STRIP="strip"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 break 2
13578 fi
13579 done
13580 done
13581 IFS=$as_save_IFS
13582
13583 fi
13584 fi
13585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13586 if test -n "$ac_ct_STRIP"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13588 $as_echo "$ac_ct_STRIP" >&6; }
13589 else
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13592 fi
13593
13594 if test "x$ac_ct_STRIP" = x; then
13595 STRIP=":"
13596 else
13597 case $cross_compiling:$ac_tool_warned in
13598 yes:)
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601 ac_tool_warned=yes ;;
13602 esac
13603 STRIP=$ac_ct_STRIP
13604 fi
13605 else
13606 STRIP="$ac_cv_prog_STRIP"
13607 fi
13608
13609 fi
13610 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13613 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13614 if test -z "$MKDIR_P"; then
13615 if ${ac_cv_path_mkdir+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13620 do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_prog in mkdir gmkdir; do
13624 for ac_exec_ext in '' $ac_executable_extensions; do
13625 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13626 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13627 'mkdir (GNU coreutils) '* | \
13628 'mkdir (coreutils) '* | \
13629 'mkdir (fileutils) '4.1*)
13630 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13631 break 3;;
13632 esac
13633 done
13634 done
13635 done
13636 IFS=$as_save_IFS
13637
13638 fi
13639
13640 test -d ./--version && rmdir ./--version
13641 if test "${ac_cv_path_mkdir+set}" = set; then
13642 MKDIR_P="$ac_cv_path_mkdir -p"
13643 else
13644 # As a last resort, use the slow shell script. Don't cache a
13645 # value for MKDIR_P within a source directory, because that will
13646 # break other packages using the cache if that directory is
13647 # removed, or if the value is a relative name.
13648 MKDIR_P="$ac_install_sh -d"
13649 fi
13650 fi
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13652 $as_echo "$MKDIR_P" >&6; }
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13655 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13656 set x ${MAKE-make}
13657 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13658 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 cat >conftest.make <<\_ACEOF
13662 SHELL = /bin/sh
13663 all:
13664 @echo '@@@%%%=$(MAKE)=@@@%%%'
13665 _ACEOF
13666 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13667 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13668 *@@@%%%=?*=@@@%%%*)
13669 eval ac_cv_prog_make_${ac_make}_set=yes;;
13670 *)
13671 eval ac_cv_prog_make_${ac_make}_set=no;;
13672 esac
13673 rm -f conftest.make
13674 fi
13675 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13677 $as_echo "yes" >&6; }
13678 SET_MAKE=
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681 $as_echo "no" >&6; }
13682 SET_MAKE="MAKE=${MAKE-make}"
13683 fi
13684
13685 rm -rf .tst 2>/dev/null
13686 mkdir .tst 2>/dev/null
13687 if test -d .tst; then
13688 am__leading_dot=.
13689 else
13690 am__leading_dot=_
13691 fi
13692 rmdir .tst 2>/dev/null
13693
13694 DEPDIR="${am__leading_dot}deps"
13695
13696 ac_config_commands="$ac_config_commands depfiles"
13697
13698
13699 am_make=${MAKE-make}
13700 cat > confinc << 'END'
13701 am__doit:
13702 @echo this is the am__doit target
13703 .PHONY: am__doit
13704 END
13705 # If we don't find an include directive, just comment out the code.
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13707 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13708 am__include="#"
13709 am__quote=
13710 _am_result=none
13711 # First try GNU make style include.
13712 echo "include confinc" > confmf
13713 # Ignore all kinds of additional output from 'make'.
13714 case `$am_make -s -f confmf 2> /dev/null` in #(
13715 *the\ am__doit\ target*)
13716 am__include=include
13717 am__quote=
13718 _am_result=GNU
13719 ;;
13720 esac
13721 # Now try BSD make style include.
13722 if test "$am__include" = "#"; then
13723 echo '.include "confinc"' > confmf
13724 case `$am_make -s -f confmf 2> /dev/null` in #(
13725 *the\ am__doit\ target*)
13726 am__include=.include
13727 am__quote="\""
13728 _am_result=BSD
13729 ;;
13730 esac
13731 fi
13732
13733
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13735 $as_echo "$_am_result" >&6; }
13736 rm -f confinc confmf
13737
13738 # Check whether --enable-dependency-tracking was given.
13739 if test "${enable_dependency_tracking+set}" = set; then :
13740 enableval=$enable_dependency_tracking;
13741 fi
13742
13743 if test "x$enable_dependency_tracking" != xno; then
13744 am_depcomp="$ac_aux_dir/depcomp"
13745 AMDEPBACKSLASH='\'
13746 am__nodep='_no'
13747 fi
13748 if test "x$enable_dependency_tracking" != xno; then
13749 AMDEP_TRUE=
13750 AMDEP_FALSE='#'
13751 else
13752 AMDEP_TRUE='#'
13753 AMDEP_FALSE=
13754 fi
13755
13756
13757 # Check whether --enable-silent-rules was given.
13758 if test "${enable_silent_rules+set}" = set; then :
13759 enableval=$enable_silent_rules;
13760 fi
13761
13762 case $enable_silent_rules in # (((
13763 yes) AM_DEFAULT_VERBOSITY=0;;
13764 no) AM_DEFAULT_VERBOSITY=1;;
13765 *) AM_DEFAULT_VERBOSITY=1;;
13766 esac
13767 am_make=${MAKE-make}
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13769 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13770 if ${am_cv_make_support_nested_variables+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 if $as_echo 'TRUE=$(BAR$(V))
13774 BAR0=false
13775 BAR1=true
13776 V=1
13777 am__doit:
13778 @$(TRUE)
13779 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13780 am_cv_make_support_nested_variables=yes
13781 else
13782 am_cv_make_support_nested_variables=no
13783 fi
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13786 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13787 if test $am_cv_make_support_nested_variables = yes; then
13788 AM_V='$(V)'
13789 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13790 else
13791 AM_V=$AM_DEFAULT_VERBOSITY
13792 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13793 fi
13794 AM_BACKSLASH='\'
13795
13796 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13797 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13798 # is not polluted with repeated "-I."
13799 am__isrc=' -I$(srcdir)'
13800 # test to see if srcdir already configured
13801 if test -f $srcdir/config.status; then
13802 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13803 fi
13804 fi
13805
13806 # test whether we have cygpath
13807 if test -z "$CYGPATH_W"; then
13808 if (cygpath --version) >/dev/null 2>/dev/null; then
13809 CYGPATH_W='cygpath -w'
13810 else
13811 CYGPATH_W=echo
13812 fi
13813 fi
13814
13815
13816 # Define the identity of the package.
13817 PACKAGE='sim'
13818 VERSION='0'
13819
13820
13821 cat >>confdefs.h <<_ACEOF
13822 #define PACKAGE "$PACKAGE"
13823 _ACEOF
13824
13825
13826 cat >>confdefs.h <<_ACEOF
13827 #define VERSION "$VERSION"
13828 _ACEOF
13829
13830 # Some tools Automake needs.
13831
13832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13833
13834
13835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13836
13837
13838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13839
13840
13841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13842
13843
13844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13845
13846 # For better backward compatibility. To be removed once Automake 1.9.x
13847 # dies out for good. For more background, see:
13848 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13849 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13850 mkdir_p='$(MKDIR_P)'
13851
13852 # We need awk for the "check" target (and possibly the TAP driver). The
13853 # system "awk" is bad on some platforms.
13854 # Always define AMTAR for backward compatibility. Yes, it's still used
13855 # in the wild :-( We should find a proper way to deprecate it ...
13856 AMTAR='$${TAR-tar}'
13857
13858
13859 # We'll loop over all known methods to create a tar archive until one works.
13860 _am_tools='gnutar pax cpio none'
13861
13862 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13863
13864
13865
13866
13867
13868 depcc="$CC" am_compiler_list=
13869
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13871 $as_echo_n "checking dependency style of $depcc... " >&6; }
13872 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13876 # We make a subdir and do the tests there. Otherwise we can end up
13877 # making bogus files that we don't know about and never remove. For
13878 # instance it was reported that on HP-UX the gcc test will end up
13879 # making a dummy file named 'D' -- because '-MD' means "put the output
13880 # in D".
13881 rm -rf conftest.dir
13882 mkdir conftest.dir
13883 # Copy depcomp to subdir because otherwise we won't find it if we're
13884 # using a relative directory.
13885 cp "$am_depcomp" conftest.dir
13886 cd conftest.dir
13887 # We will build objects and dependencies in a subdirectory because
13888 # it helps to detect inapplicable dependency modes. For instance
13889 # both Tru64's cc and ICC support -MD to output dependencies as a
13890 # side effect of compilation, but ICC will put the dependencies in
13891 # the current directory while Tru64 will put them in the object
13892 # directory.
13893 mkdir sub
13894
13895 am_cv_CC_dependencies_compiler_type=none
13896 if test "$am_compiler_list" = ""; then
13897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13898 fi
13899 am__universal=false
13900 case " $depcc " in #(
13901 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13902 esac
13903
13904 for depmode in $am_compiler_list; do
13905 # Setup a source with many dependencies, because some compilers
13906 # like to wrap large dependency lists on column 80 (with \), and
13907 # we should not choose a depcomp mode which is confused by this.
13908 #
13909 # We need to recreate these files for each test, as the compiler may
13910 # overwrite some of them when testing with obscure command lines.
13911 # This happens at least with the AIX C compiler.
13912 : > sub/conftest.c
13913 for i in 1 2 3 4 5 6; do
13914 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13915 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13916 # Solaris 10 /bin/sh.
13917 echo '/* dummy */' > sub/conftst$i.h
13918 done
13919 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13920
13921 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13922 # mode. It turns out that the SunPro C++ compiler does not properly
13923 # handle '-M -o', and we need to detect this. Also, some Intel
13924 # versions had trouble with output in subdirs.
13925 am__obj=sub/conftest.${OBJEXT-o}
13926 am__minus_obj="-o $am__obj"
13927 case $depmode in
13928 gcc)
13929 # This depmode causes a compiler race in universal mode.
13930 test "$am__universal" = false || continue
13931 ;;
13932 nosideeffect)
13933 # After this tag, mechanisms are not by side-effect, so they'll
13934 # only be used when explicitly requested.
13935 if test "x$enable_dependency_tracking" = xyes; then
13936 continue
13937 else
13938 break
13939 fi
13940 ;;
13941 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13942 # This compiler won't grok '-c -o', but also, the minuso test has
13943 # not run yet. These depmodes are late enough in the game, and
13944 # so weak that their functioning should not be impacted.
13945 am__obj=conftest.${OBJEXT-o}
13946 am__minus_obj=
13947 ;;
13948 none) break ;;
13949 esac
13950 if depmode=$depmode \
13951 source=sub/conftest.c object=$am__obj \
13952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13953 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13954 >/dev/null 2>conftest.err &&
13955 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13956 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13957 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13958 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13959 # icc doesn't choke on unknown options, it will just issue warnings
13960 # or remarks (even with -Werror). So we grep stderr for any message
13961 # that says an option was ignored or not supported.
13962 # When given -MP, icc 7.0 and 7.1 complain thusly:
13963 # icc: Command line warning: ignoring option '-M'; no argument required
13964 # The diagnosis changed in icc 8.0:
13965 # icc: Command line remark: option '-MP' not supported
13966 if (grep 'ignoring option' conftest.err ||
13967 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13968 am_cv_CC_dependencies_compiler_type=$depmode
13969 break
13970 fi
13971 fi
13972 done
13973
13974 cd ..
13975 rm -rf conftest.dir
13976 else
13977 am_cv_CC_dependencies_compiler_type=none
13978 fi
13979
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13982 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13983 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13984
13985 if
13986 test "x$enable_dependency_tracking" != xno \
13987 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13988 am__fastdepCC_TRUE=
13989 am__fastdepCC_FALSE='#'
13990 else
13991 am__fastdepCC_TRUE='#'
13992 am__fastdepCC_FALSE=
13993 fi
13994
13995
13996
13997 # POSIX will say in a future version that running "rm -f" with no argument
13998 # is OK; and we want to be able to make that assumption in our Makefile
13999 # recipes. So use an aggressive probe to check that the usage we want is
14000 # actually supported "in the wild" to an acceptable degree.
14001 # See automake bug#10828.
14002 # To make any issue more visible, cause the running configure to be aborted
14003 # by default if the 'rm' program in use doesn't match our expectations; the
14004 # user can still override this though.
14005 if rm -f && rm -fr && rm -rf; then : OK; else
14006 cat >&2 <<'END'
14007 Oops!
14008
14009 Your 'rm' program seems unable to run without file operands specified
14010 on the command line, even when the '-f' option is present. This is contrary
14011 to the behaviour of most rm programs out there, and not conforming with
14012 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14013
14014 Please tell bug-automake@gnu.org about your system, including the value
14015 of your $PATH and any error possibly output before this message. This
14016 can help us improve future automake versions.
14017
14018 END
14019 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14020 echo 'Configuration will proceed anyway, since you have set the' >&2
14021 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14022 echo >&2
14023 else
14024 cat >&2 <<'END'
14025 Aborting the configuration process, to ensure you take notice of the issue.
14026
14027 You can download and install GNU coreutils to get an 'rm' implementation
14028 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14029
14030 If you want to complete the configuration process using your problematic
14031 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14032 to "yes", and re-run configure.
14033
14034 END
14035 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14036 fi
14037 fi
14038
14039 # Check whether --enable-silent-rules was given.
14040 if test "${enable_silent_rules+set}" = set; then :
14041 enableval=$enable_silent_rules;
14042 fi
14043
14044 case $enable_silent_rules in # (((
14045 yes) AM_DEFAULT_VERBOSITY=0;;
14046 no) AM_DEFAULT_VERBOSITY=1;;
14047 *) AM_DEFAULT_VERBOSITY=0;;
14048 esac
14049 am_make=${MAKE-make}
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14051 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14052 if ${am_cv_make_support_nested_variables+:} false; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 if $as_echo 'TRUE=$(BAR$(V))
14056 BAR0=false
14057 BAR1=true
14058 V=1
14059 am__doit:
14060 @$(TRUE)
14061 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14062 am_cv_make_support_nested_variables=yes
14063 else
14064 am_cv_make_support_nested_variables=no
14065 fi
14066 fi
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14068 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14069 if test $am_cv_make_support_nested_variables = yes; then
14070 AM_V='$(V)'
14071 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14072 else
14073 AM_V=$AM_DEFAULT_VERBOSITY
14074 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14075 fi
14076 AM_BACKSLASH='\'
14077
14078
14079 # If a cpu ever has more than one simulator to choose from, use
14080 # --enable-sim=... to choose.
14081 # Check whether --enable-sim was given.
14082 if test "${enable_sim+set}" = set; then :
14083 enableval=$enable_sim; case "${enableval}" in
14084 yes | no) ;;
14085 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14086 esac
14087 fi
14088
14089
14090 # Check whether --enable-example-sims was given.
14091 if test "${enable_example_sims+set}" = set; then :
14092 enableval=$enable_example_sims;
14093 fi
14094
14095
14096 # Check whether --enable-targets was given.
14097 if test "${enable_targets+set}" = set; then :
14098 enableval=$enable_targets; case "${enableval}" in
14099 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14100 ;;
14101 no) enable_targets= ;;
14102 *) enable_targets=$enableval ;;
14103 esac
14104 fi
14105
14106
14107 SIM_PRIMARY_TARGET=
14108
14109
14110 SIM_ENABLED_ARCHES=
14111
14112
14113 ENABLE_SIM=no
14114
14115
14116
14117 if test "${enable_sim}" != no; then
14118 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14119 do
14120 sim_enable_arch_aarch64=false
14121 case "${targ}" in
14122 all|aarch64*-*-*)
14123 if test "${targ}" = "${target}"; then
14124 SIM_PRIMARY_TARGET=aarch64
14125 fi
14126 ENABLE_SIM=yes
14127 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14128
14129 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14130
14131
14132 sim_enable_arch_aarch64=true
14133 ;;
14134 esac
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14136 $as_echo_n "checking where to find the target cc... " >&6; }
14137 if test "x${build}" != "x${host}" ; then
14138 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
14140 ac_dir=`dirname $CC_FOR_TARGET`
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142 $as_echo "pre-installed in $ac_dir" >&6; }
14143 else
14144 # Canadian cross, just use what we found
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146 $as_echo "pre-installed" >&6; }
14147 fi
14148 else
14149 ok=yes
14150 case " ${configdirs} " in
14151 *" ${target_alias}-gcc "*) ;;
14152 *) ok=no ;;
14153 esac
14154
14155 if test $ok = yes; then
14156 # An in-tree tool is available and we can use it
14157 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14159 $as_echo "just compiled" >&6; }
14160 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14161 # We already found the complete path
14162 ac_dir=`dirname $CC_FOR_TARGET`
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14164 $as_echo "pre-installed in $ac_dir" >&6; }
14165 elif test "x$target" = "x$host"; then
14166 # We can use an host tool
14167 CC_FOR_TARGET='$(CC)'
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14169 $as_echo "host tool" >&6; }
14170 else
14171 # We need a cross tool
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14173 $as_echo "pre-installed" >&6; }
14174 fi
14175 fi
14176
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14178 $as_echo_n "checking where to find the target as... " >&6; }
14179 if test "x${build}" != "x${host}" ; then
14180 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14181 # We already found the complete path
14182 ac_dir=`dirname $AS_FOR_TARGET`
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14184 $as_echo "pre-installed in $ac_dir" >&6; }
14185 else
14186 # Canadian cross, just use what we found
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14188 $as_echo "pre-installed" >&6; }
14189 fi
14190 else
14191 ok=yes
14192 case " ${configdirs} " in
14193 *" \$(abs_builddir) "*) ;;
14194 *) ok=no ;;
14195 esac
14196
14197 if test $ok = yes; then
14198 # An in-tree tool is available and we can use it
14199 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14201 $as_echo "just compiled" >&6; }
14202 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14203 # We already found the complete path
14204 ac_dir=`dirname $AS_FOR_TARGET`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14206 $as_echo "pre-installed in $ac_dir" >&6; }
14207 elif test "x$target" = "x$host"; then
14208 # We can use an host tool
14209 AS_FOR_TARGET='$(AS)'
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14211 $as_echo "host tool" >&6; }
14212 else
14213 # We need a cross tool
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14215 $as_echo "pre-installed" >&6; }
14216 fi
14217 fi
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14220 $as_echo_n "checking where to find the target ld... " >&6; }
14221 if test "x${build}" != "x${host}" ; then
14222 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14223 # We already found the complete path
14224 ac_dir=`dirname $LD_FOR_TARGET`
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14226 $as_echo "pre-installed in $ac_dir" >&6; }
14227 else
14228 # Canadian cross, just use what we found
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14230 $as_echo "pre-installed" >&6; }
14231 fi
14232 else
14233 ok=yes
14234 case " ${configdirs} " in
14235 *" \$(abs_builddir) "*) ;;
14236 *) ok=no ;;
14237 esac
14238
14239 if test $ok = yes; then
14240 # An in-tree tool is available and we can use it
14241 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14243 $as_echo "just compiled" >&6; }
14244 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14245 # We already found the complete path
14246 ac_dir=`dirname $LD_FOR_TARGET`
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14248 $as_echo "pre-installed in $ac_dir" >&6; }
14249 elif test "x$target" = "x$host"; then
14250 # We can use an host tool
14251 LD_FOR_TARGET='$(LD)'
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14253 $as_echo "host tool" >&6; }
14254 else
14255 # We need a cross tool
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14257 $as_echo "pre-installed" >&6; }
14258 fi
14259 fi
14260
14261
14262
14263
14264
14265
14266 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14267 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14268 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14269 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14270
14271 fi
14272
14273 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14274
14275 if ${sim_enable_arch_aarch64}; then
14276 SIM_ENABLE_ARCH_aarch64_TRUE=
14277 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14278 else
14279 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14280 SIM_ENABLE_ARCH_aarch64_FALSE=
14281 fi
14282
14283
14284 sim_enable_arch_arm=false
14285 case "${targ}" in
14286 all|arm*-*-*)
14287 if test "${targ}" = "${target}"; then
14288 SIM_PRIMARY_TARGET=arm
14289 fi
14290 ENABLE_SIM=yes
14291 as_fn_append SIM_ENABLED_ARCHES " arm"
14292
14293 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14294
14295
14296 sim_enable_arch_arm=true
14297 ;;
14298 esac
14299
14300
14301
14302
14303 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14304 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14305 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14306 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14307
14308 fi
14309
14310 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14311
14312 if ${sim_enable_arch_arm}; then
14313 SIM_ENABLE_ARCH_arm_TRUE=
14314 SIM_ENABLE_ARCH_arm_FALSE='#'
14315 else
14316 SIM_ENABLE_ARCH_arm_TRUE='#'
14317 SIM_ENABLE_ARCH_arm_FALSE=
14318 fi
14319
14320
14321 sim_enable_arch_avr=false
14322 case "${targ}" in
14323 all|avr*-*-*)
14324 if test "${targ}" = "${target}"; then
14325 SIM_PRIMARY_TARGET=avr
14326 fi
14327 ENABLE_SIM=yes
14328 as_fn_append SIM_ENABLED_ARCHES " avr"
14329
14330 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14331
14332
14333 sim_enable_arch_avr=true
14334 ;;
14335 esac
14336
14337
14338
14339
14340 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14341 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14342 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14343 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14344
14345 fi
14346
14347 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14348
14349 if ${sim_enable_arch_avr}; then
14350 SIM_ENABLE_ARCH_avr_TRUE=
14351 SIM_ENABLE_ARCH_avr_FALSE='#'
14352 else
14353 SIM_ENABLE_ARCH_avr_TRUE='#'
14354 SIM_ENABLE_ARCH_avr_FALSE=
14355 fi
14356
14357
14358 sim_enable_arch_bfin=false
14359 case "${targ}" in
14360 all|bfin-*-*)
14361 if test "${targ}" = "${target}"; then
14362 SIM_PRIMARY_TARGET=bfin
14363 fi
14364 ENABLE_SIM=yes
14365 as_fn_append SIM_ENABLED_ARCHES " bfin"
14366
14367 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14368
14369
14370 sim_enable_arch_bfin=true
14371 ;;
14372 esac
14373
14374
14375
14376
14377 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14378 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14379 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14380 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14381
14382 fi
14383
14384 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14385
14386 if ${sim_enable_arch_bfin}; then
14387 SIM_ENABLE_ARCH_bfin_TRUE=
14388 SIM_ENABLE_ARCH_bfin_FALSE='#'
14389 else
14390 SIM_ENABLE_ARCH_bfin_TRUE='#'
14391 SIM_ENABLE_ARCH_bfin_FALSE=
14392 fi
14393
14394
14395 sim_enable_arch_bpf=false
14396 case "${targ}" in
14397 all|bpf-*-*)
14398 if test "${targ}" = "${target}"; then
14399 SIM_PRIMARY_TARGET=bpf
14400 fi
14401 ENABLE_SIM=yes
14402 as_fn_append SIM_ENABLED_ARCHES " bpf"
14403
14404 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14405
14406
14407 sim_enable_arch_bpf=true
14408 ;;
14409 esac
14410
14411
14412
14413
14414 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14415 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14416 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14417 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14418
14419 fi
14420
14421 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14422
14423 if ${sim_enable_arch_bpf}; then
14424 SIM_ENABLE_ARCH_bpf_TRUE=
14425 SIM_ENABLE_ARCH_bpf_FALSE='#'
14426 else
14427 SIM_ENABLE_ARCH_bpf_TRUE='#'
14428 SIM_ENABLE_ARCH_bpf_FALSE=
14429 fi
14430
14431
14432 sim_enable_arch_cr16=false
14433 case "${targ}" in
14434 all|cr16*-*-*)
14435 if test "${targ}" = "${target}"; then
14436 SIM_PRIMARY_TARGET=cr16
14437 fi
14438 ENABLE_SIM=yes
14439 as_fn_append SIM_ENABLED_ARCHES " cr16"
14440
14441 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14442
14443
14444 sim_enable_arch_cr16=true
14445 ;;
14446 esac
14447
14448
14449
14450
14451 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14452 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14453 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14454 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14455
14456 fi
14457
14458 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14459
14460 if ${sim_enable_arch_cr16}; then
14461 SIM_ENABLE_ARCH_cr16_TRUE=
14462 SIM_ENABLE_ARCH_cr16_FALSE='#'
14463 else
14464 SIM_ENABLE_ARCH_cr16_TRUE='#'
14465 SIM_ENABLE_ARCH_cr16_FALSE=
14466 fi
14467
14468
14469 sim_enable_arch_cris=false
14470 case "${targ}" in
14471 all|cris-*-* | crisv32-*-*)
14472 if test "${targ}" = "${target}"; then
14473 SIM_PRIMARY_TARGET=cris
14474 fi
14475 ENABLE_SIM=yes
14476 as_fn_append SIM_ENABLED_ARCHES " cris"
14477
14478 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14479
14480
14481 sim_enable_arch_cris=true
14482 ;;
14483 esac
14484
14485
14486
14487
14488 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14489 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14490 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14491 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14492
14493 fi
14494
14495 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14496
14497 if ${sim_enable_arch_cris}; then
14498 SIM_ENABLE_ARCH_cris_TRUE=
14499 SIM_ENABLE_ARCH_cris_FALSE='#'
14500 else
14501 SIM_ENABLE_ARCH_cris_TRUE='#'
14502 SIM_ENABLE_ARCH_cris_FALSE=
14503 fi
14504
14505
14506 sim_enable_arch_d10v=false
14507 case "${targ}" in
14508 all|d10v-*-*)
14509 if test "${targ}" = "${target}"; then
14510 SIM_PRIMARY_TARGET=d10v
14511 fi
14512 ENABLE_SIM=yes
14513 as_fn_append SIM_ENABLED_ARCHES " d10v"
14514
14515 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14516
14517
14518 sim_enable_arch_d10v=true
14519 ;;
14520 esac
14521
14522
14523
14524
14525 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14526 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14527 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14528 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14529
14530 fi
14531
14532 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14533
14534 if ${sim_enable_arch_d10v}; then
14535 SIM_ENABLE_ARCH_d10v_TRUE=
14536 SIM_ENABLE_ARCH_d10v_FALSE='#'
14537 else
14538 SIM_ENABLE_ARCH_d10v_TRUE='#'
14539 SIM_ENABLE_ARCH_d10v_FALSE=
14540 fi
14541
14542
14543 sim_enable_arch_frv=false
14544 case "${targ}" in
14545 all|frv-*-*)
14546 if test "${targ}" = "${target}"; then
14547 SIM_PRIMARY_TARGET=frv
14548 fi
14549 ENABLE_SIM=yes
14550 as_fn_append SIM_ENABLED_ARCHES " frv"
14551
14552 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14553
14554
14555 sim_enable_arch_frv=true
14556 ;;
14557 esac
14558
14559
14560
14561
14562 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14563 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14564 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14565 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14566
14567 fi
14568
14569 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14570
14571 if ${sim_enable_arch_frv}; then
14572 SIM_ENABLE_ARCH_frv_TRUE=
14573 SIM_ENABLE_ARCH_frv_FALSE='#'
14574 else
14575 SIM_ENABLE_ARCH_frv_TRUE='#'
14576 SIM_ENABLE_ARCH_frv_FALSE=
14577 fi
14578
14579
14580 sim_enable_arch_ft32=false
14581 case "${targ}" in
14582 all|ft32-*-*)
14583 if test "${targ}" = "${target}"; then
14584 SIM_PRIMARY_TARGET=ft32
14585 fi
14586 ENABLE_SIM=yes
14587 as_fn_append SIM_ENABLED_ARCHES " ft32"
14588
14589 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14590
14591
14592 sim_enable_arch_ft32=true
14593 ;;
14594 esac
14595
14596
14597
14598
14599 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14600 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14601 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14602 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14603
14604 fi
14605
14606 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14607
14608 if ${sim_enable_arch_ft32}; then
14609 SIM_ENABLE_ARCH_ft32_TRUE=
14610 SIM_ENABLE_ARCH_ft32_FALSE='#'
14611 else
14612 SIM_ENABLE_ARCH_ft32_TRUE='#'
14613 SIM_ENABLE_ARCH_ft32_FALSE=
14614 fi
14615
14616
14617 sim_enable_arch_h8300=false
14618 case "${targ}" in
14619 all|h8300*-*-*)
14620 if test "${targ}" = "${target}"; then
14621 SIM_PRIMARY_TARGET=h8300
14622 fi
14623 ENABLE_SIM=yes
14624 as_fn_append SIM_ENABLED_ARCHES " h8300"
14625
14626 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14627
14628
14629 sim_enable_arch_h8300=true
14630 ;;
14631 esac
14632
14633
14634
14635
14636 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14637 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14638 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14639 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14640
14641 fi
14642
14643 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14644
14645 if ${sim_enable_arch_h8300}; then
14646 SIM_ENABLE_ARCH_h8300_TRUE=
14647 SIM_ENABLE_ARCH_h8300_FALSE='#'
14648 else
14649 SIM_ENABLE_ARCH_h8300_TRUE='#'
14650 SIM_ENABLE_ARCH_h8300_FALSE=
14651 fi
14652
14653
14654 sim_enable_arch_iq2000=false
14655 case "${targ}" in
14656 all|iq2000-*-*)
14657 if test "${targ}" = "${target}"; then
14658 SIM_PRIMARY_TARGET=iq2000
14659 fi
14660 ENABLE_SIM=yes
14661 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14662
14663 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14664
14665
14666 sim_enable_arch_iq2000=true
14667 ;;
14668 esac
14669
14670
14671
14672
14673 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14674 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14675 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14676 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14677
14678 fi
14679
14680 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14681
14682 if ${sim_enable_arch_iq2000}; then
14683 SIM_ENABLE_ARCH_iq2000_TRUE=
14684 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14685 else
14686 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14687 SIM_ENABLE_ARCH_iq2000_FALSE=
14688 fi
14689
14690
14691 sim_enable_arch_lm32=false
14692 case "${targ}" in
14693 all|lm32-*-*)
14694 if test "${targ}" = "${target}"; then
14695 SIM_PRIMARY_TARGET=lm32
14696 fi
14697 ENABLE_SIM=yes
14698 as_fn_append SIM_ENABLED_ARCHES " lm32"
14699
14700 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14701
14702
14703 sim_enable_arch_lm32=true
14704 ;;
14705 esac
14706
14707
14708
14709
14710 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14711 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14712 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14713 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14714
14715 fi
14716
14717 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14718
14719 if ${sim_enable_arch_lm32}; then
14720 SIM_ENABLE_ARCH_lm32_TRUE=
14721 SIM_ENABLE_ARCH_lm32_FALSE='#'
14722 else
14723 SIM_ENABLE_ARCH_lm32_TRUE='#'
14724 SIM_ENABLE_ARCH_lm32_FALSE=
14725 fi
14726
14727
14728 sim_enable_arch_m32c=false
14729 case "${targ}" in
14730 all|m32c-*-*)
14731 if test "${targ}" = "${target}"; then
14732 SIM_PRIMARY_TARGET=m32c
14733 fi
14734 ENABLE_SIM=yes
14735 as_fn_append SIM_ENABLED_ARCHES " m32c"
14736
14737 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14738
14739
14740 sim_enable_arch_m32c=true
14741 ;;
14742 esac
14743
14744
14745
14746
14747 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14748 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14749 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14750 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14751
14752 fi
14753
14754 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14755
14756 if ${sim_enable_arch_m32c}; then
14757 SIM_ENABLE_ARCH_m32c_TRUE=
14758 SIM_ENABLE_ARCH_m32c_FALSE='#'
14759 else
14760 SIM_ENABLE_ARCH_m32c_TRUE='#'
14761 SIM_ENABLE_ARCH_m32c_FALSE=
14762 fi
14763
14764
14765 sim_enable_arch_m32r=false
14766 case "${targ}" in
14767 all|m32r-*-*)
14768 if test "${targ}" = "${target}"; then
14769 SIM_PRIMARY_TARGET=m32r
14770 fi
14771 ENABLE_SIM=yes
14772 as_fn_append SIM_ENABLED_ARCHES " m32r"
14773
14774 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
14775
14776
14777 sim_enable_arch_m32r=true
14778 ;;
14779 esac
14780
14781
14782
14783
14784 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
14785 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
14786 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
14787 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
14788
14789 fi
14790
14791 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
14792
14793 if ${sim_enable_arch_m32r}; then
14794 SIM_ENABLE_ARCH_m32r_TRUE=
14795 SIM_ENABLE_ARCH_m32r_FALSE='#'
14796 else
14797 SIM_ENABLE_ARCH_m32r_TRUE='#'
14798 SIM_ENABLE_ARCH_m32r_FALSE=
14799 fi
14800
14801
14802 sim_enable_arch_m68hc11=false
14803 case "${targ}" in
14804 all|m68hc11-*-*|m6811-*-*)
14805 if test "${targ}" = "${target}"; then
14806 SIM_PRIMARY_TARGET=m68hc11
14807 fi
14808 ENABLE_SIM=yes
14809 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
14810
14811 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
14812
14813
14814 sim_enable_arch_m68hc11=true
14815 ;;
14816 esac
14817
14818
14819
14820
14821 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
14822 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
14823 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
14824 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
14825
14826 fi
14827
14828 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
14829
14830 if ${sim_enable_arch_m68hc11}; then
14831 SIM_ENABLE_ARCH_m68hc11_TRUE=
14832 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
14833 else
14834 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
14835 SIM_ENABLE_ARCH_m68hc11_FALSE=
14836 fi
14837
14838
14839 sim_enable_arch_mcore=false
14840 case "${targ}" in
14841 all|mcore-*-*)
14842 if test "${targ}" = "${target}"; then
14843 SIM_PRIMARY_TARGET=mcore
14844 fi
14845 ENABLE_SIM=yes
14846 as_fn_append SIM_ENABLED_ARCHES " mcore"
14847
14848 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
14849
14850
14851 sim_enable_arch_mcore=true
14852 ;;
14853 esac
14854
14855
14856
14857
14858 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
14859 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
14860 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
14861 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
14862
14863 fi
14864
14865 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
14866
14867 if ${sim_enable_arch_mcore}; then
14868 SIM_ENABLE_ARCH_mcore_TRUE=
14869 SIM_ENABLE_ARCH_mcore_FALSE='#'
14870 else
14871 SIM_ENABLE_ARCH_mcore_TRUE='#'
14872 SIM_ENABLE_ARCH_mcore_FALSE=
14873 fi
14874
14875
14876 sim_enable_arch_microblaze=false
14877 case "${targ}" in
14878 all|microblaze*-*-*)
14879 if test "${targ}" = "${target}"; then
14880 SIM_PRIMARY_TARGET=microblaze
14881 fi
14882 ENABLE_SIM=yes
14883 as_fn_append SIM_ENABLED_ARCHES " microblaze"
14884
14885 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
14886
14887
14888 sim_enable_arch_microblaze=true
14889 ;;
14890 esac
14891
14892
14893
14894
14895 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
14896 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
14897 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
14898 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
14899
14900 fi
14901
14902 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
14903
14904 if ${sim_enable_arch_microblaze}; then
14905 SIM_ENABLE_ARCH_microblaze_TRUE=
14906 SIM_ENABLE_ARCH_microblaze_FALSE='#'
14907 else
14908 SIM_ENABLE_ARCH_microblaze_TRUE='#'
14909 SIM_ENABLE_ARCH_microblaze_FALSE=
14910 fi
14911
14912
14913 sim_enable_arch_mips=false
14914 case "${targ}" in
14915 all|mips*-*-*)
14916 if test "${targ}" = "${target}"; then
14917 SIM_PRIMARY_TARGET=mips
14918 fi
14919 ENABLE_SIM=yes
14920 as_fn_append SIM_ENABLED_ARCHES " mips"
14921
14922 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
14923
14924
14925 sim_enable_arch_mips=true
14926 ;;
14927 esac
14928
14929
14930
14931
14932 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
14933 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
14934 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
14935 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
14936
14937 fi
14938
14939 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
14940
14941 if ${sim_enable_arch_mips}; then
14942 SIM_ENABLE_ARCH_mips_TRUE=
14943 SIM_ENABLE_ARCH_mips_FALSE='#'
14944 else
14945 SIM_ENABLE_ARCH_mips_TRUE='#'
14946 SIM_ENABLE_ARCH_mips_FALSE=
14947 fi
14948
14949
14950 sim_enable_arch_mn10300=false
14951 case "${targ}" in
14952 all|mn10300*-*-*)
14953 if test "${targ}" = "${target}"; then
14954 SIM_PRIMARY_TARGET=mn10300
14955 fi
14956 ENABLE_SIM=yes
14957 as_fn_append SIM_ENABLED_ARCHES " mn10300"
14958
14959 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
14960
14961
14962 sim_enable_arch_mn10300=true
14963 ;;
14964 esac
14965
14966
14967
14968
14969 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
14970 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
14971 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
14972 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
14973
14974 fi
14975
14976 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
14977
14978 if ${sim_enable_arch_mn10300}; then
14979 SIM_ENABLE_ARCH_mn10300_TRUE=
14980 SIM_ENABLE_ARCH_mn10300_FALSE='#'
14981 else
14982 SIM_ENABLE_ARCH_mn10300_TRUE='#'
14983 SIM_ENABLE_ARCH_mn10300_FALSE=
14984 fi
14985
14986
14987 sim_enable_arch_moxie=false
14988 case "${targ}" in
14989 all|moxie-*-*)
14990 if test "${targ}" = "${target}"; then
14991 SIM_PRIMARY_TARGET=moxie
14992 fi
14993 ENABLE_SIM=yes
14994 as_fn_append SIM_ENABLED_ARCHES " moxie"
14995
14996 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
14997
14998
14999 sim_enable_arch_moxie=true
15000 ;;
15001 esac
15002
15003
15004
15005
15006 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15007 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15008 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15009 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15010
15011 fi
15012
15013 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15014
15015 if ${sim_enable_arch_moxie}; then
15016 SIM_ENABLE_ARCH_moxie_TRUE=
15017 SIM_ENABLE_ARCH_moxie_FALSE='#'
15018 else
15019 SIM_ENABLE_ARCH_moxie_TRUE='#'
15020 SIM_ENABLE_ARCH_moxie_FALSE=
15021 fi
15022
15023
15024 sim_enable_arch_msp430=false
15025 case "${targ}" in
15026 all|msp430*-*-*)
15027 if test "${targ}" = "${target}"; then
15028 SIM_PRIMARY_TARGET=msp430
15029 fi
15030 ENABLE_SIM=yes
15031 as_fn_append SIM_ENABLED_ARCHES " msp430"
15032
15033 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15034
15035
15036 sim_enable_arch_msp430=true
15037 ;;
15038 esac
15039
15040
15041
15042
15043 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15044 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15045 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15046 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15047
15048 fi
15049
15050 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15051
15052 if ${sim_enable_arch_msp430}; then
15053 SIM_ENABLE_ARCH_msp430_TRUE=
15054 SIM_ENABLE_ARCH_msp430_FALSE='#'
15055 else
15056 SIM_ENABLE_ARCH_msp430_TRUE='#'
15057 SIM_ENABLE_ARCH_msp430_FALSE=
15058 fi
15059
15060
15061 sim_enable_arch_or1k=false
15062 case "${targ}" in
15063 all|or1k*-*-*)
15064 if test "${targ}" = "${target}"; then
15065 SIM_PRIMARY_TARGET=or1k
15066 fi
15067 ENABLE_SIM=yes
15068 as_fn_append SIM_ENABLED_ARCHES " or1k"
15069
15070 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15071
15072
15073 sim_enable_arch_or1k=true
15074 ;;
15075 esac
15076
15077
15078
15079
15080 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15081 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15082 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15083 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15084
15085 fi
15086
15087 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15088
15089 if ${sim_enable_arch_or1k}; then
15090 SIM_ENABLE_ARCH_or1k_TRUE=
15091 SIM_ENABLE_ARCH_or1k_FALSE='#'
15092 else
15093 SIM_ENABLE_ARCH_or1k_TRUE='#'
15094 SIM_ENABLE_ARCH_or1k_FALSE=
15095 fi
15096
15097
15098 sim_enable_arch_ppc=false
15099 case "${targ}" in
15100 all|powerpc*-*-*)
15101 if test "${targ}" = "${target}"; then
15102 SIM_PRIMARY_TARGET=ppc
15103 fi
15104 ENABLE_SIM=yes
15105 as_fn_append SIM_ENABLED_ARCHES " ppc"
15106
15107
15108 subdirs="$subdirs ppc"
15109
15110
15111 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15112
15113
15114 sim_enable_arch_ppc=true
15115 ;;
15116 esac
15117
15118
15119
15120
15121 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15122 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15123 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15124 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15125
15126 fi
15127
15128 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15129
15130 if ${sim_enable_arch_ppc}; then
15131 SIM_ENABLE_ARCH_ppc_TRUE=
15132 SIM_ENABLE_ARCH_ppc_FALSE='#'
15133 else
15134 SIM_ENABLE_ARCH_ppc_TRUE='#'
15135 SIM_ENABLE_ARCH_ppc_FALSE=
15136 fi
15137
15138
15139 sim_enable_arch_pru=false
15140 case "${targ}" in
15141 all|pru*-*-*)
15142 if test "${targ}" = "${target}"; then
15143 SIM_PRIMARY_TARGET=pru
15144 fi
15145 ENABLE_SIM=yes
15146 as_fn_append SIM_ENABLED_ARCHES " pru"
15147
15148 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15149
15150
15151 sim_enable_arch_pru=true
15152 ;;
15153 esac
15154
15155
15156
15157
15158 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15159 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15160 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15161 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15162
15163 fi
15164
15165 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15166
15167 if ${sim_enable_arch_pru}; then
15168 SIM_ENABLE_ARCH_pru_TRUE=
15169 SIM_ENABLE_ARCH_pru_FALSE='#'
15170 else
15171 SIM_ENABLE_ARCH_pru_TRUE='#'
15172 SIM_ENABLE_ARCH_pru_FALSE=
15173 fi
15174
15175
15176 sim_enable_arch_riscv=false
15177 case "${targ}" in
15178 all|riscv*-*-*)
15179 if test "${targ}" = "${target}"; then
15180 SIM_PRIMARY_TARGET=riscv
15181 fi
15182 ENABLE_SIM=yes
15183 as_fn_append SIM_ENABLED_ARCHES " riscv"
15184
15185 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15186
15187
15188 sim_enable_arch_riscv=true
15189 ;;
15190 esac
15191
15192
15193
15194
15195 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15196 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15197 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15198 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15199
15200 fi
15201
15202 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15203
15204 if ${sim_enable_arch_riscv}; then
15205 SIM_ENABLE_ARCH_riscv_TRUE=
15206 SIM_ENABLE_ARCH_riscv_FALSE='#'
15207 else
15208 SIM_ENABLE_ARCH_riscv_TRUE='#'
15209 SIM_ENABLE_ARCH_riscv_FALSE=
15210 fi
15211
15212
15213 sim_enable_arch_rl78=false
15214 case "${targ}" in
15215 all|rl78-*-*)
15216 if test "${targ}" = "${target}"; then
15217 SIM_PRIMARY_TARGET=rl78
15218 fi
15219 ENABLE_SIM=yes
15220 as_fn_append SIM_ENABLED_ARCHES " rl78"
15221
15222 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15223
15224
15225 sim_enable_arch_rl78=true
15226 ;;
15227 esac
15228
15229
15230
15231
15232 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15233 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15234 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15235 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15236
15237 fi
15238
15239 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15240
15241 if ${sim_enable_arch_rl78}; then
15242 SIM_ENABLE_ARCH_rl78_TRUE=
15243 SIM_ENABLE_ARCH_rl78_FALSE='#'
15244 else
15245 SIM_ENABLE_ARCH_rl78_TRUE='#'
15246 SIM_ENABLE_ARCH_rl78_FALSE=
15247 fi
15248
15249
15250 sim_enable_arch_rx=false
15251 case "${targ}" in
15252 all|rx-*-*)
15253 if test "${targ}" = "${target}"; then
15254 SIM_PRIMARY_TARGET=rx
15255 fi
15256 ENABLE_SIM=yes
15257 as_fn_append SIM_ENABLED_ARCHES " rx"
15258
15259 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15260
15261
15262 sim_enable_arch_rx=true
15263 ;;
15264 esac
15265
15266
15267
15268
15269 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15270 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15271 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15272 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15273
15274 fi
15275
15276 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15277
15278 if ${sim_enable_arch_rx}; then
15279 SIM_ENABLE_ARCH_rx_TRUE=
15280 SIM_ENABLE_ARCH_rx_FALSE='#'
15281 else
15282 SIM_ENABLE_ARCH_rx_TRUE='#'
15283 SIM_ENABLE_ARCH_rx_FALSE=
15284 fi
15285
15286
15287 sim_enable_arch_sh=false
15288 case "${targ}" in
15289 all|sh*-*-*)
15290 if test "${targ}" = "${target}"; then
15291 SIM_PRIMARY_TARGET=sh
15292 fi
15293 ENABLE_SIM=yes
15294 as_fn_append SIM_ENABLED_ARCHES " sh"
15295
15296 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15297
15298
15299 sim_enable_arch_sh=true
15300 ;;
15301 esac
15302
15303
15304
15305
15306 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15307 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15308 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15309 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15310
15311 fi
15312
15313 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15314
15315 if ${sim_enable_arch_sh}; then
15316 SIM_ENABLE_ARCH_sh_TRUE=
15317 SIM_ENABLE_ARCH_sh_FALSE='#'
15318 else
15319 SIM_ENABLE_ARCH_sh_TRUE='#'
15320 SIM_ENABLE_ARCH_sh_FALSE=
15321 fi
15322
15323
15324 sim_enable_arch_erc32=false
15325 case "${targ}" in
15326 all|sparc-*-*)
15327 if test "${targ}" = "${target}"; then
15328 SIM_PRIMARY_TARGET=erc32
15329 fi
15330 ENABLE_SIM=yes
15331 as_fn_append SIM_ENABLED_ARCHES " erc32"
15332
15333 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15334
15335
15336 sim_enable_arch_erc32=true
15337 ;;
15338 esac
15339
15340
15341
15342
15343 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15344 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15345 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15346 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15347
15348 fi
15349
15350 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15351
15352 if ${sim_enable_arch_erc32}; then
15353 SIM_ENABLE_ARCH_erc32_TRUE=
15354 SIM_ENABLE_ARCH_erc32_FALSE='#'
15355 else
15356 SIM_ENABLE_ARCH_erc32_TRUE='#'
15357 SIM_ENABLE_ARCH_erc32_FALSE=
15358 fi
15359
15360
15361 sim_enable_arch_v850=false
15362 case "${targ}" in
15363 all|v850*-*-*)
15364 if test "${targ}" = "${target}"; then
15365 SIM_PRIMARY_TARGET=v850
15366 fi
15367 ENABLE_SIM=yes
15368 as_fn_append SIM_ENABLED_ARCHES " v850"
15369
15370 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15371
15372
15373 sim_enable_arch_v850=true
15374 ;;
15375 esac
15376
15377
15378
15379
15380 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15381 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15382 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15383 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15384
15385 fi
15386
15387 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15388
15389 if ${sim_enable_arch_v850}; then
15390 SIM_ENABLE_ARCH_v850_TRUE=
15391 SIM_ENABLE_ARCH_v850_FALSE='#'
15392 else
15393 SIM_ENABLE_ARCH_v850_TRUE='#'
15394 SIM_ENABLE_ARCH_v850_FALSE=
15395 fi
15396
15397
15398 done
15399
15400 if test "x${enable_example_sims}" = xyes; then
15401
15402
15403
15404
15405 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15406 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15407 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15408
15409 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15410
15411 ENABLE_SIM=yes
15412 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15413
15414 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15415
15416
15417 fi
15418 if test "${enable_example_sims}" = "yes"; then
15419 SIM_ENABLE_ARCH_examples_TRUE=
15420 SIM_ENABLE_ARCH_examples_FALSE='#'
15421 else
15422 SIM_ENABLE_ARCH_examples_TRUE='#'
15423 SIM_ENABLE_ARCH_examples_FALSE=
15424 fi
15425
15426 fi
15427 if test "$ENABLE_SIM" = "yes"; then
15428 ENABLE_SIM_TRUE=
15429 ENABLE_SIM_FALSE='#'
15430 else
15431 ENABLE_SIM_TRUE='#'
15432 ENABLE_SIM_FALSE=
15433 fi
15434
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15437 $as_echo_n "checking whether to force sim alignment... " >&6; }
15438 sim_alignment=
15439 # Check whether --enable-sim-alignment was given.
15440 if test "${enable_sim_alignment+set}" = set; then :
15441 enableval=$enable_sim_alignment; case "${enableval}" in
15442 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15443 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15444 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15445 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15446 esac
15447 fi
15448
15449 cat >>confdefs.h <<_ACEOF
15450 #define WITH_ALIGNMENT ${sim_alignment:-0}
15451 _ACEOF
15452
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15454 $as_echo "${sim_alignment:-no}" >&6; }
15455
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15458 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15459 sim_assert="1"
15460 # Check whether --enable-sim-assert was given.
15461 if test "${enable_sim_assert+set}" = set; then :
15462 enableval=$enable_sim_assert; case "${enableval}" in
15463 yes) sim_assert="1";;
15464 no) sim_assert="0";;
15465 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15466 esac
15467 fi
15468
15469 cat >>confdefs.h <<_ACEOF
15470 #define WITH_ASSERT $sim_assert
15471 _ACEOF
15472
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15474 $as_echo "$sim_assert" >&6; }
15475
15476
15477 cgen_maint=no
15478 cgen=guile
15479 cgendir='$(srcdir)/../../cgen'
15480 if test -r ${srcdir}/../cgen/iformat.scm; then
15481 cgendir='$(srcdir)/../cgen'
15482 fi
15483 # Check whether --enable-cgen-maint was given.
15484 if test "${enable_cgen_maint+set}" = set; then :
15485 enableval=$enable_cgen_maint; case "${enableval}" in
15486 yes) cgen_maint=yes ;;
15487 no) cgen_maint=no ;;
15488 *)
15489 # Argument is a directory where cgen can be found. In some
15490 # future world cgen could be installable, but right now this
15491 # is not the case. Instead we assume the directory is a path
15492 # to the cgen source tree.
15493 cgen_maint=yes
15494 if test -r ${enableval}/iformat.scm; then
15495 # This looks like a cgen source tree.
15496 cgendir=${enableval}
15497 else
15498 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15499 fi
15500 ;;
15501 esac
15502 fi
15503 if test x${cgen_maint} != xno ; then
15504 CGEN_MAINT=''
15505 else
15506 CGEN_MAINT='#'
15507 fi
15508
15509
15510
15511
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15513 $as_echo_n "checking for sim debug setting... " >&6; }
15514 sim_debug="0"
15515 # Check whether --enable-sim-debug was given.
15516 if test "${enable_sim_debug+set}" = set; then :
15517 enableval=$enable_sim_debug; case "${enableval}" in
15518 yes) sim_debug="7";;
15519 no) sim_debug="0";;
15520 *) sim_debug="($enableval)";;
15521 esac
15522 fi
15523 if test "$sim_debug" != "0"; then
15524
15525 cat >>confdefs.h <<_ACEOF
15526 #define DEBUG $sim_debug
15527 _ACEOF
15528
15529 fi
15530
15531 cat >>confdefs.h <<_ACEOF
15532 #define WITH_DEBUG $sim_debug
15533 _ACEOF
15534
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15536 $as_echo "$sim_debug" >&6; }
15537
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15539 $as_echo_n "checking whether to force sim endianness... " >&6; }
15540 sim_endian=
15541 # Check whether --enable-sim-endian was given.
15542 if test "${enable_sim_endian+set}" = set; then :
15543 enableval=$enable_sim_endian; case "${enableval}" in
15544 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15545 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15546 yes | no) ;;
15547 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15548 esac
15549 fi
15550
15551 cat >>confdefs.h <<_ACEOF
15552 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15553 _ACEOF
15554
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15556 $as_echo "${sim_alignment:-no}" >&6; }
15557
15558
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15560 $as_echo_n "checking default sim environment setting... " >&6; }
15561 sim_environment="ALL_ENVIRONMENT"
15562 # Check whether --enable-sim-environment was given.
15563 if test "${enable_sim_environment+set}" = set; then :
15564 enableval=$enable_sim_environment; case "${enableval}" in
15565 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15566 user | USER) sim_environment="USER_ENVIRONMENT";;
15567 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15568 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15569 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15570 esac
15571 fi
15572
15573 cat >>confdefs.h <<_ACEOF
15574 #define WITH_ENVIRONMENT $sim_environment
15575 _ACEOF
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15578 $as_echo "$sim_environment" >&6; }
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15581 $as_echo_n "checking for sim hardware settings... " >&6; }
15582 # Check whether --enable-sim-hardware was given.
15583 if test "${enable_sim_hardware+set}" = set; then :
15584 enableval=$enable_sim_hardware;
15585 else
15586 enable_sim_hardware="yes"
15587 fi
15588
15589 sim_hw_sockser=
15590 if test "$enable_sim_hardware" = no; then
15591 sim_hw_cflags="-DWITH_HW=0"
15592 elif test "$enable_sim_hardware" = yes; then
15593 sim_hw_cflags="-DWITH_HW=1"
15594 sim_hw_sockser="dv-sockser.o"
15595 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15596 else
15597 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15598 fi
15599 if test "$enable_sim_hardware" = "yes"; then
15600 SIM_ENABLE_HW_TRUE=
15601 SIM_ENABLE_HW_FALSE='#'
15602 else
15603 SIM_ENABLE_HW_TRUE='#'
15604 SIM_ENABLE_HW_FALSE=
15605 fi
15606
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15608 $as_echo "${enable_sim_hardware}" >&6; }
15609 SIM_HW_CFLAGS=$sim_hw_cflags
15610
15611 SIM_HW_SOCKSER=$sim_hw_sockser
15612
15613
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15615 $as_echo_n "checking sim inline settings... " >&6; }
15616 sim_inline="-DDEFAULT_INLINE=0"
15617 # Check whether --enable-sim-inline was given.
15618 if test "${enable_sim_inline+set}" = set; then :
15619 enableval=$enable_sim_inline; sim_inline=""
15620 case "$enableval" in
15621 no) sim_inline="-DDEFAULT_INLINE=0";;
15622 0) sim_inline="-DDEFAULT_INLINE=0";;
15623 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15624 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15625 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15626 new_flag=""
15627 case "$x" in
15628 *_INLINE=*) new_flag="-D$x";;
15629 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15630 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15631 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15632 esac
15633 if test x"$sim_inline" = x""; then
15634 sim_inline="$new_flag"
15635 else
15636 sim_inline="$sim_inline $new_flag"
15637 fi
15638 done;;
15639 esac
15640
15641 fi
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15643 $as_echo "$sim_inline" >&6; }
15644 SIM_INLINE=$sim_inline
15645
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15648 $as_echo_n "checking for sim profile settings... " >&6; }
15649 profile="1"
15650 sim_profile="-1"
15651 # Check whether --enable-sim-profile was given.
15652 if test "${enable_sim_profile+set}" = set; then :
15653 enableval=$enable_sim_profile; case "${enableval}" in
15654 yes) profile="1" sim_profile="-1";;
15655 no) profile="0" sim_profile="0";;
15656 [-0-9]*)
15657 profile="(${enableval})" sim_profile="(${enableval})";;
15658 [a-z]*)
15659 profile="1"
15660 sim_profile=""
15661 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15662 if test x"$sim_profile" = x; then
15663 sim_profile="(PROFILE_$x"
15664 else
15665 sim_profile="${sim_profile}|PROFILE_$x"
15666 fi
15667 done
15668 sim_profile="$sim_profile)" ;;
15669 esac
15670 fi
15671
15672 cat >>confdefs.h <<_ACEOF
15673 #define PROFILE $profile
15674 _ACEOF
15675
15676
15677 cat >>confdefs.h <<_ACEOF
15678 #define WITH_PROFILE $sim_profile
15679 _ACEOF
15680
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
15682 $as_echo "$sim_profile" >&6; }
15683
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
15685 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
15686 # Check whether --enable-sim-reserved-bits was given.
15687 if test "${enable_sim_reserved_bits+set}" = set; then :
15688 enableval=$enable_sim_reserved_bits; case "${enableval}" in
15689 yes|no) ;;
15690 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
15691 esac
15692 fi
15693
15694 if test "x${enable_sim_reserved_bits}" != xno; then
15695 sim_reserved_bits=1
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15697 $as_echo "yes" >&6; }
15698 else
15699 sim_reserved_bits=0
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15701 $as_echo "no" >&6; }
15702 fi
15703
15704 cat >>confdefs.h <<_ACEOF
15705 #define WITH_RESERVED_BITS $sim_reserved_bits
15706 _ACEOF
15707
15708
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
15710 $as_echo_n "checking for sim cache size... " >&6; }
15711 sim_scache="16384"
15712 # Check whether --enable-sim-scache was given.
15713 if test "${enable_sim_scache+set}" = set; then :
15714 enableval=$enable_sim_scache; case "${enableval}" in
15715 yes) ;;
15716 no) sim_scache="0";;
15717 [0-9]*) sim_scache="${enableval}";;
15718 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
15719 esac
15720 fi
15721
15722
15723 cat >>confdefs.h <<_ACEOF
15724 #define WITH_SCACHE $sim_scache
15725 _ACEOF
15726
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
15728 $as_echo "$sim_scache" >&6; }
15729
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
15731 $as_echo_n "checking number of sim cpus to support... " >&6; }
15732 default_sim_smp="0"
15733 sim_smp="$default_sim_smp"
15734 # Check whether --enable-sim-smp was given.
15735 if test "${enable_sim_smp+set}" = set; then :
15736 enableval=$enable_sim_smp; case "${enableval}" in
15737 yes) sim_smp="5";;
15738 no) sim_smp="0";;
15739 *) sim_smp="$enableval";;
15740 esac
15741 fi
15742 IGEN_FLAGS_SMP="-N ${sim_smp}"
15743
15744 if test "x$sim_smp" = x0; then :
15745
15746 else
15747
15748 cat >>confdefs.h <<_ACEOF
15749 #define WITH_SMP $sim_smp
15750 _ACEOF
15751
15752 fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
15754 $as_echo "$sim_smp" >&6; }
15755
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
15757 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
15758 sim_stdio="0"
15759 # Check whether --enable-sim-stdio was given.
15760 if test "${enable_sim_stdio+set}" = set; then :
15761 enableval=$enable_sim_stdio; case "${enableval}" in
15762 yes) sim_stdio="DO_USE_STDIO";;
15763 no) sim_stdio="DONT_USE_STDIO";;
15764 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
15765 esac
15766 fi
15767
15768 cat >>confdefs.h <<_ACEOF
15769 #define WITH_STDIO $sim_stdio
15770 _ACEOF
15771
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
15773 $as_echo "$sim_stdio" >&6; }
15774
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
15776 $as_echo_n "checking for sim trace settings... " >&6; }
15777 sim_trace="~TRACE_debug"
15778 # Check whether --enable-sim-trace was given.
15779 if test "${enable_sim_trace+set}" = set; then :
15780 enableval=$enable_sim_trace; case "${enableval}" in
15781 yes) sim_trace="-1";;
15782 no) sim_trace="0";;
15783 [-0-9]*)
15784 sim_trace="'(${enableval})'";;
15785 [[:lower:]]*)
15786 sim_trace=""
15787 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15788 if test x"$sim_trace" = x; then
15789 sim_trace="(TRACE_$x"
15790 else
15791 sim_trace="${sim_trace}|TRACE_$x"
15792 fi
15793 done
15794 sim_trace="$sim_trace)" ;;
15795 esac
15796 fi
15797
15798 cat >>confdefs.h <<_ACEOF
15799 #define WITH_TRACE $sim_trace
15800 _ACEOF
15801
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
15803 $as_echo "$sim_trace" >&6; }
15804
15805 # Check whether --enable-werror was given.
15806 if test "${enable_werror+set}" = set; then :
15807 enableval=$enable_werror; case "${enableval}" in
15808 yes | y) ERROR_ON_WARNING="yes" ;;
15809 no | n) ERROR_ON_WARNING="no" ;;
15810 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15811 esac
15812 fi
15813
15814
15815 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15816 ERROR_ON_WARNING=yes
15817 fi
15818
15819 WERROR_CFLAGS=""
15820 if test "${ERROR_ON_WARNING}" = yes ; then
15821 WERROR_CFLAGS="-Werror"
15822 fi
15823
15824 build_warnings="-Wall -Wpointer-arith
15825 -Wno-unused -Wunused-value -Wunused-function
15826 -Wno-switch -Wno-char-subscripts
15827 -Wempty-body -Wunused-but-set-parameter
15828 -Wno-sign-compare -Wno-error=maybe-uninitialized
15829 -Wno-error=deprecated-register
15830 -Wmissing-declarations
15831 "
15832 build_warnings="$build_warnings
15833 -Wdeclaration-after-statement
15834 -Wdeprecated-non-prototype
15835 -Wimplicit-function-declaration
15836 -Wimplicit-int
15837 -Wincompatible-function-pointer-types
15838 -Wincompatible-pointer-types
15839 -Wmisleading-indentation
15840 -Wmissing-parameter-type
15841 -Wmissing-prototypes
15842 -Wold-style-declaration
15843 -Wold-style-definition
15844 -Wpointer-sign
15845 "
15846
15847 case "${host}" in
15848 *-*-mingw32*)
15849 # Enable -Wno-format by default when using gcc on mingw since many
15850 # GCC versions complain about %I64.
15851 build_warnings="$build_warnings -Wno-format" ;;
15852 *-*-solaris*)
15853 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15854 # doesn't understand.
15855 build_warnings="$build_warnings -Wno-unknown-pragmas"
15856 # Solaris 11 <unistd.h> marks vfork deprecated.
15857 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
15858 *)
15859 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15860 # but there's a special case for this below.
15861 build_warnings="$build_warnings -Wformat-nonliteral" ;;
15862 esac
15863
15864 # Check whether --enable-build-warnings was given.
15865 if test "${enable_build_warnings+set}" = set; then :
15866 enableval=$enable_build_warnings; case "${enableval}" in
15867 yes) ;;
15868 no) build_warnings="-w";;
15869 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15870 build_warnings="${build_warnings} ${t}";;
15871 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15872 build_warnings="${t} ${build_warnings}";;
15873 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15874 esac
15875 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15876 echo "Setting compiler warning flags = $build_warnings" 6>&1
15877 fi
15878 fi
15879 # Check whether --enable-sim-build-warnings was given.
15880 if test "${enable_sim_build_warnings+set}" = set; then :
15881 enableval=$enable_sim_build_warnings; case "${enableval}" in
15882 yes) ;;
15883 no) build_warnings="-w";;
15884 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15885 build_warnings="${build_warnings} ${t}";;
15886 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15887 build_warnings="${t} ${build_warnings}";;
15888 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15889 esac
15890 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15891 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15892 fi
15893 fi
15894 WARN_CFLAGS=""
15895 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15896 then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15898 $as_echo_n "checking compiler warning flags... " >&6; }
15899 # Separate out the -Werror flag as some files just cannot be
15900 # compiled with it enabled.
15901 for w in ${build_warnings}; do
15902 # GCC does not complain about -Wno-unknown-warning. Invert
15903 # and test -Wunknown-warning instead.
15904 case $w in
15905 -Wno-*)
15906 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
15907 -Wformat-nonliteral)
15908 # gcc requires -Wformat before -Wformat-nonliteral
15909 # will work, so stick them together.
15910 w="-Wformat $w"
15911 wtest="$w"
15912 ;;
15913 *)
15914 wtest=$w ;;
15915 esac
15916
15917 case $w in
15918 -Werr*) WERROR_CFLAGS=-Werror ;;
15919 *)
15920 # Check whether GCC accepts it.
15921 saved_CFLAGS="$CFLAGS"
15922 CFLAGS="$CFLAGS -Werror $wtest"
15923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925
15926 int
15927 main ()
15928 {
15929
15930 ;
15931 return 0;
15932 }
15933 _ACEOF
15934 if ac_fn_c_try_compile "$LINENO"; then :
15935 WARN_CFLAGS="${WARN_CFLAGS} $w"
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 CFLAGS="$saved_CFLAGS"
15939 esac
15940 done
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15942 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15943 fi
15944
15945
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
15947 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
15948 # Check whether --enable-sim-frv-trapdump was given.
15949 if test "${enable_sim_frv_trapdump+set}" = set; then :
15950 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
15951 yes|no) ;;
15952 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
15953 esac
15954 fi
15955
15956 if test "x${enable_sim_frv_trapdump}" = xyes; then
15957 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959 $as_echo "yes" >&6; }
15960 else
15961 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15963 $as_echo "no" >&6; }
15964 fi
15965
15966
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
15969 $as_echo_n "checking mips subtarget... " >&6; }
15970 SIM_MIPS_SUBTARGET=
15971 case ${target} in #(
15972 mips64vr*-*-*) :
15973 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15974 mips*tx39*) :
15975 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
15976 mips*-sde-elf*) :
15977 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15978 mips*-mti-elf*) :
15979 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15980 mipsisa32*-*-*) :
15981 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15982 mipsisa64*-*-*) :
15983 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15984 *) :
15985 ;;
15986 esac
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
15988 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
15989
15990
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
15992 $as_echo_n "checking mips bitsize... " >&6; }
15993 SIM_MIPS_BITSIZE=64
15994 case ${target} in #(
15995 mips*-sde-elf*) :
15996 SIM_MIPS_BITSIZE=64 ;; #(
15997 mips*-mti-elf*) :
15998 SIM_MIPS_BITSIZE=64 ;; #(
15999 mips64*-*-*) :
16000 SIM_MIPS_BITSIZE=64 ;; #(
16001 mips16*-*-*) :
16002 SIM_MIPS_BITSIZE=64 ;; #(
16003 mipsisa32*-*-*) :
16004 SIM_MIPS_BITSIZE=32 ;; #(
16005 mipsisa64*-*-*) :
16006 SIM_MIPS_BITSIZE=64 ;; #(
16007 mips*-*-*) :
16008 SIM_MIPS_BITSIZE=32 ;; #(
16009 *) :
16010 ;;
16011 esac
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
16013 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
16014
16015
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
16017 $as_echo_n "checking mips fpu bitsize... " >&6; }
16018 SIM_MIPS_FPU_BITSIZE=64
16019 case ${target} in #(
16020 mips*tx39*) :
16021 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16022 mips*-sde-elf*) :
16023 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16024 mips*-mti-elf*) :
16025 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16026 mipsisa32*-*-*) :
16027 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16028 mipsisa64*-*-*) :
16029 SIM_MIPS_FPU_BITSIZE=64 ;; #(
16030 mips*-*-*) :
16031 SIM_MIPS_FPU_BITSIZE=32 ;; #(
16032 *) :
16033 ;;
16034 esac
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
16036 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
16037
16038
16039 SIM_MIPS_GEN=SINGLE
16040 sim_mips_single_machine="-M mipsIV"
16041 sim_mips_m16_machine="-M mips16,mipsIII"
16042 sim_mips_single_filter="32,64,f"
16043 sim_mips_m16_filter="16"
16044 case ${target} in #(
16045 mips*tx39*) :
16046 SIM_MIPS_GEN=SINGLE
16047 sim_mips_single_filter="32,f"
16048 sim_mips_single_machine="-M r3900" ;; #(
16049 mips64vr41*) :
16050 SIM_MIPS_GEN=M16
16051 sim_mips_single_machine="-M vr4100"
16052 sim_mips_m16_machine="-M vr4100" ;; #(
16053 mips64*) :
16054 SIM_MIPS_GEN=MULTI
16055 sim_mips_multi_configs="\
16056 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
16057 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
16058 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
16059 vr5400:mipsIV,vr5400:32,64,f:mips5400\
16060 vr5500:mipsIV,vr5500:32,64,f:mips5500"
16061 sim_mips_multi_default=mips5000 ;; #(
16062 mips*-sde-elf* | mips*-mti-elf*) :
16063 SIM_MIPS_GEN=MULTI
16064 sim_mips_multi_configs="\
16065 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
16066 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
16067 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
16068 sim_mips_multi_default=mipsisa64r2 ;; #(
16069 mips16*) :
16070 SIM_MIPS_GEN=M16 ;; #(
16071 mipsisa32r2*) :
16072 SIM_MIPS_GEN=MULTI
16073 sim_mips_multi_configs="\
16074 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16075 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16076 sim_mips_multi_default=mipsisa32r2 ;; #(
16077 mipsisa32r6*) :
16078 SIM_MIPS_GEN=SINGLE
16079 sim_mips_single_machine="-M mips32r6"
16080 sim_mips_single_filter="32,f" ;; #(
16081 mipsisa32*) :
16082 SIM_MIPS_GEN=M16
16083 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16084 sim_mips_m16_machine="-M mips16,mips16e,mips32"
16085 sim_mips_single_filter="32,f" ;; #(
16086 mipsisa64r2*) :
16087 SIM_MIPS_GEN=M16
16088 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16089 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16090 mipsisa64r6*) :
16091 SIM_MIPS_GEN=SINGLE
16092 sim_mips_single_machine="-M mips64r6" ;; #(
16093 mipsisa64sb1*) :
16094 SIM_MIPS_GEN=SINGLE
16095 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16096 mipsisa64*) :
16097 SIM_MIPS_GEN=M16
16098 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16099 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16100 mips*lsi*) :
16101 SIM_MIPS_GEN=M16
16102 sim_mips_single_machine="-M mipsIII,mips16"
16103 sim_mips_m16_machine="-M mips16,mipsIII"
16104 sim_mips_single_filter="32,f" ;; #(
16105 mips*) :
16106 SIM_MIPS_GEN=SINGLE
16107 sim_mips_single_filter="32,f" ;; #(
16108 *) :
16109 ;;
16110 esac
16111
16112 SIM_MIPS_IGEN_ITABLE_FLAGS=
16113 SIM_MIPS_MULTI_SRC=
16114 SIM_MIPS_MULTI_OBJ=
16115 SIM_MIPS_MULTI_IGEN_CONFIGS=
16116 if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16117 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16118 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16119 fi
16120
16121 as_dir=mips; as_fn_mkdir_p
16122 rm -f mips/multi-include.h mips/multi-run.c
16123 sim_mips_seen_default=no
16124
16125 cat << __EOF__ > mips/multi-run.c
16126 /* Main entry point for MULTI simulators.
16127 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16128
16129 This program is free software; you can redistribute it and/or modify
16130 it under the terms of the GNU General Public License as published by
16131 the Free Software Foundation; either version 3 of the License, or
16132 (at your option) any later version.
16133
16134 This program is distributed in the hope that it will be useful,
16135 but WITHOUT ANY WARRANTY; without even the implied warranty of
16136 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16137 GNU General Public License for more details.
16138
16139 You should have received a copy of the GNU General Public License
16140 along with this program. If not, see <http://www.gnu.org/licenses/>.
16141
16142 --
16143
16144 This file was generated by sim/mips/configure. */
16145
16146 #include "sim-main.h"
16147 #include "multi-include.h"
16148 #include "bfd/elf-bfd.h"
16149 #include "bfd/elfxx-mips.h"
16150 #include "elf/mips.h"
16151
16152 #define SD sd
16153 #define CPU cpu
16154
16155 void
16156 sim_engine_run (SIM_DESC sd,
16157 int next_cpu_nr,
16158 int nr_cpus,
16159 int signal) /* ignore */
16160 {
16161 int mach;
16162
16163 if (STATE_ARCHITECTURE (sd) == NULL)
16164 mach = bfd_mach_${sim_mips_multi_default};
16165 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16166 & EF_MIPS_ARCH_ASE_MICROMIPS)
16167 mach = bfd_mach_mips_micromips;
16168 else
16169 {
16170 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16171 if (!mach)
16172 mach = STATE_ARCHITECTURE (SD)->mach;
16173 }
16174
16175 switch (mach)
16176 {
16177 __EOF__
16178
16179 for fc in ${sim_mips_multi_configs}; do
16180
16181 c=`echo ${fc} | sed 's/:[^:]*$//'`
16182 bfdmachs=`echo ${fc} | sed 's/.*://'`
16183 name=`echo ${c} | sed 's/:.*//'`
16184 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16185 filter=`echo ${c} | sed 's/.*://'`
16186
16187 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16188
16189 case ${c} in #(
16190 *:*mips16*:*) :
16191 ws="m32 m16"
16192
16193 as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
16194 as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
16195 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16196 ;; #(
16197 *:*micromips32*:*) :
16198 ws="micromips_m32 micromips16 micromips32"
16199
16200 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16201 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16202 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16203 ;; #(
16204 *:*micromips64*:*) :
16205 ws="micromips_m64 micromips16 micromips64"
16206
16207 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16208 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16209 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16210 ;; #(
16211 *) :
16212 ws=m32 ;;
16213 esac
16214
16215 for w in ${ws}; do
16216 for base in engine icache idecode model semantics support; do
16217 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
16218 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
16219 as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
16220 done
16221 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16222 done
16223
16224 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16225
16226 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16227 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16228 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16229 echo " default:" >> mips/multi-run.c
16230 sim_mips_seen_default=yes
16231
16232 fi
16233 done
16234 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16235 >> mips/multi-run.c
16236 echo " break;" >> mips/multi-run.c
16237 done
16238
16239 if test "x$sim_mips_seen_default" = xno; then :
16240 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16241 fi
16242
16243 cat << __EOF__ >> mips/multi-run.c
16244 }
16245 }
16246 __EOF__
16247
16248 else
16249 SIM_MIPS_MULTI_SRC=mips/doesnt-exist.c
16250 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
16251 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16252 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16253 fi
16254
16255 fi
16256 SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16257 SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16258
16259
16260
16261
16262
16263
16264
16265 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16266 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16267 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16268 else
16269 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16270 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16271 fi
16272
16273 if test "$SIM_MIPS_GEN" = "M16"; then
16274 SIM_MIPS_GEN_MODE_M16_TRUE=
16275 SIM_MIPS_GEN_MODE_M16_FALSE='#'
16276 else
16277 SIM_MIPS_GEN_MODE_M16_TRUE='#'
16278 SIM_MIPS_GEN_MODE_M16_FALSE=
16279 fi
16280
16281 if test "$SIM_MIPS_GEN" = "MULTI"; then
16282 SIM_MIPS_GEN_MODE_MULTI_TRUE=
16283 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
16284 else
16285 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
16286 SIM_MIPS_GEN_MODE_MULTI_FALSE=
16287 fi
16288
16289
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16291 $as_echo_n "checking riscv bitsize... " >&6; }
16292 SIM_RISCV_BITSIZE=64
16293 case $target in #(
16294 riscv32*) :
16295 SIM_RISCV_BITSIZE=32 ;; #(
16296 *) :
16297 ;;
16298 esac
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16300 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16301
16302
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16304 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16305 # Check whether --enable-sim-rx-cycle-accurate was given.
16306 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16307 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16308 yes | no) ;;
16309 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16310 esac
16311 fi
16312
16313 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16314 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16316 $as_echo "yes" >&6; }
16317 else
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16319 $as_echo "no" >&6; }
16320 fi
16321
16322
16323
16324 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16325
16326 cat >confcache <<\_ACEOF
16327 # This file is a shell script that caches the results of configure
16328 # tests run on this system so they can be shared between configure
16329 # scripts and configure runs, see configure's option --config-cache.
16330 # It is not useful on other systems. If it contains results you don't
16331 # want to keep, you may remove or edit it.
16332 #
16333 # config.status only pays attention to the cache file if you give it
16334 # the --recheck option to rerun configure.
16335 #
16336 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16337 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16338 # following values.
16339
16340 _ACEOF
16341
16342 # The following way of writing the cache mishandles newlines in values,
16343 # but we know of no workaround that is simple, portable, and efficient.
16344 # So, we kill variables containing newlines.
16345 # Ultrix sh set writes to stderr and can't be redirected directly,
16346 # and sets the high bit in the cache file unless we assign to the vars.
16347 (
16348 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16349 eval ac_val=\$$ac_var
16350 case $ac_val in #(
16351 *${as_nl}*)
16352 case $ac_var in #(
16353 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16354 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16355 esac
16356 case $ac_var in #(
16357 _ | IFS | as_nl) ;; #(
16358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16359 *) { eval $ac_var=; unset $ac_var;} ;;
16360 esac ;;
16361 esac
16362 done
16363
16364 (set) 2>&1 |
16365 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16366 *${as_nl}ac_space=\ *)
16367 # `set' does not quote correctly, so add quotes: double-quote
16368 # substitution turns \\\\ into \\, and sed turns \\ into \.
16369 sed -n \
16370 "s/'/'\\\\''/g;
16371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16372 ;; #(
16373 *)
16374 # `set' quotes correctly as required by POSIX, so do not add quotes.
16375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16376 ;;
16377 esac |
16378 sort
16379 ) |
16380 sed '
16381 /^ac_cv_env_/b end
16382 t clear
16383 :clear
16384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16385 t end
16386 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16387 :end' >>confcache
16388 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16389 if test -w "$cache_file"; then
16390 if test "x$cache_file" != "x/dev/null"; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16392 $as_echo "$as_me: updating cache $cache_file" >&6;}
16393 if test ! -f "$cache_file" || test -h "$cache_file"; then
16394 cat confcache >"$cache_file"
16395 else
16396 case $cache_file in #(
16397 */* | ?:*)
16398 mv -f confcache "$cache_file"$$ &&
16399 mv -f "$cache_file"$$ "$cache_file" ;; #(
16400 *)
16401 mv -f confcache "$cache_file" ;;
16402 esac
16403 fi
16404 fi
16405 else
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16407 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16408 fi
16409 fi
16410 rm -f confcache
16411
16412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16413 # Let make expand exec_prefix.
16414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16415
16416 DEFS=-DHAVE_CONFIG_H
16417
16418 ac_libobjs=
16419 ac_ltlibobjs=
16420 U=
16421 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16422 # 1. Remove the extension, and $U if already installed.
16423 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16424 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16425 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16426 # will be set to the directory where LIBOBJS objects are built.
16427 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16428 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16429 done
16430 LIBOBJS=$ac_libobjs
16431
16432 LTLIBOBJS=$ac_ltlibobjs
16433
16434
16435
16436 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16437 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16439 fi
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16441 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16442 if test -n "$am_sleep_pid"; then
16443 # Hide warnings about reused PIDs.
16444 wait $am_sleep_pid 2>/dev/null
16445 fi
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16447 $as_echo "done" >&6; }
16448 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16449 as_fn_error $? "conditional \"AMDEP\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451 fi
16452 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16453 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 fi
16456 if test -n "$EXEEXT"; then
16457 am__EXEEXT_TRUE=
16458 am__EXEEXT_FALSE='#'
16459 else
16460 am__EXEEXT_TRUE='#'
16461 am__EXEEXT_FALSE=
16462 fi
16463
16464 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16465 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 fi
16468 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16469 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 fi
16472 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16473 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 fi
16476 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16477 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 fi
16480 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16481 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 fi
16484 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16485 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 fi
16488 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16489 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 fi
16492 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16493 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 fi
16496 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16497 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 fi
16500 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16501 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 fi
16504 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16505 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507 fi
16508 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16509 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 fi
16512 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16513 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16515 fi
16516 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16517 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16519 fi
16520 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16521 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 fi
16524 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16525 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 fi
16528 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16529 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 fi
16532 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16533 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 fi
16536 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16537 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 fi
16540 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16541 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 fi
16544 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16545 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547 fi
16548 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16549 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 fi
16552 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16553 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555 fi
16556 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16557 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559 fi
16560 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16561 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563 fi
16564 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16565 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 fi
16568 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16569 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 fi
16572 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16573 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 fi
16576 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16577 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 fi
16580 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16581 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 fi
16584 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16585 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 fi
16588 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16589 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 fi
16592 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16593 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 fi
16596 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16597 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 fi
16600 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
16601 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603 fi
16604 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
16605 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607 fi
16608 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
16609 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16611 fi
16612
16613 : "${CONFIG_STATUS=./config.status}"
16614 ac_write_fail=0
16615 ac_clean_files_save=$ac_clean_files
16616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16618 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16619 as_write_fail=0
16620 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16621 #! $SHELL
16622 # Generated by $as_me.
16623 # Run this file to recreate the current configuration.
16624 # Compiler output produced by configure, useful for debugging
16625 # configure, is in config.log if it exists.
16626
16627 debug=false
16628 ac_cs_recheck=false
16629 ac_cs_silent=false
16630
16631 SHELL=\${CONFIG_SHELL-$SHELL}
16632 export SHELL
16633 _ASEOF
16634 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16635 ## -------------------- ##
16636 ## M4sh Initialization. ##
16637 ## -------------------- ##
16638
16639 # Be more Bourne compatible
16640 DUALCASE=1; export DUALCASE # for MKS sh
16641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16642 emulate sh
16643 NULLCMD=:
16644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16645 # is contrary to our usage. Disable this feature.
16646 alias -g '${1+"$@"}'='"$@"'
16647 setopt NO_GLOB_SUBST
16648 else
16649 case `(set -o) 2>/dev/null` in #(
16650 *posix*) :
16651 set -o posix ;; #(
16652 *) :
16653 ;;
16654 esac
16655 fi
16656
16657
16658 as_nl='
16659 '
16660 export as_nl
16661 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16662 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16665 # Prefer a ksh shell builtin over an external printf program on Solaris,
16666 # but without wasting forks for bash or zsh.
16667 if test -z "$BASH_VERSION$ZSH_VERSION" \
16668 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16669 as_echo='print -r --'
16670 as_echo_n='print -rn --'
16671 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16672 as_echo='printf %s\n'
16673 as_echo_n='printf %s'
16674 else
16675 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16676 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16677 as_echo_n='/usr/ucb/echo -n'
16678 else
16679 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16680 as_echo_n_body='eval
16681 arg=$1;
16682 case $arg in #(
16683 *"$as_nl"*)
16684 expr "X$arg" : "X\\(.*\\)$as_nl";
16685 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16686 esac;
16687 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16688 '
16689 export as_echo_n_body
16690 as_echo_n='sh -c $as_echo_n_body as_echo'
16691 fi
16692 export as_echo_body
16693 as_echo='sh -c $as_echo_body as_echo'
16694 fi
16695
16696 # The user is always right.
16697 if test "${PATH_SEPARATOR+set}" != set; then
16698 PATH_SEPARATOR=:
16699 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16700 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16701 PATH_SEPARATOR=';'
16702 }
16703 fi
16704
16705
16706 # IFS
16707 # We need space, tab and new line, in precisely that order. Quoting is
16708 # there to prevent editors from complaining about space-tab.
16709 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16710 # splitting by setting IFS to empty value.)
16711 IFS=" "" $as_nl"
16712
16713 # Find who we are. Look in the path if we contain no directory separator.
16714 as_myself=
16715 case $0 in #((
16716 *[\\/]* ) as_myself=$0 ;;
16717 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16718 for as_dir in $PATH
16719 do
16720 IFS=$as_save_IFS
16721 test -z "$as_dir" && as_dir=.
16722 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16723 done
16724 IFS=$as_save_IFS
16725
16726 ;;
16727 esac
16728 # We did not find ourselves, most probably we were run as `sh COMMAND'
16729 # in which case we are not to be found in the path.
16730 if test "x$as_myself" = x; then
16731 as_myself=$0
16732 fi
16733 if test ! -f "$as_myself"; then
16734 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16735 exit 1
16736 fi
16737
16738 # Unset variables that we do not need and which cause bugs (e.g. in
16739 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16740 # suppresses any "Segmentation fault" message there. '((' could
16741 # trigger a bug in pdksh 5.2.14.
16742 for as_var in BASH_ENV ENV MAIL MAILPATH
16743 do eval test x\${$as_var+set} = xset \
16744 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16745 done
16746 PS1='$ '
16747 PS2='> '
16748 PS4='+ '
16749
16750 # NLS nuisances.
16751 LC_ALL=C
16752 export LC_ALL
16753 LANGUAGE=C
16754 export LANGUAGE
16755
16756 # CDPATH.
16757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16758
16759
16760 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16761 # ----------------------------------------
16762 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16763 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16764 # script with STATUS, using 1 if that was 0.
16765 as_fn_error ()
16766 {
16767 as_status=$1; test $as_status -eq 0 && as_status=1
16768 if test "$4"; then
16769 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16770 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16771 fi
16772 $as_echo "$as_me: error: $2" >&2
16773 as_fn_exit $as_status
16774 } # as_fn_error
16775
16776
16777 # as_fn_set_status STATUS
16778 # -----------------------
16779 # Set $? to STATUS, without forking.
16780 as_fn_set_status ()
16781 {
16782 return $1
16783 } # as_fn_set_status
16784
16785 # as_fn_exit STATUS
16786 # -----------------
16787 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16788 as_fn_exit ()
16789 {
16790 set +e
16791 as_fn_set_status $1
16792 exit $1
16793 } # as_fn_exit
16794
16795 # as_fn_unset VAR
16796 # ---------------
16797 # Portably unset VAR.
16798 as_fn_unset ()
16799 {
16800 { eval $1=; unset $1;}
16801 }
16802 as_unset=as_fn_unset
16803 # as_fn_append VAR VALUE
16804 # ----------------------
16805 # Append the text in VALUE to the end of the definition contained in VAR. Take
16806 # advantage of any shell optimizations that allow amortized linear growth over
16807 # repeated appends, instead of the typical quadratic growth present in naive
16808 # implementations.
16809 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16810 eval 'as_fn_append ()
16811 {
16812 eval $1+=\$2
16813 }'
16814 else
16815 as_fn_append ()
16816 {
16817 eval $1=\$$1\$2
16818 }
16819 fi # as_fn_append
16820
16821 # as_fn_arith ARG...
16822 # ------------------
16823 # Perform arithmetic evaluation on the ARGs, and store the result in the
16824 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16825 # must be portable across $(()) and expr.
16826 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16827 eval 'as_fn_arith ()
16828 {
16829 as_val=$(( $* ))
16830 }'
16831 else
16832 as_fn_arith ()
16833 {
16834 as_val=`expr "$@" || test $? -eq 1`
16835 }
16836 fi # as_fn_arith
16837
16838
16839 if expr a : '\(a\)' >/dev/null 2>&1 &&
16840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16841 as_expr=expr
16842 else
16843 as_expr=false
16844 fi
16845
16846 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16847 as_basename=basename
16848 else
16849 as_basename=false
16850 fi
16851
16852 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16853 as_dirname=dirname
16854 else
16855 as_dirname=false
16856 fi
16857
16858 as_me=`$as_basename -- "$0" ||
16859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16860 X"$0" : 'X\(//\)$' \| \
16861 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16862 $as_echo X/"$0" |
16863 sed '/^.*\/\([^/][^/]*\)\/*$/{
16864 s//\1/
16865 q
16866 }
16867 /^X\/\(\/\/\)$/{
16868 s//\1/
16869 q
16870 }
16871 /^X\/\(\/\).*/{
16872 s//\1/
16873 q
16874 }
16875 s/.*/./; q'`
16876
16877 # Avoid depending upon Character Ranges.
16878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16881 as_cr_digits='0123456789'
16882 as_cr_alnum=$as_cr_Letters$as_cr_digits
16883
16884 ECHO_C= ECHO_N= ECHO_T=
16885 case `echo -n x` in #(((((
16886 -n*)
16887 case `echo 'xy\c'` in
16888 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16889 xy) ECHO_C='\c';;
16890 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16891 ECHO_T=' ';;
16892 esac;;
16893 *)
16894 ECHO_N='-n';;
16895 esac
16896
16897 rm -f conf$$ conf$$.exe conf$$.file
16898 if test -d conf$$.dir; then
16899 rm -f conf$$.dir/conf$$.file
16900 else
16901 rm -f conf$$.dir
16902 mkdir conf$$.dir 2>/dev/null
16903 fi
16904 if (echo >conf$$.file) 2>/dev/null; then
16905 if ln -s conf$$.file conf$$ 2>/dev/null; then
16906 as_ln_s='ln -s'
16907 # ... but there are two gotchas:
16908 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16909 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16910 # In both cases, we have to default to `cp -pR'.
16911 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16912 as_ln_s='cp -pR'
16913 elif ln conf$$.file conf$$ 2>/dev/null; then
16914 as_ln_s=ln
16915 else
16916 as_ln_s='cp -pR'
16917 fi
16918 else
16919 as_ln_s='cp -pR'
16920 fi
16921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16922 rmdir conf$$.dir 2>/dev/null
16923
16924
16925 # as_fn_mkdir_p
16926 # -------------
16927 # Create "$as_dir" as a directory, including parents if necessary.
16928 as_fn_mkdir_p ()
16929 {
16930
16931 case $as_dir in #(
16932 -*) as_dir=./$as_dir;;
16933 esac
16934 test -d "$as_dir" || eval $as_mkdir_p || {
16935 as_dirs=
16936 while :; do
16937 case $as_dir in #(
16938 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16939 *) as_qdir=$as_dir;;
16940 esac
16941 as_dirs="'$as_qdir' $as_dirs"
16942 as_dir=`$as_dirname -- "$as_dir" ||
16943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16944 X"$as_dir" : 'X\(//\)[^/]' \| \
16945 X"$as_dir" : 'X\(//\)$' \| \
16946 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16947 $as_echo X"$as_dir" |
16948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16949 s//\1/
16950 q
16951 }
16952 /^X\(\/\/\)[^/].*/{
16953 s//\1/
16954 q
16955 }
16956 /^X\(\/\/\)$/{
16957 s//\1/
16958 q
16959 }
16960 /^X\(\/\).*/{
16961 s//\1/
16962 q
16963 }
16964 s/.*/./; q'`
16965 test -d "$as_dir" && break
16966 done
16967 test -z "$as_dirs" || eval "mkdir $as_dirs"
16968 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16969
16970
16971 } # as_fn_mkdir_p
16972 if mkdir -p . 2>/dev/null; then
16973 as_mkdir_p='mkdir -p "$as_dir"'
16974 else
16975 test -d ./-p && rmdir ./-p
16976 as_mkdir_p=false
16977 fi
16978
16979
16980 # as_fn_executable_p FILE
16981 # -----------------------
16982 # Test if FILE is an executable regular file.
16983 as_fn_executable_p ()
16984 {
16985 test -f "$1" && test -x "$1"
16986 } # as_fn_executable_p
16987 as_test_x='test -x'
16988 as_executable_p=as_fn_executable_p
16989
16990 # Sed expression to map a string onto a valid CPP name.
16991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16992
16993 # Sed expression to map a string onto a valid variable name.
16994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16995
16996
16997 exec 6>&1
16998 ## ----------------------------------- ##
16999 ## Main body of $CONFIG_STATUS script. ##
17000 ## ----------------------------------- ##
17001 _ASEOF
17002 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17003
17004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17005 # Save the log message, to keep $0 and so on meaningful, and to
17006 # report actual input values of CONFIG_FILES etc. instead of their
17007 # values after options handling.
17008 ac_log="
17009 This file was extended by sim $as_me 0, which was
17010 generated by GNU Autoconf 2.69. Invocation command line was
17011
17012 CONFIG_FILES = $CONFIG_FILES
17013 CONFIG_HEADERS = $CONFIG_HEADERS
17014 CONFIG_LINKS = $CONFIG_LINKS
17015 CONFIG_COMMANDS = $CONFIG_COMMANDS
17016 $ $0 $@
17017
17018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17019 "
17020
17021 _ACEOF
17022
17023 case $ac_config_files in *"
17024 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17025 esac
17026
17027 case $ac_config_headers in *"
17028 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17029 esac
17030
17031
17032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17033 # Files that config.status was made for.
17034 config_files="$ac_config_files"
17035 config_headers="$ac_config_headers"
17036 config_commands="$ac_config_commands"
17037
17038 _ACEOF
17039
17040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17041 ac_cs_usage="\
17042 \`$as_me' instantiates files and other configuration actions
17043 from templates according to the current configuration. Unless the files
17044 and actions are specified as TAGs, all are instantiated by default.
17045
17046 Usage: $0 [OPTION]... [TAG]...
17047
17048 -h, --help print this help, then exit
17049 -V, --version print version number and configuration settings, then exit
17050 --config print configuration, then exit
17051 -q, --quiet, --silent
17052 do not print progress messages
17053 -d, --debug don't remove temporary files
17054 --recheck update $as_me by reconfiguring in the same conditions
17055 --file=FILE[:TEMPLATE]
17056 instantiate the configuration file FILE
17057 --header=FILE[:TEMPLATE]
17058 instantiate the configuration header FILE
17059
17060 Configuration files:
17061 $config_files
17062
17063 Configuration headers:
17064 $config_headers
17065
17066 Configuration commands:
17067 $config_commands
17068
17069 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17070 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17071
17072 _ACEOF
17073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17074 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17075 ac_cs_version="\\
17076 sim config.status 0
17077 configured by $0, generated by GNU Autoconf 2.69,
17078 with options \\"\$ac_cs_config\\"
17079
17080 Copyright (C) 2012 Free Software Foundation, Inc.
17081 This config.status script is free software; the Free Software Foundation
17082 gives unlimited permission to copy, distribute and modify it."
17083
17084 ac_pwd='$ac_pwd'
17085 srcdir='$srcdir'
17086 INSTALL='$INSTALL'
17087 MKDIR_P='$MKDIR_P'
17088 AWK='$AWK'
17089 test -n "\$AWK" || AWK=awk
17090 _ACEOF
17091
17092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17093 # The default lists apply if the user does not specify any file.
17094 ac_need_defaults=:
17095 while test $# != 0
17096 do
17097 case $1 in
17098 --*=?*)
17099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17101 ac_shift=:
17102 ;;
17103 --*=)
17104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17105 ac_optarg=
17106 ac_shift=:
17107 ;;
17108 *)
17109 ac_option=$1
17110 ac_optarg=$2
17111 ac_shift=shift
17112 ;;
17113 esac
17114
17115 case $ac_option in
17116 # Handling of the options.
17117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17118 ac_cs_recheck=: ;;
17119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17120 $as_echo "$ac_cs_version"; exit ;;
17121 --config | --confi | --conf | --con | --co | --c )
17122 $as_echo "$ac_cs_config"; exit ;;
17123 --debug | --debu | --deb | --de | --d | -d )
17124 debug=: ;;
17125 --file | --fil | --fi | --f )
17126 $ac_shift
17127 case $ac_optarg in
17128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17129 '') as_fn_error $? "missing file argument" ;;
17130 esac
17131 as_fn_append CONFIG_FILES " '$ac_optarg'"
17132 ac_need_defaults=false;;
17133 --header | --heade | --head | --hea )
17134 $ac_shift
17135 case $ac_optarg in
17136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17137 esac
17138 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17139 ac_need_defaults=false;;
17140 --he | --h)
17141 # Conflict between --help and --header
17142 as_fn_error $? "ambiguous option: \`$1'
17143 Try \`$0 --help' for more information.";;
17144 --help | --hel | -h )
17145 $as_echo "$ac_cs_usage"; exit ;;
17146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17147 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17148 ac_cs_silent=: ;;
17149
17150 # This is an error.
17151 -*) as_fn_error $? "unrecognized option: \`$1'
17152 Try \`$0 --help' for more information." ;;
17153
17154 *) as_fn_append ac_config_targets " $1"
17155 ac_need_defaults=false ;;
17156
17157 esac
17158 shift
17159 done
17160
17161 ac_configure_extra_args=
17162
17163 if $ac_cs_silent; then
17164 exec 6>/dev/null
17165 ac_configure_extra_args="$ac_configure_extra_args --silent"
17166 fi
17167
17168 _ACEOF
17169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17170 if \$ac_cs_recheck; then
17171 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17172 shift
17173 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17174 CONFIG_SHELL='$SHELL'
17175 export CONFIG_SHELL
17176 exec "\$@"
17177 fi
17178
17179 _ACEOF
17180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17181 exec 5>>config.log
17182 {
17183 echo
17184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17185 ## Running $as_me. ##
17186 _ASBOX
17187 $as_echo "$ac_log"
17188 } >&5
17189
17190 _ACEOF
17191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17192 #
17193 # INIT-COMMANDS
17194 #
17195
17196
17197 # The HP-UX ksh and POSIX shell print the target directory to stdout
17198 # if CDPATH is set.
17199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17200
17201 sed_quote_subst='$sed_quote_subst'
17202 double_quote_subst='$double_quote_subst'
17203 delay_variable_subst='$delay_variable_subst'
17204 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17205 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17206 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17207 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17208 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17209 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17210 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17211 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17212 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17213 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17214 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17215 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17216 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17217 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17218 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17219 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17220 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17221 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17222 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17223 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17224 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17225 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17226 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17227 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17228 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17229 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17230 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17231 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17232 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17233 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17234 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17235 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17236 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17237 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17238 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17239 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17240 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17241 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17242 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17243 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17244 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17245 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17246 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17247 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17248 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17249 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17250 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17251 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17252 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"`'
17253 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17254 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17255 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17256 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17257 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17258 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17259 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17260 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17261 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17262 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17263 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17264 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17265 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17266 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17267 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17268 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17269 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17270 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17271 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17272 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17273 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17274 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17275 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17276 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17277 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17278 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17279 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17280 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17281 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17282 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17283 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17284 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17285 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17286 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17287 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17288 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17289 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17290 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17291 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17292 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17293 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17294 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17295 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17296 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17297 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17298 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17299 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17300 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17301 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17302 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17303 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17304 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17305 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17306 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17307 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17308 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17309 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17310 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17311 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17312 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17313 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17314 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17315 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17316 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17317 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17318 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17319 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17320 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17321 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17322 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17323 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17324
17325 LTCC='$LTCC'
17326 LTCFLAGS='$LTCFLAGS'
17327 compiler='$compiler_DEFAULT'
17328
17329 # A function that is used when there is no print builtin or printf.
17330 func_fallback_echo ()
17331 {
17332 eval 'cat <<_LTECHO_EOF
17333 \$1
17334 _LTECHO_EOF'
17335 }
17336
17337 # Quote evaled strings.
17338 for var in SHELL \
17339 ECHO \
17340 SED \
17341 GREP \
17342 EGREP \
17343 FGREP \
17344 LD \
17345 NM \
17346 LN_S \
17347 lt_SP2NL \
17348 lt_NL2SP \
17349 reload_flag \
17350 OBJDUMP \
17351 deplibs_check_method \
17352 file_magic_cmd \
17353 AR \
17354 AR_FLAGS \
17355 STRIP \
17356 RANLIB \
17357 CC \
17358 CFLAGS \
17359 compiler \
17360 lt_cv_sys_global_symbol_pipe \
17361 lt_cv_sys_global_symbol_to_cdecl \
17362 lt_cv_sys_global_symbol_to_c_name_address \
17363 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17364 lt_prog_compiler_no_builtin_flag \
17365 lt_prog_compiler_wl \
17366 lt_prog_compiler_pic \
17367 lt_prog_compiler_static \
17368 lt_cv_prog_compiler_c_o \
17369 need_locks \
17370 DSYMUTIL \
17371 NMEDIT \
17372 LIPO \
17373 OTOOL \
17374 OTOOL64 \
17375 shrext_cmds \
17376 export_dynamic_flag_spec \
17377 whole_archive_flag_spec \
17378 compiler_needs_object \
17379 with_gnu_ld \
17380 allow_undefined_flag \
17381 no_undefined_flag \
17382 hardcode_libdir_flag_spec \
17383 hardcode_libdir_flag_spec_ld \
17384 hardcode_libdir_separator \
17385 fix_srcfile_path \
17386 exclude_expsyms \
17387 include_expsyms \
17388 file_list_spec \
17389 variables_saved_for_relink \
17390 libname_spec \
17391 library_names_spec \
17392 soname_spec \
17393 install_override_mode \
17394 finish_eval \
17395 old_striplib \
17396 striplib; do
17397 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17398 *[\\\\\\\`\\"\\\$]*)
17399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17400 ;;
17401 *)
17402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17403 ;;
17404 esac
17405 done
17406
17407 # Double-quote double-evaled strings.
17408 for var in reload_cmds \
17409 old_postinstall_cmds \
17410 old_postuninstall_cmds \
17411 old_archive_cmds \
17412 extract_expsyms_cmds \
17413 old_archive_from_new_cmds \
17414 old_archive_from_expsyms_cmds \
17415 archive_cmds \
17416 archive_expsym_cmds \
17417 module_cmds \
17418 module_expsym_cmds \
17419 export_symbols_cmds \
17420 prelink_cmds \
17421 postinstall_cmds \
17422 postuninstall_cmds \
17423 finish_cmds \
17424 sys_lib_search_path_spec \
17425 sys_lib_dlsearch_path_spec; do
17426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17427 *[\\\\\\\`\\"\\\$]*)
17428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17429 ;;
17430 *)
17431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17432 ;;
17433 esac
17434 done
17435
17436 ac_aux_dir='$ac_aux_dir'
17437 xsi_shell='$xsi_shell'
17438 lt_shell_append='$lt_shell_append'
17439
17440 # See if we are running on zsh, and set the options which allow our
17441 # commands through without removal of \ escapes INIT.
17442 if test -n "\${ZSH_VERSION+set}" ; then
17443 setopt NO_GLOB_SUBST
17444 fi
17445
17446
17447 PACKAGE='$PACKAGE'
17448 VERSION='$VERSION'
17449 TIMESTAMP='$TIMESTAMP'
17450 RM='$RM'
17451 ofile='$ofile'
17452
17453
17454
17455 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17456
17457 _ACEOF
17458
17459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17460
17461 # Handling of arguments.
17462 for ac_config_target in $ac_config_targets
17463 do
17464 case $ac_config_target in
17465 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17466 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17467 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17468 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17469 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17470 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17471 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17472 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17473 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17474 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17475 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17476 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17477 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17478 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17479 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17480 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17481 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17482 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17483 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17484 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17485 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17486 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17487 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17488 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17489 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17490 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17491 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17492 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17493 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17494 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17495 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17496 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17497 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17498 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17499 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17500 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17501 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17502 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17503
17504 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17505 esac
17506 done
17507
17508
17509 # If the user did not use the arguments to specify the items to instantiate,
17510 # then the envvar interface is used. Set only those that are not.
17511 # We use the long form for the default assignment because of an extremely
17512 # bizarre bug on SunOS 4.1.3.
17513 if $ac_need_defaults; then
17514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17517 fi
17518
17519 # Have a temporary directory for convenience. Make it in the build tree
17520 # simply because there is no reason against having it here, and in addition,
17521 # creating and moving files from /tmp can sometimes cause problems.
17522 # Hook for its removal unless debugging.
17523 # Note that there is a small window in which the directory will not be cleaned:
17524 # after its creation but before its name has been assigned to `$tmp'.
17525 $debug ||
17526 {
17527 tmp= ac_tmp=
17528 trap 'exit_status=$?
17529 : "${ac_tmp:=$tmp}"
17530 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17531 ' 0
17532 trap 'as_fn_exit 1' 1 2 13 15
17533 }
17534 # Create a (secure) tmp directory for tmp files.
17535
17536 {
17537 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17538 test -d "$tmp"
17539 } ||
17540 {
17541 tmp=./conf$$-$RANDOM
17542 (umask 077 && mkdir "$tmp")
17543 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17544 ac_tmp=$tmp
17545
17546 # Set up the scripts for CONFIG_FILES section.
17547 # No need to generate them if there are no CONFIG_FILES.
17548 # This happens for instance with `./config.status config.h'.
17549 if test -n "$CONFIG_FILES"; then
17550
17551
17552 ac_cr=`echo X | tr X '\015'`
17553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17554 # But we know of no other shell where ac_cr would be empty at this
17555 # point, so we can use a bashism as a fallback.
17556 if test "x$ac_cr" = x; then
17557 eval ac_cr=\$\'\\r\'
17558 fi
17559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17561 ac_cs_awk_cr='\\r'
17562 else
17563 ac_cs_awk_cr=$ac_cr
17564 fi
17565
17566 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17567 _ACEOF
17568
17569
17570 {
17571 echo "cat >conf$$subs.awk <<_ACEOF" &&
17572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17573 echo "_ACEOF"
17574 } >conf$$subs.sh ||
17575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17577 ac_delim='%!_!# '
17578 for ac_last_try in false false false false false :; do
17579 . ./conf$$subs.sh ||
17580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17581
17582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17583 if test $ac_delim_n = $ac_delim_num; then
17584 break
17585 elif $ac_last_try; then
17586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17587 else
17588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17589 fi
17590 done
17591 rm -f conf$$subs.sh
17592
17593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17594 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17595 _ACEOF
17596 sed -n '
17597 h
17598 s/^/S["/; s/!.*/"]=/
17599 p
17600 g
17601 s/^[^!]*!//
17602 :repl
17603 t repl
17604 s/'"$ac_delim"'$//
17605 t delim
17606 :nl
17607 h
17608 s/\(.\{148\}\)..*/\1/
17609 t more1
17610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17611 p
17612 n
17613 b repl
17614 :more1
17615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17616 p
17617 g
17618 s/.\{148\}//
17619 t nl
17620 :delim
17621 h
17622 s/\(.\{148\}\)..*/\1/
17623 t more2
17624 s/["\\]/\\&/g; s/^/"/; s/$/"/
17625 p
17626 b
17627 :more2
17628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17629 p
17630 g
17631 s/.\{148\}//
17632 t delim
17633 ' <conf$$subs.awk | sed '
17634 /^[^""]/{
17635 N
17636 s/\n//
17637 }
17638 ' >>$CONFIG_STATUS || ac_write_fail=1
17639 rm -f conf$$subs.awk
17640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 _ACAWK
17642 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17643 for (key in S) S_is_set[key] = 1
17644 FS = "\a"
17645
17646 }
17647 {
17648 line = $ 0
17649 nfields = split(line, field, "@")
17650 substed = 0
17651 len = length(field[1])
17652 for (i = 2; i < nfields; i++) {
17653 key = field[i]
17654 keylen = length(key)
17655 if (S_is_set[key]) {
17656 value = S[key]
17657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17658 len += length(value) + length(field[++i])
17659 substed = 1
17660 } else
17661 len += 1 + keylen
17662 }
17663
17664 print line
17665 }
17666
17667 _ACAWK
17668 _ACEOF
17669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17672 else
17673 cat
17674 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17675 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17676 _ACEOF
17677
17678 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17679 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17680 # trailing colons and then remove the whole line if VPATH becomes empty
17681 # (actually we leave an empty line to preserve line numbers).
17682 if test "x$srcdir" = x.; then
17683 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17684 h
17685 s///
17686 s/^/:/
17687 s/[ ]*$/:/
17688 s/:\$(srcdir):/:/g
17689 s/:\${srcdir}:/:/g
17690 s/:@srcdir@:/:/g
17691 s/^:*//
17692 s/:*$//
17693 x
17694 s/\(=[ ]*\).*/\1/
17695 G
17696 s/\n//
17697 s/^[^=]*=[ ]*$//
17698 }'
17699 fi
17700
17701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17702 fi # test -n "$CONFIG_FILES"
17703
17704 # Set up the scripts for CONFIG_HEADERS section.
17705 # No need to generate them if there are no CONFIG_HEADERS.
17706 # This happens for instance with `./config.status Makefile'.
17707 if test -n "$CONFIG_HEADERS"; then
17708 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17709 BEGIN {
17710 _ACEOF
17711
17712 # Transform confdefs.h into an awk script `defines.awk', embedded as
17713 # here-document in config.status, that substitutes the proper values into
17714 # config.h.in to produce config.h.
17715
17716 # Create a delimiter string that does not exist in confdefs.h, to ease
17717 # handling of long lines.
17718 ac_delim='%!_!# '
17719 for ac_last_try in false false :; do
17720 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17721 if test -z "$ac_tt"; then
17722 break
17723 elif $ac_last_try; then
17724 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17725 else
17726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17727 fi
17728 done
17729
17730 # For the awk script, D is an array of macro values keyed by name,
17731 # likewise P contains macro parameters if any. Preserve backslash
17732 # newline sequences.
17733
17734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17735 sed -n '
17736 s/.\{148\}/&'"$ac_delim"'/g
17737 t rset
17738 :rset
17739 s/^[ ]*#[ ]*define[ ][ ]*/ /
17740 t def
17741 d
17742 :def
17743 s/\\$//
17744 t bsnl
17745 s/["\\]/\\&/g
17746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17747 D["\1"]=" \3"/p
17748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17749 d
17750 :bsnl
17751 s/["\\]/\\&/g
17752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17753 D["\1"]=" \3\\\\\\n"\\/p
17754 t cont
17755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17756 t cont
17757 d
17758 :cont
17759 n
17760 s/.\{148\}/&'"$ac_delim"'/g
17761 t clear
17762 :clear
17763 s/\\$//
17764 t bsnlc
17765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17766 d
17767 :bsnlc
17768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17769 b cont
17770 ' <confdefs.h | sed '
17771 s/'"$ac_delim"'/"\\\
17772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17773
17774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17775 for (key in D) D_is_set[key] = 1
17776 FS = "\a"
17777 }
17778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17779 line = \$ 0
17780 split(line, arg, " ")
17781 if (arg[1] == "#") {
17782 defundef = arg[2]
17783 mac1 = arg[3]
17784 } else {
17785 defundef = substr(arg[1], 2)
17786 mac1 = arg[2]
17787 }
17788 split(mac1, mac2, "(") #)
17789 macro = mac2[1]
17790 prefix = substr(line, 1, index(line, defundef) - 1)
17791 if (D_is_set[macro]) {
17792 # Preserve the white space surrounding the "#".
17793 print prefix "define", macro P[macro] D[macro]
17794 next
17795 } else {
17796 # Replace #undef with comments. This is necessary, for example,
17797 # in the case of _POSIX_SOURCE, which is predefined and required
17798 # on some systems where configure will not decide to define it.
17799 if (defundef == "undef") {
17800 print "/*", prefix defundef, macro, "*/"
17801 next
17802 }
17803 }
17804 }
17805 { print }
17806 _ACAWK
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17809 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17810 fi # test -n "$CONFIG_HEADERS"
17811
17812
17813 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17814 shift
17815 for ac_tag
17816 do
17817 case $ac_tag in
17818 :[FHLC]) ac_mode=$ac_tag; continue;;
17819 esac
17820 case $ac_mode$ac_tag in
17821 :[FHL]*:*);;
17822 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17823 :[FH]-) ac_tag=-:-;;
17824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17825 esac
17826 ac_save_IFS=$IFS
17827 IFS=:
17828 set x $ac_tag
17829 IFS=$ac_save_IFS
17830 shift
17831 ac_file=$1
17832 shift
17833
17834 case $ac_mode in
17835 :L) ac_source=$1;;
17836 :[FH])
17837 ac_file_inputs=
17838 for ac_f
17839 do
17840 case $ac_f in
17841 -) ac_f="$ac_tmp/stdin";;
17842 *) # Look for the file first in the build tree, then in the source tree
17843 # (if the path is not absolute). The absolute path cannot be DOS-style,
17844 # because $ac_f cannot contain `:'.
17845 test -f "$ac_f" ||
17846 case $ac_f in
17847 [\\/$]*) false;;
17848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17849 esac ||
17850 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17851 esac
17852 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17853 as_fn_append ac_file_inputs " '$ac_f'"
17854 done
17855
17856 # Let's still pretend it is `configure' which instantiates (i.e., don't
17857 # use $as_me), people would be surprised to read:
17858 # /* config.h. Generated by config.status. */
17859 configure_input='Generated from '`
17860 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17861 `' by configure.'
17862 if test x"$ac_file" != x-; then
17863 configure_input="$ac_file. $configure_input"
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17865 $as_echo "$as_me: creating $ac_file" >&6;}
17866 fi
17867 # Neutralize special characters interpreted by sed in replacement strings.
17868 case $configure_input in #(
17869 *\&* | *\|* | *\\* )
17870 ac_sed_conf_input=`$as_echo "$configure_input" |
17871 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17872 *) ac_sed_conf_input=$configure_input;;
17873 esac
17874
17875 case $ac_tag in
17876 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17878 esac
17879 ;;
17880 esac
17881
17882 ac_dir=`$as_dirname -- "$ac_file" ||
17883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17884 X"$ac_file" : 'X\(//\)[^/]' \| \
17885 X"$ac_file" : 'X\(//\)$' \| \
17886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17887 $as_echo X"$ac_file" |
17888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17889 s//\1/
17890 q
17891 }
17892 /^X\(\/\/\)[^/].*/{
17893 s//\1/
17894 q
17895 }
17896 /^X\(\/\/\)$/{
17897 s//\1/
17898 q
17899 }
17900 /^X\(\/\).*/{
17901 s//\1/
17902 q
17903 }
17904 s/.*/./; q'`
17905 as_dir="$ac_dir"; as_fn_mkdir_p
17906 ac_builddir=.
17907
17908 case "$ac_dir" in
17909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17910 *)
17911 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17912 # A ".." for each directory in $ac_dir_suffix.
17913 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17914 case $ac_top_builddir_sub in
17915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17917 esac ;;
17918 esac
17919 ac_abs_top_builddir=$ac_pwd
17920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17921 # for backward compatibility:
17922 ac_top_builddir=$ac_top_build_prefix
17923
17924 case $srcdir in
17925 .) # We are building in place.
17926 ac_srcdir=.
17927 ac_top_srcdir=$ac_top_builddir_sub
17928 ac_abs_top_srcdir=$ac_pwd ;;
17929 [\\/]* | ?:[\\/]* ) # Absolute name.
17930 ac_srcdir=$srcdir$ac_dir_suffix;
17931 ac_top_srcdir=$srcdir
17932 ac_abs_top_srcdir=$srcdir ;;
17933 *) # Relative name.
17934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17935 ac_top_srcdir=$ac_top_build_prefix$srcdir
17936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17937 esac
17938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17939
17940
17941 case $ac_mode in
17942 :F)
17943 #
17944 # CONFIG_FILE
17945 #
17946
17947 case $INSTALL in
17948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17950 esac
17951 ac_MKDIR_P=$MKDIR_P
17952 case $MKDIR_P in
17953 [\\/$]* | ?:[\\/]* ) ;;
17954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17955 esac
17956 _ACEOF
17957
17958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17959 # If the template does not know about datarootdir, expand it.
17960 # FIXME: This hack should be removed a few years after 2.60.
17961 ac_datarootdir_hack=; ac_datarootdir_seen=
17962 ac_sed_dataroot='
17963 /datarootdir/ {
17964 p
17965 q
17966 }
17967 /@datadir@/p
17968 /@docdir@/p
17969 /@infodir@/p
17970 /@localedir@/p
17971 /@mandir@/p'
17972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17973 *datarootdir*) ac_datarootdir_seen=yes;;
17974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17977 _ACEOF
17978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17979 ac_datarootdir_hack='
17980 s&@datadir@&$datadir&g
17981 s&@docdir@&$docdir&g
17982 s&@infodir@&$infodir&g
17983 s&@localedir@&$localedir&g
17984 s&@mandir@&$mandir&g
17985 s&\\\${datarootdir}&$datarootdir&g' ;;
17986 esac
17987 _ACEOF
17988
17989 # Neutralize VPATH when `$srcdir' = `.'.
17990 # Shell code in configure.ac might set extrasub.
17991 # FIXME: do we really want to maintain this feature?
17992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17993 ac_sed_extra="$ac_vpsub
17994 $extrasub
17995 _ACEOF
17996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17997 :t
17998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17999 s|@configure_input@|$ac_sed_conf_input|;t t
18000 s&@top_builddir@&$ac_top_builddir_sub&;t t
18001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18002 s&@srcdir@&$ac_srcdir&;t t
18003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18004 s&@top_srcdir@&$ac_top_srcdir&;t t
18005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18006 s&@builddir@&$ac_builddir&;t t
18007 s&@abs_builddir@&$ac_abs_builddir&;t t
18008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18009 s&@INSTALL@&$ac_INSTALL&;t t
18010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18011 $ac_datarootdir_hack
18012 "
18013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18015
18016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18019 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18021 which seems to be undefined. Please make sure it is defined" >&5
18022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18023 which seems to be undefined. Please make sure it is defined" >&2;}
18024
18025 rm -f "$ac_tmp/stdin"
18026 case $ac_file in
18027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18029 esac \
18030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18031 ;;
18032 :H)
18033 #
18034 # CONFIG_HEADER
18035 #
18036 if test x"$ac_file" != x-; then
18037 {
18038 $as_echo "/* $configure_input */" \
18039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18040 } >"$ac_tmp/config.h" \
18041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18045 else
18046 rm -f "$ac_file"
18047 mv "$ac_tmp/config.h" "$ac_file" \
18048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18049 fi
18050 else
18051 $as_echo "/* $configure_input */" \
18052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18053 || as_fn_error $? "could not create -" "$LINENO" 5
18054 fi
18055 # Compute "$ac_file"'s index in $config_headers.
18056 _am_arg="$ac_file"
18057 _am_stamp_count=1
18058 for _am_header in $config_headers :; do
18059 case $_am_header in
18060 $_am_arg | $_am_arg:* )
18061 break ;;
18062 * )
18063 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18064 esac
18065 done
18066 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18067 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18068 X"$_am_arg" : 'X\(//\)[^/]' \| \
18069 X"$_am_arg" : 'X\(//\)$' \| \
18070 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18071 $as_echo X"$_am_arg" |
18072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18073 s//\1/
18074 q
18075 }
18076 /^X\(\/\/\)[^/].*/{
18077 s//\1/
18078 q
18079 }
18080 /^X\(\/\/\)$/{
18081 s//\1/
18082 q
18083 }
18084 /^X\(\/\).*/{
18085 s//\1/
18086 q
18087 }
18088 s/.*/./; q'`/stamp-h$_am_stamp_count
18089 ;;
18090
18091 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18092 $as_echo "$as_me: executing $ac_file commands" >&6;}
18093 ;;
18094 esac
18095
18096
18097 case $ac_file$ac_mode in
18098 "libtool":C)
18099
18100 # See if we are running on zsh, and set the options which allow our
18101 # commands through without removal of \ escapes.
18102 if test -n "${ZSH_VERSION+set}" ; then
18103 setopt NO_GLOB_SUBST
18104 fi
18105
18106 cfgfile="${ofile}T"
18107 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18108 $RM "$cfgfile"
18109
18110 cat <<_LT_EOF >> "$cfgfile"
18111 #! $SHELL
18112
18113 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18114 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18115 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18116 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18117 #
18118 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18119 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18120 # Written by Gordon Matzigkeit, 1996
18121 #
18122 # This file is part of GNU Libtool.
18123 #
18124 # GNU Libtool is free software; you can redistribute it and/or
18125 # modify it under the terms of the GNU General Public License as
18126 # published by the Free Software Foundation; either version 2 of
18127 # the License, or (at your option) any later version.
18128 #
18129 # As a special exception to the GNU General Public License,
18130 # if you distribute this file as part of a program or library that
18131 # is built using GNU Libtool, you may include this file under the
18132 # same distribution terms that you use for the rest of that program.
18133 #
18134 # GNU Libtool is distributed in the hope that it will be useful,
18135 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18136 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18137 # GNU General Public License for more details.
18138 #
18139 # You should have received a copy of the GNU General Public License
18140 # along with GNU Libtool; see the file COPYING. If not, a copy
18141 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18142 # obtained by writing to the Free Software Foundation, Inc.,
18143 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18144
18145
18146 # The names of the tagged configurations supported by this script.
18147 available_tags=""
18148
18149 # ### BEGIN LIBTOOL CONFIG
18150
18151 # Which release of libtool.m4 was used?
18152 macro_version=$macro_version
18153 macro_revision=$macro_revision
18154
18155 # Whether or not to build shared libraries.
18156 build_libtool_libs=$enable_shared
18157
18158 # Whether or not to build static libraries.
18159 build_old_libs=$enable_static
18160
18161 # What type of objects to build.
18162 pic_mode=$pic_mode
18163
18164 # Whether or not to optimize for fast installation.
18165 fast_install=$enable_fast_install
18166
18167 # Shell to use when invoking shell scripts.
18168 SHELL=$lt_SHELL
18169
18170 # An echo program that protects backslashes.
18171 ECHO=$lt_ECHO
18172
18173 # The host system.
18174 host_alias=$host_alias
18175 host=$host
18176 host_os=$host_os
18177
18178 # The build system.
18179 build_alias=$build_alias
18180 build=$build
18181 build_os=$build_os
18182
18183 # A sed program that does not truncate output.
18184 SED=$lt_SED
18185
18186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18187 Xsed="\$SED -e 1s/^X//"
18188
18189 # A grep program that handles long lines.
18190 GREP=$lt_GREP
18191
18192 # An ERE matcher.
18193 EGREP=$lt_EGREP
18194
18195 # A literal string matcher.
18196 FGREP=$lt_FGREP
18197
18198 # A BSD- or MS-compatible name lister.
18199 NM=$lt_NM
18200
18201 # Whether we need soft or hard links.
18202 LN_S=$lt_LN_S
18203
18204 # What is the maximum length of a command?
18205 max_cmd_len=$max_cmd_len
18206
18207 # Object file suffix (normally "o").
18208 objext=$ac_objext
18209
18210 # Executable file suffix (normally "").
18211 exeext=$exeext
18212
18213 # whether the shell understands "unset".
18214 lt_unset=$lt_unset
18215
18216 # turn spaces into newlines.
18217 SP2NL=$lt_lt_SP2NL
18218
18219 # turn newlines into spaces.
18220 NL2SP=$lt_lt_NL2SP
18221
18222 # An object symbol dumper.
18223 OBJDUMP=$lt_OBJDUMP
18224
18225 # Method to check whether dependent libraries are shared objects.
18226 deplibs_check_method=$lt_deplibs_check_method
18227
18228 # Command to use when deplibs_check_method == "file_magic".
18229 file_magic_cmd=$lt_file_magic_cmd
18230
18231 # The archiver.
18232 AR=$lt_AR
18233 AR_FLAGS=$lt_AR_FLAGS
18234
18235 # A symbol stripping program.
18236 STRIP=$lt_STRIP
18237
18238 # Commands used to install an old-style archive.
18239 RANLIB=$lt_RANLIB
18240 old_postinstall_cmds=$lt_old_postinstall_cmds
18241 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18242
18243 # Whether to use a lock for old archive extraction.
18244 lock_old_archive_extraction=$lock_old_archive_extraction
18245
18246 # A C compiler.
18247 LTCC=$lt_CC
18248
18249 # LTCC compiler flags.
18250 LTCFLAGS=$lt_CFLAGS
18251
18252 # Take the output of nm and produce a listing of raw symbols and C names.
18253 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18254
18255 # Transform the output of nm in a proper C declaration.
18256 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18257
18258 # Transform the output of nm in a C name address pair.
18259 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18260
18261 # Transform the output of nm in a C name address pair when lib prefix is needed.
18262 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18263
18264 # The name of the directory that contains temporary libtool files.
18265 objdir=$objdir
18266
18267 # Used to examine libraries when file_magic_cmd begins with "file".
18268 MAGIC_CMD=$MAGIC_CMD
18269
18270 # Must we lock files when doing compilation?
18271 need_locks=$lt_need_locks
18272
18273 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18274 DSYMUTIL=$lt_DSYMUTIL
18275
18276 # Tool to change global to local symbols on Mac OS X.
18277 NMEDIT=$lt_NMEDIT
18278
18279 # Tool to manipulate fat objects and archives on Mac OS X.
18280 LIPO=$lt_LIPO
18281
18282 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18283 OTOOL=$lt_OTOOL
18284
18285 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18286 OTOOL64=$lt_OTOOL64
18287
18288 # Old archive suffix (normally "a").
18289 libext=$libext
18290
18291 # Shared library suffix (normally ".so").
18292 shrext_cmds=$lt_shrext_cmds
18293
18294 # The commands to extract the exported symbol list from a shared archive.
18295 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18296
18297 # Variables whose values should be saved in libtool wrapper scripts and
18298 # restored at link time.
18299 variables_saved_for_relink=$lt_variables_saved_for_relink
18300
18301 # Do we need the "lib" prefix for modules?
18302 need_lib_prefix=$need_lib_prefix
18303
18304 # Do we need a version for libraries?
18305 need_version=$need_version
18306
18307 # Library versioning type.
18308 version_type=$version_type
18309
18310 # Shared library runtime path variable.
18311 runpath_var=$runpath_var
18312
18313 # Shared library path variable.
18314 shlibpath_var=$shlibpath_var
18315
18316 # Is shlibpath searched before the hard-coded library search path?
18317 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18318
18319 # Format of library name prefix.
18320 libname_spec=$lt_libname_spec
18321
18322 # List of archive names. First name is the real one, the rest are links.
18323 # The last name is the one that the linker finds with -lNAME
18324 library_names_spec=$lt_library_names_spec
18325
18326 # The coded name of the library, if different from the real name.
18327 soname_spec=$lt_soname_spec
18328
18329 # Permission mode override for installation of shared libraries.
18330 install_override_mode=$lt_install_override_mode
18331
18332 # Command to use after installation of a shared archive.
18333 postinstall_cmds=$lt_postinstall_cmds
18334
18335 # Command to use after uninstallation of a shared archive.
18336 postuninstall_cmds=$lt_postuninstall_cmds
18337
18338 # Commands used to finish a libtool library installation in a directory.
18339 finish_cmds=$lt_finish_cmds
18340
18341 # As "finish_cmds", except a single script fragment to be evaled but
18342 # not shown.
18343 finish_eval=$lt_finish_eval
18344
18345 # Whether we should hardcode library paths into libraries.
18346 hardcode_into_libs=$hardcode_into_libs
18347
18348 # Compile-time system search path for libraries.
18349 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18350
18351 # Run-time system search path for libraries.
18352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18353
18354 # Whether dlopen is supported.
18355 dlopen_support=$enable_dlopen
18356
18357 # Whether dlopen of programs is supported.
18358 dlopen_self=$enable_dlopen_self
18359
18360 # Whether dlopen of statically linked programs is supported.
18361 dlopen_self_static=$enable_dlopen_self_static
18362
18363 # Commands to strip libraries.
18364 old_striplib=$lt_old_striplib
18365 striplib=$lt_striplib
18366
18367
18368 # The linker used to build libraries.
18369 LD=$lt_LD
18370
18371 # How to create reloadable object files.
18372 reload_flag=$lt_reload_flag
18373 reload_cmds=$lt_reload_cmds
18374
18375 # Commands used to build an old-style archive.
18376 old_archive_cmds=$lt_old_archive_cmds
18377
18378 # A language specific compiler.
18379 CC=$lt_compiler
18380
18381 # Is the compiler the GNU compiler?
18382 with_gcc=$GCC
18383
18384 # Compiler flag to turn off builtin functions.
18385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18386
18387 # How to pass a linker flag through the compiler.
18388 wl=$lt_lt_prog_compiler_wl
18389
18390 # Additional compiler flags for building library objects.
18391 pic_flag=$lt_lt_prog_compiler_pic
18392
18393 # Compiler flag to prevent dynamic linking.
18394 link_static_flag=$lt_lt_prog_compiler_static
18395
18396 # Does compiler simultaneously support -c and -o options?
18397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18398
18399 # Whether or not to add -lc for building shared libraries.
18400 build_libtool_need_lc=$archive_cmds_need_lc
18401
18402 # Whether or not to disallow shared libs when runtime libs are static.
18403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18404
18405 # Compiler flag to allow reflexive dlopens.
18406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18407
18408 # Compiler flag to generate shared objects directly from archives.
18409 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18410
18411 # Whether the compiler copes with passing no objects directly.
18412 compiler_needs_object=$lt_compiler_needs_object
18413
18414 # Create an old-style archive from a shared archive.
18415 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18416
18417 # Create a temporary old-style archive to link instead of a shared archive.
18418 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18419
18420 # Commands used to build a shared archive.
18421 archive_cmds=$lt_archive_cmds
18422 archive_expsym_cmds=$lt_archive_expsym_cmds
18423
18424 # Commands used to build a loadable module if different from building
18425 # a shared archive.
18426 module_cmds=$lt_module_cmds
18427 module_expsym_cmds=$lt_module_expsym_cmds
18428
18429 # Whether we are building with GNU ld or not.
18430 with_gnu_ld=$lt_with_gnu_ld
18431
18432 # Flag that allows shared libraries with undefined symbols to be built.
18433 allow_undefined_flag=$lt_allow_undefined_flag
18434
18435 # Flag that enforces no undefined symbols.
18436 no_undefined_flag=$lt_no_undefined_flag
18437
18438 # Flag to hardcode \$libdir into a binary during linking.
18439 # This must work even if \$libdir does not exist
18440 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18441
18442 # If ld is used when linking, flag to hardcode \$libdir into a binary
18443 # during linking. This must work even if \$libdir does not exist.
18444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18445
18446 # Whether we need a single "-rpath" flag with a separated argument.
18447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18448
18449 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18450 # DIR into the resulting binary.
18451 hardcode_direct=$hardcode_direct
18452
18453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18454 # DIR into the resulting binary and the resulting library dependency is
18455 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18456 # library is relocated.
18457 hardcode_direct_absolute=$hardcode_direct_absolute
18458
18459 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18460 # into the resulting binary.
18461 hardcode_minus_L=$hardcode_minus_L
18462
18463 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18464 # into the resulting binary.
18465 hardcode_shlibpath_var=$hardcode_shlibpath_var
18466
18467 # Set to "yes" if building a shared library automatically hardcodes DIR
18468 # into the library and all subsequent libraries and executables linked
18469 # against it.
18470 hardcode_automatic=$hardcode_automatic
18471
18472 # Set to yes if linker adds runtime paths of dependent libraries
18473 # to runtime path list.
18474 inherit_rpath=$inherit_rpath
18475
18476 # Whether libtool must link a program against all its dependency libraries.
18477 link_all_deplibs=$link_all_deplibs
18478
18479 # Fix the shell variable \$srcfile for the compiler.
18480 fix_srcfile_path=$lt_fix_srcfile_path
18481
18482 # Set to "yes" if exported symbols are required.
18483 always_export_symbols=$always_export_symbols
18484
18485 # The commands to list exported symbols.
18486 export_symbols_cmds=$lt_export_symbols_cmds
18487
18488 # Symbols that should not be listed in the preloaded symbols.
18489 exclude_expsyms=$lt_exclude_expsyms
18490
18491 # Symbols that must always be exported.
18492 include_expsyms=$lt_include_expsyms
18493
18494 # Commands necessary for linking programs (against libraries) with templates.
18495 prelink_cmds=$lt_prelink_cmds
18496
18497 # Specify filename containing input files.
18498 file_list_spec=$lt_file_list_spec
18499
18500 # How to hardcode a shared library path into an executable.
18501 hardcode_action=$hardcode_action
18502
18503 # ### END LIBTOOL CONFIG
18504
18505 _LT_EOF
18506
18507 case $host_os in
18508 aix3*)
18509 cat <<\_LT_EOF >> "$cfgfile"
18510 # AIX sometimes has problems with the GCC collect2 program. For some
18511 # reason, if we set the COLLECT_NAMES environment variable, the problems
18512 # vanish in a puff of smoke.
18513 if test "X${COLLECT_NAMES+set}" != Xset; then
18514 COLLECT_NAMES=
18515 export COLLECT_NAMES
18516 fi
18517 _LT_EOF
18518 ;;
18519 esac
18520
18521
18522 ltmain="$ac_aux_dir/ltmain.sh"
18523
18524
18525 # We use sed instead of cat because bash on DJGPP gets confused if
18526 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18527 # text mode, it properly converts lines to CR/LF. This bash problem
18528 # is reportedly fixed, but why not run on old versions too?
18529 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18530 || (rm -f "$cfgfile"; exit 1)
18531
18532 case $xsi_shell in
18533 yes)
18534 cat << \_LT_EOF >> "$cfgfile"
18535
18536 # func_dirname file append nondir_replacement
18537 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18538 # otherwise set result to NONDIR_REPLACEMENT.
18539 func_dirname ()
18540 {
18541 case ${1} in
18542 */*) func_dirname_result="${1%/*}${2}" ;;
18543 * ) func_dirname_result="${3}" ;;
18544 esac
18545 }
18546
18547 # func_basename file
18548 func_basename ()
18549 {
18550 func_basename_result="${1##*/}"
18551 }
18552
18553 # func_dirname_and_basename file append nondir_replacement
18554 # perform func_basename and func_dirname in a single function
18555 # call:
18556 # dirname: Compute the dirname of FILE. If nonempty,
18557 # add APPEND to the result, otherwise set result
18558 # to NONDIR_REPLACEMENT.
18559 # value returned in "$func_dirname_result"
18560 # basename: Compute filename of FILE.
18561 # value retuned in "$func_basename_result"
18562 # Implementation must be kept synchronized with func_dirname
18563 # and func_basename. For efficiency, we do not delegate to
18564 # those functions but instead duplicate the functionality here.
18565 func_dirname_and_basename ()
18566 {
18567 case ${1} in
18568 */*) func_dirname_result="${1%/*}${2}" ;;
18569 * ) func_dirname_result="${3}" ;;
18570 esac
18571 func_basename_result="${1##*/}"
18572 }
18573
18574 # func_stripname prefix suffix name
18575 # strip PREFIX and SUFFIX off of NAME.
18576 # PREFIX and SUFFIX must not contain globbing or regex special
18577 # characters, hashes, percent signs, but SUFFIX may contain a leading
18578 # dot (in which case that matches only a dot).
18579 func_stripname ()
18580 {
18581 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18582 # positional parameters, so assign one to ordinary parameter first.
18583 func_stripname_result=${3}
18584 func_stripname_result=${func_stripname_result#"${1}"}
18585 func_stripname_result=${func_stripname_result%"${2}"}
18586 }
18587
18588 # func_opt_split
18589 func_opt_split ()
18590 {
18591 func_opt_split_opt=${1%%=*}
18592 func_opt_split_arg=${1#*=}
18593 }
18594
18595 # func_lo2o object
18596 func_lo2o ()
18597 {
18598 case ${1} in
18599 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18600 *) func_lo2o_result=${1} ;;
18601 esac
18602 }
18603
18604 # func_xform libobj-or-source
18605 func_xform ()
18606 {
18607 func_xform_result=${1%.*}.lo
18608 }
18609
18610 # func_arith arithmetic-term...
18611 func_arith ()
18612 {
18613 func_arith_result=$(( $* ))
18614 }
18615
18616 # func_len string
18617 # STRING may not start with a hyphen.
18618 func_len ()
18619 {
18620 func_len_result=${#1}
18621 }
18622
18623 _LT_EOF
18624 ;;
18625 *) # Bourne compatible functions.
18626 cat << \_LT_EOF >> "$cfgfile"
18627
18628 # func_dirname file append nondir_replacement
18629 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18630 # otherwise set result to NONDIR_REPLACEMENT.
18631 func_dirname ()
18632 {
18633 # Extract subdirectory from the argument.
18634 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18635 if test "X$func_dirname_result" = "X${1}"; then
18636 func_dirname_result="${3}"
18637 else
18638 func_dirname_result="$func_dirname_result${2}"
18639 fi
18640 }
18641
18642 # func_basename file
18643 func_basename ()
18644 {
18645 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18646 }
18647
18648
18649 # func_stripname prefix suffix name
18650 # strip PREFIX and SUFFIX off of NAME.
18651 # PREFIX and SUFFIX must not contain globbing or regex special
18652 # characters, hashes, percent signs, but SUFFIX may contain a leading
18653 # dot (in which case that matches only a dot).
18654 # func_strip_suffix prefix name
18655 func_stripname ()
18656 {
18657 case ${2} in
18658 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18659 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18660 esac
18661 }
18662
18663 # sed scripts:
18664 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18665 my_sed_long_arg='1s/^-[^=]*=//'
18666
18667 # func_opt_split
18668 func_opt_split ()
18669 {
18670 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18671 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18672 }
18673
18674 # func_lo2o object
18675 func_lo2o ()
18676 {
18677 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18678 }
18679
18680 # func_xform libobj-or-source
18681 func_xform ()
18682 {
18683 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18684 }
18685
18686 # func_arith arithmetic-term...
18687 func_arith ()
18688 {
18689 func_arith_result=`expr "$@"`
18690 }
18691
18692 # func_len string
18693 # STRING may not start with a hyphen.
18694 func_len ()
18695 {
18696 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18697 }
18698
18699 _LT_EOF
18700 esac
18701
18702 case $lt_shell_append in
18703 yes)
18704 cat << \_LT_EOF >> "$cfgfile"
18705
18706 # func_append var value
18707 # Append VALUE to the end of shell variable VAR.
18708 func_append ()
18709 {
18710 eval "$1+=\$2"
18711 }
18712 _LT_EOF
18713 ;;
18714 *)
18715 cat << \_LT_EOF >> "$cfgfile"
18716
18717 # func_append var value
18718 # Append VALUE to the end of shell variable VAR.
18719 func_append ()
18720 {
18721 eval "$1=\$$1\$2"
18722 }
18723
18724 _LT_EOF
18725 ;;
18726 esac
18727
18728
18729 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18730 || (rm -f "$cfgfile"; exit 1)
18731
18732 mv -f "$cfgfile" "$ofile" ||
18733 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18734 chmod +x "$ofile"
18735
18736 ;;
18737 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18738 # Older Autoconf quotes --file arguments for eval, but not when files
18739 # are listed without --file. Let's play safe and only enable the eval
18740 # if we detect the quoting.
18741 case $CONFIG_FILES in
18742 *\'*) eval set x "$CONFIG_FILES" ;;
18743 *) set x $CONFIG_FILES ;;
18744 esac
18745 shift
18746 for mf
18747 do
18748 # Strip MF so we end up with the name of the file.
18749 mf=`echo "$mf" | sed -e 's/:.*$//'`
18750 # Check whether this is an Automake generated Makefile or not.
18751 # We used to match only the files named 'Makefile.in', but
18752 # some people rename them; so instead we look at the file content.
18753 # Grep'ing the first line is not enough: some people post-process
18754 # each Makefile.in and add a new line on top of each file to say so.
18755 # Grep'ing the whole file is not good either: AIX grep has a line
18756 # limit of 2048, but all sed's we know have understand at least 4000.
18757 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18758 dirpart=`$as_dirname -- "$mf" ||
18759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18760 X"$mf" : 'X\(//\)[^/]' \| \
18761 X"$mf" : 'X\(//\)$' \| \
18762 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18763 $as_echo X"$mf" |
18764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18765 s//\1/
18766 q
18767 }
18768 /^X\(\/\/\)[^/].*/{
18769 s//\1/
18770 q
18771 }
18772 /^X\(\/\/\)$/{
18773 s//\1/
18774 q
18775 }
18776 /^X\(\/\).*/{
18777 s//\1/
18778 q
18779 }
18780 s/.*/./; q'`
18781 else
18782 continue
18783 fi
18784 # Extract the definition of DEPDIR, am__include, and am__quote
18785 # from the Makefile without running 'make'.
18786 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18787 test -z "$DEPDIR" && continue
18788 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18789 test -z "$am__include" && continue
18790 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18791 # Find all dependency output files, they are included files with
18792 # $(DEPDIR) in their names. We invoke sed twice because it is the
18793 # simplest approach to changing $(DEPDIR) to its actual value in the
18794 # expansion.
18795 for file in `sed -n "
18796 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18797 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18798 # Make sure the directory exists.
18799 test -f "$dirpart/$file" && continue
18800 fdir=`$as_dirname -- "$file" ||
18801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18802 X"$file" : 'X\(//\)[^/]' \| \
18803 X"$file" : 'X\(//\)$' \| \
18804 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18805 $as_echo X"$file" |
18806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18807 s//\1/
18808 q
18809 }
18810 /^X\(\/\/\)[^/].*/{
18811 s//\1/
18812 q
18813 }
18814 /^X\(\/\/\)$/{
18815 s//\1/
18816 q
18817 }
18818 /^X\(\/\).*/{
18819 s//\1/
18820 q
18821 }
18822 s/.*/./; q'`
18823 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18824 # echo "creating $dirpart/$file"
18825 echo '# dummy' > "$dirpart/$file"
18826 done
18827 done
18828 }
18829 ;;
18830
18831 esac
18832 done # for ac_tag
18833
18834
18835 as_fn_exit 0
18836 _ACEOF
18837 ac_clean_files=$ac_clean_files_save
18838
18839 test $ac_write_fail = 0 ||
18840 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18841
18842
18843 # configure is writing to config.log, and then calls config.status.
18844 # config.status does its own redirection, appending to config.log.
18845 # Unfortunately, on DOS this fails, as config.log is still kept open
18846 # by configure, so config.status won't be able to write to it; its
18847 # output is simply discarded. So we exec the FD to /dev/null,
18848 # effectively closing config.log, so it can be properly (re)opened and
18849 # appended to by config.status. When coming back to configure, we
18850 # need to make the FD available again.
18851 if test "$no_create" != yes; then
18852 ac_cs_success=:
18853 ac_config_status_args=
18854 test "$silent" = yes &&
18855 ac_config_status_args="$ac_config_status_args --quiet"
18856 exec 5>/dev/null
18857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18858 exec 5>>config.log
18859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18860 # would make configure fail if this is the last instruction.
18861 $ac_cs_success || as_fn_exit 1
18862 fi
18863
18864 #
18865 # CONFIG_SUBDIRS section.
18866 #
18867 if test "$no_recursion" != yes; then
18868
18869 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18870 # so they do not pile up.
18871 ac_sub_configure_args=
18872 ac_prev=
18873 eval "set x $ac_configure_args"
18874 shift
18875 for ac_arg
18876 do
18877 if test -n "$ac_prev"; then
18878 ac_prev=
18879 continue
18880 fi
18881 case $ac_arg in
18882 -cache-file | --cache-file | --cache-fil | --cache-fi \
18883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18884 ac_prev=cache_file ;;
18885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18887 | --c=*)
18888 ;;
18889 --config-cache | -C)
18890 ;;
18891 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18892 ac_prev=srcdir ;;
18893 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18894 ;;
18895 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18896 ac_prev=prefix ;;
18897 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18898 ;;
18899 --disable-option-checking)
18900 ;;
18901 *)
18902 case $ac_arg in
18903 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18904 esac
18905 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18906 esac
18907 done
18908
18909 # Always prepend --prefix to ensure using the same prefix
18910 # in subdir configurations.
18911 ac_arg="--prefix=$prefix"
18912 case $ac_arg in
18913 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18914 esac
18915 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18916
18917 # Pass --silent
18918 if test "$silent" = yes; then
18919 ac_sub_configure_args="--silent $ac_sub_configure_args"
18920 fi
18921
18922 # Always prepend --disable-option-checking to silence warnings, since
18923 # different subdirs can have different --enable and --with options.
18924 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18925
18926 ac_popdir=`pwd`
18927 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18928
18929 # Do not complain, so a configure script can configure whichever
18930 # parts of a large source tree are present.
18931 test -d "$srcdir/$ac_dir" || continue
18932
18933 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18934 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18935 $as_echo "$ac_msg" >&6
18936 as_dir="$ac_dir"; as_fn_mkdir_p
18937 ac_builddir=.
18938
18939 case "$ac_dir" in
18940 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18941 *)
18942 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18943 # A ".." for each directory in $ac_dir_suffix.
18944 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18945 case $ac_top_builddir_sub in
18946 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18947 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18948 esac ;;
18949 esac
18950 ac_abs_top_builddir=$ac_pwd
18951 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18952 # for backward compatibility:
18953 ac_top_builddir=$ac_top_build_prefix
18954
18955 case $srcdir in
18956 .) # We are building in place.
18957 ac_srcdir=.
18958 ac_top_srcdir=$ac_top_builddir_sub
18959 ac_abs_top_srcdir=$ac_pwd ;;
18960 [\\/]* | ?:[\\/]* ) # Absolute name.
18961 ac_srcdir=$srcdir$ac_dir_suffix;
18962 ac_top_srcdir=$srcdir
18963 ac_abs_top_srcdir=$srcdir ;;
18964 *) # Relative name.
18965 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18966 ac_top_srcdir=$ac_top_build_prefix$srcdir
18967 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18968 esac
18969 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18970
18971
18972 cd "$ac_dir"
18973
18974 # Check for guested configure; otherwise get Cygnus style configure.
18975 if test -f "$ac_srcdir/configure.gnu"; then
18976 ac_sub_configure=$ac_srcdir/configure.gnu
18977 elif test -f "$ac_srcdir/configure"; then
18978 ac_sub_configure=$ac_srcdir/configure
18979 elif test -f "$ac_srcdir/configure.in"; then
18980 # This should be Cygnus configure.
18981 ac_sub_configure=$ac_aux_dir/configure
18982 else
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18984 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18985 ac_sub_configure=
18986 fi
18987
18988 # The recursion is here.
18989 if test -n "$ac_sub_configure"; then
18990 # Make the cache file name correct relative to the subdirectory.
18991 case $cache_file in
18992 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18993 *) # Relative name.
18994 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18995 esac
18996
18997 { $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
18998 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18999 # The eval makes quoting arguments work.
19000 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19001 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19002 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19003 fi
19004
19005 cd "$ac_popdir"
19006 done
19007 fi
19008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19010 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19011 fi
19012