Sync Libtool from GCC.
[deliverable/binutils-gdb.git] / opcodes / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="z8k-dis.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 BFD_MACHINES
606 archdefs
607 SHARED_DEPENDENCIES
608 SHARED_LIBADD
609 SHARED_LDFLAGS
610 BUILD_LIB_DEPS
611 BUILD_LIBS
612 LIBM
613 cgendir
614 CGEN_MAINT_FALSE
615 CGEN_MAINT_TRUE
616 HDEFINES
617 EXEEXT_FOR_BUILD
618 CC_FOR_BUILD
619 MSGMERGE
620 MSGFMT
621 MKINSTALLDIRS
622 CATOBJEXT
623 GENCAT
624 INSTOBJEXT
625 DATADIRNAME
626 CATALOGS
627 POSUB
628 GMSGFMT
629 XGETTEXT
630 INCINTL
631 LIBINTL_DEP
632 LIBINTL
633 USE_NLS
634 bfdincludedir
635 bfdlibdir
636 target_noncanonical
637 host_noncanonical
638 INSTALL_LIBBFD_FALSE
639 INSTALL_LIBBFD_TRUE
640 MAINT
641 MAINTAINER_MODE_FALSE
642 MAINTAINER_MODE_TRUE
643 NO_WERROR
644 WARN_CFLAGS
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 SED
658 LIBTOOL
659 RANLIB
660 AR
661 EGREP
662 GREP
663 CPP
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 AMDEPBACKSLASH
668 AMDEP_FALSE
669 AMDEP_TRUE
670 am__quote
671 am__include
672 DEPDIR
673 am__untar
674 am__tar
675 AMTAR
676 am__leading_dot
677 SET_MAKE
678 AWK
679 mkdir_p
680 MKDIR_P
681 INSTALL_STRIP_PROGRAM
682 STRIP
683 install_sh
684 MAKEINFO
685 AUTOHEADER
686 AUTOMAKE
687 AUTOCONF
688 ACLOCAL
689 VERSION
690 PACKAGE
691 CYGPATH_W
692 am__isrc
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 target_os
704 target_vendor
705 target_cpu
706 target
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_dependency_tracking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 enable_libtool_lock
763 enable_targets
764 enable_werror
765 enable_build_warnings
766 enable_maintainer_mode
767 enable_install_libbfd
768 enable_nls
769 enable_cgen_maint
770 '
771 ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
856
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
871
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
876
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
909
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
945
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
950
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
980
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1054
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1090
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1113
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1129
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1166 ;;
1167
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 ;;
1185
1186 esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1207 do
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures this package to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --enable-shared[=PKGS] build shared libraries [default=no]
1401 --enable-static[=PKGS] build static libraries [default=yes]
1402 --enable-fast-install[=PKGS]
1403 optimize for fast installation [default=yes]
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405 --enable-targets alternative target configurations
1406 --enable-werror treat compile warnings as errors
1407 --enable-build-warnings enable build-time compiler warnings
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
1410 --enable-install-libbfd controls installation of libbfd and related headers
1411 --disable-nls do not use Native Language Support
1412 --enable-cgen-maint=dir build cgen generated files
1413
1414 Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-pic try to use only PIC/non-PIC objects [default=use
1418 both]
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420
1421 Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
1429 CPP C preprocessor
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to the package provider.
1435 _ACEOF
1436 ac_status=$?
1437 fi
1438
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1446
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 *)
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1462
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1487 else
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1491 done
1492 fi
1493
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496 cat <<\_ACEOF
1497 configure
1498 generated by GNU Autoconf 2.64
1499
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504 exit
1505 fi
1506
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1510
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1515 {
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1531 fi
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1541
1542 ac_retval=1
1543 fi
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
1546
1547 } # ac_fn_c_try_compile
1548
1549 # ac_fn_c_try_link LINENO
1550 # -----------------------
1551 # Try to link conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_link ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest$ac_exeext
1556 if { { ac_try="$ac_link"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_link") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest$ac_exeext && {
1575 test "$cross_compiling" = yes ||
1576 $as_test_x conftest$ac_exeext
1577 }; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584 fi
1585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1587 # interfere with the next link command; also delete a directory that is
1588 # left behind by Apple's compiler. We do this before executing the actions.
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
1592
1593 } # ac_fn_c_try_link
1594
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } >/dev/null && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 return $ac_retval
1629
1630 } # ac_fn_c_try_cpp
1631
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1636 # accordingly.
1637 ac_fn_c_check_header_mongrel ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644 $as_echo_n "(cached) " >&6
1645 fi
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 else
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1660 else
1661 ac_header_compiler=no
1662 fi
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1666
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1676 else
1677 ac_header_preproc=no
1678 fi
1679 rm -f conftest.err conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1682
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1685 yes:no: )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ;;
1691 no:yes:* )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 esac
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 eval "$3=\$ac_header_compiler"
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 fi
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
1717 } # ac_fn_c_check_header_mongrel
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754 fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_check_func LINENO FUNC VAR
1793 # ----------------------------------
1794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1795 ac_fn_c_check_func ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 $as_echo_n "checking for $2... " >&6; }
1800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1802 else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807 #define $2 innocuous_$2
1808
1809 /* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1813
1814 #ifdef __STDC__
1815 # include <limits.h>
1816 #else
1817 # include <assert.h>
1818 #endif
1819
1820 #undef $2
1821
1822 /* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825 #ifdef __cplusplus
1826 extern "C"
1827 #endif
1828 char $2 ();
1829 /* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832 #if defined __stub_$2 || defined __stub___$2
1833 choke me
1834 #endif
1835
1836 int
1837 main ()
1838 {
1839 return $2 ();
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846 else
1847 eval "$3=no"
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857 } # ac_fn_c_check_func
1858
1859 # ac_fn_c_check_decl LINENO SYMBOL VAR
1860 # ------------------------------------
1861 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1862 ac_fn_c_check_decl ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1866 $as_echo_n "checking whether $2 is declared... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 int
1874 main ()
1875 {
1876 #ifndef $2
1877 (void) $2;
1878 #endif
1879
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895
1896 } # ac_fn_c_check_decl
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1900
1901 It was created by $as_me, which was
1902 generated by GNU Autoconf 2.64. Invocation command line was
1903
1904 $ $0 $@
1905
1906 _ACEOF
1907 exec 5>>config.log
1908 {
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1913
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1922
1923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1930
1931 _ASUNAME
1932
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 $as_echo "PATH: $as_dir"
1939 done
1940 IFS=$as_save_IFS
1941
1942 } >&5
1943
1944 cat >&5 <<_ACEOF
1945
1946
1947 ## ----------- ##
1948 ## Core tests. ##
1949 ## ----------- ##
1950
1951 _ACEOF
1952
1953
1954 # Keep a trace of the command line.
1955 # Strip out --no-create and --no-recursion so they do not pile up.
1956 # Strip out --silent because we don't want to record it for future runs.
1957 # Also quote any args containing shell meta-characters.
1958 # Make two passes to allow for proper duplicate-argument suppression.
1959 ac_configure_args=
1960 ac_configure_args0=
1961 ac_configure_args1=
1962 ac_must_keep_next=false
1963 for ac_pass in 1 2
1964 do
1965 for ac_arg
1966 do
1967 case $ac_arg in
1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970 | -silent | --silent | --silen | --sile | --sil)
1971 continue ;;
1972 *\'*)
1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 esac
1975 case $ac_pass in
1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977 2)
1978 as_fn_append ac_configure_args1 " '$ac_arg'"
1979 if test $ac_must_keep_next = true; then
1980 ac_must_keep_next=false # Got value, back to normal.
1981 else
1982 case $ac_arg in
1983 *=* | --config-cache | -C | -disable-* | --disable-* \
1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986 | -with-* | --with-* | -without-* | --without-* | --x)
1987 case "$ac_configure_args0 " in
1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989 esac
1990 ;;
1991 -* ) ac_must_keep_next=true ;;
1992 esac
1993 fi
1994 as_fn_append ac_configure_args " '$ac_arg'"
1995 ;;
1996 esac
1997 done
1998 done
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2001
2002 # When interrupted or exit'd, cleanup temporary files, and complete
2003 # config.log. We remove comments because anyway the quotes in there
2004 # would cause problems or look ugly.
2005 # WARNING: Use '\'' to represent an apostrophe within the trap.
2006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007 trap 'exit_status=$?
2008 # Save into config.log some information that might help in debugging.
2009 {
2010 echo
2011
2012 cat <<\_ASBOX
2013 ## ---------------- ##
2014 ## Cache variables. ##
2015 ## ---------------- ##
2016 _ASBOX
2017 echo
2018 # The following way of writing the cache mishandles newlines in values,
2019 (
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in #(
2023 *${as_nl}*)
2024 case $ac_var in #(
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027 esac
2028 case $ac_var in #(
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2032 esac ;;
2033 esac
2034 done
2035 (set) 2>&1 |
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
2038 sed -n \
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041 ;; #(
2042 *)
2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044 ;;
2045 esac |
2046 sort
2047 )
2048 echo
2049
2050 cat <<\_ASBOX
2051 ## ----------------- ##
2052 ## Output variables. ##
2053 ## ----------------- ##
2054 _ASBOX
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 cat <<\_ASBOX
2068 ## ------------------- ##
2069 ## File substitutions. ##
2070 ## ------------------- ##
2071 _ASBOX
2072 echo
2073 for ac_var in $ac_subst_files
2074 do
2075 eval ac_val=\$$ac_var
2076 case $ac_val in
2077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078 esac
2079 $as_echo "$ac_var='\''$ac_val'\''"
2080 done | sort
2081 echo
2082 fi
2083
2084 if test -s confdefs.h; then
2085 cat <<\_ASBOX
2086 ## ----------- ##
2087 ## confdefs.h. ##
2088 ## ----------- ##
2089 _ASBOX
2090 echo
2091 cat confdefs.h
2092 echo
2093 fi
2094 test "$ac_signal" != 0 &&
2095 $as_echo "$as_me: caught signal $ac_signal"
2096 $as_echo "$as_me: exit $exit_status"
2097 } >&5
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2100 exit $exit_status
2101 ' 0
2102 for ac_signal in 1 2 13 15; do
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2104 done
2105 ac_signal=0
2106
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2108 rm -f -r conftest* confdefs.h
2109
2110 $as_echo "/* confdefs.h */" > confdefs.h
2111
2112 # Predefined preprocessor variables.
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_NAME "$PACKAGE_NAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_STRING "$PACKAGE_STRING"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2132 _ACEOF
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_URL "$PACKAGE_URL"
2136 _ACEOF
2137
2138
2139 # Let the site file select an alternate cache file if it wants to.
2140 # Prefer an explicitly selected file to automatically selected ones.
2141 ac_site_file1=NONE
2142 ac_site_file2=NONE
2143 if test -n "$CONFIG_SITE"; then
2144 ac_site_file1=$CONFIG_SITE
2145 elif test "x$prefix" != xNONE; then
2146 ac_site_file1=$prefix/share/config.site
2147 ac_site_file2=$prefix/etc/config.site
2148 else
2149 ac_site_file1=$ac_default_prefix/share/config.site
2150 ac_site_file2=$ac_default_prefix/etc/config.site
2151 fi
2152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153 do
2154 test "x$ac_site_file" = xNONE && continue
2155 if test -r "$ac_site_file"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2158 sed 's/^/| /' "$ac_site_file" >&5
2159 . "$ac_site_file"
2160 fi
2161 done
2162
2163 if test -r "$cache_file"; then
2164 # Some versions of bash will fail to source /dev/null (special
2165 # files actually), so we avoid doing that.
2166 if test -f "$cache_file"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2168 $as_echo "$as_me: loading cache $cache_file" >&6;}
2169 case $cache_file in
2170 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2171 *) . "./$cache_file";;
2172 esac
2173 fi
2174 else
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2176 $as_echo "$as_me: creating cache $cache_file" >&6;}
2177 >$cache_file
2178 fi
2179
2180 # Check that the precious variables saved in the cache have kept the same
2181 # value.
2182 ac_cache_corrupted=false
2183 for ac_var in $ac_precious_vars; do
2184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2185 eval ac_new_set=\$ac_env_${ac_var}_set
2186 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2187 eval ac_new_val=\$ac_env_${ac_var}_value
2188 case $ac_old_set,$ac_new_set in
2189 set,)
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2193 ,set)
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2195 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2196 ac_cache_corrupted=: ;;
2197 ,);;
2198 *)
2199 if test "x$ac_old_val" != "x$ac_new_val"; then
2200 # differences in whitespace do not lead to failure.
2201 ac_old_val_w=`echo x $ac_old_val`
2202 ac_new_val_w=`echo x $ac_new_val`
2203 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2205 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2206 ac_cache_corrupted=:
2207 else
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2209 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2210 eval $ac_var=\$ac_old_val
2211 fi
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2213 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2215 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2216 fi;;
2217 esac
2218 # Pass precious variables to config.status.
2219 if test "$ac_new_set" = set; then
2220 case $ac_new_val in
2221 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2222 *) ac_arg=$ac_var=$ac_new_val ;;
2223 esac
2224 case " $ac_configure_args " in
2225 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2226 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2227 esac
2228 fi
2229 done
2230 if $ac_cache_corrupted; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2234 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2235 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2236 fi
2237 ## -------------------- ##
2238 ## Main body of script. ##
2239 ## -------------------- ##
2240
2241 ac_ext=c
2242 ac_cpp='$CPP $CPPFLAGS'
2243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246
2247
2248
2249
2250
2251
2252
2253 ac_aux_dir=
2254 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2255 for ac_t in install-sh install.sh shtool; do
2256 if test -f "$ac_dir/$ac_t"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/$ac_t -c"
2259 break 2
2260 fi
2261 done
2262 done
2263 if test -z "$ac_aux_dir"; then
2264 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2265 fi
2266
2267 # These three variables are undocumented and unsupported,
2268 # and are intended to be withdrawn in a future Autoconf release.
2269 # They can cause serious problems if a builder's source tree is in a directory
2270 # whose full name contains unusual characters.
2271 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2272 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2273 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2274
2275
2276 # Make sure we can run config.sub.
2277 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2278 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2279
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2281 $as_echo_n "checking build system type... " >&6; }
2282 if test "${ac_cv_build+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 ac_build_alias=$build_alias
2286 test "x$ac_build_alias" = x &&
2287 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2288 test "x$ac_build_alias" = x &&
2289 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2290 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2292
2293 fi
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2295 $as_echo "$ac_cv_build" >&6; }
2296 case $ac_cv_build in
2297 *-*-*) ;;
2298 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2299 esac
2300 build=$ac_cv_build
2301 ac_save_IFS=$IFS; IFS='-'
2302 set x $ac_cv_build
2303 shift
2304 build_cpu=$1
2305 build_vendor=$2
2306 shift; shift
2307 # Remember, the first character of IFS is used to create $*,
2308 # except with old shells:
2309 build_os=$*
2310 IFS=$ac_save_IFS
2311 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2312
2313
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2315 $as_echo_n "checking host system type... " >&6; }
2316 if test "${ac_cv_host+set}" = set; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 if test "x$host_alias" = x; then
2320 ac_cv_host=$ac_cv_build
2321 else
2322 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2323 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2324 fi
2325
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2328 $as_echo "$ac_cv_host" >&6; }
2329 case $ac_cv_host in
2330 *-*-*) ;;
2331 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2332 esac
2333 host=$ac_cv_host
2334 ac_save_IFS=$IFS; IFS='-'
2335 set x $ac_cv_host
2336 shift
2337 host_cpu=$1
2338 host_vendor=$2
2339 shift; shift
2340 # Remember, the first character of IFS is used to create $*,
2341 # except with old shells:
2342 host_os=$*
2343 IFS=$ac_save_IFS
2344 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2345
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2348 $as_echo_n "checking target system type... " >&6; }
2349 if test "${ac_cv_target+set}" = set; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 if test "x$target_alias" = x; then
2353 ac_cv_target=$ac_cv_host
2354 else
2355 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2357 fi
2358
2359 fi
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2361 $as_echo "$ac_cv_target" >&6; }
2362 case $ac_cv_target in
2363 *-*-*) ;;
2364 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2365 esac
2366 target=$ac_cv_target
2367 ac_save_IFS=$IFS; IFS='-'
2368 set x $ac_cv_target
2369 shift
2370 target_cpu=$1
2371 target_vendor=$2
2372 shift; shift
2373 # Remember, the first character of IFS is used to create $*,
2374 # except with old shells:
2375 target_os=$*
2376 IFS=$ac_save_IFS
2377 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2378
2379
2380 # The aliases save the names the user supplied, while $host etc.
2381 # will get canonicalized.
2382 test -n "$target_alias" &&
2383 test "$program_prefix$program_suffix$program_transform_name" = \
2384 NONENONEs,x,x, &&
2385 program_prefix=${target_alias}-
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395 $as_echo_n "checking for $ac_word... " >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2422 $as_echo "$CC" >&6; }
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425 $as_echo "no" >&6; }
2426 fi
2427
2428
2429 fi
2430 if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 break 2
2452 fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2462 $as_echo "$ac_ct_CC" >&6; }
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2466 fi
2467
2468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475 ac_tool_warned=yes ;;
2476 esac
2477 CC=$ac_ct_CC
2478 fi
2479 else
2480 CC="$ac_cv_prog_CC"
2481 fi
2482
2483 if test -z "$CC"; then
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}cc; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_CC="${ac_tool_prefix}cc"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 CC=$ac_cv_prog_CC
2513 if test -n "$CC"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515 $as_echo "$CC" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521
2522 fi
2523 fi
2524 if test -z "$CC"; then
2525 # Extract the first word of "cc", so it can be a program name with args.
2526 set dummy cc; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 ac_prog_rejected=no
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2544 ac_prog_rejected=yes
2545 continue
2546 fi
2547 ac_cv_prog_CC="cc"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2550 fi
2551 done
2552 done
2553 IFS=$as_save_IFS
2554
2555 if test $ac_prog_rejected = yes; then
2556 # We found a bogon in the path, so make sure we never use it.
2557 set dummy $ac_cv_prog_CC
2558 shift
2559 if test $# != 0; then
2560 # We chose a different compiler from the bogus one.
2561 # However, it has the same basename, so the bogon will be chosen
2562 # first if we set CC to just the basename; use the full file name.
2563 shift
2564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2565 fi
2566 fi
2567 fi
2568 fi
2569 CC=$ac_cv_prog_CC
2570 if test -n "$CC"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2572 $as_echo "$CC" >&6; }
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2576 fi
2577
2578
2579 fi
2580 if test -z "$CC"; then
2581 if test -n "$ac_tool_prefix"; then
2582 for ac_prog in cl.exe
2583 do
2584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2604 fi
2605 done
2606 done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2614 $as_echo "$CC" >&6; }
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620
2621 test -n "$CC" && break
2622 done
2623 fi
2624 if test -z "$CC"; then
2625 ac_ct_CC=$CC
2626 for ac_prog in cl.exe
2627 do
2628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2629 set dummy $ac_prog; ac_word=$2
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631 $as_echo_n "checking for $ac_word... " >&6; }
2632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_ac_ct_CC="$ac_prog"
2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi
2654 fi
2655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656 if test -n "$ac_ct_CC"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658 $as_echo "$ac_ct_CC" >&6; }
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 fi
2663
2664
2665 test -n "$ac_ct_CC" && break
2666 done
2667
2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672 yes:)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675 ac_tool_warned=yes ;;
2676 esac
2677 CC=$ac_ct_CC
2678 fi
2679 fi
2680
2681 fi
2682
2683
2684 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error "no acceptable C compiler found in \$PATH
2687 See \`config.log' for more details." "$LINENO" 5; }
2688
2689 # Provide some information about the compiler.
2690 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2691 set X $ac_compile
2692 ac_compiler=$2
2693 for ac_option in --version -v -V -qversion; do
2694 { { ac_try="$ac_compiler $ac_option >&5"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2700 $as_echo "$ac_try_echo"; } >&5
2701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2702 ac_status=$?
2703 if test -s conftest.err; then
2704 sed '10a\
2705 ... rest of stderr output deleted ...
2706 10q' conftest.err >conftest.er1
2707 cat conftest.er1 >&5
2708 rm -f conftest.er1 conftest.err
2709 fi
2710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711 test $ac_status = 0; }
2712 done
2713
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2716
2717 int
2718 main ()
2719 {
2720
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 ac_clean_files_save=$ac_clean_files
2726 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2727 # Try to create an executable without -o first, disregard a.out.
2728 # It will help us diagnose broken compilers, and finding out an intuition
2729 # of exeext.
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2731 $as_echo_n "checking for C compiler default output file name... " >&6; }
2732 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2733
2734 # The possible output files:
2735 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2736
2737 ac_rmfiles=
2738 for ac_file in $ac_files
2739 do
2740 case $ac_file in
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743 esac
2744 done
2745 rm -f $ac_rmfiles
2746
2747 if { { ac_try="$ac_link_default"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753 $as_echo "$ac_try_echo"; } >&5
2754 (eval "$ac_link_default") 2>&5
2755 ac_status=$?
2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757 test $ac_status = 0; }; then :
2758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2761 # so that the user can short-circuit this test for compilers unknown to
2762 # Autoconf.
2763 for ac_file in $ac_files ''
2764 do
2765 test -f "$ac_file" || continue
2766 case $ac_file in
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2768 ;;
2769 [ab].out )
2770 # We found the default executable, but exeext='' is most
2771 # certainly right.
2772 break;;
2773 *.* )
2774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775 then :; else
2776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777 fi
2778 # We set ac_cv_exeext here because the later test for it is not
2779 # safe: cross compilers may not add the suffix if given an `-o'
2780 # argument, so we may need to know it at that point already.
2781 # Even if this section looks crufty: it has the advantage of
2782 # actually working.
2783 break;;
2784 * )
2785 break;;
2786 esac
2787 done
2788 test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
2790 else
2791 ac_file=''
2792 fi
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2794 $as_echo "$ac_file" >&6; }
2795 if test -z "$ac_file"; then :
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 { as_fn_set_status 77
2802 as_fn_error "C compiler cannot create executables
2803 See \`config.log' for more details." "$LINENO" 5; }; }
2804 fi
2805 ac_exeext=$ac_cv_exeext
2806
2807 # Check that the compiler produces executables we can run. If not, either
2808 # the compiler is broken, or we cross compile.
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2810 $as_echo_n "checking whether the C compiler works... " >&6; }
2811 # If not cross compiling, check that we can run a simple program.
2812 if test "$cross_compiling" != yes; then
2813 if { ac_try='./$ac_file'
2814 { { case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2819 $as_echo "$ac_try_echo"; } >&5
2820 (eval "$ac_try") 2>&5
2821 ac_status=$?
2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2823 test $ac_status = 0; }; }; then
2824 cross_compiling=no
2825 else
2826 if test "$cross_compiling" = maybe; then
2827 cross_compiling=yes
2828 else
2829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 as_fn_error "cannot run C compiled programs.
2832 If you meant to cross compile, use \`--host'.
2833 See \`config.log' for more details." "$LINENO" 5; }
2834 fi
2835 fi
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839
2840 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2841 ac_clean_files=$ac_clean_files_save
2842 # Check that the compiler produces executables we can run. If not, either
2843 # the compiler is broken, or we cross compile.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2845 $as_echo_n "checking whether we are cross compiling... " >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2847 $as_echo "$cross_compiling" >&6; }
2848
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2850 $as_echo_n "checking for suffix of executables... " >&6; }
2851 if { { ac_try="$ac_link"
2852 case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2857 $as_echo "$ac_try_echo"; } >&5
2858 (eval "$ac_link") 2>&5
2859 ac_status=$?
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }; then :
2862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2864 # work properly (i.e., refer to `conftest.exe'), while it won't with
2865 # `rm'.
2866 for ac_file in conftest.exe conftest conftest.*; do
2867 test -f "$ac_file" || continue
2868 case $ac_file in
2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 break;;
2872 * ) break;;
2873 esac
2874 done
2875 else
2876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878 as_fn_error "cannot compute suffix of executables: cannot compile and link
2879 See \`config.log' for more details." "$LINENO" 5; }
2880 fi
2881 rm -f conftest$ac_cv_exeext
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2883 $as_echo "$ac_cv_exeext" >&6; }
2884
2885 rm -f conftest.$ac_ext
2886 EXEEXT=$ac_cv_exeext
2887 ac_exeext=$EXEEXT
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2889 $as_echo_n "checking for suffix of object files... " >&6; }
2890 if test "${ac_cv_objext+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2892 else
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2895
2896 int
2897 main ()
2898 {
2899
2900 ;
2901 return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.o conftest.obj
2905 if { { ac_try="$ac_compile"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_compile") 2>&5
2913 ac_status=$?
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }; then :
2916 for ac_file in conftest.o conftest.obj conftest.*; do
2917 test -f "$ac_file" || continue;
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 break;;
2922 esac
2923 done
2924 else
2925 $as_echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 as_fn_error "cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." "$LINENO" 5; }
2932 fi
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2936 $as_echo "$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2938 ac_objext=$OBJEXT
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2940 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2946
2947 int
2948 main ()
2949 {
2950 #ifndef __GNUC__
2951 choke me
2952 #endif
2953
2954 ;
2955 return 0;
2956 }
2957 _ACEOF
2958 if ac_fn_c_try_compile "$LINENO"; then :
2959 ac_compiler_gnu=yes
2960 else
2961 ac_compiler_gnu=no
2962 fi
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965
2966 fi
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2968 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2969 if test $ac_compiler_gnu = yes; then
2970 GCC=yes
2971 else
2972 GCC=
2973 fi
2974 ac_test_CFLAGS=${CFLAGS+set}
2975 ac_save_CFLAGS=$CFLAGS
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2977 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2978 if test "${ac_cv_prog_cc_g+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 ac_save_c_werror_flag=$ac_c_werror_flag
2982 ac_c_werror_flag=yes
2983 ac_cv_prog_cc_g=no
2984 CFLAGS="-g"
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2987
2988 int
2989 main ()
2990 {
2991
2992 ;
2993 return 0;
2994 }
2995 _ACEOF
2996 if ac_fn_c_try_compile "$LINENO"; then :
2997 ac_cv_prog_cc_g=yes
2998 else
2999 CFLAGS=""
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3002
3003 int
3004 main ()
3005 {
3006
3007 ;
3008 return 0;
3009 }
3010 _ACEOF
3011 if ac_fn_c_try_compile "$LINENO"; then :
3012
3013 else
3014 ac_c_werror_flag=$ac_save_c_werror_flag
3015 CFLAGS="-g"
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3018
3019 int
3020 main ()
3021 {
3022
3023 ;
3024 return 0;
3025 }
3026 _ACEOF
3027 if ac_fn_c_try_compile "$LINENO"; then :
3028 ac_cv_prog_cc_g=yes
3029 fi
3030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 fi
3032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033 fi
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036 fi
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3038 $as_echo "$ac_cv_prog_cc_g" >&6; }
3039 if test "$ac_test_CFLAGS" = set; then
3040 CFLAGS=$ac_save_CFLAGS
3041 elif test $ac_cv_prog_cc_g = yes; then
3042 if test "$GCC" = yes; then
3043 CFLAGS="-g -O2"
3044 else
3045 CFLAGS="-g"
3046 fi
3047 else
3048 if test "$GCC" = yes; then
3049 CFLAGS="-O2"
3050 else
3051 CFLAGS=
3052 fi
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3056 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 ac_cv_prog_cc_c89=no
3060 ac_save_CC=$CC
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3063 #include <stdarg.h>
3064 #include <stdio.h>
3065 #include <sys/types.h>
3066 #include <sys/stat.h>
3067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3068 struct buf { int x; };
3069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3070 static char *e (p, i)
3071 char **p;
3072 int i;
3073 {
3074 return p[i];
3075 }
3076 static char *f (char * (*g) (char **, int), char **p, ...)
3077 {
3078 char *s;
3079 va_list v;
3080 va_start (v,p);
3081 s = g (p, va_arg (v,int));
3082 va_end (v);
3083 return s;
3084 }
3085
3086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3087 function prototypes and stuff, but not '\xHH' hex character constants.
3088 These don't provoke an error unfortunately, instead are silently treated
3089 as 'x'. The following induces an error, until -std is added to get
3090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3091 array size at least. It's necessary to write '\x00'==0 to get something
3092 that's true only with -std. */
3093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3094
3095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3096 inside strings and character constants. */
3097 #define FOO(x) 'x'
3098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3099
3100 int test (int i, double x);
3101 struct s1 {int (*f) (int a);};
3102 struct s2 {int (*f) (double a);};
3103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3104 int argc;
3105 char **argv;
3106 int
3107 main ()
3108 {
3109 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3116 do
3117 CC="$ac_save_CC $ac_arg"
3118 if ac_fn_c_try_compile "$LINENO"; then :
3119 ac_cv_prog_cc_c89=$ac_arg
3120 fi
3121 rm -f core conftest.err conftest.$ac_objext
3122 test "x$ac_cv_prog_cc_c89" != "xno" && break
3123 done
3124 rm -f conftest.$ac_ext
3125 CC=$ac_save_CC
3126
3127 fi
3128 # AC_CACHE_VAL
3129 case "x$ac_cv_prog_cc_c89" in
3130 x)
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3132 $as_echo "none needed" >&6; } ;;
3133 xno)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3135 $as_echo "unsupported" >&6; } ;;
3136 *)
3137 CC="$CC $ac_cv_prog_cc_c89"
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3140 esac
3141 if test "x$ac_cv_prog_cc_c89" != xno; then :
3142
3143 fi
3144
3145 ac_ext=c
3146 ac_cpp='$CPP $CPPFLAGS'
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3153 $as_echo_n "checking for library containing strerror... " >&6; }
3154 if test "${ac_cv_search_strerror+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 ac_func_search_save_LIBS=$LIBS
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160
3161 /* Override any GCC internal prototype to avoid an error.
3162 Use char because int might match the return type of a GCC
3163 builtin and then its argument prototype would still apply. */
3164 #ifdef __cplusplus
3165 extern "C"
3166 #endif
3167 char strerror ();
3168 int
3169 main ()
3170 {
3171 return strerror ();
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 for ac_lib in '' cposix; do
3177 if test -z "$ac_lib"; then
3178 ac_res="none required"
3179 else
3180 ac_res=-l$ac_lib
3181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3182 fi
3183 if ac_fn_c_try_link "$LINENO"; then :
3184 ac_cv_search_strerror=$ac_res
3185 fi
3186 rm -f core conftest.err conftest.$ac_objext \
3187 conftest$ac_exeext
3188 if test "${ac_cv_search_strerror+set}" = set; then :
3189 break
3190 fi
3191 done
3192 if test "${ac_cv_search_strerror+set}" = set; then :
3193
3194 else
3195 ac_cv_search_strerror=no
3196 fi
3197 rm conftest.$ac_ext
3198 LIBS=$ac_func_search_save_LIBS
3199 fi
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3201 $as_echo "$ac_cv_search_strerror" >&6; }
3202 ac_res=$ac_cv_search_strerror
3203 if test "$ac_res" != no; then :
3204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3205
3206 fi
3207
3208
3209 # We currently only use the version number for the name of any shared
3210 # library. For user convenience, we always use the same version
3211 # number that BFD is using.
3212 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3213
3214 am__api_version='1.11'
3215
3216 # Find a good install program. We prefer a C program (faster),
3217 # so one script is as good as another. But avoid the broken or
3218 # incompatible versions:
3219 # SysV /etc/install, /usr/sbin/install
3220 # SunOS /usr/etc/install
3221 # IRIX /sbin/install
3222 # AIX /bin/install
3223 # AmigaOS /C/install, which installs bootblocks on floppy discs
3224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3227 # OS/2's system install, which has a completely different semantic
3228 # ./install, which can be erroneously created by make from ./install.sh.
3229 # Reject install programs that cannot install multiple files.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3231 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3232 if test -z "$INSTALL"; then
3233 if test "${ac_cv_path_install+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 # Account for people who put trailing slashes in PATH elements.
3242 case $as_dir/ in #((
3243 ./ | .// | /[cC]/* | \
3244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3245 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3246 /usr/ucb/* ) ;;
3247 *)
3248 # OSF1 and SCO ODT 3.0 have their own names for install.
3249 # Don't use installbsd from OSF since it installs stuff as root
3250 # by default.
3251 for ac_prog in ginstall scoinst install; do
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3254 if test $ac_prog = install &&
3255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3256 # AIX install. It has an incompatible calling convention.
3257 :
3258 elif test $ac_prog = install &&
3259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3260 # program-specific install script used by HP pwplus--don't use.
3261 :
3262 else
3263 rm -rf conftest.one conftest.two conftest.dir
3264 echo one > conftest.one
3265 echo two > conftest.two
3266 mkdir conftest.dir
3267 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3268 test -s conftest.one && test -s conftest.two &&
3269 test -s conftest.dir/conftest.one &&
3270 test -s conftest.dir/conftest.two
3271 then
3272 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3273 break 3
3274 fi
3275 fi
3276 fi
3277 done
3278 done
3279 ;;
3280 esac
3281
3282 done
3283 IFS=$as_save_IFS
3284
3285 rm -rf conftest.one conftest.two conftest.dir
3286
3287 fi
3288 if test "${ac_cv_path_install+set}" = set; then
3289 INSTALL=$ac_cv_path_install
3290 else
3291 # As a last resort, use the slow shell script. Don't cache a
3292 # value for INSTALL within a source directory, because that will
3293 # break other packages using the cache if that directory is
3294 # removed, or if the value is a relative name.
3295 INSTALL=$ac_install_sh
3296 fi
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3299 $as_echo "$INSTALL" >&6; }
3300
3301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3302 # It thinks the first close brace ends the variable substitution.
3303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3304
3305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3306
3307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3308
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3310 $as_echo_n "checking whether build environment is sane... " >&6; }
3311 # Just in case
3312 sleep 1
3313 echo timestamp > conftest.file
3314 # Reject unsafe characters in $srcdir or the absolute working directory
3315 # name. Accept space and tab only in the latter.
3316 am_lf='
3317 '
3318 case `pwd` in
3319 *[\\\"\#\$\&\'\`$am_lf]*)
3320 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3321 esac
3322 case $srcdir in
3323 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3324 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3325 esac
3326
3327 # Do `set' in a subshell so we don't clobber the current shell's
3328 # arguments. Must try -L first in case configure is actually a
3329 # symlink; some systems play weird games with the mod time of symlinks
3330 # (eg FreeBSD returns the mod time of the symlink's containing
3331 # directory).
3332 if (
3333 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3334 if test "$*" = "X"; then
3335 # -L didn't work.
3336 set X `ls -t "$srcdir/configure" conftest.file`
3337 fi
3338 rm -f conftest.file
3339 if test "$*" != "X $srcdir/configure conftest.file" \
3340 && test "$*" != "X conftest.file $srcdir/configure"; then
3341
3342 # If neither matched, then we have a broken ls. This can happen
3343 # if, for instance, CONFIG_SHELL is bash and it inherits a
3344 # broken ls alias from the environment. This has actually
3345 # happened. Such a system could not be considered "sane".
3346 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3347 alias in your environment" "$LINENO" 5
3348 fi
3349
3350 test "$2" = conftest.file
3351 )
3352 then
3353 # Ok.
3354 :
3355 else
3356 as_fn_error "newly created file is older than distributed files!
3357 Check your system clock" "$LINENO" 5
3358 fi
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3361 test "$program_prefix" != NONE &&
3362 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3363 # Use a double $ so make ignores it.
3364 test "$program_suffix" != NONE &&
3365 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3366 # Double any \ or $.
3367 # By default was `s,x,x', remove it if useless.
3368 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3369 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3370
3371 # expand $ac_aux_dir to an absolute path
3372 am_aux_dir=`cd $ac_aux_dir && pwd`
3373
3374 if test x"${MISSING+set}" != xset; then
3375 case $am_aux_dir in
3376 *\ * | *\ *)
3377 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3378 *)
3379 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3380 esac
3381 fi
3382 # Use eval to expand $SHELL
3383 if eval "$MISSING --run true"; then
3384 am_missing_run="$MISSING --run "
3385 else
3386 am_missing_run=
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3388 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3389 fi
3390
3391 if test x"${install_sh}" != xset; then
3392 case $am_aux_dir in
3393 *\ * | *\ *)
3394 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3395 *)
3396 install_sh="\${SHELL} $am_aux_dir/install-sh"
3397 esac
3398 fi
3399
3400 # Installed binaries are usually stripped using `strip' when the user
3401 # run `make install-strip'. However `strip' might not be the right
3402 # tool to use in cross-compilation environments, therefore Automake
3403 # will honor the `STRIP' environment variable to overrule this program.
3404 if test "$cross_compiling" != no; then
3405 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}strip; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_STRIP+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$STRIP"; then
3414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427 done
3428 done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 STRIP=$ac_cv_prog_STRIP
3434 if test -n "$STRIP"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3436 $as_echo "$STRIP" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$ac_cv_prog_STRIP"; then
3445 ac_ct_STRIP=$STRIP
3446 # Extract the first word of "strip", so it can be a program name with args.
3447 set dummy strip; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 if test -n "$ac_ct_STRIP"; then
3454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_ac_ct_STRIP="strip"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3466 fi
3467 done
3468 done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3474 if test -n "$ac_ct_STRIP"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3476 $as_echo "$ac_ct_STRIP" >&6; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 fi
3481
3482 if test "x$ac_ct_STRIP" = x; then
3483 STRIP=":"
3484 else
3485 case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491 STRIP=$ac_ct_STRIP
3492 fi
3493 else
3494 STRIP="$ac_cv_prog_STRIP"
3495 fi
3496
3497 fi
3498 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3499
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3501 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3502 if test -z "$MKDIR_P"; then
3503 if test "${ac_cv_path_mkdir+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3508 do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_prog in mkdir gmkdir; do
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3514 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3515 'mkdir (GNU coreutils) '* | \
3516 'mkdir (coreutils) '* | \
3517 'mkdir (fileutils) '4.1*)
3518 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3519 break 3;;
3520 esac
3521 done
3522 done
3523 done
3524 IFS=$as_save_IFS
3525
3526 fi
3527
3528 if test "${ac_cv_path_mkdir+set}" = set; then
3529 MKDIR_P="$ac_cv_path_mkdir -p"
3530 else
3531 # As a last resort, use the slow shell script. Don't cache a
3532 # value for MKDIR_P within a source directory, because that will
3533 # break other packages using the cache if that directory is
3534 # removed, or if the value is a relative name.
3535 test -d ./--version && rmdir ./--version
3536 MKDIR_P="$ac_install_sh -d"
3537 fi
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3540 $as_echo "$MKDIR_P" >&6; }
3541
3542 mkdir_p="$MKDIR_P"
3543 case $mkdir_p in
3544 [\\/$]* | ?:[\\/]*) ;;
3545 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3546 esac
3547
3548 for ac_prog in gawk mawk nawk awk
3549 do
3550 # Extract the first word of "$ac_prog", so it can be a program name with args.
3551 set dummy $ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if test "${ac_cv_prog_AWK+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$AWK"; then
3558 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_AWK="$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 AWK=$ac_cv_prog_AWK
3578 if test -n "$AWK"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3580 $as_echo "$AWK" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 test -n "$AWK" && break
3588 done
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3591 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3592 set x ${MAKE-make}
3593 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3594 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 cat >conftest.make <<\_ACEOF
3598 SHELL = /bin/sh
3599 all:
3600 @echo '@@@%%%=$(MAKE)=@@@%%%'
3601 _ACEOF
3602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3604 *@@@%%%=?*=@@@%%%*)
3605 eval ac_cv_prog_make_${ac_make}_set=yes;;
3606 *)
3607 eval ac_cv_prog_make_${ac_make}_set=no;;
3608 esac
3609 rm -f conftest.make
3610 fi
3611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 $as_echo "yes" >&6; }
3614 SET_MAKE=
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 SET_MAKE="MAKE=${MAKE-make}"
3619 fi
3620
3621 rm -rf .tst 2>/dev/null
3622 mkdir .tst 2>/dev/null
3623 if test -d .tst; then
3624 am__leading_dot=.
3625 else
3626 am__leading_dot=_
3627 fi
3628 rmdir .tst 2>/dev/null
3629
3630 DEPDIR="${am__leading_dot}deps"
3631
3632 ac_config_commands="$ac_config_commands depfiles"
3633
3634
3635 am_make=${MAKE-make}
3636 cat > confinc << 'END'
3637 am__doit:
3638 @echo this is the am__doit target
3639 .PHONY: am__doit
3640 END
3641 # If we don't find an include directive, just comment out the code.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3643 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3644 am__include="#"
3645 am__quote=
3646 _am_result=none
3647 # First try GNU make style include.
3648 echo "include confinc" > confmf
3649 # Ignore all kinds of additional output from `make'.
3650 case `$am_make -s -f confmf 2> /dev/null` in #(
3651 *the\ am__doit\ target*)
3652 am__include=include
3653 am__quote=
3654 _am_result=GNU
3655 ;;
3656 esac
3657 # Now try BSD make style include.
3658 if test "$am__include" = "#"; then
3659 echo '.include "confinc"' > confmf
3660 case `$am_make -s -f confmf 2> /dev/null` in #(
3661 *the\ am__doit\ target*)
3662 am__include=.include
3663 am__quote="\""
3664 _am_result=BSD
3665 ;;
3666 esac
3667 fi
3668
3669
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3671 $as_echo "$_am_result" >&6; }
3672 rm -f confinc confmf
3673
3674 # Check whether --enable-dependency-tracking was given.
3675 if test "${enable_dependency_tracking+set}" = set; then :
3676 enableval=$enable_dependency_tracking;
3677 fi
3678
3679 if test "x$enable_dependency_tracking" != xno; then
3680 am_depcomp="$ac_aux_dir/depcomp"
3681 AMDEPBACKSLASH='\'
3682 fi
3683 if test "x$enable_dependency_tracking" != xno; then
3684 AMDEP_TRUE=
3685 AMDEP_FALSE='#'
3686 else
3687 AMDEP_TRUE='#'
3688 AMDEP_FALSE=
3689 fi
3690
3691
3692 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3693 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3694 # is not polluted with repeated "-I."
3695 am__isrc=' -I$(srcdir)'
3696 # test to see if srcdir already configured
3697 if test -f $srcdir/config.status; then
3698 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3699 fi
3700 fi
3701
3702 # test whether we have cygpath
3703 if test -z "$CYGPATH_W"; then
3704 if (cygpath --version) >/dev/null 2>/dev/null; then
3705 CYGPATH_W='cygpath -w'
3706 else
3707 CYGPATH_W=echo
3708 fi
3709 fi
3710
3711
3712 # Define the identity of the package.
3713 PACKAGE=opcodes
3714 VERSION=${BFD_VERSION}
3715
3716
3717 cat >>confdefs.h <<_ACEOF
3718 #define PACKAGE "$PACKAGE"
3719 _ACEOF
3720
3721
3722 cat >>confdefs.h <<_ACEOF
3723 #define VERSION "$VERSION"
3724 _ACEOF
3725
3726 # Some tools Automake needs.
3727
3728 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3729
3730
3731 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3732
3733
3734 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3735
3736
3737 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3738
3739
3740 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3741
3742 # We need awk for the "check" target. The system "awk" is bad on
3743 # some platforms.
3744 # Always define AMTAR for backward compatibility.
3745
3746 AMTAR=${AMTAR-"${am_missing_run}tar"}
3747
3748 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3749
3750
3751
3752
3753 depcc="$CC" am_compiler_list=
3754
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3756 $as_echo_n "checking dependency style of $depcc... " >&6; }
3757 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761 # We make a subdir and do the tests there. Otherwise we can end up
3762 # making bogus files that we don't know about and never remove. For
3763 # instance it was reported that on HP-UX the gcc test will end up
3764 # making a dummy file named `D' -- because `-MD' means `put the output
3765 # in D'.
3766 mkdir conftest.dir
3767 # Copy depcomp to subdir because otherwise we won't find it if we're
3768 # using a relative directory.
3769 cp "$am_depcomp" conftest.dir
3770 cd conftest.dir
3771 # We will build objects and dependencies in a subdirectory because
3772 # it helps to detect inapplicable dependency modes. For instance
3773 # both Tru64's cc and ICC support -MD to output dependencies as a
3774 # side effect of compilation, but ICC will put the dependencies in
3775 # the current directory while Tru64 will put them in the object
3776 # directory.
3777 mkdir sub
3778
3779 am_cv_CC_dependencies_compiler_type=none
3780 if test "$am_compiler_list" = ""; then
3781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3782 fi
3783 am__universal=false
3784 case " $depcc " in #(
3785 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3786 esac
3787
3788 for depmode in $am_compiler_list; do
3789 # Setup a source with many dependencies, because some compilers
3790 # like to wrap large dependency lists on column 80 (with \), and
3791 # we should not choose a depcomp mode which is confused by this.
3792 #
3793 # We need to recreate these files for each test, as the compiler may
3794 # overwrite some of them when testing with obscure command lines.
3795 # This happens at least with the AIX C compiler.
3796 : > sub/conftest.c
3797 for i in 1 2 3 4 5 6; do
3798 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3800 # Solaris 8's {/usr,}/bin/sh.
3801 touch sub/conftst$i.h
3802 done
3803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3804
3805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3806 # mode. It turns out that the SunPro C++ compiler does not properly
3807 # handle `-M -o', and we need to detect this. Also, some Intel
3808 # versions had trouble with output in subdirs
3809 am__obj=sub/conftest.${OBJEXT-o}
3810 am__minus_obj="-o $am__obj"
3811 case $depmode in
3812 gcc)
3813 # This depmode causes a compiler race in universal mode.
3814 test "$am__universal" = false || continue
3815 ;;
3816 nosideeffect)
3817 # after this tag, mechanisms are not by side-effect, so they'll
3818 # only be used when explicitly requested
3819 if test "x$enable_dependency_tracking" = xyes; then
3820 continue
3821 else
3822 break
3823 fi
3824 ;;
3825 msvisualcpp | msvcmsys)
3826 # This compiler won't grok `-c -o', but also, the minuso test has
3827 # not run yet. These depmodes are late enough in the game, and
3828 # so weak that their functioning should not be impacted.
3829 am__obj=conftest.${OBJEXT-o}
3830 am__minus_obj=
3831 ;;
3832 none) break ;;
3833 esac
3834 if depmode=$depmode \
3835 source=sub/conftest.c object=$am__obj \
3836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3838 >/dev/null 2>conftest.err &&
3839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3843 # icc doesn't choke on unknown options, it will just issue warnings
3844 # or remarks (even with -Werror). So we grep stderr for any message
3845 # that says an option was ignored or not supported.
3846 # When given -MP, icc 7.0 and 7.1 complain thusly:
3847 # icc: Command line warning: ignoring option '-M'; no argument required
3848 # The diagnosis changed in icc 8.0:
3849 # icc: Command line remark: option '-MP' not supported
3850 if (grep 'ignoring option' conftest.err ||
3851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3852 am_cv_CC_dependencies_compiler_type=$depmode
3853 break
3854 fi
3855 fi
3856 done
3857
3858 cd ..
3859 rm -rf conftest.dir
3860 else
3861 am_cv_CC_dependencies_compiler_type=none
3862 fi
3863
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3866 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3867 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3868
3869 if
3870 test "x$enable_dependency_tracking" != xno \
3871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3872 am__fastdepCC_TRUE=
3873 am__fastdepCC_FALSE='#'
3874 else
3875 am__fastdepCC_TRUE='#'
3876 am__fastdepCC_FALSE=
3877 fi
3878
3879
3880
3881
3882 ac_ext=c
3883 ac_cpp='$CPP $CPPFLAGS'
3884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909 done
3910 done
3911 IFS=$as_save_IFS
3912
3913 fi
3914 fi
3915 CC=$ac_cv_prog_CC
3916 if test -n "$CC"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3918 $as_echo "$CC" >&6; }
3919 else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3922 fi
3923
3924
3925 fi
3926 if test -z "$ac_cv_prog_CC"; then
3927 ac_ct_CC=$CC
3928 # Extract the first word of "gcc", so it can be a program name with args.
3929 set dummy gcc; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 if test -n "$ac_ct_CC"; then
3936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3945 ac_cv_prog_ac_ct_CC="gcc"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949 done
3950 done
3951 IFS=$as_save_IFS
3952
3953 fi
3954 fi
3955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3956 if test -n "$ac_ct_CC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3958 $as_echo "$ac_ct_CC" >&6; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 fi
3963
3964 if test "x$ac_ct_CC" = x; then
3965 CC=""
3966 else
3967 case $cross_compiling:$ac_tool_warned in
3968 yes:)
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3971 ac_tool_warned=yes ;;
3972 esac
3973 CC=$ac_ct_CC
3974 fi
3975 else
3976 CC="$ac_cv_prog_CC"
3977 fi
3978
3979 if test -z "$CC"; then
3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}cc; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_prog_CC+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_prog_CC="${ac_tool_prefix}cc"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002 done
4003 done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 CC=$ac_cv_prog_CC
4009 if test -n "$CC"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4011 $as_echo "$CC" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 fi
4019 fi
4020 if test -z "$CC"; then
4021 # Extract the first word of "cc", so it can be a program name with args.
4022 set dummy cc; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if test "${ac_cv_prog_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030 else
4031 ac_prog_rejected=no
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4040 ac_prog_rejected=yes
4041 continue
4042 fi
4043 ac_cv_prog_CC="cc"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047 done
4048 done
4049 IFS=$as_save_IFS
4050
4051 if test $ac_prog_rejected = yes; then
4052 # We found a bogon in the path, so make sure we never use it.
4053 set dummy $ac_cv_prog_CC
4054 shift
4055 if test $# != 0; then
4056 # We chose a different compiler from the bogus one.
4057 # However, it has the same basename, so the bogon will be chosen
4058 # first if we set CC to just the basename; use the full file name.
4059 shift
4060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4061 fi
4062 fi
4063 fi
4064 fi
4065 CC=$ac_cv_prog_CC
4066 if test -n "$CC"; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4068 $as_echo "$CC" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 $as_echo "no" >&6; }
4072 fi
4073
4074
4075 fi
4076 if test -z "$CC"; then
4077 if test -n "$ac_tool_prefix"; then
4078 for ac_prog in cl.exe
4079 do
4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if test "${ac_cv_prog_CC+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101 done
4102 done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116
4117 test -n "$CC" && break
4118 done
4119 fi
4120 if test -z "$CC"; then
4121 ac_ct_CC=$CC
4122 for ac_prog in cl.exe
4123 do
4124 # Extract the first word of "$ac_prog", so it can be a program name with args.
4125 set dummy $ac_prog; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_ac_ct_CC="$ac_prog"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145 done
4146 done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152 if test -n "$ac_ct_CC"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4154 $as_echo "$ac_ct_CC" >&6; }
4155 else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4158 fi
4159
4160
4161 test -n "$ac_ct_CC" && break
4162 done
4163
4164 if test "x$ac_ct_CC" = x; then
4165 CC=""
4166 else
4167 case $cross_compiling:$ac_tool_warned in
4168 yes:)
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4172 esac
4173 CC=$ac_ct_CC
4174 fi
4175 fi
4176
4177 fi
4178
4179
4180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "no acceptable C compiler found in \$PATH
4183 See \`config.log' for more details." "$LINENO" 5; }
4184
4185 # Provide some information about the compiler.
4186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4187 set X $ac_compile
4188 ac_compiler=$2
4189 for ac_option in --version -v -V -qversion; do
4190 { { ac_try="$ac_compiler $ac_option >&5"
4191 case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4196 $as_echo "$ac_try_echo"; } >&5
4197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4198 ac_status=$?
4199 if test -s conftest.err; then
4200 sed '10a\
4201 ... rest of stderr output deleted ...
4202 10q' conftest.err >conftest.er1
4203 cat conftest.er1 >&5
4204 rm -f conftest.er1 conftest.err
4205 fi
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }
4208 done
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4211 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4212 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217
4218 int
4219 main ()
4220 {
4221 #ifndef __GNUC__
4222 choke me
4223 #endif
4224
4225 ;
4226 return 0;
4227 }
4228 _ACEOF
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_compiler_gnu=yes
4231 else
4232 ac_compiler_gnu=no
4233 fi
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4236
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4240 if test $ac_compiler_gnu = yes; then
4241 GCC=yes
4242 else
4243 GCC=
4244 fi
4245 ac_test_CFLAGS=${CFLAGS+set}
4246 ac_save_CFLAGS=$CFLAGS
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4249 if test "${ac_cv_prog_cc_g+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 ac_save_c_werror_flag=$ac_c_werror_flag
4253 ac_c_werror_flag=yes
4254 ac_cv_prog_cc_g=no
4255 CFLAGS="-g"
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 int
4260 main ()
4261 {
4262
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 if ac_fn_c_try_compile "$LINENO"; then :
4268 ac_cv_prog_cc_g=yes
4269 else
4270 CFLAGS=""
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273
4274 int
4275 main ()
4276 {
4277
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 if ac_fn_c_try_compile "$LINENO"; then :
4283
4284 else
4285 ac_c_werror_flag=$ac_save_c_werror_flag
4286 CFLAGS="-g"
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289
4290 int
4291 main ()
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_g=yes
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 ac_c_werror_flag=$ac_save_c_werror_flag
4307 fi
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4309 $as_echo "$ac_cv_prog_cc_g" >&6; }
4310 if test "$ac_test_CFLAGS" = set; then
4311 CFLAGS=$ac_save_CFLAGS
4312 elif test $ac_cv_prog_cc_g = yes; then
4313 if test "$GCC" = yes; then
4314 CFLAGS="-g -O2"
4315 else
4316 CFLAGS="-g"
4317 fi
4318 else
4319 if test "$GCC" = yes; then
4320 CFLAGS="-O2"
4321 else
4322 CFLAGS=
4323 fi
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4326 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4327 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329 else
4330 ac_cv_prog_cc_c89=no
4331 ac_save_CC=$CC
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdarg.h>
4335 #include <stdio.h>
4336 #include <sys/types.h>
4337 #include <sys/stat.h>
4338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4339 struct buf { int x; };
4340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4341 static char *e (p, i)
4342 char **p;
4343 int i;
4344 {
4345 return p[i];
4346 }
4347 static char *f (char * (*g) (char **, int), char **p, ...)
4348 {
4349 char *s;
4350 va_list v;
4351 va_start (v,p);
4352 s = g (p, va_arg (v,int));
4353 va_end (v);
4354 return s;
4355 }
4356
4357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4358 function prototypes and stuff, but not '\xHH' hex character constants.
4359 These don't provoke an error unfortunately, instead are silently treated
4360 as 'x'. The following induces an error, until -std is added to get
4361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4362 array size at least. It's necessary to write '\x00'==0 to get something
4363 that's true only with -std. */
4364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4365
4366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4367 inside strings and character constants. */
4368 #define FOO(x) 'x'
4369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4370
4371 int test (int i, double x);
4372 struct s1 {int (*f) (int a);};
4373 struct s2 {int (*f) (double a);};
4374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4375 int argc;
4376 char **argv;
4377 int
4378 main ()
4379 {
4380 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4387 do
4388 CC="$ac_save_CC $ac_arg"
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_prog_cc_c89=$ac_arg
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext
4393 test "x$ac_cv_prog_cc_c89" != "xno" && break
4394 done
4395 rm -f conftest.$ac_ext
4396 CC=$ac_save_CC
4397
4398 fi
4399 # AC_CACHE_VAL
4400 case "x$ac_cv_prog_cc_c89" in
4401 x)
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4403 $as_echo "none needed" >&6; } ;;
4404 xno)
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4406 $as_echo "unsupported" >&6; } ;;
4407 *)
4408 CC="$CC $ac_cv_prog_cc_c89"
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4410 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4411 esac
4412 if test "x$ac_cv_prog_cc_c89" != xno; then :
4413
4414 fi
4415
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4429 # On Suns, sometimes $CPP names a directory.
4430 if test -n "$CPP" && test -d "$CPP"; then
4431 CPP=
4432 fi
4433 if test -z "$CPP"; then
4434 if test "${ac_cv_prog_CPP+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 # Double quotes because CPP needs to be expanded
4438 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4439 do
4440 ac_preproc_ok=false
4441 for ac_c_preproc_warn_flag in '' yes
4442 do
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #ifdef __STDC__
4452 # include <limits.h>
4453 #else
4454 # include <assert.h>
4455 #endif
4456 Syntax error
4457 _ACEOF
4458 if ac_fn_c_try_cpp "$LINENO"; then :
4459
4460 else
4461 # Broken: fails on valid input.
4462 continue
4463 fi
4464 rm -f conftest.err conftest.$ac_ext
4465
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <ac_nonexistent.h>
4471 _ACEOF
4472 if ac_fn_c_try_cpp "$LINENO"; then :
4473 # Broken: success on invalid input.
4474 continue
4475 else
4476 # Passes both tests.
4477 ac_preproc_ok=:
4478 break
4479 fi
4480 rm -f conftest.err conftest.$ac_ext
4481
4482 done
4483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484 rm -f conftest.err conftest.$ac_ext
4485 if $ac_preproc_ok; then :
4486 break
4487 fi
4488
4489 done
4490 ac_cv_prog_CPP=$CPP
4491
4492 fi
4493 CPP=$ac_cv_prog_CPP
4494 else
4495 ac_cv_prog_CPP=$CPP
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4498 $as_echo "$CPP" >&6; }
4499 ac_preproc_ok=false
4500 for ac_c_preproc_warn_flag in '' yes
4501 do
4502 # Use a header file that comes with gcc, so configuring glibc
4503 # with a fresh cross-compiler works.
4504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4505 # <limits.h> exists even on freestanding compilers.
4506 # On the NeXT, cc -E runs the code through the compiler's parser,
4507 # not just through cpp. "Syntax error" is here to catch this case.
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #ifdef __STDC__
4511 # include <limits.h>
4512 #else
4513 # include <assert.h>
4514 #endif
4515 Syntax error
4516 _ACEOF
4517 if ac_fn_c_try_cpp "$LINENO"; then :
4518
4519 else
4520 # Broken: fails on valid input.
4521 continue
4522 fi
4523 rm -f conftest.err conftest.$ac_ext
4524
4525 # OK, works on sane cases. Now check whether nonexistent headers
4526 # can be detected and how.
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <ac_nonexistent.h>
4530 _ACEOF
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4532 # Broken: success on invalid input.
4533 continue
4534 else
4535 # Passes both tests.
4536 ac_preproc_ok=:
4537 break
4538 fi
4539 rm -f conftest.err conftest.$ac_ext
4540
4541 done
4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543 rm -f conftest.err conftest.$ac_ext
4544 if $ac_preproc_ok; then :
4545
4546 else
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4550 See \`config.log' for more details." "$LINENO" 5; }
4551 fi
4552
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4561 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4562 if test "${ac_cv_path_GREP+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -z "$GREP"; then
4566 ac_path_GREP_found=false
4567 # Loop through the user's path and test for each of PROGNAME-LIST
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_prog in grep ggrep; do
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4576 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4577 # Check for GNU ac_path_GREP and select it if it is found.
4578 # Check for GNU $ac_path_GREP
4579 case `"$ac_path_GREP" --version 2>&1` in
4580 *GNU*)
4581 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4582 *)
4583 ac_count=0
4584 $as_echo_n 0123456789 >"conftest.in"
4585 while :
4586 do
4587 cat "conftest.in" "conftest.in" >"conftest.tmp"
4588 mv "conftest.tmp" "conftest.in"
4589 cp "conftest.in" "conftest.nl"
4590 $as_echo 'GREP' >> "conftest.nl"
4591 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593 as_fn_arith $ac_count + 1 && ac_count=$as_val
4594 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4595 # Best one so far, save it but keep looking for a better one
4596 ac_cv_path_GREP="$ac_path_GREP"
4597 ac_path_GREP_max=$ac_count
4598 fi
4599 # 10*(2^10) chars as input seems more than enough
4600 test $ac_count -gt 10 && break
4601 done
4602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603 esac
4604
4605 $ac_path_GREP_found && break 3
4606 done
4607 done
4608 done
4609 IFS=$as_save_IFS
4610 if test -z "$ac_cv_path_GREP"; then
4611 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4612 fi
4613 else
4614 ac_cv_path_GREP=$GREP
4615 fi
4616
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4619 $as_echo "$ac_cv_path_GREP" >&6; }
4620 GREP="$ac_cv_path_GREP"
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4624 $as_echo_n "checking for egrep... " >&6; }
4625 if test "${ac_cv_path_EGREP+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4629 then ac_cv_path_EGREP="$GREP -E"
4630 else
4631 if test -z "$EGREP"; then
4632 ac_path_EGREP_found=false
4633 # Loop through the user's path and test for each of PROGNAME-LIST
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_prog in egrep; do
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4643 # Check for GNU ac_path_EGREP and select it if it is found.
4644 # Check for GNU $ac_path_EGREP
4645 case `"$ac_path_EGREP" --version 2>&1` in
4646 *GNU*)
4647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4648 *)
4649 ac_count=0
4650 $as_echo_n 0123456789 >"conftest.in"
4651 while :
4652 do
4653 cat "conftest.in" "conftest.in" >"conftest.tmp"
4654 mv "conftest.tmp" "conftest.in"
4655 cp "conftest.in" "conftest.nl"
4656 $as_echo 'EGREP' >> "conftest.nl"
4657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4659 as_fn_arith $ac_count + 1 && ac_count=$as_val
4660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4661 # Best one so far, save it but keep looking for a better one
4662 ac_cv_path_EGREP="$ac_path_EGREP"
4663 ac_path_EGREP_max=$ac_count
4664 fi
4665 # 10*(2^10) chars as input seems more than enough
4666 test $ac_count -gt 10 && break
4667 done
4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 esac
4670
4671 $ac_path_EGREP_found && break 3
4672 done
4673 done
4674 done
4675 IFS=$as_save_IFS
4676 if test -z "$ac_cv_path_EGREP"; then
4677 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678 fi
4679 else
4680 ac_cv_path_EGREP=$EGREP
4681 fi
4682
4683 fi
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4686 $as_echo "$ac_cv_path_EGREP" >&6; }
4687 EGREP="$ac_cv_path_EGREP"
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4691 $as_echo_n "checking for ANSI C header files... " >&6; }
4692 if test "${ac_cv_header_stdc+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <stdlib.h>
4698 #include <stdarg.h>
4699 #include <string.h>
4700 #include <float.h>
4701
4702 int
4703 main ()
4704 {
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 ac_cv_header_stdc=yes
4712 else
4713 ac_cv_header_stdc=no
4714 fi
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716
4717 if test $ac_cv_header_stdc = yes; then
4718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #include <string.h>
4722
4723 _ACEOF
4724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4725 $EGREP "memchr" >/dev/null 2>&1; then :
4726
4727 else
4728 ac_cv_header_stdc=no
4729 fi
4730 rm -f conftest*
4731
4732 fi
4733
4734 if test $ac_cv_header_stdc = yes; then
4735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <stdlib.h>
4739
4740 _ACEOF
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "free" >/dev/null 2>&1; then :
4743
4744 else
4745 ac_cv_header_stdc=no
4746 fi
4747 rm -f conftest*
4748
4749 fi
4750
4751 if test $ac_cv_header_stdc = yes; then
4752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4753 if test "$cross_compiling" = yes; then :
4754 :
4755 else
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 #include <ctype.h>
4759 #include <stdlib.h>
4760 #if ((' ' & 0x0FF) == 0x020)
4761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4763 #else
4764 # define ISLOWER(c) \
4765 (('a' <= (c) && (c) <= 'i') \
4766 || ('j' <= (c) && (c) <= 'r') \
4767 || ('s' <= (c) && (c) <= 'z'))
4768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4769 #endif
4770
4771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4772 int
4773 main ()
4774 {
4775 int i;
4776 for (i = 0; i < 256; i++)
4777 if (XOR (islower (i), ISLOWER (i))
4778 || toupper (i) != TOUPPER (i))
4779 return 2;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_run "$LINENO"; then :
4784
4785 else
4786 ac_cv_header_stdc=no
4787 fi
4788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4789 conftest.$ac_objext conftest.beam conftest.$ac_ext
4790 fi
4791
4792 fi
4793 fi
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4795 $as_echo "$ac_cv_header_stdc" >&6; }
4796 if test $ac_cv_header_stdc = yes; then
4797
4798 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4799
4800 fi
4801
4802 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4803 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4804 inttypes.h stdint.h unistd.h
4805 do :
4806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4808 "
4809 eval as_val=\$$as_ac_Header
4810 if test "x$as_val" = x""yes; then :
4811 cat >>confdefs.h <<_ACEOF
4812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4813 _ACEOF
4814
4815 fi
4816
4817 done
4818
4819
4820
4821 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4822 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4823 MINIX=yes
4824 else
4825 MINIX=
4826 fi
4827
4828
4829 if test "$MINIX" = yes; then
4830
4831 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4832
4833
4834 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4835
4836
4837 $as_echo "#define _MINIX 1" >>confdefs.h
4838
4839 fi
4840
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4844 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849
4850 # define __EXTENSIONS__ 1
4851 $ac_includes_default
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 if ac_fn_c_try_compile "$LINENO"; then :
4861 ac_cv_safe_to_define___extensions__=yes
4862 else
4863 ac_cv_safe_to_define___extensions__=no
4864 fi
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 fi
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4868 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4869 test $ac_cv_safe_to_define___extensions__ = yes &&
4870 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4871
4872 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4873
4874 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4875
4876 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4877
4878 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4879
4880
4881
4882
4883
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}ar; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if test "${ac_cv_prog_AR+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$AR"; then
4893 ac_cv_prog_AR="$AR" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_AR="${ac_tool_prefix}ar"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910 fi
4911 fi
4912 AR=$ac_cv_prog_AR
4913 if test -n "$AR"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4915 $as_echo "$AR" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 fi
4920
4921
4922 fi
4923 if test -z "$ac_cv_prog_AR"; then
4924 ac_ct_AR=$AR
4925 # Extract the first word of "ar", so it can be a program name with args.
4926 set dummy ar; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$ac_ct_AR"; then
4933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_ac_ct_AR="ar"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4945 fi
4946 done
4947 done
4948 IFS=$as_save_IFS
4949
4950 fi
4951 fi
4952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4953 if test -n "$ac_ct_AR"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4955 $as_echo "$ac_ct_AR" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4959 fi
4960
4961 if test "x$ac_ct_AR" = x; then
4962 AR=""
4963 else
4964 case $cross_compiling:$ac_tool_warned in
4965 yes:)
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968 ac_tool_warned=yes ;;
4969 esac
4970 AR=$ac_ct_AR
4971 fi
4972 else
4973 AR="$ac_cv_prog_AR"
4974 fi
4975
4976 if test -n "$ac_tool_prefix"; then
4977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -n "$RANLIB"; then
4985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998 done
4999 done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 RANLIB=$ac_cv_prog_RANLIB
5005 if test -n "$RANLIB"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5007 $as_echo "$RANLIB" >&6; }
5008 else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013
5014 fi
5015 if test -z "$ac_cv_prog_RANLIB"; then
5016 ac_ct_RANLIB=$RANLIB
5017 # Extract the first word of "ranlib", so it can be a program name with args.
5018 set dummy ranlib; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$ac_ct_RANLIB"; then
5025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_ac_ct_RANLIB="ranlib"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038 done
5039 done
5040 IFS=$as_save_IFS
5041
5042 fi
5043 fi
5044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5045 if test -n "$ac_ct_RANLIB"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5047 $as_echo "$ac_ct_RANLIB" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052
5053 if test "x$ac_ct_RANLIB" = x; then
5054 RANLIB=":"
5055 else
5056 case $cross_compiling:$ac_tool_warned in
5057 yes:)
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5060 ac_tool_warned=yes ;;
5061 esac
5062 RANLIB=$ac_ct_RANLIB
5063 fi
5064 else
5065 RANLIB="$ac_cv_prog_RANLIB"
5066 fi
5067
5068
5069 # Check whether --enable-shared was given.
5070 if test "${enable_shared+set}" = set; then :
5071 enableval=$enable_shared; p=${PACKAGE-default}
5072 case $enableval in
5073 yes) enable_shared=yes ;;
5074 no) enable_shared=no ;;
5075 *)
5076 enable_shared=no
5077 # Look at the argument we got. We use all the common list separators.
5078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5079 for pkg in $enableval; do
5080 IFS="$lt_save_ifs"
5081 if test "X$pkg" = "X$p"; then
5082 enable_shared=yes
5083 fi
5084 done
5085 IFS="$lt_save_ifs"
5086 ;;
5087 esac
5088 else
5089 enable_shared=no
5090 fi
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 case `pwd` in
5102 *\ * | *\ *)
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5104 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5105 esac
5106
5107
5108
5109 macro_version='2.2.7a'
5110 macro_revision='1.3134'
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124 ltmain="$ac_aux_dir/ltmain.sh"
5125
5126 # Backslashify metacharacters that are still active within
5127 # double-quoted strings.
5128 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5129
5130 # Same as above, but do not quote variable references.
5131 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5132
5133 # Sed substitution to delay expansion of an escaped shell variable in a
5134 # double_quote_subst'ed string.
5135 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5136
5137 # Sed substitution to delay expansion of an escaped single quote.
5138 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5139
5140 # Sed substitution to avoid accidental globbing in evaled expressions
5141 no_glob_subst='s/\*/\\\*/g'
5142
5143 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5144 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5145 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5148 $as_echo_n "checking how to print strings... " >&6; }
5149 # Test print first, because it will be a builtin if present.
5150 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5151 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5152 ECHO='print -r --'
5153 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5154 ECHO='printf %s\n'
5155 else
5156 # Use this function as a fallback that always works.
5157 func_fallback_echo ()
5158 {
5159 eval 'cat <<_LTECHO_EOF
5160 $1
5161 _LTECHO_EOF'
5162 }
5163 ECHO='func_fallback_echo'
5164 fi
5165
5166 # func_echo_all arg...
5167 # Invoke $ECHO with all args, space-separated.
5168 func_echo_all ()
5169 {
5170 $ECHO ""
5171 }
5172
5173 case "$ECHO" in
5174 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5175 $as_echo "printf" >&6; } ;;
5176 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5177 $as_echo "print -r" >&6; } ;;
5178 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5179 $as_echo "cat" >&6; } ;;
5180 esac
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5196 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5197 if test "${ac_cv_path_SED+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5201 for ac_i in 1 2 3 4 5 6 7; do
5202 ac_script="$ac_script$as_nl$ac_script"
5203 done
5204 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5205 { ac_script=; unset ac_script;}
5206 if test -z "$SED"; then
5207 ac_path_SED_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5211 do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_prog in sed gsed; do
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5217 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5218 # Check for GNU ac_path_SED and select it if it is found.
5219 # Check for GNU $ac_path_SED
5220 case `"$ac_path_SED" --version 2>&1` in
5221 *GNU*)
5222 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5223 *)
5224 ac_count=0
5225 $as_echo_n 0123456789 >"conftest.in"
5226 while :
5227 do
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo '' >> "conftest.nl"
5232 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_SED_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_SED="$ac_path_SED"
5238 ac_path_SED_max=$ac_count
5239 fi
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244 esac
5245
5246 $ac_path_SED_found && break 3
5247 done
5248 done
5249 done
5250 IFS=$as_save_IFS
5251 if test -z "$ac_cv_path_SED"; then
5252 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5253 fi
5254 else
5255 ac_cv_path_SED=$SED
5256 fi
5257
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5260 $as_echo "$ac_cv_path_SED" >&6; }
5261 SED="$ac_cv_path_SED"
5262 rm -f conftest.sed
5263
5264 test -z "$SED" && SED=sed
5265 Xsed="$SED -e 1s/^X//"
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5278 $as_echo_n "checking for fgrep... " >&6; }
5279 if test "${ac_cv_path_FGREP+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5283 then ac_cv_path_FGREP="$GREP -F"
5284 else
5285 if test -z "$FGREP"; then
5286 ac_path_FGREP_found=false
5287 # Loop through the user's path and test for each of PROGNAME-LIST
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_prog in fgrep; do
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5296 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5297 # Check for GNU ac_path_FGREP and select it if it is found.
5298 # Check for GNU $ac_path_FGREP
5299 case `"$ac_path_FGREP" --version 2>&1` in
5300 *GNU*)
5301 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5302 *)
5303 ac_count=0
5304 $as_echo_n 0123456789 >"conftest.in"
5305 while :
5306 do
5307 cat "conftest.in" "conftest.in" >"conftest.tmp"
5308 mv "conftest.tmp" "conftest.in"
5309 cp "conftest.in" "conftest.nl"
5310 $as_echo 'FGREP' >> "conftest.nl"
5311 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5313 as_fn_arith $ac_count + 1 && ac_count=$as_val
5314 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5315 # Best one so far, save it but keep looking for a better one
5316 ac_cv_path_FGREP="$ac_path_FGREP"
5317 ac_path_FGREP_max=$ac_count
5318 fi
5319 # 10*(2^10) chars as input seems more than enough
5320 test $ac_count -gt 10 && break
5321 done
5322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5323 esac
5324
5325 $ac_path_FGREP_found && break 3
5326 done
5327 done
5328 done
5329 IFS=$as_save_IFS
5330 if test -z "$ac_cv_path_FGREP"; then
5331 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5332 fi
5333 else
5334 ac_cv_path_FGREP=$FGREP
5335 fi
5336
5337 fi
5338 fi
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5340 $as_echo "$ac_cv_path_FGREP" >&6; }
5341 FGREP="$ac_cv_path_FGREP"
5342
5343
5344 test -z "$GREP" && GREP=grep
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 # Check whether --with-gnu-ld was given.
5365 if test "${with_gnu_ld+set}" = set; then :
5366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5367 else
5368 with_gnu_ld=no
5369 fi
5370
5371 ac_prog=ld
5372 if test "$GCC" = yes; then
5373 # Check if gcc -print-prog-name=ld gives a path.
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5375 $as_echo_n "checking for ld used by $CC... " >&6; }
5376 case $host in
5377 *-*-mingw*)
5378 # gcc leaves a trailing carriage return which upsets mingw
5379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5380 *)
5381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5382 esac
5383 case $ac_prog in
5384 # Accept absolute paths.
5385 [\\/]* | ?:[\\/]*)
5386 re_direlt='/[^/][^/]*/\.\./'
5387 # Canonicalize the pathname of ld
5388 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5389 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5390 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5391 done
5392 test -z "$LD" && LD="$ac_prog"
5393 ;;
5394 "")
5395 # If it fails, then pretend we aren't using GCC.
5396 ac_prog=ld
5397 ;;
5398 *)
5399 # If it is relative, then search for the first ld in PATH.
5400 with_gnu_ld=unknown
5401 ;;
5402 esac
5403 elif test "$with_gnu_ld" = yes; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5405 $as_echo_n "checking for GNU ld... " >&6; }
5406 else
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5408 $as_echo_n "checking for non-GNU ld... " >&6; }
5409 fi
5410 if test "${lt_cv_path_LD+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -z "$LD"; then
5414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5415 for ac_dir in $PATH; do
5416 IFS="$lt_save_ifs"
5417 test -z "$ac_dir" && ac_dir=.
5418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5419 lt_cv_path_LD="$ac_dir/$ac_prog"
5420 # Check to see if the program is GNU ld. I'd rather use --version,
5421 # but apparently some variants of GNU ld only accept -v.
5422 # Break only if it was the GNU/non-GNU ld that we prefer.
5423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5424 *GNU* | *'with BFD'*)
5425 test "$with_gnu_ld" != no && break
5426 ;;
5427 *)
5428 test "$with_gnu_ld" != yes && break
5429 ;;
5430 esac
5431 fi
5432 done
5433 IFS="$lt_save_ifs"
5434 else
5435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5436 fi
5437 fi
5438
5439 LD="$lt_cv_path_LD"
5440 if test -n "$LD"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5442 $as_echo "$LD" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5449 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5450 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5454 case `$LD -v 2>&1 </dev/null` in
5455 *GNU* | *'with BFD'*)
5456 lt_cv_prog_gnu_ld=yes
5457 ;;
5458 *)
5459 lt_cv_prog_gnu_ld=no
5460 ;;
5461 esac
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5464 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5465 with_gnu_ld=$lt_cv_prog_gnu_ld
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5476 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5477 if test "${lt_cv_path_NM+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 if test -n "$NM"; then
5481 # Let the user override the test.
5482 lt_cv_path_NM="$NM"
5483 else
5484 lt_nm_to_check="${ac_tool_prefix}nm"
5485 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5486 lt_nm_to_check="$lt_nm_to_check nm"
5487 fi
5488 for lt_tmp_nm in $lt_nm_to_check; do
5489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5490 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5491 IFS="$lt_save_ifs"
5492 test -z "$ac_dir" && ac_dir=.
5493 tmp_nm="$ac_dir/$lt_tmp_nm"
5494 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5495 # Check to see if the nm accepts a BSD-compat flag.
5496 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5497 # nm: unknown option "B" ignored
5498 # Tru64's nm complains that /dev/null is an invalid object file
5499 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5500 */dev/null* | *'Invalid file or object type'*)
5501 lt_cv_path_NM="$tmp_nm -B"
5502 break
5503 ;;
5504 *)
5505 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5506 */dev/null*)
5507 lt_cv_path_NM="$tmp_nm -p"
5508 break
5509 ;;
5510 *)
5511 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5512 continue # so that we can try to find one that supports BSD flags
5513 ;;
5514 esac
5515 ;;
5516 esac
5517 fi
5518 done
5519 IFS="$lt_save_ifs"
5520 done
5521 : ${lt_cv_path_NM=no}
5522 fi
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5525 $as_echo "$lt_cv_path_NM" >&6; }
5526 if test "$lt_cv_path_NM" != "no"; then
5527 NM="$lt_cv_path_NM"
5528 else
5529 # Didn't find any BSD compatible name lister, look for dumpbin.
5530 if test -n "$DUMPBIN"; then :
5531 # Let the user override the test.
5532 else
5533 if test -n "$ac_tool_prefix"; then
5534 for ac_prog in dumpbin "link -dump"
5535 do
5536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$DUMPBIN"; then
5544 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557 done
5558 done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 DUMPBIN=$ac_cv_prog_DUMPBIN
5564 if test -n "$DUMPBIN"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5566 $as_echo "$DUMPBIN" >&6; }
5567 else
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573 test -n "$DUMPBIN" && break
5574 done
5575 fi
5576 if test -z "$DUMPBIN"; then
5577 ac_ct_DUMPBIN=$DUMPBIN
5578 for ac_prog in dumpbin "link -dump"
5579 do
5580 # Extract the first word of "$ac_prog", so it can be a program name with args.
5581 set dummy $ac_prog; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if test -n "$ac_ct_DUMPBIN"; then
5588 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5589 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5608 if test -n "$ac_ct_DUMPBIN"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5610 $as_echo "$ac_ct_DUMPBIN" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 test -n "$ac_ct_DUMPBIN" && break
5618 done
5619
5620 if test "x$ac_ct_DUMPBIN" = x; then
5621 DUMPBIN=":"
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624 yes:)
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5628 esac
5629 DUMPBIN=$ac_ct_DUMPBIN
5630 fi
5631 fi
5632
5633 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5634 *COFF*)
5635 DUMPBIN="$DUMPBIN -symbols"
5636 ;;
5637 *)
5638 DUMPBIN=:
5639 ;;
5640 esac
5641 fi
5642
5643 if test "$DUMPBIN" != ":"; then
5644 NM="$DUMPBIN"
5645 fi
5646 fi
5647 test -z "$NM" && NM=nm
5648
5649
5650
5651
5652
5653
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5655 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5656 if test "${lt_cv_nm_interface+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 lt_cv_nm_interface="BSD nm"
5660 echo "int some_variable = 0;" > conftest.$ac_ext
5661 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5662 (eval "$ac_compile" 2>conftest.err)
5663 cat conftest.err >&5
5664 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5665 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5666 cat conftest.err >&5
5667 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5668 cat conftest.out >&5
5669 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5670 lt_cv_nm_interface="MS dumpbin"
5671 fi
5672 rm -f conftest*
5673 fi
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5675 $as_echo "$lt_cv_nm_interface" >&6; }
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5678 $as_echo_n "checking whether ln -s works... " >&6; }
5679 LN_S=$as_ln_s
5680 if test "$LN_S" = "ln -s"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5682 $as_echo "yes" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5685 $as_echo "no, using $LN_S" >&6; }
5686 fi
5687
5688 # find the maximum length of command line arguments
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5690 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5691 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 i=0
5695 teststring="ABCD"
5696
5697 case $build_os in
5698 msdosdjgpp*)
5699 # On DJGPP, this test can blow up pretty badly due to problems in libc
5700 # (any single argument exceeding 2000 bytes causes a buffer overrun
5701 # during glob expansion). Even if it were fixed, the result of this
5702 # check would be larger than it should be.
5703 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5704 ;;
5705
5706 gnu*)
5707 # Under GNU Hurd, this test is not required because there is
5708 # no limit to the length of command line arguments.
5709 # Libtool will interpret -1 as no limit whatsoever
5710 lt_cv_sys_max_cmd_len=-1;
5711 ;;
5712
5713 cygwin* | mingw* | cegcc*)
5714 # On Win9x/ME, this test blows up -- it succeeds, but takes
5715 # about 5 minutes as the teststring grows exponentially.
5716 # Worse, since 9x/ME are not pre-emptively multitasking,
5717 # you end up with a "frozen" computer, even though with patience
5718 # the test eventually succeeds (with a max line length of 256k).
5719 # Instead, let's just punt: use the minimum linelength reported by
5720 # all of the supported platforms: 8192 (on NT/2K/XP).
5721 lt_cv_sys_max_cmd_len=8192;
5722 ;;
5723
5724 mint*)
5725 # On MiNT this can take a long time and run out of memory.
5726 lt_cv_sys_max_cmd_len=8192;
5727 ;;
5728
5729 amigaos*)
5730 # On AmigaOS with pdksh, this test takes hours, literally.
5731 # So we just punt and use a minimum line length of 8192.
5732 lt_cv_sys_max_cmd_len=8192;
5733 ;;
5734
5735 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5736 # This has been around since 386BSD, at least. Likely further.
5737 if test -x /sbin/sysctl; then
5738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5739 elif test -x /usr/sbin/sysctl; then
5740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5741 else
5742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5743 fi
5744 # And add a safety zone
5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747 ;;
5748
5749 interix*)
5750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5751 lt_cv_sys_max_cmd_len=196608
5752 ;;
5753
5754 osf*)
5755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5757 # nice to cause kernel panics so lets avoid the loop below.
5758 # First set a reasonable default.
5759 lt_cv_sys_max_cmd_len=16384
5760 #
5761 if test -x /sbin/sysconfig; then
5762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5764 esac
5765 fi
5766 ;;
5767 sco3.2v5*)
5768 lt_cv_sys_max_cmd_len=102400
5769 ;;
5770 sysv5* | sco5v6* | sysv4.2uw2*)
5771 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5772 if test -n "$kargmax"; then
5773 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5774 else
5775 lt_cv_sys_max_cmd_len=32768
5776 fi
5777 ;;
5778 *)
5779 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5780 if test -n "$lt_cv_sys_max_cmd_len"; then
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5783 else
5784 # Make teststring a little bigger before we do anything with it.
5785 # a 1K string should be a reasonable start.
5786 for i in 1 2 3 4 5 6 7 8 ; do
5787 teststring=$teststring$teststring
5788 done
5789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5790 # If test is not a shell built-in, we'll probably end up computing a
5791 # maximum length that is only half of the actual maximum length, but
5792 # we can't tell.
5793 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5795 test $i != 17 # 1/2 MB should be enough
5796 do
5797 i=`expr $i + 1`
5798 teststring=$teststring$teststring
5799 done
5800 # Only check the string length outside the loop.
5801 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5802 teststring=
5803 # Add a significant safety factor because C++ compilers can tack on
5804 # massive amounts of additional arguments before passing them to the
5805 # linker. It appears as though 1/2 is a usable value.
5806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5807 fi
5808 ;;
5809 esac
5810
5811 fi
5812
5813 if test -n $lt_cv_sys_max_cmd_len ; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5815 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5818 $as_echo "none" >&6; }
5819 fi
5820 max_cmd_len=$lt_cv_sys_max_cmd_len
5821
5822
5823
5824
5825
5826
5827 : ${CP="cp -f"}
5828 : ${MV="mv -f"}
5829 : ${RM="rm -f"}
5830
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5832 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5833 # Try some XSI features
5834 xsi_shell=no
5835 ( _lt_dummy="a/b/c"
5836 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5837 = c,a/b,, \
5838 && eval 'test $(( 1 + 1 )) -eq 2 \
5839 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5840 && xsi_shell=yes
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5842 $as_echo "$xsi_shell" >&6; }
5843
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5846 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5847 lt_shell_append=no
5848 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5849 >/dev/null 2>&1 \
5850 && lt_shell_append=yes
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5852 $as_echo "$lt_shell_append" >&6; }
5853
5854
5855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5856 lt_unset=unset
5857 else
5858 lt_unset=false
5859 fi
5860
5861
5862
5863
5864
5865 # test EBCDIC or ASCII
5866 case `echo X|tr X '\101'` in
5867 A) # ASCII based system
5868 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5869 lt_SP2NL='tr \040 \012'
5870 lt_NL2SP='tr \015\012 \040\040'
5871 ;;
5872 *) # EBCDIC based system
5873 lt_SP2NL='tr \100 \n'
5874 lt_NL2SP='tr \r\n \100\100'
5875 ;;
5876 esac
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5887 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5888 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 lt_cv_ld_reload_flag='-r'
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5894 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5895 reload_flag=$lt_cv_ld_reload_flag
5896 case $reload_flag in
5897 "" | " "*) ;;
5898 *) reload_flag=" $reload_flag" ;;
5899 esac
5900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5901 case $host_os in
5902 darwin*)
5903 if test "$GCC" = yes; then
5904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5905 else
5906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5907 fi
5908 ;;
5909 esac
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919 if test -n "$ac_tool_prefix"; then
5920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$OBJDUMP"; then
5928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 OBJDUMP=$ac_cv_prog_OBJDUMP
5948 if test -n "$OBJDUMP"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5950 $as_echo "$OBJDUMP" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956
5957 fi
5958 if test -z "$ac_cv_prog_OBJDUMP"; then
5959 ac_ct_OBJDUMP=$OBJDUMP
5960 # Extract the first word of "objdump", so it can be a program name with args.
5961 set dummy objdump; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$ac_ct_OBJDUMP"; then
5968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5988 if test -n "$ac_ct_OBJDUMP"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5990 $as_echo "$ac_ct_OBJDUMP" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996 if test "x$ac_ct_OBJDUMP" = x; then
5997 OBJDUMP="false"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005 OBJDUMP=$ac_ct_OBJDUMP
6006 fi
6007 else
6008 OBJDUMP="$ac_cv_prog_OBJDUMP"
6009 fi
6010
6011 test -z "$OBJDUMP" && OBJDUMP=objdump
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6022 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6023 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 lt_cv_file_magic_cmd='$MAGIC_CMD'
6027 lt_cv_file_magic_test_file=
6028 lt_cv_deplibs_check_method='unknown'
6029 # Need to set the preceding variable on all platforms that support
6030 # interlibrary dependencies.
6031 # 'none' -- dependencies not supported.
6032 # `unknown' -- same as none, but documents that we really don't know.
6033 # 'pass_all' -- all dependencies passed with no checks.
6034 # 'test_compile' -- check by making test program.
6035 # 'file_magic [[regex]]' -- check by looking for files in library path
6036 # which responds to the $file_magic_cmd with a given extended regex.
6037 # If you have `file' or equivalent on your system and you're not sure
6038 # whether `pass_all' will *always* work, you probably want this one.
6039
6040 case $host_os in
6041 aix[4-9]*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 beos*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048
6049 bsdi[45]*)
6050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6051 lt_cv_file_magic_cmd='/usr/bin/file -L'
6052 lt_cv_file_magic_test_file=/shlib/libc.so
6053 ;;
6054
6055 cygwin*)
6056 # func_win32_libid is a shell function defined in ltmain.sh
6057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6058 lt_cv_file_magic_cmd='func_win32_libid'
6059 ;;
6060
6061 mingw* | pw32*)
6062 # Base MSYS/MinGW do not provide the 'file' command needed by
6063 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6064 # unless we find 'file', for example because we are cross-compiling.
6065 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6066 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6068 lt_cv_file_magic_cmd='func_win32_libid'
6069 else
6070 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6071 lt_cv_file_magic_cmd='$OBJDUMP -f'
6072 fi
6073 ;;
6074
6075 cegcc*)
6076 # use the weaker test based on 'objdump'. See mingw*.
6077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6078 lt_cv_file_magic_cmd='$OBJDUMP -f'
6079 ;;
6080
6081 darwin* | rhapsody*)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084
6085 freebsd* | dragonfly*)
6086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6087 case $host_cpu in
6088 i*86 )
6089 # Not sure whether the presence of OpenBSD here was a mistake.
6090 # Let's accept both of them until this is cleared up.
6091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6092 lt_cv_file_magic_cmd=/usr/bin/file
6093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6094 ;;
6095 esac
6096 else
6097 lt_cv_deplibs_check_method=pass_all
6098 fi
6099 ;;
6100
6101 gnu*)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104
6105 haiku*)
6106 lt_cv_deplibs_check_method=pass_all
6107 ;;
6108
6109 hpux10.20* | hpux11*)
6110 lt_cv_file_magic_cmd=/usr/bin/file
6111 case $host_cpu in
6112 ia64*)
6113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6115 ;;
6116 hppa*64*)
6117 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]'
6118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6119 ;;
6120 *)
6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6123 ;;
6124 esac
6125 ;;
6126
6127 interix[3-9]*)
6128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6130 ;;
6131
6132 irix5* | irix6* | nonstopux*)
6133 case $LD in
6134 *-32|*"-32 ") libmagic=32-bit;;
6135 *-n32|*"-n32 ") libmagic=N32;;
6136 *-64|*"-64 ") libmagic=64-bit;;
6137 *) libmagic=never-match;;
6138 esac
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
6141
6142 # This must be Linux ELF.
6143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146
6147 netbsd*)
6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150 else
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6152 fi
6153 ;;
6154
6155 newos6*)
6156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157 lt_cv_file_magic_cmd=/usr/bin/file
6158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6159 ;;
6160
6161 *nto* | *qnx*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 openbsd*)
6166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6168 else
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6170 fi
6171 ;;
6172
6173 osf3* | osf4* | osf5*)
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
6176
6177 rdos*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
6180
6181 solaris*)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184
6185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6186 lt_cv_deplibs_check_method=pass_all
6187 ;;
6188
6189 sysv4 | sysv4.3*)
6190 case $host_vendor in
6191 motorola)
6192 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]'
6193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6194 ;;
6195 ncr)
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
6198 sequent)
6199 lt_cv_file_magic_cmd='/bin/file'
6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6201 ;;
6202 sni)
6203 lt_cv_file_magic_cmd='/bin/file'
6204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6205 lt_cv_file_magic_test_file=/lib/libc.so
6206 ;;
6207 siemens)
6208 lt_cv_deplibs_check_method=pass_all
6209 ;;
6210 pc)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213 esac
6214 ;;
6215
6216 tpf*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219 esac
6220
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6223 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6224 file_magic_cmd=$lt_cv_file_magic_cmd
6225 deplibs_check_method=$lt_cv_deplibs_check_method
6226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239 if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}ar; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if test "${ac_cv_prog_AR+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -n "$AR"; then
6248 ac_cv_prog_AR="$AR" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_AR="${ac_tool_prefix}ar"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 AR=$ac_cv_prog_AR
6268 if test -n "$AR"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6270 $as_echo "$AR" >&6; }
6271 else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276
6277 fi
6278 if test -z "$ac_cv_prog_AR"; then
6279 ac_ct_AR=$AR
6280 # Extract the first word of "ar", so it can be a program name with args.
6281 set dummy ar; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 if test -n "$ac_ct_AR"; then
6288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_ac_ct_AR="ar"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6308 if test -n "$ac_ct_AR"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6310 $as_echo "$ac_ct_AR" >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316 if test "x$ac_ct_AR" = x; then
6317 AR="false"
6318 else
6319 case $cross_compiling:$ac_tool_warned in
6320 yes:)
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325 AR=$ac_ct_AR
6326 fi
6327 else
6328 AR="$ac_cv_prog_AR"
6329 fi
6330
6331 test -z "$AR" && AR=ar
6332 test -z "$AR_FLAGS" && AR_FLAGS=cru
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 if test -n "$ac_tool_prefix"; then
6345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6346 set dummy ${ac_tool_prefix}strip; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_STRIP+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$STRIP"; then
6353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 STRIP=$ac_cv_prog_STRIP
6373 if test -n "$STRIP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6375 $as_echo "$STRIP" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381
6382 fi
6383 if test -z "$ac_cv_prog_STRIP"; then
6384 ac_ct_STRIP=$STRIP
6385 # Extract the first word of "strip", so it can be a program name with args.
6386 set dummy strip; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -n "$ac_ct_STRIP"; then
6393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_ac_ct_STRIP="strip"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6405 fi
6406 done
6407 done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6413 if test -n "$ac_ct_STRIP"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6415 $as_echo "$ac_ct_STRIP" >&6; }
6416 else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6419 fi
6420
6421 if test "x$ac_ct_STRIP" = x; then
6422 STRIP=":"
6423 else
6424 case $cross_compiling:$ac_tool_warned in
6425 yes:)
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428 ac_tool_warned=yes ;;
6429 esac
6430 STRIP=$ac_ct_STRIP
6431 fi
6432 else
6433 STRIP="$ac_cv_prog_STRIP"
6434 fi
6435
6436 test -z "$STRIP" && STRIP=:
6437
6438
6439
6440
6441
6442
6443 if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$RANLIB"; then
6452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 RANLIB=$ac_cv_prog_RANLIB
6472 if test -n "$RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6474 $as_echo "$RANLIB" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480
6481 fi
6482 if test -z "$ac_cv_prog_RANLIB"; then
6483 ac_ct_RANLIB=$RANLIB
6484 # Extract the first word of "ranlib", so it can be a program name with args.
6485 set dummy ranlib; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 if test -n "$ac_ct_RANLIB"; then
6492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_ac_ct_RANLIB="ranlib"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6512 if test -n "$ac_ct_RANLIB"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6514 $as_echo "$ac_ct_RANLIB" >&6; }
6515 else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520 if test "x$ac_ct_RANLIB" = x; then
6521 RANLIB=":"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6528 esac
6529 RANLIB=$ac_ct_RANLIB
6530 fi
6531 else
6532 RANLIB="$ac_cv_prog_RANLIB"
6533 fi
6534
6535 test -z "$RANLIB" && RANLIB=:
6536
6537
6538
6539
6540
6541
6542 # Determine commands to create old-style static archives.
6543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6544 old_postinstall_cmds='chmod 644 $oldlib'
6545 old_postuninstall_cmds=
6546
6547 if test -n "$RANLIB"; then
6548 case $host_os in
6549 openbsd*)
6550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6551 ;;
6552 *)
6553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6554 ;;
6555 esac
6556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6557 fi
6558
6559 case $host_os in
6560 darwin*)
6561 lock_old_archive_extraction=yes ;;
6562 *)
6563 lock_old_archive_extraction=no ;;
6564 esac
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604 # If no C compiler was specified, use CC.
6605 LTCC=${LTCC-"$CC"}
6606
6607 # If no C compiler flags were specified, use CFLAGS.
6608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6609
6610 # Allow CC to be a program name with arguments.
6611 compiler=$CC
6612
6613
6614 # Check for command to grab the raw symbol name followed by C symbol from nm.
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6616 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620
6621 # These are sane defaults that work on at least a few old systems.
6622 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6623
6624 # Character class describing NM global symbol codes.
6625 symcode='[BCDEGRST]'
6626
6627 # Regexp to match symbols that can be accessed directly from C.
6628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6629
6630 # Define system-specific variables.
6631 case $host_os in
6632 aix*)
6633 symcode='[BCDT]'
6634 ;;
6635 cygwin* | mingw* | pw32* | cegcc*)
6636 symcode='[ABCDGISTW]'
6637 ;;
6638 hpux*)
6639 if test "$host_cpu" = ia64; then
6640 symcode='[ABCDEGRST]'
6641 fi
6642 ;;
6643 irix* | nonstopux*)
6644 symcode='[BCDEGRST]'
6645 ;;
6646 osf*)
6647 symcode='[BCDEGQRST]'
6648 ;;
6649 solaris*)
6650 symcode='[BDRT]'
6651 ;;
6652 sco3.2v5*)
6653 symcode='[DT]'
6654 ;;
6655 sysv4.2uw2*)
6656 symcode='[DT]'
6657 ;;
6658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6659 symcode='[ABDT]'
6660 ;;
6661 sysv4)
6662 symcode='[DFNSTU]'
6663 ;;
6664 esac
6665
6666 # If we're using GNU nm, then use its standard symbol codes.
6667 case `$NM -V 2>&1` in
6668 *GNU* | *'with BFD'*)
6669 symcode='[ABCDGIRSTW]' ;;
6670 esac
6671
6672 # Transform an extracted symbol line into a proper C declaration.
6673 # Some systems (esp. on ia64) link data and code symbols differently,
6674 # so use this general approach.
6675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6676
6677 # Transform an extracted symbol line into symbol name and symbol address
6678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6679 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'"
6680
6681 # Handle CRLF in mingw tool chain
6682 opt_cr=
6683 case $build_os in
6684 mingw*)
6685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6686 ;;
6687 esac
6688
6689 # Try without a prefix underscore, then with it.
6690 for ac_symprfx in "" "_"; do
6691
6692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6693 symxfrm="\\1 $ac_symprfx\\2 \\2"
6694
6695 # Write the raw and C identifiers.
6696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6697 # Fake it for dumpbin and say T for any non-static function
6698 # and D for any global variable.
6699 # Also find C++ and __fastcall symbols from MSVC++,
6700 # which start with @ or ?.
6701 lt_cv_sys_global_symbol_pipe="$AWK '"\
6702 " {last_section=section; section=\$ 3};"\
6703 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6704 " \$ 0!~/External *\|/{next};"\
6705 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6706 " {if(hide[section]) next};"\
6707 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6708 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6709 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6710 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6711 " ' prfx=^$ac_symprfx"
6712 else
6713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6714 fi
6715
6716 # Check to see that the pipe works correctly.
6717 pipe_works=no
6718
6719 rm -f conftest*
6720 cat > conftest.$ac_ext <<_LT_EOF
6721 #ifdef __cplusplus
6722 extern "C" {
6723 #endif
6724 char nm_test_var;
6725 void nm_test_func(void);
6726 void nm_test_func(void){}
6727 #ifdef __cplusplus
6728 }
6729 #endif
6730 int main(){nm_test_var='a';nm_test_func();return(0);}
6731 _LT_EOF
6732
6733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6734 (eval $ac_compile) 2>&5
6735 ac_status=$?
6736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737 test $ac_status = 0; }; then
6738 # Now try to grab the symbols.
6739 nlist=conftest.nm
6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6741 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6742 ac_status=$?
6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; } && test -s "$nlist"; then
6745 # Try sorting and uniquifying the output.
6746 if sort "$nlist" | uniq > "$nlist"T; then
6747 mv -f "$nlist"T "$nlist"
6748 else
6749 rm -f "$nlist"T
6750 fi
6751
6752 # Make sure that we snagged all the symbols we need.
6753 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6754 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6755 cat <<_LT_EOF > conftest.$ac_ext
6756 #ifdef __cplusplus
6757 extern "C" {
6758 #endif
6759
6760 _LT_EOF
6761 # Now generate the symbol file.
6762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6763
6764 cat <<_LT_EOF >> conftest.$ac_ext
6765
6766 /* The mapping between symbol names and symbols. */
6767 const struct {
6768 const char *name;
6769 void *address;
6770 }
6771 lt__PROGRAM__LTX_preloaded_symbols[] =
6772 {
6773 { "@PROGRAM@", (void *) 0 },
6774 _LT_EOF
6775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6776 cat <<\_LT_EOF >> conftest.$ac_ext
6777 {0, (void *) 0}
6778 };
6779
6780 /* This works around a problem in FreeBSD linker */
6781 #ifdef FREEBSD_WORKAROUND
6782 static const void *lt_preloaded_setup() {
6783 return lt__PROGRAM__LTX_preloaded_symbols;
6784 }
6785 #endif
6786
6787 #ifdef __cplusplus
6788 }
6789 #endif
6790 _LT_EOF
6791 # Now try linking the two files.
6792 mv conftest.$ac_objext conftstm.$ac_objext
6793 lt_save_LIBS="$LIBS"
6794 lt_save_CFLAGS="$CFLAGS"
6795 LIBS="conftstm.$ac_objext"
6796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6798 (eval $ac_link) 2>&5
6799 ac_status=$?
6800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6802 pipe_works=yes
6803 fi
6804 LIBS="$lt_save_LIBS"
6805 CFLAGS="$lt_save_CFLAGS"
6806 else
6807 echo "cannot find nm_test_func in $nlist" >&5
6808 fi
6809 else
6810 echo "cannot find nm_test_var in $nlist" >&5
6811 fi
6812 else
6813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6814 fi
6815 else
6816 echo "$progname: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6818 fi
6819 rm -rf conftest* conftst*
6820
6821 # Do not use the global_symbol_pipe unless it works.
6822 if test "$pipe_works" = yes; then
6823 break
6824 else
6825 lt_cv_sys_global_symbol_pipe=
6826 fi
6827 done
6828
6829 fi
6830
6831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6832 lt_cv_sys_global_symbol_to_cdecl=
6833 fi
6834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6836 $as_echo "failed" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6839 $as_echo "ok" >&6; }
6840 fi
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863 # Check whether --enable-libtool-lock was given.
6864 if test "${enable_libtool_lock+set}" = set; then :
6865 enableval=$enable_libtool_lock;
6866 fi
6867
6868 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6869
6870 # Some flags need to be propagated to the compiler or linker for good
6871 # libtool support.
6872 case $host in
6873 ia64-*-hpux*)
6874 # Find out which ABI we are using.
6875 echo 'int i;' > conftest.$ac_ext
6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6877 (eval $ac_compile) 2>&5
6878 ac_status=$?
6879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880 test $ac_status = 0; }; then
6881 case `/usr/bin/file conftest.$ac_objext` in
6882 *ELF-32*)
6883 HPUX_IA64_MODE="32"
6884 ;;
6885 *ELF-64*)
6886 HPUX_IA64_MODE="64"
6887 ;;
6888 esac
6889 fi
6890 rm -rf conftest*
6891 ;;
6892 *-*-irix6*)
6893 # Find out which ABI we are using.
6894 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896 (eval $ac_compile) 2>&5
6897 ac_status=$?
6898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899 test $ac_status = 0; }; then
6900 if test "$lt_cv_prog_gnu_ld" = yes; then
6901 case `/usr/bin/file conftest.$ac_objext` in
6902 *32-bit*)
6903 LD="${LD-ld} -melf32bsmip"
6904 ;;
6905 *N32*)
6906 LD="${LD-ld} -melf32bmipn32"
6907 ;;
6908 *64-bit*)
6909 LD="${LD-ld} -melf64bmip"
6910 ;;
6911 esac
6912 else
6913 case `/usr/bin/file conftest.$ac_objext` in
6914 *32-bit*)
6915 LD="${LD-ld} -32"
6916 ;;
6917 *N32*)
6918 LD="${LD-ld} -n32"
6919 ;;
6920 *64-bit*)
6921 LD="${LD-ld} -64"
6922 ;;
6923 esac
6924 fi
6925 fi
6926 rm -rf conftest*
6927 ;;
6928
6929 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6930 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6931 # Find out which ABI we are using.
6932 echo 'int i;' > conftest.$ac_ext
6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6934 (eval $ac_compile) 2>&5
6935 ac_status=$?
6936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }; then
6938 case `/usr/bin/file conftest.o` in
6939 *32-bit*)
6940 case $host in
6941 x86_64-*kfreebsd*-gnu)
6942 LD="${LD-ld} -m elf_i386_fbsd"
6943 ;;
6944 x86_64-*linux*)
6945 LD="${LD-ld} -m elf_i386"
6946 ;;
6947 ppc64-*linux*|powerpc64-*linux*)
6948 LD="${LD-ld} -m elf32ppclinux"
6949 ;;
6950 s390x-*linux*)
6951 LD="${LD-ld} -m elf_s390"
6952 ;;
6953 sparc64-*linux*)
6954 LD="${LD-ld} -m elf32_sparc"
6955 ;;
6956 esac
6957 ;;
6958 *64-bit*)
6959 case $host in
6960 x86_64-*kfreebsd*-gnu)
6961 LD="${LD-ld} -m elf_x86_64_fbsd"
6962 ;;
6963 x86_64-*linux*)
6964 LD="${LD-ld} -m elf_x86_64"
6965 ;;
6966 ppc*-*linux*|powerpc*-*linux*)
6967 LD="${LD-ld} -m elf64ppc"
6968 ;;
6969 s390*-*linux*|s390*-*tpf*)
6970 LD="${LD-ld} -m elf64_s390"
6971 ;;
6972 sparc*-*linux*)
6973 LD="${LD-ld} -m elf64_sparc"
6974 ;;
6975 esac
6976 ;;
6977 esac
6978 fi
6979 rm -rf conftest*
6980 ;;
6981
6982 *-*-sco3.2v5*)
6983 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6984 SAVE_CFLAGS="$CFLAGS"
6985 CFLAGS="$CFLAGS -belf"
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6987 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6988 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 ac_ext=c
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999
7000 int
7001 main ()
7002 {
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"; then :
7009 lt_cv_cc_needs_belf=yes
7010 else
7011 lt_cv_cc_needs_belf=no
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7015 ac_ext=c
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7023 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7024 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7025 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7026 CFLAGS="$SAVE_CFLAGS"
7027 fi
7028 ;;
7029 sparc*-*solaris*)
7030 # Find out which ABI we are using.
7031 echo 'int i;' > conftest.$ac_ext
7032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7033 (eval $ac_compile) 2>&5
7034 ac_status=$?
7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }; then
7037 case `/usr/bin/file conftest.o` in
7038 *64-bit*)
7039 case $lt_cv_prog_gnu_ld in
7040 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7041 *)
7042 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7043 LD="${LD-ld} -64"
7044 fi
7045 ;;
7046 esac
7047 ;;
7048 esac
7049 fi
7050 rm -rf conftest*
7051 ;;
7052 esac
7053
7054 need_locks="$enable_libtool_lock"
7055
7056
7057 case $host_os in
7058 rhapsody* | darwin*)
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$DSYMUTIL"; then
7068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7088 if test -n "$DSYMUTIL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7090 $as_echo "$DSYMUTIL" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096
7097 fi
7098 if test -z "$ac_cv_prog_DSYMUTIL"; then
7099 ac_ct_DSYMUTIL=$DSYMUTIL
7100 # Extract the first word of "dsymutil", so it can be a program name with args.
7101 set dummy dsymutil; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -n "$ac_ct_DSYMUTIL"; then
7108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121 done
7122 done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7128 if test -n "$ac_ct_DSYMUTIL"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7130 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136 if test "x$ac_ct_DSYMUTIL" = x; then
7137 DSYMUTIL=":"
7138 else
7139 case $cross_compiling:$ac_tool_warned in
7140 yes:)
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143 ac_tool_warned=yes ;;
7144 esac
7145 DSYMUTIL=$ac_ct_DSYMUTIL
7146 fi
7147 else
7148 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7149 fi
7150
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7153 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 if test -n "$NMEDIT"; then
7160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7164 do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7172 fi
7173 done
7174 done
7175 IFS=$as_save_IFS
7176
7177 fi
7178 fi
7179 NMEDIT=$ac_cv_prog_NMEDIT
7180 if test -n "$NMEDIT"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7182 $as_echo "$NMEDIT" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7186 fi
7187
7188
7189 fi
7190 if test -z "$ac_cv_prog_NMEDIT"; then
7191 ac_ct_NMEDIT=$NMEDIT
7192 # Extract the first word of "nmedit", so it can be a program name with args.
7193 set dummy nmedit; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$ac_ct_NMEDIT"; then
7200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213 done
7214 done
7215 IFS=$as_save_IFS
7216
7217 fi
7218 fi
7219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7220 if test -n "$ac_ct_NMEDIT"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7222 $as_echo "$ac_ct_NMEDIT" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7226 fi
7227
7228 if test "x$ac_ct_NMEDIT" = x; then
7229 NMEDIT=":"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232 yes:)
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235 ac_tool_warned=yes ;;
7236 esac
7237 NMEDIT=$ac_ct_NMEDIT
7238 fi
7239 else
7240 NMEDIT="$ac_cv_prog_NMEDIT"
7241 fi
7242
7243 if test -n "$ac_tool_prefix"; then
7244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7245 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if test "${ac_cv_prog_LIPO+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 if test -n "$LIPO"; then
7252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 LIPO=$ac_cv_prog_LIPO
7272 if test -n "$LIPO"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7274 $as_echo "$LIPO" >&6; }
7275 else
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280
7281 fi
7282 if test -z "$ac_cv_prog_LIPO"; then
7283 ac_ct_LIPO=$LIPO
7284 # Extract the first word of "lipo", so it can be a program name with args.
7285 set dummy lipo; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 if test -n "$ac_ct_LIPO"; then
7292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_ac_ct_LIPO="lipo"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7304 fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309 fi
7310 fi
7311 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7312 if test -n "$ac_ct_LIPO"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7314 $as_echo "$ac_ct_LIPO" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320 if test "x$ac_ct_LIPO" = x; then
7321 LIPO=":"
7322 else
7323 case $cross_compiling:$ac_tool_warned in
7324 yes:)
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327 ac_tool_warned=yes ;;
7328 esac
7329 LIPO=$ac_ct_LIPO
7330 fi
7331 else
7332 LIPO="$ac_cv_prog_LIPO"
7333 fi
7334
7335 if test -n "$ac_tool_prefix"; then
7336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7337 set dummy ${ac_tool_prefix}otool; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
7342 else
7343 if test -n "$OTOOL"; then
7344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357 done
7358 done
7359 IFS=$as_save_IFS
7360
7361 fi
7362 fi
7363 OTOOL=$ac_cv_prog_OTOOL
7364 if test -n "$OTOOL"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7366 $as_echo "$OTOOL" >&6; }
7367 else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7370 fi
7371
7372
7373 fi
7374 if test -z "$ac_cv_prog_OTOOL"; then
7375 ac_ct_OTOOL=$OTOOL
7376 # Extract the first word of "otool", so it can be a program name with args.
7377 set dummy otool; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$ac_ct_OTOOL"; then
7384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7388 do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_ac_ct_OTOOL="otool"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7404 if test -n "$ac_ct_OTOOL"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7406 $as_echo "$ac_ct_OTOOL" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411
7412 if test "x$ac_ct_OTOOL" = x; then
7413 OTOOL=":"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416 yes:)
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421 OTOOL=$ac_ct_OTOOL
7422 fi
7423 else
7424 OTOOL="$ac_cv_prog_OTOOL"
7425 fi
7426
7427 if test -n "$ac_tool_prefix"; then
7428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 if test -n "$OTOOL64"; then
7436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449 done
7450 done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 OTOOL64=$ac_cv_prog_OTOOL64
7456 if test -n "$OTOOL64"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7458 $as_echo "$OTOOL64" >&6; }
7459 else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464
7465 fi
7466 if test -z "$ac_cv_prog_OTOOL64"; then
7467 ac_ct_OTOOL64=$OTOOL64
7468 # Extract the first word of "otool64", so it can be a program name with args.
7469 set dummy otool64; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$ac_ct_OTOOL64"; then
7476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_ac_ct_OTOOL64="otool64"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493 fi
7494 fi
7495 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7496 if test -n "$ac_ct_OTOOL64"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7498 $as_echo "$ac_ct_OTOOL64" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7502 fi
7503
7504 if test "x$ac_ct_OTOOL64" = x; then
7505 OTOOL64=":"
7506 else
7507 case $cross_compiling:$ac_tool_warned in
7508 yes:)
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7512 esac
7513 OTOOL64=$ac_ct_OTOOL64
7514 fi
7515 else
7516 OTOOL64="$ac_cv_prog_OTOOL64"
7517 fi
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7546 $as_echo_n "checking for -single_module linker flag... " >&6; }
7547 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7549 else
7550 lt_cv_apple_cc_single_mod=no
7551 if test -z "${LT_MULTI_MODULE}"; then
7552 # By default we will add the -single_module flag. You can override
7553 # by either setting the environment variable LT_MULTI_MODULE
7554 # non-empty at configure time, or by adding -multi_module to the
7555 # link flags.
7556 rm -rf libconftest.dylib*
7557 echo "int foo(void){return 1;}" > conftest.c
7558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7559 -dynamiclib -Wl,-single_module conftest.c" >&5
7560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7562 _lt_result=$?
7563 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7564 lt_cv_apple_cc_single_mod=yes
7565 else
7566 cat conftest.err >&5
7567 fi
7568 rm -rf libconftest.dylib*
7569 rm -f conftest.*
7570 fi
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7573 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7575 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7576 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 lt_cv_ld_exported_symbols_list=no
7580 save_LDFLAGS=$LDFLAGS
7581 echo "_main" > conftest.sym
7582 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585
7586 int
7587 main ()
7588 {
7589
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 if ac_fn_c_try_link "$LINENO"; then :
7595 lt_cv_ld_exported_symbols_list=yes
7596 else
7597 lt_cv_ld_exported_symbols_list=no
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 LDFLAGS="$save_LDFLAGS"
7602
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7605 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7607 $as_echo_n "checking for -force_load linker flag... " >&6; }
7608 if test "${lt_cv_ld_force_load+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 lt_cv_ld_force_load=no
7612 cat > conftest.c << _LT_EOF
7613 int forced_loaded() { return 2;}
7614 _LT_EOF
7615 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7616 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7617 echo "$AR cru libconftest.a conftest.o" >&5
7618 $AR cru libconftest.a conftest.o 2>&5
7619 cat > conftest.c << _LT_EOF
7620 int main() { return 0;}
7621 _LT_EOF
7622 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7623 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7624 _lt_result=$?
7625 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7626 lt_cv_ld_force_load=yes
7627 else
7628 cat conftest.err >&5
7629 fi
7630 rm -f conftest.err libconftest.a conftest conftest.c
7631 rm -rf conftest.dSYM
7632
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7635 $as_echo "$lt_cv_ld_force_load" >&6; }
7636 case $host_os in
7637 rhapsody* | darwin1.[012])
7638 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7639 darwin1.*)
7640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7641 darwin*) # darwin 5.x on
7642 # if running on 10.5 or later, the deployment target defaults
7643 # to the OS version, if on x86, and 10.4, the deployment
7644 # target defaults to 10.4. Don't you love it?
7645 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7646 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7648 10.[012]*)
7649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7650 10.*)
7651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7652 esac
7653 ;;
7654 esac
7655 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7656 _lt_dar_single_mod='$single_module'
7657 fi
7658 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7659 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7660 else
7661 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7662 fi
7663 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7664 _lt_dsymutil='~$DSYMUTIL $lib || :'
7665 else
7666 _lt_dsymutil=
7667 fi
7668 ;;
7669 esac
7670
7671 for ac_header in dlfcn.h
7672 do :
7673 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7674 "
7675 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7676 cat >>confdefs.h <<_ACEOF
7677 #define HAVE_DLFCN_H 1
7678 _ACEOF
7679
7680 fi
7681
7682 done
7683
7684
7685
7686
7687
7688 # Set options
7689
7690
7691
7692 enable_dlopen=no
7693
7694
7695 enable_win32_dll=no
7696
7697
7698
7699 # Check whether --enable-static was given.
7700 if test "${enable_static+set}" = set; then :
7701 enableval=$enable_static; p=${PACKAGE-default}
7702 case $enableval in
7703 yes) enable_static=yes ;;
7704 no) enable_static=no ;;
7705 *)
7706 enable_static=no
7707 # Look at the argument we got. We use all the common list separators.
7708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7709 for pkg in $enableval; do
7710 IFS="$lt_save_ifs"
7711 if test "X$pkg" = "X$p"; then
7712 enable_static=yes
7713 fi
7714 done
7715 IFS="$lt_save_ifs"
7716 ;;
7717 esac
7718 else
7719 enable_static=yes
7720 fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 # Check whether --with-pic was given.
7732 if test "${with_pic+set}" = set; then :
7733 withval=$with_pic; pic_mode="$withval"
7734 else
7735 pic_mode=default
7736 fi
7737
7738
7739 test -z "$pic_mode" && pic_mode=default
7740
7741
7742
7743
7744
7745
7746
7747 # Check whether --enable-fast-install was given.
7748 if test "${enable_fast_install+set}" = set; then :
7749 enableval=$enable_fast_install; p=${PACKAGE-default}
7750 case $enableval in
7751 yes) enable_fast_install=yes ;;
7752 no) enable_fast_install=no ;;
7753 *)
7754 enable_fast_install=no
7755 # Look at the argument we got. We use all the common list separators.
7756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7757 for pkg in $enableval; do
7758 IFS="$lt_save_ifs"
7759 if test "X$pkg" = "X$p"; then
7760 enable_fast_install=yes
7761 fi
7762 done
7763 IFS="$lt_save_ifs"
7764 ;;
7765 esac
7766 else
7767 enable_fast_install=yes
7768 fi
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780 # This can be used to rebuild libtool when needed
7781 LIBTOOL_DEPS="$ltmain"
7782
7783 # Always use our own libtool.
7784 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811 test -z "$LN_S" && LN_S="ln -s"
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826 if test -n "${ZSH_VERSION+set}" ; then
7827 setopt NO_GLOB_SUBST
7828 fi
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7831 $as_echo_n "checking for objdir... " >&6; }
7832 if test "${lt_cv_objdir+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 rm -f .libs 2>/dev/null
7836 mkdir .libs 2>/dev/null
7837 if test -d .libs; then
7838 lt_cv_objdir=.libs
7839 else
7840 # MS-DOS does not allow filenames that begin with a dot.
7841 lt_cv_objdir=_libs
7842 fi
7843 rmdir .libs 2>/dev/null
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7846 $as_echo "$lt_cv_objdir" >&6; }
7847 objdir=$lt_cv_objdir
7848
7849
7850
7851
7852
7853 cat >>confdefs.h <<_ACEOF
7854 #define LT_OBJDIR "$lt_cv_objdir/"
7855 _ACEOF
7856
7857
7858
7859
7860 case $host_os in
7861 aix3*)
7862 # AIX sometimes has problems with the GCC collect2 program. For some
7863 # reason, if we set the COLLECT_NAMES environment variable, the problems
7864 # vanish in a puff of smoke.
7865 if test "X${COLLECT_NAMES+set}" != Xset; then
7866 COLLECT_NAMES=
7867 export COLLECT_NAMES
7868 fi
7869 ;;
7870 esac
7871
7872 # Global variables:
7873 ofile=libtool
7874 can_build_shared=yes
7875
7876 # All known linkers require a `.a' archive for static linking (except MSVC,
7877 # which needs '.lib').
7878 libext=a
7879
7880 with_gnu_ld="$lt_cv_prog_gnu_ld"
7881
7882 old_CC="$CC"
7883 old_CFLAGS="$CFLAGS"
7884
7885 # Set sane defaults for various variables
7886 test -z "$CC" && CC=cc
7887 test -z "$LTCC" && LTCC=$CC
7888 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7889 test -z "$LD" && LD=ld
7890 test -z "$ac_objext" && ac_objext=o
7891
7892 for cc_temp in $compiler""; do
7893 case $cc_temp in
7894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7896 \-*) ;;
7897 *) break;;
7898 esac
7899 done
7900 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7901
7902
7903 # Only perform the check for file, if the check method requires it
7904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7905 case $deplibs_check_method in
7906 file_magic*)
7907 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7909 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 case $MAGIC_CMD in
7914 [\\/*] | ?:[\\/]*)
7915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7916 ;;
7917 *)
7918 lt_save_MAGIC_CMD="$MAGIC_CMD"
7919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7921 for ac_dir in $ac_dummy; do
7922 IFS="$lt_save_ifs"
7923 test -z "$ac_dir" && ac_dir=.
7924 if test -f $ac_dir/${ac_tool_prefix}file; then
7925 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7926 if test -n "$file_magic_test_file"; then
7927 case $deplibs_check_method in
7928 "file_magic "*)
7929 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7932 $EGREP "$file_magic_regex" > /dev/null; then
7933 :
7934 else
7935 cat <<_LT_EOF 1>&2
7936
7937 *** Warning: the command libtool uses to detect shared libraries,
7938 *** $file_magic_cmd, produces output that libtool cannot recognize.
7939 *** The result is that libtool may fail to recognize shared libraries
7940 *** as such. This will affect the creation of libtool libraries that
7941 *** depend on shared libraries, but programs linked with such libtool
7942 *** libraries will work regardless of this problem. Nevertheless, you
7943 *** may want to report the problem to your system manager and/or to
7944 *** bug-libtool@gnu.org
7945
7946 _LT_EOF
7947 fi ;;
7948 esac
7949 fi
7950 break
7951 fi
7952 done
7953 IFS="$lt_save_ifs"
7954 MAGIC_CMD="$lt_save_MAGIC_CMD"
7955 ;;
7956 esac
7957 fi
7958
7959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960 if test -n "$MAGIC_CMD"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7962 $as_echo "$MAGIC_CMD" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967
7968
7969
7970
7971
7972 if test -z "$lt_cv_path_MAGIC_CMD"; then
7973 if test -n "$ac_tool_prefix"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7975 $as_echo_n "checking for file... " >&6; }
7976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 case $MAGIC_CMD in
7980 [\\/*] | ?:[\\/]*)
7981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7982 ;;
7983 *)
7984 lt_save_MAGIC_CMD="$MAGIC_CMD"
7985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7987 for ac_dir in $ac_dummy; do
7988 IFS="$lt_save_ifs"
7989 test -z "$ac_dir" && ac_dir=.
7990 if test -f $ac_dir/file; then
7991 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7992 if test -n "$file_magic_test_file"; then
7993 case $deplibs_check_method in
7994 "file_magic "*)
7995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7998 $EGREP "$file_magic_regex" > /dev/null; then
7999 :
8000 else
8001 cat <<_LT_EOF 1>&2
8002
8003 *** Warning: the command libtool uses to detect shared libraries,
8004 *** $file_magic_cmd, produces output that libtool cannot recognize.
8005 *** The result is that libtool may fail to recognize shared libraries
8006 *** as such. This will affect the creation of libtool libraries that
8007 *** depend on shared libraries, but programs linked with such libtool
8008 *** libraries will work regardless of this problem. Nevertheless, you
8009 *** may want to report the problem to your system manager and/or to
8010 *** bug-libtool@gnu.org
8011
8012 _LT_EOF
8013 fi ;;
8014 esac
8015 fi
8016 break
8017 fi
8018 done
8019 IFS="$lt_save_ifs"
8020 MAGIC_CMD="$lt_save_MAGIC_CMD"
8021 ;;
8022 esac
8023 fi
8024
8025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8026 if test -n "$MAGIC_CMD"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8028 $as_echo "$MAGIC_CMD" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 else
8036 MAGIC_CMD=:
8037 fi
8038 fi
8039
8040 fi
8041 ;;
8042 esac
8043
8044 # Use C for the default configuration in the libtool script
8045
8046 lt_save_CC="$CC"
8047 ac_ext=c
8048 ac_cpp='$CPP $CPPFLAGS'
8049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8052
8053
8054 # Source file extension for C test sources.
8055 ac_ext=c
8056
8057 # Object file extension for compiled C test sources.
8058 objext=o
8059 objext=$objext
8060
8061 # Code to be used in simple compile tests
8062 lt_simple_compile_test_code="int some_variable = 0;"
8063
8064 # Code to be used in simple link tests
8065 lt_simple_link_test_code='int main(){return(0);}'
8066
8067
8068
8069
8070
8071
8072
8073 # If no C compiler was specified, use CC.
8074 LTCC=${LTCC-"$CC"}
8075
8076 # If no C compiler flags were specified, use CFLAGS.
8077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8078
8079 # Allow CC to be a program name with arguments.
8080 compiler=$CC
8081
8082 # Save the default compiler, since it gets overwritten when the other
8083 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8084 compiler_DEFAULT=$CC
8085
8086 # save warnings/boilerplate of simple test code
8087 ac_outfile=conftest.$ac_objext
8088 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090 _lt_compiler_boilerplate=`cat conftest.err`
8091 $RM conftest*
8092
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096 _lt_linker_boilerplate=`cat conftest.err`
8097 $RM -r conftest*
8098
8099
8100 ## CAVEAT EMPTOR:
8101 ## There is no encapsulation within the following macros, do not change
8102 ## the running order or otherwise move them around unless you know exactly
8103 ## what you are doing...
8104 if test -n "$compiler"; then
8105
8106 lt_prog_compiler_no_builtin_flag=
8107
8108 if test "$GCC" = yes; then
8109 case $cc_basename in
8110 nvcc*)
8111 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8112 *)
8113 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8114 esac
8115
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8117 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8118 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 lt_cv_prog_compiler_rtti_exceptions=no
8122 ac_outfile=conftest.$ac_objext
8123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8124 lt_compiler_flag="-fno-rtti -fno-exceptions"
8125 # Insert the option either (1) after the last *FLAGS variable, or
8126 # (2) before a word containing "conftest.", or (3) at the end.
8127 # Note that $ac_compile itself does not contain backslashes and begins
8128 # with a dollar sign (not a hyphen), so the echo should work correctly.
8129 # The option is referenced via a variable to avoid confusing sed.
8130 lt_compile=`echo "$ac_compile" | $SED \
8131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8133 -e 's:$: $lt_compiler_flag:'`
8134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8135 (eval "$lt_compile" 2>conftest.err)
8136 ac_status=$?
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 if (exit $ac_status) && test -s "$ac_outfile"; then
8140 # The compiler can only warn and ignore the option if not recognized
8141 # So say no if there are warnings other than the usual output.
8142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8145 lt_cv_prog_compiler_rtti_exceptions=yes
8146 fi
8147 fi
8148 $RM conftest*
8149
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8152 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8153
8154 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8156 else
8157 :
8158 fi
8159
8160 fi
8161
8162
8163
8164
8165
8166
8167 lt_prog_compiler_wl=
8168 lt_prog_compiler_pic=
8169 lt_prog_compiler_static=
8170
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8172 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8173
8174 if test "$GCC" = yes; then
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_static='-static'
8177
8178 case $host_os in
8179 aix*)
8180 # All AIX code is PIC.
8181 if test "$host_cpu" = ia64; then
8182 # AIX 5 now supports IA64 processor
8183 lt_prog_compiler_static='-Bstatic'
8184 fi
8185 ;;
8186
8187 amigaos*)
8188 case $host_cpu in
8189 powerpc)
8190 # see comment about AmigaOS4 .so support
8191 lt_prog_compiler_pic='-fPIC'
8192 ;;
8193 m68k)
8194 # FIXME: we need at least 68020 code to build shared libraries, but
8195 # adding the `-m68020' flag to GCC prevents building anything better,
8196 # like `-m68040'.
8197 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8198 ;;
8199 esac
8200 ;;
8201
8202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8203 # PIC is the default for these OSes.
8204 ;;
8205
8206 mingw* | cygwin* | pw32* | os2* | cegcc*)
8207 # This hack is so that the source file can tell whether it is being
8208 # built for inclusion in a dll (and should export symbols for example).
8209 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8210 # (--disable-auto-import) libraries
8211 lt_prog_compiler_pic='-DDLL_EXPORT'
8212 ;;
8213
8214 darwin* | rhapsody*)
8215 # PIC is the default on this platform
8216 # Common symbols not allowed in MH_DYLIB files
8217 lt_prog_compiler_pic='-fno-common'
8218 ;;
8219
8220 haiku*)
8221 # PIC is the default for Haiku.
8222 # The "-static" flag exists, but is broken.
8223 lt_prog_compiler_static=
8224 ;;
8225
8226 hpux*)
8227 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8228 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8229 # sets the default TLS model and affects inlining.
8230 case $host_cpu in
8231 hppa*64*)
8232 # +Z the default
8233 ;;
8234 *)
8235 lt_prog_compiler_pic='-fPIC'
8236 ;;
8237 esac
8238 ;;
8239
8240 interix[3-9]*)
8241 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8242 # Instead, we relocate shared libraries at runtime.
8243 ;;
8244
8245 msdosdjgpp*)
8246 # Just because we use GCC doesn't mean we suddenly get shared libraries
8247 # on systems that don't support them.
8248 lt_prog_compiler_can_build_shared=no
8249 enable_shared=no
8250 ;;
8251
8252 *nto* | *qnx*)
8253 # QNX uses GNU C++, but need to define -shared option too, otherwise
8254 # it will coredump.
8255 lt_prog_compiler_pic='-fPIC -shared'
8256 ;;
8257
8258 sysv4*MP*)
8259 if test -d /usr/nec; then
8260 lt_prog_compiler_pic=-Kconform_pic
8261 fi
8262 ;;
8263
8264 *)
8265 lt_prog_compiler_pic='-fPIC'
8266 ;;
8267 esac
8268
8269 case $cc_basename in
8270 nvcc*) # Cuda Compiler Driver 2.2
8271 lt_prog_compiler_wl='-Xlinker '
8272 lt_prog_compiler_pic='-Xcompiler -fPIC'
8273 ;;
8274 esac
8275 else
8276 # PORTME Check for flag to pass linker flags through the system compiler.
8277 case $host_os in
8278 aix*)
8279 lt_prog_compiler_wl='-Wl,'
8280 if test "$host_cpu" = ia64; then
8281 # AIX 5 now supports IA64 processor
8282 lt_prog_compiler_static='-Bstatic'
8283 else
8284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8285 fi
8286 ;;
8287
8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 ;;
8293
8294 hpux9* | hpux10* | hpux11*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8297 # not for PA HP-UX.
8298 case $host_cpu in
8299 hppa*64*|ia64*)
8300 # +Z the default
8301 ;;
8302 *)
8303 lt_prog_compiler_pic='+Z'
8304 ;;
8305 esac
8306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8307 lt_prog_compiler_static='${wl}-a ${wl}archive'
8308 ;;
8309
8310 irix5* | irix6* | nonstopux*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC (with -KPIC) is the default.
8313 lt_prog_compiler_static='-non_shared'
8314 ;;
8315
8316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8317 case $cc_basename in
8318 # old Intel for x86_64 which still supported -KPIC.
8319 ecc*)
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
8324 # icc used to be incompatible with GCC.
8325 # ICC 10 doesn't accept -KPIC any more.
8326 icc* | ifort*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fPIC'
8329 lt_prog_compiler_static='-static'
8330 ;;
8331 # Lahey Fortran 8.1.
8332 lf95*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='--shared'
8335 lt_prog_compiler_static='--static'
8336 ;;
8337 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344 ccc*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8348 ;;
8349 xl* | bgxl* | bgf* | mpixl*)
8350 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8354 ;;
8355 *)
8356 case `$CC -V 2>&1 | sed 5q` in
8357 *Sun\ F* | *Sun*Fortran*)
8358 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl=''
8362 ;;
8363 *Sun\ C*)
8364 # Sun C 5.9
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl='-Wl,'
8368 ;;
8369 esac
8370 ;;
8371 esac
8372 ;;
8373
8374 newsos6)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 ;;
8378
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
8384
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390
8391 rdos*)
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 solaris*)
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8399 f77* | f90* | f95*)
8400 lt_prog_compiler_wl='-Qoption ld ';;
8401 *)
8402 lt_prog_compiler_wl='-Wl,';;
8403 esac
8404 ;;
8405
8406 sunos4*)
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
8410 ;;
8411
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
8417
8418 sysv4*MP*)
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
8422 fi
8423 ;;
8424
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 unicos*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
8434 ;;
8435
8436 uts4*)
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440
8441 *)
8442 lt_prog_compiler_can_build_shared=no
8443 ;;
8444 esac
8445 fi
8446
8447 case $host_os in
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8449 *djgpp*)
8450 lt_prog_compiler_pic=
8451 ;;
8452 *)
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8454 ;;
8455 esac
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8457 $as_echo "$lt_prog_compiler_pic" >&6; }
8458
8459
8460
8461
8462
8463
8464 #
8465 # Check to make sure the PIC flag actually works.
8466 #
8467 if test -n "$lt_prog_compiler_pic"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8470 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 lt_cv_prog_compiler_pic_works=no
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>conftest.err)
8488 ac_status=$?
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
8494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8497 lt_cv_prog_compiler_pic_works=yes
8498 fi
8499 fi
8500 $RM conftest*
8501
8502 fi
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8504 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8505
8506 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8507 case $lt_prog_compiler_pic in
8508 "" | " "*) ;;
8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8510 esac
8511 else
8512 lt_prog_compiler_pic=
8513 lt_prog_compiler_can_build_shared=no
8514 fi
8515
8516 fi
8517
8518
8519
8520
8521
8522
8523 #
8524 # Check to make sure the static flag actually works.
8525 #
8526 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8528 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8529 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 lt_cv_prog_compiler_static_works=no
8533 save_LDFLAGS="$LDFLAGS"
8534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8537 # The linker can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 if test -s conftest.err; then
8540 # Append any errors to the config.log.
8541 cat conftest.err 1>&5
8542 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8544 if diff conftest.exp conftest.er2 >/dev/null; then
8545 lt_cv_prog_compiler_static_works=yes
8546 fi
8547 else
8548 lt_cv_prog_compiler_static_works=yes
8549 fi
8550 fi
8551 $RM -r conftest*
8552 LDFLAGS="$save_LDFLAGS"
8553
8554 fi
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8556 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8557
8558 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8559 :
8560 else
8561 lt_prog_compiler_static=
8562 fi
8563
8564
8565
8566
8567
8568
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8571 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8572 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 lt_cv_prog_compiler_c_o=no
8576 $RM -r conftest 2>/dev/null
8577 mkdir conftest
8578 cd conftest
8579 mkdir out
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8581
8582 lt_compiler_flag="-o out/conftest2.$ac_objext"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
8591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8592 (eval "$lt_compile" 2>out/conftest.err)
8593 ac_status=$?
8594 cat out/conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8597 then
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings
8600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_c_o=yes
8604 fi
8605 fi
8606 chmod u+w . 2>&5
8607 $RM conftest*
8608 # SGI C++ compiler will create directory out/ii_files/ for
8609 # template instantiation
8610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611 $RM out/* && rmdir out
8612 cd ..
8613 $RM -r conftest
8614 $RM conftest*
8615
8616 fi
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8618 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8619
8620
8621
8622
8623
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8627 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 lt_cv_prog_compiler_c_o=no
8631 $RM -r conftest 2>/dev/null
8632 mkdir conftest
8633 cd conftest
8634 mkdir out
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8636
8637 lt_compiler_flag="-o out/conftest2.$ac_objext"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
8646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8647 (eval "$lt_compile" 2>out/conftest.err)
8648 ac_status=$?
8649 cat out/conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8652 then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
8655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_c_o=yes
8659 fi
8660 fi
8661 chmod u+w . 2>&5
8662 $RM conftest*
8663 # SGI C++ compiler will create directory out/ii_files/ for
8664 # template instantiation
8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8666 $RM out/* && rmdir out
8667 cd ..
8668 $RM -r conftest
8669 $RM conftest*
8670
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8673 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8674
8675
8676
8677
8678 hard_links="nottested"
8679 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8680 # do not overwrite the value of need_locks provided by the user
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8682 $as_echo_n "checking if we can lock with hard links... " >&6; }
8683 hard_links=yes
8684 $RM conftest*
8685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8686 touch conftest.a
8687 ln conftest.a conftest.b 2>&5 || hard_links=no
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8690 $as_echo "$hard_links" >&6; }
8691 if test "$hard_links" = no; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8693 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8694 need_locks=warn
8695 fi
8696 else
8697 need_locks=no
8698 fi
8699
8700
8701
8702
8703
8704
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8706 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8707
8708 runpath_var=
8709 allow_undefined_flag=
8710 always_export_symbols=no
8711 archive_cmds=
8712 archive_expsym_cmds=
8713 compiler_needs_object=no
8714 enable_shared_with_static_runtimes=no
8715 export_dynamic_flag_spec=
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8717 hardcode_automatic=no
8718 hardcode_direct=no
8719 hardcode_direct_absolute=no
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld=
8722 hardcode_libdir_separator=
8723 hardcode_minus_L=no
8724 hardcode_shlibpath_var=unsupported
8725 inherit_rpath=no
8726 link_all_deplibs=unknown
8727 module_cmds=
8728 module_expsym_cmds=
8729 old_archive_from_new_cmds=
8730 old_archive_from_expsyms_cmds=
8731 thread_safe_flag_spec=
8732 whole_archive_flag_spec=
8733 # include_expsyms should be a list of space-separated symbols to be *always*
8734 # included in the symbol list
8735 include_expsyms=
8736 # exclude_expsyms can be an extended regexp of symbols to exclude
8737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739 # as well as any symbol that contains `d'.
8740 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742 # platforms (ab)use it in PIC code, but their linkers get confused if
8743 # the symbol is explicitly referenced. Since portable code cannot
8744 # rely on this symbol name, it's probably fine to never include it in
8745 # preloaded symbol tables.
8746 # Exclude shared library initialization/finalization symbols.
8747 extract_expsyms_cmds=
8748
8749 case $host_os in
8750 cygwin* | mingw* | pw32* | cegcc*)
8751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752 # When not using gcc, we currently assume that we are using
8753 # Microsoft Visual C++.
8754 if test "$GCC" != yes; then
8755 with_gnu_ld=no
8756 fi
8757 ;;
8758 interix*)
8759 # we just hope/assume this is gcc and not c89 (= MSVC++)
8760 with_gnu_ld=yes
8761 ;;
8762 openbsd*)
8763 with_gnu_ld=no
8764 ;;
8765 esac
8766
8767 ld_shlibs=yes
8768
8769 # On some targets, GNU ld is compatible enough with the native linker
8770 # that we're better off using the native interface for both.
8771 lt_use_gnu_ld_interface=no
8772 if test "$with_gnu_ld" = yes; then
8773 case $host_os in
8774 aix*)
8775 # The AIX port of GNU ld has always aspired to compatibility
8776 # with the native linker. However, as the warning in the GNU ld
8777 # block says, versions before 2.19.5* couldn't really create working
8778 # shared libraries, regardless of the interface used.
8779 case `$LD -v 2>&1` in
8780 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8781 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8782 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8783 *)
8784 lt_use_gnu_ld_interface=yes
8785 ;;
8786 esac
8787 ;;
8788 *)
8789 lt_use_gnu_ld_interface=yes
8790 ;;
8791 esac
8792 fi
8793
8794 if test "$lt_use_gnu_ld_interface" = yes; then
8795 # If archive_cmds runs LD, not CC, wlarc should be empty
8796 wlarc='${wl}'
8797
8798 # Set some defaults for GNU ld with shared library support. These
8799 # are reset later if shared libraries are not supported. Putting them
8800 # here allows them to be overridden if necessary.
8801 runpath_var=LD_RUN_PATH
8802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8803 export_dynamic_flag_spec='${wl}--export-dynamic'
8804 # ancient GNU ld didn't support --whole-archive et. al.
8805 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8806 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8807 else
8808 whole_archive_flag_spec=
8809 fi
8810 supports_anon_versioning=no
8811 case `$LD -v 2>&1` in
8812 *GNU\ gold*) supports_anon_versioning=yes ;;
8813 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8814 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8815 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8816 *\ 2.11.*) ;; # other 2.11 versions
8817 *) supports_anon_versioning=yes ;;
8818 esac
8819
8820 # See if GNU ld supports shared libraries.
8821 case $host_os in
8822 aix[3-9]*)
8823 # On AIX/PPC, the GNU linker is very broken
8824 if test "$host_cpu" != ia64; then
8825 ld_shlibs=no
8826 cat <<_LT_EOF 1>&2
8827
8828 *** Warning: the GNU linker, at least up to release 2.19, is reported
8829 *** to be unable to reliably create shared libraries on AIX.
8830 *** Therefore, libtool is disabling shared libraries support. If you
8831 *** really care for shared libraries, you may want to install binutils
8832 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8833 *** You will then need to restart the configuration process.
8834
8835 _LT_EOF
8836 fi
8837 ;;
8838
8839 amigaos*)
8840 case $host_cpu in
8841 powerpc)
8842 # see comment about AmigaOS4 .so support
8843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844 archive_expsym_cmds=''
8845 ;;
8846 m68k)
8847 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)'
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_minus_L=yes
8850 ;;
8851 esac
8852 ;;
8853
8854 beos*)
8855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8856 allow_undefined_flag=unsupported
8857 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8858 # support --undefined. This deserves some investigation. FIXME
8859 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 else
8861 ld_shlibs=no
8862 fi
8863 ;;
8864
8865 cygwin* | mingw* | pw32* | cegcc*)
8866 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8867 # as there is no search path for DLLs.
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 export_dynamic_flag_spec='${wl}--export-all-symbols'
8870 allow_undefined_flag=unsupported
8871 always_export_symbols=no
8872 enable_shared_with_static_runtimes=yes
8873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8874
8875 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877 # If the export-symbols file already is a .def file (1st line
8878 # is EXPORTS), use it as is; otherwise, prepend...
8879 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8880 cp $export_symbols $output_objdir/$soname.def;
8881 else
8882 echo EXPORTS > $output_objdir/$soname.def;
8883 cat $export_symbols >> $output_objdir/$soname.def;
8884 fi~
8885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8886 else
8887 ld_shlibs=no
8888 fi
8889 ;;
8890
8891 haiku*)
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 link_all_deplibs=yes
8894 ;;
8895
8896 interix[3-9]*)
8897 hardcode_direct=no
8898 hardcode_shlibpath_var=no
8899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900 export_dynamic_flag_spec='${wl}-E'
8901 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8902 # Instead, shared libraries are loaded at an image base (0x10000000 by
8903 # default) and relocated if they conflict, which is a slow very memory
8904 # consuming and fragmenting process. To avoid this, we pick a random,
8905 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8906 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8907 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8908 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'
8909 ;;
8910
8911 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8912 tmp_diet=no
8913 if test "$host_os" = linux-dietlibc; then
8914 case $cc_basename in
8915 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8916 esac
8917 fi
8918 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8919 && test "$tmp_diet" = no
8920 then
8921 tmp_addflag=
8922 tmp_sharedflag='-shared'
8923 case $cc_basename,$host_cpu in
8924 pgcc*) # Portland Group C compiler
8925 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'
8926 tmp_addflag=' $pic_flag'
8927 ;;
8928 pgf77* | pgf90* | pgf95* | pgfortran*)
8929 # Portland Group f77 and f90 compilers
8930 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'
8931 tmp_addflag=' $pic_flag -Mnomain' ;;
8932 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8933 tmp_addflag=' -i_dynamic' ;;
8934 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8935 tmp_addflag=' -i_dynamic -nofor_main' ;;
8936 ifc* | ifort*) # Intel Fortran compiler
8937 tmp_addflag=' -nofor_main' ;;
8938 lf95*) # Lahey Fortran 8.1
8939 whole_archive_flag_spec=
8940 tmp_sharedflag='--shared' ;;
8941 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8942 tmp_sharedflag='-qmkshrobj'
8943 tmp_addflag= ;;
8944 nvcc*) # Cuda Compiler Driver 2.2
8945 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'
8946 compiler_needs_object=yes
8947 ;;
8948 esac
8949 case `$CC -V 2>&1 | sed 5q` in
8950 *Sun\ C*) # Sun C 5.9
8951 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'
8952 compiler_needs_object=yes
8953 tmp_sharedflag='-G' ;;
8954 *Sun\ F*) # Sun Fortran 8.3
8955 tmp_sharedflag='-G' ;;
8956 esac
8957 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8958
8959 if test "x$supports_anon_versioning" = xyes; then
8960 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8961 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8962 echo "local: *; };" >> $output_objdir/$libname.ver~
8963 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8964 fi
8965
8966 case $cc_basename in
8967 xlf* | bgf* | bgxlf* | mpixlf*)
8968 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8969 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8970 hardcode_libdir_flag_spec=
8971 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8972 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8973 if test "x$supports_anon_versioning" = xyes; then
8974 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8976 echo "local: *; };" >> $output_objdir/$libname.ver~
8977 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8978 fi
8979 ;;
8980 esac
8981 else
8982 ld_shlibs=no
8983 fi
8984 ;;
8985
8986 netbsd*)
8987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8988 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8989 wlarc=
8990 else
8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8993 fi
8994 ;;
8995
8996 solaris*)
8997 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8998 ld_shlibs=no
8999 cat <<_LT_EOF 1>&2
9000
9001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9002 *** create shared libraries on Solaris systems. Therefore, libtool
9003 *** is disabling shared libraries support. We urge you to upgrade GNU
9004 *** binutils to release 2.9.1 or newer. Another option is to modify
9005 *** your PATH or compiler configuration so that the native linker is
9006 *** used, and then restart.
9007
9008 _LT_EOF
9009 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 else
9013 ld_shlibs=no
9014 fi
9015 ;;
9016
9017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9018 case `$LD -v 2>&1` in
9019 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9020 ld_shlibs=no
9021 cat <<_LT_EOF 1>&2
9022
9023 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9024 *** reliably create shared libraries on SCO systems. Therefore, libtool
9025 *** is disabling shared libraries support. We urge you to upgrade GNU
9026 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9027 *** your PATH or compiler configuration so that the native linker is
9028 *** used, and then restart.
9029
9030 _LT_EOF
9031 ;;
9032 *)
9033 # For security reasons, it is highly recommended that you always
9034 # use absolute paths for naming shared libraries, and exclude the
9035 # DT_RUNPATH tag from executables and libraries. But doing so
9036 # requires that you compile everything twice, which is a pain.
9037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9041 else
9042 ld_shlibs=no
9043 fi
9044 ;;
9045 esac
9046 ;;
9047
9048 sunos4*)
9049 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9050 wlarc=
9051 hardcode_direct=yes
9052 hardcode_shlibpath_var=no
9053 ;;
9054
9055 *)
9056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9059 else
9060 ld_shlibs=no
9061 fi
9062 ;;
9063 esac
9064
9065 if test "$ld_shlibs" = no; then
9066 runpath_var=
9067 hardcode_libdir_flag_spec=
9068 export_dynamic_flag_spec=
9069 whole_archive_flag_spec=
9070 fi
9071 else
9072 # PORTME fill in a description of your system's linker (not GNU ld)
9073 case $host_os in
9074 aix3*)
9075 allow_undefined_flag=unsupported
9076 always_export_symbols=yes
9077 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'
9078 # Note: this linker hardcodes the directories in LIBPATH if there
9079 # are no directories specified by -L.
9080 hardcode_minus_L=yes
9081 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9082 # Neither direct hardcoding nor static linking is supported with a
9083 # broken collect2.
9084 hardcode_direct=unsupported
9085 fi
9086 ;;
9087
9088 aix[4-9]*)
9089 if test "$host_cpu" = ia64; then
9090 # On IA64, the linker does run time linking by default, so we don't
9091 # have to do anything special.
9092 aix_use_runtimelinking=no
9093 exp_sym_flag='-Bexport'
9094 no_entry_flag=""
9095 else
9096 # If we're using GNU nm, then we don't want the "-C" option.
9097 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9098 # Also, AIX nm treats weak defined symbols like other global
9099 # defined symbols, whereas GNU nm marks them as "W".
9100 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9101 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'
9102 else
9103 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9104 fi
9105 aix_use_runtimelinking=no
9106
9107 # Test if we are trying to use run time linking or normal
9108 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9109 # need to do runtime linking.
9110 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9111 for ld_flag in $LDFLAGS; do
9112 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9113 aix_use_runtimelinking=yes
9114 break
9115 fi
9116 done
9117 ;;
9118 esac
9119
9120 exp_sym_flag='-bexport'
9121 no_entry_flag='-bnoentry'
9122 fi
9123
9124 # When large executables or shared objects are built, AIX ld can
9125 # have problems creating the table of contents. If linking a library
9126 # or program results in "error TOC overflow" add -mminimal-toc to
9127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9129
9130 archive_cmds=''
9131 hardcode_direct=yes
9132 hardcode_direct_absolute=yes
9133 hardcode_libdir_separator=':'
9134 link_all_deplibs=yes
9135 file_list_spec='${wl}-f,'
9136
9137 if test "$GCC" = yes; then
9138 case $host_os in aix4.[012]|aix4.[012].*)
9139 # We only want to do this on AIX 4.2 and lower, the check
9140 # below for broken collect2 doesn't work under 4.3+
9141 collect2name=`${CC} -print-prog-name=collect2`
9142 if test -f "$collect2name" &&
9143 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9144 then
9145 # We have reworked collect2
9146 :
9147 else
9148 # We have old collect2
9149 hardcode_direct=unsupported
9150 # It fails to find uninstalled libraries when the uninstalled
9151 # path is not listed in the libpath. Setting hardcode_minus_L
9152 # to unsupported forces relinking
9153 hardcode_minus_L=yes
9154 hardcode_libdir_flag_spec='-L$libdir'
9155 hardcode_libdir_separator=
9156 fi
9157 ;;
9158 esac
9159 shared_flag='-shared'
9160 if test "$aix_use_runtimelinking" = yes; then
9161 shared_flag="$shared_flag "'${wl}-G'
9162 fi
9163 else
9164 # not using gcc
9165 if test "$host_cpu" = ia64; then
9166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9167 # chokes on -Wl,-G. The following line is correct:
9168 shared_flag='-G'
9169 else
9170 if test "$aix_use_runtimelinking" = yes; then
9171 shared_flag='${wl}-G'
9172 else
9173 shared_flag='${wl}-bM:SRE'
9174 fi
9175 fi
9176 fi
9177
9178 export_dynamic_flag_spec='${wl}-bexpall'
9179 # It seems that -bexpall does not export symbols beginning with
9180 # underscore (_), so it is better to generate a list of symbols to export.
9181 always_export_symbols=yes
9182 if test "$aix_use_runtimelinking" = yes; then
9183 # Warning - without using the other runtime loading flags (-brtl),
9184 # -berok will link without error, but may produce a broken library.
9185 allow_undefined_flag='-berok'
9186 # Determine the default libpath from the value encoded in an
9187 # empty executable.
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190
9191 int
9192 main ()
9193 {
9194
9195 ;
9196 return 0;
9197 }
9198 _ACEOF
9199 if ac_fn_c_try_link "$LINENO"; then :
9200
9201 lt_aix_libpath_sed='
9202 /Import File Strings/,/^$/ {
9203 /^0/ {
9204 s/^0 *\(.*\)$/\1/
9205 p
9206 }
9207 }'
9208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209 # Check for a 64-bit object if we didn't find anything.
9210 if test -z "$aix_libpath"; then
9211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212 fi
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9217
9218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9219 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"
9220 else
9221 if test "$host_cpu" = ia64; then
9222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9223 allow_undefined_flag="-z nodefs"
9224 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"
9225 else
9226 # Determine the default libpath from the value encoded in an
9227 # empty executable.
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230
9231 int
9232 main ()
9233 {
9234
9235 ;
9236 return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_c_try_link "$LINENO"; then :
9240
9241 lt_aix_libpath_sed='
9242 /Import File Strings/,/^$/ {
9243 /^0/ {
9244 s/^0 *\(.*\)$/\1/
9245 p
9246 }
9247 }'
9248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249 # Check for a 64-bit object if we didn't find anything.
9250 if test -z "$aix_libpath"; then
9251 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9252 fi
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9257
9258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9259 # Warning - without using the other run time loading flags,
9260 # -berok will link without error, but may produce a broken library.
9261 no_undefined_flag=' ${wl}-bernotok'
9262 allow_undefined_flag=' ${wl}-berok'
9263 if test "$with_gnu_ld" = yes; then
9264 # We only use this code for GNU lds that support --whole-archive.
9265 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9266 else
9267 # Exported symbols can be pulled into shared objects from archives
9268 whole_archive_flag_spec='$convenience'
9269 fi
9270 archive_cmds_need_lc=yes
9271 # This is similar to how AIX traditionally builds its shared libraries.
9272 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'
9273 fi
9274 fi
9275 ;;
9276
9277 amigaos*)
9278 case $host_cpu in
9279 powerpc)
9280 # see comment about AmigaOS4 .so support
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds=''
9283 ;;
9284 m68k)
9285 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)'
9286 hardcode_libdir_flag_spec='-L$libdir'
9287 hardcode_minus_L=yes
9288 ;;
9289 esac
9290 ;;
9291
9292 bsdi[45]*)
9293 export_dynamic_flag_spec=-rdynamic
9294 ;;
9295
9296 cygwin* | mingw* | pw32* | cegcc*)
9297 # When not using gcc, we currently assume that we are using
9298 # Microsoft Visual C++.
9299 # hardcode_libdir_flag_spec is actually meaningless, as there is
9300 # no search path for DLLs.
9301 hardcode_libdir_flag_spec=' '
9302 allow_undefined_flag=unsupported
9303 # Tell ltmain to make .lib files, not .a files.
9304 libext=lib
9305 # Tell ltmain to make .dll files, not .so files.
9306 shrext_cmds=".dll"
9307 # FIXME: Setting linknames here is a bad hack.
9308 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9309 # The linker will automatically build a .lib file if we build a DLL.
9310 old_archive_from_new_cmds='true'
9311 # FIXME: Should let the user specify the lib program.
9312 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9313 fix_srcfile_path='`cygpath -w "$srcfile"`'
9314 enable_shared_with_static_runtimes=yes
9315 ;;
9316
9317 darwin* | rhapsody*)
9318
9319
9320 archive_cmds_need_lc=no
9321 hardcode_direct=no
9322 hardcode_automatic=yes
9323 hardcode_shlibpath_var=unsupported
9324 if test "$lt_cv_ld_force_load" = "yes"; then
9325 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\"`'
9326 else
9327 whole_archive_flag_spec=''
9328 fi
9329 link_all_deplibs=yes
9330 allow_undefined_flag="$_lt_dar_allow_undefined"
9331 case $cc_basename in
9332 ifort*) _lt_dar_can_shared=yes ;;
9333 *) _lt_dar_can_shared=$GCC ;;
9334 esac
9335 if test "$_lt_dar_can_shared" = "yes"; then
9336 output_verbose_link_cmd=func_echo_all
9337 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9338 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9339 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}"
9340 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}"
9341
9342 else
9343 ld_shlibs=no
9344 fi
9345
9346 ;;
9347
9348 dgux*)
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 freebsd1*)
9355 ld_shlibs=no
9356 ;;
9357
9358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9359 # support. Future versions do this automatically, but an explicit c++rt0.o
9360 # does not break anything, and helps significantly (at the cost of a little
9361 # extra space).
9362 freebsd2.2*)
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9364 hardcode_libdir_flag_spec='-R$libdir'
9365 hardcode_direct=yes
9366 hardcode_shlibpath_var=no
9367 ;;
9368
9369 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9370 freebsd2*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes
9373 hardcode_minus_L=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9378 freebsd* | dragonfly*)
9379 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 hpux9*)
9386 if test "$GCC" = yes; then
9387 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'
9388 else
9389 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'
9390 fi
9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392 hardcode_libdir_separator=:
9393 hardcode_direct=yes
9394
9395 # hardcode_minus_L: Not really in the search PATH,
9396 # but as the default location of the library.
9397 hardcode_minus_L=yes
9398 export_dynamic_flag_spec='${wl}-E'
9399 ;;
9400
9401 hpux10*)
9402 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 else
9405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9406 fi
9407 if test "$with_gnu_ld" = no; then
9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_flag_spec_ld='+b $libdir'
9410 hardcode_libdir_separator=:
9411 hardcode_direct=yes
9412 hardcode_direct_absolute=yes
9413 export_dynamic_flag_spec='${wl}-E'
9414 # hardcode_minus_L: Not really in the search PATH,
9415 # but as the default location of the library.
9416 hardcode_minus_L=yes
9417 fi
9418 ;;
9419
9420 hpux11*)
9421 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9422 case $host_cpu in
9423 hppa*64*)
9424 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 ;;
9426 ia64*)
9427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9428 ;;
9429 *)
9430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 esac
9433 else
9434 case $host_cpu in
9435 hppa*64*)
9436 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 ;;
9438 ia64*)
9439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 *)
9442
9443 # Older versions of the 11.00 compiler do not understand -b yet
9444 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9446 $as_echo_n "checking if $CC understands -b... " >&6; }
9447 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 lt_cv_prog_compiler__b=no
9451 save_LDFLAGS="$LDFLAGS"
9452 LDFLAGS="$LDFLAGS -b"
9453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9455 # The linker can only warn and ignore the option if not recognized
9456 # So say no if there are warnings
9457 if test -s conftest.err; then
9458 # Append any errors to the config.log.
9459 cat conftest.err 1>&5
9460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462 if diff conftest.exp conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler__b=yes
9464 fi
9465 else
9466 lt_cv_prog_compiler__b=yes
9467 fi
9468 fi
9469 $RM -r conftest*
9470 LDFLAGS="$save_LDFLAGS"
9471
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9474 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9475
9476 if test x"$lt_cv_prog_compiler__b" = xyes; then
9477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478 else
9479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480 fi
9481
9482 ;;
9483 esac
9484 fi
9485 if test "$with_gnu_ld" = no; then
9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488
9489 case $host_cpu in
9490 hppa*64*|ia64*)
9491 hardcode_direct=no
9492 hardcode_shlibpath_var=no
9493 ;;
9494 *)
9495 hardcode_direct=yes
9496 hardcode_direct_absolute=yes
9497 export_dynamic_flag_spec='${wl}-E'
9498
9499 # hardcode_minus_L: Not really in the search PATH,
9500 # but as the default location of the library.
9501 hardcode_minus_L=yes
9502 ;;
9503 esac
9504 fi
9505 ;;
9506
9507 irix5* | irix6* | nonstopux*)
9508 if test "$GCC" = yes; then
9509 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'
9510 # Try to use the -exported_symbol ld option, if it does not
9511 # work, assume that -exports_file does not work either and
9512 # implicitly export all symbols.
9513 save_LDFLAGS="$LDFLAGS"
9514 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int foo(void) {}
9518 _ACEOF
9519 if ac_fn_c_try_link "$LINENO"; then :
9520 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'
9521
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LDFLAGS="$save_LDFLAGS"
9526 else
9527 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'
9528 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'
9529 fi
9530 archive_cmds_need_lc='no'
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 hardcode_libdir_separator=:
9533 inherit_rpath=yes
9534 link_all_deplibs=yes
9535 ;;
9536
9537 netbsd*)
9538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9540 else
9541 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9542 fi
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
9546 ;;
9547
9548 newsos6)
9549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_direct=yes
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 *nto* | *qnx*)
9557 ;;
9558
9559 openbsd*)
9560 if test -f /usr/libexec/ld.so; then
9561 hardcode_direct=yes
9562 hardcode_shlibpath_var=no
9563 hardcode_direct_absolute=yes
9564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568 export_dynamic_flag_spec='${wl}-E'
9569 else
9570 case $host_os in
9571 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 ;;
9575 *)
9576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578 ;;
9579 esac
9580 fi
9581 else
9582 ld_shlibs=no
9583 fi
9584 ;;
9585
9586 os2*)
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_minus_L=yes
9589 allow_undefined_flag=unsupported
9590 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'
9591 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592 ;;
9593
9594 osf3*)
9595 if test "$GCC" = yes; then
9596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9597 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'
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 fi
9602 archive_cmds_need_lc='no'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 ;;
9606
9607 osf4* | osf5*) # as osf3* with the addition of -msym flag
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610 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'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 else
9613 allow_undefined_flag=' -expect_unresolved \*'
9614 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'
9615 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~
9616 $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'
9617
9618 # Both c and cxx compiler support -rpath directly
9619 hardcode_libdir_flag_spec='-rpath $libdir'
9620 fi
9621 archive_cmds_need_lc='no'
9622 hardcode_libdir_separator=:
9623 ;;
9624
9625 solaris*)
9626 no_undefined_flag=' -z defs'
9627 if test "$GCC" = yes; then
9628 wlarc='${wl}'
9629 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632 else
9633 case `$CC -V 2>&1` in
9634 *"Compilers 5.0"*)
9635 wlarc=''
9636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9639 ;;
9640 *)
9641 wlarc='${wl}'
9642 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 ;;
9646 esac
9647 fi
9648 hardcode_libdir_flag_spec='-R$libdir'
9649 hardcode_shlibpath_var=no
9650 case $host_os in
9651 solaris2.[0-5] | solaris2.[0-5].*) ;;
9652 *)
9653 # The compiler driver will combine and reorder linker options,
9654 # but understands `-z linker_flag'. GCC discards it without `$wl',
9655 # but is careful enough not to reorder.
9656 # Supported since Solaris 2.6 (maybe 2.5.1?)
9657 if test "$GCC" = yes; then
9658 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9659 else
9660 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9661 fi
9662 ;;
9663 esac
9664 link_all_deplibs=yes
9665 ;;
9666
9667 sunos4*)
9668 if test "x$host_vendor" = xsequent; then
9669 # Use $CC to link under sequent, because it throws in some extra .o
9670 # files that make .init and .fini sections work.
9671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672 else
9673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9674 fi
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_direct=yes
9677 hardcode_minus_L=yes
9678 hardcode_shlibpath_var=no
9679 ;;
9680
9681 sysv4)
9682 case $host_vendor in
9683 sni)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=yes # is this really true???
9686 ;;
9687 siemens)
9688 ## LD is ld it makes a PLAMLIB
9689 ## CC just makes a GrossModule.
9690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9691 reload_cmds='$CC -r -o $output$reload_objs'
9692 hardcode_direct=no
9693 ;;
9694 motorola)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9697 ;;
9698 esac
9699 runpath_var='LD_RUN_PATH'
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 sysv4.3*)
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 export_dynamic_flag_spec='-Bexport'
9707 ;;
9708
9709 sysv4*MP*)
9710 if test -d /usr/nec; then
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 runpath_var=LD_RUN_PATH
9714 hardcode_runpath_var=yes
9715 ld_shlibs=yes
9716 fi
9717 ;;
9718
9719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9720 no_undefined_flag='${wl}-z,text'
9721 archive_cmds_need_lc=no
9722 hardcode_shlibpath_var=no
9723 runpath_var='LD_RUN_PATH'
9724
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 fi
9732 ;;
9733
9734 sysv5* | sco3.2v5* | sco5v6*)
9735 # Note: We can NOT use -z defs as we might desire, because we do not
9736 # link with -lc, and that would cause any symbols used from libc to
9737 # always be unresolved, which means just about no library would
9738 # ever link correctly. If we're not using GNU ld we use -z text
9739 # though, which does catch some bad symbols but isn't as heavy-handed
9740 # as -z defs.
9741 no_undefined_flag='${wl}-z,text'
9742 allow_undefined_flag='${wl}-z,nodefs'
9743 archive_cmds_need_lc=no
9744 hardcode_shlibpath_var=no
9745 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9746 hardcode_libdir_separator=':'
9747 link_all_deplibs=yes
9748 export_dynamic_flag_spec='${wl}-Bexport'
9749 runpath_var='LD_RUN_PATH'
9750
9751 if test "$GCC" = yes; then
9752 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 else
9755 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 fi
9758 ;;
9759
9760 uts4*)
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_shlibpath_var=no
9764 ;;
9765
9766 *)
9767 ld_shlibs=no
9768 ;;
9769 esac
9770
9771 if test x$host_vendor = xsni; then
9772 case $host in
9773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9774 export_dynamic_flag_spec='${wl}-Blargedynsym'
9775 ;;
9776 esac
9777 fi
9778 fi
9779
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9781 $as_echo "$ld_shlibs" >&6; }
9782 test "$ld_shlibs" = no && can_build_shared=no
9783
9784 with_gnu_ld=$with_gnu_ld
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800 #
9801 # Do we need to explicitly link libc?
9802 #
9803 case "x$archive_cmds_need_lc" in
9804 x|xyes)
9805 # Assume -lc should be added
9806 archive_cmds_need_lc=yes
9807
9808 if test "$enable_shared" = yes && test "$GCC" = yes; then
9809 case $archive_cmds in
9810 *'~'*)
9811 # FIXME: we may have to deal with multi-command sequences.
9812 ;;
9813 '$CC '*)
9814 # Test whether the compiler implicitly links with -lc since on some
9815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9816 # to ld, don't add -lc before -lgcc.
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9818 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9819 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 $RM conftest*
9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9824
9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9826 (eval $ac_compile) 2>&5
9827 ac_status=$?
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; } 2>conftest.err; then
9830 soname=conftest
9831 lib=conftest
9832 libobjs=conftest.$ac_objext
9833 deplibs=
9834 wl=$lt_prog_compiler_wl
9835 pic_flag=$lt_prog_compiler_pic
9836 compiler_flags=-v
9837 linker_flags=-v
9838 verstring=
9839 output_objdir=.
9840 libname=conftest
9841 lt_save_allow_undefined_flag=$allow_undefined_flag
9842 allow_undefined_flag=
9843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9844 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9845 ac_status=$?
9846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847 test $ac_status = 0; }
9848 then
9849 lt_cv_archive_cmds_need_lc=no
9850 else
9851 lt_cv_archive_cmds_need_lc=yes
9852 fi
9853 allow_undefined_flag=$lt_save_allow_undefined_flag
9854 else
9855 cat conftest.err 1>&5
9856 fi
9857 $RM conftest*
9858
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9861 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9862 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9863 ;;
9864 esac
9865 fi
9866 ;;
9867 esac
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10026 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10027
10028 if test "$GCC" = yes; then
10029 case $host_os in
10030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10031 *) lt_awk_arg="/^libraries:/" ;;
10032 esac
10033 case $host_os in
10034 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10035 *) lt_sed_strip_eq="s,=/,/,g" ;;
10036 esac
10037 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10038 case $lt_search_path_spec in
10039 *\;*)
10040 # if the path contains ";" then we assume it to be the separator
10041 # otherwise default to the standard path separator (i.e. ":") - it is
10042 # assumed that no part of a normal pathname contains ";" but that should
10043 # okay in the real world where ";" in dirpaths is itself problematic.
10044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10045 ;;
10046 *)
10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10048 ;;
10049 esac
10050 # Ok, now we have the path, separated by spaces, we can step through it
10051 # and add multilib dir if necessary.
10052 lt_tmp_lt_search_path_spec=
10053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10054 for lt_sys_path in $lt_search_path_spec; do
10055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10057 else
10058 test -d "$lt_sys_path" && \
10059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10060 fi
10061 done
10062 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10063 BEGIN {RS=" "; FS="/|\n";} {
10064 lt_foo="";
10065 lt_count=0;
10066 for (lt_i = NF; lt_i > 0; lt_i--) {
10067 if ($lt_i != "" && $lt_i != ".") {
10068 if ($lt_i == "..") {
10069 lt_count++;
10070 } else {
10071 if (lt_count == 0) {
10072 lt_foo="/" $lt_i lt_foo;
10073 } else {
10074 lt_count--;
10075 }
10076 }
10077 }
10078 }
10079 if (lt_foo != "") { lt_freq[lt_foo]++; }
10080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10081 }'`
10082 # AWK program above erroneously prepends '/' to C:/dos/paths
10083 # for these hosts.
10084 case $host_os in
10085 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10086 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10087 esac
10088 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10089 else
10090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10091 fi
10092 library_names_spec=
10093 libname_spec='lib$name'
10094 soname_spec=
10095 shrext_cmds=".so"
10096 postinstall_cmds=
10097 postuninstall_cmds=
10098 finish_cmds=
10099 finish_eval=
10100 shlibpath_var=
10101 shlibpath_overrides_runpath=unknown
10102 version_type=none
10103 dynamic_linker="$host_os ld.so"
10104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10105 need_lib_prefix=unknown
10106 hardcode_into_libs=no
10107
10108 # when you set need_version to no, make sure it does not cause -set_version
10109 # flags to be left without arguments
10110 need_version=unknown
10111
10112 case $host_os in
10113 aix3*)
10114 version_type=linux
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10116 shlibpath_var=LIBPATH
10117
10118 # AIX 3 has no versioning support, so we append a major version to the name.
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 ;;
10121
10122 aix[4-9]*)
10123 version_type=linux
10124 need_lib_prefix=no
10125 need_version=no
10126 hardcode_into_libs=yes
10127 if test "$host_cpu" = ia64; then
10128 # AIX 5 supports IA64
10129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 else
10132 # With GCC up to 2.95.x, collect2 would create an import file
10133 # for dependence libraries. The import file would start with
10134 # the line `#! .'. This would cause the generated library to
10135 # depend on `.', always an invalid library. This was fixed in
10136 # development snapshots of GCC prior to 3.0.
10137 case $host_os in
10138 aix4 | aix4.[01] | aix4.[01].*)
10139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10140 echo ' yes '
10141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10142 :
10143 else
10144 can_build_shared=no
10145 fi
10146 ;;
10147 esac
10148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10149 # soname into executable. Probably we can add versioning support to
10150 # collect2, so additional links can be useful in future.
10151 if test "$aix_use_runtimelinking" = yes; then
10152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10153 # instead of lib<name>.a to let people know that these are not
10154 # typical AIX shared libraries.
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 else
10157 # We preserve .a as extension for shared libraries through AIX4.2
10158 # and later when we are not doing run time linking.
10159 library_names_spec='${libname}${release}.a $libname.a'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 fi
10162 shlibpath_var=LIBPATH
10163 fi
10164 ;;
10165
10166 amigaos*)
10167 case $host_cpu in
10168 powerpc)
10169 # Since July 2007 AmigaOS4 officially supports .so libraries.
10170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 ;;
10173 m68k)
10174 library_names_spec='$libname.ixlibrary $libname.a'
10175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10176 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'
10177 ;;
10178 esac
10179 ;;
10180
10181 beos*)
10182 library_names_spec='${libname}${shared_ext}'
10183 dynamic_linker="$host_os ld.so"
10184 shlibpath_var=LIBRARY_PATH
10185 ;;
10186
10187 bsdi[45]*)
10188 version_type=linux
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10196 # the default ld.so.conf also contains /usr/contrib/lib and
10197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10198 # libtool to hard-code these into programs
10199 ;;
10200
10201 cygwin* | mingw* | pw32* | cegcc*)
10202 version_type=windows
10203 shrext_cmds=".dll"
10204 need_version=no
10205 need_lib_prefix=no
10206
10207 case $GCC,$host_os in
10208 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10209 library_names_spec='$libname.dll.a'
10210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10211 postinstall_cmds='base_file=`basename \${file}`~
10212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10213 dldir=$destdir/`dirname \$dlpath`~
10214 test -d \$dldir || mkdir -p \$dldir~
10215 $install_prog $dir/$dlname \$dldir/$dlname~
10216 chmod a+x \$dldir/$dlname~
10217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10219 fi'
10220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10221 dlpath=$dir/\$dldll~
10222 $RM \$dlpath'
10223 shlibpath_overrides_runpath=yes
10224
10225 case $host_os in
10226 cygwin*)
10227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10231 ;;
10232 mingw* | cegcc*)
10233 # MinGW DLLs use traditional 'lib' prefix
10234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10235 ;;
10236 pw32*)
10237 # pw32 DLLs use 'pw' prefix rather than 'lib'
10238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239 ;;
10240 esac
10241 ;;
10242
10243 *)
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245 ;;
10246 esac
10247 dynamic_linker='Win32 ld.exe'
10248 # FIXME: first we should search . and the directory the executable is in
10249 shlibpath_var=PATH
10250 ;;
10251
10252 darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10262
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265 ;;
10266
10267 dgux*)
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 ;;
10275
10276 freebsd1*)
10277 dynamic_linker=no
10278 ;;
10279
10280 freebsd* | dragonfly*)
10281 # DragonFly does not have aout. When/if they implement a new
10282 # versioning mechanism, adjust this.
10283 if test -x /usr/bin/objformat; then
10284 objformat=`/usr/bin/objformat`
10285 else
10286 case $host_os in
10287 freebsd[123]*) objformat=aout ;;
10288 *) objformat=elf ;;
10289 esac
10290 fi
10291 version_type=freebsd-$objformat
10292 case $version_type in
10293 freebsd-elf*)
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 need_version=no
10296 need_lib_prefix=no
10297 ;;
10298 freebsd-*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10300 need_version=yes
10301 ;;
10302 esac
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_os in
10305 freebsd2*)
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308 freebsd3.[01]* | freebsdelf3.[01]*)
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 ;;
10312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10316 ;;
10317 *) # from 4.6 on, and DragonFly
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 ;;
10321 esac
10322 ;;
10323
10324 gnu*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 hardcode_into_libs=yes
10332 ;;
10333
10334 haiku*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 dynamic_linker="$host_os runtime_loader"
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10344 hardcode_into_libs=yes
10345 ;;
10346
10347 hpux9* | hpux10* | hpux11*)
10348 # Give a soname corresponding to the major version so that dld.sl refuses to
10349 # link against other versions.
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 case $host_cpu in
10354 ia64*)
10355 shrext_cmds='.so'
10356 hardcode_into_libs=yes
10357 dynamic_linker="$host_os dld.so"
10358 shlibpath_var=LD_LIBRARY_PATH
10359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 if test "X$HPUX_IA64_MODE" = X32; then
10363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10364 else
10365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10366 fi
10367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10368 ;;
10369 hppa*64*)
10370 shrext_cmds='.sl'
10371 hardcode_into_libs=yes
10372 dynamic_linker="$host_os dld.sl"
10373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10379 ;;
10380 *)
10381 shrext_cmds='.sl'
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=SHLIB_PATH
10384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 ;;
10388 esac
10389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10390 postinstall_cmds='chmod 555 $lib'
10391 # or fails outright, so override atomically:
10392 install_override_mode=555
10393 ;;
10394
10395 interix[3-9]*)
10396 version_type=linux
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10405 ;;
10406
10407 irix5* | irix6* | nonstopux*)
10408 case $host_os in
10409 nonstopux*) version_type=nonstopux ;;
10410 *)
10411 if test "$lt_cv_prog_gnu_ld" = yes; then
10412 version_type=linux
10413 else
10414 version_type=irix
10415 fi ;;
10416 esac
10417 need_lib_prefix=no
10418 need_version=no
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10421 case $host_os in
10422 irix5* | nonstopux*)
10423 libsuff= shlibsuff=
10424 ;;
10425 *)
10426 case $LD in # libtool.m4 will add one of these switches to LD
10427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10428 libsuff= shlibsuff= libmagic=32-bit;;
10429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10430 libsuff=32 shlibsuff=N32 libmagic=N32;;
10431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10433 *) libsuff= shlibsuff= libmagic=never-match;;
10434 esac
10435 ;;
10436 esac
10437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10438 shlibpath_overrides_runpath=no
10439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10441 hardcode_into_libs=yes
10442 ;;
10443
10444 # No shared lib support for Linux oldld, aout, or coff.
10445 linux*oldld* | linux*aout* | linux*coff*)
10446 dynamic_linker=no
10447 ;;
10448
10449 # This must be Linux ELF.
10450 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10459
10460 # Some binutils ld are patched to set DT_RUNPATH
10461 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 lt_cv_shlibpath_overrides_runpath=no
10465 save_LDFLAGS=$LDFLAGS
10466 save_libdir=$libdir
10467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471
10472 int
10473 main ()
10474 {
10475
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10482 lt_cv_shlibpath_overrides_runpath=yes
10483 fi
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LDFLAGS=$save_LDFLAGS
10488 libdir=$save_libdir
10489
10490 fi
10491
10492 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10493
10494 # This implies no fast_install, which is unacceptable.
10495 # Some rework will be needed to allow for fast_install
10496 # before this can be enabled.
10497 hardcode_into_libs=yes
10498
10499 # Append ld.so.conf contents to the search path
10500 if test -f /etc/ld.so.conf; then
10501 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' ' '`
10502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10503 fi
10504
10505 # We used to test for /lib/ld.so.1 and disable shared libraries on
10506 # powerpc, because MkLinux only supported shared libraries with the
10507 # GNU dynamic linker. Since this was broken with cross compilers,
10508 # most powerpc-linux boxes support dynamic linking these days and
10509 # people can always --disable-shared, the test was removed, and we
10510 # assume the GNU/Linux dynamic linker is in use.
10511 dynamic_linker='GNU/Linux ld.so'
10512 ;;
10513
10514 netbsd*)
10515 version_type=sunos
10516 need_lib_prefix=no
10517 need_version=no
10518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10521 dynamic_linker='NetBSD (a.out) ld.so'
10522 else
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 dynamic_linker='NetBSD ld.elf_so'
10526 fi
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=yes
10529 hardcode_into_libs=yes
10530 ;;
10531
10532 newsos6)
10533 version_type=linux
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10537 ;;
10538
10539 *nto* | *qnx*)
10540 version_type=qnx
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=no
10547 hardcode_into_libs=yes
10548 dynamic_linker='ldqnx.so'
10549 ;;
10550
10551 openbsd*)
10552 version_type=sunos
10553 sys_lib_dlsearch_path_spec="/usr/lib"
10554 need_lib_prefix=no
10555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10556 case $host_os in
10557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10558 *) need_version=no ;;
10559 esac
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10564 case $host_os in
10565 openbsd2.[89] | openbsd2.[89].*)
10566 shlibpath_overrides_runpath=no
10567 ;;
10568 *)
10569 shlibpath_overrides_runpath=yes
10570 ;;
10571 esac
10572 else
10573 shlibpath_overrides_runpath=yes
10574 fi
10575 ;;
10576
10577 os2*)
10578 libname_spec='$name'
10579 shrext_cmds=".dll"
10580 need_lib_prefix=no
10581 library_names_spec='$libname${shared_ext} $libname.a'
10582 dynamic_linker='OS/2 ld.exe'
10583 shlibpath_var=LIBPATH
10584 ;;
10585
10586 osf3* | osf4* | osf5*)
10587 version_type=osf
10588 need_lib_prefix=no
10589 need_version=no
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10595 ;;
10596
10597 rdos*)
10598 dynamic_linker=no
10599 ;;
10600
10601 solaris*)
10602 version_type=linux
10603 need_lib_prefix=no
10604 need_version=no
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 hardcode_into_libs=yes
10610 # ldd complains unless libraries are executable
10611 postinstall_cmds='chmod +x $lib'
10612 ;;
10613
10614 sunos4*)
10615 version_type=sunos
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 if test "$with_gnu_ld" = yes; then
10621 need_lib_prefix=no
10622 fi
10623 need_version=yes
10624 ;;
10625
10626 sysv4 | sysv4.3*)
10627 version_type=linux
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 case $host_vendor in
10632 sni)
10633 shlibpath_overrides_runpath=no
10634 need_lib_prefix=no
10635 runpath_var=LD_RUN_PATH
10636 ;;
10637 siemens)
10638 need_lib_prefix=no
10639 ;;
10640 motorola)
10641 need_lib_prefix=no
10642 need_version=no
10643 shlibpath_overrides_runpath=no
10644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10645 ;;
10646 esac
10647 ;;
10648
10649 sysv4*MP*)
10650 if test -d /usr/nec ;then
10651 version_type=linux
10652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10653 soname_spec='$libname${shared_ext}.$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 fi
10656 ;;
10657
10658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10659 version_type=freebsd-elf
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 if test "$with_gnu_ld" = yes; then
10668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10669 else
10670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10671 case $host_os in
10672 sco3.2v5*)
10673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10674 ;;
10675 esac
10676 fi
10677 sys_lib_dlsearch_path_spec='/usr/lib'
10678 ;;
10679
10680 tpf*)
10681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10682 version_type=linux
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=no
10688 hardcode_into_libs=yes
10689 ;;
10690
10691 uts4*)
10692 version_type=linux
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 ;;
10697
10698 *)
10699 dynamic_linker=no
10700 ;;
10701 esac
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10703 $as_echo "$dynamic_linker" >&6; }
10704 test "$dynamic_linker" = no && can_build_shared=no
10705
10706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10707 if test "$GCC" = yes; then
10708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10709 fi
10710
10711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10713 fi
10714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10716 fi
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10810 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10811 hardcode_action=
10812 if test -n "$hardcode_libdir_flag_spec" ||
10813 test -n "$runpath_var" ||
10814 test "X$hardcode_automatic" = "Xyes" ; then
10815
10816 # We can hardcode non-existent directories.
10817 if test "$hardcode_direct" != no &&
10818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10819 # have to relink, otherwise we might link with an installed library
10820 # when we should be linking with a yet-to-be-installed one
10821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10822 test "$hardcode_minus_L" != no; then
10823 # Linking always hardcodes the temporary library directory.
10824 hardcode_action=relink
10825 else
10826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10827 hardcode_action=immediate
10828 fi
10829 else
10830 # We cannot hardcode anything, or else we can only hardcode existing
10831 # directories.
10832 hardcode_action=unsupported
10833 fi
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10835 $as_echo "$hardcode_action" >&6; }
10836
10837 if test "$hardcode_action" = relink ||
10838 test "$inherit_rpath" = yes; then
10839 # Fast installation is not supported
10840 enable_fast_install=no
10841 elif test "$shlibpath_overrides_runpath" = yes ||
10842 test "$enable_shared" = no; then
10843 # Fast installation is not necessary
10844 enable_fast_install=needless
10845 fi
10846
10847
10848
10849
10850
10851
10852 if test "x$enable_dlopen" != xyes; then
10853 enable_dlopen=unknown
10854 enable_dlopen_self=unknown
10855 enable_dlopen_self_static=unknown
10856 else
10857 lt_cv_dlopen=no
10858 lt_cv_dlopen_libs=
10859
10860 case $host_os in
10861 beos*)
10862 lt_cv_dlopen="load_add_on"
10863 lt_cv_dlopen_libs=
10864 lt_cv_dlopen_self=yes
10865 ;;
10866
10867 mingw* | pw32* | cegcc*)
10868 lt_cv_dlopen="LoadLibrary"
10869 lt_cv_dlopen_libs=
10870 ;;
10871
10872 cygwin*)
10873 lt_cv_dlopen="dlopen"
10874 lt_cv_dlopen_libs=
10875 ;;
10876
10877 darwin*)
10878 # if libdl is installed we need to link against it
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10881 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldl $LIBS"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892 #ifdef __cplusplus
10893 extern "C"
10894 #endif
10895 char dlopen ();
10896 int
10897 main ()
10898 {
10899 return dlopen ();
10900 ;
10901 return 0;
10902 }
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 ac_cv_lib_dl_dlopen=yes
10906 else
10907 ac_cv_lib_dl_dlopen=no
10908 fi
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10915 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10917 else
10918
10919 lt_cv_dlopen="dyld"
10920 lt_cv_dlopen_libs=
10921 lt_cv_dlopen_self=yes
10922
10923 fi
10924
10925 ;;
10926
10927 *)
10928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10929 if test "x$ac_cv_func_shl_load" = x""yes; then :
10930 lt_cv_dlopen="shl_load"
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10934 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-ldld $LIBS"
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941
10942 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10945 #ifdef __cplusplus
10946 extern "C"
10947 #endif
10948 char shl_load ();
10949 int
10950 main ()
10951 {
10952 return shl_load ();
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 ac_cv_lib_dld_shl_load=yes
10959 else
10960 ac_cv_lib_dld_shl_load=no
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10965 fi
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10968 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10970 else
10971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10972 if test "x$ac_cv_func_dlopen" = x""yes; then :
10973 lt_cv_dlopen="dlopen"
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 ac_check_lib_save_LIBS=$LIBS
10981 LIBS="-ldl $LIBS"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dlopen ();
10992 int
10993 main ()
10994 {
10995 return dlopen ();
10996 ;
10997 return 0;
10998 }
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_dl_dlopen=yes
11002 else
11003 ac_cv_lib_dl_dlopen=no
11004 fi
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11008 fi
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11011 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 ac_check_lib_save_LIBS=$LIBS
11020 LIBS="-lsvld $LIBS"
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11023
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11027 #ifdef __cplusplus
11028 extern "C"
11029 #endif
11030 char dlopen ();
11031 int
11032 main ()
11033 {
11034 return dlopen ();
11035 ;
11036 return 0;
11037 }
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"; then :
11040 ac_cv_lib_svld_dlopen=yes
11041 else
11042 ac_cv_lib_svld_dlopen=no
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11047 fi
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11050 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11055 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-ldld $LIBS"
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11062
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char dld_link ();
11070 int
11071 main ()
11072 {
11073 return dld_link ();
11074 ;
11075 return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_dld_dld_link=yes
11080 else
11081 ac_cv_lib_dld_dld_link=no
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11086 fi
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11089 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11091 fi
11092
11093
11094 fi
11095
11096
11097 fi
11098
11099
11100 fi
11101
11102
11103 fi
11104
11105
11106 fi
11107
11108 ;;
11109 esac
11110
11111 if test "x$lt_cv_dlopen" != xno; then
11112 enable_dlopen=yes
11113 else
11114 enable_dlopen=no
11115 fi
11116
11117 case $lt_cv_dlopen in
11118 dlopen)
11119 save_CPPFLAGS="$CPPFLAGS"
11120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11121
11122 save_LDFLAGS="$LDFLAGS"
11123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11124
11125 save_LIBS="$LIBS"
11126 LIBS="$lt_cv_dlopen_libs $LIBS"
11127
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11130 if test "${lt_cv_dlopen_self+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 if test "$cross_compiling" = yes; then :
11134 lt_cv_dlopen_self=cross
11135 else
11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137 lt_status=$lt_dlunknown
11138 cat > conftest.$ac_ext <<_LT_EOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11141
11142 #if HAVE_DLFCN_H
11143 #include <dlfcn.h>
11144 #endif
11145
11146 #include <stdio.h>
11147
11148 #ifdef RTLD_GLOBAL
11149 # define LT_DLGLOBAL RTLD_GLOBAL
11150 #else
11151 # ifdef DL_GLOBAL
11152 # define LT_DLGLOBAL DL_GLOBAL
11153 # else
11154 # define LT_DLGLOBAL 0
11155 # endif
11156 #endif
11157
11158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160 #ifndef LT_DLLAZY_OR_NOW
11161 # ifdef RTLD_LAZY
11162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11163 # else
11164 # ifdef DL_LAZY
11165 # define LT_DLLAZY_OR_NOW DL_LAZY
11166 # else
11167 # ifdef RTLD_NOW
11168 # define LT_DLLAZY_OR_NOW RTLD_NOW
11169 # else
11170 # ifdef DL_NOW
11171 # define LT_DLLAZY_OR_NOW DL_NOW
11172 # else
11173 # define LT_DLLAZY_OR_NOW 0
11174 # endif
11175 # endif
11176 # endif
11177 # endif
11178 #endif
11179
11180 /* When -fvisbility=hidden is used, assume the code has been annotated
11181 correspondingly for the symbols needed. */
11182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11183 void fnord () __attribute__((visibility("default")));
11184 #endif
11185
11186 void fnord () { int i=42; }
11187 int main ()
11188 {
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
11191
11192 if (self)
11193 {
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11195 else
11196 {
11197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11198 else puts (dlerror ());
11199 }
11200 /* dlclose (self); */
11201 }
11202 else
11203 puts (dlerror ());
11204
11205 return status;
11206 }
11207 _LT_EOF
11208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11209 (eval $ac_link) 2>&5
11210 ac_status=$?
11211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11213 (./conftest; exit; ) >&5 2>/dev/null
11214 lt_status=$?
11215 case x$lt_status in
11216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11219 esac
11220 else :
11221 # compilation failed
11222 lt_cv_dlopen_self=no
11223 fi
11224 fi
11225 rm -fr conftest*
11226
11227
11228 fi
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11230 $as_echo "$lt_cv_dlopen_self" >&6; }
11231
11232 if test "x$lt_cv_dlopen_self" = xyes; then
11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11236 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 if test "$cross_compiling" = yes; then :
11240 lt_cv_dlopen_self_static=cross
11241 else
11242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11243 lt_status=$lt_dlunknown
11244 cat > conftest.$ac_ext <<_LT_EOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11247
11248 #if HAVE_DLFCN_H
11249 #include <dlfcn.h>
11250 #endif
11251
11252 #include <stdio.h>
11253
11254 #ifdef RTLD_GLOBAL
11255 # define LT_DLGLOBAL RTLD_GLOBAL
11256 #else
11257 # ifdef DL_GLOBAL
11258 # define LT_DLGLOBAL DL_GLOBAL
11259 # else
11260 # define LT_DLGLOBAL 0
11261 # endif
11262 #endif
11263
11264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11265 find out it does not work in some platform. */
11266 #ifndef LT_DLLAZY_OR_NOW
11267 # ifdef RTLD_LAZY
11268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11269 # else
11270 # ifdef DL_LAZY
11271 # define LT_DLLAZY_OR_NOW DL_LAZY
11272 # else
11273 # ifdef RTLD_NOW
11274 # define LT_DLLAZY_OR_NOW RTLD_NOW
11275 # else
11276 # ifdef DL_NOW
11277 # define LT_DLLAZY_OR_NOW DL_NOW
11278 # else
11279 # define LT_DLLAZY_OR_NOW 0
11280 # endif
11281 # endif
11282 # endif
11283 # endif
11284 #endif
11285
11286 /* When -fvisbility=hidden is used, assume the code has been annotated
11287 correspondingly for the symbols needed. */
11288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11289 void fnord () __attribute__((visibility("default")));
11290 #endif
11291
11292 void fnord () { int i=42; }
11293 int main ()
11294 {
11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11296 int status = $lt_dlunknown;
11297
11298 if (self)
11299 {
11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11301 else
11302 {
11303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11304 else puts (dlerror ());
11305 }
11306 /* dlclose (self); */
11307 }
11308 else
11309 puts (dlerror ());
11310
11311 return status;
11312 }
11313 _LT_EOF
11314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11315 (eval $ac_link) 2>&5
11316 ac_status=$?
11317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11319 (./conftest; exit; ) >&5 2>/dev/null
11320 lt_status=$?
11321 case x$lt_status in
11322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11325 esac
11326 else :
11327 # compilation failed
11328 lt_cv_dlopen_self_static=no
11329 fi
11330 fi
11331 rm -fr conftest*
11332
11333
11334 fi
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11337 fi
11338
11339 CPPFLAGS="$save_CPPFLAGS"
11340 LDFLAGS="$save_LDFLAGS"
11341 LIBS="$save_LIBS"
11342 ;;
11343 esac
11344
11345 case $lt_cv_dlopen_self in
11346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11347 *) enable_dlopen_self=unknown ;;
11348 esac
11349
11350 case $lt_cv_dlopen_self_static in
11351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11352 *) enable_dlopen_self_static=unknown ;;
11353 esac
11354 fi
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372 striplib=
11373 old_striplib=
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 $as_echo "yes" >&6; }
11381 else
11382 # FIXME - insert some real tests, host_os isn't really good enough
11383 case $host_os in
11384 darwin*)
11385 if test -n "$STRIP" ; then
11386 striplib="$STRIP -x"
11387 old_striplib="$STRIP -S"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11393 fi
11394 ;;
11395 *)
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11398 ;;
11399 esac
11400 fi
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413 # Report which library types will actually be built
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11417 $as_echo "$can_build_shared" >&6; }
11418
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11420 $as_echo_n "checking whether to build shared libraries... " >&6; }
11421 test "$can_build_shared" = "no" && enable_shared=no
11422
11423 # On AIX, shared libraries and static libraries use the same namespace, and
11424 # are all built from PIC.
11425 case $host_os in
11426 aix3*)
11427 test "$enable_shared" = yes && enable_static=no
11428 if test -n "$RANLIB"; then
11429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11430 postinstall_cmds='$RANLIB $lib'
11431 fi
11432 ;;
11433
11434 aix[4-9]*)
11435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11436 test "$enable_shared" = yes && enable_static=no
11437 fi
11438 ;;
11439 esac
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11441 $as_echo "$enable_shared" >&6; }
11442
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11444 $as_echo_n "checking whether to build static libraries... " >&6; }
11445 # Make sure either enable_shared or enable_static is yes.
11446 test "$enable_shared" = yes || enable_static=yes
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11448 $as_echo "$enable_static" >&6; }
11449
11450
11451
11452
11453 fi
11454 ac_ext=c
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459
11460 CC="$lt_save_CC"
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474 ac_config_commands="$ac_config_commands libtool"
11475
11476
11477
11478
11479 # Only expand once:
11480
11481
11482
11483 # Check whether --enable-targets was given.
11484 if test "${enable_targets+set}" = set; then :
11485 enableval=$enable_targets; case "${enableval}" in
11486 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11487 ;;
11488 no) enable_targets= ;;
11489 *) enable_targets=$enableval ;;
11490 esac
11491 fi
11492
11493
11494 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
11495
11496 # Check whether --enable-werror was given.
11497 if test "${enable_werror+set}" = set; then :
11498 enableval=$enable_werror; case "${enableval}" in
11499 yes | y) ERROR_ON_WARNING="yes" ;;
11500 no | n) ERROR_ON_WARNING="no" ;;
11501 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11502 esac
11503 fi
11504
11505
11506 # Enable -Wno-format by default when using gcc on mingw
11507 case "${host}" in
11508 *-*-mingw32*)
11509 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11510 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11511 fi
11512 ;;
11513 *) ;;
11514 esac
11515
11516 # Enable -Werror by default when using gcc
11517 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11518 ERROR_ON_WARNING=yes
11519 fi
11520
11521 NO_WERROR=
11522 if test "${ERROR_ON_WARNING}" = yes ; then
11523 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11524 NO_WERROR="-Wno-error"
11525 fi
11526
11527 if test "${GCC}" = yes ; then
11528 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11529 fi
11530
11531 # Check whether --enable-build-warnings was given.
11532 if test "${enable_build_warnings+set}" = set; then :
11533 enableval=$enable_build_warnings; case "${enableval}" in
11534 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11535 no) if test "${GCC}" = yes ; then
11536 WARN_CFLAGS="-w"
11537 fi;;
11538 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11539 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11540 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11541 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11542 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11543 esac
11544 fi
11545
11546
11547 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11548 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11549 fi
11550
11551
11552
11553
11554
11555 ac_config_headers="$ac_config_headers config.h:config.in"
11556
11557
11558 if test -z "$target" ; then
11559 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
11560 fi
11561
11562
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11564 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11565 # Check whether --enable-maintainer-mode was given.
11566 if test "${enable_maintainer_mode+set}" = set; then :
11567 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11568 else
11569 USE_MAINTAINER_MODE=no
11570 fi
11571
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11573 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11574 if test $USE_MAINTAINER_MODE = yes; then
11575 MAINTAINER_MODE_TRUE=
11576 MAINTAINER_MODE_FALSE='#'
11577 else
11578 MAINTAINER_MODE_TRUE='#'
11579 MAINTAINER_MODE_FALSE=
11580 fi
11581
11582 MAINT=$MAINTAINER_MODE_TRUE
11583
11584
11585 case ${build_alias} in
11586 "") build_noncanonical=${build} ;;
11587 *) build_noncanonical=${build_alias} ;;
11588 esac
11589
11590 case ${host_alias} in
11591 "") host_noncanonical=${build_noncanonical} ;;
11592 *) host_noncanonical=${host_alias} ;;
11593 esac
11594
11595 case ${target_alias} in
11596 "") target_noncanonical=${host_noncanonical} ;;
11597 *) target_noncanonical=${target_alias} ;;
11598 esac
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11601 $as_echo_n "checking whether to install libbfd... " >&6; }
11602 # Check whether --enable-install-libbfd was given.
11603 if test "${enable_install_libbfd+set}" = set; then :
11604 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
11605 else
11606 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11607 install_libbfd_p=yes
11608 else
11609 install_libbfd_p=no
11610 fi
11611 fi
11612
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11614 $as_echo "$install_libbfd_p" >&6; }
11615 if test $install_libbfd_p = yes; then
11616 INSTALL_LIBBFD_TRUE=
11617 INSTALL_LIBBFD_FALSE='#'
11618 else
11619 INSTALL_LIBBFD_TRUE='#'
11620 INSTALL_LIBBFD_FALSE=
11621 fi
11622
11623 # Need _noncanonical variables for this.
11624
11625
11626
11627
11628 # libbfd.a is a host library containing target dependent code
11629 bfdlibdir='$(libdir)'
11630 bfdincludedir='$(includedir)'
11631 if test "${host}" != "${target}"; then
11632 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11633 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11634 fi
11635
11636
11637
11638
11639
11640
11641
11642
11643 # host-specific stuff:
11644
11645 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
11646 # If we haven't got the data from the intl directory,
11647 # assume NLS is disabled.
11648 USE_NLS=no
11649 LIBINTL=
11650 LIBINTL_DEP=
11651 INCINTL=
11652 XGETTEXT=
11653 GMSGFMT=
11654 POSUB=
11655
11656 if test -f ../intl/config.intl; then
11657 . ../intl/config.intl
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11660 $as_echo_n "checking whether NLS is requested... " >&6; }
11661 if test x"$USE_NLS" != xyes; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663 $as_echo "no" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11666 $as_echo "yes" >&6; }
11667
11668 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11669
11670
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11672 $as_echo_n "checking for catalogs to be installed... " >&6; }
11673 # Look for .po and .gmo files in the source directory.
11674 CATALOGS=
11675 XLINGUAS=
11676 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11677 # If there aren't any .gmo files the shell will give us the
11678 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11679 # weeded out.
11680 case "$cat" in *\**)
11681 continue;;
11682 esac
11683 # The quadruple backslash is collapsed to a double backslash
11684 # by the backticks, then collapsed again by the double quotes,
11685 # leaving us with one backslash in the sed expression (right
11686 # before the dot that mustn't act as a wildcard).
11687 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11688 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11689 # The user is allowed to set LINGUAS to a list of languages to
11690 # install catalogs for. If it's empty that means "all of them."
11691 if test "x$LINGUAS" = x; then
11692 CATALOGS="$CATALOGS $cat"
11693 XLINGUAS="$XLINGUAS $lang"
11694 else
11695 case "$LINGUAS" in *$lang*)
11696 CATALOGS="$CATALOGS $cat"
11697 XLINGUAS="$XLINGUAS $lang"
11698 ;;
11699 esac
11700 fi
11701 done
11702 LINGUAS="$XLINGUAS"
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11704 $as_echo "$LINGUAS" >&6; }
11705
11706
11707 DATADIRNAME=share
11708
11709 INSTOBJEXT=.mo
11710
11711 GENCAT=gencat
11712
11713 CATOBJEXT=.gmo
11714
11715 fi
11716
11717 MKINSTALLDIRS=
11718 if test -n "$ac_aux_dir"; then
11719 case "$ac_aux_dir" in
11720 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11721 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11722 esac
11723 fi
11724 if test -z "$MKINSTALLDIRS"; then
11725 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11726 fi
11727
11728
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11731 $as_echo_n "checking whether NLS is requested... " >&6; }
11732 # Check whether --enable-nls was given.
11733 if test "${enable_nls+set}" = set; then :
11734 enableval=$enable_nls; USE_NLS=$enableval
11735 else
11736 USE_NLS=yes
11737 fi
11738
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11740 $as_echo "$USE_NLS" >&6; }
11741
11742
11743
11744
11745
11746
11747 # Prepare PATH_SEPARATOR.
11748 # The user is always right.
11749 if test "${PATH_SEPARATOR+set}" != set; then
11750 echo "#! /bin/sh" >conf$$.sh
11751 echo "exit 0" >>conf$$.sh
11752 chmod +x conf$$.sh
11753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11754 PATH_SEPARATOR=';'
11755 else
11756 PATH_SEPARATOR=:
11757 fi
11758 rm -f conf$$.sh
11759 fi
11760
11761 # Find out how to test for executable files. Don't use a zero-byte file,
11762 # as systems may use methods other than mode bits to determine executability.
11763 cat >conf$$.file <<_ASEOF
11764 #! /bin/sh
11765 exit 0
11766 _ASEOF
11767 chmod +x conf$$.file
11768 if test -x conf$$.file >/dev/null 2>&1; then
11769 ac_executable_p="test -x"
11770 else
11771 ac_executable_p="test -f"
11772 fi
11773 rm -f conf$$.file
11774
11775 # Extract the first word of "msgfmt", so it can be a program name with args.
11776 set dummy msgfmt; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 case "$MSGFMT" in
11783 [\\/]* | ?:[\\/]*)
11784 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11785 ;;
11786 *)
11787 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11788 for ac_dir in $PATH; do
11789 IFS="$ac_save_IFS"
11790 test -z "$ac_dir" && ac_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11793 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11794 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11795 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11796 break 2
11797 fi
11798 fi
11799 done
11800 done
11801 IFS="$ac_save_IFS"
11802 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11803 ;;
11804 esac
11805 fi
11806 MSGFMT="$ac_cv_path_MSGFMT"
11807 if test "$MSGFMT" != ":"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11809 $as_echo "$MSGFMT" >&6; }
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814
11815 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11816 set dummy gmsgfmt; ac_word=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 case $GMSGFMT in
11823 [\\/]* | ?:[\\/]*)
11824 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11825 ;;
11826 *)
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11829 do
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11837 fi
11838 done
11839 done
11840 IFS=$as_save_IFS
11841
11842 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11843 ;;
11844 esac
11845 fi
11846 GMSGFMT=$ac_cv_path_GMSGFMT
11847 if test -n "$GMSGFMT"; then
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11849 $as_echo "$GMSGFMT" >&6; }
11850 else
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11853 fi
11854
11855
11856
11857
11858 # Prepare PATH_SEPARATOR.
11859 # The user is always right.
11860 if test "${PATH_SEPARATOR+set}" != set; then
11861 echo "#! /bin/sh" >conf$$.sh
11862 echo "exit 0" >>conf$$.sh
11863 chmod +x conf$$.sh
11864 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11865 PATH_SEPARATOR=';'
11866 else
11867 PATH_SEPARATOR=:
11868 fi
11869 rm -f conf$$.sh
11870 fi
11871
11872 # Find out how to test for executable files. Don't use a zero-byte file,
11873 # as systems may use methods other than mode bits to determine executability.
11874 cat >conf$$.file <<_ASEOF
11875 #! /bin/sh
11876 exit 0
11877 _ASEOF
11878 chmod +x conf$$.file
11879 if test -x conf$$.file >/dev/null 2>&1; then
11880 ac_executable_p="test -x"
11881 else
11882 ac_executable_p="test -f"
11883 fi
11884 rm -f conf$$.file
11885
11886 # Extract the first word of "xgettext", so it can be a program name with args.
11887 set dummy xgettext; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 case "$XGETTEXT" in
11894 [\\/]* | ?:[\\/]*)
11895 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11896 ;;
11897 *)
11898 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11899 for ac_dir in $PATH; do
11900 IFS="$ac_save_IFS"
11901 test -z "$ac_dir" && ac_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11904 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11905 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11906 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11907 break 2
11908 fi
11909 fi
11910 done
11911 done
11912 IFS="$ac_save_IFS"
11913 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11914 ;;
11915 esac
11916 fi
11917 XGETTEXT="$ac_cv_path_XGETTEXT"
11918 if test "$XGETTEXT" != ":"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11920 $as_echo "$XGETTEXT" >&6; }
11921 else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11924 fi
11925
11926 rm -f messages.po
11927
11928
11929 # Prepare PATH_SEPARATOR.
11930 # The user is always right.
11931 if test "${PATH_SEPARATOR+set}" != set; then
11932 echo "#! /bin/sh" >conf$$.sh
11933 echo "exit 0" >>conf$$.sh
11934 chmod +x conf$$.sh
11935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11936 PATH_SEPARATOR=';'
11937 else
11938 PATH_SEPARATOR=:
11939 fi
11940 rm -f conf$$.sh
11941 fi
11942
11943 # Find out how to test for executable files. Don't use a zero-byte file,
11944 # as systems may use methods other than mode bits to determine executability.
11945 cat >conf$$.file <<_ASEOF
11946 #! /bin/sh
11947 exit 0
11948 _ASEOF
11949 chmod +x conf$$.file
11950 if test -x conf$$.file >/dev/null 2>&1; then
11951 ac_executable_p="test -x"
11952 else
11953 ac_executable_p="test -f"
11954 fi
11955 rm -f conf$$.file
11956
11957 # Extract the first word of "msgmerge", so it can be a program name with args.
11958 set dummy msgmerge; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 case "$MSGMERGE" in
11965 [\\/]* | ?:[\\/]*)
11966 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11967 ;;
11968 *)
11969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11970 for ac_dir in $PATH; do
11971 IFS="$ac_save_IFS"
11972 test -z "$ac_dir" && ac_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11975 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11976 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11977 break 2
11978 fi
11979 fi
11980 done
11981 done
11982 IFS="$ac_save_IFS"
11983 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11984 ;;
11985 esac
11986 fi
11987 MSGMERGE="$ac_cv_path_MSGMERGE"
11988 if test "$MSGMERGE" != ":"; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11990 $as_echo "$MSGMERGE" >&6; }
11991 else
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11994 fi
11995
11996
11997 if test "$GMSGFMT" != ":"; then
11998 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11999 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12000 : ;
12001 else
12002 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12004 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12005 GMSGFMT=":"
12006 fi
12007 fi
12008
12009 if test "$XGETTEXT" != ":"; then
12010 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12011 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12012 : ;
12013 else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12015 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12016 XGETTEXT=":"
12017 fi
12018 rm -f messages.po
12019 fi
12020
12021 ac_config_commands="$ac_config_commands default-1"
12022
12023
12024
12025 . ${srcdir}/../bfd/configure.host
12026
12027 # Put a plausible default for CC_FOR_BUILD in Makefile.
12028 if test -z "$CC_FOR_BUILD"; then
12029 if test "x$cross_compiling" = "xno"; then
12030 CC_FOR_BUILD='$(CC)'
12031 else
12032 CC_FOR_BUILD=gcc
12033 fi
12034 fi
12035
12036 # Also set EXEEXT_FOR_BUILD.
12037 if test "x$cross_compiling" = "xno"; then
12038 EXEEXT_FOR_BUILD='$(EXEEXT)'
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12041 $as_echo_n "checking for build system executable suffix... " >&6; }
12042 if test "${bfd_cv_build_exeext+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 rm -f conftest*
12046 echo 'int main () { return 0; }' > conftest.c
12047 bfd_cv_build_exeext=
12048 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12049 for file in conftest.*; do
12050 case $file in
12051 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12052 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12053 esac
12054 done
12055 rm -f conftest*
12056 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12059 $as_echo "$bfd_cv_build_exeext" >&6; }
12060 EXEEXT_FOR_BUILD=""
12061 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12062 fi
12063
12064
12065
12066
12067
12068 for ac_header in string.h strings.h stdlib.h limits.h
12069 do :
12070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12071 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12072 eval as_val=\$$as_ac_Header
12073 if test "x$as_val" = x""yes; then :
12074 cat >>confdefs.h <<_ACEOF
12075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12076 _ACEOF
12077
12078 fi
12079
12080 done
12081
12082
12083 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12084 if test "x$ac_cv_have_decl_basename" = x""yes; then :
12085 ac_have_decl=1
12086 else
12087 ac_have_decl=0
12088 fi
12089
12090 cat >>confdefs.h <<_ACEOF
12091 #define HAVE_DECL_BASENAME $ac_have_decl
12092 _ACEOF
12093 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12094 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12095 ac_have_decl=1
12096 else
12097 ac_have_decl=0
12098 fi
12099
12100 cat >>confdefs.h <<_ACEOF
12101 #define HAVE_DECL_STPCPY $ac_have_decl
12102 _ACEOF
12103
12104
12105 cgen_maint=no
12106 cgendir='$(srcdir)/../cgen'
12107
12108 # Check whether --enable-cgen-maint was given.
12109 if test "${enable_cgen_maint+set}" = set; then :
12110 enableval=$enable_cgen_maint; case "${enableval}" in
12111 yes) cgen_maint=yes ;;
12112 no) cgen_maint=no ;;
12113 *)
12114 # argument is cgen install directory (not implemented yet).
12115 # Having a `share' directory might be more appropriate for the .scm,
12116 # .cpu, etc. files.
12117 cgen_maint=yes
12118 cgendir=${cgen_maint}/lib/cgen
12119 ;;
12120 esac
12121 fi
12122 if test x${cgen_maint} = xyes; then
12123 CGEN_MAINT_TRUE=
12124 CGEN_MAINT_FALSE='#'
12125 else
12126 CGEN_MAINT_TRUE='#'
12127 CGEN_MAINT_FALSE=
12128 fi
12129
12130
12131
12132 using_cgen=no
12133
12134 # Check if linker supports --as-needed and --no-as-needed options
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12136 $as_echo_n "checking linker --as-needed support... " >&6; }
12137 if test "${bfd_cv_ld_as_needed+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 bfd_cv_ld_as_needed=no
12141 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12142 bfd_cv_ld_as_needed=yes
12143 fi
12144
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
12147 $as_echo "$bfd_cv_ld_as_needed" >&6; }
12148
12149 LIBM=
12150 case $host in
12151 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12152 # These system don't have libm, or don't need it
12153 ;;
12154 *-ncr-sysv4.3*)
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12156 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12157 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-lmw $LIBS"
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char _mwvalidcheckl ();
12172 int
12173 main ()
12174 {
12175 return _mwvalidcheckl ();
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_lib_mw__mwvalidcheckl=yes
12182 else
12183 ac_cv_lib_mw__mwvalidcheckl=no
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12190 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12191 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
12192 LIBM="-lmw"
12193 fi
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12196 $as_echo_n "checking for cos in -lm... " >&6; }
12197 if test "${ac_cv_lib_m_cos+set}" = set; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-lm $LIBS"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208 #ifdef __cplusplus
12209 extern "C"
12210 #endif
12211 char cos ();
12212 int
12213 main ()
12214 {
12215 return cos ();
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_lib_m_cos=yes
12222 else
12223 ac_cv_lib_m_cos=no
12224 fi
12225 rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12230 $as_echo "$ac_cv_lib_m_cos" >&6; }
12231 if test "x$ac_cv_lib_m_cos" = x""yes; then :
12232 LIBM="$LIBM -lm"
12233 fi
12234
12235 ;;
12236 *)
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12238 $as_echo_n "checking for cos in -lm... " >&6; }
12239 if test "${ac_cv_lib_m_cos+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lm $LIBS"
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12250 #ifdef __cplusplus
12251 extern "C"
12252 #endif
12253 char cos ();
12254 int
12255 main ()
12256 {
12257 return cos ();
12258 ;
12259 return 0;
12260 }
12261 _ACEOF
12262 if ac_fn_c_try_link "$LINENO"; then :
12263 ac_cv_lib_m_cos=yes
12264 else
12265 ac_cv_lib_m_cos=no
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12272 $as_echo "$ac_cv_lib_m_cos" >&6; }
12273 if test "x$ac_cv_lib_m_cos" = x""yes; then :
12274 LIBM="-lm"
12275 fi
12276
12277 ;;
12278 esac
12279
12280
12281
12282 #Libs for generator progs
12283 if test "x$cross_compiling" = "xno"; then
12284 BUILD_LIBS=../libiberty/libiberty.a
12285 BUILD_LIB_DEPS=$BUILD_LIBS
12286 else
12287 # if cross-compiling, assume that the system provides -liberty
12288 # and that the version is compatible with new headers.
12289 BUILD_LIBS=-liberty
12290 BUILD_LIB_DEPS=
12291 fi
12292 BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12293 BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12294
12295
12296
12297
12298 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12299 SHARED_LDFLAGS=
12300 SHARED_LIBADD=
12301 SHARED_DEPENDENCIES=
12302 if test "$enable_shared" = "yes"; then
12303 # When building a shared libopcodes, link against the pic version of libiberty
12304 # so that apps that use libopcodes won't need libiberty just to satisfy any
12305 # libopcodes references.
12306 # We can't do that if a pic libiberty is unavailable since including non-pic
12307 # code would insert text relocations into libopcodes.
12308 # Note that linking against libbfd as we do here, which is itself linked
12309 # against libiberty, may not satisfy all the libopcodes libiberty references
12310 # since libbfd may not pull in the entirety of libiberty.
12311 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12312 if test -n "$x"; then
12313 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12314 fi
12315
12316 case "${host}" in
12317 *-*-cygwin*)
12318 SHARED_LDFLAGS="-no-undefined"
12319 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12320 ;;
12321 *-*-darwin*)
12322 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
12323 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12324 ;;
12325 *)
12326 case "$host_vendor" in
12327 hp)
12328 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
12329 ;;
12330 *)
12331 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
12332 ;;
12333 esac
12334 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12335 ;;
12336 esac
12337
12338 if test -n "$SHARED_LIBADD"; then
12339 if test -n "$LIBM"; then
12340 if test x"$bfd_cv_ld_as_needed" = xyes; then
12341 # Link against libm only when needed. Put -lc, -lm inside -Wl
12342 # to stop libtool reordering these options.
12343 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12344 else
12345 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12346 fi
12347 fi
12348 fi
12349 fi
12350
12351
12352
12353
12354 # target-specific stuff:
12355
12356 # Canonicalize the secondary target names.
12357 if test -n "$enable_targets" ; then
12358 for targ in `echo $enable_targets | sed 's/,/ /g'`
12359 do
12360 result=`$ac_config_sub $targ 2>/dev/null`
12361 if test -n "$result" ; then
12362 canon_targets="$canon_targets $result"
12363 else
12364 # Allow targets that config.sub doesn't recognize, like "all".
12365 canon_targets="$canon_targets $targ"
12366 fi
12367 done
12368 fi
12369
12370 all_targets=false
12371 selarchs=
12372 for targ in $target $canon_targets
12373 do
12374 if test "x$targ" = "xall" ; then
12375 all_targets=true
12376 else
12377 . $srcdir/../bfd/config.bfd
12378 selarchs="$selarchs $targ_archs"
12379 fi
12380 done
12381
12382 # Utility var, documents generic cgen support files.
12383
12384 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
12385
12386 # We don't do any links based on the target system, just makefile config.
12387
12388 if test x${all_targets} = xfalse ; then
12389
12390 # Target architecture .o files.
12391 ta=
12392
12393 for arch in $selarchs
12394 do
12395 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12396 archdefs="$archdefs -DARCH_$ad"
12397 case "$arch" in
12398 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
12399 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
12400 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
12401 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
12402 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
12403 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
12404 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
12405 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
12406 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12407 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
12408 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
12409 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12410 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
12411 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
12412 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12413 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
12414 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
12415 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
12416 bfd_i386_arch|bfd_l1om_arch)
12417 ta="$ta i386-dis.lo i386-opc.lo" ;;
12418 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
12419 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
12420 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
12421 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
12422 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12423 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
12424 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
12425 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
12426 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12427 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12428 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12429 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
12430 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
12431 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
12432 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
12433 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
12434 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
12435 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
12436 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12437 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
12438 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
12439 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
12440 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
12441 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
12442 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
12443 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
12444 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
12445 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12446 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12447 bfd_pyramid_arch) ;;
12448 bfd_romp_arch) ;;
12449 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12450 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
12451 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
12452 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
12453 bfd_sh_arch)
12454 # We can't decide what we want just from the CPU family.
12455 # We want SH5 support unless a specific version of sh is
12456 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
12457 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12458 for t in $target $canon_targets; do
12459 case $t in
12460 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
12461 sh-*-linux* | shl-*-linux*)
12462 ta="$ta sh64-dis.lo sh64-opc.lo"
12463 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12464 break;;
12465 esac;
12466 done
12467 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
12468 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
12469 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
12470 bfd_tahoe_arch) ;;
12471 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
12472 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
12473 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
12474 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12475 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12476 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12477 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12478 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
12479 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
12480 bfd_we32k_arch) ;;
12481 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12482 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
12483 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
12484 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
12485 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12486
12487 "") ;;
12488 *) as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;;
12489 esac
12490 done
12491
12492 if test $using_cgen = yes ; then
12493 ta="$ta $cgen_files"
12494 fi
12495
12496 # Weed out duplicate .o files.
12497 f=""
12498 for i in $ta ; do
12499 case " $f " in
12500 *" $i "*) ;;
12501 *) f="$f $i" ;;
12502 esac
12503 done
12504 ta="$f"
12505
12506 # And duplicate -D flags.
12507 f=""
12508 for i in $archdefs ; do
12509 case " $f " in
12510 *" $i "*) ;;
12511 *) f="$f $i" ;;
12512 esac
12513 done
12514 archdefs="$f"
12515
12516 BFD_MACHINES="$ta"
12517
12518 else # all_targets is true
12519 archdefs=-DARCH_all
12520 BFD_MACHINES='$(ALL_MACHINES)'
12521 fi
12522
12523
12524
12525
12526 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12527
12528 cat >confcache <<\_ACEOF
12529 # This file is a shell script that caches the results of configure
12530 # tests run on this system so they can be shared between configure
12531 # scripts and configure runs, see configure's option --config-cache.
12532 # It is not useful on other systems. If it contains results you don't
12533 # want to keep, you may remove or edit it.
12534 #
12535 # config.status only pays attention to the cache file if you give it
12536 # the --recheck option to rerun configure.
12537 #
12538 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12539 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12540 # following values.
12541
12542 _ACEOF
12543
12544 # The following way of writing the cache mishandles newlines in values,
12545 # but we know of no workaround that is simple, portable, and efficient.
12546 # So, we kill variables containing newlines.
12547 # Ultrix sh set writes to stderr and can't be redirected directly,
12548 # and sets the high bit in the cache file unless we assign to the vars.
12549 (
12550 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12551 eval ac_val=\$$ac_var
12552 case $ac_val in #(
12553 *${as_nl}*)
12554 case $ac_var in #(
12555 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12556 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12557 esac
12558 case $ac_var in #(
12559 _ | IFS | as_nl) ;; #(
12560 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12561 *) { eval $ac_var=; unset $ac_var;} ;;
12562 esac ;;
12563 esac
12564 done
12565
12566 (set) 2>&1 |
12567 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12568 *${as_nl}ac_space=\ *)
12569 # `set' does not quote correctly, so add quotes: double-quote
12570 # substitution turns \\\\ into \\, and sed turns \\ into \.
12571 sed -n \
12572 "s/'/'\\\\''/g;
12573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12574 ;; #(
12575 *)
12576 # `set' quotes correctly as required by POSIX, so do not add quotes.
12577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12578 ;;
12579 esac |
12580 sort
12581 ) |
12582 sed '
12583 /^ac_cv_env_/b end
12584 t clear
12585 :clear
12586 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12587 t end
12588 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12589 :end' >>confcache
12590 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12591 if test -w "$cache_file"; then
12592 test "x$cache_file" != "x/dev/null" &&
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12594 $as_echo "$as_me: updating cache $cache_file" >&6;}
12595 cat confcache >$cache_file
12596 else
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12598 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12599 fi
12600 fi
12601 rm -f confcache
12602
12603 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12604 # Let make expand exec_prefix.
12605 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12606
12607 DEFS=-DHAVE_CONFIG_H
12608
12609 ac_libobjs=
12610 ac_ltlibobjs=
12611 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12612 # 1. Remove the extension, and $U if already installed.
12613 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12614 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12615 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12616 # will be set to the directory where LIBOBJS objects are built.
12617 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12618 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12619 done
12620 LIBOBJS=$ac_libobjs
12621
12622 LTLIBOBJS=$ac_ltlibobjs
12623
12624
12625 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12626 as_fn_error "conditional \"AMDEP\" was never defined.
12627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12628 fi
12629 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12630 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12632 fi
12633 if test -n "$EXEEXT"; then
12634 am__EXEEXT_TRUE=
12635 am__EXEEXT_FALSE='#'
12636 else
12637 am__EXEEXT_TRUE='#'
12638 am__EXEEXT_FALSE=
12639 fi
12640
12641 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12642 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12644 fi
12645 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12646 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
12647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648 fi
12649 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
12650 as_fn_error "conditional \"CGEN_MAINT\" was never defined.
12651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652 fi
12653
12654 : ${CONFIG_STATUS=./config.status}
12655 ac_write_fail=0
12656 ac_clean_files_save=$ac_clean_files
12657 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12659 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12660 as_write_fail=0
12661 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12662 #! $SHELL
12663 # Generated by $as_me.
12664 # Run this file to recreate the current configuration.
12665 # Compiler output produced by configure, useful for debugging
12666 # configure, is in config.log if it exists.
12667
12668 debug=false
12669 ac_cs_recheck=false
12670 ac_cs_silent=false
12671
12672 SHELL=\${CONFIG_SHELL-$SHELL}
12673 export SHELL
12674 _ASEOF
12675 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12676 ## -------------------- ##
12677 ## M4sh Initialization. ##
12678 ## -------------------- ##
12679
12680 # Be more Bourne compatible
12681 DUALCASE=1; export DUALCASE # for MKS sh
12682 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12683 emulate sh
12684 NULLCMD=:
12685 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12686 # is contrary to our usage. Disable this feature.
12687 alias -g '${1+"$@"}'='"$@"'
12688 setopt NO_GLOB_SUBST
12689 else
12690 case `(set -o) 2>/dev/null` in #(
12691 *posix*) :
12692 set -o posix ;; #(
12693 *) :
12694 ;;
12695 esac
12696 fi
12697
12698
12699 as_nl='
12700 '
12701 export as_nl
12702 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12703 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12705 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12706 # Prefer a ksh shell builtin over an external printf program on Solaris,
12707 # but without wasting forks for bash or zsh.
12708 if test -z "$BASH_VERSION$ZSH_VERSION" \
12709 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12710 as_echo='print -r --'
12711 as_echo_n='print -rn --'
12712 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12713 as_echo='printf %s\n'
12714 as_echo_n='printf %s'
12715 else
12716 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12717 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12718 as_echo_n='/usr/ucb/echo -n'
12719 else
12720 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12721 as_echo_n_body='eval
12722 arg=$1;
12723 case $arg in #(
12724 *"$as_nl"*)
12725 expr "X$arg" : "X\\(.*\\)$as_nl";
12726 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12727 esac;
12728 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12729 '
12730 export as_echo_n_body
12731 as_echo_n='sh -c $as_echo_n_body as_echo'
12732 fi
12733 export as_echo_body
12734 as_echo='sh -c $as_echo_body as_echo'
12735 fi
12736
12737 # The user is always right.
12738 if test "${PATH_SEPARATOR+set}" != set; then
12739 PATH_SEPARATOR=:
12740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12742 PATH_SEPARATOR=';'
12743 }
12744 fi
12745
12746
12747 # IFS
12748 # We need space, tab and new line, in precisely that order. Quoting is
12749 # there to prevent editors from complaining about space-tab.
12750 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12751 # splitting by setting IFS to empty value.)
12752 IFS=" "" $as_nl"
12753
12754 # Find who we are. Look in the path if we contain no directory separator.
12755 case $0 in #((
12756 *[\\/]* ) as_myself=$0 ;;
12757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12759 do
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12763 done
12764 IFS=$as_save_IFS
12765
12766 ;;
12767 esac
12768 # We did not find ourselves, most probably we were run as `sh COMMAND'
12769 # in which case we are not to be found in the path.
12770 if test "x$as_myself" = x; then
12771 as_myself=$0
12772 fi
12773 if test ! -f "$as_myself"; then
12774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12775 exit 1
12776 fi
12777
12778 # Unset variables that we do not need and which cause bugs (e.g. in
12779 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12780 # suppresses any "Segmentation fault" message there. '((' could
12781 # trigger a bug in pdksh 5.2.14.
12782 for as_var in BASH_ENV ENV MAIL MAILPATH
12783 do eval test x\${$as_var+set} = xset \
12784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12785 done
12786 PS1='$ '
12787 PS2='> '
12788 PS4='+ '
12789
12790 # NLS nuisances.
12791 LC_ALL=C
12792 export LC_ALL
12793 LANGUAGE=C
12794 export LANGUAGE
12795
12796 # CDPATH.
12797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12798
12799
12800 # as_fn_error ERROR [LINENO LOG_FD]
12801 # ---------------------------------
12802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12804 # script with status $?, using 1 if that was 0.
12805 as_fn_error ()
12806 {
12807 as_status=$?; test $as_status -eq 0 && as_status=1
12808 if test "$3"; then
12809 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12811 fi
12812 $as_echo "$as_me: error: $1" >&2
12813 as_fn_exit $as_status
12814 } # as_fn_error
12815
12816
12817 # as_fn_set_status STATUS
12818 # -----------------------
12819 # Set $? to STATUS, without forking.
12820 as_fn_set_status ()
12821 {
12822 return $1
12823 } # as_fn_set_status
12824
12825 # as_fn_exit STATUS
12826 # -----------------
12827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12828 as_fn_exit ()
12829 {
12830 set +e
12831 as_fn_set_status $1
12832 exit $1
12833 } # as_fn_exit
12834
12835 # as_fn_unset VAR
12836 # ---------------
12837 # Portably unset VAR.
12838 as_fn_unset ()
12839 {
12840 { eval $1=; unset $1;}
12841 }
12842 as_unset=as_fn_unset
12843 # as_fn_append VAR VALUE
12844 # ----------------------
12845 # Append the text in VALUE to the end of the definition contained in VAR. Take
12846 # advantage of any shell optimizations that allow amortized linear growth over
12847 # repeated appends, instead of the typical quadratic growth present in naive
12848 # implementations.
12849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12850 eval 'as_fn_append ()
12851 {
12852 eval $1+=\$2
12853 }'
12854 else
12855 as_fn_append ()
12856 {
12857 eval $1=\$$1\$2
12858 }
12859 fi # as_fn_append
12860
12861 # as_fn_arith ARG...
12862 # ------------------
12863 # Perform arithmetic evaluation on the ARGs, and store the result in the
12864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12865 # must be portable across $(()) and expr.
12866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12867 eval 'as_fn_arith ()
12868 {
12869 as_val=$(( $* ))
12870 }'
12871 else
12872 as_fn_arith ()
12873 {
12874 as_val=`expr "$@" || test $? -eq 1`
12875 }
12876 fi # as_fn_arith
12877
12878
12879 if expr a : '\(a\)' >/dev/null 2>&1 &&
12880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12881 as_expr=expr
12882 else
12883 as_expr=false
12884 fi
12885
12886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12887 as_basename=basename
12888 else
12889 as_basename=false
12890 fi
12891
12892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12893 as_dirname=dirname
12894 else
12895 as_dirname=false
12896 fi
12897
12898 as_me=`$as_basename -- "$0" ||
12899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12900 X"$0" : 'X\(//\)$' \| \
12901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12902 $as_echo X/"$0" |
12903 sed '/^.*\/\([^/][^/]*\)\/*$/{
12904 s//\1/
12905 q
12906 }
12907 /^X\/\(\/\/\)$/{
12908 s//\1/
12909 q
12910 }
12911 /^X\/\(\/\).*/{
12912 s//\1/
12913 q
12914 }
12915 s/.*/./; q'`
12916
12917 # Avoid depending upon Character Ranges.
12918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12921 as_cr_digits='0123456789'
12922 as_cr_alnum=$as_cr_Letters$as_cr_digits
12923
12924 ECHO_C= ECHO_N= ECHO_T=
12925 case `echo -n x` in #(((((
12926 -n*)
12927 case `echo 'xy\c'` in
12928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12929 xy) ECHO_C='\c';;
12930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12931 ECHO_T=' ';;
12932 esac;;
12933 *)
12934 ECHO_N='-n';;
12935 esac
12936
12937 rm -f conf$$ conf$$.exe conf$$.file
12938 if test -d conf$$.dir; then
12939 rm -f conf$$.dir/conf$$.file
12940 else
12941 rm -f conf$$.dir
12942 mkdir conf$$.dir 2>/dev/null
12943 fi
12944 if (echo >conf$$.file) 2>/dev/null; then
12945 if ln -s conf$$.file conf$$ 2>/dev/null; then
12946 as_ln_s='ln -s'
12947 # ... but there are two gotchas:
12948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12950 # In both cases, we have to default to `cp -p'.
12951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12952 as_ln_s='cp -p'
12953 elif ln conf$$.file conf$$ 2>/dev/null; then
12954 as_ln_s=ln
12955 else
12956 as_ln_s='cp -p'
12957 fi
12958 else
12959 as_ln_s='cp -p'
12960 fi
12961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12962 rmdir conf$$.dir 2>/dev/null
12963
12964
12965 # as_fn_mkdir_p
12966 # -------------
12967 # Create "$as_dir" as a directory, including parents if necessary.
12968 as_fn_mkdir_p ()
12969 {
12970
12971 case $as_dir in #(
12972 -*) as_dir=./$as_dir;;
12973 esac
12974 test -d "$as_dir" || eval $as_mkdir_p || {
12975 as_dirs=
12976 while :; do
12977 case $as_dir in #(
12978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12979 *) as_qdir=$as_dir;;
12980 esac
12981 as_dirs="'$as_qdir' $as_dirs"
12982 as_dir=`$as_dirname -- "$as_dir" ||
12983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984 X"$as_dir" : 'X\(//\)[^/]' \| \
12985 X"$as_dir" : 'X\(//\)$' \| \
12986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12987 $as_echo X"$as_dir" |
12988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12989 s//\1/
12990 q
12991 }
12992 /^X\(\/\/\)[^/].*/{
12993 s//\1/
12994 q
12995 }
12996 /^X\(\/\/\)$/{
12997 s//\1/
12998 q
12999 }
13000 /^X\(\/\).*/{
13001 s//\1/
13002 q
13003 }
13004 s/.*/./; q'`
13005 test -d "$as_dir" && break
13006 done
13007 test -z "$as_dirs" || eval "mkdir $as_dirs"
13008 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13009
13010
13011 } # as_fn_mkdir_p
13012 if mkdir -p . 2>/dev/null; then
13013 as_mkdir_p='mkdir -p "$as_dir"'
13014 else
13015 test -d ./-p && rmdir ./-p
13016 as_mkdir_p=false
13017 fi
13018
13019 if test -x / >/dev/null 2>&1; then
13020 as_test_x='test -x'
13021 else
13022 if ls -dL / >/dev/null 2>&1; then
13023 as_ls_L_option=L
13024 else
13025 as_ls_L_option=
13026 fi
13027 as_test_x='
13028 eval sh -c '\''
13029 if test -d "$1"; then
13030 test -d "$1/.";
13031 else
13032 case $1 in #(
13033 -*)set "./$1";;
13034 esac;
13035 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13036 ???[sx]*):;;*)false;;esac;fi
13037 '\'' sh
13038 '
13039 fi
13040 as_executable_p=$as_test_x
13041
13042 # Sed expression to map a string onto a valid CPP name.
13043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13044
13045 # Sed expression to map a string onto a valid variable name.
13046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13047
13048
13049 exec 6>&1
13050 ## ----------------------------------- ##
13051 ## Main body of $CONFIG_STATUS script. ##
13052 ## ----------------------------------- ##
13053 _ASEOF
13054 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13055
13056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13057 # Save the log message, to keep $0 and so on meaningful, and to
13058 # report actual input values of CONFIG_FILES etc. instead of their
13059 # values after options handling.
13060 ac_log="
13061 This file was extended by $as_me, which was
13062 generated by GNU Autoconf 2.64. Invocation command line was
13063
13064 CONFIG_FILES = $CONFIG_FILES
13065 CONFIG_HEADERS = $CONFIG_HEADERS
13066 CONFIG_LINKS = $CONFIG_LINKS
13067 CONFIG_COMMANDS = $CONFIG_COMMANDS
13068 $ $0 $@
13069
13070 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13071 "
13072
13073 _ACEOF
13074
13075 case $ac_config_files in *"
13076 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13077 esac
13078
13079 case $ac_config_headers in *"
13080 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13081 esac
13082
13083
13084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13085 # Files that config.status was made for.
13086 config_files="$ac_config_files"
13087 config_headers="$ac_config_headers"
13088 config_commands="$ac_config_commands"
13089
13090 _ACEOF
13091
13092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13093 ac_cs_usage="\
13094 \`$as_me' instantiates files and other configuration actions
13095 from templates according to the current configuration. Unless the files
13096 and actions are specified as TAGs, all are instantiated by default.
13097
13098 Usage: $0 [OPTION]... [TAG]...
13099
13100 -h, --help print this help, then exit
13101 -V, --version print version number and configuration settings, then exit
13102 -q, --quiet, --silent
13103 do not print progress messages
13104 -d, --debug don't remove temporary files
13105 --recheck update $as_me by reconfiguring in the same conditions
13106 --file=FILE[:TEMPLATE]
13107 instantiate the configuration file FILE
13108 --header=FILE[:TEMPLATE]
13109 instantiate the configuration header FILE
13110
13111 Configuration files:
13112 $config_files
13113
13114 Configuration headers:
13115 $config_headers
13116
13117 Configuration commands:
13118 $config_commands
13119
13120 Report bugs to the package provider."
13121
13122 _ACEOF
13123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13124 ac_cs_version="\\
13125 config.status
13126 configured by $0, generated by GNU Autoconf 2.64,
13127 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13128
13129 Copyright (C) 2009 Free Software Foundation, Inc.
13130 This config.status script is free software; the Free Software Foundation
13131 gives unlimited permission to copy, distribute and modify it."
13132
13133 ac_pwd='$ac_pwd'
13134 srcdir='$srcdir'
13135 INSTALL='$INSTALL'
13136 MKDIR_P='$MKDIR_P'
13137 AWK='$AWK'
13138 test -n "\$AWK" || AWK=awk
13139 _ACEOF
13140
13141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13142 # The default lists apply if the user does not specify any file.
13143 ac_need_defaults=:
13144 while test $# != 0
13145 do
13146 case $1 in
13147 --*=*)
13148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13150 ac_shift=:
13151 ;;
13152 *)
13153 ac_option=$1
13154 ac_optarg=$2
13155 ac_shift=shift
13156 ;;
13157 esac
13158
13159 case $ac_option in
13160 # Handling of the options.
13161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13162 ac_cs_recheck=: ;;
13163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13164 $as_echo "$ac_cs_version"; exit ;;
13165 --debug | --debu | --deb | --de | --d | -d )
13166 debug=: ;;
13167 --file | --fil | --fi | --f )
13168 $ac_shift
13169 case $ac_optarg in
13170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13171 esac
13172 as_fn_append CONFIG_FILES " '$ac_optarg'"
13173 ac_need_defaults=false;;
13174 --header | --heade | --head | --hea )
13175 $ac_shift
13176 case $ac_optarg in
13177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13178 esac
13179 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13180 ac_need_defaults=false;;
13181 --he | --h)
13182 # Conflict between --help and --header
13183 as_fn_error "ambiguous option: \`$1'
13184 Try \`$0 --help' for more information.";;
13185 --help | --hel | -h )
13186 $as_echo "$ac_cs_usage"; exit ;;
13187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13188 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13189 ac_cs_silent=: ;;
13190
13191 # This is an error.
13192 -*) as_fn_error "unrecognized option: \`$1'
13193 Try \`$0 --help' for more information." ;;
13194
13195 *) as_fn_append ac_config_targets " $1"
13196 ac_need_defaults=false ;;
13197
13198 esac
13199 shift
13200 done
13201
13202 ac_configure_extra_args=
13203
13204 if $ac_cs_silent; then
13205 exec 6>/dev/null
13206 ac_configure_extra_args="$ac_configure_extra_args --silent"
13207 fi
13208
13209 _ACEOF
13210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13211 if \$ac_cs_recheck; then
13212 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13213 shift
13214 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13215 CONFIG_SHELL='$SHELL'
13216 export CONFIG_SHELL
13217 exec "\$@"
13218 fi
13219
13220 _ACEOF
13221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13222 exec 5>>config.log
13223 {
13224 echo
13225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13226 ## Running $as_me. ##
13227 _ASBOX
13228 $as_echo "$ac_log"
13229 } >&5
13230
13231 _ACEOF
13232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13233 #
13234 # INIT-COMMANDS
13235 #
13236 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13237
13238
13239 # The HP-UX ksh and POSIX shell print the target directory to stdout
13240 # if CDPATH is set.
13241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13242
13243 sed_quote_subst='$sed_quote_subst'
13244 double_quote_subst='$double_quote_subst'
13245 delay_variable_subst='$delay_variable_subst'
13246 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13247 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13248 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13249 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13250 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13251 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13252 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13253 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13254 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13255 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13256 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13257 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13258 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13259 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13260 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13261 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13262 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13263 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13264 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13265 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13266 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13267 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13268 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13269 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13270 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13271 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13272 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13273 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13274 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13275 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13276 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13277 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13278 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13279 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13280 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13281 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13282 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13283 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13284 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13285 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13286 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13287 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13288 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13289 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13290 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13291 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13292 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13293 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13294 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"`'
13295 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13296 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13297 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13298 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13299 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13300 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13301 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13302 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13303 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13304 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13305 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13306 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13307 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13308 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13309 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13310 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13311 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13312 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13313 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13314 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13315 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13316 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13317 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13318 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13319 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13320 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13321 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13322 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13323 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13324 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13325 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13326 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13327 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13328 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13329 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13330 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13331 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13332 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13333 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13334 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13335 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13336 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13337 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13338 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13339 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13340 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13341 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13342 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13343 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13344 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13345 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13346 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13347 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13348 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13349 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13350 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13351 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13352 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13353 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13354 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13355 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13356 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13357 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13358 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13359 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13360 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13361 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13362 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13363 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13364 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13365 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13366
13367 LTCC='$LTCC'
13368 LTCFLAGS='$LTCFLAGS'
13369 compiler='$compiler_DEFAULT'
13370
13371 # A function that is used when there is no print builtin or printf.
13372 func_fallback_echo ()
13373 {
13374 eval 'cat <<_LTECHO_EOF
13375 \$1
13376 _LTECHO_EOF'
13377 }
13378
13379 # Quote evaled strings.
13380 for var in SHELL \
13381 ECHO \
13382 SED \
13383 GREP \
13384 EGREP \
13385 FGREP \
13386 LD \
13387 NM \
13388 LN_S \
13389 lt_SP2NL \
13390 lt_NL2SP \
13391 reload_flag \
13392 OBJDUMP \
13393 deplibs_check_method \
13394 file_magic_cmd \
13395 AR \
13396 AR_FLAGS \
13397 STRIP \
13398 RANLIB \
13399 CC \
13400 CFLAGS \
13401 compiler \
13402 lt_cv_sys_global_symbol_pipe \
13403 lt_cv_sys_global_symbol_to_cdecl \
13404 lt_cv_sys_global_symbol_to_c_name_address \
13405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13406 lt_prog_compiler_no_builtin_flag \
13407 lt_prog_compiler_wl \
13408 lt_prog_compiler_pic \
13409 lt_prog_compiler_static \
13410 lt_cv_prog_compiler_c_o \
13411 need_locks \
13412 DSYMUTIL \
13413 NMEDIT \
13414 LIPO \
13415 OTOOL \
13416 OTOOL64 \
13417 shrext_cmds \
13418 export_dynamic_flag_spec \
13419 whole_archive_flag_spec \
13420 compiler_needs_object \
13421 with_gnu_ld \
13422 allow_undefined_flag \
13423 no_undefined_flag \
13424 hardcode_libdir_flag_spec \
13425 hardcode_libdir_flag_spec_ld \
13426 hardcode_libdir_separator \
13427 fix_srcfile_path \
13428 exclude_expsyms \
13429 include_expsyms \
13430 file_list_spec \
13431 variables_saved_for_relink \
13432 libname_spec \
13433 library_names_spec \
13434 soname_spec \
13435 install_override_mode \
13436 finish_eval \
13437 old_striplib \
13438 striplib; do
13439 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13440 *[\\\\\\\`\\"\\\$]*)
13441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13442 ;;
13443 *)
13444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13445 ;;
13446 esac
13447 done
13448
13449 # Double-quote double-evaled strings.
13450 for var in reload_cmds \
13451 old_postinstall_cmds \
13452 old_postuninstall_cmds \
13453 old_archive_cmds \
13454 extract_expsyms_cmds \
13455 old_archive_from_new_cmds \
13456 old_archive_from_expsyms_cmds \
13457 archive_cmds \
13458 archive_expsym_cmds \
13459 module_cmds \
13460 module_expsym_cmds \
13461 export_symbols_cmds \
13462 prelink_cmds \
13463 postinstall_cmds \
13464 postuninstall_cmds \
13465 finish_cmds \
13466 sys_lib_search_path_spec \
13467 sys_lib_dlsearch_path_spec; do
13468 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13469 *[\\\\\\\`\\"\\\$]*)
13470 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13471 ;;
13472 *)
13473 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13474 ;;
13475 esac
13476 done
13477
13478 ac_aux_dir='$ac_aux_dir'
13479 xsi_shell='$xsi_shell'
13480 lt_shell_append='$lt_shell_append'
13481
13482 # See if we are running on zsh, and set the options which allow our
13483 # commands through without removal of \ escapes INIT.
13484 if test -n "\${ZSH_VERSION+set}" ; then
13485 setopt NO_GLOB_SUBST
13486 fi
13487
13488
13489 PACKAGE='$PACKAGE'
13490 VERSION='$VERSION'
13491 TIMESTAMP='$TIMESTAMP'
13492 RM='$RM'
13493 ofile='$ofile'
13494
13495
13496
13497 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13498 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13499 # from automake.
13500 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13501 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13502 LINGUAS="${LINGUAS-%UNSET%}"
13503
13504
13505 _ACEOF
13506
13507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13508
13509 # Handling of arguments.
13510 for ac_config_target in $ac_config_targets
13511 do
13512 case $ac_config_target in
13513 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13514 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13515 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13516 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13517 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13518 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13519
13520 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13521 esac
13522 done
13523
13524
13525 # If the user did not use the arguments to specify the items to instantiate,
13526 # then the envvar interface is used. Set only those that are not.
13527 # We use the long form for the default assignment because of an extremely
13528 # bizarre bug on SunOS 4.1.3.
13529 if $ac_need_defaults; then
13530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13533 fi
13534
13535 # Have a temporary directory for convenience. Make it in the build tree
13536 # simply because there is no reason against having it here, and in addition,
13537 # creating and moving files from /tmp can sometimes cause problems.
13538 # Hook for its removal unless debugging.
13539 # Note that there is a small window in which the directory will not be cleaned:
13540 # after its creation but before its name has been assigned to `$tmp'.
13541 $debug ||
13542 {
13543 tmp=
13544 trap 'exit_status=$?
13545 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13546 ' 0
13547 trap 'as_fn_exit 1' 1 2 13 15
13548 }
13549 # Create a (secure) tmp directory for tmp files.
13550
13551 {
13552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13553 test -n "$tmp" && test -d "$tmp"
13554 } ||
13555 {
13556 tmp=./conf$$-$RANDOM
13557 (umask 077 && mkdir "$tmp")
13558 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13559
13560 # Set up the scripts for CONFIG_FILES section.
13561 # No need to generate them if there are no CONFIG_FILES.
13562 # This happens for instance with `./config.status config.h'.
13563 if test -n "$CONFIG_FILES"; then
13564
13565
13566 ac_cr=`echo X | tr X '\015'`
13567 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13568 # But we know of no other shell where ac_cr would be empty at this
13569 # point, so we can use a bashism as a fallback.
13570 if test "x$ac_cr" = x; then
13571 eval ac_cr=\$\'\\r\'
13572 fi
13573 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13574 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13575 ac_cs_awk_cr='\r'
13576 else
13577 ac_cs_awk_cr=$ac_cr
13578 fi
13579
13580 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13581 _ACEOF
13582
13583
13584 {
13585 echo "cat >conf$$subs.awk <<_ACEOF" &&
13586 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13587 echo "_ACEOF"
13588 } >conf$$subs.sh ||
13589 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13590 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13591 ac_delim='%!_!# '
13592 for ac_last_try in false false false false false :; do
13593 . ./conf$$subs.sh ||
13594 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13595
13596 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13597 if test $ac_delim_n = $ac_delim_num; then
13598 break
13599 elif $ac_last_try; then
13600 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13601 else
13602 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13603 fi
13604 done
13605 rm -f conf$$subs.sh
13606
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13609 _ACEOF
13610 sed -n '
13611 h
13612 s/^/S["/; s/!.*/"]=/
13613 p
13614 g
13615 s/^[^!]*!//
13616 :repl
13617 t repl
13618 s/'"$ac_delim"'$//
13619 t delim
13620 :nl
13621 h
13622 s/\(.\{148\}\).*/\1/
13623 t more1
13624 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13625 p
13626 n
13627 b repl
13628 :more1
13629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13630 p
13631 g
13632 s/.\{148\}//
13633 t nl
13634 :delim
13635 h
13636 s/\(.\{148\}\).*/\1/
13637 t more2
13638 s/["\\]/\\&/g; s/^/"/; s/$/"/
13639 p
13640 b
13641 :more2
13642 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13643 p
13644 g
13645 s/.\{148\}//
13646 t delim
13647 ' <conf$$subs.awk | sed '
13648 /^[^""]/{
13649 N
13650 s/\n//
13651 }
13652 ' >>$CONFIG_STATUS || ac_write_fail=1
13653 rm -f conf$$subs.awk
13654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655 _ACAWK
13656 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13657 for (key in S) S_is_set[key] = 1
13658 FS = "\a"
13659
13660 }
13661 {
13662 line = $ 0
13663 nfields = split(line, field, "@")
13664 substed = 0
13665 len = length(field[1])
13666 for (i = 2; i < nfields; i++) {
13667 key = field[i]
13668 keylen = length(key)
13669 if (S_is_set[key]) {
13670 value = S[key]
13671 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13672 len += length(value) + length(field[++i])
13673 substed = 1
13674 } else
13675 len += 1 + keylen
13676 }
13677
13678 print line
13679 }
13680
13681 _ACAWK
13682 _ACEOF
13683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13684 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13685 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13686 else
13687 cat
13688 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13689 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13690 _ACEOF
13691
13692 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13693 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13694 # trailing colons and then remove the whole line if VPATH becomes empty
13695 # (actually we leave an empty line to preserve line numbers).
13696 if test "x$srcdir" = x.; then
13697 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13698 s/:*\$(srcdir):*/:/
13699 s/:*\${srcdir}:*/:/
13700 s/:*@srcdir@:*/:/
13701 s/^\([^=]*=[ ]*\):*/\1/
13702 s/:*$//
13703 s/^[^=]*=[ ]*$//
13704 }'
13705 fi
13706
13707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708 fi # test -n "$CONFIG_FILES"
13709
13710 # Set up the scripts for CONFIG_HEADERS section.
13711 # No need to generate them if there are no CONFIG_HEADERS.
13712 # This happens for instance with `./config.status Makefile'.
13713 if test -n "$CONFIG_HEADERS"; then
13714 cat >"$tmp/defines.awk" <<\_ACAWK ||
13715 BEGIN {
13716 _ACEOF
13717
13718 # Transform confdefs.h into an awk script `defines.awk', embedded as
13719 # here-document in config.status, that substitutes the proper values into
13720 # config.h.in to produce config.h.
13721
13722 # Create a delimiter string that does not exist in confdefs.h, to ease
13723 # handling of long lines.
13724 ac_delim='%!_!# '
13725 for ac_last_try in false false :; do
13726 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13727 if test -z "$ac_t"; then
13728 break
13729 elif $ac_last_try; then
13730 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13731 else
13732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13733 fi
13734 done
13735
13736 # For the awk script, D is an array of macro values keyed by name,
13737 # likewise P contains macro parameters if any. Preserve backslash
13738 # newline sequences.
13739
13740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13741 sed -n '
13742 s/.\{148\}/&'"$ac_delim"'/g
13743 t rset
13744 :rset
13745 s/^[ ]*#[ ]*define[ ][ ]*/ /
13746 t def
13747 d
13748 :def
13749 s/\\$//
13750 t bsnl
13751 s/["\\]/\\&/g
13752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13753 D["\1"]=" \3"/p
13754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13755 d
13756 :bsnl
13757 s/["\\]/\\&/g
13758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13759 D["\1"]=" \3\\\\\\n"\\/p
13760 t cont
13761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13762 t cont
13763 d
13764 :cont
13765 n
13766 s/.\{148\}/&'"$ac_delim"'/g
13767 t clear
13768 :clear
13769 s/\\$//
13770 t bsnlc
13771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13772 d
13773 :bsnlc
13774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13775 b cont
13776 ' <confdefs.h | sed '
13777 s/'"$ac_delim"'/"\\\
13778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13779
13780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13781 for (key in D) D_is_set[key] = 1
13782 FS = "\a"
13783 }
13784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13785 line = \$ 0
13786 split(line, arg, " ")
13787 if (arg[1] == "#") {
13788 defundef = arg[2]
13789 mac1 = arg[3]
13790 } else {
13791 defundef = substr(arg[1], 2)
13792 mac1 = arg[2]
13793 }
13794 split(mac1, mac2, "(") #)
13795 macro = mac2[1]
13796 prefix = substr(line, 1, index(line, defundef) - 1)
13797 if (D_is_set[macro]) {
13798 # Preserve the white space surrounding the "#".
13799 print prefix "define", macro P[macro] D[macro]
13800 next
13801 } else {
13802 # Replace #undef with comments. This is necessary, for example,
13803 # in the case of _POSIX_SOURCE, which is predefined and required
13804 # on some systems where configure will not decide to define it.
13805 if (defundef == "undef") {
13806 print "/*", prefix defundef, macro, "*/"
13807 next
13808 }
13809 }
13810 }
13811 { print }
13812 _ACAWK
13813 _ACEOF
13814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13815 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13816 fi # test -n "$CONFIG_HEADERS"
13817
13818
13819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13820 shift
13821 for ac_tag
13822 do
13823 case $ac_tag in
13824 :[FHLC]) ac_mode=$ac_tag; continue;;
13825 esac
13826 case $ac_mode$ac_tag in
13827 :[FHL]*:*);;
13828 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13829 :[FH]-) ac_tag=-:-;;
13830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13831 esac
13832 ac_save_IFS=$IFS
13833 IFS=:
13834 set x $ac_tag
13835 IFS=$ac_save_IFS
13836 shift
13837 ac_file=$1
13838 shift
13839
13840 case $ac_mode in
13841 :L) ac_source=$1;;
13842 :[FH])
13843 ac_file_inputs=
13844 for ac_f
13845 do
13846 case $ac_f in
13847 -) ac_f="$tmp/stdin";;
13848 *) # Look for the file first in the build tree, then in the source tree
13849 # (if the path is not absolute). The absolute path cannot be DOS-style,
13850 # because $ac_f cannot contain `:'.
13851 test -f "$ac_f" ||
13852 case $ac_f in
13853 [\\/$]*) false;;
13854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13855 esac ||
13856 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13857 esac
13858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13859 as_fn_append ac_file_inputs " '$ac_f'"
13860 done
13861
13862 # Let's still pretend it is `configure' which instantiates (i.e., don't
13863 # use $as_me), people would be surprised to read:
13864 # /* config.h. Generated by config.status. */
13865 configure_input='Generated from '`
13866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13867 `' by configure.'
13868 if test x"$ac_file" != x-; then
13869 configure_input="$ac_file. $configure_input"
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13871 $as_echo "$as_me: creating $ac_file" >&6;}
13872 fi
13873 # Neutralize special characters interpreted by sed in replacement strings.
13874 case $configure_input in #(
13875 *\&* | *\|* | *\\* )
13876 ac_sed_conf_input=`$as_echo "$configure_input" |
13877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13878 *) ac_sed_conf_input=$configure_input;;
13879 esac
13880
13881 case $ac_tag in
13882 *:-:* | *:-) cat >"$tmp/stdin" \
13883 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13884 esac
13885 ;;
13886 esac
13887
13888 ac_dir=`$as_dirname -- "$ac_file" ||
13889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13890 X"$ac_file" : 'X\(//\)[^/]' \| \
13891 X"$ac_file" : 'X\(//\)$' \| \
13892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13893 $as_echo X"$ac_file" |
13894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13895 s//\1/
13896 q
13897 }
13898 /^X\(\/\/\)[^/].*/{
13899 s//\1/
13900 q
13901 }
13902 /^X\(\/\/\)$/{
13903 s//\1/
13904 q
13905 }
13906 /^X\(\/\).*/{
13907 s//\1/
13908 q
13909 }
13910 s/.*/./; q'`
13911 as_dir="$ac_dir"; as_fn_mkdir_p
13912 ac_builddir=.
13913
13914 case "$ac_dir" in
13915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13916 *)
13917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13918 # A ".." for each directory in $ac_dir_suffix.
13919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13920 case $ac_top_builddir_sub in
13921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13923 esac ;;
13924 esac
13925 ac_abs_top_builddir=$ac_pwd
13926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13927 # for backward compatibility:
13928 ac_top_builddir=$ac_top_build_prefix
13929
13930 case $srcdir in
13931 .) # We are building in place.
13932 ac_srcdir=.
13933 ac_top_srcdir=$ac_top_builddir_sub
13934 ac_abs_top_srcdir=$ac_pwd ;;
13935 [\\/]* | ?:[\\/]* ) # Absolute name.
13936 ac_srcdir=$srcdir$ac_dir_suffix;
13937 ac_top_srcdir=$srcdir
13938 ac_abs_top_srcdir=$srcdir ;;
13939 *) # Relative name.
13940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13941 ac_top_srcdir=$ac_top_build_prefix$srcdir
13942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13943 esac
13944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13945
13946
13947 case $ac_mode in
13948 :F)
13949 #
13950 # CONFIG_FILE
13951 #
13952
13953 case $INSTALL in
13954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13956 esac
13957 ac_MKDIR_P=$MKDIR_P
13958 case $MKDIR_P in
13959 [\\/$]* | ?:[\\/]* ) ;;
13960 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13961 esac
13962 _ACEOF
13963
13964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13965 # If the template does not know about datarootdir, expand it.
13966 # FIXME: This hack should be removed a few years after 2.60.
13967 ac_datarootdir_hack=; ac_datarootdir_seen=
13968 ac_sed_dataroot='
13969 /datarootdir/ {
13970 p
13971 q
13972 }
13973 /@datadir@/p
13974 /@docdir@/p
13975 /@infodir@/p
13976 /@localedir@/p
13977 /@mandir@/p'
13978 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13979 *datarootdir*) ac_datarootdir_seen=yes;;
13980 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13982 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13983 _ACEOF
13984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13985 ac_datarootdir_hack='
13986 s&@datadir@&$datadir&g
13987 s&@docdir@&$docdir&g
13988 s&@infodir@&$infodir&g
13989 s&@localedir@&$localedir&g
13990 s&@mandir@&$mandir&g
13991 s&\\\${datarootdir}&$datarootdir&g' ;;
13992 esac
13993 _ACEOF
13994
13995 # Neutralize VPATH when `$srcdir' = `.'.
13996 # Shell code in configure.ac might set extrasub.
13997 # FIXME: do we really want to maintain this feature?
13998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13999 ac_sed_extra="$ac_vpsub
14000 $extrasub
14001 _ACEOF
14002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14003 :t
14004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14005 s|@configure_input@|$ac_sed_conf_input|;t t
14006 s&@top_builddir@&$ac_top_builddir_sub&;t t
14007 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14008 s&@srcdir@&$ac_srcdir&;t t
14009 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14010 s&@top_srcdir@&$ac_top_srcdir&;t t
14011 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14012 s&@builddir@&$ac_builddir&;t t
14013 s&@abs_builddir@&$ac_abs_builddir&;t t
14014 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14015 s&@INSTALL@&$ac_INSTALL&;t t
14016 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14017 $ac_datarootdir_hack
14018 "
14019 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14020 || as_fn_error "could not create $ac_file" "$LINENO" 5
14021
14022 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14023 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14024 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14026 which seems to be undefined. Please make sure it is defined." >&5
14027 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14028 which seems to be undefined. Please make sure it is defined." >&2;}
14029
14030 rm -f "$tmp/stdin"
14031 case $ac_file in
14032 -) cat "$tmp/out" && rm -f "$tmp/out";;
14033 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14034 esac \
14035 || as_fn_error "could not create $ac_file" "$LINENO" 5
14036 ;;
14037 :H)
14038 #
14039 # CONFIG_HEADER
14040 #
14041 if test x"$ac_file" != x-; then
14042 {
14043 $as_echo "/* $configure_input */" \
14044 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14045 } >"$tmp/config.h" \
14046 || as_fn_error "could not create $ac_file" "$LINENO" 5
14047 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14049 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14050 else
14051 rm -f "$ac_file"
14052 mv "$tmp/config.h" "$ac_file" \
14053 || as_fn_error "could not create $ac_file" "$LINENO" 5
14054 fi
14055 else
14056 $as_echo "/* $configure_input */" \
14057 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14058 || as_fn_error "could not create -" "$LINENO" 5
14059 fi
14060 # Compute "$ac_file"'s index in $config_headers.
14061 _am_arg="$ac_file"
14062 _am_stamp_count=1
14063 for _am_header in $config_headers :; do
14064 case $_am_header in
14065 $_am_arg | $_am_arg:* )
14066 break ;;
14067 * )
14068 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14069 esac
14070 done
14071 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14072 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073 X"$_am_arg" : 'X\(//\)[^/]' \| \
14074 X"$_am_arg" : 'X\(//\)$' \| \
14075 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14076 $as_echo X"$_am_arg" |
14077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\/\)[^/].*/{
14082 s//\1/
14083 q
14084 }
14085 /^X\(\/\/\)$/{
14086 s//\1/
14087 q
14088 }
14089 /^X\(\/\).*/{
14090 s//\1/
14091 q
14092 }
14093 s/.*/./; q'`/stamp-h$_am_stamp_count
14094 ;;
14095
14096 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14097 $as_echo "$as_me: executing $ac_file commands" >&6;}
14098 ;;
14099 esac
14100
14101
14102 case $ac_file$ac_mode in
14103 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14104 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14105 # are listed without --file. Let's play safe and only enable the eval
14106 # if we detect the quoting.
14107 case $CONFIG_FILES in
14108 *\'*) eval set x "$CONFIG_FILES" ;;
14109 *) set x $CONFIG_FILES ;;
14110 esac
14111 shift
14112 for mf
14113 do
14114 # Strip MF so we end up with the name of the file.
14115 mf=`echo "$mf" | sed -e 's/:.*$//'`
14116 # Check whether this is an Automake generated Makefile or not.
14117 # We used to match only the files named `Makefile.in', but
14118 # some people rename them; so instead we look at the file content.
14119 # Grep'ing the first line is not enough: some people post-process
14120 # each Makefile.in and add a new line on top of each file to say so.
14121 # Grep'ing the whole file is not good either: AIX grep has a line
14122 # limit of 2048, but all sed's we know have understand at least 4000.
14123 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14124 dirpart=`$as_dirname -- "$mf" ||
14125 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14126 X"$mf" : 'X\(//\)[^/]' \| \
14127 X"$mf" : 'X\(//\)$' \| \
14128 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14129 $as_echo X"$mf" |
14130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14131 s//\1/
14132 q
14133 }
14134 /^X\(\/\/\)[^/].*/{
14135 s//\1/
14136 q
14137 }
14138 /^X\(\/\/\)$/{
14139 s//\1/
14140 q
14141 }
14142 /^X\(\/\).*/{
14143 s//\1/
14144 q
14145 }
14146 s/.*/./; q'`
14147 else
14148 continue
14149 fi
14150 # Extract the definition of DEPDIR, am__include, and am__quote
14151 # from the Makefile without running `make'.
14152 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14153 test -z "$DEPDIR" && continue
14154 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14155 test -z "am__include" && continue
14156 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14157 # When using ansi2knr, U may be empty or an underscore; expand it
14158 U=`sed -n 's/^U = //p' < "$mf"`
14159 # Find all dependency output files, they are included files with
14160 # $(DEPDIR) in their names. We invoke sed twice because it is the
14161 # simplest approach to changing $(DEPDIR) to its actual value in the
14162 # expansion.
14163 for file in `sed -n "
14164 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14165 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14166 # Make sure the directory exists.
14167 test -f "$dirpart/$file" && continue
14168 fdir=`$as_dirname -- "$file" ||
14169 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14170 X"$file" : 'X\(//\)[^/]' \| \
14171 X"$file" : 'X\(//\)$' \| \
14172 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14173 $as_echo X"$file" |
14174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14175 s//\1/
14176 q
14177 }
14178 /^X\(\/\/\)[^/].*/{
14179 s//\1/
14180 q
14181 }
14182 /^X\(\/\/\)$/{
14183 s//\1/
14184 q
14185 }
14186 /^X\(\/\).*/{
14187 s//\1/
14188 q
14189 }
14190 s/.*/./; q'`
14191 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14192 # echo "creating $dirpart/$file"
14193 echo '# dummy' > "$dirpart/$file"
14194 done
14195 done
14196 }
14197 ;;
14198 "libtool":C)
14199
14200 # See if we are running on zsh, and set the options which allow our
14201 # commands through without removal of \ escapes.
14202 if test -n "${ZSH_VERSION+set}" ; then
14203 setopt NO_GLOB_SUBST
14204 fi
14205
14206 cfgfile="${ofile}T"
14207 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14208 $RM "$cfgfile"
14209
14210 cat <<_LT_EOF >> "$cfgfile"
14211 #! $SHELL
14212
14213 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14214 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14215 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14216 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14217 #
14218 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14219 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14220 # Written by Gordon Matzigkeit, 1996
14221 #
14222 # This file is part of GNU Libtool.
14223 #
14224 # GNU Libtool is free software; you can redistribute it and/or
14225 # modify it under the terms of the GNU General Public License as
14226 # published by the Free Software Foundation; either version 2 of
14227 # the License, or (at your option) any later version.
14228 #
14229 # As a special exception to the GNU General Public License,
14230 # if you distribute this file as part of a program or library that
14231 # is built using GNU Libtool, you may include this file under the
14232 # same distribution terms that you use for the rest of that program.
14233 #
14234 # GNU Libtool is distributed in the hope that it will be useful,
14235 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14236 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14237 # GNU General Public License for more details.
14238 #
14239 # You should have received a copy of the GNU General Public License
14240 # along with GNU Libtool; see the file COPYING. If not, a copy
14241 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14242 # obtained by writing to the Free Software Foundation, Inc.,
14243 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14244
14245
14246 # The names of the tagged configurations supported by this script.
14247 available_tags=""
14248
14249 # ### BEGIN LIBTOOL CONFIG
14250
14251 # Whether or not to build shared libraries.
14252 build_libtool_libs=$enable_shared
14253
14254 # Which release of libtool.m4 was used?
14255 macro_version=$macro_version
14256 macro_revision=$macro_revision
14257
14258 # Whether or not to build static libraries.
14259 build_old_libs=$enable_static
14260
14261 # What type of objects to build.
14262 pic_mode=$pic_mode
14263
14264 # Whether or not to optimize for fast installation.
14265 fast_install=$enable_fast_install
14266
14267 # Shell to use when invoking shell scripts.
14268 SHELL=$lt_SHELL
14269
14270 # An echo program that protects backslashes.
14271 ECHO=$lt_ECHO
14272
14273 # The host system.
14274 host_alias=$host_alias
14275 host=$host
14276 host_os=$host_os
14277
14278 # The build system.
14279 build_alias=$build_alias
14280 build=$build
14281 build_os=$build_os
14282
14283 # A sed program that does not truncate output.
14284 SED=$lt_SED
14285
14286 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14287 Xsed="\$SED -e 1s/^X//"
14288
14289 # A grep program that handles long lines.
14290 GREP=$lt_GREP
14291
14292 # An ERE matcher.
14293 EGREP=$lt_EGREP
14294
14295 # A literal string matcher.
14296 FGREP=$lt_FGREP
14297
14298 # A BSD- or MS-compatible name lister.
14299 NM=$lt_NM
14300
14301 # Whether we need soft or hard links.
14302 LN_S=$lt_LN_S
14303
14304 # What is the maximum length of a command?
14305 max_cmd_len=$max_cmd_len
14306
14307 # Object file suffix (normally "o").
14308 objext=$ac_objext
14309
14310 # Executable file suffix (normally "").
14311 exeext=$exeext
14312
14313 # whether the shell understands "unset".
14314 lt_unset=$lt_unset
14315
14316 # turn spaces into newlines.
14317 SP2NL=$lt_lt_SP2NL
14318
14319 # turn newlines into spaces.
14320 NL2SP=$lt_lt_NL2SP
14321
14322 # An object symbol dumper.
14323 OBJDUMP=$lt_OBJDUMP
14324
14325 # Method to check whether dependent libraries are shared objects.
14326 deplibs_check_method=$lt_deplibs_check_method
14327
14328 # Command to use when deplibs_check_method == "file_magic".
14329 file_magic_cmd=$lt_file_magic_cmd
14330
14331 # The archiver.
14332 AR=$lt_AR
14333 AR_FLAGS=$lt_AR_FLAGS
14334
14335 # A symbol stripping program.
14336 STRIP=$lt_STRIP
14337
14338 # Commands used to install an old-style archive.
14339 RANLIB=$lt_RANLIB
14340 old_postinstall_cmds=$lt_old_postinstall_cmds
14341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14342
14343 # Whether to use a lock for old archive extraction.
14344 lock_old_archive_extraction=$lock_old_archive_extraction
14345
14346 # A C compiler.
14347 LTCC=$lt_CC
14348
14349 # LTCC compiler flags.
14350 LTCFLAGS=$lt_CFLAGS
14351
14352 # Take the output of nm and produce a listing of raw symbols and C names.
14353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14354
14355 # Transform the output of nm in a proper C declaration.
14356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14357
14358 # Transform the output of nm in a C name address pair.
14359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14360
14361 # Transform the output of nm in a C name address pair when lib prefix is needed.
14362 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14363
14364 # The name of the directory that contains temporary libtool files.
14365 objdir=$objdir
14366
14367 # Used to examine libraries when file_magic_cmd begins with "file".
14368 MAGIC_CMD=$MAGIC_CMD
14369
14370 # Must we lock files when doing compilation?
14371 need_locks=$lt_need_locks
14372
14373 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14374 DSYMUTIL=$lt_DSYMUTIL
14375
14376 # Tool to change global to local symbols on Mac OS X.
14377 NMEDIT=$lt_NMEDIT
14378
14379 # Tool to manipulate fat objects and archives on Mac OS X.
14380 LIPO=$lt_LIPO
14381
14382 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14383 OTOOL=$lt_OTOOL
14384
14385 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14386 OTOOL64=$lt_OTOOL64
14387
14388 # Old archive suffix (normally "a").
14389 libext=$libext
14390
14391 # Shared library suffix (normally ".so").
14392 shrext_cmds=$lt_shrext_cmds
14393
14394 # The commands to extract the exported symbol list from a shared archive.
14395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14396
14397 # Variables whose values should be saved in libtool wrapper scripts and
14398 # restored at link time.
14399 variables_saved_for_relink=$lt_variables_saved_for_relink
14400
14401 # Do we need the "lib" prefix for modules?
14402 need_lib_prefix=$need_lib_prefix
14403
14404 # Do we need a version for libraries?
14405 need_version=$need_version
14406
14407 # Library versioning type.
14408 version_type=$version_type
14409
14410 # Shared library runtime path variable.
14411 runpath_var=$runpath_var
14412
14413 # Shared library path variable.
14414 shlibpath_var=$shlibpath_var
14415
14416 # Is shlibpath searched before the hard-coded library search path?
14417 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14418
14419 # Format of library name prefix.
14420 libname_spec=$lt_libname_spec
14421
14422 # List of archive names. First name is the real one, the rest are links.
14423 # The last name is the one that the linker finds with -lNAME
14424 library_names_spec=$lt_library_names_spec
14425
14426 # The coded name of the library, if different from the real name.
14427 soname_spec=$lt_soname_spec
14428
14429 # Permission mode override for installation of shared libraries.
14430 install_override_mode=$lt_install_override_mode
14431
14432 # Command to use after installation of a shared archive.
14433 postinstall_cmds=$lt_postinstall_cmds
14434
14435 # Command to use after uninstallation of a shared archive.
14436 postuninstall_cmds=$lt_postuninstall_cmds
14437
14438 # Commands used to finish a libtool library installation in a directory.
14439 finish_cmds=$lt_finish_cmds
14440
14441 # As "finish_cmds", except a single script fragment to be evaled but
14442 # not shown.
14443 finish_eval=$lt_finish_eval
14444
14445 # Whether we should hardcode library paths into libraries.
14446 hardcode_into_libs=$hardcode_into_libs
14447
14448 # Compile-time system search path for libraries.
14449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14450
14451 # Run-time system search path for libraries.
14452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14453
14454 # Whether dlopen is supported.
14455 dlopen_support=$enable_dlopen
14456
14457 # Whether dlopen of programs is supported.
14458 dlopen_self=$enable_dlopen_self
14459
14460 # Whether dlopen of statically linked programs is supported.
14461 dlopen_self_static=$enable_dlopen_self_static
14462
14463 # Commands to strip libraries.
14464 old_striplib=$lt_old_striplib
14465 striplib=$lt_striplib
14466
14467
14468 # The linker used to build libraries.
14469 LD=$lt_LD
14470
14471 # How to create reloadable object files.
14472 reload_flag=$lt_reload_flag
14473 reload_cmds=$lt_reload_cmds
14474
14475 # Commands used to build an old-style archive.
14476 old_archive_cmds=$lt_old_archive_cmds
14477
14478 # A language specific compiler.
14479 CC=$lt_compiler
14480
14481 # Is the compiler the GNU compiler?
14482 with_gcc=$GCC
14483
14484 # Compiler flag to turn off builtin functions.
14485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14486
14487 # How to pass a linker flag through the compiler.
14488 wl=$lt_lt_prog_compiler_wl
14489
14490 # Additional compiler flags for building library objects.
14491 pic_flag=$lt_lt_prog_compiler_pic
14492
14493 # Compiler flag to prevent dynamic linking.
14494 link_static_flag=$lt_lt_prog_compiler_static
14495
14496 # Does compiler simultaneously support -c and -o options?
14497 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14498
14499 # Whether or not to add -lc for building shared libraries.
14500 build_libtool_need_lc=$archive_cmds_need_lc
14501
14502 # Whether or not to disallow shared libs when runtime libs are static.
14503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14504
14505 # Compiler flag to allow reflexive dlopens.
14506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14507
14508 # Compiler flag to generate shared objects directly from archives.
14509 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14510
14511 # Whether the compiler copes with passing no objects directly.
14512 compiler_needs_object=$lt_compiler_needs_object
14513
14514 # Create an old-style archive from a shared archive.
14515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14516
14517 # Create a temporary old-style archive to link instead of a shared archive.
14518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14519
14520 # Commands used to build a shared archive.
14521 archive_cmds=$lt_archive_cmds
14522 archive_expsym_cmds=$lt_archive_expsym_cmds
14523
14524 # Commands used to build a loadable module if different from building
14525 # a shared archive.
14526 module_cmds=$lt_module_cmds
14527 module_expsym_cmds=$lt_module_expsym_cmds
14528
14529 # Whether we are building with GNU ld or not.
14530 with_gnu_ld=$lt_with_gnu_ld
14531
14532 # Flag that allows shared libraries with undefined symbols to be built.
14533 allow_undefined_flag=$lt_allow_undefined_flag
14534
14535 # Flag that enforces no undefined symbols.
14536 no_undefined_flag=$lt_no_undefined_flag
14537
14538 # Flag to hardcode \$libdir into a binary during linking.
14539 # This must work even if \$libdir does not exist
14540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14541
14542 # If ld is used when linking, flag to hardcode \$libdir into a binary
14543 # during linking. This must work even if \$libdir does not exist.
14544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14545
14546 # Whether we need a single "-rpath" flag with a separated argument.
14547 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14548
14549 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14550 # DIR into the resulting binary.
14551 hardcode_direct=$hardcode_direct
14552
14553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14554 # DIR into the resulting binary and the resulting library dependency is
14555 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14556 # library is relocated.
14557 hardcode_direct_absolute=$hardcode_direct_absolute
14558
14559 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14560 # into the resulting binary.
14561 hardcode_minus_L=$hardcode_minus_L
14562
14563 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14564 # into the resulting binary.
14565 hardcode_shlibpath_var=$hardcode_shlibpath_var
14566
14567 # Set to "yes" if building a shared library automatically hardcodes DIR
14568 # into the library and all subsequent libraries and executables linked
14569 # against it.
14570 hardcode_automatic=$hardcode_automatic
14571
14572 # Set to yes if linker adds runtime paths of dependent libraries
14573 # to runtime path list.
14574 inherit_rpath=$inherit_rpath
14575
14576 # Whether libtool must link a program against all its dependency libraries.
14577 link_all_deplibs=$link_all_deplibs
14578
14579 # Fix the shell variable \$srcfile for the compiler.
14580 fix_srcfile_path=$lt_fix_srcfile_path
14581
14582 # Set to "yes" if exported symbols are required.
14583 always_export_symbols=$always_export_symbols
14584
14585 # The commands to list exported symbols.
14586 export_symbols_cmds=$lt_export_symbols_cmds
14587
14588 # Symbols that should not be listed in the preloaded symbols.
14589 exclude_expsyms=$lt_exclude_expsyms
14590
14591 # Symbols that must always be exported.
14592 include_expsyms=$lt_include_expsyms
14593
14594 # Commands necessary for linking programs (against libraries) with templates.
14595 prelink_cmds=$lt_prelink_cmds
14596
14597 # Specify filename containing input files.
14598 file_list_spec=$lt_file_list_spec
14599
14600 # How to hardcode a shared library path into an executable.
14601 hardcode_action=$hardcode_action
14602
14603 # ### END LIBTOOL CONFIG
14604
14605 _LT_EOF
14606
14607 case $host_os in
14608 aix3*)
14609 cat <<\_LT_EOF >> "$cfgfile"
14610 # AIX sometimes has problems with the GCC collect2 program. For some
14611 # reason, if we set the COLLECT_NAMES environment variable, the problems
14612 # vanish in a puff of smoke.
14613 if test "X${COLLECT_NAMES+set}" != Xset; then
14614 COLLECT_NAMES=
14615 export COLLECT_NAMES
14616 fi
14617 _LT_EOF
14618 ;;
14619 esac
14620
14621
14622 ltmain="$ac_aux_dir/ltmain.sh"
14623
14624
14625 # We use sed instead of cat because bash on DJGPP gets confused if
14626 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14627 # text mode, it properly converts lines to CR/LF. This bash problem
14628 # is reportedly fixed, but why not run on old versions too?
14629 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14630 || (rm -f "$cfgfile"; exit 1)
14631
14632 case $xsi_shell in
14633 yes)
14634 cat << \_LT_EOF >> "$cfgfile"
14635
14636 # func_dirname file append nondir_replacement
14637 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14638 # otherwise set result to NONDIR_REPLACEMENT.
14639 func_dirname ()
14640 {
14641 case ${1} in
14642 */*) func_dirname_result="${1%/*}${2}" ;;
14643 * ) func_dirname_result="${3}" ;;
14644 esac
14645 }
14646
14647 # func_basename file
14648 func_basename ()
14649 {
14650 func_basename_result="${1##*/}"
14651 }
14652
14653 # func_dirname_and_basename file append nondir_replacement
14654 # perform func_basename and func_dirname in a single function
14655 # call:
14656 # dirname: Compute the dirname of FILE. If nonempty,
14657 # add APPEND to the result, otherwise set result
14658 # to NONDIR_REPLACEMENT.
14659 # value returned in "$func_dirname_result"
14660 # basename: Compute filename of FILE.
14661 # value retuned in "$func_basename_result"
14662 # Implementation must be kept synchronized with func_dirname
14663 # and func_basename. For efficiency, we do not delegate to
14664 # those functions but instead duplicate the functionality here.
14665 func_dirname_and_basename ()
14666 {
14667 case ${1} in
14668 */*) func_dirname_result="${1%/*}${2}" ;;
14669 * ) func_dirname_result="${3}" ;;
14670 esac
14671 func_basename_result="${1##*/}"
14672 }
14673
14674 # func_stripname prefix suffix name
14675 # strip PREFIX and SUFFIX off of NAME.
14676 # PREFIX and SUFFIX must not contain globbing or regex special
14677 # characters, hashes, percent signs, but SUFFIX may contain a leading
14678 # dot (in which case that matches only a dot).
14679 func_stripname ()
14680 {
14681 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14682 # positional parameters, so assign one to ordinary parameter first.
14683 func_stripname_result=${3}
14684 func_stripname_result=${func_stripname_result#"${1}"}
14685 func_stripname_result=${func_stripname_result%"${2}"}
14686 }
14687
14688 # func_opt_split
14689 func_opt_split ()
14690 {
14691 func_opt_split_opt=${1%%=*}
14692 func_opt_split_arg=${1#*=}
14693 }
14694
14695 # func_lo2o object
14696 func_lo2o ()
14697 {
14698 case ${1} in
14699 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14700 *) func_lo2o_result=${1} ;;
14701 esac
14702 }
14703
14704 # func_xform libobj-or-source
14705 func_xform ()
14706 {
14707 func_xform_result=${1%.*}.lo
14708 }
14709
14710 # func_arith arithmetic-term...
14711 func_arith ()
14712 {
14713 func_arith_result=$(( $* ))
14714 }
14715
14716 # func_len string
14717 # STRING may not start with a hyphen.
14718 func_len ()
14719 {
14720 func_len_result=${#1}
14721 }
14722
14723 _LT_EOF
14724 ;;
14725 *) # Bourne compatible functions.
14726 cat << \_LT_EOF >> "$cfgfile"
14727
14728 # func_dirname file append nondir_replacement
14729 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14730 # otherwise set result to NONDIR_REPLACEMENT.
14731 func_dirname ()
14732 {
14733 # Extract subdirectory from the argument.
14734 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14735 if test "X$func_dirname_result" = "X${1}"; then
14736 func_dirname_result="${3}"
14737 else
14738 func_dirname_result="$func_dirname_result${2}"
14739 fi
14740 }
14741
14742 # func_basename file
14743 func_basename ()
14744 {
14745 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14746 }
14747
14748
14749 # func_stripname prefix suffix name
14750 # strip PREFIX and SUFFIX off of NAME.
14751 # PREFIX and SUFFIX must not contain globbing or regex special
14752 # characters, hashes, percent signs, but SUFFIX may contain a leading
14753 # dot (in which case that matches only a dot).
14754 # func_strip_suffix prefix name
14755 func_stripname ()
14756 {
14757 case ${2} in
14758 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14759 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14760 esac
14761 }
14762
14763 # sed scripts:
14764 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14765 my_sed_long_arg='1s/^-[^=]*=//'
14766
14767 # func_opt_split
14768 func_opt_split ()
14769 {
14770 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14771 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14772 }
14773
14774 # func_lo2o object
14775 func_lo2o ()
14776 {
14777 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14778 }
14779
14780 # func_xform libobj-or-source
14781 func_xform ()
14782 {
14783 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14784 }
14785
14786 # func_arith arithmetic-term...
14787 func_arith ()
14788 {
14789 func_arith_result=`expr "$@"`
14790 }
14791
14792 # func_len string
14793 # STRING may not start with a hyphen.
14794 func_len ()
14795 {
14796 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14797 }
14798
14799 _LT_EOF
14800 esac
14801
14802 case $lt_shell_append in
14803 yes)
14804 cat << \_LT_EOF >> "$cfgfile"
14805
14806 # func_append var value
14807 # Append VALUE to the end of shell variable VAR.
14808 func_append ()
14809 {
14810 eval "$1+=\$2"
14811 }
14812 _LT_EOF
14813 ;;
14814 *)
14815 cat << \_LT_EOF >> "$cfgfile"
14816
14817 # func_append var value
14818 # Append VALUE to the end of shell variable VAR.
14819 func_append ()
14820 {
14821 eval "$1=\$$1\$2"
14822 }
14823
14824 _LT_EOF
14825 ;;
14826 esac
14827
14828
14829 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14830 || (rm -f "$cfgfile"; exit 1)
14831
14832 mv -f "$cfgfile" "$ofile" ||
14833 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14834 chmod +x "$ofile"
14835
14836 ;;
14837 "default-1":C)
14838 for ac_file in $CONFIG_FILES; do
14839 # Support "outfile[:infile[:infile...]]"
14840 case "$ac_file" in
14841 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14842 esac
14843 # PO directories have a Makefile.in generated from Makefile.in.in.
14844 case "$ac_file" in */Makefile.in)
14845 # Adjust a relative srcdir.
14846 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14847 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14848 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14849 # In autoconf-2.13 it is called $ac_given_srcdir.
14850 # In autoconf-2.50 it is called $srcdir.
14851 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14852 case "$ac_given_srcdir" in
14853 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14854 /*) top_srcdir="$ac_given_srcdir" ;;
14855 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14856 esac
14857 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14858 rm -f "$ac_dir/POTFILES"
14859 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14860 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14861 POMAKEFILEDEPS="POTFILES.in"
14862 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14863 # on $ac_dir but don't depend on user-specified configuration
14864 # parameters.
14865 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14866 # The LINGUAS file contains the set of available languages.
14867 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14868 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14869 fi
14870 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14871 # Hide the ALL_LINGUAS assigment from automake.
14872 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14873 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14874 else
14875 # The set of available languages was given in configure.in.
14876 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14877 fi
14878 case "$ac_given_srcdir" in
14879 .) srcdirpre= ;;
14880 *) srcdirpre='$(srcdir)/' ;;
14881 esac
14882 POFILES=
14883 GMOFILES=
14884 UPDATEPOFILES=
14885 DUMMYPOFILES=
14886 for lang in $ALL_LINGUAS; do
14887 POFILES="$POFILES $srcdirpre$lang.po"
14888 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14889 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14890 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14891 done
14892 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14893 # environment variable.
14894 INST_LINGUAS=
14895 if test -n "$ALL_LINGUAS"; then
14896 for presentlang in $ALL_LINGUAS; do
14897 useit=no
14898 if test "%UNSET%" != "$LINGUAS"; then
14899 desiredlanguages="$LINGUAS"
14900 else
14901 desiredlanguages="$ALL_LINGUAS"
14902 fi
14903 for desiredlang in $desiredlanguages; do
14904 # Use the presentlang catalog if desiredlang is
14905 # a. equal to presentlang, or
14906 # b. a variant of presentlang (because in this case,
14907 # presentlang can be used as a fallback for messages
14908 # which are not translated in the desiredlang catalog).
14909 case "$desiredlang" in
14910 "$presentlang"*) useit=yes;;
14911 esac
14912 done
14913 if test $useit = yes; then
14914 INST_LINGUAS="$INST_LINGUAS $presentlang"
14915 fi
14916 done
14917 fi
14918 CATALOGS=
14919 if test -n "$INST_LINGUAS"; then
14920 for lang in $INST_LINGUAS; do
14921 CATALOGS="$CATALOGS $lang.gmo"
14922 done
14923 fi
14924 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14925 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14926 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14927 if test -f "$f"; then
14928 case "$f" in
14929 *.orig | *.bak | *~) ;;
14930 *) cat "$f" >> "$ac_dir/Makefile" ;;
14931 esac
14932 fi
14933 done
14934 fi
14935 ;;
14936 esac
14937 done ;;
14938
14939 esac
14940 done # for ac_tag
14941
14942
14943 as_fn_exit 0
14944 _ACEOF
14945 ac_clean_files=$ac_clean_files_save
14946
14947 test $ac_write_fail = 0 ||
14948 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14949
14950
14951 # configure is writing to config.log, and then calls config.status.
14952 # config.status does its own redirection, appending to config.log.
14953 # Unfortunately, on DOS this fails, as config.log is still kept open
14954 # by configure, so config.status won't be able to write to it; its
14955 # output is simply discarded. So we exec the FD to /dev/null,
14956 # effectively closing config.log, so it can be properly (re)opened and
14957 # appended to by config.status. When coming back to configure, we
14958 # need to make the FD available again.
14959 if test "$no_create" != yes; then
14960 ac_cs_success=:
14961 ac_config_status_args=
14962 test "$silent" = yes &&
14963 ac_config_status_args="$ac_config_status_args --quiet"
14964 exec 5>/dev/null
14965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14966 exec 5>>config.log
14967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14968 # would make configure fail if this is the last instruction.
14969 $ac_cs_success || as_fn_exit $?
14970 fi
14971 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14973 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14974 fi
14975
This page took 0.61725 seconds and 5 git commands to generate.