sim: Check known getopt definition existence
[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_FRV_TRAPDUMP_FLAGS
643 sim_float
644 sim_bitsize
645 SIM_INLINE
646 sim_hw_sockser
647 sim_hw_cflags
648 SIM_ENABLE_HW_FALSE
649 SIM_ENABLE_HW_TRUE
650 cgen
651 cgendir
652 CGEN_MAINT
653 ENABLE_SIM_FALSE
654 ENABLE_SIM_TRUE
655 SIM_ENABLE_IGEN_FALSE
656 SIM_ENABLE_IGEN_TRUE
657 CC_FOR_TARGET_EXAMPLE_SYNACOR
658 LD_FOR_TARGET_EXAMPLE_SYNACOR
659 AS_FOR_TARGET_EXAMPLE_SYNACOR
660 SIM_ENABLE_ARCH_v850_FALSE
661 SIM_ENABLE_ARCH_v850_TRUE
662 CC_FOR_TARGET_V850
663 LD_FOR_TARGET_V850
664 AS_FOR_TARGET_V850
665 SIM_ENABLE_ARCH_erc32_FALSE
666 SIM_ENABLE_ARCH_erc32_TRUE
667 CC_FOR_TARGET_ERC32
668 LD_FOR_TARGET_ERC32
669 AS_FOR_TARGET_ERC32
670 SIM_ENABLE_ARCH_sh_FALSE
671 SIM_ENABLE_ARCH_sh_TRUE
672 CC_FOR_TARGET_SH
673 LD_FOR_TARGET_SH
674 AS_FOR_TARGET_SH
675 SIM_ENABLE_ARCH_rx_FALSE
676 SIM_ENABLE_ARCH_rx_TRUE
677 CC_FOR_TARGET_RX
678 LD_FOR_TARGET_RX
679 AS_FOR_TARGET_RX
680 SIM_ENABLE_ARCH_rl78_FALSE
681 SIM_ENABLE_ARCH_rl78_TRUE
682 CC_FOR_TARGET_RL78
683 LD_FOR_TARGET_RL78
684 AS_FOR_TARGET_RL78
685 SIM_ENABLE_ARCH_riscv_FALSE
686 SIM_ENABLE_ARCH_riscv_TRUE
687 CC_FOR_TARGET_RISCV
688 LD_FOR_TARGET_RISCV
689 AS_FOR_TARGET_RISCV
690 SIM_ENABLE_ARCH_pru_FALSE
691 SIM_ENABLE_ARCH_pru_TRUE
692 CC_FOR_TARGET_PRU
693 LD_FOR_TARGET_PRU
694 AS_FOR_TARGET_PRU
695 SIM_ENABLE_ARCH_ppc_FALSE
696 SIM_ENABLE_ARCH_ppc_TRUE
697 CC_FOR_TARGET_PPC
698 LD_FOR_TARGET_PPC
699 AS_FOR_TARGET_PPC
700 SIM_ENABLE_ARCH_or1k_FALSE
701 SIM_ENABLE_ARCH_or1k_TRUE
702 CC_FOR_TARGET_OR1K
703 LD_FOR_TARGET_OR1K
704 AS_FOR_TARGET_OR1K
705 SIM_ENABLE_ARCH_msp430_FALSE
706 SIM_ENABLE_ARCH_msp430_TRUE
707 CC_FOR_TARGET_MSP430
708 LD_FOR_TARGET_MSP430
709 AS_FOR_TARGET_MSP430
710 SIM_ENABLE_ARCH_moxie_FALSE
711 SIM_ENABLE_ARCH_moxie_TRUE
712 CC_FOR_TARGET_MOXIE
713 LD_FOR_TARGET_MOXIE
714 AS_FOR_TARGET_MOXIE
715 SIM_ENABLE_ARCH_mn10300_FALSE
716 SIM_ENABLE_ARCH_mn10300_TRUE
717 CC_FOR_TARGET_MN10300
718 LD_FOR_TARGET_MN10300
719 AS_FOR_TARGET_MN10300
720 SIM_ENABLE_ARCH_mips_FALSE
721 SIM_ENABLE_ARCH_mips_TRUE
722 CC_FOR_TARGET_MIPS
723 LD_FOR_TARGET_MIPS
724 AS_FOR_TARGET_MIPS
725 SIM_ENABLE_ARCH_microblaze_FALSE
726 SIM_ENABLE_ARCH_microblaze_TRUE
727 CC_FOR_TARGET_MICROBLAZE
728 LD_FOR_TARGET_MICROBLAZE
729 AS_FOR_TARGET_MICROBLAZE
730 SIM_ENABLE_ARCH_mcore_FALSE
731 SIM_ENABLE_ARCH_mcore_TRUE
732 CC_FOR_TARGET_MCORE
733 LD_FOR_TARGET_MCORE
734 AS_FOR_TARGET_MCORE
735 SIM_ENABLE_ARCH_m68hc11_FALSE
736 SIM_ENABLE_ARCH_m68hc11_TRUE
737 CC_FOR_TARGET_M68HC11
738 LD_FOR_TARGET_M68HC11
739 AS_FOR_TARGET_M68HC11
740 SIM_ENABLE_ARCH_m32r_FALSE
741 SIM_ENABLE_ARCH_m32r_TRUE
742 CC_FOR_TARGET_M32R
743 LD_FOR_TARGET_M32R
744 AS_FOR_TARGET_M32R
745 SIM_ENABLE_ARCH_m32c_FALSE
746 SIM_ENABLE_ARCH_m32c_TRUE
747 CC_FOR_TARGET_M32C
748 LD_FOR_TARGET_M32C
749 AS_FOR_TARGET_M32C
750 SIM_ENABLE_ARCH_lm32_FALSE
751 SIM_ENABLE_ARCH_lm32_TRUE
752 CC_FOR_TARGET_LM32
753 LD_FOR_TARGET_LM32
754 AS_FOR_TARGET_LM32
755 SIM_ENABLE_ARCH_iq2000_FALSE
756 SIM_ENABLE_ARCH_iq2000_TRUE
757 CC_FOR_TARGET_IQ2000
758 LD_FOR_TARGET_IQ2000
759 AS_FOR_TARGET_IQ2000
760 SIM_ENABLE_ARCH_h8300_FALSE
761 SIM_ENABLE_ARCH_h8300_TRUE
762 CC_FOR_TARGET_H8300
763 LD_FOR_TARGET_H8300
764 AS_FOR_TARGET_H8300
765 SIM_ENABLE_ARCH_ft32_FALSE
766 SIM_ENABLE_ARCH_ft32_TRUE
767 CC_FOR_TARGET_FT32
768 LD_FOR_TARGET_FT32
769 AS_FOR_TARGET_FT32
770 SIM_ENABLE_ARCH_frv_FALSE
771 SIM_ENABLE_ARCH_frv_TRUE
772 CC_FOR_TARGET_FRV
773 LD_FOR_TARGET_FRV
774 AS_FOR_TARGET_FRV
775 SIM_ENABLE_ARCH_d10v_FALSE
776 SIM_ENABLE_ARCH_d10v_TRUE
777 CC_FOR_TARGET_D10V
778 LD_FOR_TARGET_D10V
779 AS_FOR_TARGET_D10V
780 SIM_ENABLE_ARCH_cris_FALSE
781 SIM_ENABLE_ARCH_cris_TRUE
782 CC_FOR_TARGET_CRIS
783 LD_FOR_TARGET_CRIS
784 AS_FOR_TARGET_CRIS
785 SIM_ENABLE_ARCH_cr16_FALSE
786 SIM_ENABLE_ARCH_cr16_TRUE
787 CC_FOR_TARGET_CR16
788 LD_FOR_TARGET_CR16
789 AS_FOR_TARGET_CR16
790 SIM_ENABLE_ARCH_bpf_FALSE
791 SIM_ENABLE_ARCH_bpf_TRUE
792 CC_FOR_TARGET_BPF
793 LD_FOR_TARGET_BPF
794 AS_FOR_TARGET_BPF
795 subdirs
796 SIM_ENABLE_ARCH_bfin_FALSE
797 SIM_ENABLE_ARCH_bfin_TRUE
798 CC_FOR_TARGET_BFIN
799 LD_FOR_TARGET_BFIN
800 AS_FOR_TARGET_BFIN
801 SIM_ENABLE_ARCH_avr_FALSE
802 SIM_ENABLE_ARCH_avr_TRUE
803 CC_FOR_TARGET_AVR
804 LD_FOR_TARGET_AVR
805 AS_FOR_TARGET_AVR
806 SIM_ENABLE_ARCH_arm_FALSE
807 SIM_ENABLE_ARCH_arm_TRUE
808 CC_FOR_TARGET_ARM
809 LD_FOR_TARGET_ARM
810 AS_FOR_TARGET_ARM
811 SIM_ENABLE_ARCH_aarch64_FALSE
812 SIM_ENABLE_ARCH_aarch64_TRUE
813 CC_FOR_TARGET_AARCH64
814 LD_FOR_TARGET_AARCH64
815 AS_FOR_TARGET_AARCH64
816 LD_FOR_TARGET
817 AS_FOR_TARGET
818 CC_FOR_TARGET
819 SIM_COMMON_BUILD_FALSE
820 SIM_COMMON_BUILD_TRUE
821 SIM_SUBDIRS
822 SIM_PRIMARY_TARGET
823 AM_BACKSLASH
824 AM_DEFAULT_VERBOSITY
825 AM_DEFAULT_V
826 AM_V
827 am__fastdepCC_FALSE
828 am__fastdepCC_TRUE
829 CCDEPMODE
830 am__nodep
831 AMDEPBACKSLASH
832 AMDEP_FALSE
833 AMDEP_TRUE
834 am__quote
835 am__include
836 DEPDIR
837 am__untar
838 am__tar
839 AMTAR
840 am__leading_dot
841 SET_MAKE
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 install_sh
846 MAKEINFO
847 AUTOHEADER
848 AUTOMAKE
849 AUTOCONF
850 ACLOCAL
851 VERSION
852 PACKAGE
853 CYGPATH_W
854 am__isrc
855 MAINT
856 MAINTAINER_MODE_FALSE
857 MAINTAINER_MODE_TRUE
858 READLINE_CFLAGS
859 READLINE_LIB
860 TERMCAP_LIB
861 SDL_LIBS
862 SDL_CFLAGS
863 lt_cv_dlopen_libs
864 OTOOL64
865 OTOOL
866 LIPO
867 NMEDIT
868 DSYMUTIL
869 AWK
870 STRIP
871 OBJDUMP
872 LN_S
873 NM
874 ac_ct_DUMPBIN
875 DUMPBIN
876 LD
877 FGREP
878 SED
879 LIBTOOL
880 PLUGINS_FALSE
881 PLUGINS_TRUE
882 ZSTD_LIBS
883 ZSTD_CFLAGS
884 zlibinc
885 zlibdir
886 CATOBJEXT
887 GENCAT
888 INSTOBJEXT
889 DATADIRNAME
890 CATALOGS
891 POSUB
892 GMSGFMT
893 XGETTEXT
894 INCINTL
895 LIBINTL_DEP
896 LIBINTL
897 USE_NLS
898 LIBOBJS
899 C_DIALECT
900 PKG_CONFIG_LIBDIR
901 PKG_CONFIG_PATH
902 PKG_CONFIG
903 RANLIB
904 AR
905 LDFLAGS_FOR_BUILD
906 CFLAGS_FOR_BUILD
907 RANLIB_FOR_BUILD
908 CC_FOR_BUILD
909 AR_FOR_BUILD
910 DTC
911 INSTALL_DATA
912 INSTALL_SCRIPT
913 INSTALL_PROGRAM
914 EGREP
915 GREP
916 CPP
917 OBJEXT
918 EXEEXT
919 ac_ct_CC
920 CPPFLAGS
921 LDFLAGS
922 CFLAGS
923 CC
924 target_os
925 target_vendor
926 target_cpu
927 target
928 host_os
929 host_vendor
930 host_cpu
931 host
932 build_os
933 build_vendor
934 build_cpu
935 build
936 REPORT_BUGS_TEXI
937 REPORT_BUGS_TO
938 PKGVERSION
939 target_alias
940 host_alias
941 build_alias
942 LIBS
943 ECHO_T
944 ECHO_N
945 ECHO_C
946 DEFS
947 mandir
948 localedir
949 libdir
950 psdir
951 pdfdir
952 dvidir
953 htmldir
954 infodir
955 docdir
956 oldincludedir
957 includedir
958 localstatedir
959 sharedstatedir
960 sysconfdir
961 datadir
962 datarootdir
963 libexecdir
964 sbindir
965 bindir
966 program_transform_name
967 prefix
968 exec_prefix
969 PACKAGE_URL
970 PACKAGE_BUGREPORT
971 PACKAGE_STRING
972 PACKAGE_VERSION
973 PACKAGE_TARNAME
974 PACKAGE_NAME
975 PATH_SEPARATOR
976 SHELL
977 SIM_TOOLCHAIN_VARS
978 WERROR_CFLAGS
979 WARN_CFLAGS'
980 ac_subst_files=''
981 ac_user_opts='
982 enable_option_checking
983 with_pkgversion
984 with_bugurl
985 with_system_zlib
986 with_zstd
987 enable_plugins
988 enable_shared
989 enable_static
990 with_pic
991 enable_fast_install
992 with_gnu_ld
993 enable_libtool_lock
994 enable_maintainer_mode
995 enable_dependency_tracking
996 enable_silent_rules
997 enable_sim
998 enable_example_sims
999 enable_targets
1000 enable_sim_alignment
1001 enable_sim_assert
1002 enable_cgen_maint
1003 enable_sim_debug
1004 enable_sim_endian
1005 enable_sim_environment
1006 enable_sim_hardware
1007 enable_sim_inline
1008 enable_sim_profile
1009 enable_sim_reserved_bits
1010 enable_sim_scache
1011 enable_sim_stdio
1012 enable_sim_trace
1013 enable_werror
1014 enable_build_warnings
1015 enable_sim_build_warnings
1016 enable_sim_frv_trapdump
1017 enable_sim_rx_cycle_accurate
1018 '
1019 ac_precious_vars='build_alias
1020 host_alias
1021 target_alias
1022 CC
1023 CFLAGS
1024 LDFLAGS
1025 LIBS
1026 CPPFLAGS
1027 CPP
1028 PKG_CONFIG
1029 PKG_CONFIG_PATH
1030 PKG_CONFIG_LIBDIR
1031 ZSTD_CFLAGS
1032 ZSTD_LIBS
1033 SDL_CFLAGS
1034 SDL_LIBS
1035 AS_FOR_TARGET_AARCH64
1036 LD_FOR_TARGET_AARCH64
1037 CC_FOR_TARGET_AARCH64
1038 AS_FOR_TARGET_ARM
1039 LD_FOR_TARGET_ARM
1040 CC_FOR_TARGET_ARM
1041 AS_FOR_TARGET_AVR
1042 LD_FOR_TARGET_AVR
1043 CC_FOR_TARGET_AVR
1044 AS_FOR_TARGET_BFIN
1045 LD_FOR_TARGET_BFIN
1046 CC_FOR_TARGET_BFIN
1047 AS_FOR_TARGET_BPF
1048 LD_FOR_TARGET_BPF
1049 CC_FOR_TARGET_BPF
1050 AS_FOR_TARGET_CR16
1051 LD_FOR_TARGET_CR16
1052 CC_FOR_TARGET_CR16
1053 AS_FOR_TARGET_CRIS
1054 LD_FOR_TARGET_CRIS
1055 CC_FOR_TARGET_CRIS
1056 AS_FOR_TARGET_D10V
1057 LD_FOR_TARGET_D10V
1058 CC_FOR_TARGET_D10V
1059 AS_FOR_TARGET_FRV
1060 LD_FOR_TARGET_FRV
1061 CC_FOR_TARGET_FRV
1062 AS_FOR_TARGET_FT32
1063 LD_FOR_TARGET_FT32
1064 CC_FOR_TARGET_FT32
1065 AS_FOR_TARGET_H8300
1066 LD_FOR_TARGET_H8300
1067 CC_FOR_TARGET_H8300
1068 AS_FOR_TARGET_IQ2000
1069 LD_FOR_TARGET_IQ2000
1070 CC_FOR_TARGET_IQ2000
1071 AS_FOR_TARGET_LM32
1072 LD_FOR_TARGET_LM32
1073 CC_FOR_TARGET_LM32
1074 AS_FOR_TARGET_M32C
1075 LD_FOR_TARGET_M32C
1076 CC_FOR_TARGET_M32C
1077 AS_FOR_TARGET_M32R
1078 LD_FOR_TARGET_M32R
1079 CC_FOR_TARGET_M32R
1080 AS_FOR_TARGET_M68HC11
1081 LD_FOR_TARGET_M68HC11
1082 CC_FOR_TARGET_M68HC11
1083 AS_FOR_TARGET_MCORE
1084 LD_FOR_TARGET_MCORE
1085 CC_FOR_TARGET_MCORE
1086 AS_FOR_TARGET_MICROBLAZE
1087 LD_FOR_TARGET_MICROBLAZE
1088 CC_FOR_TARGET_MICROBLAZE
1089 AS_FOR_TARGET_MIPS
1090 LD_FOR_TARGET_MIPS
1091 CC_FOR_TARGET_MIPS
1092 AS_FOR_TARGET_MN10300
1093 LD_FOR_TARGET_MN10300
1094 CC_FOR_TARGET_MN10300
1095 AS_FOR_TARGET_MOXIE
1096 LD_FOR_TARGET_MOXIE
1097 CC_FOR_TARGET_MOXIE
1098 AS_FOR_TARGET_MSP430
1099 LD_FOR_TARGET_MSP430
1100 CC_FOR_TARGET_MSP430
1101 AS_FOR_TARGET_OR1K
1102 LD_FOR_TARGET_OR1K
1103 CC_FOR_TARGET_OR1K
1104 AS_FOR_TARGET_PPC
1105 LD_FOR_TARGET_PPC
1106 CC_FOR_TARGET_PPC
1107 AS_FOR_TARGET_PRU
1108 LD_FOR_TARGET_PRU
1109 CC_FOR_TARGET_PRU
1110 AS_FOR_TARGET_RISCV
1111 LD_FOR_TARGET_RISCV
1112 CC_FOR_TARGET_RISCV
1113 AS_FOR_TARGET_RL78
1114 LD_FOR_TARGET_RL78
1115 CC_FOR_TARGET_RL78
1116 AS_FOR_TARGET_RX
1117 LD_FOR_TARGET_RX
1118 CC_FOR_TARGET_RX
1119 AS_FOR_TARGET_SH
1120 LD_FOR_TARGET_SH
1121 CC_FOR_TARGET_SH
1122 AS_FOR_TARGET_ERC32
1123 LD_FOR_TARGET_ERC32
1124 CC_FOR_TARGET_ERC32
1125 AS_FOR_TARGET_V850
1126 LD_FOR_TARGET_V850
1127 CC_FOR_TARGET_V850
1128 AS_FOR_TARGET_EXAMPLE_SYNACOR
1129 LD_FOR_TARGET_EXAMPLE_SYNACOR
1130 CC_FOR_TARGET_EXAMPLE_SYNACOR'
1131 ac_subdirs_all='bpf
1132 mips
1133 mn10300
1134 or1k
1135 ppc
1136 riscv
1137 v850'
1138
1139 # Initialize some variables set by options.
1140 ac_init_help=
1141 ac_init_version=false
1142 ac_unrecognized_opts=
1143 ac_unrecognized_sep=
1144 # The variables have the same names as the options, with
1145 # dashes changed to underlines.
1146 cache_file=/dev/null
1147 exec_prefix=NONE
1148 no_create=
1149 no_recursion=
1150 prefix=NONE
1151 program_prefix=NONE
1152 program_suffix=NONE
1153 program_transform_name=s,x,x,
1154 silent=
1155 site=
1156 srcdir=
1157 verbose=
1158 x_includes=NONE
1159 x_libraries=NONE
1160
1161 # Installation directory options.
1162 # These are left unexpanded so users can "make install exec_prefix=/foo"
1163 # and all the variables that are supposed to be based on exec_prefix
1164 # by default will actually change.
1165 # Use braces instead of parens because sh, perl, etc. also accept them.
1166 # (The list follows the same order as the GNU Coding Standards.)
1167 bindir='${exec_prefix}/bin'
1168 sbindir='${exec_prefix}/sbin'
1169 libexecdir='${exec_prefix}/libexec'
1170 datarootdir='${prefix}/share'
1171 datadir='${datarootdir}'
1172 sysconfdir='${prefix}/etc'
1173 sharedstatedir='${prefix}/com'
1174 localstatedir='${prefix}/var'
1175 includedir='${prefix}/include'
1176 oldincludedir='/usr/include'
1177 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1178 infodir='${datarootdir}/info'
1179 htmldir='${docdir}'
1180 dvidir='${docdir}'
1181 pdfdir='${docdir}'
1182 psdir='${docdir}'
1183 libdir='${exec_prefix}/lib'
1184 localedir='${datarootdir}/locale'
1185 mandir='${datarootdir}/man'
1186
1187 ac_prev=
1188 ac_dashdash=
1189 for ac_option
1190 do
1191 # If the previous option needs an argument, assign it.
1192 if test -n "$ac_prev"; then
1193 eval $ac_prev=\$ac_option
1194 ac_prev=
1195 continue
1196 fi
1197
1198 case $ac_option in
1199 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1200 *=) ac_optarg= ;;
1201 *) ac_optarg=yes ;;
1202 esac
1203
1204 # Accept the important Cygnus configure options, so we can diagnose typos.
1205
1206 case $ac_dashdash$ac_option in
1207 --)
1208 ac_dashdash=yes ;;
1209
1210 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1211 ac_prev=bindir ;;
1212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1213 bindir=$ac_optarg ;;
1214
1215 -build | --build | --buil | --bui | --bu)
1216 ac_prev=build_alias ;;
1217 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1218 build_alias=$ac_optarg ;;
1219
1220 -cache-file | --cache-file | --cache-fil | --cache-fi \
1221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1222 ac_prev=cache_file ;;
1223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1225 cache_file=$ac_optarg ;;
1226
1227 --config-cache | -C)
1228 cache_file=config.cache ;;
1229
1230 -datadir | --datadir | --datadi | --datad)
1231 ac_prev=datadir ;;
1232 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1233 datadir=$ac_optarg ;;
1234
1235 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1236 | --dataroo | --dataro | --datar)
1237 ac_prev=datarootdir ;;
1238 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1239 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1240 datarootdir=$ac_optarg ;;
1241
1242 -disable-* | --disable-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid feature name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "enable_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval enable_$ac_useropt=no ;;
1257
1258 -docdir | --docdir | --docdi | --doc | --do)
1259 ac_prev=docdir ;;
1260 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1261 docdir=$ac_optarg ;;
1262
1263 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1264 ac_prev=dvidir ;;
1265 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1266 dvidir=$ac_optarg ;;
1267
1268 -enable-* | --enable-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error $? "invalid feature name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277 "enable_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval enable_$ac_useropt=\$ac_optarg ;;
1283
1284 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1285 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1286 | --exec | --exe | --ex)
1287 ac_prev=exec_prefix ;;
1288 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1289 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1290 | --exec=* | --exe=* | --ex=*)
1291 exec_prefix=$ac_optarg ;;
1292
1293 -gas | --gas | --ga | --g)
1294 # Obsolete; use --with-gas.
1295 with_gas=yes ;;
1296
1297 -help | --help | --hel | --he | -h)
1298 ac_init_help=long ;;
1299 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1300 ac_init_help=recursive ;;
1301 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1302 ac_init_help=short ;;
1303
1304 -host | --host | --hos | --ho)
1305 ac_prev=host_alias ;;
1306 -host=* | --host=* | --hos=* | --ho=*)
1307 host_alias=$ac_optarg ;;
1308
1309 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1310 ac_prev=htmldir ;;
1311 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1312 | --ht=*)
1313 htmldir=$ac_optarg ;;
1314
1315 -includedir | --includedir | --includedi | --included | --include \
1316 | --includ | --inclu | --incl | --inc)
1317 ac_prev=includedir ;;
1318 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1319 | --includ=* | --inclu=* | --incl=* | --inc=*)
1320 includedir=$ac_optarg ;;
1321
1322 -infodir | --infodir | --infodi | --infod | --info | --inf)
1323 ac_prev=infodir ;;
1324 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1325 infodir=$ac_optarg ;;
1326
1327 -libdir | --libdir | --libdi | --libd)
1328 ac_prev=libdir ;;
1329 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1330 libdir=$ac_optarg ;;
1331
1332 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1333 | --libexe | --libex | --libe)
1334 ac_prev=libexecdir ;;
1335 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1336 | --libexe=* | --libex=* | --libe=*)
1337 libexecdir=$ac_optarg ;;
1338
1339 -localedir | --localedir | --localedi | --localed | --locale)
1340 ac_prev=localedir ;;
1341 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1342 localedir=$ac_optarg ;;
1343
1344 -localstatedir | --localstatedir | --localstatedi | --localstated \
1345 | --localstate | --localstat | --localsta | --localst | --locals)
1346 ac_prev=localstatedir ;;
1347 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1348 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1349 localstatedir=$ac_optarg ;;
1350
1351 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1352 ac_prev=mandir ;;
1353 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1354 mandir=$ac_optarg ;;
1355
1356 -nfp | --nfp | --nf)
1357 # Obsolete; use --without-fp.
1358 with_fp=no ;;
1359
1360 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1361 | --no-cr | --no-c | -n)
1362 no_create=yes ;;
1363
1364 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1365 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1366 no_recursion=yes ;;
1367
1368 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1369 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1370 | --oldin | --oldi | --old | --ol | --o)
1371 ac_prev=oldincludedir ;;
1372 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1373 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1374 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1375 oldincludedir=$ac_optarg ;;
1376
1377 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1378 ac_prev=prefix ;;
1379 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1380 prefix=$ac_optarg ;;
1381
1382 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1383 | --program-pre | --program-pr | --program-p)
1384 ac_prev=program_prefix ;;
1385 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1386 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1387 program_prefix=$ac_optarg ;;
1388
1389 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1390 | --program-suf | --program-su | --program-s)
1391 ac_prev=program_suffix ;;
1392 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1393 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1394 program_suffix=$ac_optarg ;;
1395
1396 -program-transform-name | --program-transform-name \
1397 | --program-transform-nam | --program-transform-na \
1398 | --program-transform-n | --program-transform- \
1399 | --program-transform | --program-transfor \
1400 | --program-transfo | --program-transf \
1401 | --program-trans | --program-tran \
1402 | --progr-tra | --program-tr | --program-t)
1403 ac_prev=program_transform_name ;;
1404 -program-transform-name=* | --program-transform-name=* \
1405 | --program-transform-nam=* | --program-transform-na=* \
1406 | --program-transform-n=* | --program-transform-=* \
1407 | --program-transform=* | --program-transfor=* \
1408 | --program-transfo=* | --program-transf=* \
1409 | --program-trans=* | --program-tran=* \
1410 | --progr-tra=* | --program-tr=* | --program-t=*)
1411 program_transform_name=$ac_optarg ;;
1412
1413 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1414 ac_prev=pdfdir ;;
1415 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1416 pdfdir=$ac_optarg ;;
1417
1418 -psdir | --psdir | --psdi | --psd | --ps)
1419 ac_prev=psdir ;;
1420 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1421 psdir=$ac_optarg ;;
1422
1423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1424 | -silent | --silent | --silen | --sile | --sil)
1425 silent=yes ;;
1426
1427 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1428 ac_prev=sbindir ;;
1429 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1430 | --sbi=* | --sb=*)
1431 sbindir=$ac_optarg ;;
1432
1433 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1434 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1435 | --sharedst | --shareds | --shared | --share | --shar \
1436 | --sha | --sh)
1437 ac_prev=sharedstatedir ;;
1438 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1439 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1440 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1441 | --sha=* | --sh=*)
1442 sharedstatedir=$ac_optarg ;;
1443
1444 -site | --site | --sit)
1445 ac_prev=site ;;
1446 -site=* | --site=* | --sit=*)
1447 site=$ac_optarg ;;
1448
1449 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1450 ac_prev=srcdir ;;
1451 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1452 srcdir=$ac_optarg ;;
1453
1454 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1455 | --syscon | --sysco | --sysc | --sys | --sy)
1456 ac_prev=sysconfdir ;;
1457 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1458 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1459 sysconfdir=$ac_optarg ;;
1460
1461 -target | --target | --targe | --targ | --tar | --ta | --t)
1462 ac_prev=target_alias ;;
1463 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1464 target_alias=$ac_optarg ;;
1465
1466 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1467 verbose=yes ;;
1468
1469 -version | --version | --versio | --versi | --vers | -V)
1470 ac_init_version=: ;;
1471
1472 -with-* | --with-*)
1473 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1474 # Reject names that are not valid shell variable names.
1475 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1476 as_fn_error $? "invalid package name: $ac_useropt"
1477 ac_useropt_orig=$ac_useropt
1478 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1479 case $ac_user_opts in
1480 *"
1481 "with_$ac_useropt"
1482 "*) ;;
1483 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1484 ac_unrecognized_sep=', ';;
1485 esac
1486 eval with_$ac_useropt=\$ac_optarg ;;
1487
1488 -without-* | --without-*)
1489 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1490 # Reject names that are not valid shell variable names.
1491 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1492 as_fn_error $? "invalid package name: $ac_useropt"
1493 ac_useropt_orig=$ac_useropt
1494 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1495 case $ac_user_opts in
1496 *"
1497 "with_$ac_useropt"
1498 "*) ;;
1499 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1500 ac_unrecognized_sep=', ';;
1501 esac
1502 eval with_$ac_useropt=no ;;
1503
1504 --x)
1505 # Obsolete; use --with-x.
1506 with_x=yes ;;
1507
1508 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1509 | --x-incl | --x-inc | --x-in | --x-i)
1510 ac_prev=x_includes ;;
1511 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1512 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1513 x_includes=$ac_optarg ;;
1514
1515 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1516 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1517 ac_prev=x_libraries ;;
1518 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1519 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1520 x_libraries=$ac_optarg ;;
1521
1522 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1523 Try \`$0 --help' for more information"
1524 ;;
1525
1526 *=*)
1527 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1528 # Reject names that are not valid shell variable names.
1529 case $ac_envvar in #(
1530 '' | [0-9]* | *[!_$as_cr_alnum]* )
1531 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1532 esac
1533 eval $ac_envvar=\$ac_optarg
1534 export $ac_envvar ;;
1535
1536 *)
1537 # FIXME: should be removed in autoconf 3.0.
1538 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1539 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1540 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1541 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1542 ;;
1543
1544 esac
1545 done
1546
1547 if test -n "$ac_prev"; then
1548 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1549 as_fn_error $? "missing argument to $ac_option"
1550 fi
1551
1552 if test -n "$ac_unrecognized_opts"; then
1553 case $enable_option_checking in
1554 no) ;;
1555 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1556 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1557 esac
1558 fi
1559
1560 # Check all directory arguments for consistency.
1561 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1562 datadir sysconfdir sharedstatedir localstatedir includedir \
1563 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1564 libdir localedir mandir
1565 do
1566 eval ac_val=\$$ac_var
1567 # Remove trailing slashes.
1568 case $ac_val in
1569 */ )
1570 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1571 eval $ac_var=\$ac_val;;
1572 esac
1573 # Be sure to have absolute directory names.
1574 case $ac_val in
1575 [\\/$]* | ?:[\\/]* ) continue;;
1576 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1577 esac
1578 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1579 done
1580
1581 # There might be people who depend on the old broken behavior: `$host'
1582 # used to hold the argument of --host etc.
1583 # FIXME: To remove some day.
1584 build=$build_alias
1585 host=$host_alias
1586 target=$target_alias
1587
1588 # FIXME: To remove some day.
1589 if test "x$host_alias" != x; then
1590 if test "x$build_alias" = x; then
1591 cross_compiling=maybe
1592 elif test "x$build_alias" != "x$host_alias"; then
1593 cross_compiling=yes
1594 fi
1595 fi
1596
1597 ac_tool_prefix=
1598 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1599
1600 test "$silent" = yes && exec 6>/dev/null
1601
1602
1603 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1604 ac_ls_di=`ls -di .` &&
1605 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1606 as_fn_error $? "working directory cannot be determined"
1607 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1608 as_fn_error $? "pwd does not report name of working directory"
1609
1610
1611 # Find the source files, if location was not specified.
1612 if test -z "$srcdir"; then
1613 ac_srcdir_defaulted=yes
1614 # Try the directory containing this script, then the parent directory.
1615 ac_confdir=`$as_dirname -- "$as_myself" ||
1616 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1617 X"$as_myself" : 'X\(//\)[^/]' \| \
1618 X"$as_myself" : 'X\(//\)$' \| \
1619 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1620 $as_echo X"$as_myself" |
1621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1622 s//\1/
1623 q
1624 }
1625 /^X\(\/\/\)[^/].*/{
1626 s//\1/
1627 q
1628 }
1629 /^X\(\/\/\)$/{
1630 s//\1/
1631 q
1632 }
1633 /^X\(\/\).*/{
1634 s//\1/
1635 q
1636 }
1637 s/.*/./; q'`
1638 srcdir=$ac_confdir
1639 if test ! -r "$srcdir/$ac_unique_file"; then
1640 srcdir=..
1641 fi
1642 else
1643 ac_srcdir_defaulted=no
1644 fi
1645 if test ! -r "$srcdir/$ac_unique_file"; then
1646 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1647 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1648 fi
1649 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1650 ac_abs_confdir=`(
1651 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1652 pwd)`
1653 # When building in place, set srcdir=.
1654 if test "$ac_abs_confdir" = "$ac_pwd"; then
1655 srcdir=.
1656 fi
1657 # Remove unnecessary trailing slashes from srcdir.
1658 # Double slashes in file names in object file debugging info
1659 # mess up M-x gdb in Emacs.
1660 case $srcdir in
1661 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1662 esac
1663 for ac_var in $ac_precious_vars; do
1664 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1665 eval ac_env_${ac_var}_value=\$${ac_var}
1666 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1667 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1668 done
1669
1670 #
1671 # Report the --help message.
1672 #
1673 if test "$ac_init_help" = "long"; then
1674 # Omit some internal or obsolete options to make the list less imposing.
1675 # This message is too long to be a string in the A/UX 3.1 sh.
1676 cat <<_ACEOF
1677 \`configure' configures sim 0 to adapt to many kinds of systems.
1678
1679 Usage: $0 [OPTION]... [VAR=VALUE]...
1680
1681 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1682 VAR=VALUE. See below for descriptions of some of the useful variables.
1683
1684 Defaults for the options are specified in brackets.
1685
1686 Configuration:
1687 -h, --help display this help and exit
1688 --help=short display options specific to this package
1689 --help=recursive display the short help of all the included packages
1690 -V, --version display version information and exit
1691 -q, --quiet, --silent do not print \`checking ...' messages
1692 --cache-file=FILE cache test results in FILE [disabled]
1693 -C, --config-cache alias for \`--cache-file=config.cache'
1694 -n, --no-create do not create output files
1695 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1696
1697 Installation directories:
1698 --prefix=PREFIX install architecture-independent files in PREFIX
1699 [$ac_default_prefix]
1700 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1701 [PREFIX]
1702
1703 By default, \`make install' will install all the files in
1704 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1705 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1706 for instance \`--prefix=\$HOME'.
1707
1708 For better control, use the options below.
1709
1710 Fine tuning of the installation directories:
1711 --bindir=DIR user executables [EPREFIX/bin]
1712 --sbindir=DIR system admin executables [EPREFIX/sbin]
1713 --libexecdir=DIR program executables [EPREFIX/libexec]
1714 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1715 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1716 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1717 --libdir=DIR object code libraries [EPREFIX/lib]
1718 --includedir=DIR C header files [PREFIX/include]
1719 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1720 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1721 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1722 --infodir=DIR info documentation [DATAROOTDIR/info]
1723 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1724 --mandir=DIR man documentation [DATAROOTDIR/man]
1725 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1726 --htmldir=DIR html documentation [DOCDIR]
1727 --dvidir=DIR dvi documentation [DOCDIR]
1728 --pdfdir=DIR pdf documentation [DOCDIR]
1729 --psdir=DIR ps documentation [DOCDIR]
1730 _ACEOF
1731
1732 cat <<\_ACEOF
1733
1734 Program names:
1735 --program-prefix=PREFIX prepend PREFIX to installed program names
1736 --program-suffix=SUFFIX append SUFFIX to installed program names
1737 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1738
1739 System types:
1740 --build=BUILD configure for building on BUILD [guessed]
1741 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1742 --target=TARGET configure for building compilers for TARGET [HOST]
1743 _ACEOF
1744 fi
1745
1746 if test -n "$ac_init_help"; then
1747 case $ac_init_help in
1748 short | recursive ) echo "Configuration of sim 0:";;
1749 esac
1750 cat <<\_ACEOF
1751
1752 Optional Features:
1753 --disable-option-checking ignore unrecognized --enable/--with options
1754 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1755 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1756 --enable-plugins Enable support for plugins
1757 --enable-shared[=PKGS] build shared libraries [default=yes]
1758 --enable-static[=PKGS] build static libraries [default=yes]
1759 --enable-fast-install[=PKGS]
1760 optimize for fast installation [default=yes]
1761 --disable-libtool-lock avoid locking (might break parallel builds)
1762 --enable-maintainer-mode
1763 enable make rules and dependencies not useful (and
1764 sometimes confusing) to the casual installer
1765 --enable-dependency-tracking
1766 do not reject slow dependency extractors
1767 --disable-dependency-tracking
1768 speeds up one-time build
1769 --enable-silent-rules less verbose build output (undo: "make V=1")
1770 --disable-silent-rules verbose build output (undo: "make V=0")
1771 --enable-sim Enable the GNU simulator
1772 --enable-example-sims enable example GNU simulators
1773 --enable-targets alternative target configurations
1774 --enable-sim-alignment=align
1775 Specify strict, nonstrict or forced alignment of
1776 memory accesses
1777 --enable-sim-assert Specify whether to perform random assertions
1778 --enable-cgen-maint=DIR build cgen generated files
1779 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1780 itself)
1781 --enable-sim-endian=endian
1782 Specify target byte endian orientation
1783 --enable-sim-environment=environment
1784 Specify mixed, user, virtual or operating
1785 environment
1786 --enable-sim-hardware Whether to enable hardware/device simulation
1787 --enable-sim-inline=inlines
1788 Specify which functions should be inlined
1789 --enable-sim-profile=opts
1790 Enable profiling flags
1791 --enable-sim-reserved-bits
1792 Specify whether to check reserved bits in
1793 instruction
1794 --enable-sim-scache=size
1795 Specify simulator execution cache size
1796 --enable-sim-stdio Specify whether to use stdio for console
1797 input/output
1798 --enable-sim-trace=opts Enable tracing of simulated programs
1799 --enable-werror treat compile warnings as errors
1800 --enable-build-warnings enable build-time compiler warnings if gcc is used
1801 --enable-sim-build-warnings
1802 enable SIM specific build-time compiler warnings if
1803 gcc is used
1804 --enable-sim-frv-trapdump
1805 Make unknown traps dump the registers
1806 --disable-sim-rx-cycle-accurate
1807 Disable cycle accurate simulation (faster runtime)
1808
1809 Optional Packages:
1810 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1811 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1812 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1813 --with-bugurl=URL Direct users to URL to report a bug
1814 --with-system-zlib use installed libz
1815 --with-zstd support zstd compressed debug sections
1816 (default=auto)
1817 --with-pic try to use only PIC/non-PIC objects [default=use
1818 both]
1819 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1820
1821 Some influential environment variables:
1822 CC C compiler command
1823 CFLAGS C compiler flags
1824 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1825 nonstandard directory <lib dir>
1826 LIBS libraries to pass to the linker, e.g. -l<library>
1827 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1828 you have headers in a nonstandard directory <include dir>
1829 CPP C preprocessor
1830 PKG_CONFIG path to pkg-config utility
1831 PKG_CONFIG_PATH
1832 directories to add to pkg-config's search path
1833 PKG_CONFIG_LIBDIR
1834 path overriding pkg-config's built-in search path
1835 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1836 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1837 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1838 SDL_LIBS linker flags for SDL, overriding pkg-config
1839 AS_FOR_TARGET_AARCH64
1840 Assembler for aarch64 tests
1841 LD_FOR_TARGET_AARCH64
1842 Linker for aarch64 tests
1843 CC_FOR_TARGET_AARCH64
1844 C compiler for aarch64 tests
1845 AS_FOR_TARGET_ARM
1846 Assembler for arm tests
1847 LD_FOR_TARGET_ARM
1848 Linker for arm tests
1849 CC_FOR_TARGET_ARM
1850 C compiler for arm tests
1851 AS_FOR_TARGET_AVR
1852 Assembler for avr tests
1853 LD_FOR_TARGET_AVR
1854 Linker for avr tests
1855 CC_FOR_TARGET_AVR
1856 C compiler for avr tests
1857 AS_FOR_TARGET_BFIN
1858 Assembler for bfin tests
1859 LD_FOR_TARGET_BFIN
1860 Linker for bfin tests
1861 CC_FOR_TARGET_BFIN
1862 C compiler for bfin tests
1863 AS_FOR_TARGET_BPF
1864 Assembler for bpf tests
1865 LD_FOR_TARGET_BPF
1866 Linker for bpf tests
1867 CC_FOR_TARGET_BPF
1868 C compiler for bpf tests
1869 AS_FOR_TARGET_CR16
1870 Assembler for cr16 tests
1871 LD_FOR_TARGET_CR16
1872 Linker for cr16 tests
1873 CC_FOR_TARGET_CR16
1874 C compiler for cr16 tests
1875 AS_FOR_TARGET_CRIS
1876 Assembler for cris tests
1877 LD_FOR_TARGET_CRIS
1878 Linker for cris tests
1879 CC_FOR_TARGET_CRIS
1880 C compiler for cris tests
1881 AS_FOR_TARGET_D10V
1882 Assembler for d10v tests
1883 LD_FOR_TARGET_D10V
1884 Linker for d10v tests
1885 CC_FOR_TARGET_D10V
1886 C compiler for d10v tests
1887 AS_FOR_TARGET_FRV
1888 Assembler for frv tests
1889 LD_FOR_TARGET_FRV
1890 Linker for frv tests
1891 CC_FOR_TARGET_FRV
1892 C compiler for frv tests
1893 AS_FOR_TARGET_FT32
1894 Assembler for ft32 tests
1895 LD_FOR_TARGET_FT32
1896 Linker for ft32 tests
1897 CC_FOR_TARGET_FT32
1898 C compiler for ft32 tests
1899 AS_FOR_TARGET_H8300
1900 Assembler for h8300 tests
1901 LD_FOR_TARGET_H8300
1902 Linker for h8300 tests
1903 CC_FOR_TARGET_H8300
1904 C compiler for h8300 tests
1905 AS_FOR_TARGET_IQ2000
1906 Assembler for iq2000 tests
1907 LD_FOR_TARGET_IQ2000
1908 Linker for iq2000 tests
1909 CC_FOR_TARGET_IQ2000
1910 C compiler for iq2000 tests
1911 AS_FOR_TARGET_LM32
1912 Assembler for lm32 tests
1913 LD_FOR_TARGET_LM32
1914 Linker for lm32 tests
1915 CC_FOR_TARGET_LM32
1916 C compiler for lm32 tests
1917 AS_FOR_TARGET_M32C
1918 Assembler for m32c tests
1919 LD_FOR_TARGET_M32C
1920 Linker for m32c tests
1921 CC_FOR_TARGET_M32C
1922 C compiler for m32c tests
1923 AS_FOR_TARGET_M32R
1924 Assembler for m32r tests
1925 LD_FOR_TARGET_M32R
1926 Linker for m32r tests
1927 CC_FOR_TARGET_M32R
1928 C compiler for m32r tests
1929 AS_FOR_TARGET_M68HC11
1930 Assembler for m68hc11 tests
1931 LD_FOR_TARGET_M68HC11
1932 Linker for m68hc11 tests
1933 CC_FOR_TARGET_M68HC11
1934 C compiler for m68hc11 tests
1935 AS_FOR_TARGET_MCORE
1936 Assembler for mcore tests
1937 LD_FOR_TARGET_MCORE
1938 Linker for mcore tests
1939 CC_FOR_TARGET_MCORE
1940 C compiler for mcore tests
1941 AS_FOR_TARGET_MICROBLAZE
1942 Assembler for microblaze tests
1943 LD_FOR_TARGET_MICROBLAZE
1944 Linker for microblaze tests
1945 CC_FOR_TARGET_MICROBLAZE
1946 C compiler for microblaze tests
1947 AS_FOR_TARGET_MIPS
1948 Assembler for mips tests
1949 LD_FOR_TARGET_MIPS
1950 Linker for mips tests
1951 CC_FOR_TARGET_MIPS
1952 C compiler for mips tests
1953 AS_FOR_TARGET_MN10300
1954 Assembler for mn10300 tests
1955 LD_FOR_TARGET_MN10300
1956 Linker for mn10300 tests
1957 CC_FOR_TARGET_MN10300
1958 C compiler for mn10300 tests
1959 AS_FOR_TARGET_MOXIE
1960 Assembler for moxie tests
1961 LD_FOR_TARGET_MOXIE
1962 Linker for moxie tests
1963 CC_FOR_TARGET_MOXIE
1964 C compiler for moxie tests
1965 AS_FOR_TARGET_MSP430
1966 Assembler for msp430 tests
1967 LD_FOR_TARGET_MSP430
1968 Linker for msp430 tests
1969 CC_FOR_TARGET_MSP430
1970 C compiler for msp430 tests
1971 AS_FOR_TARGET_OR1K
1972 Assembler for or1k tests
1973 LD_FOR_TARGET_OR1K
1974 Linker for or1k tests
1975 CC_FOR_TARGET_OR1K
1976 C compiler for or1k tests
1977 AS_FOR_TARGET_PPC
1978 Assembler for ppc tests
1979 LD_FOR_TARGET_PPC
1980 Linker for ppc tests
1981 CC_FOR_TARGET_PPC
1982 C compiler for ppc tests
1983 AS_FOR_TARGET_PRU
1984 Assembler for pru tests
1985 LD_FOR_TARGET_PRU
1986 Linker for pru tests
1987 CC_FOR_TARGET_PRU
1988 C compiler for pru tests
1989 AS_FOR_TARGET_RISCV
1990 Assembler for riscv tests
1991 LD_FOR_TARGET_RISCV
1992 Linker for riscv tests
1993 CC_FOR_TARGET_RISCV
1994 C compiler for riscv tests
1995 AS_FOR_TARGET_RL78
1996 Assembler for rl78 tests
1997 LD_FOR_TARGET_RL78
1998 Linker for rl78 tests
1999 CC_FOR_TARGET_RL78
2000 C compiler for rl78 tests
2001 AS_FOR_TARGET_RX
2002 Assembler for rx tests
2003 LD_FOR_TARGET_RX
2004 Linker for rx tests
2005 CC_FOR_TARGET_RX
2006 C compiler for rx tests
2007 AS_FOR_TARGET_SH
2008 Assembler for sh tests
2009 LD_FOR_TARGET_SH
2010 Linker for sh tests
2011 CC_FOR_TARGET_SH
2012 C compiler for sh tests
2013 AS_FOR_TARGET_ERC32
2014 Assembler for erc32 tests
2015 LD_FOR_TARGET_ERC32
2016 Linker for erc32 tests
2017 CC_FOR_TARGET_ERC32
2018 C compiler for erc32 tests
2019 AS_FOR_TARGET_V850
2020 Assembler for v850 tests
2021 LD_FOR_TARGET_V850
2022 Linker for v850 tests
2023 CC_FOR_TARGET_V850
2024 C compiler for v850 tests
2025 AS_FOR_TARGET_EXAMPLE_SYNACOR
2026 Assembler for example-synacor tests
2027 LD_FOR_TARGET_EXAMPLE_SYNACOR
2028 Linker for example-synacor tests
2029 CC_FOR_TARGET_EXAMPLE_SYNACOR
2030 C compiler for example-synacor tests
2031
2032 Use these variables to override the choices made by `configure' or to help
2033 it to find libraries and programs with nonstandard names/locations.
2034
2035 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
2036 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
2037 _ACEOF
2038 ac_status=$?
2039 fi
2040
2041 if test "$ac_init_help" = "recursive"; then
2042 # If there are subdirs, report their specific --help.
2043 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2044 test -d "$ac_dir" ||
2045 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2046 continue
2047 ac_builddir=.
2048
2049 case "$ac_dir" in
2050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2051 *)
2052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2053 # A ".." for each directory in $ac_dir_suffix.
2054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2055 case $ac_top_builddir_sub in
2056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2058 esac ;;
2059 esac
2060 ac_abs_top_builddir=$ac_pwd
2061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2062 # for backward compatibility:
2063 ac_top_builddir=$ac_top_build_prefix
2064
2065 case $srcdir in
2066 .) # We are building in place.
2067 ac_srcdir=.
2068 ac_top_srcdir=$ac_top_builddir_sub
2069 ac_abs_top_srcdir=$ac_pwd ;;
2070 [\\/]* | ?:[\\/]* ) # Absolute name.
2071 ac_srcdir=$srcdir$ac_dir_suffix;
2072 ac_top_srcdir=$srcdir
2073 ac_abs_top_srcdir=$srcdir ;;
2074 *) # Relative name.
2075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2076 ac_top_srcdir=$ac_top_build_prefix$srcdir
2077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2078 esac
2079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2080
2081 cd "$ac_dir" || { ac_status=$?; continue; }
2082 # Check for guested configure.
2083 if test -f "$ac_srcdir/configure.gnu"; then
2084 echo &&
2085 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2086 elif test -f "$ac_srcdir/configure"; then
2087 echo &&
2088 $SHELL "$ac_srcdir/configure" --help=recursive
2089 else
2090 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2091 fi || ac_status=$?
2092 cd "$ac_pwd" || { ac_status=$?; break; }
2093 done
2094 fi
2095
2096 test -n "$ac_init_help" && exit $ac_status
2097 if $ac_init_version; then
2098 cat <<\_ACEOF
2099 sim configure 0
2100 generated by GNU Autoconf 2.69
2101
2102 Copyright (C) 2012 Free Software Foundation, Inc.
2103 This configure script is free software; the Free Software Foundation
2104 gives unlimited permission to copy, distribute and modify it.
2105 _ACEOF
2106 exit
2107 fi
2108
2109 ## ------------------------ ##
2110 ## Autoconf initialization. ##
2111 ## ------------------------ ##
2112
2113 # ac_fn_c_try_compile LINENO
2114 # --------------------------
2115 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2116 ac_fn_c_try_compile ()
2117 {
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 rm -f conftest.$ac_objext
2120 if { { ac_try="$ac_compile"
2121 case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124 esac
2125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126 $as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_compile") 2>conftest.err
2128 ac_status=$?
2129 if test -s conftest.err; then
2130 grep -v '^ *+' conftest.err >conftest.er1
2131 cat conftest.er1 >&5
2132 mv -f conftest.er1 conftest.err
2133 fi
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; } && {
2136 test -z "$ac_c_werror_flag" ||
2137 test ! -s conftest.err
2138 } && test -s conftest.$ac_objext; then :
2139 ac_retval=0
2140 else
2141 $as_echo "$as_me: failed program was:" >&5
2142 sed 's/^/| /' conftest.$ac_ext >&5
2143
2144 ac_retval=1
2145 fi
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147 as_fn_set_status $ac_retval
2148
2149 } # ac_fn_c_try_compile
2150
2151 # ac_fn_c_try_cpp LINENO
2152 # ----------------------
2153 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2154 ac_fn_c_try_cpp ()
2155 {
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if { { ac_try="$ac_cpp conftest.$ac_ext"
2158 case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161 esac
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2165 ac_status=$?
2166 if test -s conftest.err; then
2167 grep -v '^ *+' conftest.err >conftest.er1
2168 cat conftest.er1 >&5
2169 mv -f conftest.er1 conftest.err
2170 fi
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } > conftest.i && {
2173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2174 test ! -s conftest.err
2175 }; then :
2176 ac_retval=0
2177 else
2178 $as_echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 ac_retval=1
2182 fi
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 as_fn_set_status $ac_retval
2185
2186 } # ac_fn_c_try_cpp
2187
2188 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2189 # -------------------------------------------------------
2190 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2191 # the include files in INCLUDES and setting the cache variable VAR
2192 # accordingly.
2193 ac_fn_c_check_header_mongrel ()
2194 {
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 if eval \${$3+:} false; then :
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2198 $as_echo_n "checking for $2... " >&6; }
2199 if eval \${$3+:} false; then :
2200 $as_echo_n "(cached) " >&6
2201 fi
2202 eval ac_res=\$$3
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205 else
2206 # Is the header compilable?
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2208 $as_echo_n "checking $2 usability... " >&6; }
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2211 $4
2212 #include <$2>
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_header_compiler=yes
2216 else
2217 ac_header_compiler=no
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2221 $as_echo "$ac_header_compiler" >&6; }
2222
2223 # Is the header present?
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2225 $as_echo_n "checking $2 presence... " >&6; }
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 #include <$2>
2229 _ACEOF
2230 if ac_fn_c_try_cpp "$LINENO"; then :
2231 ac_header_preproc=yes
2232 else
2233 ac_header_preproc=no
2234 fi
2235 rm -f conftest.err conftest.i conftest.$ac_ext
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2237 $as_echo "$ac_header_preproc" >&6; }
2238
2239 # So? What about this header?
2240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2241 yes:no: )
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2243 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2245 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2246 ;;
2247 no:yes:* )
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2249 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2251 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2253 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2255 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2258 ( $as_echo "## -------------------------------------------------------------------------------------- ##
2259 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
2260 ## -------------------------------------------------------------------------------------- ##"
2261 ) | sed "s/^/$as_me: WARNING: /" >&2
2262 ;;
2263 esac
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if eval \${$3+:} false; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 eval "$3=\$ac_header_compiler"
2270 fi
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 fi
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276
2277 } # ac_fn_c_check_header_mongrel
2278
2279 # ac_fn_c_try_run LINENO
2280 # ----------------------
2281 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2282 # that executables *can* be run.
2283 ac_fn_c_try_run ()
2284 {
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 if { { ac_try="$ac_link"
2287 case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290 esac
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 $as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>&5
2294 ac_status=$?
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2297 { { case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300 esac
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_try") 2>&5
2304 ac_status=$?
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; }; }; then :
2307 ac_retval=0
2308 else
2309 $as_echo "$as_me: program exited with status $ac_status" >&5
2310 $as_echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_retval=$ac_status
2314 fi
2315 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 as_fn_set_status $ac_retval
2318
2319 } # ac_fn_c_try_run
2320
2321 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2322 # -------------------------------------------------------
2323 # Tests whether HEADER exists and can be compiled using the include files in
2324 # INCLUDES, setting the cache variable VAR accordingly.
2325 ac_fn_c_check_header_compile ()
2326 {
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2329 $as_echo_n "checking for $2... " >&6; }
2330 if eval \${$3+:} false; then :
2331 $as_echo_n "(cached) " >&6
2332 else
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $4
2336 #include <$2>
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2339 eval "$3=yes"
2340 else
2341 eval "$3=no"
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 eval ac_res=\$$3
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349
2350 } # ac_fn_c_check_header_compile
2351
2352 # ac_fn_c_try_link LINENO
2353 # -----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_c_try_link ()
2356 {
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext conftest$ac_exeext
2359 if { { ac_try="$ac_link"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2372 fi
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
2379 test -x conftest$ac_exeext
2380 }; then :
2381 ac_retval=0
2382 else
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385
2386 ac_retval=1
2387 fi
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394 as_fn_set_status $ac_retval
2395
2396 } # ac_fn_c_try_link
2397
2398 # ac_fn_c_check_func LINENO FUNC VAR
2399 # ----------------------------------
2400 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2401 ac_fn_c_check_func ()
2402 {
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if eval \${$3+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2411 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2413 #define $2 innocuous_$2
2414
2415 /* System header to define __stub macros and hopefully few prototypes,
2416 which can conflict with char $2 (); below.
2417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2418 <limits.h> exists even on freestanding compilers. */
2419
2420 #ifdef __STDC__
2421 # include <limits.h>
2422 #else
2423 # include <assert.h>
2424 #endif
2425
2426 #undef $2
2427
2428 /* Override any GCC internal prototype to avoid an error.
2429 Use char because int might match the return type of a GCC
2430 builtin and then its argument prototype would still apply. */
2431 #ifdef __cplusplus
2432 extern "C"
2433 #endif
2434 char $2 ();
2435 /* The GNU C library defines this for functions which it implements
2436 to always fail with ENOSYS. Some functions are actually named
2437 something starting with __ and the normal name is an alias. */
2438 #if defined __stub_$2 || defined __stub___$2
2439 choke me
2440 #endif
2441
2442 int
2443 main ()
2444 {
2445 return $2 ();
2446 ;
2447 return 0;
2448 }
2449 _ACEOF
2450 if ac_fn_c_try_link "$LINENO"; then :
2451 eval "$3=yes"
2452 else
2453 eval "$3=no"
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext \
2456 conftest$ac_exeext conftest.$ac_ext
2457 fi
2458 eval ac_res=\$$3
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462
2463 } # ac_fn_c_check_func
2464
2465 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2466 # ----------------------------------------------------
2467 # Tries to find if the field MEMBER exists in type AGGR, after including
2468 # INCLUDES, setting cache variable VAR accordingly.
2469 ac_fn_c_check_member ()
2470 {
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2473 $as_echo_n "checking for $2.$3... " >&6; }
2474 if eval \${$4+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2479 $5
2480 int
2481 main ()
2482 {
2483 static $2 ac_aggr;
2484 if (ac_aggr.$3)
2485 return 0;
2486 ;
2487 return 0;
2488 }
2489 _ACEOF
2490 if ac_fn_c_try_compile "$LINENO"; then :
2491 eval "$4=yes"
2492 else
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2495 $5
2496 int
2497 main ()
2498 {
2499 static $2 ac_aggr;
2500 if (sizeof ac_aggr.$3)
2501 return 0;
2502 ;
2503 return 0;
2504 }
2505 _ACEOF
2506 if ac_fn_c_try_compile "$LINENO"; then :
2507 eval "$4=yes"
2508 else
2509 eval "$4=no"
2510 fi
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 eval ac_res=\$$4
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519
2520 } # ac_fn_c_check_member
2521
2522 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2523 # ---------------------------------------------
2524 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2525 # accordingly.
2526 ac_fn_c_check_decl ()
2527 {
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 as_decl_name=`echo $2|sed 's/ *(.*//'`
2530 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2532 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2533 if eval \${$3+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h. */
2538 $4
2539 int
2540 main ()
2541 {
2542 #ifndef $as_decl_name
2543 #ifdef __cplusplus
2544 (void) $as_decl_use;
2545 #else
2546 (void) $as_decl_name;
2547 #endif
2548 #endif
2549
2550 ;
2551 return 0;
2552 }
2553 _ACEOF
2554 if ac_fn_c_try_compile "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2558 fi
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 fi
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565
2566 } # ac_fn_c_check_decl
2567
2568 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2569 # -------------------------------------------
2570 # Tests whether TYPE exists after having included INCLUDES, setting cache
2571 # variable VAR accordingly.
2572 ac_fn_c_check_type ()
2573 {
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if eval \${$3+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 eval "$3=no"
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2583 $4
2584 int
2585 main ()
2586 {
2587 if (sizeof ($2))
2588 return 0;
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_c_try_compile "$LINENO"; then :
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 $4
2597 int
2598 main ()
2599 {
2600 if (sizeof (($2)))
2601 return 0;
2602 ;
2603 return 0;
2604 }
2605 _ACEOF
2606 if ac_fn_c_try_compile "$LINENO"; then :
2607
2608 else
2609 eval "$3=yes"
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 eval ac_res=\$$3
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2619
2620 } # ac_fn_c_check_type
2621 cat >config.log <<_ACEOF
2622 This file contains any messages produced by compilers while
2623 running configure, to aid debugging if configure makes a mistake.
2624
2625 It was created by sim $as_me 0, which was
2626 generated by GNU Autoconf 2.69. Invocation command line was
2627
2628 $ $0 $@
2629
2630 _ACEOF
2631 exec 5>>config.log
2632 {
2633 cat <<_ASUNAME
2634 ## --------- ##
2635 ## Platform. ##
2636 ## --------- ##
2637
2638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2643
2644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2645 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2646
2647 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2648 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2650 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2651 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2652 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2653 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2654
2655 _ASUNAME
2656
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 $as_echo "PATH: $as_dir"
2663 done
2664 IFS=$as_save_IFS
2665
2666 } >&5
2667
2668 cat >&5 <<_ACEOF
2669
2670
2671 ## ----------- ##
2672 ## Core tests. ##
2673 ## ----------- ##
2674
2675 _ACEOF
2676
2677
2678 # Keep a trace of the command line.
2679 # Strip out --no-create and --no-recursion so they do not pile up.
2680 # Strip out --silent because we don't want to record it for future runs.
2681 # Also quote any args containing shell meta-characters.
2682 # Make two passes to allow for proper duplicate-argument suppression.
2683 ac_configure_args=
2684 ac_configure_args0=
2685 ac_configure_args1=
2686 ac_must_keep_next=false
2687 for ac_pass in 1 2
2688 do
2689 for ac_arg
2690 do
2691 case $ac_arg in
2692 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2694 | -silent | --silent | --silen | --sile | --sil)
2695 continue ;;
2696 *\'*)
2697 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2698 esac
2699 case $ac_pass in
2700 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2701 2)
2702 as_fn_append ac_configure_args1 " '$ac_arg'"
2703 if test $ac_must_keep_next = true; then
2704 ac_must_keep_next=false # Got value, back to normal.
2705 else
2706 case $ac_arg in
2707 *=* | --config-cache | -C | -disable-* | --disable-* \
2708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2710 | -with-* | --with-* | -without-* | --without-* | --x)
2711 case "$ac_configure_args0 " in
2712 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2713 esac
2714 ;;
2715 -* ) ac_must_keep_next=true ;;
2716 esac
2717 fi
2718 as_fn_append ac_configure_args " '$ac_arg'"
2719 ;;
2720 esac
2721 done
2722 done
2723 { ac_configure_args0=; unset ac_configure_args0;}
2724 { ac_configure_args1=; unset ac_configure_args1;}
2725
2726 # When interrupted or exit'd, cleanup temporary files, and complete
2727 # config.log. We remove comments because anyway the quotes in there
2728 # would cause problems or look ugly.
2729 # WARNING: Use '\'' to represent an apostrophe within the trap.
2730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2731 trap 'exit_status=$?
2732 # Save into config.log some information that might help in debugging.
2733 {
2734 echo
2735
2736 $as_echo "## ---------------- ##
2737 ## Cache variables. ##
2738 ## ---------------- ##"
2739 echo
2740 # The following way of writing the cache mishandles newlines in values,
2741 (
2742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2743 eval ac_val=\$$ac_var
2744 case $ac_val in #(
2745 *${as_nl}*)
2746 case $ac_var in #(
2747 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2749 esac
2750 case $ac_var in #(
2751 _ | IFS | as_nl) ;; #(
2752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2753 *) { eval $ac_var=; unset $ac_var;} ;;
2754 esac ;;
2755 esac
2756 done
2757 (set) 2>&1 |
2758 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2759 *${as_nl}ac_space=\ *)
2760 sed -n \
2761 "s/'\''/'\''\\\\'\'''\''/g;
2762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2763 ;; #(
2764 *)
2765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2766 ;;
2767 esac |
2768 sort
2769 )
2770 echo
2771
2772 $as_echo "## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##"
2775 echo
2776 for ac_var in $ac_subst_vars
2777 do
2778 eval ac_val=\$$ac_var
2779 case $ac_val in
2780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2781 esac
2782 $as_echo "$ac_var='\''$ac_val'\''"
2783 done | sort
2784 echo
2785
2786 if test -n "$ac_subst_files"; then
2787 $as_echo "## ------------------- ##
2788 ## File substitutions. ##
2789 ## ------------------- ##"
2790 echo
2791 for ac_var in $ac_subst_files
2792 do
2793 eval ac_val=\$$ac_var
2794 case $ac_val in
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 esac
2797 $as_echo "$ac_var='\''$ac_val'\''"
2798 done | sort
2799 echo
2800 fi
2801
2802 if test -s confdefs.h; then
2803 $as_echo "## ----------- ##
2804 ## confdefs.h. ##
2805 ## ----------- ##"
2806 echo
2807 cat confdefs.h
2808 echo
2809 fi
2810 test "$ac_signal" != 0 &&
2811 $as_echo "$as_me: caught signal $ac_signal"
2812 $as_echo "$as_me: exit $exit_status"
2813 } >&5
2814 rm -f core *.core core.conftest.* &&
2815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2816 exit $exit_status
2817 ' 0
2818 for ac_signal in 1 2 13 15; do
2819 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 done
2821 ac_signal=0
2822
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2825
2826 $as_echo "/* confdefs.h */" > confdefs.h
2827
2828 # Predefined preprocessor variables.
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2844 _ACEOF
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2848 _ACEOF
2849
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2852 _ACEOF
2853
2854
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2857 ac_site_file1=NONE
2858 ac_site_file2=NONE
2859 if test -n "$CONFIG_SITE"; then
2860 # We do not want a PATH search for config.site.
2861 case $CONFIG_SITE in #((
2862 -*) ac_site_file1=./$CONFIG_SITE;;
2863 */*) ac_site_file1=$CONFIG_SITE;;
2864 *) ac_site_file1=./$CONFIG_SITE;;
2865 esac
2866 elif test "x$prefix" != xNONE; then
2867 ac_site_file1=$prefix/share/config.site
2868 ac_site_file2=$prefix/etc/config.site
2869 else
2870 ac_site_file1=$ac_default_prefix/share/config.site
2871 ac_site_file2=$ac_default_prefix/etc/config.site
2872 fi
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2874 do
2875 test "x$ac_site_file" = xNONE && continue
2876 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879 sed 's/^/| /' "$ac_site_file" >&5
2880 . "$ac_site_file" \
2881 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883 as_fn_error $? "failed to load site script $ac_site_file
2884 See \`config.log' for more details" "$LINENO" 5; }
2885 fi
2886 done
2887
2888 if test -r "$cache_file"; then
2889 # Some versions of bash will fail to source /dev/null (special files
2890 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2891 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2893 $as_echo "$as_me: loading cache $cache_file" >&6;}
2894 case $cache_file in
2895 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2896 *) . "./$cache_file";;
2897 esac
2898 fi
2899 else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2901 $as_echo "$as_me: creating cache $cache_file" >&6;}
2902 >$cache_file
2903 fi
2904
2905 as_fn_append ac_header_list " dlfcn.h"
2906 as_fn_append ac_header_list " fcntl.h"
2907 as_fn_append ac_header_list " fpu_control.h"
2908 as_fn_append ac_header_list " termios.h"
2909 as_fn_append ac_header_list " unistd.h"
2910 as_fn_append ac_header_list " utime.h"
2911 as_fn_append ac_header_list " linux/if_tun.h"
2912 as_fn_append ac_header_list " linux/mii.h"
2913 as_fn_append ac_header_list " linux/types.h"
2914 as_fn_append ac_header_list " net/if.h"
2915 as_fn_append ac_header_list " netinet/in.h"
2916 as_fn_append ac_header_list " netinet/tcp.h"
2917 as_fn_append ac_header_list " sys/ioctl.h"
2918 as_fn_append ac_header_list " sys/mman.h"
2919 as_fn_append ac_header_list " sys/mount.h"
2920 as_fn_append ac_header_list " sys/param.h"
2921 as_fn_append ac_header_list " sys/resource.h"
2922 as_fn_append ac_header_list " sys/socket.h"
2923 as_fn_append ac_header_list " sys/stat.h"
2924 as_fn_append ac_header_list " sys/statfs.h"
2925 as_fn_append ac_header_list " sys/termio.h"
2926 as_fn_append ac_header_list " sys/termios.h"
2927 as_fn_append ac_header_list " sys/types.h"
2928 as_fn_append ac_header_list " sys/vfs.h"
2929 as_fn_append ac_func_list " __setfpucw"
2930 as_fn_append ac_func_list " access"
2931 as_fn_append ac_func_list " aint"
2932 as_fn_append ac_func_list " anint"
2933 as_fn_append ac_func_list " cfgetispeed"
2934 as_fn_append ac_func_list " cfgetospeed"
2935 as_fn_append ac_func_list " cfsetispeed"
2936 as_fn_append ac_func_list " cfsetospeed"
2937 as_fn_append ac_func_list " chdir"
2938 as_fn_append ac_func_list " chmod"
2939 as_fn_append ac_func_list " dup"
2940 as_fn_append ac_func_list " dup2"
2941 as_fn_append ac_func_list " execv"
2942 as_fn_append ac_func_list " execve"
2943 as_fn_append ac_func_list " fcntl"
2944 as_fn_append ac_func_list " fork"
2945 as_fn_append ac_func_list " fstat"
2946 as_fn_append ac_func_list " fstatfs"
2947 as_fn_append ac_func_list " ftruncate"
2948 as_fn_append ac_func_list " getdirentries"
2949 as_fn_append ac_func_list " getegid"
2950 as_fn_append ac_func_list " geteuid"
2951 as_fn_append ac_func_list " getgid"
2952 as_fn_append ac_func_list " getpid"
2953 as_fn_append ac_func_list " getppid"
2954 as_fn_append ac_func_list " getrusage"
2955 as_fn_append ac_func_list " gettimeofday"
2956 as_fn_append ac_func_list " getuid"
2957 as_fn_append ac_func_list " ioctl"
2958 as_fn_append ac_func_list " kill"
2959 as_fn_append ac_func_list " link"
2960 as_fn_append ac_func_list " lseek"
2961 as_fn_append ac_func_list " mmap"
2962 as_fn_append ac_func_list " munmap"
2963 as_fn_append ac_func_list " pipe"
2964 as_fn_append ac_func_list " posix_fallocate"
2965 as_fn_append ac_func_list " pread"
2966 as_fn_append ac_func_list " rmdir"
2967 as_fn_append ac_func_list " setregid"
2968 as_fn_append ac_func_list " setreuid"
2969 as_fn_append ac_func_list " setgid"
2970 as_fn_append ac_func_list " setuid"
2971 as_fn_append ac_func_list " sigaction"
2972 as_fn_append ac_func_list " sigprocmask"
2973 as_fn_append ac_func_list " sqrt"
2974 as_fn_append ac_func_list " stat"
2975 as_fn_append ac_func_list " strsignal"
2976 as_fn_append ac_func_list " symlink"
2977 as_fn_append ac_func_list " tcdrain"
2978 as_fn_append ac_func_list " tcflow"
2979 as_fn_append ac_func_list " tcflush"
2980 as_fn_append ac_func_list " tcgetattr"
2981 as_fn_append ac_func_list " tcgetpgrp"
2982 as_fn_append ac_func_list " tcsendbreak"
2983 as_fn_append ac_func_list " tcsetattr"
2984 as_fn_append ac_func_list " tcsetpgrp"
2985 as_fn_append ac_func_list " time"
2986 as_fn_append ac_func_list " truncate"
2987 as_fn_append ac_func_list " umask"
2988 as_fn_append ac_func_list " unlink"
2989 as_fn_append ac_func_list " utime"
2990 # Check that the precious variables saved in the cache have kept the same
2991 # value.
2992 ac_cache_corrupted=false
2993 for ac_var in $ac_precious_vars; do
2994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2995 eval ac_new_set=\$ac_env_${ac_var}_set
2996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2997 eval ac_new_val=\$ac_env_${ac_var}_value
2998 case $ac_old_set,$ac_new_set in
2999 set,)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3002 ac_cache_corrupted=: ;;
3003 ,set)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3006 ac_cache_corrupted=: ;;
3007 ,);;
3008 *)
3009 if test "x$ac_old_val" != "x$ac_new_val"; then
3010 # differences in whitespace do not lead to failure.
3011 ac_old_val_w=`echo x $ac_old_val`
3012 ac_new_val_w=`echo x $ac_new_val`
3013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3016 ac_cache_corrupted=:
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3020 eval $ac_var=\$ac_old_val
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3026 fi;;
3027 esac
3028 # Pass precious variables to config.status.
3029 if test "$ac_new_set" = set; then
3030 case $ac_new_val in
3031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3032 *) ac_arg=$ac_var=$ac_new_val ;;
3033 esac
3034 case " $ac_configure_args " in
3035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3036 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3037 esac
3038 fi
3039 done
3040 if $ac_cache_corrupted; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3045 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3046 fi
3047 ## -------------------- ##
3048 ## Main body of script. ##
3049 ## -------------------- ##
3050
3051 ac_ext=c
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056
3057
3058
3059
3060
3061
3062
3063
3064 # Check whether --with-pkgversion was given.
3065 if test "${with_pkgversion+set}" = set; then :
3066 withval=$with_pkgversion; case "$withval" in
3067 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
3068 no) PKGVERSION= ;;
3069 *) PKGVERSION="($withval) " ;;
3070 esac
3071 else
3072 PKGVERSION="(SIM) "
3073
3074 fi
3075
3076
3077
3078
3079 cat >>confdefs.h <<_ACEOF
3080 #define PKGVERSION "$PKGVERSION"
3081 _ACEOF
3082
3083
3084
3085 # Check whether --with-bugurl was given.
3086 if test "${with_bugurl+set}" = set; then :
3087 withval=$with_bugurl; case "$withval" in
3088 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
3089 no) BUGURL=
3090 ;;
3091 *) BUGURL="$withval"
3092 ;;
3093 esac
3094 else
3095 BUGURL="$PACKAGE_BUGREPORT"
3096
3097 fi
3098
3099 case ${BUGURL} in
3100 "")
3101 REPORT_BUGS_TO=
3102 REPORT_BUGS_TEXI=
3103 ;;
3104 *)
3105 REPORT_BUGS_TO="<$BUGURL>"
3106 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3107 ;;
3108 esac;
3109
3110
3111
3112
3113 cat >>confdefs.h <<_ACEOF
3114 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3115 _ACEOF
3116
3117
3118 ac_config_headers="$ac_config_headers config.h"
3119
3120
3121 ac_aux_dir=
3122 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3123 if test -f "$ac_dir/install-sh"; then
3124 ac_aux_dir=$ac_dir
3125 ac_install_sh="$ac_aux_dir/install-sh -c"
3126 break
3127 elif test -f "$ac_dir/install.sh"; then
3128 ac_aux_dir=$ac_dir
3129 ac_install_sh="$ac_aux_dir/install.sh -c"
3130 break
3131 elif test -f "$ac_dir/shtool"; then
3132 ac_aux_dir=$ac_dir
3133 ac_install_sh="$ac_aux_dir/shtool install -c"
3134 break
3135 fi
3136 done
3137 if test -z "$ac_aux_dir"; then
3138 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3139 fi
3140
3141 # These three variables are undocumented and unsupported,
3142 # and are intended to be withdrawn in a future Autoconf release.
3143 # They can cause serious problems if a builder's source tree is in a directory
3144 # whose full name contains unusual characters.
3145 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3146 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3147 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3148
3149
3150 # Make sure we can run config.sub.
3151 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3152 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3153
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3155 $as_echo_n "checking build system type... " >&6; }
3156 if ${ac_cv_build+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 ac_build_alias=$build_alias
3160 test "x$ac_build_alias" = x &&
3161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3162 test "x$ac_build_alias" = x &&
3163 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3164 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3165 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3166
3167 fi
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3169 $as_echo "$ac_cv_build" >&6; }
3170 case $ac_cv_build in
3171 *-*-*) ;;
3172 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3173 esac
3174 build=$ac_cv_build
3175 ac_save_IFS=$IFS; IFS='-'
3176 set x $ac_cv_build
3177 shift
3178 build_cpu=$1
3179 build_vendor=$2
3180 shift; shift
3181 # Remember, the first character of IFS is used to create $*,
3182 # except with old shells:
3183 build_os=$*
3184 IFS=$ac_save_IFS
3185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3186
3187
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3189 $as_echo_n "checking host system type... " >&6; }
3190 if ${ac_cv_host+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test "x$host_alias" = x; then
3194 ac_cv_host=$ac_cv_build
3195 else
3196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3197 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3198 fi
3199
3200 fi
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3202 $as_echo "$ac_cv_host" >&6; }
3203 case $ac_cv_host in
3204 *-*-*) ;;
3205 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3206 esac
3207 host=$ac_cv_host
3208 ac_save_IFS=$IFS; IFS='-'
3209 set x $ac_cv_host
3210 shift
3211 host_cpu=$1
3212 host_vendor=$2
3213 shift; shift
3214 # Remember, the first character of IFS is used to create $*,
3215 # except with old shells:
3216 host_os=$*
3217 IFS=$ac_save_IFS
3218 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3219
3220
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3222 $as_echo_n "checking target system type... " >&6; }
3223 if ${ac_cv_target+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test "x$target_alias" = x; then
3227 ac_cv_target=$ac_cv_host
3228 else
3229 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3230 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3231 fi
3232
3233 fi
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3235 $as_echo "$ac_cv_target" >&6; }
3236 case $ac_cv_target in
3237 *-*-*) ;;
3238 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3239 esac
3240 target=$ac_cv_target
3241 ac_save_IFS=$IFS; IFS='-'
3242 set x $ac_cv_target
3243 shift
3244 target_cpu=$1
3245 target_vendor=$2
3246 shift; shift
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3249 target_os=$*
3250 IFS=$ac_save_IFS
3251 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3252
3253
3254 # The aliases save the names the user supplied, while $host etc.
3255 # will get canonicalized.
3256 test -n "$target_alias" &&
3257 test "$program_prefix$program_suffix$program_transform_name" = \
3258 NONENONEs,x,x, &&
3259 program_prefix=${target_alias}-
3260 # Expand $ac_aux_dir to an absolute path.
3261 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3262
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345 if test "x$ac_ct_CC" = x; then
3346 CC=""
3347 else
3348 case $cross_compiling:$ac_tool_warned in
3349 yes:)
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352 ac_tool_warned=yes ;;
3353 esac
3354 CC=$ac_ct_CC
3355 fi
3356 else
3357 CC="$ac_cv_prog_CC"
3358 fi
3359
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}cc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="${ac_tool_prefix}cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399 fi
3400 fi
3401 if test -z "$CC"; then
3402 # Extract the first word of "cc", so it can be a program name with args.
3403 set dummy cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 ac_prog_rejected=no
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421 ac_prog_rejected=yes
3422 continue
3423 fi
3424 ac_cv_prog_CC="cc"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 if test $ac_prog_rejected = yes; then
3433 # We found a bogon in the path, so make sure we never use it.
3434 set dummy $ac_cv_prog_CC
3435 shift
3436 if test $# != 0; then
3437 # We chose a different compiler from the bogus one.
3438 # However, it has the same basename, so the bogon will be chosen
3439 # first if we set CC to just the basename; use the full file name.
3440 shift
3441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442 fi
3443 fi
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 for ac_prog in cl.exe
3460 do
3461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482 done
3483 done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498 test -n "$CC" && break
3499 done
3500 fi
3501 if test -z "$CC"; then
3502 ac_ct_CC=$CC
3503 for ac_prog in cl.exe
3504 do
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_ac_ct_CC="$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526 done
3527 done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533 if test -n "$ac_ct_CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535 $as_echo "$ac_ct_CC" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542 test -n "$ac_ct_CC" && break
3543 done
3544
3545 if test "x$ac_ct_CC" = x; then
3546 CC=""
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549 yes:)
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552 ac_tool_warned=yes ;;
3553 esac
3554 CC=$ac_ct_CC
3555 fi
3556 fi
3557
3558 fi
3559
3560
3561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "no acceptable C compiler found in \$PATH
3564 See \`config.log' for more details" "$LINENO" 5; }
3565
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3568 set X $ac_compile
3569 ac_compiler=$2
3570 for ac_option in --version -v -V -qversion; do
3571 { { ac_try="$ac_compiler $ac_option >&5"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3579 ac_status=$?
3580 if test -s conftest.err; then
3581 sed '10a\
3582 ... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3585 fi
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3589 done
3590
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3606 # of exeext.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3610
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3613
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3616 do
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620 esac
3621 done
3622 rm -f $ac_rmfiles
3623
3624 if { { ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link_default") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3641 do
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3645 ;;
3646 [ab].out )
3647 # We found the default executable, but exeext='' is most
3648 # certainly right.
3649 break;;
3650 *.* )
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652 then :; else
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654 fi
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3659 # actually working.
3660 break;;
3661 * )
3662 break;;
3663 esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3666
3667 else
3668 ac_file=''
3669 fi
3670 if test -z "$ac_file"; then :
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3689
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3708 # `rm'.
3709 for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;;
3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714 break;;
3715 * ) break;;
3716 esac
3717 done
3718 else
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3723 fi
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3727
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3730 ac_exeext=$EXEEXT
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdio.h>
3734 int
3735 main ()
3736 {
3737 FILE *f = fopen ("conftest.out", "w");
3738 return ferror (f) || fclose (f) != 0;
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run. If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750 { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 if { ac_try='./conftest$ac_cv_exeext'
3762 { { case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_try") 2>&5
3769 ac_status=$?
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; }; then
3772 cross_compiling=no
3773 else
3774 if test "$cross_compiling" = maybe; then
3775 cross_compiling=yes
3776 else
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3782 fi
3783 fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3787
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3791 $as_echo_n "checking for suffix of object files... " >&6; }
3792 if ${ac_cv_objext+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 rm -f conftest.o conftest.obj
3807 if { { ac_try="$ac_compile"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_compile") 2>&5
3815 ac_status=$?
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 for ac_file in conftest.o conftest.obj conftest.*; do
3819 test -f "$ac_file" || continue;
3820 case $ac_file in
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3823 break;;
3824 esac
3825 done
3826 else
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of object files: cannot compile
3833 See \`config.log' for more details" "$LINENO" 5; }
3834 fi
3835 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3838 $as_echo "$ac_cv_objext" >&6; }
3839 OBJEXT=$ac_cv_objext
3840 ac_objext=$OBJEXT
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3842 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3843 if ${ac_cv_c_compiler_gnu+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848
3849 int
3850 main ()
3851 {
3852 #ifndef __GNUC__
3853 choke me
3854 #endif
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861 ac_compiler_gnu=yes
3862 else
3863 ac_compiler_gnu=no
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3871 if test $ac_compiler_gnu = yes; then
3872 GCC=yes
3873 else
3874 GCC=
3875 fi
3876 ac_test_CFLAGS=${CFLAGS+set}
3877 ac_save_CFLAGS=$CFLAGS
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3880 if ${ac_cv_prog_cc_g+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 ac_save_c_werror_flag=$ac_c_werror_flag
3884 ac_c_werror_flag=yes
3885 ac_cv_prog_cc_g=no
3886 CFLAGS="-g"
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889
3890 int
3891 main ()
3892 {
3893
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899 ac_cv_prog_cc_g=yes
3900 else
3901 CFLAGS=""
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914
3915 else
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3917 CFLAGS="-g"
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920
3921 int
3922 main ()
3923 {
3924
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_g=yes
3931 fi
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3940 $as_echo "$ac_cv_prog_cc_g" >&6; }
3941 if test "$ac_test_CFLAGS" = set; then
3942 CFLAGS=$ac_save_CFLAGS
3943 elif test $ac_cv_prog_cc_g = yes; then
3944 if test "$GCC" = yes; then
3945 CFLAGS="-g -O2"
3946 else
3947 CFLAGS="-g"
3948 fi
3949 else
3950 if test "$GCC" = yes; then
3951 CFLAGS="-O2"
3952 else
3953 CFLAGS=
3954 fi
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3957 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3958 if ${ac_cv_prog_cc_c89+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 ac_cv_prog_cc_c89=no
3962 ac_save_CC=$CC
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965 #include <stdarg.h>
3966 #include <stdio.h>
3967 struct stat;
3968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3969 struct buf { int x; };
3970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3971 static char *e (p, i)
3972 char **p;
3973 int i;
3974 {
3975 return p[i];
3976 }
3977 static char *f (char * (*g) (char **, int), char **p, ...)
3978 {
3979 char *s;
3980 va_list v;
3981 va_start (v,p);
3982 s = g (p, va_arg (v,int));
3983 va_end (v);
3984 return s;
3985 }
3986
3987 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3988 function prototypes and stuff, but not '\xHH' hex character constants.
3989 These don't provoke an error unfortunately, instead are silently treated
3990 as 'x'. The following induces an error, until -std is added to get
3991 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3992 array size at least. It's necessary to write '\x00'==0 to get something
3993 that's true only with -std. */
3994 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3995
3996 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3997 inside strings and character constants. */
3998 #define FOO(x) 'x'
3999 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4000
4001 int test (int i, double x);
4002 struct s1 {int (*f) (int a);};
4003 struct s2 {int (*f) (double a);};
4004 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4005 int argc;
4006 char **argv;
4007 int
4008 main ()
4009 {
4010 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4016 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4017 do
4018 CC="$ac_save_CC $ac_arg"
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_prog_cc_c89=$ac_arg
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext
4023 test "x$ac_cv_prog_cc_c89" != "xno" && break
4024 done
4025 rm -f conftest.$ac_ext
4026 CC=$ac_save_CC
4027
4028 fi
4029 # AC_CACHE_VAL
4030 case "x$ac_cv_prog_cc_c89" in
4031 x)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4033 $as_echo "none needed" >&6; } ;;
4034 xno)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4036 $as_echo "unsupported" >&6; } ;;
4037 *)
4038 CC="$CC $ac_cv_prog_cc_c89"
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4040 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4041 esac
4042 if test "x$ac_cv_prog_cc_c89" != xno; then :
4043
4044 fi
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4058 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4059 if ${am_cv_prog_cc_c_o+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064
4065 int
4066 main ()
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 # Make sure it works both with $CC and with simple cc.
4074 # Following AC_PROG_CC_C_O, we do the test twice because some
4075 # compilers refuse to overwrite an existing .o file with -o,
4076 # though they will create one.
4077 am_cv_prog_cc_c_o=yes
4078 for am_i in 1 2; do
4079 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4080 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } \
4084 && test -f conftest2.$ac_objext; then
4085 : OK
4086 else
4087 am_cv_prog_cc_c_o=no
4088 break
4089 fi
4090 done
4091 rm -f core conftest*
4092 unset am_i
4093 fi
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4095 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4096 if test "$am_cv_prog_cc_c_o" != yes; then
4097 # Losing compiler, so override with the script.
4098 # FIXME: It is wrong to rewrite CC.
4099 # But if we don't then we get into trouble of one sort or another.
4100 # A longer-term fix would be to have automake use am__CC in this case,
4101 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4102 CC="$am_aux_dir/compile $CC"
4103 fi
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4118 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4119 # On Suns, sometimes $CPP names a directory.
4120 if test -n "$CPP" && test -d "$CPP"; then
4121 CPP=
4122 fi
4123 if test -z "$CPP"; then
4124 if ${ac_cv_prog_CPP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 # Double quotes because CPP needs to be expanded
4128 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4129 do
4130 ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4132 do
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #ifdef __STDC__
4142 # include <limits.h>
4143 #else
4144 # include <assert.h>
4145 #endif
4146 Syntax error
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149
4150 else
4151 # Broken: fails on valid input.
4152 continue
4153 fi
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4155
4156 # OK, works on sane cases. Now check whether nonexistent headers
4157 # can be detected and how.
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4169 fi
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4171
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.i conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then :
4176 break
4177 fi
4178
4179 done
4180 ac_cv_prog_CPP=$CPP
4181
4182 fi
4183 CPP=$ac_cv_prog_CPP
4184 else
4185 ac_cv_prog_CPP=$CPP
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4188 $as_echo "$CPP" >&6; }
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200 #ifdef __STDC__
4201 # include <limits.h>
4202 #else
4203 # include <assert.h>
4204 #endif
4205 Syntax error
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208
4209 else
4210 # Broken: fails on valid input.
4211 continue
4212 fi
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4214
4215 # OK, works on sane cases. Now check whether nonexistent headers
4216 # can be detected and how.
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if ac_fn_c_try_cpp "$LINENO"; then :
4222 # Broken: success on invalid input.
4223 continue
4224 else
4225 # Passes both tests.
4226 ac_preproc_ok=:
4227 break
4228 fi
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4230
4231 done
4232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 rm -f conftest.i conftest.err conftest.$ac_ext
4234 if $ac_preproc_ok; then :
4235
4236 else
4237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4240 See \`config.log' for more details" "$LINENO" 5; }
4241 fi
4242
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248
4249
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4251 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4252 if ${ac_cv_path_GREP+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if test -z "$GREP"; then
4256 ac_path_GREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in grep ggrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4266 as_fn_executable_p "$ac_path_GREP" || continue
4267 # Check for GNU ac_path_GREP and select it if it is found.
4268 # Check for GNU $ac_path_GREP
4269 case `"$ac_path_GREP" --version 2>&1` in
4270 *GNU*)
4271 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4272 *)
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4276 do
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'GREP' >> "conftest.nl"
4281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 as_fn_arith $ac_count + 1 && ac_count=$as_val
4284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_GREP="$ac_path_GREP"
4287 ac_path_GREP_max=$ac_count
4288 fi
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 esac
4294
4295 $ac_path_GREP_found && break 3
4296 done
4297 done
4298 done
4299 IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_GREP"; then
4301 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4302 fi
4303 else
4304 ac_cv_path_GREP=$GREP
4305 fi
4306
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4309 $as_echo "$ac_cv_path_GREP" >&6; }
4310 GREP="$ac_cv_path_GREP"
4311
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4314 $as_echo_n "checking for egrep... " >&6; }
4315 if ${ac_cv_path_EGREP+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4319 then ac_cv_path_EGREP="$GREP -E"
4320 else
4321 if test -z "$EGREP"; then
4322 ac_path_EGREP_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_prog in egrep; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4332 as_fn_executable_p "$ac_path_EGREP" || continue
4333 # Check for GNU ac_path_EGREP and select it if it is found.
4334 # Check for GNU $ac_path_EGREP
4335 case `"$ac_path_EGREP" --version 2>&1` in
4336 *GNU*)
4337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4338 *)
4339 ac_count=0
4340 $as_echo_n 0123456789 >"conftest.in"
4341 while :
4342 do
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 $as_echo 'EGREP' >> "conftest.nl"
4347 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 as_fn_arith $ac_count + 1 && ac_count=$as_val
4350 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_EGREP="$ac_path_EGREP"
4353 ac_path_EGREP_max=$ac_count
4354 fi
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4357 done
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 esac
4360
4361 $ac_path_EGREP_found && break 3
4362 done
4363 done
4364 done
4365 IFS=$as_save_IFS
4366 if test -z "$ac_cv_path_EGREP"; then
4367 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368 fi
4369 else
4370 ac_cv_path_EGREP=$EGREP
4371 fi
4372
4373 fi
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4376 $as_echo "$ac_cv_path_EGREP" >&6; }
4377 EGREP="$ac_cv_path_EGREP"
4378
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4381 $as_echo_n "checking for ANSI C header files... " >&6; }
4382 if ${ac_cv_header_stdc+:} false; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #include <stdlib.h>
4388 #include <stdarg.h>
4389 #include <string.h>
4390 #include <float.h>
4391
4392 int
4393 main ()
4394 {
4395
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_cv_header_stdc=yes
4402 else
4403 ac_cv_header_stdc=no
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406
4407 if test $ac_cv_header_stdc = yes; then
4408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <string.h>
4412
4413 _ACEOF
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then :
4416
4417 else
4418 ac_cv_header_stdc=no
4419 fi
4420 rm -f conftest*
4421
4422 fi
4423
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <stdlib.h>
4429
4430 _ACEOF
4431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 $EGREP "free" >/dev/null 2>&1; then :
4433
4434 else
4435 ac_cv_header_stdc=no
4436 fi
4437 rm -f conftest*
4438
4439 fi
4440
4441 if test $ac_cv_header_stdc = yes; then
4442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4443 if test "$cross_compiling" = yes; then :
4444 :
4445 else
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #include <ctype.h>
4449 #include <stdlib.h>
4450 #if ((' ' & 0x0FF) == 0x020)
4451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4453 #else
4454 # define ISLOWER(c) \
4455 (('a' <= (c) && (c) <= 'i') \
4456 || ('j' <= (c) && (c) <= 'r') \
4457 || ('s' <= (c) && (c) <= 'z'))
4458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4459 #endif
4460
4461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4462 int
4463 main ()
4464 {
4465 int i;
4466 for (i = 0; i < 256; i++)
4467 if (XOR (islower (i), ISLOWER (i))
4468 || toupper (i) != TOUPPER (i))
4469 return 2;
4470 return 0;
4471 }
4472 _ACEOF
4473 if ac_fn_c_try_run "$LINENO"; then :
4474
4475 else
4476 ac_cv_header_stdc=no
4477 fi
4478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4479 conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 fi
4481
4482 fi
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4485 $as_echo "$ac_cv_header_stdc" >&6; }
4486 if test $ac_cv_header_stdc = yes; then
4487
4488 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4489
4490 fi
4491
4492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4493 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4494 inttypes.h stdint.h unistd.h
4495 do :
4496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4497 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4498 "
4499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4500 cat >>confdefs.h <<_ACEOF
4501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502 _ACEOF
4503
4504 fi
4505
4506 done
4507
4508
4509
4510 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4511 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4512 MINIX=yes
4513 else
4514 MINIX=
4515 fi
4516
4517
4518 if test "$MINIX" = yes; then
4519
4520 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4521
4522
4523 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4524
4525
4526 $as_echo "#define _MINIX 1" >>confdefs.h
4527
4528 fi
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4532 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4533 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538
4539 # define __EXTENSIONS__ 1
4540 $ac_includes_default
4541 int
4542 main ()
4543 {
4544
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_compile "$LINENO"; then :
4550 ac_cv_safe_to_define___extensions__=yes
4551 else
4552 ac_cv_safe_to_define___extensions__=no
4553 fi
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4557 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4558 test $ac_cv_safe_to_define___extensions__ = yes &&
4559 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4560
4561 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4562
4563 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4564
4565 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4566
4567 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4568
4569
4570 test "$program_prefix" != NONE &&
4571 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4572 # Use a double $ so make ignores it.
4573 test "$program_suffix" != NONE &&
4574 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4575 # Double any \ or $.
4576 # By default was `s,x,x', remove it if useless.
4577 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4578 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4579
4580 # Find a good install program. We prefer a C program (faster),
4581 # so one script is as good as another. But avoid the broken or
4582 # incompatible versions:
4583 # SysV /etc/install, /usr/sbin/install
4584 # SunOS /usr/etc/install
4585 # IRIX /sbin/install
4586 # AIX /bin/install
4587 # AmigaOS /C/install, which installs bootblocks on floppy discs
4588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4591 # OS/2's system install, which has a completely different semantic
4592 # ./install, which can be erroneously created by make from ./install.sh.
4593 # Reject install programs that cannot install multiple files.
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4595 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4596 if test -z "$INSTALL"; then
4597 if ${ac_cv_path_install+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 # Account for people who put trailing slashes in PATH elements.
4606 case $as_dir/ in #((
4607 ./ | .// | /[cC]/* | \
4608 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4609 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4610 /usr/ucb/* ) ;;
4611 *)
4612 # OSF1 and SCO ODT 3.0 have their own names for install.
4613 # Don't use installbsd from OSF since it installs stuff as root
4614 # by default.
4615 for ac_prog in ginstall scoinst install; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4618 if test $ac_prog = install &&
4619 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4620 # AIX install. It has an incompatible calling convention.
4621 :
4622 elif test $ac_prog = install &&
4623 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4624 # program-specific install script used by HP pwplus--don't use.
4625 :
4626 else
4627 rm -rf conftest.one conftest.two conftest.dir
4628 echo one > conftest.one
4629 echo two > conftest.two
4630 mkdir conftest.dir
4631 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4632 test -s conftest.one && test -s conftest.two &&
4633 test -s conftest.dir/conftest.one &&
4634 test -s conftest.dir/conftest.two
4635 then
4636 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4637 break 3
4638 fi
4639 fi
4640 fi
4641 done
4642 done
4643 ;;
4644 esac
4645
4646 done
4647 IFS=$as_save_IFS
4648
4649 rm -rf conftest.one conftest.two conftest.dir
4650
4651 fi
4652 if test "${ac_cv_path_install+set}" = set; then
4653 INSTALL=$ac_cv_path_install
4654 else
4655 # As a last resort, use the slow shell script. Don't cache a
4656 # value for INSTALL within a source directory, because that will
4657 # break other packages using the cache if that directory is
4658 # removed, or if the value is a relative name.
4659 INSTALL=$ac_install_sh
4660 fi
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4663 $as_echo "$INSTALL" >&6; }
4664
4665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4666 # It thinks the first close brace ends the variable substitution.
4667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4668
4669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4670
4671 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4672
4673
4674
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4678 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4679 if ${ac_cv_c_bigendian+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 ac_cv_c_bigendian=unknown
4683 # See if we're dealing with a universal compiler.
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #ifndef __APPLE_CC__
4687 not a universal capable compiler
4688 #endif
4689 typedef int dummy;
4690
4691 _ACEOF
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693
4694 # Check for potential -arch flags. It is not universal unless
4695 # there are at least two -arch flags with different values.
4696 ac_arch=
4697 ac_prev=
4698 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4699 if test -n "$ac_prev"; then
4700 case $ac_word in
4701 i?86 | x86_64 | ppc | ppc64)
4702 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4703 ac_arch=$ac_word
4704 else
4705 ac_cv_c_bigendian=universal
4706 break
4707 fi
4708 ;;
4709 esac
4710 ac_prev=
4711 elif test "x$ac_word" = "x-arch"; then
4712 ac_prev=arch
4713 fi
4714 done
4715 fi
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 if test $ac_cv_c_bigendian = unknown; then
4718 # See if sys/param.h defines the BYTE_ORDER macro.
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #include <sys/types.h>
4722 #include <sys/param.h>
4723
4724 int
4725 main ()
4726 {
4727 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4728 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4729 && LITTLE_ENDIAN)
4730 bogus endian macros
4731 #endif
4732
4733 ;
4734 return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 # It does; now see whether it defined to BIG_ENDIAN or not.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <sys/types.h>
4742 #include <sys/param.h>
4743
4744 int
4745 main ()
4746 {
4747 #if BYTE_ORDER != BIG_ENDIAN
4748 not big endian
4749 #endif
4750
4751 ;
4752 return 0;
4753 }
4754 _ACEOF
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756 ac_cv_c_bigendian=yes
4757 else
4758 ac_cv_c_bigendian=no
4759 fi
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 fi
4764 if test $ac_cv_c_bigendian = unknown; then
4765 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #include <limits.h>
4769
4770 int
4771 main ()
4772 {
4773 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4774 bogus endian macros
4775 #endif
4776
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 # It does; now see whether it defined to _BIG_ENDIAN or not.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #include <limits.h>
4786
4787 int
4788 main ()
4789 {
4790 #ifndef _BIG_ENDIAN
4791 not big endian
4792 #endif
4793
4794 ;
4795 return 0;
4796 }
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_c_bigendian=yes
4800 else
4801 ac_cv_c_bigendian=no
4802 fi
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 fi
4807 if test $ac_cv_c_bigendian = unknown; then
4808 # Compile a test program.
4809 if test "$cross_compiling" = yes; then :
4810 # Try to guess by grepping values from an object file.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 short int ascii_mm[] =
4814 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4815 short int ascii_ii[] =
4816 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4817 int use_ascii (int i) {
4818 return ascii_mm[i] + ascii_ii[i];
4819 }
4820 short int ebcdic_ii[] =
4821 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4822 short int ebcdic_mm[] =
4823 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4824 int use_ebcdic (int i) {
4825 return ebcdic_mm[i] + ebcdic_ii[i];
4826 }
4827 extern int foo;
4828
4829 int
4830 main ()
4831 {
4832 return use_ascii (foo) == use_ebcdic (foo);
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4839 ac_cv_c_bigendian=yes
4840 fi
4841 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4842 if test "$ac_cv_c_bigendian" = unknown; then
4843 ac_cv_c_bigendian=no
4844 else
4845 # finding both strings is unlikely to happen, but who knows?
4846 ac_cv_c_bigendian=unknown
4847 fi
4848 fi
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 else
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4854 $ac_includes_default
4855 int
4856 main ()
4857 {
4858
4859 /* Are we little or big endian? From Harbison&Steele. */
4860 union
4861 {
4862 long int l;
4863 char c[sizeof (long int)];
4864 } u;
4865 u.l = 1;
4866 return u.c[sizeof (long int) - 1] == 1;
4867
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 if ac_fn_c_try_run "$LINENO"; then :
4873 ac_cv_c_bigendian=no
4874 else
4875 ac_cv_c_bigendian=yes
4876 fi
4877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4878 conftest.$ac_objext conftest.beam conftest.$ac_ext
4879 fi
4880
4881 fi
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4884 $as_echo "$ac_cv_c_bigendian" >&6; }
4885 case $ac_cv_c_bigendian in #(
4886 yes)
4887 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4888 ;; #(
4889 no)
4890 ;; #(
4891 universal)
4892
4893 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4894
4895 ;; #(
4896 *)
4897 as_fn_error $? "unknown endianness
4898 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4899 esac
4900
4901
4902
4903
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_prog_DTC+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -n "$DTC"; then
4913 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 DTC=$ac_cv_prog_DTC
4933 if test -n "$DTC"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4935 $as_echo "$DTC" >&6; }
4936 else
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940
4941
4942 fi
4943 if test -z "$ac_cv_prog_DTC"; then
4944 ac_ct_DTC=$DTC
4945 # Extract the first word of "dtc", so it can be a program name with args.
4946 set dummy dtc; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$ac_ct_DTC"; then
4953 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_ac_ct_DTC="dtc"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4973 if test -n "$ac_ct_DTC"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4975 $as_echo "$ac_ct_DTC" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981 if test "x$ac_ct_DTC" = x; then
4982 DTC=""
4983 else
4984 case $cross_compiling:$ac_tool_warned in
4985 yes:)
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988 ac_tool_warned=yes ;;
4989 esac
4990 DTC=$ac_ct_DTC
4991 fi
4992 else
4993 DTC="$ac_cv_prog_DTC"
4994 fi
4995
4996
4997 if test "x$cross_compiling" = "xno"; then
4998 : "${AR_FOR_BUILD:=\$(AR)}"
4999 : "${CC_FOR_BUILD:=\$(CC)}"
5000 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
5001 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
5002 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
5003 else
5004 : "${AR_FOR_BUILD:=ar}"
5005 : "${CC_FOR_BUILD:=gcc}"
5006 : "${RANLIB_FOR_BUILD:=ranlib}"
5007 : "${CFLAGS_FOR_BUILD:=-g -O}"
5008 : "${LDLFAGS_FOR_BUILD:=}"
5009 fi
5010
5011
5012
5013
5014
5015
5016
5017 if test -n "$ac_tool_prefix"; then
5018 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5019 set dummy ${ac_tool_prefix}ar; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_AR+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test -n "$AR"; then
5026 ac_cv_prog_AR="$AR" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_AR="${ac_tool_prefix}ar"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039 done
5040 done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 AR=$ac_cv_prog_AR
5046 if test -n "$AR"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5048 $as_echo "$AR" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055 fi
5056 if test -z "$ac_cv_prog_AR"; then
5057 ac_ct_AR=$AR
5058 # Extract the first word of "ar", so it can be a program name with args.
5059 set dummy ar; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$ac_ct_AR"; then
5066 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_ac_ct_AR="ar"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5086 if test -n "$ac_ct_AR"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5088 $as_echo "$ac_ct_AR" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093
5094 if test "x$ac_ct_AR" = x; then
5095 AR=""
5096 else
5097 case $cross_compiling:$ac_tool_warned in
5098 yes:)
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5101 ac_tool_warned=yes ;;
5102 esac
5103 AR=$ac_ct_AR
5104 fi
5105 else
5106 AR="$ac_cv_prog_AR"
5107 fi
5108
5109 if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_RANLIB+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$RANLIB"; then
5118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135 fi
5136 fi
5137 RANLIB=$ac_cv_prog_RANLIB
5138 if test -n "$RANLIB"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5140 $as_echo "$RANLIB" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5144 fi
5145
5146
5147 fi
5148 if test -z "$ac_cv_prog_RANLIB"; then
5149 ac_ct_RANLIB=$RANLIB
5150 # Extract the first word of "ranlib", so it can be a program name with args.
5151 set dummy ranlib; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$ac_ct_RANLIB"; then
5158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_RANLIB="ranlib"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5178 if test -n "$ac_ct_RANLIB"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5180 $as_echo "$ac_ct_RANLIB" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186 if test "x$ac_ct_RANLIB" = x; then
5187 RANLIB=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 RANLIB=$ac_ct_RANLIB
5196 fi
5197 else
5198 RANLIB="$ac_cv_prog_RANLIB"
5199 fi
5200
5201
5202
5203
5204
5205
5206
5207
5208 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5209 if test -n "$ac_tool_prefix"; then
5210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 case $PKG_CONFIG in
5218 [\\/]* | ?:[\\/]*)
5219 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5220 ;;
5221 *)
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 ;;
5238 esac
5239 fi
5240 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5241 if test -n "$PKG_CONFIG"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5243 $as_echo "$PKG_CONFIG" >&6; }
5244 else
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5247 fi
5248
5249
5250 fi
5251 if test -z "$ac_cv_path_PKG_CONFIG"; then
5252 ac_pt_PKG_CONFIG=$PKG_CONFIG
5253 # Extract the first word of "pkg-config", so it can be a program name with args.
5254 set dummy pkg-config; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 case $ac_pt_PKG_CONFIG in
5261 [\\/]* | ?:[\\/]*)
5262 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5263 ;;
5264 *)
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 ;;
5281 esac
5282 fi
5283 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5284 if test -n "$ac_pt_PKG_CONFIG"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5286 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290 fi
5291
5292 if test "x$ac_pt_PKG_CONFIG" = x; then
5293 PKG_CONFIG=""
5294 else
5295 case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301 PKG_CONFIG=$ac_pt_PKG_CONFIG
5302 fi
5303 else
5304 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5305 fi
5306
5307 fi
5308 if test -n "$PKG_CONFIG"; then
5309 _pkg_min_version=0.9.0
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5311 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5312 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5314 $as_echo "yes" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 PKG_CONFIG=""
5319 fi
5320 fi
5321
5322 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
5323 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
5324 # is C99. So handle it ourselves.
5325 :
5326 C_DIALECT=
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
5328 $as_echo_n "checking whether C11 is supported by default... " >&6; }
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331
5332 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5333 # error "C11 support not found"
5334 #endif
5335
5336 _ACEOF
5337 if ac_fn_c_try_compile "$LINENO"; then :
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5339 $as_echo "yes" >&6; }
5340 else
5341
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
5345 $as_echo_n "checking for -std=c11 support... " >&6; }
5346 ac_save_CC="$CC"
5347 CC="$CC -std=c11"
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350
5351 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
5352 # error "C11 support not found"
5353 #endif
5354
5355 _ACEOF
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5359 $as_echo "yes" >&6; }
5360 CC="$ac_save_CC"
5361 C_DIALECT="-std=c11"
5362
5363 else
5364 as_fn_error $? "C11 is required" "$LINENO" 5
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 fi
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369
5370
5371
5372
5373
5374 for ac_header in $ac_header_list
5375 do :
5376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5377 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5378 "
5379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5380 cat >>confdefs.h <<_ACEOF
5381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5382 _ACEOF
5383
5384 fi
5385
5386 done
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 for ac_func in $ac_func_list
5440 do :
5441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5444 cat >>confdefs.h <<_ACEOF
5445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5446 _ACEOF
5447
5448 fi
5449 done
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5574 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5575 if ${ac_cv_struct_tm+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #include <sys/types.h>
5581 #include <time.h>
5582
5583 int
5584 main ()
5585 {
5586 struct tm tm;
5587 int *p = &tm.tm_sec;
5588 return !p;
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 ac_cv_struct_tm=time.h
5595 else
5596 ac_cv_struct_tm=sys/time.h
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5601 $as_echo "$ac_cv_struct_tm" >&6; }
5602 if test $ac_cv_struct_tm = sys/time.h; then
5603
5604 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5605
5606 fi
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5609 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5610 if ${ac_cv_type_uid_t+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616
5617 _ACEOF
5618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5619 $EGREP "uid_t" >/dev/null 2>&1; then :
5620 ac_cv_type_uid_t=yes
5621 else
5622 ac_cv_type_uid_t=no
5623 fi
5624 rm -f conftest*
5625
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5628 $as_echo "$ac_cv_type_uid_t" >&6; }
5629 if test $ac_cv_type_uid_t = no; then
5630
5631 $as_echo "#define uid_t int" >>confdefs.h
5632
5633
5634 $as_echo "#define gid_t int" >>confdefs.h
5635
5636 fi
5637
5638 case `pwd` in
5639 *\ * | *\ *)
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5641 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5642 esac
5643
5644
5645
5646 macro_version='2.2.7a'
5647 macro_revision='1.3134'
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 ltmain="$ac_aux_dir/ltmain.sh"
5662
5663 # Backslashify metacharacters that are still active within
5664 # double-quoted strings.
5665 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5666
5667 # Same as above, but do not quote variable references.
5668 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5669
5670 # Sed substitution to delay expansion of an escaped shell variable in a
5671 # double_quote_subst'ed string.
5672 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5673
5674 # Sed substitution to delay expansion of an escaped single quote.
5675 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5676
5677 # Sed substitution to avoid accidental globbing in evaled expressions
5678 no_glob_subst='s/\*/\\\*/g'
5679
5680 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5681 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5682 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5685 $as_echo_n "checking how to print strings... " >&6; }
5686 # Test print first, because it will be a builtin if present.
5687 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5688 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5689 ECHO='print -r --'
5690 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5691 ECHO='printf %s\n'
5692 else
5693 # Use this function as a fallback that always works.
5694 func_fallback_echo ()
5695 {
5696 eval 'cat <<_LTECHO_EOF
5697 $1
5698 _LTECHO_EOF'
5699 }
5700 ECHO='func_fallback_echo'
5701 fi
5702
5703 # func_echo_all arg...
5704 # Invoke $ECHO with all args, space-separated.
5705 func_echo_all ()
5706 {
5707 $ECHO ""
5708 }
5709
5710 case "$ECHO" in
5711 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5712 $as_echo "printf" >&6; } ;;
5713 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5714 $as_echo "print -r" >&6; } ;;
5715 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5716 $as_echo "cat" >&6; } ;;
5717 esac
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5733 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5734 if ${ac_cv_path_SED+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5738 for ac_i in 1 2 3 4 5 6 7; do
5739 ac_script="$ac_script$as_nl$ac_script"
5740 done
5741 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5742 { ac_script=; unset ac_script;}
5743 if test -z "$SED"; then
5744 ac_path_SED_found=false
5745 # Loop through the user's path and test for each of PROGNAME-LIST
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747 for as_dir in $PATH
5748 do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_prog in sed gsed; do
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5754 as_fn_executable_p "$ac_path_SED" || continue
5755 # Check for GNU ac_path_SED and select it if it is found.
5756 # Check for GNU $ac_path_SED
5757 case `"$ac_path_SED" --version 2>&1` in
5758 *GNU*)
5759 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5760 *)
5761 ac_count=0
5762 $as_echo_n 0123456789 >"conftest.in"
5763 while :
5764 do
5765 cat "conftest.in" "conftest.in" >"conftest.tmp"
5766 mv "conftest.tmp" "conftest.in"
5767 cp "conftest.in" "conftest.nl"
5768 $as_echo '' >> "conftest.nl"
5769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5771 as_fn_arith $ac_count + 1 && ac_count=$as_val
5772 if test $ac_count -gt ${ac_path_SED_max-0}; then
5773 # Best one so far, save it but keep looking for a better one
5774 ac_cv_path_SED="$ac_path_SED"
5775 ac_path_SED_max=$ac_count
5776 fi
5777 # 10*(2^10) chars as input seems more than enough
5778 test $ac_count -gt 10 && break
5779 done
5780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5781 esac
5782
5783 $ac_path_SED_found && break 3
5784 done
5785 done
5786 done
5787 IFS=$as_save_IFS
5788 if test -z "$ac_cv_path_SED"; then
5789 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5790 fi
5791 else
5792 ac_cv_path_SED=$SED
5793 fi
5794
5795 fi
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5797 $as_echo "$ac_cv_path_SED" >&6; }
5798 SED="$ac_cv_path_SED"
5799 rm -f conftest.sed
5800
5801 test -z "$SED" && SED=sed
5802 Xsed="$SED -e 1s/^X//"
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5815 $as_echo_n "checking for fgrep... " >&6; }
5816 if ${ac_cv_path_FGREP+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5820 then ac_cv_path_FGREP="$GREP -F"
5821 else
5822 if test -z "$FGREP"; then
5823 ac_path_FGREP_found=false
5824 # Loop through the user's path and test for each of PROGNAME-LIST
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5827 do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_prog in fgrep; do
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5833 as_fn_executable_p "$ac_path_FGREP" || continue
5834 # Check for GNU ac_path_FGREP and select it if it is found.
5835 # Check for GNU $ac_path_FGREP
5836 case `"$ac_path_FGREP" --version 2>&1` in
5837 *GNU*)
5838 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5839 *)
5840 ac_count=0
5841 $as_echo_n 0123456789 >"conftest.in"
5842 while :
5843 do
5844 cat "conftest.in" "conftest.in" >"conftest.tmp"
5845 mv "conftest.tmp" "conftest.in"
5846 cp "conftest.in" "conftest.nl"
5847 $as_echo 'FGREP' >> "conftest.nl"
5848 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5850 as_fn_arith $ac_count + 1 && ac_count=$as_val
5851 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5852 # Best one so far, save it but keep looking for a better one
5853 ac_cv_path_FGREP="$ac_path_FGREP"
5854 ac_path_FGREP_max=$ac_count
5855 fi
5856 # 10*(2^10) chars as input seems more than enough
5857 test $ac_count -gt 10 && break
5858 done
5859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5860 esac
5861
5862 $ac_path_FGREP_found && break 3
5863 done
5864 done
5865 done
5866 IFS=$as_save_IFS
5867 if test -z "$ac_cv_path_FGREP"; then
5868 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5869 fi
5870 else
5871 ac_cv_path_FGREP=$FGREP
5872 fi
5873
5874 fi
5875 fi
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5877 $as_echo "$ac_cv_path_FGREP" >&6; }
5878 FGREP="$ac_cv_path_FGREP"
5879
5880
5881 test -z "$GREP" && GREP=grep
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901 # Check whether --with-gnu-ld was given.
5902 if test "${with_gnu_ld+set}" = set; then :
5903 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5904 else
5905 with_gnu_ld=no
5906 fi
5907
5908 ac_prog=ld
5909 if test "$GCC" = yes; then
5910 # Check if gcc -print-prog-name=ld gives a path.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5912 $as_echo_n "checking for ld used by $CC... " >&6; }
5913 case $host in
5914 *-*-mingw*)
5915 # gcc leaves a trailing carriage return which upsets mingw
5916 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5917 *)
5918 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5919 esac
5920 case $ac_prog in
5921 # Accept absolute paths.
5922 [\\/]* | ?:[\\/]*)
5923 re_direlt='/[^/][^/]*/\.\./'
5924 # Canonicalize the pathname of ld
5925 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5926 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5927 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5928 done
5929 test -z "$LD" && LD="$ac_prog"
5930 ;;
5931 "")
5932 # If it fails, then pretend we aren't using GCC.
5933 ac_prog=ld
5934 ;;
5935 *)
5936 # If it is relative, then search for the first ld in PATH.
5937 with_gnu_ld=unknown
5938 ;;
5939 esac
5940 elif test "$with_gnu_ld" = yes; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5942 $as_echo_n "checking for GNU ld... " >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5945 $as_echo_n "checking for non-GNU ld... " >&6; }
5946 fi
5947 if ${lt_cv_path_LD+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -z "$LD"; then
5951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5952 for ac_dir in $PATH; do
5953 IFS="$lt_save_ifs"
5954 test -z "$ac_dir" && ac_dir=.
5955 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5956 lt_cv_path_LD="$ac_dir/$ac_prog"
5957 # Check to see if the program is GNU ld. I'd rather use --version,
5958 # but apparently some variants of GNU ld only accept -v.
5959 # Break only if it was the GNU/non-GNU ld that we prefer.
5960 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5961 *GNU* | *'with BFD'*)
5962 test "$with_gnu_ld" != no && break
5963 ;;
5964 *)
5965 test "$with_gnu_ld" != yes && break
5966 ;;
5967 esac
5968 fi
5969 done
5970 IFS="$lt_save_ifs"
5971 else
5972 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5973 fi
5974 fi
5975
5976 LD="$lt_cv_path_LD"
5977 if test -n "$LD"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5979 $as_echo "$LD" >&6; }
5980 else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5984 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5986 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5987 if ${lt_cv_prog_gnu_ld+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5991 case `$LD -v 2>&1 </dev/null` in
5992 *GNU* | *'with BFD'*)
5993 lt_cv_prog_gnu_ld=yes
5994 ;;
5995 *)
5996 lt_cv_prog_gnu_ld=no
5997 ;;
5998 esac
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6001 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6002 with_gnu_ld=$lt_cv_prog_gnu_ld
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6013 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6014 if ${lt_cv_path_NM+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$NM"; then
6018 # Let the user override the nm to test.
6019 lt_nm_to_check="$NM"
6020 else
6021 lt_nm_to_check="${ac_tool_prefix}nm"
6022 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6023 lt_nm_to_check="$lt_nm_to_check nm"
6024 fi
6025 fi
6026 for lt_tmp_nm in "$lt_nm_to_check"; do
6027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6028 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6029 IFS="$lt_save_ifs"
6030 test -z "$ac_dir" && ac_dir=.
6031 # Strip out any user-provided options from the nm to test twice,
6032 # the first time to test to see if nm (rather than its options) has
6033 # an explicit path, the second time to yield a file which can be
6034 # nm'ed itself.
6035 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6036 case "$tmp_nm_path" in
6037 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6038 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6039 esac
6040 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6041 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6042 # Check to see if the nm accepts a BSD-compat flag.
6043 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6044 # nm: unknown option "B" ignored
6045 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6046 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6047 break
6048 ;;
6049 *)
6050 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6051 *$tmp_nm*)
6052 lt_cv_path_NM="$tmp_nm -p"
6053 break
6054 ;;
6055 *)
6056 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6057 continue # so that we can try to find one that supports BSD flags
6058 ;;
6059 esac
6060 ;;
6061 esac
6062 fi
6063 done
6064 IFS="$lt_save_ifs"
6065 done
6066 : ${lt_cv_path_NM=no}
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6069 $as_echo "$lt_cv_path_NM" >&6; }
6070 if test "$lt_cv_path_NM" != "no"; then
6071 NM="$lt_cv_path_NM"
6072 else
6073 # Didn't find any BSD compatible name lister, look for dumpbin.
6074 if test -n "$DUMPBIN"; then :
6075 # Let the user override the test.
6076 else
6077 if test -n "$ac_tool_prefix"; then
6078 for ac_prog in dumpbin "link -dump"
6079 do
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if ${ac_cv_prog_DUMPBIN+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if test -n "$DUMPBIN"; then
6088 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 DUMPBIN=$ac_cv_prog_DUMPBIN
6108 if test -n "$DUMPBIN"; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6110 $as_echo "$DUMPBIN" >&6; }
6111 else
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116
6117 test -n "$DUMPBIN" && break
6118 done
6119 fi
6120 if test -z "$DUMPBIN"; then
6121 ac_ct_DUMPBIN=$DUMPBIN
6122 for ac_prog in dumpbin "link -dump"
6123 do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125 set dummy $ac_prog; ac_word=$2
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -n "$ac_ct_DUMPBIN"; then
6132 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 break 2
6144 fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6152 if test -n "$ac_ct_DUMPBIN"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6154 $as_echo "$ac_ct_DUMPBIN" >&6; }
6155 else
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 test -n "$ac_ct_DUMPBIN" && break
6162 done
6163
6164 if test "x$ac_ct_DUMPBIN" = x; then
6165 DUMPBIN=":"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168 yes:)
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171 ac_tool_warned=yes ;;
6172 esac
6173 DUMPBIN=$ac_ct_DUMPBIN
6174 fi
6175 fi
6176
6177 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6178 *COFF*)
6179 DUMPBIN="$DUMPBIN -symbols"
6180 ;;
6181 *)
6182 DUMPBIN=:
6183 ;;
6184 esac
6185 fi
6186
6187 if test "$DUMPBIN" != ":"; then
6188 NM="$DUMPBIN"
6189 fi
6190 fi
6191 test -z "$NM" && NM=nm
6192
6193
6194
6195
6196
6197
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6199 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6200 if ${lt_cv_nm_interface+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 lt_cv_nm_interface="BSD nm"
6204 echo "int some_variable = 0;" > conftest.$ac_ext
6205 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6206 (eval "$ac_compile" 2>conftest.err)
6207 cat conftest.err >&5
6208 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6209 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6210 cat conftest.err >&5
6211 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6212 cat conftest.out >&5
6213 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6214 lt_cv_nm_interface="MS dumpbin"
6215 fi
6216 rm -f conftest*
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6219 $as_echo "$lt_cv_nm_interface" >&6; }
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6222 $as_echo_n "checking whether ln -s works... " >&6; }
6223 LN_S=$as_ln_s
6224 if test "$LN_S" = "ln -s"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6226 $as_echo "yes" >&6; }
6227 else
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6229 $as_echo "no, using $LN_S" >&6; }
6230 fi
6231
6232 # find the maximum length of command line arguments
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6234 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6235 if ${lt_cv_sys_max_cmd_len+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 i=0
6239 teststring="ABCD"
6240
6241 case $build_os in
6242 msdosdjgpp*)
6243 # On DJGPP, this test can blow up pretty badly due to problems in libc
6244 # (any single argument exceeding 2000 bytes causes a buffer overrun
6245 # during glob expansion). Even if it were fixed, the result of this
6246 # check would be larger than it should be.
6247 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6248 ;;
6249
6250 gnu*)
6251 # Under GNU Hurd, this test is not required because there is
6252 # no limit to the length of command line arguments.
6253 # Libtool will interpret -1 as no limit whatsoever
6254 lt_cv_sys_max_cmd_len=-1;
6255 ;;
6256
6257 cygwin* | mingw* | cegcc*)
6258 # On Win9x/ME, this test blows up -- it succeeds, but takes
6259 # about 5 minutes as the teststring grows exponentially.
6260 # Worse, since 9x/ME are not pre-emptively multitasking,
6261 # you end up with a "frozen" computer, even though with patience
6262 # the test eventually succeeds (with a max line length of 256k).
6263 # Instead, let's just punt: use the minimum linelength reported by
6264 # all of the supported platforms: 8192 (on NT/2K/XP).
6265 lt_cv_sys_max_cmd_len=8192;
6266 ;;
6267
6268 mint*)
6269 # On MiNT this can take a long time and run out of memory.
6270 lt_cv_sys_max_cmd_len=8192;
6271 ;;
6272
6273 amigaos*)
6274 # On AmigaOS with pdksh, this test takes hours, literally.
6275 # So we just punt and use a minimum line length of 8192.
6276 lt_cv_sys_max_cmd_len=8192;
6277 ;;
6278
6279 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6280 # This has been around since 386BSD, at least. Likely further.
6281 if test -x /sbin/sysctl; then
6282 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6283 elif test -x /usr/sbin/sysctl; then
6284 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6285 else
6286 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6287 fi
6288 # And add a safety zone
6289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6291 ;;
6292
6293 interix*)
6294 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6295 lt_cv_sys_max_cmd_len=196608
6296 ;;
6297
6298 osf*)
6299 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6300 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6301 # nice to cause kernel panics so lets avoid the loop below.
6302 # First set a reasonable default.
6303 lt_cv_sys_max_cmd_len=16384
6304 #
6305 if test -x /sbin/sysconfig; then
6306 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6307 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6308 esac
6309 fi
6310 ;;
6311 sco3.2v5*)
6312 lt_cv_sys_max_cmd_len=102400
6313 ;;
6314 sysv5* | sco5v6* | sysv4.2uw2*)
6315 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6316 if test -n "$kargmax"; then
6317 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6318 else
6319 lt_cv_sys_max_cmd_len=32768
6320 fi
6321 ;;
6322 *)
6323 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6324 if test -n "$lt_cv_sys_max_cmd_len"; then
6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6327 else
6328 # Make teststring a little bigger before we do anything with it.
6329 # a 1K string should be a reasonable start.
6330 for i in 1 2 3 4 5 6 7 8 ; do
6331 teststring=$teststring$teststring
6332 done
6333 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6334 # If test is not a shell built-in, we'll probably end up computing a
6335 # maximum length that is only half of the actual maximum length, but
6336 # we can't tell.
6337 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6338 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6339 test $i != 17 # 1/2 MB should be enough
6340 do
6341 i=`expr $i + 1`
6342 teststring=$teststring$teststring
6343 done
6344 # Only check the string length outside the loop.
6345 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6346 teststring=
6347 # Add a significant safety factor because C++ compilers can tack on
6348 # massive amounts of additional arguments before passing them to the
6349 # linker. It appears as though 1/2 is a usable value.
6350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6351 fi
6352 ;;
6353 esac
6354
6355 fi
6356
6357 if test -n $lt_cv_sys_max_cmd_len ; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6359 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6362 $as_echo "none" >&6; }
6363 fi
6364 max_cmd_len=$lt_cv_sys_max_cmd_len
6365
6366
6367
6368
6369
6370
6371 : ${CP="cp -f"}
6372 : ${MV="mv -f"}
6373 : ${RM="rm -f"}
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6376 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6377 # Try some XSI features
6378 xsi_shell=no
6379 ( _lt_dummy="a/b/c"
6380 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6381 = c,a/b,, \
6382 && eval 'test $(( 1 + 1 )) -eq 2 \
6383 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6384 && xsi_shell=yes
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6386 $as_echo "$xsi_shell" >&6; }
6387
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6390 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6391 lt_shell_append=no
6392 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6393 >/dev/null 2>&1 \
6394 && lt_shell_append=yes
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6396 $as_echo "$lt_shell_append" >&6; }
6397
6398
6399 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6400 lt_unset=unset
6401 else
6402 lt_unset=false
6403 fi
6404
6405
6406
6407
6408
6409 # test EBCDIC or ASCII
6410 case `echo X|tr X '\101'` in
6411 A) # ASCII based system
6412 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6413 lt_SP2NL='tr \040 \012'
6414 lt_NL2SP='tr \015\012 \040\040'
6415 ;;
6416 *) # EBCDIC based system
6417 lt_SP2NL='tr \100 \n'
6418 lt_NL2SP='tr \r\n \100\100'
6419 ;;
6420 esac
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6431 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6432 if ${lt_cv_ld_reload_flag+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 lt_cv_ld_reload_flag='-r'
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6438 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6439 reload_flag=$lt_cv_ld_reload_flag
6440 case $reload_flag in
6441 "" | " "*) ;;
6442 *) reload_flag=" $reload_flag" ;;
6443 esac
6444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6445 case $host_os in
6446 darwin*)
6447 if test "$GCC" = yes; then
6448 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6449 else
6450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451 fi
6452 ;;
6453 esac
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463 if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6465 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_OBJDUMP+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 if test -n "$OBJDUMP"; then
6472 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6476 do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485 done
6486 done
6487 IFS=$as_save_IFS
6488
6489 fi
6490 fi
6491 OBJDUMP=$ac_cv_prog_OBJDUMP
6492 if test -n "$OBJDUMP"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6494 $as_echo "$OBJDUMP" >&6; }
6495 else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 fi
6499
6500
6501 fi
6502 if test -z "$ac_cv_prog_OBJDUMP"; then
6503 ac_ct_OBJDUMP=$OBJDUMP
6504 # Extract the first word of "objdump", so it can be a program name with args.
6505 set dummy objdump; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -n "$ac_ct_OBJDUMP"; then
6512 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6524 fi
6525 done
6526 done
6527 IFS=$as_save_IFS
6528
6529 fi
6530 fi
6531 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6532 if test -n "$ac_ct_OBJDUMP"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6534 $as_echo "$ac_ct_OBJDUMP" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539
6540 if test "x$ac_ct_OBJDUMP" = x; then
6541 OBJDUMP="false"
6542 else
6543 case $cross_compiling:$ac_tool_warned in
6544 yes:)
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6548 esac
6549 OBJDUMP=$ac_ct_OBJDUMP
6550 fi
6551 else
6552 OBJDUMP="$ac_cv_prog_OBJDUMP"
6553 fi
6554
6555 test -z "$OBJDUMP" && OBJDUMP=objdump
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6566 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6567 if ${lt_cv_deplibs_check_method+:} false; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 lt_cv_file_magic_cmd='$MAGIC_CMD'
6571 lt_cv_file_magic_test_file=
6572 lt_cv_deplibs_check_method='unknown'
6573 # Need to set the preceding variable on all platforms that support
6574 # interlibrary dependencies.
6575 # 'none' -- dependencies not supported.
6576 # `unknown' -- same as none, but documents that we really don't know.
6577 # 'pass_all' -- all dependencies passed with no checks.
6578 # 'test_compile' -- check by making test program.
6579 # 'file_magic [[regex]]' -- check by looking for files in library path
6580 # which responds to the $file_magic_cmd with a given extended regex.
6581 # If you have `file' or equivalent on your system and you're not sure
6582 # whether `pass_all' will *always* work, you probably want this one.
6583
6584 case $host_os in
6585 aix[4-9]*)
6586 lt_cv_deplibs_check_method=pass_all
6587 ;;
6588
6589 beos*)
6590 lt_cv_deplibs_check_method=pass_all
6591 ;;
6592
6593 bsdi[45]*)
6594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6595 lt_cv_file_magic_cmd='/usr/bin/file -L'
6596 lt_cv_file_magic_test_file=/shlib/libc.so
6597 ;;
6598
6599 cygwin*)
6600 # func_win32_libid is a shell function defined in ltmain.sh
6601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6602 lt_cv_file_magic_cmd='func_win32_libid'
6603 ;;
6604
6605 mingw* | pw32*)
6606 # Base MSYS/MinGW do not provide the 'file' command needed by
6607 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6608 # unless we find 'file', for example because we are cross-compiling.
6609 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6610 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6612 lt_cv_file_magic_cmd='func_win32_libid'
6613 else
6614 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6615 lt_cv_file_magic_cmd='$OBJDUMP -f'
6616 fi
6617 ;;
6618
6619 cegcc*)
6620 # use the weaker test based on 'objdump'. See mingw*.
6621 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6622 lt_cv_file_magic_cmd='$OBJDUMP -f'
6623 ;;
6624
6625 darwin* | rhapsody*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629 freebsd* | dragonfly*)
6630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6631 case $host_cpu in
6632 i*86 )
6633 # Not sure whether the presence of OpenBSD here was a mistake.
6634 # Let's accept both of them until this is cleared up.
6635 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6636 lt_cv_file_magic_cmd=/usr/bin/file
6637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6638 ;;
6639 esac
6640 else
6641 lt_cv_deplibs_check_method=pass_all
6642 fi
6643 ;;
6644
6645 gnu*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648
6649 haiku*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653 hpux10.20* | hpux11*)
6654 lt_cv_file_magic_cmd=/usr/bin/file
6655 case $host_cpu in
6656 ia64*)
6657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6659 ;;
6660 hppa*64*)
6661 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]'
6662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6663 ;;
6664 *)
6665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6667 ;;
6668 esac
6669 ;;
6670
6671 interix[3-9]*)
6672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6674 ;;
6675
6676 irix5* | irix6* | nonstopux*)
6677 case $LD in
6678 *-32|*"-32 ") libmagic=32-bit;;
6679 *-n32|*"-n32 ") libmagic=N32;;
6680 *-64|*"-64 ") libmagic=64-bit;;
6681 *) libmagic=never-match;;
6682 esac
6683 lt_cv_deplibs_check_method=pass_all
6684 ;;
6685
6686 # This must be Linux ELF.
6687 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690
6691 netbsd*)
6692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6694 else
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6696 fi
6697 ;;
6698
6699 newos6*)
6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6701 lt_cv_file_magic_cmd=/usr/bin/file
6702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6703 ;;
6704
6705 *nto* | *qnx*)
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
6708
6709 openbsd*)
6710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6712 else
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6714 fi
6715 ;;
6716
6717 osf3* | osf4* | osf5*)
6718 lt_cv_deplibs_check_method=pass_all
6719 ;;
6720
6721 rdos*)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
6724
6725 solaris*)
6726 lt_cv_deplibs_check_method=pass_all
6727 ;;
6728
6729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
6732
6733 sysv4 | sysv4.3*)
6734 case $host_vendor in
6735 motorola)
6736 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]'
6737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6738 ;;
6739 ncr)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742 sequent)
6743 lt_cv_file_magic_cmd='/bin/file'
6744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6745 ;;
6746 sni)
6747 lt_cv_file_magic_cmd='/bin/file'
6748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6749 lt_cv_file_magic_test_file=/lib/libc.so
6750 ;;
6751 siemens)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 pc)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757 esac
6758 ;;
6759
6760 tpf*)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763 esac
6764
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6767 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6768 file_magic_cmd=$lt_cv_file_magic_cmd
6769 deplibs_check_method=$lt_cv_deplibs_check_method
6770 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783 plugin_option=
6784 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6785 for plugin in $plugin_names; do
6786 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6787 if test x$plugin_so = x$plugin; then
6788 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6789 fi
6790 if test x$plugin_so != x$plugin; then
6791 plugin_option="--plugin $plugin_so"
6792 break
6793 fi
6794 done
6795
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}ar; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_AR+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$AR"; then
6805 ac_cv_prog_AR="$AR" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_AR="${ac_tool_prefix}ar"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6817 fi
6818 done
6819 done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 AR=$ac_cv_prog_AR
6825 if test -n "$AR"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6827 $as_echo "$AR" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832
6833
6834 fi
6835 if test -z "$ac_cv_prog_AR"; then
6836 ac_ct_AR=$AR
6837 # Extract the first word of "ar", so it can be a program name with args.
6838 set dummy ar; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$ac_ct_AR"; then
6845 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_ac_ct_AR="ar"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6865 if test -n "$ac_ct_AR"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6867 $as_echo "$ac_ct_AR" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873 if test "x$ac_ct_AR" = x; then
6874 AR="false"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877 yes:)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882 AR=$ac_ct_AR
6883 fi
6884 else
6885 AR="$ac_cv_prog_AR"
6886 fi
6887
6888 test -z "$AR" && AR=ar
6889 if test -n "$plugin_option"; then
6890 if $AR --help 2>&1 | grep -q "\--plugin"; then
6891 touch conftest.c
6892 $AR $plugin_option rc conftest.a conftest.c
6893 if test "$?" != 0; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6895 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6896 else
6897 AR="$AR $plugin_option"
6898 fi
6899 rm -f conftest.*
6900 fi
6901 fi
6902 test -z "$AR_FLAGS" && AR_FLAGS=cru
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}strip; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_prog_STRIP+:} false; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$STRIP"; then
6923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 STRIP=$ac_cv_prog_STRIP
6943 if test -n "$STRIP"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6945 $as_echo "$STRIP" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951
6952 fi
6953 if test -z "$ac_cv_prog_STRIP"; then
6954 ac_ct_STRIP=$STRIP
6955 # Extract the first word of "strip", so it can be a program name with args.
6956 set dummy strip; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$ac_ct_STRIP"; then
6963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_ac_ct_STRIP="strip"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6983 if test -n "$ac_ct_STRIP"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6985 $as_echo "$ac_ct_STRIP" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991 if test "x$ac_ct_STRIP" = x; then
6992 STRIP=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000 STRIP=$ac_ct_STRIP
7001 fi
7002 else
7003 STRIP="$ac_cv_prog_STRIP"
7004 fi
7005
7006 test -z "$STRIP" && STRIP=:
7007
7008
7009
7010
7011
7012
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_RANLIB+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$RANLIB"; then
7022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 RANLIB=$ac_cv_prog_RANLIB
7042 if test -n "$RANLIB"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7044 $as_echo "$RANLIB" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050
7051 fi
7052 if test -z "$ac_cv_prog_RANLIB"; then
7053 ac_ct_RANLIB=$RANLIB
7054 # Extract the first word of "ranlib", so it can be a program name with args.
7055 set dummy ranlib; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$ac_ct_RANLIB"; then
7062 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_ac_ct_RANLIB="ranlib"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079 fi
7080 fi
7081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7082 if test -n "$ac_ct_RANLIB"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7084 $as_echo "$ac_ct_RANLIB" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7089
7090 if test "x$ac_ct_RANLIB" = x; then
7091 RANLIB=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094 yes:)
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097 ac_tool_warned=yes ;;
7098 esac
7099 RANLIB=$ac_ct_RANLIB
7100 fi
7101 else
7102 RANLIB="$ac_cv_prog_RANLIB"
7103 fi
7104
7105 test -z "$RANLIB" && RANLIB=:
7106 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7107 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7108 RANLIB="$RANLIB $plugin_option"
7109 fi
7110 fi
7111
7112
7113
7114
7115
7116
7117 # Determine commands to create old-style static archives.
7118 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7119 old_postinstall_cmds='chmod 644 $oldlib'
7120 old_postuninstall_cmds=
7121
7122 if test -n "$RANLIB"; then
7123 case $host_os in
7124 openbsd*)
7125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7126 ;;
7127 *)
7128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7129 ;;
7130 esac
7131 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7132 fi
7133
7134 case $host_os in
7135 darwin*)
7136 lock_old_archive_extraction=yes ;;
7137 *)
7138 lock_old_archive_extraction=no ;;
7139 esac
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161 for ac_prog in gawk mawk nawk awk
7162 do
7163 # Extract the first word of "$ac_prog", so it can be a program name with args.
7164 set dummy $ac_prog; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_AWK+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 if test -n "$AWK"; then
7171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_AWK="$ac_prog"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 AWK=$ac_cv_prog_AWK
7191 if test -n "$AWK"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7193 $as_echo "$AWK" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199
7200 test -n "$AWK" && break
7201 done
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221 # If no C compiler was specified, use CC.
7222 LTCC=${LTCC-"$CC"}
7223
7224 # If no C compiler flags were specified, use CFLAGS.
7225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7226
7227 # Allow CC to be a program name with arguments.
7228 compiler=$CC
7229
7230
7231 # Check for command to grab the raw symbol name followed by C symbol from nm.
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7233 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7234 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237
7238 # These are sane defaults that work on at least a few old systems.
7239 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7240
7241 # Character class describing NM global symbol codes.
7242 symcode='[BCDEGRST]'
7243
7244 # Regexp to match symbols that can be accessed directly from C.
7245 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7246
7247 # Define system-specific variables.
7248 case $host_os in
7249 aix*)
7250 symcode='[BCDT]'
7251 ;;
7252 cygwin* | mingw* | pw32* | cegcc*)
7253 symcode='[ABCDGISTW]'
7254 ;;
7255 hpux*)
7256 if test "$host_cpu" = ia64; then
7257 symcode='[ABCDEGRST]'
7258 fi
7259 ;;
7260 irix* | nonstopux*)
7261 symcode='[BCDEGRST]'
7262 ;;
7263 osf*)
7264 symcode='[BCDEGQRST]'
7265 ;;
7266 solaris*)
7267 symcode='[BCDRT]'
7268 ;;
7269 sco3.2v5*)
7270 symcode='[DT]'
7271 ;;
7272 sysv4.2uw2*)
7273 symcode='[DT]'
7274 ;;
7275 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7276 symcode='[ABDT]'
7277 ;;
7278 sysv4)
7279 symcode='[DFNSTU]'
7280 ;;
7281 esac
7282
7283 # If we're using GNU nm, then use its standard symbol codes.
7284 case `$NM -V 2>&1` in
7285 *GNU* | *'with BFD'*)
7286 symcode='[ABCDGIRSTW]' ;;
7287 esac
7288
7289 # Transform an extracted symbol line into a proper C declaration.
7290 # Some systems (esp. on ia64) link data and code symbols differently,
7291 # so use this general approach.
7292 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7293
7294 # Transform an extracted symbol line into symbol name and symbol address
7295 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7296 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'"
7297
7298 # Handle CRLF in mingw tool chain
7299 opt_cr=
7300 case $build_os in
7301 mingw*)
7302 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7303 ;;
7304 esac
7305
7306 # Try without a prefix underscore, then with it.
7307 for ac_symprfx in "" "_"; do
7308
7309 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7310 symxfrm="\\1 $ac_symprfx\\2 \\2"
7311
7312 # Write the raw and C identifiers.
7313 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7314 # Fake it for dumpbin and say T for any non-static function
7315 # and D for any global variable.
7316 # Also find C++ and __fastcall symbols from MSVC++,
7317 # which start with @ or ?.
7318 lt_cv_sys_global_symbol_pipe="$AWK '"\
7319 " {last_section=section; section=\$ 3};"\
7320 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7321 " \$ 0!~/External *\|/{next};"\
7322 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7323 " {if(hide[section]) next};"\
7324 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7325 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7326 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7327 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7328 " ' prfx=^$ac_symprfx"
7329 else
7330 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7331 fi
7332
7333 # Check to see that the pipe works correctly.
7334 pipe_works=no
7335
7336 rm -f conftest*
7337 cat > conftest.$ac_ext <<_LT_EOF
7338 #ifdef __cplusplus
7339 extern "C" {
7340 #endif
7341 char nm_test_var;
7342 void nm_test_func(void);
7343 void nm_test_func(void){}
7344 #ifdef __cplusplus
7345 }
7346 #endif
7347 int main(){nm_test_var='a';nm_test_func();return(0);}
7348 _LT_EOF
7349
7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7354 test $ac_status = 0; }; then
7355 # Now try to grab the symbols.
7356 nlist=conftest.nm
7357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7358 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7359 ac_status=$?
7360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7361 test $ac_status = 0; } && test -s "$nlist"; then
7362 # Try sorting and uniquifying the output.
7363 if sort "$nlist" | uniq > "$nlist"T; then
7364 mv -f "$nlist"T "$nlist"
7365 else
7366 rm -f "$nlist"T
7367 fi
7368
7369 # Make sure that we snagged all the symbols we need.
7370 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7371 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7372 cat <<_LT_EOF > conftest.$ac_ext
7373 #ifdef __cplusplus
7374 extern "C" {
7375 #endif
7376
7377 _LT_EOF
7378 # Now generate the symbol file.
7379 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7380
7381 cat <<_LT_EOF >> conftest.$ac_ext
7382
7383 /* The mapping between symbol names and symbols. */
7384 const struct {
7385 const char *name;
7386 void *address;
7387 }
7388 lt__PROGRAM__LTX_preloaded_symbols[] =
7389 {
7390 { "@PROGRAM@", (void *) 0 },
7391 _LT_EOF
7392 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7393 cat <<\_LT_EOF >> conftest.$ac_ext
7394 {0, (void *) 0}
7395 };
7396
7397 /* This works around a problem in FreeBSD linker */
7398 #ifdef FREEBSD_WORKAROUND
7399 static const void *lt_preloaded_setup() {
7400 return lt__PROGRAM__LTX_preloaded_symbols;
7401 }
7402 #endif
7403
7404 #ifdef __cplusplus
7405 }
7406 #endif
7407 _LT_EOF
7408 # Now try linking the two files.
7409 mv conftest.$ac_objext conftstm.$ac_objext
7410 lt_save_LIBS="$LIBS"
7411 lt_save_CFLAGS="$CFLAGS"
7412 LIBS="conftstm.$ac_objext"
7413 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7415 (eval $ac_link) 2>&5
7416 ac_status=$?
7417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7419 pipe_works=yes
7420 fi
7421 LIBS="$lt_save_LIBS"
7422 CFLAGS="$lt_save_CFLAGS"
7423 else
7424 echo "cannot find nm_test_func in $nlist" >&5
7425 fi
7426 else
7427 echo "cannot find nm_test_var in $nlist" >&5
7428 fi
7429 else
7430 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7431 fi
7432 else
7433 echo "$progname: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7435 fi
7436 rm -rf conftest* conftst*
7437
7438 # Do not use the global_symbol_pipe unless it works.
7439 if test "$pipe_works" = yes; then
7440 break
7441 else
7442 lt_cv_sys_global_symbol_pipe=
7443 fi
7444 done
7445
7446 fi
7447
7448 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7449 lt_cv_sys_global_symbol_to_cdecl=
7450 fi
7451 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7453 $as_echo "failed" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7456 $as_echo "ok" >&6; }
7457 fi
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480 # Check whether --enable-libtool-lock was given.
7481 if test "${enable_libtool_lock+set}" = set; then :
7482 enableval=$enable_libtool_lock;
7483 fi
7484
7485 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7486
7487 # Some flags need to be propagated to the compiler or linker for good
7488 # libtool support.
7489 case $host in
7490 ia64-*-hpux*)
7491 # Find out which ABI we are using.
7492 echo 'int i;' > conftest.$ac_ext
7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7494 (eval $ac_compile) 2>&5
7495 ac_status=$?
7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; }; then
7498 case `/usr/bin/file conftest.$ac_objext` in
7499 *ELF-32*)
7500 HPUX_IA64_MODE="32"
7501 ;;
7502 *ELF-64*)
7503 HPUX_IA64_MODE="64"
7504 ;;
7505 esac
7506 fi
7507 rm -rf conftest*
7508 ;;
7509 *-*-irix6*)
7510 # Find out which ABI we are using.
7511 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7513 (eval $ac_compile) 2>&5
7514 ac_status=$?
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 if test "$lt_cv_prog_gnu_ld" = yes; then
7518 case `/usr/bin/file conftest.$ac_objext` in
7519 *32-bit*)
7520 LD="${LD-ld} -melf32bsmip"
7521 ;;
7522 *N32*)
7523 LD="${LD-ld} -melf32bmipn32"
7524 ;;
7525 *64-bit*)
7526 LD="${LD-ld} -melf64bmip"
7527 ;;
7528 esac
7529 else
7530 case `/usr/bin/file conftest.$ac_objext` in
7531 *32-bit*)
7532 LD="${LD-ld} -32"
7533 ;;
7534 *N32*)
7535 LD="${LD-ld} -n32"
7536 ;;
7537 *64-bit*)
7538 LD="${LD-ld} -64"
7539 ;;
7540 esac
7541 fi
7542 fi
7543 rm -rf conftest*
7544 ;;
7545
7546 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7547 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7548 # Find out which ABI we are using.
7549 echo 'int i;' > conftest.$ac_ext
7550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7551 (eval $ac_compile) 2>&5
7552 ac_status=$?
7553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554 test $ac_status = 0; }; then
7555 case `/usr/bin/file conftest.o` in
7556 *32-bit*)
7557 case $host in
7558 x86_64-*kfreebsd*-gnu)
7559 LD="${LD-ld} -m elf_i386_fbsd"
7560 ;;
7561 x86_64-*linux*)
7562 case `/usr/bin/file conftest.o` in
7563 *x86-64*)
7564 LD="${LD-ld} -m elf32_x86_64"
7565 ;;
7566 *)
7567 LD="${LD-ld} -m elf_i386"
7568 ;;
7569 esac
7570 ;;
7571 powerpc64le-*linux*)
7572 LD="${LD-ld} -m elf32lppclinux"
7573 ;;
7574 powerpc64-*linux*)
7575 LD="${LD-ld} -m elf32ppclinux"
7576 ;;
7577 s390x-*linux*)
7578 LD="${LD-ld} -m elf_s390"
7579 ;;
7580 sparc64-*linux*)
7581 LD="${LD-ld} -m elf32_sparc"
7582 ;;
7583 esac
7584 ;;
7585 *64-bit*)
7586 case $host in
7587 x86_64-*kfreebsd*-gnu)
7588 LD="${LD-ld} -m elf_x86_64_fbsd"
7589 ;;
7590 x86_64-*linux*)
7591 LD="${LD-ld} -m elf_x86_64"
7592 ;;
7593 powerpcle-*linux*)
7594 LD="${LD-ld} -m elf64lppc"
7595 ;;
7596 powerpc-*linux*)
7597 LD="${LD-ld} -m elf64ppc"
7598 ;;
7599 s390*-*linux*|s390*-*tpf*)
7600 LD="${LD-ld} -m elf64_s390"
7601 ;;
7602 sparc*-*linux*)
7603 LD="${LD-ld} -m elf64_sparc"
7604 ;;
7605 esac
7606 ;;
7607 esac
7608 fi
7609 rm -rf conftest*
7610 ;;
7611
7612 *-*-sco3.2v5*)
7613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7614 SAVE_CFLAGS="$CFLAGS"
7615 CFLAGS="$CFLAGS -belf"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7617 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7618 if ${lt_cv_cc_needs_belf+:} false; then :
7619 $as_echo_n "(cached) " >&6
7620 else
7621 ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629
7630 int
7631 main ()
7632 {
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_link "$LINENO"; then :
7639 lt_cv_cc_needs_belf=yes
7640 else
7641 lt_cv_cc_needs_belf=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651 fi
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7653 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7654 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7656 CFLAGS="$SAVE_CFLAGS"
7657 fi
7658 ;;
7659 sparc*-*solaris*)
7660 # Find out which ABI we are using.
7661 echo 'int i;' > conftest.$ac_ext
7662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7663 (eval $ac_compile) 2>&5
7664 ac_status=$?
7665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7666 test $ac_status = 0; }; then
7667 case `/usr/bin/file conftest.o` in
7668 *64-bit*)
7669 case $lt_cv_prog_gnu_ld in
7670 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7671 *)
7672 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7673 LD="${LD-ld} -64"
7674 fi
7675 ;;
7676 esac
7677 ;;
7678 esac
7679 fi
7680 rm -rf conftest*
7681 ;;
7682 esac
7683
7684 need_locks="$enable_libtool_lock"
7685
7686
7687 case $host_os in
7688 rhapsody* | darwin*)
7689 if test -n "$ac_tool_prefix"; then
7690 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7691 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$DSYMUTIL"; then
7698 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7718 if test -n "$DSYMUTIL"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7720 $as_echo "$DSYMUTIL" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726
7727 fi
7728 if test -z "$ac_cv_prog_DSYMUTIL"; then
7729 ac_ct_DSYMUTIL=$DSYMUTIL
7730 # Extract the first word of "dsymutil", so it can be a program name with args.
7731 set dummy dsymutil; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if test -n "$ac_ct_DSYMUTIL"; then
7738 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7758 if test -n "$ac_ct_DSYMUTIL"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7760 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766 if test "x$ac_ct_DSYMUTIL" = x; then
7767 DSYMUTIL=":"
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770 yes:)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773 ac_tool_warned=yes ;;
7774 esac
7775 DSYMUTIL=$ac_ct_DSYMUTIL
7776 fi
7777 else
7778 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7779 fi
7780
7781 if test -n "$ac_tool_prefix"; then
7782 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7783 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_NMEDIT+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$NMEDIT"; then
7790 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807 fi
7808 fi
7809 NMEDIT=$ac_cv_prog_NMEDIT
7810 if test -n "$NMEDIT"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7812 $as_echo "$NMEDIT" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817
7818
7819 fi
7820 if test -z "$ac_cv_prog_NMEDIT"; then
7821 ac_ct_NMEDIT=$NMEDIT
7822 # Extract the first word of "nmedit", so it can be a program name with args.
7823 set dummy nmedit; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 if test -n "$ac_ct_NMEDIT"; then
7830 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847 fi
7848 fi
7849 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7850 if test -n "$ac_ct_NMEDIT"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7852 $as_echo "$ac_ct_NMEDIT" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7856 fi
7857
7858 if test "x$ac_ct_NMEDIT" = x; then
7859 NMEDIT=":"
7860 else
7861 case $cross_compiling:$ac_tool_warned in
7862 yes:)
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865 ac_tool_warned=yes ;;
7866 esac
7867 NMEDIT=$ac_ct_NMEDIT
7868 fi
7869 else
7870 NMEDIT="$ac_cv_prog_NMEDIT"
7871 fi
7872
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_prog_LIPO+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$LIPO"; then
7882 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 LIPO=$ac_cv_prog_LIPO
7902 if test -n "$LIPO"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7904 $as_echo "$LIPO" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910
7911 fi
7912 if test -z "$ac_cv_prog_LIPO"; then
7913 ac_ct_LIPO=$LIPO
7914 # Extract the first word of "lipo", so it can be a program name with args.
7915 set dummy lipo; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$ac_ct_LIPO"; then
7922 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_ac_ct_LIPO="lipo"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7942 if test -n "$ac_ct_LIPO"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7944 $as_echo "$ac_ct_LIPO" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950 if test "x$ac_ct_LIPO" = x; then
7951 LIPO=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7958 esac
7959 LIPO=$ac_ct_LIPO
7960 fi
7961 else
7962 LIPO="$ac_cv_prog_LIPO"
7963 fi
7964
7965 if test -n "$ac_tool_prefix"; then
7966 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7967 set dummy ${ac_tool_prefix}otool; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_OTOOL+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 if test -n "$OTOOL"; then
7974 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987 done
7988 done
7989 IFS=$as_save_IFS
7990
7991 fi
7992 fi
7993 OTOOL=$ac_cv_prog_OTOOL
7994 if test -n "$OTOOL"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7996 $as_echo "$OTOOL" >&6; }
7997 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000 fi
8001
8002
8003 fi
8004 if test -z "$ac_cv_prog_OTOOL"; then
8005 ac_ct_OTOOL=$OTOOL
8006 # Extract the first word of "otool", so it can be a program name with args.
8007 set dummy otool; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test -n "$ac_ct_OTOOL"; then
8014 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_ac_ct_OTOOL="otool"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8034 if test -n "$ac_ct_OTOOL"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8036 $as_echo "$ac_ct_OTOOL" >&6; }
8037 else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 fi
8041
8042 if test "x$ac_ct_OTOOL" = x; then
8043 OTOOL=":"
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051 OTOOL=$ac_ct_OTOOL
8052 fi
8053 else
8054 OTOOL="$ac_cv_prog_OTOOL"
8055 fi
8056
8057 if test -n "$ac_tool_prefix"; then
8058 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8059 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if ${ac_cv_prog_OTOOL64+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 if test -n "$OTOOL64"; then
8066 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8075 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079 done
8080 done
8081 IFS=$as_save_IFS
8082
8083 fi
8084 fi
8085 OTOOL64=$ac_cv_prog_OTOOL64
8086 if test -n "$OTOOL64"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8088 $as_echo "$OTOOL64" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8092 fi
8093
8094
8095 fi
8096 if test -z "$ac_cv_prog_OTOOL64"; then
8097 ac_ct_OTOOL64=$OTOOL64
8098 # Extract the first word of "otool64", so it can be a program name with args.
8099 set dummy otool64; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 if test -n "$ac_ct_OTOOL64"; then
8106 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_ac_ct_OTOOL64="otool64"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119 done
8120 done
8121 IFS=$as_save_IFS
8122
8123 fi
8124 fi
8125 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8126 if test -n "$ac_ct_OTOOL64"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8128 $as_echo "$ac_ct_OTOOL64" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134 if test "x$ac_ct_OTOOL64" = x; then
8135 OTOOL64=":"
8136 else
8137 case $cross_compiling:$ac_tool_warned in
8138 yes:)
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8141 ac_tool_warned=yes ;;
8142 esac
8143 OTOOL64=$ac_ct_OTOOL64
8144 fi
8145 else
8146 OTOOL64="$ac_cv_prog_OTOOL64"
8147 fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8176 $as_echo_n "checking for -single_module linker flag... " >&6; }
8177 if ${lt_cv_apple_cc_single_mod+:} false; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 lt_cv_apple_cc_single_mod=no
8181 if test -z "${LT_MULTI_MODULE}"; then
8182 # By default we will add the -single_module flag. You can override
8183 # by either setting the environment variable LT_MULTI_MODULE
8184 # non-empty at configure time, or by adding -multi_module to the
8185 # link flags.
8186 rm -rf libconftest.dylib*
8187 echo "int foo(void){return 1;}" > conftest.c
8188 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8189 -dynamiclib -Wl,-single_module conftest.c" >&5
8190 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8191 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8192 _lt_result=$?
8193 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8194 lt_cv_apple_cc_single_mod=yes
8195 else
8196 cat conftest.err >&5
8197 fi
8198 rm -rf libconftest.dylib*
8199 rm -f conftest.*
8200 fi
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8203 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8205 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8206 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 lt_cv_ld_exported_symbols_list=no
8210 save_LDFLAGS=$LDFLAGS
8211 echo "_main" > conftest.sym
8212 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8215
8216 int
8217 main ()
8218 {
8219
8220 ;
8221 return 0;
8222 }
8223 _ACEOF
8224 if ac_fn_c_try_link "$LINENO"; then :
8225 lt_cv_ld_exported_symbols_list=yes
8226 else
8227 lt_cv_ld_exported_symbols_list=no
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LDFLAGS="$save_LDFLAGS"
8232
8233 fi
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8235 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8237 $as_echo_n "checking for -force_load linker flag... " >&6; }
8238 if ${lt_cv_ld_force_load+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 lt_cv_ld_force_load=no
8242 cat > conftest.c << _LT_EOF
8243 int forced_loaded() { return 2;}
8244 _LT_EOF
8245 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8246 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8247 echo "$AR cru libconftest.a conftest.o" >&5
8248 $AR cru libconftest.a conftest.o 2>&5
8249 cat > conftest.c << _LT_EOF
8250 int main() { return 0;}
8251 _LT_EOF
8252 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8253 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8254 _lt_result=$?
8255 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8256 lt_cv_ld_force_load=yes
8257 else
8258 cat conftest.err >&5
8259 fi
8260 rm -f conftest.err libconftest.a conftest conftest.c
8261 rm -rf conftest.dSYM
8262
8263 fi
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8265 $as_echo "$lt_cv_ld_force_load" >&6; }
8266 case $host_os in
8267 rhapsody* | darwin1.[012])
8268 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8269 darwin1.*)
8270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8271 darwin*) # darwin 5.x on
8272 # if running on 10.5 or later, the deployment target defaults
8273 # to the OS version, if on x86, and 10.4, the deployment
8274 # target defaults to 10.4. Don't you love it?
8275 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8276 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8278 10.[012][,.]*)
8279 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8280 10.*)
8281 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8282 esac
8283 ;;
8284 esac
8285 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8286 _lt_dar_single_mod='$single_module'
8287 fi
8288 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8289 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8290 else
8291 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8292 fi
8293 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8294 _lt_dsymutil='~$DSYMUTIL $lib || :'
8295 else
8296 _lt_dsymutil=
8297 fi
8298 ;;
8299 esac
8300
8301 for ac_header in dlfcn.h
8302 do :
8303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8304 "
8305 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8306 cat >>confdefs.h <<_ACEOF
8307 #define HAVE_DLFCN_H 1
8308 _ACEOF
8309
8310 fi
8311
8312 done
8313
8314
8315 ac_header_dirent=no
8316 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8317 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8319 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8320 if eval \${$as_ac_Header+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #include <sys/types.h>
8326 #include <$ac_hdr>
8327
8328 int
8329 main ()
8330 {
8331 if ((DIR *) 0)
8332 return 0;
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_compile "$LINENO"; then :
8338 eval "$as_ac_Header=yes"
8339 else
8340 eval "$as_ac_Header=no"
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 fi
8344 eval ac_res=\$$as_ac_Header
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8346 $as_echo "$ac_res" >&6; }
8347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8348 cat >>confdefs.h <<_ACEOF
8349 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8350 _ACEOF
8351
8352 ac_header_dirent=$ac_hdr; break
8353 fi
8354
8355 done
8356 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8357 if test $ac_header_dirent = dirent.h; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8359 $as_echo_n "checking for library containing opendir... " >&6; }
8360 if ${ac_cv_search_opendir+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 ac_func_search_save_LIBS=$LIBS
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366
8367 /* Override any GCC internal prototype to avoid an error.
8368 Use char because int might match the return type of a GCC
8369 builtin and then its argument prototype would still apply. */
8370 #ifdef __cplusplus
8371 extern "C"
8372 #endif
8373 char opendir ();
8374 int
8375 main ()
8376 {
8377 return opendir ();
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 for ac_lib in '' dir; do
8383 if test -z "$ac_lib"; then
8384 ac_res="none required"
8385 else
8386 ac_res=-l$ac_lib
8387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8388 fi
8389 if ac_fn_c_try_link "$LINENO"; then :
8390 ac_cv_search_opendir=$ac_res
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext
8394 if ${ac_cv_search_opendir+:} false; then :
8395 break
8396 fi
8397 done
8398 if ${ac_cv_search_opendir+:} false; then :
8399
8400 else
8401 ac_cv_search_opendir=no
8402 fi
8403 rm conftest.$ac_ext
8404 LIBS=$ac_func_search_save_LIBS
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8407 $as_echo "$ac_cv_search_opendir" >&6; }
8408 ac_res=$ac_cv_search_opendir
8409 if test "$ac_res" != no; then :
8410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8411
8412 fi
8413
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8416 $as_echo_n "checking for library containing opendir... " >&6; }
8417 if ${ac_cv_search_opendir+:} false; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 ac_func_search_save_LIBS=$LIBS
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8423
8424 /* Override any GCC internal prototype to avoid an error.
8425 Use char because int might match the return type of a GCC
8426 builtin and then its argument prototype would still apply. */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 char opendir ();
8431 int
8432 main ()
8433 {
8434 return opendir ();
8435 ;
8436 return 0;
8437 }
8438 _ACEOF
8439 for ac_lib in '' x; do
8440 if test -z "$ac_lib"; then
8441 ac_res="none required"
8442 else
8443 ac_res=-l$ac_lib
8444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8445 fi
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 ac_cv_search_opendir=$ac_res
8448 fi
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext
8451 if ${ac_cv_search_opendir+:} false; then :
8452 break
8453 fi
8454 done
8455 if ${ac_cv_search_opendir+:} false; then :
8456
8457 else
8458 ac_cv_search_opendir=no
8459 fi
8460 rm conftest.$ac_ext
8461 LIBS=$ac_func_search_save_LIBS
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8464 $as_echo "$ac_cv_search_opendir" >&6; }
8465 ac_res=$ac_cv_search_opendir
8466 if test "$ac_res" != no; then :
8467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8468
8469 fi
8470
8471 fi
8472
8473
8474
8475
8476 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8477 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8478
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8481 _ACEOF
8482
8483
8484 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8485
8486 fi
8487
8488
8489 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8490 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8491
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8494 _ACEOF
8495
8496
8497 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8498
8499 else
8500 case " $LIBOBJS " in
8501 *" fileblocks.$ac_objext "* ) ;;
8502 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8503 ;;
8504 esac
8505
8506 fi
8507
8508
8509 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8510 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8511
8512 cat >>confdefs.h <<_ACEOF
8513 #define HAVE_STRUCT_STAT_ST_RDEV 1
8514 _ACEOF
8515
8516
8517 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8518
8519 fi
8520
8521
8522 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8523 #include <$ac_cv_struct_tm>
8524
8525 "
8526 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8527
8528 cat >>confdefs.h <<_ACEOF
8529 #define HAVE_STRUCT_TM_TM_ZONE 1
8530 _ACEOF
8531
8532
8533 fi
8534
8535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8536
8537 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8538
8539 else
8540 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8541 "
8542 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8543 ac_have_decl=1
8544 else
8545 ac_have_decl=0
8546 fi
8547
8548 cat >>confdefs.h <<_ACEOF
8549 #define HAVE_DECL_TZNAME $ac_have_decl
8550 _ACEOF
8551
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8553 $as_echo_n "checking for tzname... " >&6; }
8554 if ${ac_cv_var_tzname+:} false; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 #include <time.h>
8560 #if !HAVE_DECL_TZNAME
8561 extern char *tzname[];
8562 #endif
8563
8564 int
8565 main ()
8566 {
8567 return tzname[0][0];
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"; then :
8573 ac_cv_var_tzname=yes
8574 else
8575 ac_cv_var_tzname=no
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8581 $as_echo "$ac_cv_var_tzname" >&6; }
8582 if test $ac_cv_var_tzname = yes; then
8583
8584 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8585
8586 fi
8587 fi
8588
8589
8590 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8591 #include <sys/types.h>
8592 #endif
8593 #ifdef HAVE_SYS_STAT_H
8594 #include <sys/stat.h>
8595 #endif
8596 "
8597 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8598
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_STRUCT_STAT_ST_DEV 1
8601 _ACEOF
8602
8603
8604 fi
8605 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8606 #include <sys/types.h>
8607 #endif
8608 #ifdef HAVE_SYS_STAT_H
8609 #include <sys/stat.h>
8610 #endif
8611 "
8612 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8613
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_STRUCT_STAT_ST_INO 1
8616 _ACEOF
8617
8618
8619 fi
8620 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8621 #include <sys/types.h>
8622 #endif
8623 #ifdef HAVE_SYS_STAT_H
8624 #include <sys/stat.h>
8625 #endif
8626 "
8627 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_STRUCT_STAT_ST_MODE 1
8631 _ACEOF
8632
8633
8634 fi
8635 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8636 #include <sys/types.h>
8637 #endif
8638 #ifdef HAVE_SYS_STAT_H
8639 #include <sys/stat.h>
8640 #endif
8641 "
8642 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8643
8644 cat >>confdefs.h <<_ACEOF
8645 #define HAVE_STRUCT_STAT_ST_NLINK 1
8646 _ACEOF
8647
8648
8649 fi
8650 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8651 #include <sys/types.h>
8652 #endif
8653 #ifdef HAVE_SYS_STAT_H
8654 #include <sys/stat.h>
8655 #endif
8656 "
8657 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8658
8659 cat >>confdefs.h <<_ACEOF
8660 #define HAVE_STRUCT_STAT_ST_UID 1
8661 _ACEOF
8662
8663
8664 fi
8665 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8666 #include <sys/types.h>
8667 #endif
8668 #ifdef HAVE_SYS_STAT_H
8669 #include <sys/stat.h>
8670 #endif
8671 "
8672 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8673
8674 cat >>confdefs.h <<_ACEOF
8675 #define HAVE_STRUCT_STAT_ST_GID 1
8676 _ACEOF
8677
8678
8679 fi
8680 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8681 #include <sys/types.h>
8682 #endif
8683 #ifdef HAVE_SYS_STAT_H
8684 #include <sys/stat.h>
8685 #endif
8686 "
8687 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8688
8689 cat >>confdefs.h <<_ACEOF
8690 #define HAVE_STRUCT_STAT_ST_RDEV 1
8691 _ACEOF
8692
8693
8694 fi
8695 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8696 #include <sys/types.h>
8697 #endif
8698 #ifdef HAVE_SYS_STAT_H
8699 #include <sys/stat.h>
8700 #endif
8701 "
8702 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8703
8704 cat >>confdefs.h <<_ACEOF
8705 #define HAVE_STRUCT_STAT_ST_SIZE 1
8706 _ACEOF
8707
8708
8709 fi
8710 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8711 #include <sys/types.h>
8712 #endif
8713 #ifdef HAVE_SYS_STAT_H
8714 #include <sys/stat.h>
8715 #endif
8716 "
8717 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8718
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8721 _ACEOF
8722
8723
8724 fi
8725 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8726 #include <sys/types.h>
8727 #endif
8728 #ifdef HAVE_SYS_STAT_H
8729 #include <sys/stat.h>
8730 #endif
8731 "
8732 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8733
8734 cat >>confdefs.h <<_ACEOF
8735 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8736 _ACEOF
8737
8738
8739 fi
8740 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8741 #include <sys/types.h>
8742 #endif
8743 #ifdef HAVE_SYS_STAT_H
8744 #include <sys/stat.h>
8745 #endif
8746 "
8747 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8748
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_STRUCT_STAT_ST_ATIME 1
8751 _ACEOF
8752
8753
8754 fi
8755 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8756 #include <sys/types.h>
8757 #endif
8758 #ifdef HAVE_SYS_STAT_H
8759 #include <sys/stat.h>
8760 #endif
8761 "
8762 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8763
8764 cat >>confdefs.h <<_ACEOF
8765 #define HAVE_STRUCT_STAT_ST_MTIME 1
8766 _ACEOF
8767
8768
8769 fi
8770 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8771 #include <sys/types.h>
8772 #endif
8773 #ifdef HAVE_SYS_STAT_H
8774 #include <sys/stat.h>
8775 #endif
8776 "
8777 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8778
8779 cat >>confdefs.h <<_ACEOF
8780 #define HAVE_STRUCT_STAT_ST_CTIME 1
8781 _ACEOF
8782
8783
8784 fi
8785
8786
8787 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8788 if test "x$ac_cv_type___int128" = xyes; then :
8789
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE___INT128 1
8792 _ACEOF
8793
8794
8795 fi
8796
8797 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8798 #include <sys/socket.h>
8799
8800 "
8801 if test "x$ac_cv_type_socklen_t" = xyes; then :
8802
8803 cat >>confdefs.h <<_ACEOF
8804 #define HAVE_SOCKLEN_T 1
8805 _ACEOF
8806
8807
8808 fi
8809
8810
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8812 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8813 if ${ac_cv_type_getgroups+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 if test "$cross_compiling" = yes; then :
8817 ac_cv_type_getgroups=cross
8818 else
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 /* Thanks to Mike Rendell for this test. */
8822 $ac_includes_default
8823 #define NGID 256
8824 #undef MAX
8825 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8826
8827 int
8828 main ()
8829 {
8830 gid_t gidset[NGID];
8831 int i, n;
8832 union { gid_t gval; long int lval; } val;
8833
8834 val.lval = -1;
8835 for (i = 0; i < NGID; i++)
8836 gidset[i] = val.gval;
8837 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8838 gidset);
8839 /* Exit non-zero if getgroups seems to require an array of ints. This
8840 happens when gid_t is short int but getgroups modifies an array
8841 of ints. */
8842 return n > 0 && gidset[n] != val.gval;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_run "$LINENO"; then :
8846 ac_cv_type_getgroups=gid_t
8847 else
8848 ac_cv_type_getgroups=int
8849 fi
8850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8851 conftest.$ac_objext conftest.beam conftest.$ac_ext
8852 fi
8853
8854 if test $ac_cv_type_getgroups = cross; then
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #include <unistd.h>
8858
8859 _ACEOF
8860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8861 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8862 ac_cv_type_getgroups=gid_t
8863 else
8864 ac_cv_type_getgroups=int
8865 fi
8866 rm -f conftest*
8867
8868 fi
8869 fi
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8871 $as_echo "$ac_cv_type_getgroups" >&6; }
8872
8873 cat >>confdefs.h <<_ACEOF
8874 #define GETGROUPS_T $ac_cv_type_getgroups
8875 _ACEOF
8876
8877
8878 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8879 if test "x$ac_cv_type_mode_t" = xyes; then :
8880
8881 else
8882
8883 cat >>confdefs.h <<_ACEOF
8884 #define mode_t int
8885 _ACEOF
8886
8887 fi
8888
8889 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8890 if test "x$ac_cv_type_off_t" = xyes; then :
8891
8892 else
8893
8894 cat >>confdefs.h <<_ACEOF
8895 #define off_t long int
8896 _ACEOF
8897
8898 fi
8899
8900 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8901 if test "x$ac_cv_type_pid_t" = xyes; then :
8902
8903 else
8904
8905 cat >>confdefs.h <<_ACEOF
8906 #define pid_t int
8907 _ACEOF
8908
8909 fi
8910
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8912 $as_echo_n "checking return type of signal handlers... " >&6; }
8913 if ${ac_cv_type_signal+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 #include <sys/types.h>
8919 #include <signal.h>
8920
8921 int
8922 main ()
8923 {
8924 return *(signal (0, 0)) (0) == 1;
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930 ac_cv_type_signal=int
8931 else
8932 ac_cv_type_signal=void
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8937 $as_echo "$ac_cv_type_signal" >&6; }
8938
8939 cat >>confdefs.h <<_ACEOF
8940 #define RETSIGTYPE $ac_cv_type_signal
8941 _ACEOF
8942
8943
8944 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8945 if test "x$ac_cv_type_size_t" = xyes; then :
8946
8947 else
8948
8949 cat >>confdefs.h <<_ACEOF
8950 #define size_t unsigned int
8951 _ACEOF
8952
8953 fi
8954
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8956 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8957 if ${ac_cv_type_uid_t+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include <sys/types.h>
8963
8964 _ACEOF
8965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8966 $EGREP "uid_t" >/dev/null 2>&1; then :
8967 ac_cv_type_uid_t=yes
8968 else
8969 ac_cv_type_uid_t=no
8970 fi
8971 rm -f conftest*
8972
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8975 $as_echo "$ac_cv_type_uid_t" >&6; }
8976 if test $ac_cv_type_uid_t = no; then
8977
8978 $as_echo "#define uid_t int" >>confdefs.h
8979
8980
8981 $as_echo "#define gid_t int" >>confdefs.h
8982
8983 fi
8984
8985
8986 ALL_LINGUAS=
8987 # If we haven't got the data from the intl directory,
8988 # assume NLS is disabled.
8989 USE_NLS=no
8990 LIBINTL=
8991 LIBINTL_DEP=
8992 INCINTL=
8993 XGETTEXT=
8994 GMSGFMT=
8995 POSUB=
8996
8997 if test -f ../intl/config.intl; then
8998 . ../intl/config.intl
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9001 $as_echo_n "checking whether NLS is requested... " >&6; }
9002 if test x"$USE_NLS" != xyes; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9007 $as_echo "yes" >&6; }
9008
9009 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9010
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
9013 $as_echo_n "checking for catalogs to be installed... " >&6; }
9014 # Look for .po and .gmo files in the source directory.
9015 CATALOGS=
9016 XLINGUAS=
9017 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9018 # If there aren't any .gmo files the shell will give us the
9019 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9020 # weeded out.
9021 case "$cat" in *\**)
9022 continue;;
9023 esac
9024 # The quadruple backslash is collapsed to a double backslash
9025 # by the backticks, then collapsed again by the double quotes,
9026 # leaving us with one backslash in the sed expression (right
9027 # before the dot that mustn't act as a wildcard).
9028 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
9029 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
9030 # The user is allowed to set LINGUAS to a list of languages to
9031 # install catalogs for. If it's empty that means "all of them."
9032 if test "x$LINGUAS" = x; then
9033 CATALOGS="$CATALOGS $cat"
9034 XLINGUAS="$XLINGUAS $lang"
9035 else
9036 case "$LINGUAS" in *$lang*)
9037 CATALOGS="$CATALOGS $cat"
9038 XLINGUAS="$XLINGUAS $lang"
9039 ;;
9040 esac
9041 fi
9042 done
9043 LINGUAS="$XLINGUAS"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
9045 $as_echo "$LINGUAS" >&6; }
9046
9047
9048 DATADIRNAME=share
9049
9050 INSTOBJEXT=.mo
9051
9052 GENCAT=gencat
9053
9054 CATOBJEXT=.gmo
9055
9056 fi
9057
9058
9059 # Use the system's zlib library.
9060 zlibdir="-L\$(top_builddir)/../zlib"
9061 zlibinc="-I\$(top_srcdir)/../zlib"
9062
9063 # Check whether --with-system-zlib was given.
9064 if test "${with_system_zlib+set}" = set; then :
9065 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
9066 zlibdir=
9067 zlibinc=
9068 fi
9069
9070 fi
9071
9072
9073
9074
9075
9076
9077 # Check whether --with-zstd was given.
9078 if test "${with_zstd+set}" = set; then :
9079 withval=$with_zstd;
9080 else
9081 with_zstd=auto
9082 fi
9083
9084
9085 if test "$with_zstd" != no; then :
9086
9087 pkg_failed=no
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
9089 $as_echo_n "checking for libzstd... " >&6; }
9090
9091 if test -n "$ZSTD_CFLAGS"; then
9092 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
9093 elif test -n "$PKG_CONFIG"; then
9094 if test -n "$PKG_CONFIG" && \
9095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
9096 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
9097 ac_status=$?
9098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9099 test $ac_status = 0; }; then
9100 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
9101 test "x$?" != "x0" && pkg_failed=yes
9102 else
9103 pkg_failed=yes
9104 fi
9105 else
9106 pkg_failed=untried
9107 fi
9108 if test -n "$ZSTD_LIBS"; then
9109 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
9110 elif test -n "$PKG_CONFIG"; then
9111 if test -n "$PKG_CONFIG" && \
9112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
9113 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
9114 ac_status=$?
9115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9116 test $ac_status = 0; }; then
9117 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
9118 test "x$?" != "x0" && pkg_failed=yes
9119 else
9120 pkg_failed=yes
9121 fi
9122 else
9123 pkg_failed=untried
9124 fi
9125
9126 if test $pkg_failed = no; then
9127 pkg_save_LDFLAGS="$LDFLAGS"
9128 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131
9132 int
9133 main ()
9134 {
9135
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141
9142 else
9143 pkg_failed=yes
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147 LDFLAGS=$pkg_save_LDFLAGS
9148 fi
9149
9150
9151
9152 if test $pkg_failed = yes; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155
9156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9157 _pkg_short_errors_supported=yes
9158 else
9159 _pkg_short_errors_supported=no
9160 fi
9161 if test $_pkg_short_errors_supported = yes; then
9162 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
9163 else
9164 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
9165 fi
9166 # Put the nasty error message in config.log where it belongs
9167 echo "$ZSTD_PKG_ERRORS" >&5
9168
9169
9170 if test "$with_zstd" = yes; then
9171 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
9172 fi
9173
9174 elif test $pkg_failed = untried; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9177
9178 if test "$with_zstd" = yes; then
9179 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
9180 fi
9181
9182 else
9183 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
9184 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9186 $as_echo "yes" >&6; }
9187
9188
9189 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
9190
9191
9192 fi
9193
9194 fi
9195
9196
9197
9198 maybe_plugins=no
9199 for ac_header in dlfcn.h
9200 do :
9201 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9202 "
9203 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9204 cat >>confdefs.h <<_ACEOF
9205 #define HAVE_DLFCN_H 1
9206 _ACEOF
9207 maybe_plugins=yes
9208 fi
9209
9210 done
9211
9212 for ac_header in windows.h
9213 do :
9214 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
9215 "
9216 if test "x$ac_cv_header_windows_h" = xyes; then :
9217 cat >>confdefs.h <<_ACEOF
9218 #define HAVE_WINDOWS_H 1
9219 _ACEOF
9220 maybe_plugins=yes
9221 fi
9222
9223 done
9224
9225
9226 # Check whether --enable-plugins was given.
9227 if test "${enable_plugins+set}" = set; then :
9228 enableval=$enable_plugins; case "${enableval}" in
9229 no) plugins=no ;;
9230 *) plugins=yes
9231 if test "$maybe_plugins" != "yes" ; then
9232 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
9233 fi ;;
9234 esac
9235 else
9236 plugins=$maybe_plugins
9237
9238 fi
9239
9240 if test "$plugins" = "yes"; then
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
9242 $as_echo_n "checking for library containing dlsym... " >&6; }
9243 if ${ac_cv_search_dlsym+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 ac_func_search_save_LIBS=$LIBS
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 char dlsym ();
9257 int
9258 main ()
9259 {
9260 return dlsym ();
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 for ac_lib in '' dl; do
9266 if test -z "$ac_lib"; then
9267 ac_res="none required"
9268 else
9269 ac_res=-l$ac_lib
9270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9271 fi
9272 if ac_fn_c_try_link "$LINENO"; then :
9273 ac_cv_search_dlsym=$ac_res
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext
9277 if ${ac_cv_search_dlsym+:} false; then :
9278 break
9279 fi
9280 done
9281 if ${ac_cv_search_dlsym+:} false; then :
9282
9283 else
9284 ac_cv_search_dlsym=no
9285 fi
9286 rm conftest.$ac_ext
9287 LIBS=$ac_func_search_save_LIBS
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
9290 $as_echo "$ac_cv_search_dlsym" >&6; }
9291 ac_res=$ac_cv_search_dlsym
9292 if test "$ac_res" != no; then :
9293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9294
9295 fi
9296
9297 fi
9298
9299 if test "$plugins" = yes; then
9300 PLUGINS_TRUE=
9301 PLUGINS_FALSE='#'
9302 else
9303 PLUGINS_TRUE='#'
9304 PLUGINS_FALSE=
9305 fi
9306
9307
9308
9309
9310
9311 # Set options
9312 enable_dlopen=yes
9313
9314
9315
9316
9317 enable_win32_dll=no
9318
9319
9320 # Check whether --enable-shared was given.
9321 if test "${enable_shared+set}" = set; then :
9322 enableval=$enable_shared; p=${PACKAGE-default}
9323 case $enableval in
9324 yes) enable_shared=yes ;;
9325 no) enable_shared=no ;;
9326 *)
9327 enable_shared=no
9328 # Look at the argument we got. We use all the common list separators.
9329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9330 for pkg in $enableval; do
9331 IFS="$lt_save_ifs"
9332 if test "X$pkg" = "X$p"; then
9333 enable_shared=yes
9334 fi
9335 done
9336 IFS="$lt_save_ifs"
9337 ;;
9338 esac
9339 else
9340 enable_shared=yes
9341 fi
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351 # Check whether --enable-static was given.
9352 if test "${enable_static+set}" = set; then :
9353 enableval=$enable_static; p=${PACKAGE-default}
9354 case $enableval in
9355 yes) enable_static=yes ;;
9356 no) enable_static=no ;;
9357 *)
9358 enable_static=no
9359 # Look at the argument we got. We use all the common list separators.
9360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9361 for pkg in $enableval; do
9362 IFS="$lt_save_ifs"
9363 if test "X$pkg" = "X$p"; then
9364 enable_static=yes
9365 fi
9366 done
9367 IFS="$lt_save_ifs"
9368 ;;
9369 esac
9370 else
9371 enable_static=yes
9372 fi
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383 # Check whether --with-pic was given.
9384 if test "${with_pic+set}" = set; then :
9385 withval=$with_pic; pic_mode="$withval"
9386 else
9387 pic_mode=default
9388 fi
9389
9390
9391 test -z "$pic_mode" && pic_mode=default
9392
9393
9394
9395
9396
9397
9398
9399 # Check whether --enable-fast-install was given.
9400 if test "${enable_fast_install+set}" = set; then :
9401 enableval=$enable_fast_install; p=${PACKAGE-default}
9402 case $enableval in
9403 yes) enable_fast_install=yes ;;
9404 no) enable_fast_install=no ;;
9405 *)
9406 enable_fast_install=no
9407 # Look at the argument we got. We use all the common list separators.
9408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9409 for pkg in $enableval; do
9410 IFS="$lt_save_ifs"
9411 if test "X$pkg" = "X$p"; then
9412 enable_fast_install=yes
9413 fi
9414 done
9415 IFS="$lt_save_ifs"
9416 ;;
9417 esac
9418 else
9419 enable_fast_install=yes
9420 fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432 # This can be used to rebuild libtool when needed
9433 LIBTOOL_DEPS="$ltmain"
9434
9435 # Always use our own libtool.
9436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463 test -z "$LN_S" && LN_S="ln -s"
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478 if test -n "${ZSH_VERSION+set}" ; then
9479 setopt NO_GLOB_SUBST
9480 fi
9481
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9483 $as_echo_n "checking for objdir... " >&6; }
9484 if ${lt_cv_objdir+:} false; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 rm -f .libs 2>/dev/null
9488 mkdir .libs 2>/dev/null
9489 if test -d .libs; then
9490 lt_cv_objdir=.libs
9491 else
9492 # MS-DOS does not allow filenames that begin with a dot.
9493 lt_cv_objdir=_libs
9494 fi
9495 rmdir .libs 2>/dev/null
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9498 $as_echo "$lt_cv_objdir" >&6; }
9499 objdir=$lt_cv_objdir
9500
9501
9502
9503
9504
9505 cat >>confdefs.h <<_ACEOF
9506 #define LT_OBJDIR "$lt_cv_objdir/"
9507 _ACEOF
9508
9509
9510
9511
9512 case $host_os in
9513 aix3*)
9514 # AIX sometimes has problems with the GCC collect2 program. For some
9515 # reason, if we set the COLLECT_NAMES environment variable, the problems
9516 # vanish in a puff of smoke.
9517 if test "X${COLLECT_NAMES+set}" != Xset; then
9518 COLLECT_NAMES=
9519 export COLLECT_NAMES
9520 fi
9521 ;;
9522 esac
9523
9524 # Global variables:
9525 ofile=libtool
9526 can_build_shared=yes
9527
9528 # All known linkers require a `.a' archive for static linking (except MSVC,
9529 # which needs '.lib').
9530 libext=a
9531
9532 with_gnu_ld="$lt_cv_prog_gnu_ld"
9533
9534 old_CC="$CC"
9535 old_CFLAGS="$CFLAGS"
9536
9537 # Set sane defaults for various variables
9538 test -z "$CC" && CC=cc
9539 test -z "$LTCC" && LTCC=$CC
9540 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9541 test -z "$LD" && LD=ld
9542 test -z "$ac_objext" && ac_objext=o
9543
9544 for cc_temp in $compiler""; do
9545 case $cc_temp in
9546 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9547 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9548 \-*) ;;
9549 *) break;;
9550 esac
9551 done
9552 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9553
9554
9555 # Only perform the check for file, if the check method requires it
9556 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9557 case $deplibs_check_method in
9558 file_magic*)
9559 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9561 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9562 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 case $MAGIC_CMD in
9566 [\\/*] | ?:[\\/]*)
9567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9568 ;;
9569 *)
9570 lt_save_MAGIC_CMD="$MAGIC_CMD"
9571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9572 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9573 for ac_dir in $ac_dummy; do
9574 IFS="$lt_save_ifs"
9575 test -z "$ac_dir" && ac_dir=.
9576 if test -f $ac_dir/${ac_tool_prefix}file; then
9577 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9578 if test -n "$file_magic_test_file"; then
9579 case $deplibs_check_method in
9580 "file_magic "*)
9581 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9583 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9584 $EGREP "$file_magic_regex" > /dev/null; then
9585 :
9586 else
9587 cat <<_LT_EOF 1>&2
9588
9589 *** Warning: the command libtool uses to detect shared libraries,
9590 *** $file_magic_cmd, produces output that libtool cannot recognize.
9591 *** The result is that libtool may fail to recognize shared libraries
9592 *** as such. This will affect the creation of libtool libraries that
9593 *** depend on shared libraries, but programs linked with such libtool
9594 *** libraries will work regardless of this problem. Nevertheless, you
9595 *** may want to report the problem to your system manager and/or to
9596 *** bug-libtool@gnu.org
9597
9598 _LT_EOF
9599 fi ;;
9600 esac
9601 fi
9602 break
9603 fi
9604 done
9605 IFS="$lt_save_ifs"
9606 MAGIC_CMD="$lt_save_MAGIC_CMD"
9607 ;;
9608 esac
9609 fi
9610
9611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9612 if test -n "$MAGIC_CMD"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9614 $as_echo "$MAGIC_CMD" >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619
9620
9621
9622
9623
9624 if test -z "$lt_cv_path_MAGIC_CMD"; then
9625 if test -n "$ac_tool_prefix"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9627 $as_echo_n "checking for file... " >&6; }
9628 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 case $MAGIC_CMD in
9632 [\\/*] | ?:[\\/]*)
9633 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9634 ;;
9635 *)
9636 lt_save_MAGIC_CMD="$MAGIC_CMD"
9637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9639 for ac_dir in $ac_dummy; do
9640 IFS="$lt_save_ifs"
9641 test -z "$ac_dir" && ac_dir=.
9642 if test -f $ac_dir/file; then
9643 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9644 if test -n "$file_magic_test_file"; then
9645 case $deplibs_check_method in
9646 "file_magic "*)
9647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9648 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9650 $EGREP "$file_magic_regex" > /dev/null; then
9651 :
9652 else
9653 cat <<_LT_EOF 1>&2
9654
9655 *** Warning: the command libtool uses to detect shared libraries,
9656 *** $file_magic_cmd, produces output that libtool cannot recognize.
9657 *** The result is that libtool may fail to recognize shared libraries
9658 *** as such. This will affect the creation of libtool libraries that
9659 *** depend on shared libraries, but programs linked with such libtool
9660 *** libraries will work regardless of this problem. Nevertheless, you
9661 *** may want to report the problem to your system manager and/or to
9662 *** bug-libtool@gnu.org
9663
9664 _LT_EOF
9665 fi ;;
9666 esac
9667 fi
9668 break
9669 fi
9670 done
9671 IFS="$lt_save_ifs"
9672 MAGIC_CMD="$lt_save_MAGIC_CMD"
9673 ;;
9674 esac
9675 fi
9676
9677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9678 if test -n "$MAGIC_CMD"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9680 $as_echo "$MAGIC_CMD" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685
9686
9687 else
9688 MAGIC_CMD=:
9689 fi
9690 fi
9691
9692 fi
9693 ;;
9694 esac
9695
9696 # Use C for the default configuration in the libtool script
9697
9698 lt_save_CC="$CC"
9699 ac_ext=c
9700 ac_cpp='$CPP $CPPFLAGS'
9701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9704
9705
9706 # Source file extension for C test sources.
9707 ac_ext=c
9708
9709 # Object file extension for compiled C test sources.
9710 objext=o
9711 objext=$objext
9712
9713 # Code to be used in simple compile tests
9714 lt_simple_compile_test_code="int some_variable = 0;"
9715
9716 # Code to be used in simple link tests
9717 lt_simple_link_test_code='int main(){return(0);}'
9718
9719
9720
9721
9722
9723
9724
9725 # If no C compiler was specified, use CC.
9726 LTCC=${LTCC-"$CC"}
9727
9728 # If no C compiler flags were specified, use CFLAGS.
9729 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9730
9731 # Allow CC to be a program name with arguments.
9732 compiler=$CC
9733
9734 # Save the default compiler, since it gets overwritten when the other
9735 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9736 compiler_DEFAULT=$CC
9737
9738 # save warnings/boilerplate of simple test code
9739 ac_outfile=conftest.$ac_objext
9740 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9742 _lt_compiler_boilerplate=`cat conftest.err`
9743 $RM conftest*
9744
9745 ac_outfile=conftest.$ac_objext
9746 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9748 _lt_linker_boilerplate=`cat conftest.err`
9749 $RM -r conftest*
9750
9751
9752 ## CAVEAT EMPTOR:
9753 ## There is no encapsulation within the following macros, do not change
9754 ## the running order or otherwise move them around unless you know exactly
9755 ## what you are doing...
9756 if test -n "$compiler"; then
9757
9758 lt_prog_compiler_no_builtin_flag=
9759
9760 if test "$GCC" = yes; then
9761 case $cc_basename in
9762 nvcc*)
9763 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9764 *)
9765 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9766 esac
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9769 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9770 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 lt_cv_prog_compiler_rtti_exceptions=no
9774 ac_outfile=conftest.$ac_objext
9775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9776 lt_compiler_flag="-fno-rtti -fno-exceptions"
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 # The option is referenced via a variable to avoid confusing sed.
9782 lt_compile=`echo "$ac_compile" | $SED \
9783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9785 -e 's:$: $lt_compiler_flag:'`
9786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9787 (eval "$lt_compile" 2>conftest.err)
9788 ac_status=$?
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 if (exit $ac_status) && test -s "$ac_outfile"; then
9792 # The compiler can only warn and ignore the option if not recognized
9793 # So say no if there are warnings other than the usual output.
9794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9797 lt_cv_prog_compiler_rtti_exceptions=yes
9798 fi
9799 fi
9800 $RM conftest*
9801
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9804 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9805
9806 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9807 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9808 else
9809 :
9810 fi
9811
9812 fi
9813
9814
9815
9816
9817
9818
9819 lt_prog_compiler_wl=
9820 lt_prog_compiler_pic=
9821 lt_prog_compiler_static=
9822
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9824 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9825
9826 if test "$GCC" = yes; then
9827 lt_prog_compiler_wl='-Wl,'
9828 lt_prog_compiler_static='-static'
9829
9830 case $host_os in
9831 aix*)
9832 # All AIX code is PIC.
9833 if test "$host_cpu" = ia64; then
9834 # AIX 5 now supports IA64 processor
9835 lt_prog_compiler_static='-Bstatic'
9836 fi
9837 lt_prog_compiler_pic='-fPIC'
9838 ;;
9839
9840 amigaos*)
9841 case $host_cpu in
9842 powerpc)
9843 # see comment about AmigaOS4 .so support
9844 lt_prog_compiler_pic='-fPIC'
9845 ;;
9846 m68k)
9847 # FIXME: we need at least 68020 code to build shared libraries, but
9848 # adding the `-m68020' flag to GCC prevents building anything better,
9849 # like `-m68040'.
9850 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9851 ;;
9852 esac
9853 ;;
9854
9855 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9856 # PIC is the default for these OSes.
9857 ;;
9858
9859 mingw* | cygwin* | pw32* | os2* | cegcc*)
9860 # This hack is so that the source file can tell whether it is being
9861 # built for inclusion in a dll (and should export symbols for example).
9862 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9863 # (--disable-auto-import) libraries
9864 lt_prog_compiler_pic='-DDLL_EXPORT'
9865 ;;
9866
9867 darwin* | rhapsody*)
9868 # PIC is the default on this platform
9869 # Common symbols not allowed in MH_DYLIB files
9870 lt_prog_compiler_pic='-fno-common'
9871 ;;
9872
9873 haiku*)
9874 # PIC is the default for Haiku.
9875 # The "-static" flag exists, but is broken.
9876 lt_prog_compiler_static=
9877 ;;
9878
9879 hpux*)
9880 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9881 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9882 # sets the default TLS model and affects inlining.
9883 case $host_cpu in
9884 hppa*64*)
9885 # +Z the default
9886 ;;
9887 *)
9888 lt_prog_compiler_pic='-fPIC'
9889 ;;
9890 esac
9891 ;;
9892
9893 interix[3-9]*)
9894 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9895 # Instead, we relocate shared libraries at runtime.
9896 ;;
9897
9898 msdosdjgpp*)
9899 # Just because we use GCC doesn't mean we suddenly get shared libraries
9900 # on systems that don't support them.
9901 lt_prog_compiler_can_build_shared=no
9902 enable_shared=no
9903 ;;
9904
9905 *nto* | *qnx*)
9906 # QNX uses GNU C++, but need to define -shared option too, otherwise
9907 # it will coredump.
9908 lt_prog_compiler_pic='-fPIC -shared'
9909 ;;
9910
9911 sysv4*MP*)
9912 if test -d /usr/nec; then
9913 lt_prog_compiler_pic=-Kconform_pic
9914 fi
9915 ;;
9916
9917 *)
9918 lt_prog_compiler_pic='-fPIC'
9919 ;;
9920 esac
9921
9922 case $cc_basename in
9923 nvcc*) # Cuda Compiler Driver 2.2
9924 lt_prog_compiler_wl='-Xlinker '
9925 lt_prog_compiler_pic='-Xcompiler -fPIC'
9926 ;;
9927 esac
9928 else
9929 # PORTME Check for flag to pass linker flags through the system compiler.
9930 case $host_os in
9931 aix*)
9932 lt_prog_compiler_wl='-Wl,'
9933 if test "$host_cpu" = ia64; then
9934 # AIX 5 now supports IA64 processor
9935 lt_prog_compiler_static='-Bstatic'
9936 else
9937 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9938 fi
9939 ;;
9940
9941 mingw* | cygwin* | pw32* | os2* | cegcc*)
9942 # This hack is so that the source file can tell whether it is being
9943 # built for inclusion in a dll (and should export symbols for example).
9944 lt_prog_compiler_pic='-DDLL_EXPORT'
9945 ;;
9946
9947 hpux9* | hpux10* | hpux11*)
9948 lt_prog_compiler_wl='-Wl,'
9949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9950 # not for PA HP-UX.
9951 case $host_cpu in
9952 hppa*64*|ia64*)
9953 # +Z the default
9954 ;;
9955 *)
9956 lt_prog_compiler_pic='+Z'
9957 ;;
9958 esac
9959 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9960 lt_prog_compiler_static='${wl}-a ${wl}archive'
9961 ;;
9962
9963 irix5* | irix6* | nonstopux*)
9964 lt_prog_compiler_wl='-Wl,'
9965 # PIC (with -KPIC) is the default.
9966 lt_prog_compiler_static='-non_shared'
9967 ;;
9968
9969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9970 case $cc_basename in
9971 # old Intel for x86_64 which still supported -KPIC.
9972 ecc*)
9973 lt_prog_compiler_wl='-Wl,'
9974 lt_prog_compiler_pic='-KPIC'
9975 lt_prog_compiler_static='-static'
9976 ;;
9977 # icc used to be incompatible with GCC.
9978 # ICC 10 doesn't accept -KPIC any more.
9979 icc* | ifort*)
9980 lt_prog_compiler_wl='-Wl,'
9981 lt_prog_compiler_pic='-fPIC'
9982 lt_prog_compiler_static='-static'
9983 ;;
9984 # Lahey Fortran 8.1.
9985 lf95*)
9986 lt_prog_compiler_wl='-Wl,'
9987 lt_prog_compiler_pic='--shared'
9988 lt_prog_compiler_static='--static'
9989 ;;
9990 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9991 # Portland Group compilers (*not* the Pentium gcc compiler,
9992 # which looks to be a dead project)
9993 lt_prog_compiler_wl='-Wl,'
9994 lt_prog_compiler_pic='-fpic'
9995 lt_prog_compiler_static='-Bstatic'
9996 ;;
9997 ccc*)
9998 lt_prog_compiler_wl='-Wl,'
9999 # All Alpha code is PIC.
10000 lt_prog_compiler_static='-non_shared'
10001 ;;
10002 xl* | bgxl* | bgf* | mpixl*)
10003 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10004 lt_prog_compiler_wl='-Wl,'
10005 lt_prog_compiler_pic='-qpic'
10006 lt_prog_compiler_static='-qstaticlink'
10007 ;;
10008 *)
10009 case `$CC -V 2>&1 | sed 5q` in
10010 *Sun\ F* | *Sun*Fortran*)
10011 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10012 lt_prog_compiler_pic='-KPIC'
10013 lt_prog_compiler_static='-Bstatic'
10014 lt_prog_compiler_wl=''
10015 ;;
10016 *Sun\ C*)
10017 # Sun C 5.9
10018 lt_prog_compiler_pic='-KPIC'
10019 lt_prog_compiler_static='-Bstatic'
10020 lt_prog_compiler_wl='-Wl,'
10021 ;;
10022 esac
10023 ;;
10024 esac
10025 ;;
10026
10027 newsos6)
10028 lt_prog_compiler_pic='-KPIC'
10029 lt_prog_compiler_static='-Bstatic'
10030 ;;
10031
10032 *nto* | *qnx*)
10033 # QNX uses GNU C++, but need to define -shared option too, otherwise
10034 # it will coredump.
10035 lt_prog_compiler_pic='-fPIC -shared'
10036 ;;
10037
10038 osf3* | osf4* | osf5*)
10039 lt_prog_compiler_wl='-Wl,'
10040 # All OSF/1 code is PIC.
10041 lt_prog_compiler_static='-non_shared'
10042 ;;
10043
10044 rdos*)
10045 lt_prog_compiler_static='-non_shared'
10046 ;;
10047
10048 solaris*)
10049 lt_prog_compiler_pic='-KPIC'
10050 lt_prog_compiler_static='-Bstatic'
10051 case $cc_basename in
10052 f77* | f90* | f95*)
10053 lt_prog_compiler_wl='-Qoption ld ';;
10054 *)
10055 lt_prog_compiler_wl='-Wl,';;
10056 esac
10057 ;;
10058
10059 sunos4*)
10060 lt_prog_compiler_wl='-Qoption ld '
10061 lt_prog_compiler_pic='-PIC'
10062 lt_prog_compiler_static='-Bstatic'
10063 ;;
10064
10065 sysv4 | sysv4.2uw2* | sysv4.3*)
10066 lt_prog_compiler_wl='-Wl,'
10067 lt_prog_compiler_pic='-KPIC'
10068 lt_prog_compiler_static='-Bstatic'
10069 ;;
10070
10071 sysv4*MP*)
10072 if test -d /usr/nec ;then
10073 lt_prog_compiler_pic='-Kconform_pic'
10074 lt_prog_compiler_static='-Bstatic'
10075 fi
10076 ;;
10077
10078 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10079 lt_prog_compiler_wl='-Wl,'
10080 lt_prog_compiler_pic='-KPIC'
10081 lt_prog_compiler_static='-Bstatic'
10082 ;;
10083
10084 unicos*)
10085 lt_prog_compiler_wl='-Wl,'
10086 lt_prog_compiler_can_build_shared=no
10087 ;;
10088
10089 uts4*)
10090 lt_prog_compiler_pic='-pic'
10091 lt_prog_compiler_static='-Bstatic'
10092 ;;
10093
10094 *)
10095 lt_prog_compiler_can_build_shared=no
10096 ;;
10097 esac
10098 fi
10099
10100 case $host_os in
10101 # For platforms which do not support PIC, -DPIC is meaningless:
10102 *djgpp*)
10103 lt_prog_compiler_pic=
10104 ;;
10105 *)
10106 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10107 ;;
10108 esac
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10110 $as_echo "$lt_prog_compiler_pic" >&6; }
10111
10112
10113
10114
10115
10116
10117 #
10118 # Check to make sure the PIC flag actually works.
10119 #
10120 if test -n "$lt_prog_compiler_pic"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10122 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10123 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 lt_cv_prog_compiler_pic_works=no
10127 ac_outfile=conftest.$ac_objext
10128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10130 # Insert the option either (1) after the last *FLAGS variable, or
10131 # (2) before a word containing "conftest.", or (3) at the end.
10132 # Note that $ac_compile itself does not contain backslashes and begins
10133 # with a dollar sign (not a hyphen), so the echo should work correctly.
10134 # The option is referenced via a variable to avoid confusing sed.
10135 lt_compile=`echo "$ac_compile" | $SED \
10136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10138 -e 's:$: $lt_compiler_flag:'`
10139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10140 (eval "$lt_compile" 2>conftest.err)
10141 ac_status=$?
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 if (exit $ac_status) && test -s "$ac_outfile"; then
10145 # The compiler can only warn and ignore the option if not recognized
10146 # So say no if there are warnings other than the usual output.
10147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10150 lt_cv_prog_compiler_pic_works=yes
10151 fi
10152 fi
10153 $RM conftest*
10154
10155 fi
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10157 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10158
10159 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10160 case $lt_prog_compiler_pic in
10161 "" | " "*) ;;
10162 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10163 esac
10164 else
10165 lt_prog_compiler_pic=
10166 lt_prog_compiler_can_build_shared=no
10167 fi
10168
10169 fi
10170
10171
10172
10173
10174
10175
10176 #
10177 # Check to make sure the static flag actually works.
10178 #
10179 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10181 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10182 if ${lt_cv_prog_compiler_static_works+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 lt_cv_prog_compiler_static_works=no
10186 save_LDFLAGS="$LDFLAGS"
10187 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10188 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10189 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10190 # The linker can only warn and ignore the option if not recognized
10191 # So say no if there are warnings
10192 if test -s conftest.err; then
10193 # Append any errors to the config.log.
10194 cat conftest.err 1>&5
10195 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10197 if diff conftest.exp conftest.er2 >/dev/null; then
10198 lt_cv_prog_compiler_static_works=yes
10199 fi
10200 else
10201 lt_cv_prog_compiler_static_works=yes
10202 fi
10203 fi
10204 $RM -r conftest*
10205 LDFLAGS="$save_LDFLAGS"
10206
10207 fi
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10209 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10210
10211 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10212 :
10213 else
10214 lt_prog_compiler_static=
10215 fi
10216
10217
10218
10219
10220
10221
10222
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10224 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10225 if ${lt_cv_prog_compiler_c_o+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 lt_cv_prog_compiler_c_o=no
10229 $RM -r conftest 2>/dev/null
10230 mkdir conftest
10231 cd conftest
10232 mkdir out
10233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10234
10235 lt_compiler_flag="-o out/conftest2.$ac_objext"
10236 # Insert the option either (1) after the last *FLAGS variable, or
10237 # (2) before a word containing "conftest.", or (3) at the end.
10238 # Note that $ac_compile itself does not contain backslashes and begins
10239 # with a dollar sign (not a hyphen), so the echo should work correctly.
10240 lt_compile=`echo "$ac_compile" | $SED \
10241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10243 -e 's:$: $lt_compiler_flag:'`
10244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10245 (eval "$lt_compile" 2>out/conftest.err)
10246 ac_status=$?
10247 cat out/conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10250 then
10251 # The compiler can only warn and ignore the option if not recognized
10252 # So say no if there are warnings
10253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10256 lt_cv_prog_compiler_c_o=yes
10257 fi
10258 fi
10259 chmod u+w . 2>&5
10260 $RM conftest*
10261 # SGI C++ compiler will create directory out/ii_files/ for
10262 # template instantiation
10263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10264 $RM out/* && rmdir out
10265 cd ..
10266 $RM -r conftest
10267 $RM conftest*
10268
10269 fi
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10271 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10272
10273
10274
10275
10276
10277
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10279 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10280 if ${lt_cv_prog_compiler_c_o+:} false; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 lt_cv_prog_compiler_c_o=no
10284 $RM -r conftest 2>/dev/null
10285 mkdir conftest
10286 cd conftest
10287 mkdir out
10288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10289
10290 lt_compiler_flag="-o out/conftest2.$ac_objext"
10291 # Insert the option either (1) after the last *FLAGS variable, or
10292 # (2) before a word containing "conftest.", or (3) at the end.
10293 # Note that $ac_compile itself does not contain backslashes and begins
10294 # with a dollar sign (not a hyphen), so the echo should work correctly.
10295 lt_compile=`echo "$ac_compile" | $SED \
10296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10298 -e 's:$: $lt_compiler_flag:'`
10299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10300 (eval "$lt_compile" 2>out/conftest.err)
10301 ac_status=$?
10302 cat out/conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10305 then
10306 # The compiler can only warn and ignore the option if not recognized
10307 # So say no if there are warnings
10308 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10309 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10310 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10311 lt_cv_prog_compiler_c_o=yes
10312 fi
10313 fi
10314 chmod u+w . 2>&5
10315 $RM conftest*
10316 # SGI C++ compiler will create directory out/ii_files/ for
10317 # template instantiation
10318 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10319 $RM out/* && rmdir out
10320 cd ..
10321 $RM -r conftest
10322 $RM conftest*
10323
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10326 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10327
10328
10329
10330
10331 hard_links="nottested"
10332 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10333 # do not overwrite the value of need_locks provided by the user
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10335 $as_echo_n "checking if we can lock with hard links... " >&6; }
10336 hard_links=yes
10337 $RM conftest*
10338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10339 touch conftest.a
10340 ln conftest.a conftest.b 2>&5 || hard_links=no
10341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10343 $as_echo "$hard_links" >&6; }
10344 if test "$hard_links" = no; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10346 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10347 need_locks=warn
10348 fi
10349 else
10350 need_locks=no
10351 fi
10352
10353
10354
10355
10356
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10359 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10360
10361 runpath_var=
10362 allow_undefined_flag=
10363 always_export_symbols=no
10364 archive_cmds=
10365 archive_expsym_cmds=
10366 compiler_needs_object=no
10367 enable_shared_with_static_runtimes=no
10368 export_dynamic_flag_spec=
10369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10370 hardcode_automatic=no
10371 hardcode_direct=no
10372 hardcode_direct_absolute=no
10373 hardcode_libdir_flag_spec=
10374 hardcode_libdir_flag_spec_ld=
10375 hardcode_libdir_separator=
10376 hardcode_minus_L=no
10377 hardcode_shlibpath_var=unsupported
10378 inherit_rpath=no
10379 link_all_deplibs=unknown
10380 module_cmds=
10381 module_expsym_cmds=
10382 old_archive_from_new_cmds=
10383 old_archive_from_expsyms_cmds=
10384 thread_safe_flag_spec=
10385 whole_archive_flag_spec=
10386 # include_expsyms should be a list of space-separated symbols to be *always*
10387 # included in the symbol list
10388 include_expsyms=
10389 # exclude_expsyms can be an extended regexp of symbols to exclude
10390 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10391 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10392 # as well as any symbol that contains `d'.
10393 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10394 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10395 # platforms (ab)use it in PIC code, but their linkers get confused if
10396 # the symbol is explicitly referenced. Since portable code cannot
10397 # rely on this symbol name, it's probably fine to never include it in
10398 # preloaded symbol tables.
10399 # Exclude shared library initialization/finalization symbols.
10400 extract_expsyms_cmds=
10401
10402 case $host_os in
10403 cygwin* | mingw* | pw32* | cegcc*)
10404 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10405 # When not using gcc, we currently assume that we are using
10406 # Microsoft Visual C++.
10407 if test "$GCC" != yes; then
10408 with_gnu_ld=no
10409 fi
10410 ;;
10411 interix*)
10412 # we just hope/assume this is gcc and not c89 (= MSVC++)
10413 with_gnu_ld=yes
10414 ;;
10415 openbsd*)
10416 with_gnu_ld=no
10417 ;;
10418 esac
10419
10420 ld_shlibs=yes
10421
10422 # On some targets, GNU ld is compatible enough with the native linker
10423 # that we're better off using the native interface for both.
10424 lt_use_gnu_ld_interface=no
10425 if test "$with_gnu_ld" = yes; then
10426 case $host_os in
10427 aix*)
10428 # The AIX port of GNU ld has always aspired to compatibility
10429 # with the native linker. However, as the warning in the GNU ld
10430 # block says, versions before 2.19.5* couldn't really create working
10431 # shared libraries, regardless of the interface used.
10432 case `$LD -v 2>&1` in
10433 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10434 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10435 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10436 *)
10437 lt_use_gnu_ld_interface=yes
10438 ;;
10439 esac
10440 ;;
10441 *)
10442 lt_use_gnu_ld_interface=yes
10443 ;;
10444 esac
10445 fi
10446
10447 if test "$lt_use_gnu_ld_interface" = yes; then
10448 # If archive_cmds runs LD, not CC, wlarc should be empty
10449 wlarc='${wl}'
10450
10451 # Set some defaults for GNU ld with shared library support. These
10452 # are reset later if shared libraries are not supported. Putting them
10453 # here allows them to be overridden if necessary.
10454 runpath_var=LD_RUN_PATH
10455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10456 export_dynamic_flag_spec='${wl}--export-dynamic'
10457 # ancient GNU ld didn't support --whole-archive et. al.
10458 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10459 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10460 else
10461 whole_archive_flag_spec=
10462 fi
10463 supports_anon_versioning=no
10464 case `$LD -v 2>&1` in
10465 *GNU\ gold*) supports_anon_versioning=yes ;;
10466 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10467 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10468 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10469 *\ 2.11.*) ;; # other 2.11 versions
10470 *) supports_anon_versioning=yes ;;
10471 esac
10472
10473 # See if GNU ld supports shared libraries.
10474 case $host_os in
10475 aix[3-9]*)
10476 # On AIX/PPC, the GNU linker is very broken
10477 if test "$host_cpu" != ia64; then
10478 ld_shlibs=no
10479 cat <<_LT_EOF 1>&2
10480
10481 *** Warning: the GNU linker, at least up to release 2.19, is reported
10482 *** to be unable to reliably create shared libraries on AIX.
10483 *** Therefore, libtool is disabling shared libraries support. If you
10484 *** really care for shared libraries, you may want to install binutils
10485 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10486 *** You will then need to restart the configuration process.
10487
10488 _LT_EOF
10489 fi
10490 ;;
10491
10492 amigaos*)
10493 case $host_cpu in
10494 powerpc)
10495 # see comment about AmigaOS4 .so support
10496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10497 archive_expsym_cmds=''
10498 ;;
10499 m68k)
10500 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)'
10501 hardcode_libdir_flag_spec='-L$libdir'
10502 hardcode_minus_L=yes
10503 ;;
10504 esac
10505 ;;
10506
10507 beos*)
10508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10509 allow_undefined_flag=unsupported
10510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10511 # support --undefined. This deserves some investigation. FIXME
10512 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10513 else
10514 ld_shlibs=no
10515 fi
10516 ;;
10517
10518 cygwin* | mingw* | pw32* | cegcc*)
10519 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10520 # as there is no search path for DLLs.
10521 hardcode_libdir_flag_spec='-L$libdir'
10522 export_dynamic_flag_spec='${wl}--export-all-symbols'
10523 allow_undefined_flag=unsupported
10524 always_export_symbols=no
10525 enable_shared_with_static_runtimes=yes
10526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10527
10528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10530 # If the export-symbols file already is a .def file (1st line
10531 # is EXPORTS), use it as is; otherwise, prepend...
10532 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10533 cp $export_symbols $output_objdir/$soname.def;
10534 else
10535 echo EXPORTS > $output_objdir/$soname.def;
10536 cat $export_symbols >> $output_objdir/$soname.def;
10537 fi~
10538 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10539 else
10540 ld_shlibs=no
10541 fi
10542 ;;
10543
10544 haiku*)
10545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10546 link_all_deplibs=yes
10547 ;;
10548
10549 interix[3-9]*)
10550 hardcode_direct=no
10551 hardcode_shlibpath_var=no
10552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10553 export_dynamic_flag_spec='${wl}-E'
10554 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10555 # Instead, shared libraries are loaded at an image base (0x10000000 by
10556 # default) and relocated if they conflict, which is a slow very memory
10557 # consuming and fragmenting process. To avoid this, we pick a random,
10558 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10559 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10561 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'
10562 ;;
10563
10564 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10565 tmp_diet=no
10566 if test "$host_os" = linux-dietlibc; then
10567 case $cc_basename in
10568 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10569 esac
10570 fi
10571 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10572 && test "$tmp_diet" = no
10573 then
10574 tmp_addflag=' $pic_flag'
10575 tmp_sharedflag='-shared'
10576 case $cc_basename,$host_cpu in
10577 pgcc*) # Portland Group C compiler
10578 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'
10579 tmp_addflag=' $pic_flag'
10580 ;;
10581 pgf77* | pgf90* | pgf95* | pgfortran*)
10582 # Portland Group f77 and f90 compilers
10583 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'
10584 tmp_addflag=' $pic_flag -Mnomain' ;;
10585 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10586 tmp_addflag=' -i_dynamic' ;;
10587 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10588 tmp_addflag=' -i_dynamic -nofor_main' ;;
10589 ifc* | ifort*) # Intel Fortran compiler
10590 tmp_addflag=' -nofor_main' ;;
10591 lf95*) # Lahey Fortran 8.1
10592 whole_archive_flag_spec=
10593 tmp_sharedflag='--shared' ;;
10594 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10595 tmp_sharedflag='-qmkshrobj'
10596 tmp_addflag= ;;
10597 nvcc*) # Cuda Compiler Driver 2.2
10598 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'
10599 compiler_needs_object=yes
10600 ;;
10601 esac
10602 case `$CC -V 2>&1 | sed 5q` in
10603 *Sun\ C*) # Sun C 5.9
10604 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'
10605 compiler_needs_object=yes
10606 tmp_sharedflag='-G' ;;
10607 *Sun\ F*) # Sun Fortran 8.3
10608 tmp_sharedflag='-G' ;;
10609 esac
10610 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10611
10612 if test "x$supports_anon_versioning" = xyes; then
10613 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10615 echo "local: *; };" >> $output_objdir/$libname.ver~
10616 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10617 fi
10618
10619 case $cc_basename in
10620 xlf* | bgf* | bgxlf* | mpixlf*)
10621 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10622 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10623 hardcode_libdir_flag_spec=
10624 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10625 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10626 if test "x$supports_anon_versioning" = xyes; then
10627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10629 echo "local: *; };" >> $output_objdir/$libname.ver~
10630 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10631 fi
10632 ;;
10633 esac
10634 else
10635 ld_shlibs=no
10636 fi
10637 ;;
10638
10639 netbsd*)
10640 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10641 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10642 wlarc=
10643 else
10644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10646 fi
10647 ;;
10648
10649 solaris*)
10650 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10651 ld_shlibs=no
10652 cat <<_LT_EOF 1>&2
10653
10654 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10655 *** create shared libraries on Solaris systems. Therefore, libtool
10656 *** is disabling shared libraries support. We urge you to upgrade GNU
10657 *** binutils to release 2.9.1 or newer. Another option is to modify
10658 *** your PATH or compiler configuration so that the native linker is
10659 *** used, and then restart.
10660
10661 _LT_EOF
10662 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10665 else
10666 ld_shlibs=no
10667 fi
10668 ;;
10669
10670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10671 case `$LD -v 2>&1` in
10672 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10673 ld_shlibs=no
10674 cat <<_LT_EOF 1>&2
10675
10676 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10677 *** reliably create shared libraries on SCO systems. Therefore, libtool
10678 *** is disabling shared libraries support. We urge you to upgrade GNU
10679 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10680 *** your PATH or compiler configuration so that the native linker is
10681 *** used, and then restart.
10682
10683 _LT_EOF
10684 ;;
10685 *)
10686 # For security reasons, it is highly recommended that you always
10687 # use absolute paths for naming shared libraries, and exclude the
10688 # DT_RUNPATH tag from executables and libraries. But doing so
10689 # requires that you compile everything twice, which is a pain.
10690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10694 else
10695 ld_shlibs=no
10696 fi
10697 ;;
10698 esac
10699 ;;
10700
10701 sunos4*)
10702 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10703 wlarc=
10704 hardcode_direct=yes
10705 hardcode_shlibpath_var=no
10706 ;;
10707
10708 *)
10709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10712 else
10713 ld_shlibs=no
10714 fi
10715 ;;
10716 esac
10717
10718 if test "$ld_shlibs" = no; then
10719 runpath_var=
10720 hardcode_libdir_flag_spec=
10721 export_dynamic_flag_spec=
10722 whole_archive_flag_spec=
10723 fi
10724 else
10725 # PORTME fill in a description of your system's linker (not GNU ld)
10726 case $host_os in
10727 aix3*)
10728 allow_undefined_flag=unsupported
10729 always_export_symbols=yes
10730 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'
10731 # Note: this linker hardcodes the directories in LIBPATH if there
10732 # are no directories specified by -L.
10733 hardcode_minus_L=yes
10734 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10735 # Neither direct hardcoding nor static linking is supported with a
10736 # broken collect2.
10737 hardcode_direct=unsupported
10738 fi
10739 ;;
10740
10741 aix[4-9]*)
10742 if test "$host_cpu" = ia64; then
10743 # On IA64, the linker does run time linking by default, so we don't
10744 # have to do anything special.
10745 aix_use_runtimelinking=no
10746 exp_sym_flag='-Bexport'
10747 no_entry_flag=""
10748 else
10749 # If we're using GNU nm, then we don't want the "-C" option.
10750 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10751 # Also, AIX nm treats weak defined symbols like other global
10752 # defined symbols, whereas GNU nm marks them as "W".
10753 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10754 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'
10755 else
10756 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'
10757 fi
10758 aix_use_runtimelinking=no
10759
10760 # Test if we are trying to use run time linking or normal
10761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10762 # need to do runtime linking.
10763 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10764 for ld_flag in $LDFLAGS; do
10765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10766 aix_use_runtimelinking=yes
10767 break
10768 fi
10769 done
10770 ;;
10771 esac
10772
10773 exp_sym_flag='-bexport'
10774 no_entry_flag='-bnoentry'
10775 fi
10776
10777 # When large executables or shared objects are built, AIX ld can
10778 # have problems creating the table of contents. If linking a library
10779 # or program results in "error TOC overflow" add -mminimal-toc to
10780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10782
10783 archive_cmds=''
10784 hardcode_direct=yes
10785 hardcode_direct_absolute=yes
10786 hardcode_libdir_separator=':'
10787 link_all_deplibs=yes
10788 file_list_spec='${wl}-f,'
10789
10790 if test "$GCC" = yes; then
10791 case $host_os in aix4.[012]|aix4.[012].*)
10792 # We only want to do this on AIX 4.2 and lower, the check
10793 # below for broken collect2 doesn't work under 4.3+
10794 collect2name=`${CC} -print-prog-name=collect2`
10795 if test -f "$collect2name" &&
10796 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10797 then
10798 # We have reworked collect2
10799 :
10800 else
10801 # We have old collect2
10802 hardcode_direct=unsupported
10803 # It fails to find uninstalled libraries when the uninstalled
10804 # path is not listed in the libpath. Setting hardcode_minus_L
10805 # to unsupported forces relinking
10806 hardcode_minus_L=yes
10807 hardcode_libdir_flag_spec='-L$libdir'
10808 hardcode_libdir_separator=
10809 fi
10810 ;;
10811 esac
10812 shared_flag='-shared'
10813 if test "$aix_use_runtimelinking" = yes; then
10814 shared_flag="$shared_flag "'${wl}-G'
10815 fi
10816 else
10817 # not using gcc
10818 if test "$host_cpu" = ia64; then
10819 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10820 # chokes on -Wl,-G. The following line is correct:
10821 shared_flag='-G'
10822 else
10823 if test "$aix_use_runtimelinking" = yes; then
10824 shared_flag='${wl}-G'
10825 else
10826 shared_flag='${wl}-bM:SRE'
10827 fi
10828 fi
10829 fi
10830
10831 export_dynamic_flag_spec='${wl}-bexpall'
10832 # It seems that -bexpall does not export symbols beginning with
10833 # underscore (_), so it is better to generate a list of symbols to export.
10834 always_export_symbols=yes
10835 if test "$aix_use_runtimelinking" = yes; then
10836 # Warning - without using the other runtime loading flags (-brtl),
10837 # -berok will link without error, but may produce a broken library.
10838 allow_undefined_flag='-berok'
10839 # Determine the default libpath from the value encoded in an
10840 # empty executable.
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843
10844 int
10845 main ()
10846 {
10847
10848 ;
10849 return 0;
10850 }
10851 _ACEOF
10852 if ac_fn_c_try_link "$LINENO"; then :
10853
10854 lt_aix_libpath_sed='
10855 /Import File Strings/,/^$/ {
10856 /^0/ {
10857 s/^0 *\(.*\)$/\1/
10858 p
10859 }
10860 }'
10861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10862 # Check for a 64-bit object if we didn't find anything.
10863 if test -z "$aix_libpath"; then
10864 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10865 fi
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10870
10871 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10872 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"
10873 else
10874 if test "$host_cpu" = ia64; then
10875 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10876 allow_undefined_flag="-z nodefs"
10877 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"
10878 else
10879 # Determine the default libpath from the value encoded in an
10880 # empty executable.
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883
10884 int
10885 main ()
10886 {
10887
10888 ;
10889 return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893
10894 lt_aix_libpath_sed='
10895 /Import File Strings/,/^$/ {
10896 /^0/ {
10897 s/^0 *\(.*\)$/\1/
10898 p
10899 }
10900 }'
10901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10902 # Check for a 64-bit object if we didn't find anything.
10903 if test -z "$aix_libpath"; then
10904 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10905 fi
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10910
10911 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10912 # Warning - without using the other run time loading flags,
10913 # -berok will link without error, but may produce a broken library.
10914 no_undefined_flag=' ${wl}-bernotok'
10915 allow_undefined_flag=' ${wl}-berok'
10916 if test "$with_gnu_ld" = yes; then
10917 # We only use this code for GNU lds that support --whole-archive.
10918 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10919 else
10920 # Exported symbols can be pulled into shared objects from archives
10921 whole_archive_flag_spec='$convenience'
10922 fi
10923 archive_cmds_need_lc=yes
10924 # This is similar to how AIX traditionally builds its shared libraries.
10925 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'
10926 fi
10927 fi
10928 ;;
10929
10930 amigaos*)
10931 case $host_cpu in
10932 powerpc)
10933 # see comment about AmigaOS4 .so support
10934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10935 archive_expsym_cmds=''
10936 ;;
10937 m68k)
10938 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)'
10939 hardcode_libdir_flag_spec='-L$libdir'
10940 hardcode_minus_L=yes
10941 ;;
10942 esac
10943 ;;
10944
10945 bsdi[45]*)
10946 export_dynamic_flag_spec=-rdynamic
10947 ;;
10948
10949 cygwin* | mingw* | pw32* | cegcc*)
10950 # When not using gcc, we currently assume that we are using
10951 # Microsoft Visual C++.
10952 # hardcode_libdir_flag_spec is actually meaningless, as there is
10953 # no search path for DLLs.
10954 hardcode_libdir_flag_spec=' '
10955 allow_undefined_flag=unsupported
10956 # Tell ltmain to make .lib files, not .a files.
10957 libext=lib
10958 # Tell ltmain to make .dll files, not .so files.
10959 shrext_cmds=".dll"
10960 # FIXME: Setting linknames here is a bad hack.
10961 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10962 # The linker will automatically build a .lib file if we build a DLL.
10963 old_archive_from_new_cmds='true'
10964 # FIXME: Should let the user specify the lib program.
10965 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10966 fix_srcfile_path='`cygpath -w "$srcfile"`'
10967 enable_shared_with_static_runtimes=yes
10968 ;;
10969
10970 darwin* | rhapsody*)
10971
10972
10973 archive_cmds_need_lc=no
10974 hardcode_direct=no
10975 hardcode_automatic=yes
10976 hardcode_shlibpath_var=unsupported
10977 if test "$lt_cv_ld_force_load" = "yes"; then
10978 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\"`'
10979 else
10980 whole_archive_flag_spec=''
10981 fi
10982 link_all_deplibs=yes
10983 allow_undefined_flag="$_lt_dar_allow_undefined"
10984 case $cc_basename in
10985 ifort*) _lt_dar_can_shared=yes ;;
10986 *) _lt_dar_can_shared=$GCC ;;
10987 esac
10988 if test "$_lt_dar_can_shared" = "yes"; then
10989 output_verbose_link_cmd=func_echo_all
10990 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10991 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10992 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}"
10993 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}"
10994
10995 else
10996 ld_shlibs=no
10997 fi
10998
10999 ;;
11000
11001 dgux*)
11002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11003 hardcode_libdir_flag_spec='-L$libdir'
11004 hardcode_shlibpath_var=no
11005 ;;
11006
11007 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11008 # support. Future versions do this automatically, but an explicit c++rt0.o
11009 # does not break anything, and helps significantly (at the cost of a little
11010 # extra space).
11011 freebsd2.2*)
11012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11013 hardcode_libdir_flag_spec='-R$libdir'
11014 hardcode_direct=yes
11015 hardcode_shlibpath_var=no
11016 ;;
11017
11018 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11019 freebsd2.*)
11020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11021 hardcode_direct=yes
11022 hardcode_minus_L=yes
11023 hardcode_shlibpath_var=no
11024 ;;
11025
11026 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11027 freebsd* | dragonfly*)
11028 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11029 hardcode_libdir_flag_spec='-R$libdir'
11030 hardcode_direct=yes
11031 hardcode_shlibpath_var=no
11032 ;;
11033
11034 hpux9*)
11035 if test "$GCC" = yes; then
11036 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'
11037 else
11038 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'
11039 fi
11040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11041 hardcode_libdir_separator=:
11042 hardcode_direct=yes
11043
11044 # hardcode_minus_L: Not really in the search PATH,
11045 # but as the default location of the library.
11046 hardcode_minus_L=yes
11047 export_dynamic_flag_spec='${wl}-E'
11048 ;;
11049
11050 hpux10*)
11051 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11052 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11053 else
11054 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11055 fi
11056 if test "$with_gnu_ld" = no; then
11057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11058 hardcode_libdir_flag_spec_ld='+b $libdir'
11059 hardcode_libdir_separator=:
11060 hardcode_direct=yes
11061 hardcode_direct_absolute=yes
11062 export_dynamic_flag_spec='${wl}-E'
11063 # hardcode_minus_L: Not really in the search PATH,
11064 # but as the default location of the library.
11065 hardcode_minus_L=yes
11066 fi
11067 ;;
11068
11069 hpux11*)
11070 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11071 case $host_cpu in
11072 hppa*64*)
11073 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11074 ;;
11075 ia64*)
11076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11077 ;;
11078 *)
11079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11080 ;;
11081 esac
11082 else
11083 case $host_cpu in
11084 hppa*64*)
11085 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11086 ;;
11087 ia64*)
11088 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11089 ;;
11090 *)
11091
11092 # Older versions of the 11.00 compiler do not understand -b yet
11093 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11095 $as_echo_n "checking if $CC understands -b... " >&6; }
11096 if ${lt_cv_prog_compiler__b+:} false; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 lt_cv_prog_compiler__b=no
11100 save_LDFLAGS="$LDFLAGS"
11101 LDFLAGS="$LDFLAGS -b"
11102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11104 # The linker can only warn and ignore the option if not recognized
11105 # So say no if there are warnings
11106 if test -s conftest.err; then
11107 # Append any errors to the config.log.
11108 cat conftest.err 1>&5
11109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11111 if diff conftest.exp conftest.er2 >/dev/null; then
11112 lt_cv_prog_compiler__b=yes
11113 fi
11114 else
11115 lt_cv_prog_compiler__b=yes
11116 fi
11117 fi
11118 $RM -r conftest*
11119 LDFLAGS="$save_LDFLAGS"
11120
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11123 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11124
11125 if test x"$lt_cv_prog_compiler__b" = xyes; then
11126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11127 else
11128 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11129 fi
11130
11131 ;;
11132 esac
11133 fi
11134 if test "$with_gnu_ld" = no; then
11135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11136 hardcode_libdir_separator=:
11137
11138 case $host_cpu in
11139 hppa*64*|ia64*)
11140 hardcode_direct=no
11141 hardcode_shlibpath_var=no
11142 ;;
11143 *)
11144 hardcode_direct=yes
11145 hardcode_direct_absolute=yes
11146 export_dynamic_flag_spec='${wl}-E'
11147
11148 # hardcode_minus_L: Not really in the search PATH,
11149 # but as the default location of the library.
11150 hardcode_minus_L=yes
11151 ;;
11152 esac
11153 fi
11154 ;;
11155
11156 irix5* | irix6* | nonstopux*)
11157 if test "$GCC" = yes; then
11158 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'
11159 # Try to use the -exported_symbol ld option, if it does not
11160 # work, assume that -exports_file does not work either and
11161 # implicitly export all symbols.
11162 save_LDFLAGS="$LDFLAGS"
11163 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166 int foo(void) {}
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169 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'
11170
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LDFLAGS="$save_LDFLAGS"
11175 else
11176 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'
11177 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'
11178 fi
11179 archive_cmds_need_lc='no'
11180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11181 hardcode_libdir_separator=:
11182 inherit_rpath=yes
11183 link_all_deplibs=yes
11184 ;;
11185
11186 netbsd*)
11187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11189 else
11190 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11191 fi
11192 hardcode_libdir_flag_spec='-R$libdir'
11193 hardcode_direct=yes
11194 hardcode_shlibpath_var=no
11195 ;;
11196
11197 newsos6)
11198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11199 hardcode_direct=yes
11200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11201 hardcode_libdir_separator=:
11202 hardcode_shlibpath_var=no
11203 ;;
11204
11205 *nto* | *qnx*)
11206 ;;
11207
11208 openbsd*)
11209 if test -f /usr/libexec/ld.so; then
11210 hardcode_direct=yes
11211 hardcode_shlibpath_var=no
11212 hardcode_direct_absolute=yes
11213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11215 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11217 export_dynamic_flag_spec='${wl}-E'
11218 else
11219 case $host_os in
11220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11222 hardcode_libdir_flag_spec='-R$libdir'
11223 ;;
11224 *)
11225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11227 ;;
11228 esac
11229 fi
11230 else
11231 ld_shlibs=no
11232 fi
11233 ;;
11234
11235 os2*)
11236 hardcode_libdir_flag_spec='-L$libdir'
11237 hardcode_minus_L=yes
11238 allow_undefined_flag=unsupported
11239 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'
11240 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11241 ;;
11242
11243 osf3*)
11244 if test "$GCC" = yes; then
11245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11246 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'
11247 else
11248 allow_undefined_flag=' -expect_unresolved \*'
11249 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'
11250 fi
11251 archive_cmds_need_lc='no'
11252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11253 hardcode_libdir_separator=:
11254 ;;
11255
11256 osf4* | osf5*) # as osf3* with the addition of -msym flag
11257 if test "$GCC" = yes; then
11258 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11259 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'
11260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11261 else
11262 allow_undefined_flag=' -expect_unresolved \*'
11263 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'
11264 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~
11265 $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'
11266
11267 # Both c and cxx compiler support -rpath directly
11268 hardcode_libdir_flag_spec='-rpath $libdir'
11269 fi
11270 archive_cmds_need_lc='no'
11271 hardcode_libdir_separator=:
11272 ;;
11273
11274 solaris*)
11275 no_undefined_flag=' -z defs'
11276 if test "$GCC" = yes; then
11277 wlarc='${wl}'
11278 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11280 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11281 else
11282 case `$CC -V 2>&1` in
11283 *"Compilers 5.0"*)
11284 wlarc=''
11285 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11288 ;;
11289 *)
11290 wlarc='${wl}'
11291 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11293 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11294 ;;
11295 esac
11296 fi
11297 hardcode_libdir_flag_spec='-R$libdir'
11298 hardcode_shlibpath_var=no
11299 case $host_os in
11300 solaris2.[0-5] | solaris2.[0-5].*) ;;
11301 *)
11302 # The compiler driver will combine and reorder linker options,
11303 # but understands `-z linker_flag'. GCC discards it without `$wl',
11304 # but is careful enough not to reorder.
11305 # Supported since Solaris 2.6 (maybe 2.5.1?)
11306 if test "$GCC" = yes; then
11307 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11308 else
11309 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11310 fi
11311 ;;
11312 esac
11313 link_all_deplibs=yes
11314 ;;
11315
11316 sunos4*)
11317 if test "x$host_vendor" = xsequent; then
11318 # Use $CC to link under sequent, because it throws in some extra .o
11319 # files that make .init and .fini sections work.
11320 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11321 else
11322 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11323 fi
11324 hardcode_libdir_flag_spec='-L$libdir'
11325 hardcode_direct=yes
11326 hardcode_minus_L=yes
11327 hardcode_shlibpath_var=no
11328 ;;
11329
11330 sysv4)
11331 case $host_vendor in
11332 sni)
11333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11334 hardcode_direct=yes # is this really true???
11335 ;;
11336 siemens)
11337 ## LD is ld it makes a PLAMLIB
11338 ## CC just makes a GrossModule.
11339 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11340 reload_cmds='$CC -r -o $output$reload_objs'
11341 hardcode_direct=no
11342 ;;
11343 motorola)
11344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11346 ;;
11347 esac
11348 runpath_var='LD_RUN_PATH'
11349 hardcode_shlibpath_var=no
11350 ;;
11351
11352 sysv4.3*)
11353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354 hardcode_shlibpath_var=no
11355 export_dynamic_flag_spec='-Bexport'
11356 ;;
11357
11358 sysv4*MP*)
11359 if test -d /usr/nec; then
11360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361 hardcode_shlibpath_var=no
11362 runpath_var=LD_RUN_PATH
11363 hardcode_runpath_var=yes
11364 ld_shlibs=yes
11365 fi
11366 ;;
11367
11368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11369 no_undefined_flag='${wl}-z,text'
11370 archive_cmds_need_lc=no
11371 hardcode_shlibpath_var=no
11372 runpath_var='LD_RUN_PATH'
11373
11374 if test "$GCC" = yes; then
11375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 else
11378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 fi
11381 ;;
11382
11383 sysv5* | sco3.2v5* | sco5v6*)
11384 # Note: We can NOT use -z defs as we might desire, because we do not
11385 # link with -lc, and that would cause any symbols used from libc to
11386 # always be unresolved, which means just about no library would
11387 # ever link correctly. If we're not using GNU ld we use -z text
11388 # though, which does catch some bad symbols but isn't as heavy-handed
11389 # as -z defs.
11390 no_undefined_flag='${wl}-z,text'
11391 allow_undefined_flag='${wl}-z,nodefs'
11392 archive_cmds_need_lc=no
11393 hardcode_shlibpath_var=no
11394 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11395 hardcode_libdir_separator=':'
11396 link_all_deplibs=yes
11397 export_dynamic_flag_spec='${wl}-Bexport'
11398 runpath_var='LD_RUN_PATH'
11399
11400 if test "$GCC" = yes; then
11401 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403 else
11404 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11406 fi
11407 ;;
11408
11409 uts4*)
11410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411 hardcode_libdir_flag_spec='-L$libdir'
11412 hardcode_shlibpath_var=no
11413 ;;
11414
11415 *)
11416 ld_shlibs=no
11417 ;;
11418 esac
11419
11420 if test x$host_vendor = xsni; then
11421 case $host in
11422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11423 export_dynamic_flag_spec='${wl}-Blargedynsym'
11424 ;;
11425 esac
11426 fi
11427 fi
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11430 $as_echo "$ld_shlibs" >&6; }
11431 test "$ld_shlibs" = no && can_build_shared=no
11432
11433 with_gnu_ld=$with_gnu_ld
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 #
11450 # Do we need to explicitly link libc?
11451 #
11452 case "x$archive_cmds_need_lc" in
11453 x|xyes)
11454 # Assume -lc should be added
11455 archive_cmds_need_lc=yes
11456
11457 if test "$enable_shared" = yes && test "$GCC" = yes; then
11458 case $archive_cmds in
11459 *'~'*)
11460 # FIXME: we may have to deal with multi-command sequences.
11461 ;;
11462 '$CC '*)
11463 # Test whether the compiler implicitly links with -lc since on some
11464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11465 # to ld, don't add -lc before -lgcc.
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11467 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11468 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 $RM conftest*
11472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11473
11474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11475 (eval $ac_compile) 2>&5
11476 ac_status=$?
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; } 2>conftest.err; then
11479 soname=conftest
11480 lib=conftest
11481 libobjs=conftest.$ac_objext
11482 deplibs=
11483 wl=$lt_prog_compiler_wl
11484 pic_flag=$lt_prog_compiler_pic
11485 compiler_flags=-v
11486 linker_flags=-v
11487 verstring=
11488 output_objdir=.
11489 libname=conftest
11490 lt_save_allow_undefined_flag=$allow_undefined_flag
11491 allow_undefined_flag=
11492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11493 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11494 ac_status=$?
11495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11496 test $ac_status = 0; }
11497 then
11498 lt_cv_archive_cmds_need_lc=no
11499 else
11500 lt_cv_archive_cmds_need_lc=yes
11501 fi
11502 allow_undefined_flag=$lt_save_allow_undefined_flag
11503 else
11504 cat conftest.err 1>&5
11505 fi
11506 $RM conftest*
11507
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11510 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11511 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11512 ;;
11513 esac
11514 fi
11515 ;;
11516 esac
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11675 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11676
11677 if test "$GCC" = yes; then
11678 case $host_os in
11679 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11680 *) lt_awk_arg="/^libraries:/" ;;
11681 esac
11682 case $host_os in
11683 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11684 *) lt_sed_strip_eq="s,=/,/,g" ;;
11685 esac
11686 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11687 case $lt_search_path_spec in
11688 *\;*)
11689 # if the path contains ";" then we assume it to be the separator
11690 # otherwise default to the standard path separator (i.e. ":") - it is
11691 # assumed that no part of a normal pathname contains ";" but that should
11692 # okay in the real world where ";" in dirpaths is itself problematic.
11693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11694 ;;
11695 *)
11696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11697 ;;
11698 esac
11699 # Ok, now we have the path, separated by spaces, we can step through it
11700 # and add multilib dir if necessary.
11701 lt_tmp_lt_search_path_spec=
11702 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11703 for lt_sys_path in $lt_search_path_spec; do
11704 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11706 else
11707 test -d "$lt_sys_path" && \
11708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11709 fi
11710 done
11711 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11712 BEGIN {RS=" "; FS="/|\n";} {
11713 lt_foo="";
11714 lt_count=0;
11715 for (lt_i = NF; lt_i > 0; lt_i--) {
11716 if ($lt_i != "" && $lt_i != ".") {
11717 if ($lt_i == "..") {
11718 lt_count++;
11719 } else {
11720 if (lt_count == 0) {
11721 lt_foo="/" $lt_i lt_foo;
11722 } else {
11723 lt_count--;
11724 }
11725 }
11726 }
11727 }
11728 if (lt_foo != "") { lt_freq[lt_foo]++; }
11729 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11730 }'`
11731 # AWK program above erroneously prepends '/' to C:/dos/paths
11732 # for these hosts.
11733 case $host_os in
11734 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11735 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11736 esac
11737 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11738 else
11739 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11740 fi
11741 library_names_spec=
11742 libname_spec='lib$name'
11743 soname_spec=
11744 shrext_cmds=".so"
11745 postinstall_cmds=
11746 postuninstall_cmds=
11747 finish_cmds=
11748 finish_eval=
11749 shlibpath_var=
11750 shlibpath_overrides_runpath=unknown
11751 version_type=none
11752 dynamic_linker="$host_os ld.so"
11753 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11754 need_lib_prefix=unknown
11755 hardcode_into_libs=no
11756
11757 # when you set need_version to no, make sure it does not cause -set_version
11758 # flags to be left without arguments
11759 need_version=unknown
11760
11761 case $host_os in
11762 aix3*)
11763 version_type=linux
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11765 shlibpath_var=LIBPATH
11766
11767 # AIX 3 has no versioning support, so we append a major version to the name.
11768 soname_spec='${libname}${release}${shared_ext}$major'
11769 ;;
11770
11771 aix[4-9]*)
11772 version_type=linux
11773 need_lib_prefix=no
11774 need_version=no
11775 hardcode_into_libs=yes
11776 if test "$host_cpu" = ia64; then
11777 # AIX 5 supports IA64
11778 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 else
11781 # With GCC up to 2.95.x, collect2 would create an import file
11782 # for dependence libraries. The import file would start with
11783 # the line `#! .'. This would cause the generated library to
11784 # depend on `.', always an invalid library. This was fixed in
11785 # development snapshots of GCC prior to 3.0.
11786 case $host_os in
11787 aix4 | aix4.[01] | aix4.[01].*)
11788 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11789 echo ' yes '
11790 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11791 :
11792 else
11793 can_build_shared=no
11794 fi
11795 ;;
11796 esac
11797 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11798 # soname into executable. Probably we can add versioning support to
11799 # collect2, so additional links can be useful in future.
11800 if test "$aix_use_runtimelinking" = yes; then
11801 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11802 # instead of lib<name>.a to let people know that these are not
11803 # typical AIX shared libraries.
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11805 else
11806 # We preserve .a as extension for shared libraries through AIX4.2
11807 # and later when we are not doing run time linking.
11808 library_names_spec='${libname}${release}.a $libname.a'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 fi
11811 shlibpath_var=LIBPATH
11812 fi
11813 ;;
11814
11815 amigaos*)
11816 case $host_cpu in
11817 powerpc)
11818 # Since July 2007 AmigaOS4 officially supports .so libraries.
11819 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 ;;
11822 m68k)
11823 library_names_spec='$libname.ixlibrary $libname.a'
11824 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11825 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'
11826 ;;
11827 esac
11828 ;;
11829
11830 beos*)
11831 library_names_spec='${libname}${shared_ext}'
11832 dynamic_linker="$host_os ld.so"
11833 shlibpath_var=LIBRARY_PATH
11834 ;;
11835
11836 bsdi[45]*)
11837 version_type=linux
11838 need_version=no
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11840 soname_spec='${libname}${release}${shared_ext}$major'
11841 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11844 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11845 # the default ld.so.conf also contains /usr/contrib/lib and
11846 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11847 # libtool to hard-code these into programs
11848 ;;
11849
11850 cygwin* | mingw* | pw32* | cegcc*)
11851 version_type=windows
11852 shrext_cmds=".dll"
11853 need_version=no
11854 need_lib_prefix=no
11855
11856 case $GCC,$host_os in
11857 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11858 library_names_spec='$libname.dll.a'
11859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11860 postinstall_cmds='base_file=`basename \${file}`~
11861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11862 dldir=$destdir/`dirname \$dlpath`~
11863 test -d \$dldir || mkdir -p \$dldir~
11864 $install_prog $dir/$dlname \$dldir/$dlname~
11865 chmod a+x \$dldir/$dlname~
11866 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11867 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11868 fi'
11869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11870 dlpath=$dir/\$dldll~
11871 $RM \$dlpath'
11872 shlibpath_overrides_runpath=yes
11873
11874 case $host_os in
11875 cygwin*)
11876 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11877 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11878
11879 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11880 ;;
11881 mingw* | cegcc*)
11882 # MinGW DLLs use traditional 'lib' prefix
11883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11884 ;;
11885 pw32*)
11886 # pw32 DLLs use 'pw' prefix rather than 'lib'
11887 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888 ;;
11889 esac
11890 ;;
11891
11892 *)
11893 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11894 ;;
11895 esac
11896 dynamic_linker='Win32 ld.exe'
11897 # FIXME: first we should search . and the directory the executable is in
11898 shlibpath_var=PATH
11899 ;;
11900
11901 darwin* | rhapsody*)
11902 dynamic_linker="$host_os dyld"
11903 version_type=darwin
11904 need_lib_prefix=no
11905 need_version=no
11906 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11907 soname_spec='${libname}${release}${major}$shared_ext'
11908 shlibpath_overrides_runpath=yes
11909 shlibpath_var=DYLD_LIBRARY_PATH
11910 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11911
11912 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11913 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11914 ;;
11915
11916 dgux*)
11917 version_type=linux
11918 need_lib_prefix=no
11919 need_version=no
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 ;;
11924
11925 freebsd* | dragonfly*)
11926 # DragonFly does not have aout. When/if they implement a new
11927 # versioning mechanism, adjust this.
11928 if test -x /usr/bin/objformat; then
11929 objformat=`/usr/bin/objformat`
11930 else
11931 case $host_os in
11932 freebsd[23].*) objformat=aout ;;
11933 *) objformat=elf ;;
11934 esac
11935 fi
11936 version_type=freebsd-$objformat
11937 case $version_type in
11938 freebsd-elf*)
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11940 need_version=no
11941 need_lib_prefix=no
11942 ;;
11943 freebsd-*)
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11945 need_version=yes
11946 ;;
11947 esac
11948 shlibpath_var=LD_LIBRARY_PATH
11949 case $host_os in
11950 freebsd2.*)
11951 shlibpath_overrides_runpath=yes
11952 ;;
11953 freebsd3.[01]* | freebsdelf3.[01]*)
11954 shlibpath_overrides_runpath=yes
11955 hardcode_into_libs=yes
11956 ;;
11957 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11958 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11959 shlibpath_overrides_runpath=no
11960 hardcode_into_libs=yes
11961 ;;
11962 *) # from 4.6 on, and DragonFly
11963 shlibpath_overrides_runpath=yes
11964 hardcode_into_libs=yes
11965 ;;
11966 esac
11967 ;;
11968
11969 haiku*)
11970 version_type=linux
11971 need_lib_prefix=no
11972 need_version=no
11973 dynamic_linker="$host_os runtime_loader"
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11975 soname_spec='${libname}${release}${shared_ext}$major'
11976 shlibpath_var=LIBRARY_PATH
11977 shlibpath_overrides_runpath=yes
11978 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11979 hardcode_into_libs=yes
11980 ;;
11981
11982 hpux9* | hpux10* | hpux11*)
11983 # Give a soname corresponding to the major version so that dld.sl refuses to
11984 # link against other versions.
11985 version_type=sunos
11986 need_lib_prefix=no
11987 need_version=no
11988 case $host_cpu in
11989 ia64*)
11990 shrext_cmds='.so'
11991 hardcode_into_libs=yes
11992 dynamic_linker="$host_os dld.so"
11993 shlibpath_var=LD_LIBRARY_PATH
11994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11996 soname_spec='${libname}${release}${shared_ext}$major'
11997 if test "X$HPUX_IA64_MODE" = X32; then
11998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11999 else
12000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12001 fi
12002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12003 ;;
12004 hppa*64*)
12005 shrext_cmds='.sl'
12006 hardcode_into_libs=yes
12007 dynamic_linker="$host_os dld.sl"
12008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011 soname_spec='${libname}${release}${shared_ext}$major'
12012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12014 ;;
12015 *)
12016 shrext_cmds='.sl'
12017 dynamic_linker="$host_os dld.sl"
12018 shlibpath_var=SHLIB_PATH
12019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12021 soname_spec='${libname}${release}${shared_ext}$major'
12022 ;;
12023 esac
12024 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12025 postinstall_cmds='chmod 555 $lib'
12026 # or fails outright, so override atomically:
12027 install_override_mode=555
12028 ;;
12029
12030 interix[3-9]*)
12031 version_type=linux
12032 need_lib_prefix=no
12033 need_version=no
12034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12035 soname_spec='${libname}${release}${shared_ext}$major'
12036 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=no
12039 hardcode_into_libs=yes
12040 ;;
12041
12042 irix5* | irix6* | nonstopux*)
12043 case $host_os in
12044 nonstopux*) version_type=nonstopux ;;
12045 *)
12046 if test "$lt_cv_prog_gnu_ld" = yes; then
12047 version_type=linux
12048 else
12049 version_type=irix
12050 fi ;;
12051 esac
12052 need_lib_prefix=no
12053 need_version=no
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12056 case $host_os in
12057 irix5* | nonstopux*)
12058 libsuff= shlibsuff=
12059 ;;
12060 *)
12061 case $LD in # libtool.m4 will add one of these switches to LD
12062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12063 libsuff= shlibsuff= libmagic=32-bit;;
12064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12065 libsuff=32 shlibsuff=N32 libmagic=N32;;
12066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12068 *) libsuff= shlibsuff= libmagic=never-match;;
12069 esac
12070 ;;
12071 esac
12072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12073 shlibpath_overrides_runpath=no
12074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12076 hardcode_into_libs=yes
12077 ;;
12078
12079 # No shared lib support for Linux oldld, aout, or coff.
12080 linux*oldld* | linux*aout* | linux*coff*)
12081 dynamic_linker=no
12082 ;;
12083
12084 # This must be Linux ELF.
12085 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12086 version_type=linux
12087 need_lib_prefix=no
12088 need_version=no
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12092 shlibpath_var=LD_LIBRARY_PATH
12093 shlibpath_overrides_runpath=no
12094
12095 # Some binutils ld are patched to set DT_RUNPATH
12096 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12099 lt_cv_shlibpath_overrides_runpath=no
12100 save_LDFLAGS=$LDFLAGS
12101 save_libdir=$libdir
12102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106
12107 int
12108 main ()
12109 {
12110
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 if ac_fn_c_try_link "$LINENO"; then :
12116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12117 lt_cv_shlibpath_overrides_runpath=yes
12118 fi
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext \
12121 conftest$ac_exeext conftest.$ac_ext
12122 LDFLAGS=$save_LDFLAGS
12123 libdir=$save_libdir
12124
12125 fi
12126
12127 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12128
12129 # This implies no fast_install, which is unacceptable.
12130 # Some rework will be needed to allow for fast_install
12131 # before this can be enabled.
12132 hardcode_into_libs=yes
12133
12134 # Append ld.so.conf contents to the search path
12135 if test -f /etc/ld.so.conf; then
12136 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' ' '`
12137 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12138 fi
12139
12140 # We used to test for /lib/ld.so.1 and disable shared libraries on
12141 # powerpc, because MkLinux only supported shared libraries with the
12142 # GNU dynamic linker. Since this was broken with cross compilers,
12143 # most powerpc-linux boxes support dynamic linking these days and
12144 # people can always --disable-shared, the test was removed, and we
12145 # assume the GNU/Linux dynamic linker is in use.
12146 dynamic_linker='GNU/Linux ld.so'
12147 ;;
12148
12149 netbsd*)
12150 version_type=sunos
12151 need_lib_prefix=no
12152 need_version=no
12153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12156 dynamic_linker='NetBSD (a.out) ld.so'
12157 else
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 dynamic_linker='NetBSD ld.elf_so'
12161 fi
12162 shlibpath_var=LD_LIBRARY_PATH
12163 shlibpath_overrides_runpath=yes
12164 hardcode_into_libs=yes
12165 ;;
12166
12167 newsos6)
12168 version_type=linux
12169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170 shlibpath_var=LD_LIBRARY_PATH
12171 shlibpath_overrides_runpath=yes
12172 ;;
12173
12174 *nto* | *qnx*)
12175 version_type=qnx
12176 need_lib_prefix=no
12177 need_version=no
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=no
12182 hardcode_into_libs=yes
12183 dynamic_linker='ldqnx.so'
12184 ;;
12185
12186 openbsd*)
12187 version_type=sunos
12188 sys_lib_dlsearch_path_spec="/usr/lib"
12189 need_lib_prefix=no
12190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12191 case $host_os in
12192 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12193 *) need_version=no ;;
12194 esac
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12197 shlibpath_var=LD_LIBRARY_PATH
12198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12199 case $host_os in
12200 openbsd2.[89] | openbsd2.[89].*)
12201 shlibpath_overrides_runpath=no
12202 ;;
12203 *)
12204 shlibpath_overrides_runpath=yes
12205 ;;
12206 esac
12207 else
12208 shlibpath_overrides_runpath=yes
12209 fi
12210 ;;
12211
12212 os2*)
12213 libname_spec='$name'
12214 shrext_cmds=".dll"
12215 need_lib_prefix=no
12216 library_names_spec='$libname${shared_ext} $libname.a'
12217 dynamic_linker='OS/2 ld.exe'
12218 shlibpath_var=LIBPATH
12219 ;;
12220
12221 osf3* | osf4* | osf5*)
12222 version_type=osf
12223 need_lib_prefix=no
12224 need_version=no
12225 soname_spec='${libname}${release}${shared_ext}$major'
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12230 ;;
12231
12232 rdos*)
12233 dynamic_linker=no
12234 ;;
12235
12236 solaris*)
12237 version_type=linux
12238 need_lib_prefix=no
12239 need_version=no
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 shlibpath_var=LD_LIBRARY_PATH
12243 shlibpath_overrides_runpath=yes
12244 hardcode_into_libs=yes
12245 # ldd complains unless libraries are executable
12246 postinstall_cmds='chmod +x $lib'
12247 ;;
12248
12249 sunos4*)
12250 version_type=sunos
12251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=yes
12255 if test "$with_gnu_ld" = yes; then
12256 need_lib_prefix=no
12257 fi
12258 need_version=yes
12259 ;;
12260
12261 sysv4 | sysv4.3*)
12262 version_type=linux
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 case $host_vendor in
12267 sni)
12268 shlibpath_overrides_runpath=no
12269 need_lib_prefix=no
12270 runpath_var=LD_RUN_PATH
12271 ;;
12272 siemens)
12273 need_lib_prefix=no
12274 ;;
12275 motorola)
12276 need_lib_prefix=no
12277 need_version=no
12278 shlibpath_overrides_runpath=no
12279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12280 ;;
12281 esac
12282 ;;
12283
12284 sysv4*MP*)
12285 if test -d /usr/nec ;then
12286 version_type=linux
12287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12288 soname_spec='$libname${shared_ext}.$major'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 fi
12291 ;;
12292
12293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12294 version_type=freebsd-elf
12295 need_lib_prefix=no
12296 need_version=no
12297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12298 soname_spec='${libname}${release}${shared_ext}$major'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 shlibpath_overrides_runpath=yes
12301 hardcode_into_libs=yes
12302 if test "$with_gnu_ld" = yes; then
12303 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12304 else
12305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12306 case $host_os in
12307 sco3.2v5*)
12308 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12309 ;;
12310 esac
12311 fi
12312 sys_lib_dlsearch_path_spec='/usr/lib'
12313 ;;
12314
12315 tpf*)
12316 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12317 version_type=linux
12318 need_lib_prefix=no
12319 need_version=no
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 shlibpath_overrides_runpath=no
12323 hardcode_into_libs=yes
12324 ;;
12325
12326 uts4*)
12327 version_type=linux
12328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329 soname_spec='${libname}${release}${shared_ext}$major'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 ;;
12332
12333 *)
12334 dynamic_linker=no
12335 ;;
12336 esac
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12338 $as_echo "$dynamic_linker" >&6; }
12339 test "$dynamic_linker" = no && can_build_shared=no
12340
12341 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12342 if test "$GCC" = yes; then
12343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12344 fi
12345
12346 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12347 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12348 fi
12349 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12350 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12351 fi
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12445 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12446 hardcode_action=
12447 if test -n "$hardcode_libdir_flag_spec" ||
12448 test -n "$runpath_var" ||
12449 test "X$hardcode_automatic" = "Xyes" ; then
12450
12451 # We can hardcode non-existent directories.
12452 if test "$hardcode_direct" != no &&
12453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12454 # have to relink, otherwise we might link with an installed library
12455 # when we should be linking with a yet-to-be-installed one
12456 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12457 test "$hardcode_minus_L" != no; then
12458 # Linking always hardcodes the temporary library directory.
12459 hardcode_action=relink
12460 else
12461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12462 hardcode_action=immediate
12463 fi
12464 else
12465 # We cannot hardcode anything, or else we can only hardcode existing
12466 # directories.
12467 hardcode_action=unsupported
12468 fi
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12470 $as_echo "$hardcode_action" >&6; }
12471
12472 if test "$hardcode_action" = relink ||
12473 test "$inherit_rpath" = yes; then
12474 # Fast installation is not supported
12475 enable_fast_install=no
12476 elif test "$shlibpath_overrides_runpath" = yes ||
12477 test "$enable_shared" = no; then
12478 # Fast installation is not necessary
12479 enable_fast_install=needless
12480 fi
12481
12482
12483
12484
12485
12486
12487 if test "x$enable_dlopen" != xyes; then
12488 enable_dlopen=unknown
12489 enable_dlopen_self=unknown
12490 enable_dlopen_self_static=unknown
12491 else
12492 lt_cv_dlopen=no
12493 lt_cv_dlopen_libs=
12494
12495 case $host_os in
12496 beos*)
12497 lt_cv_dlopen="load_add_on"
12498 lt_cv_dlopen_libs=
12499 lt_cv_dlopen_self=yes
12500 ;;
12501
12502 mingw* | pw32* | cegcc*)
12503 lt_cv_dlopen="LoadLibrary"
12504 lt_cv_dlopen_libs=
12505 ;;
12506
12507 cygwin*)
12508 lt_cv_dlopen="dlopen"
12509 lt_cv_dlopen_libs=
12510 ;;
12511
12512 darwin*)
12513 # if libdl is installed we need to link against it
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12515 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12516 if ${ac_cv_lib_dl_dlopen+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 ac_check_lib_save_LIBS=$LIBS
12520 LIBS="-ldl $LIBS"
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 char dlopen ();
12531 int
12532 main ()
12533 {
12534 return dlopen ();
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 if ac_fn_c_try_link "$LINENO"; then :
12540 ac_cv_lib_dl_dlopen=yes
12541 else
12542 ac_cv_lib_dl_dlopen=no
12543 fi
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12546 LIBS=$ac_check_lib_save_LIBS
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12549 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12550 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12552 else
12553
12554 lt_cv_dlopen="dyld"
12555 lt_cv_dlopen_libs=
12556 lt_cv_dlopen_self=yes
12557
12558 fi
12559
12560 ;;
12561
12562 *)
12563 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12564 if test "x$ac_cv_func_shl_load" = xyes; then :
12565 lt_cv_dlopen="shl_load"
12566 else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12568 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12569 if ${ac_cv_lib_dld_shl_load+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 ac_check_lib_save_LIBS=$LIBS
12573 LIBS="-ldld $LIBS"
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580 #ifdef __cplusplus
12581 extern "C"
12582 #endif
12583 char shl_load ();
12584 int
12585 main ()
12586 {
12587 return shl_load ();
12588 ;
12589 return 0;
12590 }
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_lib_dld_shl_load=yes
12594 else
12595 ac_cv_lib_dld_shl_load=no
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 LIBS=$ac_check_lib_save_LIBS
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12602 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12603 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12604 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12605 else
12606 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12607 if test "x$ac_cv_func_dlopen" = xyes; then :
12608 lt_cv_dlopen="dlopen"
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12612 if ${ac_cv_lib_dl_dlopen+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-ldl $LIBS"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char dlopen ();
12627 int
12628 main ()
12629 {
12630 return dlopen ();
12631 ;
12632 return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_dl_dlopen=yes
12637 else
12638 ac_cv_lib_dl_dlopen=no
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12646 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12650 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12651 if ${ac_cv_lib_svld_dlopen+:} false; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lsvld $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658
12659 /* Override any GCC internal prototype to avoid an error.
12660 Use char because int might match the return type of a GCC
12661 builtin and then its argument prototype would still apply. */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 char dlopen ();
12666 int
12667 main ()
12668 {
12669 return dlopen ();
12670 ;
12671 return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 ac_cv_lib_svld_dlopen=yes
12676 else
12677 ac_cv_lib_svld_dlopen=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12684 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12685 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12689 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12690 if ${ac_cv_lib_dld_dld_link+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-ldld $LIBS"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char dld_link ();
12705 int
12706 main ()
12707 {
12708 return dld_link ();
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 if ac_fn_c_try_link "$LINENO"; then :
12714 ac_cv_lib_dld_dld_link=yes
12715 else
12716 ac_cv_lib_dld_dld_link=no
12717 fi
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12723 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12724 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12725 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12726 fi
12727
12728
12729 fi
12730
12731
12732 fi
12733
12734
12735 fi
12736
12737
12738 fi
12739
12740
12741 fi
12742
12743 ;;
12744 esac
12745
12746 if test "x$lt_cv_dlopen" != xno; then
12747 enable_dlopen=yes
12748 else
12749 enable_dlopen=no
12750 fi
12751
12752 case $lt_cv_dlopen in
12753 dlopen)
12754 save_CPPFLAGS="$CPPFLAGS"
12755 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12756
12757 save_LDFLAGS="$LDFLAGS"
12758 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12759
12760 save_LIBS="$LIBS"
12761 LIBS="$lt_cv_dlopen_libs $LIBS"
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12764 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12765 if ${lt_cv_dlopen_self+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if test "$cross_compiling" = yes; then :
12769 lt_cv_dlopen_self=cross
12770 else
12771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12772 lt_status=$lt_dlunknown
12773 cat > conftest.$ac_ext <<_LT_EOF
12774 #line 12774 "configure"
12775 #include "confdefs.h"
12776
12777 #if HAVE_DLFCN_H
12778 #include <dlfcn.h>
12779 #endif
12780
12781 #include <stdio.h>
12782
12783 #ifdef RTLD_GLOBAL
12784 # define LT_DLGLOBAL RTLD_GLOBAL
12785 #else
12786 # ifdef DL_GLOBAL
12787 # define LT_DLGLOBAL DL_GLOBAL
12788 # else
12789 # define LT_DLGLOBAL 0
12790 # endif
12791 #endif
12792
12793 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12794 find out it does not work in some platform. */
12795 #ifndef LT_DLLAZY_OR_NOW
12796 # ifdef RTLD_LAZY
12797 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12798 # else
12799 # ifdef DL_LAZY
12800 # define LT_DLLAZY_OR_NOW DL_LAZY
12801 # else
12802 # ifdef RTLD_NOW
12803 # define LT_DLLAZY_OR_NOW RTLD_NOW
12804 # else
12805 # ifdef DL_NOW
12806 # define LT_DLLAZY_OR_NOW DL_NOW
12807 # else
12808 # define LT_DLLAZY_OR_NOW 0
12809 # endif
12810 # endif
12811 # endif
12812 # endif
12813 #endif
12814
12815 /* When -fvisbility=hidden is used, assume the code has been annotated
12816 correspondingly for the symbols needed. */
12817 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12818 void fnord () __attribute__((visibility("default")));
12819 #endif
12820
12821 void fnord () { int i=42; }
12822 int main ()
12823 {
12824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12825 int status = $lt_dlunknown;
12826
12827 if (self)
12828 {
12829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12830 else
12831 {
12832 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12833 else puts (dlerror ());
12834 }
12835 /* dlclose (self); */
12836 }
12837 else
12838 puts (dlerror ());
12839
12840 return status;
12841 }
12842 _LT_EOF
12843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12844 (eval $ac_link) 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12847 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12848 (./conftest; exit; ) >&5 2>/dev/null
12849 lt_status=$?
12850 case x$lt_status in
12851 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12852 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12853 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12854 esac
12855 else :
12856 # compilation failed
12857 lt_cv_dlopen_self=no
12858 fi
12859 fi
12860 rm -fr conftest*
12861
12862
12863 fi
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12865 $as_echo "$lt_cv_dlopen_self" >&6; }
12866
12867 if test "x$lt_cv_dlopen_self" = xyes; then
12868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12870 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12871 if ${lt_cv_dlopen_self_static+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 if test "$cross_compiling" = yes; then :
12875 lt_cv_dlopen_self_static=cross
12876 else
12877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12878 lt_status=$lt_dlunknown
12879 cat > conftest.$ac_ext <<_LT_EOF
12880 #line 12880 "configure"
12881 #include "confdefs.h"
12882
12883 #if HAVE_DLFCN_H
12884 #include <dlfcn.h>
12885 #endif
12886
12887 #include <stdio.h>
12888
12889 #ifdef RTLD_GLOBAL
12890 # define LT_DLGLOBAL RTLD_GLOBAL
12891 #else
12892 # ifdef DL_GLOBAL
12893 # define LT_DLGLOBAL DL_GLOBAL
12894 # else
12895 # define LT_DLGLOBAL 0
12896 # endif
12897 #endif
12898
12899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12900 find out it does not work in some platform. */
12901 #ifndef LT_DLLAZY_OR_NOW
12902 # ifdef RTLD_LAZY
12903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12904 # else
12905 # ifdef DL_LAZY
12906 # define LT_DLLAZY_OR_NOW DL_LAZY
12907 # else
12908 # ifdef RTLD_NOW
12909 # define LT_DLLAZY_OR_NOW RTLD_NOW
12910 # else
12911 # ifdef DL_NOW
12912 # define LT_DLLAZY_OR_NOW DL_NOW
12913 # else
12914 # define LT_DLLAZY_OR_NOW 0
12915 # endif
12916 # endif
12917 # endif
12918 # endif
12919 #endif
12920
12921 /* When -fvisbility=hidden is used, assume the code has been annotated
12922 correspondingly for the symbols needed. */
12923 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12924 void fnord () __attribute__((visibility("default")));
12925 #endif
12926
12927 void fnord () { int i=42; }
12928 int main ()
12929 {
12930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12931 int status = $lt_dlunknown;
12932
12933 if (self)
12934 {
12935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12936 else
12937 {
12938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12939 else puts (dlerror ());
12940 }
12941 /* dlclose (self); */
12942 }
12943 else
12944 puts (dlerror ());
12945
12946 return status;
12947 }
12948 _LT_EOF
12949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12950 (eval $ac_link) 2>&5
12951 ac_status=$?
12952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12953 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12954 (./conftest; exit; ) >&5 2>/dev/null
12955 lt_status=$?
12956 case x$lt_status in
12957 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12958 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12959 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12960 esac
12961 else :
12962 # compilation failed
12963 lt_cv_dlopen_self_static=no
12964 fi
12965 fi
12966 rm -fr conftest*
12967
12968
12969 fi
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12971 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12972 fi
12973
12974 CPPFLAGS="$save_CPPFLAGS"
12975 LDFLAGS="$save_LDFLAGS"
12976 LIBS="$save_LIBS"
12977 ;;
12978 esac
12979
12980 case $lt_cv_dlopen_self in
12981 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12982 *) enable_dlopen_self=unknown ;;
12983 esac
12984
12985 case $lt_cv_dlopen_self_static in
12986 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12987 *) enable_dlopen_self_static=unknown ;;
12988 esac
12989 fi
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007 striplib=
13008 old_striplib=
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13010 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13011 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13012 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13013 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13015 $as_echo "yes" >&6; }
13016 else
13017 # FIXME - insert some real tests, host_os isn't really good enough
13018 case $host_os in
13019 darwin*)
13020 if test -n "$STRIP" ; then
13021 striplib="$STRIP -x"
13022 old_striplib="$STRIP -S"
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024 $as_echo "yes" >&6; }
13025 else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13028 fi
13029 ;;
13030 *)
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032 $as_echo "no" >&6; }
13033 ;;
13034 esac
13035 fi
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048 # Report which library types will actually be built
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13050 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13052 $as_echo "$can_build_shared" >&6; }
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13055 $as_echo_n "checking whether to build shared libraries... " >&6; }
13056 test "$can_build_shared" = "no" && enable_shared=no
13057
13058 # On AIX, shared libraries and static libraries use the same namespace, and
13059 # are all built from PIC.
13060 case $host_os in
13061 aix3*)
13062 test "$enable_shared" = yes && enable_static=no
13063 if test -n "$RANLIB"; then
13064 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13065 postinstall_cmds='$RANLIB $lib'
13066 fi
13067 ;;
13068
13069 aix[4-9]*)
13070 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13071 test "$enable_shared" = yes && enable_static=no
13072 fi
13073 ;;
13074 esac
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13076 $as_echo "$enable_shared" >&6; }
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13079 $as_echo_n "checking whether to build static libraries... " >&6; }
13080 # Make sure either enable_shared or enable_static is yes.
13081 test "$enable_shared" = yes || enable_static=yes
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13083 $as_echo "$enable_static" >&6; }
13084
13085
13086
13087
13088 fi
13089 ac_ext=c
13090 ac_cpp='$CPP $CPPFLAGS'
13091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13094
13095 CC="$lt_save_CC"
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109 ac_config_commands="$ac_config_commands libtool"
13110
13111
13112
13113
13114 # Only expand once:
13115
13116
13117
13118
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
13120 $as_echo_n "checking for bind in -lsocket... " >&6; }
13121 if ${ac_cv_lib_socket_bind+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 ac_check_lib_save_LIBS=$LIBS
13125 LIBS="-lsocket $LIBS"
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128
13129 /* Override any GCC internal prototype to avoid an error.
13130 Use char because int might match the return type of a GCC
13131 builtin and then its argument prototype would still apply. */
13132 #ifdef __cplusplus
13133 extern "C"
13134 #endif
13135 char bind ();
13136 int
13137 main ()
13138 {
13139 return bind ();
13140 ;
13141 return 0;
13142 }
13143 _ACEOF
13144 if ac_fn_c_try_link "$LINENO"; then :
13145 ac_cv_lib_socket_bind=yes
13146 else
13147 ac_cv_lib_socket_bind=no
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 LIBS=$ac_check_lib_save_LIBS
13152 fi
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
13154 $as_echo "$ac_cv_lib_socket_bind" >&6; }
13155 if test "x$ac_cv_lib_socket_bind" = xyes; then :
13156 cat >>confdefs.h <<_ACEOF
13157 #define HAVE_LIBSOCKET 1
13158 _ACEOF
13159
13160 LIBS="-lsocket $LIBS"
13161
13162 fi
13163
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13165 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13166 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-lnsl $LIBS"
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173
13174 /* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13177 #ifdef __cplusplus
13178 extern "C"
13179 #endif
13180 char gethostbyname ();
13181 int
13182 main ()
13183 {
13184 return gethostbyname ();
13185 ;
13186 return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_c_try_link "$LINENO"; then :
13190 ac_cv_lib_nsl_gethostbyname=yes
13191 else
13192 ac_cv_lib_nsl_gethostbyname=no
13193 fi
13194 rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196 LIBS=$ac_check_lib_save_LIBS
13197 fi
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13199 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13200 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13201 cat >>confdefs.h <<_ACEOF
13202 #define HAVE_LIBNSL 1
13203 _ACEOF
13204
13205 LIBS="-lnsl $LIBS"
13206
13207 fi
13208
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
13210 $as_echo_n "checking for fabs in -lm... " >&6; }
13211 if ${ac_cv_lib_m_fabs+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lm $LIBS"
13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217 /* end confdefs.h. */
13218
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222 #ifdef __cplusplus
13223 extern "C"
13224 #endif
13225 char fabs ();
13226 int
13227 main ()
13228 {
13229 return fabs ();
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 if ac_fn_c_try_link "$LINENO"; then :
13235 ac_cv_lib_m_fabs=yes
13236 else
13237 ac_cv_lib_m_fabs=no
13238 fi
13239 rm -f core conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
13244 $as_echo "$ac_cv_lib_m_fabs" >&6; }
13245 if test "x$ac_cv_lib_m_fabs" = xyes; then :
13246 cat >>confdefs.h <<_ACEOF
13247 #define HAVE_LIBM 1
13248 _ACEOF
13249
13250 LIBS="-lm $LIBS"
13251
13252 fi
13253
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
13255 $as_echo_n "checking for log2 in -lm... " >&6; }
13256 if ${ac_cv_lib_m_log2+:} false; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 ac_check_lib_save_LIBS=$LIBS
13260 LIBS="-lm $LIBS"
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13267 #ifdef __cplusplus
13268 extern "C"
13269 #endif
13270 char log2 ();
13271 int
13272 main ()
13273 {
13274 return log2 ();
13275 ;
13276 return 0;
13277 }
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 ac_cv_lib_m_log2=yes
13281 else
13282 ac_cv_lib_m_log2=no
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13287 fi
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
13289 $as_echo "$ac_cv_lib_m_log2" >&6; }
13290 if test "x$ac_cv_lib_m_log2" = xyes; then :
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_LIBM 1
13293 _ACEOF
13294
13295 LIBS="-lm $LIBS"
13296
13297 fi
13298
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13302 if ${ac_cv_lib_dl_dlopen+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 ac_check_lib_save_LIBS=$LIBS
13306 LIBS="-ldl $LIBS"
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13313 #ifdef __cplusplus
13314 extern "C"
13315 #endif
13316 char dlopen ();
13317 int
13318 main ()
13319 {
13320 return dlopen ();
13321 ;
13322 return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_link "$LINENO"; then :
13326 ac_cv_lib_dl_dlopen=yes
13327 else
13328 ac_cv_lib_dl_dlopen=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 LIBS=$ac_check_lib_save_LIBS
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13336 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_LIBDL 1
13339 _ACEOF
13340
13341 LIBS="-ldl $LIBS"
13342
13343 fi
13344
13345 if test "${ac_cv_lib_dl_dlopen}" = "yes"; then
13346
13347 pkg_failed=no
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2" >&5
13349 $as_echo_n "checking for sdl2... " >&6; }
13350
13351 if test -n "$SDL_CFLAGS"; then
13352 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13353 elif test -n "$PKG_CONFIG"; then
13354 if test -n "$PKG_CONFIG" && \
13355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13356 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13357 ac_status=$?
13358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13359 test $ac_status = 0; }; then
13360 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2" 2>/dev/null`
13361 test "x$?" != "x0" && pkg_failed=yes
13362 else
13363 pkg_failed=yes
13364 fi
13365 else
13366 pkg_failed=untried
13367 fi
13368 if test -n "$SDL_LIBS"; then
13369 pkg_cv_SDL_LIBS="$SDL_LIBS"
13370 elif test -n "$PKG_CONFIG"; then
13371 if test -n "$PKG_CONFIG" && \
13372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2\""; } >&5
13373 ($PKG_CONFIG --exists --print-errors "sdl2") 2>&5
13374 ac_status=$?
13375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13376 test $ac_status = 0; }; then
13377 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2" 2>/dev/null`
13378 test "x$?" != "x0" && pkg_failed=yes
13379 else
13380 pkg_failed=yes
13381 fi
13382 else
13383 pkg_failed=untried
13384 fi
13385
13386 if test $pkg_failed = no; then
13387 pkg_save_LDFLAGS="$LDFLAGS"
13388 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391
13392 int
13393 main ()
13394 {
13395
13396 ;
13397 return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_link "$LINENO"; then :
13401
13402 else
13403 pkg_failed=yes
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext \
13406 conftest$ac_exeext conftest.$ac_ext
13407 LDFLAGS=$pkg_save_LDFLAGS
13408 fi
13409
13410
13411
13412 if test $pkg_failed = yes; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13415
13416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13417 _pkg_short_errors_supported=yes
13418 else
13419 _pkg_short_errors_supported=no
13420 fi
13421 if test $_pkg_short_errors_supported = yes; then
13422 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2" 2>&1`
13423 else
13424 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2" 2>&1`
13425 fi
13426 # Put the nasty error message in config.log where it belongs
13427 echo "$SDL_PKG_ERRORS" >&5
13428
13429
13430
13431 pkg_failed=no
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13433 $as_echo_n "checking for sdl... " >&6; }
13434
13435 if test -n "$SDL_CFLAGS"; then
13436 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13437 elif test -n "$PKG_CONFIG"; then
13438 if test -n "$PKG_CONFIG" && \
13439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13440 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13441 ac_status=$?
13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13443 test $ac_status = 0; }; then
13444 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13445 test "x$?" != "x0" && pkg_failed=yes
13446 else
13447 pkg_failed=yes
13448 fi
13449 else
13450 pkg_failed=untried
13451 fi
13452 if test -n "$SDL_LIBS"; then
13453 pkg_cv_SDL_LIBS="$SDL_LIBS"
13454 elif test -n "$PKG_CONFIG"; then
13455 if test -n "$PKG_CONFIG" && \
13456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13457 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13458 ac_status=$?
13459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13460 test $ac_status = 0; }; then
13461 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13462 test "x$?" != "x0" && pkg_failed=yes
13463 else
13464 pkg_failed=yes
13465 fi
13466 else
13467 pkg_failed=untried
13468 fi
13469
13470 if test $pkg_failed = no; then
13471 pkg_save_LDFLAGS="$LDFLAGS"
13472 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475
13476 int
13477 main ()
13478 {
13479
13480 ;
13481 return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485
13486 else
13487 pkg_failed=yes
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13491 LDFLAGS=$pkg_save_LDFLAGS
13492 fi
13493
13494
13495
13496 if test $pkg_failed = yes; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13499
13500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13501 _pkg_short_errors_supported=yes
13502 else
13503 _pkg_short_errors_supported=no
13504 fi
13505 if test $_pkg_short_errors_supported = yes; then
13506 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13507 else
13508 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13509 fi
13510 # Put the nasty error message in config.log where it belongs
13511 echo "$SDL_PKG_ERRORS" >&5
13512
13513 :
13514 elif test $pkg_failed = untried; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13517 :
13518 else
13519 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13520 SDL_LIBS=$pkg_cv_SDL_LIBS
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13524 SDL_LIBS="-ldl"
13525
13526 fi
13527
13528 elif test $pkg_failed = untried; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531
13532
13533 pkg_failed=no
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
13535 $as_echo_n "checking for sdl... " >&6; }
13536
13537 if test -n "$SDL_CFLAGS"; then
13538 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
13539 elif test -n "$PKG_CONFIG"; then
13540 if test -n "$PKG_CONFIG" && \
13541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13542 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13543 ac_status=$?
13544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13545 test $ac_status = 0; }; then
13546 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
13547 test "x$?" != "x0" && pkg_failed=yes
13548 else
13549 pkg_failed=yes
13550 fi
13551 else
13552 pkg_failed=untried
13553 fi
13554 if test -n "$SDL_LIBS"; then
13555 pkg_cv_SDL_LIBS="$SDL_LIBS"
13556 elif test -n "$PKG_CONFIG"; then
13557 if test -n "$PKG_CONFIG" && \
13558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
13559 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
13560 ac_status=$?
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; }; then
13563 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
13564 test "x$?" != "x0" && pkg_failed=yes
13565 else
13566 pkg_failed=yes
13567 fi
13568 else
13569 pkg_failed=untried
13570 fi
13571
13572 if test $pkg_failed = no; then
13573 pkg_save_LDFLAGS="$LDFLAGS"
13574 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13577
13578 int
13579 main ()
13580 {
13581
13582 ;
13583 return 0;
13584 }
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587
13588 else
13589 pkg_failed=yes
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 LDFLAGS=$pkg_save_LDFLAGS
13594 fi
13595
13596
13597
13598 if test $pkg_failed = yes; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13601
13602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13603 _pkg_short_errors_supported=yes
13604 else
13605 _pkg_short_errors_supported=no
13606 fi
13607 if test $_pkg_short_errors_supported = yes; then
13608 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
13609 else
13610 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
13611 fi
13612 # Put the nasty error message in config.log where it belongs
13613 echo "$SDL_PKG_ERRORS" >&5
13614
13615 :
13616 elif test $pkg_failed = untried; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13619 :
13620 else
13621 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13622 SDL_LIBS=$pkg_cv_SDL_LIBS
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13624 $as_echo "yes" >&6; }
13625 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
13626 SDL_LIBS="-ldl"
13627
13628 fi
13629
13630 else
13631 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
13632 SDL_LIBS=$pkg_cv_SDL_LIBS
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13634 $as_echo "yes" >&6; }
13635 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
13636 SDL_LIBS="-ldl"
13637
13638 fi
13639 else
13640 SDL_CFLAGS=
13641 SDL_LIBS=
13642 fi
13643
13644
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13647 $as_echo_n "checking for cygwin... " >&6; }
13648 if ${sim_cv_os_cygwin+:} false; then :
13649 $as_echo_n "(cached) " >&6
13650 else
13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13652 /* end confdefs.h. */
13653
13654 #ifdef __CYGWIN__
13655 lose
13656 #endif
13657 _ACEOF
13658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13659 $EGREP "lose" >/dev/null 2>&1; then :
13660 sim_cv_os_cygwin=yes
13661 else
13662 sim_cv_os_cygwin=no
13663 fi
13664 rm -f conftest*
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
13668 $as_echo "$sim_cv_os_cygwin" >&6; }
13669
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13671 $as_echo_n "checking for library containing tgetent... " >&6; }
13672 if ${ac_cv_search_tgetent+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 ac_func_search_save_LIBS=$LIBS
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 char tgetent ();
13686 int
13687 main ()
13688 {
13689 return tgetent ();
13690 ;
13691 return 0;
13692 }
13693 _ACEOF
13694 for ac_lib in '' termcap tinfo curses ncurses; do
13695 if test -z "$ac_lib"; then
13696 ac_res="none required"
13697 else
13698 ac_res=-l$ac_lib
13699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13700 fi
13701 if ac_fn_c_try_link "$LINENO"; then :
13702 ac_cv_search_tgetent=$ac_res
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705 conftest$ac_exeext
13706 if ${ac_cv_search_tgetent+:} false; then :
13707 break
13708 fi
13709 done
13710 if ${ac_cv_search_tgetent+:} false; then :
13711
13712 else
13713 ac_cv_search_tgetent=no
13714 fi
13715 rm conftest.$ac_ext
13716 LIBS=$ac_func_search_save_LIBS
13717 fi
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13719 $as_echo "$ac_cv_search_tgetent" >&6; }
13720 ac_res=$ac_cv_search_tgetent
13721 if test "$ac_res" != no; then :
13722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13723 TERMCAP_LIB=$ac_cv_search_tgetent
13724 else
13725 TERMCAP_LIB=""
13726 fi
13727
13728 if test x$sim_cv_os_cygwin = xyes; then
13729 TERMCAP_LIB="${TERMCAP_LIB} -luser32"
13730 fi
13731
13732
13733 if test -r ../readline/Makefile; then
13734 READLINE_LIB=../../readline/readline/libreadline.a
13735 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
13736 else
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13738 $as_echo_n "checking for readline in -lreadline... " >&6; }
13739 if ${ac_cv_lib_readline_readline+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 ac_check_lib_save_LIBS=$LIBS
13743 LIBS="-lreadline $TERMCAP_LIB $LIBS"
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746
13747 /* Override any GCC internal prototype to avoid an error.
13748 Use char because int might match the return type of a GCC
13749 builtin and then its argument prototype would still apply. */
13750 #ifdef __cplusplus
13751 extern "C"
13752 #endif
13753 char readline ();
13754 int
13755 main ()
13756 {
13757 return readline ();
13758 ;
13759 return 0;
13760 }
13761 _ACEOF
13762 if ac_fn_c_try_link "$LINENO"; then :
13763 ac_cv_lib_readline_readline=yes
13764 else
13765 ac_cv_lib_readline_readline=no
13766 fi
13767 rm -f core conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13769 LIBS=$ac_check_lib_save_LIBS
13770 fi
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13772 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13773 if test "x$ac_cv_lib_readline_readline" = xyes; then :
13774 READLINE_LIB=-lreadline
13775 else
13776 as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
13777 fi
13778
13779 READLINE_CFLAGS=
13780 fi
13781
13782
13783
13784
13785
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13787 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13788 # Check whether --enable-maintainer-mode was given.
13789 if test "${enable_maintainer_mode+set}" = set; then :
13790 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13791 else
13792 USE_MAINTAINER_MODE=no
13793 fi
13794
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13796 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13797 if test $USE_MAINTAINER_MODE = yes; then
13798 MAINTAINER_MODE_TRUE=
13799 MAINTAINER_MODE_FALSE='#'
13800 else
13801 MAINTAINER_MODE_TRUE='#'
13802 MAINTAINER_MODE_FALSE=
13803 fi
13804
13805 MAINT=$MAINTAINER_MODE_TRUE
13806
13807
13808 am__api_version='1.15'
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13811 $as_echo_n "checking whether build environment is sane... " >&6; }
13812 # Reject unsafe characters in $srcdir or the absolute working directory
13813 # name. Accept space and tab only in the latter.
13814 am_lf='
13815 '
13816 case `pwd` in
13817 *[\\\"\#\$\&\'\`$am_lf]*)
13818 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13819 esac
13820 case $srcdir in
13821 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13822 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13823 esac
13824
13825 # Do 'set' in a subshell so we don't clobber the current shell's
13826 # arguments. Must try -L first in case configure is actually a
13827 # symlink; some systems play weird games with the mod time of symlinks
13828 # (eg FreeBSD returns the mod time of the symlink's containing
13829 # directory).
13830 if (
13831 am_has_slept=no
13832 for am_try in 1 2; do
13833 echo "timestamp, slept: $am_has_slept" > conftest.file
13834 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13835 if test "$*" = "X"; then
13836 # -L didn't work.
13837 set X `ls -t "$srcdir/configure" conftest.file`
13838 fi
13839 if test "$*" != "X $srcdir/configure conftest.file" \
13840 && test "$*" != "X conftest.file $srcdir/configure"; then
13841
13842 # If neither matched, then we have a broken ls. This can happen
13843 # if, for instance, CONFIG_SHELL is bash and it inherits a
13844 # broken ls alias from the environment. This has actually
13845 # happened. Such a system could not be considered "sane".
13846 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13847 alias in your environment" "$LINENO" 5
13848 fi
13849 if test "$2" = conftest.file || test $am_try -eq 2; then
13850 break
13851 fi
13852 # Just in case.
13853 sleep 1
13854 am_has_slept=yes
13855 done
13856 test "$2" = conftest.file
13857 )
13858 then
13859 # Ok.
13860 :
13861 else
13862 as_fn_error $? "newly created file is older than distributed files!
13863 Check your system clock" "$LINENO" 5
13864 fi
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13866 $as_echo "yes" >&6; }
13867 # If we didn't sleep, we still need to ensure time stamps of config.status and
13868 # generated files are strictly newer.
13869 am_sleep_pid=
13870 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13871 ( sleep 1 ) &
13872 am_sleep_pid=$!
13873 fi
13874
13875 rm -f conftest.file
13876
13877 if test x"${MISSING+set}" != xset; then
13878 case $am_aux_dir in
13879 *\ * | *\ *)
13880 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13881 *)
13882 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13883 esac
13884 fi
13885 # Use eval to expand $SHELL
13886 if eval "$MISSING --is-lightweight"; then
13887 am_missing_run="$MISSING "
13888 else
13889 am_missing_run=
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13891 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13892 fi
13893
13894 if test x"${install_sh+set}" != xset; then
13895 case $am_aux_dir in
13896 *\ * | *\ *)
13897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13898 *)
13899 install_sh="\${SHELL} $am_aux_dir/install-sh"
13900 esac
13901 fi
13902
13903 # Installed binaries are usually stripped using 'strip' when the user
13904 # run "make install-strip". However 'strip' might not be the right
13905 # tool to use in cross-compilation environments, therefore Automake
13906 # will honor the 'STRIP' environment variable to overrule this program.
13907 if test "$cross_compiling" != no; then
13908 if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13910 set dummy ${ac_tool_prefix}strip; ac_word=$2
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912 $as_echo_n "checking for $ac_word... " >&6; }
13913 if ${ac_cv_prog_STRIP+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 if test -n "$STRIP"; then
13917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13918 else
13919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920 for as_dir in $PATH
13921 do
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
13925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13926 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13929 fi
13930 done
13931 done
13932 IFS=$as_save_IFS
13933
13934 fi
13935 fi
13936 STRIP=$ac_cv_prog_STRIP
13937 if test -n "$STRIP"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13939 $as_echo "$STRIP" >&6; }
13940 else
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 $as_echo "no" >&6; }
13943 fi
13944
13945
13946 fi
13947 if test -z "$ac_cv_prog_STRIP"; then
13948 ac_ct_STRIP=$STRIP
13949 # Extract the first word of "strip", so it can be a program name with args.
13950 set dummy strip; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 if test -n "$ac_ct_STRIP"; then
13957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13958 else
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13961 do
13962 IFS=$as_save_IFS
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13966 ac_cv_prog_ac_ct_STRIP="strip"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 break 2
13969 fi
13970 done
13971 done
13972 IFS=$as_save_IFS
13973
13974 fi
13975 fi
13976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13977 if test -n "$ac_ct_STRIP"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13979 $as_echo "$ac_ct_STRIP" >&6; }
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13983 fi
13984
13985 if test "x$ac_ct_STRIP" = x; then
13986 STRIP=":"
13987 else
13988 case $cross_compiling:$ac_tool_warned in
13989 yes:)
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13992 ac_tool_warned=yes ;;
13993 esac
13994 STRIP=$ac_ct_STRIP
13995 fi
13996 else
13997 STRIP="$ac_cv_prog_STRIP"
13998 fi
13999
14000 fi
14001 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14002
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14004 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14005 if test -z "$MKDIR_P"; then
14006 if ${ac_cv_path_mkdir+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14011 do
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_prog in mkdir gmkdir; do
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
14017 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14018 'mkdir (GNU coreutils) '* | \
14019 'mkdir (coreutils) '* | \
14020 'mkdir (fileutils) '4.1*)
14021 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14022 break 3;;
14023 esac
14024 done
14025 done
14026 done
14027 IFS=$as_save_IFS
14028
14029 fi
14030
14031 test -d ./--version && rmdir ./--version
14032 if test "${ac_cv_path_mkdir+set}" = set; then
14033 MKDIR_P="$ac_cv_path_mkdir -p"
14034 else
14035 # As a last resort, use the slow shell script. Don't cache a
14036 # value for MKDIR_P within a source directory, because that will
14037 # break other packages using the cache if that directory is
14038 # removed, or if the value is a relative name.
14039 MKDIR_P="$ac_install_sh -d"
14040 fi
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14043 $as_echo "$MKDIR_P" >&6; }
14044
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14047 set x ${MAKE-make}
14048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052 cat >conftest.make <<\_ACEOF
14053 SHELL = /bin/sh
14054 all:
14055 @echo '@@@%%%=$(MAKE)=@@@%%%'
14056 _ACEOF
14057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14059 *@@@%%%=?*=@@@%%%*)
14060 eval ac_cv_prog_make_${ac_make}_set=yes;;
14061 *)
14062 eval ac_cv_prog_make_${ac_make}_set=no;;
14063 esac
14064 rm -f conftest.make
14065 fi
14066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14068 $as_echo "yes" >&6; }
14069 SET_MAKE=
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 SET_MAKE="MAKE=${MAKE-make}"
14074 fi
14075
14076 rm -rf .tst 2>/dev/null
14077 mkdir .tst 2>/dev/null
14078 if test -d .tst; then
14079 am__leading_dot=.
14080 else
14081 am__leading_dot=_
14082 fi
14083 rmdir .tst 2>/dev/null
14084
14085 DEPDIR="${am__leading_dot}deps"
14086
14087 ac_config_commands="$ac_config_commands depfiles"
14088
14089
14090 am_make=${MAKE-make}
14091 cat > confinc << 'END'
14092 am__doit:
14093 @echo this is the am__doit target
14094 .PHONY: am__doit
14095 END
14096 # If we don't find an include directive, just comment out the code.
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14098 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14099 am__include="#"
14100 am__quote=
14101 _am_result=none
14102 # First try GNU make style include.
14103 echo "include confinc" > confmf
14104 # Ignore all kinds of additional output from 'make'.
14105 case `$am_make -s -f confmf 2> /dev/null` in #(
14106 *the\ am__doit\ target*)
14107 am__include=include
14108 am__quote=
14109 _am_result=GNU
14110 ;;
14111 esac
14112 # Now try BSD make style include.
14113 if test "$am__include" = "#"; then
14114 echo '.include "confinc"' > confmf
14115 case `$am_make -s -f confmf 2> /dev/null` in #(
14116 *the\ am__doit\ target*)
14117 am__include=.include
14118 am__quote="\""
14119 _am_result=BSD
14120 ;;
14121 esac
14122 fi
14123
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14126 $as_echo "$_am_result" >&6; }
14127 rm -f confinc confmf
14128
14129 # Check whether --enable-dependency-tracking was given.
14130 if test "${enable_dependency_tracking+set}" = set; then :
14131 enableval=$enable_dependency_tracking;
14132 fi
14133
14134 if test "x$enable_dependency_tracking" != xno; then
14135 am_depcomp="$ac_aux_dir/depcomp"
14136 AMDEPBACKSLASH='\'
14137 am__nodep='_no'
14138 fi
14139 if test "x$enable_dependency_tracking" != xno; then
14140 AMDEP_TRUE=
14141 AMDEP_FALSE='#'
14142 else
14143 AMDEP_TRUE='#'
14144 AMDEP_FALSE=
14145 fi
14146
14147
14148 # Check whether --enable-silent-rules was given.
14149 if test "${enable_silent_rules+set}" = set; then :
14150 enableval=$enable_silent_rules;
14151 fi
14152
14153 case $enable_silent_rules in # (((
14154 yes) AM_DEFAULT_VERBOSITY=0;;
14155 no) AM_DEFAULT_VERBOSITY=1;;
14156 *) AM_DEFAULT_VERBOSITY=1;;
14157 esac
14158 am_make=${MAKE-make}
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14160 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14161 if ${am_cv_make_support_nested_variables+:} false; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 if $as_echo 'TRUE=$(BAR$(V))
14165 BAR0=false
14166 BAR1=true
14167 V=1
14168 am__doit:
14169 @$(TRUE)
14170 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14171 am_cv_make_support_nested_variables=yes
14172 else
14173 am_cv_make_support_nested_variables=no
14174 fi
14175 fi
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14177 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14178 if test $am_cv_make_support_nested_variables = yes; then
14179 AM_V='$(V)'
14180 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14181 else
14182 AM_V=$AM_DEFAULT_VERBOSITY
14183 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14184 fi
14185 AM_BACKSLASH='\'
14186
14187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14189 # is not polluted with repeated "-I."
14190 am__isrc=' -I$(srcdir)'
14191 # test to see if srcdir already configured
14192 if test -f $srcdir/config.status; then
14193 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14194 fi
14195 fi
14196
14197 # test whether we have cygpath
14198 if test -z "$CYGPATH_W"; then
14199 if (cygpath --version) >/dev/null 2>/dev/null; then
14200 CYGPATH_W='cygpath -w'
14201 else
14202 CYGPATH_W=echo
14203 fi
14204 fi
14205
14206
14207 # Define the identity of the package.
14208 PACKAGE='sim'
14209 VERSION='0'
14210
14211
14212 cat >>confdefs.h <<_ACEOF
14213 #define PACKAGE "$PACKAGE"
14214 _ACEOF
14215
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define VERSION "$VERSION"
14219 _ACEOF
14220
14221 # Some tools Automake needs.
14222
14223 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14224
14225
14226 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14227
14228
14229 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14230
14231
14232 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14233
14234
14235 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14236
14237 # For better backward compatibility. To be removed once Automake 1.9.x
14238 # dies out for good. For more background, see:
14239 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
14240 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
14241 mkdir_p='$(MKDIR_P)'
14242
14243 # We need awk for the "check" target (and possibly the TAP driver). The
14244 # system "awk" is bad on some platforms.
14245 # Always define AMTAR for backward compatibility. Yes, it's still used
14246 # in the wild :-( We should find a proper way to deprecate it ...
14247 AMTAR='$${TAR-tar}'
14248
14249
14250 # We'll loop over all known methods to create a tar archive until one works.
14251 _am_tools='gnutar pax cpio none'
14252
14253 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
14254
14255
14256
14257
14258
14259 depcc="$CC" am_compiler_list=
14260
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14262 $as_echo_n "checking dependency style of $depcc... " >&6; }
14263 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14267 # We make a subdir and do the tests there. Otherwise we can end up
14268 # making bogus files that we don't know about and never remove. For
14269 # instance it was reported that on HP-UX the gcc test will end up
14270 # making a dummy file named 'D' -- because '-MD' means "put the output
14271 # in D".
14272 rm -rf conftest.dir
14273 mkdir conftest.dir
14274 # Copy depcomp to subdir because otherwise we won't find it if we're
14275 # using a relative directory.
14276 cp "$am_depcomp" conftest.dir
14277 cd conftest.dir
14278 # We will build objects and dependencies in a subdirectory because
14279 # it helps to detect inapplicable dependency modes. For instance
14280 # both Tru64's cc and ICC support -MD to output dependencies as a
14281 # side effect of compilation, but ICC will put the dependencies in
14282 # the current directory while Tru64 will put them in the object
14283 # directory.
14284 mkdir sub
14285
14286 am_cv_CC_dependencies_compiler_type=none
14287 if test "$am_compiler_list" = ""; then
14288 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14289 fi
14290 am__universal=false
14291 case " $depcc " in #(
14292 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14293 esac
14294
14295 for depmode in $am_compiler_list; do
14296 # Setup a source with many dependencies, because some compilers
14297 # like to wrap large dependency lists on column 80 (with \), and
14298 # we should not choose a depcomp mode which is confused by this.
14299 #
14300 # We need to recreate these files for each test, as the compiler may
14301 # overwrite some of them when testing with obscure command lines.
14302 # This happens at least with the AIX C compiler.
14303 : > sub/conftest.c
14304 for i in 1 2 3 4 5 6; do
14305 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14306 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14307 # Solaris 10 /bin/sh.
14308 echo '/* dummy */' > sub/conftst$i.h
14309 done
14310 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14311
14312 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14313 # mode. It turns out that the SunPro C++ compiler does not properly
14314 # handle '-M -o', and we need to detect this. Also, some Intel
14315 # versions had trouble with output in subdirs.
14316 am__obj=sub/conftest.${OBJEXT-o}
14317 am__minus_obj="-o $am__obj"
14318 case $depmode in
14319 gcc)
14320 # This depmode causes a compiler race in universal mode.
14321 test "$am__universal" = false || continue
14322 ;;
14323 nosideeffect)
14324 # After this tag, mechanisms are not by side-effect, so they'll
14325 # only be used when explicitly requested.
14326 if test "x$enable_dependency_tracking" = xyes; then
14327 continue
14328 else
14329 break
14330 fi
14331 ;;
14332 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14333 # This compiler won't grok '-c -o', but also, the minuso test has
14334 # not run yet. These depmodes are late enough in the game, and
14335 # so weak that their functioning should not be impacted.
14336 am__obj=conftest.${OBJEXT-o}
14337 am__minus_obj=
14338 ;;
14339 none) break ;;
14340 esac
14341 if depmode=$depmode \
14342 source=sub/conftest.c object=$am__obj \
14343 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14344 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14345 >/dev/null 2>conftest.err &&
14346 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14347 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14348 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14349 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14350 # icc doesn't choke on unknown options, it will just issue warnings
14351 # or remarks (even with -Werror). So we grep stderr for any message
14352 # that says an option was ignored or not supported.
14353 # When given -MP, icc 7.0 and 7.1 complain thusly:
14354 # icc: Command line warning: ignoring option '-M'; no argument required
14355 # The diagnosis changed in icc 8.0:
14356 # icc: Command line remark: option '-MP' not supported
14357 if (grep 'ignoring option' conftest.err ||
14358 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14359 am_cv_CC_dependencies_compiler_type=$depmode
14360 break
14361 fi
14362 fi
14363 done
14364
14365 cd ..
14366 rm -rf conftest.dir
14367 else
14368 am_cv_CC_dependencies_compiler_type=none
14369 fi
14370
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14373 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14374 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14375
14376 if
14377 test "x$enable_dependency_tracking" != xno \
14378 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14379 am__fastdepCC_TRUE=
14380 am__fastdepCC_FALSE='#'
14381 else
14382 am__fastdepCC_TRUE='#'
14383 am__fastdepCC_FALSE=
14384 fi
14385
14386
14387
14388 # POSIX will say in a future version that running "rm -f" with no argument
14389 # is OK; and we want to be able to make that assumption in our Makefile
14390 # recipes. So use an aggressive probe to check that the usage we want is
14391 # actually supported "in the wild" to an acceptable degree.
14392 # See automake bug#10828.
14393 # To make any issue more visible, cause the running configure to be aborted
14394 # by default if the 'rm' program in use doesn't match our expectations; the
14395 # user can still override this though.
14396 if rm -f && rm -fr && rm -rf; then : OK; else
14397 cat >&2 <<'END'
14398 Oops!
14399
14400 Your 'rm' program seems unable to run without file operands specified
14401 on the command line, even when the '-f' option is present. This is contrary
14402 to the behaviour of most rm programs out there, and not conforming with
14403 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
14404
14405 Please tell bug-automake@gnu.org about your system, including the value
14406 of your $PATH and any error possibly output before this message. This
14407 can help us improve future automake versions.
14408
14409 END
14410 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
14411 echo 'Configuration will proceed anyway, since you have set the' >&2
14412 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
14413 echo >&2
14414 else
14415 cat >&2 <<'END'
14416 Aborting the configuration process, to ensure you take notice of the issue.
14417
14418 You can download and install GNU coreutils to get an 'rm' implementation
14419 that behaves properly: <http://www.gnu.org/software/coreutils/>.
14420
14421 If you want to complete the configuration process using your problematic
14422 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14423 to "yes", and re-run configure.
14424
14425 END
14426 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
14427 fi
14428 fi
14429
14430 # Check whether --enable-silent-rules was given.
14431 if test "${enable_silent_rules+set}" = set; then :
14432 enableval=$enable_silent_rules;
14433 fi
14434
14435 case $enable_silent_rules in # (((
14436 yes) AM_DEFAULT_VERBOSITY=0;;
14437 no) AM_DEFAULT_VERBOSITY=1;;
14438 *) AM_DEFAULT_VERBOSITY=0;;
14439 esac
14440 am_make=${MAKE-make}
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
14442 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
14443 if ${am_cv_make_support_nested_variables+:} false; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 if $as_echo 'TRUE=$(BAR$(V))
14447 BAR0=false
14448 BAR1=true
14449 V=1
14450 am__doit:
14451 @$(TRUE)
14452 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
14453 am_cv_make_support_nested_variables=yes
14454 else
14455 am_cv_make_support_nested_variables=no
14456 fi
14457 fi
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
14459 $as_echo "$am_cv_make_support_nested_variables" >&6; }
14460 if test $am_cv_make_support_nested_variables = yes; then
14461 AM_V='$(V)'
14462 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
14463 else
14464 AM_V=$AM_DEFAULT_VERBOSITY
14465 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
14466 fi
14467 AM_BACKSLASH='\'
14468
14469
14470 # If a cpu ever has more than one simulator to choose from, use
14471 # --enable-sim=... to choose.
14472 # Check whether --enable-sim was given.
14473 if test "${enable_sim+set}" = set; then :
14474 enableval=$enable_sim; case "${enableval}" in
14475 yes | no) ;;
14476 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
14477 esac
14478 fi
14479
14480
14481 # Check whether --enable-example-sims was given.
14482 if test "${enable_example_sims+set}" = set; then :
14483 enableval=$enable_example_sims;
14484 fi
14485
14486
14487 # Check whether --enable-targets was given.
14488 if test "${enable_targets+set}" = set; then :
14489 enableval=$enable_targets; case "${enableval}" in
14490 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
14491 ;;
14492 no) enable_targets= ;;
14493 *) enable_targets=$enableval ;;
14494 esac
14495 fi
14496
14497
14498 SIM_PRIMARY_TARGET=
14499
14500
14501 SIM_SUBDIRS=
14502
14503
14504 SIM_COMMON_BUILD_TRUE=
14505 SIM_COMMON_BUILD_FALSE='#'
14506
14507
14508
14509 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
14510
14511
14512
14513
14514 if test "${enable_sim}" != no; then
14515 sim_igen=no
14516 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
14517 do
14518 sim_enable_arch_aarch64=false
14519 case "${targ}" in
14520 all|aarch64*-*-*)
14521 if test "${targ}" = "${target}"; then
14522 SIM_PRIMARY_TARGET=aarch64
14523 fi
14524 ac_config_files="$ac_config_files aarch64/.gdbinit:common/gdbinit.in"
14525
14526 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
14527
14528 ac_config_commands="$ac_config_commands aarch64/Makefile"
14529
14530 as_fn_append SIM_SUBDIRS " aarch64"
14531
14532 ac_config_commands="$ac_config_commands depdir-aarch64"
14533
14534
14535 sim_enable_arch_aarch64=true
14536
14537 ;;
14538 esac
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14540 $as_echo_n "checking where to find the target cc... " >&6; }
14541 if test "x${build}" != "x${host}" ; then
14542 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14543 # We already found the complete path
14544 ac_dir=`dirname $CC_FOR_TARGET`
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14546 $as_echo "pre-installed in $ac_dir" >&6; }
14547 else
14548 # Canadian cross, just use what we found
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550 $as_echo "pre-installed" >&6; }
14551 fi
14552 else
14553 ok=yes
14554 case " ${configdirs} " in
14555 *" ${target_alias}-gcc "*) ;;
14556 *) ok=no ;;
14557 esac
14558
14559 if test $ok = yes; then
14560 # An in-tree tool is available and we can use it
14561 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/${target_alias}-gcc'
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14563 $as_echo "just compiled" >&6; }
14564 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14565 # We already found the complete path
14566 ac_dir=`dirname $CC_FOR_TARGET`
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14568 $as_echo "pre-installed in $ac_dir" >&6; }
14569 elif test "x$target" = "x$host"; then
14570 # We can use an host tool
14571 CC_FOR_TARGET='$(CC)'
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14573 $as_echo "host tool" >&6; }
14574 else
14575 # We need a cross tool
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577 $as_echo "pre-installed" >&6; }
14578 fi
14579 fi
14580
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14582 $as_echo_n "checking where to find the target as... " >&6; }
14583 if test "x${build}" != "x${host}" ; then
14584 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14585 # We already found the complete path
14586 ac_dir=`dirname $AS_FOR_TARGET`
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14588 $as_echo "pre-installed in $ac_dir" >&6; }
14589 else
14590 # Canadian cross, just use what we found
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592 $as_echo "pre-installed" >&6; }
14593 fi
14594 else
14595 ok=yes
14596 case " ${configdirs} " in
14597 *" \$(abs_builddir) "*) ;;
14598 *) ok=no ;;
14599 esac
14600
14601 if test $ok = yes; then
14602 # An in-tree tool is available and we can use it
14603 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../gas/as-new'
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14605 $as_echo "just compiled" >&6; }
14606 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14607 # We already found the complete path
14608 ac_dir=`dirname $AS_FOR_TARGET`
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14610 $as_echo "pre-installed in $ac_dir" >&6; }
14611 elif test "x$target" = "x$host"; then
14612 # We can use an host tool
14613 AS_FOR_TARGET='$(AS)'
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14615 $as_echo "host tool" >&6; }
14616 else
14617 # We need a cross tool
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14619 $as_echo "pre-installed" >&6; }
14620 fi
14621 fi
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14624 $as_echo_n "checking where to find the target ld... " >&6; }
14625 if test "x${build}" != "x${host}" ; then
14626 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14627 # We already found the complete path
14628 ac_dir=`dirname $LD_FOR_TARGET`
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14630 $as_echo "pre-installed in $ac_dir" >&6; }
14631 else
14632 # Canadian cross, just use what we found
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634 $as_echo "pre-installed" >&6; }
14635 fi
14636 else
14637 ok=yes
14638 case " ${configdirs} " in
14639 *" \$(abs_builddir) "*) ;;
14640 *) ok=no ;;
14641 esac
14642
14643 if test $ok = yes; then
14644 # An in-tree tool is available and we can use it
14645 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/\$(abs_builddir)/../ld/ld-new'
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14647 $as_echo "just compiled" >&6; }
14648 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14649 # We already found the complete path
14650 ac_dir=`dirname $LD_FOR_TARGET`
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14652 $as_echo "pre-installed in $ac_dir" >&6; }
14653 elif test "x$target" = "x$host"; then
14654 # We can use an host tool
14655 LD_FOR_TARGET='$(LD)'
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14657 $as_echo "host tool" >&6; }
14658 else
14659 # We need a cross tool
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14661 $as_echo "pre-installed" >&6; }
14662 fi
14663 fi
14664
14665
14666
14667
14668
14669
14670 if test "$SIM_PRIMARY_TARGET" = "aarch64"; then :
14671 : "${AS_FOR_TARGET_AARCH64:=\$(AS_FOR_TARGET)}"
14672 : "${LD_FOR_TARGET_AARCH64:=\$(LD_FOR_TARGET)}"
14673 : "${CC_FOR_TARGET_AARCH64:=\$(CC_FOR_TARGET)}"
14674
14675 fi
14676
14677 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AARCH64 LD_FOR_TARGET_AARCH64 CC_FOR_TARGET_AARCH64"
14678
14679 if ${sim_enable_arch_aarch64}; then
14680 SIM_ENABLE_ARCH_aarch64_TRUE=
14681 SIM_ENABLE_ARCH_aarch64_FALSE='#'
14682 else
14683 SIM_ENABLE_ARCH_aarch64_TRUE='#'
14684 SIM_ENABLE_ARCH_aarch64_FALSE=
14685 fi
14686
14687
14688 sim_enable_arch_arm=false
14689 case "${targ}" in
14690 all|arm*-*-*)
14691 if test "${targ}" = "${target}"; then
14692 SIM_PRIMARY_TARGET=arm
14693 fi
14694 ac_config_files="$ac_config_files arm/.gdbinit:common/gdbinit.in"
14695
14696 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
14697
14698 ac_config_commands="$ac_config_commands arm/Makefile"
14699
14700 as_fn_append SIM_SUBDIRS " arm"
14701
14702 ac_config_commands="$ac_config_commands depdir-arm"
14703
14704
14705 sim_enable_arch_arm=true
14706
14707 ;;
14708 esac
14709
14710
14711
14712
14713 if test "$SIM_PRIMARY_TARGET" = "arm"; then :
14714 : "${AS_FOR_TARGET_ARM:=\$(AS_FOR_TARGET)}"
14715 : "${LD_FOR_TARGET_ARM:=\$(LD_FOR_TARGET)}"
14716 : "${CC_FOR_TARGET_ARM:=\$(CC_FOR_TARGET)}"
14717
14718 fi
14719
14720 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ARM LD_FOR_TARGET_ARM CC_FOR_TARGET_ARM"
14721
14722 if ${sim_enable_arch_arm}; then
14723 SIM_ENABLE_ARCH_arm_TRUE=
14724 SIM_ENABLE_ARCH_arm_FALSE='#'
14725 else
14726 SIM_ENABLE_ARCH_arm_TRUE='#'
14727 SIM_ENABLE_ARCH_arm_FALSE=
14728 fi
14729
14730
14731 sim_enable_arch_avr=false
14732 case "${targ}" in
14733 all|avr*-*-*)
14734 if test "${targ}" = "${target}"; then
14735 SIM_PRIMARY_TARGET=avr
14736 fi
14737 ac_config_files="$ac_config_files avr/.gdbinit:common/gdbinit.in"
14738
14739 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
14740
14741 ac_config_commands="$ac_config_commands avr/Makefile"
14742
14743 as_fn_append SIM_SUBDIRS " avr"
14744
14745 ac_config_commands="$ac_config_commands depdir-avr"
14746
14747
14748 sim_enable_arch_avr=true
14749
14750 ;;
14751 esac
14752
14753
14754
14755
14756 if test "$SIM_PRIMARY_TARGET" = "avr"; then :
14757 : "${AS_FOR_TARGET_AVR:=\$(AS_FOR_TARGET)}"
14758 : "${LD_FOR_TARGET_AVR:=\$(LD_FOR_TARGET)}"
14759 : "${CC_FOR_TARGET_AVR:=\$(CC_FOR_TARGET)}"
14760
14761 fi
14762
14763 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_AVR LD_FOR_TARGET_AVR CC_FOR_TARGET_AVR"
14764
14765 if ${sim_enable_arch_avr}; then
14766 SIM_ENABLE_ARCH_avr_TRUE=
14767 SIM_ENABLE_ARCH_avr_FALSE='#'
14768 else
14769 SIM_ENABLE_ARCH_avr_TRUE='#'
14770 SIM_ENABLE_ARCH_avr_FALSE=
14771 fi
14772
14773
14774 sim_enable_arch_bfin=false
14775 case "${targ}" in
14776 all|bfin-*-*)
14777 if test "${targ}" = "${target}"; then
14778 SIM_PRIMARY_TARGET=bfin
14779 fi
14780 ac_config_files="$ac_config_files bfin/.gdbinit:common/gdbinit.in"
14781
14782 ac_config_files="$ac_config_files bfin/Makefile.sim:bfin/Makefile.in"
14783
14784 ac_config_commands="$ac_config_commands bfin/Makefile"
14785
14786 as_fn_append SIM_SUBDIRS " bfin"
14787
14788 ac_config_commands="$ac_config_commands depdir-bfin"
14789
14790
14791 sim_enable_arch_bfin=true
14792
14793 ;;
14794 esac
14795
14796
14797
14798
14799 if test "$SIM_PRIMARY_TARGET" = "bfin"; then :
14800 : "${AS_FOR_TARGET_BFIN:=\$(AS_FOR_TARGET)}"
14801 : "${LD_FOR_TARGET_BFIN:=\$(LD_FOR_TARGET)}"
14802 : "${CC_FOR_TARGET_BFIN:=\$(CC_FOR_TARGET)}"
14803
14804 fi
14805
14806 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BFIN LD_FOR_TARGET_BFIN CC_FOR_TARGET_BFIN"
14807
14808 if ${sim_enable_arch_bfin}; then
14809 SIM_ENABLE_ARCH_bfin_TRUE=
14810 SIM_ENABLE_ARCH_bfin_FALSE='#'
14811 else
14812 SIM_ENABLE_ARCH_bfin_TRUE='#'
14813 SIM_ENABLE_ARCH_bfin_FALSE=
14814 fi
14815
14816
14817 sim_enable_arch_bpf=false
14818 case "${targ}" in
14819 all|bpf-*-*)
14820 if test "${targ}" = "${target}"; then
14821 SIM_PRIMARY_TARGET=bpf
14822 fi
14823
14824
14825 subdirs="$subdirs bpf"
14826
14827
14828 ac_config_commands="$ac_config_commands depdir-bpf"
14829
14830
14831 sim_enable_arch_bpf=true
14832
14833 ;;
14834 esac
14835
14836
14837
14838
14839 if test "$SIM_PRIMARY_TARGET" = "bpf"; then :
14840 : "${AS_FOR_TARGET_BPF:=\$(AS_FOR_TARGET)}"
14841 : "${LD_FOR_TARGET_BPF:=\$(LD_FOR_TARGET)}"
14842 : "${CC_FOR_TARGET_BPF:=\$(CC_FOR_TARGET)}"
14843
14844 fi
14845
14846 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_BPF LD_FOR_TARGET_BPF CC_FOR_TARGET_BPF"
14847
14848 if ${sim_enable_arch_bpf}; then
14849 SIM_ENABLE_ARCH_bpf_TRUE=
14850 SIM_ENABLE_ARCH_bpf_FALSE='#'
14851 else
14852 SIM_ENABLE_ARCH_bpf_TRUE='#'
14853 SIM_ENABLE_ARCH_bpf_FALSE=
14854 fi
14855
14856
14857 sim_enable_arch_cr16=false
14858 case "${targ}" in
14859 all|cr16*-*-*)
14860 if test "${targ}" = "${target}"; then
14861 SIM_PRIMARY_TARGET=cr16
14862 fi
14863 ac_config_files="$ac_config_files cr16/.gdbinit:common/gdbinit.in"
14864
14865 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
14866
14867 ac_config_commands="$ac_config_commands cr16/Makefile"
14868
14869 as_fn_append SIM_SUBDIRS " cr16"
14870
14871 ac_config_commands="$ac_config_commands depdir-cr16"
14872
14873
14874 sim_enable_arch_cr16=true
14875
14876 ;;
14877 esac
14878
14879
14880
14881
14882 if test "$SIM_PRIMARY_TARGET" = "cr16"; then :
14883 : "${AS_FOR_TARGET_CR16:=\$(AS_FOR_TARGET)}"
14884 : "${LD_FOR_TARGET_CR16:=\$(LD_FOR_TARGET)}"
14885 : "${CC_FOR_TARGET_CR16:=\$(CC_FOR_TARGET)}"
14886
14887 fi
14888
14889 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CR16 LD_FOR_TARGET_CR16 CC_FOR_TARGET_CR16"
14890
14891 if ${sim_enable_arch_cr16}; then
14892 SIM_ENABLE_ARCH_cr16_TRUE=
14893 SIM_ENABLE_ARCH_cr16_FALSE='#'
14894 else
14895 SIM_ENABLE_ARCH_cr16_TRUE='#'
14896 SIM_ENABLE_ARCH_cr16_FALSE=
14897 fi
14898
14899
14900 sim_enable_arch_cris=false
14901 case "${targ}" in
14902 all|cris-*-* | crisv32-*-*)
14903 if test "${targ}" = "${target}"; then
14904 SIM_PRIMARY_TARGET=cris
14905 fi
14906 ac_config_files="$ac_config_files cris/.gdbinit:common/gdbinit.in"
14907
14908 ac_config_files="$ac_config_files cris/Makefile.sim:cris/Makefile.in"
14909
14910 ac_config_commands="$ac_config_commands cris/Makefile"
14911
14912 as_fn_append SIM_SUBDIRS " cris"
14913
14914 ac_config_commands="$ac_config_commands depdir-cris"
14915
14916
14917 sim_enable_arch_cris=true
14918
14919 ;;
14920 esac
14921
14922
14923
14924
14925 if test "$SIM_PRIMARY_TARGET" = "cris"; then :
14926 : "${AS_FOR_TARGET_CRIS:=\$(AS_FOR_TARGET)}"
14927 : "${LD_FOR_TARGET_CRIS:=\$(LD_FOR_TARGET)}"
14928 : "${CC_FOR_TARGET_CRIS:=\$(CC_FOR_TARGET)}"
14929
14930 fi
14931
14932 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_CRIS LD_FOR_TARGET_CRIS CC_FOR_TARGET_CRIS"
14933
14934 if ${sim_enable_arch_cris}; then
14935 SIM_ENABLE_ARCH_cris_TRUE=
14936 SIM_ENABLE_ARCH_cris_FALSE='#'
14937 else
14938 SIM_ENABLE_ARCH_cris_TRUE='#'
14939 SIM_ENABLE_ARCH_cris_FALSE=
14940 fi
14941
14942
14943 sim_enable_arch_d10v=false
14944 case "${targ}" in
14945 all|d10v-*-*)
14946 if test "${targ}" = "${target}"; then
14947 SIM_PRIMARY_TARGET=d10v
14948 fi
14949 ac_config_files="$ac_config_files d10v/.gdbinit:common/gdbinit.in"
14950
14951 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
14952
14953 ac_config_commands="$ac_config_commands d10v/Makefile"
14954
14955 as_fn_append SIM_SUBDIRS " d10v"
14956
14957 ac_config_commands="$ac_config_commands depdir-d10v"
14958
14959
14960 sim_enable_arch_d10v=true
14961
14962 ;;
14963 esac
14964
14965
14966
14967
14968 if test "$SIM_PRIMARY_TARGET" = "d10v"; then :
14969 : "${AS_FOR_TARGET_D10V:=\$(AS_FOR_TARGET)}"
14970 : "${LD_FOR_TARGET_D10V:=\$(LD_FOR_TARGET)}"
14971 : "${CC_FOR_TARGET_D10V:=\$(CC_FOR_TARGET)}"
14972
14973 fi
14974
14975 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_D10V LD_FOR_TARGET_D10V CC_FOR_TARGET_D10V"
14976
14977 if ${sim_enable_arch_d10v}; then
14978 SIM_ENABLE_ARCH_d10v_TRUE=
14979 SIM_ENABLE_ARCH_d10v_FALSE='#'
14980 else
14981 SIM_ENABLE_ARCH_d10v_TRUE='#'
14982 SIM_ENABLE_ARCH_d10v_FALSE=
14983 fi
14984
14985
14986 sim_enable_arch_frv=false
14987 case "${targ}" in
14988 all|frv-*-*)
14989 if test "${targ}" = "${target}"; then
14990 SIM_PRIMARY_TARGET=frv
14991 fi
14992 ac_config_files="$ac_config_files frv/.gdbinit:common/gdbinit.in"
14993
14994 ac_config_files="$ac_config_files frv/Makefile.sim:frv/Makefile.in"
14995
14996 ac_config_commands="$ac_config_commands frv/Makefile"
14997
14998 as_fn_append SIM_SUBDIRS " frv"
14999
15000 ac_config_commands="$ac_config_commands depdir-frv"
15001
15002
15003 sim_enable_arch_frv=true
15004
15005 ;;
15006 esac
15007
15008
15009
15010
15011 if test "$SIM_PRIMARY_TARGET" = "frv"; then :
15012 : "${AS_FOR_TARGET_FRV:=\$(AS_FOR_TARGET)}"
15013 : "${LD_FOR_TARGET_FRV:=\$(LD_FOR_TARGET)}"
15014 : "${CC_FOR_TARGET_FRV:=\$(CC_FOR_TARGET)}"
15015
15016 fi
15017
15018 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FRV LD_FOR_TARGET_FRV CC_FOR_TARGET_FRV"
15019
15020 if ${sim_enable_arch_frv}; then
15021 SIM_ENABLE_ARCH_frv_TRUE=
15022 SIM_ENABLE_ARCH_frv_FALSE='#'
15023 else
15024 SIM_ENABLE_ARCH_frv_TRUE='#'
15025 SIM_ENABLE_ARCH_frv_FALSE=
15026 fi
15027
15028
15029 sim_enable_arch_ft32=false
15030 case "${targ}" in
15031 all|ft32-*-*)
15032 if test "${targ}" = "${target}"; then
15033 SIM_PRIMARY_TARGET=ft32
15034 fi
15035 ac_config_files="$ac_config_files ft32/.gdbinit:common/gdbinit.in"
15036
15037 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
15038
15039 ac_config_commands="$ac_config_commands ft32/Makefile"
15040
15041 as_fn_append SIM_SUBDIRS " ft32"
15042
15043 ac_config_commands="$ac_config_commands depdir-ft32"
15044
15045
15046 sim_enable_arch_ft32=true
15047
15048 ;;
15049 esac
15050
15051
15052
15053
15054 if test "$SIM_PRIMARY_TARGET" = "ft32"; then :
15055 : "${AS_FOR_TARGET_FT32:=\$(AS_FOR_TARGET)}"
15056 : "${LD_FOR_TARGET_FT32:=\$(LD_FOR_TARGET)}"
15057 : "${CC_FOR_TARGET_FT32:=\$(CC_FOR_TARGET)}"
15058
15059 fi
15060
15061 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_FT32 LD_FOR_TARGET_FT32 CC_FOR_TARGET_FT32"
15062
15063 if ${sim_enable_arch_ft32}; then
15064 SIM_ENABLE_ARCH_ft32_TRUE=
15065 SIM_ENABLE_ARCH_ft32_FALSE='#'
15066 else
15067 SIM_ENABLE_ARCH_ft32_TRUE='#'
15068 SIM_ENABLE_ARCH_ft32_FALSE=
15069 fi
15070
15071
15072 sim_enable_arch_h8300=false
15073 case "${targ}" in
15074 all|h8300*-*-*)
15075 if test "${targ}" = "${target}"; then
15076 SIM_PRIMARY_TARGET=h8300
15077 fi
15078 ac_config_files="$ac_config_files h8300/.gdbinit:common/gdbinit.in"
15079
15080 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
15081
15082 ac_config_commands="$ac_config_commands h8300/Makefile"
15083
15084 as_fn_append SIM_SUBDIRS " h8300"
15085
15086 ac_config_commands="$ac_config_commands depdir-h8300"
15087
15088
15089 sim_enable_arch_h8300=true
15090
15091 ;;
15092 esac
15093
15094
15095
15096
15097 if test "$SIM_PRIMARY_TARGET" = "h8300"; then :
15098 : "${AS_FOR_TARGET_H8300:=\$(AS_FOR_TARGET)}"
15099 : "${LD_FOR_TARGET_H8300:=\$(LD_FOR_TARGET)}"
15100 : "${CC_FOR_TARGET_H8300:=\$(CC_FOR_TARGET)}"
15101
15102 fi
15103
15104 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_H8300 LD_FOR_TARGET_H8300 CC_FOR_TARGET_H8300"
15105
15106 if ${sim_enable_arch_h8300}; then
15107 SIM_ENABLE_ARCH_h8300_TRUE=
15108 SIM_ENABLE_ARCH_h8300_FALSE='#'
15109 else
15110 SIM_ENABLE_ARCH_h8300_TRUE='#'
15111 SIM_ENABLE_ARCH_h8300_FALSE=
15112 fi
15113
15114
15115 sim_enable_arch_iq2000=false
15116 case "${targ}" in
15117 all|iq2000-*-*)
15118 if test "${targ}" = "${target}"; then
15119 SIM_PRIMARY_TARGET=iq2000
15120 fi
15121 ac_config_files="$ac_config_files iq2000/.gdbinit:common/gdbinit.in"
15122
15123 ac_config_files="$ac_config_files iq2000/Makefile.sim:iq2000/Makefile.in"
15124
15125 ac_config_commands="$ac_config_commands iq2000/Makefile"
15126
15127 as_fn_append SIM_SUBDIRS " iq2000"
15128
15129 ac_config_commands="$ac_config_commands depdir-iq2000"
15130
15131
15132 sim_enable_arch_iq2000=true
15133
15134 ;;
15135 esac
15136
15137
15138
15139
15140 if test "$SIM_PRIMARY_TARGET" = "iq2000"; then :
15141 : "${AS_FOR_TARGET_IQ2000:=\$(AS_FOR_TARGET)}"
15142 : "${LD_FOR_TARGET_IQ2000:=\$(LD_FOR_TARGET)}"
15143 : "${CC_FOR_TARGET_IQ2000:=\$(CC_FOR_TARGET)}"
15144
15145 fi
15146
15147 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_IQ2000 LD_FOR_TARGET_IQ2000 CC_FOR_TARGET_IQ2000"
15148
15149 if ${sim_enable_arch_iq2000}; then
15150 SIM_ENABLE_ARCH_iq2000_TRUE=
15151 SIM_ENABLE_ARCH_iq2000_FALSE='#'
15152 else
15153 SIM_ENABLE_ARCH_iq2000_TRUE='#'
15154 SIM_ENABLE_ARCH_iq2000_FALSE=
15155 fi
15156
15157
15158 sim_enable_arch_lm32=false
15159 case "${targ}" in
15160 all|lm32-*-*)
15161 if test "${targ}" = "${target}"; then
15162 SIM_PRIMARY_TARGET=lm32
15163 fi
15164 ac_config_files="$ac_config_files lm32/.gdbinit:common/gdbinit.in"
15165
15166 ac_config_files="$ac_config_files lm32/Makefile.sim:lm32/Makefile.in"
15167
15168 ac_config_commands="$ac_config_commands lm32/Makefile"
15169
15170 as_fn_append SIM_SUBDIRS " lm32"
15171
15172 ac_config_commands="$ac_config_commands depdir-lm32"
15173
15174
15175 sim_enable_arch_lm32=true
15176
15177 ;;
15178 esac
15179
15180
15181
15182
15183 if test "$SIM_PRIMARY_TARGET" = "lm32"; then :
15184 : "${AS_FOR_TARGET_LM32:=\$(AS_FOR_TARGET)}"
15185 : "${LD_FOR_TARGET_LM32:=\$(LD_FOR_TARGET)}"
15186 : "${CC_FOR_TARGET_LM32:=\$(CC_FOR_TARGET)}"
15187
15188 fi
15189
15190 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_LM32 LD_FOR_TARGET_LM32 CC_FOR_TARGET_LM32"
15191
15192 if ${sim_enable_arch_lm32}; then
15193 SIM_ENABLE_ARCH_lm32_TRUE=
15194 SIM_ENABLE_ARCH_lm32_FALSE='#'
15195 else
15196 SIM_ENABLE_ARCH_lm32_TRUE='#'
15197 SIM_ENABLE_ARCH_lm32_FALSE=
15198 fi
15199
15200
15201 sim_enable_arch_m32c=false
15202 case "${targ}" in
15203 all|m32c-*-*)
15204 if test "${targ}" = "${target}"; then
15205 SIM_PRIMARY_TARGET=m32c
15206 fi
15207 ac_config_files="$ac_config_files m32c/.gdbinit:common/gdbinit.in"
15208
15209 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
15210
15211 ac_config_commands="$ac_config_commands m32c/Makefile"
15212
15213 as_fn_append SIM_SUBDIRS " m32c"
15214
15215 ac_config_commands="$ac_config_commands depdir-m32c"
15216
15217
15218 sim_enable_arch_m32c=true
15219
15220 ;;
15221 esac
15222
15223
15224
15225
15226 if test "$SIM_PRIMARY_TARGET" = "m32c"; then :
15227 : "${AS_FOR_TARGET_M32C:=\$(AS_FOR_TARGET)}"
15228 : "${LD_FOR_TARGET_M32C:=\$(LD_FOR_TARGET)}"
15229 : "${CC_FOR_TARGET_M32C:=\$(CC_FOR_TARGET)}"
15230
15231 fi
15232
15233 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32C LD_FOR_TARGET_M32C CC_FOR_TARGET_M32C"
15234
15235 if ${sim_enable_arch_m32c}; then
15236 SIM_ENABLE_ARCH_m32c_TRUE=
15237 SIM_ENABLE_ARCH_m32c_FALSE='#'
15238 else
15239 SIM_ENABLE_ARCH_m32c_TRUE='#'
15240 SIM_ENABLE_ARCH_m32c_FALSE=
15241 fi
15242
15243
15244 sim_enable_arch_m32r=false
15245 case "${targ}" in
15246 all|m32r-*-*)
15247 if test "${targ}" = "${target}"; then
15248 SIM_PRIMARY_TARGET=m32r
15249 fi
15250 ac_config_files="$ac_config_files m32r/.gdbinit:common/gdbinit.in"
15251
15252 ac_config_files="$ac_config_files m32r/Makefile.sim:m32r/Makefile.in"
15253
15254 ac_config_commands="$ac_config_commands m32r/Makefile"
15255
15256 as_fn_append SIM_SUBDIRS " m32r"
15257
15258 ac_config_commands="$ac_config_commands depdir-m32r"
15259
15260
15261 sim_enable_arch_m32r=true
15262
15263 ;;
15264 esac
15265
15266
15267
15268
15269 if test "$SIM_PRIMARY_TARGET" = "m32r"; then :
15270 : "${AS_FOR_TARGET_M32R:=\$(AS_FOR_TARGET)}"
15271 : "${LD_FOR_TARGET_M32R:=\$(LD_FOR_TARGET)}"
15272 : "${CC_FOR_TARGET_M32R:=\$(CC_FOR_TARGET)}"
15273
15274 fi
15275
15276 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M32R LD_FOR_TARGET_M32R CC_FOR_TARGET_M32R"
15277
15278 if ${sim_enable_arch_m32r}; then
15279 SIM_ENABLE_ARCH_m32r_TRUE=
15280 SIM_ENABLE_ARCH_m32r_FALSE='#'
15281 else
15282 SIM_ENABLE_ARCH_m32r_TRUE='#'
15283 SIM_ENABLE_ARCH_m32r_FALSE=
15284 fi
15285
15286
15287 sim_enable_arch_m68hc11=false
15288 case "${targ}" in
15289 all|m68hc11-*-*|m6811-*-*)
15290 if test "${targ}" = "${target}"; then
15291 SIM_PRIMARY_TARGET=m68hc11
15292 fi
15293 ac_config_files="$ac_config_files m68hc11/.gdbinit:common/gdbinit.in"
15294
15295 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
15296
15297 ac_config_commands="$ac_config_commands m68hc11/Makefile"
15298
15299 as_fn_append SIM_SUBDIRS " m68hc11"
15300
15301 ac_config_commands="$ac_config_commands depdir-m68hc11"
15302
15303
15304 sim_enable_arch_m68hc11=true
15305
15306 ;;
15307 esac
15308
15309
15310
15311
15312 if test "$SIM_PRIMARY_TARGET" = "m68hc11"; then :
15313 : "${AS_FOR_TARGET_M68HC11:=\$(AS_FOR_TARGET)}"
15314 : "${LD_FOR_TARGET_M68HC11:=\$(LD_FOR_TARGET)}"
15315 : "${CC_FOR_TARGET_M68HC11:=\$(CC_FOR_TARGET)}"
15316
15317 fi
15318
15319 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_M68HC11 LD_FOR_TARGET_M68HC11 CC_FOR_TARGET_M68HC11"
15320
15321 if ${sim_enable_arch_m68hc11}; then
15322 SIM_ENABLE_ARCH_m68hc11_TRUE=
15323 SIM_ENABLE_ARCH_m68hc11_FALSE='#'
15324 else
15325 SIM_ENABLE_ARCH_m68hc11_TRUE='#'
15326 SIM_ENABLE_ARCH_m68hc11_FALSE=
15327 fi
15328
15329
15330 sim_enable_arch_mcore=false
15331 case "${targ}" in
15332 all|mcore-*-*)
15333 if test "${targ}" = "${target}"; then
15334 SIM_PRIMARY_TARGET=mcore
15335 fi
15336 ac_config_files="$ac_config_files mcore/.gdbinit:common/gdbinit.in"
15337
15338 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
15339
15340 ac_config_commands="$ac_config_commands mcore/Makefile"
15341
15342 as_fn_append SIM_SUBDIRS " mcore"
15343
15344 ac_config_commands="$ac_config_commands depdir-mcore"
15345
15346
15347 sim_enable_arch_mcore=true
15348
15349 ;;
15350 esac
15351
15352
15353
15354
15355 if test "$SIM_PRIMARY_TARGET" = "mcore"; then :
15356 : "${AS_FOR_TARGET_MCORE:=\$(AS_FOR_TARGET)}"
15357 : "${LD_FOR_TARGET_MCORE:=\$(LD_FOR_TARGET)}"
15358 : "${CC_FOR_TARGET_MCORE:=\$(CC_FOR_TARGET)}"
15359
15360 fi
15361
15362 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MCORE LD_FOR_TARGET_MCORE CC_FOR_TARGET_MCORE"
15363
15364 if ${sim_enable_arch_mcore}; then
15365 SIM_ENABLE_ARCH_mcore_TRUE=
15366 SIM_ENABLE_ARCH_mcore_FALSE='#'
15367 else
15368 SIM_ENABLE_ARCH_mcore_TRUE='#'
15369 SIM_ENABLE_ARCH_mcore_FALSE=
15370 fi
15371
15372
15373 sim_enable_arch_microblaze=false
15374 case "${targ}" in
15375 all|microblaze*-*-*)
15376 if test "${targ}" = "${target}"; then
15377 SIM_PRIMARY_TARGET=microblaze
15378 fi
15379 ac_config_files="$ac_config_files microblaze/.gdbinit:common/gdbinit.in"
15380
15381 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
15382
15383 ac_config_commands="$ac_config_commands microblaze/Makefile"
15384
15385 as_fn_append SIM_SUBDIRS " microblaze"
15386
15387 ac_config_commands="$ac_config_commands depdir-microblaze"
15388
15389
15390 sim_enable_arch_microblaze=true
15391
15392 ;;
15393 esac
15394
15395
15396
15397
15398 if test "$SIM_PRIMARY_TARGET" = "microblaze"; then :
15399 : "${AS_FOR_TARGET_MICROBLAZE:=\$(AS_FOR_TARGET)}"
15400 : "${LD_FOR_TARGET_MICROBLAZE:=\$(LD_FOR_TARGET)}"
15401 : "${CC_FOR_TARGET_MICROBLAZE:=\$(CC_FOR_TARGET)}"
15402
15403 fi
15404
15405 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MICROBLAZE LD_FOR_TARGET_MICROBLAZE CC_FOR_TARGET_MICROBLAZE"
15406
15407 if ${sim_enable_arch_microblaze}; then
15408 SIM_ENABLE_ARCH_microblaze_TRUE=
15409 SIM_ENABLE_ARCH_microblaze_FALSE='#'
15410 else
15411 SIM_ENABLE_ARCH_microblaze_TRUE='#'
15412 SIM_ENABLE_ARCH_microblaze_FALSE=
15413 fi
15414
15415
15416 sim_enable_arch_mips=false
15417 case "${targ}" in
15418 all|mips*-*-*)
15419 if test "${targ}" = "${target}"; then
15420 SIM_PRIMARY_TARGET=mips
15421 fi
15422 subdirs="$subdirs mips"
15423
15424
15425 ac_config_commands="$ac_config_commands depdir-mips"
15426
15427
15428 sim_enable_arch_mips=true
15429 sim_igen=yes
15430 ;;
15431 esac
15432
15433
15434
15435
15436 if test "$SIM_PRIMARY_TARGET" = "mips"; then :
15437 : "${AS_FOR_TARGET_MIPS:=\$(AS_FOR_TARGET)}"
15438 : "${LD_FOR_TARGET_MIPS:=\$(LD_FOR_TARGET)}"
15439 : "${CC_FOR_TARGET_MIPS:=\$(CC_FOR_TARGET)}"
15440
15441 fi
15442
15443 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MIPS LD_FOR_TARGET_MIPS CC_FOR_TARGET_MIPS"
15444
15445 if ${sim_enable_arch_mips}; then
15446 SIM_ENABLE_ARCH_mips_TRUE=
15447 SIM_ENABLE_ARCH_mips_FALSE='#'
15448 else
15449 SIM_ENABLE_ARCH_mips_TRUE='#'
15450 SIM_ENABLE_ARCH_mips_FALSE=
15451 fi
15452
15453
15454 sim_enable_arch_mn10300=false
15455 case "${targ}" in
15456 all|mn10300*-*-*)
15457 if test "${targ}" = "${target}"; then
15458 SIM_PRIMARY_TARGET=mn10300
15459 fi
15460 subdirs="$subdirs mn10300"
15461
15462
15463 ac_config_commands="$ac_config_commands depdir-mn10300"
15464
15465
15466 sim_enable_arch_mn10300=true
15467 sim_igen=yes
15468 ;;
15469 esac
15470
15471
15472
15473
15474 if test "$SIM_PRIMARY_TARGET" = "mn10300"; then :
15475 : "${AS_FOR_TARGET_MN10300:=\$(AS_FOR_TARGET)}"
15476 : "${LD_FOR_TARGET_MN10300:=\$(LD_FOR_TARGET)}"
15477 : "${CC_FOR_TARGET_MN10300:=\$(CC_FOR_TARGET)}"
15478
15479 fi
15480
15481 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MN10300 LD_FOR_TARGET_MN10300 CC_FOR_TARGET_MN10300"
15482
15483 if ${sim_enable_arch_mn10300}; then
15484 SIM_ENABLE_ARCH_mn10300_TRUE=
15485 SIM_ENABLE_ARCH_mn10300_FALSE='#'
15486 else
15487 SIM_ENABLE_ARCH_mn10300_TRUE='#'
15488 SIM_ENABLE_ARCH_mn10300_FALSE=
15489 fi
15490
15491
15492 sim_enable_arch_moxie=false
15493 case "${targ}" in
15494 all|moxie-*-*)
15495 if test "${targ}" = "${target}"; then
15496 SIM_PRIMARY_TARGET=moxie
15497 fi
15498 ac_config_files="$ac_config_files moxie/.gdbinit:common/gdbinit.in"
15499
15500 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
15501
15502 ac_config_commands="$ac_config_commands moxie/Makefile"
15503
15504 as_fn_append SIM_SUBDIRS " moxie"
15505
15506 ac_config_commands="$ac_config_commands depdir-moxie"
15507
15508
15509 sim_enable_arch_moxie=true
15510
15511 ;;
15512 esac
15513
15514
15515
15516
15517 if test "$SIM_PRIMARY_TARGET" = "moxie"; then :
15518 : "${AS_FOR_TARGET_MOXIE:=\$(AS_FOR_TARGET)}"
15519 : "${LD_FOR_TARGET_MOXIE:=\$(LD_FOR_TARGET)}"
15520 : "${CC_FOR_TARGET_MOXIE:=\$(CC_FOR_TARGET)}"
15521
15522 fi
15523
15524 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MOXIE LD_FOR_TARGET_MOXIE CC_FOR_TARGET_MOXIE"
15525
15526 if ${sim_enable_arch_moxie}; then
15527 SIM_ENABLE_ARCH_moxie_TRUE=
15528 SIM_ENABLE_ARCH_moxie_FALSE='#'
15529 else
15530 SIM_ENABLE_ARCH_moxie_TRUE='#'
15531 SIM_ENABLE_ARCH_moxie_FALSE=
15532 fi
15533
15534
15535 sim_enable_arch_msp430=false
15536 case "${targ}" in
15537 all|msp430*-*-*)
15538 if test "${targ}" = "${target}"; then
15539 SIM_PRIMARY_TARGET=msp430
15540 fi
15541 ac_config_files="$ac_config_files msp430/.gdbinit:common/gdbinit.in"
15542
15543 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
15544
15545 ac_config_commands="$ac_config_commands msp430/Makefile"
15546
15547 as_fn_append SIM_SUBDIRS " msp430"
15548
15549 ac_config_commands="$ac_config_commands depdir-msp430"
15550
15551
15552 sim_enable_arch_msp430=true
15553
15554 ;;
15555 esac
15556
15557
15558
15559
15560 if test "$SIM_PRIMARY_TARGET" = "msp430"; then :
15561 : "${AS_FOR_TARGET_MSP430:=\$(AS_FOR_TARGET)}"
15562 : "${LD_FOR_TARGET_MSP430:=\$(LD_FOR_TARGET)}"
15563 : "${CC_FOR_TARGET_MSP430:=\$(CC_FOR_TARGET)}"
15564
15565 fi
15566
15567 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_MSP430 LD_FOR_TARGET_MSP430 CC_FOR_TARGET_MSP430"
15568
15569 if ${sim_enable_arch_msp430}; then
15570 SIM_ENABLE_ARCH_msp430_TRUE=
15571 SIM_ENABLE_ARCH_msp430_FALSE='#'
15572 else
15573 SIM_ENABLE_ARCH_msp430_TRUE='#'
15574 SIM_ENABLE_ARCH_msp430_FALSE=
15575 fi
15576
15577
15578 sim_enable_arch_or1k=false
15579 case "${targ}" in
15580 all|or1k*-*-*)
15581 if test "${targ}" = "${target}"; then
15582 SIM_PRIMARY_TARGET=or1k
15583 fi
15584 subdirs="$subdirs or1k"
15585
15586
15587 ac_config_commands="$ac_config_commands depdir-or1k"
15588
15589
15590 sim_enable_arch_or1k=true
15591
15592 ;;
15593 esac
15594
15595
15596
15597
15598 if test "$SIM_PRIMARY_TARGET" = "or1k"; then :
15599 : "${AS_FOR_TARGET_OR1K:=\$(AS_FOR_TARGET)}"
15600 : "${LD_FOR_TARGET_OR1K:=\$(LD_FOR_TARGET)}"
15601 : "${CC_FOR_TARGET_OR1K:=\$(CC_FOR_TARGET)}"
15602
15603 fi
15604
15605 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_OR1K LD_FOR_TARGET_OR1K CC_FOR_TARGET_OR1K"
15606
15607 if ${sim_enable_arch_or1k}; then
15608 SIM_ENABLE_ARCH_or1k_TRUE=
15609 SIM_ENABLE_ARCH_or1k_FALSE='#'
15610 else
15611 SIM_ENABLE_ARCH_or1k_TRUE='#'
15612 SIM_ENABLE_ARCH_or1k_FALSE=
15613 fi
15614
15615
15616 sim_enable_arch_ppc=false
15617 case "${targ}" in
15618 all|powerpc*-*-*)
15619 if test "${targ}" = "${target}"; then
15620 SIM_PRIMARY_TARGET=ppc
15621 fi
15622 subdirs="$subdirs ppc"
15623
15624
15625 ac_config_commands="$ac_config_commands depdir-ppc"
15626
15627
15628 sim_enable_arch_ppc=true
15629
15630 ;;
15631 esac
15632
15633
15634
15635
15636 if test "$SIM_PRIMARY_TARGET" = "ppc"; then :
15637 : "${AS_FOR_TARGET_PPC:=\$(AS_FOR_TARGET)}"
15638 : "${LD_FOR_TARGET_PPC:=\$(LD_FOR_TARGET)}"
15639 : "${CC_FOR_TARGET_PPC:=\$(CC_FOR_TARGET)}"
15640
15641 fi
15642
15643 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PPC LD_FOR_TARGET_PPC CC_FOR_TARGET_PPC"
15644
15645 if ${sim_enable_arch_ppc}; then
15646 SIM_ENABLE_ARCH_ppc_TRUE=
15647 SIM_ENABLE_ARCH_ppc_FALSE='#'
15648 else
15649 SIM_ENABLE_ARCH_ppc_TRUE='#'
15650 SIM_ENABLE_ARCH_ppc_FALSE=
15651 fi
15652
15653
15654 sim_enable_arch_pru=false
15655 case "${targ}" in
15656 all|pru*-*-*)
15657 if test "${targ}" = "${target}"; then
15658 SIM_PRIMARY_TARGET=pru
15659 fi
15660 ac_config_files="$ac_config_files pru/.gdbinit:common/gdbinit.in"
15661
15662 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
15663
15664 ac_config_commands="$ac_config_commands pru/Makefile"
15665
15666 as_fn_append SIM_SUBDIRS " pru"
15667
15668 ac_config_commands="$ac_config_commands depdir-pru"
15669
15670
15671 sim_enable_arch_pru=true
15672
15673 ;;
15674 esac
15675
15676
15677
15678
15679 if test "$SIM_PRIMARY_TARGET" = "pru"; then :
15680 : "${AS_FOR_TARGET_PRU:=\$(AS_FOR_TARGET)}"
15681 : "${LD_FOR_TARGET_PRU:=\$(LD_FOR_TARGET)}"
15682 : "${CC_FOR_TARGET_PRU:=\$(CC_FOR_TARGET)}"
15683
15684 fi
15685
15686 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_PRU LD_FOR_TARGET_PRU CC_FOR_TARGET_PRU"
15687
15688 if ${sim_enable_arch_pru}; then
15689 SIM_ENABLE_ARCH_pru_TRUE=
15690 SIM_ENABLE_ARCH_pru_FALSE='#'
15691 else
15692 SIM_ENABLE_ARCH_pru_TRUE='#'
15693 SIM_ENABLE_ARCH_pru_FALSE=
15694 fi
15695
15696
15697 sim_enable_arch_riscv=false
15698 case "${targ}" in
15699 all|riscv*-*-*)
15700 if test "${targ}" = "${target}"; then
15701 SIM_PRIMARY_TARGET=riscv
15702 fi
15703 subdirs="$subdirs riscv"
15704
15705
15706 ac_config_commands="$ac_config_commands depdir-riscv"
15707
15708
15709 sim_enable_arch_riscv=true
15710
15711 ;;
15712 esac
15713
15714
15715
15716
15717 if test "$SIM_PRIMARY_TARGET" = "riscv"; then :
15718 : "${AS_FOR_TARGET_RISCV:=\$(AS_FOR_TARGET)}"
15719 : "${LD_FOR_TARGET_RISCV:=\$(LD_FOR_TARGET)}"
15720 : "${CC_FOR_TARGET_RISCV:=\$(CC_FOR_TARGET)}"
15721
15722 fi
15723
15724 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RISCV LD_FOR_TARGET_RISCV CC_FOR_TARGET_RISCV"
15725
15726 if ${sim_enable_arch_riscv}; then
15727 SIM_ENABLE_ARCH_riscv_TRUE=
15728 SIM_ENABLE_ARCH_riscv_FALSE='#'
15729 else
15730 SIM_ENABLE_ARCH_riscv_TRUE='#'
15731 SIM_ENABLE_ARCH_riscv_FALSE=
15732 fi
15733
15734
15735 sim_enable_arch_rl78=false
15736 case "${targ}" in
15737 all|rl78-*-*)
15738 if test "${targ}" = "${target}"; then
15739 SIM_PRIMARY_TARGET=rl78
15740 fi
15741 ac_config_files="$ac_config_files rl78/.gdbinit:common/gdbinit.in"
15742
15743 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
15744
15745 ac_config_commands="$ac_config_commands rl78/Makefile"
15746
15747 as_fn_append SIM_SUBDIRS " rl78"
15748
15749 ac_config_commands="$ac_config_commands depdir-rl78"
15750
15751
15752 sim_enable_arch_rl78=true
15753
15754 ;;
15755 esac
15756
15757
15758
15759
15760 if test "$SIM_PRIMARY_TARGET" = "rl78"; then :
15761 : "${AS_FOR_TARGET_RL78:=\$(AS_FOR_TARGET)}"
15762 : "${LD_FOR_TARGET_RL78:=\$(LD_FOR_TARGET)}"
15763 : "${CC_FOR_TARGET_RL78:=\$(CC_FOR_TARGET)}"
15764
15765 fi
15766
15767 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RL78 LD_FOR_TARGET_RL78 CC_FOR_TARGET_RL78"
15768
15769 if ${sim_enable_arch_rl78}; then
15770 SIM_ENABLE_ARCH_rl78_TRUE=
15771 SIM_ENABLE_ARCH_rl78_FALSE='#'
15772 else
15773 SIM_ENABLE_ARCH_rl78_TRUE='#'
15774 SIM_ENABLE_ARCH_rl78_FALSE=
15775 fi
15776
15777
15778 sim_enable_arch_rx=false
15779 case "${targ}" in
15780 all|rx-*-*)
15781 if test "${targ}" = "${target}"; then
15782 SIM_PRIMARY_TARGET=rx
15783 fi
15784 ac_config_files="$ac_config_files rx/.gdbinit:common/gdbinit.in"
15785
15786 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
15787
15788 ac_config_commands="$ac_config_commands rx/Makefile"
15789
15790 as_fn_append SIM_SUBDIRS " rx"
15791
15792 ac_config_commands="$ac_config_commands depdir-rx"
15793
15794
15795 sim_enable_arch_rx=true
15796
15797 ;;
15798 esac
15799
15800
15801
15802
15803 if test "$SIM_PRIMARY_TARGET" = "rx"; then :
15804 : "${AS_FOR_TARGET_RX:=\$(AS_FOR_TARGET)}"
15805 : "${LD_FOR_TARGET_RX:=\$(LD_FOR_TARGET)}"
15806 : "${CC_FOR_TARGET_RX:=\$(CC_FOR_TARGET)}"
15807
15808 fi
15809
15810 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_RX LD_FOR_TARGET_RX CC_FOR_TARGET_RX"
15811
15812 if ${sim_enable_arch_rx}; then
15813 SIM_ENABLE_ARCH_rx_TRUE=
15814 SIM_ENABLE_ARCH_rx_FALSE='#'
15815 else
15816 SIM_ENABLE_ARCH_rx_TRUE='#'
15817 SIM_ENABLE_ARCH_rx_FALSE=
15818 fi
15819
15820
15821 sim_enable_arch_sh=false
15822 case "${targ}" in
15823 all|sh*-*-*)
15824 if test "${targ}" = "${target}"; then
15825 SIM_PRIMARY_TARGET=sh
15826 fi
15827 ac_config_files="$ac_config_files sh/.gdbinit:common/gdbinit.in"
15828
15829 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
15830
15831 ac_config_commands="$ac_config_commands sh/Makefile"
15832
15833 as_fn_append SIM_SUBDIRS " sh"
15834
15835 ac_config_commands="$ac_config_commands depdir-sh"
15836
15837
15838 sim_enable_arch_sh=true
15839
15840 ;;
15841 esac
15842
15843
15844
15845
15846 if test "$SIM_PRIMARY_TARGET" = "sh"; then :
15847 : "${AS_FOR_TARGET_SH:=\$(AS_FOR_TARGET)}"
15848 : "${LD_FOR_TARGET_SH:=\$(LD_FOR_TARGET)}"
15849 : "${CC_FOR_TARGET_SH:=\$(CC_FOR_TARGET)}"
15850
15851 fi
15852
15853 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_SH LD_FOR_TARGET_SH CC_FOR_TARGET_SH"
15854
15855 if ${sim_enable_arch_sh}; then
15856 SIM_ENABLE_ARCH_sh_TRUE=
15857 SIM_ENABLE_ARCH_sh_FALSE='#'
15858 else
15859 SIM_ENABLE_ARCH_sh_TRUE='#'
15860 SIM_ENABLE_ARCH_sh_FALSE=
15861 fi
15862
15863
15864 sim_enable_arch_erc32=false
15865 case "${targ}" in
15866 all|sparc-*-*)
15867 if test "${targ}" = "${target}"; then
15868 SIM_PRIMARY_TARGET=erc32
15869 fi
15870 ac_config_files="$ac_config_files erc32/.gdbinit:common/gdbinit.in"
15871
15872 ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
15873
15874 ac_config_commands="$ac_config_commands erc32/Makefile"
15875
15876 as_fn_append SIM_SUBDIRS " erc32"
15877
15878 ac_config_commands="$ac_config_commands depdir-erc32"
15879
15880
15881 sim_enable_arch_erc32=true
15882
15883 ;;
15884 esac
15885
15886
15887
15888
15889 if test "$SIM_PRIMARY_TARGET" = "erc32"; then :
15890 : "${AS_FOR_TARGET_ERC32:=\$(AS_FOR_TARGET)}"
15891 : "${LD_FOR_TARGET_ERC32:=\$(LD_FOR_TARGET)}"
15892 : "${CC_FOR_TARGET_ERC32:=\$(CC_FOR_TARGET)}"
15893
15894 fi
15895
15896 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_ERC32 LD_FOR_TARGET_ERC32 CC_FOR_TARGET_ERC32"
15897
15898 if ${sim_enable_arch_erc32}; then
15899 SIM_ENABLE_ARCH_erc32_TRUE=
15900 SIM_ENABLE_ARCH_erc32_FALSE='#'
15901 else
15902 SIM_ENABLE_ARCH_erc32_TRUE='#'
15903 SIM_ENABLE_ARCH_erc32_FALSE=
15904 fi
15905
15906
15907 sim_enable_arch_v850=false
15908 case "${targ}" in
15909 all|v850*-*-*)
15910 if test "${targ}" = "${target}"; then
15911 SIM_PRIMARY_TARGET=v850
15912 fi
15913 subdirs="$subdirs v850"
15914
15915
15916 ac_config_commands="$ac_config_commands depdir-v850"
15917
15918
15919 sim_enable_arch_v850=true
15920 sim_igen=yes
15921 ;;
15922 esac
15923
15924
15925
15926
15927 if test "$SIM_PRIMARY_TARGET" = "v850"; then :
15928 : "${AS_FOR_TARGET_V850:=\$(AS_FOR_TARGET)}"
15929 : "${LD_FOR_TARGET_V850:=\$(LD_FOR_TARGET)}"
15930 : "${CC_FOR_TARGET_V850:=\$(CC_FOR_TARGET)}"
15931
15932 fi
15933
15934 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_V850 LD_FOR_TARGET_V850 CC_FOR_TARGET_V850"
15935
15936 if ${sim_enable_arch_v850}; then
15937 SIM_ENABLE_ARCH_v850_TRUE=
15938 SIM_ENABLE_ARCH_v850_FALSE='#'
15939 else
15940 SIM_ENABLE_ARCH_v850_TRUE='#'
15941 SIM_ENABLE_ARCH_v850_FALSE=
15942 fi
15943
15944
15945 done
15946
15947 if test "x${enable_example_sims}" = xyes; then
15948
15949
15950
15951
15952 : "${AS_FOR_TARGET_EXAMPLE_SYNACOR:=\$(AS_FOR_TARGET)}"
15953 : "${LD_FOR_TARGET_EXAMPLE_SYNACOR:=\$(LD_FOR_TARGET)}"
15954 : "${CC_FOR_TARGET_EXAMPLE_SYNACOR:=\$(CC)}"
15955
15956 as_fn_append SIM_TOOLCHAIN_VARS " AS_FOR_TARGET_EXAMPLE_SYNACOR LD_FOR_TARGET_EXAMPLE_SYNACOR CC_FOR_TARGET_EXAMPLE_SYNACOR"
15957
15958 ac_config_files="$ac_config_files example-synacor/.gdbinit:common/gdbinit.in"
15959
15960 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
15961
15962 ac_config_commands="$ac_config_commands example-synacor/Makefile"
15963
15964 as_fn_append SIM_SUBDIRS " example-synacor"
15965
15966 ac_config_commands="$ac_config_commands depdir-example-synacor"
15967
15968
15969 fi
15970 fi
15971 if test "$sim_igen" = "yes"; then
15972 SIM_ENABLE_IGEN_TRUE=
15973 SIM_ENABLE_IGEN_FALSE='#'
15974 else
15975 SIM_ENABLE_IGEN_TRUE='#'
15976 SIM_ENABLE_IGEN_FALSE=
15977 fi
15978
15979 if test -n "$SIM_SUBDIRS"; then
15980 ENABLE_SIM_TRUE=
15981 ENABLE_SIM_FALSE='#'
15982 else
15983 ENABLE_SIM_TRUE='#'
15984 ENABLE_SIM_FALSE=
15985 fi
15986
15987
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
15989 $as_echo_n "checking whether to force sim alignment... " >&6; }
15990 sim_alignment=
15991 # Check whether --enable-sim-alignment was given.
15992 if test "${enable_sim_alignment+set}" = set; then :
15993 enableval=$enable_sim_alignment; case "${enableval}" in
15994 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
15995 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
15996 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
15997 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
15998 esac
15999 fi
16000
16001 cat >>confdefs.h <<_ACEOF
16002 #define WITH_ALIGNMENT ${sim_alignment:-0}
16003 _ACEOF
16004
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16006 $as_echo "${sim_alignment:-no}" >&6; }
16007
16008
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
16010 $as_echo_n "checking whether to enable sim asserts... " >&6; }
16011 sim_assert="1"
16012 # Check whether --enable-sim-assert was given.
16013 if test "${enable_sim_assert+set}" = set; then :
16014 enableval=$enable_sim_assert; case "${enableval}" in
16015 yes) sim_assert="1";;
16016 no) sim_assert="0";;
16017 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
16018 esac
16019 fi
16020
16021 cat >>confdefs.h <<_ACEOF
16022 #define WITH_ASSERT $sim_assert
16023 _ACEOF
16024
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
16026 $as_echo "$sim_assert" >&6; }
16027
16028
16029 cgen_maint=no
16030 cgen=guile
16031 cgendir='$(srcdir)/../../cgen'
16032 # Check whether --enable-cgen-maint was given.
16033 if test "${enable_cgen_maint+set}" = set; then :
16034 enableval=$enable_cgen_maint; case "${enableval}" in
16035 yes) cgen_maint=yes ;;
16036 no) cgen_maint=no ;;
16037 *)
16038 # Argument is a directory where cgen can be found. In some
16039 # future world cgen could be installable, but right now this
16040 # is not the case. Instead we assume the directory is a path
16041 # to the cgen source tree.
16042 cgen_maint=yes
16043 if test -r ${enableval}/iformat.scm; then
16044 # This looks like a cgen source tree.
16045 cgendir=${enableval}
16046 else
16047 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
16048 fi
16049 ;;
16050 esac
16051 fi
16052 if test x${cgen_maint} != xno ; then
16053 CGEN_MAINT=''
16054 else
16055 CGEN_MAINT='#'
16056 fi
16057
16058
16059
16060
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
16062 $as_echo_n "checking for sim debug setting... " >&6; }
16063 sim_debug="0"
16064 # Check whether --enable-sim-debug was given.
16065 if test "${enable_sim_debug+set}" = set; then :
16066 enableval=$enable_sim_debug; case "${enableval}" in
16067 yes) sim_debug="7";;
16068 no) sim_debug="0";;
16069 *) sim_debug="($enableval)";;
16070 esac
16071 fi
16072 if test "$sim_debug" != "0"; then
16073
16074 cat >>confdefs.h <<_ACEOF
16075 #define DEBUG $sim_debug
16076 _ACEOF
16077
16078 fi
16079
16080 cat >>confdefs.h <<_ACEOF
16081 #define WITH_DEBUG $sim_debug
16082 _ACEOF
16083
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
16085 $as_echo "$sim_debug" >&6; }
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
16088 $as_echo_n "checking whether to force sim endianness... " >&6; }
16089 sim_endian=
16090 # Check whether --enable-sim-endian was given.
16091 if test "${enable_sim_endian+set}" = set; then :
16092 enableval=$enable_sim_endian; case "${enableval}" in
16093 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
16094 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
16095 yes | no) ;;
16096 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
16097 esac
16098 fi
16099
16100 cat >>confdefs.h <<_ACEOF
16101 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
16102 _ACEOF
16103
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
16105 $as_echo "${sim_alignment:-no}" >&6; }
16106
16107
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
16109 $as_echo_n "checking default sim environment setting... " >&6; }
16110 sim_environment="ALL_ENVIRONMENT"
16111 # Check whether --enable-sim-environment was given.
16112 if test "${enable_sim_environment+set}" = set; then :
16113 enableval=$enable_sim_environment; case "${enableval}" in
16114 all | ALL) sim_environment="ALL_ENVIRONMENT";;
16115 user | USER) sim_environment="USER_ENVIRONMENT";;
16116 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
16117 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
16118 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
16119 esac
16120 fi
16121
16122 cat >>confdefs.h <<_ACEOF
16123 #define WITH_ENVIRONMENT $sim_environment
16124 _ACEOF
16125
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
16127 $as_echo "$sim_environment" >&6; }
16128
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
16130 $as_echo_n "checking for sim hardware settings... " >&6; }
16131 # Check whether --enable-sim-hardware was given.
16132 if test "${enable_sim_hardware+set}" = set; then :
16133 enableval=$enable_sim_hardware;
16134 else
16135 enable_sim_hardware="yes"
16136 fi
16137
16138 sim_hw_sockser=
16139 if test "$enable_sim_hardware" = no; then
16140 sim_hw_cflags="-DWITH_HW=0"
16141 elif test "$enable_sim_hardware" = yes; then
16142 sim_hw_cflags="-DWITH_HW=1"
16143 sim_hw_sockser="dv-sockser.o"
16144 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
16145 else
16146 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
16147 fi
16148 if test "$enable_sim_hardware" = "yes"; then
16149 SIM_ENABLE_HW_TRUE=
16150 SIM_ENABLE_HW_FALSE='#'
16151 else
16152 SIM_ENABLE_HW_TRUE='#'
16153 SIM_ENABLE_HW_FALSE=
16154 fi
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
16157 $as_echo "${enable_sim_hardware}" >&6; }
16158
16159
16160
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
16162 $as_echo_n "checking sim inline settings... " >&6; }
16163 sim_inline="-DDEFAULT_INLINE=0"
16164 # Check whether --enable-sim-inline was given.
16165 if test "${enable_sim_inline+set}" = set; then :
16166 enableval=$enable_sim_inline; sim_inline=""
16167 case "$enableval" in
16168 no) sim_inline="-DDEFAULT_INLINE=0";;
16169 0) sim_inline="-DDEFAULT_INLINE=0";;
16170 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
16171 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
16172 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16173 new_flag=""
16174 case "$x" in
16175 *_INLINE=*) new_flag="-D$x";;
16176 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
16177 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
16178 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
16179 esac
16180 if test x"$sim_inline" = x""; then
16181 sim_inline="$new_flag"
16182 else
16183 sim_inline="$sim_inline $new_flag"
16184 fi
16185 done;;
16186 esac
16187
16188 fi
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
16190 $as_echo "$sim_inline" >&6; }
16191 SIM_INLINE=$sim_inline
16192
16193
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
16195 $as_echo_n "checking for sim profile settings... " >&6; }
16196 profile="1"
16197 sim_profile="-1"
16198 # Check whether --enable-sim-profile was given.
16199 if test "${enable_sim_profile+set}" = set; then :
16200 enableval=$enable_sim_profile; case "${enableval}" in
16201 yes) profile="1" sim_profile="-1";;
16202 no) profile="0" sim_profile="0";;
16203 [-0-9]*)
16204 profile="(${enableval})" sim_profile="(${enableval})";;
16205 [a-z]*)
16206 profile="1"
16207 sim_profile=""
16208 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16209 if test x"$sim_profile" = x; then
16210 sim_profile="(PROFILE_$x"
16211 else
16212 sim_profile="${sim_profile}|PROFILE_$x"
16213 fi
16214 done
16215 sim_profile="$sim_profile)" ;;
16216 esac
16217 fi
16218
16219 cat >>confdefs.h <<_ACEOF
16220 #define PROFILE $profile
16221 _ACEOF
16222
16223
16224 cat >>confdefs.h <<_ACEOF
16225 #define WITH_PROFILE $sim_profile
16226 _ACEOF
16227
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
16229 $as_echo "$sim_profile" >&6; }
16230
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check reserved bits in instruction" >&5
16232 $as_echo_n "checking whether to check reserved bits in instruction... " >&6; }
16233 # Check whether --enable-sim-reserved-bits was given.
16234 if test "${enable_sim_reserved_bits+set}" = set; then :
16235 enableval=$enable_sim_reserved_bits; case "${enableval}" in
16236 yes|no) ;;
16237 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5;;
16238 esac
16239 fi
16240
16241 if test "x${enable_sim_reserved_bits}" != xno; then
16242 sim_reserved_bits=1
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244 $as_echo "yes" >&6; }
16245 else
16246 sim_reserved_bits=0
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16248 $as_echo "no" >&6; }
16249 fi
16250
16251 cat >>confdefs.h <<_ACEOF
16252 #define WITH_RESERVED_BITS $sim_reserved_bits
16253 _ACEOF
16254
16255
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim cache size" >&5
16257 $as_echo_n "checking for sim cache size... " >&6; }
16258 sim_scache="16384"
16259 # Check whether --enable-sim-scache was given.
16260 if test "${enable_sim_scache+set}" = set; then :
16261 enableval=$enable_sim_scache; case "${enableval}" in
16262 yes) ;;
16263 no) sim_scache="0";;
16264 [0-9]*) sim_scache="${enableval}";;
16265 *) as_fn_error $? "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;;
16266 esac
16267 fi
16268
16269
16270 cat >>confdefs.h <<_ACEOF
16271 #define WITH_SCACHE $sim_scache
16272 _ACEOF
16273
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_scache" >&5
16275 $as_echo "$sim_scache" >&6; }
16276
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
16278 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
16279 sim_stdio="0"
16280 # Check whether --enable-sim-stdio was given.
16281 if test "${enable_sim_stdio+set}" = set; then :
16282 enableval=$enable_sim_stdio; case "${enableval}" in
16283 yes) sim_stdio="DO_USE_STDIO";;
16284 no) sim_stdio="DONT_USE_STDIO";;
16285 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
16286 esac
16287 fi
16288
16289 cat >>confdefs.h <<_ACEOF
16290 #define WITH_STDIO $sim_stdio
16291 _ACEOF
16292
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
16294 $as_echo "$sim_stdio" >&6; }
16295
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
16297 $as_echo_n "checking for sim trace settings... " >&6; }
16298 sim_trace="~TRACE_debug"
16299 # Check whether --enable-sim-trace was given.
16300 if test "${enable_sim_trace+set}" = set; then :
16301 enableval=$enable_sim_trace; case "${enableval}" in
16302 yes) sim_trace="-1";;
16303 no) sim_trace="0";;
16304 [-0-9]*)
16305 sim_trace="'(${enableval})'";;
16306 [[:lower:]]*)
16307 sim_trace=""
16308 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
16309 if test x"$sim_trace" = x; then
16310 sim_trace="(TRACE_$x"
16311 else
16312 sim_trace="${sim_trace}|TRACE_$x"
16313 fi
16314 done
16315 sim_trace="$sim_trace)" ;;
16316 esac
16317 fi
16318
16319 cat >>confdefs.h <<_ACEOF
16320 #define WITH_TRACE $sim_trace
16321 _ACEOF
16322
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
16324 $as_echo "$sim_trace" >&6; }
16325
16326
16327 # Check whether --enable-werror was given.
16328 if test "${enable_werror+set}" = set; then :
16329 enableval=$enable_werror; case "${enableval}" in
16330 yes | y) ERROR_ON_WARNING="yes" ;;
16331 no | n) ERROR_ON_WARNING="no" ;;
16332 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16333 esac
16334 fi
16335
16336
16337 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16338 ERROR_ON_WARNING=yes
16339 fi
16340
16341 WERROR_CFLAGS=""
16342 if test "${ERROR_ON_WARNING}" = yes ; then
16343 WERROR_CFLAGS="-Werror"
16344 fi
16345
16346 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith
16347 -Wno-unused -Wunused-value -Wunused-function
16348 -Wno-switch -Wno-char-subscripts
16349 -Wempty-body -Wunused-but-set-parameter
16350 -Wno-error=maybe-uninitialized
16351 -Wmissing-declarations
16352 -Wmissing-prototypes
16353 -Wdeclaration-after-statement -Wmissing-parameter-type
16354 -Wpointer-sign
16355 -Wold-style-declaration -Wold-style-definition
16356 "
16357
16358 # Enable -Wno-format by default when using gcc on mingw since many
16359 # GCC versions complain about %I64.
16360 case "${host}" in
16361 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
16362 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
16363 esac
16364
16365 # Check whether --enable-build-warnings was given.
16366 if test "${enable_build_warnings+set}" = set; then :
16367 enableval=$enable_build_warnings; case "${enableval}" in
16368 yes) ;;
16369 no) build_warnings="-w";;
16370 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16371 build_warnings="${build_warnings} ${t}";;
16372 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16373 build_warnings="${t} ${build_warnings}";;
16374 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16375 esac
16376 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16377 echo "Setting compiler warning flags = $build_warnings" 6>&1
16378 fi
16379 fi
16380 # Check whether --enable-sim-build-warnings was given.
16381 if test "${enable_sim_build_warnings+set}" = set; then :
16382 enableval=$enable_sim_build_warnings; case "${enableval}" in
16383 yes) ;;
16384 no) build_warnings="-w";;
16385 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16386 build_warnings="${build_warnings} ${t}";;
16387 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
16388 build_warnings="${t} ${build_warnings}";;
16389 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16390 esac
16391 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
16392 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16393 fi
16394 fi
16395 WARN_CFLAGS=""
16396 if test "x${build_warnings}" != x -a "x$GCC" = xyes
16397 then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16399 $as_echo_n "checking compiler warning flags... " >&6; }
16400 # Separate out the -Werror flag as some files just cannot be
16401 # compiled with it enabled.
16402 for w in ${build_warnings}; do
16403 case $w in
16404 -Werr*) WERROR_CFLAGS=-Werror ;;
16405 *) # Check that GCC accepts it
16406 saved_CFLAGS="$CFLAGS"
16407 CFLAGS="$CFLAGS -Werror $w"
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16410
16411 int
16412 main ()
16413 {
16414
16415 ;
16416 return 0;
16417 }
16418 _ACEOF
16419 if ac_fn_c_try_compile "$LINENO"; then :
16420 WARN_CFLAGS="${WARN_CFLAGS} $w"
16421 fi
16422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423 CFLAGS="$saved_CFLAGS"
16424 esac
16425 done
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16427 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16428 fi
16429
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16432 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16433 if ${sim_cv_decl_getopt_unistd_h+:} false; then :
16434 $as_echo_n "(cached) " >&6
16435 else
16436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16438 #include <unistd.h>
16439 int
16440 main ()
16441 {
16442 extern int getopt (int, char *const*, const char *);
16443 ;
16444 return 0;
16445 }
16446 _ACEOF
16447 if ac_fn_c_try_compile "$LINENO"; then :
16448 sim_cv_decl_getopt_unistd_h=yes
16449 else
16450 sim_cv_decl_getopt_unistd_h=no
16451 fi
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 fi
16454
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
16456 $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
16457 if test $sim_cv_decl_getopt_unistd_h = yes; then
16458
16459 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16460
16461 fi
16462
16463
16464
16465
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim frv should dump cpu state on unknown traps" >&5
16467 $as_echo_n "checking whether sim frv should dump cpu state on unknown traps... " >&6; }
16468 # Check whether --enable-sim-frv-trapdump was given.
16469 if test "${enable_sim_frv_trapdump+set}" = set; then :
16470 enableval=$enable_sim_frv_trapdump; case "${enableval}" in
16471 yes|no) ;;
16472 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-trapdump\"" "$LINENO" 5;;
16473 esac
16474 fi
16475
16476 if test "x${enable_sim_frv_trapdump}" = xyes; then
16477 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=1"
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16479 $as_echo "yes" >&6; }
16480 else
16481 SIM_FRV_TRAPDUMP_FLAGS="-DTRAPDUMP=0"
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483 $as_echo "no" >&6; }
16484 fi
16485
16486
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
16488 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
16489 # Check whether --enable-sim-rx-cycle-accurate was given.
16490 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
16491 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
16492 yes | no) ;;
16493 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
16494 esac
16495 fi
16496
16497 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
16498 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16500 $as_echo "yes" >&6; }
16501 else
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16503 $as_echo "no" >&6; }
16504 fi
16505
16506
16507
16508 ac_config_files="$ac_config_files arch-subdir.mk Makefile .gdbinit:gdbinit.in"
16509
16510 cat >confcache <<\_ACEOF
16511 # This file is a shell script that caches the results of configure
16512 # tests run on this system so they can be shared between configure
16513 # scripts and configure runs, see configure's option --config-cache.
16514 # It is not useful on other systems. If it contains results you don't
16515 # want to keep, you may remove or edit it.
16516 #
16517 # config.status only pays attention to the cache file if you give it
16518 # the --recheck option to rerun configure.
16519 #
16520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16522 # following values.
16523
16524 _ACEOF
16525
16526 # The following way of writing the cache mishandles newlines in values,
16527 # but we know of no workaround that is simple, portable, and efficient.
16528 # So, we kill variables containing newlines.
16529 # Ultrix sh set writes to stderr and can't be redirected directly,
16530 # and sets the high bit in the cache file unless we assign to the vars.
16531 (
16532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16533 eval ac_val=\$$ac_var
16534 case $ac_val in #(
16535 *${as_nl}*)
16536 case $ac_var in #(
16537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16539 esac
16540 case $ac_var in #(
16541 _ | IFS | as_nl) ;; #(
16542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16543 *) { eval $ac_var=; unset $ac_var;} ;;
16544 esac ;;
16545 esac
16546 done
16547
16548 (set) 2>&1 |
16549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16550 *${as_nl}ac_space=\ *)
16551 # `set' does not quote correctly, so add quotes: double-quote
16552 # substitution turns \\\\ into \\, and sed turns \\ into \.
16553 sed -n \
16554 "s/'/'\\\\''/g;
16555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16556 ;; #(
16557 *)
16558 # `set' quotes correctly as required by POSIX, so do not add quotes.
16559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16560 ;;
16561 esac |
16562 sort
16563 ) |
16564 sed '
16565 /^ac_cv_env_/b end
16566 t clear
16567 :clear
16568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16569 t end
16570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16571 :end' >>confcache
16572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16573 if test -w "$cache_file"; then
16574 if test "x$cache_file" != "x/dev/null"; then
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16576 $as_echo "$as_me: updating cache $cache_file" >&6;}
16577 if test ! -f "$cache_file" || test -h "$cache_file"; then
16578 cat confcache >"$cache_file"
16579 else
16580 case $cache_file in #(
16581 */* | ?:*)
16582 mv -f confcache "$cache_file"$$ &&
16583 mv -f "$cache_file"$$ "$cache_file" ;; #(
16584 *)
16585 mv -f confcache "$cache_file" ;;
16586 esac
16587 fi
16588 fi
16589 else
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16591 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16592 fi
16593 fi
16594 rm -f confcache
16595
16596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16597 # Let make expand exec_prefix.
16598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16599
16600 DEFS=-DHAVE_CONFIG_H
16601
16602 ac_libobjs=
16603 ac_ltlibobjs=
16604 U=
16605 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16606 # 1. Remove the extension, and $U if already installed.
16607 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16608 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16609 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16610 # will be set to the directory where LIBOBJS objects are built.
16611 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16612 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16613 done
16614 LIBOBJS=$ac_libobjs
16615
16616 LTLIBOBJS=$ac_ltlibobjs
16617
16618
16619
16620 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16621 as_fn_error $? "conditional \"PLUGINS\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16623 fi
16624 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16625 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16627 fi
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16629 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16630 if test -n "$am_sleep_pid"; then
16631 # Hide warnings about reused PIDs.
16632 wait $am_sleep_pid 2>/dev/null
16633 fi
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16635 $as_echo "done" >&6; }
16636 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16637 as_fn_error $? "conditional \"AMDEP\" was never defined.
16638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639 fi
16640 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16641 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16643 fi
16644 if test -n "$EXEEXT"; then
16645 am__EXEEXT_TRUE=
16646 am__EXEEXT_FALSE='#'
16647 else
16648 am__EXEEXT_TRUE='#'
16649 am__EXEEXT_FALSE=
16650 fi
16651
16652 if test -z "${SIM_ENABLE_ARCH_aarch64_TRUE}" && test -z "${SIM_ENABLE_ARCH_aarch64_FALSE}"; then
16653 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_aarch64\" was never defined.
16654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655 fi
16656 if test -z "${SIM_ENABLE_ARCH_arm_TRUE}" && test -z "${SIM_ENABLE_ARCH_arm_FALSE}"; then
16657 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_arm\" was never defined.
16658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16659 fi
16660 if test -z "${SIM_ENABLE_ARCH_avr_TRUE}" && test -z "${SIM_ENABLE_ARCH_avr_FALSE}"; then
16661 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_avr\" was never defined.
16662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16663 fi
16664 if test -z "${SIM_ENABLE_ARCH_bfin_TRUE}" && test -z "${SIM_ENABLE_ARCH_bfin_FALSE}"; then
16665 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bfin\" was never defined.
16666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16667 fi
16668 if test -z "${SIM_ENABLE_ARCH_bpf_TRUE}" && test -z "${SIM_ENABLE_ARCH_bpf_FALSE}"; then
16669 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_bpf\" was never defined.
16670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16671 fi
16672 if test -z "${SIM_ENABLE_ARCH_cr16_TRUE}" && test -z "${SIM_ENABLE_ARCH_cr16_FALSE}"; then
16673 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cr16\" was never defined.
16674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16675 fi
16676 if test -z "${SIM_ENABLE_ARCH_cris_TRUE}" && test -z "${SIM_ENABLE_ARCH_cris_FALSE}"; then
16677 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_cris\" was never defined.
16678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16679 fi
16680 if test -z "${SIM_ENABLE_ARCH_d10v_TRUE}" && test -z "${SIM_ENABLE_ARCH_d10v_FALSE}"; then
16681 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_d10v\" was never defined.
16682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16683 fi
16684 if test -z "${SIM_ENABLE_ARCH_frv_TRUE}" && test -z "${SIM_ENABLE_ARCH_frv_FALSE}"; then
16685 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_frv\" was never defined.
16686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16687 fi
16688 if test -z "${SIM_ENABLE_ARCH_ft32_TRUE}" && test -z "${SIM_ENABLE_ARCH_ft32_FALSE}"; then
16689 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ft32\" was never defined.
16690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16691 fi
16692 if test -z "${SIM_ENABLE_ARCH_h8300_TRUE}" && test -z "${SIM_ENABLE_ARCH_h8300_FALSE}"; then
16693 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_h8300\" was never defined.
16694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16695 fi
16696 if test -z "${SIM_ENABLE_ARCH_iq2000_TRUE}" && test -z "${SIM_ENABLE_ARCH_iq2000_FALSE}"; then
16697 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_iq2000\" was never defined.
16698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16699 fi
16700 if test -z "${SIM_ENABLE_ARCH_lm32_TRUE}" && test -z "${SIM_ENABLE_ARCH_lm32_FALSE}"; then
16701 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_lm32\" was never defined.
16702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16703 fi
16704 if test -z "${SIM_ENABLE_ARCH_m32c_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32c_FALSE}"; then
16705 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32c\" was never defined.
16706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16707 fi
16708 if test -z "${SIM_ENABLE_ARCH_m32r_TRUE}" && test -z "${SIM_ENABLE_ARCH_m32r_FALSE}"; then
16709 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m32r\" was never defined.
16710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16711 fi
16712 if test -z "${SIM_ENABLE_ARCH_m68hc11_TRUE}" && test -z "${SIM_ENABLE_ARCH_m68hc11_FALSE}"; then
16713 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_m68hc11\" was never defined.
16714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16715 fi
16716 if test -z "${SIM_ENABLE_ARCH_mcore_TRUE}" && test -z "${SIM_ENABLE_ARCH_mcore_FALSE}"; then
16717 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mcore\" was never defined.
16718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16719 fi
16720 if test -z "${SIM_ENABLE_ARCH_microblaze_TRUE}" && test -z "${SIM_ENABLE_ARCH_microblaze_FALSE}"; then
16721 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_microblaze\" was never defined.
16722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16723 fi
16724 if test -z "${SIM_ENABLE_ARCH_mips_TRUE}" && test -z "${SIM_ENABLE_ARCH_mips_FALSE}"; then
16725 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mips\" was never defined.
16726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16727 fi
16728 if test -z "${SIM_ENABLE_ARCH_mn10300_TRUE}" && test -z "${SIM_ENABLE_ARCH_mn10300_FALSE}"; then
16729 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_mn10300\" was never defined.
16730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16731 fi
16732 if test -z "${SIM_ENABLE_ARCH_moxie_TRUE}" && test -z "${SIM_ENABLE_ARCH_moxie_FALSE}"; then
16733 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_moxie\" was never defined.
16734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16735 fi
16736 if test -z "${SIM_ENABLE_ARCH_msp430_TRUE}" && test -z "${SIM_ENABLE_ARCH_msp430_FALSE}"; then
16737 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_msp430\" was never defined.
16738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16739 fi
16740 if test -z "${SIM_ENABLE_ARCH_or1k_TRUE}" && test -z "${SIM_ENABLE_ARCH_or1k_FALSE}"; then
16741 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_or1k\" was never defined.
16742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16743 fi
16744 if test -z "${SIM_ENABLE_ARCH_ppc_TRUE}" && test -z "${SIM_ENABLE_ARCH_ppc_FALSE}"; then
16745 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_ppc\" was never defined.
16746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16747 fi
16748 if test -z "${SIM_ENABLE_ARCH_pru_TRUE}" && test -z "${SIM_ENABLE_ARCH_pru_FALSE}"; then
16749 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_pru\" was never defined.
16750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16751 fi
16752 if test -z "${SIM_ENABLE_ARCH_riscv_TRUE}" && test -z "${SIM_ENABLE_ARCH_riscv_FALSE}"; then
16753 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_riscv\" was never defined.
16754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16755 fi
16756 if test -z "${SIM_ENABLE_ARCH_rl78_TRUE}" && test -z "${SIM_ENABLE_ARCH_rl78_FALSE}"; then
16757 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rl78\" was never defined.
16758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16759 fi
16760 if test -z "${SIM_ENABLE_ARCH_rx_TRUE}" && test -z "${SIM_ENABLE_ARCH_rx_FALSE}"; then
16761 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_rx\" was never defined.
16762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16763 fi
16764 if test -z "${SIM_ENABLE_ARCH_sh_TRUE}" && test -z "${SIM_ENABLE_ARCH_sh_FALSE}"; then
16765 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_sh\" was never defined.
16766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16767 fi
16768 if test -z "${SIM_ENABLE_ARCH_erc32_TRUE}" && test -z "${SIM_ENABLE_ARCH_erc32_FALSE}"; then
16769 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_erc32\" was never defined.
16770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16771 fi
16772 if test -z "${SIM_ENABLE_ARCH_v850_TRUE}" && test -z "${SIM_ENABLE_ARCH_v850_FALSE}"; then
16773 as_fn_error $? "conditional \"SIM_ENABLE_ARCH_v850\" was never defined.
16774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16775 fi
16776 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
16777 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
16778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16779 fi
16780 if test -z "${ENABLE_SIM_TRUE}" && test -z "${ENABLE_SIM_FALSE}"; then
16781 as_fn_error $? "conditional \"ENABLE_SIM\" was never defined.
16782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16783 fi
16784 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
16785 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
16786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16787 fi
16788
16789 : "${CONFIG_STATUS=./config.status}"
16790 ac_write_fail=0
16791 ac_clean_files_save=$ac_clean_files
16792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16795 as_write_fail=0
16796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16797 #! $SHELL
16798 # Generated by $as_me.
16799 # Run this file to recreate the current configuration.
16800 # Compiler output produced by configure, useful for debugging
16801 # configure, is in config.log if it exists.
16802
16803 debug=false
16804 ac_cs_recheck=false
16805 ac_cs_silent=false
16806
16807 SHELL=\${CONFIG_SHELL-$SHELL}
16808 export SHELL
16809 _ASEOF
16810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16811 ## -------------------- ##
16812 ## M4sh Initialization. ##
16813 ## -------------------- ##
16814
16815 # Be more Bourne compatible
16816 DUALCASE=1; export DUALCASE # for MKS sh
16817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16818 emulate sh
16819 NULLCMD=:
16820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16821 # is contrary to our usage. Disable this feature.
16822 alias -g '${1+"$@"}'='"$@"'
16823 setopt NO_GLOB_SUBST
16824 else
16825 case `(set -o) 2>/dev/null` in #(
16826 *posix*) :
16827 set -o posix ;; #(
16828 *) :
16829 ;;
16830 esac
16831 fi
16832
16833
16834 as_nl='
16835 '
16836 export as_nl
16837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16841 # Prefer a ksh shell builtin over an external printf program on Solaris,
16842 # but without wasting forks for bash or zsh.
16843 if test -z "$BASH_VERSION$ZSH_VERSION" \
16844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16845 as_echo='print -r --'
16846 as_echo_n='print -rn --'
16847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16848 as_echo='printf %s\n'
16849 as_echo_n='printf %s'
16850 else
16851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16853 as_echo_n='/usr/ucb/echo -n'
16854 else
16855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16856 as_echo_n_body='eval
16857 arg=$1;
16858 case $arg in #(
16859 *"$as_nl"*)
16860 expr "X$arg" : "X\\(.*\\)$as_nl";
16861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16862 esac;
16863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16864 '
16865 export as_echo_n_body
16866 as_echo_n='sh -c $as_echo_n_body as_echo'
16867 fi
16868 export as_echo_body
16869 as_echo='sh -c $as_echo_body as_echo'
16870 fi
16871
16872 # The user is always right.
16873 if test "${PATH_SEPARATOR+set}" != set; then
16874 PATH_SEPARATOR=:
16875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16877 PATH_SEPARATOR=';'
16878 }
16879 fi
16880
16881
16882 # IFS
16883 # We need space, tab and new line, in precisely that order. Quoting is
16884 # there to prevent editors from complaining about space-tab.
16885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16886 # splitting by setting IFS to empty value.)
16887 IFS=" "" $as_nl"
16888
16889 # Find who we are. Look in the path if we contain no directory separator.
16890 as_myself=
16891 case $0 in #((
16892 *[\\/]* ) as_myself=$0 ;;
16893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16894 for as_dir in $PATH
16895 do
16896 IFS=$as_save_IFS
16897 test -z "$as_dir" && as_dir=.
16898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16899 done
16900 IFS=$as_save_IFS
16901
16902 ;;
16903 esac
16904 # We did not find ourselves, most probably we were run as `sh COMMAND'
16905 # in which case we are not to be found in the path.
16906 if test "x$as_myself" = x; then
16907 as_myself=$0
16908 fi
16909 if test ! -f "$as_myself"; then
16910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16911 exit 1
16912 fi
16913
16914 # Unset variables that we do not need and which cause bugs (e.g. in
16915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16916 # suppresses any "Segmentation fault" message there. '((' could
16917 # trigger a bug in pdksh 5.2.14.
16918 for as_var in BASH_ENV ENV MAIL MAILPATH
16919 do eval test x\${$as_var+set} = xset \
16920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16921 done
16922 PS1='$ '
16923 PS2='> '
16924 PS4='+ '
16925
16926 # NLS nuisances.
16927 LC_ALL=C
16928 export LC_ALL
16929 LANGUAGE=C
16930 export LANGUAGE
16931
16932 # CDPATH.
16933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16934
16935
16936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16937 # ----------------------------------------
16938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16940 # script with STATUS, using 1 if that was 0.
16941 as_fn_error ()
16942 {
16943 as_status=$1; test $as_status -eq 0 && as_status=1
16944 if test "$4"; then
16945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16947 fi
16948 $as_echo "$as_me: error: $2" >&2
16949 as_fn_exit $as_status
16950 } # as_fn_error
16951
16952
16953 # as_fn_set_status STATUS
16954 # -----------------------
16955 # Set $? to STATUS, without forking.
16956 as_fn_set_status ()
16957 {
16958 return $1
16959 } # as_fn_set_status
16960
16961 # as_fn_exit STATUS
16962 # -----------------
16963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16964 as_fn_exit ()
16965 {
16966 set +e
16967 as_fn_set_status $1
16968 exit $1
16969 } # as_fn_exit
16970
16971 # as_fn_unset VAR
16972 # ---------------
16973 # Portably unset VAR.
16974 as_fn_unset ()
16975 {
16976 { eval $1=; unset $1;}
16977 }
16978 as_unset=as_fn_unset
16979 # as_fn_append VAR VALUE
16980 # ----------------------
16981 # Append the text in VALUE to the end of the definition contained in VAR. Take
16982 # advantage of any shell optimizations that allow amortized linear growth over
16983 # repeated appends, instead of the typical quadratic growth present in naive
16984 # implementations.
16985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16986 eval 'as_fn_append ()
16987 {
16988 eval $1+=\$2
16989 }'
16990 else
16991 as_fn_append ()
16992 {
16993 eval $1=\$$1\$2
16994 }
16995 fi # as_fn_append
16996
16997 # as_fn_arith ARG...
16998 # ------------------
16999 # Perform arithmetic evaluation on the ARGs, and store the result in the
17000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17001 # must be portable across $(()) and expr.
17002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17003 eval 'as_fn_arith ()
17004 {
17005 as_val=$(( $* ))
17006 }'
17007 else
17008 as_fn_arith ()
17009 {
17010 as_val=`expr "$@" || test $? -eq 1`
17011 }
17012 fi # as_fn_arith
17013
17014
17015 if expr a : '\(a\)' >/dev/null 2>&1 &&
17016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17017 as_expr=expr
17018 else
17019 as_expr=false
17020 fi
17021
17022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17023 as_basename=basename
17024 else
17025 as_basename=false
17026 fi
17027
17028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17029 as_dirname=dirname
17030 else
17031 as_dirname=false
17032 fi
17033
17034 as_me=`$as_basename -- "$0" ||
17035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17036 X"$0" : 'X\(//\)$' \| \
17037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17038 $as_echo X/"$0" |
17039 sed '/^.*\/\([^/][^/]*\)\/*$/{
17040 s//\1/
17041 q
17042 }
17043 /^X\/\(\/\/\)$/{
17044 s//\1/
17045 q
17046 }
17047 /^X\/\(\/\).*/{
17048 s//\1/
17049 q
17050 }
17051 s/.*/./; q'`
17052
17053 # Avoid depending upon Character Ranges.
17054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17057 as_cr_digits='0123456789'
17058 as_cr_alnum=$as_cr_Letters$as_cr_digits
17059
17060 ECHO_C= ECHO_N= ECHO_T=
17061 case `echo -n x` in #(((((
17062 -n*)
17063 case `echo 'xy\c'` in
17064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17065 xy) ECHO_C='\c';;
17066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17067 ECHO_T=' ';;
17068 esac;;
17069 *)
17070 ECHO_N='-n';;
17071 esac
17072
17073 rm -f conf$$ conf$$.exe conf$$.file
17074 if test -d conf$$.dir; then
17075 rm -f conf$$.dir/conf$$.file
17076 else
17077 rm -f conf$$.dir
17078 mkdir conf$$.dir 2>/dev/null
17079 fi
17080 if (echo >conf$$.file) 2>/dev/null; then
17081 if ln -s conf$$.file conf$$ 2>/dev/null; then
17082 as_ln_s='ln -s'
17083 # ... but there are two gotchas:
17084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17086 # In both cases, we have to default to `cp -pR'.
17087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17088 as_ln_s='cp -pR'
17089 elif ln conf$$.file conf$$ 2>/dev/null; then
17090 as_ln_s=ln
17091 else
17092 as_ln_s='cp -pR'
17093 fi
17094 else
17095 as_ln_s='cp -pR'
17096 fi
17097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17098 rmdir conf$$.dir 2>/dev/null
17099
17100
17101 # as_fn_mkdir_p
17102 # -------------
17103 # Create "$as_dir" as a directory, including parents if necessary.
17104 as_fn_mkdir_p ()
17105 {
17106
17107 case $as_dir in #(
17108 -*) as_dir=./$as_dir;;
17109 esac
17110 test -d "$as_dir" || eval $as_mkdir_p || {
17111 as_dirs=
17112 while :; do
17113 case $as_dir in #(
17114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17115 *) as_qdir=$as_dir;;
17116 esac
17117 as_dirs="'$as_qdir' $as_dirs"
17118 as_dir=`$as_dirname -- "$as_dir" ||
17119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17120 X"$as_dir" : 'X\(//\)[^/]' \| \
17121 X"$as_dir" : 'X\(//\)$' \| \
17122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17123 $as_echo X"$as_dir" |
17124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17125 s//\1/
17126 q
17127 }
17128 /^X\(\/\/\)[^/].*/{
17129 s//\1/
17130 q
17131 }
17132 /^X\(\/\/\)$/{
17133 s//\1/
17134 q
17135 }
17136 /^X\(\/\).*/{
17137 s//\1/
17138 q
17139 }
17140 s/.*/./; q'`
17141 test -d "$as_dir" && break
17142 done
17143 test -z "$as_dirs" || eval "mkdir $as_dirs"
17144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17145
17146
17147 } # as_fn_mkdir_p
17148 if mkdir -p . 2>/dev/null; then
17149 as_mkdir_p='mkdir -p "$as_dir"'
17150 else
17151 test -d ./-p && rmdir ./-p
17152 as_mkdir_p=false
17153 fi
17154
17155
17156 # as_fn_executable_p FILE
17157 # -----------------------
17158 # Test if FILE is an executable regular file.
17159 as_fn_executable_p ()
17160 {
17161 test -f "$1" && test -x "$1"
17162 } # as_fn_executable_p
17163 as_test_x='test -x'
17164 as_executable_p=as_fn_executable_p
17165
17166 # Sed expression to map a string onto a valid CPP name.
17167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17168
17169 # Sed expression to map a string onto a valid variable name.
17170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17171
17172
17173 exec 6>&1
17174 ## ----------------------------------- ##
17175 ## Main body of $CONFIG_STATUS script. ##
17176 ## ----------------------------------- ##
17177 _ASEOF
17178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17179
17180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17181 # Save the log message, to keep $0 and so on meaningful, and to
17182 # report actual input values of CONFIG_FILES etc. instead of their
17183 # values after options handling.
17184 ac_log="
17185 This file was extended by sim $as_me 0, which was
17186 generated by GNU Autoconf 2.69. Invocation command line was
17187
17188 CONFIG_FILES = $CONFIG_FILES
17189 CONFIG_HEADERS = $CONFIG_HEADERS
17190 CONFIG_LINKS = $CONFIG_LINKS
17191 CONFIG_COMMANDS = $CONFIG_COMMANDS
17192 $ $0 $@
17193
17194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17195 "
17196
17197 _ACEOF
17198
17199 case $ac_config_files in *"
17200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17201 esac
17202
17203 case $ac_config_headers in *"
17204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17205 esac
17206
17207
17208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17209 # Files that config.status was made for.
17210 config_files="$ac_config_files"
17211 config_headers="$ac_config_headers"
17212 config_commands="$ac_config_commands"
17213
17214 _ACEOF
17215
17216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17217 ac_cs_usage="\
17218 \`$as_me' instantiates files and other configuration actions
17219 from templates according to the current configuration. Unless the files
17220 and actions are specified as TAGs, all are instantiated by default.
17221
17222 Usage: $0 [OPTION]... [TAG]...
17223
17224 -h, --help print this help, then exit
17225 -V, --version print version number and configuration settings, then exit
17226 --config print configuration, then exit
17227 -q, --quiet, --silent
17228 do not print progress messages
17229 -d, --debug don't remove temporary files
17230 --recheck update $as_me by reconfiguring in the same conditions
17231 --file=FILE[:TEMPLATE]
17232 instantiate the configuration file FILE
17233 --header=FILE[:TEMPLATE]
17234 instantiate the configuration header FILE
17235
17236 Configuration files:
17237 $config_files
17238
17239 Configuration headers:
17240 $config_headers
17241
17242 Configuration commands:
17243 $config_commands
17244
17245 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
17246 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
17247
17248 _ACEOF
17249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17250 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17251 ac_cs_version="\\
17252 sim config.status 0
17253 configured by $0, generated by GNU Autoconf 2.69,
17254 with options \\"\$ac_cs_config\\"
17255
17256 Copyright (C) 2012 Free Software Foundation, Inc.
17257 This config.status script is free software; the Free Software Foundation
17258 gives unlimited permission to copy, distribute and modify it."
17259
17260 ac_pwd='$ac_pwd'
17261 srcdir='$srcdir'
17262 INSTALL='$INSTALL'
17263 MKDIR_P='$MKDIR_P'
17264 AWK='$AWK'
17265 test -n "\$AWK" || AWK=awk
17266 _ACEOF
17267
17268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269 # The default lists apply if the user does not specify any file.
17270 ac_need_defaults=:
17271 while test $# != 0
17272 do
17273 case $1 in
17274 --*=?*)
17275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17277 ac_shift=:
17278 ;;
17279 --*=)
17280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17281 ac_optarg=
17282 ac_shift=:
17283 ;;
17284 *)
17285 ac_option=$1
17286 ac_optarg=$2
17287 ac_shift=shift
17288 ;;
17289 esac
17290
17291 case $ac_option in
17292 # Handling of the options.
17293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17294 ac_cs_recheck=: ;;
17295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17296 $as_echo "$ac_cs_version"; exit ;;
17297 --config | --confi | --conf | --con | --co | --c )
17298 $as_echo "$ac_cs_config"; exit ;;
17299 --debug | --debu | --deb | --de | --d | -d )
17300 debug=: ;;
17301 --file | --fil | --fi | --f )
17302 $ac_shift
17303 case $ac_optarg in
17304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17305 '') as_fn_error $? "missing file argument" ;;
17306 esac
17307 as_fn_append CONFIG_FILES " '$ac_optarg'"
17308 ac_need_defaults=false;;
17309 --header | --heade | --head | --hea )
17310 $ac_shift
17311 case $ac_optarg in
17312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17313 esac
17314 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17315 ac_need_defaults=false;;
17316 --he | --h)
17317 # Conflict between --help and --header
17318 as_fn_error $? "ambiguous option: \`$1'
17319 Try \`$0 --help' for more information.";;
17320 --help | --hel | -h )
17321 $as_echo "$ac_cs_usage"; exit ;;
17322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17324 ac_cs_silent=: ;;
17325
17326 # This is an error.
17327 -*) as_fn_error $? "unrecognized option: \`$1'
17328 Try \`$0 --help' for more information." ;;
17329
17330 *) as_fn_append ac_config_targets " $1"
17331 ac_need_defaults=false ;;
17332
17333 esac
17334 shift
17335 done
17336
17337 ac_configure_extra_args=
17338
17339 if $ac_cs_silent; then
17340 exec 6>/dev/null
17341 ac_configure_extra_args="$ac_configure_extra_args --silent"
17342 fi
17343
17344 _ACEOF
17345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17346 if \$ac_cs_recheck; then
17347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17348 shift
17349 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17350 CONFIG_SHELL='$SHELL'
17351 export CONFIG_SHELL
17352 exec "\$@"
17353 fi
17354
17355 _ACEOF
17356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17357 exec 5>>config.log
17358 {
17359 echo
17360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17361 ## Running $as_me. ##
17362 _ASBOX
17363 $as_echo "$ac_log"
17364 } >&5
17365
17366 _ACEOF
17367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17368 #
17369 # INIT-COMMANDS
17370 #
17371
17372
17373 # The HP-UX ksh and POSIX shell print the target directory to stdout
17374 # if CDPATH is set.
17375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17376
17377 sed_quote_subst='$sed_quote_subst'
17378 double_quote_subst='$double_quote_subst'
17379 delay_variable_subst='$delay_variable_subst'
17380 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17381 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17382 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17383 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17384 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17385 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17386 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17387 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17388 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17389 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17390 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17391 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17392 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17393 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17394 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17395 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17396 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17397 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17398 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17399 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17400 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17401 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17402 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17403 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17404 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17405 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17406 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17407 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17408 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17409 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17410 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17411 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17412 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17413 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17414 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17415 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17416 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17417 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17418 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17419 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17420 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17421 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17422 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17423 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17424 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17425 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17426 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17427 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17428 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"`'
17429 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17430 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17431 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17432 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17433 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17434 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17435 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17436 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17437 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17438 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17439 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17440 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17441 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17442 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17443 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17444 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17445 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17446 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17447 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17448 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17449 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17450 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17451 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17452 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17453 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17454 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17455 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17456 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17457 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17458 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17459 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17460 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17461 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17462 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17463 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17464 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17465 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17466 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17467 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17468 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17469 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17470 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17471 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17472 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17473 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17474 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17475 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17476 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17477 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17478 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17479 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17480 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17481 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17482 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17483 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17484 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17485 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17486 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17487 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17488 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17489 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17490 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17491 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17492 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17493 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17494 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17495 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17496 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17497 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17498 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17499 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17500
17501 LTCC='$LTCC'
17502 LTCFLAGS='$LTCFLAGS'
17503 compiler='$compiler_DEFAULT'
17504
17505 # A function that is used when there is no print builtin or printf.
17506 func_fallback_echo ()
17507 {
17508 eval 'cat <<_LTECHO_EOF
17509 \$1
17510 _LTECHO_EOF'
17511 }
17512
17513 # Quote evaled strings.
17514 for var in SHELL \
17515 ECHO \
17516 SED \
17517 GREP \
17518 EGREP \
17519 FGREP \
17520 LD \
17521 NM \
17522 LN_S \
17523 lt_SP2NL \
17524 lt_NL2SP \
17525 reload_flag \
17526 OBJDUMP \
17527 deplibs_check_method \
17528 file_magic_cmd \
17529 AR \
17530 AR_FLAGS \
17531 STRIP \
17532 RANLIB \
17533 CC \
17534 CFLAGS \
17535 compiler \
17536 lt_cv_sys_global_symbol_pipe \
17537 lt_cv_sys_global_symbol_to_cdecl \
17538 lt_cv_sys_global_symbol_to_c_name_address \
17539 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17540 lt_prog_compiler_no_builtin_flag \
17541 lt_prog_compiler_wl \
17542 lt_prog_compiler_pic \
17543 lt_prog_compiler_static \
17544 lt_cv_prog_compiler_c_o \
17545 need_locks \
17546 DSYMUTIL \
17547 NMEDIT \
17548 LIPO \
17549 OTOOL \
17550 OTOOL64 \
17551 shrext_cmds \
17552 export_dynamic_flag_spec \
17553 whole_archive_flag_spec \
17554 compiler_needs_object \
17555 with_gnu_ld \
17556 allow_undefined_flag \
17557 no_undefined_flag \
17558 hardcode_libdir_flag_spec \
17559 hardcode_libdir_flag_spec_ld \
17560 hardcode_libdir_separator \
17561 fix_srcfile_path \
17562 exclude_expsyms \
17563 include_expsyms \
17564 file_list_spec \
17565 variables_saved_for_relink \
17566 libname_spec \
17567 library_names_spec \
17568 soname_spec \
17569 install_override_mode \
17570 finish_eval \
17571 old_striplib \
17572 striplib; do
17573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17574 *[\\\\\\\`\\"\\\$]*)
17575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17576 ;;
17577 *)
17578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17579 ;;
17580 esac
17581 done
17582
17583 # Double-quote double-evaled strings.
17584 for var in reload_cmds \
17585 old_postinstall_cmds \
17586 old_postuninstall_cmds \
17587 old_archive_cmds \
17588 extract_expsyms_cmds \
17589 old_archive_from_new_cmds \
17590 old_archive_from_expsyms_cmds \
17591 archive_cmds \
17592 archive_expsym_cmds \
17593 module_cmds \
17594 module_expsym_cmds \
17595 export_symbols_cmds \
17596 prelink_cmds \
17597 postinstall_cmds \
17598 postuninstall_cmds \
17599 finish_cmds \
17600 sys_lib_search_path_spec \
17601 sys_lib_dlsearch_path_spec; do
17602 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17603 *[\\\\\\\`\\"\\\$]*)
17604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17605 ;;
17606 *)
17607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17608 ;;
17609 esac
17610 done
17611
17612 ac_aux_dir='$ac_aux_dir'
17613 xsi_shell='$xsi_shell'
17614 lt_shell_append='$lt_shell_append'
17615
17616 # See if we are running on zsh, and set the options which allow our
17617 # commands through without removal of \ escapes INIT.
17618 if test -n "\${ZSH_VERSION+set}" ; then
17619 setopt NO_GLOB_SUBST
17620 fi
17621
17622
17623 PACKAGE='$PACKAGE'
17624 VERSION='$VERSION'
17625 TIMESTAMP='$TIMESTAMP'
17626 RM='$RM'
17627 ofile='$ofile'
17628
17629
17630
17631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17632 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17633 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17634 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17635 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17636 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17637 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17638 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17639 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17640 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17641 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17642 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17643 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17644 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17645 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17646 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17647 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17648 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17649 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17650 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17651 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17652 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17653 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17654 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17655 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17656 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17657 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17658 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17659 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17660 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17661 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17662 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17663 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17664
17665 _ACEOF
17666
17667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17668
17669 # Handling of arguments.
17670 for ac_config_target in $ac_config_targets
17671 do
17672 case $ac_config_target in
17673 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17674 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17675 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17676 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
17677 "aarch64/.gdbinit") CONFIG_FILES="$CONFIG_FILES aarch64/.gdbinit:common/gdbinit.in" ;;
17678 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
17679 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
17680 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
17681 "arm/.gdbinit") CONFIG_FILES="$CONFIG_FILES arm/.gdbinit:common/gdbinit.in" ;;
17682 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
17683 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
17684 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
17685 "avr/.gdbinit") CONFIG_FILES="$CONFIG_FILES avr/.gdbinit:common/gdbinit.in" ;;
17686 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
17687 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
17688 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
17689 "bfin/.gdbinit") CONFIG_FILES="$CONFIG_FILES bfin/.gdbinit:common/gdbinit.in" ;;
17690 "bfin/Makefile.sim") CONFIG_FILES="$CONFIG_FILES bfin/Makefile.sim:bfin/Makefile.in" ;;
17691 "bfin/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bfin/Makefile" ;;
17692 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
17693 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
17694 "cr16/.gdbinit") CONFIG_FILES="$CONFIG_FILES cr16/.gdbinit:common/gdbinit.in" ;;
17695 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
17696 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
17697 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
17698 "cris/.gdbinit") CONFIG_FILES="$CONFIG_FILES cris/.gdbinit:common/gdbinit.in" ;;
17699 "cris/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cris/Makefile.sim:cris/Makefile.in" ;;
17700 "cris/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cris/Makefile" ;;
17701 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
17702 "d10v/.gdbinit") CONFIG_FILES="$CONFIG_FILES d10v/.gdbinit:common/gdbinit.in" ;;
17703 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
17704 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
17705 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
17706 "frv/.gdbinit") CONFIG_FILES="$CONFIG_FILES frv/.gdbinit:common/gdbinit.in" ;;
17707 "frv/Makefile.sim") CONFIG_FILES="$CONFIG_FILES frv/Makefile.sim:frv/Makefile.in" ;;
17708 "frv/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS frv/Makefile" ;;
17709 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
17710 "ft32/.gdbinit") CONFIG_FILES="$CONFIG_FILES ft32/.gdbinit:common/gdbinit.in" ;;
17711 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
17712 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
17713 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
17714 "h8300/.gdbinit") CONFIG_FILES="$CONFIG_FILES h8300/.gdbinit:common/gdbinit.in" ;;
17715 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
17716 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
17717 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
17718 "iq2000/.gdbinit") CONFIG_FILES="$CONFIG_FILES iq2000/.gdbinit:common/gdbinit.in" ;;
17719 "iq2000/Makefile.sim") CONFIG_FILES="$CONFIG_FILES iq2000/Makefile.sim:iq2000/Makefile.in" ;;
17720 "iq2000/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS iq2000/Makefile" ;;
17721 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
17722 "lm32/.gdbinit") CONFIG_FILES="$CONFIG_FILES lm32/.gdbinit:common/gdbinit.in" ;;
17723 "lm32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES lm32/Makefile.sim:lm32/Makefile.in" ;;
17724 "lm32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lm32/Makefile" ;;
17725 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
17726 "m32c/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32c/.gdbinit:common/gdbinit.in" ;;
17727 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
17728 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
17729 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
17730 "m32r/.gdbinit") CONFIG_FILES="$CONFIG_FILES m32r/.gdbinit:common/gdbinit.in" ;;
17731 "m32r/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32r/Makefile.sim:m32r/Makefile.in" ;;
17732 "m32r/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32r/Makefile" ;;
17733 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
17734 "m68hc11/.gdbinit") CONFIG_FILES="$CONFIG_FILES m68hc11/.gdbinit:common/gdbinit.in" ;;
17735 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
17736 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
17737 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
17738 "mcore/.gdbinit") CONFIG_FILES="$CONFIG_FILES mcore/.gdbinit:common/gdbinit.in" ;;
17739 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
17740 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
17741 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
17742 "microblaze/.gdbinit") CONFIG_FILES="$CONFIG_FILES microblaze/.gdbinit:common/gdbinit.in" ;;
17743 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
17744 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
17745 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
17746 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
17747 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
17748 "moxie/.gdbinit") CONFIG_FILES="$CONFIG_FILES moxie/.gdbinit:common/gdbinit.in" ;;
17749 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
17750 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
17751 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
17752 "msp430/.gdbinit") CONFIG_FILES="$CONFIG_FILES msp430/.gdbinit:common/gdbinit.in" ;;
17753 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
17754 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
17755 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
17756 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
17757 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
17758 "pru/.gdbinit") CONFIG_FILES="$CONFIG_FILES pru/.gdbinit:common/gdbinit.in" ;;
17759 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
17760 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
17761 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
17762 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
17763 "rl78/.gdbinit") CONFIG_FILES="$CONFIG_FILES rl78/.gdbinit:common/gdbinit.in" ;;
17764 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
17765 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
17766 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
17767 "rx/.gdbinit") CONFIG_FILES="$CONFIG_FILES rx/.gdbinit:common/gdbinit.in" ;;
17768 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
17769 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
17770 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
17771 "sh/.gdbinit") CONFIG_FILES="$CONFIG_FILES sh/.gdbinit:common/gdbinit.in" ;;
17772 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
17773 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
17774 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
17775 "erc32/.gdbinit") CONFIG_FILES="$CONFIG_FILES erc32/.gdbinit:common/gdbinit.in" ;;
17776 "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
17777 "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
17778 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
17779 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
17780 "example-synacor/.gdbinit") CONFIG_FILES="$CONFIG_FILES example-synacor/.gdbinit:common/gdbinit.in" ;;
17781 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
17782 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
17783 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
17784 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
17785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17786 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17787
17788 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17789 esac
17790 done
17791
17792
17793 # If the user did not use the arguments to specify the items to instantiate,
17794 # then the envvar interface is used. Set only those that are not.
17795 # We use the long form for the default assignment because of an extremely
17796 # bizarre bug on SunOS 4.1.3.
17797 if $ac_need_defaults; then
17798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17801 fi
17802
17803 # Have a temporary directory for convenience. Make it in the build tree
17804 # simply because there is no reason against having it here, and in addition,
17805 # creating and moving files from /tmp can sometimes cause problems.
17806 # Hook for its removal unless debugging.
17807 # Note that there is a small window in which the directory will not be cleaned:
17808 # after its creation but before its name has been assigned to `$tmp'.
17809 $debug ||
17810 {
17811 tmp= ac_tmp=
17812 trap 'exit_status=$?
17813 : "${ac_tmp:=$tmp}"
17814 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17815 ' 0
17816 trap 'as_fn_exit 1' 1 2 13 15
17817 }
17818 # Create a (secure) tmp directory for tmp files.
17819
17820 {
17821 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17822 test -d "$tmp"
17823 } ||
17824 {
17825 tmp=./conf$$-$RANDOM
17826 (umask 077 && mkdir "$tmp")
17827 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17828 ac_tmp=$tmp
17829
17830 # Set up the scripts for CONFIG_FILES section.
17831 # No need to generate them if there are no CONFIG_FILES.
17832 # This happens for instance with `./config.status config.h'.
17833 if test -n "$CONFIG_FILES"; then
17834
17835
17836 ac_cr=`echo X | tr X '\015'`
17837 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17838 # But we know of no other shell where ac_cr would be empty at this
17839 # point, so we can use a bashism as a fallback.
17840 if test "x$ac_cr" = x; then
17841 eval ac_cr=\$\'\\r\'
17842 fi
17843 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17844 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17845 ac_cs_awk_cr='\\r'
17846 else
17847 ac_cs_awk_cr=$ac_cr
17848 fi
17849
17850 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17851 _ACEOF
17852
17853
17854 {
17855 echo "cat >conf$$subs.awk <<_ACEOF" &&
17856 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17857 echo "_ACEOF"
17858 } >conf$$subs.sh ||
17859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17860 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17861 ac_delim='%!_!# '
17862 for ac_last_try in false false false false false :; do
17863 . ./conf$$subs.sh ||
17864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17865
17866 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17867 if test $ac_delim_n = $ac_delim_num; then
17868 break
17869 elif $ac_last_try; then
17870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17871 else
17872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17873 fi
17874 done
17875 rm -f conf$$subs.sh
17876
17877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17878 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17879 _ACEOF
17880 sed -n '
17881 h
17882 s/^/S["/; s/!.*/"]=/
17883 p
17884 g
17885 s/^[^!]*!//
17886 :repl
17887 t repl
17888 s/'"$ac_delim"'$//
17889 t delim
17890 :nl
17891 h
17892 s/\(.\{148\}\)..*/\1/
17893 t more1
17894 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17895 p
17896 n
17897 b repl
17898 :more1
17899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17900 p
17901 g
17902 s/.\{148\}//
17903 t nl
17904 :delim
17905 h
17906 s/\(.\{148\}\)..*/\1/
17907 t more2
17908 s/["\\]/\\&/g; s/^/"/; s/$/"/
17909 p
17910 b
17911 :more2
17912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17913 p
17914 g
17915 s/.\{148\}//
17916 t delim
17917 ' <conf$$subs.awk | sed '
17918 /^[^""]/{
17919 N
17920 s/\n//
17921 }
17922 ' >>$CONFIG_STATUS || ac_write_fail=1
17923 rm -f conf$$subs.awk
17924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17925 _ACAWK
17926 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17927 for (key in S) S_is_set[key] = 1
17928 FS = "\a"
17929
17930 }
17931 {
17932 line = $ 0
17933 nfields = split(line, field, "@")
17934 substed = 0
17935 len = length(field[1])
17936 for (i = 2; i < nfields; i++) {
17937 key = field[i]
17938 keylen = length(key)
17939 if (S_is_set[key]) {
17940 value = S[key]
17941 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17942 len += length(value) + length(field[++i])
17943 substed = 1
17944 } else
17945 len += 1 + keylen
17946 }
17947
17948 print line
17949 }
17950
17951 _ACAWK
17952 _ACEOF
17953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17954 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17955 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17956 else
17957 cat
17958 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17959 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17960 _ACEOF
17961
17962 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17963 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17964 # trailing colons and then remove the whole line if VPATH becomes empty
17965 # (actually we leave an empty line to preserve line numbers).
17966 if test "x$srcdir" = x.; then
17967 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17968 h
17969 s///
17970 s/^/:/
17971 s/[ ]*$/:/
17972 s/:\$(srcdir):/:/g
17973 s/:\${srcdir}:/:/g
17974 s/:@srcdir@:/:/g
17975 s/^:*//
17976 s/:*$//
17977 x
17978 s/\(=[ ]*\).*/\1/
17979 G
17980 s/\n//
17981 s/^[^=]*=[ ]*$//
17982 }'
17983 fi
17984
17985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17986 fi # test -n "$CONFIG_FILES"
17987
17988 # Set up the scripts for CONFIG_HEADERS section.
17989 # No need to generate them if there are no CONFIG_HEADERS.
17990 # This happens for instance with `./config.status Makefile'.
17991 if test -n "$CONFIG_HEADERS"; then
17992 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17993 BEGIN {
17994 _ACEOF
17995
17996 # Transform confdefs.h into an awk script `defines.awk', embedded as
17997 # here-document in config.status, that substitutes the proper values into
17998 # config.h.in to produce config.h.
17999
18000 # Create a delimiter string that does not exist in confdefs.h, to ease
18001 # handling of long lines.
18002 ac_delim='%!_!# '
18003 for ac_last_try in false false :; do
18004 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18005 if test -z "$ac_tt"; then
18006 break
18007 elif $ac_last_try; then
18008 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18009 else
18010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18011 fi
18012 done
18013
18014 # For the awk script, D is an array of macro values keyed by name,
18015 # likewise P contains macro parameters if any. Preserve backslash
18016 # newline sequences.
18017
18018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18019 sed -n '
18020 s/.\{148\}/&'"$ac_delim"'/g
18021 t rset
18022 :rset
18023 s/^[ ]*#[ ]*define[ ][ ]*/ /
18024 t def
18025 d
18026 :def
18027 s/\\$//
18028 t bsnl
18029 s/["\\]/\\&/g
18030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18031 D["\1"]=" \3"/p
18032 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18033 d
18034 :bsnl
18035 s/["\\]/\\&/g
18036 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18037 D["\1"]=" \3\\\\\\n"\\/p
18038 t cont
18039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18040 t cont
18041 d
18042 :cont
18043 n
18044 s/.\{148\}/&'"$ac_delim"'/g
18045 t clear
18046 :clear
18047 s/\\$//
18048 t bsnlc
18049 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18050 d
18051 :bsnlc
18052 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18053 b cont
18054 ' <confdefs.h | sed '
18055 s/'"$ac_delim"'/"\\\
18056 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18057
18058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18059 for (key in D) D_is_set[key] = 1
18060 FS = "\a"
18061 }
18062 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18063 line = \$ 0
18064 split(line, arg, " ")
18065 if (arg[1] == "#") {
18066 defundef = arg[2]
18067 mac1 = arg[3]
18068 } else {
18069 defundef = substr(arg[1], 2)
18070 mac1 = arg[2]
18071 }
18072 split(mac1, mac2, "(") #)
18073 macro = mac2[1]
18074 prefix = substr(line, 1, index(line, defundef) - 1)
18075 if (D_is_set[macro]) {
18076 # Preserve the white space surrounding the "#".
18077 print prefix "define", macro P[macro] D[macro]
18078 next
18079 } else {
18080 # Replace #undef with comments. This is necessary, for example,
18081 # in the case of _POSIX_SOURCE, which is predefined and required
18082 # on some systems where configure will not decide to define it.
18083 if (defundef == "undef") {
18084 print "/*", prefix defundef, macro, "*/"
18085 next
18086 }
18087 }
18088 }
18089 { print }
18090 _ACAWK
18091 _ACEOF
18092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18093 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18094 fi # test -n "$CONFIG_HEADERS"
18095
18096
18097 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18098 shift
18099 for ac_tag
18100 do
18101 case $ac_tag in
18102 :[FHLC]) ac_mode=$ac_tag; continue;;
18103 esac
18104 case $ac_mode$ac_tag in
18105 :[FHL]*:*);;
18106 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18107 :[FH]-) ac_tag=-:-;;
18108 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18109 esac
18110 ac_save_IFS=$IFS
18111 IFS=:
18112 set x $ac_tag
18113 IFS=$ac_save_IFS
18114 shift
18115 ac_file=$1
18116 shift
18117
18118 case $ac_mode in
18119 :L) ac_source=$1;;
18120 :[FH])
18121 ac_file_inputs=
18122 for ac_f
18123 do
18124 case $ac_f in
18125 -) ac_f="$ac_tmp/stdin";;
18126 *) # Look for the file first in the build tree, then in the source tree
18127 # (if the path is not absolute). The absolute path cannot be DOS-style,
18128 # because $ac_f cannot contain `:'.
18129 test -f "$ac_f" ||
18130 case $ac_f in
18131 [\\/$]*) false;;
18132 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18133 esac ||
18134 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18135 esac
18136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18137 as_fn_append ac_file_inputs " '$ac_f'"
18138 done
18139
18140 # Let's still pretend it is `configure' which instantiates (i.e., don't
18141 # use $as_me), people would be surprised to read:
18142 # /* config.h. Generated by config.status. */
18143 configure_input='Generated from '`
18144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18145 `' by configure.'
18146 if test x"$ac_file" != x-; then
18147 configure_input="$ac_file. $configure_input"
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18149 $as_echo "$as_me: creating $ac_file" >&6;}
18150 fi
18151 # Neutralize special characters interpreted by sed in replacement strings.
18152 case $configure_input in #(
18153 *\&* | *\|* | *\\* )
18154 ac_sed_conf_input=`$as_echo "$configure_input" |
18155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18156 *) ac_sed_conf_input=$configure_input;;
18157 esac
18158
18159 case $ac_tag in
18160 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18162 esac
18163 ;;
18164 esac
18165
18166 ac_dir=`$as_dirname -- "$ac_file" ||
18167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18168 X"$ac_file" : 'X\(//\)[^/]' \| \
18169 X"$ac_file" : 'X\(//\)$' \| \
18170 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18171 $as_echo X"$ac_file" |
18172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18173 s//\1/
18174 q
18175 }
18176 /^X\(\/\/\)[^/].*/{
18177 s//\1/
18178 q
18179 }
18180 /^X\(\/\/\)$/{
18181 s//\1/
18182 q
18183 }
18184 /^X\(\/\).*/{
18185 s//\1/
18186 q
18187 }
18188 s/.*/./; q'`
18189 as_dir="$ac_dir"; as_fn_mkdir_p
18190 ac_builddir=.
18191
18192 case "$ac_dir" in
18193 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18194 *)
18195 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18196 # A ".." for each directory in $ac_dir_suffix.
18197 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18198 case $ac_top_builddir_sub in
18199 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18200 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18201 esac ;;
18202 esac
18203 ac_abs_top_builddir=$ac_pwd
18204 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18205 # for backward compatibility:
18206 ac_top_builddir=$ac_top_build_prefix
18207
18208 case $srcdir in
18209 .) # We are building in place.
18210 ac_srcdir=.
18211 ac_top_srcdir=$ac_top_builddir_sub
18212 ac_abs_top_srcdir=$ac_pwd ;;
18213 [\\/]* | ?:[\\/]* ) # Absolute name.
18214 ac_srcdir=$srcdir$ac_dir_suffix;
18215 ac_top_srcdir=$srcdir
18216 ac_abs_top_srcdir=$srcdir ;;
18217 *) # Relative name.
18218 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18219 ac_top_srcdir=$ac_top_build_prefix$srcdir
18220 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18221 esac
18222 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18223
18224
18225 case $ac_mode in
18226 :F)
18227 #
18228 # CONFIG_FILE
18229 #
18230
18231 case $INSTALL in
18232 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18233 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18234 esac
18235 ac_MKDIR_P=$MKDIR_P
18236 case $MKDIR_P in
18237 [\\/$]* | ?:[\\/]* ) ;;
18238 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18239 esac
18240 _ACEOF
18241
18242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18243 # If the template does not know about datarootdir, expand it.
18244 # FIXME: This hack should be removed a few years after 2.60.
18245 ac_datarootdir_hack=; ac_datarootdir_seen=
18246 ac_sed_dataroot='
18247 /datarootdir/ {
18248 p
18249 q
18250 }
18251 /@datadir@/p
18252 /@docdir@/p
18253 /@infodir@/p
18254 /@localedir@/p
18255 /@mandir@/p'
18256 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18257 *datarootdir*) ac_datarootdir_seen=yes;;
18258 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18260 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18261 _ACEOF
18262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18263 ac_datarootdir_hack='
18264 s&@datadir@&$datadir&g
18265 s&@docdir@&$docdir&g
18266 s&@infodir@&$infodir&g
18267 s&@localedir@&$localedir&g
18268 s&@mandir@&$mandir&g
18269 s&\\\${datarootdir}&$datarootdir&g' ;;
18270 esac
18271 _ACEOF
18272
18273 # Neutralize VPATH when `$srcdir' = `.'.
18274 # Shell code in configure.ac might set extrasub.
18275 # FIXME: do we really want to maintain this feature?
18276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18277 ac_sed_extra="$ac_vpsub
18278 $extrasub
18279 _ACEOF
18280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18281 :t
18282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18283 s|@configure_input@|$ac_sed_conf_input|;t t
18284 s&@top_builddir@&$ac_top_builddir_sub&;t t
18285 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18286 s&@srcdir@&$ac_srcdir&;t t
18287 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18288 s&@top_srcdir@&$ac_top_srcdir&;t t
18289 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18290 s&@builddir@&$ac_builddir&;t t
18291 s&@abs_builddir@&$ac_abs_builddir&;t t
18292 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18293 s&@INSTALL@&$ac_INSTALL&;t t
18294 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18295 $ac_datarootdir_hack
18296 "
18297 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18298 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18299
18300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18301 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18303 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18305 which seems to be undefined. Please make sure it is defined" >&5
18306 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18307 which seems to be undefined. Please make sure it is defined" >&2;}
18308
18309 rm -f "$ac_tmp/stdin"
18310 case $ac_file in
18311 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18312 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18313 esac \
18314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18315 ;;
18316 :H)
18317 #
18318 # CONFIG_HEADER
18319 #
18320 if test x"$ac_file" != x-; then
18321 {
18322 $as_echo "/* $configure_input */" \
18323 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18324 } >"$ac_tmp/config.h" \
18325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18326 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18328 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18329 else
18330 rm -f "$ac_file"
18331 mv "$ac_tmp/config.h" "$ac_file" \
18332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18333 fi
18334 else
18335 $as_echo "/* $configure_input */" \
18336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18337 || as_fn_error $? "could not create -" "$LINENO" 5
18338 fi
18339 # Compute "$ac_file"'s index in $config_headers.
18340 _am_arg="$ac_file"
18341 _am_stamp_count=1
18342 for _am_header in $config_headers :; do
18343 case $_am_header in
18344 $_am_arg | $_am_arg:* )
18345 break ;;
18346 * )
18347 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18348 esac
18349 done
18350 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18351 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18352 X"$_am_arg" : 'X\(//\)[^/]' \| \
18353 X"$_am_arg" : 'X\(//\)$' \| \
18354 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18355 $as_echo X"$_am_arg" |
18356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18357 s//\1/
18358 q
18359 }
18360 /^X\(\/\/\)[^/].*/{
18361 s//\1/
18362 q
18363 }
18364 /^X\(\/\/\)$/{
18365 s//\1/
18366 q
18367 }
18368 /^X\(\/\).*/{
18369 s//\1/
18370 q
18371 }
18372 s/.*/./; q'`/stamp-h$_am_stamp_count
18373 ;;
18374
18375 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18376 $as_echo "$as_me: executing $ac_file commands" >&6;}
18377 ;;
18378 esac
18379
18380
18381 case $ac_file$ac_mode in
18382 "libtool":C)
18383
18384 # See if we are running on zsh, and set the options which allow our
18385 # commands through without removal of \ escapes.
18386 if test -n "${ZSH_VERSION+set}" ; then
18387 setopt NO_GLOB_SUBST
18388 fi
18389
18390 cfgfile="${ofile}T"
18391 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18392 $RM "$cfgfile"
18393
18394 cat <<_LT_EOF >> "$cfgfile"
18395 #! $SHELL
18396
18397 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18398 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18399 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18400 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18401 #
18402 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18403 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18404 # Written by Gordon Matzigkeit, 1996
18405 #
18406 # This file is part of GNU Libtool.
18407 #
18408 # GNU Libtool is free software; you can redistribute it and/or
18409 # modify it under the terms of the GNU General Public License as
18410 # published by the Free Software Foundation; either version 2 of
18411 # the License, or (at your option) any later version.
18412 #
18413 # As a special exception to the GNU General Public License,
18414 # if you distribute this file as part of a program or library that
18415 # is built using GNU Libtool, you may include this file under the
18416 # same distribution terms that you use for the rest of that program.
18417 #
18418 # GNU Libtool is distributed in the hope that it will be useful,
18419 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18421 # GNU General Public License for more details.
18422 #
18423 # You should have received a copy of the GNU General Public License
18424 # along with GNU Libtool; see the file COPYING. If not, a copy
18425 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18426 # obtained by writing to the Free Software Foundation, Inc.,
18427 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18428
18429
18430 # The names of the tagged configurations supported by this script.
18431 available_tags=""
18432
18433 # ### BEGIN LIBTOOL CONFIG
18434
18435 # Which release of libtool.m4 was used?
18436 macro_version=$macro_version
18437 macro_revision=$macro_revision
18438
18439 # Whether or not to build shared libraries.
18440 build_libtool_libs=$enable_shared
18441
18442 # Whether or not to build static libraries.
18443 build_old_libs=$enable_static
18444
18445 # What type of objects to build.
18446 pic_mode=$pic_mode
18447
18448 # Whether or not to optimize for fast installation.
18449 fast_install=$enable_fast_install
18450
18451 # Shell to use when invoking shell scripts.
18452 SHELL=$lt_SHELL
18453
18454 # An echo program that protects backslashes.
18455 ECHO=$lt_ECHO
18456
18457 # The host system.
18458 host_alias=$host_alias
18459 host=$host
18460 host_os=$host_os
18461
18462 # The build system.
18463 build_alias=$build_alias
18464 build=$build
18465 build_os=$build_os
18466
18467 # A sed program that does not truncate output.
18468 SED=$lt_SED
18469
18470 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18471 Xsed="\$SED -e 1s/^X//"
18472
18473 # A grep program that handles long lines.
18474 GREP=$lt_GREP
18475
18476 # An ERE matcher.
18477 EGREP=$lt_EGREP
18478
18479 # A literal string matcher.
18480 FGREP=$lt_FGREP
18481
18482 # A BSD- or MS-compatible name lister.
18483 NM=$lt_NM
18484
18485 # Whether we need soft or hard links.
18486 LN_S=$lt_LN_S
18487
18488 # What is the maximum length of a command?
18489 max_cmd_len=$max_cmd_len
18490
18491 # Object file suffix (normally "o").
18492 objext=$ac_objext
18493
18494 # Executable file suffix (normally "").
18495 exeext=$exeext
18496
18497 # whether the shell understands "unset".
18498 lt_unset=$lt_unset
18499
18500 # turn spaces into newlines.
18501 SP2NL=$lt_lt_SP2NL
18502
18503 # turn newlines into spaces.
18504 NL2SP=$lt_lt_NL2SP
18505
18506 # An object symbol dumper.
18507 OBJDUMP=$lt_OBJDUMP
18508
18509 # Method to check whether dependent libraries are shared objects.
18510 deplibs_check_method=$lt_deplibs_check_method
18511
18512 # Command to use when deplibs_check_method == "file_magic".
18513 file_magic_cmd=$lt_file_magic_cmd
18514
18515 # The archiver.
18516 AR=$lt_AR
18517 AR_FLAGS=$lt_AR_FLAGS
18518
18519 # A symbol stripping program.
18520 STRIP=$lt_STRIP
18521
18522 # Commands used to install an old-style archive.
18523 RANLIB=$lt_RANLIB
18524 old_postinstall_cmds=$lt_old_postinstall_cmds
18525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18526
18527 # Whether to use a lock for old archive extraction.
18528 lock_old_archive_extraction=$lock_old_archive_extraction
18529
18530 # A C compiler.
18531 LTCC=$lt_CC
18532
18533 # LTCC compiler flags.
18534 LTCFLAGS=$lt_CFLAGS
18535
18536 # Take the output of nm and produce a listing of raw symbols and C names.
18537 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18538
18539 # Transform the output of nm in a proper C declaration.
18540 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18541
18542 # Transform the output of nm in a C name address pair.
18543 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18544
18545 # Transform the output of nm in a C name address pair when lib prefix is needed.
18546 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18547
18548 # The name of the directory that contains temporary libtool files.
18549 objdir=$objdir
18550
18551 # Used to examine libraries when file_magic_cmd begins with "file".
18552 MAGIC_CMD=$MAGIC_CMD
18553
18554 # Must we lock files when doing compilation?
18555 need_locks=$lt_need_locks
18556
18557 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18558 DSYMUTIL=$lt_DSYMUTIL
18559
18560 # Tool to change global to local symbols on Mac OS X.
18561 NMEDIT=$lt_NMEDIT
18562
18563 # Tool to manipulate fat objects and archives on Mac OS X.
18564 LIPO=$lt_LIPO
18565
18566 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18567 OTOOL=$lt_OTOOL
18568
18569 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18570 OTOOL64=$lt_OTOOL64
18571
18572 # Old archive suffix (normally "a").
18573 libext=$libext
18574
18575 # Shared library suffix (normally ".so").
18576 shrext_cmds=$lt_shrext_cmds
18577
18578 # The commands to extract the exported symbol list from a shared archive.
18579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18580
18581 # Variables whose values should be saved in libtool wrapper scripts and
18582 # restored at link time.
18583 variables_saved_for_relink=$lt_variables_saved_for_relink
18584
18585 # Do we need the "lib" prefix for modules?
18586 need_lib_prefix=$need_lib_prefix
18587
18588 # Do we need a version for libraries?
18589 need_version=$need_version
18590
18591 # Library versioning type.
18592 version_type=$version_type
18593
18594 # Shared library runtime path variable.
18595 runpath_var=$runpath_var
18596
18597 # Shared library path variable.
18598 shlibpath_var=$shlibpath_var
18599
18600 # Is shlibpath searched before the hard-coded library search path?
18601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18602
18603 # Format of library name prefix.
18604 libname_spec=$lt_libname_spec
18605
18606 # List of archive names. First name is the real one, the rest are links.
18607 # The last name is the one that the linker finds with -lNAME
18608 library_names_spec=$lt_library_names_spec
18609
18610 # The coded name of the library, if different from the real name.
18611 soname_spec=$lt_soname_spec
18612
18613 # Permission mode override for installation of shared libraries.
18614 install_override_mode=$lt_install_override_mode
18615
18616 # Command to use after installation of a shared archive.
18617 postinstall_cmds=$lt_postinstall_cmds
18618
18619 # Command to use after uninstallation of a shared archive.
18620 postuninstall_cmds=$lt_postuninstall_cmds
18621
18622 # Commands used to finish a libtool library installation in a directory.
18623 finish_cmds=$lt_finish_cmds
18624
18625 # As "finish_cmds", except a single script fragment to be evaled but
18626 # not shown.
18627 finish_eval=$lt_finish_eval
18628
18629 # Whether we should hardcode library paths into libraries.
18630 hardcode_into_libs=$hardcode_into_libs
18631
18632 # Compile-time system search path for libraries.
18633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18634
18635 # Run-time system search path for libraries.
18636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18637
18638 # Whether dlopen is supported.
18639 dlopen_support=$enable_dlopen
18640
18641 # Whether dlopen of programs is supported.
18642 dlopen_self=$enable_dlopen_self
18643
18644 # Whether dlopen of statically linked programs is supported.
18645 dlopen_self_static=$enable_dlopen_self_static
18646
18647 # Commands to strip libraries.
18648 old_striplib=$lt_old_striplib
18649 striplib=$lt_striplib
18650
18651
18652 # The linker used to build libraries.
18653 LD=$lt_LD
18654
18655 # How to create reloadable object files.
18656 reload_flag=$lt_reload_flag
18657 reload_cmds=$lt_reload_cmds
18658
18659 # Commands used to build an old-style archive.
18660 old_archive_cmds=$lt_old_archive_cmds
18661
18662 # A language specific compiler.
18663 CC=$lt_compiler
18664
18665 # Is the compiler the GNU compiler?
18666 with_gcc=$GCC
18667
18668 # Compiler flag to turn off builtin functions.
18669 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18670
18671 # How to pass a linker flag through the compiler.
18672 wl=$lt_lt_prog_compiler_wl
18673
18674 # Additional compiler flags for building library objects.
18675 pic_flag=$lt_lt_prog_compiler_pic
18676
18677 # Compiler flag to prevent dynamic linking.
18678 link_static_flag=$lt_lt_prog_compiler_static
18679
18680 # Does compiler simultaneously support -c and -o options?
18681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18682
18683 # Whether or not to add -lc for building shared libraries.
18684 build_libtool_need_lc=$archive_cmds_need_lc
18685
18686 # Whether or not to disallow shared libs when runtime libs are static.
18687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18688
18689 # Compiler flag to allow reflexive dlopens.
18690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18691
18692 # Compiler flag to generate shared objects directly from archives.
18693 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18694
18695 # Whether the compiler copes with passing no objects directly.
18696 compiler_needs_object=$lt_compiler_needs_object
18697
18698 # Create an old-style archive from a shared archive.
18699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18700
18701 # Create a temporary old-style archive to link instead of a shared archive.
18702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18703
18704 # Commands used to build a shared archive.
18705 archive_cmds=$lt_archive_cmds
18706 archive_expsym_cmds=$lt_archive_expsym_cmds
18707
18708 # Commands used to build a loadable module if different from building
18709 # a shared archive.
18710 module_cmds=$lt_module_cmds
18711 module_expsym_cmds=$lt_module_expsym_cmds
18712
18713 # Whether we are building with GNU ld or not.
18714 with_gnu_ld=$lt_with_gnu_ld
18715
18716 # Flag that allows shared libraries with undefined symbols to be built.
18717 allow_undefined_flag=$lt_allow_undefined_flag
18718
18719 # Flag that enforces no undefined symbols.
18720 no_undefined_flag=$lt_no_undefined_flag
18721
18722 # Flag to hardcode \$libdir into a binary during linking.
18723 # This must work even if \$libdir does not exist
18724 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18725
18726 # If ld is used when linking, flag to hardcode \$libdir into a binary
18727 # during linking. This must work even if \$libdir does not exist.
18728 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18729
18730 # Whether we need a single "-rpath" flag with a separated argument.
18731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18732
18733 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18734 # DIR into the resulting binary.
18735 hardcode_direct=$hardcode_direct
18736
18737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18738 # DIR into the resulting binary and the resulting library dependency is
18739 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18740 # library is relocated.
18741 hardcode_direct_absolute=$hardcode_direct_absolute
18742
18743 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18744 # into the resulting binary.
18745 hardcode_minus_L=$hardcode_minus_L
18746
18747 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18748 # into the resulting binary.
18749 hardcode_shlibpath_var=$hardcode_shlibpath_var
18750
18751 # Set to "yes" if building a shared library automatically hardcodes DIR
18752 # into the library and all subsequent libraries and executables linked
18753 # against it.
18754 hardcode_automatic=$hardcode_automatic
18755
18756 # Set to yes if linker adds runtime paths of dependent libraries
18757 # to runtime path list.
18758 inherit_rpath=$inherit_rpath
18759
18760 # Whether libtool must link a program against all its dependency libraries.
18761 link_all_deplibs=$link_all_deplibs
18762
18763 # Fix the shell variable \$srcfile for the compiler.
18764 fix_srcfile_path=$lt_fix_srcfile_path
18765
18766 # Set to "yes" if exported symbols are required.
18767 always_export_symbols=$always_export_symbols
18768
18769 # The commands to list exported symbols.
18770 export_symbols_cmds=$lt_export_symbols_cmds
18771
18772 # Symbols that should not be listed in the preloaded symbols.
18773 exclude_expsyms=$lt_exclude_expsyms
18774
18775 # Symbols that must always be exported.
18776 include_expsyms=$lt_include_expsyms
18777
18778 # Commands necessary for linking programs (against libraries) with templates.
18779 prelink_cmds=$lt_prelink_cmds
18780
18781 # Specify filename containing input files.
18782 file_list_spec=$lt_file_list_spec
18783
18784 # How to hardcode a shared library path into an executable.
18785 hardcode_action=$hardcode_action
18786
18787 # ### END LIBTOOL CONFIG
18788
18789 _LT_EOF
18790
18791 case $host_os in
18792 aix3*)
18793 cat <<\_LT_EOF >> "$cfgfile"
18794 # AIX sometimes has problems with the GCC collect2 program. For some
18795 # reason, if we set the COLLECT_NAMES environment variable, the problems
18796 # vanish in a puff of smoke.
18797 if test "X${COLLECT_NAMES+set}" != Xset; then
18798 COLLECT_NAMES=
18799 export COLLECT_NAMES
18800 fi
18801 _LT_EOF
18802 ;;
18803 esac
18804
18805
18806 ltmain="$ac_aux_dir/ltmain.sh"
18807
18808
18809 # We use sed instead of cat because bash on DJGPP gets confused if
18810 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18811 # text mode, it properly converts lines to CR/LF. This bash problem
18812 # is reportedly fixed, but why not run on old versions too?
18813 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18814 || (rm -f "$cfgfile"; exit 1)
18815
18816 case $xsi_shell in
18817 yes)
18818 cat << \_LT_EOF >> "$cfgfile"
18819
18820 # func_dirname file append nondir_replacement
18821 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18822 # otherwise set result to NONDIR_REPLACEMENT.
18823 func_dirname ()
18824 {
18825 case ${1} in
18826 */*) func_dirname_result="${1%/*}${2}" ;;
18827 * ) func_dirname_result="${3}" ;;
18828 esac
18829 }
18830
18831 # func_basename file
18832 func_basename ()
18833 {
18834 func_basename_result="${1##*/}"
18835 }
18836
18837 # func_dirname_and_basename file append nondir_replacement
18838 # perform func_basename and func_dirname in a single function
18839 # call:
18840 # dirname: Compute the dirname of FILE. If nonempty,
18841 # add APPEND to the result, otherwise set result
18842 # to NONDIR_REPLACEMENT.
18843 # value returned in "$func_dirname_result"
18844 # basename: Compute filename of FILE.
18845 # value retuned in "$func_basename_result"
18846 # Implementation must be kept synchronized with func_dirname
18847 # and func_basename. For efficiency, we do not delegate to
18848 # those functions but instead duplicate the functionality here.
18849 func_dirname_and_basename ()
18850 {
18851 case ${1} in
18852 */*) func_dirname_result="${1%/*}${2}" ;;
18853 * ) func_dirname_result="${3}" ;;
18854 esac
18855 func_basename_result="${1##*/}"
18856 }
18857
18858 # func_stripname prefix suffix name
18859 # strip PREFIX and SUFFIX off of NAME.
18860 # PREFIX and SUFFIX must not contain globbing or regex special
18861 # characters, hashes, percent signs, but SUFFIX may contain a leading
18862 # dot (in which case that matches only a dot).
18863 func_stripname ()
18864 {
18865 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18866 # positional parameters, so assign one to ordinary parameter first.
18867 func_stripname_result=${3}
18868 func_stripname_result=${func_stripname_result#"${1}"}
18869 func_stripname_result=${func_stripname_result%"${2}"}
18870 }
18871
18872 # func_opt_split
18873 func_opt_split ()
18874 {
18875 func_opt_split_opt=${1%%=*}
18876 func_opt_split_arg=${1#*=}
18877 }
18878
18879 # func_lo2o object
18880 func_lo2o ()
18881 {
18882 case ${1} in
18883 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18884 *) func_lo2o_result=${1} ;;
18885 esac
18886 }
18887
18888 # func_xform libobj-or-source
18889 func_xform ()
18890 {
18891 func_xform_result=${1%.*}.lo
18892 }
18893
18894 # func_arith arithmetic-term...
18895 func_arith ()
18896 {
18897 func_arith_result=$(( $* ))
18898 }
18899
18900 # func_len string
18901 # STRING may not start with a hyphen.
18902 func_len ()
18903 {
18904 func_len_result=${#1}
18905 }
18906
18907 _LT_EOF
18908 ;;
18909 *) # Bourne compatible functions.
18910 cat << \_LT_EOF >> "$cfgfile"
18911
18912 # func_dirname file append nondir_replacement
18913 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18914 # otherwise set result to NONDIR_REPLACEMENT.
18915 func_dirname ()
18916 {
18917 # Extract subdirectory from the argument.
18918 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18919 if test "X$func_dirname_result" = "X${1}"; then
18920 func_dirname_result="${3}"
18921 else
18922 func_dirname_result="$func_dirname_result${2}"
18923 fi
18924 }
18925
18926 # func_basename file
18927 func_basename ()
18928 {
18929 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18930 }
18931
18932
18933 # func_stripname prefix suffix name
18934 # strip PREFIX and SUFFIX off of NAME.
18935 # PREFIX and SUFFIX must not contain globbing or regex special
18936 # characters, hashes, percent signs, but SUFFIX may contain a leading
18937 # dot (in which case that matches only a dot).
18938 # func_strip_suffix prefix name
18939 func_stripname ()
18940 {
18941 case ${2} in
18942 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18943 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18944 esac
18945 }
18946
18947 # sed scripts:
18948 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18949 my_sed_long_arg='1s/^-[^=]*=//'
18950
18951 # func_opt_split
18952 func_opt_split ()
18953 {
18954 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18955 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18956 }
18957
18958 # func_lo2o object
18959 func_lo2o ()
18960 {
18961 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18962 }
18963
18964 # func_xform libobj-or-source
18965 func_xform ()
18966 {
18967 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18968 }
18969
18970 # func_arith arithmetic-term...
18971 func_arith ()
18972 {
18973 func_arith_result=`expr "$@"`
18974 }
18975
18976 # func_len string
18977 # STRING may not start with a hyphen.
18978 func_len ()
18979 {
18980 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18981 }
18982
18983 _LT_EOF
18984 esac
18985
18986 case $lt_shell_append in
18987 yes)
18988 cat << \_LT_EOF >> "$cfgfile"
18989
18990 # func_append var value
18991 # Append VALUE to the end of shell variable VAR.
18992 func_append ()
18993 {
18994 eval "$1+=\$2"
18995 }
18996 _LT_EOF
18997 ;;
18998 *)
18999 cat << \_LT_EOF >> "$cfgfile"
19000
19001 # func_append var value
19002 # Append VALUE to the end of shell variable VAR.
19003 func_append ()
19004 {
19005 eval "$1=\$$1\$2"
19006 }
19007
19008 _LT_EOF
19009 ;;
19010 esac
19011
19012
19013 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19014 || (rm -f "$cfgfile"; exit 1)
19015
19016 mv -f "$cfgfile" "$ofile" ||
19017 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19018 chmod +x "$ofile"
19019
19020 ;;
19021 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19022 # Older Autoconf quotes --file arguments for eval, but not when files
19023 # are listed without --file. Let's play safe and only enable the eval
19024 # if we detect the quoting.
19025 case $CONFIG_FILES in
19026 *\'*) eval set x "$CONFIG_FILES" ;;
19027 *) set x $CONFIG_FILES ;;
19028 esac
19029 shift
19030 for mf
19031 do
19032 # Strip MF so we end up with the name of the file.
19033 mf=`echo "$mf" | sed -e 's/:.*$//'`
19034 # Check whether this is an Automake generated Makefile or not.
19035 # We used to match only the files named 'Makefile.in', but
19036 # some people rename them; so instead we look at the file content.
19037 # Grep'ing the first line is not enough: some people post-process
19038 # each Makefile.in and add a new line on top of each file to say so.
19039 # Grep'ing the whole file is not good either: AIX grep has a line
19040 # limit of 2048, but all sed's we know have understand at least 4000.
19041 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19042 dirpart=`$as_dirname -- "$mf" ||
19043 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19044 X"$mf" : 'X\(//\)[^/]' \| \
19045 X"$mf" : 'X\(//\)$' \| \
19046 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19047 $as_echo X"$mf" |
19048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19049 s//\1/
19050 q
19051 }
19052 /^X\(\/\/\)[^/].*/{
19053 s//\1/
19054 q
19055 }
19056 /^X\(\/\/\)$/{
19057 s//\1/
19058 q
19059 }
19060 /^X\(\/\).*/{
19061 s//\1/
19062 q
19063 }
19064 s/.*/./; q'`
19065 else
19066 continue
19067 fi
19068 # Extract the definition of DEPDIR, am__include, and am__quote
19069 # from the Makefile without running 'make'.
19070 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19071 test -z "$DEPDIR" && continue
19072 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19073 test -z "$am__include" && continue
19074 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19075 # Find all dependency output files, they are included files with
19076 # $(DEPDIR) in their names. We invoke sed twice because it is the
19077 # simplest approach to changing $(DEPDIR) to its actual value in the
19078 # expansion.
19079 for file in `sed -n "
19080 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19081 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19082 # Make sure the directory exists.
19083 test -f "$dirpart/$file" && continue
19084 fdir=`$as_dirname -- "$file" ||
19085 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19086 X"$file" : 'X\(//\)[^/]' \| \
19087 X"$file" : 'X\(//\)$' \| \
19088 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19089 $as_echo X"$file" |
19090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19091 s//\1/
19092 q
19093 }
19094 /^X\(\/\/\)[^/].*/{
19095 s//\1/
19096 q
19097 }
19098 /^X\(\/\/\)$/{
19099 s//\1/
19100 q
19101 }
19102 /^X\(\/\).*/{
19103 s//\1/
19104 q
19105 }
19106 s/.*/./; q'`
19107 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19108 # echo "creating $dirpart/$file"
19109 echo '# dummy' > "$dirpart/$file"
19110 done
19111 done
19112 }
19113 ;;
19114 "aarch64/Makefile":C) sed -n \
19115 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19116 /^srcdir = / s:$:/aarch64:
19117 p
19118 }' \
19119 <Make-common.sim >aarch64/Makesim1.tmp
19120 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
19121 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
19122 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
19123 <aarch64/Makefile.sim >aarch64/Makefile
19124 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
19125 ;;
19126 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
19127 "arm/Makefile":C) sed -n \
19128 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19129 /^srcdir = / s:$:/arm:
19130 p
19131 }' \
19132 <Make-common.sim >arm/Makesim1.tmp
19133 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
19134 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
19135 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
19136 <arm/Makefile.sim >arm/Makefile
19137 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
19138 ;;
19139 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
19140 "avr/Makefile":C) sed -n \
19141 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19142 /^srcdir = / s:$:/avr:
19143 p
19144 }' \
19145 <Make-common.sim >avr/Makesim1.tmp
19146 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
19147 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
19148 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
19149 <avr/Makefile.sim >avr/Makefile
19150 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
19151 ;;
19152 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
19153 "bfin/Makefile":C) sed -n \
19154 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19155 /^srcdir = / s:$:/bfin:
19156 p
19157 }' \
19158 <Make-common.sim >bfin/Makesim1.tmp
19159 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >bfin/Makesim2.tmp
19160 sed -e '/^## COMMON_PRE_/ r bfin/Makesim1.tmp' \
19161 -e '/^## COMMON_POST_/ r bfin/Makesim2.tmp' \
19162 <bfin/Makefile.sim >bfin/Makefile
19163 rm -f bfin/Makesim1.tmp bfin/Makesim2.tmp
19164 ;;
19165 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
19166 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
19167 "cr16/Makefile":C) sed -n \
19168 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19169 /^srcdir = / s:$:/cr16:
19170 p
19171 }' \
19172 <Make-common.sim >cr16/Makesim1.tmp
19173 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
19174 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
19175 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
19176 <cr16/Makefile.sim >cr16/Makefile
19177 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
19178 ;;
19179 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
19180 "cris/Makefile":C) sed -n \
19181 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19182 /^srcdir = / s:$:/cris:
19183 p
19184 }' \
19185 <Make-common.sim >cris/Makesim1.tmp
19186 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cris/Makesim2.tmp
19187 sed -e '/^## COMMON_PRE_/ r cris/Makesim1.tmp' \
19188 -e '/^## COMMON_POST_/ r cris/Makesim2.tmp' \
19189 <cris/Makefile.sim >cris/Makefile
19190 rm -f cris/Makesim1.tmp cris/Makesim2.tmp
19191 ;;
19192 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
19193 "d10v/Makefile":C) sed -n \
19194 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19195 /^srcdir = / s:$:/d10v:
19196 p
19197 }' \
19198 <Make-common.sim >d10v/Makesim1.tmp
19199 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
19200 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
19201 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
19202 <d10v/Makefile.sim >d10v/Makefile
19203 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
19204 ;;
19205 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
19206 "frv/Makefile":C) sed -n \
19207 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19208 /^srcdir = / s:$:/frv:
19209 p
19210 }' \
19211 <Make-common.sim >frv/Makesim1.tmp
19212 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >frv/Makesim2.tmp
19213 sed -e '/^## COMMON_PRE_/ r frv/Makesim1.tmp' \
19214 -e '/^## COMMON_POST_/ r frv/Makesim2.tmp' \
19215 <frv/Makefile.sim >frv/Makefile
19216 rm -f frv/Makesim1.tmp frv/Makesim2.tmp
19217 ;;
19218 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
19219 "ft32/Makefile":C) sed -n \
19220 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19221 /^srcdir = / s:$:/ft32:
19222 p
19223 }' \
19224 <Make-common.sim >ft32/Makesim1.tmp
19225 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
19226 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
19227 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
19228 <ft32/Makefile.sim >ft32/Makefile
19229 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
19230 ;;
19231 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
19232 "h8300/Makefile":C) sed -n \
19233 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19234 /^srcdir = / s:$:/h8300:
19235 p
19236 }' \
19237 <Make-common.sim >h8300/Makesim1.tmp
19238 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
19239 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
19240 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
19241 <h8300/Makefile.sim >h8300/Makefile
19242 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
19243 ;;
19244 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
19245 "iq2000/Makefile":C) sed -n \
19246 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19247 /^srcdir = / s:$:/iq2000:
19248 p
19249 }' \
19250 <Make-common.sim >iq2000/Makesim1.tmp
19251 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >iq2000/Makesim2.tmp
19252 sed -e '/^## COMMON_PRE_/ r iq2000/Makesim1.tmp' \
19253 -e '/^## COMMON_POST_/ r iq2000/Makesim2.tmp' \
19254 <iq2000/Makefile.sim >iq2000/Makefile
19255 rm -f iq2000/Makesim1.tmp iq2000/Makesim2.tmp
19256 ;;
19257 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
19258 "lm32/Makefile":C) sed -n \
19259 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19260 /^srcdir = / s:$:/lm32:
19261 p
19262 }' \
19263 <Make-common.sim >lm32/Makesim1.tmp
19264 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >lm32/Makesim2.tmp
19265 sed -e '/^## COMMON_PRE_/ r lm32/Makesim1.tmp' \
19266 -e '/^## COMMON_POST_/ r lm32/Makesim2.tmp' \
19267 <lm32/Makefile.sim >lm32/Makefile
19268 rm -f lm32/Makesim1.tmp lm32/Makesim2.tmp
19269 ;;
19270 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
19271 "m32c/Makefile":C) sed -n \
19272 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19273 /^srcdir = / s:$:/m32c:
19274 p
19275 }' \
19276 <Make-common.sim >m32c/Makesim1.tmp
19277 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
19278 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
19279 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
19280 <m32c/Makefile.sim >m32c/Makefile
19281 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
19282 ;;
19283 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
19284 "m32r/Makefile":C) sed -n \
19285 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19286 /^srcdir = / s:$:/m32r:
19287 p
19288 }' \
19289 <Make-common.sim >m32r/Makesim1.tmp
19290 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32r/Makesim2.tmp
19291 sed -e '/^## COMMON_PRE_/ r m32r/Makesim1.tmp' \
19292 -e '/^## COMMON_POST_/ r m32r/Makesim2.tmp' \
19293 <m32r/Makefile.sim >m32r/Makefile
19294 rm -f m32r/Makesim1.tmp m32r/Makesim2.tmp
19295 ;;
19296 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
19297 "m68hc11/Makefile":C) sed -n \
19298 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19299 /^srcdir = / s:$:/m68hc11:
19300 p
19301 }' \
19302 <Make-common.sim >m68hc11/Makesim1.tmp
19303 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
19304 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
19305 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
19306 <m68hc11/Makefile.sim >m68hc11/Makefile
19307 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
19308 ;;
19309 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
19310 "mcore/Makefile":C) sed -n \
19311 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19312 /^srcdir = / s:$:/mcore:
19313 p
19314 }' \
19315 <Make-common.sim >mcore/Makesim1.tmp
19316 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
19317 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
19318 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
19319 <mcore/Makefile.sim >mcore/Makefile
19320 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
19321 ;;
19322 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
19323 "microblaze/Makefile":C) sed -n \
19324 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19325 /^srcdir = / s:$:/microblaze:
19326 p
19327 }' \
19328 <Make-common.sim >microblaze/Makesim1.tmp
19329 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
19330 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
19331 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
19332 <microblaze/Makefile.sim >microblaze/Makefile
19333 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
19334 ;;
19335 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
19336 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
19337 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
19338 "moxie/Makefile":C) sed -n \
19339 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19340 /^srcdir = / s:$:/moxie:
19341 p
19342 }' \
19343 <Make-common.sim >moxie/Makesim1.tmp
19344 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
19345 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
19346 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
19347 <moxie/Makefile.sim >moxie/Makefile
19348 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
19349 ;;
19350 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
19351 "msp430/Makefile":C) sed -n \
19352 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19353 /^srcdir = / s:$:/msp430:
19354 p
19355 }' \
19356 <Make-common.sim >msp430/Makesim1.tmp
19357 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
19358 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
19359 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
19360 <msp430/Makefile.sim >msp430/Makefile
19361 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
19362 ;;
19363 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
19364 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
19365 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
19366 "pru/Makefile":C) sed -n \
19367 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19368 /^srcdir = / s:$:/pru:
19369 p
19370 }' \
19371 <Make-common.sim >pru/Makesim1.tmp
19372 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
19373 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
19374 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
19375 <pru/Makefile.sim >pru/Makefile
19376 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
19377 ;;
19378 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
19379 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
19380 "rl78/Makefile":C) sed -n \
19381 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19382 /^srcdir = / s:$:/rl78:
19383 p
19384 }' \
19385 <Make-common.sim >rl78/Makesim1.tmp
19386 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
19387 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
19388 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
19389 <rl78/Makefile.sim >rl78/Makefile
19390 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
19391 ;;
19392 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
19393 "rx/Makefile":C) sed -n \
19394 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19395 /^srcdir = / s:$:/rx:
19396 p
19397 }' \
19398 <Make-common.sim >rx/Makesim1.tmp
19399 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
19400 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
19401 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
19402 <rx/Makefile.sim >rx/Makefile
19403 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
19404 ;;
19405 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
19406 "sh/Makefile":C) sed -n \
19407 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19408 /^srcdir = / s:$:/sh:
19409 p
19410 }' \
19411 <Make-common.sim >sh/Makesim1.tmp
19412 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
19413 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
19414 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
19415 <sh/Makefile.sim >sh/Makefile
19416 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
19417 ;;
19418 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
19419 "erc32/Makefile":C) sed -n \
19420 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19421 /^srcdir = / s:$:/erc32:
19422 p
19423 }' \
19424 <Make-common.sim >erc32/Makesim1.tmp
19425 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
19426 sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
19427 -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
19428 <erc32/Makefile.sim >erc32/Makefile
19429 rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
19430 ;;
19431 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
19432 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
19433 "example-synacor/Makefile":C) sed -n \
19434 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
19435 /^srcdir = / s:$:/example-synacor:
19436 p
19437 }' \
19438 <Make-common.sim >example-synacor/Makesim1.tmp
19439 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
19440 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
19441 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
19442 <example-synacor/Makefile.sim >example-synacor/Makefile
19443 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
19444 ;;
19445 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
19446
19447 esac
19448 done # for ac_tag
19449
19450
19451 as_fn_exit 0
19452 _ACEOF
19453 ac_clean_files=$ac_clean_files_save
19454
19455 test $ac_write_fail = 0 ||
19456 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19457
19458
19459 # configure is writing to config.log, and then calls config.status.
19460 # config.status does its own redirection, appending to config.log.
19461 # Unfortunately, on DOS this fails, as config.log is still kept open
19462 # by configure, so config.status won't be able to write to it; its
19463 # output is simply discarded. So we exec the FD to /dev/null,
19464 # effectively closing config.log, so it can be properly (re)opened and
19465 # appended to by config.status. When coming back to configure, we
19466 # need to make the FD available again.
19467 if test "$no_create" != yes; then
19468 ac_cs_success=:
19469 ac_config_status_args=
19470 test "$silent" = yes &&
19471 ac_config_status_args="$ac_config_status_args --quiet"
19472 exec 5>/dev/null
19473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19474 exec 5>>config.log
19475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19476 # would make configure fail if this is the last instruction.
19477 $ac_cs_success || as_fn_exit 1
19478 fi
19479
19480 #
19481 # CONFIG_SUBDIRS section.
19482 #
19483 if test "$no_recursion" != yes; then
19484
19485 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19486 # so they do not pile up.
19487 ac_sub_configure_args=
19488 ac_prev=
19489 eval "set x $ac_configure_args"
19490 shift
19491 for ac_arg
19492 do
19493 if test -n "$ac_prev"; then
19494 ac_prev=
19495 continue
19496 fi
19497 case $ac_arg in
19498 -cache-file | --cache-file | --cache-fil | --cache-fi \
19499 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19500 ac_prev=cache_file ;;
19501 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19502 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19503 | --c=*)
19504 ;;
19505 --config-cache | -C)
19506 ;;
19507 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19508 ac_prev=srcdir ;;
19509 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19510 ;;
19511 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19512 ac_prev=prefix ;;
19513 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19514 ;;
19515 --disable-option-checking)
19516 ;;
19517 *)
19518 case $ac_arg in
19519 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19520 esac
19521 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19522 esac
19523 done
19524
19525 # Always prepend --prefix to ensure using the same prefix
19526 # in subdir configurations.
19527 ac_arg="--prefix=$prefix"
19528 case $ac_arg in
19529 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19530 esac
19531 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19532
19533 # Pass --silent
19534 if test "$silent" = yes; then
19535 ac_sub_configure_args="--silent $ac_sub_configure_args"
19536 fi
19537
19538 # Always prepend --disable-option-checking to silence warnings, since
19539 # different subdirs can have different --enable and --with options.
19540 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19541
19542 ac_popdir=`pwd`
19543 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19544
19545 # Do not complain, so a configure script can configure whichever
19546 # parts of a large source tree are present.
19547 test -d "$srcdir/$ac_dir" || continue
19548
19549 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19550 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19551 $as_echo "$ac_msg" >&6
19552 as_dir="$ac_dir"; as_fn_mkdir_p
19553 ac_builddir=.
19554
19555 case "$ac_dir" in
19556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19557 *)
19558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19559 # A ".." for each directory in $ac_dir_suffix.
19560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19561 case $ac_top_builddir_sub in
19562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19564 esac ;;
19565 esac
19566 ac_abs_top_builddir=$ac_pwd
19567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19568 # for backward compatibility:
19569 ac_top_builddir=$ac_top_build_prefix
19570
19571 case $srcdir in
19572 .) # We are building in place.
19573 ac_srcdir=.
19574 ac_top_srcdir=$ac_top_builddir_sub
19575 ac_abs_top_srcdir=$ac_pwd ;;
19576 [\\/]* | ?:[\\/]* ) # Absolute name.
19577 ac_srcdir=$srcdir$ac_dir_suffix;
19578 ac_top_srcdir=$srcdir
19579 ac_abs_top_srcdir=$srcdir ;;
19580 *) # Relative name.
19581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19582 ac_top_srcdir=$ac_top_build_prefix$srcdir
19583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19584 esac
19585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19586
19587
19588 cd "$ac_dir"
19589
19590 # Check for guested configure; otherwise get Cygnus style configure.
19591 if test -f "$ac_srcdir/configure.gnu"; then
19592 ac_sub_configure=$ac_srcdir/configure.gnu
19593 elif test -f "$ac_srcdir/configure"; then
19594 ac_sub_configure=$ac_srcdir/configure
19595 elif test -f "$ac_srcdir/configure.in"; then
19596 # This should be Cygnus configure.
19597 ac_sub_configure=$ac_aux_dir/configure
19598 else
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19601 ac_sub_configure=
19602 fi
19603
19604 # The recursion is here.
19605 if test -n "$ac_sub_configure"; then
19606 # Make the cache file name correct relative to the subdirectory.
19607 case $cache_file in
19608 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19609 *) # Relative name.
19610 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19611 esac
19612
19613 { $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
19614 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19615 # The eval makes quoting arguments work.
19616 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19617 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19618 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19619 fi
19620
19621 cd "$ac_popdir"
19622 done
19623 fi
19624 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19626 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19627 fi
19628