]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/configure
sim: bfin: move pkg-config & SDL checks to common code
[thirdparty/binutils-gdb.git] / sim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sim 0.
4 #
5 # Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='sim'
593 PACKAGE_TARNAME='sim'
594 PACKAGE_VERSION='0'
595 PACKAGE_STRING='sim 0'
596 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim'
597 PACKAGE_URL='https://sourceware.org/gdb/wiki/Sim/'
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_func_list=
637 enable_option_checking=no
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 LTLIBOBJS
641 SIM_RX_CYCLE_ACCURATE_FLAGS
642 sim_reserved_bits
643 sim_default_model
644 sim_scache
645 sim_float
646 sim_bitsize
647 SIM_INLINE
648 sim_hw_sockser
649 sim_hw_cflags
650 SIM_ENABLE_HW_FALSE
651 SIM_ENABLE_HW_TRUE
652 cgen
653 cgendir
654 CGEN_MAINT
655 SIM_ENABLE_IGEN_FALSE
656 SIM_ENABLE_IGEN_TRUE
657 subdirs
658 SIM_COMMON_BUILD_FALSE
659 SIM_COMMON_BUILD_TRUE
660 SIM_SUBDIRS
661 SIM_PRIMARY_TARGET
662 AM_BACKSLASH
663 AM_DEFAULT_VERBOSITY
664 AM_DEFAULT_V
665 AM_V
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__quote
674 am__include
675 DEPDIR
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 SDL_LIBS
698 SDL_CFLAGS
699 lt_cv_dlopen_libs
700 OTOOL64
701 OTOOL
702 LIPO
703 NMEDIT
704 DSYMUTIL
705 AWK
706 STRIP
707 OBJDUMP
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 SED
715 LIBTOOL
716 PLUGINS_FALSE
717 PLUGINS_TRUE
718 zlibinc
719 zlibdir
720 CATOBJEXT
721 GENCAT
722 INSTOBJEXT
723 DATADIRNAME
724 CATALOGS
725 POSUB
726 GMSGFMT
727 XGETTEXT
728 INCINTL
729 LIBINTL_DEP
730 LIBINTL
731 USE_NLS
732 LIBOBJS
733 C_DIALECT
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 RANLIB
738 AR
739 LDFLAGS_FOR_BUILD
740 CFLAGS_FOR_BUILD
741 RANLIB_FOR_BUILD
742 CC_FOR_BUILD
743 AR_FOR_BUILD
744 DTC
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 EGREP
749 GREP
750 CPP
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
757 CC
758 target_os
759 target_vendor
760 target_cpu
761 target
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 REPORT_BUGS_TEXI
771 REPORT_BUGS_TO
772 PKGVERSION
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL
811 WERROR_CFLAGS
812 WARN_CFLAGS'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 with_pkgversion
817 with_bugurl
818 with_system_zlib
819 enable_plugins
820 enable_shared
821 enable_static
822 with_pic
823 enable_fast_install
824 with_gnu_ld
825 enable_libtool_lock
826 enable_maintainer_mode
827 enable_dependency_tracking
828 enable_silent_rules
829 enable_sim
830 enable_example_sims
831 enable_targets
832 enable_sim_alignment
833 enable_sim_assert
834 enable_cgen_maint
835 enable_sim_debug
836 enable_sim_endian
837 enable_sim_environment
838 enable_sim_hardware
839 enable_sim_inline
840 enable_sim_profile
841 enable_sim_stdio
842 enable_sim_trace
843 enable_werror
844 enable_build_warnings
845 enable_sim_build_warnings
846 enable_sim_rx_cycle_accurate
847 '
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP
857 PKG_CONFIG
858 PKG_CONFIG_PATH
859 PKG_CONFIG_LIBDIR
860 SDL_CFLAGS
861 SDL_LIBS'
862 ac_subdirs_all='bfin
863 bpf
864 cris
865 frv
866 iq2000
867 lm32
868 m32r
869 mips
870 mn10300
871 or1k
872 riscv
873 erc32
874 ppc
875 v850'
876
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
934 fi
935
936 case $ac_option in
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *=) ac_optarg= ;;
939 *) ac_optarg=yes ;;
940 esac
941
942 # Accept the important Cygnus configure options, so we can diagnose typos.
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1170
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1181
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1186
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1191
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1198
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1203
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1206
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1209
1210 -with-* | --with-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=\$ac_optarg ;;
1225
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1241
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1245
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1252
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1259
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1262 ;;
1263
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 esac
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1273
1274 *)
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280 ;;
1281
1282 esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 esac
1296 fi
1297
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1303 do
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1306 case $ac_val in
1307 */ )
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1310 esac
1311 # Be sure to have absolute directory names.
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1332 fi
1333 fi
1334
1335 ac_tool_prefix=
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338 test "$silent" = yes && exec 6>/dev/null
1339
1340
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 as_fn_error $? "working directory cannot be determined"
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 as_fn_error $? "pwd does not report name of working directory"
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
1376 srcdir=$ac_confdir
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 srcdir=..
1379 fi
1380 else
1381 ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1414 cat <<_ACEOF
1415 \`configure' configures sim 0 to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking ...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/sim]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 --target=TARGET configure for building compilers for TARGET [HOST]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive ) echo "Configuration of sim 0:";;
1487 esac
1488 cat <<\_ACEOF
1489
1490 Optional Features:
1491 --disable-option-checking ignore unrecognized --enable/--with options
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-plugins Enable support for plugins
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --disable-libtool-lock avoid locking (might break parallel builds)
1500 --enable-maintainer-mode
1501 enable make rules and dependencies not useful (and
1502 sometimes confusing) to the casual installer
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
1507 --enable-silent-rules less verbose build output (undo: "make V=1")
1508 --disable-silent-rules verbose build output (undo: "make V=0")
1509 --enable-sim Enable the GNU simulator
1510 --enable-example-sims enable example GNU simulators
1511 --enable-targets alternative target configurations
1512 --enable-sim-alignment=align
1513 Specify strict, nonstrict or forced alignment of
1514 memory accesses
1515 --enable-sim-assert Specify whether to perform random assertions
1516 --enable-cgen-maint=DIR build cgen generated files
1517 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1518 itself)
1519 --enable-sim-endian=endian
1520 Specify target byte endian orientation
1521 --enable-sim-environment=environment
1522 Specify mixed, user, virtual or operating
1523 environment
1524 --enable-sim-hardware Whether to enable hardware/device simulation
1525 --enable-sim-inline=inlines
1526 Specify which functions should be inlined
1527 --enable-sim-profile=opts
1528 Enable profiling flags
1529 --enable-sim-stdio Specify whether to use stdio for console
1530 input/output
1531 --enable-sim-trace=opts Enable tracing of simulated programs
1532 --enable-werror treat compile warnings as errors
1533 --enable-build-warnings enable build-time compiler warnings if gcc is used
1534 --enable-sim-build-warnings
1535 enable SIM specific build-time compiler warnings if
1536 gcc is used
1537 --disable-sim-rx-cycle-accurate
1538 Disable cycle accurate simulation (faster runtime)
1539
1540 Optional Packages:
1541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1543 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1544 --with-bugurl=URL Direct users to URL to report a bug
1545 --with-system-zlib use installed libz
1546 --with-pic try to use only PIC/non-PIC objects [default=use
1547 both]
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CPP C preprocessor
1559 PKG_CONFIG path to pkg-config utility
1560 PKG_CONFIG_PATH
1561 directories to add to pkg-config's search path
1562 PKG_CONFIG_LIBDIR
1563 path overriding pkg-config's built-in search path
1564 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1565 SDL_LIBS linker flags for SDL, overriding pkg-config
1566
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1569
1570 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
1571 sim home page: <https://sourceware.org/gdb/wiki/Sim/>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 continue
1582 ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601 .) # We are building in place.
1602 ac_srcdir=.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1609 *) # Relative name.
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1624 else
1625 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 fi || ac_status=$?
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1628 done
1629 fi
1630
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1633 cat <<\_ACEOF
1634 sim configure 0
1635 generated by GNU Autoconf 2.69
1636
1637 Copyright (C) 2012 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641 exit
1642 fi
1643
1644 ## ------------------------ ##
1645 ## Autoconf initialization. ##
1646 ## ------------------------ ##
1647
1648 # ac_fn_c_try_compile LINENO
1649 # --------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_compile ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext
1655 if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.$ac_objext; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_compile
1685
1686 # ac_fn_c_try_cpp LINENO
1687 # ----------------------
1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_cpp ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_cpp conftest.$ac_ext"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1705 fi
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } > conftest.i && {
1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 }; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717 fi
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_cpp
1722
1723 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1726 # the include files in INCLUDES and setting the cache variable VAR
1727 # accordingly.
1728 ac_fn_c_check_header_mongrel ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if eval \${$3+:} false; then :
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 fi
1737 eval ac_res=\$$3
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 else
1741 # Is the header compilable?
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1743 $as_echo_n "checking $2 usability... " >&6; }
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 $4
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 ac_header_compiler=yes
1751 else
1752 ac_header_compiler=no
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1756 $as_echo "$ac_header_compiler" >&6; }
1757
1758 # Is the header present?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1760 $as_echo_n "checking $2 presence... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_cpp "$LINENO"; then :
1766 ac_header_preproc=yes
1767 else
1768 ac_header_preproc=no
1769 fi
1770 rm -f conftest.err conftest.i conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1772 $as_echo "$ac_header_preproc" >&6; }
1773
1774 # So? What about this header?
1775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1776 yes:no: )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1778 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782 no:yes:* )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1784 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1786 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1788 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1790 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 ( $as_echo "## -------------------------------------------------------------------------------------- ##
1794 ## Report this to https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim ##
1795 ## -------------------------------------------------------------------------------------- ##"
1796 ) | sed "s/^/$as_me: WARNING: /" >&2
1797 ;;
1798 esac
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 eval "$3=\$ac_header_compiler"
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_header_mongrel
1813
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=$ac_status
1849 fi
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 as_fn_set_status $ac_retval
1853
1854 } # ac_fn_c_try_run
1855
1856 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists and can be compiled using the include files in
1859 # INCLUDES, setting the cache variable VAR accordingly.
1860 ac_fn_c_check_header_compile ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_header_compile
1886
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1907 fi
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 test -x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1
1922 fi
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931 } # ac_fn_c_try_link
1932
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1949
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1954
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1960
1961 #undef $2
1962
1963 /* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined __stub_$2 || defined __stub___$2
1974 choke me
1975 #endif
1976
1977 int
1978 main ()
1979 {
1980 return $2 ();
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986 eval "$3=yes"
1987 else
1988 eval "$3=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_func
1999
2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001 # ----------------------------------------------------
2002 # Tries to find if the field MEMBER exists in type AGGR, after including
2003 # INCLUDES, setting cache variable VAR accordingly.
2004 ac_fn_c_check_member ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008 $as_echo_n "checking for $2.$3... " >&6; }
2009 if eval \${$4+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $5
2015 int
2016 main ()
2017 {
2018 static $2 ac_aggr;
2019 if (ac_aggr.$3)
2020 return 0;
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$4=yes"
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $5
2031 int
2032 main ()
2033 {
2034 static $2 ac_aggr;
2035 if (sizeof ac_aggr.$3)
2036 return 0;
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043 else
2044 eval "$4=no"
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 eval ac_res=\$$4
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_c_check_member
2056
2057 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2058 # ---------------------------------------------
2059 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2060 # accordingly.
2061 ac_fn_c_check_decl ()
2062 {
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 as_decl_name=`echo $2|sed 's/ *(.*//'`
2065 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2067 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 $4
2074 int
2075 main ()
2076 {
2077 #ifndef $as_decl_name
2078 #ifdef __cplusplus
2079 (void) $as_decl_use;
2080 #else
2081 (void) $as_decl_name;
2082 #endif
2083 #endif
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 eval "$3=yes"
2091 else
2092 eval "$3=no"
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 fi
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101 } # ac_fn_c_check_decl
2102
2103 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2104 # -------------------------------------------
2105 # Tests whether TYPE exists after having included INCLUDES, setting cache
2106 # variable VAR accordingly.
2107 ac_fn_c_check_type ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 eval "$3=no"
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 $4
2119 int
2120 main ()
2121 {
2122 if (sizeof ($2))
2123 return 0;
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $4
2132 int
2133 main ()
2134 {
2135 if (sizeof (($2)))
2136 return 0;
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142
2143 else
2144 eval "$3=yes"
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155 } # ac_fn_c_check_type
2156 cat >config.log <<_ACEOF
2157 This file contains any messages produced by compilers while
2158 running configure, to aid debugging if configure makes a mistake.
2159
2160 It was created by sim $as_me 0, which was
2161 generated by GNU Autoconf 2.69. Invocation command line was
2162
2163 $ $0 $@
2164
2165 _ACEOF
2166 exec 5>>config.log
2167 {
2168 cat <<_ASUNAME
2169 ## --------- ##
2170 ## Platform. ##
2171 ## --------- ##
2172
2173 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2178
2179 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2181
2182 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2183 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2184 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2186 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2187 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2188 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189
2190 _ASUNAME
2191
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 $as_echo "PATH: $as_dir"
2198 done
2199 IFS=$as_save_IFS
2200
2201 } >&5
2202
2203 cat >&5 <<_ACEOF
2204
2205
2206 ## ----------- ##
2207 ## Core tests. ##
2208 ## ----------- ##
2209
2210 _ACEOF
2211
2212
2213 # Keep a trace of the command line.
2214 # Strip out --no-create and --no-recursion so they do not pile up.
2215 # Strip out --silent because we don't want to record it for future runs.
2216 # Also quote any args containing shell meta-characters.
2217 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_configure_args=
2219 ac_configure_args0=
2220 ac_configure_args1=
2221 ac_must_keep_next=false
2222 for ac_pass in 1 2
2223 do
2224 for ac_arg
2225 do
2226 case $ac_arg in
2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229 | -silent | --silent | --silen | --sile | --sil)
2230 continue ;;
2231 *\'*)
2232 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 esac
2234 case $ac_pass in
2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2236 2)
2237 as_fn_append ac_configure_args1 " '$ac_arg'"
2238 if test $ac_must_keep_next = true; then
2239 ac_must_keep_next=false # Got value, back to normal.
2240 else
2241 case $ac_arg in
2242 *=* | --config-cache | -C | -disable-* | --disable-* \
2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245 | -with-* | --with-* | -without-* | --without-* | --x)
2246 case "$ac_configure_args0 " in
2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248 esac
2249 ;;
2250 -* ) ac_must_keep_next=true ;;
2251 esac
2252 fi
2253 as_fn_append ac_configure_args " '$ac_arg'"
2254 ;;
2255 esac
2256 done
2257 done
2258 { ac_configure_args0=; unset ac_configure_args0;}
2259 { ac_configure_args1=; unset ac_configure_args1;}
2260
2261 # When interrupted or exit'd, cleanup temporary files, and complete
2262 # config.log. We remove comments because anyway the quotes in there
2263 # would cause problems or look ugly.
2264 # WARNING: Use '\'' to represent an apostrophe within the trap.
2265 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266 trap 'exit_status=$?
2267 # Save into config.log some information that might help in debugging.
2268 {
2269 echo
2270
2271 $as_echo "## ---------------- ##
2272 ## Cache variables. ##
2273 ## ---------------- ##"
2274 echo
2275 # The following way of writing the cache mishandles newlines in values,
2276 (
2277 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2278 eval ac_val=\$$ac_var
2279 case $ac_val in #(
2280 *${as_nl}*)
2281 case $ac_var in #(
2282 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2283 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 esac
2285 case $ac_var in #(
2286 _ | IFS | as_nl) ;; #(
2287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2288 *) { eval $ac_var=; unset $ac_var;} ;;
2289 esac ;;
2290 esac
2291 done
2292 (set) 2>&1 |
2293 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2294 *${as_nl}ac_space=\ *)
2295 sed -n \
2296 "s/'\''/'\''\\\\'\'''\''/g;
2297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298 ;; #(
2299 *)
2300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301 ;;
2302 esac |
2303 sort
2304 )
2305 echo
2306
2307 $as_echo "## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##"
2310 echo
2311 for ac_var in $ac_subst_vars
2312 do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2320
2321 if test -n "$ac_subst_files"; then
2322 $as_echo "## ------------------- ##
2323 ## File substitutions. ##
2324 ## ------------------- ##"
2325 echo
2326 for ac_var in $ac_subst_files
2327 do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2335 fi
2336
2337 if test -s confdefs.h; then
2338 $as_echo "## ----------- ##
2339 ## confdefs.h. ##
2340 ## ----------- ##"
2341 echo
2342 cat confdefs.h
2343 echo
2344 fi
2345 test "$ac_signal" != 0 &&
2346 $as_echo "$as_me: caught signal $ac_signal"
2347 $as_echo "$as_me: exit $exit_status"
2348 } >&5
2349 rm -f core *.core core.conftest.* &&
2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351 exit $exit_status
2352 ' 0
2353 for ac_signal in 1 2 13 15; do
2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 done
2356 ac_signal=0
2357
2358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2359 rm -f -r conftest* confdefs.h
2360
2361 $as_echo "/* confdefs.h */" > confdefs.h
2362
2363 # Predefined preprocessor variables.
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_NAME "$PACKAGE_NAME"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_STRING "$PACKAGE_STRING"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_URL "$PACKAGE_URL"
2387 _ACEOF
2388
2389
2390 # Let the site file select an alternate cache file if it wants to.
2391 # Prefer an explicitly selected file to automatically selected ones.
2392 ac_site_file1=NONE
2393 ac_site_file2=NONE
2394 if test -n "$CONFIG_SITE"; then
2395 # We do not want a PATH search for config.site.
2396 case $CONFIG_SITE in #((
2397 -*) ac_site_file1=./$CONFIG_SITE;;
2398 */*) ac_site_file1=$CONFIG_SITE;;
2399 *) ac_site_file1=./$CONFIG_SITE;;
2400 esac
2401 elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
2404 else
2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2407 fi
2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409 do
2410 test "x$ac_site_file" = xNONE && continue
2411 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2415 . "$ac_site_file" \
2416 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2418 as_fn_error $? "failed to load site script $ac_site_file
2419 See \`config.log' for more details" "$LINENO" 5; }
2420 fi
2421 done
2422
2423 if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special files
2425 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2426 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428 $as_echo "$as_me: loading cache $cache_file" >&6;}
2429 case $cache_file in
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2432 esac
2433 fi
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436 $as_echo "$as_me: creating cache $cache_file" >&6;}
2437 >$cache_file
2438 fi
2439
2440 as_fn_append ac_header_list " dlfcn.h"
2441 as_fn_append ac_header_list " fcntl.h"
2442 as_fn_append ac_header_list " fpu_control.h"
2443 as_fn_append ac_header_list " termios.h"
2444 as_fn_append ac_header_list " unistd.h"
2445 as_fn_append ac_header_list " utime.h"
2446 as_fn_append ac_header_list " linux/if_tun.h"
2447 as_fn_append ac_header_list " linux/mii.h"
2448 as_fn_append ac_header_list " linux/types.h"
2449 as_fn_append ac_header_list " net/if.h"
2450 as_fn_append ac_header_list " netinet/in.h"
2451 as_fn_append ac_header_list " netinet/tcp.h"
2452 as_fn_append ac_header_list " sys/ioctl.h"
2453 as_fn_append ac_header_list " sys/mman.h"
2454 as_fn_append ac_header_list " sys/mount.h"
2455 as_fn_append ac_header_list " sys/param.h"
2456 as_fn_append ac_header_list " sys/resource.h"
2457 as_fn_append ac_header_list " sys/socket.h"
2458 as_fn_append ac_header_list " sys/stat.h"
2459 as_fn_append ac_header_list " sys/statfs.h"
2460 as_fn_append ac_header_list " sys/termio.h"
2461 as_fn_append ac_header_list " sys/termios.h"
2462 as_fn_append ac_header_list " sys/types.h"
2463 as_fn_append ac_header_list " sys/vfs.h"
2464 as_fn_append ac_func_list " __setfpucw"
2465 as_fn_append ac_func_list " access"
2466 as_fn_append ac_func_list " aint"
2467 as_fn_append ac_func_list " anint"
2468 as_fn_append ac_func_list " cfgetispeed"
2469 as_fn_append ac_func_list " cfgetospeed"
2470 as_fn_append ac_func_list " cfsetispeed"
2471 as_fn_append ac_func_list " cfsetospeed"
2472 as_fn_append ac_func_list " chdir"
2473 as_fn_append ac_func_list " chmod"
2474 as_fn_append ac_func_list " dup"
2475 as_fn_append ac_func_list " dup2"
2476 as_fn_append ac_func_list " execv"
2477 as_fn_append ac_func_list " execve"
2478 as_fn_append ac_func_list " fcntl"
2479 as_fn_append ac_func_list " fork"
2480 as_fn_append ac_func_list " fstat"
2481 as_fn_append ac_func_list " fstatfs"
2482 as_fn_append ac_func_list " ftruncate"
2483 as_fn_append ac_func_list " getdirentries"
2484 as_fn_append ac_func_list " getegid"
2485 as_fn_append ac_func_list " geteuid"
2486 as_fn_append ac_func_list " getgid"
2487 as_fn_append ac_func_list " getpid"
2488 as_fn_append ac_func_list " getppid"
2489 as_fn_append ac_func_list " getrusage"
2490 as_fn_append ac_func_list " gettimeofday"
2491 as_fn_append ac_func_list " getuid"
2492 as_fn_append ac_func_list " ioctl"
2493 as_fn_append ac_func_list " kill"
2494 as_fn_append ac_func_list " link"
2495 as_fn_append ac_func_list " lseek"
2496 as_fn_append ac_func_list " mmap"
2497 as_fn_append ac_func_list " munmap"
2498 as_fn_append ac_func_list " pipe"
2499 as_fn_append ac_func_list " posix_fallocate"
2500 as_fn_append ac_func_list " pread"
2501 as_fn_append ac_func_list " rmdir"
2502 as_fn_append ac_func_list " setregid"
2503 as_fn_append ac_func_list " setreuid"
2504 as_fn_append ac_func_list " setgid"
2505 as_fn_append ac_func_list " setuid"
2506 as_fn_append ac_func_list " sigaction"
2507 as_fn_append ac_func_list " sigprocmask"
2508 as_fn_append ac_func_list " sqrt"
2509 as_fn_append ac_func_list " stat"
2510 as_fn_append ac_func_list " strsignal"
2511 as_fn_append ac_func_list " symlink"
2512 as_fn_append ac_func_list " tcdrain"
2513 as_fn_append ac_func_list " tcflow"
2514 as_fn_append ac_func_list " tcflush"
2515 as_fn_append ac_func_list " tcgetattr"
2516 as_fn_append ac_func_list " tcgetpgrp"
2517 as_fn_append ac_func_list " tcsendbreak"
2518 as_fn_append ac_func_list " tcsetattr"
2519 as_fn_append ac_func_list " tcsetpgrp"
2520 as_fn_append ac_func_list " time"
2521 as_fn_append ac_func_list " truncate"
2522 as_fn_append ac_func_list " umask"
2523 as_fn_append ac_func_list " unlink"
2524 as_fn_append ac_func_list " utime"
2525 # Check that the precious variables saved in the cache have kept the same
2526 # value.
2527 ac_cache_corrupted=false
2528 for ac_var in $ac_precious_vars; do
2529 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2530 eval ac_new_set=\$ac_env_${ac_var}_set
2531 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2532 eval ac_new_val=\$ac_env_${ac_var}_value
2533 case $ac_old_set,$ac_new_set in
2534 set,)
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2536 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2537 ac_cache_corrupted=: ;;
2538 ,set)
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2540 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2541 ac_cache_corrupted=: ;;
2542 ,);;
2543 *)
2544 if test "x$ac_old_val" != "x$ac_new_val"; then
2545 # differences in whitespace do not lead to failure.
2546 ac_old_val_w=`echo x $ac_old_val`
2547 ac_new_val_w=`echo x $ac_new_val`
2548 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2550 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2551 ac_cache_corrupted=:
2552 else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2554 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2555 eval $ac_var=\$ac_old_val
2556 fi
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2558 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2560 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2561 fi;;
2562 esac
2563 # Pass precious variables to config.status.
2564 if test "$ac_new_set" = set; then
2565 case $ac_new_val in
2566 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2567 *) ac_arg=$ac_var=$ac_new_val ;;
2568 esac
2569 case " $ac_configure_args " in
2570 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2571 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2572 esac
2573 fi
2574 done
2575 if $ac_cache_corrupted; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2579 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2580 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2581 fi
2582 ## -------------------- ##
2583 ## Main body of script. ##
2584 ## -------------------- ##
2585
2586 ac_ext=c
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591
2592
2593
2594
2595
2596
2597
2598
2599 # Check whether --with-pkgversion was given.
2600 if test "${with_pkgversion+set}" = set; then :
2601 withval=$with_pkgversion; case "$withval" in
2602 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2603 no) PKGVERSION= ;;
2604 *) PKGVERSION="($withval) " ;;
2605 esac
2606 else
2607 PKGVERSION="(SIM) "
2608
2609 fi
2610
2611
2612
2613
2614 cat >>confdefs.h <<_ACEOF
2615 #define PKGVERSION "$PKGVERSION"
2616 _ACEOF
2617
2618
2619
2620 # Check whether --with-bugurl was given.
2621 if test "${with_bugurl+set}" = set; then :
2622 withval=$with_bugurl; case "$withval" in
2623 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2624 no) BUGURL=
2625 ;;
2626 *) BUGURL="$withval"
2627 ;;
2628 esac
2629 else
2630 BUGURL="$PACKAGE_BUGREPORT"
2631
2632 fi
2633
2634 case ${BUGURL} in
2635 "")
2636 REPORT_BUGS_TO=
2637 REPORT_BUGS_TEXI=
2638 ;;
2639 *)
2640 REPORT_BUGS_TO="<$BUGURL>"
2641 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2642 ;;
2643 esac;
2644
2645
2646
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2650 _ACEOF
2651
2652
2653 ac_config_headers="$ac_config_headers config.h"
2654
2655
2656 ac_aux_dir=
2657 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2658 if test -f "$ac_dir/install-sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install-sh -c"
2661 break
2662 elif test -f "$ac_dir/install.sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install.sh -c"
2665 break
2666 elif test -f "$ac_dir/shtool"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/shtool install -c"
2669 break
2670 fi
2671 done
2672 if test -z "$ac_aux_dir"; then
2673 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2674 fi
2675
2676 # These three variables are undocumented and unsupported,
2677 # and are intended to be withdrawn in a future Autoconf release.
2678 # They can cause serious problems if a builder's source tree is in a directory
2679 # whose full name contains unusual characters.
2680 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2681 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2682 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2683
2684
2685 # Make sure we can run config.sub.
2686 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2687 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2688
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2690 $as_echo_n "checking build system type... " >&6; }
2691 if ${ac_cv_build+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 ac_build_alias=$build_alias
2695 test "x$ac_build_alias" = x &&
2696 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2697 test "x$ac_build_alias" = x &&
2698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2699 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2701
2702 fi
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2704 $as_echo "$ac_cv_build" >&6; }
2705 case $ac_cv_build in
2706 *-*-*) ;;
2707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2708 esac
2709 build=$ac_cv_build
2710 ac_save_IFS=$IFS; IFS='-'
2711 set x $ac_cv_build
2712 shift
2713 build_cpu=$1
2714 build_vendor=$2
2715 shift; shift
2716 # Remember, the first character of IFS is used to create $*,
2717 # except with old shells:
2718 build_os=$*
2719 IFS=$ac_save_IFS
2720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2721
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2724 $as_echo_n "checking host system type... " >&6; }
2725 if ${ac_cv_host+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test "x$host_alias" = x; then
2729 ac_cv_host=$ac_cv_build
2730 else
2731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2733 fi
2734
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2737 $as_echo "$ac_cv_host" >&6; }
2738 case $ac_cv_host in
2739 *-*-*) ;;
2740 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2741 esac
2742 host=$ac_cv_host
2743 ac_save_IFS=$IFS; IFS='-'
2744 set x $ac_cv_host
2745 shift
2746 host_cpu=$1
2747 host_vendor=$2
2748 shift; shift
2749 # Remember, the first character of IFS is used to create $*,
2750 # except with old shells:
2751 host_os=$*
2752 IFS=$ac_save_IFS
2753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2754
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2757 $as_echo_n "checking target system type... " >&6; }
2758 if ${ac_cv_target+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test "x$target_alias" = x; then
2762 ac_cv_target=$ac_cv_host
2763 else
2764 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2766 fi
2767
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2770 $as_echo "$ac_cv_target" >&6; }
2771 case $ac_cv_target in
2772 *-*-*) ;;
2773 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2774 esac
2775 target=$ac_cv_target
2776 ac_save_IFS=$IFS; IFS='-'
2777 set x $ac_cv_target
2778 shift
2779 target_cpu=$1
2780 target_vendor=$2
2781 shift; shift
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2784 target_os=$*
2785 IFS=$ac_save_IFS
2786 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2787
2788
2789 # The aliases save the names the user supplied, while $host etc.
2790 # will get canonicalized.
2791 test -n "$target_alias" &&
2792 test "$program_prefix$program_suffix$program_transform_name" = \
2793 NONENONEs,x,x, &&
2794 program_prefix=${target_alias}-
2795 # Expand $ac_aux_dir to an absolute path.
2796 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 CC=$ac_cv_prog_CC
2832 if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2838 fi
2839
2840
2841 fi
2842 if test -z "$ac_cv_prog_CC"; then
2843 ac_ct_CC=$CC
2844 # Extract the first word of "gcc", so it can be a program name with args.
2845 set dummy gcc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_ac_ct_CC="gcc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874 $as_echo "$ac_ct_CC" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880 if test "x$ac_ct_CC" = x; then
2881 CC=""
2882 else
2883 case $cross_compiling:$ac_tool_warned in
2884 yes:)
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889 CC=$ac_ct_CC
2890 fi
2891 else
2892 CC="$ac_cv_prog_CC"
2893 fi
2894
2895 if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_CC="${ac_tool_prefix}cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 fi
2935 fi
2936 if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 ac_prog_rejected=no
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2957 continue
2958 fi
2959 ac_cv_prog_CC="cc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy $ac_cv_prog_CC
2970 shift
2971 if test $# != 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2975 shift
2976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2977 fi
2978 fi
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 fi
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 for ac_prog in cl.exe
2995 do
2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009 IFS=$as_save_IFS
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 break 2
3016 fi
3017 done
3018 done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033 test -n "$CC" && break
3034 done
3035 fi
3036 if test -z "$CC"; then
3037 ac_ct_CC=$CC
3038 for ac_prog in cl.exe
3039 do
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_ac_ct_CC="$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 test -n "$ac_ct_CC" && break
3078 done
3079
3080 if test "x$ac_ct_CC" = x; then
3081 CC=""
3082 else
3083 case $cross_compiling:$ac_tool_warned in
3084 yes:)
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3088 esac
3089 CC=$ac_ct_CC
3090 fi
3091 fi
3092
3093 fi
3094
3095
3096 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $? "no acceptable C compiler found in \$PATH
3099 See \`config.log' for more details" "$LINENO" 5; }
3100
3101 # Provide some information about the compiler.
3102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3103 set X $ac_compile
3104 ac_compiler=$2
3105 for ac_option in --version -v -V -qversion; do
3106 { { ac_try="$ac_compiler $ac_option >&5"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3114 ac_status=$?
3115 if test -s conftest.err; then
3116 sed '10a\
3117 ... rest of stderr output deleted ...
3118 10q' conftest.err >conftest.er1
3119 cat conftest.er1 >&5
3120 fi
3121 rm -f conftest.er1 conftest.err
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3124 done
3125
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3128
3129 int
3130 main ()
3131 {
3132
3133 ;
3134 return 0;
3135 }
3136 _ACEOF
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3141 # of exeext.
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3143 $as_echo_n "checking whether the C compiler works... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3145
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3148
3149 ac_rmfiles=
3150 for ac_file in $ac_files
3151 do
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155 esac
3156 done
3157 rm -f $ac_rmfiles
3158
3159 if { { ac_try="$ac_link_default"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link_default") 2>&5
3167 ac_status=$?
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3174 # Autoconf.
3175 for ac_file in $ac_files ''
3176 do
3177 test -f "$ac_file" || continue
3178 case $ac_file in
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3180 ;;
3181 [ab].out )
3182 # We found the default executable, but exeext='' is most
3183 # certainly right.
3184 break;;
3185 *.* )
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3187 then :; else
3188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 fi
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3194 # actually working.
3195 break;;
3196 * )
3197 break;;
3198 esac
3199 done
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3201
3202 else
3203 ac_file=''
3204 fi
3205 if test -z "$ac_file"; then :
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error 77 "C compiler cannot create executables
3214 See \`config.log' for more details" "$LINENO" 5; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3220 $as_echo_n "checking for C compiler default output file name... " >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3222 $as_echo "$ac_file" >&6; }
3223 ac_exeext=$ac_cv_exeext
3224
3225 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3226 ac_clean_files=$ac_clean_files_save
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3228 $as_echo_n "checking for suffix of executables... " >&6; }
3229 if { { ac_try="$ac_link"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3237 ac_status=$?
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; then :
3240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3242 # work properly (i.e., refer to `conftest.exe'), while it won't with
3243 # `rm'.
3244 for ac_file in conftest.exe conftest conftest.*; do
3245 test -f "$ac_file" || continue
3246 case $ac_file in
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 break;;
3250 * ) break;;
3251 esac
3252 done
3253 else
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details" "$LINENO" 5; }
3258 fi
3259 rm -f conftest conftest$ac_cv_exeext
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3261 $as_echo "$ac_cv_exeext" >&6; }
3262
3263 rm -f conftest.$ac_ext
3264 EXEEXT=$ac_cv_exeext
3265 ac_exeext=$EXEEXT
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3268 #include <stdio.h>
3269 int
3270 main ()
3271 {
3272 FILE *f = fopen ("conftest.out", "w");
3273 return ferror (f) || fclose (f) != 0;
3274
3275 ;
3276 return 0;
3277 }
3278 _ACEOF
3279 ac_clean_files="$ac_clean_files conftest.out"
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3283 $as_echo_n "checking whether we are cross compiling... " >&6; }
3284 if test "$cross_compiling" != yes; then
3285 { { ac_try="$ac_link"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_link") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }
3296 if { ac_try='./conftest$ac_cv_exeext'
3297 { { case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_try") 2>&5
3304 ac_status=$?
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; }; then
3307 cross_compiling=no
3308 else
3309 if test "$cross_compiling" = maybe; then
3310 cross_compiling=yes
3311 else
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot run C compiled programs.
3315 If you meant to cross compile, use \`--host'.
3316 See \`config.log' for more details" "$LINENO" 5; }
3317 fi
3318 fi
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3321 $as_echo "$cross_compiling" >&6; }
3322
3323 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3324 ac_clean_files=$ac_clean_files_save
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3326 $as_echo_n "checking for suffix of object files... " >&6; }
3327 if ${ac_cv_objext+:} false; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3332
3333 int
3334 main ()
3335 {
3336
3337 ;
3338 return 0;
3339 }
3340 _ACEOF
3341 rm -f conftest.o conftest.obj
3342 if { { ac_try="$ac_compile"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_compile") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; then :
3353 for ac_file in conftest.o conftest.obj conftest.*; do
3354 test -f "$ac_file" || continue;
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3358 break;;
3359 esac
3360 done
3361 else
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error $? "cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details" "$LINENO" 5; }
3369 fi
3370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3373 $as_echo "$ac_cv_objext" >&6; }
3374 OBJEXT=$ac_cv_objext
3375 ac_objext=$OBJEXT
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3377 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3378 if ${ac_cv_c_compiler_gnu+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387 #ifndef __GNUC__
3388 choke me
3389 #endif
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_compiler_gnu=yes
3397 else
3398 ac_compiler_gnu=no
3399 fi
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3405 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3406 if test $ac_compiler_gnu = yes; then
3407 GCC=yes
3408 else
3409 GCC=
3410 fi
3411 ac_test_CFLAGS=${CFLAGS+set}
3412 ac_save_CFLAGS=$CFLAGS
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3414 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3415 if ${ac_cv_prog_cc_g+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 ac_save_c_werror_flag=$ac_c_werror_flag
3419 ac_c_werror_flag=yes
3420 ac_cv_prog_cc_g=no
3421 CFLAGS="-g"
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_g=yes
3435 else
3436 CFLAGS=""
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449
3450 else
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3452 CFLAGS="-g"
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455
3456 int
3457 main ()
3458 {
3459
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 if ac_fn_c_try_compile "$LINENO"; then :
3465 ac_cv_prog_cc_g=yes
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 fi
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 ac_c_werror_flag=$ac_save_c_werror_flag
3473 fi
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3475 $as_echo "$ac_cv_prog_cc_g" >&6; }
3476 if test "$ac_test_CFLAGS" = set; then
3477 CFLAGS=$ac_save_CFLAGS
3478 elif test $ac_cv_prog_cc_g = yes; then
3479 if test "$GCC" = yes; then
3480 CFLAGS="-g -O2"
3481 else
3482 CFLAGS="-g"
3483 fi
3484 else
3485 if test "$GCC" = yes; then
3486 CFLAGS="-O2"
3487 else
3488 CFLAGS=
3489 fi
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3492 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3493 if ${ac_cv_prog_cc_c89+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 ac_cv_prog_cc_c89=no
3497 ac_save_CC=$CC
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 #include <stdarg.h>
3501 #include <stdio.h>
3502 struct stat;
3503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504 struct buf { int x; };
3505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506 static char *e (p, i)
3507 char **p;
3508 int i;
3509 {
3510 return p[i];
3511 }
3512 static char *f (char * (*g) (char **, int), char **p, ...)
3513 {
3514 char *s;
3515 va_list v;
3516 va_start (v,p);
3517 s = g (p, va_arg (v,int));
3518 va_end (v);
3519 return s;
3520 }
3521
3522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523 function prototypes and stuff, but not '\xHH' hex character constants.
3524 These don't provoke an error unfortunately, instead are silently treated
3525 as 'x'. The following induces an error, until -std is added to get
3526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527 array size at least. It's necessary to write '\x00'==0 to get something
3528 that's true only with -std. */
3529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3530
3531 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3532 inside strings and character constants. */
3533 #define FOO(x) 'x'
3534 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3535
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540 int argc;
3541 char **argv;
3542 int
3543 main ()
3544 {
3545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3551 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3552 do
3553 CC="$ac_save_CC $ac_arg"
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_c89=$ac_arg
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext
3558 test "x$ac_cv_prog_cc_c89" != "xno" && break
3559 done
3560 rm -f conftest.$ac_ext
3561 CC=$ac_save_CC
3562
3563 fi
3564 # AC_CACHE_VAL
3565 case "x$ac_cv_prog_cc_c89" in
3566 x)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568 $as_echo "none needed" >&6; } ;;
3569 xno)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3571 $as_echo "unsupported" >&6; } ;;
3572 *)
3573 CC="$CC $ac_cv_prog_cc_c89"
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3575 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3576 esac
3577 if test "x$ac_cv_prog_cc_c89" != xno; then :
3578
3579 fi
3580
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3593 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3594 if ${am_cv_prog_cc_c_o+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 # Make sure it works both with $CC and with simple cc.
3609 # Following AC_PROG_CC_C_O, we do the test twice because some
3610 # compilers refuse to overwrite an existing .o file with -o,
3611 # though they will create one.
3612 am_cv_prog_cc_c_o=yes
3613 for am_i in 1 2; do
3614 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3615 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } \
3619 && test -f conftest2.$ac_objext; then
3620 : OK
3621 else
3622 am_cv_prog_cc_c_o=no
3623 break
3624 fi
3625 done
3626 rm -f core conftest*
3627 unset am_i
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3630 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3631 if test "$am_cv_prog_cc_c_o" != yes; then
3632 # Losing compiler, so override with the script.
3633 # FIXME: It is wrong to rewrite CC.
3634 # But if we don't then we get into trouble of one sort or another.
3635 # A longer-term fix would be to have automake use am__CC in this case,
3636 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3637 CC="$am_aux_dir/compile $CC"
3638 fi
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3653 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3656 CPP=
3657 fi
3658 if test -z "$CPP"; then
3659 if ${ac_cv_prog_CPP+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 # Double quotes because CPP needs to be expanded
3663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3664 do
3665 ac_preproc_ok=false
3666 for ac_c_preproc_warn_flag in '' yes
3667 do
3668 # Use a header file that comes with gcc, so configuring glibc
3669 # with a fresh cross-compiler works.
3670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671 # <limits.h> exists even on freestanding compilers.
3672 # On the NeXT, cc -E runs the code through the compiler's parser,
3673 # not just through cpp. "Syntax error" is here to catch this case.
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676 #ifdef __STDC__
3677 # include <limits.h>
3678 #else
3679 # include <assert.h>
3680 #endif
3681 Syntax error
3682 _ACEOF
3683 if ac_fn_c_try_cpp "$LINENO"; then :
3684
3685 else
3686 # Broken: fails on valid input.
3687 continue
3688 fi
3689 rm -f conftest.err conftest.i conftest.$ac_ext
3690
3691 # OK, works on sane cases. Now check whether nonexistent headers
3692 # can be detected and how.
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695 #include <ac_nonexistent.h>
3696 _ACEOF
3697 if ac_fn_c_try_cpp "$LINENO"; then :
3698 # Broken: success on invalid input.
3699 continue
3700 else
3701 # Passes both tests.
3702 ac_preproc_ok=:
3703 break
3704 fi
3705 rm -f conftest.err conftest.i conftest.$ac_ext
3706
3707 done
3708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709 rm -f conftest.i conftest.err conftest.$ac_ext
3710 if $ac_preproc_ok; then :
3711 break
3712 fi
3713
3714 done
3715 ac_cv_prog_CPP=$CPP
3716
3717 fi
3718 CPP=$ac_cv_prog_CPP
3719 else
3720 ac_cv_prog_CPP=$CPP
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3723 $as_echo "$CPP" >&6; }
3724 ac_preproc_ok=false
3725 for ac_c_preproc_warn_flag in '' yes
3726 do
3727 # Use a header file that comes with gcc, so configuring glibc
3728 # with a fresh cross-compiler works.
3729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 # <limits.h> exists even on freestanding compilers.
3731 # On the NeXT, cc -E runs the code through the compiler's parser,
3732 # not just through cpp. "Syntax error" is here to catch this case.
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 #ifdef __STDC__
3736 # include <limits.h>
3737 #else
3738 # include <assert.h>
3739 #endif
3740 Syntax error
3741 _ACEOF
3742 if ac_fn_c_try_cpp "$LINENO"; then :
3743
3744 else
3745 # Broken: fails on valid input.
3746 continue
3747 fi
3748 rm -f conftest.err conftest.i conftest.$ac_ext
3749
3750 # OK, works on sane cases. Now check whether nonexistent headers
3751 # can be detected and how.
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <ac_nonexistent.h>
3755 _ACEOF
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3757 # Broken: success on invalid input.
3758 continue
3759 else
3760 # Passes both tests.
3761 ac_preproc_ok=:
3762 break
3763 fi
3764 rm -f conftest.err conftest.i conftest.$ac_ext
3765
3766 done
3767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3768 rm -f conftest.i conftest.err conftest.$ac_ext
3769 if $ac_preproc_ok; then :
3770
3771 else
3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3775 See \`config.log' for more details" "$LINENO" 5; }
3776 fi
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3786 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3787 if ${ac_cv_path_GREP+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -z "$GREP"; then
3791 ac_path_GREP_found=false
3792 # Loop through the user's path and test for each of PROGNAME-LIST
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in grep ggrep; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3801 as_fn_executable_p "$ac_path_GREP" || continue
3802 # Check for GNU ac_path_GREP and select it if it is found.
3803 # Check for GNU $ac_path_GREP
3804 case `"$ac_path_GREP" --version 2>&1` in
3805 *GNU*)
3806 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3807 *)
3808 ac_count=0
3809 $as_echo_n 0123456789 >"conftest.in"
3810 while :
3811 do
3812 cat "conftest.in" "conftest.in" >"conftest.tmp"
3813 mv "conftest.tmp" "conftest.in"
3814 cp "conftest.in" "conftest.nl"
3815 $as_echo 'GREP' >> "conftest.nl"
3816 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3818 as_fn_arith $ac_count + 1 && ac_count=$as_val
3819 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3820 # Best one so far, save it but keep looking for a better one
3821 ac_cv_path_GREP="$ac_path_GREP"
3822 ac_path_GREP_max=$ac_count
3823 fi
3824 # 10*(2^10) chars as input seems more than enough
3825 test $ac_count -gt 10 && break
3826 done
3827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828 esac
3829
3830 $ac_path_GREP_found && break 3
3831 done
3832 done
3833 done
3834 IFS=$as_save_IFS
3835 if test -z "$ac_cv_path_GREP"; then
3836 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3837 fi
3838 else
3839 ac_cv_path_GREP=$GREP
3840 fi
3841
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3844 $as_echo "$ac_cv_path_GREP" >&6; }
3845 GREP="$ac_cv_path_GREP"
3846
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3849 $as_echo_n "checking for egrep... " >&6; }
3850 if ${ac_cv_path_EGREP+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3854 then ac_cv_path_EGREP="$GREP -E"
3855 else
3856 if test -z "$EGREP"; then
3857 ac_path_EGREP_found=false
3858 # Loop through the user's path and test for each of PROGNAME-LIST
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in egrep; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3867 as_fn_executable_p "$ac_path_EGREP" || continue
3868 # Check for GNU ac_path_EGREP and select it if it is found.
3869 # Check for GNU $ac_path_EGREP
3870 case `"$ac_path_EGREP" --version 2>&1` in
3871 *GNU*)
3872 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3873 *)
3874 ac_count=0
3875 $as_echo_n 0123456789 >"conftest.in"
3876 while :
3877 do
3878 cat "conftest.in" "conftest.in" >"conftest.tmp"
3879 mv "conftest.tmp" "conftest.in"
3880 cp "conftest.in" "conftest.nl"
3881 $as_echo 'EGREP' >> "conftest.nl"
3882 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3884 as_fn_arith $ac_count + 1 && ac_count=$as_val
3885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3886 # Best one so far, save it but keep looking for a better one
3887 ac_cv_path_EGREP="$ac_path_EGREP"
3888 ac_path_EGREP_max=$ac_count
3889 fi
3890 # 10*(2^10) chars as input seems more than enough
3891 test $ac_count -gt 10 && break
3892 done
3893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894 esac
3895
3896 $ac_path_EGREP_found && break 3
3897 done
3898 done
3899 done
3900 IFS=$as_save_IFS
3901 if test -z "$ac_cv_path_EGREP"; then
3902 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3903 fi
3904 else
3905 ac_cv_path_EGREP=$EGREP
3906 fi
3907
3908 fi
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3911 $as_echo "$ac_cv_path_EGREP" >&6; }
3912 EGREP="$ac_cv_path_EGREP"
3913
3914
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3916 $as_echo_n "checking for ANSI C header files... " >&6; }
3917 if ${ac_cv_header_stdc+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922 #include <stdlib.h>
3923 #include <stdarg.h>
3924 #include <string.h>
3925 #include <float.h>
3926
3927 int
3928 main ()
3929 {
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_cv_header_stdc=yes
3937 else
3938 ac_cv_header_stdc=no
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941
3942 if test $ac_cv_header_stdc = yes; then
3943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #include <string.h>
3947
3948 _ACEOF
3949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950 $EGREP "memchr" >/dev/null 2>&1; then :
3951
3952 else
3953 ac_cv_header_stdc=no
3954 fi
3955 rm -f conftest*
3956
3957 fi
3958
3959 if test $ac_cv_header_stdc = yes; then
3960 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <stdlib.h>
3964
3965 _ACEOF
3966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3967 $EGREP "free" >/dev/null 2>&1; then :
3968
3969 else
3970 ac_cv_header_stdc=no
3971 fi
3972 rm -f conftest*
3973
3974 fi
3975
3976 if test $ac_cv_header_stdc = yes; then
3977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3978 if test "$cross_compiling" = yes; then :
3979 :
3980 else
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #include <ctype.h>
3984 #include <stdlib.h>
3985 #if ((' ' & 0x0FF) == 0x020)
3986 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3987 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3988 #else
3989 # define ISLOWER(c) \
3990 (('a' <= (c) && (c) <= 'i') \
3991 || ('j' <= (c) && (c) <= 'r') \
3992 || ('s' <= (c) && (c) <= 'z'))
3993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3994 #endif
3995
3996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3997 int
3998 main ()
3999 {
4000 int i;
4001 for (i = 0; i < 256; i++)
4002 if (XOR (islower (i), ISLOWER (i))
4003 || toupper (i) != TOUPPER (i))
4004 return 2;
4005 return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_run "$LINENO"; then :
4009
4010 else
4011 ac_cv_header_stdc=no
4012 fi
4013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4014 conftest.$ac_objext conftest.beam conftest.$ac_ext
4015 fi
4016
4017 fi
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4020 $as_echo "$ac_cv_header_stdc" >&6; }
4021 if test $ac_cv_header_stdc = yes; then
4022
4023 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4024
4025 fi
4026
4027 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4029 inttypes.h stdint.h unistd.h
4030 do :
4031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4033 "
4034 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4035 cat >>confdefs.h <<_ACEOF
4036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4037 _ACEOF
4038
4039 fi
4040
4041 done
4042
4043
4044
4045 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4046 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4047 MINIX=yes
4048 else
4049 MINIX=
4050 fi
4051
4052
4053 if test "$MINIX" = yes; then
4054
4055 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4056
4057
4058 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4059
4060
4061 $as_echo "#define _MINIX 1" >>confdefs.h
4062
4063 fi
4064
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4067 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4068 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4069 $as_echo_n "(cached) " >&6
4070 else
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073
4074 # define __EXTENSIONS__ 1
4075 $ac_includes_default
4076 int
4077 main ()
4078 {
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_safe_to_define___extensions__=yes
4086 else
4087 ac_cv_safe_to_define___extensions__=no
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4092 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4093 test $ac_cv_safe_to_define___extensions__ = yes &&
4094 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4095
4096 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4097
4098 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4099
4100 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4101
4102 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4103
4104
4105 test "$program_prefix" != NONE &&
4106 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4107 # Use a double $ so make ignores it.
4108 test "$program_suffix" != NONE &&
4109 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4110 # Double any \ or $.
4111 # By default was `s,x,x', remove it if useless.
4112 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4113 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4114
4115 # Find a good install program. We prefer a C program (faster),
4116 # so one script is as good as another. But avoid the broken or
4117 # incompatible versions:
4118 # SysV /etc/install, /usr/sbin/install
4119 # SunOS /usr/etc/install
4120 # IRIX /sbin/install
4121 # AIX /bin/install
4122 # AmigaOS /C/install, which installs bootblocks on floppy discs
4123 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4124 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4125 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4126 # OS/2's system install, which has a completely different semantic
4127 # ./install, which can be erroneously created by make from ./install.sh.
4128 # Reject install programs that cannot install multiple files.
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4130 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4131 if test -z "$INSTALL"; then
4132 if ${ac_cv_path_install+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 # Account for people who put trailing slashes in PATH elements.
4141 case $as_dir/ in #((
4142 ./ | .// | /[cC]/* | \
4143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4144 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4145 /usr/ucb/* ) ;;
4146 *)
4147 # OSF1 and SCO ODT 3.0 have their own names for install.
4148 # Don't use installbsd from OSF since it installs stuff as root
4149 # by default.
4150 for ac_prog in ginstall scoinst install; do
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4153 if test $ac_prog = install &&
4154 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4155 # AIX install. It has an incompatible calling convention.
4156 :
4157 elif test $ac_prog = install &&
4158 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4159 # program-specific install script used by HP pwplus--don't use.
4160 :
4161 else
4162 rm -rf conftest.one conftest.two conftest.dir
4163 echo one > conftest.one
4164 echo two > conftest.two
4165 mkdir conftest.dir
4166 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4167 test -s conftest.one && test -s conftest.two &&
4168 test -s conftest.dir/conftest.one &&
4169 test -s conftest.dir/conftest.two
4170 then
4171 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4172 break 3
4173 fi
4174 fi
4175 fi
4176 done
4177 done
4178 ;;
4179 esac
4180
4181 done
4182 IFS=$as_save_IFS
4183
4184 rm -rf conftest.one conftest.two conftest.dir
4185
4186 fi
4187 if test "${ac_cv_path_install+set}" = set; then
4188 INSTALL=$ac_cv_path_install
4189 else
4190 # As a last resort, use the slow shell script. Don't cache a
4191 # value for INSTALL within a source directory, because that will
4192 # break other packages using the cache if that directory is
4193 # removed, or if the value is a relative name.
4194 INSTALL=$ac_install_sh
4195 fi
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4198 $as_echo "$INSTALL" >&6; }
4199
4200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4201 # It thinks the first close brace ends the variable substitution.
4202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4203
4204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4205
4206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4207
4208
4209
4210
4211
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4213 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4214 if ${ac_cv_c_bigendian+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 ac_cv_c_bigendian=unknown
4218 # See if we're dealing with a universal compiler.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #ifndef __APPLE_CC__
4222 not a universal capable compiler
4223 #endif
4224 typedef int dummy;
4225
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228
4229 # Check for potential -arch flags. It is not universal unless
4230 # there are at least two -arch flags with different values.
4231 ac_arch=
4232 ac_prev=
4233 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4234 if test -n "$ac_prev"; then
4235 case $ac_word in
4236 i?86 | x86_64 | ppc | ppc64)
4237 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4238 ac_arch=$ac_word
4239 else
4240 ac_cv_c_bigendian=universal
4241 break
4242 fi
4243 ;;
4244 esac
4245 ac_prev=
4246 elif test "x$ac_word" = "x-arch"; then
4247 ac_prev=arch
4248 fi
4249 done
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 if test $ac_cv_c_bigendian = unknown; then
4253 # See if sys/param.h defines the BYTE_ORDER macro.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <sys/types.h>
4257 #include <sys/param.h>
4258
4259 int
4260 main ()
4261 {
4262 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4263 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4264 && LITTLE_ENDIAN)
4265 bogus endian macros
4266 #endif
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273 # It does; now see whether it defined to BIG_ENDIAN or not.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <sys/types.h>
4277 #include <sys/param.h>
4278
4279 int
4280 main ()
4281 {
4282 #if BYTE_ORDER != BIG_ENDIAN
4283 not big endian
4284 #endif
4285
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_c_bigendian=yes
4292 else
4293 ac_cv_c_bigendian=no
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 if test $ac_cv_c_bigendian = unknown; then
4300 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 #include <limits.h>
4304
4305 int
4306 main ()
4307 {
4308 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4309 bogus endian macros
4310 #endif
4311
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_c_try_compile "$LINENO"; then :
4317 # It does; now see whether it defined to _BIG_ENDIAN or not.
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320 #include <limits.h>
4321
4322 int
4323 main ()
4324 {
4325 #ifndef _BIG_ENDIAN
4326 not big endian
4327 #endif
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"; then :
4334 ac_cv_c_bigendian=yes
4335 else
4336 ac_cv_c_bigendian=no
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 fi
4342 if test $ac_cv_c_bigendian = unknown; then
4343 # Compile a test program.
4344 if test "$cross_compiling" = yes; then :
4345 # Try to guess by grepping values from an object file.
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 short int ascii_mm[] =
4349 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4350 short int ascii_ii[] =
4351 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4352 int use_ascii (int i) {
4353 return ascii_mm[i] + ascii_ii[i];
4354 }
4355 short int ebcdic_ii[] =
4356 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4357 short int ebcdic_mm[] =
4358 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4359 int use_ebcdic (int i) {
4360 return ebcdic_mm[i] + ebcdic_ii[i];
4361 }
4362 extern int foo;
4363
4364 int
4365 main ()
4366 {
4367 return use_ascii (foo) == use_ebcdic (foo);
4368 ;
4369 return 0;
4370 }
4371 _ACEOF
4372 if ac_fn_c_try_compile "$LINENO"; then :
4373 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4374 ac_cv_c_bigendian=yes
4375 fi
4376 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4377 if test "$ac_cv_c_bigendian" = unknown; then
4378 ac_cv_c_bigendian=no
4379 else
4380 # finding both strings is unlikely to happen, but who knows?
4381 ac_cv_c_bigendian=unknown
4382 fi
4383 fi
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 else
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 $ac_includes_default
4390 int
4391 main ()
4392 {
4393
4394 /* Are we little or big endian? From Harbison&Steele. */
4395 union
4396 {
4397 long int l;
4398 char c[sizeof (long int)];
4399 } u;
4400 u.l = 1;
4401 return u.c[sizeof (long int) - 1] == 1;
4402
4403 ;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_run "$LINENO"; then :
4408 ac_cv_c_bigendian=no
4409 else
4410 ac_cv_c_bigendian=yes
4411 fi
4412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4413 conftest.$ac_objext conftest.beam conftest.$ac_ext
4414 fi
4415
4416 fi
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4419 $as_echo "$ac_cv_c_bigendian" >&6; }
4420 case $ac_cv_c_bigendian in #(
4421 yes)
4422 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4423 ;; #(
4424 no)
4425 ;; #(
4426 universal)
4427
4428 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4429
4430 ;; #(
4431 *)
4432 as_fn_error $? "unknown endianness
4433 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4434 esac
4435
4436
4437
4438
4439 if test -n "$ac_tool_prefix"; then
4440 # Extract the first word of "${ac_tool_prefix}dtc", so it can be a program name with args.
4441 set dummy ${ac_tool_prefix}dtc; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_prog_DTC+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -n "$DTC"; then
4448 ac_cv_prog_DTC="$DTC" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_prog_DTC="${ac_tool_prefix}dtc"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461 done
4462 done
4463 IFS=$as_save_IFS
4464
4465 fi
4466 fi
4467 DTC=$ac_cv_prog_DTC
4468 if test -n "$DTC"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTC" >&5
4470 $as_echo "$DTC" >&6; }
4471 else
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4475
4476
4477 fi
4478 if test -z "$ac_cv_prog_DTC"; then
4479 ac_ct_DTC=$DTC
4480 # Extract the first word of "dtc", so it can be a program name with args.
4481 set dummy dtc; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if ${ac_cv_prog_ac_ct_DTC+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$ac_ct_DTC"; then
4488 ac_cv_prog_ac_ct_DTC="$ac_ct_DTC" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497 ac_cv_prog_ac_ct_DTC="dtc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4500 fi
4501 done
4502 done
4503 IFS=$as_save_IFS
4504
4505 fi
4506 fi
4507 ac_ct_DTC=$ac_cv_prog_ac_ct_DTC
4508 if test -n "$ac_ct_DTC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DTC" >&5
4510 $as_echo "$ac_ct_DTC" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4514 fi
4515
4516 if test "x$ac_ct_DTC" = x; then
4517 DTC=""
4518 else
4519 case $cross_compiling:$ac_tool_warned in
4520 yes:)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525 DTC=$ac_ct_DTC
4526 fi
4527 else
4528 DTC="$ac_cv_prog_DTC"
4529 fi
4530
4531
4532 if test "x$cross_compiling" = "xno"; then
4533 : "${AR_FOR_BUILD:=\$(AR)}"
4534 : "${CC_FOR_BUILD:=\$(CC)}"
4535 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
4536 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
4537 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
4538 else
4539 : "${AR_FOR_BUILD:=ar}"
4540 : "${CC_FOR_BUILD:=gcc}"
4541 : "${RANLIB_FOR_BUILD:=ranlib}"
4542 : "${CFLAGS_FOR_BUILD:=-g -O}"
4543 : "${LDLFAGS_FOR_BUILD:=}"
4544 fi
4545
4546
4547
4548
4549
4550
4551
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}ar; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_AR+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$AR"; then
4561 ac_cv_prog_AR="$AR" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_AR="${ac_tool_prefix}ar"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 AR=$ac_cv_prog_AR
4581 if test -n "$AR"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4583 $as_echo "$AR" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590 fi
4591 if test -z "$ac_cv_prog_AR"; then
4592 ac_ct_AR=$AR
4593 # Extract the first word of "ar", so it can be a program name with args.
4594 set dummy ar; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_AR"; then
4601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_AR="ar"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4621 if test -n "$ac_ct_AR"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4623 $as_echo "$ac_ct_AR" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629 if test "x$ac_ct_AR" = x; then
4630 AR=""
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 AR=$ac_ct_AR
4639 fi
4640 else
4641 AR="$ac_cv_prog_AR"
4642 fi
4643
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if ${ac_cv_prog_RANLIB+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$RANLIB"; then
4653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 RANLIB=$ac_cv_prog_RANLIB
4673 if test -n "$RANLIB"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4675 $as_echo "$RANLIB" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681
4682 fi
4683 if test -z "$ac_cv_prog_RANLIB"; then
4684 ac_ct_RANLIB=$RANLIB
4685 # Extract the first word of "ranlib", so it can be a program name with args.
4686 set dummy ranlib; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$ac_ct_RANLIB"; then
4693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702 ac_cv_prog_ac_ct_RANLIB="ranlib"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4713 if test -n "$ac_ct_RANLIB"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4715 $as_echo "$ac_ct_RANLIB" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4719 fi
4720
4721 if test "x$ac_ct_RANLIB" = x; then
4722 RANLIB=":"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 RANLIB=$ac_ct_RANLIB
4731 fi
4732 else
4733 RANLIB="$ac_cv_prog_RANLIB"
4734 fi
4735
4736
4737
4738
4739
4740
4741
4742
4743 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4744 if test -n "$ac_tool_prefix"; then
4745 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4746 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 case $PKG_CONFIG in
4753 [\\/]* | ?:[\\/]*)
4754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4755 ;;
4756 *)
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768 done
4769 done
4770 IFS=$as_save_IFS
4771
4772 ;;
4773 esac
4774 fi
4775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4776 if test -n "$PKG_CONFIG"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4778 $as_echo "$PKG_CONFIG" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784
4785 fi
4786 if test -z "$ac_cv_path_PKG_CONFIG"; then
4787 ac_pt_PKG_CONFIG=$PKG_CONFIG
4788 # Extract the first word of "pkg-config", so it can be a program name with args.
4789 set dummy pkg-config; ac_word=$2
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791 $as_echo_n "checking for $ac_word... " >&6; }
4792 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 case $ac_pt_PKG_CONFIG in
4796 [\\/]* | ?:[\\/]*)
4797 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4798 ;;
4799 *)
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 ;;
4816 esac
4817 fi
4818 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4819 if test -n "$ac_pt_PKG_CONFIG"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4821 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827 if test "x$ac_pt_PKG_CONFIG" = x; then
4828 PKG_CONFIG=""
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 PKG_CONFIG=$ac_pt_PKG_CONFIG
4837 fi
4838 else
4839 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4840 fi
4841
4842 fi
4843 if test -n "$PKG_CONFIG"; then
4844 _pkg_min_version=0.9.0
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4846 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4847 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849 $as_echo "yes" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 PKG_CONFIG=""
4854 fi
4855 fi
4856
4857 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
4858 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
4859 # is C99. So handle it ourselves.
4860 :
4861 C_DIALECT=
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
4863 $as_echo_n "checking whether C11 is supported by default... " >&6; }
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866
4867 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4868 # error "C11 support not found"
4869 #endif
4870
4871 _ACEOF
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4874 $as_echo "yes" >&6; }
4875 else
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
4880 $as_echo_n "checking for -std=c11 support... " >&6; }
4881 ac_save_CC="$CC"
4882 CC="$CC -std=c11"
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885
4886 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
4887 # error "C11 support not found"
4888 #endif
4889
4890 _ACEOF
4891 if ac_fn_c_try_compile "$LINENO"; then :
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4894 $as_echo "yes" >&6; }
4895 CC="$ac_save_CC"
4896 C_DIALECT="-std=c11"
4897
4898 else
4899 as_fn_error $? "C11 is required" "$LINENO" 5
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904
4905
4906
4907
4908
4909 for ac_header in $ac_header_list
4910 do :
4911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4913 "
4914 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4915 cat >>confdefs.h <<_ACEOF
4916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 _ACEOF
4918
4919 fi
4920
4921 done
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 for ac_func in $ac_func_list
4975 do :
4976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4979 cat >>confdefs.h <<_ACEOF
4980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4981 _ACEOF
4982
4983 fi
4984 done
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5109 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5110 if ${ac_cv_struct_tm+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #include <sys/types.h>
5116 #include <time.h>
5117
5118 int
5119 main ()
5120 {
5121 struct tm tm;
5122 int *p = &tm.tm_sec;
5123 return !p;
5124 ;
5125 return 0;
5126 }
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"; then :
5129 ac_cv_struct_tm=time.h
5130 else
5131 ac_cv_struct_tm=sys/time.h
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5136 $as_echo "$ac_cv_struct_tm" >&6; }
5137 if test $ac_cv_struct_tm = sys/time.h; then
5138
5139 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5140
5141 fi
5142
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5144 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5145 if ${ac_cv_type_uid_t+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 #include <sys/types.h>
5151
5152 _ACEOF
5153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5154 $EGREP "uid_t" >/dev/null 2>&1; then :
5155 ac_cv_type_uid_t=yes
5156 else
5157 ac_cv_type_uid_t=no
5158 fi
5159 rm -f conftest*
5160
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5163 $as_echo "$ac_cv_type_uid_t" >&6; }
5164 if test $ac_cv_type_uid_t = no; then
5165
5166 $as_echo "#define uid_t int" >>confdefs.h
5167
5168
5169 $as_echo "#define gid_t int" >>confdefs.h
5170
5171 fi
5172
5173 case `pwd` in
5174 *\ * | *\ *)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5176 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5177 esac
5178
5179
5180
5181 macro_version='2.2.7a'
5182 macro_revision='1.3134'
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 ltmain="$ac_aux_dir/ltmain.sh"
5197
5198 # Backslashify metacharacters that are still active within
5199 # double-quoted strings.
5200 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5201
5202 # Same as above, but do not quote variable references.
5203 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5204
5205 # Sed substitution to delay expansion of an escaped shell variable in a
5206 # double_quote_subst'ed string.
5207 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5208
5209 # Sed substitution to delay expansion of an escaped single quote.
5210 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5211
5212 # Sed substitution to avoid accidental globbing in evaled expressions
5213 no_glob_subst='s/\*/\\\*/g'
5214
5215 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5216 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5217 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5220 $as_echo_n "checking how to print strings... " >&6; }
5221 # Test print first, because it will be a builtin if present.
5222 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5223 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5224 ECHO='print -r --'
5225 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5226 ECHO='printf %s\n'
5227 else
5228 # Use this function as a fallback that always works.
5229 func_fallback_echo ()
5230 {
5231 eval 'cat <<_LTECHO_EOF
5232 $1
5233 _LTECHO_EOF'
5234 }
5235 ECHO='func_fallback_echo'
5236 fi
5237
5238 # func_echo_all arg...
5239 # Invoke $ECHO with all args, space-separated.
5240 func_echo_all ()
5241 {
5242 $ECHO ""
5243 }
5244
5245 case "$ECHO" in
5246 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5247 $as_echo "printf" >&6; } ;;
5248 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5249 $as_echo "print -r" >&6; } ;;
5250 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5251 $as_echo "cat" >&6; } ;;
5252 esac
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5268 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5269 if ${ac_cv_path_SED+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5273 for ac_i in 1 2 3 4 5 6 7; do
5274 ac_script="$ac_script$as_nl$ac_script"
5275 done
5276 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5277 { ac_script=; unset ac_script;}
5278 if test -z "$SED"; then
5279 ac_path_SED_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH
5283 do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in sed gsed; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_SED" || continue
5290 # Check for GNU ac_path_SED and select it if it is found.
5291 # Check for GNU $ac_path_SED
5292 case `"$ac_path_SED" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5295 *)
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5299 do
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo '' >> "conftest.nl"
5304 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_SED_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_SED="$ac_path_SED"
5310 ac_path_SED_max=$ac_count
5311 fi
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5317
5318 $ac_path_SED_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_SED"; then
5324 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5325 fi
5326 else
5327 ac_cv_path_SED=$SED
5328 fi
5329
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5332 $as_echo "$ac_cv_path_SED" >&6; }
5333 SED="$ac_cv_path_SED"
5334 rm -f conftest.sed
5335
5336 test -z "$SED" && SED=sed
5337 Xsed="$SED -e 1s/^X//"
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5350 $as_echo_n "checking for fgrep... " >&6; }
5351 if ${ac_cv_path_FGREP+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5355 then ac_cv_path_FGREP="$GREP -F"
5356 else
5357 if test -z "$FGREP"; then
5358 ac_path_FGREP_found=false
5359 # Loop through the user's path and test for each of PROGNAME-LIST
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5362 do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_prog in fgrep; do
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5368 as_fn_executable_p "$ac_path_FGREP" || continue
5369 # Check for GNU ac_path_FGREP and select it if it is found.
5370 # Check for GNU $ac_path_FGREP
5371 case `"$ac_path_FGREP" --version 2>&1` in
5372 *GNU*)
5373 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5374 *)
5375 ac_count=0
5376 $as_echo_n 0123456789 >"conftest.in"
5377 while :
5378 do
5379 cat "conftest.in" "conftest.in" >"conftest.tmp"
5380 mv "conftest.tmp" "conftest.in"
5381 cp "conftest.in" "conftest.nl"
5382 $as_echo 'FGREP' >> "conftest.nl"
5383 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5385 as_fn_arith $ac_count + 1 && ac_count=$as_val
5386 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5387 # Best one so far, save it but keep looking for a better one
5388 ac_cv_path_FGREP="$ac_path_FGREP"
5389 ac_path_FGREP_max=$ac_count
5390 fi
5391 # 10*(2^10) chars as input seems more than enough
5392 test $ac_count -gt 10 && break
5393 done
5394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5395 esac
5396
5397 $ac_path_FGREP_found && break 3
5398 done
5399 done
5400 done
5401 IFS=$as_save_IFS
5402 if test -z "$ac_cv_path_FGREP"; then
5403 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5404 fi
5405 else
5406 ac_cv_path_FGREP=$FGREP
5407 fi
5408
5409 fi
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5412 $as_echo "$ac_cv_path_FGREP" >&6; }
5413 FGREP="$ac_cv_path_FGREP"
5414
5415
5416 test -z "$GREP" && GREP=grep
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 # Check whether --with-gnu-ld was given.
5437 if test "${with_gnu_ld+set}" = set; then :
5438 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5439 else
5440 with_gnu_ld=no
5441 fi
5442
5443 ac_prog=ld
5444 if test "$GCC" = yes; then
5445 # Check if gcc -print-prog-name=ld gives a path.
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5447 $as_echo_n "checking for ld used by $CC... " >&6; }
5448 case $host in
5449 *-*-mingw*)
5450 # gcc leaves a trailing carriage return which upsets mingw
5451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5452 *)
5453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5454 esac
5455 case $ac_prog in
5456 # Accept absolute paths.
5457 [\\/]* | ?:[\\/]*)
5458 re_direlt='/[^/][^/]*/\.\./'
5459 # Canonicalize the pathname of ld
5460 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5461 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5462 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5463 done
5464 test -z "$LD" && LD="$ac_prog"
5465 ;;
5466 "")
5467 # If it fails, then pretend we aren't using GCC.
5468 ac_prog=ld
5469 ;;
5470 *)
5471 # If it is relative, then search for the first ld in PATH.
5472 with_gnu_ld=unknown
5473 ;;
5474 esac
5475 elif test "$with_gnu_ld" = yes; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5477 $as_echo_n "checking for GNU ld... " >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5480 $as_echo_n "checking for non-GNU ld... " >&6; }
5481 fi
5482 if ${lt_cv_path_LD+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 if test -z "$LD"; then
5486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5487 for ac_dir in $PATH; do
5488 IFS="$lt_save_ifs"
5489 test -z "$ac_dir" && ac_dir=.
5490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5491 lt_cv_path_LD="$ac_dir/$ac_prog"
5492 # Check to see if the program is GNU ld. I'd rather use --version,
5493 # but apparently some variants of GNU ld only accept -v.
5494 # Break only if it was the GNU/non-GNU ld that we prefer.
5495 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5496 *GNU* | *'with BFD'*)
5497 test "$with_gnu_ld" != no && break
5498 ;;
5499 *)
5500 test "$with_gnu_ld" != yes && break
5501 ;;
5502 esac
5503 fi
5504 done
5505 IFS="$lt_save_ifs"
5506 else
5507 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5508 fi
5509 fi
5510
5511 LD="$lt_cv_path_LD"
5512 if test -n "$LD"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5514 $as_echo "$LD" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5521 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5522 if ${lt_cv_prog_gnu_ld+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5526 case `$LD -v 2>&1 </dev/null` in
5527 *GNU* | *'with BFD'*)
5528 lt_cv_prog_gnu_ld=yes
5529 ;;
5530 *)
5531 lt_cv_prog_gnu_ld=no
5532 ;;
5533 esac
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5536 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5537 with_gnu_ld=$lt_cv_prog_gnu_ld
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5548 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5549 if ${lt_cv_path_NM+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$NM"; then
5553 # Let the user override the test.
5554 lt_cv_path_NM="$NM"
5555 else
5556 lt_nm_to_check="${ac_tool_prefix}nm"
5557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5558 lt_nm_to_check="$lt_nm_to_check nm"
5559 fi
5560 for lt_tmp_nm in $lt_nm_to_check; do
5561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5563 IFS="$lt_save_ifs"
5564 test -z "$ac_dir" && ac_dir=.
5565 tmp_nm="$ac_dir/$lt_tmp_nm"
5566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5567 # Check to see if the nm accepts a BSD-compat flag.
5568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5569 # nm: unknown option "B" ignored
5570 # Tru64's nm complains that /dev/null is an invalid object file
5571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5572 */dev/null* | *'Invalid file or object type'*)
5573 lt_cv_path_NM="$tmp_nm -B"
5574 break
5575 ;;
5576 *)
5577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5578 */dev/null*)
5579 lt_cv_path_NM="$tmp_nm -p"
5580 break
5581 ;;
5582 *)
5583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5584 continue # so that we can try to find one that supports BSD flags
5585 ;;
5586 esac
5587 ;;
5588 esac
5589 fi
5590 done
5591 IFS="$lt_save_ifs"
5592 done
5593 : ${lt_cv_path_NM=no}
5594 fi
5595 fi
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5597 $as_echo "$lt_cv_path_NM" >&6; }
5598 if test "$lt_cv_path_NM" != "no"; then
5599 NM="$lt_cv_path_NM"
5600 else
5601 # Didn't find any BSD compatible name lister, look for dumpbin.
5602 if test -n "$DUMPBIN"; then :
5603 # Let the user override the test.
5604 else
5605 if test -n "$ac_tool_prefix"; then
5606 for ac_prog in dumpbin "link -dump"
5607 do
5608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_DUMPBIN+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$DUMPBIN"; then
5616 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629 done
5630 done
5631 IFS=$as_save_IFS
5632
5633 fi
5634 fi
5635 DUMPBIN=$ac_cv_prog_DUMPBIN
5636 if test -n "$DUMPBIN"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5638 $as_echo "$DUMPBIN" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 test -n "$DUMPBIN" && break
5646 done
5647 fi
5648 if test -z "$DUMPBIN"; then
5649 ac_ct_DUMPBIN=$DUMPBIN
5650 for ac_prog in dumpbin "link -dump"
5651 do
5652 # Extract the first word of "$ac_prog", so it can be a program name with args.
5653 set dummy $ac_prog; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$ac_ct_DUMPBIN"; then
5660 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673 done
5674 done
5675 IFS=$as_save_IFS
5676
5677 fi
5678 fi
5679 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5680 if test -n "$ac_ct_DUMPBIN"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5682 $as_echo "$ac_ct_DUMPBIN" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687
5688
5689 test -n "$ac_ct_DUMPBIN" && break
5690 done
5691
5692 if test "x$ac_ct_DUMPBIN" = x; then
5693 DUMPBIN=":"
5694 else
5695 case $cross_compiling:$ac_tool_warned in
5696 yes:)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5700 esac
5701 DUMPBIN=$ac_ct_DUMPBIN
5702 fi
5703 fi
5704
5705 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5706 *COFF*)
5707 DUMPBIN="$DUMPBIN -symbols"
5708 ;;
5709 *)
5710 DUMPBIN=:
5711 ;;
5712 esac
5713 fi
5714
5715 if test "$DUMPBIN" != ":"; then
5716 NM="$DUMPBIN"
5717 fi
5718 fi
5719 test -z "$NM" && NM=nm
5720
5721
5722
5723
5724
5725
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5727 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5728 if ${lt_cv_nm_interface+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 lt_cv_nm_interface="BSD nm"
5732 echo "int some_variable = 0;" > conftest.$ac_ext
5733 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5734 (eval "$ac_compile" 2>conftest.err)
5735 cat conftest.err >&5
5736 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5737 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5738 cat conftest.err >&5
5739 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5740 cat conftest.out >&5
5741 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5742 lt_cv_nm_interface="MS dumpbin"
5743 fi
5744 rm -f conftest*
5745 fi
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5747 $as_echo "$lt_cv_nm_interface" >&6; }
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5750 $as_echo_n "checking whether ln -s works... " >&6; }
5751 LN_S=$as_ln_s
5752 if test "$LN_S" = "ln -s"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754 $as_echo "yes" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5757 $as_echo "no, using $LN_S" >&6; }
5758 fi
5759
5760 # find the maximum length of command line arguments
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5762 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5763 if ${lt_cv_sys_max_cmd_len+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 i=0
5767 teststring="ABCD"
5768
5769 case $build_os in
5770 msdosdjgpp*)
5771 # On DJGPP, this test can blow up pretty badly due to problems in libc
5772 # (any single argument exceeding 2000 bytes causes a buffer overrun
5773 # during glob expansion). Even if it were fixed, the result of this
5774 # check would be larger than it should be.
5775 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5776 ;;
5777
5778 gnu*)
5779 # Under GNU Hurd, this test is not required because there is
5780 # no limit to the length of command line arguments.
5781 # Libtool will interpret -1 as no limit whatsoever
5782 lt_cv_sys_max_cmd_len=-1;
5783 ;;
5784
5785 cygwin* | mingw* | cegcc*)
5786 # On Win9x/ME, this test blows up -- it succeeds, but takes
5787 # about 5 minutes as the teststring grows exponentially.
5788 # Worse, since 9x/ME are not pre-emptively multitasking,
5789 # you end up with a "frozen" computer, even though with patience
5790 # the test eventually succeeds (with a max line length of 256k).
5791 # Instead, let's just punt: use the minimum linelength reported by
5792 # all of the supported platforms: 8192 (on NT/2K/XP).
5793 lt_cv_sys_max_cmd_len=8192;
5794 ;;
5795
5796 mint*)
5797 # On MiNT this can take a long time and run out of memory.
5798 lt_cv_sys_max_cmd_len=8192;
5799 ;;
5800
5801 amigaos*)
5802 # On AmigaOS with pdksh, this test takes hours, literally.
5803 # So we just punt and use a minimum line length of 8192.
5804 lt_cv_sys_max_cmd_len=8192;
5805 ;;
5806
5807 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5808 # This has been around since 386BSD, at least. Likely further.
5809 if test -x /sbin/sysctl; then
5810 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5811 elif test -x /usr/sbin/sysctl; then
5812 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5813 else
5814 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5815 fi
5816 # And add a safety zone
5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5819 ;;
5820
5821 interix*)
5822 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5823 lt_cv_sys_max_cmd_len=196608
5824 ;;
5825
5826 osf*)
5827 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5828 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5829 # nice to cause kernel panics so lets avoid the loop below.
5830 # First set a reasonable default.
5831 lt_cv_sys_max_cmd_len=16384
5832 #
5833 if test -x /sbin/sysconfig; then
5834 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5835 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5836 esac
5837 fi
5838 ;;
5839 sco3.2v5*)
5840 lt_cv_sys_max_cmd_len=102400
5841 ;;
5842 sysv5* | sco5v6* | sysv4.2uw2*)
5843 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5844 if test -n "$kargmax"; then
5845 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5846 else
5847 lt_cv_sys_max_cmd_len=32768
5848 fi
5849 ;;
5850 *)
5851 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5852 if test -n "$lt_cv_sys_max_cmd_len"; then
5853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5855 else
5856 # Make teststring a little bigger before we do anything with it.
5857 # a 1K string should be a reasonable start.
5858 for i in 1 2 3 4 5 6 7 8 ; do
5859 teststring=$teststring$teststring
5860 done
5861 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5862 # If test is not a shell built-in, we'll probably end up computing a
5863 # maximum length that is only half of the actual maximum length, but
5864 # we can't tell.
5865 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5866 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5867 test $i != 17 # 1/2 MB should be enough
5868 do
5869 i=`expr $i + 1`
5870 teststring=$teststring$teststring
5871 done
5872 # Only check the string length outside the loop.
5873 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5874 teststring=
5875 # Add a significant safety factor because C++ compilers can tack on
5876 # massive amounts of additional arguments before passing them to the
5877 # linker. It appears as though 1/2 is a usable value.
5878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5879 fi
5880 ;;
5881 esac
5882
5883 fi
5884
5885 if test -n $lt_cv_sys_max_cmd_len ; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5887 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5890 $as_echo "none" >&6; }
5891 fi
5892 max_cmd_len=$lt_cv_sys_max_cmd_len
5893
5894
5895
5896
5897
5898
5899 : ${CP="cp -f"}
5900 : ${MV="mv -f"}
5901 : ${RM="rm -f"}
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5904 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5905 # Try some XSI features
5906 xsi_shell=no
5907 ( _lt_dummy="a/b/c"
5908 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5909 = c,a/b,, \
5910 && eval 'test $(( 1 + 1 )) -eq 2 \
5911 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5912 && xsi_shell=yes
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5914 $as_echo "$xsi_shell" >&6; }
5915
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5918 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5919 lt_shell_append=no
5920 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5921 >/dev/null 2>&1 \
5922 && lt_shell_append=yes
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5924 $as_echo "$lt_shell_append" >&6; }
5925
5926
5927 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5928 lt_unset=unset
5929 else
5930 lt_unset=false
5931 fi
5932
5933
5934
5935
5936
5937 # test EBCDIC or ASCII
5938 case `echo X|tr X '\101'` in
5939 A) # ASCII based system
5940 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5941 lt_SP2NL='tr \040 \012'
5942 lt_NL2SP='tr \015\012 \040\040'
5943 ;;
5944 *) # EBCDIC based system
5945 lt_SP2NL='tr \100 \n'
5946 lt_NL2SP='tr \r\n \100\100'
5947 ;;
5948 esac
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5959 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5960 if ${lt_cv_ld_reload_flag+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 lt_cv_ld_reload_flag='-r'
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5966 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5967 reload_flag=$lt_cv_ld_reload_flag
5968 case $reload_flag in
5969 "" | " "*) ;;
5970 *) reload_flag=" $reload_flag" ;;
5971 esac
5972 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5973 case $host_os in
5974 darwin*)
5975 if test "$GCC" = yes; then
5976 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5977 else
5978 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5979 fi
5980 ;;
5981 esac
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 if test -n "$ac_tool_prefix"; then
5992 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5993 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995 $as_echo_n "checking for $ac_word... " >&6; }
5996 if ${ac_cv_prog_OBJDUMP+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -n "$OBJDUMP"; then
6000 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi
6018 fi
6019 OBJDUMP=$ac_cv_prog_OBJDUMP
6020 if test -n "$OBJDUMP"; then
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6022 $as_echo "$OBJDUMP" >&6; }
6023 else
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025 $as_echo "no" >&6; }
6026 fi
6027
6028
6029 fi
6030 if test -z "$ac_cv_prog_OBJDUMP"; then
6031 ac_ct_OBJDUMP=$OBJDUMP
6032 # Extract the first word of "objdump", so it can be a program name with args.
6033 set dummy objdump; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if test -n "$ac_ct_OBJDUMP"; then
6040 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 break 2
6052 fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6060 if test -n "$ac_ct_OBJDUMP"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6062 $as_echo "$ac_ct_OBJDUMP" >&6; }
6063 else
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068 if test "x$ac_ct_OBJDUMP" = x; then
6069 OBJDUMP="false"
6070 else
6071 case $cross_compiling:$ac_tool_warned in
6072 yes:)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6075 ac_tool_warned=yes ;;
6076 esac
6077 OBJDUMP=$ac_ct_OBJDUMP
6078 fi
6079 else
6080 OBJDUMP="$ac_cv_prog_OBJDUMP"
6081 fi
6082
6083 test -z "$OBJDUMP" && OBJDUMP=objdump
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6094 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6095 if ${lt_cv_deplibs_check_method+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 lt_cv_file_magic_cmd='$MAGIC_CMD'
6099 lt_cv_file_magic_test_file=
6100 lt_cv_deplibs_check_method='unknown'
6101 # Need to set the preceding variable on all platforms that support
6102 # interlibrary dependencies.
6103 # 'none' -- dependencies not supported.
6104 # `unknown' -- same as none, but documents that we really don't know.
6105 # 'pass_all' -- all dependencies passed with no checks.
6106 # 'test_compile' -- check by making test program.
6107 # 'file_magic [[regex]]' -- check by looking for files in library path
6108 # which responds to the $file_magic_cmd with a given extended regex.
6109 # If you have `file' or equivalent on your system and you're not sure
6110 # whether `pass_all' will *always* work, you probably want this one.
6111
6112 case $host_os in
6113 aix[4-9]*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116
6117 beos*)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121 bsdi[45]*)
6122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6123 lt_cv_file_magic_cmd='/usr/bin/file -L'
6124 lt_cv_file_magic_test_file=/shlib/libc.so
6125 ;;
6126
6127 cygwin*)
6128 # func_win32_libid is a shell function defined in ltmain.sh
6129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6130 lt_cv_file_magic_cmd='func_win32_libid'
6131 ;;
6132
6133 mingw* | pw32*)
6134 # Base MSYS/MinGW do not provide the 'file' command needed by
6135 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6136 # unless we find 'file', for example because we are cross-compiling.
6137 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6138 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6140 lt_cv_file_magic_cmd='func_win32_libid'
6141 else
6142 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6143 lt_cv_file_magic_cmd='$OBJDUMP -f'
6144 fi
6145 ;;
6146
6147 cegcc*)
6148 # use the weaker test based on 'objdump'. See mingw*.
6149 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6150 lt_cv_file_magic_cmd='$OBJDUMP -f'
6151 ;;
6152
6153 darwin* | rhapsody*)
6154 lt_cv_deplibs_check_method=pass_all
6155 ;;
6156
6157 freebsd* | dragonfly*)
6158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6159 case $host_cpu in
6160 i*86 )
6161 # Not sure whether the presence of OpenBSD here was a mistake.
6162 # Let's accept both of them until this is cleared up.
6163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6164 lt_cv_file_magic_cmd=/usr/bin/file
6165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6166 ;;
6167 esac
6168 else
6169 lt_cv_deplibs_check_method=pass_all
6170 fi
6171 ;;
6172
6173 gnu*)
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
6176
6177 haiku*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 hpux10.20* | hpux11*)
6182 lt_cv_file_magic_cmd=/usr/bin/file
6183 case $host_cpu in
6184 ia64*)
6185 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6186 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6187 ;;
6188 hppa*64*)
6189 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]'
6190 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6191 ;;
6192 *)
6193 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6194 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6195 ;;
6196 esac
6197 ;;
6198
6199 interix[3-9]*)
6200 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6202 ;;
6203
6204 irix5* | irix6* | nonstopux*)
6205 case $LD in
6206 *-32|*"-32 ") libmagic=32-bit;;
6207 *-n32|*"-n32 ") libmagic=N32;;
6208 *-64|*"-64 ") libmagic=64-bit;;
6209 *) libmagic=never-match;;
6210 esac
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214 # This must be Linux ELF.
6215 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 netbsd*)
6220 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6222 else
6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6224 fi
6225 ;;
6226
6227 newos6*)
6228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6229 lt_cv_file_magic_cmd=/usr/bin/file
6230 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6231 ;;
6232
6233 *nto* | *qnx*)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236
6237 openbsd*)
6238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6240 else
6241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6242 fi
6243 ;;
6244
6245 osf3* | osf4* | osf5*)
6246 lt_cv_deplibs_check_method=pass_all
6247 ;;
6248
6249 rdos*)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252
6253 solaris*)
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6258 lt_cv_deplibs_check_method=pass_all
6259 ;;
6260
6261 sysv4 | sysv4.3*)
6262 case $host_vendor in
6263 motorola)
6264 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]'
6265 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6266 ;;
6267 ncr)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270 sequent)
6271 lt_cv_file_magic_cmd='/bin/file'
6272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6273 ;;
6274 sni)
6275 lt_cv_file_magic_cmd='/bin/file'
6276 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6277 lt_cv_file_magic_test_file=/lib/libc.so
6278 ;;
6279 siemens)
6280 lt_cv_deplibs_check_method=pass_all
6281 ;;
6282 pc)
6283 lt_cv_deplibs_check_method=pass_all
6284 ;;
6285 esac
6286 ;;
6287
6288 tpf*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291 esac
6292
6293 fi
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6295 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6296 file_magic_cmd=$lt_cv_file_magic_cmd
6297 deplibs_check_method=$lt_cv_deplibs_check_method
6298 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 plugin_option=
6312 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6313 for plugin in $plugin_names; do
6314 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6315 if test x$plugin_so = x$plugin; then
6316 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6317 fi
6318 if test x$plugin_so != x$plugin; then
6319 plugin_option="--plugin $plugin_so"
6320 break
6321 fi
6322 done
6323
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}ar; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_AR+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$AR"; then
6333 ac_cv_prog_AR="$AR" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_AR="${ac_tool_prefix}ar"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 AR=$ac_cv_prog_AR
6353 if test -n "$AR"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6355 $as_echo "$AR" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361
6362 fi
6363 if test -z "$ac_cv_prog_AR"; then
6364 ac_ct_AR=$AR
6365 # Extract the first word of "ar", so it can be a program name with args.
6366 set dummy ar; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$ac_ct_AR"; then
6373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_ac_ct_AR="ar"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390 fi
6391 fi
6392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6393 if test -n "$ac_ct_AR"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6395 $as_echo "$ac_ct_AR" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399 fi
6400
6401 if test "x$ac_ct_AR" = x; then
6402 AR="false"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405 yes:)
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408 ac_tool_warned=yes ;;
6409 esac
6410 AR=$ac_ct_AR
6411 fi
6412 else
6413 AR="$ac_cv_prog_AR"
6414 fi
6415
6416 test -z "$AR" && AR=ar
6417 if test -n "$plugin_option"; then
6418 if $AR --help 2>&1 | grep -q "\--plugin"; then
6419 touch conftest.c
6420 $AR $plugin_option rc conftest.a conftest.c
6421 if test "$?" != 0; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6423 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6424 else
6425 AR="$AR $plugin_option"
6426 fi
6427 rm -f conftest.*
6428 fi
6429 fi
6430 test -z "$AR_FLAGS" && AR_FLAGS=cru
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}strip; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_STRIP+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$STRIP"; then
6451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 STRIP=$ac_cv_prog_STRIP
6471 if test -n "$STRIP"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6473 $as_echo "$STRIP" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 fi
6481 if test -z "$ac_cv_prog_STRIP"; then
6482 ac_ct_STRIP=$STRIP
6483 # Extract the first word of "strip", so it can be a program name with args.
6484 set dummy strip; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_STRIP"; then
6491 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_STRIP="strip"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6511 if test -n "$ac_ct_STRIP"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6513 $as_echo "$ac_ct_STRIP" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519 if test "x$ac_ct_STRIP" = x; then
6520 STRIP=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 STRIP=$ac_ct_STRIP
6529 fi
6530 else
6531 STRIP="$ac_cv_prog_STRIP"
6532 fi
6533
6534 test -z "$STRIP" && STRIP=:
6535
6536
6537
6538
6539
6540
6541 if test -n "$ac_tool_prefix"; then
6542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6543 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_RANLIB+:} false; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if test -n "$RANLIB"; then
6550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 RANLIB=$ac_cv_prog_RANLIB
6570 if test -n "$RANLIB"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6572 $as_echo "$RANLIB" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578
6579 fi
6580 if test -z "$ac_cv_prog_RANLIB"; then
6581 ac_ct_RANLIB=$RANLIB
6582 # Extract the first word of "ranlib", so it can be a program name with args.
6583 set dummy ranlib; ac_word=$2
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 if test -n "$ac_ct_RANLIB"; then
6590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_ac_ct_RANLIB="ranlib"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6610 if test -n "$ac_ct_RANLIB"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6612 $as_echo "$ac_ct_RANLIB" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617
6618 if test "x$ac_ct_RANLIB" = x; then
6619 RANLIB=":"
6620 else
6621 case $cross_compiling:$ac_tool_warned in
6622 yes:)
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625 ac_tool_warned=yes ;;
6626 esac
6627 RANLIB=$ac_ct_RANLIB
6628 fi
6629 else
6630 RANLIB="$ac_cv_prog_RANLIB"
6631 fi
6632
6633 test -z "$RANLIB" && RANLIB=:
6634 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6635 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6636 RANLIB="$RANLIB $plugin_option"
6637 fi
6638 fi
6639
6640
6641
6642
6643
6644
6645 # Determine commands to create old-style static archives.
6646 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6647 old_postinstall_cmds='chmod 644 $oldlib'
6648 old_postuninstall_cmds=
6649
6650 if test -n "$RANLIB"; then
6651 case $host_os in
6652 openbsd*)
6653 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6654 ;;
6655 *)
6656 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6657 ;;
6658 esac
6659 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6660 fi
6661
6662 case $host_os in
6663 darwin*)
6664 lock_old_archive_extraction=yes ;;
6665 *)
6666 lock_old_archive_extraction=no ;;
6667 esac
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689 for ac_prog in gawk mawk nawk awk
6690 do
6691 # Extract the first word of "$ac_prog", so it can be a program name with args.
6692 set dummy $ac_prog; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_AWK+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$AWK"; then
6699 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_AWK="$ac_prog"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 AWK=$ac_cv_prog_AWK
6719 if test -n "$AWK"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6721 $as_echo "$AWK" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727
6728 test -n "$AWK" && break
6729 done
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 # If no C compiler was specified, use CC.
6750 LTCC=${LTCC-"$CC"}
6751
6752 # If no C compiler flags were specified, use CFLAGS.
6753 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6754
6755 # Allow CC to be a program name with arguments.
6756 compiler=$CC
6757
6758
6759 # Check for command to grab the raw symbol name followed by C symbol from nm.
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6761 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6762 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765
6766 # These are sane defaults that work on at least a few old systems.
6767 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6768
6769 # Character class describing NM global symbol codes.
6770 symcode='[BCDEGRST]'
6771
6772 # Regexp to match symbols that can be accessed directly from C.
6773 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6774
6775 # Define system-specific variables.
6776 case $host_os in
6777 aix*)
6778 symcode='[BCDT]'
6779 ;;
6780 cygwin* | mingw* | pw32* | cegcc*)
6781 symcode='[ABCDGISTW]'
6782 ;;
6783 hpux*)
6784 if test "$host_cpu" = ia64; then
6785 symcode='[ABCDEGRST]'
6786 fi
6787 ;;
6788 irix* | nonstopux*)
6789 symcode='[BCDEGRST]'
6790 ;;
6791 osf*)
6792 symcode='[BCDEGQRST]'
6793 ;;
6794 solaris*)
6795 symcode='[BDRT]'
6796 ;;
6797 sco3.2v5*)
6798 symcode='[DT]'
6799 ;;
6800 sysv4.2uw2*)
6801 symcode='[DT]'
6802 ;;
6803 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6804 symcode='[ABDT]'
6805 ;;
6806 sysv4)
6807 symcode='[DFNSTU]'
6808 ;;
6809 esac
6810
6811 # If we're using GNU nm, then use its standard symbol codes.
6812 case `$NM -V 2>&1` in
6813 *GNU* | *'with BFD'*)
6814 symcode='[ABCDGIRSTW]' ;;
6815 esac
6816
6817 # Transform an extracted symbol line into a proper C declaration.
6818 # Some systems (esp. on ia64) link data and code symbols differently,
6819 # so use this general approach.
6820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6821
6822 # Transform an extracted symbol line into symbol name and symbol address
6823 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6824 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'"
6825
6826 # Handle CRLF in mingw tool chain
6827 opt_cr=
6828 case $build_os in
6829 mingw*)
6830 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6831 ;;
6832 esac
6833
6834 # Try without a prefix underscore, then with it.
6835 for ac_symprfx in "" "_"; do
6836
6837 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6838 symxfrm="\\1 $ac_symprfx\\2 \\2"
6839
6840 # Write the raw and C identifiers.
6841 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6842 # Fake it for dumpbin and say T for any non-static function
6843 # and D for any global variable.
6844 # Also find C++ and __fastcall symbols from MSVC++,
6845 # which start with @ or ?.
6846 lt_cv_sys_global_symbol_pipe="$AWK '"\
6847 " {last_section=section; section=\$ 3};"\
6848 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6849 " \$ 0!~/External *\|/{next};"\
6850 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6851 " {if(hide[section]) next};"\
6852 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6853 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6854 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6855 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6856 " ' prfx=^$ac_symprfx"
6857 else
6858 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6859 fi
6860
6861 # Check to see that the pipe works correctly.
6862 pipe_works=no
6863
6864 rm -f conftest*
6865 cat > conftest.$ac_ext <<_LT_EOF
6866 #ifdef __cplusplus
6867 extern "C" {
6868 #endif
6869 char nm_test_var;
6870 void nm_test_func(void);
6871 void nm_test_func(void){}
6872 #ifdef __cplusplus
6873 }
6874 #endif
6875 int main(){nm_test_var='a';nm_test_func();return(0);}
6876 _LT_EOF
6877
6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6879 (eval $ac_compile) 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; }; then
6883 # Now try to grab the symbols.
6884 nlist=conftest.nm
6885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6886 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6887 ac_status=$?
6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889 test $ac_status = 0; } && test -s "$nlist"; then
6890 # Try sorting and uniquifying the output.
6891 if sort "$nlist" | uniq > "$nlist"T; then
6892 mv -f "$nlist"T "$nlist"
6893 else
6894 rm -f "$nlist"T
6895 fi
6896
6897 # Make sure that we snagged all the symbols we need.
6898 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6899 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6900 cat <<_LT_EOF > conftest.$ac_ext
6901 #ifdef __cplusplus
6902 extern "C" {
6903 #endif
6904
6905 _LT_EOF
6906 # Now generate the symbol file.
6907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6908
6909 cat <<_LT_EOF >> conftest.$ac_ext
6910
6911 /* The mapping between symbol names and symbols. */
6912 const struct {
6913 const char *name;
6914 void *address;
6915 }
6916 lt__PROGRAM__LTX_preloaded_symbols[] =
6917 {
6918 { "@PROGRAM@", (void *) 0 },
6919 _LT_EOF
6920 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6921 cat <<\_LT_EOF >> conftest.$ac_ext
6922 {0, (void *) 0}
6923 };
6924
6925 /* This works around a problem in FreeBSD linker */
6926 #ifdef FREEBSD_WORKAROUND
6927 static const void *lt_preloaded_setup() {
6928 return lt__PROGRAM__LTX_preloaded_symbols;
6929 }
6930 #endif
6931
6932 #ifdef __cplusplus
6933 }
6934 #endif
6935 _LT_EOF
6936 # Now try linking the two files.
6937 mv conftest.$ac_objext conftstm.$ac_objext
6938 lt_save_LIBS="$LIBS"
6939 lt_save_CFLAGS="$CFLAGS"
6940 LIBS="conftstm.$ac_objext"
6941 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6943 (eval $ac_link) 2>&5
6944 ac_status=$?
6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6947 pipe_works=yes
6948 fi
6949 LIBS="$lt_save_LIBS"
6950 CFLAGS="$lt_save_CFLAGS"
6951 else
6952 echo "cannot find nm_test_func in $nlist" >&5
6953 fi
6954 else
6955 echo "cannot find nm_test_var in $nlist" >&5
6956 fi
6957 else
6958 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6959 fi
6960 else
6961 echo "$progname: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 fi
6964 rm -rf conftest* conftst*
6965
6966 # Do not use the global_symbol_pipe unless it works.
6967 if test "$pipe_works" = yes; then
6968 break
6969 else
6970 lt_cv_sys_global_symbol_pipe=
6971 fi
6972 done
6973
6974 fi
6975
6976 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6977 lt_cv_sys_global_symbol_to_cdecl=
6978 fi
6979 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6981 $as_echo "failed" >&6; }
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6984 $as_echo "ok" >&6; }
6985 fi
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008 # Check whether --enable-libtool-lock was given.
7009 if test "${enable_libtool_lock+set}" = set; then :
7010 enableval=$enable_libtool_lock;
7011 fi
7012
7013 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7014
7015 # Some flags need to be propagated to the compiler or linker for good
7016 # libtool support.
7017 case $host in
7018 ia64-*-hpux*)
7019 # Find out which ABI we are using.
7020 echo 'int i;' > conftest.$ac_ext
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022 (eval $ac_compile) 2>&5
7023 ac_status=$?
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; }; then
7026 case `/usr/bin/file conftest.$ac_objext` in
7027 *ELF-32*)
7028 HPUX_IA64_MODE="32"
7029 ;;
7030 *ELF-64*)
7031 HPUX_IA64_MODE="64"
7032 ;;
7033 esac
7034 fi
7035 rm -rf conftest*
7036 ;;
7037 *-*-irix6*)
7038 # Find out which ABI we are using.
7039 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7041 (eval $ac_compile) 2>&5
7042 ac_status=$?
7043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044 test $ac_status = 0; }; then
7045 if test "$lt_cv_prog_gnu_ld" = yes; then
7046 case `/usr/bin/file conftest.$ac_objext` in
7047 *32-bit*)
7048 LD="${LD-ld} -melf32bsmip"
7049 ;;
7050 *N32*)
7051 LD="${LD-ld} -melf32bmipn32"
7052 ;;
7053 *64-bit*)
7054 LD="${LD-ld} -melf64bmip"
7055 ;;
7056 esac
7057 else
7058 case `/usr/bin/file conftest.$ac_objext` in
7059 *32-bit*)
7060 LD="${LD-ld} -32"
7061 ;;
7062 *N32*)
7063 LD="${LD-ld} -n32"
7064 ;;
7065 *64-bit*)
7066 LD="${LD-ld} -64"
7067 ;;
7068 esac
7069 fi
7070 fi
7071 rm -rf conftest*
7072 ;;
7073
7074 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7075 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7076 # Find out which ABI we are using.
7077 echo 'int i;' > conftest.$ac_ext
7078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7079 (eval $ac_compile) 2>&5
7080 ac_status=$?
7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082 test $ac_status = 0; }; then
7083 case `/usr/bin/file conftest.o` in
7084 *32-bit*)
7085 case $host in
7086 x86_64-*kfreebsd*-gnu)
7087 LD="${LD-ld} -m elf_i386_fbsd"
7088 ;;
7089 x86_64-*linux*)
7090 case `/usr/bin/file conftest.o` in
7091 *x86-64*)
7092 LD="${LD-ld} -m elf32_x86_64"
7093 ;;
7094 *)
7095 LD="${LD-ld} -m elf_i386"
7096 ;;
7097 esac
7098 ;;
7099 powerpc64le-*linux*)
7100 LD="${LD-ld} -m elf32lppclinux"
7101 ;;
7102 powerpc64-*linux*)
7103 LD="${LD-ld} -m elf32ppclinux"
7104 ;;
7105 s390x-*linux*)
7106 LD="${LD-ld} -m elf_s390"
7107 ;;
7108 sparc64-*linux*)
7109 LD="${LD-ld} -m elf32_sparc"
7110 ;;
7111 esac
7112 ;;
7113 *64-bit*)
7114 case $host in
7115 x86_64-*kfreebsd*-gnu)
7116 LD="${LD-ld} -m elf_x86_64_fbsd"
7117 ;;
7118 x86_64-*linux*)
7119 LD="${LD-ld} -m elf_x86_64"
7120 ;;
7121 powerpcle-*linux*)
7122 LD="${LD-ld} -m elf64lppc"
7123 ;;
7124 powerpc-*linux*)
7125 LD="${LD-ld} -m elf64ppc"
7126 ;;
7127 s390*-*linux*|s390*-*tpf*)
7128 LD="${LD-ld} -m elf64_s390"
7129 ;;
7130 sparc*-*linux*)
7131 LD="${LD-ld} -m elf64_sparc"
7132 ;;
7133 esac
7134 ;;
7135 esac
7136 fi
7137 rm -rf conftest*
7138 ;;
7139
7140 *-*-sco3.2v5*)
7141 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7142 SAVE_CFLAGS="$CFLAGS"
7143 CFLAGS="$CFLAGS -belf"
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7145 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7146 if ${lt_cv_cc_needs_belf+:} false; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 ac_ext=c
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157
7158 int
7159 main ()
7160 {
7161
7162 ;
7163 return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167 lt_cv_cc_needs_belf=yes
7168 else
7169 lt_cv_cc_needs_belf=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7173 ac_ext=c
7174 ac_cpp='$CPP $CPPFLAGS'
7175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7178
7179 fi
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7181 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7182 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7183 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7184 CFLAGS="$SAVE_CFLAGS"
7185 fi
7186 ;;
7187 sparc*-*solaris*)
7188 # Find out which ABI we are using.
7189 echo 'int i;' > conftest.$ac_ext
7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7191 (eval $ac_compile) 2>&5
7192 ac_status=$?
7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194 test $ac_status = 0; }; then
7195 case `/usr/bin/file conftest.o` in
7196 *64-bit*)
7197 case $lt_cv_prog_gnu_ld in
7198 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7199 *)
7200 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7201 LD="${LD-ld} -64"
7202 fi
7203 ;;
7204 esac
7205 ;;
7206 esac
7207 fi
7208 rm -rf conftest*
7209 ;;
7210 esac
7211
7212 need_locks="$enable_libtool_lock"
7213
7214
7215 case $host_os in
7216 rhapsody* | darwin*)
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$DSYMUTIL"; then
7226 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7246 if test -n "$DSYMUTIL"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7248 $as_echo "$DSYMUTIL" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_DSYMUTIL"; then
7257 ac_ct_DSYMUTIL=$DSYMUTIL
7258 # Extract the first word of "dsymutil", so it can be a program name with args.
7259 set dummy dsymutil; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$ac_ct_DSYMUTIL"; then
7266 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7286 if test -n "$ac_ct_DSYMUTIL"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7288 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294 if test "x$ac_ct_DSYMUTIL" = x; then
7295 DSYMUTIL=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303 DSYMUTIL=$ac_ct_DSYMUTIL
7304 fi
7305 else
7306 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7307 fi
7308
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if ${ac_cv_prog_NMEDIT+:} false; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$NMEDIT"; then
7318 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7327 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 NMEDIT=$ac_cv_prog_NMEDIT
7338 if test -n "$NMEDIT"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7340 $as_echo "$NMEDIT" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_NMEDIT"; then
7349 ac_ct_NMEDIT=$NMEDIT
7350 # Extract the first word of "nmedit", so it can be a program name with args.
7351 set dummy nmedit; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 if test -n "$ac_ct_NMEDIT"; then
7358 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7378 if test -n "$ac_ct_NMEDIT"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7380 $as_echo "$ac_ct_NMEDIT" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386 if test "x$ac_ct_NMEDIT" = x; then
7387 NMEDIT=":"
7388 else
7389 case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395 NMEDIT=$ac_ct_NMEDIT
7396 fi
7397 else
7398 NMEDIT="$ac_cv_prog_NMEDIT"
7399 fi
7400
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_LIPO+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$LIPO"; then
7410 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 LIPO=$ac_cv_prog_LIPO
7430 if test -n "$LIPO"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7432 $as_echo "$LIPO" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_LIPO"; then
7441 ac_ct_LIPO=$LIPO
7442 # Extract the first word of "lipo", so it can be a program name with args.
7443 set dummy lipo; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_LIPO"; then
7450 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_ac_ct_LIPO="lipo"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7470 if test -n "$ac_ct_LIPO"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7472 $as_echo "$ac_ct_LIPO" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478 if test "x$ac_ct_LIPO" = x; then
7479 LIPO=":"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 LIPO=$ac_ct_LIPO
7488 fi
7489 else
7490 LIPO="$ac_cv_prog_LIPO"
7491 fi
7492
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_OTOOL+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$OTOOL"; then
7502 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 OTOOL=$ac_cv_prog_OTOOL
7522 if test -n "$OTOOL"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7524 $as_echo "$OTOOL" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_OTOOL"; then
7533 ac_ct_OTOOL=$OTOOL
7534 # Extract the first word of "otool", so it can be a program name with args.
7535 set dummy otool; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$ac_ct_OTOOL"; then
7542 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_ac_ct_OTOOL="otool"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7562 if test -n "$ac_ct_OTOOL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7564 $as_echo "$ac_ct_OTOOL" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570 if test "x$ac_ct_OTOOL" = x; then
7571 OTOOL=":"
7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579 OTOOL=$ac_ct_OTOOL
7580 fi
7581 else
7582 OTOOL="$ac_cv_prog_OTOOL"
7583 fi
7584
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_prog_OTOOL64+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$OTOOL64"; then
7594 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 OTOOL64=$ac_cv_prog_OTOOL64
7614 if test -n "$OTOOL64"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7616 $as_echo "$OTOOL64" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_OTOOL64"; then
7625 ac_ct_OTOOL64=$OTOOL64
7626 # Extract the first word of "otool64", so it can be a program name with args.
7627 set dummy otool64; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$ac_ct_OTOOL64"; then
7634 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_ac_ct_OTOOL64="otool64"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7654 if test -n "$ac_ct_OTOOL64"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7656 $as_echo "$ac_ct_OTOOL64" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662 if test "x$ac_ct_OTOOL64" = x; then
7663 OTOOL64=":"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7670 esac
7671 OTOOL64=$ac_ct_OTOOL64
7672 fi
7673 else
7674 OTOOL64="$ac_cv_prog_OTOOL64"
7675 fi
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7704 $as_echo_n "checking for -single_module linker flag... " >&6; }
7705 if ${lt_cv_apple_cc_single_mod+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 lt_cv_apple_cc_single_mod=no
7709 if test -z "${LT_MULTI_MODULE}"; then
7710 # By default we will add the -single_module flag. You can override
7711 # by either setting the environment variable LT_MULTI_MODULE
7712 # non-empty at configure time, or by adding -multi_module to the
7713 # link flags.
7714 rm -rf libconftest.dylib*
7715 echo "int foo(void){return 1;}" > conftest.c
7716 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7717 -dynamiclib -Wl,-single_module conftest.c" >&5
7718 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7719 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7720 _lt_result=$?
7721 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7722 lt_cv_apple_cc_single_mod=yes
7723 else
7724 cat conftest.err >&5
7725 fi
7726 rm -rf libconftest.dylib*
7727 rm -f conftest.*
7728 fi
7729 fi
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7731 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7733 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7734 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 lt_cv_ld_exported_symbols_list=no
7738 save_LDFLAGS=$LDFLAGS
7739 echo "_main" > conftest.sym
7740 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743
7744 int
7745 main ()
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"; then :
7753 lt_cv_ld_exported_symbols_list=yes
7754 else
7755 lt_cv_ld_exported_symbols_list=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 LDFLAGS="$save_LDFLAGS"
7760
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7763 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7765 $as_echo_n "checking for -force_load linker flag... " >&6; }
7766 if ${lt_cv_ld_force_load+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 lt_cv_ld_force_load=no
7770 cat > conftest.c << _LT_EOF
7771 int forced_loaded() { return 2;}
7772 _LT_EOF
7773 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7774 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7775 echo "$AR cru libconftest.a conftest.o" >&5
7776 $AR cru libconftest.a conftest.o 2>&5
7777 cat > conftest.c << _LT_EOF
7778 int main() { return 0;}
7779 _LT_EOF
7780 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7781 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7782 _lt_result=$?
7783 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7784 lt_cv_ld_force_load=yes
7785 else
7786 cat conftest.err >&5
7787 fi
7788 rm -f conftest.err libconftest.a conftest conftest.c
7789 rm -rf conftest.dSYM
7790
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7793 $as_echo "$lt_cv_ld_force_load" >&6; }
7794 case $host_os in
7795 rhapsody* | darwin1.[012])
7796 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7797 darwin1.*)
7798 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7799 darwin*) # darwin 5.x on
7800 # if running on 10.5 or later, the deployment target defaults
7801 # to the OS version, if on x86, and 10.4, the deployment
7802 # target defaults to 10.4. Don't you love it?
7803 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7804 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7805 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7806 10.[012][,.]*)
7807 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7808 10.*)
7809 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7810 esac
7811 ;;
7812 esac
7813 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7814 _lt_dar_single_mod='$single_module'
7815 fi
7816 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7817 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7818 else
7819 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7820 fi
7821 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7822 _lt_dsymutil='~$DSYMUTIL $lib || :'
7823 else
7824 _lt_dsymutil=
7825 fi
7826 ;;
7827 esac
7828
7829 for ac_header in dlfcn.h
7830 do :
7831 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7832 "
7833 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7834 cat >>confdefs.h <<_ACEOF
7835 #define HAVE_DLFCN_H 1
7836 _ACEOF
7837
7838 fi
7839
7840 done
7841
7842
7843 ac_header_dirent=no
7844 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7845 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7847 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7848 if eval \${$as_ac_Header+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <sys/types.h>
7854 #include <$ac_hdr>
7855
7856 int
7857 main ()
7858 {
7859 if ((DIR *) 0)
7860 return 0;
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_compile "$LINENO"; then :
7866 eval "$as_ac_Header=yes"
7867 else
7868 eval "$as_ac_Header=no"
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 eval ac_res=\$$as_ac_Header
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7874 $as_echo "$ac_res" >&6; }
7875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7876 cat >>confdefs.h <<_ACEOF
7877 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7878 _ACEOF
7879
7880 ac_header_dirent=$ac_hdr; break
7881 fi
7882
7883 done
7884 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7885 if test $ac_header_dirent = dirent.h; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7887 $as_echo_n "checking for library containing opendir... " >&6; }
7888 if ${ac_cv_search_opendir+:} false; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 ac_func_search_save_LIBS=$LIBS
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894
7895 /* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 char opendir ();
7902 int
7903 main ()
7904 {
7905 return opendir ();
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 for ac_lib in '' dir; do
7911 if test -z "$ac_lib"; then
7912 ac_res="none required"
7913 else
7914 ac_res=-l$ac_lib
7915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7916 fi
7917 if ac_fn_c_try_link "$LINENO"; then :
7918 ac_cv_search_opendir=$ac_res
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext \
7921 conftest$ac_exeext
7922 if ${ac_cv_search_opendir+:} false; then :
7923 break
7924 fi
7925 done
7926 if ${ac_cv_search_opendir+:} false; then :
7927
7928 else
7929 ac_cv_search_opendir=no
7930 fi
7931 rm conftest.$ac_ext
7932 LIBS=$ac_func_search_save_LIBS
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7935 $as_echo "$ac_cv_search_opendir" >&6; }
7936 ac_res=$ac_cv_search_opendir
7937 if test "$ac_res" != no; then :
7938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7939
7940 fi
7941
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7944 $as_echo_n "checking for library containing opendir... " >&6; }
7945 if ${ac_cv_search_opendir+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 ac_func_search_save_LIBS=$LIBS
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7951
7952 /* Override any GCC internal prototype to avoid an error.
7953 Use char because int might match the return type of a GCC
7954 builtin and then its argument prototype would still apply. */
7955 #ifdef __cplusplus
7956 extern "C"
7957 #endif
7958 char opendir ();
7959 int
7960 main ()
7961 {
7962 return opendir ();
7963 ;
7964 return 0;
7965 }
7966 _ACEOF
7967 for ac_lib in '' x; do
7968 if test -z "$ac_lib"; then
7969 ac_res="none required"
7970 else
7971 ac_res=-l$ac_lib
7972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7973 fi
7974 if ac_fn_c_try_link "$LINENO"; then :
7975 ac_cv_search_opendir=$ac_res
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext
7979 if ${ac_cv_search_opendir+:} false; then :
7980 break
7981 fi
7982 done
7983 if ${ac_cv_search_opendir+:} false; then :
7984
7985 else
7986 ac_cv_search_opendir=no
7987 fi
7988 rm conftest.$ac_ext
7989 LIBS=$ac_func_search_save_LIBS
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7992 $as_echo "$ac_cv_search_opendir" >&6; }
7993 ac_res=$ac_cv_search_opendir
7994 if test "$ac_res" != no; then :
7995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7996
7997 fi
7998
7999 fi
8000
8001
8002
8003
8004 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
8005 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8006
8007 cat >>confdefs.h <<_ACEOF
8008 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8009 _ACEOF
8010
8011
8012 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
8013
8014 fi
8015
8016
8017 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
8018 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8019
8020 cat >>confdefs.h <<_ACEOF
8021 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8022 _ACEOF
8023
8024
8025 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
8026
8027 else
8028 case " $LIBOBJS " in
8029 *" fileblocks.$ac_objext "* ) ;;
8030 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
8031 ;;
8032 esac
8033
8034 fi
8035
8036
8037 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
8038 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define HAVE_STRUCT_STAT_ST_RDEV 1
8042 _ACEOF
8043
8044
8045 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
8046
8047 fi
8048
8049
8050 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8051 #include <$ac_cv_struct_tm>
8052
8053 "
8054 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8055
8056 cat >>confdefs.h <<_ACEOF
8057 #define HAVE_STRUCT_TM_TM_ZONE 1
8058 _ACEOF
8059
8060
8061 fi
8062
8063 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8064
8065 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8066
8067 else
8068 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8069 "
8070 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8071 ac_have_decl=1
8072 else
8073 ac_have_decl=0
8074 fi
8075
8076 cat >>confdefs.h <<_ACEOF
8077 #define HAVE_DECL_TZNAME $ac_have_decl
8078 _ACEOF
8079
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8081 $as_echo_n "checking for tzname... " >&6; }
8082 if ${ac_cv_var_tzname+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8087 #include <time.h>
8088 #if !HAVE_DECL_TZNAME
8089 extern char *tzname[];
8090 #endif
8091
8092 int
8093 main ()
8094 {
8095 return tzname[0][0];
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 ac_cv_var_tzname=yes
8102 else
8103 ac_cv_var_tzname=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8109 $as_echo "$ac_cv_var_tzname" >&6; }
8110 if test $ac_cv_var_tzname = yes; then
8111
8112 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8113
8114 fi
8115 fi
8116
8117
8118 ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H
8119 #include <sys/types.h>
8120 #endif
8121 #ifdef HAVE_SYS_STAT_H
8122 #include <sys/stat.h>
8123 #endif
8124 "
8125 if test "x$ac_cv_member_struct_stat_st_dev" = xyes; then :
8126
8127 cat >>confdefs.h <<_ACEOF
8128 #define HAVE_STRUCT_STAT_ST_DEV 1
8129 _ACEOF
8130
8131
8132 fi
8133 ac_fn_c_check_member "$LINENO" "struct stat" "st_ino" "ac_cv_member_struct_stat_st_ino" "#ifdef HAVE_SYS_TYPES_H
8134 #include <sys/types.h>
8135 #endif
8136 #ifdef HAVE_SYS_STAT_H
8137 #include <sys/stat.h>
8138 #endif
8139 "
8140 if test "x$ac_cv_member_struct_stat_st_ino" = xyes; then :
8141
8142 cat >>confdefs.h <<_ACEOF
8143 #define HAVE_STRUCT_STAT_ST_INO 1
8144 _ACEOF
8145
8146
8147 fi
8148 ac_fn_c_check_member "$LINENO" "struct stat" "st_mode" "ac_cv_member_struct_stat_st_mode" "#ifdef HAVE_SYS_TYPES_H
8149 #include <sys/types.h>
8150 #endif
8151 #ifdef HAVE_SYS_STAT_H
8152 #include <sys/stat.h>
8153 #endif
8154 "
8155 if test "x$ac_cv_member_struct_stat_st_mode" = xyes; then :
8156
8157 cat >>confdefs.h <<_ACEOF
8158 #define HAVE_STRUCT_STAT_ST_MODE 1
8159 _ACEOF
8160
8161
8162 fi
8163 ac_fn_c_check_member "$LINENO" "struct stat" "st_nlink" "ac_cv_member_struct_stat_st_nlink" "#ifdef HAVE_SYS_TYPES_H
8164 #include <sys/types.h>
8165 #endif
8166 #ifdef HAVE_SYS_STAT_H
8167 #include <sys/stat.h>
8168 #endif
8169 "
8170 if test "x$ac_cv_member_struct_stat_st_nlink" = xyes; then :
8171
8172 cat >>confdefs.h <<_ACEOF
8173 #define HAVE_STRUCT_STAT_ST_NLINK 1
8174 _ACEOF
8175
8176
8177 fi
8178 ac_fn_c_check_member "$LINENO" "struct stat" "st_uid" "ac_cv_member_struct_stat_st_uid" "#ifdef HAVE_SYS_TYPES_H
8179 #include <sys/types.h>
8180 #endif
8181 #ifdef HAVE_SYS_STAT_H
8182 #include <sys/stat.h>
8183 #endif
8184 "
8185 if test "x$ac_cv_member_struct_stat_st_uid" = xyes; then :
8186
8187 cat >>confdefs.h <<_ACEOF
8188 #define HAVE_STRUCT_STAT_ST_UID 1
8189 _ACEOF
8190
8191
8192 fi
8193 ac_fn_c_check_member "$LINENO" "struct stat" "st_gid" "ac_cv_member_struct_stat_st_gid" "#ifdef HAVE_SYS_TYPES_H
8194 #include <sys/types.h>
8195 #endif
8196 #ifdef HAVE_SYS_STAT_H
8197 #include <sys/stat.h>
8198 #endif
8199 "
8200 if test "x$ac_cv_member_struct_stat_st_gid" = xyes; then :
8201
8202 cat >>confdefs.h <<_ACEOF
8203 #define HAVE_STRUCT_STAT_ST_GID 1
8204 _ACEOF
8205
8206
8207 fi
8208 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "#ifdef HAVE_SYS_TYPES_H
8209 #include <sys/types.h>
8210 #endif
8211 #ifdef HAVE_SYS_STAT_H
8212 #include <sys/stat.h>
8213 #endif
8214 "
8215 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
8216
8217 cat >>confdefs.h <<_ACEOF
8218 #define HAVE_STRUCT_STAT_ST_RDEV 1
8219 _ACEOF
8220
8221
8222 fi
8223 ac_fn_c_check_member "$LINENO" "struct stat" "st_size" "ac_cv_member_struct_stat_st_size" "#ifdef HAVE_SYS_TYPES_H
8224 #include <sys/types.h>
8225 #endif
8226 #ifdef HAVE_SYS_STAT_H
8227 #include <sys/stat.h>
8228 #endif
8229 "
8230 if test "x$ac_cv_member_struct_stat_st_size" = xyes; then :
8231
8232 cat >>confdefs.h <<_ACEOF
8233 #define HAVE_STRUCT_STAT_ST_SIZE 1
8234 _ACEOF
8235
8236
8237 fi
8238 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#ifdef HAVE_SYS_TYPES_H
8239 #include <sys/types.h>
8240 #endif
8241 #ifdef HAVE_SYS_STAT_H
8242 #include <sys/stat.h>
8243 #endif
8244 "
8245 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
8246
8247 cat >>confdefs.h <<_ACEOF
8248 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
8249 _ACEOF
8250
8251
8252 fi
8253 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#ifdef HAVE_SYS_TYPES_H
8254 #include <sys/types.h>
8255 #endif
8256 #ifdef HAVE_SYS_STAT_H
8257 #include <sys/stat.h>
8258 #endif
8259 "
8260 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
8261
8262 cat >>confdefs.h <<_ACEOF
8263 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
8264 _ACEOF
8265
8266
8267 fi
8268 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime" "ac_cv_member_struct_stat_st_atime" "#ifdef HAVE_SYS_TYPES_H
8269 #include <sys/types.h>
8270 #endif
8271 #ifdef HAVE_SYS_STAT_H
8272 #include <sys/stat.h>
8273 #endif
8274 "
8275 if test "x$ac_cv_member_struct_stat_st_atime" = xyes; then :
8276
8277 cat >>confdefs.h <<_ACEOF
8278 #define HAVE_STRUCT_STAT_ST_ATIME 1
8279 _ACEOF
8280
8281
8282 fi
8283 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime" "ac_cv_member_struct_stat_st_mtime" "#ifdef HAVE_SYS_TYPES_H
8284 #include <sys/types.h>
8285 #endif
8286 #ifdef HAVE_SYS_STAT_H
8287 #include <sys/stat.h>
8288 #endif
8289 "
8290 if test "x$ac_cv_member_struct_stat_st_mtime" = xyes; then :
8291
8292 cat >>confdefs.h <<_ACEOF
8293 #define HAVE_STRUCT_STAT_ST_MTIME 1
8294 _ACEOF
8295
8296
8297 fi
8298 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime" "ac_cv_member_struct_stat_st_ctime" "#ifdef HAVE_SYS_TYPES_H
8299 #include <sys/types.h>
8300 #endif
8301 #ifdef HAVE_SYS_STAT_H
8302 #include <sys/stat.h>
8303 #endif
8304 "
8305 if test "x$ac_cv_member_struct_stat_st_ctime" = xyes; then :
8306
8307 cat >>confdefs.h <<_ACEOF
8308 #define HAVE_STRUCT_STAT_ST_CTIME 1
8309 _ACEOF
8310
8311
8312 fi
8313
8314
8315 ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
8316 if test "x$ac_cv_type___int128" = xyes; then :
8317
8318 cat >>confdefs.h <<_ACEOF
8319 #define HAVE___INT128 1
8320 _ACEOF
8321
8322
8323 fi
8324
8325 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8326 #include <sys/socket.h>
8327
8328 "
8329 if test "x$ac_cv_type_socklen_t" = xyes; then :
8330
8331 cat >>confdefs.h <<_ACEOF
8332 #define HAVE_SOCKLEN_T 1
8333 _ACEOF
8334
8335
8336 fi
8337
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8340 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8341 if ${ac_cv_type_getgroups+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 if test "$cross_compiling" = yes; then :
8345 ac_cv_type_getgroups=cross
8346 else
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 /* Thanks to Mike Rendell for this test. */
8350 $ac_includes_default
8351 #define NGID 256
8352 #undef MAX
8353 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8354
8355 int
8356 main ()
8357 {
8358 gid_t gidset[NGID];
8359 int i, n;
8360 union { gid_t gval; long int lval; } val;
8361
8362 val.lval = -1;
8363 for (i = 0; i < NGID; i++)
8364 gidset[i] = val.gval;
8365 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8366 gidset);
8367 /* Exit non-zero if getgroups seems to require an array of ints. This
8368 happens when gid_t is short int but getgroups modifies an array
8369 of ints. */
8370 return n > 0 && gidset[n] != val.gval;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_run "$LINENO"; then :
8374 ac_cv_type_getgroups=gid_t
8375 else
8376 ac_cv_type_getgroups=int
8377 fi
8378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8379 conftest.$ac_objext conftest.beam conftest.$ac_ext
8380 fi
8381
8382 if test $ac_cv_type_getgroups = cross; then
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 #include <unistd.h>
8386
8387 _ACEOF
8388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8389 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8390 ac_cv_type_getgroups=gid_t
8391 else
8392 ac_cv_type_getgroups=int
8393 fi
8394 rm -f conftest*
8395
8396 fi
8397 fi
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8399 $as_echo "$ac_cv_type_getgroups" >&6; }
8400
8401 cat >>confdefs.h <<_ACEOF
8402 #define GETGROUPS_T $ac_cv_type_getgroups
8403 _ACEOF
8404
8405
8406 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8407 if test "x$ac_cv_type_mode_t" = xyes; then :
8408
8409 else
8410
8411 cat >>confdefs.h <<_ACEOF
8412 #define mode_t int
8413 _ACEOF
8414
8415 fi
8416
8417 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8418 if test "x$ac_cv_type_off_t" = xyes; then :
8419
8420 else
8421
8422 cat >>confdefs.h <<_ACEOF
8423 #define off_t long int
8424 _ACEOF
8425
8426 fi
8427
8428 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8429 if test "x$ac_cv_type_pid_t" = xyes; then :
8430
8431 else
8432
8433 cat >>confdefs.h <<_ACEOF
8434 #define pid_t int
8435 _ACEOF
8436
8437 fi
8438
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8440 $as_echo_n "checking return type of signal handlers... " >&6; }
8441 if ${ac_cv_type_signal+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 #include <sys/types.h>
8447 #include <signal.h>
8448
8449 int
8450 main ()
8451 {
8452 return *(signal (0, 0)) (0) == 1;
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 if ac_fn_c_try_compile "$LINENO"; then :
8458 ac_cv_type_signal=int
8459 else
8460 ac_cv_type_signal=void
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 fi
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8465 $as_echo "$ac_cv_type_signal" >&6; }
8466
8467 cat >>confdefs.h <<_ACEOF
8468 #define RETSIGTYPE $ac_cv_type_signal
8469 _ACEOF
8470
8471
8472 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8473 if test "x$ac_cv_type_size_t" = xyes; then :
8474
8475 else
8476
8477 cat >>confdefs.h <<_ACEOF
8478 #define size_t unsigned int
8479 _ACEOF
8480
8481 fi
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8484 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8485 if ${ac_cv_type_uid_t+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8490 #include <sys/types.h>
8491
8492 _ACEOF
8493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8494 $EGREP "uid_t" >/dev/null 2>&1; then :
8495 ac_cv_type_uid_t=yes
8496 else
8497 ac_cv_type_uid_t=no
8498 fi
8499 rm -f conftest*
8500
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8503 $as_echo "$ac_cv_type_uid_t" >&6; }
8504 if test $ac_cv_type_uid_t = no; then
8505
8506 $as_echo "#define uid_t int" >>confdefs.h
8507
8508
8509 $as_echo "#define gid_t int" >>confdefs.h
8510
8511 fi
8512
8513
8514 ALL_LINGUAS=
8515 # If we haven't got the data from the intl directory,
8516 # assume NLS is disabled.
8517 USE_NLS=no
8518 LIBINTL=
8519 LIBINTL_DEP=
8520 INCINTL=
8521 XGETTEXT=
8522 GMSGFMT=
8523 POSUB=
8524
8525 if test -f ../intl/config.intl; then
8526 . ../intl/config.intl
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8529 $as_echo_n "checking whether NLS is requested... " >&6; }
8530 if test x"$USE_NLS" != xyes; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8535 $as_echo "yes" >&6; }
8536
8537 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8538
8539
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8541 $as_echo_n "checking for catalogs to be installed... " >&6; }
8542 # Look for .po and .gmo files in the source directory.
8543 CATALOGS=
8544 XLINGUAS=
8545 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
8546 # If there aren't any .gmo files the shell will give us the
8547 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8548 # weeded out.
8549 case "$cat" in *\**)
8550 continue;;
8551 esac
8552 # The quadruple backslash is collapsed to a double backslash
8553 # by the backticks, then collapsed again by the double quotes,
8554 # leaving us with one backslash in the sed expression (right
8555 # before the dot that mustn't act as a wildcard).
8556 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8557 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
8558 # The user is allowed to set LINGUAS to a list of languages to
8559 # install catalogs for. If it's empty that means "all of them."
8560 if test "x$LINGUAS" = x; then
8561 CATALOGS="$CATALOGS $cat"
8562 XLINGUAS="$XLINGUAS $lang"
8563 else
8564 case "$LINGUAS" in *$lang*)
8565 CATALOGS="$CATALOGS $cat"
8566 XLINGUAS="$XLINGUAS $lang"
8567 ;;
8568 esac
8569 fi
8570 done
8571 LINGUAS="$XLINGUAS"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8573 $as_echo "$LINGUAS" >&6; }
8574
8575
8576 DATADIRNAME=share
8577
8578 INSTOBJEXT=.mo
8579
8580 GENCAT=gencat
8581
8582 CATOBJEXT=.gmo
8583
8584 fi
8585
8586
8587 # Use the system's zlib library.
8588 zlibdir="-L\$(top_builddir)/../zlib"
8589 zlibinc="-I\$(top_srcdir)/../zlib"
8590
8591 # Check whether --with-system-zlib was given.
8592 if test "${with_system_zlib+set}" = set; then :
8593 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
8594 zlibdir=
8595 zlibinc=
8596 fi
8597
8598 fi
8599
8600
8601
8602
8603
8604
8605 maybe_plugins=no
8606 for ac_header in dlfcn.h
8607 do :
8608 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8609 "
8610 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8611 cat >>confdefs.h <<_ACEOF
8612 #define HAVE_DLFCN_H 1
8613 _ACEOF
8614 maybe_plugins=yes
8615 fi
8616
8617 done
8618
8619 for ac_header in windows.h
8620 do :
8621 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
8622 "
8623 if test "x$ac_cv_header_windows_h" = xyes; then :
8624 cat >>confdefs.h <<_ACEOF
8625 #define HAVE_WINDOWS_H 1
8626 _ACEOF
8627 maybe_plugins=yes
8628 fi
8629
8630 done
8631
8632
8633 # Check whether --enable-plugins was given.
8634 if test "${enable_plugins+set}" = set; then :
8635 enableval=$enable_plugins; case "${enableval}" in
8636 no) plugins=no ;;
8637 *) plugins=yes
8638 if test "$maybe_plugins" != "yes" ; then
8639 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
8640 fi ;;
8641 esac
8642 else
8643 plugins=$maybe_plugins
8644
8645 fi
8646
8647 if test "$plugins" = "yes"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
8649 $as_echo_n "checking for library containing dlsym... " >&6; }
8650 if ${ac_cv_search_dlsym+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 ac_func_search_save_LIBS=$LIBS
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656
8657 /* Override any GCC internal prototype to avoid an error.
8658 Use char because int might match the return type of a GCC
8659 builtin and then its argument prototype would still apply. */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 char dlsym ();
8664 int
8665 main ()
8666 {
8667 return dlsym ();
8668 ;
8669 return 0;
8670 }
8671 _ACEOF
8672 for ac_lib in '' dl; do
8673 if test -z "$ac_lib"; then
8674 ac_res="none required"
8675 else
8676 ac_res=-l$ac_lib
8677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8678 fi
8679 if ac_fn_c_try_link "$LINENO"; then :
8680 ac_cv_search_dlsym=$ac_res
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext \
8683 conftest$ac_exeext
8684 if ${ac_cv_search_dlsym+:} false; then :
8685 break
8686 fi
8687 done
8688 if ${ac_cv_search_dlsym+:} false; then :
8689
8690 else
8691 ac_cv_search_dlsym=no
8692 fi
8693 rm conftest.$ac_ext
8694 LIBS=$ac_func_search_save_LIBS
8695 fi
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
8697 $as_echo "$ac_cv_search_dlsym" >&6; }
8698 ac_res=$ac_cv_search_dlsym
8699 if test "$ac_res" != no; then :
8700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8701
8702 fi
8703
8704 fi
8705
8706 if test "$plugins" = yes; then
8707 PLUGINS_TRUE=
8708 PLUGINS_FALSE='#'
8709 else
8710 PLUGINS_TRUE='#'
8711 PLUGINS_FALSE=
8712 fi
8713
8714
8715
8716
8717
8718 # Set options
8719 enable_dlopen=yes
8720
8721
8722
8723
8724 enable_win32_dll=no
8725
8726
8727 # Check whether --enable-shared was given.
8728 if test "${enable_shared+set}" = set; then :
8729 enableval=$enable_shared; p=${PACKAGE-default}
8730 case $enableval in
8731 yes) enable_shared=yes ;;
8732 no) enable_shared=no ;;
8733 *)
8734 enable_shared=no
8735 # Look at the argument we got. We use all the common list separators.
8736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8737 for pkg in $enableval; do
8738 IFS="$lt_save_ifs"
8739 if test "X$pkg" = "X$p"; then
8740 enable_shared=yes
8741 fi
8742 done
8743 IFS="$lt_save_ifs"
8744 ;;
8745 esac
8746 else
8747 enable_shared=yes
8748 fi
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758 # Check whether --enable-static was given.
8759 if test "${enable_static+set}" = set; then :
8760 enableval=$enable_static; p=${PACKAGE-default}
8761 case $enableval in
8762 yes) enable_static=yes ;;
8763 no) enable_static=no ;;
8764 *)
8765 enable_static=no
8766 # Look at the argument we got. We use all the common list separators.
8767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8768 for pkg in $enableval; do
8769 IFS="$lt_save_ifs"
8770 if test "X$pkg" = "X$p"; then
8771 enable_static=yes
8772 fi
8773 done
8774 IFS="$lt_save_ifs"
8775 ;;
8776 esac
8777 else
8778 enable_static=yes
8779 fi
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790 # Check whether --with-pic was given.
8791 if test "${with_pic+set}" = set; then :
8792 withval=$with_pic; pic_mode="$withval"
8793 else
8794 pic_mode=default
8795 fi
8796
8797
8798 test -z "$pic_mode" && pic_mode=default
8799
8800
8801
8802
8803
8804
8805
8806 # Check whether --enable-fast-install was given.
8807 if test "${enable_fast_install+set}" = set; then :
8808 enableval=$enable_fast_install; p=${PACKAGE-default}
8809 case $enableval in
8810 yes) enable_fast_install=yes ;;
8811 no) enable_fast_install=no ;;
8812 *)
8813 enable_fast_install=no
8814 # Look at the argument we got. We use all the common list separators.
8815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8816 for pkg in $enableval; do
8817 IFS="$lt_save_ifs"
8818 if test "X$pkg" = "X$p"; then
8819 enable_fast_install=yes
8820 fi
8821 done
8822 IFS="$lt_save_ifs"
8823 ;;
8824 esac
8825 else
8826 enable_fast_install=yes
8827 fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839 # This can be used to rebuild libtool when needed
8840 LIBTOOL_DEPS="$ltmain"
8841
8842 # Always use our own libtool.
8843 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870 test -z "$LN_S" && LN_S="ln -s"
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885 if test -n "${ZSH_VERSION+set}" ; then
8886 setopt NO_GLOB_SUBST
8887 fi
8888
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8890 $as_echo_n "checking for objdir... " >&6; }
8891 if ${lt_cv_objdir+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 rm -f .libs 2>/dev/null
8895 mkdir .libs 2>/dev/null
8896 if test -d .libs; then
8897 lt_cv_objdir=.libs
8898 else
8899 # MS-DOS does not allow filenames that begin with a dot.
8900 lt_cv_objdir=_libs
8901 fi
8902 rmdir .libs 2>/dev/null
8903 fi
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8905 $as_echo "$lt_cv_objdir" >&6; }
8906 objdir=$lt_cv_objdir
8907
8908
8909
8910
8911
8912 cat >>confdefs.h <<_ACEOF
8913 #define LT_OBJDIR "$lt_cv_objdir/"
8914 _ACEOF
8915
8916
8917
8918
8919 case $host_os in
8920 aix3*)
8921 # AIX sometimes has problems with the GCC collect2 program. For some
8922 # reason, if we set the COLLECT_NAMES environment variable, the problems
8923 # vanish in a puff of smoke.
8924 if test "X${COLLECT_NAMES+set}" != Xset; then
8925 COLLECT_NAMES=
8926 export COLLECT_NAMES
8927 fi
8928 ;;
8929 esac
8930
8931 # Global variables:
8932 ofile=libtool
8933 can_build_shared=yes
8934
8935 # All known linkers require a `.a' archive for static linking (except MSVC,
8936 # which needs '.lib').
8937 libext=a
8938
8939 with_gnu_ld="$lt_cv_prog_gnu_ld"
8940
8941 old_CC="$CC"
8942 old_CFLAGS="$CFLAGS"
8943
8944 # Set sane defaults for various variables
8945 test -z "$CC" && CC=cc
8946 test -z "$LTCC" && LTCC=$CC
8947 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8948 test -z "$LD" && LD=ld
8949 test -z "$ac_objext" && ac_objext=o
8950
8951 for cc_temp in $compiler""; do
8952 case $cc_temp in
8953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8955 \-*) ;;
8956 *) break;;
8957 esac
8958 done
8959 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8960
8961
8962 # Only perform the check for file, if the check method requires it
8963 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8964 case $deplibs_check_method in
8965 file_magic*)
8966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8968 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8969 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 case $MAGIC_CMD in
8973 [\\/*] | ?:[\\/]*)
8974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8975 ;;
8976 *)
8977 lt_save_MAGIC_CMD="$MAGIC_CMD"
8978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8980 for ac_dir in $ac_dummy; do
8981 IFS="$lt_save_ifs"
8982 test -z "$ac_dir" && ac_dir=.
8983 if test -f $ac_dir/${ac_tool_prefix}file; then
8984 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8985 if test -n "$file_magic_test_file"; then
8986 case $deplibs_check_method in
8987 "file_magic "*)
8988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8991 $EGREP "$file_magic_regex" > /dev/null; then
8992 :
8993 else
8994 cat <<_LT_EOF 1>&2
8995
8996 *** Warning: the command libtool uses to detect shared libraries,
8997 *** $file_magic_cmd, produces output that libtool cannot recognize.
8998 *** The result is that libtool may fail to recognize shared libraries
8999 *** as such. This will affect the creation of libtool libraries that
9000 *** depend on shared libraries, but programs linked with such libtool
9001 *** libraries will work regardless of this problem. Nevertheless, you
9002 *** may want to report the problem to your system manager and/or to
9003 *** bug-libtool@gnu.org
9004
9005 _LT_EOF
9006 fi ;;
9007 esac
9008 fi
9009 break
9010 fi
9011 done
9012 IFS="$lt_save_ifs"
9013 MAGIC_CMD="$lt_save_MAGIC_CMD"
9014 ;;
9015 esac
9016 fi
9017
9018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9019 if test -n "$MAGIC_CMD"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9021 $as_echo "$MAGIC_CMD" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9025 fi
9026
9027
9028
9029
9030
9031 if test -z "$lt_cv_path_MAGIC_CMD"; then
9032 if test -n "$ac_tool_prefix"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9034 $as_echo_n "checking for file... " >&6; }
9035 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 case $MAGIC_CMD in
9039 [\\/*] | ?:[\\/]*)
9040 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9041 ;;
9042 *)
9043 lt_save_MAGIC_CMD="$MAGIC_CMD"
9044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9046 for ac_dir in $ac_dummy; do
9047 IFS="$lt_save_ifs"
9048 test -z "$ac_dir" && ac_dir=.
9049 if test -f $ac_dir/file; then
9050 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9051 if test -n "$file_magic_test_file"; then
9052 case $deplibs_check_method in
9053 "file_magic "*)
9054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9057 $EGREP "$file_magic_regex" > /dev/null; then
9058 :
9059 else
9060 cat <<_LT_EOF 1>&2
9061
9062 *** Warning: the command libtool uses to detect shared libraries,
9063 *** $file_magic_cmd, produces output that libtool cannot recognize.
9064 *** The result is that libtool may fail to recognize shared libraries
9065 *** as such. This will affect the creation of libtool libraries that
9066 *** depend on shared libraries, but programs linked with such libtool
9067 *** libraries will work regardless of this problem. Nevertheless, you
9068 *** may want to report the problem to your system manager and/or to
9069 *** bug-libtool@gnu.org
9070
9071 _LT_EOF
9072 fi ;;
9073 esac
9074 fi
9075 break
9076 fi
9077 done
9078 IFS="$lt_save_ifs"
9079 MAGIC_CMD="$lt_save_MAGIC_CMD"
9080 ;;
9081 esac
9082 fi
9083
9084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9085 if test -n "$MAGIC_CMD"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9087 $as_echo "$MAGIC_CMD" >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9091 fi
9092
9093
9094 else
9095 MAGIC_CMD=:
9096 fi
9097 fi
9098
9099 fi
9100 ;;
9101 esac
9102
9103 # Use C for the default configuration in the libtool script
9104
9105 lt_save_CC="$CC"
9106 ac_ext=c
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9111
9112
9113 # Source file extension for C test sources.
9114 ac_ext=c
9115
9116 # Object file extension for compiled C test sources.
9117 objext=o
9118 objext=$objext
9119
9120 # Code to be used in simple compile tests
9121 lt_simple_compile_test_code="int some_variable = 0;"
9122
9123 # Code to be used in simple link tests
9124 lt_simple_link_test_code='int main(){return(0);}'
9125
9126
9127
9128
9129
9130
9131
9132 # If no C compiler was specified, use CC.
9133 LTCC=${LTCC-"$CC"}
9134
9135 # If no C compiler flags were specified, use CFLAGS.
9136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9137
9138 # Allow CC to be a program name with arguments.
9139 compiler=$CC
9140
9141 # Save the default compiler, since it gets overwritten when the other
9142 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9143 compiler_DEFAULT=$CC
9144
9145 # save warnings/boilerplate of simple test code
9146 ac_outfile=conftest.$ac_objext
9147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9149 _lt_compiler_boilerplate=`cat conftest.err`
9150 $RM conftest*
9151
9152 ac_outfile=conftest.$ac_objext
9153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9155 _lt_linker_boilerplate=`cat conftest.err`
9156 $RM -r conftest*
9157
9158
9159 ## CAVEAT EMPTOR:
9160 ## There is no encapsulation within the following macros, do not change
9161 ## the running order or otherwise move them around unless you know exactly
9162 ## what you are doing...
9163 if test -n "$compiler"; then
9164
9165 lt_prog_compiler_no_builtin_flag=
9166
9167 if test "$GCC" = yes; then
9168 case $cc_basename in
9169 nvcc*)
9170 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9171 *)
9172 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9173 esac
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9176 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9177 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 lt_cv_prog_compiler_rtti_exceptions=no
9181 ac_outfile=conftest.$ac_objext
9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183 lt_compiler_flag="-fno-rtti -fno-exceptions"
9184 # Insert the option either (1) after the last *FLAGS variable, or
9185 # (2) before a word containing "conftest.", or (3) at the end.
9186 # Note that $ac_compile itself does not contain backslashes and begins
9187 # with a dollar sign (not a hyphen), so the echo should work correctly.
9188 # The option is referenced via a variable to avoid confusing sed.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>conftest.err)
9195 ac_status=$?
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s "$ac_outfile"; then
9199 # The compiler can only warn and ignore the option if not recognized
9200 # So say no if there are warnings other than the usual output.
9201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9204 lt_cv_prog_compiler_rtti_exceptions=yes
9205 fi
9206 fi
9207 $RM conftest*
9208
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9211 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9212
9213 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9214 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9215 else
9216 :
9217 fi
9218
9219 fi
9220
9221
9222
9223
9224
9225
9226 lt_prog_compiler_wl=
9227 lt_prog_compiler_pic=
9228 lt_prog_compiler_static=
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9231 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9232
9233 if test "$GCC" = yes; then
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_static='-static'
9236
9237 case $host_os in
9238 aix*)
9239 # All AIX code is PIC.
9240 if test "$host_cpu" = ia64; then
9241 # AIX 5 now supports IA64 processor
9242 lt_prog_compiler_static='-Bstatic'
9243 fi
9244 lt_prog_compiler_pic='-fPIC'
9245 ;;
9246
9247 amigaos*)
9248 case $host_cpu in
9249 powerpc)
9250 # see comment about AmigaOS4 .so support
9251 lt_prog_compiler_pic='-fPIC'
9252 ;;
9253 m68k)
9254 # FIXME: we need at least 68020 code to build shared libraries, but
9255 # adding the `-m68020' flag to GCC prevents building anything better,
9256 # like `-m68040'.
9257 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9258 ;;
9259 esac
9260 ;;
9261
9262 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9263 # PIC is the default for these OSes.
9264 ;;
9265
9266 mingw* | cygwin* | pw32* | os2* | cegcc*)
9267 # This hack is so that the source file can tell whether it is being
9268 # built for inclusion in a dll (and should export symbols for example).
9269 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9270 # (--disable-auto-import) libraries
9271 lt_prog_compiler_pic='-DDLL_EXPORT'
9272 ;;
9273
9274 darwin* | rhapsody*)
9275 # PIC is the default on this platform
9276 # Common symbols not allowed in MH_DYLIB files
9277 lt_prog_compiler_pic='-fno-common'
9278 ;;
9279
9280 haiku*)
9281 # PIC is the default for Haiku.
9282 # The "-static" flag exists, but is broken.
9283 lt_prog_compiler_static=
9284 ;;
9285
9286 hpux*)
9287 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9288 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9289 # sets the default TLS model and affects inlining.
9290 case $host_cpu in
9291 hppa*64*)
9292 # +Z the default
9293 ;;
9294 *)
9295 lt_prog_compiler_pic='-fPIC'
9296 ;;
9297 esac
9298 ;;
9299
9300 interix[3-9]*)
9301 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9302 # Instead, we relocate shared libraries at runtime.
9303 ;;
9304
9305 msdosdjgpp*)
9306 # Just because we use GCC doesn't mean we suddenly get shared libraries
9307 # on systems that don't support them.
9308 lt_prog_compiler_can_build_shared=no
9309 enable_shared=no
9310 ;;
9311
9312 *nto* | *qnx*)
9313 # QNX uses GNU C++, but need to define -shared option too, otherwise
9314 # it will coredump.
9315 lt_prog_compiler_pic='-fPIC -shared'
9316 ;;
9317
9318 sysv4*MP*)
9319 if test -d /usr/nec; then
9320 lt_prog_compiler_pic=-Kconform_pic
9321 fi
9322 ;;
9323
9324 *)
9325 lt_prog_compiler_pic='-fPIC'
9326 ;;
9327 esac
9328
9329 case $cc_basename in
9330 nvcc*) # Cuda Compiler Driver 2.2
9331 lt_prog_compiler_wl='-Xlinker '
9332 lt_prog_compiler_pic='-Xcompiler -fPIC'
9333 ;;
9334 esac
9335 else
9336 # PORTME Check for flag to pass linker flags through the system compiler.
9337 case $host_os in
9338 aix*)
9339 lt_prog_compiler_wl='-Wl,'
9340 if test "$host_cpu" = ia64; then
9341 # AIX 5 now supports IA64 processor
9342 lt_prog_compiler_static='-Bstatic'
9343 else
9344 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9345 fi
9346 ;;
9347
9348 mingw* | cygwin* | pw32* | os2* | cegcc*)
9349 # This hack is so that the source file can tell whether it is being
9350 # built for inclusion in a dll (and should export symbols for example).
9351 lt_prog_compiler_pic='-DDLL_EXPORT'
9352 ;;
9353
9354 hpux9* | hpux10* | hpux11*)
9355 lt_prog_compiler_wl='-Wl,'
9356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9357 # not for PA HP-UX.
9358 case $host_cpu in
9359 hppa*64*|ia64*)
9360 # +Z the default
9361 ;;
9362 *)
9363 lt_prog_compiler_pic='+Z'
9364 ;;
9365 esac
9366 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9367 lt_prog_compiler_static='${wl}-a ${wl}archive'
9368 ;;
9369
9370 irix5* | irix6* | nonstopux*)
9371 lt_prog_compiler_wl='-Wl,'
9372 # PIC (with -KPIC) is the default.
9373 lt_prog_compiler_static='-non_shared'
9374 ;;
9375
9376 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9377 case $cc_basename in
9378 # old Intel for x86_64 which still supported -KPIC.
9379 ecc*)
9380 lt_prog_compiler_wl='-Wl,'
9381 lt_prog_compiler_pic='-KPIC'
9382 lt_prog_compiler_static='-static'
9383 ;;
9384 # icc used to be incompatible with GCC.
9385 # ICC 10 doesn't accept -KPIC any more.
9386 icc* | ifort*)
9387 lt_prog_compiler_wl='-Wl,'
9388 lt_prog_compiler_pic='-fPIC'
9389 lt_prog_compiler_static='-static'
9390 ;;
9391 # Lahey Fortran 8.1.
9392 lf95*)
9393 lt_prog_compiler_wl='-Wl,'
9394 lt_prog_compiler_pic='--shared'
9395 lt_prog_compiler_static='--static'
9396 ;;
9397 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9398 # Portland Group compilers (*not* the Pentium gcc compiler,
9399 # which looks to be a dead project)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_pic='-fpic'
9402 lt_prog_compiler_static='-Bstatic'
9403 ;;
9404 ccc*)
9405 lt_prog_compiler_wl='-Wl,'
9406 # All Alpha code is PIC.
9407 lt_prog_compiler_static='-non_shared'
9408 ;;
9409 xl* | bgxl* | bgf* | mpixl*)
9410 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9411 lt_prog_compiler_wl='-Wl,'
9412 lt_prog_compiler_pic='-qpic'
9413 lt_prog_compiler_static='-qstaticlink'
9414 ;;
9415 *)
9416 case `$CC -V 2>&1 | sed 5q` in
9417 *Sun\ F* | *Sun*Fortran*)
9418 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9419 lt_prog_compiler_pic='-KPIC'
9420 lt_prog_compiler_static='-Bstatic'
9421 lt_prog_compiler_wl=''
9422 ;;
9423 *Sun\ C*)
9424 # Sun C 5.9
9425 lt_prog_compiler_pic='-KPIC'
9426 lt_prog_compiler_static='-Bstatic'
9427 lt_prog_compiler_wl='-Wl,'
9428 ;;
9429 esac
9430 ;;
9431 esac
9432 ;;
9433
9434 newsos6)
9435 lt_prog_compiler_pic='-KPIC'
9436 lt_prog_compiler_static='-Bstatic'
9437 ;;
9438
9439 *nto* | *qnx*)
9440 # QNX uses GNU C++, but need to define -shared option too, otherwise
9441 # it will coredump.
9442 lt_prog_compiler_pic='-fPIC -shared'
9443 ;;
9444
9445 osf3* | osf4* | osf5*)
9446 lt_prog_compiler_wl='-Wl,'
9447 # All OSF/1 code is PIC.
9448 lt_prog_compiler_static='-non_shared'
9449 ;;
9450
9451 rdos*)
9452 lt_prog_compiler_static='-non_shared'
9453 ;;
9454
9455 solaris*)
9456 lt_prog_compiler_pic='-KPIC'
9457 lt_prog_compiler_static='-Bstatic'
9458 case $cc_basename in
9459 f77* | f90* | f95*)
9460 lt_prog_compiler_wl='-Qoption ld ';;
9461 *)
9462 lt_prog_compiler_wl='-Wl,';;
9463 esac
9464 ;;
9465
9466 sunos4*)
9467 lt_prog_compiler_wl='-Qoption ld '
9468 lt_prog_compiler_pic='-PIC'
9469 lt_prog_compiler_static='-Bstatic'
9470 ;;
9471
9472 sysv4 | sysv4.2uw2* | sysv4.3*)
9473 lt_prog_compiler_wl='-Wl,'
9474 lt_prog_compiler_pic='-KPIC'
9475 lt_prog_compiler_static='-Bstatic'
9476 ;;
9477
9478 sysv4*MP*)
9479 if test -d /usr/nec ;then
9480 lt_prog_compiler_pic='-Kconform_pic'
9481 lt_prog_compiler_static='-Bstatic'
9482 fi
9483 ;;
9484
9485 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9486 lt_prog_compiler_wl='-Wl,'
9487 lt_prog_compiler_pic='-KPIC'
9488 lt_prog_compiler_static='-Bstatic'
9489 ;;
9490
9491 unicos*)
9492 lt_prog_compiler_wl='-Wl,'
9493 lt_prog_compiler_can_build_shared=no
9494 ;;
9495
9496 uts4*)
9497 lt_prog_compiler_pic='-pic'
9498 lt_prog_compiler_static='-Bstatic'
9499 ;;
9500
9501 *)
9502 lt_prog_compiler_can_build_shared=no
9503 ;;
9504 esac
9505 fi
9506
9507 case $host_os in
9508 # For platforms which do not support PIC, -DPIC is meaningless:
9509 *djgpp*)
9510 lt_prog_compiler_pic=
9511 ;;
9512 *)
9513 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9514 ;;
9515 esac
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9517 $as_echo "$lt_prog_compiler_pic" >&6; }
9518
9519
9520
9521
9522
9523
9524 #
9525 # Check to make sure the PIC flag actually works.
9526 #
9527 if test -n "$lt_prog_compiler_pic"; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9529 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9530 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533 lt_cv_prog_compiler_pic_works=no
9534 ac_outfile=conftest.$ac_objext
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9537 # Insert the option either (1) after the last *FLAGS variable, or
9538 # (2) before a word containing "conftest.", or (3) at the end.
9539 # Note that $ac_compile itself does not contain backslashes and begins
9540 # with a dollar sign (not a hyphen), so the echo should work correctly.
9541 # The option is referenced via a variable to avoid confusing sed.
9542 lt_compile=`echo "$ac_compile" | $SED \
9543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9545 -e 's:$: $lt_compiler_flag:'`
9546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9547 (eval "$lt_compile" 2>conftest.err)
9548 ac_status=$?
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 if (exit $ac_status) && test -s "$ac_outfile"; then
9552 # The compiler can only warn and ignore the option if not recognized
9553 # So say no if there are warnings other than the usual output.
9554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9557 lt_cv_prog_compiler_pic_works=yes
9558 fi
9559 fi
9560 $RM conftest*
9561
9562 fi
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9564 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9565
9566 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9567 case $lt_prog_compiler_pic in
9568 "" | " "*) ;;
9569 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9570 esac
9571 else
9572 lt_prog_compiler_pic=
9573 lt_prog_compiler_can_build_shared=no
9574 fi
9575
9576 fi
9577
9578
9579
9580
9581
9582
9583 #
9584 # Check to make sure the static flag actually works.
9585 #
9586 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9589 if ${lt_cv_prog_compiler_static_works+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 lt_cv_prog_compiler_static_works=no
9593 save_LDFLAGS="$LDFLAGS"
9594 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9595 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9597 # The linker can only warn and ignore the option if not recognized
9598 # So say no if there are warnings
9599 if test -s conftest.err; then
9600 # Append any errors to the config.log.
9601 cat conftest.err 1>&5
9602 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9604 if diff conftest.exp conftest.er2 >/dev/null; then
9605 lt_cv_prog_compiler_static_works=yes
9606 fi
9607 else
9608 lt_cv_prog_compiler_static_works=yes
9609 fi
9610 fi
9611 $RM -r conftest*
9612 LDFLAGS="$save_LDFLAGS"
9613
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9616 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9617
9618 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9619 :
9620 else
9621 lt_prog_compiler_static=
9622 fi
9623
9624
9625
9626
9627
9628
9629
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9631 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9632 if ${lt_cv_prog_compiler_c_o+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 lt_cv_prog_compiler_c_o=no
9636 $RM -r conftest 2>/dev/null
9637 mkdir conftest
9638 cd conftest
9639 mkdir out
9640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9641
9642 lt_compiler_flag="-o out/conftest2.$ac_objext"
9643 # Insert the option either (1) after the last *FLAGS variable, or
9644 # (2) before a word containing "conftest.", or (3) at the end.
9645 # Note that $ac_compile itself does not contain backslashes and begins
9646 # with a dollar sign (not a hyphen), so the echo should work correctly.
9647 lt_compile=`echo "$ac_compile" | $SED \
9648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9650 -e 's:$: $lt_compiler_flag:'`
9651 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9652 (eval "$lt_compile" 2>out/conftest.err)
9653 ac_status=$?
9654 cat out/conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9657 then
9658 # The compiler can only warn and ignore the option if not recognized
9659 # So say no if there are warnings
9660 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9661 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9662 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9663 lt_cv_prog_compiler_c_o=yes
9664 fi
9665 fi
9666 chmod u+w . 2>&5
9667 $RM conftest*
9668 # SGI C++ compiler will create directory out/ii_files/ for
9669 # template instantiation
9670 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9671 $RM out/* && rmdir out
9672 cd ..
9673 $RM -r conftest
9674 $RM conftest*
9675
9676 fi
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9678 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9679
9680
9681
9682
9683
9684
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9687 if ${lt_cv_prog_compiler_c_o+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 lt_cv_prog_compiler_c_o=no
9691 $RM -r conftest 2>/dev/null
9692 mkdir conftest
9693 cd conftest
9694 mkdir out
9695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9696
9697 lt_compiler_flag="-o out/conftest2.$ac_objext"
9698 # Insert the option either (1) after the last *FLAGS variable, or
9699 # (2) before a word containing "conftest.", or (3) at the end.
9700 # Note that $ac_compile itself does not contain backslashes and begins
9701 # with a dollar sign (not a hyphen), so the echo should work correctly.
9702 lt_compile=`echo "$ac_compile" | $SED \
9703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9705 -e 's:$: $lt_compiler_flag:'`
9706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9707 (eval "$lt_compile" 2>out/conftest.err)
9708 ac_status=$?
9709 cat out/conftest.err >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9712 then
9713 # The compiler can only warn and ignore the option if not recognized
9714 # So say no if there are warnings
9715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9718 lt_cv_prog_compiler_c_o=yes
9719 fi
9720 fi
9721 chmod u+w . 2>&5
9722 $RM conftest*
9723 # SGI C++ compiler will create directory out/ii_files/ for
9724 # template instantiation
9725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9726 $RM out/* && rmdir out
9727 cd ..
9728 $RM -r conftest
9729 $RM conftest*
9730
9731 fi
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9733 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9734
9735
9736
9737
9738 hard_links="nottested"
9739 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9740 # do not overwrite the value of need_locks provided by the user
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9742 $as_echo_n "checking if we can lock with hard links... " >&6; }
9743 hard_links=yes
9744 $RM conftest*
9745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9746 touch conftest.a
9747 ln conftest.a conftest.b 2>&5 || hard_links=no
9748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9750 $as_echo "$hard_links" >&6; }
9751 if test "$hard_links" = no; then
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9753 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9754 need_locks=warn
9755 fi
9756 else
9757 need_locks=no
9758 fi
9759
9760
9761
9762
9763
9764
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9767
9768 runpath_var=
9769 allow_undefined_flag=
9770 always_export_symbols=no
9771 archive_cmds=
9772 archive_expsym_cmds=
9773 compiler_needs_object=no
9774 enable_shared_with_static_runtimes=no
9775 export_dynamic_flag_spec=
9776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9777 hardcode_automatic=no
9778 hardcode_direct=no
9779 hardcode_direct_absolute=no
9780 hardcode_libdir_flag_spec=
9781 hardcode_libdir_flag_spec_ld=
9782 hardcode_libdir_separator=
9783 hardcode_minus_L=no
9784 hardcode_shlibpath_var=unsupported
9785 inherit_rpath=no
9786 link_all_deplibs=unknown
9787 module_cmds=
9788 module_expsym_cmds=
9789 old_archive_from_new_cmds=
9790 old_archive_from_expsyms_cmds=
9791 thread_safe_flag_spec=
9792 whole_archive_flag_spec=
9793 # include_expsyms should be a list of space-separated symbols to be *always*
9794 # included in the symbol list
9795 include_expsyms=
9796 # exclude_expsyms can be an extended regexp of symbols to exclude
9797 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9798 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9799 # as well as any symbol that contains `d'.
9800 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9802 # platforms (ab)use it in PIC code, but their linkers get confused if
9803 # the symbol is explicitly referenced. Since portable code cannot
9804 # rely on this symbol name, it's probably fine to never include it in
9805 # preloaded symbol tables.
9806 # Exclude shared library initialization/finalization symbols.
9807 extract_expsyms_cmds=
9808
9809 case $host_os in
9810 cygwin* | mingw* | pw32* | cegcc*)
9811 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9812 # When not using gcc, we currently assume that we are using
9813 # Microsoft Visual C++.
9814 if test "$GCC" != yes; then
9815 with_gnu_ld=no
9816 fi
9817 ;;
9818 interix*)
9819 # we just hope/assume this is gcc and not c89 (= MSVC++)
9820 with_gnu_ld=yes
9821 ;;
9822 openbsd*)
9823 with_gnu_ld=no
9824 ;;
9825 esac
9826
9827 ld_shlibs=yes
9828
9829 # On some targets, GNU ld is compatible enough with the native linker
9830 # that we're better off using the native interface for both.
9831 lt_use_gnu_ld_interface=no
9832 if test "$with_gnu_ld" = yes; then
9833 case $host_os in
9834 aix*)
9835 # The AIX port of GNU ld has always aspired to compatibility
9836 # with the native linker. However, as the warning in the GNU ld
9837 # block says, versions before 2.19.5* couldn't really create working
9838 # shared libraries, regardless of the interface used.
9839 case `$LD -v 2>&1` in
9840 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9841 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9842 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9843 *)
9844 lt_use_gnu_ld_interface=yes
9845 ;;
9846 esac
9847 ;;
9848 *)
9849 lt_use_gnu_ld_interface=yes
9850 ;;
9851 esac
9852 fi
9853
9854 if test "$lt_use_gnu_ld_interface" = yes; then
9855 # If archive_cmds runs LD, not CC, wlarc should be empty
9856 wlarc='${wl}'
9857
9858 # Set some defaults for GNU ld with shared library support. These
9859 # are reset later if shared libraries are not supported. Putting them
9860 # here allows them to be overridden if necessary.
9861 runpath_var=LD_RUN_PATH
9862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9863 export_dynamic_flag_spec='${wl}--export-dynamic'
9864 # ancient GNU ld didn't support --whole-archive et. al.
9865 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9866 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9867 else
9868 whole_archive_flag_spec=
9869 fi
9870 supports_anon_versioning=no
9871 case `$LD -v 2>&1` in
9872 *GNU\ gold*) supports_anon_versioning=yes ;;
9873 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9874 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9875 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9876 *\ 2.11.*) ;; # other 2.11 versions
9877 *) supports_anon_versioning=yes ;;
9878 esac
9879
9880 # See if GNU ld supports shared libraries.
9881 case $host_os in
9882 aix[3-9]*)
9883 # On AIX/PPC, the GNU linker is very broken
9884 if test "$host_cpu" != ia64; then
9885 ld_shlibs=no
9886 cat <<_LT_EOF 1>&2
9887
9888 *** Warning: the GNU linker, at least up to release 2.19, is reported
9889 *** to be unable to reliably create shared libraries on AIX.
9890 *** Therefore, libtool is disabling shared libraries support. If you
9891 *** really care for shared libraries, you may want to install binutils
9892 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9893 *** You will then need to restart the configuration process.
9894
9895 _LT_EOF
9896 fi
9897 ;;
9898
9899 amigaos*)
9900 case $host_cpu in
9901 powerpc)
9902 # see comment about AmigaOS4 .so support
9903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9904 archive_expsym_cmds=''
9905 ;;
9906 m68k)
9907 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)'
9908 hardcode_libdir_flag_spec='-L$libdir'
9909 hardcode_minus_L=yes
9910 ;;
9911 esac
9912 ;;
9913
9914 beos*)
9915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9916 allow_undefined_flag=unsupported
9917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9918 # support --undefined. This deserves some investigation. FIXME
9919 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9920 else
9921 ld_shlibs=no
9922 fi
9923 ;;
9924
9925 cygwin* | mingw* | pw32* | cegcc*)
9926 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9927 # as there is no search path for DLLs.
9928 hardcode_libdir_flag_spec='-L$libdir'
9929 export_dynamic_flag_spec='${wl}--export-all-symbols'
9930 allow_undefined_flag=unsupported
9931 always_export_symbols=no
9932 enable_shared_with_static_runtimes=yes
9933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9934
9935 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9937 # If the export-symbols file already is a .def file (1st line
9938 # is EXPORTS), use it as is; otherwise, prepend...
9939 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9940 cp $export_symbols $output_objdir/$soname.def;
9941 else
9942 echo EXPORTS > $output_objdir/$soname.def;
9943 cat $export_symbols >> $output_objdir/$soname.def;
9944 fi~
9945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9946 else
9947 ld_shlibs=no
9948 fi
9949 ;;
9950
9951 haiku*)
9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 link_all_deplibs=yes
9954 ;;
9955
9956 interix[3-9]*)
9957 hardcode_direct=no
9958 hardcode_shlibpath_var=no
9959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9960 export_dynamic_flag_spec='${wl}-E'
9961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9962 # Instead, shared libraries are loaded at an image base (0x10000000 by
9963 # default) and relocated if they conflict, which is a slow very memory
9964 # consuming and fragmenting process. To avoid this, we pick a random,
9965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9968 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'
9969 ;;
9970
9971 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9972 tmp_diet=no
9973 if test "$host_os" = linux-dietlibc; then
9974 case $cc_basename in
9975 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9976 esac
9977 fi
9978 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9979 && test "$tmp_diet" = no
9980 then
9981 tmp_addflag=' $pic_flag'
9982 tmp_sharedflag='-shared'
9983 case $cc_basename,$host_cpu in
9984 pgcc*) # Portland Group C compiler
9985 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'
9986 tmp_addflag=' $pic_flag'
9987 ;;
9988 pgf77* | pgf90* | pgf95* | pgfortran*)
9989 # Portland Group f77 and f90 compilers
9990 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'
9991 tmp_addflag=' $pic_flag -Mnomain' ;;
9992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9993 tmp_addflag=' -i_dynamic' ;;
9994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9995 tmp_addflag=' -i_dynamic -nofor_main' ;;
9996 ifc* | ifort*) # Intel Fortran compiler
9997 tmp_addflag=' -nofor_main' ;;
9998 lf95*) # Lahey Fortran 8.1
9999 whole_archive_flag_spec=
10000 tmp_sharedflag='--shared' ;;
10001 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10002 tmp_sharedflag='-qmkshrobj'
10003 tmp_addflag= ;;
10004 nvcc*) # Cuda Compiler Driver 2.2
10005 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'
10006 compiler_needs_object=yes
10007 ;;
10008 esac
10009 case `$CC -V 2>&1 | sed 5q` in
10010 *Sun\ C*) # Sun C 5.9
10011 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'
10012 compiler_needs_object=yes
10013 tmp_sharedflag='-G' ;;
10014 *Sun\ F*) # Sun Fortran 8.3
10015 tmp_sharedflag='-G' ;;
10016 esac
10017 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10018
10019 if test "x$supports_anon_versioning" = xyes; then
10020 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10022 echo "local: *; };" >> $output_objdir/$libname.ver~
10023 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10024 fi
10025
10026 case $cc_basename in
10027 xlf* | bgf* | bgxlf* | mpixlf*)
10028 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10029 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10030 hardcode_libdir_flag_spec=
10031 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10032 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10033 if test "x$supports_anon_versioning" = xyes; then
10034 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10036 echo "local: *; };" >> $output_objdir/$libname.ver~
10037 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10038 fi
10039 ;;
10040 esac
10041 else
10042 ld_shlibs=no
10043 fi
10044 ;;
10045
10046 netbsd*)
10047 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10048 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10049 wlarc=
10050 else
10051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10053 fi
10054 ;;
10055
10056 solaris*)
10057 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10058 ld_shlibs=no
10059 cat <<_LT_EOF 1>&2
10060
10061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10062 *** create shared libraries on Solaris systems. Therefore, libtool
10063 *** is disabling shared libraries support. We urge you to upgrade GNU
10064 *** binutils to release 2.9.1 or newer. Another option is to modify
10065 *** your PATH or compiler configuration so that the native linker is
10066 *** used, and then restart.
10067
10068 _LT_EOF
10069 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10072 else
10073 ld_shlibs=no
10074 fi
10075 ;;
10076
10077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10078 case `$LD -v 2>&1` in
10079 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10080 ld_shlibs=no
10081 cat <<_LT_EOF 1>&2
10082
10083 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10084 *** reliably create shared libraries on SCO systems. Therefore, libtool
10085 *** is disabling shared libraries support. We urge you to upgrade GNU
10086 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10087 *** your PATH or compiler configuration so that the native linker is
10088 *** used, and then restart.
10089
10090 _LT_EOF
10091 ;;
10092 *)
10093 # For security reasons, it is highly recommended that you always
10094 # use absolute paths for naming shared libraries, and exclude the
10095 # DT_RUNPATH tag from executables and libraries. But doing so
10096 # requires that you compile everything twice, which is a pain.
10097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10101 else
10102 ld_shlibs=no
10103 fi
10104 ;;
10105 esac
10106 ;;
10107
10108 sunos4*)
10109 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10110 wlarc=
10111 hardcode_direct=yes
10112 hardcode_shlibpath_var=no
10113 ;;
10114
10115 *)
10116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10119 else
10120 ld_shlibs=no
10121 fi
10122 ;;
10123 esac
10124
10125 if test "$ld_shlibs" = no; then
10126 runpath_var=
10127 hardcode_libdir_flag_spec=
10128 export_dynamic_flag_spec=
10129 whole_archive_flag_spec=
10130 fi
10131 else
10132 # PORTME fill in a description of your system's linker (not GNU ld)
10133 case $host_os in
10134 aix3*)
10135 allow_undefined_flag=unsupported
10136 always_export_symbols=yes
10137 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'
10138 # Note: this linker hardcodes the directories in LIBPATH if there
10139 # are no directories specified by -L.
10140 hardcode_minus_L=yes
10141 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10142 # Neither direct hardcoding nor static linking is supported with a
10143 # broken collect2.
10144 hardcode_direct=unsupported
10145 fi
10146 ;;
10147
10148 aix[4-9]*)
10149 if test "$host_cpu" = ia64; then
10150 # On IA64, the linker does run time linking by default, so we don't
10151 # have to do anything special.
10152 aix_use_runtimelinking=no
10153 exp_sym_flag='-Bexport'
10154 no_entry_flag=""
10155 else
10156 # If we're using GNU nm, then we don't want the "-C" option.
10157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10158 # Also, AIX nm treats weak defined symbols like other global
10159 # defined symbols, whereas GNU nm marks them as "W".
10160 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10161 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'
10162 else
10163 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'
10164 fi
10165 aix_use_runtimelinking=no
10166
10167 # Test if we are trying to use run time linking or normal
10168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10169 # need to do runtime linking.
10170 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10171 for ld_flag in $LDFLAGS; do
10172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10173 aix_use_runtimelinking=yes
10174 break
10175 fi
10176 done
10177 ;;
10178 esac
10179
10180 exp_sym_flag='-bexport'
10181 no_entry_flag='-bnoentry'
10182 fi
10183
10184 # When large executables or shared objects are built, AIX ld can
10185 # have problems creating the table of contents. If linking a library
10186 # or program results in "error TOC overflow" add -mminimal-toc to
10187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10189
10190 archive_cmds=''
10191 hardcode_direct=yes
10192 hardcode_direct_absolute=yes
10193 hardcode_libdir_separator=':'
10194 link_all_deplibs=yes
10195 file_list_spec='${wl}-f,'
10196
10197 if test "$GCC" = yes; then
10198 case $host_os in aix4.[012]|aix4.[012].*)
10199 # We only want to do this on AIX 4.2 and lower, the check
10200 # below for broken collect2 doesn't work under 4.3+
10201 collect2name=`${CC} -print-prog-name=collect2`
10202 if test -f "$collect2name" &&
10203 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10204 then
10205 # We have reworked collect2
10206 :
10207 else
10208 # We have old collect2
10209 hardcode_direct=unsupported
10210 # It fails to find uninstalled libraries when the uninstalled
10211 # path is not listed in the libpath. Setting hardcode_minus_L
10212 # to unsupported forces relinking
10213 hardcode_minus_L=yes
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 hardcode_libdir_separator=
10216 fi
10217 ;;
10218 esac
10219 shared_flag='-shared'
10220 if test "$aix_use_runtimelinking" = yes; then
10221 shared_flag="$shared_flag "'${wl}-G'
10222 fi
10223 else
10224 # not using gcc
10225 if test "$host_cpu" = ia64; then
10226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10227 # chokes on -Wl,-G. The following line is correct:
10228 shared_flag='-G'
10229 else
10230 if test "$aix_use_runtimelinking" = yes; then
10231 shared_flag='${wl}-G'
10232 else
10233 shared_flag='${wl}-bM:SRE'
10234 fi
10235 fi
10236 fi
10237
10238 export_dynamic_flag_spec='${wl}-bexpall'
10239 # It seems that -bexpall does not export symbols beginning with
10240 # underscore (_), so it is better to generate a list of symbols to export.
10241 always_export_symbols=yes
10242 if test "$aix_use_runtimelinking" = yes; then
10243 # Warning - without using the other runtime loading flags (-brtl),
10244 # -berok will link without error, but may produce a broken library.
10245 allow_undefined_flag='-berok'
10246 # Determine the default libpath from the value encoded in an
10247 # empty executable.
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250
10251 int
10252 main ()
10253 {
10254
10255 ;
10256 return 0;
10257 }
10258 _ACEOF
10259 if ac_fn_c_try_link "$LINENO"; then :
10260
10261 lt_aix_libpath_sed='
10262 /Import File Strings/,/^$/ {
10263 /^0/ {
10264 s/^0 *\(.*\)$/\1/
10265 p
10266 }
10267 }'
10268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10269 # Check for a 64-bit object if we didn't find anything.
10270 if test -z "$aix_libpath"; then
10271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10272 fi
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10277
10278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10279 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"
10280 else
10281 if test "$host_cpu" = ia64; then
10282 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10283 allow_undefined_flag="-z nodefs"
10284 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"
10285 else
10286 # Determine the default libpath from the value encoded in an
10287 # empty executable.
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10290
10291 int
10292 main ()
10293 {
10294
10295 ;
10296 return 0;
10297 }
10298 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
10300
10301 lt_aix_libpath_sed='
10302 /Import File Strings/,/^$/ {
10303 /^0/ {
10304 s/^0 *\(.*\)$/\1/
10305 p
10306 }
10307 }'
10308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10309 # Check for a 64-bit object if we didn't find anything.
10310 if test -z "$aix_libpath"; then
10311 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10312 fi
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10317
10318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10319 # Warning - without using the other run time loading flags,
10320 # -berok will link without error, but may produce a broken library.
10321 no_undefined_flag=' ${wl}-bernotok'
10322 allow_undefined_flag=' ${wl}-berok'
10323 if test "$with_gnu_ld" = yes; then
10324 # We only use this code for GNU lds that support --whole-archive.
10325 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10326 else
10327 # Exported symbols can be pulled into shared objects from archives
10328 whole_archive_flag_spec='$convenience'
10329 fi
10330 archive_cmds_need_lc=yes
10331 # This is similar to how AIX traditionally builds its shared libraries.
10332 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'
10333 fi
10334 fi
10335 ;;
10336
10337 amigaos*)
10338 case $host_cpu in
10339 powerpc)
10340 # see comment about AmigaOS4 .so support
10341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10342 archive_expsym_cmds=''
10343 ;;
10344 m68k)
10345 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)'
10346 hardcode_libdir_flag_spec='-L$libdir'
10347 hardcode_minus_L=yes
10348 ;;
10349 esac
10350 ;;
10351
10352 bsdi[45]*)
10353 export_dynamic_flag_spec=-rdynamic
10354 ;;
10355
10356 cygwin* | mingw* | pw32* | cegcc*)
10357 # When not using gcc, we currently assume that we are using
10358 # Microsoft Visual C++.
10359 # hardcode_libdir_flag_spec is actually meaningless, as there is
10360 # no search path for DLLs.
10361 hardcode_libdir_flag_spec=' '
10362 allow_undefined_flag=unsupported
10363 # Tell ltmain to make .lib files, not .a files.
10364 libext=lib
10365 # Tell ltmain to make .dll files, not .so files.
10366 shrext_cmds=".dll"
10367 # FIXME: Setting linknames here is a bad hack.
10368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10369 # The linker will automatically build a .lib file if we build a DLL.
10370 old_archive_from_new_cmds='true'
10371 # FIXME: Should let the user specify the lib program.
10372 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10373 fix_srcfile_path='`cygpath -w "$srcfile"`'
10374 enable_shared_with_static_runtimes=yes
10375 ;;
10376
10377 darwin* | rhapsody*)
10378
10379
10380 archive_cmds_need_lc=no
10381 hardcode_direct=no
10382 hardcode_automatic=yes
10383 hardcode_shlibpath_var=unsupported
10384 if test "$lt_cv_ld_force_load" = "yes"; then
10385 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\"`'
10386 else
10387 whole_archive_flag_spec=''
10388 fi
10389 link_all_deplibs=yes
10390 allow_undefined_flag="$_lt_dar_allow_undefined"
10391 case $cc_basename in
10392 ifort*) _lt_dar_can_shared=yes ;;
10393 *) _lt_dar_can_shared=$GCC ;;
10394 esac
10395 if test "$_lt_dar_can_shared" = "yes"; then
10396 output_verbose_link_cmd=func_echo_all
10397 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10398 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10399 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}"
10400 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}"
10401
10402 else
10403 ld_shlibs=no
10404 fi
10405
10406 ;;
10407
10408 dgux*)
10409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_libdir_flag_spec='-L$libdir'
10411 hardcode_shlibpath_var=no
10412 ;;
10413
10414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10415 # support. Future versions do this automatically, but an explicit c++rt0.o
10416 # does not break anything, and helps significantly (at the cost of a little
10417 # extra space).
10418 freebsd2.2*)
10419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10420 hardcode_libdir_flag_spec='-R$libdir'
10421 hardcode_direct=yes
10422 hardcode_shlibpath_var=no
10423 ;;
10424
10425 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10426 freebsd2.*)
10427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_direct=yes
10429 hardcode_minus_L=yes
10430 hardcode_shlibpath_var=no
10431 ;;
10432
10433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10434 freebsd* | dragonfly*)
10435 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10436 hardcode_libdir_flag_spec='-R$libdir'
10437 hardcode_direct=yes
10438 hardcode_shlibpath_var=no
10439 ;;
10440
10441 hpux9*)
10442 if test "$GCC" = yes; then
10443 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'
10444 else
10445 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'
10446 fi
10447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10448 hardcode_libdir_separator=:
10449 hardcode_direct=yes
10450
10451 # hardcode_minus_L: Not really in the search PATH,
10452 # but as the default location of the library.
10453 hardcode_minus_L=yes
10454 export_dynamic_flag_spec='${wl}-E'
10455 ;;
10456
10457 hpux10*)
10458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10460 else
10461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10462 fi
10463 if test "$with_gnu_ld" = no; then
10464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10465 hardcode_libdir_flag_spec_ld='+b $libdir'
10466 hardcode_libdir_separator=:
10467 hardcode_direct=yes
10468 hardcode_direct_absolute=yes
10469 export_dynamic_flag_spec='${wl}-E'
10470 # hardcode_minus_L: Not really in the search PATH,
10471 # but as the default location of the library.
10472 hardcode_minus_L=yes
10473 fi
10474 ;;
10475
10476 hpux11*)
10477 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10478 case $host_cpu in
10479 hppa*64*)
10480 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10481 ;;
10482 ia64*)
10483 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10484 ;;
10485 *)
10486 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10487 ;;
10488 esac
10489 else
10490 case $host_cpu in
10491 hppa*64*)
10492 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10493 ;;
10494 ia64*)
10495 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10496 ;;
10497 *)
10498
10499 # Older versions of the 11.00 compiler do not understand -b yet
10500 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10502 $as_echo_n "checking if $CC understands -b... " >&6; }
10503 if ${lt_cv_prog_compiler__b+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 lt_cv_prog_compiler__b=no
10507 save_LDFLAGS="$LDFLAGS"
10508 LDFLAGS="$LDFLAGS -b"
10509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10511 # The linker can only warn and ignore the option if not recognized
10512 # So say no if there are warnings
10513 if test -s conftest.err; then
10514 # Append any errors to the config.log.
10515 cat conftest.err 1>&5
10516 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10518 if diff conftest.exp conftest.er2 >/dev/null; then
10519 lt_cv_prog_compiler__b=yes
10520 fi
10521 else
10522 lt_cv_prog_compiler__b=yes
10523 fi
10524 fi
10525 $RM -r conftest*
10526 LDFLAGS="$save_LDFLAGS"
10527
10528 fi
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10530 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10531
10532 if test x"$lt_cv_prog_compiler__b" = xyes; then
10533 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10534 else
10535 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10536 fi
10537
10538 ;;
10539 esac
10540 fi
10541 if test "$with_gnu_ld" = no; then
10542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10543 hardcode_libdir_separator=:
10544
10545 case $host_cpu in
10546 hppa*64*|ia64*)
10547 hardcode_direct=no
10548 hardcode_shlibpath_var=no
10549 ;;
10550 *)
10551 hardcode_direct=yes
10552 hardcode_direct_absolute=yes
10553 export_dynamic_flag_spec='${wl}-E'
10554
10555 # hardcode_minus_L: Not really in the search PATH,
10556 # but as the default location of the library.
10557 hardcode_minus_L=yes
10558 ;;
10559 esac
10560 fi
10561 ;;
10562
10563 irix5* | irix6* | nonstopux*)
10564 if test "$GCC" = yes; then
10565 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'
10566 # Try to use the -exported_symbol ld option, if it does not
10567 # work, assume that -exports_file does not work either and
10568 # implicitly export all symbols.
10569 save_LDFLAGS="$LDFLAGS"
10570 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 int foo(void) {}
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 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'
10577
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LDFLAGS="$save_LDFLAGS"
10582 else
10583 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'
10584 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'
10585 fi
10586 archive_cmds_need_lc='no'
10587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10588 hardcode_libdir_separator=:
10589 inherit_rpath=yes
10590 link_all_deplibs=yes
10591 ;;
10592
10593 netbsd*)
10594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10596 else
10597 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10598 fi
10599 hardcode_libdir_flag_spec='-R$libdir'
10600 hardcode_direct=yes
10601 hardcode_shlibpath_var=no
10602 ;;
10603
10604 newsos6)
10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_direct=yes
10607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608 hardcode_libdir_separator=:
10609 hardcode_shlibpath_var=no
10610 ;;
10611
10612 *nto* | *qnx*)
10613 ;;
10614
10615 openbsd*)
10616 if test -f /usr/libexec/ld.so; then
10617 hardcode_direct=yes
10618 hardcode_shlibpath_var=no
10619 hardcode_direct_absolute=yes
10620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10621 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10622 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10624 export_dynamic_flag_spec='${wl}-E'
10625 else
10626 case $host_os in
10627 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10629 hardcode_libdir_flag_spec='-R$libdir'
10630 ;;
10631 *)
10632 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10633 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10634 ;;
10635 esac
10636 fi
10637 else
10638 ld_shlibs=no
10639 fi
10640 ;;
10641
10642 os2*)
10643 hardcode_libdir_flag_spec='-L$libdir'
10644 hardcode_minus_L=yes
10645 allow_undefined_flag=unsupported
10646 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'
10647 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10648 ;;
10649
10650 osf3*)
10651 if test "$GCC" = yes; then
10652 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10653 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'
10654 else
10655 allow_undefined_flag=' -expect_unresolved \*'
10656 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'
10657 fi
10658 archive_cmds_need_lc='no'
10659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10660 hardcode_libdir_separator=:
10661 ;;
10662
10663 osf4* | osf5*) # as osf3* with the addition of -msym flag
10664 if test "$GCC" = yes; then
10665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10666 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'
10667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10668 else
10669 allow_undefined_flag=' -expect_unresolved \*'
10670 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'
10671 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~
10672 $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'
10673
10674 # Both c and cxx compiler support -rpath directly
10675 hardcode_libdir_flag_spec='-rpath $libdir'
10676 fi
10677 archive_cmds_need_lc='no'
10678 hardcode_libdir_separator=:
10679 ;;
10680
10681 solaris*)
10682 no_undefined_flag=' -z defs'
10683 if test "$GCC" = yes; then
10684 wlarc='${wl}'
10685 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10687 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10688 else
10689 case `$CC -V 2>&1` in
10690 *"Compilers 5.0"*)
10691 wlarc=''
10692 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10694 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10695 ;;
10696 *)
10697 wlarc='${wl}'
10698 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10700 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10701 ;;
10702 esac
10703 fi
10704 hardcode_libdir_flag_spec='-R$libdir'
10705 hardcode_shlibpath_var=no
10706 case $host_os in
10707 solaris2.[0-5] | solaris2.[0-5].*) ;;
10708 *)
10709 # The compiler driver will combine and reorder linker options,
10710 # but understands `-z linker_flag'. GCC discards it without `$wl',
10711 # but is careful enough not to reorder.
10712 # Supported since Solaris 2.6 (maybe 2.5.1?)
10713 if test "$GCC" = yes; then
10714 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10715 else
10716 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10717 fi
10718 ;;
10719 esac
10720 link_all_deplibs=yes
10721 ;;
10722
10723 sunos4*)
10724 if test "x$host_vendor" = xsequent; then
10725 # Use $CC to link under sequent, because it throws in some extra .o
10726 # files that make .init and .fini sections work.
10727 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10728 else
10729 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10730 fi
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_direct=yes
10733 hardcode_minus_L=yes
10734 hardcode_shlibpath_var=no
10735 ;;
10736
10737 sysv4)
10738 case $host_vendor in
10739 sni)
10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741 hardcode_direct=yes # is this really true???
10742 ;;
10743 siemens)
10744 ## LD is ld it makes a PLAMLIB
10745 ## CC just makes a GrossModule.
10746 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10747 reload_cmds='$CC -r -o $output$reload_objs'
10748 hardcode_direct=no
10749 ;;
10750 motorola)
10751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10752 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10753 ;;
10754 esac
10755 runpath_var='LD_RUN_PATH'
10756 hardcode_shlibpath_var=no
10757 ;;
10758
10759 sysv4.3*)
10760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10761 hardcode_shlibpath_var=no
10762 export_dynamic_flag_spec='-Bexport'
10763 ;;
10764
10765 sysv4*MP*)
10766 if test -d /usr/nec; then
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_shlibpath_var=no
10769 runpath_var=LD_RUN_PATH
10770 hardcode_runpath_var=yes
10771 ld_shlibs=yes
10772 fi
10773 ;;
10774
10775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10776 no_undefined_flag='${wl}-z,text'
10777 archive_cmds_need_lc=no
10778 hardcode_shlibpath_var=no
10779 runpath_var='LD_RUN_PATH'
10780
10781 if test "$GCC" = yes; then
10782 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 else
10785 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 fi
10788 ;;
10789
10790 sysv5* | sco3.2v5* | sco5v6*)
10791 # Note: We can NOT use -z defs as we might desire, because we do not
10792 # link with -lc, and that would cause any symbols used from libc to
10793 # always be unresolved, which means just about no library would
10794 # ever link correctly. If we're not using GNU ld we use -z text
10795 # though, which does catch some bad symbols but isn't as heavy-handed
10796 # as -z defs.
10797 no_undefined_flag='${wl}-z,text'
10798 allow_undefined_flag='${wl}-z,nodefs'
10799 archive_cmds_need_lc=no
10800 hardcode_shlibpath_var=no
10801 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10802 hardcode_libdir_separator=':'
10803 link_all_deplibs=yes
10804 export_dynamic_flag_spec='${wl}-Bexport'
10805 runpath_var='LD_RUN_PATH'
10806
10807 if test "$GCC" = yes; then
10808 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810 else
10811 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 fi
10814 ;;
10815
10816 uts4*)
10817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 hardcode_libdir_flag_spec='-L$libdir'
10819 hardcode_shlibpath_var=no
10820 ;;
10821
10822 *)
10823 ld_shlibs=no
10824 ;;
10825 esac
10826
10827 if test x$host_vendor = xsni; then
10828 case $host in
10829 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10830 export_dynamic_flag_spec='${wl}-Blargedynsym'
10831 ;;
10832 esac
10833 fi
10834 fi
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10837 $as_echo "$ld_shlibs" >&6; }
10838 test "$ld_shlibs" = no && can_build_shared=no
10839
10840 with_gnu_ld=$with_gnu_ld
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856 #
10857 # Do we need to explicitly link libc?
10858 #
10859 case "x$archive_cmds_need_lc" in
10860 x|xyes)
10861 # Assume -lc should be added
10862 archive_cmds_need_lc=yes
10863
10864 if test "$enable_shared" = yes && test "$GCC" = yes; then
10865 case $archive_cmds in
10866 *'~'*)
10867 # FIXME: we may have to deal with multi-command sequences.
10868 ;;
10869 '$CC '*)
10870 # Test whether the compiler implicitly links with -lc since on some
10871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10872 # to ld, don't add -lc before -lgcc.
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10874 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10875 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 $RM conftest*
10879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10880
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10882 (eval $ac_compile) 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; } 2>conftest.err; then
10886 soname=conftest
10887 lib=conftest
10888 libobjs=conftest.$ac_objext
10889 deplibs=
10890 wl=$lt_prog_compiler_wl
10891 pic_flag=$lt_prog_compiler_pic
10892 compiler_flags=-v
10893 linker_flags=-v
10894 verstring=
10895 output_objdir=.
10896 libname=conftest
10897 lt_save_allow_undefined_flag=$allow_undefined_flag
10898 allow_undefined_flag=
10899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10901 ac_status=$?
10902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10903 test $ac_status = 0; }
10904 then
10905 lt_cv_archive_cmds_need_lc=no
10906 else
10907 lt_cv_archive_cmds_need_lc=yes
10908 fi
10909 allow_undefined_flag=$lt_save_allow_undefined_flag
10910 else
10911 cat conftest.err 1>&5
10912 fi
10913 $RM conftest*
10914
10915 fi
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10917 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10918 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10919 ;;
10920 esac
10921 fi
10922 ;;
10923 esac
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11082 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11083
11084 if test "$GCC" = yes; then
11085 case $host_os in
11086 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11087 *) lt_awk_arg="/^libraries:/" ;;
11088 esac
11089 case $host_os in
11090 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11091 *) lt_sed_strip_eq="s,=/,/,g" ;;
11092 esac
11093 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11094 case $lt_search_path_spec in
11095 *\;*)
11096 # if the path contains ";" then we assume it to be the separator
11097 # otherwise default to the standard path separator (i.e. ":") - it is
11098 # assumed that no part of a normal pathname contains ";" but that should
11099 # okay in the real world where ";" in dirpaths is itself problematic.
11100 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11101 ;;
11102 *)
11103 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11104 ;;
11105 esac
11106 # Ok, now we have the path, separated by spaces, we can step through it
11107 # and add multilib dir if necessary.
11108 lt_tmp_lt_search_path_spec=
11109 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11110 for lt_sys_path in $lt_search_path_spec; do
11111 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11112 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11113 else
11114 test -d "$lt_sys_path" && \
11115 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11116 fi
11117 done
11118 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11119 BEGIN {RS=" "; FS="/|\n";} {
11120 lt_foo="";
11121 lt_count=0;
11122 for (lt_i = NF; lt_i > 0; lt_i--) {
11123 if ($lt_i != "" && $lt_i != ".") {
11124 if ($lt_i == "..") {
11125 lt_count++;
11126 } else {
11127 if (lt_count == 0) {
11128 lt_foo="/" $lt_i lt_foo;
11129 } else {
11130 lt_count--;
11131 }
11132 }
11133 }
11134 }
11135 if (lt_foo != "") { lt_freq[lt_foo]++; }
11136 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11137 }'`
11138 # AWK program above erroneously prepends '/' to C:/dos/paths
11139 # for these hosts.
11140 case $host_os in
11141 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11142 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11143 esac
11144 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11145 else
11146 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11147 fi
11148 library_names_spec=
11149 libname_spec='lib$name'
11150 soname_spec=
11151 shrext_cmds=".so"
11152 postinstall_cmds=
11153 postuninstall_cmds=
11154 finish_cmds=
11155 finish_eval=
11156 shlibpath_var=
11157 shlibpath_overrides_runpath=unknown
11158 version_type=none
11159 dynamic_linker="$host_os ld.so"
11160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11161 need_lib_prefix=unknown
11162 hardcode_into_libs=no
11163
11164 # when you set need_version to no, make sure it does not cause -set_version
11165 # flags to be left without arguments
11166 need_version=unknown
11167
11168 case $host_os in
11169 aix3*)
11170 version_type=linux
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11172 shlibpath_var=LIBPATH
11173
11174 # AIX 3 has no versioning support, so we append a major version to the name.
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 ;;
11177
11178 aix[4-9]*)
11179 version_type=linux
11180 need_lib_prefix=no
11181 need_version=no
11182 hardcode_into_libs=yes
11183 if test "$host_cpu" = ia64; then
11184 # AIX 5 supports IA64
11185 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 else
11188 # With GCC up to 2.95.x, collect2 would create an import file
11189 # for dependence libraries. The import file would start with
11190 # the line `#! .'. This would cause the generated library to
11191 # depend on `.', always an invalid library. This was fixed in
11192 # development snapshots of GCC prior to 3.0.
11193 case $host_os in
11194 aix4 | aix4.[01] | aix4.[01].*)
11195 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11196 echo ' yes '
11197 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11198 :
11199 else
11200 can_build_shared=no
11201 fi
11202 ;;
11203 esac
11204 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11205 # soname into executable. Probably we can add versioning support to
11206 # collect2, so additional links can be useful in future.
11207 if test "$aix_use_runtimelinking" = yes; then
11208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11209 # instead of lib<name>.a to let people know that these are not
11210 # typical AIX shared libraries.
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 else
11213 # We preserve .a as extension for shared libraries through AIX4.2
11214 # and later when we are not doing run time linking.
11215 library_names_spec='${libname}${release}.a $libname.a'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 fi
11218 shlibpath_var=LIBPATH
11219 fi
11220 ;;
11221
11222 amigaos*)
11223 case $host_cpu in
11224 powerpc)
11225 # Since July 2007 AmigaOS4 officially supports .so libraries.
11226 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228 ;;
11229 m68k)
11230 library_names_spec='$libname.ixlibrary $libname.a'
11231 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11232 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'
11233 ;;
11234 esac
11235 ;;
11236
11237 beos*)
11238 library_names_spec='${libname}${shared_ext}'
11239 dynamic_linker="$host_os ld.so"
11240 shlibpath_var=LIBRARY_PATH
11241 ;;
11242
11243 bsdi[45]*)
11244 version_type=linux
11245 need_version=no
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11251 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11252 # the default ld.so.conf also contains /usr/contrib/lib and
11253 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11254 # libtool to hard-code these into programs
11255 ;;
11256
11257 cygwin* | mingw* | pw32* | cegcc*)
11258 version_type=windows
11259 shrext_cmds=".dll"
11260 need_version=no
11261 need_lib_prefix=no
11262
11263 case $GCC,$host_os in
11264 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11265 library_names_spec='$libname.dll.a'
11266 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11267 postinstall_cmds='base_file=`basename \${file}`~
11268 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11269 dldir=$destdir/`dirname \$dlpath`~
11270 test -d \$dldir || mkdir -p \$dldir~
11271 $install_prog $dir/$dlname \$dldir/$dlname~
11272 chmod a+x \$dldir/$dlname~
11273 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11274 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11275 fi'
11276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11277 dlpath=$dir/\$dldll~
11278 $RM \$dlpath'
11279 shlibpath_overrides_runpath=yes
11280
11281 case $host_os in
11282 cygwin*)
11283 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11284 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11285
11286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11287 ;;
11288 mingw* | cegcc*)
11289 # MinGW DLLs use traditional 'lib' prefix
11290 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11291 ;;
11292 pw32*)
11293 # pw32 DLLs use 'pw' prefix rather than 'lib'
11294 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11295 ;;
11296 esac
11297 ;;
11298
11299 *)
11300 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11301 ;;
11302 esac
11303 dynamic_linker='Win32 ld.exe'
11304 # FIXME: first we should search . and the directory the executable is in
11305 shlibpath_var=PATH
11306 ;;
11307
11308 darwin* | rhapsody*)
11309 dynamic_linker="$host_os dyld"
11310 version_type=darwin
11311 need_lib_prefix=no
11312 need_version=no
11313 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11314 soname_spec='${libname}${release}${major}$shared_ext'
11315 shlibpath_overrides_runpath=yes
11316 shlibpath_var=DYLD_LIBRARY_PATH
11317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11318
11319 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11320 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11321 ;;
11322
11323 dgux*)
11324 version_type=linux
11325 need_lib_prefix=no
11326 need_version=no
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 ;;
11331
11332 freebsd* | dragonfly*)
11333 # DragonFly does not have aout. When/if they implement a new
11334 # versioning mechanism, adjust this.
11335 if test -x /usr/bin/objformat; then
11336 objformat=`/usr/bin/objformat`
11337 else
11338 case $host_os in
11339 freebsd[23].*) objformat=aout ;;
11340 *) objformat=elf ;;
11341 esac
11342 fi
11343 version_type=freebsd-$objformat
11344 case $version_type in
11345 freebsd-elf*)
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11347 need_version=no
11348 need_lib_prefix=no
11349 ;;
11350 freebsd-*)
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11352 need_version=yes
11353 ;;
11354 esac
11355 shlibpath_var=LD_LIBRARY_PATH
11356 case $host_os in
11357 freebsd2.*)
11358 shlibpath_overrides_runpath=yes
11359 ;;
11360 freebsd3.[01]* | freebsdelf3.[01]*)
11361 shlibpath_overrides_runpath=yes
11362 hardcode_into_libs=yes
11363 ;;
11364 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11365 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11366 shlibpath_overrides_runpath=no
11367 hardcode_into_libs=yes
11368 ;;
11369 *) # from 4.6 on, and DragonFly
11370 shlibpath_overrides_runpath=yes
11371 hardcode_into_libs=yes
11372 ;;
11373 esac
11374 ;;
11375
11376 haiku*)
11377 version_type=linux
11378 need_lib_prefix=no
11379 need_version=no
11380 dynamic_linker="$host_os runtime_loader"
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 shlibpath_var=LIBRARY_PATH
11384 shlibpath_overrides_runpath=yes
11385 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11386 hardcode_into_libs=yes
11387 ;;
11388
11389 hpux9* | hpux10* | hpux11*)
11390 # Give a soname corresponding to the major version so that dld.sl refuses to
11391 # link against other versions.
11392 version_type=sunos
11393 need_lib_prefix=no
11394 need_version=no
11395 case $host_cpu in
11396 ia64*)
11397 shrext_cmds='.so'
11398 hardcode_into_libs=yes
11399 dynamic_linker="$host_os dld.so"
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 if test "X$HPUX_IA64_MODE" = X32; then
11405 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11406 else
11407 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11408 fi
11409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11410 ;;
11411 hppa*64*)
11412 shrext_cmds='.sl'
11413 hardcode_into_libs=yes
11414 dynamic_linker="$host_os dld.sl"
11415 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11421 ;;
11422 *)
11423 shrext_cmds='.sl'
11424 dynamic_linker="$host_os dld.sl"
11425 shlibpath_var=SHLIB_PATH
11426 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 ;;
11430 esac
11431 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11432 postinstall_cmds='chmod 555 $lib'
11433 # or fails outright, so override atomically:
11434 install_override_mode=555
11435 ;;
11436
11437 interix[3-9]*)
11438 version_type=linux
11439 need_lib_prefix=no
11440 need_version=no
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 shlibpath_overrides_runpath=no
11446 hardcode_into_libs=yes
11447 ;;
11448
11449 irix5* | irix6* | nonstopux*)
11450 case $host_os in
11451 nonstopux*) version_type=nonstopux ;;
11452 *)
11453 if test "$lt_cv_prog_gnu_ld" = yes; then
11454 version_type=linux
11455 else
11456 version_type=irix
11457 fi ;;
11458 esac
11459 need_lib_prefix=no
11460 need_version=no
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11463 case $host_os in
11464 irix5* | nonstopux*)
11465 libsuff= shlibsuff=
11466 ;;
11467 *)
11468 case $LD in # libtool.m4 will add one of these switches to LD
11469 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11470 libsuff= shlibsuff= libmagic=32-bit;;
11471 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11472 libsuff=32 shlibsuff=N32 libmagic=N32;;
11473 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11474 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11475 *) libsuff= shlibsuff= libmagic=never-match;;
11476 esac
11477 ;;
11478 esac
11479 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11480 shlibpath_overrides_runpath=no
11481 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11482 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11483 hardcode_into_libs=yes
11484 ;;
11485
11486 # No shared lib support for Linux oldld, aout, or coff.
11487 linux*oldld* | linux*aout* | linux*coff*)
11488 dynamic_linker=no
11489 ;;
11490
11491 # This must be Linux ELF.
11492 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11493 version_type=linux
11494 need_lib_prefix=no
11495 need_version=no
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=no
11501
11502 # Some binutils ld are patched to set DT_RUNPATH
11503 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 lt_cv_shlibpath_overrides_runpath=no
11507 save_LDFLAGS=$LDFLAGS
11508 save_libdir=$libdir
11509 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11510 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513
11514 int
11515 main ()
11516 {
11517
11518 ;
11519 return 0;
11520 }
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"; then :
11523 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11524 lt_cv_shlibpath_overrides_runpath=yes
11525 fi
11526 fi
11527 rm -f core conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529 LDFLAGS=$save_LDFLAGS
11530 libdir=$save_libdir
11531
11532 fi
11533
11534 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11535
11536 # This implies no fast_install, which is unacceptable.
11537 # Some rework will be needed to allow for fast_install
11538 # before this can be enabled.
11539 hardcode_into_libs=yes
11540
11541 # Append ld.so.conf contents to the search path
11542 if test -f /etc/ld.so.conf; then
11543 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' ' '`
11544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11545 fi
11546
11547 # We used to test for /lib/ld.so.1 and disable shared libraries on
11548 # powerpc, because MkLinux only supported shared libraries with the
11549 # GNU dynamic linker. Since this was broken with cross compilers,
11550 # most powerpc-linux boxes support dynamic linking these days and
11551 # people can always --disable-shared, the test was removed, and we
11552 # assume the GNU/Linux dynamic linker is in use.
11553 dynamic_linker='GNU/Linux ld.so'
11554 ;;
11555
11556 netbsd*)
11557 version_type=sunos
11558 need_lib_prefix=no
11559 need_version=no
11560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11563 dynamic_linker='NetBSD (a.out) ld.so'
11564 else
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 dynamic_linker='NetBSD ld.elf_so'
11568 fi
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes
11571 hardcode_into_libs=yes
11572 ;;
11573
11574 newsos6)
11575 version_type=linux
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=yes
11579 ;;
11580
11581 *nto* | *qnx*)
11582 version_type=qnx
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=no
11589 hardcode_into_libs=yes
11590 dynamic_linker='ldqnx.so'
11591 ;;
11592
11593 openbsd*)
11594 version_type=sunos
11595 sys_lib_dlsearch_path_spec="/usr/lib"
11596 need_lib_prefix=no
11597 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11598 case $host_os in
11599 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11600 *) need_version=no ;;
11601 esac
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11606 case $host_os in
11607 openbsd2.[89] | openbsd2.[89].*)
11608 shlibpath_overrides_runpath=no
11609 ;;
11610 *)
11611 shlibpath_overrides_runpath=yes
11612 ;;
11613 esac
11614 else
11615 shlibpath_overrides_runpath=yes
11616 fi
11617 ;;
11618
11619 os2*)
11620 libname_spec='$name'
11621 shrext_cmds=".dll"
11622 need_lib_prefix=no
11623 library_names_spec='$libname${shared_ext} $libname.a'
11624 dynamic_linker='OS/2 ld.exe'
11625 shlibpath_var=LIBPATH
11626 ;;
11627
11628 osf3* | osf4* | osf5*)
11629 version_type=osf
11630 need_lib_prefix=no
11631 need_version=no
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11636 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11637 ;;
11638
11639 rdos*)
11640 dynamic_linker=no
11641 ;;
11642
11643 solaris*)
11644 version_type=linux
11645 need_lib_prefix=no
11646 need_version=no
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11650 shlibpath_overrides_runpath=yes
11651 hardcode_into_libs=yes
11652 # ldd complains unless libraries are executable
11653 postinstall_cmds='chmod +x $lib'
11654 ;;
11655
11656 sunos4*)
11657 version_type=sunos
11658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11659 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11660 shlibpath_var=LD_LIBRARY_PATH
11661 shlibpath_overrides_runpath=yes
11662 if test "$with_gnu_ld" = yes; then
11663 need_lib_prefix=no
11664 fi
11665 need_version=yes
11666 ;;
11667
11668 sysv4 | sysv4.3*)
11669 version_type=linux
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11671 soname_spec='${libname}${release}${shared_ext}$major'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 case $host_vendor in
11674 sni)
11675 shlibpath_overrides_runpath=no
11676 need_lib_prefix=no
11677 runpath_var=LD_RUN_PATH
11678 ;;
11679 siemens)
11680 need_lib_prefix=no
11681 ;;
11682 motorola)
11683 need_lib_prefix=no
11684 need_version=no
11685 shlibpath_overrides_runpath=no
11686 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11687 ;;
11688 esac
11689 ;;
11690
11691 sysv4*MP*)
11692 if test -d /usr/nec ;then
11693 version_type=linux
11694 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11695 soname_spec='$libname${shared_ext}.$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 fi
11698 ;;
11699
11700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11701 version_type=freebsd-elf
11702 need_lib_prefix=no
11703 need_version=no
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=yes
11708 hardcode_into_libs=yes
11709 if test "$with_gnu_ld" = yes; then
11710 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11711 else
11712 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11713 case $host_os in
11714 sco3.2v5*)
11715 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11716 ;;
11717 esac
11718 fi
11719 sys_lib_dlsearch_path_spec='/usr/lib'
11720 ;;
11721
11722 tpf*)
11723 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11724 version_type=linux
11725 need_lib_prefix=no
11726 need_version=no
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=no
11730 hardcode_into_libs=yes
11731 ;;
11732
11733 uts4*)
11734 version_type=linux
11735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736 soname_spec='${libname}${release}${shared_ext}$major'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 ;;
11739
11740 *)
11741 dynamic_linker=no
11742 ;;
11743 esac
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11745 $as_echo "$dynamic_linker" >&6; }
11746 test "$dynamic_linker" = no && can_build_shared=no
11747
11748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11749 if test "$GCC" = yes; then
11750 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11751 fi
11752
11753 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11754 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11755 fi
11756 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11757 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11758 fi
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11852 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11853 hardcode_action=
11854 if test -n "$hardcode_libdir_flag_spec" ||
11855 test -n "$runpath_var" ||
11856 test "X$hardcode_automatic" = "Xyes" ; then
11857
11858 # We can hardcode non-existent directories.
11859 if test "$hardcode_direct" != no &&
11860 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11861 # have to relink, otherwise we might link with an installed library
11862 # when we should be linking with a yet-to-be-installed one
11863 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11864 test "$hardcode_minus_L" != no; then
11865 # Linking always hardcodes the temporary library directory.
11866 hardcode_action=relink
11867 else
11868 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11869 hardcode_action=immediate
11870 fi
11871 else
11872 # We cannot hardcode anything, or else we can only hardcode existing
11873 # directories.
11874 hardcode_action=unsupported
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11877 $as_echo "$hardcode_action" >&6; }
11878
11879 if test "$hardcode_action" = relink ||
11880 test "$inherit_rpath" = yes; then
11881 # Fast installation is not supported
11882 enable_fast_install=no
11883 elif test "$shlibpath_overrides_runpath" = yes ||
11884 test "$enable_shared" = no; then
11885 # Fast installation is not necessary
11886 enable_fast_install=needless
11887 fi
11888
11889
11890
11891
11892
11893
11894 if test "x$enable_dlopen" != xyes; then
11895 enable_dlopen=unknown
11896 enable_dlopen_self=unknown
11897 enable_dlopen_self_static=unknown
11898 else
11899 lt_cv_dlopen=no
11900 lt_cv_dlopen_libs=
11901
11902 case $host_os in
11903 beos*)
11904 lt_cv_dlopen="load_add_on"
11905 lt_cv_dlopen_libs=
11906 lt_cv_dlopen_self=yes
11907 ;;
11908
11909 mingw* | pw32* | cegcc*)
11910 lt_cv_dlopen="LoadLibrary"
11911 lt_cv_dlopen_libs=
11912 ;;
11913
11914 cygwin*)
11915 lt_cv_dlopen="dlopen"
11916 lt_cv_dlopen_libs=
11917 ;;
11918
11919 darwin*)
11920 # if libdl is installed we need to link against it
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11922 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11923 if ${ac_cv_lib_dl_dlopen+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-ldl $LIBS"
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 char dlopen ();
11938 int
11939 main ()
11940 {
11941 return dlopen ();
11942 ;
11943 return 0;
11944 }
11945 _ACEOF
11946 if ac_fn_c_try_link "$LINENO"; then :
11947 ac_cv_lib_dl_dlopen=yes
11948 else
11949 ac_cv_lib_dl_dlopen=no
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext \
11952 conftest$ac_exeext conftest.$ac_ext
11953 LIBS=$ac_check_lib_save_LIBS
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11956 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11957 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11959 else
11960
11961 lt_cv_dlopen="dyld"
11962 lt_cv_dlopen_libs=
11963 lt_cv_dlopen_self=yes
11964
11965 fi
11966
11967 ;;
11968
11969 *)
11970 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11971 if test "x$ac_cv_func_shl_load" = xyes; then :
11972 lt_cv_dlopen="shl_load"
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11975 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11976 if ${ac_cv_lib_dld_shl_load+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 ac_check_lib_save_LIBS=$LIBS
11980 LIBS="-ldld $LIBS"
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11987 #ifdef __cplusplus
11988 extern "C"
11989 #endif
11990 char shl_load ();
11991 int
11992 main ()
11993 {
11994 return shl_load ();
11995 ;
11996 return 0;
11997 }
11998 _ACEOF
11999 if ac_fn_c_try_link "$LINENO"; then :
12000 ac_cv_lib_dld_shl_load=yes
12001 else
12002 ac_cv_lib_dld_shl_load=no
12003 fi
12004 rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12009 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12010 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12011 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12012 else
12013 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12014 if test "x$ac_cv_func_dlopen" = xyes; then :
12015 lt_cv_dlopen="dlopen"
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12018 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12019 if ${ac_cv_lib_dl_dlopen+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 ac_check_lib_save_LIBS=$LIBS
12023 LIBS="-ldl $LIBS"
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char dlopen ();
12034 int
12035 main ()
12036 {
12037 return dlopen ();
12038 ;
12039 return 0;
12040 }
12041 _ACEOF
12042 if ac_fn_c_try_link "$LINENO"; then :
12043 ac_cv_lib_dl_dlopen=yes
12044 else
12045 ac_cv_lib_dl_dlopen=no
12046 fi
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12049 LIBS=$ac_check_lib_save_LIBS
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12052 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12053 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12055 else
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12057 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12058 if ${ac_cv_lib_svld_dlopen+:} false; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 ac_check_lib_save_LIBS=$LIBS
12062 LIBS="-lsvld $LIBS"
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char dlopen ();
12073 int
12074 main ()
12075 {
12076 return dlopen ();
12077 ;
12078 return 0;
12079 }
12080 _ACEOF
12081 if ac_fn_c_try_link "$LINENO"; then :
12082 ac_cv_lib_svld_dlopen=yes
12083 else
12084 ac_cv_lib_svld_dlopen=no
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext \
12087 conftest$ac_exeext conftest.$ac_ext
12088 LIBS=$ac_check_lib_save_LIBS
12089 fi
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12091 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12092 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12093 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12094 else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12096 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12097 if ${ac_cv_lib_dld_dld_link+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 ac_check_lib_save_LIBS=$LIBS
12101 LIBS="-ldld $LIBS"
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12108 #ifdef __cplusplus
12109 extern "C"
12110 #endif
12111 char dld_link ();
12112 int
12113 main ()
12114 {
12115 return dld_link ();
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_link "$LINENO"; then :
12121 ac_cv_lib_dld_dld_link=yes
12122 else
12123 ac_cv_lib_dld_dld_link=no
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12130 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12131 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12132 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12133 fi
12134
12135
12136 fi
12137
12138
12139 fi
12140
12141
12142 fi
12143
12144
12145 fi
12146
12147
12148 fi
12149
12150 ;;
12151 esac
12152
12153 if test "x$lt_cv_dlopen" != xno; then
12154 enable_dlopen=yes
12155 else
12156 enable_dlopen=no
12157 fi
12158
12159 case $lt_cv_dlopen in
12160 dlopen)
12161 save_CPPFLAGS="$CPPFLAGS"
12162 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12163
12164 save_LDFLAGS="$LDFLAGS"
12165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12166
12167 save_LIBS="$LIBS"
12168 LIBS="$lt_cv_dlopen_libs $LIBS"
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12171 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12172 if ${lt_cv_dlopen_self+:} false; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 if test "$cross_compiling" = yes; then :
12176 lt_cv_dlopen_self=cross
12177 else
12178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12179 lt_status=$lt_dlunknown
12180 cat > conftest.$ac_ext <<_LT_EOF
12181 #line 12181 "configure"
12182 #include "confdefs.h"
12183
12184 #if HAVE_DLFCN_H
12185 #include <dlfcn.h>
12186 #endif
12187
12188 #include <stdio.h>
12189
12190 #ifdef RTLD_GLOBAL
12191 # define LT_DLGLOBAL RTLD_GLOBAL
12192 #else
12193 # ifdef DL_GLOBAL
12194 # define LT_DLGLOBAL DL_GLOBAL
12195 # else
12196 # define LT_DLGLOBAL 0
12197 # endif
12198 #endif
12199
12200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12201 find out it does not work in some platform. */
12202 #ifndef LT_DLLAZY_OR_NOW
12203 # ifdef RTLD_LAZY
12204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12205 # else
12206 # ifdef DL_LAZY
12207 # define LT_DLLAZY_OR_NOW DL_LAZY
12208 # else
12209 # ifdef RTLD_NOW
12210 # define LT_DLLAZY_OR_NOW RTLD_NOW
12211 # else
12212 # ifdef DL_NOW
12213 # define LT_DLLAZY_OR_NOW DL_NOW
12214 # else
12215 # define LT_DLLAZY_OR_NOW 0
12216 # endif
12217 # endif
12218 # endif
12219 # endif
12220 #endif
12221
12222 /* When -fvisbility=hidden is used, assume the code has been annotated
12223 correspondingly for the symbols needed. */
12224 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12225 void fnord () __attribute__((visibility("default")));
12226 #endif
12227
12228 void fnord () { int i=42; }
12229 int main ()
12230 {
12231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12232 int status = $lt_dlunknown;
12233
12234 if (self)
12235 {
12236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12237 else
12238 {
12239 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12240 else puts (dlerror ());
12241 }
12242 /* dlclose (self); */
12243 }
12244 else
12245 puts (dlerror ());
12246
12247 return status;
12248 }
12249 _LT_EOF
12250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12251 (eval $ac_link) 2>&5
12252 ac_status=$?
12253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12254 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12255 (./conftest; exit; ) >&5 2>/dev/null
12256 lt_status=$?
12257 case x$lt_status in
12258 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12259 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12260 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12261 esac
12262 else :
12263 # compilation failed
12264 lt_cv_dlopen_self=no
12265 fi
12266 fi
12267 rm -fr conftest*
12268
12269
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12272 $as_echo "$lt_cv_dlopen_self" >&6; }
12273
12274 if test "x$lt_cv_dlopen_self" = xyes; then
12275 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12277 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12278 if ${lt_cv_dlopen_self_static+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 if test "$cross_compiling" = yes; then :
12282 lt_cv_dlopen_self_static=cross
12283 else
12284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12285 lt_status=$lt_dlunknown
12286 cat > conftest.$ac_ext <<_LT_EOF
12287 #line 12287 "configure"
12288 #include "confdefs.h"
12289
12290 #if HAVE_DLFCN_H
12291 #include <dlfcn.h>
12292 #endif
12293
12294 #include <stdio.h>
12295
12296 #ifdef RTLD_GLOBAL
12297 # define LT_DLGLOBAL RTLD_GLOBAL
12298 #else
12299 # ifdef DL_GLOBAL
12300 # define LT_DLGLOBAL DL_GLOBAL
12301 # else
12302 # define LT_DLGLOBAL 0
12303 # endif
12304 #endif
12305
12306 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12307 find out it does not work in some platform. */
12308 #ifndef LT_DLLAZY_OR_NOW
12309 # ifdef RTLD_LAZY
12310 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12311 # else
12312 # ifdef DL_LAZY
12313 # define LT_DLLAZY_OR_NOW DL_LAZY
12314 # else
12315 # ifdef RTLD_NOW
12316 # define LT_DLLAZY_OR_NOW RTLD_NOW
12317 # else
12318 # ifdef DL_NOW
12319 # define LT_DLLAZY_OR_NOW DL_NOW
12320 # else
12321 # define LT_DLLAZY_OR_NOW 0
12322 # endif
12323 # endif
12324 # endif
12325 # endif
12326 #endif
12327
12328 /* When -fvisbility=hidden is used, assume the code has been annotated
12329 correspondingly for the symbols needed. */
12330 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12331 void fnord () __attribute__((visibility("default")));
12332 #endif
12333
12334 void fnord () { int i=42; }
12335 int main ()
12336 {
12337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12338 int status = $lt_dlunknown;
12339
12340 if (self)
12341 {
12342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12343 else
12344 {
12345 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12346 else puts (dlerror ());
12347 }
12348 /* dlclose (self); */
12349 }
12350 else
12351 puts (dlerror ());
12352
12353 return status;
12354 }
12355 _LT_EOF
12356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12357 (eval $ac_link) 2>&5
12358 ac_status=$?
12359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12361 (./conftest; exit; ) >&5 2>/dev/null
12362 lt_status=$?
12363 case x$lt_status in
12364 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12365 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12366 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12367 esac
12368 else :
12369 # compilation failed
12370 lt_cv_dlopen_self_static=no
12371 fi
12372 fi
12373 rm -fr conftest*
12374
12375
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12378 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12379 fi
12380
12381 CPPFLAGS="$save_CPPFLAGS"
12382 LDFLAGS="$save_LDFLAGS"
12383 LIBS="$save_LIBS"
12384 ;;
12385 esac
12386
12387 case $lt_cv_dlopen_self in
12388 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12389 *) enable_dlopen_self=unknown ;;
12390 esac
12391
12392 case $lt_cv_dlopen_self_static in
12393 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12394 *) enable_dlopen_self_static=unknown ;;
12395 esac
12396 fi
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414 striplib=
12415 old_striplib=
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12417 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12418 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12419 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12420 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12422 $as_echo "yes" >&6; }
12423 else
12424 # FIXME - insert some real tests, host_os isn't really good enough
12425 case $host_os in
12426 darwin*)
12427 if test -n "$STRIP" ; then
12428 striplib="$STRIP -x"
12429 old_striplib="$STRIP -S"
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12431 $as_echo "yes" >&6; }
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12435 fi
12436 ;;
12437 *)
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 ;;
12441 esac
12442 fi
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455 # Report which library types will actually be built
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12457 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12459 $as_echo "$can_build_shared" >&6; }
12460
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12462 $as_echo_n "checking whether to build shared libraries... " >&6; }
12463 test "$can_build_shared" = "no" && enable_shared=no
12464
12465 # On AIX, shared libraries and static libraries use the same namespace, and
12466 # are all built from PIC.
12467 case $host_os in
12468 aix3*)
12469 test "$enable_shared" = yes && enable_static=no
12470 if test -n "$RANLIB"; then
12471 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12472 postinstall_cmds='$RANLIB $lib'
12473 fi
12474 ;;
12475
12476 aix[4-9]*)
12477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12478 test "$enable_shared" = yes && enable_static=no
12479 fi
12480 ;;
12481 esac
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12483 $as_echo "$enable_shared" >&6; }
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12486 $as_echo_n "checking whether to build static libraries... " >&6; }
12487 # Make sure either enable_shared or enable_static is yes.
12488 test "$enable_shared" = yes || enable_static=yes
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12490 $as_echo "$enable_static" >&6; }
12491
12492
12493
12494
12495 fi
12496 ac_ext=c
12497 ac_cpp='$CPP $CPPFLAGS'
12498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12501
12502 CC="$lt_save_CC"
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516 ac_config_commands="$ac_config_commands libtool"
12517
12518
12519
12520
12521 # Only expand once:
12522
12523
12524
12525
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
12527 $as_echo_n "checking for bind in -lsocket... " >&6; }
12528 if ${ac_cv_lib_socket_bind+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 ac_check_lib_save_LIBS=$LIBS
12532 LIBS="-lsocket $LIBS"
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12539 #ifdef __cplusplus
12540 extern "C"
12541 #endif
12542 char bind ();
12543 int
12544 main ()
12545 {
12546 return bind ();
12547 ;
12548 return 0;
12549 }
12550 _ACEOF
12551 if ac_fn_c_try_link "$LINENO"; then :
12552 ac_cv_lib_socket_bind=yes
12553 else
12554 ac_cv_lib_socket_bind=no
12555 fi
12556 rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12558 LIBS=$ac_check_lib_save_LIBS
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
12561 $as_echo "$ac_cv_lib_socket_bind" >&6; }
12562 if test "x$ac_cv_lib_socket_bind" = xyes; then :
12563 cat >>confdefs.h <<_ACEOF
12564 #define HAVE_LIBSOCKET 1
12565 _ACEOF
12566
12567 LIBS="-lsocket $LIBS"
12568
12569 fi
12570
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12572 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12573 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_check_lib_save_LIBS=$LIBS
12577 LIBS="-lnsl $LIBS"
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 char gethostbyname ();
12588 int
12589 main ()
12590 {
12591 return gethostbyname ();
12592 ;
12593 return 0;
12594 }
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597 ac_cv_lib_nsl_gethostbyname=yes
12598 else
12599 ac_cv_lib_nsl_gethostbyname=no
12600 fi
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12606 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12607 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12608 cat >>confdefs.h <<_ACEOF
12609 #define HAVE_LIBNSL 1
12610 _ACEOF
12611
12612 LIBS="-lnsl $LIBS"
12613
12614 fi
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12617 $as_echo_n "checking for fabs in -lm... " >&6; }
12618 if ${ac_cv_lib_m_fabs+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-lm $LIBS"
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12629 #ifdef __cplusplus
12630 extern "C"
12631 #endif
12632 char fabs ();
12633 int
12634 main ()
12635 {
12636 return fabs ();
12637 ;
12638 return 0;
12639 }
12640 _ACEOF
12641 if ac_fn_c_try_link "$LINENO"; then :
12642 ac_cv_lib_m_fabs=yes
12643 else
12644 ac_cv_lib_m_fabs=no
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 LIBS=$ac_check_lib_save_LIBS
12649 fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12651 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12652 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12653 cat >>confdefs.h <<_ACEOF
12654 #define HAVE_LIBM 1
12655 _ACEOF
12656
12657 LIBS="-lm $LIBS"
12658
12659 fi
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12662 $as_echo_n "checking for log2 in -lm... " >&6; }
12663 if ${ac_cv_lib_m_log2+:} false; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 ac_check_lib_save_LIBS=$LIBS
12667 LIBS="-lm $LIBS"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670
12671 /* Override any GCC internal prototype to avoid an error.
12672 Use char because int might match the return type of a GCC
12673 builtin and then its argument prototype would still apply. */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 char log2 ();
12678 int
12679 main ()
12680 {
12681 return log2 ();
12682 ;
12683 return 0;
12684 }
12685 _ACEOF
12686 if ac_fn_c_try_link "$LINENO"; then :
12687 ac_cv_lib_m_log2=yes
12688 else
12689 ac_cv_lib_m_log2=no
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12696 $as_echo "$ac_cv_lib_m_log2" >&6; }
12697 if test "x$ac_cv_lib_m_log2" = xyes; then :
12698 cat >>confdefs.h <<_ACEOF
12699 #define HAVE_LIBM 1
12700 _ACEOF
12701
12702 LIBS="-lm $LIBS"
12703
12704 fi
12705
12706
12707
12708 pkg_failed=no
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5
12710 $as_echo_n "checking for sdl... " >&6; }
12711
12712 if test -n "$SDL_CFLAGS"; then
12713 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12714 elif test -n "$PKG_CONFIG"; then
12715 if test -n "$PKG_CONFIG" && \
12716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12717 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; then
12721 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12722 test "x$?" != "x0" && pkg_failed=yes
12723 else
12724 pkg_failed=yes
12725 fi
12726 else
12727 pkg_failed=untried
12728 fi
12729 if test -n "$SDL_LIBS"; then
12730 pkg_cv_SDL_LIBS="$SDL_LIBS"
12731 elif test -n "$PKG_CONFIG"; then
12732 if test -n "$PKG_CONFIG" && \
12733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
12734 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12735 ac_status=$?
12736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737 test $ac_status = 0; }; then
12738 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12739 test "x$?" != "x0" && pkg_failed=yes
12740 else
12741 pkg_failed=yes
12742 fi
12743 else
12744 pkg_failed=untried
12745 fi
12746
12747 if test $pkg_failed = no; then
12748 pkg_save_LDFLAGS="$LDFLAGS"
12749 LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS"
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12752
12753 int
12754 main ()
12755 {
12756
12757 ;
12758 return 0;
12759 }
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762
12763 else
12764 pkg_failed=yes
12765 fi
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LDFLAGS=$pkg_save_LDFLAGS
12769 fi
12770
12771
12772
12773 if test $pkg_failed = yes; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776
12777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12778 _pkg_short_errors_supported=yes
12779 else
12780 _pkg_short_errors_supported=no
12781 fi
12782 if test $_pkg_short_errors_supported = yes; then
12783 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
12784 else
12785 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
12786 fi
12787 # Put the nasty error message in config.log where it belongs
12788 echo "$SDL_PKG_ERRORS" >&5
12789
12790 :
12791 elif test $pkg_failed = untried; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 :
12795 else
12796 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12797 SDL_LIBS=$pkg_cv_SDL_LIBS
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799 $as_echo "yes" >&6; }
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12801 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12802 if ${ac_cv_lib_dl_dlopen+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 ac_check_lib_save_LIBS=$LIBS
12806 LIBS="-ldl $LIBS"
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char dlopen ();
12817 int
12818 main ()
12819 {
12820 return dlopen ();
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 if ac_fn_c_try_link "$LINENO"; then :
12826 ac_cv_lib_dl_dlopen=yes
12827 else
12828 ac_cv_lib_dl_dlopen=no
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 LIBS=$ac_check_lib_save_LIBS
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12835 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12836 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12837 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
12838 SDL_LIBS="-ldl"
12839
12840 else
12841 SDL_CFLAGS= SDL_LIBS=
12842 fi
12843
12844
12845 fi
12846
12847
12848
12849
12850
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12852 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12853 # Check whether --enable-maintainer-mode was given.
12854 if test "${enable_maintainer_mode+set}" = set; then :
12855 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12856 else
12857 USE_MAINTAINER_MODE=no
12858 fi
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12861 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12862 if test $USE_MAINTAINER_MODE = yes; then
12863 MAINTAINER_MODE_TRUE=
12864 MAINTAINER_MODE_FALSE='#'
12865 else
12866 MAINTAINER_MODE_TRUE='#'
12867 MAINTAINER_MODE_FALSE=
12868 fi
12869
12870 MAINT=$MAINTAINER_MODE_TRUE
12871
12872
12873 am__api_version='1.15'
12874
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12876 $as_echo_n "checking whether build environment is sane... " >&6; }
12877 # Reject unsafe characters in $srcdir or the absolute working directory
12878 # name. Accept space and tab only in the latter.
12879 am_lf='
12880 '
12881 case `pwd` in
12882 *[\\\"\#\$\&\'\`$am_lf]*)
12883 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12884 esac
12885 case $srcdir in
12886 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12887 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12888 esac
12889
12890 # Do 'set' in a subshell so we don't clobber the current shell's
12891 # arguments. Must try -L first in case configure is actually a
12892 # symlink; some systems play weird games with the mod time of symlinks
12893 # (eg FreeBSD returns the mod time of the symlink's containing
12894 # directory).
12895 if (
12896 am_has_slept=no
12897 for am_try in 1 2; do
12898 echo "timestamp, slept: $am_has_slept" > conftest.file
12899 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12900 if test "$*" = "X"; then
12901 # -L didn't work.
12902 set X `ls -t "$srcdir/configure" conftest.file`
12903 fi
12904 if test "$*" != "X $srcdir/configure conftest.file" \
12905 && test "$*" != "X conftest.file $srcdir/configure"; then
12906
12907 # If neither matched, then we have a broken ls. This can happen
12908 # if, for instance, CONFIG_SHELL is bash and it inherits a
12909 # broken ls alias from the environment. This has actually
12910 # happened. Such a system could not be considered "sane".
12911 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12912 alias in your environment" "$LINENO" 5
12913 fi
12914 if test "$2" = conftest.file || test $am_try -eq 2; then
12915 break
12916 fi
12917 # Just in case.
12918 sleep 1
12919 am_has_slept=yes
12920 done
12921 test "$2" = conftest.file
12922 )
12923 then
12924 # Ok.
12925 :
12926 else
12927 as_fn_error $? "newly created file is older than distributed files!
12928 Check your system clock" "$LINENO" 5
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12931 $as_echo "yes" >&6; }
12932 # If we didn't sleep, we still need to ensure time stamps of config.status and
12933 # generated files are strictly newer.
12934 am_sleep_pid=
12935 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
12936 ( sleep 1 ) &
12937 am_sleep_pid=$!
12938 fi
12939
12940 rm -f conftest.file
12941
12942 if test x"${MISSING+set}" != xset; then
12943 case $am_aux_dir in
12944 *\ * | *\ *)
12945 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
12946 *)
12947 MISSING="\${SHELL} $am_aux_dir/missing" ;;
12948 esac
12949 fi
12950 # Use eval to expand $SHELL
12951 if eval "$MISSING --is-lightweight"; then
12952 am_missing_run="$MISSING "
12953 else
12954 am_missing_run=
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
12956 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
12957 fi
12958
12959 if test x"${install_sh+set}" != xset; then
12960 case $am_aux_dir in
12961 *\ * | *\ *)
12962 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
12963 *)
12964 install_sh="\${SHELL} $am_aux_dir/install-sh"
12965 esac
12966 fi
12967
12968 # Installed binaries are usually stripped using 'strip' when the user
12969 # run "make install-strip". However 'strip' might not be the right
12970 # tool to use in cross-compilation environments, therefore Automake
12971 # will honor the 'STRIP' environment variable to overrule this program.
12972 if test "$cross_compiling" != no; then
12973 if test -n "$ac_tool_prefix"; then
12974 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12975 set dummy ${ac_tool_prefix}strip; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977 $as_echo_n "checking for $ac_word... " >&6; }
12978 if ${ac_cv_prog_STRIP+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 if test -n "$STRIP"; then
12982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12983 else
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12986 do
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12991 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12994 fi
12995 done
12996 done
12997 IFS=$as_save_IFS
12998
12999 fi
13000 fi
13001 STRIP=$ac_cv_prog_STRIP
13002 if test -n "$STRIP"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13004 $as_echo "$STRIP" >&6; }
13005 else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13008 fi
13009
13010
13011 fi
13012 if test -z "$ac_cv_prog_STRIP"; then
13013 ac_ct_STRIP=$STRIP
13014 # Extract the first word of "strip", so it can be a program name with args.
13015 set dummy strip; ac_word=$2
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13017 $as_echo_n "checking for $ac_word... " >&6; }
13018 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 if test -n "$ac_ct_STRIP"; then
13022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13023 else
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13026 do
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13031 ac_cv_prog_ac_ct_STRIP="strip"
13032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13034 fi
13035 done
13036 done
13037 IFS=$as_save_IFS
13038
13039 fi
13040 fi
13041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13042 if test -n "$ac_ct_STRIP"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13044 $as_echo "$ac_ct_STRIP" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 fi
13049
13050 if test "x$ac_ct_STRIP" = x; then
13051 STRIP=":"
13052 else
13053 case $cross_compiling:$ac_tool_warned in
13054 yes:)
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13057 ac_tool_warned=yes ;;
13058 esac
13059 STRIP=$ac_ct_STRIP
13060 fi
13061 else
13062 STRIP="$ac_cv_prog_STRIP"
13063 fi
13064
13065 fi
13066 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13067
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13069 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13070 if test -z "$MKDIR_P"; then
13071 if ${ac_cv_path_mkdir+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13076 do
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_prog in mkdir gmkdir; do
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13082 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13083 'mkdir (GNU coreutils) '* | \
13084 'mkdir (coreutils) '* | \
13085 'mkdir (fileutils) '4.1*)
13086 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13087 break 3;;
13088 esac
13089 done
13090 done
13091 done
13092 IFS=$as_save_IFS
13093
13094 fi
13095
13096 test -d ./--version && rmdir ./--version
13097 if test "${ac_cv_path_mkdir+set}" = set; then
13098 MKDIR_P="$ac_cv_path_mkdir -p"
13099 else
13100 # As a last resort, use the slow shell script. Don't cache a
13101 # value for MKDIR_P within a source directory, because that will
13102 # break other packages using the cache if that directory is
13103 # removed, or if the value is a relative name.
13104 MKDIR_P="$ac_install_sh -d"
13105 fi
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13108 $as_echo "$MKDIR_P" >&6; }
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13111 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13112 set x ${MAKE-make}
13113 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13114 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 cat >conftest.make <<\_ACEOF
13118 SHELL = /bin/sh
13119 all:
13120 @echo '@@@%%%=$(MAKE)=@@@%%%'
13121 _ACEOF
13122 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13124 *@@@%%%=?*=@@@%%%*)
13125 eval ac_cv_prog_make_${ac_make}_set=yes;;
13126 *)
13127 eval ac_cv_prog_make_${ac_make}_set=no;;
13128 esac
13129 rm -f conftest.make
13130 fi
13131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13133 $as_echo "yes" >&6; }
13134 SET_MAKE=
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 SET_MAKE="MAKE=${MAKE-make}"
13139 fi
13140
13141 rm -rf .tst 2>/dev/null
13142 mkdir .tst 2>/dev/null
13143 if test -d .tst; then
13144 am__leading_dot=.
13145 else
13146 am__leading_dot=_
13147 fi
13148 rmdir .tst 2>/dev/null
13149
13150 DEPDIR="${am__leading_dot}deps"
13151
13152 ac_config_commands="$ac_config_commands depfiles"
13153
13154
13155 am_make=${MAKE-make}
13156 cat > confinc << 'END'
13157 am__doit:
13158 @echo this is the am__doit target
13159 .PHONY: am__doit
13160 END
13161 # If we don't find an include directive, just comment out the code.
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13163 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13164 am__include="#"
13165 am__quote=
13166 _am_result=none
13167 # First try GNU make style include.
13168 echo "include confinc" > confmf
13169 # Ignore all kinds of additional output from 'make'.
13170 case `$am_make -s -f confmf 2> /dev/null` in #(
13171 *the\ am__doit\ target*)
13172 am__include=include
13173 am__quote=
13174 _am_result=GNU
13175 ;;
13176 esac
13177 # Now try BSD make style include.
13178 if test "$am__include" = "#"; then
13179 echo '.include "confinc"' > confmf
13180 case `$am_make -s -f confmf 2> /dev/null` in #(
13181 *the\ am__doit\ target*)
13182 am__include=.include
13183 am__quote="\""
13184 _am_result=BSD
13185 ;;
13186 esac
13187 fi
13188
13189
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13191 $as_echo "$_am_result" >&6; }
13192 rm -f confinc confmf
13193
13194 # Check whether --enable-dependency-tracking was given.
13195 if test "${enable_dependency_tracking+set}" = set; then :
13196 enableval=$enable_dependency_tracking;
13197 fi
13198
13199 if test "x$enable_dependency_tracking" != xno; then
13200 am_depcomp="$ac_aux_dir/depcomp"
13201 AMDEPBACKSLASH='\'
13202 am__nodep='_no'
13203 fi
13204 if test "x$enable_dependency_tracking" != xno; then
13205 AMDEP_TRUE=
13206 AMDEP_FALSE='#'
13207 else
13208 AMDEP_TRUE='#'
13209 AMDEP_FALSE=
13210 fi
13211
13212
13213 # Check whether --enable-silent-rules was given.
13214 if test "${enable_silent_rules+set}" = set; then :
13215 enableval=$enable_silent_rules;
13216 fi
13217
13218 case $enable_silent_rules in # (((
13219 yes) AM_DEFAULT_VERBOSITY=0;;
13220 no) AM_DEFAULT_VERBOSITY=1;;
13221 *) AM_DEFAULT_VERBOSITY=1;;
13222 esac
13223 am_make=${MAKE-make}
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13225 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13226 if ${am_cv_make_support_nested_variables+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if $as_echo 'TRUE=$(BAR$(V))
13230 BAR0=false
13231 BAR1=true
13232 V=1
13233 am__doit:
13234 @$(TRUE)
13235 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13236 am_cv_make_support_nested_variables=yes
13237 else
13238 am_cv_make_support_nested_variables=no
13239 fi
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13242 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13243 if test $am_cv_make_support_nested_variables = yes; then
13244 AM_V='$(V)'
13245 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13246 else
13247 AM_V=$AM_DEFAULT_VERBOSITY
13248 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13249 fi
13250 AM_BACKSLASH='\'
13251
13252 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13254 # is not polluted with repeated "-I."
13255 am__isrc=' -I$(srcdir)'
13256 # test to see if srcdir already configured
13257 if test -f $srcdir/config.status; then
13258 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13259 fi
13260 fi
13261
13262 # test whether we have cygpath
13263 if test -z "$CYGPATH_W"; then
13264 if (cygpath --version) >/dev/null 2>/dev/null; then
13265 CYGPATH_W='cygpath -w'
13266 else
13267 CYGPATH_W=echo
13268 fi
13269 fi
13270
13271
13272 # Define the identity of the package.
13273 PACKAGE='sim'
13274 VERSION='0'
13275
13276
13277 cat >>confdefs.h <<_ACEOF
13278 #define PACKAGE "$PACKAGE"
13279 _ACEOF
13280
13281
13282 cat >>confdefs.h <<_ACEOF
13283 #define VERSION "$VERSION"
13284 _ACEOF
13285
13286 # Some tools Automake needs.
13287
13288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13289
13290
13291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13292
13293
13294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13295
13296
13297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13298
13299
13300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13301
13302 # For better backward compatibility. To be removed once Automake 1.9.x
13303 # dies out for good. For more background, see:
13304 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13305 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13306 mkdir_p='$(MKDIR_P)'
13307
13308 # We need awk for the "check" target (and possibly the TAP driver). The
13309 # system "awk" is bad on some platforms.
13310 # Always define AMTAR for backward compatibility. Yes, it's still used
13311 # in the wild :-( We should find a proper way to deprecate it ...
13312 AMTAR='$${TAR-tar}'
13313
13314
13315 # We'll loop over all known methods to create a tar archive until one works.
13316 _am_tools='gnutar pax cpio none'
13317
13318 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13319
13320
13321
13322
13323
13324 depcc="$CC" am_compiler_list=
13325
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13327 $as_echo_n "checking dependency style of $depcc... " >&6; }
13328 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13332 # We make a subdir and do the tests there. Otherwise we can end up
13333 # making bogus files that we don't know about and never remove. For
13334 # instance it was reported that on HP-UX the gcc test will end up
13335 # making a dummy file named 'D' -- because '-MD' means "put the output
13336 # in D".
13337 rm -rf conftest.dir
13338 mkdir conftest.dir
13339 # Copy depcomp to subdir because otherwise we won't find it if we're
13340 # using a relative directory.
13341 cp "$am_depcomp" conftest.dir
13342 cd conftest.dir
13343 # We will build objects and dependencies in a subdirectory because
13344 # it helps to detect inapplicable dependency modes. For instance
13345 # both Tru64's cc and ICC support -MD to output dependencies as a
13346 # side effect of compilation, but ICC will put the dependencies in
13347 # the current directory while Tru64 will put them in the object
13348 # directory.
13349 mkdir sub
13350
13351 am_cv_CC_dependencies_compiler_type=none
13352 if test "$am_compiler_list" = ""; then
13353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13354 fi
13355 am__universal=false
13356 case " $depcc " in #(
13357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13358 esac
13359
13360 for depmode in $am_compiler_list; do
13361 # Setup a source with many dependencies, because some compilers
13362 # like to wrap large dependency lists on column 80 (with \), and
13363 # we should not choose a depcomp mode which is confused by this.
13364 #
13365 # We need to recreate these files for each test, as the compiler may
13366 # overwrite some of them when testing with obscure command lines.
13367 # This happens at least with the AIX C compiler.
13368 : > sub/conftest.c
13369 for i in 1 2 3 4 5 6; do
13370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13372 # Solaris 10 /bin/sh.
13373 echo '/* dummy */' > sub/conftst$i.h
13374 done
13375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13376
13377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13378 # mode. It turns out that the SunPro C++ compiler does not properly
13379 # handle '-M -o', and we need to detect this. Also, some Intel
13380 # versions had trouble with output in subdirs.
13381 am__obj=sub/conftest.${OBJEXT-o}
13382 am__minus_obj="-o $am__obj"
13383 case $depmode in
13384 gcc)
13385 # This depmode causes a compiler race in universal mode.
13386 test "$am__universal" = false || continue
13387 ;;
13388 nosideeffect)
13389 # After this tag, mechanisms are not by side-effect, so they'll
13390 # only be used when explicitly requested.
13391 if test "x$enable_dependency_tracking" = xyes; then
13392 continue
13393 else
13394 break
13395 fi
13396 ;;
13397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13398 # This compiler won't grok '-c -o', but also, the minuso test has
13399 # not run yet. These depmodes are late enough in the game, and
13400 # so weak that their functioning should not be impacted.
13401 am__obj=conftest.${OBJEXT-o}
13402 am__minus_obj=
13403 ;;
13404 none) break ;;
13405 esac
13406 if depmode=$depmode \
13407 source=sub/conftest.c object=$am__obj \
13408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13410 >/dev/null 2>conftest.err &&
13411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13415 # icc doesn't choke on unknown options, it will just issue warnings
13416 # or remarks (even with -Werror). So we grep stderr for any message
13417 # that says an option was ignored or not supported.
13418 # When given -MP, icc 7.0 and 7.1 complain thusly:
13419 # icc: Command line warning: ignoring option '-M'; no argument required
13420 # The diagnosis changed in icc 8.0:
13421 # icc: Command line remark: option '-MP' not supported
13422 if (grep 'ignoring option' conftest.err ||
13423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13424 am_cv_CC_dependencies_compiler_type=$depmode
13425 break
13426 fi
13427 fi
13428 done
13429
13430 cd ..
13431 rm -rf conftest.dir
13432 else
13433 am_cv_CC_dependencies_compiler_type=none
13434 fi
13435
13436 fi
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13438 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13439 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13440
13441 if
13442 test "x$enable_dependency_tracking" != xno \
13443 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13444 am__fastdepCC_TRUE=
13445 am__fastdepCC_FALSE='#'
13446 else
13447 am__fastdepCC_TRUE='#'
13448 am__fastdepCC_FALSE=
13449 fi
13450
13451
13452
13453 # POSIX will say in a future version that running "rm -f" with no argument
13454 # is OK; and we want to be able to make that assumption in our Makefile
13455 # recipes. So use an aggressive probe to check that the usage we want is
13456 # actually supported "in the wild" to an acceptable degree.
13457 # See automake bug#10828.
13458 # To make any issue more visible, cause the running configure to be aborted
13459 # by default if the 'rm' program in use doesn't match our expectations; the
13460 # user can still override this though.
13461 if rm -f && rm -fr && rm -rf; then : OK; else
13462 cat >&2 <<'END'
13463 Oops!
13464
13465 Your 'rm' program seems unable to run without file operands specified
13466 on the command line, even when the '-f' option is present. This is contrary
13467 to the behaviour of most rm programs out there, and not conforming with
13468 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13469
13470 Please tell bug-automake@gnu.org about your system, including the value
13471 of your $PATH and any error possibly output before this message. This
13472 can help us improve future automake versions.
13473
13474 END
13475 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13476 echo 'Configuration will proceed anyway, since you have set the' >&2
13477 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13478 echo >&2
13479 else
13480 cat >&2 <<'END'
13481 Aborting the configuration process, to ensure you take notice of the issue.
13482
13483 You can download and install GNU coreutils to get an 'rm' implementation
13484 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13485
13486 If you want to complete the configuration process using your problematic
13487 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13488 to "yes", and re-run configure.
13489
13490 END
13491 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13492 fi
13493 fi
13494
13495 # Check whether --enable-silent-rules was given.
13496 if test "${enable_silent_rules+set}" = set; then :
13497 enableval=$enable_silent_rules;
13498 fi
13499
13500 case $enable_silent_rules in # (((
13501 yes) AM_DEFAULT_VERBOSITY=0;;
13502 no) AM_DEFAULT_VERBOSITY=1;;
13503 *) AM_DEFAULT_VERBOSITY=0;;
13504 esac
13505 am_make=${MAKE-make}
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13507 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13508 if ${am_cv_make_support_nested_variables+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 if $as_echo 'TRUE=$(BAR$(V))
13512 BAR0=false
13513 BAR1=true
13514 V=1
13515 am__doit:
13516 @$(TRUE)
13517 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13518 am_cv_make_support_nested_variables=yes
13519 else
13520 am_cv_make_support_nested_variables=no
13521 fi
13522 fi
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13524 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13525 if test $am_cv_make_support_nested_variables = yes; then
13526 AM_V='$(V)'
13527 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13528 else
13529 AM_V=$AM_DEFAULT_VERBOSITY
13530 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13531 fi
13532 AM_BACKSLASH='\'
13533
13534
13535 # If a cpu ever has more than one simulator to choose from, use
13536 # --enable-sim=... to choose.
13537 # Check whether --enable-sim was given.
13538 if test "${enable_sim+set}" = set; then :
13539 enableval=$enable_sim; case "${enableval}" in
13540 yes | no) ;;
13541 *) as_fn_error $? "bad value ${enableval} given for --enable-sim option" "$LINENO" 5 ;;
13542 esac
13543 fi
13544
13545
13546 # Check whether --enable-example-sims was given.
13547 if test "${enable_example_sims+set}" = set; then :
13548 enableval=$enable_example_sims;
13549 fi
13550
13551
13552 # Check whether --enable-targets was given.
13553 if test "${enable_targets+set}" = set; then :
13554 enableval=$enable_targets; case "${enableval}" in
13555 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
13556 ;;
13557 no) enable_targets= ;;
13558 *) enable_targets=$enableval ;;
13559 esac
13560 fi
13561
13562
13563 SIM_PRIMARY_TARGET=
13564
13565
13566 SIM_SUBDIRS=
13567
13568
13569 SIM_COMMON_BUILD_TRUE=
13570 SIM_COMMON_BUILD_FALSE='#'
13571
13572
13573
13574 ac_config_files="$ac_config_files Make-common.sim:common/Make-common.in"
13575
13576
13577
13578
13579 if test "${enable_sim}" != no; then
13580 sim_igen=no
13581 for targ in `echo $target $enable_targets | sed 's/,/ /g'`
13582 do
13583 case "${targ}" in
13584 all|aarch64*-*-*)
13585 if test "${targ}" = "${target}"; then
13586 SIM_PRIMARY_TARGET=aarch64
13587 fi
13588 ac_config_files="$ac_config_files aarch64/Makefile.sim:aarch64/Makefile.in"
13589
13590 ac_config_commands="$ac_config_commands aarch64/Makefile"
13591
13592 as_fn_append SIM_SUBDIRS " aarch64"
13593
13594 ac_config_commands="$ac_config_commands depdir-aarch64"
13595
13596
13597
13598 ;;
13599 esac
13600
13601 case "${targ}" in
13602 all|arm*-*-*)
13603 if test "${targ}" = "${target}"; then
13604 SIM_PRIMARY_TARGET=arm
13605 fi
13606 ac_config_files="$ac_config_files arm/Makefile.sim:arm/Makefile.in"
13607
13608 ac_config_commands="$ac_config_commands arm/Makefile"
13609
13610 as_fn_append SIM_SUBDIRS " arm"
13611
13612 ac_config_commands="$ac_config_commands depdir-arm"
13613
13614
13615
13616 ;;
13617 esac
13618
13619 case "${targ}" in
13620 all|avr*-*-*)
13621 if test "${targ}" = "${target}"; then
13622 SIM_PRIMARY_TARGET=avr
13623 fi
13624 ac_config_files="$ac_config_files avr/Makefile.sim:avr/Makefile.in"
13625
13626 ac_config_commands="$ac_config_commands avr/Makefile"
13627
13628 as_fn_append SIM_SUBDIRS " avr"
13629
13630 ac_config_commands="$ac_config_commands depdir-avr"
13631
13632
13633
13634 ;;
13635 esac
13636
13637 case "${targ}" in
13638 all|bfin-*-*)
13639 if test "${targ}" = "${target}"; then
13640 SIM_PRIMARY_TARGET=bfin
13641 fi
13642
13643
13644 subdirs="$subdirs bfin"
13645
13646
13647 ac_config_commands="$ac_config_commands depdir-bfin"
13648
13649
13650
13651 ;;
13652 esac
13653
13654 case "${targ}" in
13655 all|bpf-*-*)
13656 if test "${targ}" = "${target}"; then
13657 SIM_PRIMARY_TARGET=bpf
13658 fi
13659 subdirs="$subdirs bpf"
13660
13661
13662 ac_config_commands="$ac_config_commands depdir-bpf"
13663
13664
13665
13666 ;;
13667 esac
13668
13669 case "${targ}" in
13670 all|cr16*-*-*)
13671 if test "${targ}" = "${target}"; then
13672 SIM_PRIMARY_TARGET=cr16
13673 fi
13674 ac_config_files="$ac_config_files cr16/Makefile.sim:cr16/Makefile.in"
13675
13676 ac_config_commands="$ac_config_commands cr16/Makefile"
13677
13678 as_fn_append SIM_SUBDIRS " cr16"
13679
13680 ac_config_commands="$ac_config_commands depdir-cr16"
13681
13682
13683
13684 ;;
13685 esac
13686
13687 case "${targ}" in
13688 all|cris-*-* | crisv32-*-*)
13689 if test "${targ}" = "${target}"; then
13690 SIM_PRIMARY_TARGET=cris
13691 fi
13692 subdirs="$subdirs cris"
13693
13694
13695 ac_config_commands="$ac_config_commands depdir-cris"
13696
13697
13698
13699 ;;
13700 esac
13701
13702 case "${targ}" in
13703 all|d10v-*-*)
13704 if test "${targ}" = "${target}"; then
13705 SIM_PRIMARY_TARGET=d10v
13706 fi
13707 ac_config_files="$ac_config_files d10v/Makefile.sim:d10v/Makefile.in"
13708
13709 ac_config_commands="$ac_config_commands d10v/Makefile"
13710
13711 as_fn_append SIM_SUBDIRS " d10v"
13712
13713 ac_config_commands="$ac_config_commands depdir-d10v"
13714
13715
13716
13717 ;;
13718 esac
13719
13720 case "${targ}" in
13721 all|frv-*-*)
13722 if test "${targ}" = "${target}"; then
13723 SIM_PRIMARY_TARGET=frv
13724 fi
13725 subdirs="$subdirs frv"
13726
13727
13728 ac_config_commands="$ac_config_commands depdir-frv"
13729
13730
13731
13732 ;;
13733 esac
13734
13735 case "${targ}" in
13736 all|ft32-*-*)
13737 if test "${targ}" = "${target}"; then
13738 SIM_PRIMARY_TARGET=ft32
13739 fi
13740 ac_config_files="$ac_config_files ft32/Makefile.sim:ft32/Makefile.in"
13741
13742 ac_config_commands="$ac_config_commands ft32/Makefile"
13743
13744 as_fn_append SIM_SUBDIRS " ft32"
13745
13746 ac_config_commands="$ac_config_commands depdir-ft32"
13747
13748
13749
13750 ;;
13751 esac
13752
13753 case "${targ}" in
13754 all|h8300*-*-*)
13755 if test "${targ}" = "${target}"; then
13756 SIM_PRIMARY_TARGET=h8300
13757 fi
13758 ac_config_files="$ac_config_files h8300/Makefile.sim:h8300/Makefile.in"
13759
13760 ac_config_commands="$ac_config_commands h8300/Makefile"
13761
13762 as_fn_append SIM_SUBDIRS " h8300"
13763
13764 ac_config_commands="$ac_config_commands depdir-h8300"
13765
13766
13767
13768 ;;
13769 esac
13770
13771 case "${targ}" in
13772 all|iq2000-*-*)
13773 if test "${targ}" = "${target}"; then
13774 SIM_PRIMARY_TARGET=iq2000
13775 fi
13776 subdirs="$subdirs iq2000"
13777
13778
13779 ac_config_commands="$ac_config_commands depdir-iq2000"
13780
13781
13782
13783 ;;
13784 esac
13785
13786 case "${targ}" in
13787 all|lm32-*-*)
13788 if test "${targ}" = "${target}"; then
13789 SIM_PRIMARY_TARGET=lm32
13790 fi
13791 subdirs="$subdirs lm32"
13792
13793
13794 ac_config_commands="$ac_config_commands depdir-lm32"
13795
13796
13797
13798 ;;
13799 esac
13800
13801 case "${targ}" in
13802 all|m32c-*-*)
13803 if test "${targ}" = "${target}"; then
13804 SIM_PRIMARY_TARGET=m32c
13805 fi
13806 ac_config_files="$ac_config_files m32c/Makefile.sim:m32c/Makefile.in"
13807
13808 ac_config_commands="$ac_config_commands m32c/Makefile"
13809
13810 as_fn_append SIM_SUBDIRS " m32c"
13811
13812 ac_config_commands="$ac_config_commands depdir-m32c"
13813
13814
13815
13816 ;;
13817 esac
13818
13819 case "${targ}" in
13820 all|m32r-*-*)
13821 if test "${targ}" = "${target}"; then
13822 SIM_PRIMARY_TARGET=m32r
13823 fi
13824 subdirs="$subdirs m32r"
13825
13826
13827 ac_config_commands="$ac_config_commands depdir-m32r"
13828
13829
13830
13831 ;;
13832 esac
13833
13834 case "${targ}" in
13835 all|m68hc11-*-*|m6811-*-*)
13836 if test "${targ}" = "${target}"; then
13837 SIM_PRIMARY_TARGET=m68hc11
13838 fi
13839 ac_config_files="$ac_config_files m68hc11/Makefile.sim:m68hc11/Makefile.in"
13840
13841 ac_config_commands="$ac_config_commands m68hc11/Makefile"
13842
13843 as_fn_append SIM_SUBDIRS " m68hc11"
13844
13845 ac_config_commands="$ac_config_commands depdir-m68hc11"
13846
13847
13848
13849 ;;
13850 esac
13851
13852 case "${targ}" in
13853 all|mcore-*-*)
13854 if test "${targ}" = "${target}"; then
13855 SIM_PRIMARY_TARGET=mcore
13856 fi
13857 ac_config_files="$ac_config_files mcore/Makefile.sim:mcore/Makefile.in"
13858
13859 ac_config_commands="$ac_config_commands mcore/Makefile"
13860
13861 as_fn_append SIM_SUBDIRS " mcore"
13862
13863 ac_config_commands="$ac_config_commands depdir-mcore"
13864
13865
13866
13867 ;;
13868 esac
13869
13870 case "${targ}" in
13871 all|microblaze-*-*)
13872 if test "${targ}" = "${target}"; then
13873 SIM_PRIMARY_TARGET=microblaze
13874 fi
13875 ac_config_files="$ac_config_files microblaze/Makefile.sim:microblaze/Makefile.in"
13876
13877 ac_config_commands="$ac_config_commands microblaze/Makefile"
13878
13879 as_fn_append SIM_SUBDIRS " microblaze"
13880
13881 ac_config_commands="$ac_config_commands depdir-microblaze"
13882
13883
13884
13885 ;;
13886 esac
13887
13888 case "${targ}" in
13889 all|mips*-*-*)
13890 if test "${targ}" = "${target}"; then
13891 SIM_PRIMARY_TARGET=mips
13892 fi
13893 subdirs="$subdirs mips"
13894
13895
13896 ac_config_commands="$ac_config_commands depdir-mips"
13897
13898
13899 sim_igen=yes
13900 ;;
13901 esac
13902
13903 case "${targ}" in
13904 all|mn10300*-*-*)
13905 if test "${targ}" = "${target}"; then
13906 SIM_PRIMARY_TARGET=mn10300
13907 fi
13908 subdirs="$subdirs mn10300"
13909
13910
13911 ac_config_commands="$ac_config_commands depdir-mn10300"
13912
13913
13914 sim_igen=yes
13915 ;;
13916 esac
13917
13918 case "${targ}" in
13919 all|moxie-*-*)
13920 if test "${targ}" = "${target}"; then
13921 SIM_PRIMARY_TARGET=moxie
13922 fi
13923 ac_config_files="$ac_config_files moxie/Makefile.sim:moxie/Makefile.in"
13924
13925 ac_config_commands="$ac_config_commands moxie/Makefile"
13926
13927 as_fn_append SIM_SUBDIRS " moxie"
13928
13929 ac_config_commands="$ac_config_commands depdir-moxie"
13930
13931
13932
13933 ;;
13934 esac
13935
13936 case "${targ}" in
13937 all|msp430*-*-*)
13938 if test "${targ}" = "${target}"; then
13939 SIM_PRIMARY_TARGET=msp430
13940 fi
13941 ac_config_files="$ac_config_files msp430/Makefile.sim:msp430/Makefile.in"
13942
13943 ac_config_commands="$ac_config_commands msp430/Makefile"
13944
13945 as_fn_append SIM_SUBDIRS " msp430"
13946
13947 ac_config_commands="$ac_config_commands depdir-msp430"
13948
13949
13950
13951 ;;
13952 esac
13953
13954 case "${targ}" in
13955 all|or1k-*-* | or1knd-*-*)
13956 if test "${targ}" = "${target}"; then
13957 SIM_PRIMARY_TARGET=or1k
13958 fi
13959 subdirs="$subdirs or1k"
13960
13961
13962 ac_config_commands="$ac_config_commands depdir-or1k"
13963
13964
13965
13966 ;;
13967 esac
13968
13969 case "${targ}" in
13970 all|pru*-*-*)
13971 if test "${targ}" = "${target}"; then
13972 SIM_PRIMARY_TARGET=pru
13973 fi
13974 ac_config_files="$ac_config_files pru/Makefile.sim:pru/Makefile.in"
13975
13976 ac_config_commands="$ac_config_commands pru/Makefile"
13977
13978 as_fn_append SIM_SUBDIRS " pru"
13979
13980 ac_config_commands="$ac_config_commands depdir-pru"
13981
13982
13983
13984 ;;
13985 esac
13986
13987 case "${targ}" in
13988 all|riscv*-*-*)
13989 if test "${targ}" = "${target}"; then
13990 SIM_PRIMARY_TARGET=riscv
13991 fi
13992 subdirs="$subdirs riscv"
13993
13994
13995 ac_config_commands="$ac_config_commands depdir-riscv"
13996
13997
13998
13999 ;;
14000 esac
14001
14002 case "${targ}" in
14003 all|rl78-*-*)
14004 if test "${targ}" = "${target}"; then
14005 SIM_PRIMARY_TARGET=rl78
14006 fi
14007 ac_config_files="$ac_config_files rl78/Makefile.sim:rl78/Makefile.in"
14008
14009 ac_config_commands="$ac_config_commands rl78/Makefile"
14010
14011 as_fn_append SIM_SUBDIRS " rl78"
14012
14013 ac_config_commands="$ac_config_commands depdir-rl78"
14014
14015
14016
14017 ;;
14018 esac
14019
14020 case "${targ}" in
14021 all|rx-*-*)
14022 if test "${targ}" = "${target}"; then
14023 SIM_PRIMARY_TARGET=rx
14024 fi
14025 ac_config_files="$ac_config_files rx/Makefile.sim:rx/Makefile.in"
14026
14027 ac_config_commands="$ac_config_commands rx/Makefile"
14028
14029 as_fn_append SIM_SUBDIRS " rx"
14030
14031 ac_config_commands="$ac_config_commands depdir-rx"
14032
14033
14034
14035 ;;
14036 esac
14037
14038 case "${targ}" in
14039 all|sh*-*-*)
14040 if test "${targ}" = "${target}"; then
14041 SIM_PRIMARY_TARGET=sh
14042 fi
14043 ac_config_files="$ac_config_files sh/Makefile.sim:sh/Makefile.in"
14044
14045 ac_config_commands="$ac_config_commands sh/Makefile"
14046
14047 as_fn_append SIM_SUBDIRS " sh"
14048
14049 ac_config_commands="$ac_config_commands depdir-sh"
14050
14051
14052
14053 ;;
14054 esac
14055
14056 case "${targ}" in
14057 all|sparc-*-rtems*|sparc-*-elf*)
14058 if test "${targ}" = "${target}"; then
14059 SIM_PRIMARY_TARGET=erc32
14060 fi
14061 subdirs="$subdirs erc32"
14062
14063
14064 ac_config_commands="$ac_config_commands depdir-erc32"
14065
14066
14067
14068 ;;
14069 esac
14070
14071 case "${targ}" in
14072 all|powerpc*-*-*)
14073 if test "${targ}" = "${target}"; then
14074 SIM_PRIMARY_TARGET=ppc
14075 fi
14076 subdirs="$subdirs ppc"
14077
14078
14079 ac_config_commands="$ac_config_commands depdir-ppc"
14080
14081
14082
14083 ;;
14084 esac
14085
14086 case "${targ}" in
14087 all|v850*-*-*)
14088 if test "${targ}" = "${target}"; then
14089 SIM_PRIMARY_TARGET=v850
14090 fi
14091 subdirs="$subdirs v850"
14092
14093
14094 ac_config_commands="$ac_config_commands depdir-v850"
14095
14096
14097 sim_igen=yes
14098 ;;
14099 esac
14100
14101 done
14102
14103 if test "x${enable_example_sims}" = xyes; then
14104 ac_config_files="$ac_config_files example-synacor/Makefile.sim:example-synacor/Makefile.in"
14105
14106 ac_config_commands="$ac_config_commands example-synacor/Makefile"
14107
14108 as_fn_append SIM_SUBDIRS " example-synacor"
14109
14110 ac_config_commands="$ac_config_commands depdir-example-synacor"
14111
14112
14113 fi
14114 fi
14115 if test "$sim_igen" = "yes"; then
14116 SIM_ENABLE_IGEN_TRUE=
14117 SIM_ENABLE_IGEN_FALSE='#'
14118 else
14119 SIM_ENABLE_IGEN_TRUE='#'
14120 SIM_ENABLE_IGEN_FALSE=
14121 fi
14122
14123
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim alignment" >&5
14125 $as_echo_n "checking whether to force sim alignment... " >&6; }
14126 sim_alignment=
14127 # Check whether --enable-sim-alignment was given.
14128 if test "${enable_sim_alignment+set}" = set; then :
14129 enableval=$enable_sim_alignment; case "${enableval}" in
14130 yes | strict | STRICT) sim_alignment="STRICT_ALIGNMENT";;
14131 no | nonstrict | NONSTRICT) sim_alignment="NONSTRICT_ALIGNMENT";;
14132 forced | FORCED) sim_alignment="FORCED_ALIGNMENT";;
14133 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5;;
14134 esac
14135 fi
14136
14137 cat >>confdefs.h <<_ACEOF
14138 #define WITH_ALIGNMENT ${sim_alignment:-0}
14139 _ACEOF
14140
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14142 $as_echo "${sim_alignment:-no}" >&6; }
14143
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
14146 $as_echo_n "checking whether to enable sim asserts... " >&6; }
14147 sim_assert="1"
14148 # Check whether --enable-sim-assert was given.
14149 if test "${enable_sim_assert+set}" = set; then :
14150 enableval=$enable_sim_assert; case "${enableval}" in
14151 yes) sim_assert="1";;
14152 no) sim_assert="0";;
14153 *) as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
14154 esac
14155 fi
14156
14157 cat >>confdefs.h <<_ACEOF
14158 #define WITH_ASSERT $sim_assert
14159 _ACEOF
14160
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
14162 $as_echo "$sim_assert" >&6; }
14163
14164
14165 cgen_maint=no
14166 cgen=guile
14167 cgendir='$(srcdir)/../../cgen'
14168 # Check whether --enable-cgen-maint was given.
14169 if test "${enable_cgen_maint+set}" = set; then :
14170 enableval=$enable_cgen_maint; case "${enableval}" in
14171 yes) cgen_maint=yes ;;
14172 no) cgen_maint=no ;;
14173 *)
14174 # Argument is a directory where cgen can be found. In some
14175 # future world cgen could be installable, but right now this
14176 # is not the case. Instead we assume the directory is a path
14177 # to the cgen source tree.
14178 cgen_maint=yes
14179 if test -r ${enableval}/iformat.scm; then
14180 # This looks like a cgen source tree.
14181 cgendir=${enableval}
14182 else
14183 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
14184 fi
14185 ;;
14186 esac
14187 fi
14188 if test x${cgen_maint} != xno ; then
14189 CGEN_MAINT=''
14190 else
14191 CGEN_MAINT='#'
14192 fi
14193
14194
14195
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
14198 $as_echo_n "checking for sim debug setting... " >&6; }
14199 sim_debug="0"
14200 # Check whether --enable-sim-debug was given.
14201 if test "${enable_sim_debug+set}" = set; then :
14202 enableval=$enable_sim_debug; case "${enableval}" in
14203 yes) sim_debug="7";;
14204 no) sim_debug="0";;
14205 *) sim_debug="($enableval)";;
14206 esac
14207 fi
14208 if test "$sim_debug" != "0"; then
14209
14210 cat >>confdefs.h <<_ACEOF
14211 #define DEBUG $sim_debug
14212 _ACEOF
14213
14214 fi
14215
14216 cat >>confdefs.h <<_ACEOF
14217 #define WITH_DEBUG $sim_debug
14218 _ACEOF
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
14221 $as_echo "$sim_debug" >&6; }
14222
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force sim endianness" >&5
14224 $as_echo_n "checking whether to force sim endianness... " >&6; }
14225 sim_endian=
14226 # Check whether --enable-sim-endian was given.
14227 if test "${enable_sim_endian+set}" = set; then :
14228 enableval=$enable_sim_endian; case "${enableval}" in
14229 b*|B*) sim_endian="BFD_ENDIAN_BIG";;
14230 l*|L*) sim_endian="BFD_ENDIAN_LITTLE";;
14231 yes | no) ;;
14232 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5;;
14233 esac
14234 fi
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define WITH_TARGET_BYTE_ORDER ${sim_endian:-BFD_ENDIAN_UNKNOWN}
14238 _ACEOF
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sim_alignment:-no}" >&5
14241 $as_echo "${sim_alignment:-no}" >&6; }
14242
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
14245 $as_echo_n "checking default sim environment setting... " >&6; }
14246 sim_environment="ALL_ENVIRONMENT"
14247 # Check whether --enable-sim-environment was given.
14248 if test "${enable_sim_environment+set}" = set; then :
14249 enableval=$enable_sim_environment; case "${enableval}" in
14250 all | ALL) sim_environment="ALL_ENVIRONMENT";;
14251 user | USER) sim_environment="USER_ENVIRONMENT";;
14252 virtual | VIRTUAL) sim_environment="VIRTUAL_ENVIRONMENT";;
14253 operating | OPERATING) sim_environment="OPERATING_ENVIRONMENT";;
14254 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-environment" "$LINENO" 5;;
14255 esac
14256 fi
14257
14258 cat >>confdefs.h <<_ACEOF
14259 #define WITH_ENVIRONMENT $sim_environment
14260 _ACEOF
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_environment" >&5
14263 $as_echo "$sim_environment" >&6; }
14264
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim hardware settings" >&5
14266 $as_echo_n "checking for sim hardware settings... " >&6; }
14267 # Check whether --enable-sim-hardware was given.
14268 if test "${enable_sim_hardware+set}" = set; then :
14269 enableval=$enable_sim_hardware;
14270 else
14271 enable_sim_hardware="yes"
14272 fi
14273
14274 sim_hw_sockser=
14275 if test "$enable_sim_hardware" = no; then
14276 sim_hw_cflags="-DWITH_HW=0"
14277 elif test "$enable_sim_hardware" = yes; then
14278 sim_hw_cflags="-DWITH_HW=1"
14279 # mingw does not support sockser
14280 case ${host} in
14281 *mingw*) ;;
14282 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
14283 # that you instatiate. Instead, other code will call into it directly.
14284 # At some point, we should convert it over.
14285 sim_hw_sockser="dv-sockser.o"
14286 sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER"
14287 ;;
14288 esac
14289 else
14290 as_fn_error $? "unknown argument \"$enable_sim_hardware\"" "$LINENO" 5
14291 fi
14292 if test "$enable_sim_hardware" = "yes"; then
14293 SIM_ENABLE_HW_TRUE=
14294 SIM_ENABLE_HW_FALSE='#'
14295 else
14296 SIM_ENABLE_HW_TRUE='#'
14297 SIM_ENABLE_HW_FALSE=
14298 fi
14299
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_sim_hardware}" >&5
14301 $as_echo "${enable_sim_hardware}" >&6; }
14302
14303
14304
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sim inline settings" >&5
14306 $as_echo_n "checking sim inline settings... " >&6; }
14307 sim_inline="-DDEFAULT_INLINE=0"
14308 # Check whether --enable-sim-inline was given.
14309 if test "${enable_sim_inline+set}" = set; then :
14310 enableval=$enable_sim_inline; sim_inline=""
14311 case "$enableval" in
14312 no) sim_inline="-DDEFAULT_INLINE=0";;
14313 0) sim_inline="-DDEFAULT_INLINE=0";;
14314 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
14315 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
14316 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14317 new_flag=""
14318 case "$x" in
14319 *_INLINE=*) new_flag="-D$x";;
14320 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
14321 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
14322 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
14323 esac
14324 if test x"$sim_inline" = x""; then
14325 sim_inline="$new_flag"
14326 else
14327 sim_inline="$sim_inline $new_flag"
14328 fi
14329 done;;
14330 esac
14331
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_inline" >&5
14334 $as_echo "$sim_inline" >&6; }
14335 SIM_INLINE=$sim_inline
14336
14337
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
14339 $as_echo_n "checking for sim profile settings... " >&6; }
14340 profile="1"
14341 sim_profile="-1"
14342 # Check whether --enable-sim-profile was given.
14343 if test "${enable_sim_profile+set}" = set; then :
14344 enableval=$enable_sim_profile; case "${enableval}" in
14345 yes) profile="1" sim_profile="-1";;
14346 no) profile="0" sim_profile="0";;
14347 [-0-9]*)
14348 profile="(${enableval})" sim_profile="(${enableval})";;
14349 [a-z]*)
14350 profile="1"
14351 sim_profile=""
14352 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14353 if test x"$sim_profile" = x; then
14354 sim_profile="(PROFILE_$x"
14355 else
14356 sim_profile="${sim_profile}|PROFILE_$x"
14357 fi
14358 done
14359 sim_profile="$sim_profile)" ;;
14360 esac
14361 fi
14362
14363 cat >>confdefs.h <<_ACEOF
14364 #define PROFILE $profile
14365 _ACEOF
14366
14367
14368 cat >>confdefs.h <<_ACEOF
14369 #define WITH_PROFILE $sim_profile
14370 _ACEOF
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
14373 $as_echo "$sim_profile" >&6; }
14374
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
14376 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
14377 sim_stdio="0"
14378 # Check whether --enable-sim-stdio was given.
14379 if test "${enable_sim_stdio+set}" = set; then :
14380 enableval=$enable_sim_stdio; case "${enableval}" in
14381 yes) sim_stdio="DO_USE_STDIO";;
14382 no) sim_stdio="DONT_USE_STDIO";;
14383 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
14384 esac
14385 fi
14386
14387 cat >>confdefs.h <<_ACEOF
14388 #define WITH_STDIO $sim_stdio
14389 _ACEOF
14390
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
14392 $as_echo "$sim_stdio" >&6; }
14393
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
14395 $as_echo_n "checking for sim trace settings... " >&6; }
14396 sim_trace="~TRACE_debug"
14397 # Check whether --enable-sim-trace was given.
14398 if test "${enable_sim_trace+set}" = set; then :
14399 enableval=$enable_sim_trace; case "${enableval}" in
14400 yes) sim_trace="-1";;
14401 no) sim_trace="0";;
14402 [-0-9]*)
14403 sim_trace="'(${enableval})'";;
14404 [[:lower:]]*)
14405 sim_trace=""
14406 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
14407 if test x"$sim_trace" = x; then
14408 sim_trace="(TRACE_$x"
14409 else
14410 sim_trace="${sim_trace}|TRACE_$x"
14411 fi
14412 done
14413 sim_trace="$sim_trace)" ;;
14414 esac
14415 fi
14416
14417 cat >>confdefs.h <<_ACEOF
14418 #define WITH_TRACE $sim_trace
14419 _ACEOF
14420
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
14422 $as_echo "$sim_trace" >&6; }
14423
14424
14425 # Check whether --enable-werror was given.
14426 if test "${enable_werror+set}" = set; then :
14427 enableval=$enable_werror; case "${enableval}" in
14428 yes | y) ERROR_ON_WARNING="yes" ;;
14429 no | n) ERROR_ON_WARNING="no" ;;
14430 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14431 esac
14432 fi
14433
14434
14435 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14436 ERROR_ON_WARNING=yes
14437 fi
14438
14439 WERROR_CFLAGS=""
14440 if test "${ERROR_ON_WARNING}" = yes ; then
14441 WERROR_CFLAGS="-Werror"
14442 fi
14443
14444 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14445 -Wpointer-sign \
14446 -Wno-unused -Wunused-value -Wunused-function \
14447 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
14448 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
14449 -Wold-style-declaration -Wold-style-definition"
14450
14451 # Enable -Wno-format by default when using gcc on mingw since many
14452 # GCC versions complain about %I64.
14453 case "${host}" in
14454 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14455 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
14456 esac
14457
14458 # Check whether --enable-build-warnings was given.
14459 if test "${enable_build_warnings+set}" = set; then :
14460 enableval=$enable_build_warnings; case "${enableval}" in
14461 yes) ;;
14462 no) build_warnings="-w";;
14463 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14464 build_warnings="${build_warnings} ${t}";;
14465 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14466 build_warnings="${t} ${build_warnings}";;
14467 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14468 esac
14469 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14470 echo "Setting compiler warning flags = $build_warnings" 6>&1
14471 fi
14472 fi
14473 # Check whether --enable-sim-build-warnings was given.
14474 if test "${enable_sim_build_warnings+set}" = set; then :
14475 enableval=$enable_sim_build_warnings; case "${enableval}" in
14476 yes) ;;
14477 no) build_warnings="-w";;
14478 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14479 build_warnings="${build_warnings} ${t}";;
14480 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
14481 build_warnings="${t} ${build_warnings}";;
14482 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14483 esac
14484 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14485 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14486 fi
14487 fi
14488 WARN_CFLAGS=""
14489 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14490 then
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14492 $as_echo_n "checking compiler warning flags... " >&6; }
14493 # Separate out the -Werror flag as some files just cannot be
14494 # compiled with it enabled.
14495 for w in ${build_warnings}; do
14496 case $w in
14497 -Werr*) WERROR_CFLAGS=-Werror ;;
14498 *) # Check that GCC accepts it
14499 saved_CFLAGS="$CFLAGS"
14500 CFLAGS="$CFLAGS -Werror $w"
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503
14504 int
14505 main ()
14506 {
14507
14508 ;
14509 return 0;
14510 }
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"; then :
14513 WARN_CFLAGS="${WARN_CFLAGS} $w"
14514 fi
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 CFLAGS="$saved_CFLAGS"
14517 esac
14518 done
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14520 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14521 fi
14522
14523
14524
14525
14526
14527
14528
14529
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
14531 $as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
14532 # Check whether --enable-sim-rx-cycle-accurate was given.
14533 if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
14534 enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
14535 yes | no) ;;
14536 *) as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
14537 esac
14538 fi
14539
14540 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
14541 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14543 $as_echo "yes" >&6; }
14544 else
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14547 fi
14548
14549
14550
14551 ac_config_files="$ac_config_files arch-subdir.mk Makefile"
14552
14553 cat >confcache <<\_ACEOF
14554 # This file is a shell script that caches the results of configure
14555 # tests run on this system so they can be shared between configure
14556 # scripts and configure runs, see configure's option --config-cache.
14557 # It is not useful on other systems. If it contains results you don't
14558 # want to keep, you may remove or edit it.
14559 #
14560 # config.status only pays attention to the cache file if you give it
14561 # the --recheck option to rerun configure.
14562 #
14563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14565 # following values.
14566
14567 _ACEOF
14568
14569 # The following way of writing the cache mishandles newlines in values,
14570 # but we know of no workaround that is simple, portable, and efficient.
14571 # So, we kill variables containing newlines.
14572 # Ultrix sh set writes to stderr and can't be redirected directly,
14573 # and sets the high bit in the cache file unless we assign to the vars.
14574 (
14575 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14576 eval ac_val=\$$ac_var
14577 case $ac_val in #(
14578 *${as_nl}*)
14579 case $ac_var in #(
14580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14582 esac
14583 case $ac_var in #(
14584 _ | IFS | as_nl) ;; #(
14585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14586 *) { eval $ac_var=; unset $ac_var;} ;;
14587 esac ;;
14588 esac
14589 done
14590
14591 (set) 2>&1 |
14592 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14593 *${as_nl}ac_space=\ *)
14594 # `set' does not quote correctly, so add quotes: double-quote
14595 # substitution turns \\\\ into \\, and sed turns \\ into \.
14596 sed -n \
14597 "s/'/'\\\\''/g;
14598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14599 ;; #(
14600 *)
14601 # `set' quotes correctly as required by POSIX, so do not add quotes.
14602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14603 ;;
14604 esac |
14605 sort
14606 ) |
14607 sed '
14608 /^ac_cv_env_/b end
14609 t clear
14610 :clear
14611 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14612 t end
14613 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14614 :end' >>confcache
14615 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14616 if test -w "$cache_file"; then
14617 if test "x$cache_file" != "x/dev/null"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14619 $as_echo "$as_me: updating cache $cache_file" >&6;}
14620 if test ! -f "$cache_file" || test -h "$cache_file"; then
14621 cat confcache >"$cache_file"
14622 else
14623 case $cache_file in #(
14624 */* | ?:*)
14625 mv -f confcache "$cache_file"$$ &&
14626 mv -f "$cache_file"$$ "$cache_file" ;; #(
14627 *)
14628 mv -f confcache "$cache_file" ;;
14629 esac
14630 fi
14631 fi
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14635 fi
14636 fi
14637 rm -f confcache
14638
14639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14640 # Let make expand exec_prefix.
14641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14642
14643 DEFS=-DHAVE_CONFIG_H
14644
14645 ac_libobjs=
14646 ac_ltlibobjs=
14647 U=
14648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14649 # 1. Remove the extension, and $U if already installed.
14650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14653 # will be set to the directory where LIBOBJS objects are built.
14654 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14655 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14656 done
14657 LIBOBJS=$ac_libobjs
14658
14659 LTLIBOBJS=$ac_ltlibobjs
14660
14661
14662
14663 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14664 as_fn_error $? "conditional \"PLUGINS\" was never defined.
14665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14666 fi
14667 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14668 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14670 fi
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14672 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14673 if test -n "$am_sleep_pid"; then
14674 # Hide warnings about reused PIDs.
14675 wait $am_sleep_pid 2>/dev/null
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14678 $as_echo "done" >&6; }
14679 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14680 as_fn_error $? "conditional \"AMDEP\" was never defined.
14681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14682 fi
14683 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14684 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14686 fi
14687 if test -n "$EXEEXT"; then
14688 am__EXEEXT_TRUE=
14689 am__EXEEXT_FALSE='#'
14690 else
14691 am__EXEEXT_TRUE='#'
14692 am__EXEEXT_FALSE=
14693 fi
14694
14695 if test -z "${SIM_ENABLE_IGEN_TRUE}" && test -z "${SIM_ENABLE_IGEN_FALSE}"; then
14696 as_fn_error $? "conditional \"SIM_ENABLE_IGEN\" was never defined.
14697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14698 fi
14699 if test -z "${SIM_ENABLE_HW_TRUE}" && test -z "${SIM_ENABLE_HW_FALSE}"; then
14700 as_fn_error $? "conditional \"SIM_ENABLE_HW\" was never defined.
14701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14702 fi
14703
14704 : "${CONFIG_STATUS=./config.status}"
14705 ac_write_fail=0
14706 ac_clean_files_save=$ac_clean_files
14707 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14709 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14710 as_write_fail=0
14711 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14712 #! $SHELL
14713 # Generated by $as_me.
14714 # Run this file to recreate the current configuration.
14715 # Compiler output produced by configure, useful for debugging
14716 # configure, is in config.log if it exists.
14717
14718 debug=false
14719 ac_cs_recheck=false
14720 ac_cs_silent=false
14721
14722 SHELL=\${CONFIG_SHELL-$SHELL}
14723 export SHELL
14724 _ASEOF
14725 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14726 ## -------------------- ##
14727 ## M4sh Initialization. ##
14728 ## -------------------- ##
14729
14730 # Be more Bourne compatible
14731 DUALCASE=1; export DUALCASE # for MKS sh
14732 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14733 emulate sh
14734 NULLCMD=:
14735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14736 # is contrary to our usage. Disable this feature.
14737 alias -g '${1+"$@"}'='"$@"'
14738 setopt NO_GLOB_SUBST
14739 else
14740 case `(set -o) 2>/dev/null` in #(
14741 *posix*) :
14742 set -o posix ;; #(
14743 *) :
14744 ;;
14745 esac
14746 fi
14747
14748
14749 as_nl='
14750 '
14751 export as_nl
14752 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14753 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14756 # Prefer a ksh shell builtin over an external printf program on Solaris,
14757 # but without wasting forks for bash or zsh.
14758 if test -z "$BASH_VERSION$ZSH_VERSION" \
14759 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14760 as_echo='print -r --'
14761 as_echo_n='print -rn --'
14762 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14763 as_echo='printf %s\n'
14764 as_echo_n='printf %s'
14765 else
14766 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14767 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14768 as_echo_n='/usr/ucb/echo -n'
14769 else
14770 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14771 as_echo_n_body='eval
14772 arg=$1;
14773 case $arg in #(
14774 *"$as_nl"*)
14775 expr "X$arg" : "X\\(.*\\)$as_nl";
14776 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14777 esac;
14778 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14779 '
14780 export as_echo_n_body
14781 as_echo_n='sh -c $as_echo_n_body as_echo'
14782 fi
14783 export as_echo_body
14784 as_echo='sh -c $as_echo_body as_echo'
14785 fi
14786
14787 # The user is always right.
14788 if test "${PATH_SEPARATOR+set}" != set; then
14789 PATH_SEPARATOR=:
14790 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14791 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14792 PATH_SEPARATOR=';'
14793 }
14794 fi
14795
14796
14797 # IFS
14798 # We need space, tab and new line, in precisely that order. Quoting is
14799 # there to prevent editors from complaining about space-tab.
14800 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14801 # splitting by setting IFS to empty value.)
14802 IFS=" "" $as_nl"
14803
14804 # Find who we are. Look in the path if we contain no directory separator.
14805 as_myself=
14806 case $0 in #((
14807 *[\\/]* ) as_myself=$0 ;;
14808 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14809 for as_dir in $PATH
14810 do
14811 IFS=$as_save_IFS
14812 test -z "$as_dir" && as_dir=.
14813 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14814 done
14815 IFS=$as_save_IFS
14816
14817 ;;
14818 esac
14819 # We did not find ourselves, most probably we were run as `sh COMMAND'
14820 # in which case we are not to be found in the path.
14821 if test "x$as_myself" = x; then
14822 as_myself=$0
14823 fi
14824 if test ! -f "$as_myself"; then
14825 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14826 exit 1
14827 fi
14828
14829 # Unset variables that we do not need and which cause bugs (e.g. in
14830 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14831 # suppresses any "Segmentation fault" message there. '((' could
14832 # trigger a bug in pdksh 5.2.14.
14833 for as_var in BASH_ENV ENV MAIL MAILPATH
14834 do eval test x\${$as_var+set} = xset \
14835 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14836 done
14837 PS1='$ '
14838 PS2='> '
14839 PS4='+ '
14840
14841 # NLS nuisances.
14842 LC_ALL=C
14843 export LC_ALL
14844 LANGUAGE=C
14845 export LANGUAGE
14846
14847 # CDPATH.
14848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14849
14850
14851 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14852 # ----------------------------------------
14853 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14854 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14855 # script with STATUS, using 1 if that was 0.
14856 as_fn_error ()
14857 {
14858 as_status=$1; test $as_status -eq 0 && as_status=1
14859 if test "$4"; then
14860 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14861 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14862 fi
14863 $as_echo "$as_me: error: $2" >&2
14864 as_fn_exit $as_status
14865 } # as_fn_error
14866
14867
14868 # as_fn_set_status STATUS
14869 # -----------------------
14870 # Set $? to STATUS, without forking.
14871 as_fn_set_status ()
14872 {
14873 return $1
14874 } # as_fn_set_status
14875
14876 # as_fn_exit STATUS
14877 # -----------------
14878 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14879 as_fn_exit ()
14880 {
14881 set +e
14882 as_fn_set_status $1
14883 exit $1
14884 } # as_fn_exit
14885
14886 # as_fn_unset VAR
14887 # ---------------
14888 # Portably unset VAR.
14889 as_fn_unset ()
14890 {
14891 { eval $1=; unset $1;}
14892 }
14893 as_unset=as_fn_unset
14894 # as_fn_append VAR VALUE
14895 # ----------------------
14896 # Append the text in VALUE to the end of the definition contained in VAR. Take
14897 # advantage of any shell optimizations that allow amortized linear growth over
14898 # repeated appends, instead of the typical quadratic growth present in naive
14899 # implementations.
14900 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14901 eval 'as_fn_append ()
14902 {
14903 eval $1+=\$2
14904 }'
14905 else
14906 as_fn_append ()
14907 {
14908 eval $1=\$$1\$2
14909 }
14910 fi # as_fn_append
14911
14912 # as_fn_arith ARG...
14913 # ------------------
14914 # Perform arithmetic evaluation on the ARGs, and store the result in the
14915 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14916 # must be portable across $(()) and expr.
14917 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14918 eval 'as_fn_arith ()
14919 {
14920 as_val=$(( $* ))
14921 }'
14922 else
14923 as_fn_arith ()
14924 {
14925 as_val=`expr "$@" || test $? -eq 1`
14926 }
14927 fi # as_fn_arith
14928
14929
14930 if expr a : '\(a\)' >/dev/null 2>&1 &&
14931 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14932 as_expr=expr
14933 else
14934 as_expr=false
14935 fi
14936
14937 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14938 as_basename=basename
14939 else
14940 as_basename=false
14941 fi
14942
14943 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14944 as_dirname=dirname
14945 else
14946 as_dirname=false
14947 fi
14948
14949 as_me=`$as_basename -- "$0" ||
14950 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14951 X"$0" : 'X\(//\)$' \| \
14952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14953 $as_echo X/"$0" |
14954 sed '/^.*\/\([^/][^/]*\)\/*$/{
14955 s//\1/
14956 q
14957 }
14958 /^X\/\(\/\/\)$/{
14959 s//\1/
14960 q
14961 }
14962 /^X\/\(\/\).*/{
14963 s//\1/
14964 q
14965 }
14966 s/.*/./; q'`
14967
14968 # Avoid depending upon Character Ranges.
14969 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14970 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14971 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14972 as_cr_digits='0123456789'
14973 as_cr_alnum=$as_cr_Letters$as_cr_digits
14974
14975 ECHO_C= ECHO_N= ECHO_T=
14976 case `echo -n x` in #(((((
14977 -n*)
14978 case `echo 'xy\c'` in
14979 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14980 xy) ECHO_C='\c';;
14981 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14982 ECHO_T=' ';;
14983 esac;;
14984 *)
14985 ECHO_N='-n';;
14986 esac
14987
14988 rm -f conf$$ conf$$.exe conf$$.file
14989 if test -d conf$$.dir; then
14990 rm -f conf$$.dir/conf$$.file
14991 else
14992 rm -f conf$$.dir
14993 mkdir conf$$.dir 2>/dev/null
14994 fi
14995 if (echo >conf$$.file) 2>/dev/null; then
14996 if ln -s conf$$.file conf$$ 2>/dev/null; then
14997 as_ln_s='ln -s'
14998 # ... but there are two gotchas:
14999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15001 # In both cases, we have to default to `cp -pR'.
15002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15003 as_ln_s='cp -pR'
15004 elif ln conf$$.file conf$$ 2>/dev/null; then
15005 as_ln_s=ln
15006 else
15007 as_ln_s='cp -pR'
15008 fi
15009 else
15010 as_ln_s='cp -pR'
15011 fi
15012 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15013 rmdir conf$$.dir 2>/dev/null
15014
15015
15016 # as_fn_mkdir_p
15017 # -------------
15018 # Create "$as_dir" as a directory, including parents if necessary.
15019 as_fn_mkdir_p ()
15020 {
15021
15022 case $as_dir in #(
15023 -*) as_dir=./$as_dir;;
15024 esac
15025 test -d "$as_dir" || eval $as_mkdir_p || {
15026 as_dirs=
15027 while :; do
15028 case $as_dir in #(
15029 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15030 *) as_qdir=$as_dir;;
15031 esac
15032 as_dirs="'$as_qdir' $as_dirs"
15033 as_dir=`$as_dirname -- "$as_dir" ||
15034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15035 X"$as_dir" : 'X\(//\)[^/]' \| \
15036 X"$as_dir" : 'X\(//\)$' \| \
15037 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15038 $as_echo X"$as_dir" |
15039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15040 s//\1/
15041 q
15042 }
15043 /^X\(\/\/\)[^/].*/{
15044 s//\1/
15045 q
15046 }
15047 /^X\(\/\/\)$/{
15048 s//\1/
15049 q
15050 }
15051 /^X\(\/\).*/{
15052 s//\1/
15053 q
15054 }
15055 s/.*/./; q'`
15056 test -d "$as_dir" && break
15057 done
15058 test -z "$as_dirs" || eval "mkdir $as_dirs"
15059 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15060
15061
15062 } # as_fn_mkdir_p
15063 if mkdir -p . 2>/dev/null; then
15064 as_mkdir_p='mkdir -p "$as_dir"'
15065 else
15066 test -d ./-p && rmdir ./-p
15067 as_mkdir_p=false
15068 fi
15069
15070
15071 # as_fn_executable_p FILE
15072 # -----------------------
15073 # Test if FILE is an executable regular file.
15074 as_fn_executable_p ()
15075 {
15076 test -f "$1" && test -x "$1"
15077 } # as_fn_executable_p
15078 as_test_x='test -x'
15079 as_executable_p=as_fn_executable_p
15080
15081 # Sed expression to map a string onto a valid CPP name.
15082 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15083
15084 # Sed expression to map a string onto a valid variable name.
15085 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15086
15087
15088 exec 6>&1
15089 ## ----------------------------------- ##
15090 ## Main body of $CONFIG_STATUS script. ##
15091 ## ----------------------------------- ##
15092 _ASEOF
15093 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15094
15095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096 # Save the log message, to keep $0 and so on meaningful, and to
15097 # report actual input values of CONFIG_FILES etc. instead of their
15098 # values after options handling.
15099 ac_log="
15100 This file was extended by sim $as_me 0, which was
15101 generated by GNU Autoconf 2.69. Invocation command line was
15102
15103 CONFIG_FILES = $CONFIG_FILES
15104 CONFIG_HEADERS = $CONFIG_HEADERS
15105 CONFIG_LINKS = $CONFIG_LINKS
15106 CONFIG_COMMANDS = $CONFIG_COMMANDS
15107 $ $0 $@
15108
15109 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15110 "
15111
15112 _ACEOF
15113
15114 case $ac_config_files in *"
15115 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15116 esac
15117
15118 case $ac_config_headers in *"
15119 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15120 esac
15121
15122
15123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124 # Files that config.status was made for.
15125 config_files="$ac_config_files"
15126 config_headers="$ac_config_headers"
15127 config_commands="$ac_config_commands"
15128
15129 _ACEOF
15130
15131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132 ac_cs_usage="\
15133 \`$as_me' instantiates files and other configuration actions
15134 from templates according to the current configuration. Unless the files
15135 and actions are specified as TAGs, all are instantiated by default.
15136
15137 Usage: $0 [OPTION]... [TAG]...
15138
15139 -h, --help print this help, then exit
15140 -V, --version print version number and configuration settings, then exit
15141 --config print configuration, then exit
15142 -q, --quiet, --silent
15143 do not print progress messages
15144 -d, --debug don't remove temporary files
15145 --recheck update $as_me by reconfiguring in the same conditions
15146 --file=FILE[:TEMPLATE]
15147 instantiate the configuration file FILE
15148 --header=FILE[:TEMPLATE]
15149 instantiate the configuration header FILE
15150
15151 Configuration files:
15152 $config_files
15153
15154 Configuration headers:
15155 $config_headers
15156
15157 Configuration commands:
15158 $config_commands
15159
15160 Report bugs to <https://sourceware.org/bugzilla/enter_bug.cgi?product=gdb&component=sim>.
15161 sim home page: <https://sourceware.org/gdb/wiki/Sim/>."
15162
15163 _ACEOF
15164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15165 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15166 ac_cs_version="\\
15167 sim config.status 0
15168 configured by $0, generated by GNU Autoconf 2.69,
15169 with options \\"\$ac_cs_config\\"
15170
15171 Copyright (C) 2012 Free Software Foundation, Inc.
15172 This config.status script is free software; the Free Software Foundation
15173 gives unlimited permission to copy, distribute and modify it."
15174
15175 ac_pwd='$ac_pwd'
15176 srcdir='$srcdir'
15177 INSTALL='$INSTALL'
15178 MKDIR_P='$MKDIR_P'
15179 AWK='$AWK'
15180 test -n "\$AWK" || AWK=awk
15181 _ACEOF
15182
15183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15184 # The default lists apply if the user does not specify any file.
15185 ac_need_defaults=:
15186 while test $# != 0
15187 do
15188 case $1 in
15189 --*=?*)
15190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15191 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15192 ac_shift=:
15193 ;;
15194 --*=)
15195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15196 ac_optarg=
15197 ac_shift=:
15198 ;;
15199 *)
15200 ac_option=$1
15201 ac_optarg=$2
15202 ac_shift=shift
15203 ;;
15204 esac
15205
15206 case $ac_option in
15207 # Handling of the options.
15208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15209 ac_cs_recheck=: ;;
15210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15211 $as_echo "$ac_cs_version"; exit ;;
15212 --config | --confi | --conf | --con | --co | --c )
15213 $as_echo "$ac_cs_config"; exit ;;
15214 --debug | --debu | --deb | --de | --d | -d )
15215 debug=: ;;
15216 --file | --fil | --fi | --f )
15217 $ac_shift
15218 case $ac_optarg in
15219 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15220 '') as_fn_error $? "missing file argument" ;;
15221 esac
15222 as_fn_append CONFIG_FILES " '$ac_optarg'"
15223 ac_need_defaults=false;;
15224 --header | --heade | --head | --hea )
15225 $ac_shift
15226 case $ac_optarg in
15227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15228 esac
15229 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15230 ac_need_defaults=false;;
15231 --he | --h)
15232 # Conflict between --help and --header
15233 as_fn_error $? "ambiguous option: \`$1'
15234 Try \`$0 --help' for more information.";;
15235 --help | --hel | -h )
15236 $as_echo "$ac_cs_usage"; exit ;;
15237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15238 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15239 ac_cs_silent=: ;;
15240
15241 # This is an error.
15242 -*) as_fn_error $? "unrecognized option: \`$1'
15243 Try \`$0 --help' for more information." ;;
15244
15245 *) as_fn_append ac_config_targets " $1"
15246 ac_need_defaults=false ;;
15247
15248 esac
15249 shift
15250 done
15251
15252 ac_configure_extra_args=
15253
15254 if $ac_cs_silent; then
15255 exec 6>/dev/null
15256 ac_configure_extra_args="$ac_configure_extra_args --silent"
15257 fi
15258
15259 _ACEOF
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 if \$ac_cs_recheck; then
15262 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15263 shift
15264 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15265 CONFIG_SHELL='$SHELL'
15266 export CONFIG_SHELL
15267 exec "\$@"
15268 fi
15269
15270 _ACEOF
15271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15272 exec 5>>config.log
15273 {
15274 echo
15275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15276 ## Running $as_me. ##
15277 _ASBOX
15278 $as_echo "$ac_log"
15279 } >&5
15280
15281 _ACEOF
15282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15283 #
15284 # INIT-COMMANDS
15285 #
15286
15287
15288 # The HP-UX ksh and POSIX shell print the target directory to stdout
15289 # if CDPATH is set.
15290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15291
15292 sed_quote_subst='$sed_quote_subst'
15293 double_quote_subst='$double_quote_subst'
15294 delay_variable_subst='$delay_variable_subst'
15295 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15296 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15297 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15298 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15299 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15300 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15301 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15302 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15303 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15304 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15305 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15306 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15307 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15308 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15309 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15310 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15311 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15312 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15313 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15314 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15315 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15316 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15317 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15318 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15319 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15320 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15321 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15322 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15323 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15324 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15325 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15326 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15327 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15328 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15329 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15330 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15331 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15332 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15333 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15334 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15335 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15336 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15337 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15338 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15339 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15340 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15341 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15342 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15343 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"`'
15344 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15345 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15346 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15347 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15348 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15349 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15350 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15351 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15352 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15353 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15354 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15355 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15356 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15357 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15358 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15359 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15360 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15361 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15362 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15363 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15364 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15365 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15366 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15367 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15368 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15369 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15370 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15371 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15372 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15373 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15374 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15375 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15376 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15377 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15378 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15379 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15380 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15381 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15382 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15383 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15384 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15385 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15386 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15387 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15388 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15389 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15390 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15391 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15392 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15393 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15394 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15395 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15396 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15397 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15398 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15399 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15400 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15401 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15402 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15403 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15404 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15405 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15406 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15407 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15408 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15409 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15410 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15411 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15412 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15413 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15414 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15415
15416 LTCC='$LTCC'
15417 LTCFLAGS='$LTCFLAGS'
15418 compiler='$compiler_DEFAULT'
15419
15420 # A function that is used when there is no print builtin or printf.
15421 func_fallback_echo ()
15422 {
15423 eval 'cat <<_LTECHO_EOF
15424 \$1
15425 _LTECHO_EOF'
15426 }
15427
15428 # Quote evaled strings.
15429 for var in SHELL \
15430 ECHO \
15431 SED \
15432 GREP \
15433 EGREP \
15434 FGREP \
15435 LD \
15436 NM \
15437 LN_S \
15438 lt_SP2NL \
15439 lt_NL2SP \
15440 reload_flag \
15441 OBJDUMP \
15442 deplibs_check_method \
15443 file_magic_cmd \
15444 AR \
15445 AR_FLAGS \
15446 STRIP \
15447 RANLIB \
15448 CC \
15449 CFLAGS \
15450 compiler \
15451 lt_cv_sys_global_symbol_pipe \
15452 lt_cv_sys_global_symbol_to_cdecl \
15453 lt_cv_sys_global_symbol_to_c_name_address \
15454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15455 lt_prog_compiler_no_builtin_flag \
15456 lt_prog_compiler_wl \
15457 lt_prog_compiler_pic \
15458 lt_prog_compiler_static \
15459 lt_cv_prog_compiler_c_o \
15460 need_locks \
15461 DSYMUTIL \
15462 NMEDIT \
15463 LIPO \
15464 OTOOL \
15465 OTOOL64 \
15466 shrext_cmds \
15467 export_dynamic_flag_spec \
15468 whole_archive_flag_spec \
15469 compiler_needs_object \
15470 with_gnu_ld \
15471 allow_undefined_flag \
15472 no_undefined_flag \
15473 hardcode_libdir_flag_spec \
15474 hardcode_libdir_flag_spec_ld \
15475 hardcode_libdir_separator \
15476 fix_srcfile_path \
15477 exclude_expsyms \
15478 include_expsyms \
15479 file_list_spec \
15480 variables_saved_for_relink \
15481 libname_spec \
15482 library_names_spec \
15483 soname_spec \
15484 install_override_mode \
15485 finish_eval \
15486 old_striplib \
15487 striplib; do
15488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15489 *[\\\\\\\`\\"\\\$]*)
15490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15491 ;;
15492 *)
15493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15494 ;;
15495 esac
15496 done
15497
15498 # Double-quote double-evaled strings.
15499 for var in reload_cmds \
15500 old_postinstall_cmds \
15501 old_postuninstall_cmds \
15502 old_archive_cmds \
15503 extract_expsyms_cmds \
15504 old_archive_from_new_cmds \
15505 old_archive_from_expsyms_cmds \
15506 archive_cmds \
15507 archive_expsym_cmds \
15508 module_cmds \
15509 module_expsym_cmds \
15510 export_symbols_cmds \
15511 prelink_cmds \
15512 postinstall_cmds \
15513 postuninstall_cmds \
15514 finish_cmds \
15515 sys_lib_search_path_spec \
15516 sys_lib_dlsearch_path_spec; do
15517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15518 *[\\\\\\\`\\"\\\$]*)
15519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15520 ;;
15521 *)
15522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15523 ;;
15524 esac
15525 done
15526
15527 ac_aux_dir='$ac_aux_dir'
15528 xsi_shell='$xsi_shell'
15529 lt_shell_append='$lt_shell_append'
15530
15531 # See if we are running on zsh, and set the options which allow our
15532 # commands through without removal of \ escapes INIT.
15533 if test -n "\${ZSH_VERSION+set}" ; then
15534 setopt NO_GLOB_SUBST
15535 fi
15536
15537
15538 PACKAGE='$PACKAGE'
15539 VERSION='$VERSION'
15540 TIMESTAMP='$TIMESTAMP'
15541 RM='$RM'
15542 ofile='$ofile'
15543
15544
15545
15546 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15547 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15548 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15549 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15550 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15551 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15552 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15553 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15554 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15555 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15556 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15557 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15558 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15559 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15560 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15561 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15562 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15563 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15564 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15565 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15566 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15567 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15568 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15569 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15570 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15571 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15572 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15573 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15574 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15575 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15576 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15577 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15578 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
15579
15580 _ACEOF
15581
15582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583
15584 # Handling of arguments.
15585 for ac_config_target in $ac_config_targets
15586 do
15587 case $ac_config_target in
15588 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15589 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15590 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15591 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:common/Make-common.in" ;;
15592 "aarch64/Makefile.sim") CONFIG_FILES="$CONFIG_FILES aarch64/Makefile.sim:aarch64/Makefile.in" ;;
15593 "aarch64/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS aarch64/Makefile" ;;
15594 "depdir-aarch64") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-aarch64" ;;
15595 "arm/Makefile.sim") CONFIG_FILES="$CONFIG_FILES arm/Makefile.sim:arm/Makefile.in" ;;
15596 "arm/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS arm/Makefile" ;;
15597 "depdir-arm") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-arm" ;;
15598 "avr/Makefile.sim") CONFIG_FILES="$CONFIG_FILES avr/Makefile.sim:avr/Makefile.in" ;;
15599 "avr/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS avr/Makefile" ;;
15600 "depdir-avr") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-avr" ;;
15601 "depdir-bfin") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bfin" ;;
15602 "depdir-bpf") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-bpf" ;;
15603 "cr16/Makefile.sim") CONFIG_FILES="$CONFIG_FILES cr16/Makefile.sim:cr16/Makefile.in" ;;
15604 "cr16/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS cr16/Makefile" ;;
15605 "depdir-cr16") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cr16" ;;
15606 "depdir-cris") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-cris" ;;
15607 "d10v/Makefile.sim") CONFIG_FILES="$CONFIG_FILES d10v/Makefile.sim:d10v/Makefile.in" ;;
15608 "d10v/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS d10v/Makefile" ;;
15609 "depdir-d10v") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-d10v" ;;
15610 "depdir-frv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-frv" ;;
15611 "ft32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES ft32/Makefile.sim:ft32/Makefile.in" ;;
15612 "ft32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS ft32/Makefile" ;;
15613 "depdir-ft32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ft32" ;;
15614 "h8300/Makefile.sim") CONFIG_FILES="$CONFIG_FILES h8300/Makefile.sim:h8300/Makefile.in" ;;
15615 "h8300/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS h8300/Makefile" ;;
15616 "depdir-h8300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-h8300" ;;
15617 "depdir-iq2000") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-iq2000" ;;
15618 "depdir-lm32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-lm32" ;;
15619 "m32c/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m32c/Makefile.sim:m32c/Makefile.in" ;;
15620 "m32c/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m32c/Makefile" ;;
15621 "depdir-m32c") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32c" ;;
15622 "depdir-m32r") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m32r" ;;
15623 "m68hc11/Makefile.sim") CONFIG_FILES="$CONFIG_FILES m68hc11/Makefile.sim:m68hc11/Makefile.in" ;;
15624 "m68hc11/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS m68hc11/Makefile" ;;
15625 "depdir-m68hc11") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-m68hc11" ;;
15626 "mcore/Makefile.sim") CONFIG_FILES="$CONFIG_FILES mcore/Makefile.sim:mcore/Makefile.in" ;;
15627 "mcore/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS mcore/Makefile" ;;
15628 "depdir-mcore") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mcore" ;;
15629 "microblaze/Makefile.sim") CONFIG_FILES="$CONFIG_FILES microblaze/Makefile.sim:microblaze/Makefile.in" ;;
15630 "microblaze/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS microblaze/Makefile" ;;
15631 "depdir-microblaze") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-microblaze" ;;
15632 "depdir-mips") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mips" ;;
15633 "depdir-mn10300") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-mn10300" ;;
15634 "moxie/Makefile.sim") CONFIG_FILES="$CONFIG_FILES moxie/Makefile.sim:moxie/Makefile.in" ;;
15635 "moxie/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS moxie/Makefile" ;;
15636 "depdir-moxie") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-moxie" ;;
15637 "msp430/Makefile.sim") CONFIG_FILES="$CONFIG_FILES msp430/Makefile.sim:msp430/Makefile.in" ;;
15638 "msp430/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS msp430/Makefile" ;;
15639 "depdir-msp430") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-msp430" ;;
15640 "depdir-or1k") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-or1k" ;;
15641 "pru/Makefile.sim") CONFIG_FILES="$CONFIG_FILES pru/Makefile.sim:pru/Makefile.in" ;;
15642 "pru/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS pru/Makefile" ;;
15643 "depdir-pru") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-pru" ;;
15644 "depdir-riscv") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-riscv" ;;
15645 "rl78/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rl78/Makefile.sim:rl78/Makefile.in" ;;
15646 "rl78/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rl78/Makefile" ;;
15647 "depdir-rl78") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rl78" ;;
15648 "rx/Makefile.sim") CONFIG_FILES="$CONFIG_FILES rx/Makefile.sim:rx/Makefile.in" ;;
15649 "rx/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS rx/Makefile" ;;
15650 "depdir-rx") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-rx" ;;
15651 "sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
15652 "sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
15653 "depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
15654 "depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
15655 "depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
15656 "depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
15657 "example-synacor/Makefile.sim") CONFIG_FILES="$CONFIG_FILES example-synacor/Makefile.sim:example-synacor/Makefile.in" ;;
15658 "example-synacor/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS example-synacor/Makefile" ;;
15659 "depdir-example-synacor") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-example-synacor" ;;
15660 "arch-subdir.mk") CONFIG_FILES="$CONFIG_FILES arch-subdir.mk" ;;
15661 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15662
15663 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15664 esac
15665 done
15666
15667
15668 # If the user did not use the arguments to specify the items to instantiate,
15669 # then the envvar interface is used. Set only those that are not.
15670 # We use the long form for the default assignment because of an extremely
15671 # bizarre bug on SunOS 4.1.3.
15672 if $ac_need_defaults; then
15673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15676 fi
15677
15678 # Have a temporary directory for convenience. Make it in the build tree
15679 # simply because there is no reason against having it here, and in addition,
15680 # creating and moving files from /tmp can sometimes cause problems.
15681 # Hook for its removal unless debugging.
15682 # Note that there is a small window in which the directory will not be cleaned:
15683 # after its creation but before its name has been assigned to `$tmp'.
15684 $debug ||
15685 {
15686 tmp= ac_tmp=
15687 trap 'exit_status=$?
15688 : "${ac_tmp:=$tmp}"
15689 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15690 ' 0
15691 trap 'as_fn_exit 1' 1 2 13 15
15692 }
15693 # Create a (secure) tmp directory for tmp files.
15694
15695 {
15696 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15697 test -d "$tmp"
15698 } ||
15699 {
15700 tmp=./conf$$-$RANDOM
15701 (umask 077 && mkdir "$tmp")
15702 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15703 ac_tmp=$tmp
15704
15705 # Set up the scripts for CONFIG_FILES section.
15706 # No need to generate them if there are no CONFIG_FILES.
15707 # This happens for instance with `./config.status config.h'.
15708 if test -n "$CONFIG_FILES"; then
15709
15710
15711 ac_cr=`echo X | tr X '\015'`
15712 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15713 # But we know of no other shell where ac_cr would be empty at this
15714 # point, so we can use a bashism as a fallback.
15715 if test "x$ac_cr" = x; then
15716 eval ac_cr=\$\'\\r\'
15717 fi
15718 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15719 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15720 ac_cs_awk_cr='\\r'
15721 else
15722 ac_cs_awk_cr=$ac_cr
15723 fi
15724
15725 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15726 _ACEOF
15727
15728
15729 {
15730 echo "cat >conf$$subs.awk <<_ACEOF" &&
15731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15732 echo "_ACEOF"
15733 } >conf$$subs.sh ||
15734 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15735 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15736 ac_delim='%!_!# '
15737 for ac_last_try in false false false false false :; do
15738 . ./conf$$subs.sh ||
15739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15740
15741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15742 if test $ac_delim_n = $ac_delim_num; then
15743 break
15744 elif $ac_last_try; then
15745 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15746 else
15747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15748 fi
15749 done
15750 rm -f conf$$subs.sh
15751
15752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15754 _ACEOF
15755 sed -n '
15756 h
15757 s/^/S["/; s/!.*/"]=/
15758 p
15759 g
15760 s/^[^!]*!//
15761 :repl
15762 t repl
15763 s/'"$ac_delim"'$//
15764 t delim
15765 :nl
15766 h
15767 s/\(.\{148\}\)..*/\1/
15768 t more1
15769 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15770 p
15771 n
15772 b repl
15773 :more1
15774 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15775 p
15776 g
15777 s/.\{148\}//
15778 t nl
15779 :delim
15780 h
15781 s/\(.\{148\}\)..*/\1/
15782 t more2
15783 s/["\\]/\\&/g; s/^/"/; s/$/"/
15784 p
15785 b
15786 :more2
15787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15788 p
15789 g
15790 s/.\{148\}//
15791 t delim
15792 ' <conf$$subs.awk | sed '
15793 /^[^""]/{
15794 N
15795 s/\n//
15796 }
15797 ' >>$CONFIG_STATUS || ac_write_fail=1
15798 rm -f conf$$subs.awk
15799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800 _ACAWK
15801 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15802 for (key in S) S_is_set[key] = 1
15803 FS = "\a"
15804
15805 }
15806 {
15807 line = $ 0
15808 nfields = split(line, field, "@")
15809 substed = 0
15810 len = length(field[1])
15811 for (i = 2; i < nfields; i++) {
15812 key = field[i]
15813 keylen = length(key)
15814 if (S_is_set[key]) {
15815 value = S[key]
15816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15817 len += length(value) + length(field[++i])
15818 substed = 1
15819 } else
15820 len += 1 + keylen
15821 }
15822
15823 print line
15824 }
15825
15826 _ACAWK
15827 _ACEOF
15828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15829 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15830 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15831 else
15832 cat
15833 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15834 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15835 _ACEOF
15836
15837 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15838 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15839 # trailing colons and then remove the whole line if VPATH becomes empty
15840 # (actually we leave an empty line to preserve line numbers).
15841 if test "x$srcdir" = x.; then
15842 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15843 h
15844 s///
15845 s/^/:/
15846 s/[ ]*$/:/
15847 s/:\$(srcdir):/:/g
15848 s/:\${srcdir}:/:/g
15849 s/:@srcdir@:/:/g
15850 s/^:*//
15851 s/:*$//
15852 x
15853 s/\(=[ ]*\).*/\1/
15854 G
15855 s/\n//
15856 s/^[^=]*=[ ]*$//
15857 }'
15858 fi
15859
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 fi # test -n "$CONFIG_FILES"
15862
15863 # Set up the scripts for CONFIG_HEADERS section.
15864 # No need to generate them if there are no CONFIG_HEADERS.
15865 # This happens for instance with `./config.status Makefile'.
15866 if test -n "$CONFIG_HEADERS"; then
15867 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15868 BEGIN {
15869 _ACEOF
15870
15871 # Transform confdefs.h into an awk script `defines.awk', embedded as
15872 # here-document in config.status, that substitutes the proper values into
15873 # config.h.in to produce config.h.
15874
15875 # Create a delimiter string that does not exist in confdefs.h, to ease
15876 # handling of long lines.
15877 ac_delim='%!_!# '
15878 for ac_last_try in false false :; do
15879 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15880 if test -z "$ac_tt"; then
15881 break
15882 elif $ac_last_try; then
15883 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15884 else
15885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15886 fi
15887 done
15888
15889 # For the awk script, D is an array of macro values keyed by name,
15890 # likewise P contains macro parameters if any. Preserve backslash
15891 # newline sequences.
15892
15893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15894 sed -n '
15895 s/.\{148\}/&'"$ac_delim"'/g
15896 t rset
15897 :rset
15898 s/^[ ]*#[ ]*define[ ][ ]*/ /
15899 t def
15900 d
15901 :def
15902 s/\\$//
15903 t bsnl
15904 s/["\\]/\\&/g
15905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15906 D["\1"]=" \3"/p
15907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15908 d
15909 :bsnl
15910 s/["\\]/\\&/g
15911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15912 D["\1"]=" \3\\\\\\n"\\/p
15913 t cont
15914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15915 t cont
15916 d
15917 :cont
15918 n
15919 s/.\{148\}/&'"$ac_delim"'/g
15920 t clear
15921 :clear
15922 s/\\$//
15923 t bsnlc
15924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15925 d
15926 :bsnlc
15927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15928 b cont
15929 ' <confdefs.h | sed '
15930 s/'"$ac_delim"'/"\\\
15931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15932
15933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15934 for (key in D) D_is_set[key] = 1
15935 FS = "\a"
15936 }
15937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15938 line = \$ 0
15939 split(line, arg, " ")
15940 if (arg[1] == "#") {
15941 defundef = arg[2]
15942 mac1 = arg[3]
15943 } else {
15944 defundef = substr(arg[1], 2)
15945 mac1 = arg[2]
15946 }
15947 split(mac1, mac2, "(") #)
15948 macro = mac2[1]
15949 prefix = substr(line, 1, index(line, defundef) - 1)
15950 if (D_is_set[macro]) {
15951 # Preserve the white space surrounding the "#".
15952 print prefix "define", macro P[macro] D[macro]
15953 next
15954 } else {
15955 # Replace #undef with comments. This is necessary, for example,
15956 # in the case of _POSIX_SOURCE, which is predefined and required
15957 # on some systems where configure will not decide to define it.
15958 if (defundef == "undef") {
15959 print "/*", prefix defundef, macro, "*/"
15960 next
15961 }
15962 }
15963 }
15964 { print }
15965 _ACAWK
15966 _ACEOF
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15969 fi # test -n "$CONFIG_HEADERS"
15970
15971
15972 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15973 shift
15974 for ac_tag
15975 do
15976 case $ac_tag in
15977 :[FHLC]) ac_mode=$ac_tag; continue;;
15978 esac
15979 case $ac_mode$ac_tag in
15980 :[FHL]*:*);;
15981 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15982 :[FH]-) ac_tag=-:-;;
15983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15984 esac
15985 ac_save_IFS=$IFS
15986 IFS=:
15987 set x $ac_tag
15988 IFS=$ac_save_IFS
15989 shift
15990 ac_file=$1
15991 shift
15992
15993 case $ac_mode in
15994 :L) ac_source=$1;;
15995 :[FH])
15996 ac_file_inputs=
15997 for ac_f
15998 do
15999 case $ac_f in
16000 -) ac_f="$ac_tmp/stdin";;
16001 *) # Look for the file first in the build tree, then in the source tree
16002 # (if the path is not absolute). The absolute path cannot be DOS-style,
16003 # because $ac_f cannot contain `:'.
16004 test -f "$ac_f" ||
16005 case $ac_f in
16006 [\\/$]*) false;;
16007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16008 esac ||
16009 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16010 esac
16011 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16012 as_fn_append ac_file_inputs " '$ac_f'"
16013 done
16014
16015 # Let's still pretend it is `configure' which instantiates (i.e., don't
16016 # use $as_me), people would be surprised to read:
16017 # /* config.h. Generated by config.status. */
16018 configure_input='Generated from '`
16019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16020 `' by configure.'
16021 if test x"$ac_file" != x-; then
16022 configure_input="$ac_file. $configure_input"
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16024 $as_echo "$as_me: creating $ac_file" >&6;}
16025 fi
16026 # Neutralize special characters interpreted by sed in replacement strings.
16027 case $configure_input in #(
16028 *\&* | *\|* | *\\* )
16029 ac_sed_conf_input=`$as_echo "$configure_input" |
16030 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16031 *) ac_sed_conf_input=$configure_input;;
16032 esac
16033
16034 case $ac_tag in
16035 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16036 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16037 esac
16038 ;;
16039 esac
16040
16041 ac_dir=`$as_dirname -- "$ac_file" ||
16042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16043 X"$ac_file" : 'X\(//\)[^/]' \| \
16044 X"$ac_file" : 'X\(//\)$' \| \
16045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16046 $as_echo X"$ac_file" |
16047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048 s//\1/
16049 q
16050 }
16051 /^X\(\/\/\)[^/].*/{
16052 s//\1/
16053 q
16054 }
16055 /^X\(\/\/\)$/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\).*/{
16060 s//\1/
16061 q
16062 }
16063 s/.*/./; q'`
16064 as_dir="$ac_dir"; as_fn_mkdir_p
16065 ac_builddir=.
16066
16067 case "$ac_dir" in
16068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16069 *)
16070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16071 # A ".." for each directory in $ac_dir_suffix.
16072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16073 case $ac_top_builddir_sub in
16074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16076 esac ;;
16077 esac
16078 ac_abs_top_builddir=$ac_pwd
16079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16080 # for backward compatibility:
16081 ac_top_builddir=$ac_top_build_prefix
16082
16083 case $srcdir in
16084 .) # We are building in place.
16085 ac_srcdir=.
16086 ac_top_srcdir=$ac_top_builddir_sub
16087 ac_abs_top_srcdir=$ac_pwd ;;
16088 [\\/]* | ?:[\\/]* ) # Absolute name.
16089 ac_srcdir=$srcdir$ac_dir_suffix;
16090 ac_top_srcdir=$srcdir
16091 ac_abs_top_srcdir=$srcdir ;;
16092 *) # Relative name.
16093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16094 ac_top_srcdir=$ac_top_build_prefix$srcdir
16095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16096 esac
16097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16098
16099
16100 case $ac_mode in
16101 :F)
16102 #
16103 # CONFIG_FILE
16104 #
16105
16106 case $INSTALL in
16107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16109 esac
16110 ac_MKDIR_P=$MKDIR_P
16111 case $MKDIR_P in
16112 [\\/$]* | ?:[\\/]* ) ;;
16113 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16114 esac
16115 _ACEOF
16116
16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16118 # If the template does not know about datarootdir, expand it.
16119 # FIXME: This hack should be removed a few years after 2.60.
16120 ac_datarootdir_hack=; ac_datarootdir_seen=
16121 ac_sed_dataroot='
16122 /datarootdir/ {
16123 p
16124 q
16125 }
16126 /@datadir@/p
16127 /@docdir@/p
16128 /@infodir@/p
16129 /@localedir@/p
16130 /@mandir@/p'
16131 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16132 *datarootdir*) ac_datarootdir_seen=yes;;
16133 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16135 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16136 _ACEOF
16137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16138 ac_datarootdir_hack='
16139 s&@datadir@&$datadir&g
16140 s&@docdir@&$docdir&g
16141 s&@infodir@&$infodir&g
16142 s&@localedir@&$localedir&g
16143 s&@mandir@&$mandir&g
16144 s&\\\${datarootdir}&$datarootdir&g' ;;
16145 esac
16146 _ACEOF
16147
16148 # Neutralize VPATH when `$srcdir' = `.'.
16149 # Shell code in configure.ac might set extrasub.
16150 # FIXME: do we really want to maintain this feature?
16151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16152 ac_sed_extra="$ac_vpsub
16153 $extrasub
16154 _ACEOF
16155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156 :t
16157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16158 s|@configure_input@|$ac_sed_conf_input|;t t
16159 s&@top_builddir@&$ac_top_builddir_sub&;t t
16160 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16161 s&@srcdir@&$ac_srcdir&;t t
16162 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16163 s&@top_srcdir@&$ac_top_srcdir&;t t
16164 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16165 s&@builddir@&$ac_builddir&;t t
16166 s&@abs_builddir@&$ac_abs_builddir&;t t
16167 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16168 s&@INSTALL@&$ac_INSTALL&;t t
16169 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16170 $ac_datarootdir_hack
16171 "
16172 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16173 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16174
16175 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16176 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16177 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16178 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16180 which seems to be undefined. Please make sure it is defined" >&5
16181 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16182 which seems to be undefined. Please make sure it is defined" >&2;}
16183
16184 rm -f "$ac_tmp/stdin"
16185 case $ac_file in
16186 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16187 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16188 esac \
16189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16190 ;;
16191 :H)
16192 #
16193 # CONFIG_HEADER
16194 #
16195 if test x"$ac_file" != x-; then
16196 {
16197 $as_echo "/* $configure_input */" \
16198 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16199 } >"$ac_tmp/config.h" \
16200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16201 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16203 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16204 else
16205 rm -f "$ac_file"
16206 mv "$ac_tmp/config.h" "$ac_file" \
16207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16208 fi
16209 else
16210 $as_echo "/* $configure_input */" \
16211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16212 || as_fn_error $? "could not create -" "$LINENO" 5
16213 fi
16214 # Compute "$ac_file"'s index in $config_headers.
16215 _am_arg="$ac_file"
16216 _am_stamp_count=1
16217 for _am_header in $config_headers :; do
16218 case $_am_header in
16219 $_am_arg | $_am_arg:* )
16220 break ;;
16221 * )
16222 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16223 esac
16224 done
16225 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16226 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16227 X"$_am_arg" : 'X\(//\)[^/]' \| \
16228 X"$_am_arg" : 'X\(//\)$' \| \
16229 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16230 $as_echo X"$_am_arg" |
16231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16232 s//\1/
16233 q
16234 }
16235 /^X\(\/\/\)[^/].*/{
16236 s//\1/
16237 q
16238 }
16239 /^X\(\/\/\)$/{
16240 s//\1/
16241 q
16242 }
16243 /^X\(\/\).*/{
16244 s//\1/
16245 q
16246 }
16247 s/.*/./; q'`/stamp-h$_am_stamp_count
16248 ;;
16249
16250 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16251 $as_echo "$as_me: executing $ac_file commands" >&6;}
16252 ;;
16253 esac
16254
16255
16256 case $ac_file$ac_mode in
16257 "libtool":C)
16258
16259 # See if we are running on zsh, and set the options which allow our
16260 # commands through without removal of \ escapes.
16261 if test -n "${ZSH_VERSION+set}" ; then
16262 setopt NO_GLOB_SUBST
16263 fi
16264
16265 cfgfile="${ofile}T"
16266 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16267 $RM "$cfgfile"
16268
16269 cat <<_LT_EOF >> "$cfgfile"
16270 #! $SHELL
16271
16272 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16273 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16274 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16275 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16276 #
16277 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16278 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16279 # Written by Gordon Matzigkeit, 1996
16280 #
16281 # This file is part of GNU Libtool.
16282 #
16283 # GNU Libtool is free software; you can redistribute it and/or
16284 # modify it under the terms of the GNU General Public License as
16285 # published by the Free Software Foundation; either version 2 of
16286 # the License, or (at your option) any later version.
16287 #
16288 # As a special exception to the GNU General Public License,
16289 # if you distribute this file as part of a program or library that
16290 # is built using GNU Libtool, you may include this file under the
16291 # same distribution terms that you use for the rest of that program.
16292 #
16293 # GNU Libtool is distributed in the hope that it will be useful,
16294 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16296 # GNU General Public License for more details.
16297 #
16298 # You should have received a copy of the GNU General Public License
16299 # along with GNU Libtool; see the file COPYING. If not, a copy
16300 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16301 # obtained by writing to the Free Software Foundation, Inc.,
16302 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16303
16304
16305 # The names of the tagged configurations supported by this script.
16306 available_tags=""
16307
16308 # ### BEGIN LIBTOOL CONFIG
16309
16310 # Which release of libtool.m4 was used?
16311 macro_version=$macro_version
16312 macro_revision=$macro_revision
16313
16314 # Whether or not to build shared libraries.
16315 build_libtool_libs=$enable_shared
16316
16317 # Whether or not to build static libraries.
16318 build_old_libs=$enable_static
16319
16320 # What type of objects to build.
16321 pic_mode=$pic_mode
16322
16323 # Whether or not to optimize for fast installation.
16324 fast_install=$enable_fast_install
16325
16326 # Shell to use when invoking shell scripts.
16327 SHELL=$lt_SHELL
16328
16329 # An echo program that protects backslashes.
16330 ECHO=$lt_ECHO
16331
16332 # The host system.
16333 host_alias=$host_alias
16334 host=$host
16335 host_os=$host_os
16336
16337 # The build system.
16338 build_alias=$build_alias
16339 build=$build
16340 build_os=$build_os
16341
16342 # A sed program that does not truncate output.
16343 SED=$lt_SED
16344
16345 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16346 Xsed="\$SED -e 1s/^X//"
16347
16348 # A grep program that handles long lines.
16349 GREP=$lt_GREP
16350
16351 # An ERE matcher.
16352 EGREP=$lt_EGREP
16353
16354 # A literal string matcher.
16355 FGREP=$lt_FGREP
16356
16357 # A BSD- or MS-compatible name lister.
16358 NM=$lt_NM
16359
16360 # Whether we need soft or hard links.
16361 LN_S=$lt_LN_S
16362
16363 # What is the maximum length of a command?
16364 max_cmd_len=$max_cmd_len
16365
16366 # Object file suffix (normally "o").
16367 objext=$ac_objext
16368
16369 # Executable file suffix (normally "").
16370 exeext=$exeext
16371
16372 # whether the shell understands "unset".
16373 lt_unset=$lt_unset
16374
16375 # turn spaces into newlines.
16376 SP2NL=$lt_lt_SP2NL
16377
16378 # turn newlines into spaces.
16379 NL2SP=$lt_lt_NL2SP
16380
16381 # An object symbol dumper.
16382 OBJDUMP=$lt_OBJDUMP
16383
16384 # Method to check whether dependent libraries are shared objects.
16385 deplibs_check_method=$lt_deplibs_check_method
16386
16387 # Command to use when deplibs_check_method == "file_magic".
16388 file_magic_cmd=$lt_file_magic_cmd
16389
16390 # The archiver.
16391 AR=$lt_AR
16392 AR_FLAGS=$lt_AR_FLAGS
16393
16394 # A symbol stripping program.
16395 STRIP=$lt_STRIP
16396
16397 # Commands used to install an old-style archive.
16398 RANLIB=$lt_RANLIB
16399 old_postinstall_cmds=$lt_old_postinstall_cmds
16400 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16401
16402 # Whether to use a lock for old archive extraction.
16403 lock_old_archive_extraction=$lock_old_archive_extraction
16404
16405 # A C compiler.
16406 LTCC=$lt_CC
16407
16408 # LTCC compiler flags.
16409 LTCFLAGS=$lt_CFLAGS
16410
16411 # Take the output of nm and produce a listing of raw symbols and C names.
16412 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16413
16414 # Transform the output of nm in a proper C declaration.
16415 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16416
16417 # Transform the output of nm in a C name address pair.
16418 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16419
16420 # Transform the output of nm in a C name address pair when lib prefix is needed.
16421 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16422
16423 # The name of the directory that contains temporary libtool files.
16424 objdir=$objdir
16425
16426 # Used to examine libraries when file_magic_cmd begins with "file".
16427 MAGIC_CMD=$MAGIC_CMD
16428
16429 # Must we lock files when doing compilation?
16430 need_locks=$lt_need_locks
16431
16432 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16433 DSYMUTIL=$lt_DSYMUTIL
16434
16435 # Tool to change global to local symbols on Mac OS X.
16436 NMEDIT=$lt_NMEDIT
16437
16438 # Tool to manipulate fat objects and archives on Mac OS X.
16439 LIPO=$lt_LIPO
16440
16441 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16442 OTOOL=$lt_OTOOL
16443
16444 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16445 OTOOL64=$lt_OTOOL64
16446
16447 # Old archive suffix (normally "a").
16448 libext=$libext
16449
16450 # Shared library suffix (normally ".so").
16451 shrext_cmds=$lt_shrext_cmds
16452
16453 # The commands to extract the exported symbol list from a shared archive.
16454 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16455
16456 # Variables whose values should be saved in libtool wrapper scripts and
16457 # restored at link time.
16458 variables_saved_for_relink=$lt_variables_saved_for_relink
16459
16460 # Do we need the "lib" prefix for modules?
16461 need_lib_prefix=$need_lib_prefix
16462
16463 # Do we need a version for libraries?
16464 need_version=$need_version
16465
16466 # Library versioning type.
16467 version_type=$version_type
16468
16469 # Shared library runtime path variable.
16470 runpath_var=$runpath_var
16471
16472 # Shared library path variable.
16473 shlibpath_var=$shlibpath_var
16474
16475 # Is shlibpath searched before the hard-coded library search path?
16476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16477
16478 # Format of library name prefix.
16479 libname_spec=$lt_libname_spec
16480
16481 # List of archive names. First name is the real one, the rest are links.
16482 # The last name is the one that the linker finds with -lNAME
16483 library_names_spec=$lt_library_names_spec
16484
16485 # The coded name of the library, if different from the real name.
16486 soname_spec=$lt_soname_spec
16487
16488 # Permission mode override for installation of shared libraries.
16489 install_override_mode=$lt_install_override_mode
16490
16491 # Command to use after installation of a shared archive.
16492 postinstall_cmds=$lt_postinstall_cmds
16493
16494 # Command to use after uninstallation of a shared archive.
16495 postuninstall_cmds=$lt_postuninstall_cmds
16496
16497 # Commands used to finish a libtool library installation in a directory.
16498 finish_cmds=$lt_finish_cmds
16499
16500 # As "finish_cmds", except a single script fragment to be evaled but
16501 # not shown.
16502 finish_eval=$lt_finish_eval
16503
16504 # Whether we should hardcode library paths into libraries.
16505 hardcode_into_libs=$hardcode_into_libs
16506
16507 # Compile-time system search path for libraries.
16508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16509
16510 # Run-time system search path for libraries.
16511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16512
16513 # Whether dlopen is supported.
16514 dlopen_support=$enable_dlopen
16515
16516 # Whether dlopen of programs is supported.
16517 dlopen_self=$enable_dlopen_self
16518
16519 # Whether dlopen of statically linked programs is supported.
16520 dlopen_self_static=$enable_dlopen_self_static
16521
16522 # Commands to strip libraries.
16523 old_striplib=$lt_old_striplib
16524 striplib=$lt_striplib
16525
16526
16527 # The linker used to build libraries.
16528 LD=$lt_LD
16529
16530 # How to create reloadable object files.
16531 reload_flag=$lt_reload_flag
16532 reload_cmds=$lt_reload_cmds
16533
16534 # Commands used to build an old-style archive.
16535 old_archive_cmds=$lt_old_archive_cmds
16536
16537 # A language specific compiler.
16538 CC=$lt_compiler
16539
16540 # Is the compiler the GNU compiler?
16541 with_gcc=$GCC
16542
16543 # Compiler flag to turn off builtin functions.
16544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16545
16546 # How to pass a linker flag through the compiler.
16547 wl=$lt_lt_prog_compiler_wl
16548
16549 # Additional compiler flags for building library objects.
16550 pic_flag=$lt_lt_prog_compiler_pic
16551
16552 # Compiler flag to prevent dynamic linking.
16553 link_static_flag=$lt_lt_prog_compiler_static
16554
16555 # Does compiler simultaneously support -c and -o options?
16556 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16557
16558 # Whether or not to add -lc for building shared libraries.
16559 build_libtool_need_lc=$archive_cmds_need_lc
16560
16561 # Whether or not to disallow shared libs when runtime libs are static.
16562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16563
16564 # Compiler flag to allow reflexive dlopens.
16565 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16566
16567 # Compiler flag to generate shared objects directly from archives.
16568 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16569
16570 # Whether the compiler copes with passing no objects directly.
16571 compiler_needs_object=$lt_compiler_needs_object
16572
16573 # Create an old-style archive from a shared archive.
16574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16575
16576 # Create a temporary old-style archive to link instead of a shared archive.
16577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16578
16579 # Commands used to build a shared archive.
16580 archive_cmds=$lt_archive_cmds
16581 archive_expsym_cmds=$lt_archive_expsym_cmds
16582
16583 # Commands used to build a loadable module if different from building
16584 # a shared archive.
16585 module_cmds=$lt_module_cmds
16586 module_expsym_cmds=$lt_module_expsym_cmds
16587
16588 # Whether we are building with GNU ld or not.
16589 with_gnu_ld=$lt_with_gnu_ld
16590
16591 # Flag that allows shared libraries with undefined symbols to be built.
16592 allow_undefined_flag=$lt_allow_undefined_flag
16593
16594 # Flag that enforces no undefined symbols.
16595 no_undefined_flag=$lt_no_undefined_flag
16596
16597 # Flag to hardcode \$libdir into a binary during linking.
16598 # This must work even if \$libdir does not exist
16599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16600
16601 # If ld is used when linking, flag to hardcode \$libdir into a binary
16602 # during linking. This must work even if \$libdir does not exist.
16603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16604
16605 # Whether we need a single "-rpath" flag with a separated argument.
16606 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16607
16608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16609 # DIR into the resulting binary.
16610 hardcode_direct=$hardcode_direct
16611
16612 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16613 # DIR into the resulting binary and the resulting library dependency is
16614 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16615 # library is relocated.
16616 hardcode_direct_absolute=$hardcode_direct_absolute
16617
16618 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16619 # into the resulting binary.
16620 hardcode_minus_L=$hardcode_minus_L
16621
16622 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16623 # into the resulting binary.
16624 hardcode_shlibpath_var=$hardcode_shlibpath_var
16625
16626 # Set to "yes" if building a shared library automatically hardcodes DIR
16627 # into the library and all subsequent libraries and executables linked
16628 # against it.
16629 hardcode_automatic=$hardcode_automatic
16630
16631 # Set to yes if linker adds runtime paths of dependent libraries
16632 # to runtime path list.
16633 inherit_rpath=$inherit_rpath
16634
16635 # Whether libtool must link a program against all its dependency libraries.
16636 link_all_deplibs=$link_all_deplibs
16637
16638 # Fix the shell variable \$srcfile for the compiler.
16639 fix_srcfile_path=$lt_fix_srcfile_path
16640
16641 # Set to "yes" if exported symbols are required.
16642 always_export_symbols=$always_export_symbols
16643
16644 # The commands to list exported symbols.
16645 export_symbols_cmds=$lt_export_symbols_cmds
16646
16647 # Symbols that should not be listed in the preloaded symbols.
16648 exclude_expsyms=$lt_exclude_expsyms
16649
16650 # Symbols that must always be exported.
16651 include_expsyms=$lt_include_expsyms
16652
16653 # Commands necessary for linking programs (against libraries) with templates.
16654 prelink_cmds=$lt_prelink_cmds
16655
16656 # Specify filename containing input files.
16657 file_list_spec=$lt_file_list_spec
16658
16659 # How to hardcode a shared library path into an executable.
16660 hardcode_action=$hardcode_action
16661
16662 # ### END LIBTOOL CONFIG
16663
16664 _LT_EOF
16665
16666 case $host_os in
16667 aix3*)
16668 cat <<\_LT_EOF >> "$cfgfile"
16669 # AIX sometimes has problems with the GCC collect2 program. For some
16670 # reason, if we set the COLLECT_NAMES environment variable, the problems
16671 # vanish in a puff of smoke.
16672 if test "X${COLLECT_NAMES+set}" != Xset; then
16673 COLLECT_NAMES=
16674 export COLLECT_NAMES
16675 fi
16676 _LT_EOF
16677 ;;
16678 esac
16679
16680
16681 ltmain="$ac_aux_dir/ltmain.sh"
16682
16683
16684 # We use sed instead of cat because bash on DJGPP gets confused if
16685 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16686 # text mode, it properly converts lines to CR/LF. This bash problem
16687 # is reportedly fixed, but why not run on old versions too?
16688 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16689 || (rm -f "$cfgfile"; exit 1)
16690
16691 case $xsi_shell in
16692 yes)
16693 cat << \_LT_EOF >> "$cfgfile"
16694
16695 # func_dirname file append nondir_replacement
16696 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16697 # otherwise set result to NONDIR_REPLACEMENT.
16698 func_dirname ()
16699 {
16700 case ${1} in
16701 */*) func_dirname_result="${1%/*}${2}" ;;
16702 * ) func_dirname_result="${3}" ;;
16703 esac
16704 }
16705
16706 # func_basename file
16707 func_basename ()
16708 {
16709 func_basename_result="${1##*/}"
16710 }
16711
16712 # func_dirname_and_basename file append nondir_replacement
16713 # perform func_basename and func_dirname in a single function
16714 # call:
16715 # dirname: Compute the dirname of FILE. If nonempty,
16716 # add APPEND to the result, otherwise set result
16717 # to NONDIR_REPLACEMENT.
16718 # value returned in "$func_dirname_result"
16719 # basename: Compute filename of FILE.
16720 # value retuned in "$func_basename_result"
16721 # Implementation must be kept synchronized with func_dirname
16722 # and func_basename. For efficiency, we do not delegate to
16723 # those functions but instead duplicate the functionality here.
16724 func_dirname_and_basename ()
16725 {
16726 case ${1} in
16727 */*) func_dirname_result="${1%/*}${2}" ;;
16728 * ) func_dirname_result="${3}" ;;
16729 esac
16730 func_basename_result="${1##*/}"
16731 }
16732
16733 # func_stripname prefix suffix name
16734 # strip PREFIX and SUFFIX off of NAME.
16735 # PREFIX and SUFFIX must not contain globbing or regex special
16736 # characters, hashes, percent signs, but SUFFIX may contain a leading
16737 # dot (in which case that matches only a dot).
16738 func_stripname ()
16739 {
16740 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16741 # positional parameters, so assign one to ordinary parameter first.
16742 func_stripname_result=${3}
16743 func_stripname_result=${func_stripname_result#"${1}"}
16744 func_stripname_result=${func_stripname_result%"${2}"}
16745 }
16746
16747 # func_opt_split
16748 func_opt_split ()
16749 {
16750 func_opt_split_opt=${1%%=*}
16751 func_opt_split_arg=${1#*=}
16752 }
16753
16754 # func_lo2o object
16755 func_lo2o ()
16756 {
16757 case ${1} in
16758 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16759 *) func_lo2o_result=${1} ;;
16760 esac
16761 }
16762
16763 # func_xform libobj-or-source
16764 func_xform ()
16765 {
16766 func_xform_result=${1%.*}.lo
16767 }
16768
16769 # func_arith arithmetic-term...
16770 func_arith ()
16771 {
16772 func_arith_result=$(( $* ))
16773 }
16774
16775 # func_len string
16776 # STRING may not start with a hyphen.
16777 func_len ()
16778 {
16779 func_len_result=${#1}
16780 }
16781
16782 _LT_EOF
16783 ;;
16784 *) # Bourne compatible functions.
16785 cat << \_LT_EOF >> "$cfgfile"
16786
16787 # func_dirname file append nondir_replacement
16788 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16789 # otherwise set result to NONDIR_REPLACEMENT.
16790 func_dirname ()
16791 {
16792 # Extract subdirectory from the argument.
16793 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16794 if test "X$func_dirname_result" = "X${1}"; then
16795 func_dirname_result="${3}"
16796 else
16797 func_dirname_result="$func_dirname_result${2}"
16798 fi
16799 }
16800
16801 # func_basename file
16802 func_basename ()
16803 {
16804 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16805 }
16806
16807
16808 # func_stripname prefix suffix name
16809 # strip PREFIX and SUFFIX off of NAME.
16810 # PREFIX and SUFFIX must not contain globbing or regex special
16811 # characters, hashes, percent signs, but SUFFIX may contain a leading
16812 # dot (in which case that matches only a dot).
16813 # func_strip_suffix prefix name
16814 func_stripname ()
16815 {
16816 case ${2} in
16817 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16818 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16819 esac
16820 }
16821
16822 # sed scripts:
16823 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16824 my_sed_long_arg='1s/^-[^=]*=//'
16825
16826 # func_opt_split
16827 func_opt_split ()
16828 {
16829 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16830 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16831 }
16832
16833 # func_lo2o object
16834 func_lo2o ()
16835 {
16836 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16837 }
16838
16839 # func_xform libobj-or-source
16840 func_xform ()
16841 {
16842 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16843 }
16844
16845 # func_arith arithmetic-term...
16846 func_arith ()
16847 {
16848 func_arith_result=`expr "$@"`
16849 }
16850
16851 # func_len string
16852 # STRING may not start with a hyphen.
16853 func_len ()
16854 {
16855 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16856 }
16857
16858 _LT_EOF
16859 esac
16860
16861 case $lt_shell_append in
16862 yes)
16863 cat << \_LT_EOF >> "$cfgfile"
16864
16865 # func_append var value
16866 # Append VALUE to the end of shell variable VAR.
16867 func_append ()
16868 {
16869 eval "$1+=\$2"
16870 }
16871 _LT_EOF
16872 ;;
16873 *)
16874 cat << \_LT_EOF >> "$cfgfile"
16875
16876 # func_append var value
16877 # Append VALUE to the end of shell variable VAR.
16878 func_append ()
16879 {
16880 eval "$1=\$$1\$2"
16881 }
16882
16883 _LT_EOF
16884 ;;
16885 esac
16886
16887
16888 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16889 || (rm -f "$cfgfile"; exit 1)
16890
16891 mv -f "$cfgfile" "$ofile" ||
16892 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16893 chmod +x "$ofile"
16894
16895 ;;
16896 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16897 # Older Autoconf quotes --file arguments for eval, but not when files
16898 # are listed without --file. Let's play safe and only enable the eval
16899 # if we detect the quoting.
16900 case $CONFIG_FILES in
16901 *\'*) eval set x "$CONFIG_FILES" ;;
16902 *) set x $CONFIG_FILES ;;
16903 esac
16904 shift
16905 for mf
16906 do
16907 # Strip MF so we end up with the name of the file.
16908 mf=`echo "$mf" | sed -e 's/:.*$//'`
16909 # Check whether this is an Automake generated Makefile or not.
16910 # We used to match only the files named 'Makefile.in', but
16911 # some people rename them; so instead we look at the file content.
16912 # Grep'ing the first line is not enough: some people post-process
16913 # each Makefile.in and add a new line on top of each file to say so.
16914 # Grep'ing the whole file is not good either: AIX grep has a line
16915 # limit of 2048, but all sed's we know have understand at least 4000.
16916 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16917 dirpart=`$as_dirname -- "$mf" ||
16918 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16919 X"$mf" : 'X\(//\)[^/]' \| \
16920 X"$mf" : 'X\(//\)$' \| \
16921 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16922 $as_echo X"$mf" |
16923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16924 s//\1/
16925 q
16926 }
16927 /^X\(\/\/\)[^/].*/{
16928 s//\1/
16929 q
16930 }
16931 /^X\(\/\/\)$/{
16932 s//\1/
16933 q
16934 }
16935 /^X\(\/\).*/{
16936 s//\1/
16937 q
16938 }
16939 s/.*/./; q'`
16940 else
16941 continue
16942 fi
16943 # Extract the definition of DEPDIR, am__include, and am__quote
16944 # from the Makefile without running 'make'.
16945 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16946 test -z "$DEPDIR" && continue
16947 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16948 test -z "$am__include" && continue
16949 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16950 # Find all dependency output files, they are included files with
16951 # $(DEPDIR) in their names. We invoke sed twice because it is the
16952 # simplest approach to changing $(DEPDIR) to its actual value in the
16953 # expansion.
16954 for file in `sed -n "
16955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16957 # Make sure the directory exists.
16958 test -f "$dirpart/$file" && continue
16959 fdir=`$as_dirname -- "$file" ||
16960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16961 X"$file" : 'X\(//\)[^/]' \| \
16962 X"$file" : 'X\(//\)$' \| \
16963 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16964 $as_echo X"$file" |
16965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16966 s//\1/
16967 q
16968 }
16969 /^X\(\/\/\)[^/].*/{
16970 s//\1/
16971 q
16972 }
16973 /^X\(\/\/\)$/{
16974 s//\1/
16975 q
16976 }
16977 /^X\(\/\).*/{
16978 s//\1/
16979 q
16980 }
16981 s/.*/./; q'`
16982 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16983 # echo "creating $dirpart/$file"
16984 echo '# dummy' > "$dirpart/$file"
16985 done
16986 done
16987 }
16988 ;;
16989 "aarch64/Makefile":C) sed -n \
16990 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
16991 /^srcdir = / s:$:/aarch64:
16992 p
16993 }' \
16994 <Make-common.sim >aarch64/Makesim1.tmp
16995 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >aarch64/Makesim2.tmp
16996 sed -e '/^## COMMON_PRE_/ r aarch64/Makesim1.tmp' \
16997 -e '/^## COMMON_POST_/ r aarch64/Makesim2.tmp' \
16998 <aarch64/Makefile.sim >aarch64/Makefile
16999 rm -f aarch64/Makesim1.tmp aarch64/Makesim2.tmp
17000 ;;
17001 "depdir-aarch64":C) $SHELL $ac_aux_dir/mkinstalldirs aarch64/$DEPDIR ;;
17002 "arm/Makefile":C) sed -n \
17003 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17004 /^srcdir = / s:$:/arm:
17005 p
17006 }' \
17007 <Make-common.sim >arm/Makesim1.tmp
17008 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >arm/Makesim2.tmp
17009 sed -e '/^## COMMON_PRE_/ r arm/Makesim1.tmp' \
17010 -e '/^## COMMON_POST_/ r arm/Makesim2.tmp' \
17011 <arm/Makefile.sim >arm/Makefile
17012 rm -f arm/Makesim1.tmp arm/Makesim2.tmp
17013 ;;
17014 "depdir-arm":C) $SHELL $ac_aux_dir/mkinstalldirs arm/$DEPDIR ;;
17015 "avr/Makefile":C) sed -n \
17016 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17017 /^srcdir = / s:$:/avr:
17018 p
17019 }' \
17020 <Make-common.sim >avr/Makesim1.tmp
17021 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >avr/Makesim2.tmp
17022 sed -e '/^## COMMON_PRE_/ r avr/Makesim1.tmp' \
17023 -e '/^## COMMON_POST_/ r avr/Makesim2.tmp' \
17024 <avr/Makefile.sim >avr/Makefile
17025 rm -f avr/Makesim1.tmp avr/Makesim2.tmp
17026 ;;
17027 "depdir-avr":C) $SHELL $ac_aux_dir/mkinstalldirs avr/$DEPDIR ;;
17028 "depdir-bfin":C) $SHELL $ac_aux_dir/mkinstalldirs bfin/$DEPDIR ;;
17029 "depdir-bpf":C) $SHELL $ac_aux_dir/mkinstalldirs bpf/$DEPDIR ;;
17030 "cr16/Makefile":C) sed -n \
17031 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17032 /^srcdir = / s:$:/cr16:
17033 p
17034 }' \
17035 <Make-common.sim >cr16/Makesim1.tmp
17036 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >cr16/Makesim2.tmp
17037 sed -e '/^## COMMON_PRE_/ r cr16/Makesim1.tmp' \
17038 -e '/^## COMMON_POST_/ r cr16/Makesim2.tmp' \
17039 <cr16/Makefile.sim >cr16/Makefile
17040 rm -f cr16/Makesim1.tmp cr16/Makesim2.tmp
17041 ;;
17042 "depdir-cr16":C) $SHELL $ac_aux_dir/mkinstalldirs cr16/$DEPDIR ;;
17043 "depdir-cris":C) $SHELL $ac_aux_dir/mkinstalldirs cris/$DEPDIR ;;
17044 "d10v/Makefile":C) sed -n \
17045 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17046 /^srcdir = / s:$:/d10v:
17047 p
17048 }' \
17049 <Make-common.sim >d10v/Makesim1.tmp
17050 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >d10v/Makesim2.tmp
17051 sed -e '/^## COMMON_PRE_/ r d10v/Makesim1.tmp' \
17052 -e '/^## COMMON_POST_/ r d10v/Makesim2.tmp' \
17053 <d10v/Makefile.sim >d10v/Makefile
17054 rm -f d10v/Makesim1.tmp d10v/Makesim2.tmp
17055 ;;
17056 "depdir-d10v":C) $SHELL $ac_aux_dir/mkinstalldirs d10v/$DEPDIR ;;
17057 "depdir-frv":C) $SHELL $ac_aux_dir/mkinstalldirs frv/$DEPDIR ;;
17058 "ft32/Makefile":C) sed -n \
17059 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17060 /^srcdir = / s:$:/ft32:
17061 p
17062 }' \
17063 <Make-common.sim >ft32/Makesim1.tmp
17064 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >ft32/Makesim2.tmp
17065 sed -e '/^## COMMON_PRE_/ r ft32/Makesim1.tmp' \
17066 -e '/^## COMMON_POST_/ r ft32/Makesim2.tmp' \
17067 <ft32/Makefile.sim >ft32/Makefile
17068 rm -f ft32/Makesim1.tmp ft32/Makesim2.tmp
17069 ;;
17070 "depdir-ft32":C) $SHELL $ac_aux_dir/mkinstalldirs ft32/$DEPDIR ;;
17071 "h8300/Makefile":C) sed -n \
17072 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17073 /^srcdir = / s:$:/h8300:
17074 p
17075 }' \
17076 <Make-common.sim >h8300/Makesim1.tmp
17077 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >h8300/Makesim2.tmp
17078 sed -e '/^## COMMON_PRE_/ r h8300/Makesim1.tmp' \
17079 -e '/^## COMMON_POST_/ r h8300/Makesim2.tmp' \
17080 <h8300/Makefile.sim >h8300/Makefile
17081 rm -f h8300/Makesim1.tmp h8300/Makesim2.tmp
17082 ;;
17083 "depdir-h8300":C) $SHELL $ac_aux_dir/mkinstalldirs h8300/$DEPDIR ;;
17084 "depdir-iq2000":C) $SHELL $ac_aux_dir/mkinstalldirs iq2000/$DEPDIR ;;
17085 "depdir-lm32":C) $SHELL $ac_aux_dir/mkinstalldirs lm32/$DEPDIR ;;
17086 "m32c/Makefile":C) sed -n \
17087 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17088 /^srcdir = / s:$:/m32c:
17089 p
17090 }' \
17091 <Make-common.sim >m32c/Makesim1.tmp
17092 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m32c/Makesim2.tmp
17093 sed -e '/^## COMMON_PRE_/ r m32c/Makesim1.tmp' \
17094 -e '/^## COMMON_POST_/ r m32c/Makesim2.tmp' \
17095 <m32c/Makefile.sim >m32c/Makefile
17096 rm -f m32c/Makesim1.tmp m32c/Makesim2.tmp
17097 ;;
17098 "depdir-m32c":C) $SHELL $ac_aux_dir/mkinstalldirs m32c/$DEPDIR ;;
17099 "depdir-m32r":C) $SHELL $ac_aux_dir/mkinstalldirs m32r/$DEPDIR ;;
17100 "m68hc11/Makefile":C) sed -n \
17101 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17102 /^srcdir = / s:$:/m68hc11:
17103 p
17104 }' \
17105 <Make-common.sim >m68hc11/Makesim1.tmp
17106 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >m68hc11/Makesim2.tmp
17107 sed -e '/^## COMMON_PRE_/ r m68hc11/Makesim1.tmp' \
17108 -e '/^## COMMON_POST_/ r m68hc11/Makesim2.tmp' \
17109 <m68hc11/Makefile.sim >m68hc11/Makefile
17110 rm -f m68hc11/Makesim1.tmp m68hc11/Makesim2.tmp
17111 ;;
17112 "depdir-m68hc11":C) $SHELL $ac_aux_dir/mkinstalldirs m68hc11/$DEPDIR ;;
17113 "mcore/Makefile":C) sed -n \
17114 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17115 /^srcdir = / s:$:/mcore:
17116 p
17117 }' \
17118 <Make-common.sim >mcore/Makesim1.tmp
17119 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >mcore/Makesim2.tmp
17120 sed -e '/^## COMMON_PRE_/ r mcore/Makesim1.tmp' \
17121 -e '/^## COMMON_POST_/ r mcore/Makesim2.tmp' \
17122 <mcore/Makefile.sim >mcore/Makefile
17123 rm -f mcore/Makesim1.tmp mcore/Makesim2.tmp
17124 ;;
17125 "depdir-mcore":C) $SHELL $ac_aux_dir/mkinstalldirs mcore/$DEPDIR ;;
17126 "microblaze/Makefile":C) sed -n \
17127 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17128 /^srcdir = / s:$:/microblaze:
17129 p
17130 }' \
17131 <Make-common.sim >microblaze/Makesim1.tmp
17132 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >microblaze/Makesim2.tmp
17133 sed -e '/^## COMMON_PRE_/ r microblaze/Makesim1.tmp' \
17134 -e '/^## COMMON_POST_/ r microblaze/Makesim2.tmp' \
17135 <microblaze/Makefile.sim >microblaze/Makefile
17136 rm -f microblaze/Makesim1.tmp microblaze/Makesim2.tmp
17137 ;;
17138 "depdir-microblaze":C) $SHELL $ac_aux_dir/mkinstalldirs microblaze/$DEPDIR ;;
17139 "depdir-mips":C) $SHELL $ac_aux_dir/mkinstalldirs mips/$DEPDIR ;;
17140 "depdir-mn10300":C) $SHELL $ac_aux_dir/mkinstalldirs mn10300/$DEPDIR ;;
17141 "moxie/Makefile":C) sed -n \
17142 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17143 /^srcdir = / s:$:/moxie:
17144 p
17145 }' \
17146 <Make-common.sim >moxie/Makesim1.tmp
17147 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >moxie/Makesim2.tmp
17148 sed -e '/^## COMMON_PRE_/ r moxie/Makesim1.tmp' \
17149 -e '/^## COMMON_POST_/ r moxie/Makesim2.tmp' \
17150 <moxie/Makefile.sim >moxie/Makefile
17151 rm -f moxie/Makesim1.tmp moxie/Makesim2.tmp
17152 ;;
17153 "depdir-moxie":C) $SHELL $ac_aux_dir/mkinstalldirs moxie/$DEPDIR ;;
17154 "msp430/Makefile":C) sed -n \
17155 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17156 /^srcdir = / s:$:/msp430:
17157 p
17158 }' \
17159 <Make-common.sim >msp430/Makesim1.tmp
17160 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >msp430/Makesim2.tmp
17161 sed -e '/^## COMMON_PRE_/ r msp430/Makesim1.tmp' \
17162 -e '/^## COMMON_POST_/ r msp430/Makesim2.tmp' \
17163 <msp430/Makefile.sim >msp430/Makefile
17164 rm -f msp430/Makesim1.tmp msp430/Makesim2.tmp
17165 ;;
17166 "depdir-msp430":C) $SHELL $ac_aux_dir/mkinstalldirs msp430/$DEPDIR ;;
17167 "depdir-or1k":C) $SHELL $ac_aux_dir/mkinstalldirs or1k/$DEPDIR ;;
17168 "pru/Makefile":C) sed -n \
17169 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17170 /^srcdir = / s:$:/pru:
17171 p
17172 }' \
17173 <Make-common.sim >pru/Makesim1.tmp
17174 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >pru/Makesim2.tmp
17175 sed -e '/^## COMMON_PRE_/ r pru/Makesim1.tmp' \
17176 -e '/^## COMMON_POST_/ r pru/Makesim2.tmp' \
17177 <pru/Makefile.sim >pru/Makefile
17178 rm -f pru/Makesim1.tmp pru/Makesim2.tmp
17179 ;;
17180 "depdir-pru":C) $SHELL $ac_aux_dir/mkinstalldirs pru/$DEPDIR ;;
17181 "depdir-riscv":C) $SHELL $ac_aux_dir/mkinstalldirs riscv/$DEPDIR ;;
17182 "rl78/Makefile":C) sed -n \
17183 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17184 /^srcdir = / s:$:/rl78:
17185 p
17186 }' \
17187 <Make-common.sim >rl78/Makesim1.tmp
17188 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rl78/Makesim2.tmp
17189 sed -e '/^## COMMON_PRE_/ r rl78/Makesim1.tmp' \
17190 -e '/^## COMMON_POST_/ r rl78/Makesim2.tmp' \
17191 <rl78/Makefile.sim >rl78/Makefile
17192 rm -f rl78/Makesim1.tmp rl78/Makesim2.tmp
17193 ;;
17194 "depdir-rl78":C) $SHELL $ac_aux_dir/mkinstalldirs rl78/$DEPDIR ;;
17195 "rx/Makefile":C) sed -n \
17196 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17197 /^srcdir = / s:$:/rx:
17198 p
17199 }' \
17200 <Make-common.sim >rx/Makesim1.tmp
17201 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >rx/Makesim2.tmp
17202 sed -e '/^## COMMON_PRE_/ r rx/Makesim1.tmp' \
17203 -e '/^## COMMON_POST_/ r rx/Makesim2.tmp' \
17204 <rx/Makefile.sim >rx/Makefile
17205 rm -f rx/Makesim1.tmp rx/Makesim2.tmp
17206 ;;
17207 "depdir-rx":C) $SHELL $ac_aux_dir/mkinstalldirs rx/$DEPDIR ;;
17208 "sh/Makefile":C) sed -n \
17209 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17210 /^srcdir = / s:$:/sh:
17211 p
17212 }' \
17213 <Make-common.sim >sh/Makesim1.tmp
17214 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >sh/Makesim2.tmp
17215 sed -e '/^## COMMON_PRE_/ r sh/Makesim1.tmp' \
17216 -e '/^## COMMON_POST_/ r sh/Makesim2.tmp' \
17217 <sh/Makefile.sim >sh/Makefile
17218 rm -f sh/Makesim1.tmp sh/Makesim2.tmp
17219 ;;
17220 "depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
17221 "depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
17222 "depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
17223 "depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;
17224 "example-synacor/Makefile":C) sed -n \
17225 -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
17226 /^srcdir = / s:$:/example-synacor:
17227 p
17228 }' \
17229 <Make-common.sim >example-synacor/Makesim1.tmp
17230 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >example-synacor/Makesim2.tmp
17231 sed -e '/^## COMMON_PRE_/ r example-synacor/Makesim1.tmp' \
17232 -e '/^## COMMON_POST_/ r example-synacor/Makesim2.tmp' \
17233 <example-synacor/Makefile.sim >example-synacor/Makefile
17234 rm -f example-synacor/Makesim1.tmp example-synacor/Makesim2.tmp
17235 ;;
17236 "depdir-example-synacor":C) $SHELL $ac_aux_dir/mkinstalldirs example-synacor/$DEPDIR ;;
17237
17238 esac
17239 done # for ac_tag
17240
17241
17242 as_fn_exit 0
17243 _ACEOF
17244 ac_clean_files=$ac_clean_files_save
17245
17246 test $ac_write_fail = 0 ||
17247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17248
17249
17250 # configure is writing to config.log, and then calls config.status.
17251 # config.status does its own redirection, appending to config.log.
17252 # Unfortunately, on DOS this fails, as config.log is still kept open
17253 # by configure, so config.status won't be able to write to it; its
17254 # output is simply discarded. So we exec the FD to /dev/null,
17255 # effectively closing config.log, so it can be properly (re)opened and
17256 # appended to by config.status. When coming back to configure, we
17257 # need to make the FD available again.
17258 if test "$no_create" != yes; then
17259 ac_cs_success=:
17260 ac_config_status_args=
17261 test "$silent" = yes &&
17262 ac_config_status_args="$ac_config_status_args --quiet"
17263 exec 5>/dev/null
17264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17265 exec 5>>config.log
17266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17267 # would make configure fail if this is the last instruction.
17268 $ac_cs_success || as_fn_exit 1
17269 fi
17270
17271 #
17272 # CONFIG_SUBDIRS section.
17273 #
17274 if test "$no_recursion" != yes; then
17275
17276 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17277 # so they do not pile up.
17278 ac_sub_configure_args=
17279 ac_prev=
17280 eval "set x $ac_configure_args"
17281 shift
17282 for ac_arg
17283 do
17284 if test -n "$ac_prev"; then
17285 ac_prev=
17286 continue
17287 fi
17288 case $ac_arg in
17289 -cache-file | --cache-file | --cache-fil | --cache-fi \
17290 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17291 ac_prev=cache_file ;;
17292 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17293 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17294 | --c=*)
17295 ;;
17296 --config-cache | -C)
17297 ;;
17298 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17299 ac_prev=srcdir ;;
17300 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17301 ;;
17302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17303 ac_prev=prefix ;;
17304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17305 ;;
17306 --disable-option-checking)
17307 ;;
17308 *)
17309 case $ac_arg in
17310 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17311 esac
17312 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17313 esac
17314 done
17315
17316 # Always prepend --prefix to ensure using the same prefix
17317 # in subdir configurations.
17318 ac_arg="--prefix=$prefix"
17319 case $ac_arg in
17320 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17321 esac
17322 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17323
17324 # Pass --silent
17325 if test "$silent" = yes; then
17326 ac_sub_configure_args="--silent $ac_sub_configure_args"
17327 fi
17328
17329 # Always prepend --disable-option-checking to silence warnings, since
17330 # different subdirs can have different --enable and --with options.
17331 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17332
17333 ac_popdir=`pwd`
17334 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17335
17336 # Do not complain, so a configure script can configure whichever
17337 # parts of a large source tree are present.
17338 test -d "$srcdir/$ac_dir" || continue
17339
17340 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17341 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17342 $as_echo "$ac_msg" >&6
17343 as_dir="$ac_dir"; as_fn_mkdir_p
17344 ac_builddir=.
17345
17346 case "$ac_dir" in
17347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17348 *)
17349 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17350 # A ".." for each directory in $ac_dir_suffix.
17351 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17352 case $ac_top_builddir_sub in
17353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17355 esac ;;
17356 esac
17357 ac_abs_top_builddir=$ac_pwd
17358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17359 # for backward compatibility:
17360 ac_top_builddir=$ac_top_build_prefix
17361
17362 case $srcdir in
17363 .) # We are building in place.
17364 ac_srcdir=.
17365 ac_top_srcdir=$ac_top_builddir_sub
17366 ac_abs_top_srcdir=$ac_pwd ;;
17367 [\\/]* | ?:[\\/]* ) # Absolute name.
17368 ac_srcdir=$srcdir$ac_dir_suffix;
17369 ac_top_srcdir=$srcdir
17370 ac_abs_top_srcdir=$srcdir ;;
17371 *) # Relative name.
17372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17373 ac_top_srcdir=$ac_top_build_prefix$srcdir
17374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17375 esac
17376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17377
17378
17379 cd "$ac_dir"
17380
17381 # Check for guested configure; otherwise get Cygnus style configure.
17382 if test -f "$ac_srcdir/configure.gnu"; then
17383 ac_sub_configure=$ac_srcdir/configure.gnu
17384 elif test -f "$ac_srcdir/configure"; then
17385 ac_sub_configure=$ac_srcdir/configure
17386 elif test -f "$ac_srcdir/configure.in"; then
17387 # This should be Cygnus configure.
17388 ac_sub_configure=$ac_aux_dir/configure
17389 else
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17392 ac_sub_configure=
17393 fi
17394
17395 # The recursion is here.
17396 if test -n "$ac_sub_configure"; then
17397 # Make the cache file name correct relative to the subdirectory.
17398 case $cache_file in
17399 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17400 *) # Relative name.
17401 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17402 esac
17403
17404 { $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
17405 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17406 # The eval makes quoting arguments work.
17407 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17408 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17409 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17410 fi
17411
17412 cd "$ac_popdir"
17413 done
17414 fi
17415 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17417 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17418 fi
17419