PR29991, MicroMIPS flag erased after align directives
[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 ac_aux_dir=
3013 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3014 if test -f "$ac_dir/install-sh"; then
3015 ac_aux_dir=$ac_dir
3016 ac_install_sh="$ac_aux_dir/install-sh -c"
3017 break
3018 elif test -f "$ac_dir/install.sh"; then
3019 ac_aux_dir=$ac_dir
3020 ac_install_sh="$ac_aux_dir/install.sh -c"
3021 break
3022 elif test -f "$ac_dir/shtool"; then
3023 ac_aux_dir=$ac_dir
3024 ac_install_sh="$ac_aux_dir/shtool install -c"
3025 break
3026 fi
3027 done
3028 if test -z "$ac_aux_dir"; then
3029 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3030 fi
3031
3032 # These three variables are undocumented and unsupported,
3033 # and are intended to be withdrawn in a future Autoconf release.
3034 # They can cause serious problems if a builder's source tree is in a directory
3035 # whose full name contains unusual characters.
3036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3039
3040
3041 # Make sure we can run config.sub.
3042 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3043 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3046 $as_echo_n "checking build system type... " >&6; }
3047 if ${ac_cv_build+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 ac_build_alias=$build_alias
3051 test "x$ac_build_alias" = x &&
3052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3053 test "x$ac_build_alias" = x &&
3054 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3056 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3057
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060 $as_echo "$ac_cv_build" >&6; }
3061 case $ac_cv_build in
3062 *-*-*) ;;
3063 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3064 esac
3065 build=$ac_cv_build
3066 ac_save_IFS=$IFS; IFS='-'
3067 set x $ac_cv_build
3068 shift
3069 build_cpu=$1
3070 build_vendor=$2
3071 shift; shift
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3074 build_os=$*
3075 IFS=$ac_save_IFS
3076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3077
3078
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080 $as_echo_n "checking host system type... " >&6; }
3081 if ${ac_cv_host+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test "x$host_alias" = x; then
3085 ac_cv_host=$ac_cv_build
3086 else
3087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3088 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3089 fi
3090
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3093 $as_echo "$ac_cv_host" >&6; }
3094 case $ac_cv_host in
3095 *-*-*) ;;
3096 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3097 esac
3098 host=$ac_cv_host
3099 ac_save_IFS=$IFS; IFS='-'
3100 set x $ac_cv_host
3101 shift
3102 host_cpu=$1
3103 host_vendor=$2
3104 shift; shift
3105 # Remember, the first character of IFS is used to create $*,
3106 # except with old shells:
3107 host_os=$*
3108 IFS=$ac_save_IFS
3109 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3110
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3113 $as_echo_n "checking target system type... " >&6; }
3114 if ${ac_cv_target+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$target_alias" = x; then
3118 ac_cv_target=$ac_cv_host
3119 else
3120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3121 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3122 fi
3123
3124 fi
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3126 $as_echo "$ac_cv_target" >&6; }
3127 case $ac_cv_target in
3128 *-*-*) ;;
3129 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3130 esac
3131 target=$ac_cv_target
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_target
3134 shift
3135 target_cpu=$1
3136 target_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 target_os=$*
3141 IFS=$ac_save_IFS
3142 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3143
3144
3145 # The aliases save the names the user supplied, while $host etc.
3146 # will get canonicalized.
3147 test -n "$target_alias" &&
3148 test "$program_prefix$program_suffix$program_transform_name" = \
3149 NONENONEs,x,x, &&
3150 program_prefix=${target_alias}-
3151 # Expand $ac_aux_dir to an absolute path.
3152 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196
3197 fi
3198 if test -z "$ac_cv_prog_CC"; then
3199 ac_ct_CC=$CC
3200 # Extract the first word of "gcc", so it can be a program name with args.
3201 set dummy gcc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_CC="gcc"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245 CC=$ac_ct_CC
3246 fi
3247 else
3248 CC="$ac_cv_prog_CC"
3249 fi
3250
3251 if test -z "$CC"; then
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_CC="${ac_tool_prefix}cc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290 fi
3291 fi
3292 if test -z "$CC"; then
3293 # Extract the first word of "cc", so it can be a program name with args.
3294 set dummy cc; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 ac_prog_rejected=no
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3312 ac_prog_rejected=yes
3313 continue
3314 fi
3315 ac_cv_prog_CC="cc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 if test $ac_prog_rejected = yes; then
3324 # We found a bogon in the path, so make sure we never use it.
3325 set dummy $ac_cv_prog_CC
3326 shift
3327 if test $# != 0; then
3328 # We chose a different compiler from the bogus one.
3329 # However, it has the same basename, so the bogon will be chosen
3330 # first if we set CC to just the basename; use the full file name.
3331 shift
3332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3333 fi
3334 fi
3335 fi
3336 fi
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347 fi
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 for ac_prog in cl.exe
3351 do
3352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 test -n "$CC" && break
3390 done
3391 fi
3392 if test -z "$CC"; then
3393 ac_ct_CC=$CC
3394 for ac_prog in cl.exe
3395 do
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$ac_ct_CC"; then
3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_ac_ct_CC="$ac_prog"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3424 if test -n "$ac_ct_CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3426 $as_echo "$ac_ct_CC" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433 test -n "$ac_ct_CC" && break
3434 done
3435
3436 if test "x$ac_ct_CC" = x; then
3437 CC=""
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 CC=$ac_ct_CC
3446 fi
3447 fi
3448
3449 fi
3450
3451
3452 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "no acceptable C compiler found in \$PATH
3455 See \`config.log' for more details" "$LINENO" 5; }
3456
3457 # Provide some information about the compiler.
3458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3459 set X $ac_compile
3460 ac_compiler=$2
3461 for ac_option in --version -v -V -qversion; do
3462 { { ac_try="$ac_compiler $ac_option >&5"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470 ac_status=$?
3471 if test -s conftest.err; then
3472 sed '10a\
3473 ... rest of stderr output deleted ...
3474 10q' conftest.err >conftest.er1
3475 cat conftest.er1 >&5
3476 fi
3477 rm -f conftest.er1 conftest.err
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3480 done
3481
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484
3485 int
3486 main ()
3487 {
3488
3489 ;
3490 return 0;
3491 }
3492 _ACEOF
3493 ac_clean_files_save=$ac_clean_files
3494 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3495 # Try to create an executable without -o first, disregard a.out.
3496 # It will help us diagnose broken compilers, and finding out an intuition
3497 # of exeext.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3501
3502 # The possible output files:
3503 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3504
3505 ac_rmfiles=
3506 for ac_file in $ac_files
3507 do
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3511 esac
3512 done
3513 rm -f $ac_rmfiles
3514
3515 if { { ac_try="$ac_link_default"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_link_default") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3527 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3528 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3529 # so that the user can short-circuit this test for compilers unknown to
3530 # Autoconf.
3531 for ac_file in $ac_files ''
3532 do
3533 test -f "$ac_file" || continue
3534 case $ac_file in
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3536 ;;
3537 [ab].out )
3538 # We found the default executable, but exeext='' is most
3539 # certainly right.
3540 break;;
3541 *.* )
3542 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3543 then :; else
3544 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 fi
3546 # We set ac_cv_exeext here because the later test for it is not
3547 # safe: cross compilers may not add the suffix if given an `-o'
3548 # argument, so we may need to know it at that point already.
3549 # Even if this section looks crufty: it has the advantage of
3550 # actually working.
3551 break;;
3552 * )
3553 break;;
3554 esac
3555 done
3556 test "$ac_cv_exeext" = no && ac_cv_exeext=
3557
3558 else
3559 ac_file=''
3560 fi
3561 if test -z "$ac_file"; then :
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 $as_echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3566
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error 77 "C compiler cannot create executables
3570 See \`config.log' for more details" "$LINENO" 5; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3576 $as_echo_n "checking for C compiler default output file name... " >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3578 $as_echo "$ac_file" >&6; }
3579 ac_exeext=$ac_cv_exeext
3580
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3582 ac_clean_files=$ac_clean_files_save
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { { ac_try="$ac_link"
3586 case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_link") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3599 # `rm'.
3600 for ac_file in conftest.exe conftest conftest.*; do
3601 test -f "$ac_file" || continue
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 break;;
3606 * ) break;;
3607 esac
3608 done
3609 else
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details" "$LINENO" 5; }
3614 fi
3615 rm -f conftest conftest$ac_cv_exeext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3617 $as_echo "$ac_cv_exeext" >&6; }
3618
3619 rm -f conftest.$ac_ext
3620 EXEEXT=$ac_cv_exeext
3621 ac_exeext=$EXEEXT
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <stdio.h>
3625 int
3626 main ()
3627 {
3628 FILE *f = fopen ("conftest.out", "w");
3629 return ferror (f) || fclose (f) != 0;
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 ac_clean_files="$ac_clean_files conftest.out"
3636 # Check that the compiler produces executables we can run. If not, either
3637 # the compiler is broken, or we cross compile.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3639 $as_echo_n "checking whether we are cross compiling... " >&6; }
3640 if test "$cross_compiling" != yes; then
3641 { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652 if { ac_try='./conftest$ac_cv_exeext'
3653 { { case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_try") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; }; then
3663 cross_compiling=no
3664 else
3665 if test "$cross_compiling" = maybe; then
3666 cross_compiling=yes
3667 else
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error $? "cannot run C compiled programs.
3671 If you meant to cross compile, use \`--host'.
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 fi
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3678
3679 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if ${ac_cv_objext+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compile") 2>&5
3706 ac_status=$?
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3714 break;;
3715 esac
3716 done
3717 else
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details" "$LINENO" 5; }
3725 fi
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3731 ac_objext=$OBJEXT
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if ${ac_cv_c_compiler_gnu+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 int
3741 main ()
3742 {
3743 #ifndef __GNUC__
3744 choke me
3745 #endif
3746
3747 ;
3748 return 0;
3749 }
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_compiler_gnu=yes
3753 else
3754 ac_compiler_gnu=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3763 GCC=yes
3764 else
3765 GCC=
3766 fi
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if ${ac_cv_prog_cc_g+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_save_c_werror_flag=$ac_c_werror_flag
3775 ac_c_werror_flag=yes
3776 ac_cv_prog_cc_g=no
3777 CFLAGS="-g"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780
3781 int
3782 main ()
3783 {
3784
3785 ;
3786 return 0;
3787 }
3788 _ACEOF
3789 if ac_fn_c_try_compile "$LINENO"; then :
3790 ac_cv_prog_cc_g=yes
3791 else
3792 CFLAGS=""
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 if ac_fn_c_try_compile "$LINENO"; then :
3805
3806 else
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3808 CFLAGS="-g"
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811
3812 int
3813 main ()
3814 {
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_g=yes
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3836 CFLAGS="-g -O2"
3837 else
3838 CFLAGS="-g"
3839 fi
3840 else
3841 if test "$GCC" = yes; then
3842 CFLAGS="-O2"
3843 else
3844 CFLAGS=
3845 fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if ${ac_cv_prog_cc_c89+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 ac_cv_prog_cc_c89=no
3853 ac_save_CC=$CC
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <stdarg.h>
3857 #include <stdio.h>
3858 struct stat;
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3863 char **p;
3864 int i;
3865 {
3866 return p[i];
3867 }
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3869 {
3870 char *s;
3871 va_list v;
3872 va_start (v,p);
3873 s = g (p, va_arg (v,int));
3874 va_end (v);
3875 return s;
3876 }
3877
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std. */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3888 inside strings and character constants. */
3889 #define FOO(x) 'x'
3890 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3891
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 int argc;
3897 char **argv;
3898 int
3899 main ()
3900 {
3901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3907 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3908 do
3909 CC="$ac_save_CC $ac_arg"
3910 if ac_fn_c_try_compile "$LINENO"; then :
3911 ac_cv_prog_cc_c89=$ac_arg
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext
3914 test "x$ac_cv_prog_cc_c89" != "xno" && break
3915 done
3916 rm -f conftest.$ac_ext
3917 CC=$ac_save_CC
3918
3919 fi
3920 # AC_CACHE_VAL
3921 case "x$ac_cv_prog_cc_c89" in
3922 x)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3924 $as_echo "none needed" >&6; } ;;
3925 xno)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3927 $as_echo "unsupported" >&6; } ;;
3928 *)
3929 CC="$CC $ac_cv_prog_cc_c89"
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3931 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3932 esac
3933 if test "x$ac_cv_prog_cc_c89" != xno; then :
3934
3935 fi
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3949 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3950 if ${am_cv_prog_cc_c_o+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955
3956 int
3957 main ()
3958 {
3959
3960 ;
3961 return 0;
3962 }
3963 _ACEOF
3964 # Make sure it works both with $CC and with simple cc.
3965 # Following AC_PROG_CC_C_O, we do the test twice because some
3966 # compilers refuse to overwrite an existing .o file with -o,
3967 # though they will create one.
3968 am_cv_prog_cc_c_o=yes
3969 for am_i in 1 2; do
3970 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3971 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } \
3975 && test -f conftest2.$ac_objext; then
3976 : OK
3977 else
3978 am_cv_prog_cc_c_o=no
3979 break
3980 fi
3981 done
3982 rm -f core conftest*
3983 unset am_i
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3986 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3987 if test "$am_cv_prog_cc_c_o" != yes; then
3988 # Losing compiler, so override with the script.
3989 # FIXME: It is wrong to rewrite CC.
3990 # But if we don't then we get into trouble of one sort or another.
3991 # A longer-term fix would be to have automake use am__CC in this case,
3992 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3993 CC="$am_aux_dir/compile $CC"
3994 fi
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001
4002 ac_ext=c
4003 ac_cpp='$CPP $CPPFLAGS'
4004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4008 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4009 # On Suns, sometimes $CPP names a directory.
4010 if test -n "$CPP" && test -d "$CPP"; then
4011 CPP=
4012 fi
4013 if test -z "$CPP"; then
4014 if ${ac_cv_prog_CPP+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 # Double quotes because CPP needs to be expanded
4018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4019 do
4020 ac_preproc_ok=false
4021 for ac_c_preproc_warn_flag in '' yes
4022 do
4023 # Use a header file that comes with gcc, so configuring glibc
4024 # with a fresh cross-compiler works.
4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4026 # <limits.h> exists even on freestanding compilers.
4027 # On the NeXT, cc -E runs the code through the compiler's parser,
4028 # not just through cpp. "Syntax error" is here to catch this case.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #ifdef __STDC__
4032 # include <limits.h>
4033 #else
4034 # include <assert.h>
4035 #endif
4036 Syntax error
4037 _ACEOF
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039
4040 else
4041 # Broken: fails on valid input.
4042 continue
4043 fi
4044 rm -f conftest.err conftest.i conftest.$ac_ext
4045
4046 # OK, works on sane cases. Now check whether nonexistent headers
4047 # can be detected and how.
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050 #include <ac_nonexistent.h>
4051 _ACEOF
4052 if ac_fn_c_try_cpp "$LINENO"; then :
4053 # Broken: success on invalid input.
4054 continue
4055 else
4056 # Passes both tests.
4057 ac_preproc_ok=:
4058 break
4059 fi
4060 rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062 done
4063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064 rm -f conftest.i conftest.err conftest.$ac_ext
4065 if $ac_preproc_ok; then :
4066 break
4067 fi
4068
4069 done
4070 ac_cv_prog_CPP=$CPP
4071
4072 fi
4073 CPP=$ac_cv_prog_CPP
4074 else
4075 ac_cv_prog_CPP=$CPP
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4078 $as_echo "$CPP" >&6; }
4079 ac_preproc_ok=false
4080 for ac_c_preproc_warn_flag in '' yes
4081 do
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #ifdef __STDC__
4091 # include <limits.h>
4092 #else
4093 # include <assert.h>
4094 #endif
4095 Syntax error
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098
4099 else
4100 # Broken: fails on valid input.
4101 continue
4102 fi
4103 rm -f conftest.err conftest.i conftest.$ac_ext
4104
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: success on invalid input.
4113 continue
4114 else
4115 # Passes both tests.
4116 ac_preproc_ok=:
4117 break
4118 fi
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.i conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4125
4126 else
4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4130 See \`config.log' for more details" "$LINENO" 5; }
4131 fi
4132
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138
4139
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4142 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4143 if ${ac_cv_path_GREP+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -z "$GREP"; then
4147 ac_path_GREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in grep ggrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4157 as_fn_executable_p "$ac_path_GREP" || continue
4158 # Check for GNU ac_path_GREP and select it if it is found.
4159 # Check for GNU $ac_path_GREP
4160 case `"$ac_path_GREP" --version 2>&1` in
4161 *GNU*)
4162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4163 *)
4164 ac_count=0
4165 $as_echo_n 0123456789 >"conftest.in"
4166 while :
4167 do
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 $as_echo 'GREP' >> "conftest.nl"
4172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 as_fn_arith $ac_count + 1 && ac_count=$as_val
4175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_GREP="$ac_path_GREP"
4178 ac_path_GREP_max=$ac_count
4179 fi
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 esac
4185
4186 $ac_path_GREP_found && break 3
4187 done
4188 done
4189 done
4190 IFS=$as_save_IFS
4191 if test -z "$ac_cv_path_GREP"; then
4192 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4193 fi
4194 else
4195 ac_cv_path_GREP=$GREP
4196 fi
4197
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4200 $as_echo "$ac_cv_path_GREP" >&6; }
4201 GREP="$ac_cv_path_GREP"
4202
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4205 $as_echo_n "checking for egrep... " >&6; }
4206 if ${ac_cv_path_EGREP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4210 then ac_cv_path_EGREP="$GREP -E"
4211 else
4212 if test -z "$EGREP"; then
4213 ac_path_EGREP_found=false
4214 # Loop through the user's path and test for each of PROGNAME-LIST
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_prog in egrep; do
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4223 as_fn_executable_p "$ac_path_EGREP" || continue
4224 # Check for GNU ac_path_EGREP and select it if it is found.
4225 # Check for GNU $ac_path_EGREP
4226 case `"$ac_path_EGREP" --version 2>&1` in
4227 *GNU*)
4228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229 *)
4230 ac_count=0
4231 $as_echo_n 0123456789 >"conftest.in"
4232 while :
4233 do
4234 cat "conftest.in" "conftest.in" >"conftest.tmp"
4235 mv "conftest.tmp" "conftest.in"
4236 cp "conftest.in" "conftest.nl"
4237 $as_echo 'EGREP' >> "conftest.nl"
4238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240 as_fn_arith $ac_count + 1 && ac_count=$as_val
4241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4242 # Best one so far, save it but keep looking for a better one
4243 ac_cv_path_EGREP="$ac_path_EGREP"
4244 ac_path_EGREP_max=$ac_count
4245 fi
4246 # 10*(2^10) chars as input seems more than enough
4247 test $ac_count -gt 10 && break
4248 done
4249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 esac
4251
4252 $ac_path_EGREP_found && break 3
4253 done
4254 done
4255 done
4256 IFS=$as_save_IFS
4257 if test -z "$ac_cv_path_EGREP"; then
4258 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 fi
4260 else
4261 ac_cv_path_EGREP=$EGREP
4262 fi
4263
4264 fi
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4267 $as_echo "$ac_cv_path_EGREP" >&6; }
4268 EGREP="$ac_cv_path_EGREP"
4269
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4272 $as_echo_n "checking for ANSI C header files... " >&6; }
4273 if ${ac_cv_header_stdc+:} false; then :
4274 $as_echo_n "(cached) " >&6
4275 else
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4278 #include <stdlib.h>
4279 #include <stdarg.h>
4280 #include <string.h>
4281 #include <float.h>
4282
4283 int
4284 main ()
4285 {
4286
4287 ;
4288 return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_header_stdc=yes
4293 else
4294 ac_cv_header_stdc=no
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297
4298 if test $ac_cv_header_stdc = yes; then
4299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <string.h>
4303
4304 _ACEOF
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "memchr" >/dev/null 2>&1; then :
4307
4308 else
4309 ac_cv_header_stdc=no
4310 fi
4311 rm -f conftest*
4312
4313 fi
4314
4315 if test $ac_cv_header_stdc = yes; then
4316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <stdlib.h>
4320
4321 _ACEOF
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "free" >/dev/null 2>&1; then :
4324
4325 else
4326 ac_cv_header_stdc=no
4327 fi
4328 rm -f conftest*
4329
4330 fi
4331
4332 if test $ac_cv_header_stdc = yes; then
4333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334 if test "$cross_compiling" = yes; then :
4335 :
4336 else
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 #include <ctype.h>
4340 #include <stdlib.h>
4341 #if ((' ' & 0x0FF) == 0x020)
4342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4344 #else
4345 # define ISLOWER(c) \
4346 (('a' <= (c) && (c) <= 'i') \
4347 || ('j' <= (c) && (c) <= 'r') \
4348 || ('s' <= (c) && (c) <= 'z'))
4349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4350 #endif
4351
4352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4353 int
4354 main ()
4355 {
4356 int i;
4357 for (i = 0; i < 256; i++)
4358 if (XOR (islower (i), ISLOWER (i))
4359 || toupper (i) != TOUPPER (i))
4360 return 2;
4361 return 0;
4362 }
4363 _ACEOF
4364 if ac_fn_c_try_run "$LINENO"; then :
4365
4366 else
4367 ac_cv_header_stdc=no
4368 fi
4369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4370 conftest.$ac_objext conftest.beam conftest.$ac_ext
4371 fi
4372
4373 fi
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4376 $as_echo "$ac_cv_header_stdc" >&6; }
4377 if test $ac_cv_header_stdc = yes; then
4378
4379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4380
4381 fi
4382
4383 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4385 inttypes.h stdint.h unistd.h
4386 do :
4387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4389 "
4390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4391 cat >>confdefs.h <<_ACEOF
4392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393 _ACEOF
4394
4395 fi
4396
4397 done
4398
4399
4400 test "$program_prefix" != NONE &&
4401 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4402 # Use a double $ so make ignores it.
4403 test "$program_suffix" != NONE &&
4404 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4405 # Double any \ or $.
4406 # By default was `s,x,x', remove it if useless.
4407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4409
4410 # Find a good install program. We prefer a C program (faster),
4411 # so one script is as good as another. But avoid the broken or
4412 # incompatible versions:
4413 # SysV /etc/install, /usr/sbin/install
4414 # SunOS /usr/etc/install
4415 # IRIX /sbin/install
4416 # AIX /bin/install
4417 # AmigaOS /C/install, which installs bootblocks on floppy discs
4418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4421 # OS/2's system install, which has a completely different semantic
4422 # ./install, which can be erroneously created by make from ./install.sh.
4423 # Reject install programs that cannot install multiple files.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4425 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4426 if test -z "$INSTALL"; then
4427 if ${ac_cv_path_install+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 # Account for people who put trailing slashes in PATH elements.
4436 case $as_dir/ in #((
4437 ./ | .// | /[cC]/* | \
4438 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4439 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4440 /usr/ucb/* ) ;;
4441 *)
4442 # OSF1 and SCO ODT 3.0 have their own names for install.
4443 # Don't use installbsd from OSF since it installs stuff as root
4444 # by default.
4445 for ac_prog in ginstall scoinst install; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4448 if test $ac_prog = install &&
4449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4450 # AIX install. It has an incompatible calling convention.
4451 :
4452 elif test $ac_prog = install &&
4453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4454 # program-specific install script used by HP pwplus--don't use.
4455 :
4456 else
4457 rm -rf conftest.one conftest.two conftest.dir
4458 echo one > conftest.one
4459 echo two > conftest.two
4460 mkdir conftest.dir
4461 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4462 test -s conftest.one && test -s conftest.two &&
4463 test -s conftest.dir/conftest.one &&
4464 test -s conftest.dir/conftest.two
4465 then
4466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4467 break 3
4468 fi
4469 fi
4470 fi
4471 done
4472 done
4473 ;;
4474 esac
4475
4476 done
4477 IFS=$as_save_IFS
4478
4479 rm -rf conftest.one conftest.two conftest.dir
4480
4481 fi
4482 if test "${ac_cv_path_install+set}" = set; then
4483 INSTALL=$ac_cv_path_install
4484 else
4485 # As a last resort, use the slow shell script. Don't cache a
4486 # value for INSTALL within a source directory, because that will
4487 # break other packages using the cache if that directory is
4488 # removed, or if the value is a relative name.
4489 INSTALL=$ac_install_sh
4490 fi
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4493 $as_echo "$INSTALL" >&6; }
4494
4495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4496 # It thinks the first close brace ends the variable substitution.
4497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4498
4499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4500
4501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4502
4503
4504
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4507 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4508 if ${ac_cv_c_bigendian+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 ac_cv_c_bigendian=unknown
4512 # See if we're dealing with a universal compiler.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515 #ifndef __APPLE_CC__
4516 not a universal capable compiler
4517 #endif
4518 typedef int dummy;
4519
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522
4523 # Check for potential -arch flags. It is not universal unless
4524 # there are at least two -arch flags with different values.
4525 ac_arch=
4526 ac_prev=
4527 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4528 if test -n "$ac_prev"; then
4529 case $ac_word in
4530 i?86 | x86_64 | ppc | ppc64)
4531 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4532 ac_arch=$ac_word
4533 else
4534 ac_cv_c_bigendian=universal
4535 break
4536 fi
4537 ;;
4538 esac
4539 ac_prev=
4540 elif test "x$ac_word" = "x-arch"; then
4541 ac_prev=arch
4542 fi
4543 done
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 if test $ac_cv_c_bigendian = unknown; then
4547 # See if sys/param.h defines the BYTE_ORDER macro.
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <sys/types.h>
4551 #include <sys/param.h>
4552
4553 int
4554 main ()
4555 {
4556 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4557 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4558 && LITTLE_ENDIAN)
4559 bogus endian macros
4560 #endif
4561
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 # It does; now see whether it defined to BIG_ENDIAN or not.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 #include <sys/param.h>
4572
4573 int
4574 main ()
4575 {
4576 #if BYTE_ORDER != BIG_ENDIAN
4577 not big endian
4578 #endif
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_c_bigendian=yes
4586 else
4587 ac_cv_c_bigendian=no
4588 fi
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 fi
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 fi
4593 if test $ac_cv_c_bigendian = unknown; then
4594 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 #include <limits.h>
4598
4599 int
4600 main ()
4601 {
4602 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4603 bogus endian macros
4604 #endif
4605
4606 ;
4607 return 0;
4608 }
4609 _ACEOF
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 # It does; now see whether it defined to _BIG_ENDIAN or not.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #include <limits.h>
4615
4616 int
4617 main ()
4618 {
4619 #ifndef _BIG_ENDIAN
4620 not big endian
4621 #endif
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_c_bigendian=yes
4629 else
4630 ac_cv_c_bigendian=no
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 if test $ac_cv_c_bigendian = unknown; then
4637 # Compile a test program.
4638 if test "$cross_compiling" = yes; then :
4639 # Try to guess by grepping values from an object file.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 short int ascii_mm[] =
4643 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4644 short int ascii_ii[] =
4645 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4646 int use_ascii (int i) {
4647 return ascii_mm[i] + ascii_ii[i];
4648 }
4649 short int ebcdic_ii[] =
4650 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4651 short int ebcdic_mm[] =
4652 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4653 int use_ebcdic (int i) {
4654 return ebcdic_mm[i] + ebcdic_ii[i];
4655 }
4656 extern int foo;
4657
4658 int
4659 main ()
4660 {
4661 return use_ascii (foo) == use_ebcdic (foo);
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4668 ac_cv_c_bigendian=yes
4669 fi
4670 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4671 if test "$ac_cv_c_bigendian" = unknown; then
4672 ac_cv_c_bigendian=no
4673 else
4674 # finding both strings is unlikely to happen, but who knows?
4675 ac_cv_c_bigendian=unknown
4676 fi
4677 fi
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 else
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 $ac_includes_default
4684 int
4685 main ()
4686 {
4687
4688 /* Are we little or big endian? From Harbison&Steele. */
4689 union
4690 {
4691 long int l;
4692 char c[sizeof (long int)];
4693 } u;
4694 u.l = 1;
4695 return u.c[sizeof (long int) - 1] == 1;
4696
4697 ;
4698 return 0;
4699 }
4700 _ACEOF
4701 if ac_fn_c_try_run "$LINENO"; then :
4702 ac_cv_c_bigendian=no
4703 else
4704 ac_cv_c_bigendian=yes
4705 fi
4706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4707 conftest.$ac_objext conftest.beam conftest.$ac_ext
4708 fi
4709
4710 fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4713 $as_echo "$ac_cv_c_bigendian" >&6; }
4714 case $ac_cv_c_bigendian in #(
4715 yes)
4716 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4717 ;; #(
4718 no)
4719 ;; #(
4720 universal)
4721
4722 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4723
4724 ;; #(
4725 *)
4726 as_fn_error $? "unknown endianness
4727 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4728 esac
4729
4730
4731
4732
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_DTC+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$DTC"; then
4742 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 DTC=$ac_cv_prog_DTC
4762 if test -n "$DTC"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4764 $as_echo "$DTC" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771 fi
4772 if test -z "$ac_cv_prog_DTC"; then
4773 ac_ct_DTC=$DTC
4774 # Extract the first word of "dtc", so it can be a program name with args.
4775 set dummy dtc; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_DTC"; then
4782 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_ac_ct_DTC="dtc"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4802 if test -n "$ac_ct_DTC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4804 $as_echo "$ac_ct_DTC" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810 if test "x$ac_ct_DTC" = x; then
4811 DTC=""
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 DTC=$ac_ct_DTC
4820 fi
4821 else
4822 DTC="$ac_cv_prog_DTC"
4823 fi
4824
4825
4826 if test "x$cross_compiling" = "xno"; then
4827 : "${AR_FOR_BUILD:=\$(AR)}"
4828 : "${CC_FOR_BUILD:=\$(CC)}"
4829 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4830 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4831 : "${CPPFLAGS_FOR_BUILD:=\$(CPPFLAGS)}"
4832 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4833 else
4834 : "${AR_FOR_BUILD:=ar}"
4835 : "${CC_FOR_BUILD:=gcc}"
4836 : "${RANLIB_FOR_BUILD:=ranlib}"
4837 : "${CFLAGS_FOR_BUILD:=-g -O}"
4838 : "${CPPFLAGS_FOR_BUILD:=}"
4839 : "${LDLFAGS_FOR_BUILD:=}"
4840 fi
4841
4842
4843
4844
4845
4846
4847
4848
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4851 set dummy ${ac_tool_prefix}ar; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if ${ac_cv_prog_AR+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$AR"; then
4858 ac_cv_prog_AR="$AR" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_AR="${ac_tool_prefix}ar"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 AR=$ac_cv_prog_AR
4878 if test -n "$AR"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4880 $as_echo "$AR" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886
4887 fi
4888 if test -z "$ac_cv_prog_AR"; then
4889 ac_ct_AR=$AR
4890 # Extract the first word of "ar", so it can be a program name with args.
4891 set dummy ar; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$ac_ct_AR"; then
4898 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_ac_ct_AR="ar"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4918 if test -n "$ac_ct_AR"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4920 $as_echo "$ac_ct_AR" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926 if test "x$ac_ct_AR" = x; then
4927 AR=""
4928 else
4929 case $cross_compiling:$ac_tool_warned in
4930 yes:)
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933 ac_tool_warned=yes ;;
4934 esac
4935 AR=$ac_ct_AR
4936 fi
4937 else
4938 AR="$ac_cv_prog_AR"
4939 fi
4940
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_RANLIB+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$RANLIB"; then
4950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 RANLIB=$ac_cv_prog_RANLIB
4970 if test -n "$RANLIB"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4972 $as_echo "$RANLIB" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 fi
4980 if test -z "$ac_cv_prog_RANLIB"; then
4981 ac_ct_RANLIB=$RANLIB
4982 # Extract the first word of "ranlib", so it can be a program name with args.
4983 set dummy ranlib; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$ac_ct_RANLIB"; then
4990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_ac_ct_RANLIB="ranlib"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5010 if test -n "$ac_ct_RANLIB"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5012 $as_echo "$ac_ct_RANLIB" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017
5018 if test "x$ac_ct_RANLIB" = x; then
5019 RANLIB=":"
5020 else
5021 case $cross_compiling:$ac_tool_warned in
5022 yes:)
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5025 ac_tool_warned=yes ;;
5026 esac
5027 RANLIB=$ac_ct_RANLIB
5028 fi
5029 else
5030 RANLIB="$ac_cv_prog_RANLIB"
5031 fi
5032
5033
5034
5035
5036
5037
5038
5039
5040 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 case $PKG_CONFIG in
5050 [\\/]* | ?:[\\/]*)
5051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5052 ;;
5053 *)
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 ;;
5070 esac
5071 fi
5072 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5073 if test -n "$PKG_CONFIG"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5075 $as_echo "$PKG_CONFIG" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 fi
5083 if test -z "$ac_cv_path_PKG_CONFIG"; then
5084 ac_pt_PKG_CONFIG=$PKG_CONFIG
5085 # Extract the first word of "pkg-config", so it can be a program name with args.
5086 set dummy pkg-config; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 case $ac_pt_PKG_CONFIG in
5093 [\\/]* | ?:[\\/]*)
5094 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5095 ;;
5096 *)
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 ;;
5113 esac
5114 fi
5115 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5116 if test -n "$ac_pt_PKG_CONFIG"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5118 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124 if test "x$ac_pt_PKG_CONFIG" = x; then
5125 PKG_CONFIG=""
5126 else
5127 case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133 PKG_CONFIG=$ac_pt_PKG_CONFIG
5134 fi
5135 else
5136 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5137 fi
5138
5139 fi
5140 if test -n "$PKG_CONFIG"; then
5141 _pkg_min_version=0.9.0
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5143 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5144 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 PKG_CONFIG=""
5151 fi
5152 fi
5153
5154 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5155 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5156 # is C99. So handle it ourselves.
5157 :
5158 C_DIALECT=
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5160 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163
5164 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5165 # error "C11 support not found"
5166 #endif
5167
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5171 $as_echo "yes" >&6; }
5172 else
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5177 $as_echo_n "checking for -std=c11 support... " >&6; }
5178 ac_save_CC="$CC"
5179 CC="$CC -std=c11"
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182
5183 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5184 # error "C11 support not found"
5185 #endif
5186
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5191 $as_echo "yes" >&6; }
5192 CC="$ac_save_CC"
5193 C_DIALECT="-std=c11"
5194
5195 else
5196 as_fn_error $? "C11 is required" "$LINENO" 5
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201
5202
5203
5204
5205
5206 for ac_header in $ac_header_list
5207 do :
5208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5209 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5210 "
5211 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5212 cat >>confdefs.h <<_ACEOF
5213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5214 _ACEOF
5215
5216 fi
5217
5218 done
5219
5220
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 for ac_func in $ac_func_list
5268 do :
5269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5271 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5272 cat >>confdefs.h <<_ACEOF
5273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5274 _ACEOF
5275
5276 fi
5277 done
5278
5279
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5406 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5407 if ${ac_cv_struct_tm+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <sys/types.h>
5413 #include <time.h>
5414
5415 int
5416 main ()
5417 {
5418 struct tm tm;
5419 int *p = &tm.tm_sec;
5420 return !p;
5421 ;
5422 return 0;
5423 }
5424 _ACEOF
5425 if ac_fn_c_try_compile "$LINENO"; then :
5426 ac_cv_struct_tm=time.h
5427 else
5428 ac_cv_struct_tm=sys/time.h
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5433 $as_echo "$ac_cv_struct_tm" >&6; }
5434 if test $ac_cv_struct_tm = sys/time.h; then
5435
5436 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5437
5438 fi
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5441 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5442 if ${ac_cv_type_uid_t+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <sys/types.h>
5448
5449 _ACEOF
5450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5451 $EGREP "uid_t" >/dev/null 2>&1; then :
5452 ac_cv_type_uid_t=yes
5453 else
5454 ac_cv_type_uid_t=no
5455 fi
5456 rm -f conftest*
5457
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5460 $as_echo "$ac_cv_type_uid_t" >&6; }
5461 if test $ac_cv_type_uid_t = no; then
5462
5463 $as_echo "#define uid_t int" >>confdefs.h
5464
5465
5466 $as_echo "#define gid_t int" >>confdefs.h
5467
5468 fi
5469
5470 case `pwd` in
5471 *\ * | *\ *)
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5473 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5474 esac
5475
5476
5477
5478 macro_version='2.2.7a'
5479 macro_revision='1.3134'
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493 ltmain="$ac_aux_dir/ltmain.sh"
5494
5495 # Backslashify metacharacters that are still active within
5496 # double-quoted strings.
5497 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5498
5499 # Same as above, but do not quote variable references.
5500 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5501
5502 # Sed substitution to delay expansion of an escaped shell variable in a
5503 # double_quote_subst'ed string.
5504 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5505
5506 # Sed substitution to delay expansion of an escaped single quote.
5507 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5508
5509 # Sed substitution to avoid accidental globbing in evaled expressions
5510 no_glob_subst='s/\*/\\\*/g'
5511
5512 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5513 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5514 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5517 $as_echo_n "checking how to print strings... " >&6; }
5518 # Test print first, because it will be a builtin if present.
5519 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5520 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5521 ECHO='print -r --'
5522 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5523 ECHO='printf %s\n'
5524 else
5525 # Use this function as a fallback that always works.
5526 func_fallback_echo ()
5527 {
5528 eval 'cat <<_LTECHO_EOF
5529 $1
5530 _LTECHO_EOF'
5531 }
5532 ECHO='func_fallback_echo'
5533 fi
5534
5535 # func_echo_all arg...
5536 # Invoke $ECHO with all args, space-separated.
5537 func_echo_all ()
5538 {
5539 $ECHO ""
5540 }
5541
5542 case "$ECHO" in
5543 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5544 $as_echo "printf" >&6; } ;;
5545 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5546 $as_echo "print -r" >&6; } ;;
5547 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5548 $as_echo "cat" >&6; } ;;
5549 esac
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5565 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5566 if ${ac_cv_path_SED+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5570 for ac_i in 1 2 3 4 5 6 7; do
5571 ac_script="$ac_script$as_nl$ac_script"
5572 done
5573 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5574 { ac_script=; unset ac_script;}
5575 if test -z "$SED"; then
5576 ac_path_SED_found=false
5577 # Loop through the user's path and test for each of PROGNAME-LIST
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_prog in sed gsed; do
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5586 as_fn_executable_p "$ac_path_SED" || continue
5587 # Check for GNU ac_path_SED and select it if it is found.
5588 # Check for GNU $ac_path_SED
5589 case `"$ac_path_SED" --version 2>&1` in
5590 *GNU*)
5591 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5592 *)
5593 ac_count=0
5594 $as_echo_n 0123456789 >"conftest.in"
5595 while :
5596 do
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 $as_echo '' >> "conftest.nl"
5601 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5603 as_fn_arith $ac_count + 1 && ac_count=$as_val
5604 if test $ac_count -gt ${ac_path_SED_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_SED="$ac_path_SED"
5607 ac_path_SED_max=$ac_count
5608 fi
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5611 done
5612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5613 esac
5614
5615 $ac_path_SED_found && break 3
5616 done
5617 done
5618 done
5619 IFS=$as_save_IFS
5620 if test -z "$ac_cv_path_SED"; then
5621 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5622 fi
5623 else
5624 ac_cv_path_SED=$SED
5625 fi
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5629 $as_echo "$ac_cv_path_SED" >&6; }
5630 SED="$ac_cv_path_SED"
5631 rm -f conftest.sed
5632
5633 test -z "$SED" && SED=sed
5634 Xsed="$SED -e 1s/^X//"
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5647 $as_echo_n "checking for fgrep... " >&6; }
5648 if ${ac_cv_path_FGREP+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5652 then ac_cv_path_FGREP="$GREP -F"
5653 else
5654 if test -z "$FGREP"; then
5655 ac_path_FGREP_found=false
5656 # Loop through the user's path and test for each of PROGNAME-LIST
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_prog in fgrep; do
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p "$ac_path_FGREP" || continue
5666 # Check for GNU ac_path_FGREP and select it if it is found.
5667 # Check for GNU $ac_path_FGREP
5668 case `"$ac_path_FGREP" --version 2>&1` in
5669 *GNU*)
5670 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5671 *)
5672 ac_count=0
5673 $as_echo_n 0123456789 >"conftest.in"
5674 while :
5675 do
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo 'FGREP' >> "conftest.nl"
5680 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5682 as_fn_arith $ac_count + 1 && ac_count=$as_val
5683 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_FGREP="$ac_path_FGREP"
5686 ac_path_FGREP_max=$ac_count
5687 fi
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5690 done
5691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 esac
5693
5694 $ac_path_FGREP_found && break 3
5695 done
5696 done
5697 done
5698 IFS=$as_save_IFS
5699 if test -z "$ac_cv_path_FGREP"; then
5700 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5701 fi
5702 else
5703 ac_cv_path_FGREP=$FGREP
5704 fi
5705
5706 fi
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5709 $as_echo "$ac_cv_path_FGREP" >&6; }
5710 FGREP="$ac_cv_path_FGREP"
5711
5712
5713 test -z "$GREP" && GREP=grep
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 # Check whether --with-gnu-ld was given.
5734 if test "${with_gnu_ld+set}" = set; then :
5735 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5736 else
5737 with_gnu_ld=no
5738 fi
5739
5740 ac_prog=ld
5741 if test "$GCC" = yes; then
5742 # Check if gcc -print-prog-name=ld gives a path.
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5744 $as_echo_n "checking for ld used by $CC... " >&6; }
5745 case $host in
5746 *-*-mingw*)
5747 # gcc leaves a trailing carriage return which upsets mingw
5748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5749 *)
5750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5751 esac
5752 case $ac_prog in
5753 # Accept absolute paths.
5754 [\\/]* | ?:[\\/]*)
5755 re_direlt='/[^/][^/]*/\.\./'
5756 # Canonicalize the pathname of ld
5757 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5758 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5759 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5760 done
5761 test -z "$LD" && LD="$ac_prog"
5762 ;;
5763 "")
5764 # If it fails, then pretend we aren't using GCC.
5765 ac_prog=ld
5766 ;;
5767 *)
5768 # If it is relative, then search for the first ld in PATH.
5769 with_gnu_ld=unknown
5770 ;;
5771 esac
5772 elif test "$with_gnu_ld" = yes; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5774 $as_echo_n "checking for GNU ld... " >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5777 $as_echo_n "checking for non-GNU ld... " >&6; }
5778 fi
5779 if ${lt_cv_path_LD+:} false; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 if test -z "$LD"; then
5783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5784 for ac_dir in $PATH; do
5785 IFS="$lt_save_ifs"
5786 test -z "$ac_dir" && ac_dir=.
5787 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5788 lt_cv_path_LD="$ac_dir/$ac_prog"
5789 # Check to see if the program is GNU ld. I'd rather use --version,
5790 # but apparently some variants of GNU ld only accept -v.
5791 # Break only if it was the GNU/non-GNU ld that we prefer.
5792 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5793 *GNU* | *'with BFD'*)
5794 test "$with_gnu_ld" != no && break
5795 ;;
5796 *)
5797 test "$with_gnu_ld" != yes && break
5798 ;;
5799 esac
5800 fi
5801 done
5802 IFS="$lt_save_ifs"
5803 else
5804 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5805 fi
5806 fi
5807
5808 LD="$lt_cv_path_LD"
5809 if test -n "$LD"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5811 $as_echo "$LD" >&6; }
5812 else
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5815 fi
5816 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5818 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5819 if ${lt_cv_prog_gnu_ld+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5823 case `$LD -v 2>&1 </dev/null` in
5824 *GNU* | *'with BFD'*)
5825 lt_cv_prog_gnu_ld=yes
5826 ;;
5827 *)
5828 lt_cv_prog_gnu_ld=no
5829 ;;
5830 esac
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5833 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5834 with_gnu_ld=$lt_cv_prog_gnu_ld
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5845 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5846 if ${lt_cv_path_NM+:} false; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 if test -n "$NM"; then
5850 # Let the user override the nm to test.
5851 lt_nm_to_check="$NM"
5852 else
5853 lt_nm_to_check="${ac_tool_prefix}nm"
5854 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5855 lt_nm_to_check="$lt_nm_to_check nm"
5856 fi
5857 fi
5858 for lt_tmp_nm in "$lt_nm_to_check"; do
5859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5860 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5861 IFS="$lt_save_ifs"
5862 test -z "$ac_dir" && ac_dir=.
5863 # Strip out any user-provided options from the nm to test twice,
5864 # the first time to test to see if nm (rather than its options) has
5865 # an explicit path, the second time to yield a file which can be
5866 # nm'ed itself.
5867 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5868 case "$tmp_nm_path" in
5869 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5870 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5871 esac
5872 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5873 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5874 # Check to see if the nm accepts a BSD-compat flag.
5875 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5876 # nm: unknown option "B" ignored
5877 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5878 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5879 break
5880 ;;
5881 *)
5882 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5883 *$tmp_nm*)
5884 lt_cv_path_NM="$tmp_nm -p"
5885 break
5886 ;;
5887 *)
5888 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5889 continue # so that we can try to find one that supports BSD flags
5890 ;;
5891 esac
5892 ;;
5893 esac
5894 fi
5895 done
5896 IFS="$lt_save_ifs"
5897 done
5898 : ${lt_cv_path_NM=no}
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5901 $as_echo "$lt_cv_path_NM" >&6; }
5902 if test "$lt_cv_path_NM" != "no"; then
5903 NM="$lt_cv_path_NM"
5904 else
5905 # Didn't find any BSD compatible name lister, look for dumpbin.
5906 if test -n "$DUMPBIN"; then :
5907 # Let the user override the test.
5908 else
5909 if test -n "$ac_tool_prefix"; then
5910 for ac_prog in dumpbin "link -dump"
5911 do
5912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_DUMPBIN+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$DUMPBIN"; then
5920 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 DUMPBIN=$ac_cv_prog_DUMPBIN
5940 if test -n "$DUMPBIN"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5942 $as_echo "$DUMPBIN" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949 test -n "$DUMPBIN" && break
5950 done
5951 fi
5952 if test -z "$DUMPBIN"; then
5953 ac_ct_DUMPBIN=$DUMPBIN
5954 for ac_prog in dumpbin "link -dump"
5955 do
5956 # Extract the first word of "$ac_prog", so it can be a program name with args.
5957 set dummy $ac_prog; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$ac_ct_DUMPBIN"; then
5964 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5984 if test -n "$ac_ct_DUMPBIN"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5986 $as_echo "$ac_ct_DUMPBIN" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993 test -n "$ac_ct_DUMPBIN" && break
5994 done
5995
5996 if test "x$ac_ct_DUMPBIN" = x; then
5997 DUMPBIN=":"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005 DUMPBIN=$ac_ct_DUMPBIN
6006 fi
6007 fi
6008
6009 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6010 *COFF*)
6011 DUMPBIN="$DUMPBIN -symbols"
6012 ;;
6013 *)
6014 DUMPBIN=:
6015 ;;
6016 esac
6017 fi
6018
6019 if test "$DUMPBIN" != ":"; then
6020 NM="$DUMPBIN"
6021 fi
6022 fi
6023 test -z "$NM" && NM=nm
6024
6025
6026
6027
6028
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6031 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6032 if ${lt_cv_nm_interface+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 lt_cv_nm_interface="BSD nm"
6036 echo "int some_variable = 0;" > conftest.$ac_ext
6037 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6038 (eval "$ac_compile" 2>conftest.err)
6039 cat conftest.err >&5
6040 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6041 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6042 cat conftest.err >&5
6043 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6044 cat conftest.out >&5
6045 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6046 lt_cv_nm_interface="MS dumpbin"
6047 fi
6048 rm -f conftest*
6049 fi
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6051 $as_echo "$lt_cv_nm_interface" >&6; }
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6054 $as_echo_n "checking whether ln -s works... " >&6; }
6055 LN_S=$as_ln_s
6056 if test "$LN_S" = "ln -s"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6058 $as_echo "yes" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6061 $as_echo "no, using $LN_S" >&6; }
6062 fi
6063
6064 # find the maximum length of command line arguments
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6066 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6067 if ${lt_cv_sys_max_cmd_len+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 i=0
6071 teststring="ABCD"
6072
6073 case $build_os in
6074 msdosdjgpp*)
6075 # On DJGPP, this test can blow up pretty badly due to problems in libc
6076 # (any single argument exceeding 2000 bytes causes a buffer overrun
6077 # during glob expansion). Even if it were fixed, the result of this
6078 # check would be larger than it should be.
6079 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6080 ;;
6081
6082 gnu*)
6083 # Under GNU Hurd, this test is not required because there is
6084 # no limit to the length of command line arguments.
6085 # Libtool will interpret -1 as no limit whatsoever
6086 lt_cv_sys_max_cmd_len=-1;
6087 ;;
6088
6089 cygwin* | mingw* | cegcc*)
6090 # On Win9x/ME, this test blows up -- it succeeds, but takes
6091 # about 5 minutes as the teststring grows exponentially.
6092 # Worse, since 9x/ME are not pre-emptively multitasking,
6093 # you end up with a "frozen" computer, even though with patience
6094 # the test eventually succeeds (with a max line length of 256k).
6095 # Instead, let's just punt: use the minimum linelength reported by
6096 # all of the supported platforms: 8192 (on NT/2K/XP).
6097 lt_cv_sys_max_cmd_len=8192;
6098 ;;
6099
6100 mint*)
6101 # On MiNT this can take a long time and run out of memory.
6102 lt_cv_sys_max_cmd_len=8192;
6103 ;;
6104
6105 amigaos*)
6106 # On AmigaOS with pdksh, this test takes hours, literally.
6107 # So we just punt and use a minimum line length of 8192.
6108 lt_cv_sys_max_cmd_len=8192;
6109 ;;
6110
6111 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6112 # This has been around since 386BSD, at least. Likely further.
6113 if test -x /sbin/sysctl; then
6114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6115 elif test -x /usr/sbin/sysctl; then
6116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6117 else
6118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6119 fi
6120 # And add a safety zone
6121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6123 ;;
6124
6125 interix*)
6126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6127 lt_cv_sys_max_cmd_len=196608
6128 ;;
6129
6130 osf*)
6131 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6132 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6133 # nice to cause kernel panics so lets avoid the loop below.
6134 # First set a reasonable default.
6135 lt_cv_sys_max_cmd_len=16384
6136 #
6137 if test -x /sbin/sysconfig; then
6138 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6139 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6140 esac
6141 fi
6142 ;;
6143 sco3.2v5*)
6144 lt_cv_sys_max_cmd_len=102400
6145 ;;
6146 sysv5* | sco5v6* | sysv4.2uw2*)
6147 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6148 if test -n "$kargmax"; then
6149 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6150 else
6151 lt_cv_sys_max_cmd_len=32768
6152 fi
6153 ;;
6154 *)
6155 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6156 if test -n "$lt_cv_sys_max_cmd_len"; then
6157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6159 else
6160 # Make teststring a little bigger before we do anything with it.
6161 # a 1K string should be a reasonable start.
6162 for i in 1 2 3 4 5 6 7 8 ; do
6163 teststring=$teststring$teststring
6164 done
6165 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6166 # If test is not a shell built-in, we'll probably end up computing a
6167 # maximum length that is only half of the actual maximum length, but
6168 # we can't tell.
6169 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6170 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6171 test $i != 17 # 1/2 MB should be enough
6172 do
6173 i=`expr $i + 1`
6174 teststring=$teststring$teststring
6175 done
6176 # Only check the string length outside the loop.
6177 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6178 teststring=
6179 # Add a significant safety factor because C++ compilers can tack on
6180 # massive amounts of additional arguments before passing them to the
6181 # linker. It appears as though 1/2 is a usable value.
6182 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6183 fi
6184 ;;
6185 esac
6186
6187 fi
6188
6189 if test -n $lt_cv_sys_max_cmd_len ; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6191 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6194 $as_echo "none" >&6; }
6195 fi
6196 max_cmd_len=$lt_cv_sys_max_cmd_len
6197
6198
6199
6200
6201
6202
6203 : ${CP="cp -f"}
6204 : ${MV="mv -f"}
6205 : ${RM="rm -f"}
6206
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6208 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6209 # Try some XSI features
6210 xsi_shell=no
6211 ( _lt_dummy="a/b/c"
6212 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6213 = c,a/b,, \
6214 && eval 'test $(( 1 + 1 )) -eq 2 \
6215 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6216 && xsi_shell=yes
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6218 $as_echo "$xsi_shell" >&6; }
6219
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6222 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6223 lt_shell_append=no
6224 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6225 >/dev/null 2>&1 \
6226 && lt_shell_append=yes
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6228 $as_echo "$lt_shell_append" >&6; }
6229
6230
6231 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6232 lt_unset=unset
6233 else
6234 lt_unset=false
6235 fi
6236
6237
6238
6239
6240
6241 # test EBCDIC or ASCII
6242 case `echo X|tr X '\101'` in
6243 A) # ASCII based system
6244 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6245 lt_SP2NL='tr \040 \012'
6246 lt_NL2SP='tr \015\012 \040\040'
6247 ;;
6248 *) # EBCDIC based system
6249 lt_SP2NL='tr \100 \n'
6250 lt_NL2SP='tr \r\n \100\100'
6251 ;;
6252 esac
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6263 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6264 if ${lt_cv_ld_reload_flag+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 lt_cv_ld_reload_flag='-r'
6268 fi
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6270 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6271 reload_flag=$lt_cv_ld_reload_flag
6272 case $reload_flag in
6273 "" | " "*) ;;
6274 *) reload_flag=" $reload_flag" ;;
6275 esac
6276 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6277 case $host_os in
6278 darwin*)
6279 if test "$GCC" = yes; then
6280 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6281 else
6282 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6283 fi
6284 ;;
6285 esac
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_OBJDUMP+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -n "$OBJDUMP"; then
6304 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6316 fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 OBJDUMP=$ac_cv_prog_OBJDUMP
6324 if test -n "$OBJDUMP"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6326 $as_echo "$OBJDUMP" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332
6333 fi
6334 if test -z "$ac_cv_prog_OBJDUMP"; then
6335 ac_ct_OBJDUMP=$OBJDUMP
6336 # Extract the first word of "objdump", so it can be a program name with args.
6337 set dummy objdump; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$ac_ct_OBJDUMP"; then
6344 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6364 if test -n "$ac_ct_OBJDUMP"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6366 $as_echo "$ac_ct_OBJDUMP" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372 if test "x$ac_ct_OBJDUMP" = x; then
6373 OBJDUMP="false"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381 OBJDUMP=$ac_ct_OBJDUMP
6382 fi
6383 else
6384 OBJDUMP="$ac_cv_prog_OBJDUMP"
6385 fi
6386
6387 test -z "$OBJDUMP" && OBJDUMP=objdump
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6398 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6399 if ${lt_cv_deplibs_check_method+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 lt_cv_file_magic_cmd='$MAGIC_CMD'
6403 lt_cv_file_magic_test_file=
6404 lt_cv_deplibs_check_method='unknown'
6405 # Need to set the preceding variable on all platforms that support
6406 # interlibrary dependencies.
6407 # 'none' -- dependencies not supported.
6408 # `unknown' -- same as none, but documents that we really don't know.
6409 # 'pass_all' -- all dependencies passed with no checks.
6410 # 'test_compile' -- check by making test program.
6411 # 'file_magic [[regex]]' -- check by looking for files in library path
6412 # which responds to the $file_magic_cmd with a given extended regex.
6413 # If you have `file' or equivalent on your system and you're not sure
6414 # whether `pass_all' will *always* work, you probably want this one.
6415
6416 case $host_os in
6417 aix[4-9]*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420
6421 beos*)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424
6425 bsdi[45]*)
6426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6427 lt_cv_file_magic_cmd='/usr/bin/file -L'
6428 lt_cv_file_magic_test_file=/shlib/libc.so
6429 ;;
6430
6431 cygwin*)
6432 # func_win32_libid is a shell function defined in ltmain.sh
6433 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6434 lt_cv_file_magic_cmd='func_win32_libid'
6435 ;;
6436
6437 mingw* | pw32*)
6438 # Base MSYS/MinGW do not provide the 'file' command needed by
6439 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6440 # unless we find 'file', for example because we are cross-compiling.
6441 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6442 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6443 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6444 lt_cv_file_magic_cmd='func_win32_libid'
6445 else
6446 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6447 lt_cv_file_magic_cmd='$OBJDUMP -f'
6448 fi
6449 ;;
6450
6451 cegcc*)
6452 # use the weaker test based on 'objdump'. See mingw*.
6453 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6454 lt_cv_file_magic_cmd='$OBJDUMP -f'
6455 ;;
6456
6457 darwin* | rhapsody*)
6458 lt_cv_deplibs_check_method=pass_all
6459 ;;
6460
6461 freebsd* | dragonfly*)
6462 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6463 case $host_cpu in
6464 i*86 )
6465 # Not sure whether the presence of OpenBSD here was a mistake.
6466 # Let's accept both of them until this is cleared up.
6467 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6468 lt_cv_file_magic_cmd=/usr/bin/file
6469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6470 ;;
6471 esac
6472 else
6473 lt_cv_deplibs_check_method=pass_all
6474 fi
6475 ;;
6476
6477 gnu*)
6478 lt_cv_deplibs_check_method=pass_all
6479 ;;
6480
6481 haiku*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
6484
6485 hpux10.20* | hpux11*)
6486 lt_cv_file_magic_cmd=/usr/bin/file
6487 case $host_cpu in
6488 ia64*)
6489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6490 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6491 ;;
6492 hppa*64*)
6493 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]'
6494 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6495 ;;
6496 *)
6497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6498 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6499 ;;
6500 esac
6501 ;;
6502
6503 interix[3-9]*)
6504 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6506 ;;
6507
6508 irix5* | irix6* | nonstopux*)
6509 case $LD in
6510 *-32|*"-32 ") libmagic=32-bit;;
6511 *-n32|*"-n32 ") libmagic=N32;;
6512 *-64|*"-64 ") libmagic=64-bit;;
6513 *) libmagic=never-match;;
6514 esac
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 # This must be Linux ELF.
6519 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 netbsd*)
6524 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6526 else
6527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6528 fi
6529 ;;
6530
6531 newos6*)
6532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6533 lt_cv_file_magic_cmd=/usr/bin/file
6534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6535 ;;
6536
6537 *nto* | *qnx*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541 openbsd*)
6542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6544 else
6545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6546 fi
6547 ;;
6548
6549 osf3* | osf4* | osf5*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553 rdos*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557 solaris*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
6565 sysv4 | sysv4.3*)
6566 case $host_vendor in
6567 motorola)
6568 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]'
6569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6570 ;;
6571 ncr)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574 sequent)
6575 lt_cv_file_magic_cmd='/bin/file'
6576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6577 ;;
6578 sni)
6579 lt_cv_file_magic_cmd='/bin/file'
6580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6581 lt_cv_file_magic_test_file=/lib/libc.so
6582 ;;
6583 siemens)
6584 lt_cv_deplibs_check_method=pass_all
6585 ;;
6586 pc)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589 esac
6590 ;;
6591
6592 tpf*)
6593 lt_cv_deplibs_check_method=pass_all
6594 ;;
6595 esac
6596
6597 fi
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6599 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6600 file_magic_cmd=$lt_cv_file_magic_cmd
6601 deplibs_check_method=$lt_cv_deplibs_check_method
6602 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 plugin_option=
6616 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6617 for plugin in $plugin_names; do
6618 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6619 if test x$plugin_so = x$plugin; then
6620 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6621 fi
6622 if test x$plugin_so != x$plugin; then
6623 plugin_option="--plugin $plugin_so"
6624 break
6625 fi
6626 done
6627
6628 if test -n "$ac_tool_prefix"; then
6629 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}ar; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if ${ac_cv_prog_AR+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if test -n "$AR"; then
6637 ac_cv_prog_AR="$AR" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6646 ac_cv_prog_AR="${ac_tool_prefix}ar"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650 done
6651 done
6652 IFS=$as_save_IFS
6653
6654 fi
6655 fi
6656 AR=$ac_cv_prog_AR
6657 if test -n "$AR"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6659 $as_echo "$AR" >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6663 fi
6664
6665
6666 fi
6667 if test -z "$ac_cv_prog_AR"; then
6668 ac_ct_AR=$AR
6669 # Extract the first word of "ar", so it can be a program name with args.
6670 set dummy ar; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 if test -n "$ac_ct_AR"; then
6677 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686 ac_cv_prog_ac_ct_AR="ar"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6689 fi
6690 done
6691 done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6697 if test -n "$ac_ct_AR"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6699 $as_echo "$ac_ct_AR" >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705 if test "x$ac_ct_AR" = x; then
6706 AR="false"
6707 else
6708 case $cross_compiling:$ac_tool_warned in
6709 yes:)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714 AR=$ac_ct_AR
6715 fi
6716 else
6717 AR="$ac_cv_prog_AR"
6718 fi
6719
6720 test -z "$AR" && AR=ar
6721 if test -n "$plugin_option"; then
6722 if $AR --help 2>&1 | grep -q "\--plugin"; then
6723 touch conftest.c
6724 $AR $plugin_option rc conftest.a conftest.c
6725 if test "$?" != 0; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6727 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6728 else
6729 AR="$AR $plugin_option"
6730 fi
6731 rm -f conftest.*
6732 fi
6733 fi
6734 test -z "$AR_FLAGS" && AR_FLAGS=cru
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}strip; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_STRIP+:} false; then :
6752 $as_echo_n "(cached) " >&6
6753 else
6754 if test -n "$STRIP"; then
6755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 STRIP=$ac_cv_prog_STRIP
6775 if test -n "$STRIP"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6777 $as_echo "$STRIP" >&6; }
6778 else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783
6784 fi
6785 if test -z "$ac_cv_prog_STRIP"; then
6786 ac_ct_STRIP=$STRIP
6787 # Extract the first word of "strip", so it can be a program name with args.
6788 set dummy strip; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$ac_ct_STRIP"; then
6795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_ac_ct_STRIP="strip"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6815 if test -n "$ac_ct_STRIP"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6817 $as_echo "$ac_ct_STRIP" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823 if test "x$ac_ct_STRIP" = x; then
6824 STRIP=":"
6825 else
6826 case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6831 esac
6832 STRIP=$ac_ct_STRIP
6833 fi
6834 else
6835 STRIP="$ac_cv_prog_STRIP"
6836 fi
6837
6838 test -z "$STRIP" && STRIP=:
6839
6840
6841
6842
6843
6844
6845 if test -n "$ac_tool_prefix"; then
6846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_RANLIB+:} false; then :
6851 $as_echo_n "(cached) " >&6
6852 else
6853 if test -n "$RANLIB"; then
6854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 break 2
6866 fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 RANLIB=$ac_cv_prog_RANLIB
6874 if test -n "$RANLIB"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6876 $as_echo "$RANLIB" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882
6883 fi
6884 if test -z "$ac_cv_prog_RANLIB"; then
6885 ac_ct_RANLIB=$RANLIB
6886 # Extract the first word of "ranlib", so it can be a program name with args.
6887 set dummy ranlib; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$ac_ct_RANLIB"; then
6894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_ac_ct_RANLIB="ranlib"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6914 if test -n "$ac_ct_RANLIB"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6916 $as_echo "$ac_ct_RANLIB" >&6; }
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922 if test "x$ac_ct_RANLIB" = x; then
6923 RANLIB=":"
6924 else
6925 case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931 RANLIB=$ac_ct_RANLIB
6932 fi
6933 else
6934 RANLIB="$ac_cv_prog_RANLIB"
6935 fi
6936
6937 test -z "$RANLIB" && RANLIB=:
6938 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6939 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6940 RANLIB="$RANLIB $plugin_option"
6941 fi
6942 fi
6943
6944
6945
6946
6947
6948
6949 # Determine commands to create old-style static archives.
6950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6951 old_postinstall_cmds='chmod 644 $oldlib'
6952 old_postuninstall_cmds=
6953
6954 if test -n "$RANLIB"; then
6955 case $host_os in
6956 openbsd*)
6957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6958 ;;
6959 *)
6960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6961 ;;
6962 esac
6963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6964 fi
6965
6966 case $host_os in
6967 darwin*)
6968 lock_old_archive_extraction=yes ;;
6969 *)
6970 lock_old_archive_extraction=no ;;
6971 esac
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993 for ac_prog in gawk mawk nawk awk
6994 do
6995 # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_AWK+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$AWK"; then
7003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_AWK="$ac_prog"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 AWK=$ac_cv_prog_AWK
7023 if test -n "$AWK"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7025 $as_echo "$AWK" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032 test -n "$AWK" && break
7033 done
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 # If no C compiler was specified, use CC.
7054 LTCC=${LTCC-"$CC"}
7055
7056 # If no C compiler flags were specified, use CFLAGS.
7057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7058
7059 # Allow CC to be a program name with arguments.
7060 compiler=$CC
7061
7062
7063 # Check for command to grab the raw symbol name followed by C symbol from nm.
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7065 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7066 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069
7070 # These are sane defaults that work on at least a few old systems.
7071 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7072
7073 # Character class describing NM global symbol codes.
7074 symcode='[BCDEGRST]'
7075
7076 # Regexp to match symbols that can be accessed directly from C.
7077 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7078
7079 # Define system-specific variables.
7080 case $host_os in
7081 aix*)
7082 symcode='[BCDT]'
7083 ;;
7084 cygwin* | mingw* | pw32* | cegcc*)
7085 symcode='[ABCDGISTW]'
7086 ;;
7087 hpux*)
7088 if test "$host_cpu" = ia64; then
7089 symcode='[ABCDEGRST]'
7090 fi
7091 ;;
7092 irix* | nonstopux*)
7093 symcode='[BCDEGRST]'
7094 ;;
7095 osf*)
7096 symcode='[BCDEGQRST]'
7097 ;;
7098 solaris*)
7099 symcode='[BCDRT]'
7100 ;;
7101 sco3.2v5*)
7102 symcode='[DT]'
7103 ;;
7104 sysv4.2uw2*)
7105 symcode='[DT]'
7106 ;;
7107 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7108 symcode='[ABDT]'
7109 ;;
7110 sysv4)
7111 symcode='[DFNSTU]'
7112 ;;
7113 esac
7114
7115 # If we're using GNU nm, then use its standard symbol codes.
7116 case `$NM -V 2>&1` in
7117 *GNU* | *'with BFD'*)
7118 symcode='[ABCDGIRSTW]' ;;
7119 esac
7120
7121 # Transform an extracted symbol line into a proper C declaration.
7122 # Some systems (esp. on ia64) link data and code symbols differently,
7123 # so use this general approach.
7124 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7125
7126 # Transform an extracted symbol line into symbol name and symbol address
7127 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7128 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'"
7129
7130 # Handle CRLF in mingw tool chain
7131 opt_cr=
7132 case $build_os in
7133 mingw*)
7134 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7135 ;;
7136 esac
7137
7138 # Try without a prefix underscore, then with it.
7139 for ac_symprfx in "" "_"; do
7140
7141 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7142 symxfrm="\\1 $ac_symprfx\\2 \\2"
7143
7144 # Write the raw and C identifiers.
7145 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7146 # Fake it for dumpbin and say T for any non-static function
7147 # and D for any global variable.
7148 # Also find C++ and __fastcall symbols from MSVC++,
7149 # which start with @ or ?.
7150 lt_cv_sys_global_symbol_pipe="$AWK '"\
7151 " {last_section=section; section=\$ 3};"\
7152 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7153 " \$ 0!~/External *\|/{next};"\
7154 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7155 " {if(hide[section]) next};"\
7156 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7157 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7158 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7159 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7160 " ' prfx=^$ac_symprfx"
7161 else
7162 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7163 fi
7164
7165 # Check to see that the pipe works correctly.
7166 pipe_works=no
7167
7168 rm -f conftest*
7169 cat > conftest.$ac_ext <<_LT_EOF
7170 #ifdef __cplusplus
7171 extern "C" {
7172 #endif
7173 char nm_test_var;
7174 void nm_test_func(void);
7175 void nm_test_func(void){}
7176 #ifdef __cplusplus
7177 }
7178 #endif
7179 int main(){nm_test_var='a';nm_test_func();return(0);}
7180 _LT_EOF
7181
7182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7183 (eval $ac_compile) 2>&5
7184 ac_status=$?
7185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7186 test $ac_status = 0; }; then
7187 # Now try to grab the symbols.
7188 nlist=conftest.nm
7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7190 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7191 ac_status=$?
7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7193 test $ac_status = 0; } && test -s "$nlist"; then
7194 # Try sorting and uniquifying the output.
7195 if sort "$nlist" | uniq > "$nlist"T; then
7196 mv -f "$nlist"T "$nlist"
7197 else
7198 rm -f "$nlist"T
7199 fi
7200
7201 # Make sure that we snagged all the symbols we need.
7202 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7203 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7204 cat <<_LT_EOF > conftest.$ac_ext
7205 #ifdef __cplusplus
7206 extern "C" {
7207 #endif
7208
7209 _LT_EOF
7210 # Now generate the symbol file.
7211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7212
7213 cat <<_LT_EOF >> conftest.$ac_ext
7214
7215 /* The mapping between symbol names and symbols. */
7216 const struct {
7217 const char *name;
7218 void *address;
7219 }
7220 lt__PROGRAM__LTX_preloaded_symbols[] =
7221 {
7222 { "@PROGRAM@", (void *) 0 },
7223 _LT_EOF
7224 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7225 cat <<\_LT_EOF >> conftest.$ac_ext
7226 {0, (void *) 0}
7227 };
7228
7229 /* This works around a problem in FreeBSD linker */
7230 #ifdef FREEBSD_WORKAROUND
7231 static const void *lt_preloaded_setup() {
7232 return lt__PROGRAM__LTX_preloaded_symbols;
7233 }
7234 #endif
7235
7236 #ifdef __cplusplus
7237 }
7238 #endif
7239 _LT_EOF
7240 # Now try linking the two files.
7241 mv conftest.$ac_objext conftstm.$ac_objext
7242 lt_save_LIBS="$LIBS"
7243 lt_save_CFLAGS="$CFLAGS"
7244 LIBS="conftstm.$ac_objext"
7245 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7247 (eval $ac_link) 2>&5
7248 ac_status=$?
7249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7251 pipe_works=yes
7252 fi
7253 LIBS="$lt_save_LIBS"
7254 CFLAGS="$lt_save_CFLAGS"
7255 else
7256 echo "cannot find nm_test_func in $nlist" >&5
7257 fi
7258 else
7259 echo "cannot find nm_test_var in $nlist" >&5
7260 fi
7261 else
7262 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7263 fi
7264 else
7265 echo "$progname: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 fi
7268 rm -rf conftest* conftst*
7269
7270 # Do not use the global_symbol_pipe unless it works.
7271 if test "$pipe_works" = yes; then
7272 break
7273 else
7274 lt_cv_sys_global_symbol_pipe=
7275 fi
7276 done
7277
7278 fi
7279
7280 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7281 lt_cv_sys_global_symbol_to_cdecl=
7282 fi
7283 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7285 $as_echo "failed" >&6; }
7286 else
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7288 $as_echo "ok" >&6; }
7289 fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312 # Check whether --enable-libtool-lock was given.
7313 if test "${enable_libtool_lock+set}" = set; then :
7314 enableval=$enable_libtool_lock;
7315 fi
7316
7317 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7318
7319 # Some flags need to be propagated to the compiler or linker for good
7320 # libtool support.
7321 case $host in
7322 ia64-*-hpux*)
7323 # Find out which ABI we are using.
7324 echo 'int i;' > conftest.$ac_ext
7325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7326 (eval $ac_compile) 2>&5
7327 ac_status=$?
7328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7329 test $ac_status = 0; }; then
7330 case `/usr/bin/file conftest.$ac_objext` in
7331 *ELF-32*)
7332 HPUX_IA64_MODE="32"
7333 ;;
7334 *ELF-64*)
7335 HPUX_IA64_MODE="64"
7336 ;;
7337 esac
7338 fi
7339 rm -rf conftest*
7340 ;;
7341 *-*-irix6*)
7342 # Find out which ABI we are using.
7343 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345 (eval $ac_compile) 2>&5
7346 ac_status=$?
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }; then
7349 if test "$lt_cv_prog_gnu_ld" = yes; then
7350 case `/usr/bin/file conftest.$ac_objext` in
7351 *32-bit*)
7352 LD="${LD-ld} -melf32bsmip"
7353 ;;
7354 *N32*)
7355 LD="${LD-ld} -melf32bmipn32"
7356 ;;
7357 *64-bit*)
7358 LD="${LD-ld} -melf64bmip"
7359 ;;
7360 esac
7361 else
7362 case `/usr/bin/file conftest.$ac_objext` in
7363 *32-bit*)
7364 LD="${LD-ld} -32"
7365 ;;
7366 *N32*)
7367 LD="${LD-ld} -n32"
7368 ;;
7369 *64-bit*)
7370 LD="${LD-ld} -64"
7371 ;;
7372 esac
7373 fi
7374 fi
7375 rm -rf conftest*
7376 ;;
7377
7378 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7379 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7380 # Find out which ABI we are using.
7381 echo 'int i;' > conftest.$ac_ext
7382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7383 (eval $ac_compile) 2>&5
7384 ac_status=$?
7385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7386 test $ac_status = 0; }; then
7387 case `/usr/bin/file conftest.o` in
7388 *32-bit*)
7389 case $host in
7390 x86_64-*kfreebsd*-gnu)
7391 LD="${LD-ld} -m elf_i386_fbsd"
7392 ;;
7393 x86_64-*linux*)
7394 case `/usr/bin/file conftest.o` in
7395 *x86-64*)
7396 LD="${LD-ld} -m elf32_x86_64"
7397 ;;
7398 *)
7399 LD="${LD-ld} -m elf_i386"
7400 ;;
7401 esac
7402 ;;
7403 powerpc64le-*linux*)
7404 LD="${LD-ld} -m elf32lppclinux"
7405 ;;
7406 powerpc64-*linux*)
7407 LD="${LD-ld} -m elf32ppclinux"
7408 ;;
7409 s390x-*linux*)
7410 LD="${LD-ld} -m elf_s390"
7411 ;;
7412 sparc64-*linux*)
7413 LD="${LD-ld} -m elf32_sparc"
7414 ;;
7415 esac
7416 ;;
7417 *64-bit*)
7418 case $host in
7419 x86_64-*kfreebsd*-gnu)
7420 LD="${LD-ld} -m elf_x86_64_fbsd"
7421 ;;
7422 x86_64-*linux*)
7423 LD="${LD-ld} -m elf_x86_64"
7424 ;;
7425 powerpcle-*linux*)
7426 LD="${LD-ld} -m elf64lppc"
7427 ;;
7428 powerpc-*linux*)
7429 LD="${LD-ld} -m elf64ppc"
7430 ;;
7431 s390*-*linux*|s390*-*tpf*)
7432 LD="${LD-ld} -m elf64_s390"
7433 ;;
7434 sparc*-*linux*)
7435 LD="${LD-ld} -m elf64_sparc"
7436 ;;
7437 esac
7438 ;;
7439 esac
7440 fi
7441 rm -rf conftest*
7442 ;;
7443
7444 *-*-sco3.2v5*)
7445 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7446 SAVE_CFLAGS="$CFLAGS"
7447 CFLAGS="$CFLAGS -belf"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7449 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7450 if ${lt_cv_cc_needs_belf+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 ac_ext=c
7454 ac_cpp='$CPP $CPPFLAGS'
7455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461
7462 int
7463 main ()
7464 {
7465
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 if ac_fn_c_try_link "$LINENO"; then :
7471 lt_cv_cc_needs_belf=yes
7472 else
7473 lt_cv_cc_needs_belf=no
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7477 ac_ext=c
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7482
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7485 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7486 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7487 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7488 CFLAGS="$SAVE_CFLAGS"
7489 fi
7490 ;;
7491 sparc*-*solaris*)
7492 # Find out which ABI we are using.
7493 echo 'int i;' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 case `/usr/bin/file conftest.o` in
7500 *64-bit*)
7501 case $lt_cv_prog_gnu_ld in
7502 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7503 *)
7504 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7505 LD="${LD-ld} -64"
7506 fi
7507 ;;
7508 esac
7509 ;;
7510 esac
7511 fi
7512 rm -rf conftest*
7513 ;;
7514 esac
7515
7516 need_locks="$enable_libtool_lock"
7517
7518
7519 case $host_os in
7520 rhapsody* | darwin*)
7521 if test -n "$ac_tool_prefix"; then
7522 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7523 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 if test -n "$DSYMUTIL"; then
7530 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543 done
7544 done
7545 IFS=$as_save_IFS
7546
7547 fi
7548 fi
7549 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7550 if test -n "$DSYMUTIL"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7552 $as_echo "$DSYMUTIL" >&6; }
7553 else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558
7559 fi
7560 if test -z "$ac_cv_prog_DSYMUTIL"; then
7561 ac_ct_DSYMUTIL=$DSYMUTIL
7562 # Extract the first word of "dsymutil", so it can be a program name with args.
7563 set dummy dsymutil; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 if test -n "$ac_ct_DSYMUTIL"; then
7570 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583 done
7584 done
7585 IFS=$as_save_IFS
7586
7587 fi
7588 fi
7589 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7590 if test -n "$ac_ct_DSYMUTIL"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7592 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7596 fi
7597
7598 if test "x$ac_ct_DSYMUTIL" = x; then
7599 DSYMUTIL=":"
7600 else
7601 case $cross_compiling:$ac_tool_warned in
7602 yes:)
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7605 ac_tool_warned=yes ;;
7606 esac
7607 DSYMUTIL=$ac_ct_DSYMUTIL
7608 fi
7609 else
7610 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7611 fi
7612
7613 if test -n "$ac_tool_prefix"; then
7614 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7615 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_NMEDIT+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 if test -n "$NMEDIT"; then
7622 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7634 fi
7635 done
7636 done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 NMEDIT=$ac_cv_prog_NMEDIT
7642 if test -n "$NMEDIT"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7644 $as_echo "$NMEDIT" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650
7651 fi
7652 if test -z "$ac_cv_prog_NMEDIT"; then
7653 ac_ct_NMEDIT=$NMEDIT
7654 # Extract the first word of "nmedit", so it can be a program name with args.
7655 set dummy nmedit; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$ac_ct_NMEDIT"; then
7662 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675 done
7676 done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7682 if test -n "$ac_ct_NMEDIT"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7684 $as_echo "$ac_ct_NMEDIT" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690 if test "x$ac_ct_NMEDIT" = x; then
7691 NMEDIT=":"
7692 else
7693 case $cross_compiling:$ac_tool_warned in
7694 yes:)
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7697 ac_tool_warned=yes ;;
7698 esac
7699 NMEDIT=$ac_ct_NMEDIT
7700 fi
7701 else
7702 NMEDIT="$ac_cv_prog_NMEDIT"
7703 fi
7704
7705 if test -n "$ac_tool_prefix"; then
7706 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7707 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if ${ac_cv_prog_LIPO+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test -n "$LIPO"; then
7714 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 LIPO=$ac_cv_prog_LIPO
7734 if test -n "$LIPO"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7736 $as_echo "$LIPO" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742
7743 fi
7744 if test -z "$ac_cv_prog_LIPO"; then
7745 ac_ct_LIPO=$LIPO
7746 # Extract the first word of "lipo", so it can be a program name with args.
7747 set dummy lipo; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 if test -n "$ac_ct_LIPO"; then
7754 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763 ac_cv_prog_ac_ct_LIPO="lipo"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771 fi
7772 fi
7773 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7774 if test -n "$ac_ct_LIPO"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7776 $as_echo "$ac_ct_LIPO" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782 if test "x$ac_ct_LIPO" = x; then
7783 LIPO=":"
7784 else
7785 case $cross_compiling:$ac_tool_warned in
7786 yes:)
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7789 ac_tool_warned=yes ;;
7790 esac
7791 LIPO=$ac_ct_LIPO
7792 fi
7793 else
7794 LIPO="$ac_cv_prog_LIPO"
7795 fi
7796
7797 if test -n "$ac_tool_prefix"; then
7798 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7799 set dummy ${ac_tool_prefix}otool; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if ${ac_cv_prog_OTOOL+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 if test -n "$OTOOL"; then
7806 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7815 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819 done
7820 done
7821 IFS=$as_save_IFS
7822
7823 fi
7824 fi
7825 OTOOL=$ac_cv_prog_OTOOL
7826 if test -n "$OTOOL"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7828 $as_echo "$OTOOL" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835 fi
7836 if test -z "$ac_cv_prog_OTOOL"; then
7837 ac_ct_OTOOL=$OTOOL
7838 # Extract the first word of "otool", so it can be a program name with args.
7839 set dummy otool; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$ac_ct_OTOOL"; then
7846 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855 ac_cv_prog_ac_ct_OTOOL="otool"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863 fi
7864 fi
7865 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7866 if test -n "$ac_ct_OTOOL"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7868 $as_echo "$ac_ct_OTOOL" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874 if test "x$ac_ct_OTOOL" = x; then
7875 OTOOL=":"
7876 else
7877 case $cross_compiling:$ac_tool_warned in
7878 yes:)
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7881 ac_tool_warned=yes ;;
7882 esac
7883 OTOOL=$ac_ct_OTOOL
7884 fi
7885 else
7886 OTOOL="$ac_cv_prog_OTOOL"
7887 fi
7888
7889 if test -n "$ac_tool_prefix"; then
7890 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7891 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if ${ac_cv_prog_OTOOL64+:} false; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 if test -n "$OTOOL64"; then
7898 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7899 else
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7907 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915 fi
7916 fi
7917 OTOOL64=$ac_cv_prog_OTOOL64
7918 if test -n "$OTOOL64"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7920 $as_echo "$OTOOL64" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7924 fi
7925
7926
7927 fi
7928 if test -z "$ac_cv_prog_OTOOL64"; then
7929 ac_ct_OTOOL64=$OTOOL64
7930 # Extract the first word of "otool64", so it can be a program name with args.
7931 set dummy otool64; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 if test -n "$ac_ct_OTOOL64"; then
7938 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_ac_ct_OTOOL64="otool64"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7958 if test -n "$ac_ct_OTOOL64"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7960 $as_echo "$ac_ct_OTOOL64" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7964 fi
7965
7966 if test "x$ac_ct_OTOOL64" = x; then
7967 OTOOL64=":"
7968 else
7969 case $cross_compiling:$ac_tool_warned in
7970 yes:)
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973 ac_tool_warned=yes ;;
7974 esac
7975 OTOOL64=$ac_ct_OTOOL64
7976 fi
7977 else
7978 OTOOL64="$ac_cv_prog_OTOOL64"
7979 fi
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8008 $as_echo_n "checking for -single_module linker flag... " >&6; }
8009 if ${lt_cv_apple_cc_single_mod+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 lt_cv_apple_cc_single_mod=no
8013 if test -z "${LT_MULTI_MODULE}"; then
8014 # By default we will add the -single_module flag. You can override
8015 # by either setting the environment variable LT_MULTI_MODULE
8016 # non-empty at configure time, or by adding -multi_module to the
8017 # link flags.
8018 rm -rf libconftest.dylib*
8019 echo "int foo(void){return 1;}" > conftest.c
8020 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8021 -dynamiclib -Wl,-single_module conftest.c" >&5
8022 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8023 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8024 _lt_result=$?
8025 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8026 lt_cv_apple_cc_single_mod=yes
8027 else
8028 cat conftest.err >&5
8029 fi
8030 rm -rf libconftest.dylib*
8031 rm -f conftest.*
8032 fi
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8035 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8037 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8038 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 lt_cv_ld_exported_symbols_list=no
8042 save_LDFLAGS=$LDFLAGS
8043 echo "_main" > conftest.sym
8044 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047
8048 int
8049 main ()
8050 {
8051
8052 ;
8053 return 0;
8054 }
8055 _ACEOF
8056 if ac_fn_c_try_link "$LINENO"; then :
8057 lt_cv_ld_exported_symbols_list=yes
8058 else
8059 lt_cv_ld_exported_symbols_list=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8063 LDFLAGS="$save_LDFLAGS"
8064
8065 fi
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8067 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8069 $as_echo_n "checking for -force_load linker flag... " >&6; }
8070 if ${lt_cv_ld_force_load+:} false; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 lt_cv_ld_force_load=no
8074 cat > conftest.c << _LT_EOF
8075 int forced_loaded() { return 2;}
8076 _LT_EOF
8077 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8078 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8079 echo "$AR cru libconftest.a conftest.o" >&5
8080 $AR cru libconftest.a conftest.o 2>&5
8081 cat > conftest.c << _LT_EOF
8082 int main() { return 0;}
8083 _LT_EOF
8084 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8085 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8086 _lt_result=$?
8087 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8088 lt_cv_ld_force_load=yes
8089 else
8090 cat conftest.err >&5
8091 fi
8092 rm -f conftest.err libconftest.a conftest conftest.c
8093 rm -rf conftest.dSYM
8094
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8097 $as_echo "$lt_cv_ld_force_load" >&6; }
8098 case $host_os in
8099 rhapsody* | darwin1.[012])
8100 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8101 darwin1.*)
8102 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8103 darwin*) # darwin 5.x on
8104 # if running on 10.5 or later, the deployment target defaults
8105 # to the OS version, if on x86, and 10.4, the deployment
8106 # target defaults to 10.4. Don't you love it?
8107 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8108 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8109 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8110 10.[012][,.]*)
8111 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8112 10.*)
8113 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8114 esac
8115 ;;
8116 esac
8117 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8118 _lt_dar_single_mod='$single_module'
8119 fi
8120 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8121 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8122 else
8123 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8124 fi
8125 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8126 _lt_dsymutil='~$DSYMUTIL $lib || :'
8127 else
8128 _lt_dsymutil=
8129 fi
8130 ;;
8131 esac
8132
8133 for ac_header in dlfcn.h
8134 do :
8135 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8136 "
8137 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8138 cat >>confdefs.h <<_ACEOF
8139 #define HAVE_DLFCN_H 1
8140 _ACEOF
8141
8142 fi
8143
8144 done
8145
8146
8147 ac_header_dirent=no
8148 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8149 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8151 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8152 if eval \${$as_ac_Header+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #include <sys/types.h>
8158 #include <$ac_hdr>
8159
8160 int
8161 main ()
8162 {
8163 if ((DIR *) 0)
8164 return 0;
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 eval "$as_ac_Header=yes"
8171 else
8172 eval "$as_ac_Header=no"
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8176 eval ac_res=\$$as_ac_Header
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8178 $as_echo "$ac_res" >&6; }
8179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8180 cat >>confdefs.h <<_ACEOF
8181 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8182 _ACEOF
8183
8184 ac_header_dirent=$ac_hdr; break
8185 fi
8186
8187 done
8188 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8189 if test $ac_header_dirent = dirent.h; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8191 $as_echo_n "checking for library containing opendir... " >&6; }
8192 if ${ac_cv_search_opendir+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 ac_func_search_save_LIBS=$LIBS
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198
8199 /* Override any GCC internal prototype to avoid an error.
8200 Use char because int might match the return type of a GCC
8201 builtin and then its argument prototype would still apply. */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 char opendir ();
8206 int
8207 main ()
8208 {
8209 return opendir ();
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 for ac_lib in '' dir; do
8215 if test -z "$ac_lib"; then
8216 ac_res="none required"
8217 else
8218 ac_res=-l$ac_lib
8219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8220 fi
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 ac_cv_search_opendir=$ac_res
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext
8226 if ${ac_cv_search_opendir+:} false; then :
8227 break
8228 fi
8229 done
8230 if ${ac_cv_search_opendir+:} false; then :
8231
8232 else
8233 ac_cv_search_opendir=no
8234 fi
8235 rm conftest.$ac_ext
8236 LIBS=$ac_func_search_save_LIBS
8237 fi
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8239 $as_echo "$ac_cv_search_opendir" >&6; }
8240 ac_res=$ac_cv_search_opendir
8241 if test "$ac_res" != no; then :
8242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8243
8244 fi
8245
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8248 $as_echo_n "checking for library containing opendir... " >&6; }
8249 if ${ac_cv_search_opendir+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 ac_func_search_save_LIBS=$LIBS
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255
8256 /* Override any GCC internal prototype to avoid an error.
8257 Use char because int might match the return type of a GCC
8258 builtin and then its argument prototype would still apply. */
8259 #ifdef __cplusplus
8260 extern "C"
8261 #endif
8262 char opendir ();
8263 int
8264 main ()
8265 {
8266 return opendir ();
8267 ;
8268 return 0;
8269 }
8270 _ACEOF
8271 for ac_lib in '' x; do
8272 if test -z "$ac_lib"; then
8273 ac_res="none required"
8274 else
8275 ac_res=-l$ac_lib
8276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8277 fi
8278 if ac_fn_c_try_link "$LINENO"; then :
8279 ac_cv_search_opendir=$ac_res
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext
8283 if ${ac_cv_search_opendir+:} false; then :
8284 break
8285 fi
8286 done
8287 if ${ac_cv_search_opendir+:} false; then :
8288
8289 else
8290 ac_cv_search_opendir=no
8291 fi
8292 rm conftest.$ac_ext
8293 LIBS=$ac_func_search_save_LIBS
8294 fi
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8296 $as_echo "$ac_cv_search_opendir" >&6; }
8297 ac_res=$ac_cv_search_opendir
8298 if test "$ac_res" != no; then :
8299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8300
8301 fi
8302
8303 fi
8304
8305
8306
8307
8308 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8309 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8310
8311 cat >>confdefs.h <<_ACEOF
8312 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8313 _ACEOF
8314
8315
8316 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8317
8318 fi
8319
8320
8321 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8322 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8323
8324 cat >>confdefs.h <<_ACEOF
8325 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8326 _ACEOF
8327
8328
8329 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8330
8331 else
8332 case " $LIBOBJS " in
8333 *" fileblocks.$ac_objext "* ) ;;
8334 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8335 ;;
8336 esac
8337
8338 fi
8339
8340
8341 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8342 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define HAVE_STRUCT_STAT_ST_RDEV 1
8346 _ACEOF
8347
8348
8349 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8350
8351 fi
8352
8353
8354 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8355 #include <$ac_cv_struct_tm>
8356
8357 "
8358 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8359
8360 cat >>confdefs.h <<_ACEOF
8361 #define HAVE_STRUCT_TM_TM_ZONE 1
8362 _ACEOF
8363
8364
8365 fi
8366
8367 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8368
8369 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8370
8371 else
8372 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8373 "
8374 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8375 ac_have_decl=1
8376 else
8377 ac_have_decl=0
8378 fi
8379
8380 cat >>confdefs.h <<_ACEOF
8381 #define HAVE_DECL_TZNAME $ac_have_decl
8382 _ACEOF
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8385 $as_echo_n "checking for tzname... " >&6; }
8386 if ${ac_cv_var_tzname+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 #include <time.h>
8392 #if !HAVE_DECL_TZNAME
8393 extern char *tzname[];
8394 #endif
8395
8396 int
8397 main ()
8398 {
8399 return tzname[0][0];
8400 ;
8401 return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_link "$LINENO"; then :
8405 ac_cv_var_tzname=yes
8406 else
8407 ac_cv_var_tzname=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext \
8410 conftest$ac_exeext conftest.$ac_ext
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8413 $as_echo "$ac_cv_var_tzname" >&6; }
8414 if test $ac_cv_var_tzname = yes; then
8415
8416 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8417
8418 fi
8419 fi
8420
8421
8422 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8423 #include <sys/types.h>
8424 #endif
8425 #include <sys/stat.h>
8426 "
8427 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8428
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_STRUCT_STAT_ST_DEV 1
8431 _ACEOF
8432
8433
8434 fi
8435 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8436 #include <sys/types.h>
8437 #endif
8438 #include <sys/stat.h>
8439 "
8440 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8441
8442 cat >>confdefs.h <<_ACEOF
8443 #define HAVE_STRUCT_STAT_ST_INO 1
8444 _ACEOF
8445
8446
8447 fi
8448 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8449 #include <sys/types.h>
8450 #endif
8451 #include <sys/stat.h>
8452 "
8453 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8454
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_STRUCT_STAT_ST_MODE 1
8457 _ACEOF
8458
8459
8460 fi
8461 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8462 #include <sys/types.h>
8463 #endif
8464 #include <sys/stat.h>
8465 "
8466 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_STRUCT_STAT_ST_NLINK 1
8470 _ACEOF
8471
8472
8473 fi
8474 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8475 #include <sys/types.h>
8476 #endif
8477 #include <sys/stat.h>
8478 "
8479 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8480
8481 cat >>confdefs.h <<_ACEOF
8482 #define HAVE_STRUCT_STAT_ST_UID 1
8483 _ACEOF
8484
8485
8486 fi
8487 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8488 #include <sys/types.h>
8489 #endif
8490 #include <sys/stat.h>
8491 "
8492 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8493
8494 cat >>confdefs.h <<_ACEOF
8495 #define HAVE_STRUCT_STAT_ST_GID 1
8496 _ACEOF
8497
8498
8499 fi
8500 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8501 #include <sys/types.h>
8502 #endif
8503 #include <sys/stat.h>
8504 "
8505 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8506
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_STRUCT_STAT_ST_RDEV 1
8509 _ACEOF
8510
8511
8512 fi
8513 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8514 #include <sys/types.h>
8515 #endif
8516 #include <sys/stat.h>
8517 "
8518 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8519
8520 cat >>confdefs.h <<_ACEOF
8521 #define HAVE_STRUCT_STAT_ST_SIZE 1
8522 _ACEOF
8523
8524
8525 fi
8526 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8527 #include <sys/types.h>
8528 #endif
8529 #include <sys/stat.h>
8530 "
8531 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8532
8533 cat >>confdefs.h <<_ACEOF
8534 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8535 _ACEOF
8536
8537
8538 fi
8539 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8540 #include <sys/types.h>
8541 #endif
8542 #include <sys/stat.h>
8543 "
8544 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8545
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8548 _ACEOF
8549
8550
8551 fi
8552 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8553 #include <sys/types.h>
8554 #endif
8555 #include <sys/stat.h>
8556 "
8557 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8558
8559 cat >>confdefs.h <<_ACEOF
8560 #define HAVE_STRUCT_STAT_ST_ATIME 1
8561 _ACEOF
8562
8563
8564 fi
8565 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8566 #include <sys/types.h>
8567 #endif
8568 #include <sys/stat.h>
8569 "
8570 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8571
8572 cat >>confdefs.h <<_ACEOF
8573 #define HAVE_STRUCT_STAT_ST_MTIME 1
8574 _ACEOF
8575
8576
8577 fi
8578 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8579 #include <sys/types.h>
8580 #endif
8581 #include <sys/stat.h>
8582 "
8583 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8584
8585 cat >>confdefs.h <<_ACEOF
8586 #define HAVE_STRUCT_STAT_ST_CTIME 1
8587 _ACEOF
8588
8589
8590 fi
8591
8592
8593 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8594 if test "x$ac_cv_type___int128" = xyes; then :
8595
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE___INT128 1
8598 _ACEOF
8599
8600
8601 fi
8602
8603 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8604 #include <sys/socket.h>
8605
8606 "
8607 if test "x$ac_cv_type_socklen_t" = xyes; then :
8608
8609 cat >>confdefs.h <<_ACEOF
8610 #define HAVE_SOCKLEN_T 1
8611 _ACEOF
8612
8613
8614 fi
8615
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8618 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8619 if ${ac_cv_type_getgroups+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 if test "$cross_compiling" = yes; then :
8623 ac_cv_type_getgroups=cross
8624 else
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 /* Thanks to Mike Rendell for this test. */
8628 $ac_includes_default
8629 #define NGID 256
8630 #undef MAX
8631 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8632
8633 int
8634 main ()
8635 {
8636 gid_t gidset[NGID];
8637 int i, n;
8638 union { gid_t gval; long int lval; } val;
8639
8640 val.lval = -1;
8641 for (i = 0; i < NGID; i++)
8642 gidset[i] = val.gval;
8643 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8644 gidset);
8645 /* Exit non-zero if getgroups seems to require an array of ints. This
8646 happens when gid_t is short int but getgroups modifies an array
8647 of ints. */
8648 return n > 0 && gidset[n] != val.gval;
8649 }
8650 _ACEOF
8651 if ac_fn_c_try_run "$LINENO"; then :
8652 ac_cv_type_getgroups=gid_t
8653 else
8654 ac_cv_type_getgroups=int
8655 fi
8656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8657 conftest.$ac_objext conftest.beam conftest.$ac_ext
8658 fi
8659
8660 if test $ac_cv_type_getgroups = cross; then
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 #include <unistd.h>
8664
8665 _ACEOF
8666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8667 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8668 ac_cv_type_getgroups=gid_t
8669 else
8670 ac_cv_type_getgroups=int
8671 fi
8672 rm -f conftest*
8673
8674 fi
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8677 $as_echo "$ac_cv_type_getgroups" >&6; }
8678
8679 cat >>confdefs.h <<_ACEOF
8680 #define GETGROUPS_T $ac_cv_type_getgroups
8681 _ACEOF
8682
8683
8684 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8685 if test "x$ac_cv_type_mode_t" = xyes; then :
8686
8687 else
8688
8689 cat >>confdefs.h <<_ACEOF
8690 #define mode_t int
8691 _ACEOF
8692
8693 fi
8694
8695 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8696 if test "x$ac_cv_type_off_t" = xyes; then :
8697
8698 else
8699
8700 cat >>confdefs.h <<_ACEOF
8701 #define off_t long int
8702 _ACEOF
8703
8704 fi
8705
8706 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8707 if test "x$ac_cv_type_pid_t" = xyes; then :
8708
8709 else
8710
8711 cat >>confdefs.h <<_ACEOF
8712 #define pid_t int
8713 _ACEOF
8714
8715 fi
8716
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8718 $as_echo_n "checking return type of signal handlers... " >&6; }
8719 if ${ac_cv_type_signal+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <sys/types.h>
8725 #include <signal.h>
8726
8727 int
8728 main ()
8729 {
8730 return *(signal (0, 0)) (0) == 1;
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"; then :
8736 ac_cv_type_signal=int
8737 else
8738 ac_cv_type_signal=void
8739 fi
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8743 $as_echo "$ac_cv_type_signal" >&6; }
8744
8745 cat >>confdefs.h <<_ACEOF
8746 #define RETSIGTYPE $ac_cv_type_signal
8747 _ACEOF
8748
8749
8750 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8751 if test "x$ac_cv_type_size_t" = xyes; then :
8752
8753 else
8754
8755 cat >>confdefs.h <<_ACEOF
8756 #define size_t unsigned int
8757 _ACEOF
8758
8759 fi
8760
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8762 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8763 if ${ac_cv_type_uid_t+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 #include <sys/types.h>
8769
8770 _ACEOF
8771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8772 $EGREP "uid_t" >/dev/null 2>&1; then :
8773 ac_cv_type_uid_t=yes
8774 else
8775 ac_cv_type_uid_t=no
8776 fi
8777 rm -f conftest*
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8781 $as_echo "$ac_cv_type_uid_t" >&6; }
8782 if test $ac_cv_type_uid_t = no; then
8783
8784 $as_echo "#define uid_t int" >>confdefs.h
8785
8786
8787 $as_echo "#define gid_t int" >>confdefs.h
8788
8789 fi
8790
8791
8792
8793
8794
8795
8796 # Set options
8797
8798
8799
8800 enable_dlopen=no
8801
8802
8803 enable_win32_dll=no
8804
8805
8806 # Check whether --enable-shared was given.
8807 if test "${enable_shared+set}" = set; then :
8808 enableval=$enable_shared; p=${PACKAGE-default}
8809 case $enableval in
8810 yes) enable_shared=yes ;;
8811 no) enable_shared=no ;;
8812 *)
8813 enable_shared=no
8814 # Look at the argument we got. We use all the common list separators.
8815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8816 for pkg in $enableval; do
8817 IFS="$lt_save_ifs"
8818 if test "X$pkg" = "X$p"; then
8819 enable_shared=yes
8820 fi
8821 done
8822 IFS="$lt_save_ifs"
8823 ;;
8824 esac
8825 else
8826 enable_shared=yes
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837 # Check whether --enable-static was given.
8838 if test "${enable_static+set}" = set; then :
8839 enableval=$enable_static; p=${PACKAGE-default}
8840 case $enableval in
8841 yes) enable_static=yes ;;
8842 no) enable_static=no ;;
8843 *)
8844 enable_static=no
8845 # Look at the argument we got. We use all the common list separators.
8846 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8847 for pkg in $enableval; do
8848 IFS="$lt_save_ifs"
8849 if test "X$pkg" = "X$p"; then
8850 enable_static=yes
8851 fi
8852 done
8853 IFS="$lt_save_ifs"
8854 ;;
8855 esac
8856 else
8857 enable_static=yes
8858 fi
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869 # Check whether --with-pic was given.
8870 if test "${with_pic+set}" = set; then :
8871 withval=$with_pic; pic_mode="$withval"
8872 else
8873 pic_mode=default
8874 fi
8875
8876
8877 test -z "$pic_mode" && pic_mode=default
8878
8879
8880
8881
8882
8883
8884
8885 # Check whether --enable-fast-install was given.
8886 if test "${enable_fast_install+set}" = set; then :
8887 enableval=$enable_fast_install; p=${PACKAGE-default}
8888 case $enableval in
8889 yes) enable_fast_install=yes ;;
8890 no) enable_fast_install=no ;;
8891 *)
8892 enable_fast_install=no
8893 # Look at the argument we got. We use all the common list separators.
8894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8895 for pkg in $enableval; do
8896 IFS="$lt_save_ifs"
8897 if test "X$pkg" = "X$p"; then
8898 enable_fast_install=yes
8899 fi
8900 done
8901 IFS="$lt_save_ifs"
8902 ;;
8903 esac
8904 else
8905 enable_fast_install=yes
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918 # This can be used to rebuild libtool when needed
8919 LIBTOOL_DEPS="$ltmain"
8920
8921 # Always use our own libtool.
8922 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 test -z "$LN_S" && LN_S="ln -s"
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964 if test -n "${ZSH_VERSION+set}" ; then
8965 setopt NO_GLOB_SUBST
8966 fi
8967
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8969 $as_echo_n "checking for objdir... " >&6; }
8970 if ${lt_cv_objdir+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 rm -f .libs 2>/dev/null
8974 mkdir .libs 2>/dev/null
8975 if test -d .libs; then
8976 lt_cv_objdir=.libs
8977 else
8978 # MS-DOS does not allow filenames that begin with a dot.
8979 lt_cv_objdir=_libs
8980 fi
8981 rmdir .libs 2>/dev/null
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8984 $as_echo "$lt_cv_objdir" >&6; }
8985 objdir=$lt_cv_objdir
8986
8987
8988
8989
8990
8991 cat >>confdefs.h <<_ACEOF
8992 #define LT_OBJDIR "$lt_cv_objdir/"
8993 _ACEOF
8994
8995
8996
8997
8998 case $host_os in
8999 aix3*)
9000 # AIX sometimes has problems with the GCC collect2 program. For some
9001 # reason, if we set the COLLECT_NAMES environment variable, the problems
9002 # vanish in a puff of smoke.
9003 if test "X${COLLECT_NAMES+set}" != Xset; then
9004 COLLECT_NAMES=
9005 export COLLECT_NAMES
9006 fi
9007 ;;
9008 esac
9009
9010 # Global variables:
9011 ofile=libtool
9012 can_build_shared=yes
9013
9014 # All known linkers require a `.a' archive for static linking (except MSVC,
9015 # which needs '.lib').
9016 libext=a
9017
9018 with_gnu_ld="$lt_cv_prog_gnu_ld"
9019
9020 old_CC="$CC"
9021 old_CFLAGS="$CFLAGS"
9022
9023 # Set sane defaults for various variables
9024 test -z "$CC" && CC=cc
9025 test -z "$LTCC" && LTCC=$CC
9026 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9027 test -z "$LD" && LD=ld
9028 test -z "$ac_objext" && ac_objext=o
9029
9030 for cc_temp in $compiler""; do
9031 case $cc_temp in
9032 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9033 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9034 \-*) ;;
9035 *) break;;
9036 esac
9037 done
9038 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9039
9040
9041 # Only perform the check for file, if the check method requires it
9042 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9043 case $deplibs_check_method in
9044 file_magic*)
9045 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9047 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9048 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 case $MAGIC_CMD in
9052 [\\/*] | ?:[\\/]*)
9053 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9054 ;;
9055 *)
9056 lt_save_MAGIC_CMD="$MAGIC_CMD"
9057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9059 for ac_dir in $ac_dummy; do
9060 IFS="$lt_save_ifs"
9061 test -z "$ac_dir" && ac_dir=.
9062 if test -f $ac_dir/${ac_tool_prefix}file; then
9063 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9064 if test -n "$file_magic_test_file"; then
9065 case $deplibs_check_method in
9066 "file_magic "*)
9067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9070 $EGREP "$file_magic_regex" > /dev/null; then
9071 :
9072 else
9073 cat <<_LT_EOF 1>&2
9074
9075 *** Warning: the command libtool uses to detect shared libraries,
9076 *** $file_magic_cmd, produces output that libtool cannot recognize.
9077 *** The result is that libtool may fail to recognize shared libraries
9078 *** as such. This will affect the creation of libtool libraries that
9079 *** depend on shared libraries, but programs linked with such libtool
9080 *** libraries will work regardless of this problem. Nevertheless, you
9081 *** may want to report the problem to your system manager and/or to
9082 *** bug-libtool@gnu.org
9083
9084 _LT_EOF
9085 fi ;;
9086 esac
9087 fi
9088 break
9089 fi
9090 done
9091 IFS="$lt_save_ifs"
9092 MAGIC_CMD="$lt_save_MAGIC_CMD"
9093 ;;
9094 esac
9095 fi
9096
9097 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9098 if test -n "$MAGIC_CMD"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9100 $as_echo "$MAGIC_CMD" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9104 fi
9105
9106
9107
9108
9109
9110 if test -z "$lt_cv_path_MAGIC_CMD"; then
9111 if test -n "$ac_tool_prefix"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9113 $as_echo_n "checking for file... " >&6; }
9114 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 case $MAGIC_CMD in
9118 [\\/*] | ?:[\\/]*)
9119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9120 ;;
9121 *)
9122 lt_save_MAGIC_CMD="$MAGIC_CMD"
9123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9125 for ac_dir in $ac_dummy; do
9126 IFS="$lt_save_ifs"
9127 test -z "$ac_dir" && ac_dir=.
9128 if test -f $ac_dir/file; then
9129 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9130 if test -n "$file_magic_test_file"; then
9131 case $deplibs_check_method in
9132 "file_magic "*)
9133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9136 $EGREP "$file_magic_regex" > /dev/null; then
9137 :
9138 else
9139 cat <<_LT_EOF 1>&2
9140
9141 *** Warning: the command libtool uses to detect shared libraries,
9142 *** $file_magic_cmd, produces output that libtool cannot recognize.
9143 *** The result is that libtool may fail to recognize shared libraries
9144 *** as such. This will affect the creation of libtool libraries that
9145 *** depend on shared libraries, but programs linked with such libtool
9146 *** libraries will work regardless of this problem. Nevertheless, you
9147 *** may want to report the problem to your system manager and/or to
9148 *** bug-libtool@gnu.org
9149
9150 _LT_EOF
9151 fi ;;
9152 esac
9153 fi
9154 break
9155 fi
9156 done
9157 IFS="$lt_save_ifs"
9158 MAGIC_CMD="$lt_save_MAGIC_CMD"
9159 ;;
9160 esac
9161 fi
9162
9163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9164 if test -n "$MAGIC_CMD"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9166 $as_echo "$MAGIC_CMD" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9170 fi
9171
9172
9173 else
9174 MAGIC_CMD=:
9175 fi
9176 fi
9177
9178 fi
9179 ;;
9180 esac
9181
9182 # Use C for the default configuration in the libtool script
9183
9184 lt_save_CC="$CC"
9185 ac_ext=c
9186 ac_cpp='$CPP $CPPFLAGS'
9187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9190
9191
9192 # Source file extension for C test sources.
9193 ac_ext=c
9194
9195 # Object file extension for compiled C test sources.
9196 objext=o
9197 objext=$objext
9198
9199 # Code to be used in simple compile tests
9200 lt_simple_compile_test_code="int some_variable = 0;"
9201
9202 # Code to be used in simple link tests
9203 lt_simple_link_test_code='int main(){return(0);}'
9204
9205
9206
9207
9208
9209
9210
9211 # If no C compiler was specified, use CC.
9212 LTCC=${LTCC-"$CC"}
9213
9214 # If no C compiler flags were specified, use CFLAGS.
9215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9216
9217 # Allow CC to be a program name with arguments.
9218 compiler=$CC
9219
9220 # Save the default compiler, since it gets overwritten when the other
9221 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9222 compiler_DEFAULT=$CC
9223
9224 # save warnings/boilerplate of simple test code
9225 ac_outfile=conftest.$ac_objext
9226 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9227 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9228 _lt_compiler_boilerplate=`cat conftest.err`
9229 $RM conftest*
9230
9231 ac_outfile=conftest.$ac_objext
9232 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9233 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9234 _lt_linker_boilerplate=`cat conftest.err`
9235 $RM -r conftest*
9236
9237
9238 ## CAVEAT EMPTOR:
9239 ## There is no encapsulation within the following macros, do not change
9240 ## the running order or otherwise move them around unless you know exactly
9241 ## what you are doing...
9242 if test -n "$compiler"; then
9243
9244 lt_prog_compiler_no_builtin_flag=
9245
9246 if test "$GCC" = yes; then
9247 case $cc_basename in
9248 nvcc*)
9249 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9250 *)
9251 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9252 esac
9253
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9255 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9256 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 lt_cv_prog_compiler_rtti_exceptions=no
9260 ac_outfile=conftest.$ac_objext
9261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9262 lt_compiler_flag="-fno-rtti -fno-exceptions"
9263 # Insert the option either (1) after the last *FLAGS variable, or
9264 # (2) before a word containing "conftest.", or (3) at the end.
9265 # Note that $ac_compile itself does not contain backslashes and begins
9266 # with a dollar sign (not a hyphen), so the echo should work correctly.
9267 # The option is referenced via a variable to avoid confusing sed.
9268 lt_compile=`echo "$ac_compile" | $SED \
9269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9271 -e 's:$: $lt_compiler_flag:'`
9272 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9273 (eval "$lt_compile" 2>conftest.err)
9274 ac_status=$?
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 if (exit $ac_status) && test -s "$ac_outfile"; then
9278 # The compiler can only warn and ignore the option if not recognized
9279 # So say no if there are warnings other than the usual output.
9280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9281 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9282 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9283 lt_cv_prog_compiler_rtti_exceptions=yes
9284 fi
9285 fi
9286 $RM conftest*
9287
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9290 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9291
9292 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9293 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9294 else
9295 :
9296 fi
9297
9298 fi
9299
9300
9301
9302
9303
9304
9305 lt_prog_compiler_wl=
9306 lt_prog_compiler_pic=
9307 lt_prog_compiler_static=
9308
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9310 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9311
9312 if test "$GCC" = yes; then
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_static='-static'
9315
9316 case $host_os in
9317 aix*)
9318 # All AIX code is PIC.
9319 if test "$host_cpu" = ia64; then
9320 # AIX 5 now supports IA64 processor
9321 lt_prog_compiler_static='-Bstatic'
9322 fi
9323 lt_prog_compiler_pic='-fPIC'
9324 ;;
9325
9326 amigaos*)
9327 case $host_cpu in
9328 powerpc)
9329 # see comment about AmigaOS4 .so support
9330 lt_prog_compiler_pic='-fPIC'
9331 ;;
9332 m68k)
9333 # FIXME: we need at least 68020 code to build shared libraries, but
9334 # adding the `-m68020' flag to GCC prevents building anything better,
9335 # like `-m68040'.
9336 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9337 ;;
9338 esac
9339 ;;
9340
9341 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9342 # PIC is the default for these OSes.
9343 ;;
9344
9345 mingw* | cygwin* | pw32* | os2* | cegcc*)
9346 # This hack is so that the source file can tell whether it is being
9347 # built for inclusion in a dll (and should export symbols for example).
9348 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9349 # (--disable-auto-import) libraries
9350 lt_prog_compiler_pic='-DDLL_EXPORT'
9351 ;;
9352
9353 darwin* | rhapsody*)
9354 # PIC is the default on this platform
9355 # Common symbols not allowed in MH_DYLIB files
9356 lt_prog_compiler_pic='-fno-common'
9357 ;;
9358
9359 haiku*)
9360 # PIC is the default for Haiku.
9361 # The "-static" flag exists, but is broken.
9362 lt_prog_compiler_static=
9363 ;;
9364
9365 hpux*)
9366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9368 # sets the default TLS model and affects inlining.
9369 case $host_cpu in
9370 hppa*64*)
9371 # +Z the default
9372 ;;
9373 *)
9374 lt_prog_compiler_pic='-fPIC'
9375 ;;
9376 esac
9377 ;;
9378
9379 interix[3-9]*)
9380 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9381 # Instead, we relocate shared libraries at runtime.
9382 ;;
9383
9384 msdosdjgpp*)
9385 # Just because we use GCC doesn't mean we suddenly get shared libraries
9386 # on systems that don't support them.
9387 lt_prog_compiler_can_build_shared=no
9388 enable_shared=no
9389 ;;
9390
9391 *nto* | *qnx*)
9392 # QNX uses GNU C++, but need to define -shared option too, otherwise
9393 # it will coredump.
9394 lt_prog_compiler_pic='-fPIC -shared'
9395 ;;
9396
9397 sysv4*MP*)
9398 if test -d /usr/nec; then
9399 lt_prog_compiler_pic=-Kconform_pic
9400 fi
9401 ;;
9402
9403 *)
9404 lt_prog_compiler_pic='-fPIC'
9405 ;;
9406 esac
9407
9408 case $cc_basename in
9409 nvcc*) # Cuda Compiler Driver 2.2
9410 lt_prog_compiler_wl='-Xlinker '
9411 lt_prog_compiler_pic='-Xcompiler -fPIC'
9412 ;;
9413 esac
9414 else
9415 # PORTME Check for flag to pass linker flags through the system compiler.
9416 case $host_os in
9417 aix*)
9418 lt_prog_compiler_wl='-Wl,'
9419 if test "$host_cpu" = ia64; then
9420 # AIX 5 now supports IA64 processor
9421 lt_prog_compiler_static='-Bstatic'
9422 else
9423 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9424 fi
9425 ;;
9426
9427 mingw* | cygwin* | pw32* | os2* | cegcc*)
9428 # This hack is so that the source file can tell whether it is being
9429 # built for inclusion in a dll (and should export symbols for example).
9430 lt_prog_compiler_pic='-DDLL_EXPORT'
9431 ;;
9432
9433 hpux9* | hpux10* | hpux11*)
9434 lt_prog_compiler_wl='-Wl,'
9435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9436 # not for PA HP-UX.
9437 case $host_cpu in
9438 hppa*64*|ia64*)
9439 # +Z the default
9440 ;;
9441 *)
9442 lt_prog_compiler_pic='+Z'
9443 ;;
9444 esac
9445 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9446 lt_prog_compiler_static='${wl}-a ${wl}archive'
9447 ;;
9448
9449 irix5* | irix6* | nonstopux*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # PIC (with -KPIC) is the default.
9452 lt_prog_compiler_static='-non_shared'
9453 ;;
9454
9455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9456 case $cc_basename in
9457 # old Intel for x86_64 which still supported -KPIC.
9458 ecc*)
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-static'
9462 ;;
9463 # icc used to be incompatible with GCC.
9464 # ICC 10 doesn't accept -KPIC any more.
9465 icc* | ifort*)
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_pic='-fPIC'
9468 lt_prog_compiler_static='-static'
9469 ;;
9470 # Lahey Fortran 8.1.
9471 lf95*)
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='--shared'
9474 lt_prog_compiler_static='--static'
9475 ;;
9476 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9477 # Portland Group compilers (*not* the Pentium gcc compiler,
9478 # which looks to be a dead project)
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-fpic'
9481 lt_prog_compiler_static='-Bstatic'
9482 ;;
9483 ccc*)
9484 lt_prog_compiler_wl='-Wl,'
9485 # All Alpha code is PIC.
9486 lt_prog_compiler_static='-non_shared'
9487 ;;
9488 xl* | bgxl* | bgf* | mpixl*)
9489 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_pic='-qpic'
9492 lt_prog_compiler_static='-qstaticlink'
9493 ;;
9494 *)
9495 case `$CC -V 2>&1 | sed 5q` in
9496 *Sun\ F* | *Sun*Fortran*)
9497 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9498 lt_prog_compiler_pic='-KPIC'
9499 lt_prog_compiler_static='-Bstatic'
9500 lt_prog_compiler_wl=''
9501 ;;
9502 *Sun\ C*)
9503 # Sun C 5.9
9504 lt_prog_compiler_pic='-KPIC'
9505 lt_prog_compiler_static='-Bstatic'
9506 lt_prog_compiler_wl='-Wl,'
9507 ;;
9508 esac
9509 ;;
9510 esac
9511 ;;
9512
9513 newsos6)
9514 lt_prog_compiler_pic='-KPIC'
9515 lt_prog_compiler_static='-Bstatic'
9516 ;;
9517
9518 *nto* | *qnx*)
9519 # QNX uses GNU C++, but need to define -shared option too, otherwise
9520 # it will coredump.
9521 lt_prog_compiler_pic='-fPIC -shared'
9522 ;;
9523
9524 osf3* | osf4* | osf5*)
9525 lt_prog_compiler_wl='-Wl,'
9526 # All OSF/1 code is PIC.
9527 lt_prog_compiler_static='-non_shared'
9528 ;;
9529
9530 rdos*)
9531 lt_prog_compiler_static='-non_shared'
9532 ;;
9533
9534 solaris*)
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 case $cc_basename in
9538 f77* | f90* | f95*)
9539 lt_prog_compiler_wl='-Qoption ld ';;
9540 *)
9541 lt_prog_compiler_wl='-Wl,';;
9542 esac
9543 ;;
9544
9545 sunos4*)
9546 lt_prog_compiler_wl='-Qoption ld '
9547 lt_prog_compiler_pic='-PIC'
9548 lt_prog_compiler_static='-Bstatic'
9549 ;;
9550
9551 sysv4 | sysv4.2uw2* | sysv4.3*)
9552 lt_prog_compiler_wl='-Wl,'
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-Bstatic'
9555 ;;
9556
9557 sysv4*MP*)
9558 if test -d /usr/nec ;then
9559 lt_prog_compiler_pic='-Kconform_pic'
9560 lt_prog_compiler_static='-Bstatic'
9561 fi
9562 ;;
9563
9564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9565 lt_prog_compiler_wl='-Wl,'
9566 lt_prog_compiler_pic='-KPIC'
9567 lt_prog_compiler_static='-Bstatic'
9568 ;;
9569
9570 unicos*)
9571 lt_prog_compiler_wl='-Wl,'
9572 lt_prog_compiler_can_build_shared=no
9573 ;;
9574
9575 uts4*)
9576 lt_prog_compiler_pic='-pic'
9577 lt_prog_compiler_static='-Bstatic'
9578 ;;
9579
9580 *)
9581 lt_prog_compiler_can_build_shared=no
9582 ;;
9583 esac
9584 fi
9585
9586 case $host_os in
9587 # For platforms which do not support PIC, -DPIC is meaningless:
9588 *djgpp*)
9589 lt_prog_compiler_pic=
9590 ;;
9591 *)
9592 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9593 ;;
9594 esac
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9596 $as_echo "$lt_prog_compiler_pic" >&6; }
9597
9598
9599
9600
9601
9602
9603 #
9604 # Check to make sure the PIC flag actually works.
9605 #
9606 if test -n "$lt_prog_compiler_pic"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9608 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9609 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 lt_cv_prog_compiler_pic_works=no
9613 ac_outfile=conftest.$ac_objext
9614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9615 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9616 # Insert the option either (1) after the last *FLAGS variable, or
9617 # (2) before a word containing "conftest.", or (3) at the end.
9618 # Note that $ac_compile itself does not contain backslashes and begins
9619 # with a dollar sign (not a hyphen), so the echo should work correctly.
9620 # The option is referenced via a variable to avoid confusing sed.
9621 lt_compile=`echo "$ac_compile" | $SED \
9622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9624 -e 's:$: $lt_compiler_flag:'`
9625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9626 (eval "$lt_compile" 2>conftest.err)
9627 ac_status=$?
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 if (exit $ac_status) && test -s "$ac_outfile"; then
9631 # The compiler can only warn and ignore the option if not recognized
9632 # So say no if there are warnings other than the usual output.
9633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9636 lt_cv_prog_compiler_pic_works=yes
9637 fi
9638 fi
9639 $RM conftest*
9640
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9643 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9644
9645 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9646 case $lt_prog_compiler_pic in
9647 "" | " "*) ;;
9648 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9649 esac
9650 else
9651 lt_prog_compiler_pic=
9652 lt_prog_compiler_can_build_shared=no
9653 fi
9654
9655 fi
9656
9657
9658
9659
9660
9661
9662 #
9663 # Check to make sure the static flag actually works.
9664 #
9665 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9667 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9668 if ${lt_cv_prog_compiler_static_works+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 lt_cv_prog_compiler_static_works=no
9672 save_LDFLAGS="$LDFLAGS"
9673 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9674 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9676 # The linker can only warn and ignore the option if not recognized
9677 # So say no if there are warnings
9678 if test -s conftest.err; then
9679 # Append any errors to the config.log.
9680 cat conftest.err 1>&5
9681 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9683 if diff conftest.exp conftest.er2 >/dev/null; then
9684 lt_cv_prog_compiler_static_works=yes
9685 fi
9686 else
9687 lt_cv_prog_compiler_static_works=yes
9688 fi
9689 fi
9690 $RM -r conftest*
9691 LDFLAGS="$save_LDFLAGS"
9692
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9695 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9696
9697 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9698 :
9699 else
9700 lt_prog_compiler_static=
9701 fi
9702
9703
9704
9705
9706
9707
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9710 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9711 if ${lt_cv_prog_compiler_c_o+:} false; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 lt_cv_prog_compiler_c_o=no
9715 $RM -r conftest 2>/dev/null
9716 mkdir conftest
9717 cd conftest
9718 mkdir out
9719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9720
9721 lt_compiler_flag="-o out/conftest2.$ac_objext"
9722 # Insert the option either (1) after the last *FLAGS variable, or
9723 # (2) before a word containing "conftest.", or (3) at the end.
9724 # Note that $ac_compile itself does not contain backslashes and begins
9725 # with a dollar sign (not a hyphen), so the echo should work correctly.
9726 lt_compile=`echo "$ac_compile" | $SED \
9727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9729 -e 's:$: $lt_compiler_flag:'`
9730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9731 (eval "$lt_compile" 2>out/conftest.err)
9732 ac_status=$?
9733 cat out/conftest.err >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9736 then
9737 # The compiler can only warn and ignore the option if not recognized
9738 # So say no if there are warnings
9739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9742 lt_cv_prog_compiler_c_o=yes
9743 fi
9744 fi
9745 chmod u+w . 2>&5
9746 $RM conftest*
9747 # SGI C++ compiler will create directory out/ii_files/ for
9748 # template instantiation
9749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9750 $RM out/* && rmdir out
9751 cd ..
9752 $RM -r conftest
9753 $RM conftest*
9754
9755 fi
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9757 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9758
9759
9760
9761
9762
9763
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9766 if ${lt_cv_prog_compiler_c_o+:} false; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 lt_cv_prog_compiler_c_o=no
9770 $RM -r conftest 2>/dev/null
9771 mkdir conftest
9772 cd conftest
9773 mkdir out
9774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9775
9776 lt_compiler_flag="-o out/conftest2.$ac_objext"
9777 # Insert the option either (1) after the last *FLAGS variable, or
9778 # (2) before a word containing "conftest.", or (3) at the end.
9779 # Note that $ac_compile itself does not contain backslashes and begins
9780 # with a dollar sign (not a hyphen), so the echo should work correctly.
9781 lt_compile=`echo "$ac_compile" | $SED \
9782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9784 -e 's:$: $lt_compiler_flag:'`
9785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9786 (eval "$lt_compile" 2>out/conftest.err)
9787 ac_status=$?
9788 cat out/conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9791 then
9792 # The compiler can only warn and ignore the option if not recognized
9793 # So say no if there are warnings
9794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9797 lt_cv_prog_compiler_c_o=yes
9798 fi
9799 fi
9800 chmod u+w . 2>&5
9801 $RM conftest*
9802 # SGI C++ compiler will create directory out/ii_files/ for
9803 # template instantiation
9804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9805 $RM out/* && rmdir out
9806 cd ..
9807 $RM -r conftest
9808 $RM conftest*
9809
9810 fi
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9812 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9813
9814
9815
9816
9817 hard_links="nottested"
9818 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9819 # do not overwrite the value of need_locks provided by the user
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9821 $as_echo_n "checking if we can lock with hard links... " >&6; }
9822 hard_links=yes
9823 $RM conftest*
9824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9825 touch conftest.a
9826 ln conftest.a conftest.b 2>&5 || hard_links=no
9827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9829 $as_echo "$hard_links" >&6; }
9830 if test "$hard_links" = no; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9832 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9833 need_locks=warn
9834 fi
9835 else
9836 need_locks=no
9837 fi
9838
9839
9840
9841
9842
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9845 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9846
9847 runpath_var=
9848 allow_undefined_flag=
9849 always_export_symbols=no
9850 archive_cmds=
9851 archive_expsym_cmds=
9852 compiler_needs_object=no
9853 enable_shared_with_static_runtimes=no
9854 export_dynamic_flag_spec=
9855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9856 hardcode_automatic=no
9857 hardcode_direct=no
9858 hardcode_direct_absolute=no
9859 hardcode_libdir_flag_spec=
9860 hardcode_libdir_flag_spec_ld=
9861 hardcode_libdir_separator=
9862 hardcode_minus_L=no
9863 hardcode_shlibpath_var=unsupported
9864 inherit_rpath=no
9865 link_all_deplibs=unknown
9866 module_cmds=
9867 module_expsym_cmds=
9868 old_archive_from_new_cmds=
9869 old_archive_from_expsyms_cmds=
9870 thread_safe_flag_spec=
9871 whole_archive_flag_spec=
9872 # include_expsyms should be a list of space-separated symbols to be *always*
9873 # included in the symbol list
9874 include_expsyms=
9875 # exclude_expsyms can be an extended regexp of symbols to exclude
9876 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9877 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9878 # as well as any symbol that contains `d'.
9879 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9880 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9881 # platforms (ab)use it in PIC code, but their linkers get confused if
9882 # the symbol is explicitly referenced. Since portable code cannot
9883 # rely on this symbol name, it's probably fine to never include it in
9884 # preloaded symbol tables.
9885 # Exclude shared library initialization/finalization symbols.
9886 extract_expsyms_cmds=
9887
9888 case $host_os in
9889 cygwin* | mingw* | pw32* | cegcc*)
9890 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9891 # When not using gcc, we currently assume that we are using
9892 # Microsoft Visual C++.
9893 if test "$GCC" != yes; then
9894 with_gnu_ld=no
9895 fi
9896 ;;
9897 interix*)
9898 # we just hope/assume this is gcc and not c89 (= MSVC++)
9899 with_gnu_ld=yes
9900 ;;
9901 openbsd*)
9902 with_gnu_ld=no
9903 ;;
9904 esac
9905
9906 ld_shlibs=yes
9907
9908 # On some targets, GNU ld is compatible enough with the native linker
9909 # that we're better off using the native interface for both.
9910 lt_use_gnu_ld_interface=no
9911 if test "$with_gnu_ld" = yes; then
9912 case $host_os in
9913 aix*)
9914 # The AIX port of GNU ld has always aspired to compatibility
9915 # with the native linker. However, as the warning in the GNU ld
9916 # block says, versions before 2.19.5* couldn't really create working
9917 # shared libraries, regardless of the interface used.
9918 case `$LD -v 2>&1` in
9919 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9920 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9921 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9922 *)
9923 lt_use_gnu_ld_interface=yes
9924 ;;
9925 esac
9926 ;;
9927 *)
9928 lt_use_gnu_ld_interface=yes
9929 ;;
9930 esac
9931 fi
9932
9933 if test "$lt_use_gnu_ld_interface" = yes; then
9934 # If archive_cmds runs LD, not CC, wlarc should be empty
9935 wlarc='${wl}'
9936
9937 # Set some defaults for GNU ld with shared library support. These
9938 # are reset later if shared libraries are not supported. Putting them
9939 # here allows them to be overridden if necessary.
9940 runpath_var=LD_RUN_PATH
9941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942 export_dynamic_flag_spec='${wl}--export-dynamic'
9943 # ancient GNU ld didn't support --whole-archive et. al.
9944 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9945 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9946 else
9947 whole_archive_flag_spec=
9948 fi
9949 supports_anon_versioning=no
9950 case `$LD -v 2>&1` in
9951 *GNU\ gold*) supports_anon_versioning=yes ;;
9952 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9953 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9954 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9955 *\ 2.11.*) ;; # other 2.11 versions
9956 *) supports_anon_versioning=yes ;;
9957 esac
9958
9959 # See if GNU ld supports shared libraries.
9960 case $host_os in
9961 aix[3-9]*)
9962 # On AIX/PPC, the GNU linker is very broken
9963 if test "$host_cpu" != ia64; then
9964 ld_shlibs=no
9965 cat <<_LT_EOF 1>&2
9966
9967 *** Warning: the GNU linker, at least up to release 2.19, is reported
9968 *** to be unable to reliably create shared libraries on AIX.
9969 *** Therefore, libtool is disabling shared libraries support. If you
9970 *** really care for shared libraries, you may want to install binutils
9971 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9972 *** You will then need to restart the configuration process.
9973
9974 _LT_EOF
9975 fi
9976 ;;
9977
9978 amigaos*)
9979 case $host_cpu in
9980 powerpc)
9981 # see comment about AmigaOS4 .so support
9982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983 archive_expsym_cmds=''
9984 ;;
9985 m68k)
9986 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)'
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 hardcode_minus_L=yes
9989 ;;
9990 esac
9991 ;;
9992
9993 beos*)
9994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9995 allow_undefined_flag=unsupported
9996 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9997 # support --undefined. This deserves some investigation. FIXME
9998 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
10003
10004 cygwin* | mingw* | pw32* | cegcc*)
10005 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10006 # as there is no search path for DLLs.
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 export_dynamic_flag_spec='${wl}--export-all-symbols'
10009 allow_undefined_flag=unsupported
10010 always_export_symbols=no
10011 enable_shared_with_static_runtimes=yes
10012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10013
10014 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10016 # If the export-symbols file already is a .def file (1st line
10017 # is EXPORTS), use it as is; otherwise, prepend...
10018 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10019 cp $export_symbols $output_objdir/$soname.def;
10020 else
10021 echo EXPORTS > $output_objdir/$soname.def;
10022 cat $export_symbols >> $output_objdir/$soname.def;
10023 fi~
10024 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10025 else
10026 ld_shlibs=no
10027 fi
10028 ;;
10029
10030 haiku*)
10031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032 link_all_deplibs=yes
10033 ;;
10034
10035 interix[3-9]*)
10036 hardcode_direct=no
10037 hardcode_shlibpath_var=no
10038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10039 export_dynamic_flag_spec='${wl}-E'
10040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10041 # Instead, shared libraries are loaded at an image base (0x10000000 by
10042 # default) and relocated if they conflict, which is a slow very memory
10043 # consuming and fragmenting process. To avoid this, we pick a random,
10044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10047 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'
10048 ;;
10049
10050 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10051 tmp_diet=no
10052 if test "$host_os" = linux-dietlibc; then
10053 case $cc_basename in
10054 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10055 esac
10056 fi
10057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10058 && test "$tmp_diet" = no
10059 then
10060 tmp_addflag=' $pic_flag'
10061 tmp_sharedflag='-shared'
10062 case $cc_basename,$host_cpu in
10063 pgcc*) # Portland Group C compiler
10064 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'
10065 tmp_addflag=' $pic_flag'
10066 ;;
10067 pgf77* | pgf90* | pgf95* | pgfortran*)
10068 # Portland Group f77 and f90 compilers
10069 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'
10070 tmp_addflag=' $pic_flag -Mnomain' ;;
10071 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10072 tmp_addflag=' -i_dynamic' ;;
10073 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10074 tmp_addflag=' -i_dynamic -nofor_main' ;;
10075 ifc* | ifort*) # Intel Fortran compiler
10076 tmp_addflag=' -nofor_main' ;;
10077 lf95*) # Lahey Fortran 8.1
10078 whole_archive_flag_spec=
10079 tmp_sharedflag='--shared' ;;
10080 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10081 tmp_sharedflag='-qmkshrobj'
10082 tmp_addflag= ;;
10083 nvcc*) # Cuda Compiler Driver 2.2
10084 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'
10085 compiler_needs_object=yes
10086 ;;
10087 esac
10088 case `$CC -V 2>&1 | sed 5q` in
10089 *Sun\ C*) # Sun C 5.9
10090 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'
10091 compiler_needs_object=yes
10092 tmp_sharedflag='-G' ;;
10093 *Sun\ F*) # Sun Fortran 8.3
10094 tmp_sharedflag='-G' ;;
10095 esac
10096 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10097
10098 if test "x$supports_anon_versioning" = xyes; then
10099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10101 echo "local: *; };" >> $output_objdir/$libname.ver~
10102 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10103 fi
10104
10105 case $cc_basename in
10106 xlf* | bgf* | bgxlf* | mpixlf*)
10107 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10108 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10109 hardcode_libdir_flag_spec=
10110 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10111 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10112 if test "x$supports_anon_versioning" = xyes; then
10113 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10114 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10115 echo "local: *; };" >> $output_objdir/$libname.ver~
10116 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10117 fi
10118 ;;
10119 esac
10120 else
10121 ld_shlibs=no
10122 fi
10123 ;;
10124
10125 netbsd*)
10126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10128 wlarc=
10129 else
10130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10132 fi
10133 ;;
10134
10135 solaris*)
10136 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10137 ld_shlibs=no
10138 cat <<_LT_EOF 1>&2
10139
10140 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10141 *** create shared libraries on Solaris systems. Therefore, libtool
10142 *** is disabling shared libraries support. We urge you to upgrade GNU
10143 *** binutils to release 2.9.1 or newer. Another option is to modify
10144 *** your PATH or compiler configuration so that the native linker is
10145 *** used, and then restart.
10146
10147 _LT_EOF
10148 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10151 else
10152 ld_shlibs=no
10153 fi
10154 ;;
10155
10156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10157 case `$LD -v 2>&1` in
10158 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10159 ld_shlibs=no
10160 cat <<_LT_EOF 1>&2
10161
10162 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10163 *** reliably create shared libraries on SCO systems. Therefore, libtool
10164 *** is disabling shared libraries support. We urge you to upgrade GNU
10165 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10166 *** your PATH or compiler configuration so that the native linker is
10167 *** used, and then restart.
10168
10169 _LT_EOF
10170 ;;
10171 *)
10172 # For security reasons, it is highly recommended that you always
10173 # use absolute paths for naming shared libraries, and exclude the
10174 # DT_RUNPATH tag from executables and libraries. But doing so
10175 # requires that you compile everything twice, which is a pain.
10176 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10179 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10180 else
10181 ld_shlibs=no
10182 fi
10183 ;;
10184 esac
10185 ;;
10186
10187 sunos4*)
10188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10189 wlarc=
10190 hardcode_direct=yes
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 *)
10195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10198 else
10199 ld_shlibs=no
10200 fi
10201 ;;
10202 esac
10203
10204 if test "$ld_shlibs" = no; then
10205 runpath_var=
10206 hardcode_libdir_flag_spec=
10207 export_dynamic_flag_spec=
10208 whole_archive_flag_spec=
10209 fi
10210 else
10211 # PORTME fill in a description of your system's linker (not GNU ld)
10212 case $host_os in
10213 aix3*)
10214 allow_undefined_flag=unsupported
10215 always_export_symbols=yes
10216 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'
10217 # Note: this linker hardcodes the directories in LIBPATH if there
10218 # are no directories specified by -L.
10219 hardcode_minus_L=yes
10220 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10221 # Neither direct hardcoding nor static linking is supported with a
10222 # broken collect2.
10223 hardcode_direct=unsupported
10224 fi
10225 ;;
10226
10227 aix[4-9]*)
10228 if test "$host_cpu" = ia64; then
10229 # On IA64, the linker does run time linking by default, so we don't
10230 # have to do anything special.
10231 aix_use_runtimelinking=no
10232 exp_sym_flag='-Bexport'
10233 no_entry_flag=""
10234 else
10235 # If we're using GNU nm, then we don't want the "-C" option.
10236 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10237 # Also, AIX nm treats weak defined symbols like other global
10238 # defined symbols, whereas GNU nm marks them as "W".
10239 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10240 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'
10241 else
10242 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'
10243 fi
10244 aix_use_runtimelinking=no
10245
10246 # Test if we are trying to use run time linking or normal
10247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10248 # need to do runtime linking.
10249 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10250 for ld_flag in $LDFLAGS; do
10251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10252 aix_use_runtimelinking=yes
10253 break
10254 fi
10255 done
10256 ;;
10257 esac
10258
10259 exp_sym_flag='-bexport'
10260 no_entry_flag='-bnoentry'
10261 fi
10262
10263 # When large executables or shared objects are built, AIX ld can
10264 # have problems creating the table of contents. If linking a library
10265 # or program results in "error TOC overflow" add -mminimal-toc to
10266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10268
10269 archive_cmds=''
10270 hardcode_direct=yes
10271 hardcode_direct_absolute=yes
10272 hardcode_libdir_separator=':'
10273 link_all_deplibs=yes
10274 file_list_spec='${wl}-f,'
10275
10276 if test "$GCC" = yes; then
10277 case $host_os in aix4.[012]|aix4.[012].*)
10278 # We only want to do this on AIX 4.2 and lower, the check
10279 # below for broken collect2 doesn't work under 4.3+
10280 collect2name=`${CC} -print-prog-name=collect2`
10281 if test -f "$collect2name" &&
10282 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10283 then
10284 # We have reworked collect2
10285 :
10286 else
10287 # We have old collect2
10288 hardcode_direct=unsupported
10289 # It fails to find uninstalled libraries when the uninstalled
10290 # path is not listed in the libpath. Setting hardcode_minus_L
10291 # to unsupported forces relinking
10292 hardcode_minus_L=yes
10293 hardcode_libdir_flag_spec='-L$libdir'
10294 hardcode_libdir_separator=
10295 fi
10296 ;;
10297 esac
10298 shared_flag='-shared'
10299 if test "$aix_use_runtimelinking" = yes; then
10300 shared_flag="$shared_flag "'${wl}-G'
10301 fi
10302 else
10303 # not using gcc
10304 if test "$host_cpu" = ia64; then
10305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10306 # chokes on -Wl,-G. The following line is correct:
10307 shared_flag='-G'
10308 else
10309 if test "$aix_use_runtimelinking" = yes; then
10310 shared_flag='${wl}-G'
10311 else
10312 shared_flag='${wl}-bM:SRE'
10313 fi
10314 fi
10315 fi
10316
10317 export_dynamic_flag_spec='${wl}-bexpall'
10318 # It seems that -bexpall does not export symbols beginning with
10319 # underscore (_), so it is better to generate a list of symbols to export.
10320 always_export_symbols=yes
10321 if test "$aix_use_runtimelinking" = yes; then
10322 # Warning - without using the other runtime loading flags (-brtl),
10323 # -berok will link without error, but may produce a broken library.
10324 allow_undefined_flag='-berok'
10325 # Determine the default libpath from the value encoded in an
10326 # empty executable.
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329
10330 int
10331 main ()
10332 {
10333
10334 ;
10335 return 0;
10336 }
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10339
10340 lt_aix_libpath_sed='
10341 /Import File Strings/,/^$/ {
10342 /^0/ {
10343 s/^0 *\(.*\)$/\1/
10344 p
10345 }
10346 }'
10347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10348 # Check for a 64-bit object if we didn't find anything.
10349 if test -z "$aix_libpath"; then
10350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10351 fi
10352 fi
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10356
10357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10358 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"
10359 else
10360 if test "$host_cpu" = ia64; then
10361 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10362 allow_undefined_flag="-z nodefs"
10363 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"
10364 else
10365 # Determine the default libpath from the value encoded in an
10366 # empty executable.
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10369
10370 int
10371 main ()
10372 {
10373
10374 ;
10375 return 0;
10376 }
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10379
10380 lt_aix_libpath_sed='
10381 /Import File Strings/,/^$/ {
10382 /^0/ {
10383 s/^0 *\(.*\)$/\1/
10384 p
10385 }
10386 }'
10387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10388 # Check for a 64-bit object if we didn't find anything.
10389 if test -z "$aix_libpath"; then
10390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10391 fi
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10396
10397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10398 # Warning - without using the other run time loading flags,
10399 # -berok will link without error, but may produce a broken library.
10400 no_undefined_flag=' ${wl}-bernotok'
10401 allow_undefined_flag=' ${wl}-berok'
10402 if test "$with_gnu_ld" = yes; then
10403 # We only use this code for GNU lds that support --whole-archive.
10404 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10405 else
10406 # Exported symbols can be pulled into shared objects from archives
10407 whole_archive_flag_spec='$convenience'
10408 fi
10409 archive_cmds_need_lc=yes
10410 # This is similar to how AIX traditionally builds its shared libraries.
10411 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'
10412 fi
10413 fi
10414 ;;
10415
10416 amigaos*)
10417 case $host_cpu in
10418 powerpc)
10419 # see comment about AmigaOS4 .so support
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421 archive_expsym_cmds=''
10422 ;;
10423 m68k)
10424 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)'
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_minus_L=yes
10427 ;;
10428 esac
10429 ;;
10430
10431 bsdi[45]*)
10432 export_dynamic_flag_spec=-rdynamic
10433 ;;
10434
10435 cygwin* | mingw* | pw32* | cegcc*)
10436 # When not using gcc, we currently assume that we are using
10437 # Microsoft Visual C++.
10438 # hardcode_libdir_flag_spec is actually meaningless, as there is
10439 # no search path for DLLs.
10440 hardcode_libdir_flag_spec=' '
10441 allow_undefined_flag=unsupported
10442 # Tell ltmain to make .lib files, not .a files.
10443 libext=lib
10444 # Tell ltmain to make .dll files, not .so files.
10445 shrext_cmds=".dll"
10446 # FIXME: Setting linknames here is a bad hack.
10447 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10448 # The linker will automatically build a .lib file if we build a DLL.
10449 old_archive_from_new_cmds='true'
10450 # FIXME: Should let the user specify the lib program.
10451 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10452 fix_srcfile_path='`cygpath -w "$srcfile"`'
10453 enable_shared_with_static_runtimes=yes
10454 ;;
10455
10456 darwin* | rhapsody*)
10457
10458
10459 archive_cmds_need_lc=no
10460 hardcode_direct=no
10461 hardcode_automatic=yes
10462 hardcode_shlibpath_var=unsupported
10463 if test "$lt_cv_ld_force_load" = "yes"; then
10464 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\"`'
10465 else
10466 whole_archive_flag_spec=''
10467 fi
10468 link_all_deplibs=yes
10469 allow_undefined_flag="$_lt_dar_allow_undefined"
10470 case $cc_basename in
10471 ifort*) _lt_dar_can_shared=yes ;;
10472 *) _lt_dar_can_shared=$GCC ;;
10473 esac
10474 if test "$_lt_dar_can_shared" = "yes"; then
10475 output_verbose_link_cmd=func_echo_all
10476 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10477 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10478 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}"
10479 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}"
10480
10481 else
10482 ld_shlibs=no
10483 fi
10484
10485 ;;
10486
10487 dgux*)
10488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489 hardcode_libdir_flag_spec='-L$libdir'
10490 hardcode_shlibpath_var=no
10491 ;;
10492
10493 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10494 # support. Future versions do this automatically, but an explicit c++rt0.o
10495 # does not break anything, and helps significantly (at the cost of a little
10496 # extra space).
10497 freebsd2.2*)
10498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10499 hardcode_libdir_flag_spec='-R$libdir'
10500 hardcode_direct=yes
10501 hardcode_shlibpath_var=no
10502 ;;
10503
10504 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10505 freebsd2.*)
10506 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10507 hardcode_direct=yes
10508 hardcode_minus_L=yes
10509 hardcode_shlibpath_var=no
10510 ;;
10511
10512 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10513 freebsd* | dragonfly*)
10514 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10515 hardcode_libdir_flag_spec='-R$libdir'
10516 hardcode_direct=yes
10517 hardcode_shlibpath_var=no
10518 ;;
10519
10520 hpux9*)
10521 if test "$GCC" = yes; then
10522 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'
10523 else
10524 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'
10525 fi
10526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10527 hardcode_libdir_separator=:
10528 hardcode_direct=yes
10529
10530 # hardcode_minus_L: Not really in the search PATH,
10531 # but as the default location of the library.
10532 hardcode_minus_L=yes
10533 export_dynamic_flag_spec='${wl}-E'
10534 ;;
10535
10536 hpux10*)
10537 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10538 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10539 else
10540 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10541 fi
10542 if test "$with_gnu_ld" = no; then
10543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10544 hardcode_libdir_flag_spec_ld='+b $libdir'
10545 hardcode_libdir_separator=:
10546 hardcode_direct=yes
10547 hardcode_direct_absolute=yes
10548 export_dynamic_flag_spec='${wl}-E'
10549 # hardcode_minus_L: Not really in the search PATH,
10550 # but as the default location of the library.
10551 hardcode_minus_L=yes
10552 fi
10553 ;;
10554
10555 hpux11*)
10556 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10557 case $host_cpu in
10558 hppa*64*)
10559 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10560 ;;
10561 ia64*)
10562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10563 ;;
10564 *)
10565 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10566 ;;
10567 esac
10568 else
10569 case $host_cpu in
10570 hppa*64*)
10571 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10572 ;;
10573 ia64*)
10574 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10575 ;;
10576 *)
10577
10578 # Older versions of the 11.00 compiler do not understand -b yet
10579 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10581 $as_echo_n "checking if $CC understands -b... " >&6; }
10582 if ${lt_cv_prog_compiler__b+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 lt_cv_prog_compiler__b=no
10586 save_LDFLAGS="$LDFLAGS"
10587 LDFLAGS="$LDFLAGS -b"
10588 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10589 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10590 # The linker can only warn and ignore the option if not recognized
10591 # So say no if there are warnings
10592 if test -s conftest.err; then
10593 # Append any errors to the config.log.
10594 cat conftest.err 1>&5
10595 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10597 if diff conftest.exp conftest.er2 >/dev/null; then
10598 lt_cv_prog_compiler__b=yes
10599 fi
10600 else
10601 lt_cv_prog_compiler__b=yes
10602 fi
10603 fi
10604 $RM -r conftest*
10605 LDFLAGS="$save_LDFLAGS"
10606
10607 fi
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10609 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10610
10611 if test x"$lt_cv_prog_compiler__b" = xyes; then
10612 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10613 else
10614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10615 fi
10616
10617 ;;
10618 esac
10619 fi
10620 if test "$with_gnu_ld" = no; then
10621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10622 hardcode_libdir_separator=:
10623
10624 case $host_cpu in
10625 hppa*64*|ia64*)
10626 hardcode_direct=no
10627 hardcode_shlibpath_var=no
10628 ;;
10629 *)
10630 hardcode_direct=yes
10631 hardcode_direct_absolute=yes
10632 export_dynamic_flag_spec='${wl}-E'
10633
10634 # hardcode_minus_L: Not really in the search PATH,
10635 # but as the default location of the library.
10636 hardcode_minus_L=yes
10637 ;;
10638 esac
10639 fi
10640 ;;
10641
10642 irix5* | irix6* | nonstopux*)
10643 if test "$GCC" = yes; then
10644 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'
10645 # Try to use the -exported_symbol ld option, if it does not
10646 # work, assume that -exports_file does not work either and
10647 # implicitly export all symbols.
10648 save_LDFLAGS="$LDFLAGS"
10649 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 int foo(void) {}
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 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'
10656
10657 fi
10658 rm -f core conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
10660 LDFLAGS="$save_LDFLAGS"
10661 else
10662 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'
10663 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'
10664 fi
10665 archive_cmds_need_lc='no'
10666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10667 hardcode_libdir_separator=:
10668 inherit_rpath=yes
10669 link_all_deplibs=yes
10670 ;;
10671
10672 netbsd*)
10673 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10674 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10675 else
10676 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10677 fi
10678 hardcode_libdir_flag_spec='-R$libdir'
10679 hardcode_direct=yes
10680 hardcode_shlibpath_var=no
10681 ;;
10682
10683 newsos6)
10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10685 hardcode_direct=yes
10686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10687 hardcode_libdir_separator=:
10688 hardcode_shlibpath_var=no
10689 ;;
10690
10691 *nto* | *qnx*)
10692 ;;
10693
10694 openbsd*)
10695 if test -f /usr/libexec/ld.so; then
10696 hardcode_direct=yes
10697 hardcode_shlibpath_var=no
10698 hardcode_direct_absolute=yes
10699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10701 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10702 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10703 export_dynamic_flag_spec='${wl}-E'
10704 else
10705 case $host_os in
10706 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10708 hardcode_libdir_flag_spec='-R$libdir'
10709 ;;
10710 *)
10711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10713 ;;
10714 esac
10715 fi
10716 else
10717 ld_shlibs=no
10718 fi
10719 ;;
10720
10721 os2*)
10722 hardcode_libdir_flag_spec='-L$libdir'
10723 hardcode_minus_L=yes
10724 allow_undefined_flag=unsupported
10725 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'
10726 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10727 ;;
10728
10729 osf3*)
10730 if test "$GCC" = yes; then
10731 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10732 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'
10733 else
10734 allow_undefined_flag=' -expect_unresolved \*'
10735 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'
10736 fi
10737 archive_cmds_need_lc='no'
10738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10739 hardcode_libdir_separator=:
10740 ;;
10741
10742 osf4* | osf5*) # as osf3* with the addition of -msym flag
10743 if test "$GCC" = yes; then
10744 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10745 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'
10746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10747 else
10748 allow_undefined_flag=' -expect_unresolved \*'
10749 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'
10750 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~
10751 $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'
10752
10753 # Both c and cxx compiler support -rpath directly
10754 hardcode_libdir_flag_spec='-rpath $libdir'
10755 fi
10756 archive_cmds_need_lc='no'
10757 hardcode_libdir_separator=:
10758 ;;
10759
10760 solaris*)
10761 no_undefined_flag=' -z defs'
10762 if test "$GCC" = yes; then
10763 wlarc='${wl}'
10764 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10766 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10767 else
10768 case `$CC -V 2>&1` in
10769 *"Compilers 5.0"*)
10770 wlarc=''
10771 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10773 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10774 ;;
10775 *)
10776 wlarc='${wl}'
10777 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10778 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10779 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10780 ;;
10781 esac
10782 fi
10783 hardcode_libdir_flag_spec='-R$libdir'
10784 hardcode_shlibpath_var=no
10785 case $host_os in
10786 solaris2.[0-5] | solaris2.[0-5].*) ;;
10787 *)
10788 # The compiler driver will combine and reorder linker options,
10789 # but understands `-z linker_flag'. GCC discards it without `$wl',
10790 # but is careful enough not to reorder.
10791 # Supported since Solaris 2.6 (maybe 2.5.1?)
10792 if test "$GCC" = yes; then
10793 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10794 else
10795 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10796 fi
10797 ;;
10798 esac
10799 link_all_deplibs=yes
10800 ;;
10801
10802 sunos4*)
10803 if test "x$host_vendor" = xsequent; then
10804 # Use $CC to link under sequent, because it throws in some extra .o
10805 # files that make .init and .fini sections work.
10806 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10807 else
10808 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10809 fi
10810 hardcode_libdir_flag_spec='-L$libdir'
10811 hardcode_direct=yes
10812 hardcode_minus_L=yes
10813 hardcode_shlibpath_var=no
10814 ;;
10815
10816 sysv4)
10817 case $host_vendor in
10818 sni)
10819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10820 hardcode_direct=yes # is this really true???
10821 ;;
10822 siemens)
10823 ## LD is ld it makes a PLAMLIB
10824 ## CC just makes a GrossModule.
10825 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10826 reload_cmds='$CC -r -o $output$reload_objs'
10827 hardcode_direct=no
10828 ;;
10829 motorola)
10830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10831 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10832 ;;
10833 esac
10834 runpath_var='LD_RUN_PATH'
10835 hardcode_shlibpath_var=no
10836 ;;
10837
10838 sysv4.3*)
10839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_shlibpath_var=no
10841 export_dynamic_flag_spec='-Bexport'
10842 ;;
10843
10844 sysv4*MP*)
10845 if test -d /usr/nec; then
10846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847 hardcode_shlibpath_var=no
10848 runpath_var=LD_RUN_PATH
10849 hardcode_runpath_var=yes
10850 ld_shlibs=yes
10851 fi
10852 ;;
10853
10854 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10855 no_undefined_flag='${wl}-z,text'
10856 archive_cmds_need_lc=no
10857 hardcode_shlibpath_var=no
10858 runpath_var='LD_RUN_PATH'
10859
10860 if test "$GCC" = yes; then
10861 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10862 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10863 else
10864 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10865 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10866 fi
10867 ;;
10868
10869 sysv5* | sco3.2v5* | sco5v6*)
10870 # Note: We can NOT use -z defs as we might desire, because we do not
10871 # link with -lc, and that would cause any symbols used from libc to
10872 # always be unresolved, which means just about no library would
10873 # ever link correctly. If we're not using GNU ld we use -z text
10874 # though, which does catch some bad symbols but isn't as heavy-handed
10875 # as -z defs.
10876 no_undefined_flag='${wl}-z,text'
10877 allow_undefined_flag='${wl}-z,nodefs'
10878 archive_cmds_need_lc=no
10879 hardcode_shlibpath_var=no
10880 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10881 hardcode_libdir_separator=':'
10882 link_all_deplibs=yes
10883 export_dynamic_flag_spec='${wl}-Bexport'
10884 runpath_var='LD_RUN_PATH'
10885
10886 if test "$GCC" = yes; then
10887 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10888 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10889 else
10890 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10891 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10892 fi
10893 ;;
10894
10895 uts4*)
10896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897 hardcode_libdir_flag_spec='-L$libdir'
10898 hardcode_shlibpath_var=no
10899 ;;
10900
10901 *)
10902 ld_shlibs=no
10903 ;;
10904 esac
10905
10906 if test x$host_vendor = xsni; then
10907 case $host in
10908 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10909 export_dynamic_flag_spec='${wl}-Blargedynsym'
10910 ;;
10911 esac
10912 fi
10913 fi
10914
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10916 $as_echo "$ld_shlibs" >&6; }
10917 test "$ld_shlibs" = no && can_build_shared=no
10918
10919 with_gnu_ld=$with_gnu_ld
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935 #
10936 # Do we need to explicitly link libc?
10937 #
10938 case "x$archive_cmds_need_lc" in
10939 x|xyes)
10940 # Assume -lc should be added
10941 archive_cmds_need_lc=yes
10942
10943 if test "$enable_shared" = yes && test "$GCC" = yes; then
10944 case $archive_cmds in
10945 *'~'*)
10946 # FIXME: we may have to deal with multi-command sequences.
10947 ;;
10948 '$CC '*)
10949 # Test whether the compiler implicitly links with -lc since on some
10950 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10951 # to ld, don't add -lc before -lgcc.
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10953 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10954 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 $RM conftest*
10958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10959
10960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10961 (eval $ac_compile) 2>&5
10962 ac_status=$?
10963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10964 test $ac_status = 0; } 2>conftest.err; then
10965 soname=conftest
10966 lib=conftest
10967 libobjs=conftest.$ac_objext
10968 deplibs=
10969 wl=$lt_prog_compiler_wl
10970 pic_flag=$lt_prog_compiler_pic
10971 compiler_flags=-v
10972 linker_flags=-v
10973 verstring=
10974 output_objdir=.
10975 libname=conftest
10976 lt_save_allow_undefined_flag=$allow_undefined_flag
10977 allow_undefined_flag=
10978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10979 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10980 ac_status=$?
10981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982 test $ac_status = 0; }
10983 then
10984 lt_cv_archive_cmds_need_lc=no
10985 else
10986 lt_cv_archive_cmds_need_lc=yes
10987 fi
10988 allow_undefined_flag=$lt_save_allow_undefined_flag
10989 else
10990 cat conftest.err 1>&5
10991 fi
10992 $RM conftest*
10993
10994 fi
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10996 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10997 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10998 ;;
10999 esac
11000 fi
11001 ;;
11002 esac
11003
11004
11005
11006
11007
11008
11009
11010
11011
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11161 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11162
11163 if test "$GCC" = yes; then
11164 case $host_os in
11165 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11166 *) lt_awk_arg="/^libraries:/" ;;
11167 esac
11168 case $host_os in
11169 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11170 *) lt_sed_strip_eq="s,=/,/,g" ;;
11171 esac
11172 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11173 case $lt_search_path_spec in
11174 *\;*)
11175 # if the path contains ";" then we assume it to be the separator
11176 # otherwise default to the standard path separator (i.e. ":") - it is
11177 # assumed that no part of a normal pathname contains ";" but that should
11178 # okay in the real world where ";" in dirpaths is itself problematic.
11179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11180 ;;
11181 *)
11182 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11183 ;;
11184 esac
11185 # Ok, now we have the path, separated by spaces, we can step through it
11186 # and add multilib dir if necessary.
11187 lt_tmp_lt_search_path_spec=
11188 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11189 for lt_sys_path in $lt_search_path_spec; do
11190 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11191 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11192 else
11193 test -d "$lt_sys_path" && \
11194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11195 fi
11196 done
11197 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11198 BEGIN {RS=" "; FS="/|\n";} {
11199 lt_foo="";
11200 lt_count=0;
11201 for (lt_i = NF; lt_i > 0; lt_i--) {
11202 if ($lt_i != "" && $lt_i != ".") {
11203 if ($lt_i == "..") {
11204 lt_count++;
11205 } else {
11206 if (lt_count == 0) {
11207 lt_foo="/" $lt_i lt_foo;
11208 } else {
11209 lt_count--;
11210 }
11211 }
11212 }
11213 }
11214 if (lt_foo != "") { lt_freq[lt_foo]++; }
11215 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11216 }'`
11217 # AWK program above erroneously prepends '/' to C:/dos/paths
11218 # for these hosts.
11219 case $host_os in
11220 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11221 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11222 esac
11223 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11224 else
11225 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11226 fi
11227 library_names_spec=
11228 libname_spec='lib$name'
11229 soname_spec=
11230 shrext_cmds=".so"
11231 postinstall_cmds=
11232 postuninstall_cmds=
11233 finish_cmds=
11234 finish_eval=
11235 shlibpath_var=
11236 shlibpath_overrides_runpath=unknown
11237 version_type=none
11238 dynamic_linker="$host_os ld.so"
11239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11240 need_lib_prefix=unknown
11241 hardcode_into_libs=no
11242
11243 # when you set need_version to no, make sure it does not cause -set_version
11244 # flags to be left without arguments
11245 need_version=unknown
11246
11247 case $host_os in
11248 aix3*)
11249 version_type=linux
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11251 shlibpath_var=LIBPATH
11252
11253 # AIX 3 has no versioning support, so we append a major version to the name.
11254 soname_spec='${libname}${release}${shared_ext}$major'
11255 ;;
11256
11257 aix[4-9]*)
11258 version_type=linux
11259 need_lib_prefix=no
11260 need_version=no
11261 hardcode_into_libs=yes
11262 if test "$host_cpu" = ia64; then
11263 # AIX 5 supports IA64
11264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 else
11267 # With GCC up to 2.95.x, collect2 would create an import file
11268 # for dependence libraries. The import file would start with
11269 # the line `#! .'. This would cause the generated library to
11270 # depend on `.', always an invalid library. This was fixed in
11271 # development snapshots of GCC prior to 3.0.
11272 case $host_os in
11273 aix4 | aix4.[01] | aix4.[01].*)
11274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11275 echo ' yes '
11276 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11277 :
11278 else
11279 can_build_shared=no
11280 fi
11281 ;;
11282 esac
11283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11284 # soname into executable. Probably we can add versioning support to
11285 # collect2, so additional links can be useful in future.
11286 if test "$aix_use_runtimelinking" = yes; then
11287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11288 # instead of lib<name>.a to let people know that these are not
11289 # typical AIX shared libraries.
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 else
11292 # We preserve .a as extension for shared libraries through AIX4.2
11293 # and later when we are not doing run time linking.
11294 library_names_spec='${libname}${release}.a $libname.a'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 fi
11297 shlibpath_var=LIBPATH
11298 fi
11299 ;;
11300
11301 amigaos*)
11302 case $host_cpu in
11303 powerpc)
11304 # Since July 2007 AmigaOS4 officially supports .so libraries.
11305 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307 ;;
11308 m68k)
11309 library_names_spec='$libname.ixlibrary $libname.a'
11310 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11311 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'
11312 ;;
11313 esac
11314 ;;
11315
11316 beos*)
11317 library_names_spec='${libname}${shared_ext}'
11318 dynamic_linker="$host_os ld.so"
11319 shlibpath_var=LIBRARY_PATH
11320 ;;
11321
11322 bsdi[45]*)
11323 version_type=linux
11324 need_version=no
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11330 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11331 # the default ld.so.conf also contains /usr/contrib/lib and
11332 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11333 # libtool to hard-code these into programs
11334 ;;
11335
11336 cygwin* | mingw* | pw32* | cegcc*)
11337 version_type=windows
11338 shrext_cmds=".dll"
11339 need_version=no
11340 need_lib_prefix=no
11341
11342 case $GCC,$host_os in
11343 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11344 library_names_spec='$libname.dll.a'
11345 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11346 postinstall_cmds='base_file=`basename \${file}`~
11347 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11348 dldir=$destdir/`dirname \$dlpath`~
11349 test -d \$dldir || mkdir -p \$dldir~
11350 $install_prog $dir/$dlname \$dldir/$dlname~
11351 chmod a+x \$dldir/$dlname~
11352 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11353 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11354 fi'
11355 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11356 dlpath=$dir/\$dldll~
11357 $RM \$dlpath'
11358 shlibpath_overrides_runpath=yes
11359
11360 case $host_os in
11361 cygwin*)
11362 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11363 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11364
11365 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11366 ;;
11367 mingw* | cegcc*)
11368 # MinGW DLLs use traditional 'lib' prefix
11369 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11370 ;;
11371 pw32*)
11372 # pw32 DLLs use 'pw' prefix rather than 'lib'
11373 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11374 ;;
11375 esac
11376 ;;
11377
11378 *)
11379 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11380 ;;
11381 esac
11382 dynamic_linker='Win32 ld.exe'
11383 # FIXME: first we should search . and the directory the executable is in
11384 shlibpath_var=PATH
11385 ;;
11386
11387 darwin* | rhapsody*)
11388 dynamic_linker="$host_os dyld"
11389 version_type=darwin
11390 need_lib_prefix=no
11391 need_version=no
11392 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11393 soname_spec='${libname}${release}${major}$shared_ext'
11394 shlibpath_overrides_runpath=yes
11395 shlibpath_var=DYLD_LIBRARY_PATH
11396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11397
11398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11400 ;;
11401
11402 dgux*)
11403 version_type=linux
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 ;;
11410
11411 freebsd* | dragonfly*)
11412 # DragonFly does not have aout. When/if they implement a new
11413 # versioning mechanism, adjust this.
11414 if test -x /usr/bin/objformat; then
11415 objformat=`/usr/bin/objformat`
11416 else
11417 case $host_os in
11418 freebsd[23].*) objformat=aout ;;
11419 *) objformat=elf ;;
11420 esac
11421 fi
11422 version_type=freebsd-$objformat
11423 case $version_type in
11424 freebsd-elf*)
11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11426 need_version=no
11427 need_lib_prefix=no
11428 ;;
11429 freebsd-*)
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11431 need_version=yes
11432 ;;
11433 esac
11434 shlibpath_var=LD_LIBRARY_PATH
11435 case $host_os in
11436 freebsd2.*)
11437 shlibpath_overrides_runpath=yes
11438 ;;
11439 freebsd3.[01]* | freebsdelf3.[01]*)
11440 shlibpath_overrides_runpath=yes
11441 hardcode_into_libs=yes
11442 ;;
11443 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11444 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11445 shlibpath_overrides_runpath=no
11446 hardcode_into_libs=yes
11447 ;;
11448 *) # from 4.6 on, and DragonFly
11449 shlibpath_overrides_runpath=yes
11450 hardcode_into_libs=yes
11451 ;;
11452 esac
11453 ;;
11454
11455 haiku*)
11456 version_type=linux
11457 need_lib_prefix=no
11458 need_version=no
11459 dynamic_linker="$host_os runtime_loader"
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11465 hardcode_into_libs=yes
11466 ;;
11467
11468 hpux9* | hpux10* | hpux11*)
11469 # Give a soname corresponding to the major version so that dld.sl refuses to
11470 # link against other versions.
11471 version_type=sunos
11472 need_lib_prefix=no
11473 need_version=no
11474 case $host_cpu in
11475 ia64*)
11476 shrext_cmds='.so'
11477 hardcode_into_libs=yes
11478 dynamic_linker="$host_os dld.so"
11479 shlibpath_var=LD_LIBRARY_PATH
11480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 if test "X$HPUX_IA64_MODE" = X32; then
11484 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11485 else
11486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11487 fi
11488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11489 ;;
11490 hppa*64*)
11491 shrext_cmds='.sl'
11492 hardcode_into_libs=yes
11493 dynamic_linker="$host_os dld.sl"
11494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11500 ;;
11501 *)
11502 shrext_cmds='.sl'
11503 dynamic_linker="$host_os dld.sl"
11504 shlibpath_var=SHLIB_PATH
11505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 soname_spec='${libname}${release}${shared_ext}$major'
11508 ;;
11509 esac
11510 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11511 postinstall_cmds='chmod 555 $lib'
11512 # or fails outright, so override atomically:
11513 install_override_mode=555
11514 ;;
11515
11516 interix[3-9]*)
11517 version_type=linux
11518 need_lib_prefix=no
11519 need_version=no
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11523 shlibpath_var=LD_LIBRARY_PATH
11524 shlibpath_overrides_runpath=no
11525 hardcode_into_libs=yes
11526 ;;
11527
11528 irix5* | irix6* | nonstopux*)
11529 case $host_os in
11530 nonstopux*) version_type=nonstopux ;;
11531 *)
11532 if test "$lt_cv_prog_gnu_ld" = yes; then
11533 version_type=linux
11534 else
11535 version_type=irix
11536 fi ;;
11537 esac
11538 need_lib_prefix=no
11539 need_version=no
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11542 case $host_os in
11543 irix5* | nonstopux*)
11544 libsuff= shlibsuff=
11545 ;;
11546 *)
11547 case $LD in # libtool.m4 will add one of these switches to LD
11548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11549 libsuff= shlibsuff= libmagic=32-bit;;
11550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11551 libsuff=32 shlibsuff=N32 libmagic=N32;;
11552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11554 *) libsuff= shlibsuff= libmagic=never-match;;
11555 esac
11556 ;;
11557 esac
11558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11559 shlibpath_overrides_runpath=no
11560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11562 hardcode_into_libs=yes
11563 ;;
11564
11565 # No shared lib support for Linux oldld, aout, or coff.
11566 linux*oldld* | linux*aout* | linux*coff*)
11567 dynamic_linker=no
11568 ;;
11569
11570 # This must be Linux ELF.
11571 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11572 version_type=linux
11573 need_lib_prefix=no
11574 need_version=no
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=no
11580
11581 # Some binutils ld are patched to set DT_RUNPATH
11582 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 lt_cv_shlibpath_overrides_runpath=no
11586 save_LDFLAGS=$LDFLAGS
11587 save_libdir=$libdir
11588 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11589 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h. */
11592
11593 int
11594 main ()
11595 {
11596
11597 ;
11598 return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11603 lt_cv_shlibpath_overrides_runpath=yes
11604 fi
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LDFLAGS=$save_LDFLAGS
11609 libdir=$save_libdir
11610
11611 fi
11612
11613 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11614
11615 # This implies no fast_install, which is unacceptable.
11616 # Some rework will be needed to allow for fast_install
11617 # before this can be enabled.
11618 hardcode_into_libs=yes
11619
11620 # Append ld.so.conf contents to the search path
11621 if test -f /etc/ld.so.conf; then
11622 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' ' '`
11623 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11624 fi
11625
11626 # We used to test for /lib/ld.so.1 and disable shared libraries on
11627 # powerpc, because MkLinux only supported shared libraries with the
11628 # GNU dynamic linker. Since this was broken with cross compilers,
11629 # most powerpc-linux boxes support dynamic linking these days and
11630 # people can always --disable-shared, the test was removed, and we
11631 # assume the GNU/Linux dynamic linker is in use.
11632 dynamic_linker='GNU/Linux ld.so'
11633 ;;
11634
11635 netbsd*)
11636 version_type=sunos
11637 need_lib_prefix=no
11638 need_version=no
11639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11642 dynamic_linker='NetBSD (a.out) ld.so'
11643 else
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 dynamic_linker='NetBSD ld.elf_so'
11647 fi
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=yes
11650 hardcode_into_libs=yes
11651 ;;
11652
11653 newsos6)
11654 version_type=linux
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=yes
11658 ;;
11659
11660 *nto* | *qnx*)
11661 version_type=qnx
11662 need_lib_prefix=no
11663 need_version=no
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 soname_spec='${libname}${release}${shared_ext}$major'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=no
11668 hardcode_into_libs=yes
11669 dynamic_linker='ldqnx.so'
11670 ;;
11671
11672 openbsd*)
11673 version_type=sunos
11674 sys_lib_dlsearch_path_spec="/usr/lib"
11675 need_lib_prefix=no
11676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11677 case $host_os in
11678 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11679 *) need_version=no ;;
11680 esac
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11685 case $host_os in
11686 openbsd2.[89] | openbsd2.[89].*)
11687 shlibpath_overrides_runpath=no
11688 ;;
11689 *)
11690 shlibpath_overrides_runpath=yes
11691 ;;
11692 esac
11693 else
11694 shlibpath_overrides_runpath=yes
11695 fi
11696 ;;
11697
11698 os2*)
11699 libname_spec='$name'
11700 shrext_cmds=".dll"
11701 need_lib_prefix=no
11702 library_names_spec='$libname${shared_ext} $libname.a'
11703 dynamic_linker='OS/2 ld.exe'
11704 shlibpath_var=LIBPATH
11705 ;;
11706
11707 osf3* | osf4* | osf5*)
11708 version_type=osf
11709 need_lib_prefix=no
11710 need_version=no
11711 soname_spec='${libname}${release}${shared_ext}$major'
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11716 ;;
11717
11718 rdos*)
11719 dynamic_linker=no
11720 ;;
11721
11722 solaris*)
11723 version_type=linux
11724 need_lib_prefix=no
11725 need_version=no
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 hardcode_into_libs=yes
11731 # ldd complains unless libraries are executable
11732 postinstall_cmds='chmod +x $lib'
11733 ;;
11734
11735 sunos4*)
11736 version_type=sunos
11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 if test "$with_gnu_ld" = yes; then
11742 need_lib_prefix=no
11743 fi
11744 need_version=yes
11745 ;;
11746
11747 sysv4 | sysv4.3*)
11748 version_type=linux
11749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 soname_spec='${libname}${release}${shared_ext}$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 case $host_vendor in
11753 sni)
11754 shlibpath_overrides_runpath=no
11755 need_lib_prefix=no
11756 runpath_var=LD_RUN_PATH
11757 ;;
11758 siemens)
11759 need_lib_prefix=no
11760 ;;
11761 motorola)
11762 need_lib_prefix=no
11763 need_version=no
11764 shlibpath_overrides_runpath=no
11765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11766 ;;
11767 esac
11768 ;;
11769
11770 sysv4*MP*)
11771 if test -d /usr/nec ;then
11772 version_type=linux
11773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11774 soname_spec='$libname${shared_ext}.$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 fi
11777 ;;
11778
11779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11780 version_type=freebsd-elf
11781 need_lib_prefix=no
11782 need_version=no
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=yes
11787 hardcode_into_libs=yes
11788 if test "$with_gnu_ld" = yes; then
11789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11790 else
11791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11792 case $host_os in
11793 sco3.2v5*)
11794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11795 ;;
11796 esac
11797 fi
11798 sys_lib_dlsearch_path_spec='/usr/lib'
11799 ;;
11800
11801 tpf*)
11802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11803 version_type=linux
11804 need_lib_prefix=no
11805 need_version=no
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11810 ;;
11811
11812 uts4*)
11813 version_type=linux
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 ;;
11818
11819 *)
11820 dynamic_linker=no
11821 ;;
11822 esac
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11824 $as_echo "$dynamic_linker" >&6; }
11825 test "$dynamic_linker" = no && can_build_shared=no
11826
11827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11828 if test "$GCC" = yes; then
11829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11830 fi
11831
11832 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11833 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11834 fi
11835 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11836 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11837 fi
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11931 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11932 hardcode_action=
11933 if test -n "$hardcode_libdir_flag_spec" ||
11934 test -n "$runpath_var" ||
11935 test "X$hardcode_automatic" = "Xyes" ; then
11936
11937 # We can hardcode non-existent directories.
11938 if test "$hardcode_direct" != no &&
11939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11940 # have to relink, otherwise we might link with an installed library
11941 # when we should be linking with a yet-to-be-installed one
11942 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11943 test "$hardcode_minus_L" != no; then
11944 # Linking always hardcodes the temporary library directory.
11945 hardcode_action=relink
11946 else
11947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11948 hardcode_action=immediate
11949 fi
11950 else
11951 # We cannot hardcode anything, or else we can only hardcode existing
11952 # directories.
11953 hardcode_action=unsupported
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11956 $as_echo "$hardcode_action" >&6; }
11957
11958 if test "$hardcode_action" = relink ||
11959 test "$inherit_rpath" = yes; then
11960 # Fast installation is not supported
11961 enable_fast_install=no
11962 elif test "$shlibpath_overrides_runpath" = yes ||
11963 test "$enable_shared" = no; then
11964 # Fast installation is not necessary
11965 enable_fast_install=needless
11966 fi
11967
11968
11969
11970
11971
11972
11973 if test "x$enable_dlopen" != xyes; then
11974 enable_dlopen=unknown
11975 enable_dlopen_self=unknown
11976 enable_dlopen_self_static=unknown
11977 else
11978 lt_cv_dlopen=no
11979 lt_cv_dlopen_libs=
11980
11981 case $host_os in
11982 beos*)
11983 lt_cv_dlopen="load_add_on"
11984 lt_cv_dlopen_libs=
11985 lt_cv_dlopen_self=yes
11986 ;;
11987
11988 mingw* | pw32* | cegcc*)
11989 lt_cv_dlopen="LoadLibrary"
11990 lt_cv_dlopen_libs=
11991 ;;
11992
11993 cygwin*)
11994 lt_cv_dlopen="dlopen"
11995 lt_cv_dlopen_libs=
11996 ;;
11997
11998 darwin*)
11999 # if libdl is installed we need to link against it
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12001 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12002 if ${ac_cv_lib_dl_dlopen+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 ac_check_lib_save_LIBS=$LIBS
12006 LIBS="-ldl $LIBS"
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char dlopen ();
12017 int
12018 main ()
12019 {
12020 return dlopen ();
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_dl_dlopen=yes
12027 else
12028 ac_cv_lib_dl_dlopen=no
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12033 fi
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12035 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12036 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12037 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12038 else
12039
12040 lt_cv_dlopen="dyld"
12041 lt_cv_dlopen_libs=
12042 lt_cv_dlopen_self=yes
12043
12044 fi
12045
12046 ;;
12047
12048 *)
12049 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12050 if test "x$ac_cv_func_shl_load" = xyes; then :
12051 lt_cv_dlopen="shl_load"
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12054 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12055 if ${ac_cv_lib_dld_shl_load+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-ldld $LIBS"
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066 #ifdef __cplusplus
12067 extern "C"
12068 #endif
12069 char shl_load ();
12070 int
12071 main ()
12072 {
12073 return shl_load ();
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_dld_shl_load=yes
12080 else
12081 ac_cv_lib_dld_shl_load=no
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 LIBS=$ac_check_lib_save_LIBS
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12088 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12089 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12090 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12091 else
12092 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12093 if test "x$ac_cv_func_dlopen" = xyes; then :
12094 lt_cv_dlopen="dlopen"
12095 else
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12097 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12098 if ${ac_cv_lib_dl_dlopen+:} false; then :
12099 $as_echo_n "(cached) " >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-ldl $LIBS"
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char dlopen ();
12113 int
12114 main ()
12115 {
12116 return dlopen ();
12117 ;
12118 return 0;
12119 }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_lib_dl_dlopen=yes
12123 else
12124 ac_cv_lib_dl_dlopen=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12131 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12132 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12136 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12137 if ${ac_cv_lib_svld_dlopen+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-lsvld $LIBS"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char dlopen ();
12152 int
12153 main ()
12154 {
12155 return dlopen ();
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 if ac_fn_c_try_link "$LINENO"; then :
12161 ac_cv_lib_svld_dlopen=yes
12162 else
12163 ac_cv_lib_svld_dlopen=no
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12170 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12171 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12175 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12176 if ${ac_cv_lib_dld_dld_link+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldld $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char dld_link ();
12191 int
12192 main ()
12193 {
12194 return dld_link ();
12195 ;
12196 return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_lib_dld_dld_link=yes
12201 else
12202 ac_cv_lib_dld_dld_link=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12209 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12210 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12211 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12212 fi
12213
12214
12215 fi
12216
12217
12218 fi
12219
12220
12221 fi
12222
12223
12224 fi
12225
12226
12227 fi
12228
12229 ;;
12230 esac
12231
12232 if test "x$lt_cv_dlopen" != xno; then
12233 enable_dlopen=yes
12234 else
12235 enable_dlopen=no
12236 fi
12237
12238 case $lt_cv_dlopen in
12239 dlopen)
12240 save_CPPFLAGS="$CPPFLAGS"
12241 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12242
12243 save_LDFLAGS="$LDFLAGS"
12244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12245
12246 save_LIBS="$LIBS"
12247 LIBS="$lt_cv_dlopen_libs $LIBS"
12248
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12250 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12251 if ${lt_cv_dlopen_self+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 if test "$cross_compiling" = yes; then :
12255 lt_cv_dlopen_self=cross
12256 else
12257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12258 lt_status=$lt_dlunknown
12259 cat > conftest.$ac_ext <<_LT_EOF
12260 #line 12260 "configure"
12261 #include "confdefs.h"
12262
12263 #if HAVE_DLFCN_H
12264 #include <dlfcn.h>
12265 #endif
12266
12267 #include <stdio.h>
12268
12269 #ifdef RTLD_GLOBAL
12270 # define LT_DLGLOBAL RTLD_GLOBAL
12271 #else
12272 # ifdef DL_GLOBAL
12273 # define LT_DLGLOBAL DL_GLOBAL
12274 # else
12275 # define LT_DLGLOBAL 0
12276 # endif
12277 #endif
12278
12279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12280 find out it does not work in some platform. */
12281 #ifndef LT_DLLAZY_OR_NOW
12282 # ifdef RTLD_LAZY
12283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12284 # else
12285 # ifdef DL_LAZY
12286 # define LT_DLLAZY_OR_NOW DL_LAZY
12287 # else
12288 # ifdef RTLD_NOW
12289 # define LT_DLLAZY_OR_NOW RTLD_NOW
12290 # else
12291 # ifdef DL_NOW
12292 # define LT_DLLAZY_OR_NOW DL_NOW
12293 # else
12294 # define LT_DLLAZY_OR_NOW 0
12295 # endif
12296 # endif
12297 # endif
12298 # endif
12299 #endif
12300
12301 /* When -fvisbility=hidden is used, assume the code has been annotated
12302 correspondingly for the symbols needed. */
12303 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12304 void fnord () __attribute__((visibility("default")));
12305 #endif
12306
12307 void fnord () { int i=42; }
12308 int main ()
12309 {
12310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12311 int status = $lt_dlunknown;
12312
12313 if (self)
12314 {
12315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12316 else
12317 {
12318 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12319 else puts (dlerror ());
12320 }
12321 /* dlclose (self); */
12322 }
12323 else
12324 puts (dlerror ());
12325
12326 return status;
12327 }
12328 _LT_EOF
12329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12330 (eval $ac_link) 2>&5
12331 ac_status=$?
12332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12333 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12334 (./conftest; exit; ) >&5 2>/dev/null
12335 lt_status=$?
12336 case x$lt_status in
12337 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12338 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12339 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12340 esac
12341 else :
12342 # compilation failed
12343 lt_cv_dlopen_self=no
12344 fi
12345 fi
12346 rm -fr conftest*
12347
12348
12349 fi
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12351 $as_echo "$lt_cv_dlopen_self" >&6; }
12352
12353 if test "x$lt_cv_dlopen_self" = xyes; then
12354 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12356 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12357 if ${lt_cv_dlopen_self_static+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if test "$cross_compiling" = yes; then :
12361 lt_cv_dlopen_self_static=cross
12362 else
12363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12364 lt_status=$lt_dlunknown
12365 cat > conftest.$ac_ext <<_LT_EOF
12366 #line 12366 "configure"
12367 #include "confdefs.h"
12368
12369 #if HAVE_DLFCN_H
12370 #include <dlfcn.h>
12371 #endif
12372
12373 #include <stdio.h>
12374
12375 #ifdef RTLD_GLOBAL
12376 # define LT_DLGLOBAL RTLD_GLOBAL
12377 #else
12378 # ifdef DL_GLOBAL
12379 # define LT_DLGLOBAL DL_GLOBAL
12380 # else
12381 # define LT_DLGLOBAL 0
12382 # endif
12383 #endif
12384
12385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12386 find out it does not work in some platform. */
12387 #ifndef LT_DLLAZY_OR_NOW
12388 # ifdef RTLD_LAZY
12389 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12390 # else
12391 # ifdef DL_LAZY
12392 # define LT_DLLAZY_OR_NOW DL_LAZY
12393 # else
12394 # ifdef RTLD_NOW
12395 # define LT_DLLAZY_OR_NOW RTLD_NOW
12396 # else
12397 # ifdef DL_NOW
12398 # define LT_DLLAZY_OR_NOW DL_NOW
12399 # else
12400 # define LT_DLLAZY_OR_NOW 0
12401 # endif
12402 # endif
12403 # endif
12404 # endif
12405 #endif
12406
12407 /* When -fvisbility=hidden is used, assume the code has been annotated
12408 correspondingly for the symbols needed. */
12409 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12410 void fnord () __attribute__((visibility("default")));
12411 #endif
12412
12413 void fnord () { int i=42; }
12414 int main ()
12415 {
12416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12417 int status = $lt_dlunknown;
12418
12419 if (self)
12420 {
12421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12422 else
12423 {
12424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12425 else puts (dlerror ());
12426 }
12427 /* dlclose (self); */
12428 }
12429 else
12430 puts (dlerror ());
12431
12432 return status;
12433 }
12434 _LT_EOF
12435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12436 (eval $ac_link) 2>&5
12437 ac_status=$?
12438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12439 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12440 (./conftest; exit; ) >&5 2>/dev/null
12441 lt_status=$?
12442 case x$lt_status in
12443 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12444 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12445 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12446 esac
12447 else :
12448 # compilation failed
12449 lt_cv_dlopen_self_static=no
12450 fi
12451 fi
12452 rm -fr conftest*
12453
12454
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12457 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12458 fi
12459
12460 CPPFLAGS="$save_CPPFLAGS"
12461 LDFLAGS="$save_LDFLAGS"
12462 LIBS="$save_LIBS"
12463 ;;
12464 esac
12465
12466 case $lt_cv_dlopen_self in
12467 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12468 *) enable_dlopen_self=unknown ;;
12469 esac
12470
12471 case $lt_cv_dlopen_self_static in
12472 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12473 *) enable_dlopen_self_static=unknown ;;
12474 esac
12475 fi
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493 striplib=
12494 old_striplib=
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12496 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12497 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12498 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12499 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12501 $as_echo "yes" >&6; }
12502 else
12503 # FIXME - insert some real tests, host_os isn't really good enough
12504 case $host_os in
12505 darwin*)
12506 if test -n "$STRIP" ; then
12507 striplib="$STRIP -x"
12508 old_striplib="$STRIP -S"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12510 $as_echo "yes" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 fi
12515 ;;
12516 *)
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 ;;
12520 esac
12521 fi
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 # Report which library types will actually be built
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12536 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12538 $as_echo "$can_build_shared" >&6; }
12539
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12541 $as_echo_n "checking whether to build shared libraries... " >&6; }
12542 test "$can_build_shared" = "no" && enable_shared=no
12543
12544 # On AIX, shared libraries and static libraries use the same namespace, and
12545 # are all built from PIC.
12546 case $host_os in
12547 aix3*)
12548 test "$enable_shared" = yes && enable_static=no
12549 if test -n "$RANLIB"; then
12550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12551 postinstall_cmds='$RANLIB $lib'
12552 fi
12553 ;;
12554
12555 aix[4-9]*)
12556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12557 test "$enable_shared" = yes && enable_static=no
12558 fi
12559 ;;
12560 esac
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12562 $as_echo "$enable_shared" >&6; }
12563
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12565 $as_echo_n "checking whether to build static libraries... " >&6; }
12566 # Make sure either enable_shared or enable_static is yes.
12567 test "$enable_shared" = yes || enable_static=yes
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12569 $as_echo "$enable_static" >&6; }
12570
12571
12572
12573
12574 fi
12575 ac_ext=c
12576 ac_cpp='$CPP $CPPFLAGS'
12577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12580
12581 CC="$lt_save_CC"
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595 ac_config_commands="$ac_config_commands libtool"
12596
12597
12598
12599
12600 # Only expand once:
12601
12602
12603
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
12605 $as_echo_n "checking for library containing bind... " >&6; }
12606 if ${ac_cv_search_bind+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 ac_func_search_save_LIBS=$LIBS
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612
12613 /* Override any GCC internal prototype to avoid an error.
12614 Use char because int might match the return type of a GCC
12615 builtin and then its argument prototype would still apply. */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 char bind ();
12620 int
12621 main ()
12622 {
12623 return bind ();
12624 ;
12625 return 0;
12626 }
12627 _ACEOF
12628 for ac_lib in '' socket; do
12629 if test -z "$ac_lib"; then
12630 ac_res="none required"
12631 else
12632 ac_res=-l$ac_lib
12633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12634 fi
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_search_bind=$ac_res
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext
12640 if ${ac_cv_search_bind+:} false; then :
12641 break
12642 fi
12643 done
12644 if ${ac_cv_search_bind+:} false; then :
12645
12646 else
12647 ac_cv_search_bind=no
12648 fi
12649 rm conftest.$ac_ext
12650 LIBS=$ac_func_search_save_LIBS
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
12653 $as_echo "$ac_cv_search_bind" >&6; }
12654 ac_res=$ac_cv_search_bind
12655 if test "$ac_res" != no; then :
12656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12657
12658 fi
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12661 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12662 if ${ac_cv_search_gethostbyname+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 ac_func_search_save_LIBS=$LIBS
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 char gethostbyname ();
12676 int
12677 main ()
12678 {
12679 return gethostbyname ();
12680 ;
12681 return 0;
12682 }
12683 _ACEOF
12684 for ac_lib in '' nsl; do
12685 if test -z "$ac_lib"; then
12686 ac_res="none required"
12687 else
12688 ac_res=-l$ac_lib
12689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12690 fi
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 ac_cv_search_gethostbyname=$ac_res
12693 fi
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext
12696 if ${ac_cv_search_gethostbyname+:} false; then :
12697 break
12698 fi
12699 done
12700 if ${ac_cv_search_gethostbyname+:} false; then :
12701
12702 else
12703 ac_cv_search_gethostbyname=no
12704 fi
12705 rm conftest.$ac_ext
12706 LIBS=$ac_func_search_save_LIBS
12707 fi
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12709 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12710 ac_res=$ac_cv_search_gethostbyname
12711 if test "$ac_res" != no; then :
12712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12713
12714 fi
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fabs" >&5
12717 $as_echo_n "checking for library containing fabs... " >&6; }
12718 if ${ac_cv_search_fabs+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 ac_func_search_save_LIBS=$LIBS
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724
12725 /* Override any GCC internal prototype to avoid an error.
12726 Use char because int might match the return type of a GCC
12727 builtin and then its argument prototype would still apply. */
12728 #ifdef __cplusplus
12729 extern "C"
12730 #endif
12731 char fabs ();
12732 int
12733 main ()
12734 {
12735 return fabs ();
12736 ;
12737 return 0;
12738 }
12739 _ACEOF
12740 for ac_lib in '' m; do
12741 if test -z "$ac_lib"; then
12742 ac_res="none required"
12743 else
12744 ac_res=-l$ac_lib
12745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12746 fi
12747 if ac_fn_c_try_link "$LINENO"; then :
12748 ac_cv_search_fabs=$ac_res
12749 fi
12750 rm -f core conftest.err conftest.$ac_objext \
12751 conftest$ac_exeext
12752 if ${ac_cv_search_fabs+:} false; then :
12753 break
12754 fi
12755 done
12756 if ${ac_cv_search_fabs+:} false; then :
12757
12758 else
12759 ac_cv_search_fabs=no
12760 fi
12761 rm conftest.$ac_ext
12762 LIBS=$ac_func_search_save_LIBS
12763 fi
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fabs" >&5
12765 $as_echo "$ac_cv_search_fabs" >&6; }
12766 ac_res=$ac_cv_search_fabs
12767 if test "$ac_res" != no; then :
12768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12769
12770 fi
12771
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log2" >&5
12773 $as_echo_n "checking for library containing log2... " >&6; }
12774 if ${ac_cv_search_log2+:} false; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12777 ac_func_search_save_LIBS=$LIBS
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 char log2 ();
12788 int
12789 main ()
12790 {
12791 return log2 ();
12792 ;
12793 return 0;
12794 }
12795 _ACEOF
12796 for ac_lib in '' m; do
12797 if test -z "$ac_lib"; then
12798 ac_res="none required"
12799 else
12800 ac_res=-l$ac_lib
12801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12802 fi
12803 if ac_fn_c_try_link "$LINENO"; then :
12804 ac_cv_search_log2=$ac_res
12805 fi
12806 rm -f core conftest.err conftest.$ac_objext \
12807 conftest$ac_exeext
12808 if ${ac_cv_search_log2+:} false; then :
12809 break
12810 fi
12811 done
12812 if ${ac_cv_search_log2+:} false; then :
12813
12814 else
12815 ac_cv_search_log2=no
12816 fi
12817 rm conftest.$ac_ext
12818 LIBS=$ac_func_search_save_LIBS
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log2" >&5
12821 $as_echo "$ac_cv_search_log2" >&6; }
12822 ac_res=$ac_cv_search_log2
12823 if test "$ac_res" != no; then :
12824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12825
12826 fi
12827
12828
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12830 $as_echo_n "checking for library containing dlopen... " >&6; }
12831 if ${ac_cv_search_dlopen+:} false; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 ac_func_search_save_LIBS=$LIBS
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837
12838 /* Override any GCC internal prototype to avoid an error.
12839 Use char because int might match the return type of a GCC
12840 builtin and then its argument prototype would still apply. */
12841 #ifdef __cplusplus
12842 extern "C"
12843 #endif
12844 char dlopen ();
12845 int
12846 main ()
12847 {
12848 return dlopen ();
12849 ;
12850 return 0;
12851 }
12852 _ACEOF
12853 for ac_lib in '' dl; do
12854 if test -z "$ac_lib"; then
12855 ac_res="none required"
12856 else
12857 ac_res=-l$ac_lib
12858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12859 fi
12860 if ac_fn_c_try_link "$LINENO"; then :
12861 ac_cv_search_dlopen=$ac_res
12862 fi
12863 rm -f core conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext
12865 if ${ac_cv_search_dlopen+:} false; then :
12866 break
12867 fi
12868 done
12869 if ${ac_cv_search_dlopen+:} false; then :
12870
12871 else
12872 ac_cv_search_dlopen=no
12873 fi
12874 rm conftest.$ac_ext
12875 LIBS=$ac_func_search_save_LIBS
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12878 $as_echo "$ac_cv_search_dlopen" >&6; }
12879 ac_res=$ac_cv_search_dlopen
12880 if test "$ac_res" != no; then :
12881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12882
12883 fi
12884
12885 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
12886
12887 pkg_failed=no
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
12889 $as_echo_n "checking for sdl2... " >&6; }
12890
12891 if test -n "$SDL_CFLAGS"; then
12892 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12893 elif test -n "$PKG_CONFIG"; then
12894 if test -n "$PKG_CONFIG" && \
12895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12896 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12897 ac_status=$?
12898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12899 test $ac_status = 0; }; then
12900 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
12901 test "x$?" != "x0" && pkg_failed=yes
12902 else
12903 pkg_failed=yes
12904 fi
12905 else
12906 pkg_failed=untried
12907 fi
12908 if test -n "$SDL_LIBS"; then
12909 pkg_cv_SDL_LIBS="$SDL_LIBS"
12910 elif test -n "$PKG_CONFIG"; then
12911 if test -n "$PKG_CONFIG" && \
12912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
12913 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
12914 ac_status=$?
12915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12916 test $ac_status = 0; }; then
12917 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
12918 test "x$?" != "x0" && pkg_failed=yes
12919 else
12920 pkg_failed=yes
12921 fi
12922 else
12923 pkg_failed=untried
12924 fi
12925
12926 if test $pkg_failed = no; then
12927 pkg_save_LDFLAGS="$LDFLAGS"
12928 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931
12932 int
12933 main ()
12934 {
12935
12936 ;
12937 return 0;
12938 }
12939 _ACEOF
12940 if ac_fn_c_try_link "$LINENO"; then :
12941
12942 else
12943 pkg_failed=yes
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext conftest.$ac_ext
12947 LDFLAGS=$pkg_save_LDFLAGS
12948 fi
12949
12950
12951
12952 if test $pkg_failed = yes; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12955
12956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12957 _pkg_short_errors_supported=yes
12958 else
12959 _pkg_short_errors_supported=no
12960 fi
12961 if test $_pkg_short_errors_supported = yes; then
12962 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
12963 else
12964 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
12965 fi
12966 # Put the nasty error message in config.log where it belongs
12967 echo "$SDL_PKG_ERRORS" >&5
12968
12969
12970
12971 pkg_failed=no
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12973 $as_echo_n "checking for sdl... " >&6; }
12974
12975 if test -n "$SDL_CFLAGS"; then
12976 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12977 elif test -n "$PKG_CONFIG"; then
12978 if test -n "$PKG_CONFIG" && \
12979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12980 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12981 ac_status=$?
12982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12983 test $ac_status = 0; }; then
12984 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12985 test "x$?" != "x0" && pkg_failed=yes
12986 else
12987 pkg_failed=yes
12988 fi
12989 else
12990 pkg_failed=untried
12991 fi
12992 if test -n "$SDL_LIBS"; then
12993 pkg_cv_SDL_LIBS="$SDL_LIBS"
12994 elif test -n "$PKG_CONFIG"; then
12995 if test -n "$PKG_CONFIG" && \
12996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12997 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12998 ac_status=$?
12999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13000 test $ac_status = 0; }; then
13001 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13002 test "x$?" != "x0" && pkg_failed=yes
13003 else
13004 pkg_failed=yes
13005 fi
13006 else
13007 pkg_failed=untried
13008 fi
13009
13010 if test $pkg_failed = no; then
13011 pkg_save_LDFLAGS="$LDFLAGS"
13012 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015
13016 int
13017 main ()
13018 {
13019
13020 ;
13021 return 0;
13022 }
13023 _ACEOF
13024 if ac_fn_c_try_link "$LINENO"; then :
13025
13026 else
13027 pkg_failed=yes
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 LDFLAGS=$pkg_save_LDFLAGS
13032 fi
13033
13034
13035
13036 if test $pkg_failed = yes; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13039
13040 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13041 _pkg_short_errors_supported=yes
13042 else
13043 _pkg_short_errors_supported=no
13044 fi
13045 if test $_pkg_short_errors_supported = yes; then
13046 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13047 else
13048 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13049 fi
13050 # Put the nasty error message in config.log where it belongs
13051 echo "$SDL_PKG_ERRORS" >&5
13052
13053 :
13054 elif test $pkg_failed = untried; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 $as_echo "no" >&6; }
13057 :
13058 else
13059 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13060 SDL_LIBS=$pkg_cv_SDL_LIBS
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13064
13065 fi
13066
13067 elif test $pkg_failed = untried; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070
13071
13072 pkg_failed=no
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13074 $as_echo_n "checking for sdl... " >&6; }
13075
13076 if test -n "$SDL_CFLAGS"; then
13077 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13078 elif test -n "$PKG_CONFIG"; then
13079 if test -n "$PKG_CONFIG" && \
13080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13081 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13082 ac_status=$?
13083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13084 test $ac_status = 0; }; then
13085 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13086 test "x$?" != "x0" && pkg_failed=yes
13087 else
13088 pkg_failed=yes
13089 fi
13090 else
13091 pkg_failed=untried
13092 fi
13093 if test -n "$SDL_LIBS"; then
13094 pkg_cv_SDL_LIBS="$SDL_LIBS"
13095 elif test -n "$PKG_CONFIG"; then
13096 if test -n "$PKG_CONFIG" && \
13097 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13098 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13099 ac_status=$?
13100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13101 test $ac_status = 0; }; then
13102 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13103 test "x$?" != "x0" && pkg_failed=yes
13104 else
13105 pkg_failed=yes
13106 fi
13107 else
13108 pkg_failed=untried
13109 fi
13110
13111 if test $pkg_failed = no; then
13112 pkg_save_LDFLAGS="$LDFLAGS"
13113 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13116
13117 int
13118 main ()
13119 {
13120
13121 ;
13122 return 0;
13123 }
13124 _ACEOF
13125 if ac_fn_c_try_link "$LINENO"; then :
13126
13127 else
13128 pkg_failed=yes
13129 fi
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 LDFLAGS=$pkg_save_LDFLAGS
13133 fi
13134
13135
13136
13137 if test $pkg_failed = yes; then
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13139 $as_echo "no" >&6; }
13140
13141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13142 _pkg_short_errors_supported=yes
13143 else
13144 _pkg_short_errors_supported=no
13145 fi
13146 if test $_pkg_short_errors_supported = yes; then
13147 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13148 else
13149 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13150 fi
13151 # Put the nasty error message in config.log where it belongs
13152 echo "$SDL_PKG_ERRORS" >&5
13153
13154 :
13155 elif test $pkg_failed = untried; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13158 :
13159 else
13160 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13161 SDL_LIBS=$pkg_cv_SDL_LIBS
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13163 $as_echo "yes" >&6; }
13164 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13165
13166 fi
13167
13168 else
13169 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13170 SDL_LIBS=$pkg_cv_SDL_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13172 $as_echo "yes" >&6; }
13173 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13174
13175 fi
13176 if test -n "$SDL_CFLAGS"; then :
13177 if test "$ac_cv_search_dlopen" = no; then :
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
13179 $as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
13180
13181 fi
13182
13183 fi
13184 else
13185 SDL_CFLAGS=
13186 fi
13187 SDL_LIBS=
13188
13189
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13191 $as_echo_n "checking for cygwin... " >&6; }
13192 if ${sim_cv_os_cygwin+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197
13198 #ifdef __CYGWIN__
13199 lose
13200 #endif
13201 _ACEOF
13202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13203 $EGREP "lose" >/dev/null 2>&1; then :
13204 sim_cv_os_cygwin=yes
13205 else
13206 sim_cv_os_cygwin=no
13207 fi
13208 rm -f conftest*
13209
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13212 $as_echo "$sim_cv_os_cygwin" >&6; }
13213
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13215 $as_echo_n "checking for library containing tgetent... " >&6; }
13216 if ${ac_cv_search_tgetent+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 ac_func_search_save_LIBS=$LIBS
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13226 #ifdef __cplusplus
13227 extern "C"
13228 #endif
13229 char tgetent ();
13230 int
13231 main ()
13232 {
13233 return tgetent ();
13234 ;
13235 return 0;
13236 }
13237 _ACEOF
13238 for ac_lib in '' termcap tinfo curses ncurses; do
13239 if test -z "$ac_lib"; then
13240 ac_res="none required"
13241 else
13242 ac_res=-l$ac_lib
13243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13244 fi
13245 if ac_fn_c_try_link "$LINENO"; then :
13246 ac_cv_search_tgetent=$ac_res
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext
13250 if ${ac_cv_search_tgetent+:} false; then :
13251 break
13252 fi
13253 done
13254 if ${ac_cv_search_tgetent+:} false; then :
13255
13256 else
13257 ac_cv_search_tgetent=no
13258 fi
13259 rm conftest.$ac_ext
13260 LIBS=$ac_func_search_save_LIBS
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13263 $as_echo "$ac_cv_search_tgetent" >&6; }
13264 ac_res=$ac_cv_search_tgetent
13265 if test "$ac_res" != no; then :
13266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13267 TERMCAP_LIB=$ac_cv_search_tgetent
13268 else
13269 TERMCAP_LIB=""
13270 fi
13271
13272 if test x$sim_cv_os_cygwin = xyes; then
13273 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13274 fi
13275
13276
13277 if test -r ../readline/Makefile; then
13278 READLINE_LIB=../readline/readline/libreadline.a
13279 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13282 $as_echo_n "checking for readline in -lreadline... " >&6; }
13283 if ${ac_cv_lib_readline_readline+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char readline ();
13298 int
13299 main ()
13300 {
13301 return readline ();
13302 ;
13303 return 0;
13304 }
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 ac_cv_lib_readline_readline=yes
13308 else
13309 ac_cv_lib_readline_readline=no
13310 fi
13311 rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13316 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13317 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13318 READLINE_LIB=-lreadline
13319 else
13320 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13321 fi
13322
13323 READLINE_CFLAGS=
13324 fi
13325
13326
13327
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13329 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13330 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335 #include <unistd.h>
13336 int
13337 main ()
13338 {
13339 extern int getopt (int, char *const*, const char *);
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_c_try_compile "$LINENO"; then :
13345 sim_cv_decl_getopt_unistd_h=yes
13346 else
13347 sim_cv_decl_getopt_unistd_h=no
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 fi
13351
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13353 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13354 if test $sim_cv_decl_getopt_unistd_h = yes; then
13355
13356 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13357
13358 fi
13359
13360
13361
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13363 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13364 # Check whether --enable-maintainer-mode was given.
13365 if test "${enable_maintainer_mode+set}" = set; then :
13366 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13367 else
13368 USE_MAINTAINER_MODE=no
13369 fi
13370
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13372 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13373 if test $USE_MAINTAINER_MODE = yes; then
13374 MAINTAINER_MODE_TRUE=
13375 MAINTAINER_MODE_FALSE='#'
13376 else
13377 MAINTAINER_MODE_TRUE='#'
13378 MAINTAINER_MODE_FALSE=
13379 fi
13380
13381 MAINT=$MAINTAINER_MODE_TRUE
13382
13383
13384 am__api_version='1.15'
13385
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13387 $as_echo_n "checking whether build environment is sane... " >&6; }
13388 # Reject unsafe characters in $srcdir or the absolute working directory
13389 # name. Accept space and tab only in the latter.
13390 am_lf='
13391 '
13392 case `pwd` in
13393 *[\\\"\#\$\&\'\`$am_lf]*)
13394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13395 esac
13396 case $srcdir in
13397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13398 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13399 esac
13400
13401 # Do 'set' in a subshell so we don't clobber the current shell's
13402 # arguments. Must try -L first in case configure is actually a
13403 # symlink; some systems play weird games with the mod time of symlinks
13404 # (eg FreeBSD returns the mod time of the symlink's containing
13405 # directory).
13406 if (
13407 am_has_slept=no
13408 for am_try in 1 2; do
13409 echo "timestamp, slept: $am_has_slept" > conftest.file
13410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13411 if test "$*" = "X"; then
13412 # -L didn't work.
13413 set X `ls -t "$srcdir/configure" conftest.file`
13414 fi
13415 if test "$*" != "X $srcdir/configure conftest.file" \
13416 && test "$*" != "X conftest.file $srcdir/configure"; then
13417
13418 # If neither matched, then we have a broken ls. This can happen
13419 # if, for instance, CONFIG_SHELL is bash and it inherits a
13420 # broken ls alias from the environment. This has actually
13421 # happened. Such a system could not be considered "sane".
13422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13423 alias in your environment" "$LINENO" 5
13424 fi
13425 if test "$2" = conftest.file || test $am_try -eq 2; then
13426 break
13427 fi
13428 # Just in case.
13429 sleep 1
13430 am_has_slept=yes
13431 done
13432 test "$2" = conftest.file
13433 )
13434 then
13435 # Ok.
13436 :
13437 else
13438 as_fn_error $? "newly created file is older than distributed files!
13439 Check your system clock" "$LINENO" 5
13440 fi
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442 $as_echo "yes" >&6; }
13443 # If we didn't sleep, we still need to ensure time stamps of config.status and
13444 # generated files are strictly newer.
13445 am_sleep_pid=
13446 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13447 ( sleep 1 ) &
13448 am_sleep_pid=$!
13449 fi
13450
13451 rm -f conftest.file
13452
13453 if test x"${MISSING+set}" != xset; then
13454 case $am_aux_dir in
13455 *\ * | *\ *)
13456 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13457 *)
13458 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13459 esac
13460 fi
13461 # Use eval to expand $SHELL
13462 if eval "$MISSING --is-lightweight"; then
13463 am_missing_run="$MISSING "
13464 else
13465 am_missing_run=
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13467 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13468 fi
13469
13470 if test x"${install_sh+set}" != xset; then
13471 case $am_aux_dir in
13472 *\ * | *\ *)
13473 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13474 *)
13475 install_sh="\${SHELL} $am_aux_dir/install-sh"
13476 esac
13477 fi
13478
13479 # Installed binaries are usually stripped using 'strip' when the user
13480 # run "make install-strip". However 'strip' might not be the right
13481 # tool to use in cross-compilation environments, therefore Automake
13482 # will honor the 'STRIP' environment variable to overrule this program.
13483 if test "$cross_compiling" != no; then
13484 if test -n "$ac_tool_prefix"; then
13485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13486 set dummy ${ac_tool_prefix}strip; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488 $as_echo_n "checking for $ac_word... " >&6; }
13489 if ${ac_cv_prog_STRIP+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 if test -n "$STRIP"; then
13493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13494 else
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13497 do
13498 IFS=$as_save_IFS
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504 break 2
13505 fi
13506 done
13507 done
13508 IFS=$as_save_IFS
13509
13510 fi
13511 fi
13512 STRIP=$ac_cv_prog_STRIP
13513 if test -n "$STRIP"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13515 $as_echo "$STRIP" >&6; }
13516 else
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518 $as_echo "no" >&6; }
13519 fi
13520
13521
13522 fi
13523 if test -z "$ac_cv_prog_STRIP"; then
13524 ac_ct_STRIP=$STRIP
13525 # Extract the first word of "strip", so it can be a program name with args.
13526 set dummy strip; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 if test -n "$ac_ct_STRIP"; then
13533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13534 else
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13537 do
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542 ac_cv_prog_ac_ct_STRIP="strip"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13545 fi
13546 done
13547 done
13548 IFS=$as_save_IFS
13549
13550 fi
13551 fi
13552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13553 if test -n "$ac_ct_STRIP"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13555 $as_echo "$ac_ct_STRIP" >&6; }
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13559 fi
13560
13561 if test "x$ac_ct_STRIP" = x; then
13562 STRIP=":"
13563 else
13564 case $cross_compiling:$ac_tool_warned in
13565 yes:)
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13568 ac_tool_warned=yes ;;
13569 esac
13570 STRIP=$ac_ct_STRIP
13571 fi
13572 else
13573 STRIP="$ac_cv_prog_STRIP"
13574 fi
13575
13576 fi
13577 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13580 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13581 if test -z "$MKDIR_P"; then
13582 if ${ac_cv_path_mkdir+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13587 do
13588 IFS=$as_save_IFS
13589 test -z "$as_dir" && as_dir=.
13590 for ac_prog in mkdir gmkdir; do
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13593 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13594 'mkdir (GNU coreutils) '* | \
13595 'mkdir (coreutils) '* | \
13596 'mkdir (fileutils) '4.1*)
13597 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13598 break 3;;
13599 esac
13600 done
13601 done
13602 done
13603 IFS=$as_save_IFS
13604
13605 fi
13606
13607 test -d ./--version && rmdir ./--version
13608 if test "${ac_cv_path_mkdir+set}" = set; then
13609 MKDIR_P="$ac_cv_path_mkdir -p"
13610 else
13611 # As a last resort, use the slow shell script. Don't cache a
13612 # value for MKDIR_P within a source directory, because that will
13613 # break other packages using the cache if that directory is
13614 # removed, or if the value is a relative name.
13615 MKDIR_P="$ac_install_sh -d"
13616 fi
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13619 $as_echo "$MKDIR_P" >&6; }
13620
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13622 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13623 set x ${MAKE-make}
13624 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13625 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 cat >conftest.make <<\_ACEOF
13629 SHELL = /bin/sh
13630 all:
13631 @echo '@@@%%%=$(MAKE)=@@@%%%'
13632 _ACEOF
13633 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13634 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13635 *@@@%%%=?*=@@@%%%*)
13636 eval ac_cv_prog_make_${ac_make}_set=yes;;
13637 *)
13638 eval ac_cv_prog_make_${ac_make}_set=no;;
13639 esac
13640 rm -f conftest.make
13641 fi
13642 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13644 $as_echo "yes" >&6; }
13645 SET_MAKE=
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13649 SET_MAKE="MAKE=${MAKE-make}"
13650 fi
13651
13652 rm -rf .tst 2>/dev/null
13653 mkdir .tst 2>/dev/null
13654 if test -d .tst; then
13655 am__leading_dot=.
13656 else
13657 am__leading_dot=_
13658 fi
13659 rmdir .tst 2>/dev/null
13660
13661 DEPDIR="${am__leading_dot}deps"
13662
13663 ac_config_commands="$ac_config_commands depfiles"
13664
13665
13666 am_make=${MAKE-make}
13667 cat > confinc << 'END'
13668 am__doit:
13669 @echo this is the am__doit target
13670 .PHONY: am__doit
13671 END
13672 # If we don't find an include directive, just comment out the code.
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13674 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13675 am__include="#"
13676 am__quote=
13677 _am_result=none
13678 # First try GNU make style include.
13679 echo "include confinc" > confmf
13680 # Ignore all kinds of additional output from 'make'.
13681 case `$am_make -s -f confmf 2> /dev/null` in #(
13682 *the\ am__doit\ target*)
13683 am__include=include
13684 am__quote=
13685 _am_result=GNU
13686 ;;
13687 esac
13688 # Now try BSD make style include.
13689 if test "$am__include" = "#"; then
13690 echo '.include "confinc"' > confmf
13691 case `$am_make -s -f confmf 2> /dev/null` in #(
13692 *the\ am__doit\ target*)
13693 am__include=.include
13694 am__quote="\""
13695 _am_result=BSD
13696 ;;
13697 esac
13698 fi
13699
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13702 $as_echo "$_am_result" >&6; }
13703 rm -f confinc confmf
13704
13705 # Check whether --enable-dependency-tracking was given.
13706 if test "${enable_dependency_tracking+set}" = set; then :
13707 enableval=$enable_dependency_tracking;
13708 fi
13709
13710 if test "x$enable_dependency_tracking" != xno; then
13711 am_depcomp="$ac_aux_dir/depcomp"
13712 AMDEPBACKSLASH='\'
13713 am__nodep='_no'
13714 fi
13715 if test "x$enable_dependency_tracking" != xno; then
13716 AMDEP_TRUE=
13717 AMDEP_FALSE='#'
13718 else
13719 AMDEP_TRUE='#'
13720 AMDEP_FALSE=
13721 fi
13722
13723
13724 # Check whether --enable-silent-rules was given.
13725 if test "${enable_silent_rules+set}" = set; then :
13726 enableval=$enable_silent_rules;
13727 fi
13728
13729 case $enable_silent_rules in # (((
13730 yes) AM_DEFAULT_VERBOSITY=0;;
13731 no) AM_DEFAULT_VERBOSITY=1;;
13732 *) AM_DEFAULT_VERBOSITY=1;;
13733 esac
13734 am_make=${MAKE-make}
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13736 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13737 if ${am_cv_make_support_nested_variables+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 if $as_echo 'TRUE=$(BAR$(V))
13741 BAR0=false
13742 BAR1=true
13743 V=1
13744 am__doit:
13745 @$(TRUE)
13746 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13747 am_cv_make_support_nested_variables=yes
13748 else
13749 am_cv_make_support_nested_variables=no
13750 fi
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13753 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13754 if test $am_cv_make_support_nested_variables = yes; then
13755 AM_V='$(V)'
13756 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13757 else
13758 AM_V=$AM_DEFAULT_VERBOSITY
13759 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13760 fi
13761 AM_BACKSLASH='\'
13762
13763 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13764 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13765 # is not polluted with repeated "-I."
13766 am__isrc=' -I$(srcdir)'
13767 # test to see if srcdir already configured
13768 if test -f $srcdir/config.status; then
13769 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13770 fi
13771 fi
13772
13773 # test whether we have cygpath
13774 if test -z "$CYGPATH_W"; then
13775 if (cygpath --version) >/dev/null 2>/dev/null; then
13776 CYGPATH_W='cygpath -w'
13777 else
13778 CYGPATH_W=echo
13779 fi
13780 fi
13781
13782
13783 # Define the identity of the package.
13784 PACKAGE='sim'
13785 VERSION='0'
13786
13787
13788 cat >>confdefs.h <<_ACEOF
13789 #define PACKAGE "$PACKAGE"
13790 _ACEOF
13791
13792
13793 cat >>confdefs.h <<_ACEOF
13794 #define VERSION "$VERSION"
13795 _ACEOF
13796
13797 # Some tools Automake needs.
13798
13799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13800
13801
13802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13803
13804
13805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13806
13807
13808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13809
13810
13811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13812
13813 # For better backward compatibility. To be removed once Automake 1.9.x
13814 # dies out for good. For more background, see:
13815 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13816 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13817 mkdir_p='$(MKDIR_P)'
13818
13819 # We need awk for the "check" target (and possibly the TAP driver). The
13820 # system "awk" is bad on some platforms.
13821 # Always define AMTAR for backward compatibility. Yes, it's still used
13822 # in the wild :-( We should find a proper way to deprecate it ...
13823 AMTAR='$${TAR-tar}'
13824
13825
13826 # We'll loop over all known methods to create a tar archive until one works.
13827 _am_tools='gnutar pax cpio none'
13828
13829 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13830
13831
13832
13833
13834
13835 depcc="$CC" am_compiler_list=
13836
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13838 $as_echo_n "checking dependency style of $depcc... " >&6; }
13839 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13843 # We make a subdir and do the tests there. Otherwise we can end up
13844 # making bogus files that we don't know about and never remove. For
13845 # instance it was reported that on HP-UX the gcc test will end up
13846 # making a dummy file named 'D' -- because '-MD' means "put the output
13847 # in D".
13848 rm -rf conftest.dir
13849 mkdir conftest.dir
13850 # Copy depcomp to subdir because otherwise we won't find it if we're
13851 # using a relative directory.
13852 cp "$am_depcomp" conftest.dir
13853 cd conftest.dir
13854 # We will build objects and dependencies in a subdirectory because
13855 # it helps to detect inapplicable dependency modes. For instance
13856 # both Tru64's cc and ICC support -MD to output dependencies as a
13857 # side effect of compilation, but ICC will put the dependencies in
13858 # the current directory while Tru64 will put them in the object
13859 # directory.
13860 mkdir sub
13861
13862 am_cv_CC_dependencies_compiler_type=none
13863 if test "$am_compiler_list" = ""; then
13864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13865 fi
13866 am__universal=false
13867 case " $depcc " in #(
13868 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13869 esac
13870
13871 for depmode in $am_compiler_list; do
13872 # Setup a source with many dependencies, because some compilers
13873 # like to wrap large dependency lists on column 80 (with \), and
13874 # we should not choose a depcomp mode which is confused by this.
13875 #
13876 # We need to recreate these files for each test, as the compiler may
13877 # overwrite some of them when testing with obscure command lines.
13878 # This happens at least with the AIX C compiler.
13879 : > sub/conftest.c
13880 for i in 1 2 3 4 5 6; do
13881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13883 # Solaris 10 /bin/sh.
13884 echo '/* dummy */' > sub/conftst$i.h
13885 done
13886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13887
13888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13889 # mode. It turns out that the SunPro C++ compiler does not properly
13890 # handle '-M -o', and we need to detect this. Also, some Intel
13891 # versions had trouble with output in subdirs.
13892 am__obj=sub/conftest.${OBJEXT-o}
13893 am__minus_obj="-o $am__obj"
13894 case $depmode in
13895 gcc)
13896 # This depmode causes a compiler race in universal mode.
13897 test "$am__universal" = false || continue
13898 ;;
13899 nosideeffect)
13900 # After this tag, mechanisms are not by side-effect, so they'll
13901 # only be used when explicitly requested.
13902 if test "x$enable_dependency_tracking" = xyes; then
13903 continue
13904 else
13905 break
13906 fi
13907 ;;
13908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13909 # This compiler won't grok '-c -o', but also, the minuso test has
13910 # not run yet. These depmodes are late enough in the game, and
13911 # so weak that their functioning should not be impacted.
13912 am__obj=conftest.${OBJEXT-o}
13913 am__minus_obj=
13914 ;;
13915 none) break ;;
13916 esac
13917 if depmode=$depmode \
13918 source=sub/conftest.c object=$am__obj \
13919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13921 >/dev/null 2>conftest.err &&
13922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13926 # icc doesn't choke on unknown options, it will just issue warnings
13927 # or remarks (even with -Werror). So we grep stderr for any message
13928 # that says an option was ignored or not supported.
13929 # When given -MP, icc 7.0 and 7.1 complain thusly:
13930 # icc: Command line warning: ignoring option '-M'; no argument required
13931 # The diagnosis changed in icc 8.0:
13932 # icc: Command line remark: option '-MP' not supported
13933 if (grep 'ignoring option' conftest.err ||
13934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13935 am_cv_CC_dependencies_compiler_type=$depmode
13936 break
13937 fi
13938 fi
13939 done
13940
13941 cd ..
13942 rm -rf conftest.dir
13943 else
13944 am_cv_CC_dependencies_compiler_type=none
13945 fi
13946
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13949 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13950 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13951
13952 if
13953 test "x$enable_dependency_tracking" != xno \
13954 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13955 am__fastdepCC_TRUE=
13956 am__fastdepCC_FALSE='#'
13957 else
13958 am__fastdepCC_TRUE='#'
13959 am__fastdepCC_FALSE=
13960 fi
13961
13962
13963
13964 # POSIX will say in a future version that running "rm -f" with no argument
13965 # is OK; and we want to be able to make that assumption in our Makefile
13966 # recipes. So use an aggressive probe to check that the usage we want is
13967 # actually supported "in the wild" to an acceptable degree.
13968 # See automake bug#10828.
13969 # To make any issue more visible, cause the running configure to be aborted
13970 # by default if the 'rm' program in use doesn't match our expectations; the
13971 # user can still override this though.
13972 if rm -f && rm -fr && rm -rf; then : OK; else
13973 cat >&2 <<'END'
13974 Oops!
13975
13976 Your 'rm' program seems unable to run without file operands specified
13977 on the command line, even when the '-f' option is present. This is contrary
13978 to the behaviour of most rm programs out there, and not conforming with
13979 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13980
13981 Please tell bug-automake@gnu.org about your system, including the value
13982 of your $PATH and any error possibly output before this message. This
13983 can help us improve future automake versions.
13984
13985 END
13986 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13987 echo 'Configuration will proceed anyway, since you have set the' >&2
13988 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13989 echo >&2
13990 else
13991 cat >&2 <<'END'
13992 Aborting the configuration process, to ensure you take notice of the issue.
13993
13994 You can download and install GNU coreutils to get an 'rm' implementation
13995 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13996
13997 If you want to complete the configuration process using your problematic
13998 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13999 to "yes", and re-run configure.
14000
14001 END
14002 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14003 fi
14004 fi
14005
14006 # Check whether --enable-silent-rules was given.
14007 if test "${enable_silent_rules+set}" = set; then :
14008 enableval=$enable_silent_rules;
14009 fi
14010
14011 case $enable_silent_rules in # (((
14012 yes) AM_DEFAULT_VERBOSITY=0;;
14013 no) AM_DEFAULT_VERBOSITY=1;;
14014 *) AM_DEFAULT_VERBOSITY=0;;
14015 esac
14016 am_make=${MAKE-make}
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14018 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14019 if ${am_cv_make_support_nested_variables+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 if $as_echo 'TRUE=$(BAR$(V))
14023 BAR0=false
14024 BAR1=true
14025 V=1
14026 am__doit:
14027 @$(TRUE)
14028 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14029 am_cv_make_support_nested_variables=yes
14030 else
14031 am_cv_make_support_nested_variables=no
14032 fi
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14035 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14036 if test $am_cv_make_support_nested_variables = yes; then
14037 AM_V='$(V)'
14038 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14039 else
14040 AM_V=$AM_DEFAULT_VERBOSITY
14041 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14042 fi
14043 AM_BACKSLASH='\'
14044
14045
14046 # If a cpu ever has more than one simulator to choose from, use
14047 # --enable-sim=... to choose.
14048 # Check whether --enable-sim was given.
14049 if test "${enable_sim+set}" = set; then :
14050 enableval=$enable_sim; case "${enableval}" in
14051 yes | no) ;;
14052 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14053 esac
14054 fi
14055
14056
14057 # Check whether --enable-example-sims was given.
14058 if test "${enable_example_sims+set}" = set; then :
14059 enableval=$enable_example_sims;
14060 fi
14061
14062
14063 # Check whether --enable-targets was given.
14064 if test "${enable_targets+set}" = set; then :
14065 enableval=$enable_targets; case "${enableval}" in
14066 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14067 ;;
14068 no) enable_targets= ;;
14069 *) enable_targets=$enableval ;;
14070 esac
14071 fi
14072
14073
14074 SIM_PRIMARY_TARGET=
14075
14076
14077 SIM_ENABLED_ARCHES=
14078
14079
14080 ENABLE_SIM=no
14081
14082
14083
14084 if test "${enable_sim}" != no; then
14085 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14086 do
14087 sim_enable_arch_aarch64=false
14088 case "${targ}" in
14089 all|aarch64*-*-*)
14090 if test "${targ}" = "${target}"; then
14091 SIM_PRIMARY_TARGET=aarch64
14092 fi
14093 ENABLE_SIM=yes
14094 as_fn_append SIM_ENABLED_ARCHES " aarch64"
14095
14096 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14097
14098
14099 sim_enable_arch_aarch64=true
14100 ;;
14101 esac
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14103 $as_echo_n "checking where to find the target cc... " >&6; }
14104 if test "x${build}" != "x${host}" ; then
14105 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14106 # We already found the complete path
14107 ac_dir=`dirname $CC_FOR_TARGET`
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14109 $as_echo "pre-installed in $ac_dir" >&6; }
14110 else
14111 # Canadian cross, just use what we found
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14113 $as_echo "pre-installed" >&6; }
14114 fi
14115 else
14116 ok=yes
14117 case " ${configdirs} " in
14118 *" ${target_alias}-gcc "*) ;;
14119 *) ok=no ;;
14120 esac
14121
14122 if test $ok = yes; then
14123 # An in-tree tool is available and we can use it
14124 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14126 $as_echo "just compiled" >&6; }
14127 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14128 # We already found the complete path
14129 ac_dir=`dirname $CC_FOR_TARGET`
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14131 $as_echo "pre-installed in $ac_dir" >&6; }
14132 elif test "x$target" = "x$host"; then
14133 # We can use an host tool
14134 CC_FOR_TARGET='$(CC)'
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14136 $as_echo "host tool" >&6; }
14137 else
14138 # We need a cross tool
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14140 $as_echo "pre-installed" >&6; }
14141 fi
14142 fi
14143
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14145 $as_echo_n "checking where to find the target as... " >&6; }
14146 if test "x${build}" != "x${host}" ; then
14147 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14148 # We already found the complete path
14149 ac_dir=`dirname $AS_FOR_TARGET`
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14151 $as_echo "pre-installed in $ac_dir" >&6; }
14152 else
14153 # Canadian cross, just use what we found
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14155 $as_echo "pre-installed" >&6; }
14156 fi
14157 else
14158 ok=yes
14159 case " ${configdirs} " in
14160 *" \$(abs_builddir) "*) ;;
14161 *) ok=no ;;
14162 esac
14163
14164 if test $ok = yes; then
14165 # An in-tree tool is available and we can use it
14166 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14168 $as_echo "just compiled" >&6; }
14169 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
14171 ac_dir=`dirname $AS_FOR_TARGET`
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173 $as_echo "pre-installed in $ac_dir" >&6; }
14174 elif test "x$target" = "x$host"; then
14175 # We can use an host tool
14176 AS_FOR_TARGET='$(AS)'
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14178 $as_echo "host tool" >&6; }
14179 else
14180 # We need a cross tool
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182 $as_echo "pre-installed" >&6; }
14183 fi
14184 fi
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14187 $as_echo_n "checking where to find the target ld... " >&6; }
14188 if test "x${build}" != "x${host}" ; then
14189 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14190 # We already found the complete path
14191 ac_dir=`dirname $LD_FOR_TARGET`
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14193 $as_echo "pre-installed in $ac_dir" >&6; }
14194 else
14195 # Canadian cross, just use what we found
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14197 $as_echo "pre-installed" >&6; }
14198 fi
14199 else
14200 ok=yes
14201 case " ${configdirs} " in
14202 *" \$(abs_builddir) "*) ;;
14203 *) ok=no ;;
14204 esac
14205
14206 if test $ok = yes; then
14207 # An in-tree tool is available and we can use it
14208 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14210 $as_echo "just compiled" >&6; }
14211 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14212 # We already found the complete path
14213 ac_dir=`dirname $LD_FOR_TARGET`
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14215 $as_echo "pre-installed in $ac_dir" >&6; }
14216 elif test "x$target" = "x$host"; then
14217 # We can use an host tool
14218 LD_FOR_TARGET='$(LD)'
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14220 $as_echo "host tool" >&6; }
14221 else
14222 # We need a cross tool
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14224 $as_echo "pre-installed" >&6; }
14225 fi
14226 fi
14227
14228
14229
14230
14231
14232
14233 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14234 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14235 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14236 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14237
14238 fi
14239
14240 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14241
14242 if ${sim_enable_arch_aarch64}; then
14243 SIM_ENABLE_ARCH_aarch64_TRUE=
14244 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14245 else
14246 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14247 SIM_ENABLE_ARCH_aarch64_FALSE=
14248 fi
14249
14250
14251 sim_enable_arch_arm=false
14252 case "${targ}" in
14253 all|arm*-*-*)
14254 if test "${targ}" = "${target}"; then
14255 SIM_PRIMARY_TARGET=arm
14256 fi
14257 ENABLE_SIM=yes
14258 as_fn_append SIM_ENABLED_ARCHES " arm"
14259
14260 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14261
14262
14263 sim_enable_arch_arm=true
14264 ;;
14265 esac
14266
14267
14268
14269
14270 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14271 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14272 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14273 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14274
14275 fi
14276
14277 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14278
14279 if ${sim_enable_arch_arm}; then
14280 SIM_ENABLE_ARCH_arm_TRUE=
14281 SIM_ENABLE_ARCH_arm_FALSE='#'
14282 else
14283 SIM_ENABLE_ARCH_arm_TRUE='#'
14284 SIM_ENABLE_ARCH_arm_FALSE=
14285 fi
14286
14287
14288 sim_enable_arch_avr=false
14289 case "${targ}" in
14290 all|avr*-*-*)
14291 if test "${targ}" = "${target}"; then
14292 SIM_PRIMARY_TARGET=avr
14293 fi
14294 ENABLE_SIM=yes
14295 as_fn_append SIM_ENABLED_ARCHES " avr"
14296
14297 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14298
14299
14300 sim_enable_arch_avr=true
14301 ;;
14302 esac
14303
14304
14305
14306
14307 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14308 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14309 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14310 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14311
14312 fi
14313
14314 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14315
14316 if ${sim_enable_arch_avr}; then
14317 SIM_ENABLE_ARCH_avr_TRUE=
14318 SIM_ENABLE_ARCH_avr_FALSE='#'
14319 else
14320 SIM_ENABLE_ARCH_avr_TRUE='#'
14321 SIM_ENABLE_ARCH_avr_FALSE=
14322 fi
14323
14324
14325 sim_enable_arch_bfin=false
14326 case "${targ}" in
14327 all|bfin-*-*)
14328 if test "${targ}" = "${target}"; then
14329 SIM_PRIMARY_TARGET=bfin
14330 fi
14331 ENABLE_SIM=yes
14332 as_fn_append SIM_ENABLED_ARCHES " bfin"
14333
14334 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14335
14336
14337 sim_enable_arch_bfin=true
14338 ;;
14339 esac
14340
14341
14342
14343
14344 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14345 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14346 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14347 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14348
14349 fi
14350
14351 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14352
14353 if ${sim_enable_arch_bfin}; then
14354 SIM_ENABLE_ARCH_bfin_TRUE=
14355 SIM_ENABLE_ARCH_bfin_FALSE='#'
14356 else
14357 SIM_ENABLE_ARCH_bfin_TRUE='#'
14358 SIM_ENABLE_ARCH_bfin_FALSE=
14359 fi
14360
14361
14362 sim_enable_arch_bpf=false
14363 case "${targ}" in
14364 all|bpf-*-*)
14365 if test "${targ}" = "${target}"; then
14366 SIM_PRIMARY_TARGET=bpf
14367 fi
14368 ENABLE_SIM=yes
14369 as_fn_append SIM_ENABLED_ARCHES " bpf"
14370
14371 ac_config_files="$ac_config_files bpf/.gdbinit:common/gdbinit.in"
14372
14373
14374 sim_enable_arch_bpf=true
14375 ;;
14376 esac
14377
14378
14379
14380
14381 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14382 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14383 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14384 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14385
14386 fi
14387
14388 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14389
14390 if ${sim_enable_arch_bpf}; then
14391 SIM_ENABLE_ARCH_bpf_TRUE=
14392 SIM_ENABLE_ARCH_bpf_FALSE='#'
14393 else
14394 SIM_ENABLE_ARCH_bpf_TRUE='#'
14395 SIM_ENABLE_ARCH_bpf_FALSE=
14396 fi
14397
14398
14399 sim_enable_arch_cr16=false
14400 case "${targ}" in
14401 all|cr16*-*-*)
14402 if test "${targ}" = "${target}"; then
14403 SIM_PRIMARY_TARGET=cr16
14404 fi
14405 ENABLE_SIM=yes
14406 as_fn_append SIM_ENABLED_ARCHES " cr16"
14407
14408 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14409
14410
14411 sim_enable_arch_cr16=true
14412 ;;
14413 esac
14414
14415
14416
14417
14418 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14419 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14420 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14421 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14422
14423 fi
14424
14425 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14426
14427 if ${sim_enable_arch_cr16}; then
14428 SIM_ENABLE_ARCH_cr16_TRUE=
14429 SIM_ENABLE_ARCH_cr16_FALSE='#'
14430 else
14431 SIM_ENABLE_ARCH_cr16_TRUE='#'
14432 SIM_ENABLE_ARCH_cr16_FALSE=
14433 fi
14434
14435
14436 sim_enable_arch_cris=false
14437 case "${targ}" in
14438 all|cris-*-* | crisv32-*-*)
14439 if test "${targ}" = "${target}"; then
14440 SIM_PRIMARY_TARGET=cris
14441 fi
14442 ENABLE_SIM=yes
14443 as_fn_append SIM_ENABLED_ARCHES " cris"
14444
14445 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14446
14447
14448 sim_enable_arch_cris=true
14449 ;;
14450 esac
14451
14452
14453
14454
14455 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14456 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14457 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14458 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14459
14460 fi
14461
14462 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14463
14464 if ${sim_enable_arch_cris}; then
14465 SIM_ENABLE_ARCH_cris_TRUE=
14466 SIM_ENABLE_ARCH_cris_FALSE='#'
14467 else
14468 SIM_ENABLE_ARCH_cris_TRUE='#'
14469 SIM_ENABLE_ARCH_cris_FALSE=
14470 fi
14471
14472
14473 sim_enable_arch_d10v=false
14474 case "${targ}" in
14475 all|d10v-*-*)
14476 if test "${targ}" = "${target}"; then
14477 SIM_PRIMARY_TARGET=d10v
14478 fi
14479 ENABLE_SIM=yes
14480 as_fn_append SIM_ENABLED_ARCHES " d10v"
14481
14482 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14483
14484
14485 sim_enable_arch_d10v=true
14486 ;;
14487 esac
14488
14489
14490
14491
14492 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14493 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14494 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14495 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14496
14497 fi
14498
14499 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14500
14501 if ${sim_enable_arch_d10v}; then
14502 SIM_ENABLE_ARCH_d10v_TRUE=
14503 SIM_ENABLE_ARCH_d10v_FALSE='#'
14504 else
14505 SIM_ENABLE_ARCH_d10v_TRUE='#'
14506 SIM_ENABLE_ARCH_d10v_FALSE=
14507 fi
14508
14509
14510 sim_enable_arch_frv=false
14511 case "${targ}" in
14512 all|frv-*-*)
14513 if test "${targ}" = "${target}"; then
14514 SIM_PRIMARY_TARGET=frv
14515 fi
14516 ENABLE_SIM=yes
14517 as_fn_append SIM_ENABLED_ARCHES " frv"
14518
14519 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14520
14521
14522 sim_enable_arch_frv=true
14523 ;;
14524 esac
14525
14526
14527
14528
14529 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
14530 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
14531 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
14532 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
14533
14534 fi
14535
14536 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
14537
14538 if ${sim_enable_arch_frv}; then
14539 SIM_ENABLE_ARCH_frv_TRUE=
14540 SIM_ENABLE_ARCH_frv_FALSE='#'
14541 else
14542 SIM_ENABLE_ARCH_frv_TRUE='#'
14543 SIM_ENABLE_ARCH_frv_FALSE=
14544 fi
14545
14546
14547 sim_enable_arch_ft32=false
14548 case "${targ}" in
14549 all|ft32-*-*)
14550 if test "${targ}" = "${target}"; then
14551 SIM_PRIMARY_TARGET=ft32
14552 fi
14553 ENABLE_SIM=yes
14554 as_fn_append SIM_ENABLED_ARCHES " ft32"
14555
14556 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
14557
14558
14559 sim_enable_arch_ft32=true
14560 ;;
14561 esac
14562
14563
14564
14565
14566 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
14567 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
14568 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
14569 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
14570
14571 fi
14572
14573 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
14574
14575 if ${sim_enable_arch_ft32}; then
14576 SIM_ENABLE_ARCH_ft32_TRUE=
14577 SIM_ENABLE_ARCH_ft32_FALSE='#'
14578 else
14579 SIM_ENABLE_ARCH_ft32_TRUE='#'
14580 SIM_ENABLE_ARCH_ft32_FALSE=
14581 fi
14582
14583
14584 sim_enable_arch_h8300=false
14585 case "${targ}" in
14586 all|h8300*-*-*)
14587 if test "${targ}" = "${target}"; then
14588 SIM_PRIMARY_TARGET=h8300
14589 fi
14590 ENABLE_SIM=yes
14591 as_fn_append SIM_ENABLED_ARCHES " h8300"
14592
14593 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
14594
14595
14596 sim_enable_arch_h8300=true
14597 ;;
14598 esac
14599
14600
14601
14602
14603 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
14604 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
14605 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
14606 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
14607
14608 fi
14609
14610 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
14611
14612 if ${sim_enable_arch_h8300}; then
14613 SIM_ENABLE_ARCH_h8300_TRUE=
14614 SIM_ENABLE_ARCH_h8300_FALSE='#'
14615 else
14616 SIM_ENABLE_ARCH_h8300_TRUE='#'
14617 SIM_ENABLE_ARCH_h8300_FALSE=
14618 fi
14619
14620
14621 sim_enable_arch_iq2000=false
14622 case "${targ}" in
14623 all|iq2000-*-*)
14624 if test "${targ}" = "${target}"; then
14625 SIM_PRIMARY_TARGET=iq2000
14626 fi
14627 ENABLE_SIM=yes
14628 as_fn_append SIM_ENABLED_ARCHES " iq2000"
14629
14630 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
14631
14632
14633 sim_enable_arch_iq2000=true
14634 ;;
14635 esac
14636
14637
14638
14639
14640 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
14641 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
14642 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
14643 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
14644
14645 fi
14646
14647 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
14648
14649 if ${sim_enable_arch_iq2000}; then
14650 SIM_ENABLE_ARCH_iq2000_TRUE=
14651 SIM_ENABLE_ARCH_iq2000_FALSE='#'
14652 else
14653 SIM_ENABLE_ARCH_iq2000_TRUE='#'
14654 SIM_ENABLE_ARCH_iq2000_FALSE=
14655 fi
14656
14657
14658 sim_enable_arch_lm32=false
14659 case "${targ}" in
14660 all|lm32-*-*)
14661 if test "${targ}" = "${target}"; then
14662 SIM_PRIMARY_TARGET=lm32
14663 fi
14664 ENABLE_SIM=yes
14665 as_fn_append SIM_ENABLED_ARCHES " lm32"
14666
14667 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
14668
14669
14670 sim_enable_arch_lm32=true
14671 ;;
14672 esac
14673
14674
14675
14676
14677 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
14678 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
14679 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
14680 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
14681
14682 fi
14683
14684 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
14685
14686 if ${sim_enable_arch_lm32}; then
14687 SIM_ENABLE_ARCH_lm32_TRUE=
14688 SIM_ENABLE_ARCH_lm32_FALSE='#'
14689 else
14690 SIM_ENABLE_ARCH_lm32_TRUE='#'
14691 SIM_ENABLE_ARCH_lm32_FALSE=
14692 fi
14693
14694
14695 sim_enable_arch_m32c=false
14696 case "${targ}" in
14697 all|m32c-*-*)
14698 if test "${targ}" = "${target}"; then
14699 SIM_PRIMARY_TARGET=m32c
14700 fi
14701 ENABLE_SIM=yes
14702 as_fn_append SIM_ENABLED_ARCHES " m32c"
14703
14704 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
14705
14706
14707 sim_enable_arch_m32c=true
14708 ;;
14709 esac
14710
14711
14712
14713
14714 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
14715 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
14716 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
14717 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
14718
14719 fi
14720
14721 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
14722
14723 if ${sim_enable_arch_m32c}; then
14724 SIM_ENABLE_ARCH_m32c_TRUE=
14725 SIM_ENABLE_ARCH_m32c_FALSE='#'
14726 else
14727 SIM_ENABLE_ARCH_m32c_TRUE='#'
14728 SIM_ENABLE_ARCH_m32c_FALSE=
14729 fi
14730
14731
14732 sim_enable_arch_m32r=false
14733 case "${targ}" in
14734 all|m32r-*-*)
14735 if test "${targ}" = "${target}"; then
14736 SIM_PRIMARY_TARGET=m32r
14737 fi
14738 ENABLE_SIM=yes
14739 as_fn_append SIM_ENABLED_ARCHES " m32r"
14740
14741 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
14742
14743
14744 sim_enable_arch_m32r=true
14745 ;;
14746 esac
14747
14748
14749
14750
14751 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
14752 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
14753 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
14754 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
14755
14756 fi
14757
14758 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
14759
14760 if ${sim_enable_arch_m32r}; then
14761 SIM_ENABLE_ARCH_m32r_TRUE=
14762 SIM_ENABLE_ARCH_m32r_FALSE='#'
14763 else
14764 SIM_ENABLE_ARCH_m32r_TRUE='#'
14765 SIM_ENABLE_ARCH_m32r_FALSE=
14766 fi
14767
14768
14769 sim_enable_arch_m68hc11=false
14770 case "${targ}" in
14771 all|m68hc11-*-*|m6811-*-*)
14772 if test "${targ}" = "${target}"; then
14773 SIM_PRIMARY_TARGET=m68hc11
14774 fi
14775 ENABLE_SIM=yes
14776 as_fn_append SIM_ENABLED_ARCHES " m68hc11"
14777
14778 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
14779
14780
14781 sim_enable_arch_m68hc11=true
14782 ;;
14783 esac
14784
14785
14786
14787
14788 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
14789 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
14790 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
14791 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
14792
14793 fi
14794
14795 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
14796
14797 if ${sim_enable_arch_m68hc11}; then
14798 SIM_ENABLE_ARCH_m68hc11_TRUE=
14799 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
14800 else
14801 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
14802 SIM_ENABLE_ARCH_m68hc11_FALSE=
14803 fi
14804
14805
14806 sim_enable_arch_mcore=false
14807 case "${targ}" in
14808 all|mcore-*-*)
14809 if test "${targ}" = "${target}"; then
14810 SIM_PRIMARY_TARGET=mcore
14811 fi
14812 ENABLE_SIM=yes
14813 as_fn_append SIM_ENABLED_ARCHES " mcore"
14814
14815 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
14816
14817
14818 sim_enable_arch_mcore=true
14819 ;;
14820 esac
14821
14822
14823
14824
14825 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
14826 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
14827 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
14828 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
14829
14830 fi
14831
14832 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
14833
14834 if ${sim_enable_arch_mcore}; then
14835 SIM_ENABLE_ARCH_mcore_TRUE=
14836 SIM_ENABLE_ARCH_mcore_FALSE='#'
14837 else
14838 SIM_ENABLE_ARCH_mcore_TRUE='#'
14839 SIM_ENABLE_ARCH_mcore_FALSE=
14840 fi
14841
14842
14843 sim_enable_arch_microblaze=false
14844 case "${targ}" in
14845 all|microblaze*-*-*)
14846 if test "${targ}" = "${target}"; then
14847 SIM_PRIMARY_TARGET=microblaze
14848 fi
14849 ENABLE_SIM=yes
14850 as_fn_append SIM_ENABLED_ARCHES " microblaze"
14851
14852 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
14853
14854
14855 sim_enable_arch_microblaze=true
14856 ;;
14857 esac
14858
14859
14860
14861
14862 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
14863 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
14864 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
14865 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
14866
14867 fi
14868
14869 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
14870
14871 if ${sim_enable_arch_microblaze}; then
14872 SIM_ENABLE_ARCH_microblaze_TRUE=
14873 SIM_ENABLE_ARCH_microblaze_FALSE='#'
14874 else
14875 SIM_ENABLE_ARCH_microblaze_TRUE='#'
14876 SIM_ENABLE_ARCH_microblaze_FALSE=
14877 fi
14878
14879
14880 sim_enable_arch_mips=false
14881 case "${targ}" in
14882 all|mips*-*-*)
14883 if test "${targ}" = "${target}"; then
14884 SIM_PRIMARY_TARGET=mips
14885 fi
14886 ENABLE_SIM=yes
14887 as_fn_append SIM_ENABLED_ARCHES " mips"
14888
14889 ac_config_files="$ac_config_files mips/.gdbinit:common/gdbinit.in"
14890
14891
14892 sim_enable_arch_mips=true
14893 ;;
14894 esac
14895
14896
14897
14898
14899 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
14900 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
14901 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
14902 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
14903
14904 fi
14905
14906 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
14907
14908 if ${sim_enable_arch_mips}; then
14909 SIM_ENABLE_ARCH_mips_TRUE=
14910 SIM_ENABLE_ARCH_mips_FALSE='#'
14911 else
14912 SIM_ENABLE_ARCH_mips_TRUE='#'
14913 SIM_ENABLE_ARCH_mips_FALSE=
14914 fi
14915
14916
14917 sim_enable_arch_mn10300=false
14918 case "${targ}" in
14919 all|mn10300*-*-*)
14920 if test "${targ}" = "${target}"; then
14921 SIM_PRIMARY_TARGET=mn10300
14922 fi
14923 ENABLE_SIM=yes
14924 as_fn_append SIM_ENABLED_ARCHES " mn10300"
14925
14926 ac_config_files="$ac_config_files mn10300/.gdbinit:common/gdbinit.in"
14927
14928
14929 sim_enable_arch_mn10300=true
14930 ;;
14931 esac
14932
14933
14934
14935
14936 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
14937 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
14938 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
14939 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
14940
14941 fi
14942
14943 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
14944
14945 if ${sim_enable_arch_mn10300}; then
14946 SIM_ENABLE_ARCH_mn10300_TRUE=
14947 SIM_ENABLE_ARCH_mn10300_FALSE='#'
14948 else
14949 SIM_ENABLE_ARCH_mn10300_TRUE='#'
14950 SIM_ENABLE_ARCH_mn10300_FALSE=
14951 fi
14952
14953
14954 sim_enable_arch_moxie=false
14955 case "${targ}" in
14956 all|moxie-*-*)
14957 if test "${targ}" = "${target}"; then
14958 SIM_PRIMARY_TARGET=moxie
14959 fi
14960 ENABLE_SIM=yes
14961 as_fn_append SIM_ENABLED_ARCHES " moxie"
14962
14963 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
14964
14965
14966 sim_enable_arch_moxie=true
14967 ;;
14968 esac
14969
14970
14971
14972
14973 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
14974 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
14975 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
14976 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
14977
14978 fi
14979
14980 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
14981
14982 if ${sim_enable_arch_moxie}; then
14983 SIM_ENABLE_ARCH_moxie_TRUE=
14984 SIM_ENABLE_ARCH_moxie_FALSE='#'
14985 else
14986 SIM_ENABLE_ARCH_moxie_TRUE='#'
14987 SIM_ENABLE_ARCH_moxie_FALSE=
14988 fi
14989
14990
14991 sim_enable_arch_msp430=false
14992 case "${targ}" in
14993 all|msp430*-*-*)
14994 if test "${targ}" = "${target}"; then
14995 SIM_PRIMARY_TARGET=msp430
14996 fi
14997 ENABLE_SIM=yes
14998 as_fn_append SIM_ENABLED_ARCHES " msp430"
14999
15000 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15001
15002
15003 sim_enable_arch_msp430=true
15004 ;;
15005 esac
15006
15007
15008
15009
15010 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15011 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15012 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15013 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15014
15015 fi
15016
15017 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15018
15019 if ${sim_enable_arch_msp430}; then
15020 SIM_ENABLE_ARCH_msp430_TRUE=
15021 SIM_ENABLE_ARCH_msp430_FALSE='#'
15022 else
15023 SIM_ENABLE_ARCH_msp430_TRUE='#'
15024 SIM_ENABLE_ARCH_msp430_FALSE=
15025 fi
15026
15027
15028 sim_enable_arch_or1k=false
15029 case "${targ}" in
15030 all|or1k*-*-*)
15031 if test "${targ}" = "${target}"; then
15032 SIM_PRIMARY_TARGET=or1k
15033 fi
15034 ENABLE_SIM=yes
15035 as_fn_append SIM_ENABLED_ARCHES " or1k"
15036
15037 ac_config_files="$ac_config_files or1k/.gdbinit:common/gdbinit.in"
15038
15039
15040 sim_enable_arch_or1k=true
15041 ;;
15042 esac
15043
15044
15045
15046
15047 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15048 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15049 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15050 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15051
15052 fi
15053
15054 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15055
15056 if ${sim_enable_arch_or1k}; then
15057 SIM_ENABLE_ARCH_or1k_TRUE=
15058 SIM_ENABLE_ARCH_or1k_FALSE='#'
15059 else
15060 SIM_ENABLE_ARCH_or1k_TRUE='#'
15061 SIM_ENABLE_ARCH_or1k_FALSE=
15062 fi
15063
15064
15065 sim_enable_arch_ppc=false
15066 case "${targ}" in
15067 all|powerpc*-*-*)
15068 if test "${targ}" = "${target}"; then
15069 SIM_PRIMARY_TARGET=ppc
15070 fi
15071 ENABLE_SIM=yes
15072 as_fn_append SIM_ENABLED_ARCHES " ppc"
15073
15074
15075 subdirs="$subdirs ppc"
15076
15077
15078 ac_config_files="$ac_config_files ppc/.gdbinit:common/gdbinit.in"
15079
15080
15081 sim_enable_arch_ppc=true
15082 ;;
15083 esac
15084
15085
15086
15087
15088 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15089 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15090 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15091 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15092
15093 fi
15094
15095 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15096
15097 if ${sim_enable_arch_ppc}; then
15098 SIM_ENABLE_ARCH_ppc_TRUE=
15099 SIM_ENABLE_ARCH_ppc_FALSE='#'
15100 else
15101 SIM_ENABLE_ARCH_ppc_TRUE='#'
15102 SIM_ENABLE_ARCH_ppc_FALSE=
15103 fi
15104
15105
15106 sim_enable_arch_pru=false
15107 case "${targ}" in
15108 all|pru*-*-*)
15109 if test "${targ}" = "${target}"; then
15110 SIM_PRIMARY_TARGET=pru
15111 fi
15112 ENABLE_SIM=yes
15113 as_fn_append SIM_ENABLED_ARCHES " pru"
15114
15115 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15116
15117
15118 sim_enable_arch_pru=true
15119 ;;
15120 esac
15121
15122
15123
15124
15125 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15126 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15127 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15128 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15129
15130 fi
15131
15132 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15133
15134 if ${sim_enable_arch_pru}; then
15135 SIM_ENABLE_ARCH_pru_TRUE=
15136 SIM_ENABLE_ARCH_pru_FALSE='#'
15137 else
15138 SIM_ENABLE_ARCH_pru_TRUE='#'
15139 SIM_ENABLE_ARCH_pru_FALSE=
15140 fi
15141
15142
15143 sim_enable_arch_riscv=false
15144 case "${targ}" in
15145 all|riscv*-*-*)
15146 if test "${targ}" = "${target}"; then
15147 SIM_PRIMARY_TARGET=riscv
15148 fi
15149 ENABLE_SIM=yes
15150 as_fn_append SIM_ENABLED_ARCHES " riscv"
15151
15152 ac_config_files="$ac_config_files riscv/.gdbinit:common/gdbinit.in"
15153
15154
15155 sim_enable_arch_riscv=true
15156 ;;
15157 esac
15158
15159
15160
15161
15162 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15163 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15164 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15165 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15166
15167 fi
15168
15169 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15170
15171 if ${sim_enable_arch_riscv}; then
15172 SIM_ENABLE_ARCH_riscv_TRUE=
15173 SIM_ENABLE_ARCH_riscv_FALSE='#'
15174 else
15175 SIM_ENABLE_ARCH_riscv_TRUE='#'
15176 SIM_ENABLE_ARCH_riscv_FALSE=
15177 fi
15178
15179
15180 sim_enable_arch_rl78=false
15181 case "${targ}" in
15182 all|rl78-*-*)
15183 if test "${targ}" = "${target}"; then
15184 SIM_PRIMARY_TARGET=rl78
15185 fi
15186 ENABLE_SIM=yes
15187 as_fn_append SIM_ENABLED_ARCHES " rl78"
15188
15189 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15190
15191
15192 sim_enable_arch_rl78=true
15193 ;;
15194 esac
15195
15196
15197
15198
15199 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15200 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15201 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15202 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15203
15204 fi
15205
15206 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15207
15208 if ${sim_enable_arch_rl78}; then
15209 SIM_ENABLE_ARCH_rl78_TRUE=
15210 SIM_ENABLE_ARCH_rl78_FALSE='#'
15211 else
15212 SIM_ENABLE_ARCH_rl78_TRUE='#'
15213 SIM_ENABLE_ARCH_rl78_FALSE=
15214 fi
15215
15216
15217 sim_enable_arch_rx=false
15218 case "${targ}" in
15219 all|rx-*-*)
15220 if test "${targ}" = "${target}"; then
15221 SIM_PRIMARY_TARGET=rx
15222 fi
15223 ENABLE_SIM=yes
15224 as_fn_append SIM_ENABLED_ARCHES " rx"
15225
15226 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15227
15228
15229 sim_enable_arch_rx=true
15230 ;;
15231 esac
15232
15233
15234
15235
15236 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15237 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15238 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15239 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15240
15241 fi
15242
15243 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15244
15245 if ${sim_enable_arch_rx}; then
15246 SIM_ENABLE_ARCH_rx_TRUE=
15247 SIM_ENABLE_ARCH_rx_FALSE='#'
15248 else
15249 SIM_ENABLE_ARCH_rx_TRUE='#'
15250 SIM_ENABLE_ARCH_rx_FALSE=
15251 fi
15252
15253
15254 sim_enable_arch_sh=false
15255 case "${targ}" in
15256 all|sh*-*-*)
15257 if test "${targ}" = "${target}"; then
15258 SIM_PRIMARY_TARGET=sh
15259 fi
15260 ENABLE_SIM=yes
15261 as_fn_append SIM_ENABLED_ARCHES " sh"
15262
15263 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15264
15265
15266 sim_enable_arch_sh=true
15267 ;;
15268 esac
15269
15270
15271
15272
15273 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15274 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15275 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15276 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15277
15278 fi
15279
15280 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15281
15282 if ${sim_enable_arch_sh}; then
15283 SIM_ENABLE_ARCH_sh_TRUE=
15284 SIM_ENABLE_ARCH_sh_FALSE='#'
15285 else
15286 SIM_ENABLE_ARCH_sh_TRUE='#'
15287 SIM_ENABLE_ARCH_sh_FALSE=
15288 fi
15289
15290
15291 sim_enable_arch_erc32=false
15292 case "${targ}" in
15293 all|sparc-*-*)
15294 if test "${targ}" = "${target}"; then
15295 SIM_PRIMARY_TARGET=erc32
15296 fi
15297 ENABLE_SIM=yes
15298 as_fn_append SIM_ENABLED_ARCHES " erc32"
15299
15300 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15301
15302
15303 sim_enable_arch_erc32=true
15304 ;;
15305 esac
15306
15307
15308
15309
15310 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15311 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15312 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15313 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15314
15315 fi
15316
15317 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15318
15319 if ${sim_enable_arch_erc32}; then
15320 SIM_ENABLE_ARCH_erc32_TRUE=
15321 SIM_ENABLE_ARCH_erc32_FALSE='#'
15322 else
15323 SIM_ENABLE_ARCH_erc32_TRUE='#'
15324 SIM_ENABLE_ARCH_erc32_FALSE=
15325 fi
15326
15327
15328 sim_enable_arch_v850=false
15329 case "${targ}" in
15330 all|v850*-*-*)
15331 if test "${targ}" = "${target}"; then
15332 SIM_PRIMARY_TARGET=v850
15333 fi
15334 ENABLE_SIM=yes
15335 as_fn_append SIM_ENABLED_ARCHES " v850"
15336
15337 ac_config_files="$ac_config_files v850/.gdbinit:common/gdbinit.in"
15338
15339
15340 sim_enable_arch_v850=true
15341 ;;
15342 esac
15343
15344
15345
15346
15347 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15348 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15349 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15350 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15351
15352 fi
15353
15354 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15355
15356 if ${sim_enable_arch_v850}; then
15357 SIM_ENABLE_ARCH_v850_TRUE=
15358 SIM_ENABLE_ARCH_v850_FALSE='#'
15359 else
15360 SIM_ENABLE_ARCH_v850_TRUE='#'
15361 SIM_ENABLE_ARCH_v850_FALSE=
15362 fi
15363
15364
15365 done
15366
15367 if test "x${enable_example_sims}" = xyes; then
15368
15369
15370
15371
15372 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15373 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15374 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15375
15376 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15377
15378 ENABLE_SIM=yes
15379 as_fn_append SIM_ENABLED_ARCHES " example-synacor"
15380
15381 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15382
15383
15384 fi
15385 if test "${enable_example_sims}" = "yes"; then
15386 SIM_ENABLE_ARCH_examples_TRUE=
15387 SIM_ENABLE_ARCH_examples_FALSE='#'
15388 else
15389 SIM_ENABLE_ARCH_examples_TRUE='#'
15390 SIM_ENABLE_ARCH_examples_FALSE=
15391 fi
15392
15393 fi
15394 if test "$ENABLE_SIM" = "yes"; then
15395 ENABLE_SIM_TRUE=
15396 ENABLE_SIM_FALSE='#'
15397 else
15398 ENABLE_SIM_TRUE='#'
15399 ENABLE_SIM_FALSE=
15400 fi
15401
15402
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15404 $as_echo_n "checking whether to force sim alignment... " >&6; }
15405 sim_alignment=
15406 # Check whether --enable-sim-alignment was given.
15407 if test "${enable_sim_alignment+set}" = set; then :
15408 enableval=$enable_sim_alignment; case "${enableval}" in
15409 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15410 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15411 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15412 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15413 esac
15414 fi
15415
15416 cat >>confdefs.h <<_ACEOF
15417 #define WITH_ALIGNMENT ${sim_alignment:-0}
15418 _ACEOF
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15421 $as_echo "${sim_alignment:-no}" >&6; }
15422
15423
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
15425 $as_echo_n "checking whether to enable sim asserts... " >&6; }
15426 sim_assert="1"
15427 # Check whether --enable-sim-assert was given.
15428 if test "${enable_sim_assert+set}" = set; then :
15429 enableval=$enable_sim_assert; case "${enableval}" in
15430 yes) sim_assert="1";;
15431 no) sim_assert="0";;
15432 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
15433 esac
15434 fi
15435
15436 cat >>confdefs.h <<_ACEOF
15437 #define WITH_ASSERT $sim_assert
15438 _ACEOF
15439
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
15441 $as_echo "$sim_assert" >&6; }
15442
15443
15444 cgen_maint=no
15445 cgen=guile
15446 cgendir='$(srcdir)/../../cgen'
15447 # Check whether --enable-cgen-maint was given.
15448 if test "${enable_cgen_maint+set}" = set; then :
15449 enableval=$enable_cgen_maint; case "${enableval}" in
15450 yes) cgen_maint=yes ;;
15451 no) cgen_maint=no ;;
15452 *)
15453 # Argument is a directory where cgen can be found. In some
15454 # future world cgen could be installable, but right now this
15455 # is not the case. Instead we assume the directory is a path
15456 # to the cgen source tree.
15457 cgen_maint=yes
15458 if test -r ${enableval}/iformat.scm; then
15459 # This looks like a cgen source tree.
15460 cgendir=${enableval}
15461 else
15462 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
15463 fi
15464 ;;
15465 esac
15466 fi
15467 if test x${cgen_maint} != xno ; then
15468 CGEN_MAINT=''
15469 else
15470 CGEN_MAINT='#'
15471 fi
15472
15473
15474
15475
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
15477 $as_echo_n "checking for sim debug setting... " >&6; }
15478 sim_debug="0"
15479 # Check whether --enable-sim-debug was given.
15480 if test "${enable_sim_debug+set}" = set; then :
15481 enableval=$enable_sim_debug; case "${enableval}" in
15482 yes) sim_debug="7";;
15483 no) sim_debug="0";;
15484 *) sim_debug="($enableval)";;
15485 esac
15486 fi
15487 if test "$sim_debug" != "0"; then
15488
15489 cat >>confdefs.h <<_ACEOF
15490 #define DEBUG $sim_debug
15491 _ACEOF
15492
15493 fi
15494
15495 cat >>confdefs.h <<_ACEOF
15496 #define WITH_DEBUG $sim_debug
15497 _ACEOF
15498
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
15500 $as_echo "$sim_debug" >&6; }
15501
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
15503 $as_echo_n "checking whether to force sim endianness... " >&6; }
15504 sim_endian=
15505 # Check whether --enable-sim-endian was given.
15506 if test "${enable_sim_endian+set}" = set; then :
15507 enableval=$enable_sim_endian; case "${enableval}" in
15508 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
15509 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
15510 yes | no) ;;
15511 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
15512 esac
15513 fi
15514
15515 cat >>confdefs.h <<_ACEOF
15516 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
15517 _ACEOF
15518
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
15520 $as_echo "${sim_alignment:-no}" >&6; }
15521
15522
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
15524 $as_echo_n "checking default sim environment setting... " >&6; }
15525 sim_environment="ALL_ENVIRONMENT"
15526 # Check whether --enable-sim-environment was given.
15527 if test "${enable_sim_environment+set}" = set; then :
15528 enableval=$enable_sim_environment; case "${enableval}" in
15529 all | ALL) sim_environment="ALL_ENVIRONMENT";;
15530 user | USER) sim_environment="USER_ENVIRONMENT";;
15531 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
15532 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
15533 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
15534 esac
15535 fi
15536
15537 cat >>confdefs.h <<_ACEOF
15538 #define WITH_ENVIRONMENT $sim_environment
15539 _ACEOF
15540
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
15542 $as_echo "$sim_environment" >&6; }
15543
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
15545 $as_echo_n "checking for sim hardware settings... " >&6; }
15546 # Check whether --enable-sim-hardware was given.
15547 if test "${enable_sim_hardware+set}" = set; then :
15548 enableval=$enable_sim_hardware;
15549 else
15550 enable_sim_hardware="yes"
15551 fi
15552
15553 sim_hw_sockser=
15554 if test "$enable_sim_hardware" = no; then
15555 sim_hw_cflags="-DWITH_HW=0"
15556 elif test "$enable_sim_hardware" = yes; then
15557 sim_hw_cflags="-DWITH_HW=1"
15558 sim_hw_sockser="dv-sockser.o"
15559 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
15560 else
15561 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
15562 fi
15563 if test "$enable_sim_hardware" = "yes"; then
15564 SIM_ENABLE_HW_TRUE=
15565 SIM_ENABLE_HW_FALSE='#'
15566 else
15567 SIM_ENABLE_HW_TRUE='#'
15568 SIM_ENABLE_HW_FALSE=
15569 fi
15570
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
15572 $as_echo "${enable_sim_hardware}" >&6; }
15573 SIM_HW_CFLAGS=$sim_hw_cflags
15574
15575 SIM_HW_SOCKSER=$sim_hw_sockser
15576
15577
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
15579 $as_echo_n "checking sim inline settings... " >&6; }
15580 sim_inline="-DDEFAULT_INLINE=0"
15581 # Check whether --enable-sim-inline was given.
15582 if test "${enable_sim_inline+set}" = set; then :
15583 enableval=$enable_sim_inline; sim_inline=""
15584 case "$enableval" in
15585 no) sim_inline="-DDEFAULT_INLINE=0";;
15586 0) sim_inline="-DDEFAULT_INLINE=0";;
15587 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
15588 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
15589 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15590 new_flag=""
15591 case "$x" in
15592 *_INLINE=*) new_flag="-D$x";;
15593 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
15594 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
15595 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
15596 esac
15597 if test x"$sim_inline" = x""; then
15598 sim_inline="$new_flag"
15599 else
15600 sim_inline="$sim_inline $new_flag"
15601 fi
15602 done;;
15603 esac
15604
15605 fi
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
15607 $as_echo "$sim_inline" >&6; }
15608 SIM_INLINE=$sim_inline
15609
15610
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
15612 $as_echo_n "checking for sim profile settings... " >&6; }
15613 profile="1"
15614 sim_profile="-1"
15615 # Check whether --enable-sim-profile was given.
15616 if test "${enable_sim_profile+set}" = set; then :
15617 enableval=$enable_sim_profile; case "${enableval}" in
15618 yes) profile="1" sim_profile="-1";;
15619 no) profile="0" sim_profile="0";;
15620 [-0-9]*)
15621 profile="(${enableval})" sim_profile="(${enableval})";;
15622 [a-z]*)
15623 profile="1"
15624 sim_profile=""
15625 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15626 if test x"$sim_profile" = x; then
15627 sim_profile="(PROFILE_$x"
15628 else
15629 sim_profile="${sim_profile}|PROFILE_$x"
15630 fi
15631 done
15632 sim_profile="$sim_profile)" ;;
15633 esac
15634 fi
15635
15636 cat >>confdefs.h <<_ACEOF
15637 #define PROFILE $profile
15638 _ACEOF
15639
15640
15641 cat >>confdefs.h <<_ACEOF
15642 #define WITH_PROFILE $sim_profile
15643 _ACEOF
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
15646 $as_echo "$sim_profile" >&6; }
15647
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
15649 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
15650 # Check whether --enable-sim-reserved-bits was given.
15651 if test "${enable_sim_reserved_bits+set}" = set; then :
15652 enableval=$enable_sim_reserved_bits; case "${enableval}" in
15653 yes|no) ;;
15654 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
15655 esac
15656 fi
15657
15658 if test "x${enable_sim_reserved_bits}" != xno; then
15659 sim_reserved_bits=1
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15661 $as_echo "yes" >&6; }
15662 else
15663 sim_reserved_bits=0
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665 $as_echo "no" >&6; }
15666 fi
15667
15668 cat >>confdefs.h <<_ACEOF
15669 #define WITH_RESERVED_BITS $sim_reserved_bits
15670 _ACEOF
15671
15672
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
15674 $as_echo_n "checking for sim cache size... " >&6; }
15675 sim_scache="16384"
15676 # Check whether --enable-sim-scache was given.
15677 if test "${enable_sim_scache+set}" = set; then :
15678 enableval=$enable_sim_scache; case "${enableval}" in
15679 yes) ;;
15680 no) sim_scache="0";;
15681 [0-9]*) sim_scache="${enableval}";;
15682 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
15683 esac
15684 fi
15685
15686
15687 cat >>confdefs.h <<_ACEOF
15688 #define WITH_SCACHE $sim_scache
15689 _ACEOF
15690
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
15692 $as_echo "$sim_scache" >&6; }
15693
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of sim cpus to support" >&5
15695 $as_echo_n "checking number of sim cpus to support... " >&6; }
15696 default_sim_smp="0"
15697 sim_smp="$default_sim_smp"
15698 # Check whether --enable-sim-smp was given.
15699 if test "${enable_sim_smp+set}" = set; then :
15700 enableval=$enable_sim_smp; case "${enableval}" in
15701 yes) sim_smp="5";;
15702 no) sim_smp="0";;
15703 *) sim_smp="$enableval";;
15704 esac
15705 fi
15706 IGEN_FLAGS_SMP="-N ${sim_smp}"
15707
15708 if test "x$sim_smp" = x0; then :
15709
15710 else
15711
15712 cat >>confdefs.h <<_ACEOF
15713 #define WITH_SMP $sim_smp
15714 _ACEOF
15715
15716 fi
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_smp" >&5
15718 $as_echo "$sim_smp" >&6; }
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
15721 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
15722 sim_stdio="0"
15723 # Check whether --enable-sim-stdio was given.
15724 if test "${enable_sim_stdio+set}" = set; then :
15725 enableval=$enable_sim_stdio; case "${enableval}" in
15726 yes) sim_stdio="DO_USE_STDIO";;
15727 no) sim_stdio="DONT_USE_STDIO";;
15728 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
15729 esac
15730 fi
15731
15732 cat >>confdefs.h <<_ACEOF
15733 #define WITH_STDIO $sim_stdio
15734 _ACEOF
15735
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
15737 $as_echo "$sim_stdio" >&6; }
15738
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
15740 $as_echo_n "checking for sim trace settings... " >&6; }
15741 sim_trace="~TRACE_debug"
15742 # Check whether --enable-sim-trace was given.
15743 if test "${enable_sim_trace+set}" = set; then :
15744 enableval=$enable_sim_trace; case "${enableval}" in
15745 yes) sim_trace="-1";;
15746 no) sim_trace="0";;
15747 [-0-9]*)
15748 sim_trace="'(${enableval})'";;
15749 [[:lower:]]*)
15750 sim_trace=""
15751 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
15752 if test x"$sim_trace" = x; then
15753 sim_trace="(TRACE_$x"
15754 else
15755 sim_trace="${sim_trace}|TRACE_$x"
15756 fi
15757 done
15758 sim_trace="$sim_trace)" ;;
15759 esac
15760 fi
15761
15762 cat >>confdefs.h <<_ACEOF
15763 #define WITH_TRACE $sim_trace
15764 _ACEOF
15765
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
15767 $as_echo "$sim_trace" >&6; }
15768
15769
15770 # Check whether --enable-werror was given.
15771 if test "${enable_werror+set}" = set; then :
15772 enableval=$enable_werror; case "${enableval}" in
15773 yes | y) ERROR_ON_WARNING="yes" ;;
15774 no | n) ERROR_ON_WARNING="no" ;;
15775 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15776 esac
15777 fi
15778
15779
15780 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15781 ERROR_ON_WARNING=yes
15782 fi
15783
15784 WERROR_CFLAGS=""
15785 if test "${ERROR_ON_WARNING}" = yes ; then
15786 WERROR_CFLAGS="-Werror"
15787 fi
15788
15789 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
15790 -Wno-unused -Wunused-value -Wunused-function
15791 -Wno-switch -Wno-char-subscripts
15792 -Wempty-body -Wunused-but-set-parameter
15793 -Wno-error=maybe-uninitialized
15794 -Wmissing-declarations
15795 -Wmissing-prototypes
15796 -Wdeclaration-after-statement -Wmissing-parameter-type
15797 -Wpointer-sign
15798 -Wold-style-declaration -Wold-style-definition
15799 "
15800
15801 # Enable -Wno-format by default when using gcc on mingw since many
15802 # GCC versions complain about %I64.
15803 case "${host}" in
15804 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15805 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
15806 esac
15807
15808 # Check whether --enable-build-warnings was given.
15809 if test "${enable_build_warnings+set}" = set; then :
15810 enableval=$enable_build_warnings; case "${enableval}" in
15811 yes) ;;
15812 no) build_warnings="-w";;
15813 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15814 build_warnings="${build_warnings} ${t}";;
15815 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15816 build_warnings="${t} ${build_warnings}";;
15817 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15818 esac
15819 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15820 echo "Setting compiler warning flags = $build_warnings" 6>&1
15821 fi
15822 fi
15823 # Check whether --enable-sim-build-warnings was given.
15824 if test "${enable_sim_build_warnings+set}" = set; then :
15825 enableval=$enable_sim_build_warnings; case "${enableval}" in
15826 yes) ;;
15827 no) build_warnings="-w";;
15828 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15829 build_warnings="${build_warnings} ${t}";;
15830 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15831 build_warnings="${t} ${build_warnings}";;
15832 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15833 esac
15834 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15835 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15836 fi
15837 fi
15838 WARN_CFLAGS=""
15839 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15840 then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15842 $as_echo_n "checking compiler warning flags... " >&6; }
15843 # Separate out the -Werror flag as some files just cannot be
15844 # compiled with it enabled.
15845 for w in ${build_warnings}; do
15846 case $w in
15847 -Werr*) WERROR_CFLAGS=-Werror ;;
15848 *) # Check that GCC accepts it
15849 saved_CFLAGS="$CFLAGS"
15850 CFLAGS="$CFLAGS -Werror $w"
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852 /* end confdefs.h. */
15853
15854 int
15855 main ()
15856 {
15857
15858 ;
15859 return 0;
15860 }
15861 _ACEOF
15862 if ac_fn_c_try_compile "$LINENO"; then :
15863 WARN_CFLAGS="${WARN_CFLAGS} $w"
15864 fi
15865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 CFLAGS="$saved_CFLAGS"
15867 esac
15868 done
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15870 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15871 fi
15872
15873
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
15875 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
15876 # Check whether --enable-sim-frv-trapdump was given.
15877 if test "${enable_sim_frv_trapdump+set}" = set; then :
15878 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
15879 yes|no) ;;
15880 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
15881 esac
15882 fi
15883
15884 if test "x${enable_sim_frv_trapdump}" = xyes; then
15885 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15887 $as_echo "yes" >&6; }
15888 else
15889 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15891 $as_echo "no" >&6; }
15892 fi
15893
15894
15895
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips subtarget" >&5
15897 $as_echo_n "checking mips subtarget... " >&6; }
15898 SIM_MIPS_SUBTARGET=
15899 case ${target} in #(
15900 mips64vr*-*-*) :
15901 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15902 mips*tx39*) :
15903 SIM_MIPS_SUBTARGET="-DSUBTARGET_R3900=1" ;; #(
15904 mips*-sde-elf*) :
15905 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15906 mips*-mti-elf*) :
15907 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15908 mipsisa32*-*-*) :
15909 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15910 mipsisa64*-*-*) :
15911 SIM_MIPS_SUBTARGET="-DTARGET_ENABLE_FR=1" ;; #(
15912 *) :
15913 ;;
15914 esac
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SIM_MIPS_SUBTARGET:-none}" >&5
15916 $as_echo "${SIM_MIPS_SUBTARGET:-none}" >&6; }
15917
15918
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips bitsize" >&5
15920 $as_echo_n "checking mips bitsize... " >&6; }
15921 SIM_MIPS_BITSIZE=64
15922 case ${target} in #(
15923 mips*-sde-elf*) :
15924 SIM_MIPS_BITSIZE=64 ;; #(
15925 mips*-mti-elf*) :
15926 SIM_MIPS_BITSIZE=64 ;; #(
15927 mips64*-*-*) :
15928 SIM_MIPS_BITSIZE=64 ;; #(
15929 mips16*-*-*) :
15930 SIM_MIPS_BITSIZE=64 ;; #(
15931 mipsisa32*-*-*) :
15932 SIM_MIPS_BITSIZE=32 ;; #(
15933 mipsisa64*-*-*) :
15934 SIM_MIPS_BITSIZE=64 ;; #(
15935 mips*-*-*) :
15936 SIM_MIPS_BITSIZE=32 ;; #(
15937 *) :
15938 ;;
15939 esac
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_BITSIZE" >&5
15941 $as_echo "$SIM_MIPS_BITSIZE" >&6; }
15942
15943
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mips fpu bitsize" >&5
15945 $as_echo_n "checking mips fpu bitsize... " >&6; }
15946 SIM_MIPS_FPU_BITSIZE=64
15947 case ${target} in #(
15948 mips*tx39*) :
15949 SIM_MIPS_FPU_BITSIZE=32 ;; #(
15950 mips*-sde-elf*) :
15951 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15952 mips*-mti-elf*) :
15953 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15954 mipsisa32*-*-*) :
15955 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15956 mipsisa64*-*-*) :
15957 SIM_MIPS_FPU_BITSIZE=64 ;; #(
15958 mips*-*-*) :
15959 SIM_MIPS_FPU_BITSIZE=32 ;; #(
15960 *) :
15961 ;;
15962 esac
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_MIPS_FPU_BITSIZE" >&5
15964 $as_echo "$SIM_MIPS_FPU_BITSIZE" >&6; }
15965
15966
15967 SIM_MIPS_GEN=SINGLE
15968 sim_mips_single_machine="-M mipsIV"
15969 sim_mips_m16_machine="-M mips16,mipsIII"
15970 sim_mips_single_filter="32,64,f"
15971 sim_mips_m16_filter="16"
15972 case ${target} in #(
15973 mips*tx39*) :
15974 SIM_MIPS_GEN=SINGLE
15975 sim_mips_single_filter="32,f"
15976 sim_mips_single_machine="-M r3900" ;; #(
15977 mips64vr41*) :
15978 SIM_MIPS_GEN=M16
15979 sim_mips_single_machine="-M vr4100"
15980 sim_mips_m16_machine="-M vr4100" ;; #(
15981 mips64*) :
15982 SIM_MIPS_GEN=MULTI
15983 sim_mips_multi_configs="\
15984 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
15985 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
15986 vr5000:mipsIV:32,64,f:mips4300,mips5000,mips8000\
15987 vr5400:mipsIV,vr5400:32,64,f:mips5400\
15988 vr5500:mipsIV,vr5500:32,64,f:mips5500"
15989 sim_mips_multi_default=mips5000 ;; #(
15990 mips*-sde-elf* | mips*-mti-elf*) :
15991 SIM_MIPS_GEN=MULTI
15992 sim_mips_multi_configs="\
15993 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
15994 mipsisa64r2:mips64r2,mips16,mips16e,mdmx,dsp,dsp2,mips3d,smartmips:32,64,f:mipsisa32r2,mipsisa64r2,mipsisa32r5,mipsisa64r5\
15995 mipsisa64r6:mips64r6:32,64,f:mipsisa32r6,mipsisa64r6"
15996 sim_mips_multi_default=mipsisa64r2 ;; #(
15997 mips16*) :
15998 SIM_MIPS_GEN=M16 ;; #(
15999 mipsisa32r2*) :
16000 SIM_MIPS_GEN=MULTI
16001 sim_mips_multi_configs="\
16002 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
16003 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
16004 sim_mips_multi_default=mipsisa32r2 ;; #(
16005 mipsisa32r6*) :
16006 SIM_MIPS_GEN=SINGLE
16007 sim_mips_single_machine="-M mips32r6"
16008 sim_mips_single_filter="32,f" ;; #(
16009 mipsisa32*) :
16010 SIM_MIPS_GEN=M16
16011 sim_mips_single_machine="-M mips32,mips16,mips16e,smartmips"
16012 sim_mips_m16_machine="-M mips16,mips16e,mips32"
16013 sim_mips_single_filter="32,f" ;; #(
16014 mipsisa64r2*) :
16015 SIM_MIPS_GEN=M16
16016 sim_mips_single_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
16017 sim_mips_m16_machine="-M mips16,mips16e,mips64r2" ;; #(
16018 mipsisa64r6*) :
16019 SIM_MIPS_GEN=SINGLE
16020 sim_mips_single_machine="-M mips64r6" ;; #(
16021 mipsisa64sb1*) :
16022 SIM_MIPS_GEN=SINGLE
16023 sim_mips_single_machine="-M mips64,mips3d,sb1" ;; #(
16024 mipsisa64*) :
16025 SIM_MIPS_GEN=M16
16026 sim_mips_single_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
16027 sim_mips_m16_machine="-M mips16,mips16e,mips64" ;; #(
16028 mips*lsi*) :
16029 SIM_MIPS_GEN=M16
16030 sim_mips_single_machine="-M mipsIII,mips16"
16031 sim_mips_m16_machine="-M mips16,mipsIII"
16032 sim_mips_single_filter="32,f" ;; #(
16033 mips*) :
16034 SIM_MIPS_GEN=SINGLE
16035 sim_mips_single_filter="32,f" ;; #(
16036 *) :
16037 ;;
16038 esac
16039
16040 SIM_MIPS_IGEN_ITABLE_FLAGS=
16041 SIM_MIPS_MULTI_SRC=
16042 SIM_MIPS_MULTI_OBJ=
16043 SIM_MIPS_MULTI_IGEN_CONFIGS=
16044 if test "x$SIM_MIPS_GEN" = x"MULTI"; then :
16045 if test -z "${sim_mips_multi_configs}" || test -z "${sim_mips_multi_default}"; then :
16046 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
16047 fi
16048
16049 as_dir=mips; as_fn_mkdir_p
16050 rm -f mips/multi-include.h mips/multi-run.c
16051 sim_mips_seen_default=no
16052
16053 cat << __EOF__ > mips/multi-run.c
16054 /* Main entry point for MULTI simulators.
16055 Copyright (C) 2003-2023 Free Software Foundation, Inc.
16056
16057 This program is free software; you can redistribute it and/or modify
16058 it under the terms of the GNU General Public License as published by
16059 the Free Software Foundation; either version 3 of the License, or
16060 (at your option) any later version.
16061
16062 This program is distributed in the hope that it will be useful,
16063 but WITHOUT ANY WARRANTY; without even the implied warranty of
16064 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16065 GNU General Public License for more details.
16066
16067 You should have received a copy of the GNU General Public License
16068 along with this program. If not, see <http://www.gnu.org/licenses/>.
16069
16070 --
16071
16072 This file was generated by sim/mips/configure. */
16073
16074 #include "sim-main.h"
16075 #include "multi-include.h"
16076 #include "bfd/elf-bfd.h"
16077 #include "bfd/elfxx-mips.h"
16078 #include "elf/mips.h"
16079
16080 #define SD sd
16081 #define CPU cpu
16082
16083 void
16084 sim_engine_run (SIM_DESC sd,
16085 int next_cpu_nr,
16086 int nr_cpus,
16087 int signal) /* ignore */
16088 {
16089 int mach;
16090
16091 if (STATE_ARCHITECTURE (sd) == NULL)
16092 mach = bfd_mach_${sim_mips_multi_default};
16093 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
16094 & EF_MIPS_ARCH_ASE_MICROMIPS)
16095 mach = bfd_mach_mips_micromips;
16096 else
16097 {
16098 mach = _bfd_elf_mips_mach (elf_elfheader (STATE_PROG_BFD (sd))->e_flags);
16099 if (!mach)
16100 mach = STATE_ARCHITECTURE (SD)->mach;
16101 }
16102
16103 switch (mach)
16104 {
16105 __EOF__
16106
16107 for fc in ${sim_mips_multi_configs}; do
16108
16109 c=`echo ${fc} | sed 's/:[^:]*$//'`
16110 bfdmachs=`echo ${fc} | sed 's/.*://'`
16111 name=`echo ${c} | sed 's/:.*//'`
16112 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
16113 filter=`echo ${c} | sed 's/.*://'`
16114
16115 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F ${filter} -M ${machine}"
16116
16117 case ${c} in #(
16118 *:*mips16*:*) :
16119 ws="m32 m16"
16120
16121 as_fn_append SIM_MIPS_MULTI_SRC " mips/m16${name}_run.c"
16122 as_fn_append SIM_MIPS_MULTI_OBJ " mips/m16${name}_run.o"
16123 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16"
16124 ;; #(
16125 *:*micromips32*:*) :
16126 ws="micromips_m32 micromips16 micromips32"
16127
16128 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16129 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16130 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32"
16131 ;; #(
16132 *:*micromips64*:*) :
16133 ws="micromips_m64 micromips16 micromips64"
16134
16135 as_fn_append SIM_MIPS_MULTI_SRC " mips/micromips${name}_run.c"
16136 as_fn_append SIM_MIPS_MULTI_OBJ " mips/micromips${name}_run.o"
16137 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS " -F 16,32,64"
16138 ;; #(
16139 *) :
16140 ws=m32 ;;
16141 esac
16142
16143 for w in ${ws}; do
16144 for base in engine icache idecode model semantics support; do
16145 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.c"
16146 as_fn_append SIM_MIPS_MULTI_SRC " mips/${w}${name}_${base}.h"
16147 as_fn_append SIM_MIPS_MULTI_OBJ " mips/${w}${name}_${base}.o"
16148 done
16149 as_fn_append SIM_MIPS_MULTI_IGEN_CONFIGS " ${w}${c}"
16150 done
16151
16152 echo "#include \"${w}${name}_engine.h\"" >> mips/multi-include.h
16153
16154 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
16155 echo " case bfd_mach_${mach}:" >> mips/multi-run.c
16156 if test "x$mach" = x"${sim_mips_multi_default}"; then :
16157 echo " default:" >> mips/multi-run.c
16158 sim_mips_seen_default=yes
16159
16160 fi
16161 done
16162 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
16163 >> mips/multi-run.c
16164 echo " break;" >> mips/multi-run.c
16165 done
16166
16167 if test "x$sim_mips_seen_default" = xno; then :
16168 as_fn_error $? "Error in configure.ac: \${sim_mips_multi_configs} doesn't have an entry for \${sim_mips_multi_default}" "$LINENO" 5
16169 fi
16170
16171 cat << __EOF__ >> mips/multi-run.c
16172 }
16173 }
16174 __EOF__
16175
16176 else
16177 SIM_MIPS_MULTI_SRC=mips/doesnt-exist.c
16178 SIM_MIPS_IGEN_ITABLE_FLAGS='$(SIM_MIPS_SINGLE_FLAGS)'
16179 if test "x$SIM_MIPS_GEN" = x"M16"; then :
16180 as_fn_append SIM_MIPS_IGEN_ITABLE_FLAGS ' $(SIM_MIPS_M16_FLAGS)'
16181 fi
16182
16183 fi
16184 SIM_MIPS_SINGLE_FLAGS="-F ${sim_mips_single_filter} ${sim_mips_single_machine}"
16185 SIM_MIPS_M16_FLAGS="-F ${sim_mips_m16_filter} ${sim_mips_m16_machine}"
16186
16187
16188
16189
16190
16191
16192
16193 if test "$SIM_MIPS_GEN" = "SINGLE"; then
16194 SIM_MIPS_GEN_MODE_SINGLE_TRUE=
16195 SIM_MIPS_GEN_MODE_SINGLE_FALSE='#'
16196 else
16197 SIM_MIPS_GEN_MODE_SINGLE_TRUE='#'
16198 SIM_MIPS_GEN_MODE_SINGLE_FALSE=
16199 fi
16200
16201 if test "$SIM_MIPS_GEN" = "M16"; then
16202 SIM_MIPS_GEN_MODE_M16_TRUE=
16203 SIM_MIPS_GEN_MODE_M16_FALSE='#'
16204 else
16205 SIM_MIPS_GEN_MODE_M16_TRUE='#'
16206 SIM_MIPS_GEN_MODE_M16_FALSE=
16207 fi
16208
16209 if test "$SIM_MIPS_GEN" = "MULTI"; then
16210 SIM_MIPS_GEN_MODE_MULTI_TRUE=
16211 SIM_MIPS_GEN_MODE_MULTI_FALSE='#'
16212 else
16213 SIM_MIPS_GEN_MODE_MULTI_TRUE='#'
16214 SIM_MIPS_GEN_MODE_MULTI_FALSE=
16215 fi
16216
16217
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking riscv bitsize" >&5
16219 $as_echo_n "checking riscv bitsize... " >&6; }
16220 SIM_RISCV_BITSIZE=64
16221 case $target in #(
16222 riscv32*) :
16223 SIM_RISCV_BITSIZE=32 ;; #(
16224 *) :
16225 ;;
16226 esac
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SIM_RISCV_BITSIZE" >&5
16228 $as_echo "$SIM_RISCV_BITSIZE" >&6; }
16229
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16232 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16233 # Check whether --enable-sim-rx-cycle-accurate was given.
16234 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16235 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16236 yes | no) ;;
16237 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16238 esac
16239 fi
16240
16241 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16242 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244 $as_echo "yes" >&6; }
16245 else
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247 $as_echo "no" >&6; }
16248 fi
16249
16250
16251
16252 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16253
16254 cat >confcache <<\_ACEOF
16255 # This file is a shell script that caches the results of configure
16256 # tests run on this system so they can be shared between configure
16257 # scripts and configure runs, see configure's option --config-cache.
16258 # It is not useful on other systems. If it contains results you don't
16259 # want to keep, you may remove or edit it.
16260 #
16261 # config.status only pays attention to the cache file if you give it
16262 # the --recheck option to rerun configure.
16263 #
16264 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16265 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16266 # following values.
16267
16268 _ACEOF
16269
16270 # The following way of writing the cache mishandles newlines in values,
16271 # but we know of no workaround that is simple, portable, and efficient.
16272 # So, we kill variables containing newlines.
16273 # Ultrix sh set writes to stderr and can't be redirected directly,
16274 # and sets the high bit in the cache file unless we assign to the vars.
16275 (
16276 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16277 eval ac_val=\$$ac_var
16278 case $ac_val in #(
16279 *${as_nl}*)
16280 case $ac_var in #(
16281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16283 esac
16284 case $ac_var in #(
16285 _ | IFS | as_nl) ;; #(
16286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16287 *) { eval $ac_var=; unset $ac_var;} ;;
16288 esac ;;
16289 esac
16290 done
16291
16292 (set) 2>&1 |
16293 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16294 *${as_nl}ac_space=\ *)
16295 # `set' does not quote correctly, so add quotes: double-quote
16296 # substitution turns \\\\ into \\, and sed turns \\ into \.
16297 sed -n \
16298 "s/'/'\\\\''/g;
16299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16300 ;; #(
16301 *)
16302 # `set' quotes correctly as required by POSIX, so do not add quotes.
16303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16304 ;;
16305 esac |
16306 sort
16307 ) |
16308 sed '
16309 /^ac_cv_env_/b end
16310 t clear
16311 :clear
16312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16313 t end
16314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16315 :end' >>confcache
16316 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16317 if test -w "$cache_file"; then
16318 if test "x$cache_file" != "x/dev/null"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16320 $as_echo "$as_me: updating cache $cache_file" >&6;}
16321 if test ! -f "$cache_file" || test -h "$cache_file"; then
16322 cat confcache >"$cache_file"
16323 else
16324 case $cache_file in #(
16325 */* | ?:*)
16326 mv -f confcache "$cache_file"$$ &&
16327 mv -f "$cache_file"$$ "$cache_file" ;; #(
16328 *)
16329 mv -f confcache "$cache_file" ;;
16330 esac
16331 fi
16332 fi
16333 else
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16335 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16336 fi
16337 fi
16338 rm -f confcache
16339
16340 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16341 # Let make expand exec_prefix.
16342 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16343
16344 DEFS=-DHAVE_CONFIG_H
16345
16346 ac_libobjs=
16347 ac_ltlibobjs=
16348 U=
16349 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16350 # 1. Remove the extension, and $U if already installed.
16351 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16352 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16354 # will be set to the directory where LIBOBJS objects are built.
16355 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16356 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16357 done
16358 LIBOBJS=$ac_libobjs
16359
16360 LTLIBOBJS=$ac_ltlibobjs
16361
16362
16363
16364 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16365 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16367 fi
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16369 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16370 if test -n "$am_sleep_pid"; then
16371 # Hide warnings about reused PIDs.
16372 wait $am_sleep_pid 2>/dev/null
16373 fi
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16375 $as_echo "done" >&6; }
16376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16377 as_fn_error $? "conditional \"AMDEP\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16379 fi
16380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16381 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383 fi
16384 if test -n "$EXEEXT"; then
16385 am__EXEEXT_TRUE=
16386 am__EXEEXT_FALSE='#'
16387 else
16388 am__EXEEXT_TRUE='#'
16389 am__EXEEXT_FALSE=
16390 fi
16391
16392 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16393 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16395 fi
16396 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16397 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399 fi
16400 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16401 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403 fi
16404 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16405 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16407 fi
16408 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16409 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16411 fi
16412 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16413 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16415 fi
16416 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16417 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16419 fi
16420 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16421 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16423 fi
16424 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16425 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16427 fi
16428 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16429 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431 fi
16432 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16433 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16435 fi
16436 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16437 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16439 fi
16440 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16441 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16443 fi
16444 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16445 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 fi
16448 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16449 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451 fi
16452 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16453 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 fi
16456 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16457 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 fi
16460 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16461 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 fi
16464 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16465 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 fi
16468 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16469 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16471 fi
16472 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16473 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16475 fi
16476 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16477 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479 fi
16480 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16481 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483 fi
16484 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16485 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487 fi
16488 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16489 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491 fi
16492 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16493 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16495 fi
16496 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16497 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16499 fi
16500 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16501 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16503 fi
16504 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16505 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16507 fi
16508 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16509 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16511 fi
16512 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16513 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16515 fi
16516 if test -z "${SIM_ENABLE_ARCH_examples_TRUE}" && test -z "${SIM_ENABLE_ARCH_examples_FALSE}"; then
16517 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_examples\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16519 fi
16520 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16521 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 fi
16524 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16525 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 fi
16528 if test -z "${SIM_MIPS_GEN_MODE_SINGLE_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_SINGLE_FALSE}"; then
16529 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_SINGLE\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 fi
16532 if test -z "${SIM_MIPS_GEN_MODE_M16_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_M16_FALSE}"; then
16533 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_M16\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 fi
16536 if test -z "${SIM_MIPS_GEN_MODE_MULTI_TRUE}" && test -z "${SIM_MIPS_GEN_MODE_MULTI_FALSE}"; then
16537 as_fn_error $? "conditional \"SIM_MIPS_GEN_MODE_MULTI\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 fi
16540
16541 : "${CONFIG_STATUS=./config.status}"
16542 ac_write_fail=0
16543 ac_clean_files_save=$ac_clean_files
16544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16547 as_write_fail=0
16548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16549 #! $SHELL
16550 # Generated by $as_me.
16551 # Run this file to recreate the current configuration.
16552 # Compiler output produced by configure, useful for debugging
16553 # configure, is in config.log if it exists.
16554
16555 debug=false
16556 ac_cs_recheck=false
16557 ac_cs_silent=false
16558
16559 SHELL=\${CONFIG_SHELL-$SHELL}
16560 export SHELL
16561 _ASEOF
16562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16563 ## -------------------- ##
16564 ## M4sh Initialization. ##
16565 ## -------------------- ##
16566
16567 # Be more Bourne compatible
16568 DUALCASE=1; export DUALCASE # for MKS sh
16569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16570 emulate sh
16571 NULLCMD=:
16572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16573 # is contrary to our usage. Disable this feature.
16574 alias -g '${1+"$@"}'='"$@"'
16575 setopt NO_GLOB_SUBST
16576 else
16577 case `(set -o) 2>/dev/null` in #(
16578 *posix*) :
16579 set -o posix ;; #(
16580 *) :
16581 ;;
16582 esac
16583 fi
16584
16585
16586 as_nl='
16587 '
16588 export as_nl
16589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16593 # Prefer a ksh shell builtin over an external printf program on Solaris,
16594 # but without wasting forks for bash or zsh.
16595 if test -z "$BASH_VERSION$ZSH_VERSION" \
16596 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16597 as_echo='print -r --'
16598 as_echo_n='print -rn --'
16599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16600 as_echo='printf %s\n'
16601 as_echo_n='printf %s'
16602 else
16603 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16604 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16605 as_echo_n='/usr/ucb/echo -n'
16606 else
16607 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16608 as_echo_n_body='eval
16609 arg=$1;
16610 case $arg in #(
16611 *"$as_nl"*)
16612 expr "X$arg" : "X\\(.*\\)$as_nl";
16613 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16614 esac;
16615 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16616 '
16617 export as_echo_n_body
16618 as_echo_n='sh -c $as_echo_n_body as_echo'
16619 fi
16620 export as_echo_body
16621 as_echo='sh -c $as_echo_body as_echo'
16622 fi
16623
16624 # The user is always right.
16625 if test "${PATH_SEPARATOR+set}" != set; then
16626 PATH_SEPARATOR=:
16627 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16628 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16629 PATH_SEPARATOR=';'
16630 }
16631 fi
16632
16633
16634 # IFS
16635 # We need space, tab and new line, in precisely that order. Quoting is
16636 # there to prevent editors from complaining about space-tab.
16637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16638 # splitting by setting IFS to empty value.)
16639 IFS=" "" $as_nl"
16640
16641 # Find who we are. Look in the path if we contain no directory separator.
16642 as_myself=
16643 case $0 in #((
16644 *[\\/]* ) as_myself=$0 ;;
16645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16646 for as_dir in $PATH
16647 do
16648 IFS=$as_save_IFS
16649 test -z "$as_dir" && as_dir=.
16650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16651 done
16652 IFS=$as_save_IFS
16653
16654 ;;
16655 esac
16656 # We did not find ourselves, most probably we were run as `sh COMMAND'
16657 # in which case we are not to be found in the path.
16658 if test "x$as_myself" = x; then
16659 as_myself=$0
16660 fi
16661 if test ! -f "$as_myself"; then
16662 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16663 exit 1
16664 fi
16665
16666 # Unset variables that we do not need and which cause bugs (e.g. in
16667 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16668 # suppresses any "Segmentation fault" message there. '((' could
16669 # trigger a bug in pdksh 5.2.14.
16670 for as_var in BASH_ENV ENV MAIL MAILPATH
16671 do eval test x\${$as_var+set} = xset \
16672 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16673 done
16674 PS1='$ '
16675 PS2='> '
16676 PS4='+ '
16677
16678 # NLS nuisances.
16679 LC_ALL=C
16680 export LC_ALL
16681 LANGUAGE=C
16682 export LANGUAGE
16683
16684 # CDPATH.
16685 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16686
16687
16688 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16689 # ----------------------------------------
16690 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16691 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16692 # script with STATUS, using 1 if that was 0.
16693 as_fn_error ()
16694 {
16695 as_status=$1; test $as_status -eq 0 && as_status=1
16696 if test "$4"; then
16697 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16698 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16699 fi
16700 $as_echo "$as_me: error: $2" >&2
16701 as_fn_exit $as_status
16702 } # as_fn_error
16703
16704
16705 # as_fn_set_status STATUS
16706 # -----------------------
16707 # Set $? to STATUS, without forking.
16708 as_fn_set_status ()
16709 {
16710 return $1
16711 } # as_fn_set_status
16712
16713 # as_fn_exit STATUS
16714 # -----------------
16715 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16716 as_fn_exit ()
16717 {
16718 set +e
16719 as_fn_set_status $1
16720 exit $1
16721 } # as_fn_exit
16722
16723 # as_fn_unset VAR
16724 # ---------------
16725 # Portably unset VAR.
16726 as_fn_unset ()
16727 {
16728 { eval $1=; unset $1;}
16729 }
16730 as_unset=as_fn_unset
16731 # as_fn_append VAR VALUE
16732 # ----------------------
16733 # Append the text in VALUE to the end of the definition contained in VAR. Take
16734 # advantage of any shell optimizations that allow amortized linear growth over
16735 # repeated appends, instead of the typical quadratic growth present in naive
16736 # implementations.
16737 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16738 eval 'as_fn_append ()
16739 {
16740 eval $1+=\$2
16741 }'
16742 else
16743 as_fn_append ()
16744 {
16745 eval $1=\$$1\$2
16746 }
16747 fi # as_fn_append
16748
16749 # as_fn_arith ARG...
16750 # ------------------
16751 # Perform arithmetic evaluation on the ARGs, and store the result in the
16752 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16753 # must be portable across $(()) and expr.
16754 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16755 eval 'as_fn_arith ()
16756 {
16757 as_val=$(( $* ))
16758 }'
16759 else
16760 as_fn_arith ()
16761 {
16762 as_val=`expr "$@" || test $? -eq 1`
16763 }
16764 fi # as_fn_arith
16765
16766
16767 if expr a : '\(a\)' >/dev/null 2>&1 &&
16768 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16769 as_expr=expr
16770 else
16771 as_expr=false
16772 fi
16773
16774 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16775 as_basename=basename
16776 else
16777 as_basename=false
16778 fi
16779
16780 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16781 as_dirname=dirname
16782 else
16783 as_dirname=false
16784 fi
16785
16786 as_me=`$as_basename -- "$0" ||
16787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16788 X"$0" : 'X\(//\)$' \| \
16789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16790 $as_echo X/"$0" |
16791 sed '/^.*\/\([^/][^/]*\)\/*$/{
16792 s//\1/
16793 q
16794 }
16795 /^X\/\(\/\/\)$/{
16796 s//\1/
16797 q
16798 }
16799 /^X\/\(\/\).*/{
16800 s//\1/
16801 q
16802 }
16803 s/.*/./; q'`
16804
16805 # Avoid depending upon Character Ranges.
16806 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16807 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16808 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16809 as_cr_digits='0123456789'
16810 as_cr_alnum=$as_cr_Letters$as_cr_digits
16811
16812 ECHO_C= ECHO_N= ECHO_T=
16813 case `echo -n x` in #(((((
16814 -n*)
16815 case `echo 'xy\c'` in
16816 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16817 xy) ECHO_C='\c';;
16818 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16819 ECHO_T=' ';;
16820 esac;;
16821 *)
16822 ECHO_N='-n';;
16823 esac
16824
16825 rm -f conf$$ conf$$.exe conf$$.file
16826 if test -d conf$$.dir; then
16827 rm -f conf$$.dir/conf$$.file
16828 else
16829 rm -f conf$$.dir
16830 mkdir conf$$.dir 2>/dev/null
16831 fi
16832 if (echo >conf$$.file) 2>/dev/null; then
16833 if ln -s conf$$.file conf$$ 2>/dev/null; then
16834 as_ln_s='ln -s'
16835 # ... but there are two gotchas:
16836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16838 # In both cases, we have to default to `cp -pR'.
16839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16840 as_ln_s='cp -pR'
16841 elif ln conf$$.file conf$$ 2>/dev/null; then
16842 as_ln_s=ln
16843 else
16844 as_ln_s='cp -pR'
16845 fi
16846 else
16847 as_ln_s='cp -pR'
16848 fi
16849 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16850 rmdir conf$$.dir 2>/dev/null
16851
16852
16853 # as_fn_mkdir_p
16854 # -------------
16855 # Create "$as_dir" as a directory, including parents if necessary.
16856 as_fn_mkdir_p ()
16857 {
16858
16859 case $as_dir in #(
16860 -*) as_dir=./$as_dir;;
16861 esac
16862 test -d "$as_dir" || eval $as_mkdir_p || {
16863 as_dirs=
16864 while :; do
16865 case $as_dir in #(
16866 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16867 *) as_qdir=$as_dir;;
16868 esac
16869 as_dirs="'$as_qdir' $as_dirs"
16870 as_dir=`$as_dirname -- "$as_dir" ||
16871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16872 X"$as_dir" : 'X\(//\)[^/]' \| \
16873 X"$as_dir" : 'X\(//\)$' \| \
16874 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16875 $as_echo X"$as_dir" |
16876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16877 s//\1/
16878 q
16879 }
16880 /^X\(\/\/\)[^/].*/{
16881 s//\1/
16882 q
16883 }
16884 /^X\(\/\/\)$/{
16885 s//\1/
16886 q
16887 }
16888 /^X\(\/\).*/{
16889 s//\1/
16890 q
16891 }
16892 s/.*/./; q'`
16893 test -d "$as_dir" && break
16894 done
16895 test -z "$as_dirs" || eval "mkdir $as_dirs"
16896 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16897
16898
16899 } # as_fn_mkdir_p
16900 if mkdir -p . 2>/dev/null; then
16901 as_mkdir_p='mkdir -p "$as_dir"'
16902 else
16903 test -d ./-p && rmdir ./-p
16904 as_mkdir_p=false
16905 fi
16906
16907
16908 # as_fn_executable_p FILE
16909 # -----------------------
16910 # Test if FILE is an executable regular file.
16911 as_fn_executable_p ()
16912 {
16913 test -f "$1" && test -x "$1"
16914 } # as_fn_executable_p
16915 as_test_x='test -x'
16916 as_executable_p=as_fn_executable_p
16917
16918 # Sed expression to map a string onto a valid CPP name.
16919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16920
16921 # Sed expression to map a string onto a valid variable name.
16922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16923
16924
16925 exec 6>&1
16926 ## ----------------------------------- ##
16927 ## Main body of $CONFIG_STATUS script. ##
16928 ## ----------------------------------- ##
16929 _ASEOF
16930 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16931
16932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16933 # Save the log message, to keep $0 and so on meaningful, and to
16934 # report actual input values of CONFIG_FILES etc. instead of their
16935 # values after options handling.
16936 ac_log="
16937 This file was extended by sim $as_me 0, which was
16938 generated by GNU Autoconf 2.69. Invocation command line was
16939
16940 CONFIG_FILES = $CONFIG_FILES
16941 CONFIG_HEADERS = $CONFIG_HEADERS
16942 CONFIG_LINKS = $CONFIG_LINKS
16943 CONFIG_COMMANDS = $CONFIG_COMMANDS
16944 $ $0 $@
16945
16946 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16947 "
16948
16949 _ACEOF
16950
16951 case $ac_config_files in *"
16952 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16953 esac
16954
16955 case $ac_config_headers in *"
16956 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16957 esac
16958
16959
16960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16961 # Files that config.status was made for.
16962 config_files="$ac_config_files"
16963 config_headers="$ac_config_headers"
16964 config_commands="$ac_config_commands"
16965
16966 _ACEOF
16967
16968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16969 ac_cs_usage="\
16970 \`$as_me' instantiates files and other configuration actions
16971 from templates according to the current configuration. Unless the files
16972 and actions are specified as TAGs, all are instantiated by default.
16973
16974 Usage: $0 [OPTION]... [TAG]...
16975
16976 -h, --help print this help, then exit
16977 -V, --version print version number and configuration settings, then exit
16978 --config print configuration, then exit
16979 -q, --quiet, --silent
16980 do not print progress messages
16981 -d, --debug don't remove temporary files
16982 --recheck update $as_me by reconfiguring in the same conditions
16983 --file=FILE[:TEMPLATE]
16984 instantiate the configuration file FILE
16985 --header=FILE[:TEMPLATE]
16986 instantiate the configuration header FILE
16987
16988 Configuration files:
16989 $config_files
16990
16991 Configuration headers:
16992 $config_headers
16993
16994 Configuration commands:
16995 $config_commands
16996
16997 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
16998 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
16999
17000 _ACEOF
17001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17002 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17003 ac_cs_version="\\
17004 sim config.status 0
17005 configured by $0, generated by GNU Autoconf 2.69,
17006 with options \\"\$ac_cs_config\\"
17007
17008 Copyright (C) 2012 Free Software Foundation, Inc.
17009 This config.status script is free software; the Free Software Foundation
17010 gives unlimited permission to copy, distribute and modify it."
17011
17012 ac_pwd='$ac_pwd'
17013 srcdir='$srcdir'
17014 INSTALL='$INSTALL'
17015 MKDIR_P='$MKDIR_P'
17016 AWK='$AWK'
17017 test -n "\$AWK" || AWK=awk
17018 _ACEOF
17019
17020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17021 # The default lists apply if the user does not specify any file.
17022 ac_need_defaults=:
17023 while test $# != 0
17024 do
17025 case $1 in
17026 --*=?*)
17027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17028 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17029 ac_shift=:
17030 ;;
17031 --*=)
17032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17033 ac_optarg=
17034 ac_shift=:
17035 ;;
17036 *)
17037 ac_option=$1
17038 ac_optarg=$2
17039 ac_shift=shift
17040 ;;
17041 esac
17042
17043 case $ac_option in
17044 # Handling of the options.
17045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17046 ac_cs_recheck=: ;;
17047 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17048 $as_echo "$ac_cs_version"; exit ;;
17049 --config | --confi | --conf | --con | --co | --c )
17050 $as_echo "$ac_cs_config"; exit ;;
17051 --debug | --debu | --deb | --de | --d | -d )
17052 debug=: ;;
17053 --file | --fil | --fi | --f )
17054 $ac_shift
17055 case $ac_optarg in
17056 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17057 '') as_fn_error $? "missing file argument" ;;
17058 esac
17059 as_fn_append CONFIG_FILES " '$ac_optarg'"
17060 ac_need_defaults=false;;
17061 --header | --heade | --head | --hea )
17062 $ac_shift
17063 case $ac_optarg in
17064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17065 esac
17066 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17067 ac_need_defaults=false;;
17068 --he | --h)
17069 # Conflict between --help and --header
17070 as_fn_error $? "ambiguous option: \`$1'
17071 Try \`$0 --help' for more information.";;
17072 --help | --hel | -h )
17073 $as_echo "$ac_cs_usage"; exit ;;
17074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17075 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17076 ac_cs_silent=: ;;
17077
17078 # This is an error.
17079 -*) as_fn_error $? "unrecognized option: \`$1'
17080 Try \`$0 --help' for more information." ;;
17081
17082 *) as_fn_append ac_config_targets " $1"
17083 ac_need_defaults=false ;;
17084
17085 esac
17086 shift
17087 done
17088
17089 ac_configure_extra_args=
17090
17091 if $ac_cs_silent; then
17092 exec 6>/dev/null
17093 ac_configure_extra_args="$ac_configure_extra_args --silent"
17094 fi
17095
17096 _ACEOF
17097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17098 if \$ac_cs_recheck; then
17099 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17100 shift
17101 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17102 CONFIG_SHELL='$SHELL'
17103 export CONFIG_SHELL
17104 exec "\$@"
17105 fi
17106
17107 _ACEOF
17108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17109 exec 5>>config.log
17110 {
17111 echo
17112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17113 ## Running $as_me. ##
17114 _ASBOX
17115 $as_echo "$ac_log"
17116 } >&5
17117
17118 _ACEOF
17119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17120 #
17121 # INIT-COMMANDS
17122 #
17123
17124
17125 # The HP-UX ksh and POSIX shell print the target directory to stdout
17126 # if CDPATH is set.
17127 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17128
17129 sed_quote_subst='$sed_quote_subst'
17130 double_quote_subst='$double_quote_subst'
17131 delay_variable_subst='$delay_variable_subst'
17132 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17133 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17134 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17135 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17136 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17137 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17138 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17139 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17140 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17141 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17142 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17143 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17144 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17145 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17146 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17147 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17148 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17149 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17150 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17151 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17152 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17153 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17154 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17155 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17156 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17157 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17158 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17159 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17160 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17161 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17162 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17163 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17164 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17165 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17166 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17167 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17168 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17169 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17170 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17171 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17172 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17173 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17174 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17175 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17176 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17177 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17178 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17179 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17180 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"`'
17181 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17182 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17183 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17184 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17185 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17186 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17187 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17188 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17189 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17190 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17191 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17192 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17193 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17194 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17195 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17196 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17197 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17198 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17199 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17200 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17201 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17202 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17203 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17204 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17205 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17206 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17207 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17208 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17209 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17210 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17211 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17212 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17213 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17214 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17215 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17216 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17217 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17218 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17219 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17220 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17221 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17222 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17223 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17224 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17225 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17226 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17227 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17228 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17229 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17230 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17231 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17232 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17233 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17234 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17235 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17236 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17237 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17238 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17239 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17240 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17241 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17242 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17243 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17244 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17245 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17246 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17247 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17248 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17249 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17250 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17251 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17252
17253 LTCC='$LTCC'
17254 LTCFLAGS='$LTCFLAGS'
17255 compiler='$compiler_DEFAULT'
17256
17257 # A function that is used when there is no print builtin or printf.
17258 func_fallback_echo ()
17259 {
17260 eval 'cat <<_LTECHO_EOF
17261 \$1
17262 _LTECHO_EOF'
17263 }
17264
17265 # Quote evaled strings.
17266 for var in SHELL \
17267 ECHO \
17268 SED \
17269 GREP \
17270 EGREP \
17271 FGREP \
17272 LD \
17273 NM \
17274 LN_S \
17275 lt_SP2NL \
17276 lt_NL2SP \
17277 reload_flag \
17278 OBJDUMP \
17279 deplibs_check_method \
17280 file_magic_cmd \
17281 AR \
17282 AR_FLAGS \
17283 STRIP \
17284 RANLIB \
17285 CC \
17286 CFLAGS \
17287 compiler \
17288 lt_cv_sys_global_symbol_pipe \
17289 lt_cv_sys_global_symbol_to_cdecl \
17290 lt_cv_sys_global_symbol_to_c_name_address \
17291 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17292 lt_prog_compiler_no_builtin_flag \
17293 lt_prog_compiler_wl \
17294 lt_prog_compiler_pic \
17295 lt_prog_compiler_static \
17296 lt_cv_prog_compiler_c_o \
17297 need_locks \
17298 DSYMUTIL \
17299 NMEDIT \
17300 LIPO \
17301 OTOOL \
17302 OTOOL64 \
17303 shrext_cmds \
17304 export_dynamic_flag_spec \
17305 whole_archive_flag_spec \
17306 compiler_needs_object \
17307 with_gnu_ld \
17308 allow_undefined_flag \
17309 no_undefined_flag \
17310 hardcode_libdir_flag_spec \
17311 hardcode_libdir_flag_spec_ld \
17312 hardcode_libdir_separator \
17313 fix_srcfile_path \
17314 exclude_expsyms \
17315 include_expsyms \
17316 file_list_spec \
17317 variables_saved_for_relink \
17318 libname_spec \
17319 library_names_spec \
17320 soname_spec \
17321 install_override_mode \
17322 finish_eval \
17323 old_striplib \
17324 striplib; do
17325 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17326 *[\\\\\\\`\\"\\\$]*)
17327 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17328 ;;
17329 *)
17330 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17331 ;;
17332 esac
17333 done
17334
17335 # Double-quote double-evaled strings.
17336 for var in reload_cmds \
17337 old_postinstall_cmds \
17338 old_postuninstall_cmds \
17339 old_archive_cmds \
17340 extract_expsyms_cmds \
17341 old_archive_from_new_cmds \
17342 old_archive_from_expsyms_cmds \
17343 archive_cmds \
17344 archive_expsym_cmds \
17345 module_cmds \
17346 module_expsym_cmds \
17347 export_symbols_cmds \
17348 prelink_cmds \
17349 postinstall_cmds \
17350 postuninstall_cmds \
17351 finish_cmds \
17352 sys_lib_search_path_spec \
17353 sys_lib_dlsearch_path_spec; do
17354 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17355 *[\\\\\\\`\\"\\\$]*)
17356 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17357 ;;
17358 *)
17359 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17360 ;;
17361 esac
17362 done
17363
17364 ac_aux_dir='$ac_aux_dir'
17365 xsi_shell='$xsi_shell'
17366 lt_shell_append='$lt_shell_append'
17367
17368 # See if we are running on zsh, and set the options which allow our
17369 # commands through without removal of \ escapes INIT.
17370 if test -n "\${ZSH_VERSION+set}" ; then
17371 setopt NO_GLOB_SUBST
17372 fi
17373
17374
17375 PACKAGE='$PACKAGE'
17376 VERSION='$VERSION'
17377 TIMESTAMP='$TIMESTAMP'
17378 RM='$RM'
17379 ofile='$ofile'
17380
17381
17382
17383 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17384
17385 _ACEOF
17386
17387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17388
17389 # Handling of arguments.
17390 for ac_config_target in $ac_config_targets
17391 do
17392 case $ac_config_target in
17393 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17394 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17395 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17396 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17397 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17398 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17399 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17400 "bpf/.gdbinit") CONFIG_FILES="$CONFIG_FILES bpf/.gdbinit:common/gdbinit.in" ;;
17401 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17402 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17403 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17404 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17405 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17406 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17407 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17408 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17409 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17410 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17411 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17412 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17413 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17414 "mips/.gdbinit") CONFIG_FILES="$CONFIG_FILES mips/.gdbinit:common/gdbinit.in" ;;
17415 "mn10300/.gdbinit") CONFIG_FILES="$CONFIG_FILES mn10300/.gdbinit:common/gdbinit.in" ;;
17416 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17417 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17418 "or1k/.gdbinit") CONFIG_FILES="$CONFIG_FILES or1k/.gdbinit:common/gdbinit.in" ;;
17419 "ppc/.gdbinit") CONFIG_FILES="$CONFIG_FILES ppc/.gdbinit:common/gdbinit.in" ;;
17420 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17421 "riscv/.gdbinit") CONFIG_FILES="$CONFIG_FILES riscv/.gdbinit:common/gdbinit.in" ;;
17422 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17423 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17424 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17425 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17426 "v850/.gdbinit") CONFIG_FILES="$CONFIG_FILES v850/.gdbinit:common/gdbinit.in" ;;
17427 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17428 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17430 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17431
17432 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17433 esac
17434 done
17435
17436
17437 # If the user did not use the arguments to specify the items to instantiate,
17438 # then the envvar interface is used. Set only those that are not.
17439 # We use the long form for the default assignment because of an extremely
17440 # bizarre bug on SunOS 4.1.3.
17441 if $ac_need_defaults; then
17442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17445 fi
17446
17447 # Have a temporary directory for convenience. Make it in the build tree
17448 # simply because there is no reason against having it here, and in addition,
17449 # creating and moving files from /tmp can sometimes cause problems.
17450 # Hook for its removal unless debugging.
17451 # Note that there is a small window in which the directory will not be cleaned:
17452 # after its creation but before its name has been assigned to `$tmp'.
17453 $debug ||
17454 {
17455 tmp= ac_tmp=
17456 trap 'exit_status=$?
17457 : "${ac_tmp:=$tmp}"
17458 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17459 ' 0
17460 trap 'as_fn_exit 1' 1 2 13 15
17461 }
17462 # Create a (secure) tmp directory for tmp files.
17463
17464 {
17465 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17466 test -d "$tmp"
17467 } ||
17468 {
17469 tmp=./conf$$-$RANDOM
17470 (umask 077 && mkdir "$tmp")
17471 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17472 ac_tmp=$tmp
17473
17474 # Set up the scripts for CONFIG_FILES section.
17475 # No need to generate them if there are no CONFIG_FILES.
17476 # This happens for instance with `./config.status config.h'.
17477 if test -n "$CONFIG_FILES"; then
17478
17479
17480 ac_cr=`echo X | tr X '\015'`
17481 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17482 # But we know of no other shell where ac_cr would be empty at this
17483 # point, so we can use a bashism as a fallback.
17484 if test "x$ac_cr" = x; then
17485 eval ac_cr=\$\'\\r\'
17486 fi
17487 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17488 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17489 ac_cs_awk_cr='\\r'
17490 else
17491 ac_cs_awk_cr=$ac_cr
17492 fi
17493
17494 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17495 _ACEOF
17496
17497
17498 {
17499 echo "cat >conf$$subs.awk <<_ACEOF" &&
17500 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17501 echo "_ACEOF"
17502 } >conf$$subs.sh ||
17503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17505 ac_delim='%!_!# '
17506 for ac_last_try in false false false false false :; do
17507 . ./conf$$subs.sh ||
17508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17509
17510 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17511 if test $ac_delim_n = $ac_delim_num; then
17512 break
17513 elif $ac_last_try; then
17514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17515 else
17516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17517 fi
17518 done
17519 rm -f conf$$subs.sh
17520
17521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17522 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17523 _ACEOF
17524 sed -n '
17525 h
17526 s/^/S["/; s/!.*/"]=/
17527 p
17528 g
17529 s/^[^!]*!//
17530 :repl
17531 t repl
17532 s/'"$ac_delim"'$//
17533 t delim
17534 :nl
17535 h
17536 s/\(.\{148\}\)..*/\1/
17537 t more1
17538 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17539 p
17540 n
17541 b repl
17542 :more1
17543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17544 p
17545 g
17546 s/.\{148\}//
17547 t nl
17548 :delim
17549 h
17550 s/\(.\{148\}\)..*/\1/
17551 t more2
17552 s/["\\]/\\&/g; s/^/"/; s/$/"/
17553 p
17554 b
17555 :more2
17556 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17557 p
17558 g
17559 s/.\{148\}//
17560 t delim
17561 ' <conf$$subs.awk | sed '
17562 /^[^""]/{
17563 N
17564 s/\n//
17565 }
17566 ' >>$CONFIG_STATUS || ac_write_fail=1
17567 rm -f conf$$subs.awk
17568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569 _ACAWK
17570 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17571 for (key in S) S_is_set[key] = 1
17572 FS = "\a"
17573
17574 }
17575 {
17576 line = $ 0
17577 nfields = split(line, field, "@")
17578 substed = 0
17579 len = length(field[1])
17580 for (i = 2; i < nfields; i++) {
17581 key = field[i]
17582 keylen = length(key)
17583 if (S_is_set[key]) {
17584 value = S[key]
17585 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17586 len += length(value) + length(field[++i])
17587 substed = 1
17588 } else
17589 len += 1 + keylen
17590 }
17591
17592 print line
17593 }
17594
17595 _ACAWK
17596 _ACEOF
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17599 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17600 else
17601 cat
17602 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17603 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17604 _ACEOF
17605
17606 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17607 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17608 # trailing colons and then remove the whole line if VPATH becomes empty
17609 # (actually we leave an empty line to preserve line numbers).
17610 if test "x$srcdir" = x.; then
17611 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17612 h
17613 s///
17614 s/^/:/
17615 s/[ ]*$/:/
17616 s/:\$(srcdir):/:/g
17617 s/:\${srcdir}:/:/g
17618 s/:@srcdir@:/:/g
17619 s/^:*//
17620 s/:*$//
17621 x
17622 s/\(=[ ]*\).*/\1/
17623 G
17624 s/\n//
17625 s/^[^=]*=[ ]*$//
17626 }'
17627 fi
17628
17629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17630 fi # test -n "$CONFIG_FILES"
17631
17632 # Set up the scripts for CONFIG_HEADERS section.
17633 # No need to generate them if there are no CONFIG_HEADERS.
17634 # This happens for instance with `./config.status Makefile'.
17635 if test -n "$CONFIG_HEADERS"; then
17636 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17637 BEGIN {
17638 _ACEOF
17639
17640 # Transform confdefs.h into an awk script `defines.awk', embedded as
17641 # here-document in config.status, that substitutes the proper values into
17642 # config.h.in to produce config.h.
17643
17644 # Create a delimiter string that does not exist in confdefs.h, to ease
17645 # handling of long lines.
17646 ac_delim='%!_!# '
17647 for ac_last_try in false false :; do
17648 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17649 if test -z "$ac_tt"; then
17650 break
17651 elif $ac_last_try; then
17652 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17653 else
17654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17655 fi
17656 done
17657
17658 # For the awk script, D is an array of macro values keyed by name,
17659 # likewise P contains macro parameters if any. Preserve backslash
17660 # newline sequences.
17661
17662 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17663 sed -n '
17664 s/.\{148\}/&'"$ac_delim"'/g
17665 t rset
17666 :rset
17667 s/^[ ]*#[ ]*define[ ][ ]*/ /
17668 t def
17669 d
17670 :def
17671 s/\\$//
17672 t bsnl
17673 s/["\\]/\\&/g
17674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17675 D["\1"]=" \3"/p
17676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17677 d
17678 :bsnl
17679 s/["\\]/\\&/g
17680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17681 D["\1"]=" \3\\\\\\n"\\/p
17682 t cont
17683 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17684 t cont
17685 d
17686 :cont
17687 n
17688 s/.\{148\}/&'"$ac_delim"'/g
17689 t clear
17690 :clear
17691 s/\\$//
17692 t bsnlc
17693 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17694 d
17695 :bsnlc
17696 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17697 b cont
17698 ' <confdefs.h | sed '
17699 s/'"$ac_delim"'/"\\\
17700 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17701
17702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17703 for (key in D) D_is_set[key] = 1
17704 FS = "\a"
17705 }
17706 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17707 line = \$ 0
17708 split(line, arg, " ")
17709 if (arg[1] == "#") {
17710 defundef = arg[2]
17711 mac1 = arg[3]
17712 } else {
17713 defundef = substr(arg[1], 2)
17714 mac1 = arg[2]
17715 }
17716 split(mac1, mac2, "(") #)
17717 macro = mac2[1]
17718 prefix = substr(line, 1, index(line, defundef) - 1)
17719 if (D_is_set[macro]) {
17720 # Preserve the white space surrounding the "#".
17721 print prefix "define", macro P[macro] D[macro]
17722 next
17723 } else {
17724 # Replace #undef with comments. This is necessary, for example,
17725 # in the case of _POSIX_SOURCE, which is predefined and required
17726 # on some systems where configure will not decide to define it.
17727 if (defundef == "undef") {
17728 print "/*", prefix defundef, macro, "*/"
17729 next
17730 }
17731 }
17732 }
17733 { print }
17734 _ACAWK
17735 _ACEOF
17736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17737 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17738 fi # test -n "$CONFIG_HEADERS"
17739
17740
17741 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17742 shift
17743 for ac_tag
17744 do
17745 case $ac_tag in
17746 :[FHLC]) ac_mode=$ac_tag; continue;;
17747 esac
17748 case $ac_mode$ac_tag in
17749 :[FHL]*:*);;
17750 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17751 :[FH]-) ac_tag=-:-;;
17752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17753 esac
17754 ac_save_IFS=$IFS
17755 IFS=:
17756 set x $ac_tag
17757 IFS=$ac_save_IFS
17758 shift
17759 ac_file=$1
17760 shift
17761
17762 case $ac_mode in
17763 :L) ac_source=$1;;
17764 :[FH])
17765 ac_file_inputs=
17766 for ac_f
17767 do
17768 case $ac_f in
17769 -) ac_f="$ac_tmp/stdin";;
17770 *) # Look for the file first in the build tree, then in the source tree
17771 # (if the path is not absolute). The absolute path cannot be DOS-style,
17772 # because $ac_f cannot contain `:'.
17773 test -f "$ac_f" ||
17774 case $ac_f in
17775 [\\/$]*) false;;
17776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17777 esac ||
17778 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17779 esac
17780 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17781 as_fn_append ac_file_inputs " '$ac_f'"
17782 done
17783
17784 # Let's still pretend it is `configure' which instantiates (i.e., don't
17785 # use $as_me), people would be surprised to read:
17786 # /* config.h. Generated by config.status. */
17787 configure_input='Generated from '`
17788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17789 `' by configure.'
17790 if test x"$ac_file" != x-; then
17791 configure_input="$ac_file. $configure_input"
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17793 $as_echo "$as_me: creating $ac_file" >&6;}
17794 fi
17795 # Neutralize special characters interpreted by sed in replacement strings.
17796 case $configure_input in #(
17797 *\&* | *\|* | *\\* )
17798 ac_sed_conf_input=`$as_echo "$configure_input" |
17799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17800 *) ac_sed_conf_input=$configure_input;;
17801 esac
17802
17803 case $ac_tag in
17804 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17806 esac
17807 ;;
17808 esac
17809
17810 ac_dir=`$as_dirname -- "$ac_file" ||
17811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17812 X"$ac_file" : 'X\(//\)[^/]' \| \
17813 X"$ac_file" : 'X\(//\)$' \| \
17814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17815 $as_echo X"$ac_file" |
17816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17817 s//\1/
17818 q
17819 }
17820 /^X\(\/\/\)[^/].*/{
17821 s//\1/
17822 q
17823 }
17824 /^X\(\/\/\)$/{
17825 s//\1/
17826 q
17827 }
17828 /^X\(\/\).*/{
17829 s//\1/
17830 q
17831 }
17832 s/.*/./; q'`
17833 as_dir="$ac_dir"; as_fn_mkdir_p
17834 ac_builddir=.
17835
17836 case "$ac_dir" in
17837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17838 *)
17839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17840 # A ".." for each directory in $ac_dir_suffix.
17841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17842 case $ac_top_builddir_sub in
17843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17845 esac ;;
17846 esac
17847 ac_abs_top_builddir=$ac_pwd
17848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17849 # for backward compatibility:
17850 ac_top_builddir=$ac_top_build_prefix
17851
17852 case $srcdir in
17853 .) # We are building in place.
17854 ac_srcdir=.
17855 ac_top_srcdir=$ac_top_builddir_sub
17856 ac_abs_top_srcdir=$ac_pwd ;;
17857 [\\/]* | ?:[\\/]* ) # Absolute name.
17858 ac_srcdir=$srcdir$ac_dir_suffix;
17859 ac_top_srcdir=$srcdir
17860 ac_abs_top_srcdir=$srcdir ;;
17861 *) # Relative name.
17862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17863 ac_top_srcdir=$ac_top_build_prefix$srcdir
17864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17865 esac
17866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17867
17868
17869 case $ac_mode in
17870 :F)
17871 #
17872 # CONFIG_FILE
17873 #
17874
17875 case $INSTALL in
17876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17877 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17878 esac
17879 ac_MKDIR_P=$MKDIR_P
17880 case $MKDIR_P in
17881 [\\/$]* | ?:[\\/]* ) ;;
17882 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17883 esac
17884 _ACEOF
17885
17886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17887 # If the template does not know about datarootdir, expand it.
17888 # FIXME: This hack should be removed a few years after 2.60.
17889 ac_datarootdir_hack=; ac_datarootdir_seen=
17890 ac_sed_dataroot='
17891 /datarootdir/ {
17892 p
17893 q
17894 }
17895 /@datadir@/p
17896 /@docdir@/p
17897 /@infodir@/p
17898 /@localedir@/p
17899 /@mandir@/p'
17900 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17901 *datarootdir*) ac_datarootdir_seen=yes;;
17902 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17904 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17905 _ACEOF
17906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17907 ac_datarootdir_hack='
17908 s&@datadir@&$datadir&g
17909 s&@docdir@&$docdir&g
17910 s&@infodir@&$infodir&g
17911 s&@localedir@&$localedir&g
17912 s&@mandir@&$mandir&g
17913 s&\\\${datarootdir}&$datarootdir&g' ;;
17914 esac
17915 _ACEOF
17916
17917 # Neutralize VPATH when `$srcdir' = `.'.
17918 # Shell code in configure.ac might set extrasub.
17919 # FIXME: do we really want to maintain this feature?
17920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17921 ac_sed_extra="$ac_vpsub
17922 $extrasub
17923 _ACEOF
17924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17925 :t
17926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17927 s|@configure_input@|$ac_sed_conf_input|;t t
17928 s&@top_builddir@&$ac_top_builddir_sub&;t t
17929 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17930 s&@srcdir@&$ac_srcdir&;t t
17931 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17932 s&@top_srcdir@&$ac_top_srcdir&;t t
17933 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17934 s&@builddir@&$ac_builddir&;t t
17935 s&@abs_builddir@&$ac_abs_builddir&;t t
17936 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17937 s&@INSTALL@&$ac_INSTALL&;t t
17938 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17939 $ac_datarootdir_hack
17940 "
17941 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17942 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17943
17944 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17945 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17947 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17949 which seems to be undefined. Please make sure it is defined" >&5
17950 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17951 which seems to be undefined. Please make sure it is defined" >&2;}
17952
17953 rm -f "$ac_tmp/stdin"
17954 case $ac_file in
17955 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17956 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17957 esac \
17958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17959 ;;
17960 :H)
17961 #
17962 # CONFIG_HEADER
17963 #
17964 if test x"$ac_file" != x-; then
17965 {
17966 $as_echo "/* $configure_input */" \
17967 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17968 } >"$ac_tmp/config.h" \
17969 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17970 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17972 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17973 else
17974 rm -f "$ac_file"
17975 mv "$ac_tmp/config.h" "$ac_file" \
17976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17977 fi
17978 else
17979 $as_echo "/* $configure_input */" \
17980 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17981 || as_fn_error $? "could not create -" "$LINENO" 5
17982 fi
17983 # Compute "$ac_file"'s index in $config_headers.
17984 _am_arg="$ac_file"
17985 _am_stamp_count=1
17986 for _am_header in $config_headers :; do
17987 case $_am_header in
17988 $_am_arg | $_am_arg:* )
17989 break ;;
17990 * )
17991 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17992 esac
17993 done
17994 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17995 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17996 X"$_am_arg" : 'X\(//\)[^/]' \| \
17997 X"$_am_arg" : 'X\(//\)$' \| \
17998 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17999 $as_echo X"$_am_arg" |
18000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18001 s//\1/
18002 q
18003 }
18004 /^X\(\/\/\)[^/].*/{
18005 s//\1/
18006 q
18007 }
18008 /^X\(\/\/\)$/{
18009 s//\1/
18010 q
18011 }
18012 /^X\(\/\).*/{
18013 s//\1/
18014 q
18015 }
18016 s/.*/./; q'`/stamp-h$_am_stamp_count
18017 ;;
18018
18019 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18020 $as_echo "$as_me: executing $ac_file commands" >&6;}
18021 ;;
18022 esac
18023
18024
18025 case $ac_file$ac_mode in
18026 "libtool":C)
18027
18028 # See if we are running on zsh, and set the options which allow our
18029 # commands through without removal of \ escapes.
18030 if test -n "${ZSH_VERSION+set}" ; then
18031 setopt NO_GLOB_SUBST
18032 fi
18033
18034 cfgfile="${ofile}T"
18035 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18036 $RM "$cfgfile"
18037
18038 cat <<_LT_EOF >> "$cfgfile"
18039 #! $SHELL
18040
18041 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18042 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18043 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18044 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18045 #
18046 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18047 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18048 # Written by Gordon Matzigkeit, 1996
18049 #
18050 # This file is part of GNU Libtool.
18051 #
18052 # GNU Libtool is free software; you can redistribute it and/or
18053 # modify it under the terms of the GNU General Public License as
18054 # published by the Free Software Foundation; either version 2 of
18055 # the License, or (at your option) any later version.
18056 #
18057 # As a special exception to the GNU General Public License,
18058 # if you distribute this file as part of a program or library that
18059 # is built using GNU Libtool, you may include this file under the
18060 # same distribution terms that you use for the rest of that program.
18061 #
18062 # GNU Libtool is distributed in the hope that it will be useful,
18063 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18064 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18065 # GNU General Public License for more details.
18066 #
18067 # You should have received a copy of the GNU General Public License
18068 # along with GNU Libtool; see the file COPYING. If not, a copy
18069 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18070 # obtained by writing to the Free Software Foundation, Inc.,
18071 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18072
18073
18074 # The names of the tagged configurations supported by this script.
18075 available_tags=""
18076
18077 # ### BEGIN LIBTOOL CONFIG
18078
18079 # Which release of libtool.m4 was used?
18080 macro_version=$macro_version
18081 macro_revision=$macro_revision
18082
18083 # Whether or not to build shared libraries.
18084 build_libtool_libs=$enable_shared
18085
18086 # Whether or not to build static libraries.
18087 build_old_libs=$enable_static
18088
18089 # What type of objects to build.
18090 pic_mode=$pic_mode
18091
18092 # Whether or not to optimize for fast installation.
18093 fast_install=$enable_fast_install
18094
18095 # Shell to use when invoking shell scripts.
18096 SHELL=$lt_SHELL
18097
18098 # An echo program that protects backslashes.
18099 ECHO=$lt_ECHO
18100
18101 # The host system.
18102 host_alias=$host_alias
18103 host=$host
18104 host_os=$host_os
18105
18106 # The build system.
18107 build_alias=$build_alias
18108 build=$build
18109 build_os=$build_os
18110
18111 # A sed program that does not truncate output.
18112 SED=$lt_SED
18113
18114 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18115 Xsed="\$SED -e 1s/^X//"
18116
18117 # A grep program that handles long lines.
18118 GREP=$lt_GREP
18119
18120 # An ERE matcher.
18121 EGREP=$lt_EGREP
18122
18123 # A literal string matcher.
18124 FGREP=$lt_FGREP
18125
18126 # A BSD- or MS-compatible name lister.
18127 NM=$lt_NM
18128
18129 # Whether we need soft or hard links.
18130 LN_S=$lt_LN_S
18131
18132 # What is the maximum length of a command?
18133 max_cmd_len=$max_cmd_len
18134
18135 # Object file suffix (normally "o").
18136 objext=$ac_objext
18137
18138 # Executable file suffix (normally "").
18139 exeext=$exeext
18140
18141 # whether the shell understands "unset".
18142 lt_unset=$lt_unset
18143
18144 # turn spaces into newlines.
18145 SP2NL=$lt_lt_SP2NL
18146
18147 # turn newlines into spaces.
18148 NL2SP=$lt_lt_NL2SP
18149
18150 # An object symbol dumper.
18151 OBJDUMP=$lt_OBJDUMP
18152
18153 # Method to check whether dependent libraries are shared objects.
18154 deplibs_check_method=$lt_deplibs_check_method
18155
18156 # Command to use when deplibs_check_method == "file_magic".
18157 file_magic_cmd=$lt_file_magic_cmd
18158
18159 # The archiver.
18160 AR=$lt_AR
18161 AR_FLAGS=$lt_AR_FLAGS
18162
18163 # A symbol stripping program.
18164 STRIP=$lt_STRIP
18165
18166 # Commands used to install an old-style archive.
18167 RANLIB=$lt_RANLIB
18168 old_postinstall_cmds=$lt_old_postinstall_cmds
18169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18170
18171 # Whether to use a lock for old archive extraction.
18172 lock_old_archive_extraction=$lock_old_archive_extraction
18173
18174 # A C compiler.
18175 LTCC=$lt_CC
18176
18177 # LTCC compiler flags.
18178 LTCFLAGS=$lt_CFLAGS
18179
18180 # Take the output of nm and produce a listing of raw symbols and C names.
18181 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18182
18183 # Transform the output of nm in a proper C declaration.
18184 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18185
18186 # Transform the output of nm in a C name address pair.
18187 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18188
18189 # Transform the output of nm in a C name address pair when lib prefix is needed.
18190 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18191
18192 # The name of the directory that contains temporary libtool files.
18193 objdir=$objdir
18194
18195 # Used to examine libraries when file_magic_cmd begins with "file".
18196 MAGIC_CMD=$MAGIC_CMD
18197
18198 # Must we lock files when doing compilation?
18199 need_locks=$lt_need_locks
18200
18201 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18202 DSYMUTIL=$lt_DSYMUTIL
18203
18204 # Tool to change global to local symbols on Mac OS X.
18205 NMEDIT=$lt_NMEDIT
18206
18207 # Tool to manipulate fat objects and archives on Mac OS X.
18208 LIPO=$lt_LIPO
18209
18210 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18211 OTOOL=$lt_OTOOL
18212
18213 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18214 OTOOL64=$lt_OTOOL64
18215
18216 # Old archive suffix (normally "a").
18217 libext=$libext
18218
18219 # Shared library suffix (normally ".so").
18220 shrext_cmds=$lt_shrext_cmds
18221
18222 # The commands to extract the exported symbol list from a shared archive.
18223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18224
18225 # Variables whose values should be saved in libtool wrapper scripts and
18226 # restored at link time.
18227 variables_saved_for_relink=$lt_variables_saved_for_relink
18228
18229 # Do we need the "lib" prefix for modules?
18230 need_lib_prefix=$need_lib_prefix
18231
18232 # Do we need a version for libraries?
18233 need_version=$need_version
18234
18235 # Library versioning type.
18236 version_type=$version_type
18237
18238 # Shared library runtime path variable.
18239 runpath_var=$runpath_var
18240
18241 # Shared library path variable.
18242 shlibpath_var=$shlibpath_var
18243
18244 # Is shlibpath searched before the hard-coded library search path?
18245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18246
18247 # Format of library name prefix.
18248 libname_spec=$lt_libname_spec
18249
18250 # List of archive names. First name is the real one, the rest are links.
18251 # The last name is the one that the linker finds with -lNAME
18252 library_names_spec=$lt_library_names_spec
18253
18254 # The coded name of the library, if different from the real name.
18255 soname_spec=$lt_soname_spec
18256
18257 # Permission mode override for installation of shared libraries.
18258 install_override_mode=$lt_install_override_mode
18259
18260 # Command to use after installation of a shared archive.
18261 postinstall_cmds=$lt_postinstall_cmds
18262
18263 # Command to use after uninstallation of a shared archive.
18264 postuninstall_cmds=$lt_postuninstall_cmds
18265
18266 # Commands used to finish a libtool library installation in a directory.
18267 finish_cmds=$lt_finish_cmds
18268
18269 # As "finish_cmds", except a single script fragment to be evaled but
18270 # not shown.
18271 finish_eval=$lt_finish_eval
18272
18273 # Whether we should hardcode library paths into libraries.
18274 hardcode_into_libs=$hardcode_into_libs
18275
18276 # Compile-time system search path for libraries.
18277 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18278
18279 # Run-time system search path for libraries.
18280 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18281
18282 # Whether dlopen is supported.
18283 dlopen_support=$enable_dlopen
18284
18285 # Whether dlopen of programs is supported.
18286 dlopen_self=$enable_dlopen_self
18287
18288 # Whether dlopen of statically linked programs is supported.
18289 dlopen_self_static=$enable_dlopen_self_static
18290
18291 # Commands to strip libraries.
18292 old_striplib=$lt_old_striplib
18293 striplib=$lt_striplib
18294
18295
18296 # The linker used to build libraries.
18297 LD=$lt_LD
18298
18299 # How to create reloadable object files.
18300 reload_flag=$lt_reload_flag
18301 reload_cmds=$lt_reload_cmds
18302
18303 # Commands used to build an old-style archive.
18304 old_archive_cmds=$lt_old_archive_cmds
18305
18306 # A language specific compiler.
18307 CC=$lt_compiler
18308
18309 # Is the compiler the GNU compiler?
18310 with_gcc=$GCC
18311
18312 # Compiler flag to turn off builtin functions.
18313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18314
18315 # How to pass a linker flag through the compiler.
18316 wl=$lt_lt_prog_compiler_wl
18317
18318 # Additional compiler flags for building library objects.
18319 pic_flag=$lt_lt_prog_compiler_pic
18320
18321 # Compiler flag to prevent dynamic linking.
18322 link_static_flag=$lt_lt_prog_compiler_static
18323
18324 # Does compiler simultaneously support -c and -o options?
18325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18326
18327 # Whether or not to add -lc for building shared libraries.
18328 build_libtool_need_lc=$archive_cmds_need_lc
18329
18330 # Whether or not to disallow shared libs when runtime libs are static.
18331 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18332
18333 # Compiler flag to allow reflexive dlopens.
18334 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18335
18336 # Compiler flag to generate shared objects directly from archives.
18337 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18338
18339 # Whether the compiler copes with passing no objects directly.
18340 compiler_needs_object=$lt_compiler_needs_object
18341
18342 # Create an old-style archive from a shared archive.
18343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18344
18345 # Create a temporary old-style archive to link instead of a shared archive.
18346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18347
18348 # Commands used to build a shared archive.
18349 archive_cmds=$lt_archive_cmds
18350 archive_expsym_cmds=$lt_archive_expsym_cmds
18351
18352 # Commands used to build a loadable module if different from building
18353 # a shared archive.
18354 module_cmds=$lt_module_cmds
18355 module_expsym_cmds=$lt_module_expsym_cmds
18356
18357 # Whether we are building with GNU ld or not.
18358 with_gnu_ld=$lt_with_gnu_ld
18359
18360 # Flag that allows shared libraries with undefined symbols to be built.
18361 allow_undefined_flag=$lt_allow_undefined_flag
18362
18363 # Flag that enforces no undefined symbols.
18364 no_undefined_flag=$lt_no_undefined_flag
18365
18366 # Flag to hardcode \$libdir into a binary during linking.
18367 # This must work even if \$libdir does not exist
18368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18369
18370 # If ld is used when linking, flag to hardcode \$libdir into a binary
18371 # during linking. This must work even if \$libdir does not exist.
18372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18373
18374 # Whether we need a single "-rpath" flag with a separated argument.
18375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18376
18377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18378 # DIR into the resulting binary.
18379 hardcode_direct=$hardcode_direct
18380
18381 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18382 # DIR into the resulting binary and the resulting library dependency is
18383 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18384 # library is relocated.
18385 hardcode_direct_absolute=$hardcode_direct_absolute
18386
18387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18388 # into the resulting binary.
18389 hardcode_minus_L=$hardcode_minus_L
18390
18391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18392 # into the resulting binary.
18393 hardcode_shlibpath_var=$hardcode_shlibpath_var
18394
18395 # Set to "yes" if building a shared library automatically hardcodes DIR
18396 # into the library and all subsequent libraries and executables linked
18397 # against it.
18398 hardcode_automatic=$hardcode_automatic
18399
18400 # Set to yes if linker adds runtime paths of dependent libraries
18401 # to runtime path list.
18402 inherit_rpath=$inherit_rpath
18403
18404 # Whether libtool must link a program against all its dependency libraries.
18405 link_all_deplibs=$link_all_deplibs
18406
18407 # Fix the shell variable \$srcfile for the compiler.
18408 fix_srcfile_path=$lt_fix_srcfile_path
18409
18410 # Set to "yes" if exported symbols are required.
18411 always_export_symbols=$always_export_symbols
18412
18413 # The commands to list exported symbols.
18414 export_symbols_cmds=$lt_export_symbols_cmds
18415
18416 # Symbols that should not be listed in the preloaded symbols.
18417 exclude_expsyms=$lt_exclude_expsyms
18418
18419 # Symbols that must always be exported.
18420 include_expsyms=$lt_include_expsyms
18421
18422 # Commands necessary for linking programs (against libraries) with templates.
18423 prelink_cmds=$lt_prelink_cmds
18424
18425 # Specify filename containing input files.
18426 file_list_spec=$lt_file_list_spec
18427
18428 # How to hardcode a shared library path into an executable.
18429 hardcode_action=$hardcode_action
18430
18431 # ### END LIBTOOL CONFIG
18432
18433 _LT_EOF
18434
18435 case $host_os in
18436 aix3*)
18437 cat <<\_LT_EOF >> "$cfgfile"
18438 # AIX sometimes has problems with the GCC collect2 program. For some
18439 # reason, if we set the COLLECT_NAMES environment variable, the problems
18440 # vanish in a puff of smoke.
18441 if test "X${COLLECT_NAMES+set}" != Xset; then
18442 COLLECT_NAMES=
18443 export COLLECT_NAMES
18444 fi
18445 _LT_EOF
18446 ;;
18447 esac
18448
18449
18450 ltmain="$ac_aux_dir/ltmain.sh"
18451
18452
18453 # We use sed instead of cat because bash on DJGPP gets confused if
18454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18455 # text mode, it properly converts lines to CR/LF. This bash problem
18456 # is reportedly fixed, but why not run on old versions too?
18457 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18458 || (rm -f "$cfgfile"; exit 1)
18459
18460 case $xsi_shell in
18461 yes)
18462 cat << \_LT_EOF >> "$cfgfile"
18463
18464 # func_dirname file append nondir_replacement
18465 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18466 # otherwise set result to NONDIR_REPLACEMENT.
18467 func_dirname ()
18468 {
18469 case ${1} in
18470 */*) func_dirname_result="${1%/*}${2}" ;;
18471 * ) func_dirname_result="${3}" ;;
18472 esac
18473 }
18474
18475 # func_basename file
18476 func_basename ()
18477 {
18478 func_basename_result="${1##*/}"
18479 }
18480
18481 # func_dirname_and_basename file append nondir_replacement
18482 # perform func_basename and func_dirname in a single function
18483 # call:
18484 # dirname: Compute the dirname of FILE. If nonempty,
18485 # add APPEND to the result, otherwise set result
18486 # to NONDIR_REPLACEMENT.
18487 # value returned in "$func_dirname_result"
18488 # basename: Compute filename of FILE.
18489 # value retuned in "$func_basename_result"
18490 # Implementation must be kept synchronized with func_dirname
18491 # and func_basename. For efficiency, we do not delegate to
18492 # those functions but instead duplicate the functionality here.
18493 func_dirname_and_basename ()
18494 {
18495 case ${1} in
18496 */*) func_dirname_result="${1%/*}${2}" ;;
18497 * ) func_dirname_result="${3}" ;;
18498 esac
18499 func_basename_result="${1##*/}"
18500 }
18501
18502 # func_stripname prefix suffix name
18503 # strip PREFIX and SUFFIX off of NAME.
18504 # PREFIX and SUFFIX must not contain globbing or regex special
18505 # characters, hashes, percent signs, but SUFFIX may contain a leading
18506 # dot (in which case that matches only a dot).
18507 func_stripname ()
18508 {
18509 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18510 # positional parameters, so assign one to ordinary parameter first.
18511 func_stripname_result=${3}
18512 func_stripname_result=${func_stripname_result#"${1}"}
18513 func_stripname_result=${func_stripname_result%"${2}"}
18514 }
18515
18516 # func_opt_split
18517 func_opt_split ()
18518 {
18519 func_opt_split_opt=${1%%=*}
18520 func_opt_split_arg=${1#*=}
18521 }
18522
18523 # func_lo2o object
18524 func_lo2o ()
18525 {
18526 case ${1} in
18527 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18528 *) func_lo2o_result=${1} ;;
18529 esac
18530 }
18531
18532 # func_xform libobj-or-source
18533 func_xform ()
18534 {
18535 func_xform_result=${1%.*}.lo
18536 }
18537
18538 # func_arith arithmetic-term...
18539 func_arith ()
18540 {
18541 func_arith_result=$(( $* ))
18542 }
18543
18544 # func_len string
18545 # STRING may not start with a hyphen.
18546 func_len ()
18547 {
18548 func_len_result=${#1}
18549 }
18550
18551 _LT_EOF
18552 ;;
18553 *) # Bourne compatible functions.
18554 cat << \_LT_EOF >> "$cfgfile"
18555
18556 # func_dirname file append nondir_replacement
18557 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18558 # otherwise set result to NONDIR_REPLACEMENT.
18559 func_dirname ()
18560 {
18561 # Extract subdirectory from the argument.
18562 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18563 if test "X$func_dirname_result" = "X${1}"; then
18564 func_dirname_result="${3}"
18565 else
18566 func_dirname_result="$func_dirname_result${2}"
18567 fi
18568 }
18569
18570 # func_basename file
18571 func_basename ()
18572 {
18573 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18574 }
18575
18576
18577 # func_stripname prefix suffix name
18578 # strip PREFIX and SUFFIX off of NAME.
18579 # PREFIX and SUFFIX must not contain globbing or regex special
18580 # characters, hashes, percent signs, but SUFFIX may contain a leading
18581 # dot (in which case that matches only a dot).
18582 # func_strip_suffix prefix name
18583 func_stripname ()
18584 {
18585 case ${2} in
18586 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18587 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18588 esac
18589 }
18590
18591 # sed scripts:
18592 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18593 my_sed_long_arg='1s/^-[^=]*=//'
18594
18595 # func_opt_split
18596 func_opt_split ()
18597 {
18598 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18599 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18600 }
18601
18602 # func_lo2o object
18603 func_lo2o ()
18604 {
18605 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18606 }
18607
18608 # func_xform libobj-or-source
18609 func_xform ()
18610 {
18611 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18612 }
18613
18614 # func_arith arithmetic-term...
18615 func_arith ()
18616 {
18617 func_arith_result=`expr "$@"`
18618 }
18619
18620 # func_len string
18621 # STRING may not start with a hyphen.
18622 func_len ()
18623 {
18624 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18625 }
18626
18627 _LT_EOF
18628 esac
18629
18630 case $lt_shell_append in
18631 yes)
18632 cat << \_LT_EOF >> "$cfgfile"
18633
18634 # func_append var value
18635 # Append VALUE to the end of shell variable VAR.
18636 func_append ()
18637 {
18638 eval "$1+=\$2"
18639 }
18640 _LT_EOF
18641 ;;
18642 *)
18643 cat << \_LT_EOF >> "$cfgfile"
18644
18645 # func_append var value
18646 # Append VALUE to the end of shell variable VAR.
18647 func_append ()
18648 {
18649 eval "$1=\$$1\$2"
18650 }
18651
18652 _LT_EOF
18653 ;;
18654 esac
18655
18656
18657 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18658 || (rm -f "$cfgfile"; exit 1)
18659
18660 mv -f "$cfgfile" "$ofile" ||
18661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18662 chmod +x "$ofile"
18663
18664 ;;
18665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18666 # Older Autoconf quotes --file arguments for eval, but not when files
18667 # are listed without --file. Let's play safe and only enable the eval
18668 # if we detect the quoting.
18669 case $CONFIG_FILES in
18670 *\'*) eval set x "$CONFIG_FILES" ;;
18671 *) set x $CONFIG_FILES ;;
18672 esac
18673 shift
18674 for mf
18675 do
18676 # Strip MF so we end up with the name of the file.
18677 mf=`echo "$mf" | sed -e 's/:.*$//'`
18678 # Check whether this is an Automake generated Makefile or not.
18679 # We used to match only the files named 'Makefile.in', but
18680 # some people rename them; so instead we look at the file content.
18681 # Grep'ing the first line is not enough: some people post-process
18682 # each Makefile.in and add a new line on top of each file to say so.
18683 # Grep'ing the whole file is not good either: AIX grep has a line
18684 # limit of 2048, but all sed's we know have understand at least 4000.
18685 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18686 dirpart=`$as_dirname -- "$mf" ||
18687 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18688 X"$mf" : 'X\(//\)[^/]' \| \
18689 X"$mf" : 'X\(//\)$' \| \
18690 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18691 $as_echo X"$mf" |
18692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18693 s//\1/
18694 q
18695 }
18696 /^X\(\/\/\)[^/].*/{
18697 s//\1/
18698 q
18699 }
18700 /^X\(\/\/\)$/{
18701 s//\1/
18702 q
18703 }
18704 /^X\(\/\).*/{
18705 s//\1/
18706 q
18707 }
18708 s/.*/./; q'`
18709 else
18710 continue
18711 fi
18712 # Extract the definition of DEPDIR, am__include, and am__quote
18713 # from the Makefile without running 'make'.
18714 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18715 test -z "$DEPDIR" && continue
18716 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18717 test -z "$am__include" && continue
18718 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18719 # Find all dependency output files, they are included files with
18720 # $(DEPDIR) in their names. We invoke sed twice because it is the
18721 # simplest approach to changing $(DEPDIR) to its actual value in the
18722 # expansion.
18723 for file in `sed -n "
18724 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18726 # Make sure the directory exists.
18727 test -f "$dirpart/$file" && continue
18728 fdir=`$as_dirname -- "$file" ||
18729 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18730 X"$file" : 'X\(//\)[^/]' \| \
18731 X"$file" : 'X\(//\)$' \| \
18732 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18733 $as_echo X"$file" |
18734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18735 s//\1/
18736 q
18737 }
18738 /^X\(\/\/\)[^/].*/{
18739 s//\1/
18740 q
18741 }
18742 /^X\(\/\/\)$/{
18743 s//\1/
18744 q
18745 }
18746 /^X\(\/\).*/{
18747 s//\1/
18748 q
18749 }
18750 s/.*/./; q'`
18751 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18752 # echo "creating $dirpart/$file"
18753 echo '# dummy' > "$dirpart/$file"
18754 done
18755 done
18756 }
18757 ;;
18758
18759 esac
18760 done # for ac_tag
18761
18762
18763 as_fn_exit 0
18764 _ACEOF
18765 ac_clean_files=$ac_clean_files_save
18766
18767 test $ac_write_fail = 0 ||
18768 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18769
18770
18771 # configure is writing to config.log, and then calls config.status.
18772 # config.status does its own redirection, appending to config.log.
18773 # Unfortunately, on DOS this fails, as config.log is still kept open
18774 # by configure, so config.status won't be able to write to it; its
18775 # output is simply discarded. So we exec the FD to /dev/null,
18776 # effectively closing config.log, so it can be properly (re)opened and
18777 # appended to by config.status. When coming back to configure, we
18778 # need to make the FD available again.
18779 if test "$no_create" != yes; then
18780 ac_cs_success=:
18781 ac_config_status_args=
18782 test "$silent" = yes &&
18783 ac_config_status_args="$ac_config_status_args --quiet"
18784 exec 5>/dev/null
18785 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18786 exec 5>>config.log
18787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18788 # would make configure fail if this is the last instruction.
18789 $ac_cs_success || as_fn_exit 1
18790 fi
18791
18792 #
18793 # CONFIG_SUBDIRS section.
18794 #
18795 if test "$no_recursion" != yes; then
18796
18797 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18798 # so they do not pile up.
18799 ac_sub_configure_args=
18800 ac_prev=
18801 eval "set x $ac_configure_args"
18802 shift
18803 for ac_arg
18804 do
18805 if test -n "$ac_prev"; then
18806 ac_prev=
18807 continue
18808 fi
18809 case $ac_arg in
18810 -cache-file | --cache-file | --cache-fil | --cache-fi \
18811 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18812 ac_prev=cache_file ;;
18813 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18814 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18815 | --c=*)
18816 ;;
18817 --config-cache | -C)
18818 ;;
18819 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18820 ac_prev=srcdir ;;
18821 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18822 ;;
18823 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18824 ac_prev=prefix ;;
18825 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18826 ;;
18827 --disable-option-checking)
18828 ;;
18829 *)
18830 case $ac_arg in
18831 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18832 esac
18833 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18834 esac
18835 done
18836
18837 # Always prepend --prefix to ensure using the same prefix
18838 # in subdir configurations.
18839 ac_arg="--prefix=$prefix"
18840 case $ac_arg in
18841 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18842 esac
18843 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18844
18845 # Pass --silent
18846 if test "$silent" = yes; then
18847 ac_sub_configure_args="--silent $ac_sub_configure_args"
18848 fi
18849
18850 # Always prepend --disable-option-checking to silence warnings, since
18851 # different subdirs can have different --enable and --with options.
18852 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18853
18854 ac_popdir=`pwd`
18855 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18856
18857 # Do not complain, so a configure script can configure whichever
18858 # parts of a large source tree are present.
18859 test -d "$srcdir/$ac_dir" || continue
18860
18861 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18862 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18863 $as_echo "$ac_msg" >&6
18864 as_dir="$ac_dir"; as_fn_mkdir_p
18865 ac_builddir=.
18866
18867 case "$ac_dir" in
18868 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18869 *)
18870 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18871 # A ".." for each directory in $ac_dir_suffix.
18872 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18873 case $ac_top_builddir_sub in
18874 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18875 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18876 esac ;;
18877 esac
18878 ac_abs_top_builddir=$ac_pwd
18879 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18880 # for backward compatibility:
18881 ac_top_builddir=$ac_top_build_prefix
18882
18883 case $srcdir in
18884 .) # We are building in place.
18885 ac_srcdir=.
18886 ac_top_srcdir=$ac_top_builddir_sub
18887 ac_abs_top_srcdir=$ac_pwd ;;
18888 [\\/]* | ?:[\\/]* ) # Absolute name.
18889 ac_srcdir=$srcdir$ac_dir_suffix;
18890 ac_top_srcdir=$srcdir
18891 ac_abs_top_srcdir=$srcdir ;;
18892 *) # Relative name.
18893 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18894 ac_top_srcdir=$ac_top_build_prefix$srcdir
18895 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18896 esac
18897 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18898
18899
18900 cd "$ac_dir"
18901
18902 # Check for guested configure; otherwise get Cygnus style configure.
18903 if test -f "$ac_srcdir/configure.gnu"; then
18904 ac_sub_configure=$ac_srcdir/configure.gnu
18905 elif test -f "$ac_srcdir/configure"; then
18906 ac_sub_configure=$ac_srcdir/configure
18907 elif test -f "$ac_srcdir/configure.in"; then
18908 # This should be Cygnus configure.
18909 ac_sub_configure=$ac_aux_dir/configure
18910 else
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18912 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18913 ac_sub_configure=
18914 fi
18915
18916 # The recursion is here.
18917 if test -n "$ac_sub_configure"; then
18918 # Make the cache file name correct relative to the subdirectory.
18919 case $cache_file in
18920 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18921 *) # Relative name.
18922 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18923 esac
18924
18925 { $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
18926 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18927 # The eval makes quoting arguments work.
18928 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18929 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18930 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18931 fi
18932
18933 cd "$ac_popdir"
18934 done
18935 fi
18936 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18938 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18939 fi
18940