]> git.ipfire.org Git - thirdparty/gcc.git/blob - libobjc/configure
configure.ac: Don't use pkg-config to check for bdw-gc.
[thirdparty/gcc.git] / libobjc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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='package-unused'
558 PACKAGE_TARNAME='libobjc'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="objc/objc.h"
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='LTLIBOBJS
602 LIBOBJS
603 OBJC_BOEHM_GC_LIBS
604 OBJC_BOEHM_GC_INCLUDES
605 OBJC_BOEHM_GC
606 OBJC_GCFLAGS
607 SET_MAKE
608 CPP
609 OTOOL64
610 OTOOL
611 LIPO
612 NMEDIT
613 DSYMUTIL
614 AWK
615 STRIP
616 LN_S
617 NM
618 ac_ct_DUMPBIN
619 DUMPBIN
620 LD
621 FGREP
622 EGREP
623 GREP
624 SED
625 LIBTOOL
626 OBJDUMP
627 DLLTOOL
628 MAINT
629 MAINTAINER_MODE_FALSE
630 MAINTAINER_MODE_TRUE
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 RANLIB
635 AR
636 AS
637 extra_ldflags_libobjc
638 lt_host_flags
639 OBJEXT
640 EXEEXT
641 ac_ct_CC
642 CPPFLAGS
643 LDFLAGS
644 CFLAGS
645 CC
646 libsuffix
647 includedirname
648 toolexeclibdir
649 toolexecdir
650 glibcpp_srcdir
651 target_noncanonical
652 target_os
653 target_vendor
654 target_cpu
655 target
656 host_os
657 host_vendor
658 host_cpu
659 host
660 multi_basedir
661 VERSION
662 target_subdir
663 host_subdir
664 build_subdir
665 build_libsubdir
666 build_os
667 build_vendor
668 build_cpu
669 build
670 target_alias
671 host_alias
672 build_alias
673 LIBS
674 ECHO_T
675 ECHO_N
676 ECHO_C
677 DEFS
678 mandir
679 localedir
680 libdir
681 psdir
682 pdfdir
683 dvidir
684 htmldir
685 infodir
686 docdir
687 oldincludedir
688 includedir
689 localstatedir
690 sharedstatedir
691 sysconfdir
692 datadir
693 datarootdir
694 libexecdir
695 sbindir
696 bindir
697 program_transform_name
698 prefix
699 exec_prefix
700 PACKAGE_URL
701 PACKAGE_BUGREPORT
702 PACKAGE_STRING
703 PACKAGE_VERSION
704 PACKAGE_TARNAME
705 PACKAGE_NAME
706 PATH_SEPARATOR
707 SHELL'
708 ac_subst_files=''
709 ac_user_opts='
710 enable_option_checking
711 with_build_libsubdir
712 with_target_subdir
713 with_cross_host
714 enable_version_specific_runtime_libs
715 enable_multilib
716 enable_maintainer_mode
717 enable_shared
718 enable_static
719 with_pic
720 enable_fast_install
721 with_gnu_ld
722 enable_libtool_lock
723 enable_tls
724 enable_objc_gc
725 with_target_bdw_gc
726 with_target_bdw_gc_include
727 with_target_bdw_gc_lib
728 '
729 ac_precious_vars='build_alias
730 host_alias
731 target_alias
732 CPP
733 CPPFLAGS'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 ac_unrecognized_opts=
740 ac_unrecognized_sep=
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
799
800 # Accept the important Cygnus configure options, so we can diagnose typos.
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error "invalid feature name: $ac_useropt"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
846 *"
847 "enable_$ac_useropt"
848 "*) ;;
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
851 esac
852 eval enable_$ac_useropt=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
872 *"
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=\$ac_optarg ;;
879
880 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882 | --exec | --exe | --ex)
883 ac_prev=exec_prefix ;;
884 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886 | --exec=* | --exe=* | --ex=*)
887 exec_prefix=$ac_optarg ;;
888
889 -gas | --gas | --ga | --g)
890 # Obsolete; use --with-gas.
891 with_gas=yes ;;
892
893 -help | --help | --hel | --he | -h)
894 ac_init_help=long ;;
895 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896 ac_init_help=recursive ;;
897 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898 ac_init_help=short ;;
899
900 -host | --host | --hos | --ho)
901 ac_prev=host_alias ;;
902 -host=* | --host=* | --hos=* | --ho=*)
903 host_alias=$ac_optarg ;;
904
905 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 ac_prev=htmldir ;;
907 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 | --ht=*)
909 htmldir=$ac_optarg ;;
910
911 -includedir | --includedir | --includedi | --included | --include \
912 | --includ | --inclu | --incl | --inc)
913 ac_prev=includedir ;;
914 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915 | --includ=* | --inclu=* | --incl=* | --inc=*)
916 includedir=$ac_optarg ;;
917
918 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 ac_prev=infodir ;;
920 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921 infodir=$ac_optarg ;;
922
923 -libdir | --libdir | --libdi | --libd)
924 ac_prev=libdir ;;
925 -libdir=* | --libdir=* | --libdi=* | --libd=*)
926 libdir=$ac_optarg ;;
927
928 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929 | --libexe | --libex | --libe)
930 ac_prev=libexecdir ;;
931 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932 | --libexe=* | --libex=* | --libe=*)
933 libexecdir=$ac_optarg ;;
934
935 -localedir | --localedir | --localedi | --localed | --locale)
936 ac_prev=localedir ;;
937 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938 localedir=$ac_optarg ;;
939
940 -localstatedir | --localstatedir | --localstatedi | --localstated \
941 | --localstate | --localstat | --localsta | --localst | --locals)
942 ac_prev=localstatedir ;;
943 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945 localstatedir=$ac_optarg ;;
946
947 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 ac_prev=mandir ;;
949 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950 mandir=$ac_optarg ;;
951
952 -nfp | --nfp | --nf)
953 # Obsolete; use --without-fp.
954 with_fp=no ;;
955
956 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957 | --no-cr | --no-c | -n)
958 no_create=yes ;;
959
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962 no_recursion=yes ;;
963
964 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966 | --oldin | --oldi | --old | --ol | --o)
967 ac_prev=oldincludedir ;;
968 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971 oldincludedir=$ac_optarg ;;
972
973 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 ac_prev=prefix ;;
975 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976 prefix=$ac_optarg ;;
977
978 -program-prefix | --program-prefix | --program-prefi | --program-pref \
979 | --program-pre | --program-pr | --program-p)
980 ac_prev=program_prefix ;;
981 -program-prefix=* | --program-prefix=* | --program-prefi=* \
982 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983 program_prefix=$ac_optarg ;;
984
985 -program-suffix | --program-suffix | --program-suffi | --program-suff \
986 | --program-suf | --program-su | --program-s)
987 ac_prev=program_suffix ;;
988 -program-suffix=* | --program-suffix=* | --program-suffi=* \
989 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990 program_suffix=$ac_optarg ;;
991
992 -program-transform-name | --program-transform-name \
993 | --program-transform-nam | --program-transform-na \
994 | --program-transform-n | --program-transform- \
995 | --program-transform | --program-transfor \
996 | --program-transfo | --program-transf \
997 | --program-trans | --program-tran \
998 | --progr-tra | --program-tr | --program-t)
999 ac_prev=program_transform_name ;;
1000 -program-transform-name=* | --program-transform-name=* \
1001 | --program-transform-nam=* | --program-transform-na=* \
1002 | --program-transform-n=* | --program-transform-=* \
1003 | --program-transform=* | --program-transfor=* \
1004 | --program-transfo=* | --program-transf=* \
1005 | --program-trans=* | --program-tran=* \
1006 | --progr-tra=* | --program-tr=* | --program-t=*)
1007 program_transform_name=$ac_optarg ;;
1008
1009 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 ac_prev=pdfdir ;;
1011 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012 pdfdir=$ac_optarg ;;
1013
1014 -psdir | --psdir | --psdi | --psd | --ps)
1015 ac_prev=psdir ;;
1016 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017 psdir=$ac_optarg ;;
1018
1019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020 | -silent | --silent | --silen | --sile | --sil)
1021 silent=yes ;;
1022
1023 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 ac_prev=sbindir ;;
1025 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 | --sbi=* | --sb=*)
1027 sbindir=$ac_optarg ;;
1028
1029 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031 | --sharedst | --shareds | --shared | --share | --shar \
1032 | --sha | --sh)
1033 ac_prev=sharedstatedir ;;
1034 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 | --sha=* | --sh=*)
1038 sharedstatedir=$ac_optarg ;;
1039
1040 -site | --site | --sit)
1041 ac_prev=site ;;
1042 -site=* | --site=* | --sit=*)
1043 site=$ac_optarg ;;
1044
1045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 ac_prev=srcdir ;;
1047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048 srcdir=$ac_optarg ;;
1049
1050 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051 | --syscon | --sysco | --sysc | --sys | --sy)
1052 ac_prev=sysconfdir ;;
1053 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055 sysconfdir=$ac_optarg ;;
1056
1057 -target | --target | --targe | --targ | --tar | --ta | --t)
1058 ac_prev=target_alias ;;
1059 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060 target_alias=$ac_optarg ;;
1061
1062 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063 verbose=yes ;;
1064
1065 -version | --version | --versio | --versi | --vers | -V)
1066 ac_init_version=: ;;
1067
1068 -with-* | --with-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=\$ac_optarg ;;
1083
1084 -without-* | --without-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=no ;;
1099
1100 --x)
1101 # Obsolete; use --with-x.
1102 with_x=yes ;;
1103
1104 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1105 | --x-incl | --x-inc | --x-in | --x-i)
1106 ac_prev=x_includes ;;
1107 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1108 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1109 x_includes=$ac_optarg ;;
1110
1111 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1112 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1113 ac_prev=x_libraries ;;
1114 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1115 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1116 x_libraries=$ac_optarg ;;
1117
1118 -*) as_fn_error "unrecognized option: \`$ac_option'
1119 Try \`$0 --help' for more information."
1120 ;;
1121
1122 *=*)
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 case $ac_envvar in #(
1126 '' | [0-9]* | *[!_$as_cr_alnum]* )
1127 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1128 esac
1129 eval $ac_envvar=\$ac_optarg
1130 export $ac_envvar ;;
1131
1132 *)
1133 # FIXME: should be removed in autoconf 3.0.
1134 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1135 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1136 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1137 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1138 ;;
1139
1140 esac
1141 done
1142
1143 if test -n "$ac_prev"; then
1144 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1145 as_fn_error "missing argument to $ac_option"
1146 fi
1147
1148 if test -n "$ac_unrecognized_opts"; then
1149 case $enable_option_checking in
1150 no) ;;
1151 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1152 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1153 esac
1154 fi
1155
1156 # Check all directory arguments for consistency.
1157 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1158 datadir sysconfdir sharedstatedir localstatedir includedir \
1159 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160 libdir localedir mandir
1161 do
1162 eval ac_val=\$$ac_var
1163 # Remove trailing slashes.
1164 case $ac_val in
1165 */ )
1166 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1167 eval $ac_var=\$ac_val;;
1168 esac
1169 # Be sure to have absolute directory names.
1170 case $ac_val in
1171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 esac
1174 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1175 done
1176
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1180 build=$build_alias
1181 host=$host_alias
1182 target=$target_alias
1183
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x; then
1186 if test "x$build_alias" = x; then
1187 cross_compiling=maybe
1188 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1189 If a cross compiler is detected then cross compile mode will be used." >&2
1190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1192 fi
1193 fi
1194
1195 ac_tool_prefix=
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197
1198 test "$silent" = yes && exec 6>/dev/null
1199
1200
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 as_fn_error "working directory cannot be determined"
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 as_fn_error "pwd does not report name of working directory"
1207
1208
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$as_myself" ||
1214 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$as_myself" : 'X\(//\)[^/]' \| \
1216 X"$as_myself" : 'X\(//\)$' \| \
1217 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1218 $as_echo X"$as_myself" |
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\).*/{
1232 s//\1/
1233 q
1234 }
1235 s/.*/./; q'`
1236 srcdir=$ac_confdir
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 srcdir=..
1239 fi
1240 else
1241 ac_srcdir_defaulted=no
1242 fi
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1246 fi
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1250 pwd)`
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1254 fi
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1258 case $srcdir in
1259 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 esac
1261 for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266 done
1267
1268 #
1269 # Report the --help message.
1270 #
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
1275 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1276
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1278
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1281
1282 Defaults for the options are specified in brackets.
1283
1284 Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 [PREFIX]
1300
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1305
1306 For better control, use the options below.
1307
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
1328 _ACEOF
1329
1330 cat <<\_ACEOF
1331
1332 System types:
1333 --build=BUILD configure for building on BUILD [guessed]
1334 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1335 --target=TARGET configure for building compilers for TARGET [HOST]
1336 _ACEOF
1337 fi
1338
1339 if test -n "$ac_init_help"; then
1340 case $ac_init_help in
1341 short | recursive ) echo "Configuration of package-unused version-unused:";;
1342 esac
1343 cat <<\_ACEOF
1344
1345 Optional Features:
1346 --disable-option-checking ignore unrecognized --enable/--with options
1347 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1348 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1349 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1350 --enable-multilib build many library versions (default)
1351 --enable-maintainer-mode enable make rules and dependencies not useful
1352 (and sometimes confusing) to the casual installer
1353 --enable-shared[=PKGS] build shared libraries [default=yes]
1354 --enable-static[=PKGS] build static libraries [default=yes]
1355 --enable-fast-install[=PKGS]
1356 optimize for fast installation [default=yes]
1357 --disable-libtool-lock avoid locking (might break parallel builds)
1358 --enable-tls Use thread-local storage [default=yes]
1359 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1360 Objective-C runtime
1361
1362 Optional Packages:
1363 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1364 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1365 --with-build-libsubdir=DIR Directory where to find libraries for build system
1366 --with-target-subdir=SUBDIR
1367 configuring in a subdirectory
1368 --with-cross-host=HOST configuring with a cross compiler
1369 --with-pic try to use only PIC/non-PIC objects [default=use
1370 both]
1371 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1372 --with-target-bdw-gc=PATHLIST
1373 specify prefix directory for installed bdw-gc
1374 package. Equivalent to
1375 --with-target-bdw-gc-include=PATH/include plus
1376 --with-target-bdw-gc-lib=PATH/lib
1377 --with-target-bdw-gc-include=PATHLIST
1378 specify directories for installed bdw-gc include
1379 files
1380 --with-target-bdw-gc-lib=PATHLIST
1381 specify directories for installed bdw-gc library
1382
1383 Some influential environment variables:
1384 CC C compiler command
1385 CFLAGS C compiler flags
1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1387 nonstandard directory <lib dir>
1388 LIBS libraries to pass to the linker, e.g. -l<library>
1389 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1390 you have headers in a nonstandard directory <include dir>
1391 CPP C preprocessor
1392
1393 Use these variables to override the choices made by `configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1395
1396 Report bugs to the package provider.
1397 _ACEOF
1398 ac_status=$?
1399 fi
1400
1401 if test "$ac_init_help" = "recursive"; then
1402 # If there are subdirs, report their specific --help.
1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404 test -d "$ac_dir" ||
1405 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1406 continue
1407 ac_builddir=.
1408
1409 case "$ac_dir" in
1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *)
1412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1413 # A ".." for each directory in $ac_dir_suffix.
1414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1415 case $ac_top_builddir_sub in
1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418 esac ;;
1419 esac
1420 ac_abs_top_builddir=$ac_pwd
1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422 # for backward compatibility:
1423 ac_top_builddir=$ac_top_build_prefix
1424
1425 case $srcdir in
1426 .) # We are building in place.
1427 ac_srcdir=.
1428 ac_top_srcdir=$ac_top_builddir_sub
1429 ac_abs_top_srcdir=$ac_pwd ;;
1430 [\\/]* | ?:[\\/]* ) # Absolute name.
1431 ac_srcdir=$srcdir$ac_dir_suffix;
1432 ac_top_srcdir=$srcdir
1433 ac_abs_top_srcdir=$srcdir ;;
1434 *) # Relative name.
1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436 ac_top_srcdir=$ac_top_build_prefix$srcdir
1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 esac
1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440
1441 cd "$ac_dir" || { ac_status=$?; continue; }
1442 # Check for guested configure.
1443 if test -f "$ac_srcdir/configure.gnu"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446 elif test -f "$ac_srcdir/configure"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure" --help=recursive
1449 else
1450 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 fi || ac_status=$?
1452 cd "$ac_pwd" || { ac_status=$?; break; }
1453 done
1454 fi
1455
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1458 cat <<\_ACEOF
1459 package-unused configure version-unused
1460 generated by GNU Autoconf 2.64
1461
1462 Copyright (C) 2009 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1467 fi
1468
1469 ## ------------------------ ##
1470 ## Autoconf initialization. ##
1471 ## ------------------------ ##
1472
1473 # ac_fn_c_try_compile LINENO
1474 # --------------------------
1475 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_compile ()
1477 {
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 rm -f conftest.$ac_objext
1480 if { { ac_try="$ac_compile"
1481 case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_compile") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1493 fi
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && {
1496 test -z "$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 } && test -s conftest.$ac_objext; then :
1499 ac_retval=0
1500 else
1501 $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1503
1504 ac_retval=1
1505 fi
1506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1507 return $ac_retval
1508
1509 } # ac_fn_c_try_compile
1510
1511 # ac_fn_c_try_link LINENO
1512 # -----------------------
1513 # Try to link conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_link ()
1515 {
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext conftest$ac_exeext
1518 if { { ac_try="$ac_link"
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_link") 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_exeext && {
1537 test "$cross_compiling" = yes ||
1538 $as_test_x conftest$ac_exeext
1539 }; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1548 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1549 # interfere with the next link command; also delete a directory that is
1550 # left behind by Apple's compiler. We do this before executing the actions.
1551 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553 return $ac_retval
1554
1555 } # ac_fn_c_try_link
1556
1557 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1558 # -------------------------------------------------------
1559 # Tests whether HEADER exists and can be compiled using the include files in
1560 # INCLUDES, setting the cache variable VAR accordingly.
1561 ac_fn_c_check_header_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 $as_echo_n "(cached) " >&6
1568 else
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1571 $4
1572 #include <$2>
1573 _ACEOF
1574 if ac_fn_c_try_compile "$LINENO"; then :
1575 eval "$3=yes"
1576 else
1577 eval "$3=no"
1578 fi
1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580 fi
1581 eval ac_res=\$$3
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583 $as_echo "$ac_res" >&6; }
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585
1586 } # ac_fn_c_check_header_compile
1587
1588 # ac_fn_c_try_cpp LINENO
1589 # ----------------------
1590 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_cpp ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { { ac_try="$ac_cpp conftest.$ac_ext"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } >/dev/null && {
1610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 }; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621 return $ac_retval
1622
1623 } # ac_fn_c_try_cpp
1624
1625 # ac_fn_c_try_run LINENO
1626 # ----------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1628 # that executables *can* be run.
1629 ac_fn_c_try_run ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_link"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>&5
1640 ac_status=$?
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1643 { { case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_try") 2>&5
1650 ac_status=$?
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; }; }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: program exited with status $ac_status" >&5
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=$ac_status
1660 fi
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 return $ac_retval
1664
1665 } # ac_fn_c_try_run
1666
1667 # ac_fn_c_check_func LINENO FUNC VAR
1668 # ----------------------------------
1669 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1670 ac_fn_c_check_func ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 if test x$gcc_no_link = xyes; then
1679 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1680 fi
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1685 #define $2 innocuous_$2
1686
1687 /* System header to define __stub macros and hopefully few prototypes,
1688 which can conflict with char $2 (); below.
1689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1690 <limits.h> exists even on freestanding compilers. */
1691
1692 #ifdef __STDC__
1693 # include <limits.h>
1694 #else
1695 # include <assert.h>
1696 #endif
1697
1698 #undef $2
1699
1700 /* Override any GCC internal prototype to avoid an error.
1701 Use char because int might match the return type of a GCC
1702 builtin and then its argument prototype would still apply. */
1703 #ifdef __cplusplus
1704 extern "C"
1705 #endif
1706 char $2 ();
1707 /* The GNU C library defines this for functions which it implements
1708 to always fail with ENOSYS. Some functions are actually named
1709 something starting with __ and the normal name is an alias. */
1710 #if defined __stub_$2 || defined __stub___$2
1711 choke me
1712 #endif
1713
1714 int
1715 main ()
1716 {
1717 return $2 ();
1718 ;
1719 return 0;
1720 }
1721 _ACEOF
1722 if ac_fn_c_try_link "$LINENO"; then :
1723 eval "$3=yes"
1724 else
1725 eval "$3=no"
1726 fi
1727 rm -f core conftest.err conftest.$ac_objext \
1728 conftest$ac_exeext conftest.$ac_ext
1729 fi
1730 eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734
1735 } # ac_fn_c_check_func
1736
1737 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1740 # the include files in INCLUDES and setting the cache variable VAR
1741 # accordingly.
1742 ac_fn_c_check_header_mongrel ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 $as_echo_n "(cached) " >&6
1750 fi
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 else
1755 # Is the header compilable?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1757 $as_echo_n "checking $2 usability... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $4
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_header_compiler=yes
1765 else
1766 ac_header_compiler=no
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1770 $as_echo "$ac_header_compiler" >&6; }
1771
1772 # Is the header present?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1774 $as_echo_n "checking $2 presence... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_cpp "$LINENO"; then :
1780 ac_header_preproc=yes
1781 else
1782 ac_header_preproc=no
1783 fi
1784 rm -f conftest.err conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1786 $as_echo "$ac_header_preproc" >&6; }
1787
1788 # So? What about this header?
1789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 yes:no: )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1792 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796 no:yes:* )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1798 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1800 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1802 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1804 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 ;;
1808 esac
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 eval "$3=\$ac_header_compiler"
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 fi
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821
1822 } # ac_fn_c_check_header_mongrel
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1826
1827 It was created by package-unused $as_me version-unused, which was
1828 generated by GNU Autoconf 2.64. Invocation command line was
1829
1830 $ $0 $@
1831
1832 _ACEOF
1833 exec 5>>config.log
1834 {
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1839
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856
1857 _ASUNAME
1858
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 $as_echo "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891 for ac_arg
1892 do
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
1898 *\'*)
1899 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 esac
1901 case $ac_pass in
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903 2)
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1916 ;;
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1919 fi
1920 as_fn_append ac_configure_args " '$ac_arg'"
1921 ;;
1922 esac
1923 done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1935 {
1936 echo
1937
1938 cat <<\_ASBOX
1939 ## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##
1942 _ASBOX
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1945 (
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1968 *)
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 ;;
1971 esac |
1972 sort
1973 )
1974 echo
1975
1976 cat <<\_ASBOX
1977 ## ----------------- ##
1978 ## Output variables. ##
1979 ## ----------------- ##
1980 _ASBOX
1981 echo
1982 for ac_var in $ac_subst_vars
1983 do
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 $as_echo "$ac_var='\''$ac_val'\''"
1989 done | sort
1990 echo
1991
1992 if test -n "$ac_subst_files"; then
1993 cat <<\_ASBOX
1994 ## ------------------- ##
1995 ## File substitutions. ##
1996 ## ------------------- ##
1997 _ASBOX
1998 echo
1999 for ac_var in $ac_subst_files
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 $as_echo "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008 fi
2009
2010 if test -s confdefs.h; then
2011 cat <<\_ASBOX
2012 ## ----------- ##
2013 ## confdefs.h. ##
2014 ## ----------- ##
2015 _ASBOX
2016 echo
2017 cat confdefs.h
2018 echo
2019 fi
2020 test "$ac_signal" != 0 &&
2021 $as_echo "$as_me: caught signal $ac_signal"
2022 $as_echo "$as_me: exit $exit_status"
2023 } >&5
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026 exit $exit_status
2027 ' 0
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2032
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2035
2036 $as_echo "/* confdefs.h */" > confdefs.h
2037
2038 # Predefined preprocessor variables.
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_URL "$PACKAGE_URL"
2062 _ACEOF
2063
2064
2065 # Let the site file select an alternate cache file if it wants to.
2066 # Prefer an explicitly selected file to automatically selected ones.
2067 ac_site_file1=NONE
2068 ac_site_file2=NONE
2069 if test -n "$CONFIG_SITE"; then
2070 ac_site_file1=$CONFIG_SITE
2071 elif test "x$prefix" != xNONE; then
2072 ac_site_file1=$prefix/share/config.site
2073 ac_site_file2=$prefix/etc/config.site
2074 else
2075 ac_site_file1=$ac_default_prefix/share/config.site
2076 ac_site_file2=$ac_default_prefix/etc/config.site
2077 fi
2078 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2079 do
2080 test "x$ac_site_file" = xNONE && continue
2081 if test -r "$ac_site_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2083 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2084 sed 's/^/| /' "$ac_site_file" >&5
2085 . "$ac_site_file"
2086 fi
2087 done
2088
2089 if test -r "$cache_file"; then
2090 # Some versions of bash will fail to source /dev/null (special
2091 # files actually), so we avoid doing that.
2092 if test -f "$cache_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094 $as_echo "$as_me: loading cache $cache_file" >&6;}
2095 case $cache_file in
2096 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097 *) . "./$cache_file";;
2098 esac
2099 fi
2100 else
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102 $as_echo "$as_me: creating cache $cache_file" >&6;}
2103 >$cache_file
2104 fi
2105
2106 # Check that the precious variables saved in the cache have kept the same
2107 # value.
2108 ac_cache_corrupted=false
2109 for ac_var in $ac_precious_vars; do
2110 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111 eval ac_new_set=\$ac_env_${ac_var}_set
2112 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113 eval ac_new_val=\$ac_env_${ac_var}_value
2114 case $ac_old_set,$ac_new_set in
2115 set,)
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2119 ,set)
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2123 ,);;
2124 *)
2125 if test "x$ac_old_val" != "x$ac_new_val"; then
2126 # differences in whitespace do not lead to failure.
2127 ac_old_val_w=`echo x $ac_old_val`
2128 ac_new_val_w=`echo x $ac_new_val`
2129 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132 ac_cache_corrupted=:
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136 eval $ac_var=\$ac_old_val
2137 fi
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2139 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2141 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2142 fi;;
2143 esac
2144 # Pass precious variables to config.status.
2145 if test "$ac_new_set" = set; then
2146 case $ac_new_val in
2147 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 *) ac_arg=$ac_var=$ac_new_val ;;
2149 esac
2150 case " $ac_configure_args " in
2151 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2152 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153 esac
2154 fi
2155 done
2156 if $ac_cache_corrupted; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162 fi
2163 ## -------------------- ##
2164 ## Main body of script. ##
2165 ## -------------------- ##
2166
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
2173
2174
2175
2176
2177
2178 ac_aux_dir=
2179 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2180 for ac_t in install-sh install.sh shtool; do
2181 if test -f "$ac_dir/$ac_t"; then
2182 ac_aux_dir=$ac_dir
2183 ac_install_sh="$ac_aux_dir/$ac_t -c"
2184 break 2
2185 fi
2186 done
2187 done
2188 if test -z "$ac_aux_dir"; then
2189 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2190 fi
2191
2192 # These three variables are undocumented and unsupported,
2193 # and are intended to be withdrawn in a future Autoconf release.
2194 # They can cause serious problems if a builder's source tree is in a directory
2195 # whose full name contains unusual characters.
2196 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2197 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2198 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2199
2200
2201 # Make sure we can run config.sub.
2202 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2203 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2204
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2206 $as_echo_n "checking build system type... " >&6; }
2207 if test "${ac_cv_build+set}" = set; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 ac_build_alias=$build_alias
2211 test "x$ac_build_alias" = x &&
2212 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2213 test "x$ac_build_alias" = x &&
2214 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2215 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2216 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2217
2218 fi
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2220 $as_echo "$ac_cv_build" >&6; }
2221 case $ac_cv_build in
2222 *-*-*) ;;
2223 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2224 esac
2225 build=$ac_cv_build
2226 ac_save_IFS=$IFS; IFS='-'
2227 set x $ac_cv_build
2228 shift
2229 build_cpu=$1
2230 build_vendor=$2
2231 shift; shift
2232 # Remember, the first character of IFS is used to create $*,
2233 # except with old shells:
2234 build_os=$*
2235 IFS=$ac_save_IFS
2236 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2237
2238
2239 case ${build_alias} in
2240 "") build_noncanonical=${build} ;;
2241 *) build_noncanonical=${build_alias} ;;
2242 esac
2243
2244 case ${host_alias} in
2245 "") host_noncanonical=${build_noncanonical} ;;
2246 *) host_noncanonical=${host_alias} ;;
2247 esac
2248
2249 case ${target_alias} in
2250 "") target_noncanonical=${host_noncanonical} ;;
2251 *) target_noncanonical=${target_alias} ;;
2252 esac
2253
2254
2255 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2256 # have matching libraries, they should use host libraries: Makefile.tpl
2257 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2258 # However, they still use the build modules, because the corresponding
2259 # host modules (e.g. bison) are only built for the host when bootstrap
2260 # finishes. So:
2261 # - build_subdir is where we find build modules, and never changes.
2262 # - build_libsubdir is where we find build libraries, and can be overridden.
2263
2264 # Prefix 'build-' so this never conflicts with target_subdir.
2265 build_subdir="build-${build_noncanonical}"
2266
2267 # Check whether --with-build-libsubdir was given.
2268 if test "${with_build_libsubdir+set}" = set; then :
2269 withval=$with_build_libsubdir; build_libsubdir="$withval"
2270 else
2271 build_libsubdir="$build_subdir"
2272 fi
2273
2274 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2275 if ( test $srcdir = . && test -d gcc ) \
2276 || test -d $srcdir/../host-${host_noncanonical}; then
2277 host_subdir="host-${host_noncanonical}"
2278 else
2279 host_subdir=.
2280 fi
2281 # No prefix.
2282 target_subdir=${target_noncanonical}
2283
2284
2285 # We need the following definitions because AC_PROG_LIBTOOL relies on them
2286 PACKAGE=libobjc
2287 # Version is pulled out to make it a bit easier to change using sed.
2288 VERSION=4:0:0
2289
2290
2291 # This works around the fact that libtool configuration may change LD
2292 # for this particular configuration, but some shells, instead of
2293 # keeping the changes in LD private, export them just because LD is
2294 # exported.
2295 ORIGINAL_LD_FOR_MULTILIBS=$LD
2296
2297 # -------
2298 # Options
2299 # -------
2300
2301 # We use these options to decide which functions to include.
2302
2303 # Check whether --with-target-subdir was given.
2304 if test "${with_target_subdir+set}" = set; then :
2305 withval=$with_target_subdir;
2306 fi
2307
2308
2309 # Check whether --with-cross-host was given.
2310 if test "${with_cross_host+set}" = set; then :
2311 withval=$with_cross_host;
2312 fi
2313
2314
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2316 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2317 # Check whether --enable-version-specific-runtime-libs was given.
2318 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2319 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2320 yes) version_specific_libs=yes ;;
2321 no) version_specific_libs=no ;;
2322 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2323 esac
2324 else
2325 version_specific_libs=no
2326 fi
2327
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2329 $as_echo "$version_specific_libs" >&6; }
2330
2331 # -----------
2332 # Directories
2333 # -----------
2334
2335 # Find the rest of the source tree framework.
2336 # Default to --enable-multilib
2337 # Check whether --enable-multilib was given.
2338 if test "${enable_multilib+set}" = set; then :
2339 enableval=$enable_multilib; case "$enableval" in
2340 yes) multilib=yes ;;
2341 no) multilib=no ;;
2342 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2343 esac
2344 else
2345 multilib=yes
2346 fi
2347
2348
2349 # We may get other options which we leave undocumented:
2350 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2351 # See config-ml.in if you want the gory details.
2352
2353 if test "$srcdir" = "."; then
2354 if test "$with_target_subdir" != "."; then
2355 multi_basedir="$srcdir/$with_multisrctop../.."
2356 else
2357 multi_basedir="$srcdir/$with_multisrctop.."
2358 fi
2359 else
2360 multi_basedir="$srcdir/.."
2361 fi
2362
2363
2364 # Even if the default multilib is not a cross compilation,
2365 # it may be that some of the other multilibs are.
2366 if test $cross_compiling = no && test $multilib = yes \
2367 && test "x${with_multisubdir}" != x ; then
2368 cross_compiling=maybe
2369 fi
2370
2371 ac_config_commands="$ac_config_commands default-1"
2372
2373
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2375 $as_echo_n "checking host system type... " >&6; }
2376 if test "${ac_cv_host+set}" = set; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test "x$host_alias" = x; then
2380 ac_cv_host=$ac_cv_build
2381 else
2382 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2383 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2384 fi
2385
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2388 $as_echo "$ac_cv_host" >&6; }
2389 case $ac_cv_host in
2390 *-*-*) ;;
2391 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2392 esac
2393 host=$ac_cv_host
2394 ac_save_IFS=$IFS; IFS='-'
2395 set x $ac_cv_host
2396 shift
2397 host_cpu=$1
2398 host_vendor=$2
2399 shift; shift
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2402 host_os=$*
2403 IFS=$ac_save_IFS
2404 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2405
2406
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2408 $as_echo_n "checking target system type... " >&6; }
2409 if test "${ac_cv_target+set}" = set; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test "x$target_alias" = x; then
2413 ac_cv_target=$ac_cv_host
2414 else
2415 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2416 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2417 fi
2418
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2421 $as_echo "$ac_cv_target" >&6; }
2422 case $ac_cv_target in
2423 *-*-*) ;;
2424 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2425 esac
2426 target=$ac_cv_target
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_target
2429 shift
2430 target_cpu=$1
2431 target_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 target_os=$*
2436 IFS=$ac_save_IFS
2437 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2438
2439
2440 # The aliases save the names the user supplied, while $host etc.
2441 # will get canonicalized.
2442 test -n "$target_alias" &&
2443 test "$program_prefix$program_suffix$program_transform_name" = \
2444 NONENONEs,x,x, &&
2445 program_prefix=${target_alias}-
2446
2447
2448
2449
2450 # Export source directory.
2451 # These need to be absolute paths, yet at the same time need to
2452 # canonicalize only relative paths, because then amd will not unmount
2453 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2454 case $srcdir in
2455 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2456 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2457 esac
2458
2459
2460 # Calculate toolexeclibdir
2461 # Also toolexecdir, though it's only used in toolexeclibdir
2462 case ${version_specific_libs} in
2463 yes)
2464 # Need the gcc compiler version to know where to install libraries
2465 # and header files if --enable-version-specific-runtime-libs option
2466 # is selected.
2467 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2468 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2469 ;;
2470 no)
2471 if test -n "$with_cross_host" &&
2472 test x"$with_cross_host" != x"no"; then
2473 # Install a library built with a cross compiler in tooldir, not libdir.
2474 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2475 toolexeclibdir='$(toolexecdir)/lib'
2476 else
2477 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2478 toolexeclibdir='$(libdir)'
2479 fi
2480 multi_os_directory=`$CC -print-multi-os-directory`
2481 case $multi_os_directory in
2482 .) ;; # Avoid trailing /.
2483 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2484 esac
2485 ;;
2486 esac
2487
2488
2489
2490 # Figure out if we want to name the include directory and the
2491 # library name changes differently.
2492 includedirname=include
2493 libsuffix=
2494 case "${host}" in
2495 *-darwin*)
2496 # Darwin is the only target so far that needs a different include directory.
2497 includedirname=include-gnu-runtime
2498 libsuffix=-gnu
2499 ;;
2500 esac
2501
2502
2503
2504 ac_config_headers="$ac_config_headers config.h"
2505
2506
2507 # --------
2508 # Programs
2509 # --------
2510
2511
2512
2513 # We must force CC to /not/ be a precious variable; otherwise
2514 # the wrong, non-multilib-adjusted value will be used in multilibs.
2515 # As a side effect, we have to subst CFLAGS ourselves.
2516
2517
2518 ac_ext=c
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545 done
2546 done
2547 IFS=$as_save_IFS
2548
2549 fi
2550 fi
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2554 $as_echo "$CC" >&6; }
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557 $as_echo "no" >&6; }
2558 fi
2559
2560
2561 fi
2562 if test -z "$ac_cv_prog_CC"; then
2563 ac_ct_CC=$CC
2564 # Extract the first word of "gcc", so it can be a program name with args.
2565 set dummy gcc; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_ac_ct_CC="gcc"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592 if test -n "$ac_ct_CC"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2594 $as_echo "$ac_ct_CC" >&6; }
2595 else
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600 if test "x$ac_ct_CC" = x; then
2601 CC=""
2602 else
2603 case $cross_compiling:$ac_tool_warned in
2604 yes:)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607 ac_tool_warned=yes ;;
2608 esac
2609 CC=$ac_ct_CC
2610 fi
2611 else
2612 CC="$ac_cv_prog_CC"
2613 fi
2614
2615 if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2618 set dummy ${ac_tool_prefix}cc; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_CC+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_CC="${ac_tool_prefix}cc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 CC=$ac_cv_prog_CC
2645 if test -n "$CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2647 $as_echo "$CC" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654 fi
2655 fi
2656 if test -z "$CC"; then
2657 # Extract the first word of "cc", so it can be a program name with args.
2658 set dummy cc; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 ac_prog_rejected=no
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2676 ac_prog_rejected=yes
2677 continue
2678 fi
2679 ac_cv_prog_CC="cc"
2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 if test $ac_prog_rejected = yes; then
2688 # We found a bogon in the path, so make sure we never use it.
2689 set dummy $ac_cv_prog_CC
2690 shift
2691 if test $# != 0; then
2692 # We chose a different compiler from the bogus one.
2693 # However, it has the same basename, so the bogon will be chosen
2694 # first if we set CC to just the basename; use the full file name.
2695 shift
2696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2697 fi
2698 fi
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 $as_echo "$CC" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 fi
2712 if test -z "$CC"; then
2713 if test -n "$ac_tool_prefix"; then
2714 for ac_prog in cl.exe
2715 do
2716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 test -n "$CC" && break
2754 done
2755 fi
2756 if test -z "$CC"; then
2757 ac_ct_CC=$CC
2758 for ac_prog in cl.exe
2759 do
2760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2761 set dummy $ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC="$ac_prog"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2790 $as_echo "$ac_ct_CC" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797 test -n "$ac_ct_CC" && break
2798 done
2799
2800 if test "x$ac_ct_CC" = x; then
2801 CC=""
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809 CC=$ac_ct_CC
2810 fi
2811 fi
2812
2813 fi
2814
2815
2816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error "no acceptable C compiler found in \$PATH
2819 See \`config.log' for more details." "$LINENO" 5; }
2820
2821 # Provide some information about the compiler.
2822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2823 set X $ac_compile
2824 ac_compiler=$2
2825 for ac_option in --version -v -V -qversion; do
2826 { { ac_try="$ac_compiler $ac_option >&5"
2827 case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832 $as_echo "$ac_try_echo"; } >&5
2833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2834 ac_status=$?
2835 if test -s conftest.err; then
2836 sed '10a\
2837 ... rest of stderr output deleted ...
2838 10q' conftest.err >conftest.er1
2839 cat conftest.er1 >&5
2840 rm -f conftest.er1 conftest.err
2841 fi
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }
2844 done
2845
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2848
2849 int
2850 main ()
2851 {
2852
2853 ;
2854 return 0;
2855 }
2856 _ACEOF
2857 # FIXME: Cleanup?
2858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2859 (eval $ac_link) 2>&5
2860 ac_status=$?
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; }; then :
2863 gcc_no_link=no
2864 else
2865 gcc_no_link=yes
2866 fi
2867 if test x$gcc_no_link = xyes; then
2868 # Setting cross_compile will disable run tests; it will
2869 # also disable AC_CHECK_FILE but that's generally
2870 # correct if we can't link.
2871 cross_compiling=yes
2872 EXEEXT=
2873 else
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2876
2877 int
2878 main ()
2879 {
2880
2881 ;
2882 return 0;
2883 }
2884 _ACEOF
2885 ac_clean_files_save=$ac_clean_files
2886 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2887 # Try to create an executable without -o first, disregard a.out.
2888 # It will help us diagnose broken compilers, and finding out an intuition
2889 # of exeext.
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2891 $as_echo_n "checking for C compiler default output file name... " >&6; }
2892 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2893
2894 # The possible output files:
2895 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2896
2897 ac_rmfiles=
2898 for ac_file in $ac_files
2899 do
2900 case $ac_file in
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2902 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2903 esac
2904 done
2905 rm -f $ac_rmfiles
2906
2907 if { { ac_try="$ac_link_default"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913 $as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_link_default") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; then :
2918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2919 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2920 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2921 # so that the user can short-circuit this test for compilers unknown to
2922 # Autoconf.
2923 for ac_file in $ac_files ''
2924 do
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2928 ;;
2929 [ab].out )
2930 # We found the default executable, but exeext='' is most
2931 # certainly right.
2932 break;;
2933 *.* )
2934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2935 then :; else
2936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937 fi
2938 # We set ac_cv_exeext here because the later test for it is not
2939 # safe: cross compilers may not add the suffix if given an `-o'
2940 # argument, so we may need to know it at that point already.
2941 # Even if this section looks crufty: it has the advantage of
2942 # actually working.
2943 break;;
2944 * )
2945 break;;
2946 esac
2947 done
2948 test "$ac_cv_exeext" = no && ac_cv_exeext=
2949
2950 else
2951 ac_file=''
2952 fi
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2954 $as_echo "$ac_file" >&6; }
2955 if test -z "$ac_file"; then :
2956 $as_echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 { as_fn_set_status 77
2962 as_fn_error "C compiler cannot create executables
2963 See \`config.log' for more details." "$LINENO" 5; }; }
2964 fi
2965 ac_exeext=$ac_cv_exeext
2966
2967 # Check that the compiler produces executables we can run. If not, either
2968 # the compiler is broken, or we cross compile.
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2970 $as_echo_n "checking whether the C compiler works... " >&6; }
2971 # If not cross compiling, check that we can run a simple program.
2972 if test "$cross_compiling" != yes; then
2973 if { ac_try='./$ac_file'
2974 { { case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977 esac
2978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979 $as_echo "$ac_try_echo"; } >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }; }; then
2984 cross_compiling=no
2985 else
2986 if test "$cross_compiling" = maybe; then
2987 cross_compiling=yes
2988 else
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error "cannot run C compiled programs.
2992 If you meant to cross compile, use \`--host'.
2993 See \`config.log' for more details." "$LINENO" 5; }
2994 fi
2995 fi
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
2999
3000 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3001 ac_clean_files=$ac_clean_files_save
3002 # Check that the compiler produces executables we can run. If not, either
3003 # the compiler is broken, or we cross compile.
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3005 $as_echo_n "checking whether we are cross compiling... " >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3007 $as_echo "$cross_compiling" >&6; }
3008
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3010 $as_echo_n "checking for suffix of executables... " >&6; }
3011 if { { ac_try="$ac_link"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017 $as_echo "$ac_try_echo"; } >&5
3018 (eval "$ac_link") 2>&5
3019 ac_status=$?
3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021 test $ac_status = 0; }; then :
3022 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3023 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3024 # work properly (i.e., refer to `conftest.exe'), while it won't with
3025 # `rm'.
3026 for ac_file in conftest.exe conftest conftest.*; do
3027 test -f "$ac_file" || continue
3028 case $ac_file in
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 break;;
3032 * ) break;;
3033 esac
3034 done
3035 else
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error "cannot compute suffix of executables: cannot compile and link
3039 See \`config.log' for more details." "$LINENO" 5; }
3040 fi
3041 rm -f conftest$ac_cv_exeext
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3043 $as_echo "$ac_cv_exeext" >&6; }
3044
3045 rm -f conftest.$ac_ext
3046 EXEEXT=$ac_cv_exeext
3047 ac_exeext=$EXEEXT
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3050 $as_echo_n "checking for suffix of object files... " >&6; }
3051 if test "${ac_cv_objext+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3056
3057 int
3058 main ()
3059 {
3060
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 rm -f conftest.o conftest.obj
3066 if { { ac_try="$ac_compile"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compile") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }; then :
3077 for ac_file in conftest.o conftest.obj conftest.*; do
3078 test -f "$ac_file" || continue;
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082 break;;
3083 esac
3084 done
3085 else
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error "cannot compute suffix of object files: cannot compile
3092 See \`config.log' for more details." "$LINENO" 5; }
3093 fi
3094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3097 $as_echo "$ac_cv_objext" >&6; }
3098 OBJEXT=$ac_cv_objext
3099 ac_objext=$OBJEXT
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3102 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107
3108 int
3109 main ()
3110 {
3111 #ifndef __GNUC__
3112 choke me
3113 #endif
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 if ac_fn_c_try_compile "$LINENO"; then :
3120 ac_compiler_gnu=yes
3121 else
3122 ac_compiler_gnu=no
3123 fi
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3126
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3130 if test $ac_compiler_gnu = yes; then
3131 GCC=yes
3132 else
3133 GCC=
3134 fi
3135 ac_test_CFLAGS=${CFLAGS+set}
3136 ac_save_CFLAGS=$CFLAGS
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3139 if test "${ac_cv_prog_cc_g+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 ac_save_c_werror_flag=$ac_c_werror_flag
3143 ac_c_werror_flag=yes
3144 ac_cv_prog_cc_g=no
3145 CFLAGS="-g"
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3148
3149 int
3150 main ()
3151 {
3152
3153 ;
3154 return 0;
3155 }
3156 _ACEOF
3157 if ac_fn_c_try_compile "$LINENO"; then :
3158 ac_cv_prog_cc_g=yes
3159 else
3160 CFLAGS=""
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3163
3164 int
3165 main ()
3166 {
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 if ac_fn_c_try_compile "$LINENO"; then :
3173
3174 else
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3176 CFLAGS="-g"
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3179
3180 int
3181 main ()
3182 {
3183
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 if ac_fn_c_try_compile "$LINENO"; then :
3189 ac_cv_prog_cc_g=yes
3190 fi
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 fi
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3197 fi
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3199 $as_echo "$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208 else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214 fi
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 ac_cv_prog_cc_c89=no
3221 ac_save_CC=$CC
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224 #include <stdarg.h>
3225 #include <stdio.h>
3226 #include <sys/types.h>
3227 #include <sys/stat.h>
3228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3229 struct buf { int x; };
3230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3231 static char *e (p, i)
3232 char **p;
3233 int i;
3234 {
3235 return p[i];
3236 }
3237 static char *f (char * (*g) (char **, int), char **p, ...)
3238 {
3239 char *s;
3240 va_list v;
3241 va_start (v,p);
3242 s = g (p, va_arg (v,int));
3243 va_end (v);
3244 return s;
3245 }
3246
3247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3248 function prototypes and stuff, but not '\xHH' hex character constants.
3249 These don't provoke an error unfortunately, instead are silently treated
3250 as 'x'. The following induces an error, until -std is added to get
3251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3252 array size at least. It's necessary to write '\x00'==0 to get something
3253 that's true only with -std. */
3254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255
3256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3257 inside strings and character constants. */
3258 #define FOO(x) 'x'
3259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260
3261 int test (int i, double x);
3262 struct s1 {int (*f) (int a);};
3263 struct s2 {int (*f) (double a);};
3264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 int argc;
3266 char **argv;
3267 int
3268 main ()
3269 {
3270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277 do
3278 CC="$ac_save_CC $ac_arg"
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_c89=$ac_arg
3281 fi
3282 rm -f core conftest.err conftest.$ac_objext
3283 test "x$ac_cv_prog_cc_c89" != "xno" && break
3284 done
3285 rm -f conftest.$ac_ext
3286 CC=$ac_save_CC
3287
3288 fi
3289 # AC_CACHE_VAL
3290 case "x$ac_cv_prog_cc_c89" in
3291 x)
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3293 $as_echo "none needed" >&6; } ;;
3294 xno)
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3296 $as_echo "unsupported" >&6; } ;;
3297 *)
3298 CC="$CC $ac_cv_prog_cc_c89"
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3300 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3301 esac
3302 if test "x$ac_cv_prog_cc_c89" != xno; then :
3303
3304 fi
3305
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312
3313
3314 # extra LD Flags which are required for targets
3315
3316
3317
3318 case $host in
3319 *-cygwin* | *-mingw*)
3320 # 'host' will be top-level target in the case of a target lib,
3321 # we must compare to with_cross_host to decide if this is a native
3322 # or cross-compiler and select where to install dlls appropriately.
3323 if test -n "$with_cross_host" &&
3324 test x"$with_cross_host" != x"no"; then
3325 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
3326 else
3327 lt_host_flags='-no-undefined -bindir "$(bindir)"';
3328 fi
3329 ;;
3330 *)
3331 lt_host_flags=
3332 ;;
3333 esac
3334
3335
3336
3337 case "${host}" in
3338 *-darwin*)
3339 # Darwin needs -single_module when linking libobjc
3340 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
3341 ;;
3342 *-cygwin*|*-mingw*)
3343 # Tell libtool to build DLLs on Windows
3344 extra_ldflags_libobjc='$(lt_host_flags)'
3345 ;;
3346 esac
3347
3348
3349
3350
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}as; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_AS+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$AS"; then
3360 ac_cv_prog_AS="$AS" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 ac_cv_prog_AS="${ac_tool_prefix}as"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 AS=$ac_cv_prog_AS
3380 if test -n "$AS"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3382 $as_echo "$AS" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 fi
3390 if test -z "$ac_cv_prog_AS"; then
3391 ac_ct_AS=$AS
3392 # Extract the first word of "as", so it can be a program name with args.
3393 set dummy as; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398 else
3399 if test -n "$ac_ct_AS"; then
3400 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_ac_ct_AS="as"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3420 if test -n "$ac_ct_AS"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3422 $as_echo "$ac_ct_AS" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428 if test "x$ac_ct_AS" = x; then
3429 AS=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 AS=$ac_ct_AS
3438 fi
3439 else
3440 AS="$ac_cv_prog_AS"
3441 fi
3442
3443 if test -n "$ac_tool_prefix"; then
3444 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3445 set dummy ${ac_tool_prefix}ar; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_AR+set}" = set; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$AR"; then
3452 ac_cv_prog_AR="$AR" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3456 do
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_AR="${ac_tool_prefix}ar"
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465 done
3466 done
3467 IFS=$as_save_IFS
3468
3469 fi
3470 fi
3471 AR=$ac_cv_prog_AR
3472 if test -n "$AR"; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3474 $as_echo "$AR" >&6; }
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 fi
3479
3480
3481 fi
3482 if test -z "$ac_cv_prog_AR"; then
3483 ac_ct_AR=$AR
3484 # Extract the first word of "ar", so it can be a program name with args.
3485 set dummy ar; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3490 else
3491 if test -n "$ac_ct_AR"; then
3492 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497 IFS=$as_save_IFS
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_AR="ar"
3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3512 if test -n "$ac_ct_AR"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3514 $as_echo "$ac_ct_AR" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 fi
3519
3520 if test "x$ac_ct_AR" = x; then
3521 AR=""
3522 else
3523 case $cross_compiling:$ac_tool_warned in
3524 yes:)
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned=yes ;;
3528 esac
3529 AR=$ac_ct_AR
3530 fi
3531 else
3532 AR="$ac_cv_prog_AR"
3533 fi
3534
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$RANLIB"; then
3544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 RANLIB=$ac_cv_prog_RANLIB
3564 if test -n "$RANLIB"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3566 $as_echo "$RANLIB" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 fi
3574 if test -z "$ac_cv_prog_RANLIB"; then
3575 ac_ct_RANLIB=$RANLIB
3576 # Extract the first word of "ranlib", so it can be a program name with args.
3577 set dummy ranlib; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$ac_ct_RANLIB"; then
3584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_ac_ct_RANLIB="ranlib"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3604 if test -n "$ac_ct_RANLIB"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3606 $as_echo "$ac_ct_RANLIB" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612 if test "x$ac_ct_RANLIB" = x; then
3613 RANLIB=":"
3614 else
3615 case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621 RANLIB=$ac_ct_RANLIB
3622 fi
3623 else
3624 RANLIB="$ac_cv_prog_RANLIB"
3625 fi
3626
3627 # Find a good install program. We prefer a C program (faster),
3628 # so one script is as good as another. But avoid the broken or
3629 # incompatible versions:
3630 # SysV /etc/install, /usr/sbin/install
3631 # SunOS /usr/etc/install
3632 # IRIX /sbin/install
3633 # AIX /bin/install
3634 # AmigaOS /C/install, which installs bootblocks on floppy discs
3635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3638 # OS/2's system install, which has a completely different semantic
3639 # ./install, which can be erroneously created by make from ./install.sh.
3640 # Reject install programs that cannot install multiple files.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3642 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3643 if test -z "$INSTALL"; then
3644 if test "${ac_cv_path_install+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 # Account for people who put trailing slashes in PATH elements.
3653 case $as_dir/ in #((
3654 ./ | .// | /[cC]/* | \
3655 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3656 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3657 /usr/ucb/* ) ;;
3658 *)
3659 # OSF1 and SCO ODT 3.0 have their own names for install.
3660 # Don't use installbsd from OSF since it installs stuff as root
3661 # by default.
3662 for ac_prog in ginstall scoinst install; do
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3665 if test $ac_prog = install &&
3666 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # AIX install. It has an incompatible calling convention.
3668 :
3669 elif test $ac_prog = install &&
3670 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3671 # program-specific install script used by HP pwplus--don't use.
3672 :
3673 else
3674 rm -rf conftest.one conftest.two conftest.dir
3675 echo one > conftest.one
3676 echo two > conftest.two
3677 mkdir conftest.dir
3678 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3679 test -s conftest.one && test -s conftest.two &&
3680 test -s conftest.dir/conftest.one &&
3681 test -s conftest.dir/conftest.two
3682 then
3683 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3684 break 3
3685 fi
3686 fi
3687 fi
3688 done
3689 done
3690 ;;
3691 esac
3692
3693 done
3694 IFS=$as_save_IFS
3695
3696 rm -rf conftest.one conftest.two conftest.dir
3697
3698 fi
3699 if test "${ac_cv_path_install+set}" = set; then
3700 INSTALL=$ac_cv_path_install
3701 else
3702 # As a last resort, use the slow shell script. Don't cache a
3703 # value for INSTALL within a source directory, because that will
3704 # break other packages using the cache if that directory is
3705 # removed, or if the value is a relative name.
3706 INSTALL=$ac_install_sh
3707 fi
3708 fi
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3710 $as_echo "$INSTALL" >&6; }
3711
3712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3713 # It thinks the first close brace ends the variable substitution.
3714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3715
3716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3717
3718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3719
3720
3721
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3723 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3724 # Check whether --enable-maintainer-mode was given.
3725 if test "${enable_maintainer_mode+set}" = set; then :
3726 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3727 else
3728 USE_MAINTAINER_MODE=no
3729 fi
3730
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3732 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3733 if test $USE_MAINTAINER_MODE = yes; then
3734 MAINTAINER_MODE_TRUE=
3735 MAINTAINER_MODE_FALSE='#'
3736 else
3737 MAINTAINER_MODE_TRUE='#'
3738 MAINTAINER_MODE_FALSE=
3739 fi
3740
3741 MAINT=$MAINTAINER_MODE_TRUE
3742
3743
3744
3745 # Enable Win32 DLL on MS Windows - FIXME
3746 enable_win32_dll=yes
3747
3748 case $host in
3749 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3750 if test -n "$ac_tool_prefix"; then
3751 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3752 set dummy ${ac_tool_prefix}as; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_AS+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$AS"; then
3759 ac_cv_prog_AS="$AS" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_AS="${ac_tool_prefix}as"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3771 fi
3772 done
3773 done
3774 IFS=$as_save_IFS
3775
3776 fi
3777 fi
3778 AS=$ac_cv_prog_AS
3779 if test -n "$AS"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3781 $as_echo "$AS" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3785 fi
3786
3787
3788 fi
3789 if test -z "$ac_cv_prog_AS"; then
3790 ac_ct_AS=$AS
3791 # Extract the first word of "as", so it can be a program name with args.
3792 set dummy as; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 if test -n "$ac_ct_AS"; then
3799 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3800 else
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_prog_ac_ct_AS="as"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 break 2
3811 fi
3812 done
3813 done
3814 IFS=$as_save_IFS
3815
3816 fi
3817 fi
3818 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3819 if test -n "$ac_ct_AS"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3821 $as_echo "$ac_ct_AS" >&6; }
3822 else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 fi
3826
3827 if test "x$ac_ct_AS" = x; then
3828 AS="false"
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 AS=$ac_ct_AS
3837 fi
3838 else
3839 AS="$ac_cv_prog_AS"
3840 fi
3841
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -n "$DLLTOOL"; then
3851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864 done
3865 done
3866 IFS=$as_save_IFS
3867
3868 fi
3869 fi
3870 DLLTOOL=$ac_cv_prog_DLLTOOL
3871 if test -n "$DLLTOOL"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3873 $as_echo "$DLLTOOL" >&6; }
3874 else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 fi
3878
3879
3880 fi
3881 if test -z "$ac_cv_prog_DLLTOOL"; then
3882 ac_ct_DLLTOOL=$DLLTOOL
3883 # Extract the first word of "dlltool", so it can be a program name with args.
3884 set dummy dlltool; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 if test -n "$ac_ct_DLLTOOL"; then
3891 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3903 fi
3904 done
3905 done
3906 IFS=$as_save_IFS
3907
3908 fi
3909 fi
3910 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3911 if test -n "$ac_ct_DLLTOOL"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3913 $as_echo "$ac_ct_DLLTOOL" >&6; }
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 fi
3918
3919 if test "x$ac_ct_DLLTOOL" = x; then
3920 DLLTOOL="false"
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned=yes ;;
3927 esac
3928 DLLTOOL=$ac_ct_DLLTOOL
3929 fi
3930 else
3931 DLLTOOL="$ac_cv_prog_DLLTOOL"
3932 fi
3933
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3936 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$OBJDUMP"; then
3943 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3955 fi
3956 done
3957 done
3958 IFS=$as_save_IFS
3959
3960 fi
3961 fi
3962 OBJDUMP=$ac_cv_prog_OBJDUMP
3963 if test -n "$OBJDUMP"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3965 $as_echo "$OBJDUMP" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969 fi
3970
3971
3972 fi
3973 if test -z "$ac_cv_prog_OBJDUMP"; then
3974 ac_ct_OBJDUMP=$OBJDUMP
3975 # Extract the first word of "objdump", so it can be a program name with args.
3976 set dummy objdump; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -n "$ac_ct_OBJDUMP"; then
3983 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_ac_ct_OBJDUMP="objdump"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996 done
3997 done
3998 IFS=$as_save_IFS
3999
4000 fi
4001 fi
4002 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4003 if test -n "$ac_ct_OBJDUMP"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4005 $as_echo "$ac_ct_OBJDUMP" >&6; }
4006 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4009 fi
4010
4011 if test "x$ac_ct_OBJDUMP" = x; then
4012 OBJDUMP="false"
4013 else
4014 case $cross_compiling:$ac_tool_warned in
4015 yes:)
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4018 ac_tool_warned=yes ;;
4019 esac
4020 OBJDUMP=$ac_ct_OBJDUMP
4021 fi
4022 else
4023 OBJDUMP="$ac_cv_prog_OBJDUMP"
4024 fi
4025
4026 ;;
4027 esac
4028
4029 test -z "$AS" && AS=as
4030
4031
4032
4033
4034
4035 test -z "$DLLTOOL" && DLLTOOL=dlltool
4036
4037
4038
4039
4040
4041 test -z "$OBJDUMP" && OBJDUMP=objdump
4042
4043
4044
4045
4046
4047
4048
4049
4050 case `pwd` in
4051 *\ * | *\ *)
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4053 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4054 esac
4055
4056
4057
4058 macro_version='2.2.7a'
4059 macro_revision='1.3134'
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073 ltmain="$ac_aux_dir/ltmain.sh"
4074
4075 # Backslashify metacharacters that are still active within
4076 # double-quoted strings.
4077 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4078
4079 # Same as above, but do not quote variable references.
4080 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4081
4082 # Sed substitution to delay expansion of an escaped shell variable in a
4083 # double_quote_subst'ed string.
4084 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4085
4086 # Sed substitution to delay expansion of an escaped single quote.
4087 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4088
4089 # Sed substitution to avoid accidental globbing in evaled expressions
4090 no_glob_subst='s/\*/\\\*/g'
4091
4092 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4093 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4094 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4095
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4097 $as_echo_n "checking how to print strings... " >&6; }
4098 # Test print first, because it will be a builtin if present.
4099 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4100 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4101 ECHO='print -r --'
4102 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4103 ECHO='printf %s\n'
4104 else
4105 # Use this function as a fallback that always works.
4106 func_fallback_echo ()
4107 {
4108 eval 'cat <<_LTECHO_EOF
4109 $1
4110 _LTECHO_EOF'
4111 }
4112 ECHO='func_fallback_echo'
4113 fi
4114
4115 # func_echo_all arg...
4116 # Invoke $ECHO with all args, space-separated.
4117 func_echo_all ()
4118 {
4119 $ECHO ""
4120 }
4121
4122 case "$ECHO" in
4123 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4124 $as_echo "printf" >&6; } ;;
4125 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4126 $as_echo "print -r" >&6; } ;;
4127 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4128 $as_echo "cat" >&6; } ;;
4129 esac
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4145 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4146 if test "${ac_cv_path_SED+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4150 for ac_i in 1 2 3 4 5 6 7; do
4151 ac_script="$ac_script$as_nl$ac_script"
4152 done
4153 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4154 { ac_script=; unset ac_script;}
4155 if test -z "$SED"; then
4156 ac_path_SED_found=false
4157 # Loop through the user's path and test for each of PROGNAME-LIST
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_prog in sed gsed; do
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4166 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4167 # Check for GNU ac_path_SED and select it if it is found.
4168 # Check for GNU $ac_path_SED
4169 case `"$ac_path_SED" --version 2>&1` in
4170 *GNU*)
4171 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4172 *)
4173 ac_count=0
4174 $as_echo_n 0123456789 >"conftest.in"
4175 while :
4176 do
4177 cat "conftest.in" "conftest.in" >"conftest.tmp"
4178 mv "conftest.tmp" "conftest.in"
4179 cp "conftest.in" "conftest.nl"
4180 $as_echo '' >> "conftest.nl"
4181 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4183 as_fn_arith $ac_count + 1 && ac_count=$as_val
4184 if test $ac_count -gt ${ac_path_SED_max-0}; then
4185 # Best one so far, save it but keep looking for a better one
4186 ac_cv_path_SED="$ac_path_SED"
4187 ac_path_SED_max=$ac_count
4188 fi
4189 # 10*(2^10) chars as input seems more than enough
4190 test $ac_count -gt 10 && break
4191 done
4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4193 esac
4194
4195 $ac_path_SED_found && break 3
4196 done
4197 done
4198 done
4199 IFS=$as_save_IFS
4200 if test -z "$ac_cv_path_SED"; then
4201 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4202 fi
4203 else
4204 ac_cv_path_SED=$SED
4205 fi
4206
4207 fi
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4209 $as_echo "$ac_cv_path_SED" >&6; }
4210 SED="$ac_cv_path_SED"
4211 rm -f conftest.sed
4212
4213 test -z "$SED" && SED=sed
4214 Xsed="$SED -e 1s/^X//"
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4227 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4228 if test "${ac_cv_path_GREP+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -z "$GREP"; then
4232 ac_path_GREP_found=false
4233 # Loop through the user's path and test for each of PROGNAME-LIST
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4236 do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_prog in grep ggrep; do
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4242 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4243 # Check for GNU ac_path_GREP and select it if it is found.
4244 # Check for GNU $ac_path_GREP
4245 case `"$ac_path_GREP" --version 2>&1` in
4246 *GNU*)
4247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4248 *)
4249 ac_count=0
4250 $as_echo_n 0123456789 >"conftest.in"
4251 while :
4252 do
4253 cat "conftest.in" "conftest.in" >"conftest.tmp"
4254 mv "conftest.tmp" "conftest.in"
4255 cp "conftest.in" "conftest.nl"
4256 $as_echo 'GREP' >> "conftest.nl"
4257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4259 as_fn_arith $ac_count + 1 && ac_count=$as_val
4260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4261 # Best one so far, save it but keep looking for a better one
4262 ac_cv_path_GREP="$ac_path_GREP"
4263 ac_path_GREP_max=$ac_count
4264 fi
4265 # 10*(2^10) chars as input seems more than enough
4266 test $ac_count -gt 10 && break
4267 done
4268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4269 esac
4270
4271 $ac_path_GREP_found && break 3
4272 done
4273 done
4274 done
4275 IFS=$as_save_IFS
4276 if test -z "$ac_cv_path_GREP"; then
4277 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4278 fi
4279 else
4280 ac_cv_path_GREP=$GREP
4281 fi
4282
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4285 $as_echo "$ac_cv_path_GREP" >&6; }
4286 GREP="$ac_cv_path_GREP"
4287
4288
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4290 $as_echo_n "checking for egrep... " >&6; }
4291 if test "${ac_cv_path_EGREP+set}" = set; then :
4292 $as_echo_n "(cached) " >&6
4293 else
4294 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4295 then ac_cv_path_EGREP="$GREP -E"
4296 else
4297 if test -z "$EGREP"; then
4298 ac_path_EGREP_found=false
4299 # Loop through the user's path and test for each of PROGNAME-LIST
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4302 do
4303 IFS=$as_save_IFS
4304 test -z "$as_dir" && as_dir=.
4305 for ac_prog in egrep; do
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4308 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4309 # Check for GNU ac_path_EGREP and select it if it is found.
4310 # Check for GNU $ac_path_EGREP
4311 case `"$ac_path_EGREP" --version 2>&1` in
4312 *GNU*)
4313 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4314 *)
4315 ac_count=0
4316 $as_echo_n 0123456789 >"conftest.in"
4317 while :
4318 do
4319 cat "conftest.in" "conftest.in" >"conftest.tmp"
4320 mv "conftest.tmp" "conftest.in"
4321 cp "conftest.in" "conftest.nl"
4322 $as_echo 'EGREP' >> "conftest.nl"
4323 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4325 as_fn_arith $ac_count + 1 && ac_count=$as_val
4326 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4327 # Best one so far, save it but keep looking for a better one
4328 ac_cv_path_EGREP="$ac_path_EGREP"
4329 ac_path_EGREP_max=$ac_count
4330 fi
4331 # 10*(2^10) chars as input seems more than enough
4332 test $ac_count -gt 10 && break
4333 done
4334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4335 esac
4336
4337 $ac_path_EGREP_found && break 3
4338 done
4339 done
4340 done
4341 IFS=$as_save_IFS
4342 if test -z "$ac_cv_path_EGREP"; then
4343 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4344 fi
4345 else
4346 ac_cv_path_EGREP=$EGREP
4347 fi
4348
4349 fi
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4352 $as_echo "$ac_cv_path_EGREP" >&6; }
4353 EGREP="$ac_cv_path_EGREP"
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4357 $as_echo_n "checking for fgrep... " >&6; }
4358 if test "${ac_cv_path_FGREP+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4362 then ac_cv_path_FGREP="$GREP -F"
4363 else
4364 if test -z "$FGREP"; then
4365 ac_path_FGREP_found=false
4366 # Loop through the user's path and test for each of PROGNAME-LIST
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_prog in fgrep; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4375 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4376 # Check for GNU ac_path_FGREP and select it if it is found.
4377 # Check for GNU $ac_path_FGREP
4378 case `"$ac_path_FGREP" --version 2>&1` in
4379 *GNU*)
4380 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4381 *)
4382 ac_count=0
4383 $as_echo_n 0123456789 >"conftest.in"
4384 while :
4385 do
4386 cat "conftest.in" "conftest.in" >"conftest.tmp"
4387 mv "conftest.tmp" "conftest.in"
4388 cp "conftest.in" "conftest.nl"
4389 $as_echo 'FGREP' >> "conftest.nl"
4390 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4392 as_fn_arith $ac_count + 1 && ac_count=$as_val
4393 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4394 # Best one so far, save it but keep looking for a better one
4395 ac_cv_path_FGREP="$ac_path_FGREP"
4396 ac_path_FGREP_max=$ac_count
4397 fi
4398 # 10*(2^10) chars as input seems more than enough
4399 test $ac_count -gt 10 && break
4400 done
4401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402 esac
4403
4404 $ac_path_FGREP_found && break 3
4405 done
4406 done
4407 done
4408 IFS=$as_save_IFS
4409 if test -z "$ac_cv_path_FGREP"; then
4410 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4411 fi
4412 else
4413 ac_cv_path_FGREP=$FGREP
4414 fi
4415
4416 fi
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4419 $as_echo "$ac_cv_path_FGREP" >&6; }
4420 FGREP="$ac_cv_path_FGREP"
4421
4422
4423 test -z "$GREP" && GREP=grep
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443 # Check whether --with-gnu-ld was given.
4444 if test "${with_gnu_ld+set}" = set; then :
4445 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4446 else
4447 with_gnu_ld=no
4448 fi
4449
4450 ac_prog=ld
4451 if test "$GCC" = yes; then
4452 # Check if gcc -print-prog-name=ld gives a path.
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4454 $as_echo_n "checking for ld used by $CC... " >&6; }
4455 case $host in
4456 *-*-mingw*)
4457 # gcc leaves a trailing carriage return which upsets mingw
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4459 *)
4460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4461 esac
4462 case $ac_prog in
4463 # Accept absolute paths.
4464 [\\/]* | ?:[\\/]*)
4465 re_direlt='/[^/][^/]*/\.\./'
4466 # Canonicalize the pathname of ld
4467 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4468 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4469 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4470 done
4471 test -z "$LD" && LD="$ac_prog"
4472 ;;
4473 "")
4474 # If it fails, then pretend we aren't using GCC.
4475 ac_prog=ld
4476 ;;
4477 *)
4478 # If it is relative, then search for the first ld in PATH.
4479 with_gnu_ld=unknown
4480 ;;
4481 esac
4482 elif test "$with_gnu_ld" = yes; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4484 $as_echo_n "checking for GNU ld... " >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4487 $as_echo_n "checking for non-GNU ld... " >&6; }
4488 fi
4489 if test "${lt_cv_path_LD+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -z "$LD"; then
4493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4494 for ac_dir in $PATH; do
4495 IFS="$lt_save_ifs"
4496 test -z "$ac_dir" && ac_dir=.
4497 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4498 lt_cv_path_LD="$ac_dir/$ac_prog"
4499 # Check to see if the program is GNU ld. I'd rather use --version,
4500 # but apparently some variants of GNU ld only accept -v.
4501 # Break only if it was the GNU/non-GNU ld that we prefer.
4502 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4503 *GNU* | *'with BFD'*)
4504 test "$with_gnu_ld" != no && break
4505 ;;
4506 *)
4507 test "$with_gnu_ld" != yes && break
4508 ;;
4509 esac
4510 fi
4511 done
4512 IFS="$lt_save_ifs"
4513 else
4514 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4515 fi
4516 fi
4517
4518 LD="$lt_cv_path_LD"
4519 if test -n "$LD"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4521 $as_echo "$LD" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4528 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4529 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4533 case `$LD -v 2>&1 </dev/null` in
4534 *GNU* | *'with BFD'*)
4535 lt_cv_prog_gnu_ld=yes
4536 ;;
4537 *)
4538 lt_cv_prog_gnu_ld=no
4539 ;;
4540 esac
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4543 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4544 with_gnu_ld=$lt_cv_prog_gnu_ld
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4555 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4556 if test "${lt_cv_path_NM+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test -n "$NM"; then
4560 # Let the user override the test.
4561 lt_cv_path_NM="$NM"
4562 else
4563 lt_nm_to_check="${ac_tool_prefix}nm"
4564 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4565 lt_nm_to_check="$lt_nm_to_check nm"
4566 fi
4567 for lt_tmp_nm in $lt_nm_to_check; do
4568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4569 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4570 IFS="$lt_save_ifs"
4571 test -z "$ac_dir" && ac_dir=.
4572 tmp_nm="$ac_dir/$lt_tmp_nm"
4573 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4574 # Check to see if the nm accepts a BSD-compat flag.
4575 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4576 # nm: unknown option "B" ignored
4577 # Tru64's nm complains that /dev/null is an invalid object file
4578 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4579 */dev/null* | *'Invalid file or object type'*)
4580 lt_cv_path_NM="$tmp_nm -B"
4581 break
4582 ;;
4583 *)
4584 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4585 */dev/null*)
4586 lt_cv_path_NM="$tmp_nm -p"
4587 break
4588 ;;
4589 *)
4590 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4591 continue # so that we can try to find one that supports BSD flags
4592 ;;
4593 esac
4594 ;;
4595 esac
4596 fi
4597 done
4598 IFS="$lt_save_ifs"
4599 done
4600 : ${lt_cv_path_NM=no}
4601 fi
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4604 $as_echo "$lt_cv_path_NM" >&6; }
4605 if test "$lt_cv_path_NM" != "no"; then
4606 NM="$lt_cv_path_NM"
4607 else
4608 # Didn't find any BSD compatible name lister, look for dumpbin.
4609 if test -n "$DUMPBIN"; then :
4610 # Let the user override the test.
4611 else
4612 if test -n "$ac_tool_prefix"; then
4613 for ac_prog in dumpbin "link -dump"
4614 do
4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -n "$DUMPBIN"; then
4623 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636 done
4637 done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 DUMPBIN=$ac_cv_prog_DUMPBIN
4643 if test -n "$DUMPBIN"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4645 $as_echo "$DUMPBIN" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4649 fi
4650
4651
4652 test -n "$DUMPBIN" && break
4653 done
4654 fi
4655 if test -z "$DUMPBIN"; then
4656 ac_ct_DUMPBIN=$DUMPBIN
4657 for ac_prog in dumpbin "link -dump"
4658 do
4659 # Extract the first word of "$ac_prog", so it can be a program name with args.
4660 set dummy $ac_prog; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_DUMPBIN"; then
4667 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4687 if test -n "$ac_ct_DUMPBIN"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4689 $as_echo "$ac_ct_DUMPBIN" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695
4696 test -n "$ac_ct_DUMPBIN" && break
4697 done
4698
4699 if test "x$ac_ct_DUMPBIN" = x; then
4700 DUMPBIN=":"
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703 yes:)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4707 esac
4708 DUMPBIN=$ac_ct_DUMPBIN
4709 fi
4710 fi
4711
4712 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4713 *COFF*)
4714 DUMPBIN="$DUMPBIN -symbols"
4715 ;;
4716 *)
4717 DUMPBIN=:
4718 ;;
4719 esac
4720 fi
4721
4722 if test "$DUMPBIN" != ":"; then
4723 NM="$DUMPBIN"
4724 fi
4725 fi
4726 test -z "$NM" && NM=nm
4727
4728
4729
4730
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4734 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4735 if test "${lt_cv_nm_interface+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 lt_cv_nm_interface="BSD nm"
4739 echo "int some_variable = 0;" > conftest.$ac_ext
4740 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4741 (eval "$ac_compile" 2>conftest.err)
4742 cat conftest.err >&5
4743 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4744 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4745 cat conftest.err >&5
4746 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4747 cat conftest.out >&5
4748 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4749 lt_cv_nm_interface="MS dumpbin"
4750 fi
4751 rm -f conftest*
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4754 $as_echo "$lt_cv_nm_interface" >&6; }
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4757 $as_echo_n "checking whether ln -s works... " >&6; }
4758 LN_S=$as_ln_s
4759 if test "$LN_S" = "ln -s"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4761 $as_echo "yes" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4764 $as_echo "no, using $LN_S" >&6; }
4765 fi
4766
4767 # find the maximum length of command line arguments
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4769 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4770 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 i=0
4774 teststring="ABCD"
4775
4776 case $build_os in
4777 msdosdjgpp*)
4778 # On DJGPP, this test can blow up pretty badly due to problems in libc
4779 # (any single argument exceeding 2000 bytes causes a buffer overrun
4780 # during glob expansion). Even if it were fixed, the result of this
4781 # check would be larger than it should be.
4782 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4783 ;;
4784
4785 gnu*)
4786 # Under GNU Hurd, this test is not required because there is
4787 # no limit to the length of command line arguments.
4788 # Libtool will interpret -1 as no limit whatsoever
4789 lt_cv_sys_max_cmd_len=-1;
4790 ;;
4791
4792 cygwin* | mingw* | cegcc*)
4793 # On Win9x/ME, this test blows up -- it succeeds, but takes
4794 # about 5 minutes as the teststring grows exponentially.
4795 # Worse, since 9x/ME are not pre-emptively multitasking,
4796 # you end up with a "frozen" computer, even though with patience
4797 # the test eventually succeeds (with a max line length of 256k).
4798 # Instead, let's just punt: use the minimum linelength reported by
4799 # all of the supported platforms: 8192 (on NT/2K/XP).
4800 lt_cv_sys_max_cmd_len=8192;
4801 ;;
4802
4803 mint*)
4804 # On MiNT this can take a long time and run out of memory.
4805 lt_cv_sys_max_cmd_len=8192;
4806 ;;
4807
4808 amigaos*)
4809 # On AmigaOS with pdksh, this test takes hours, literally.
4810 # So we just punt and use a minimum line length of 8192.
4811 lt_cv_sys_max_cmd_len=8192;
4812 ;;
4813
4814 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4815 # This has been around since 386BSD, at least. Likely further.
4816 if test -x /sbin/sysctl; then
4817 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4818 elif test -x /usr/sbin/sysctl; then
4819 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4820 else
4821 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4822 fi
4823 # And add a safety zone
4824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4826 ;;
4827
4828 interix*)
4829 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4830 lt_cv_sys_max_cmd_len=196608
4831 ;;
4832
4833 osf*)
4834 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4835 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4836 # nice to cause kernel panics so lets avoid the loop below.
4837 # First set a reasonable default.
4838 lt_cv_sys_max_cmd_len=16384
4839 #
4840 if test -x /sbin/sysconfig; then
4841 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4842 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4843 esac
4844 fi
4845 ;;
4846 sco3.2v5*)
4847 lt_cv_sys_max_cmd_len=102400
4848 ;;
4849 sysv5* | sco5v6* | sysv4.2uw2*)
4850 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4851 if test -n "$kargmax"; then
4852 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4853 else
4854 lt_cv_sys_max_cmd_len=32768
4855 fi
4856 ;;
4857 *)
4858 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4859 if test -n "$lt_cv_sys_max_cmd_len"; then
4860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4862 else
4863 # Make teststring a little bigger before we do anything with it.
4864 # a 1K string should be a reasonable start.
4865 for i in 1 2 3 4 5 6 7 8 ; do
4866 teststring=$teststring$teststring
4867 done
4868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4869 # If test is not a shell built-in, we'll probably end up computing a
4870 # maximum length that is only half of the actual maximum length, but
4871 # we can't tell.
4872 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4873 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4874 test $i != 17 # 1/2 MB should be enough
4875 do
4876 i=`expr $i + 1`
4877 teststring=$teststring$teststring
4878 done
4879 # Only check the string length outside the loop.
4880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4881 teststring=
4882 # Add a significant safety factor because C++ compilers can tack on
4883 # massive amounts of additional arguments before passing them to the
4884 # linker. It appears as though 1/2 is a usable value.
4885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4886 fi
4887 ;;
4888 esac
4889
4890 fi
4891
4892 if test -n $lt_cv_sys_max_cmd_len ; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4894 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4897 $as_echo "none" >&6; }
4898 fi
4899 max_cmd_len=$lt_cv_sys_max_cmd_len
4900
4901
4902
4903
4904
4905
4906 : ${CP="cp -f"}
4907 : ${MV="mv -f"}
4908 : ${RM="rm -f"}
4909
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4911 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4912 # Try some XSI features
4913 xsi_shell=no
4914 ( _lt_dummy="a/b/c"
4915 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4916 = c,a/b,, \
4917 && eval 'test $(( 1 + 1 )) -eq 2 \
4918 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4919 && xsi_shell=yes
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4921 $as_echo "$xsi_shell" >&6; }
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4925 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4926 lt_shell_append=no
4927 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4928 >/dev/null 2>&1 \
4929 && lt_shell_append=yes
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4931 $as_echo "$lt_shell_append" >&6; }
4932
4933
4934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4935 lt_unset=unset
4936 else
4937 lt_unset=false
4938 fi
4939
4940
4941
4942
4943
4944 # test EBCDIC or ASCII
4945 case `echo X|tr X '\101'` in
4946 A) # ASCII based system
4947 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4948 lt_SP2NL='tr \040 \012'
4949 lt_NL2SP='tr \015\012 \040\040'
4950 ;;
4951 *) # EBCDIC based system
4952 lt_SP2NL='tr \100 \n'
4953 lt_NL2SP='tr \r\n \100\100'
4954 ;;
4955 esac
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4966 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4967 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 lt_cv_ld_reload_flag='-r'
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4973 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4974 reload_flag=$lt_cv_ld_reload_flag
4975 case $reload_flag in
4976 "" | " "*) ;;
4977 *) reload_flag=" $reload_flag" ;;
4978 esac
4979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4980 case $host_os in
4981 darwin*)
4982 if test "$GCC" = yes; then
4983 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4984 else
4985 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4986 fi
4987 ;;
4988 esac
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$OBJDUMP"; then
5007 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5019 fi
5020 done
5021 done
5022 IFS=$as_save_IFS
5023
5024 fi
5025 fi
5026 OBJDUMP=$ac_cv_prog_OBJDUMP
5027 if test -n "$OBJDUMP"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5029 $as_echo "$OBJDUMP" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036 fi
5037 if test -z "$ac_cv_prog_OBJDUMP"; then
5038 ac_ct_OBJDUMP=$OBJDUMP
5039 # Extract the first word of "objdump", so it can be a program name with args.
5040 set dummy objdump; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$ac_ct_OBJDUMP"; then
5047 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5059 fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064 fi
5065 fi
5066 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5067 if test -n "$ac_ct_OBJDUMP"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5069 $as_echo "$ac_ct_OBJDUMP" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075 if test "x$ac_ct_OBJDUMP" = x; then
5076 OBJDUMP="false"
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079 yes:)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082 ac_tool_warned=yes ;;
5083 esac
5084 OBJDUMP=$ac_ct_OBJDUMP
5085 fi
5086 else
5087 OBJDUMP="$ac_cv_prog_OBJDUMP"
5088 fi
5089
5090 test -z "$OBJDUMP" && OBJDUMP=objdump
5091
5092
5093
5094
5095
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5098 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5099 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 lt_cv_file_magic_cmd='$MAGIC_CMD'
5103 lt_cv_file_magic_test_file=
5104 lt_cv_deplibs_check_method='unknown'
5105 # Need to set the preceding variable on all platforms that support
5106 # interlibrary dependencies.
5107 # 'none' -- dependencies not supported.
5108 # `unknown' -- same as none, but documents that we really don't know.
5109 # 'pass_all' -- all dependencies passed with no checks.
5110 # 'test_compile' -- check by making test program.
5111 # 'file_magic [[regex]]' -- check by looking for files in library path
5112 # which responds to the $file_magic_cmd with a given extended regex.
5113 # If you have `file' or equivalent on your system and you're not sure
5114 # whether `pass_all' will *always* work, you probably want this one.
5115
5116 case $host_os in
5117 aix[4-9]*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
5121 beos*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
5125 bsdi[45]*)
5126 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5127 lt_cv_file_magic_cmd='/usr/bin/file -L'
5128 lt_cv_file_magic_test_file=/shlib/libc.so
5129 ;;
5130
5131 cygwin*)
5132 # func_win32_libid is a shell function defined in ltmain.sh
5133 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5134 lt_cv_file_magic_cmd='func_win32_libid'
5135 ;;
5136
5137 mingw* | pw32*)
5138 # Base MSYS/MinGW do not provide the 'file' command needed by
5139 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5140 # unless we find 'file', for example because we are cross-compiling.
5141 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5142 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5143 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5144 lt_cv_file_magic_cmd='func_win32_libid'
5145 else
5146 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5147 lt_cv_file_magic_cmd='$OBJDUMP -f'
5148 fi
5149 ;;
5150
5151 cegcc*)
5152 # use the weaker test based on 'objdump'. See mingw*.
5153 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5154 lt_cv_file_magic_cmd='$OBJDUMP -f'
5155 ;;
5156
5157 darwin* | rhapsody*)
5158 lt_cv_deplibs_check_method=pass_all
5159 ;;
5160
5161 freebsd* | dragonfly*)
5162 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5163 case $host_cpu in
5164 i*86 )
5165 # Not sure whether the presence of OpenBSD here was a mistake.
5166 # Let's accept both of them until this is cleared up.
5167 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5168 lt_cv_file_magic_cmd=/usr/bin/file
5169 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5170 ;;
5171 esac
5172 else
5173 lt_cv_deplibs_check_method=pass_all
5174 fi
5175 ;;
5176
5177 gnu*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
5180
5181 haiku*)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
5184
5185 hpux10.20* | hpux11*)
5186 lt_cv_file_magic_cmd=/usr/bin/file
5187 case $host_cpu in
5188 ia64*)
5189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5190 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5191 ;;
5192 hppa*64*)
5193 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]'
5194 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5195 ;;
5196 *)
5197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5198 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5199 ;;
5200 esac
5201 ;;
5202
5203 interix[3-9]*)
5204 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5206 ;;
5207
5208 irix5* | irix6* | nonstopux*)
5209 case $LD in
5210 *-32|*"-32 ") libmagic=32-bit;;
5211 *-n32|*"-n32 ") libmagic=N32;;
5212 *-64|*"-64 ") libmagic=64-bit;;
5213 *) libmagic=never-match;;
5214 esac
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217
5218 # This must be Linux ELF.
5219 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5220 lt_cv_deplibs_check_method=pass_all
5221 ;;
5222
5223 netbsd*)
5224 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5226 else
5227 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5228 fi
5229 ;;
5230
5231 newos6*)
5232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5233 lt_cv_file_magic_cmd=/usr/bin/file
5234 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5235 ;;
5236
5237 *nto* | *qnx*)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240
5241 openbsd*)
5242 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5244 else
5245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5246 fi
5247 ;;
5248
5249 osf3* | osf4* | osf5*)
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252
5253 rdos*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257 solaris*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264
5265 sysv4 | sysv4.3*)
5266 case $host_vendor in
5267 motorola)
5268 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]'
5269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5270 ;;
5271 ncr)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274 sequent)
5275 lt_cv_file_magic_cmd='/bin/file'
5276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5277 ;;
5278 sni)
5279 lt_cv_file_magic_cmd='/bin/file'
5280 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5281 lt_cv_file_magic_test_file=/lib/libc.so
5282 ;;
5283 siemens)
5284 lt_cv_deplibs_check_method=pass_all
5285 ;;
5286 pc)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289 esac
5290 ;;
5291
5292 tpf*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295 esac
5296
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5299 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5300 file_magic_cmd=$lt_cv_file_magic_cmd
5301 deplibs_check_method=$lt_cv_deplibs_check_method
5302 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 if test -n "$ac_tool_prefix"; then
5316 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5317 set dummy ${ac_tool_prefix}ar; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_prog_AR+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$AR"; then
5324 ac_cv_prog_AR="$AR" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_AR="${ac_tool_prefix}ar"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 AR=$ac_cv_prog_AR
5344 if test -n "$AR"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5346 $as_echo "$AR" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 fi
5354 if test -z "$ac_cv_prog_AR"; then
5355 ac_ct_AR=$AR
5356 # Extract the first word of "ar", so it can be a program name with args.
5357 set dummy ar; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$ac_ct_AR"; then
5364 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_AR="ar"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5384 if test -n "$ac_ct_AR"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5386 $as_echo "$ac_ct_AR" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392 if test "x$ac_ct_AR" = x; then
5393 AR="false"
5394 else
5395 case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401 AR=$ac_ct_AR
5402 fi
5403 else
5404 AR="$ac_cv_prog_AR"
5405 fi
5406
5407 test -z "$AR" && AR=ar
5408 test -z "$AR_FLAGS" && AR_FLAGS=cru
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}strip; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if test "${ac_cv_prog_STRIP+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$STRIP"; then
5429 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5438 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 STRIP=$ac_cv_prog_STRIP
5449 if test -n "$STRIP"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5451 $as_echo "$STRIP" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457
5458 fi
5459 if test -z "$ac_cv_prog_STRIP"; then
5460 ac_ct_STRIP=$STRIP
5461 # Extract the first word of "strip", so it can be a program name with args.
5462 set dummy strip; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$ac_ct_STRIP"; then
5469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_prog_ac_ct_STRIP="strip"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5489 if test -n "$ac_ct_STRIP"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5491 $as_echo "$ac_ct_STRIP" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497 if test "x$ac_ct_STRIP" = x; then
5498 STRIP=":"
5499 else
5500 case $cross_compiling:$ac_tool_warned in
5501 yes:)
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504 ac_tool_warned=yes ;;
5505 esac
5506 STRIP=$ac_ct_STRIP
5507 fi
5508 else
5509 STRIP="$ac_cv_prog_STRIP"
5510 fi
5511
5512 test -z "$STRIP" && STRIP=:
5513
5514
5515
5516
5517
5518
5519 if test -n "$ac_tool_prefix"; then
5520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5521 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 if test -n "$RANLIB"; then
5528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5529 else
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 break 2
5540 fi
5541 done
5542 done
5543 IFS=$as_save_IFS
5544
5545 fi
5546 fi
5547 RANLIB=$ac_cv_prog_RANLIB
5548 if test -n "$RANLIB"; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5550 $as_echo "$RANLIB" >&6; }
5551 else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555
5556
5557 fi
5558 if test -z "$ac_cv_prog_RANLIB"; then
5559 ac_ct_RANLIB=$RANLIB
5560 # Extract the first word of "ranlib", so it can be a program name with args.
5561 set dummy ranlib; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$ac_ct_RANLIB"; then
5568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_ac_ct_RANLIB="ranlib"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5588 if test -n "$ac_ct_RANLIB"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5590 $as_echo "$ac_ct_RANLIB" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596 if test "x$ac_ct_RANLIB" = x; then
5597 RANLIB=":"
5598 else
5599 case $cross_compiling:$ac_tool_warned in
5600 yes:)
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603 ac_tool_warned=yes ;;
5604 esac
5605 RANLIB=$ac_ct_RANLIB
5606 fi
5607 else
5608 RANLIB="$ac_cv_prog_RANLIB"
5609 fi
5610
5611 test -z "$RANLIB" && RANLIB=:
5612
5613
5614
5615
5616
5617
5618 # Determine commands to create old-style static archives.
5619 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5620 old_postinstall_cmds='chmod 644 $oldlib'
5621 old_postuninstall_cmds=
5622
5623 if test -n "$RANLIB"; then
5624 case $host_os in
5625 openbsd*)
5626 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5627 ;;
5628 *)
5629 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5630 ;;
5631 esac
5632 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5633 fi
5634
5635 case $host_os in
5636 darwin*)
5637 lock_old_archive_extraction=yes ;;
5638 *)
5639 lock_old_archive_extraction=no ;;
5640 esac
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 for ac_prog in gawk mawk nawk awk
5663 do
5664 # Extract the first word of "$ac_prog", so it can be a program name with args.
5665 set dummy $ac_prog; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if test "${ac_cv_prog_AWK+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test -n "$AWK"; then
5672 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_prog_AWK="$ac_prog"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 AWK=$ac_cv_prog_AWK
5692 if test -n "$AWK"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5694 $as_echo "$AWK" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700
5701 test -n "$AWK" && break
5702 done
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722 # If no C compiler was specified, use CC.
5723 LTCC=${LTCC-"$CC"}
5724
5725 # If no C compiler flags were specified, use CFLAGS.
5726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5727
5728 # Allow CC to be a program name with arguments.
5729 compiler=$CC
5730
5731
5732 # Check for command to grab the raw symbol name followed by C symbol from nm.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5734 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5735 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738
5739 # These are sane defaults that work on at least a few old systems.
5740 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5741
5742 # Character class describing NM global symbol codes.
5743 symcode='[BCDEGRST]'
5744
5745 # Regexp to match symbols that can be accessed directly from C.
5746 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5747
5748 # Define system-specific variables.
5749 case $host_os in
5750 aix*)
5751 symcode='[BCDT]'
5752 ;;
5753 cygwin* | mingw* | pw32* | cegcc*)
5754 symcode='[ABCDGISTW]'
5755 ;;
5756 hpux*)
5757 if test "$host_cpu" = ia64; then
5758 symcode='[ABCDEGRST]'
5759 fi
5760 ;;
5761 irix* | nonstopux*)
5762 symcode='[BCDEGRST]'
5763 ;;
5764 osf*)
5765 symcode='[BCDEGQRST]'
5766 ;;
5767 solaris*)
5768 symcode='[BDRT]'
5769 ;;
5770 sco3.2v5*)
5771 symcode='[DT]'
5772 ;;
5773 sysv4.2uw2*)
5774 symcode='[DT]'
5775 ;;
5776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5777 symcode='[ABDT]'
5778 ;;
5779 sysv4)
5780 symcode='[DFNSTU]'
5781 ;;
5782 esac
5783
5784 # If we're using GNU nm, then use its standard symbol codes.
5785 case `$NM -V 2>&1` in
5786 *GNU* | *'with BFD'*)
5787 symcode='[ABCDGIRSTW]' ;;
5788 esac
5789
5790 # Transform an extracted symbol line into a proper C declaration.
5791 # Some systems (esp. on ia64) link data and code symbols differently,
5792 # so use this general approach.
5793 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5794
5795 # Transform an extracted symbol line into symbol name and symbol address
5796 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5797 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'"
5798
5799 # Handle CRLF in mingw tool chain
5800 opt_cr=
5801 case $build_os in
5802 mingw*)
5803 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5804 ;;
5805 esac
5806
5807 # Try without a prefix underscore, then with it.
5808 for ac_symprfx in "" "_"; do
5809
5810 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5811 symxfrm="\\1 $ac_symprfx\\2 \\2"
5812
5813 # Write the raw and C identifiers.
5814 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5815 # Fake it for dumpbin and say T for any non-static function
5816 # and D for any global variable.
5817 # Also find C++ and __fastcall symbols from MSVC++,
5818 # which start with @ or ?.
5819 lt_cv_sys_global_symbol_pipe="$AWK '"\
5820 " {last_section=section; section=\$ 3};"\
5821 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5822 " \$ 0!~/External *\|/{next};"\
5823 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5824 " {if(hide[section]) next};"\
5825 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5826 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5827 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5828 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5829 " ' prfx=^$ac_symprfx"
5830 else
5831 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5832 fi
5833
5834 # Check to see that the pipe works correctly.
5835 pipe_works=no
5836
5837 rm -f conftest*
5838 cat > conftest.$ac_ext <<_LT_EOF
5839 #ifdef __cplusplus
5840 extern "C" {
5841 #endif
5842 char nm_test_var;
5843 void nm_test_func(void);
5844 void nm_test_func(void){}
5845 #ifdef __cplusplus
5846 }
5847 #endif
5848 int main(){nm_test_var='a';nm_test_func();return(0);}
5849 _LT_EOF
5850
5851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5852 (eval $ac_compile) 2>&5
5853 ac_status=$?
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; }; then
5856 # Now try to grab the symbols.
5857 nlist=conftest.nm
5858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5859 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5860 ac_status=$?
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; } && test -s "$nlist"; then
5863 # Try sorting and uniquifying the output.
5864 if sort "$nlist" | uniq > "$nlist"T; then
5865 mv -f "$nlist"T "$nlist"
5866 else
5867 rm -f "$nlist"T
5868 fi
5869
5870 # Make sure that we snagged all the symbols we need.
5871 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5872 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5873 cat <<_LT_EOF > conftest.$ac_ext
5874 #ifdef __cplusplus
5875 extern "C" {
5876 #endif
5877
5878 _LT_EOF
5879 # Now generate the symbol file.
5880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5881
5882 cat <<_LT_EOF >> conftest.$ac_ext
5883
5884 /* The mapping between symbol names and symbols. */
5885 const struct {
5886 const char *name;
5887 void *address;
5888 }
5889 lt__PROGRAM__LTX_preloaded_symbols[] =
5890 {
5891 { "@PROGRAM@", (void *) 0 },
5892 _LT_EOF
5893 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5894 cat <<\_LT_EOF >> conftest.$ac_ext
5895 {0, (void *) 0}
5896 };
5897
5898 /* This works around a problem in FreeBSD linker */
5899 #ifdef FREEBSD_WORKAROUND
5900 static const void *lt_preloaded_setup() {
5901 return lt__PROGRAM__LTX_preloaded_symbols;
5902 }
5903 #endif
5904
5905 #ifdef __cplusplus
5906 }
5907 #endif
5908 _LT_EOF
5909 # Now try linking the two files.
5910 mv conftest.$ac_objext conftstm.$ac_objext
5911 lt_save_LIBS="$LIBS"
5912 lt_save_CFLAGS="$CFLAGS"
5913 LIBS="conftstm.$ac_objext"
5914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5916 (eval $ac_link) 2>&5
5917 ac_status=$?
5918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5919 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5920 pipe_works=yes
5921 fi
5922 LIBS="$lt_save_LIBS"
5923 CFLAGS="$lt_save_CFLAGS"
5924 else
5925 echo "cannot find nm_test_func in $nlist" >&5
5926 fi
5927 else
5928 echo "cannot find nm_test_var in $nlist" >&5
5929 fi
5930 else
5931 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5932 fi
5933 else
5934 echo "$progname: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936 fi
5937 rm -rf conftest* conftst*
5938
5939 # Do not use the global_symbol_pipe unless it works.
5940 if test "$pipe_works" = yes; then
5941 break
5942 else
5943 lt_cv_sys_global_symbol_pipe=
5944 fi
5945 done
5946
5947 fi
5948
5949 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5950 lt_cv_sys_global_symbol_to_cdecl=
5951 fi
5952 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5954 $as_echo "failed" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5957 $as_echo "ok" >&6; }
5958 fi
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982 # Check whether --enable-libtool-lock was given.
5983 if test "${enable_libtool_lock+set}" = set; then :
5984 enableval=$enable_libtool_lock;
5985 fi
5986
5987 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5988
5989 # Some flags need to be propagated to the compiler or linker for good
5990 # libtool support.
5991 case $host in
5992 ia64-*-hpux*)
5993 # Find out which ABI we are using.
5994 echo 'int i;' > conftest.$ac_ext
5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996 (eval $ac_compile) 2>&5
5997 ac_status=$?
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; then
6000 case `/usr/bin/file conftest.$ac_objext` in
6001 *ELF-32*)
6002 HPUX_IA64_MODE="32"
6003 ;;
6004 *ELF-64*)
6005 HPUX_IA64_MODE="64"
6006 ;;
6007 esac
6008 fi
6009 rm -rf conftest*
6010 ;;
6011 *-*-irix6*)
6012 # Find out which ABI we are using.
6013 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6015 (eval $ac_compile) 2>&5
6016 ac_status=$?
6017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6018 test $ac_status = 0; }; then
6019 if test "$lt_cv_prog_gnu_ld" = yes; then
6020 case `/usr/bin/file conftest.$ac_objext` in
6021 *32-bit*)
6022 LD="${LD-ld} -melf32bsmip"
6023 ;;
6024 *N32*)
6025 LD="${LD-ld} -melf32bmipn32"
6026 ;;
6027 *64-bit*)
6028 LD="${LD-ld} -melf64bmip"
6029 ;;
6030 esac
6031 else
6032 case `/usr/bin/file conftest.$ac_objext` in
6033 *32-bit*)
6034 LD="${LD-ld} -32"
6035 ;;
6036 *N32*)
6037 LD="${LD-ld} -n32"
6038 ;;
6039 *64-bit*)
6040 LD="${LD-ld} -64"
6041 ;;
6042 esac
6043 fi
6044 fi
6045 rm -rf conftest*
6046 ;;
6047
6048 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6049 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6050 # Find out which ABI we are using.
6051 echo 'int i;' > conftest.$ac_ext
6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 case `/usr/bin/file conftest.o` in
6058 *32-bit*)
6059 case $host in
6060 x86_64-*kfreebsd*-gnu)
6061 LD="${LD-ld} -m elf_i386_fbsd"
6062 ;;
6063 x86_64-*linux*)
6064 case `/usr/bin/file conftest.o` in
6065 *x86-64*)
6066 LD="${LD-ld} -m elf32_x86_64"
6067 ;;
6068 *)
6069 LD="${LD-ld} -m elf_i386"
6070 ;;
6071 esac
6072 ;;
6073 powerpc64le-*linux*)
6074 LD="${LD-ld} -m elf32lppclinux"
6075 ;;
6076 powerpc64-*linux*)
6077 LD="${LD-ld} -m elf32ppclinux"
6078 ;;
6079 s390x-*linux*)
6080 LD="${LD-ld} -m elf_s390"
6081 ;;
6082 sparc64-*linux*)
6083 LD="${LD-ld} -m elf32_sparc"
6084 ;;
6085 esac
6086 ;;
6087 *64-bit*)
6088 case $host in
6089 x86_64-*kfreebsd*-gnu)
6090 LD="${LD-ld} -m elf_x86_64_fbsd"
6091 ;;
6092 x86_64-*linux*)
6093 LD="${LD-ld} -m elf_x86_64"
6094 ;;
6095 powerpcle-*linux*)
6096 LD="${LD-ld} -m elf64lppc"
6097 ;;
6098 powerpc-*linux*)
6099 LD="${LD-ld} -m elf64ppc"
6100 ;;
6101 s390*-*linux*|s390*-*tpf*)
6102 LD="${LD-ld} -m elf64_s390"
6103 ;;
6104 sparc*-*linux*)
6105 LD="${LD-ld} -m elf64_sparc"
6106 ;;
6107 esac
6108 ;;
6109 esac
6110 fi
6111 rm -rf conftest*
6112 ;;
6113
6114 *-*-sco3.2v5*)
6115 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6116 SAVE_CFLAGS="$CFLAGS"
6117 CFLAGS="$CFLAGS -belf"
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6119 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6120 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 ac_ext=c
6124 ac_cpp='$CPP $CPPFLAGS'
6125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128
6129 if test x$gcc_no_link = xyes; then
6130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6131 fi
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134
6135 int
6136 main ()
6137 {
6138
6139 ;
6140 return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_link "$LINENO"; then :
6144 lt_cv_cc_needs_belf=yes
6145 else
6146 lt_cv_cc_needs_belf=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6150 ac_ext=c
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6158 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6161 CFLAGS="$SAVE_CFLAGS"
6162 fi
6163 ;;
6164 sparc*-*solaris*)
6165 # Find out which ABI we are using.
6166 echo 'int i;' > conftest.$ac_ext
6167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6168 (eval $ac_compile) 2>&5
6169 ac_status=$?
6170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171 test $ac_status = 0; }; then
6172 case `/usr/bin/file conftest.o` in
6173 *64-bit*)
6174 case $lt_cv_prog_gnu_ld in
6175 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6176 *)
6177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6178 LD="${LD-ld} -64"
6179 fi
6180 ;;
6181 esac
6182 ;;
6183 esac
6184 fi
6185 rm -rf conftest*
6186 ;;
6187 esac
6188
6189 need_locks="$enable_libtool_lock"
6190
6191
6192 case $host_os in
6193 rhapsody* | darwin*)
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$DSYMUTIL"; then
6203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6223 if test -n "$DSYMUTIL"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6225 $as_echo "$DSYMUTIL" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 fi
6233 if test -z "$ac_cv_prog_DSYMUTIL"; then
6234 ac_ct_DSYMUTIL=$DSYMUTIL
6235 # Extract the first word of "dsymutil", so it can be a program name with args.
6236 set dummy dsymutil; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$ac_ct_DSYMUTIL"; then
6243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6263 if test -n "$ac_ct_DSYMUTIL"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6265 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271 if test "x$ac_ct_DSYMUTIL" = x; then
6272 DSYMUTIL=":"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 DSYMUTIL=$ac_ct_DSYMUTIL
6281 fi
6282 else
6283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6284 fi
6285
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$NMEDIT"; then
6295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 NMEDIT=$ac_cv_prog_NMEDIT
6315 if test -n "$NMEDIT"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6317 $as_echo "$NMEDIT" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 fi
6325 if test -z "$ac_cv_prog_NMEDIT"; then
6326 ac_ct_NMEDIT=$NMEDIT
6327 # Extract the first word of "nmedit", so it can be a program name with args.
6328 set dummy nmedit; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_NMEDIT"; then
6335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6355 if test -n "$ac_ct_NMEDIT"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6357 $as_echo "$ac_ct_NMEDIT" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363 if test "x$ac_ct_NMEDIT" = x; then
6364 NMEDIT=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 NMEDIT=$ac_ct_NMEDIT
6373 fi
6374 else
6375 NMEDIT="$ac_cv_prog_NMEDIT"
6376 fi
6377
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_LIPO+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$LIPO"; then
6387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 LIPO=$ac_cv_prog_LIPO
6407 if test -n "$LIPO"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6409 $as_echo "$LIPO" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416 fi
6417 if test -z "$ac_cv_prog_LIPO"; then
6418 ac_ct_LIPO=$LIPO
6419 # Extract the first word of "lipo", so it can be a program name with args.
6420 set dummy lipo; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_LIPO"; then
6427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_LIPO="lipo"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6447 if test -n "$ac_ct_LIPO"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6449 $as_echo "$ac_ct_LIPO" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455 if test "x$ac_ct_LIPO" = x; then
6456 LIPO=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 LIPO=$ac_ct_LIPO
6465 fi
6466 else
6467 LIPO="$ac_cv_prog_LIPO"
6468 fi
6469
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}otool; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$OTOOL"; then
6479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 OTOOL=$ac_cv_prog_OTOOL
6499 if test -n "$OTOOL"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6501 $as_echo "$OTOOL" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507
6508 fi
6509 if test -z "$ac_cv_prog_OTOOL"; then
6510 ac_ct_OTOOL=$OTOOL
6511 # Extract the first word of "otool", so it can be a program name with args.
6512 set dummy otool; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$ac_ct_OTOOL"; then
6519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_ac_ct_OTOOL="otool"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6539 if test -n "$ac_ct_OTOOL"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6541 $as_echo "$ac_ct_OTOOL" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546
6547 if test "x$ac_ct_OTOOL" = x; then
6548 OTOOL=":"
6549 else
6550 case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6555 esac
6556 OTOOL=$ac_ct_OTOOL
6557 fi
6558 else
6559 OTOOL="$ac_cv_prog_OTOOL"
6560 fi
6561
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$OTOOL64"; then
6571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 OTOOL64=$ac_cv_prog_OTOOL64
6591 if test -n "$OTOOL64"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6593 $as_echo "$OTOOL64" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 fi
6601 if test -z "$ac_cv_prog_OTOOL64"; then
6602 ac_ct_OTOOL64=$OTOOL64
6603 # Extract the first word of "otool64", so it can be a program name with args.
6604 set dummy otool64; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$ac_ct_OTOOL64"; then
6611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_OTOOL64="otool64"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6631 if test -n "$ac_ct_OTOOL64"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6633 $as_echo "$ac_ct_OTOOL64" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639 if test "x$ac_ct_OTOOL64" = x; then
6640 OTOOL64=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648 OTOOL64=$ac_ct_OTOOL64
6649 fi
6650 else
6651 OTOOL64="$ac_cv_prog_OTOOL64"
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6681 $as_echo_n "checking for -single_module linker flag... " >&6; }
6682 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 lt_cv_apple_cc_single_mod=no
6686 if test -z "${LT_MULTI_MODULE}"; then
6687 # By default we will add the -single_module flag. You can override
6688 # by either setting the environment variable LT_MULTI_MODULE
6689 # non-empty at configure time, or by adding -multi_module to the
6690 # link flags.
6691 rm -rf libconftest.dylib*
6692 echo "int foo(void){return 1;}" > conftest.c
6693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c" >&5
6695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6697 _lt_result=$?
6698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6699 lt_cv_apple_cc_single_mod=yes
6700 else
6701 cat conftest.err >&5
6702 fi
6703 rm -rf libconftest.dylib*
6704 rm -f conftest.*
6705 fi
6706 fi
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6708 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6710 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6711 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 lt_cv_ld_exported_symbols_list=no
6715 save_LDFLAGS=$LDFLAGS
6716 echo "_main" > conftest.sym
6717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6718 if test x$gcc_no_link = xyes; then
6719 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6720 fi
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723
6724 int
6725 main ()
6726 {
6727
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 if ac_fn_c_try_link "$LINENO"; then :
6733 lt_cv_ld_exported_symbols_list=yes
6734 else
6735 lt_cv_ld_exported_symbols_list=no
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 LDFLAGS="$save_LDFLAGS"
6740
6741 fi
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6743 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6745 $as_echo_n "checking for -force_load linker flag... " >&6; }
6746 if test "${lt_cv_ld_force_load+set}" = set; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 lt_cv_ld_force_load=no
6750 cat > conftest.c << _LT_EOF
6751 int forced_loaded() { return 2;}
6752 _LT_EOF
6753 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6754 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6755 echo "$AR cru libconftest.a conftest.o" >&5
6756 $AR cru libconftest.a conftest.o 2>&5
6757 cat > conftest.c << _LT_EOF
6758 int main() { return 0;}
6759 _LT_EOF
6760 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6761 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6762 _lt_result=$?
6763 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6764 lt_cv_ld_force_load=yes
6765 else
6766 cat conftest.err >&5
6767 fi
6768 rm -f conftest.err libconftest.a conftest conftest.c
6769 rm -rf conftest.dSYM
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6773 $as_echo "$lt_cv_ld_force_load" >&6; }
6774 case $host_os in
6775 rhapsody* | darwin1.[012])
6776 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6777 darwin1.*)
6778 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6779 darwin*) # darwin 5.x on
6780 # if running on 10.5 or later, the deployment target defaults
6781 # to the OS version, if on x86, and 10.4, the deployment
6782 # target defaults to 10.4. Don't you love it?
6783 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6784 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6786 10.[012][,.]*)
6787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6788 10.*)
6789 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6790 esac
6791 ;;
6792 esac
6793 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6794 _lt_dar_single_mod='$single_module'
6795 fi
6796 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6797 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6798 else
6799 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6800 fi
6801 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6802 _lt_dsymutil='~$DSYMUTIL $lib || :'
6803 else
6804 _lt_dsymutil=
6805 fi
6806 ;;
6807 esac
6808
6809 ac_ext=c
6810 ac_cpp='$CPP $CPPFLAGS'
6811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6815 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6816 # On Suns, sometimes $CPP names a directory.
6817 if test -n "$CPP" && test -d "$CPP"; then
6818 CPP=
6819 fi
6820 if test -z "$CPP"; then
6821 if test "${ac_cv_prog_CPP+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 # Double quotes because CPP needs to be expanded
6825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6826 do
6827 ac_preproc_ok=false
6828 for ac_c_preproc_warn_flag in '' yes
6829 do
6830 # Use a header file that comes with gcc, so configuring glibc
6831 # with a fresh cross-compiler works.
6832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 # <limits.h> exists even on freestanding compilers.
6834 # On the NeXT, cc -E runs the code through the compiler's parser,
6835 # not just through cpp. "Syntax error" is here to catch this case.
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 #ifdef __STDC__
6839 # include <limits.h>
6840 #else
6841 # include <assert.h>
6842 #endif
6843 Syntax error
6844 _ACEOF
6845 if ac_fn_c_try_cpp "$LINENO"; then :
6846
6847 else
6848 # Broken: fails on valid input.
6849 continue
6850 fi
6851 rm -f conftest.err conftest.$ac_ext
6852
6853 # OK, works on sane cases. Now check whether nonexistent headers
6854 # can be detected and how.
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <ac_nonexistent.h>
6858 _ACEOF
6859 if ac_fn_c_try_cpp "$LINENO"; then :
6860 # Broken: success on invalid input.
6861 continue
6862 else
6863 # Passes both tests.
6864 ac_preproc_ok=:
6865 break
6866 fi
6867 rm -f conftest.err conftest.$ac_ext
6868
6869 done
6870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6871 rm -f conftest.err conftest.$ac_ext
6872 if $ac_preproc_ok; then :
6873 break
6874 fi
6875
6876 done
6877 ac_cv_prog_CPP=$CPP
6878
6879 fi
6880 CPP=$ac_cv_prog_CPP
6881 else
6882 ac_cv_prog_CPP=$CPP
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6885 $as_echo "$CPP" >&6; }
6886 ac_preproc_ok=false
6887 for ac_c_preproc_warn_flag in '' yes
6888 do
6889 # Use a header file that comes with gcc, so configuring glibc
6890 # with a fresh cross-compiler works.
6891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892 # <limits.h> exists even on freestanding compilers.
6893 # On the NeXT, cc -E runs the code through the compiler's parser,
6894 # not just through cpp. "Syntax error" is here to catch this case.
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 #ifdef __STDC__
6898 # include <limits.h>
6899 #else
6900 # include <assert.h>
6901 #endif
6902 Syntax error
6903 _ACEOF
6904 if ac_fn_c_try_cpp "$LINENO"; then :
6905
6906 else
6907 # Broken: fails on valid input.
6908 continue
6909 fi
6910 rm -f conftest.err conftest.$ac_ext
6911
6912 # OK, works on sane cases. Now check whether nonexistent headers
6913 # can be detected and how.
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 #include <ac_nonexistent.h>
6917 _ACEOF
6918 if ac_fn_c_try_cpp "$LINENO"; then :
6919 # Broken: success on invalid input.
6920 continue
6921 else
6922 # Passes both tests.
6923 ac_preproc_ok=:
6924 break
6925 fi
6926 rm -f conftest.err conftest.$ac_ext
6927
6928 done
6929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6930 rm -f conftest.err conftest.$ac_ext
6931 if $ac_preproc_ok; then :
6932
6933 else
6934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6936 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6937 See \`config.log' for more details." "$LINENO" 5; }
6938 fi
6939
6940 ac_ext=c
6941 ac_cpp='$CPP $CPPFLAGS'
6942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6945
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6948 $as_echo_n "checking for ANSI C header files... " >&6; }
6949 if test "${ac_cv_header_stdc+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 #include <stdlib.h>
6955 #include <stdarg.h>
6956 #include <string.h>
6957 #include <float.h>
6958
6959 int
6960 main ()
6961 {
6962
6963 ;
6964 return 0;
6965 }
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 ac_cv_header_stdc=yes
6969 else
6970 ac_cv_header_stdc=no
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973
6974 if test $ac_cv_header_stdc = yes; then
6975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 #include <string.h>
6979
6980 _ACEOF
6981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6982 $EGREP "memchr" >/dev/null 2>&1; then :
6983
6984 else
6985 ac_cv_header_stdc=no
6986 fi
6987 rm -f conftest*
6988
6989 fi
6990
6991 if test $ac_cv_header_stdc = yes; then
6992 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 #include <stdlib.h>
6996
6997 _ACEOF
6998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999 $EGREP "free" >/dev/null 2>&1; then :
7000
7001 else
7002 ac_cv_header_stdc=no
7003 fi
7004 rm -f conftest*
7005
7006 fi
7007
7008 if test $ac_cv_header_stdc = yes; then
7009 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7010 if test "$cross_compiling" = yes; then :
7011 :
7012 else
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 #include <ctype.h>
7016 #include <stdlib.h>
7017 #if ((' ' & 0x0FF) == 0x020)
7018 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7019 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7020 #else
7021 # define ISLOWER(c) \
7022 (('a' <= (c) && (c) <= 'i') \
7023 || ('j' <= (c) && (c) <= 'r') \
7024 || ('s' <= (c) && (c) <= 'z'))
7025 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7026 #endif
7027
7028 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7029 int
7030 main ()
7031 {
7032 int i;
7033 for (i = 0; i < 256; i++)
7034 if (XOR (islower (i), ISLOWER (i))
7035 || toupper (i) != TOUPPER (i))
7036 return 2;
7037 return 0;
7038 }
7039 _ACEOF
7040 if ac_fn_c_try_run "$LINENO"; then :
7041
7042 else
7043 ac_cv_header_stdc=no
7044 fi
7045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7046 conftest.$ac_objext conftest.beam conftest.$ac_ext
7047 fi
7048
7049 fi
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7052 $as_echo "$ac_cv_header_stdc" >&6; }
7053 if test $ac_cv_header_stdc = yes; then
7054
7055 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7056
7057 fi
7058
7059 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7061 inttypes.h stdint.h unistd.h
7062 do :
7063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7065 "
7066 eval as_val=\$$as_ac_Header
7067 if test "x$as_val" = x""yes; then :
7068 cat >>confdefs.h <<_ACEOF
7069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7070 _ACEOF
7071
7072 fi
7073
7074 done
7075
7076
7077 for ac_header in dlfcn.h
7078 do :
7079 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7080 "
7081 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7082 cat >>confdefs.h <<_ACEOF
7083 #define HAVE_DLFCN_H 1
7084 _ACEOF
7085
7086 fi
7087
7088 done
7089
7090
7091
7092
7093
7094 # Set options
7095
7096
7097
7098 enable_dlopen=no
7099
7100
7101
7102 # Check whether --enable-shared was given.
7103 if test "${enable_shared+set}" = set; then :
7104 enableval=$enable_shared; p=${PACKAGE-default}
7105 case $enableval in
7106 yes) enable_shared=yes ;;
7107 no) enable_shared=no ;;
7108 *)
7109 enable_shared=no
7110 # Look at the argument we got. We use all the common list separators.
7111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7112 for pkg in $enableval; do
7113 IFS="$lt_save_ifs"
7114 if test "X$pkg" = "X$p"; then
7115 enable_shared=yes
7116 fi
7117 done
7118 IFS="$lt_save_ifs"
7119 ;;
7120 esac
7121 else
7122 enable_shared=yes
7123 fi
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133 # Check whether --enable-static was given.
7134 if test "${enable_static+set}" = set; then :
7135 enableval=$enable_static; p=${PACKAGE-default}
7136 case $enableval in
7137 yes) enable_static=yes ;;
7138 no) enable_static=no ;;
7139 *)
7140 enable_static=no
7141 # Look at the argument we got. We use all the common list separators.
7142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7143 for pkg in $enableval; do
7144 IFS="$lt_save_ifs"
7145 if test "X$pkg" = "X$p"; then
7146 enable_static=yes
7147 fi
7148 done
7149 IFS="$lt_save_ifs"
7150 ;;
7151 esac
7152 else
7153 enable_static=yes
7154 fi
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 # Check whether --with-pic was given.
7166 if test "${with_pic+set}" = set; then :
7167 withval=$with_pic; pic_mode="$withval"
7168 else
7169 pic_mode=default
7170 fi
7171
7172
7173 test -z "$pic_mode" && pic_mode=default
7174
7175
7176
7177
7178
7179
7180
7181 # Check whether --enable-fast-install was given.
7182 if test "${enable_fast_install+set}" = set; then :
7183 enableval=$enable_fast_install; p=${PACKAGE-default}
7184 case $enableval in
7185 yes) enable_fast_install=yes ;;
7186 no) enable_fast_install=no ;;
7187 *)
7188 enable_fast_install=no
7189 # Look at the argument we got. We use all the common list separators.
7190 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7191 for pkg in $enableval; do
7192 IFS="$lt_save_ifs"
7193 if test "X$pkg" = "X$p"; then
7194 enable_fast_install=yes
7195 fi
7196 done
7197 IFS="$lt_save_ifs"
7198 ;;
7199 esac
7200 else
7201 enable_fast_install=yes
7202 fi
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 # This can be used to rebuild libtool when needed
7215 LIBTOOL_DEPS="$ltmain"
7216
7217 # Always use our own libtool.
7218 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245 test -z "$LN_S" && LN_S="ln -s"
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260 if test -n "${ZSH_VERSION+set}" ; then
7261 setopt NO_GLOB_SUBST
7262 fi
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7265 $as_echo_n "checking for objdir... " >&6; }
7266 if test "${lt_cv_objdir+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 rm -f .libs 2>/dev/null
7270 mkdir .libs 2>/dev/null
7271 if test -d .libs; then
7272 lt_cv_objdir=.libs
7273 else
7274 # MS-DOS does not allow filenames that begin with a dot.
7275 lt_cv_objdir=_libs
7276 fi
7277 rmdir .libs 2>/dev/null
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7280 $as_echo "$lt_cv_objdir" >&6; }
7281 objdir=$lt_cv_objdir
7282
7283
7284
7285
7286
7287 cat >>confdefs.h <<_ACEOF
7288 #define LT_OBJDIR "$lt_cv_objdir/"
7289 _ACEOF
7290
7291
7292
7293
7294 case $host_os in
7295 aix3*)
7296 # AIX sometimes has problems with the GCC collect2 program. For some
7297 # reason, if we set the COLLECT_NAMES environment variable, the problems
7298 # vanish in a puff of smoke.
7299 if test "X${COLLECT_NAMES+set}" != Xset; then
7300 COLLECT_NAMES=
7301 export COLLECT_NAMES
7302 fi
7303 ;;
7304 esac
7305
7306 # Global variables:
7307 ofile=libtool
7308 can_build_shared=yes
7309
7310 # All known linkers require a `.a' archive for static linking (except MSVC,
7311 # which needs '.lib').
7312 libext=a
7313
7314 with_gnu_ld="$lt_cv_prog_gnu_ld"
7315
7316 old_CC="$CC"
7317 old_CFLAGS="$CFLAGS"
7318
7319 # Set sane defaults for various variables
7320 test -z "$CC" && CC=cc
7321 test -z "$LTCC" && LTCC=$CC
7322 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7323 test -z "$LD" && LD=ld
7324 test -z "$ac_objext" && ac_objext=o
7325
7326 for cc_temp in $compiler""; do
7327 case $cc_temp in
7328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7330 \-*) ;;
7331 *) break;;
7332 esac
7333 done
7334 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7335
7336
7337 # Only perform the check for file, if the check method requires it
7338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7339 case $deplibs_check_method in
7340 file_magic*)
7341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7343 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 case $MAGIC_CMD in
7348 [\\/*] | ?:[\\/]*)
7349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7350 ;;
7351 *)
7352 lt_save_MAGIC_CMD="$MAGIC_CMD"
7353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7355 for ac_dir in $ac_dummy; do
7356 IFS="$lt_save_ifs"
7357 test -z "$ac_dir" && ac_dir=.
7358 if test -f $ac_dir/${ac_tool_prefix}file; then
7359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7360 if test -n "$file_magic_test_file"; then
7361 case $deplibs_check_method in
7362 "file_magic "*)
7363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7366 $EGREP "$file_magic_regex" > /dev/null; then
7367 :
7368 else
7369 cat <<_LT_EOF 1>&2
7370
7371 *** Warning: the command libtool uses to detect shared libraries,
7372 *** $file_magic_cmd, produces output that libtool cannot recognize.
7373 *** The result is that libtool may fail to recognize shared libraries
7374 *** as such. This will affect the creation of libtool libraries that
7375 *** depend on shared libraries, but programs linked with such libtool
7376 *** libraries will work regardless of this problem. Nevertheless, you
7377 *** may want to report the problem to your system manager and/or to
7378 *** bug-libtool@gnu.org
7379
7380 _LT_EOF
7381 fi ;;
7382 esac
7383 fi
7384 break
7385 fi
7386 done
7387 IFS="$lt_save_ifs"
7388 MAGIC_CMD="$lt_save_MAGIC_CMD"
7389 ;;
7390 esac
7391 fi
7392
7393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7394 if test -n "$MAGIC_CMD"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7396 $as_echo "$MAGIC_CMD" >&6; }
7397 else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402
7403
7404
7405
7406 if test -z "$lt_cv_path_MAGIC_CMD"; then
7407 if test -n "$ac_tool_prefix"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7409 $as_echo_n "checking for file... " >&6; }
7410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 case $MAGIC_CMD in
7414 [\\/*] | ?:[\\/]*)
7415 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7416 ;;
7417 *)
7418 lt_save_MAGIC_CMD="$MAGIC_CMD"
7419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7421 for ac_dir in $ac_dummy; do
7422 IFS="$lt_save_ifs"
7423 test -z "$ac_dir" && ac_dir=.
7424 if test -f $ac_dir/file; then
7425 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7426 if test -n "$file_magic_test_file"; then
7427 case $deplibs_check_method in
7428 "file_magic "*)
7429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7432 $EGREP "$file_magic_regex" > /dev/null; then
7433 :
7434 else
7435 cat <<_LT_EOF 1>&2
7436
7437 *** Warning: the command libtool uses to detect shared libraries,
7438 *** $file_magic_cmd, produces output that libtool cannot recognize.
7439 *** The result is that libtool may fail to recognize shared libraries
7440 *** as such. This will affect the creation of libtool libraries that
7441 *** depend on shared libraries, but programs linked with such libtool
7442 *** libraries will work regardless of this problem. Nevertheless, you
7443 *** may want to report the problem to your system manager and/or to
7444 *** bug-libtool@gnu.org
7445
7446 _LT_EOF
7447 fi ;;
7448 esac
7449 fi
7450 break
7451 fi
7452 done
7453 IFS="$lt_save_ifs"
7454 MAGIC_CMD="$lt_save_MAGIC_CMD"
7455 ;;
7456 esac
7457 fi
7458
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if test -n "$MAGIC_CMD"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7462 $as_echo "$MAGIC_CMD" >&6; }
7463 else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468
7469 else
7470 MAGIC_CMD=:
7471 fi
7472 fi
7473
7474 fi
7475 ;;
7476 esac
7477
7478 # Use C for the default configuration in the libtool script
7479
7480 lt_save_CC="$CC"
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486
7487
7488 # Source file extension for C test sources.
7489 ac_ext=c
7490
7491 # Object file extension for compiled C test sources.
7492 objext=o
7493 objext=$objext
7494
7495 # Code to be used in simple compile tests
7496 lt_simple_compile_test_code="int some_variable = 0;"
7497
7498 # Code to be used in simple link tests
7499 lt_simple_link_test_code='int main(){return(0);}'
7500
7501
7502
7503
7504
7505
7506
7507 # If no C compiler was specified, use CC.
7508 LTCC=${LTCC-"$CC"}
7509
7510 # If no C compiler flags were specified, use CFLAGS.
7511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7512
7513 # Allow CC to be a program name with arguments.
7514 compiler=$CC
7515
7516 # Save the default compiler, since it gets overwritten when the other
7517 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7518 compiler_DEFAULT=$CC
7519
7520 # save warnings/boilerplate of simple test code
7521 ac_outfile=conftest.$ac_objext
7522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7524 _lt_compiler_boilerplate=`cat conftest.err`
7525 $RM conftest*
7526
7527 ac_outfile=conftest.$ac_objext
7528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7530 _lt_linker_boilerplate=`cat conftest.err`
7531 $RM -r conftest*
7532
7533
7534 ## CAVEAT EMPTOR:
7535 ## There is no encapsulation within the following macros, do not change
7536 ## the running order or otherwise move them around unless you know exactly
7537 ## what you are doing...
7538 if test -n "$compiler"; then
7539
7540 lt_prog_compiler_no_builtin_flag=
7541
7542 if test "$GCC" = yes; then
7543 case $cc_basename in
7544 nvcc*)
7545 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7546 *)
7547 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7548 esac
7549
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7551 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7552 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 lt_cv_prog_compiler_rtti_exceptions=no
7556 ac_outfile=conftest.$ac_objext
7557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7558 lt_compiler_flag="-fno-rtti -fno-exceptions"
7559 # Insert the option either (1) after the last *FLAGS variable, or
7560 # (2) before a word containing "conftest.", or (3) at the end.
7561 # Note that $ac_compile itself does not contain backslashes and begins
7562 # with a dollar sign (not a hyphen), so the echo should work correctly.
7563 # The option is referenced via a variable to avoid confusing sed.
7564 lt_compile=`echo "$ac_compile" | $SED \
7565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567 -e 's:$: $lt_compiler_flag:'`
7568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7569 (eval "$lt_compile" 2>conftest.err)
7570 ac_status=$?
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 if (exit $ac_status) && test -s "$ac_outfile"; then
7574 # The compiler can only warn and ignore the option if not recognized
7575 # So say no if there are warnings other than the usual output.
7576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7579 lt_cv_prog_compiler_rtti_exceptions=yes
7580 fi
7581 fi
7582 $RM conftest*
7583
7584 fi
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7586 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7587
7588 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7589 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7590 else
7591 :
7592 fi
7593
7594 fi
7595
7596
7597
7598
7599
7600
7601 lt_prog_compiler_wl=
7602 lt_prog_compiler_pic=
7603 lt_prog_compiler_static=
7604
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7607
7608 if test "$GCC" = yes; then
7609 lt_prog_compiler_wl='-Wl,'
7610 lt_prog_compiler_static='-static'
7611
7612 case $host_os in
7613 aix*)
7614 # All AIX code is PIC.
7615 if test "$host_cpu" = ia64; then
7616 # AIX 5 now supports IA64 processor
7617 lt_prog_compiler_static='-Bstatic'
7618 fi
7619 lt_prog_compiler_pic='-fPIC'
7620 ;;
7621
7622 amigaos*)
7623 case $host_cpu in
7624 powerpc)
7625 # see comment about AmigaOS4 .so support
7626 lt_prog_compiler_pic='-fPIC'
7627 ;;
7628 m68k)
7629 # FIXME: we need at least 68020 code to build shared libraries, but
7630 # adding the `-m68020' flag to GCC prevents building anything better,
7631 # like `-m68040'.
7632 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7633 ;;
7634 esac
7635 ;;
7636
7637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7638 # PIC is the default for these OSes.
7639 ;;
7640
7641 mingw* | cygwin* | pw32* | os2* | cegcc*)
7642 # This hack is so that the source file can tell whether it is being
7643 # built for inclusion in a dll (and should export symbols for example).
7644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7645 # (--disable-auto-import) libraries
7646 lt_prog_compiler_pic='-DDLL_EXPORT'
7647 ;;
7648
7649 darwin* | rhapsody*)
7650 # PIC is the default on this platform
7651 # Common symbols not allowed in MH_DYLIB files
7652 lt_prog_compiler_pic='-fno-common'
7653 ;;
7654
7655 haiku*)
7656 # PIC is the default for Haiku.
7657 # The "-static" flag exists, but is broken.
7658 lt_prog_compiler_static=
7659 ;;
7660
7661 hpux*)
7662 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7663 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7664 # sets the default TLS model and affects inlining.
7665 case $host_cpu in
7666 hppa*64*)
7667 # +Z the default
7668 ;;
7669 *)
7670 lt_prog_compiler_pic='-fPIC'
7671 ;;
7672 esac
7673 ;;
7674
7675 interix[3-9]*)
7676 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7677 # Instead, we relocate shared libraries at runtime.
7678 ;;
7679
7680 msdosdjgpp*)
7681 # Just because we use GCC doesn't mean we suddenly get shared libraries
7682 # on systems that don't support them.
7683 lt_prog_compiler_can_build_shared=no
7684 enable_shared=no
7685 ;;
7686
7687 *nto* | *qnx*)
7688 # QNX uses GNU C++, but need to define -shared option too, otherwise
7689 # it will coredump.
7690 lt_prog_compiler_pic='-fPIC -shared'
7691 ;;
7692
7693 sysv4*MP*)
7694 if test -d /usr/nec; then
7695 lt_prog_compiler_pic=-Kconform_pic
7696 fi
7697 ;;
7698
7699 *)
7700 lt_prog_compiler_pic='-fPIC'
7701 ;;
7702 esac
7703
7704 case $cc_basename in
7705 nvcc*) # Cuda Compiler Driver 2.2
7706 lt_prog_compiler_wl='-Xlinker '
7707 lt_prog_compiler_pic='-Xcompiler -fPIC'
7708 ;;
7709 esac
7710 else
7711 # PORTME Check for flag to pass linker flags through the system compiler.
7712 case $host_os in
7713 aix*)
7714 lt_prog_compiler_wl='-Wl,'
7715 if test "$host_cpu" = ia64; then
7716 # AIX 5 now supports IA64 processor
7717 lt_prog_compiler_static='-Bstatic'
7718 else
7719 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7720 fi
7721 ;;
7722
7723 mingw* | cygwin* | pw32* | os2* | cegcc*)
7724 # This hack is so that the source file can tell whether it is being
7725 # built for inclusion in a dll (and should export symbols for example).
7726 lt_prog_compiler_pic='-DDLL_EXPORT'
7727 ;;
7728
7729 hpux9* | hpux10* | hpux11*)
7730 lt_prog_compiler_wl='-Wl,'
7731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7732 # not for PA HP-UX.
7733 case $host_cpu in
7734 hppa*64*|ia64*)
7735 # +Z the default
7736 ;;
7737 *)
7738 lt_prog_compiler_pic='+Z'
7739 ;;
7740 esac
7741 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7742 lt_prog_compiler_static='${wl}-a ${wl}archive'
7743 ;;
7744
7745 irix5* | irix6* | nonstopux*)
7746 lt_prog_compiler_wl='-Wl,'
7747 # PIC (with -KPIC) is the default.
7748 lt_prog_compiler_static='-non_shared'
7749 ;;
7750
7751 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7752 case $cc_basename in
7753 # old Intel for x86_64 which still supported -KPIC.
7754 ecc*)
7755 lt_prog_compiler_wl='-Wl,'
7756 lt_prog_compiler_pic='-KPIC'
7757 lt_prog_compiler_static='-static'
7758 ;;
7759 # icc used to be incompatible with GCC.
7760 # ICC 10 doesn't accept -KPIC any more.
7761 icc* | ifort*)
7762 lt_prog_compiler_wl='-Wl,'
7763 lt_prog_compiler_pic='-fPIC'
7764 lt_prog_compiler_static='-static'
7765 ;;
7766 # Lahey Fortran 8.1.
7767 lf95*)
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='--shared'
7770 lt_prog_compiler_static='--static'
7771 ;;
7772 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7773 # Portland Group compilers (*not* the Pentium gcc compiler,
7774 # which looks to be a dead project)
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_pic='-fpic'
7777 lt_prog_compiler_static='-Bstatic'
7778 ;;
7779 ccc*)
7780 lt_prog_compiler_wl='-Wl,'
7781 # All Alpha code is PIC.
7782 lt_prog_compiler_static='-non_shared'
7783 ;;
7784 xl* | bgxl* | bgf* | mpixl*)
7785 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7786 lt_prog_compiler_wl='-Wl,'
7787 lt_prog_compiler_pic='-qpic'
7788 lt_prog_compiler_static='-qstaticlink'
7789 ;;
7790 *)
7791 case `$CC -V 2>&1 | sed 5q` in
7792 *Sun\ F* | *Sun*Fortran*)
7793 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7794 lt_prog_compiler_pic='-KPIC'
7795 lt_prog_compiler_static='-Bstatic'
7796 lt_prog_compiler_wl=''
7797 ;;
7798 *Sun\ C*)
7799 # Sun C 5.9
7800 lt_prog_compiler_pic='-KPIC'
7801 lt_prog_compiler_static='-Bstatic'
7802 lt_prog_compiler_wl='-Wl,'
7803 ;;
7804 esac
7805 ;;
7806 esac
7807 ;;
7808
7809 newsos6)
7810 lt_prog_compiler_pic='-KPIC'
7811 lt_prog_compiler_static='-Bstatic'
7812 ;;
7813
7814 *nto* | *qnx*)
7815 # QNX uses GNU C++, but need to define -shared option too, otherwise
7816 # it will coredump.
7817 lt_prog_compiler_pic='-fPIC -shared'
7818 ;;
7819
7820 osf3* | osf4* | osf5*)
7821 lt_prog_compiler_wl='-Wl,'
7822 # All OSF/1 code is PIC.
7823 lt_prog_compiler_static='-non_shared'
7824 ;;
7825
7826 rdos*)
7827 lt_prog_compiler_static='-non_shared'
7828 ;;
7829
7830 solaris*)
7831 lt_prog_compiler_pic='-KPIC'
7832 lt_prog_compiler_static='-Bstatic'
7833 case $cc_basename in
7834 f77* | f90* | f95*)
7835 lt_prog_compiler_wl='-Qoption ld ';;
7836 *)
7837 lt_prog_compiler_wl='-Wl,';;
7838 esac
7839 ;;
7840
7841 sunos4*)
7842 lt_prog_compiler_wl='-Qoption ld '
7843 lt_prog_compiler_pic='-PIC'
7844 lt_prog_compiler_static='-Bstatic'
7845 ;;
7846
7847 sysv4 | sysv4.2uw2* | sysv4.3*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7851 ;;
7852
7853 sysv4*MP*)
7854 if test -d /usr/nec ;then
7855 lt_prog_compiler_pic='-Kconform_pic'
7856 lt_prog_compiler_static='-Bstatic'
7857 fi
7858 ;;
7859
7860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7861 lt_prog_compiler_wl='-Wl,'
7862 lt_prog_compiler_pic='-KPIC'
7863 lt_prog_compiler_static='-Bstatic'
7864 ;;
7865
7866 unicos*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_can_build_shared=no
7869 ;;
7870
7871 uts4*)
7872 lt_prog_compiler_pic='-pic'
7873 lt_prog_compiler_static='-Bstatic'
7874 ;;
7875
7876 *)
7877 lt_prog_compiler_can_build_shared=no
7878 ;;
7879 esac
7880 fi
7881
7882 case $host_os in
7883 # For platforms which do not support PIC, -DPIC is meaningless:
7884 *djgpp*)
7885 lt_prog_compiler_pic=
7886 ;;
7887 *)
7888 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7889 ;;
7890 esac
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7892 $as_echo "$lt_prog_compiler_pic" >&6; }
7893
7894
7895
7896
7897
7898
7899 #
7900 # Check to make sure the PIC flag actually works.
7901 #
7902 if test -n "$lt_prog_compiler_pic"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7904 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7905 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 lt_cv_prog_compiler_pic_works=no
7909 ac_outfile=conftest.$ac_objext
7910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7912 # Insert the option either (1) after the last *FLAGS variable, or
7913 # (2) before a word containing "conftest.", or (3) at the end.
7914 # Note that $ac_compile itself does not contain backslashes and begins
7915 # with a dollar sign (not a hyphen), so the echo should work correctly.
7916 # The option is referenced via a variable to avoid confusing sed.
7917 lt_compile=`echo "$ac_compile" | $SED \
7918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7920 -e 's:$: $lt_compiler_flag:'`
7921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7922 (eval "$lt_compile" 2>conftest.err)
7923 ac_status=$?
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 if (exit $ac_status) && test -s "$ac_outfile"; then
7927 # The compiler can only warn and ignore the option if not recognized
7928 # So say no if there are warnings other than the usual output.
7929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7932 lt_cv_prog_compiler_pic_works=yes
7933 fi
7934 fi
7935 $RM conftest*
7936
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7939 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7940
7941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7942 case $lt_prog_compiler_pic in
7943 "" | " "*) ;;
7944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7945 esac
7946 else
7947 lt_prog_compiler_pic=
7948 lt_prog_compiler_can_build_shared=no
7949 fi
7950
7951 fi
7952
7953
7954
7955
7956
7957
7958 #
7959 # Check to make sure the static flag actually works.
7960 #
7961 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7963 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7964 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 lt_cv_prog_compiler_static_works=no
7968 save_LDFLAGS="$LDFLAGS"
7969 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7970 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7971 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7972 # The linker can only warn and ignore the option if not recognized
7973 # So say no if there are warnings
7974 if test -s conftest.err; then
7975 # Append any errors to the config.log.
7976 cat conftest.err 1>&5
7977 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7979 if diff conftest.exp conftest.er2 >/dev/null; then
7980 lt_cv_prog_compiler_static_works=yes
7981 fi
7982 else
7983 lt_cv_prog_compiler_static_works=yes
7984 fi
7985 fi
7986 $RM -r conftest*
7987 LDFLAGS="$save_LDFLAGS"
7988
7989 fi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7991 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7992
7993 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7994 :
7995 else
7996 lt_prog_compiler_static=
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8006 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8007 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 lt_cv_prog_compiler_c_o=no
8011 $RM -r conftest 2>/dev/null
8012 mkdir conftest
8013 cd conftest
8014 mkdir out
8015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8016
8017 lt_compiler_flag="-o out/conftest2.$ac_objext"
8018 # Insert the option either (1) after the last *FLAGS variable, or
8019 # (2) before a word containing "conftest.", or (3) at the end.
8020 # Note that $ac_compile itself does not contain backslashes and begins
8021 # with a dollar sign (not a hyphen), so the echo should work correctly.
8022 lt_compile=`echo "$ac_compile" | $SED \
8023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8025 -e 's:$: $lt_compiler_flag:'`
8026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8027 (eval "$lt_compile" 2>out/conftest.err)
8028 ac_status=$?
8029 cat out/conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8032 then
8033 # The compiler can only warn and ignore the option if not recognized
8034 # So say no if there are warnings
8035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8038 lt_cv_prog_compiler_c_o=yes
8039 fi
8040 fi
8041 chmod u+w . 2>&5
8042 $RM conftest*
8043 # SGI C++ compiler will create directory out/ii_files/ for
8044 # template instantiation
8045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8046 $RM out/* && rmdir out
8047 cd ..
8048 $RM -r conftest
8049 $RM conftest*
8050
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8053 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8054
8055
8056
8057
8058
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8062 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 lt_cv_prog_compiler_c_o=no
8066 $RM -r conftest 2>/dev/null
8067 mkdir conftest
8068 cd conftest
8069 mkdir out
8070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8071
8072 lt_compiler_flag="-o out/conftest2.$ac_objext"
8073 # Insert the option either (1) after the last *FLAGS variable, or
8074 # (2) before a word containing "conftest.", or (3) at the end.
8075 # Note that $ac_compile itself does not contain backslashes and begins
8076 # with a dollar sign (not a hyphen), so the echo should work correctly.
8077 lt_compile=`echo "$ac_compile" | $SED \
8078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080 -e 's:$: $lt_compiler_flag:'`
8081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8082 (eval "$lt_compile" 2>out/conftest.err)
8083 ac_status=$?
8084 cat out/conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8087 then
8088 # The compiler can only warn and ignore the option if not recognized
8089 # So say no if there are warnings
8090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8093 lt_cv_prog_compiler_c_o=yes
8094 fi
8095 fi
8096 chmod u+w . 2>&5
8097 $RM conftest*
8098 # SGI C++ compiler will create directory out/ii_files/ for
8099 # template instantiation
8100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8101 $RM out/* && rmdir out
8102 cd ..
8103 $RM -r conftest
8104 $RM conftest*
8105
8106 fi
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8108 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8109
8110
8111
8112
8113 hard_links="nottested"
8114 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8115 # do not overwrite the value of need_locks provided by the user
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8117 $as_echo_n "checking if we can lock with hard links... " >&6; }
8118 hard_links=yes
8119 $RM conftest*
8120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8121 touch conftest.a
8122 ln conftest.a conftest.b 2>&5 || hard_links=no
8123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8125 $as_echo "$hard_links" >&6; }
8126 if test "$hard_links" = no; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8129 need_locks=warn
8130 fi
8131 else
8132 need_locks=no
8133 fi
8134
8135
8136
8137
8138
8139
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8141 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8142
8143 runpath_var=
8144 allow_undefined_flag=
8145 always_export_symbols=no
8146 archive_cmds=
8147 archive_expsym_cmds=
8148 compiler_needs_object=no
8149 enable_shared_with_static_runtimes=no
8150 export_dynamic_flag_spec=
8151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8152 hardcode_automatic=no
8153 hardcode_direct=no
8154 hardcode_direct_absolute=no
8155 hardcode_libdir_flag_spec=
8156 hardcode_libdir_flag_spec_ld=
8157 hardcode_libdir_separator=
8158 hardcode_minus_L=no
8159 hardcode_shlibpath_var=unsupported
8160 inherit_rpath=no
8161 link_all_deplibs=unknown
8162 module_cmds=
8163 module_expsym_cmds=
8164 old_archive_from_new_cmds=
8165 old_archive_from_expsyms_cmds=
8166 thread_safe_flag_spec=
8167 whole_archive_flag_spec=
8168 # include_expsyms should be a list of space-separated symbols to be *always*
8169 # included in the symbol list
8170 include_expsyms=
8171 # exclude_expsyms can be an extended regexp of symbols to exclude
8172 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8173 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8174 # as well as any symbol that contains `d'.
8175 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8176 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8177 # platforms (ab)use it in PIC code, but their linkers get confused if
8178 # the symbol is explicitly referenced. Since portable code cannot
8179 # rely on this symbol name, it's probably fine to never include it in
8180 # preloaded symbol tables.
8181 # Exclude shared library initialization/finalization symbols.
8182 extract_expsyms_cmds=
8183
8184 case $host_os in
8185 cygwin* | mingw* | pw32* | cegcc*)
8186 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8187 # When not using gcc, we currently assume that we are using
8188 # Microsoft Visual C++.
8189 if test "$GCC" != yes; then
8190 with_gnu_ld=no
8191 fi
8192 ;;
8193 interix*)
8194 # we just hope/assume this is gcc and not c89 (= MSVC++)
8195 with_gnu_ld=yes
8196 ;;
8197 openbsd*)
8198 with_gnu_ld=no
8199 ;;
8200 esac
8201
8202 ld_shlibs=yes
8203
8204 # On some targets, GNU ld is compatible enough with the native linker
8205 # that we're better off using the native interface for both.
8206 lt_use_gnu_ld_interface=no
8207 if test "$with_gnu_ld" = yes; then
8208 case $host_os in
8209 aix*)
8210 # The AIX port of GNU ld has always aspired to compatibility
8211 # with the native linker. However, as the warning in the GNU ld
8212 # block says, versions before 2.19.5* couldn't really create working
8213 # shared libraries, regardless of the interface used.
8214 case `$LD -v 2>&1` in
8215 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8216 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8217 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8218 *)
8219 lt_use_gnu_ld_interface=yes
8220 ;;
8221 esac
8222 ;;
8223 *)
8224 lt_use_gnu_ld_interface=yes
8225 ;;
8226 esac
8227 fi
8228
8229 if test "$lt_use_gnu_ld_interface" = yes; then
8230 # If archive_cmds runs LD, not CC, wlarc should be empty
8231 wlarc='${wl}'
8232
8233 # Set some defaults for GNU ld with shared library support. These
8234 # are reset later if shared libraries are not supported. Putting them
8235 # here allows them to be overridden if necessary.
8236 runpath_var=LD_RUN_PATH
8237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8238 export_dynamic_flag_spec='${wl}--export-dynamic'
8239 # ancient GNU ld didn't support --whole-archive et. al.
8240 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8241 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8242 else
8243 whole_archive_flag_spec=
8244 fi
8245 supports_anon_versioning=no
8246 case `$LD -v 2>&1` in
8247 *GNU\ gold*) supports_anon_versioning=yes ;;
8248 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8249 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8250 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8251 *\ 2.11.*) ;; # other 2.11 versions
8252 *) supports_anon_versioning=yes ;;
8253 esac
8254
8255 # See if GNU ld supports shared libraries.
8256 case $host_os in
8257 aix[3-9]*)
8258 # On AIX/PPC, the GNU linker is very broken
8259 if test "$host_cpu" != ia64; then
8260 ld_shlibs=no
8261 cat <<_LT_EOF 1>&2
8262
8263 *** Warning: the GNU linker, at least up to release 2.19, is reported
8264 *** to be unable to reliably create shared libraries on AIX.
8265 *** Therefore, libtool is disabling shared libraries support. If you
8266 *** really care for shared libraries, you may want to install binutils
8267 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8268 *** You will then need to restart the configuration process.
8269
8270 _LT_EOF
8271 fi
8272 ;;
8273
8274 amigaos*)
8275 case $host_cpu in
8276 powerpc)
8277 # see comment about AmigaOS4 .so support
8278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8279 archive_expsym_cmds=''
8280 ;;
8281 m68k)
8282 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)'
8283 hardcode_libdir_flag_spec='-L$libdir'
8284 hardcode_minus_L=yes
8285 ;;
8286 esac
8287 ;;
8288
8289 beos*)
8290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8291 allow_undefined_flag=unsupported
8292 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8293 # support --undefined. This deserves some investigation. FIXME
8294 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295 else
8296 ld_shlibs=no
8297 fi
8298 ;;
8299
8300 cygwin* | mingw* | pw32* | cegcc*)
8301 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8302 # as there is no search path for DLLs.
8303 hardcode_libdir_flag_spec='-L$libdir'
8304 export_dynamic_flag_spec='${wl}--export-all-symbols'
8305 allow_undefined_flag=unsupported
8306 always_export_symbols=no
8307 enable_shared_with_static_runtimes=yes
8308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8309
8310 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8312 # If the export-symbols file already is a .def file (1st line
8313 # is EXPORTS), use it as is; otherwise, prepend...
8314 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8315 cp $export_symbols $output_objdir/$soname.def;
8316 else
8317 echo EXPORTS > $output_objdir/$soname.def;
8318 cat $export_symbols >> $output_objdir/$soname.def;
8319 fi~
8320 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8321 else
8322 ld_shlibs=no
8323 fi
8324 ;;
8325
8326 haiku*)
8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 link_all_deplibs=yes
8329 ;;
8330
8331 interix[3-9]*)
8332 hardcode_direct=no
8333 hardcode_shlibpath_var=no
8334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8335 export_dynamic_flag_spec='${wl}-E'
8336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8337 # Instead, shared libraries are loaded at an image base (0x10000000 by
8338 # default) and relocated if they conflict, which is a slow very memory
8339 # consuming and fragmenting process. To avoid this, we pick a random,
8340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8343 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'
8344 ;;
8345
8346 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8347 tmp_diet=no
8348 if test "$host_os" = linux-dietlibc; then
8349 case $cc_basename in
8350 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8351 esac
8352 fi
8353 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8354 && test "$tmp_diet" = no
8355 then
8356 tmp_addflag=' $pic_flag'
8357 tmp_sharedflag='-shared'
8358 case $cc_basename,$host_cpu in
8359 pgcc*) # Portland Group C compiler
8360 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'
8361 tmp_addflag=' $pic_flag'
8362 ;;
8363 pgf77* | pgf90* | pgf95* | pgfortran*)
8364 # Portland Group f77 and f90 compilers
8365 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'
8366 tmp_addflag=' $pic_flag -Mnomain' ;;
8367 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8368 tmp_addflag=' -i_dynamic' ;;
8369 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8370 tmp_addflag=' -i_dynamic -nofor_main' ;;
8371 ifc* | ifort*) # Intel Fortran compiler
8372 tmp_addflag=' -nofor_main' ;;
8373 lf95*) # Lahey Fortran 8.1
8374 whole_archive_flag_spec=
8375 tmp_sharedflag='--shared' ;;
8376 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8377 tmp_sharedflag='-qmkshrobj'
8378 tmp_addflag= ;;
8379 nvcc*) # Cuda Compiler Driver 2.2
8380 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'
8381 compiler_needs_object=yes
8382 ;;
8383 esac
8384 case `$CC -V 2>&1 | sed 5q` in
8385 *Sun\ C*) # Sun C 5.9
8386 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'
8387 compiler_needs_object=yes
8388 tmp_sharedflag='-G' ;;
8389 *Sun\ F*) # Sun Fortran 8.3
8390 tmp_sharedflag='-G' ;;
8391 esac
8392 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393
8394 if test "x$supports_anon_versioning" = xyes; then
8395 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8396 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8397 echo "local: *; };" >> $output_objdir/$libname.ver~
8398 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8399 fi
8400
8401 case $cc_basename in
8402 xlf* | bgf* | bgxlf* | mpixlf*)
8403 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8404 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8405 hardcode_libdir_flag_spec=
8406 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8407 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8408 if test "x$supports_anon_versioning" = xyes; then
8409 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8410 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8411 echo "local: *; };" >> $output_objdir/$libname.ver~
8412 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8413 fi
8414 ;;
8415 esac
8416 else
8417 ld_shlibs=no
8418 fi
8419 ;;
8420
8421 netbsd*)
8422 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8423 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8424 wlarc=
8425 else
8426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 fi
8429 ;;
8430
8431 solaris*)
8432 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8433 ld_shlibs=no
8434 cat <<_LT_EOF 1>&2
8435
8436 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8437 *** create shared libraries on Solaris systems. Therefore, libtool
8438 *** is disabling shared libraries support. We urge you to upgrade GNU
8439 *** binutils to release 2.9.1 or newer. Another option is to modify
8440 *** your PATH or compiler configuration so that the native linker is
8441 *** used, and then restart.
8442
8443 _LT_EOF
8444 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8447 else
8448 ld_shlibs=no
8449 fi
8450 ;;
8451
8452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8453 case `$LD -v 2>&1` in
8454 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8455 ld_shlibs=no
8456 cat <<_LT_EOF 1>&2
8457
8458 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8459 *** reliably create shared libraries on SCO systems. Therefore, libtool
8460 *** is disabling shared libraries support. We urge you to upgrade GNU
8461 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8462 *** your PATH or compiler configuration so that the native linker is
8463 *** used, and then restart.
8464
8465 _LT_EOF
8466 ;;
8467 *)
8468 # For security reasons, it is highly recommended that you always
8469 # use absolute paths for naming shared libraries, and exclude the
8470 # DT_RUNPATH tag from executables and libraries. But doing so
8471 # requires that you compile everything twice, which is a pain.
8472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476 else
8477 ld_shlibs=no
8478 fi
8479 ;;
8480 esac
8481 ;;
8482
8483 sunos4*)
8484 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8485 wlarc=
8486 hardcode_direct=yes
8487 hardcode_shlibpath_var=no
8488 ;;
8489
8490 *)
8491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8494 else
8495 ld_shlibs=no
8496 fi
8497 ;;
8498 esac
8499
8500 if test "$ld_shlibs" = no; then
8501 runpath_var=
8502 hardcode_libdir_flag_spec=
8503 export_dynamic_flag_spec=
8504 whole_archive_flag_spec=
8505 fi
8506 else
8507 # PORTME fill in a description of your system's linker (not GNU ld)
8508 case $host_os in
8509 aix3*)
8510 allow_undefined_flag=unsupported
8511 always_export_symbols=yes
8512 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'
8513 # Note: this linker hardcodes the directories in LIBPATH if there
8514 # are no directories specified by -L.
8515 hardcode_minus_L=yes
8516 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8517 # Neither direct hardcoding nor static linking is supported with a
8518 # broken collect2.
8519 hardcode_direct=unsupported
8520 fi
8521 ;;
8522
8523 aix[4-9]*)
8524 if test "$host_cpu" = ia64; then
8525 # On IA64, the linker does run time linking by default, so we don't
8526 # have to do anything special.
8527 aix_use_runtimelinking=no
8528 exp_sym_flag='-Bexport'
8529 no_entry_flag=""
8530 else
8531 # If we're using GNU nm, then we don't want the "-C" option.
8532 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8533 # Also, AIX nm treats weak defined symbols like other global
8534 # defined symbols, whereas GNU nm marks them as "W".
8535 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8536 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'
8537 else
8538 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8539 fi
8540 aix_use_runtimelinking=no
8541
8542 # Test if we are trying to use run time linking or normal
8543 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8544 # need to do runtime linking.
8545 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8546 for ld_flag in $LDFLAGS; do
8547 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8548 aix_use_runtimelinking=yes
8549 break
8550 fi
8551 done
8552 ;;
8553 esac
8554
8555 exp_sym_flag='-bexport'
8556 no_entry_flag='-bnoentry'
8557 fi
8558
8559 # When large executables or shared objects are built, AIX ld can
8560 # have problems creating the table of contents. If linking a library
8561 # or program results in "error TOC overflow" add -mminimal-toc to
8562 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8563 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8564
8565 archive_cmds=''
8566 hardcode_direct=yes
8567 hardcode_direct_absolute=yes
8568 hardcode_libdir_separator=':'
8569 link_all_deplibs=yes
8570 file_list_spec='${wl}-f,'
8571
8572 if test "$GCC" = yes; then
8573 case $host_os in aix4.[012]|aix4.[012].*)
8574 # We only want to do this on AIX 4.2 and lower, the check
8575 # below for broken collect2 doesn't work under 4.3+
8576 collect2name=`${CC} -print-prog-name=collect2`
8577 if test -f "$collect2name" &&
8578 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8579 then
8580 # We have reworked collect2
8581 :
8582 else
8583 # We have old collect2
8584 hardcode_direct=unsupported
8585 # It fails to find uninstalled libraries when the uninstalled
8586 # path is not listed in the libpath. Setting hardcode_minus_L
8587 # to unsupported forces relinking
8588 hardcode_minus_L=yes
8589 hardcode_libdir_flag_spec='-L$libdir'
8590 hardcode_libdir_separator=
8591 fi
8592 ;;
8593 esac
8594 shared_flag='-shared'
8595 if test "$aix_use_runtimelinking" = yes; then
8596 shared_flag="$shared_flag "'${wl}-G'
8597 fi
8598 else
8599 # not using gcc
8600 if test "$host_cpu" = ia64; then
8601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8602 # chokes on -Wl,-G. The following line is correct:
8603 shared_flag='-G'
8604 else
8605 if test "$aix_use_runtimelinking" = yes; then
8606 shared_flag='${wl}-G'
8607 else
8608 shared_flag='${wl}-bM:SRE'
8609 fi
8610 fi
8611 fi
8612
8613 export_dynamic_flag_spec='${wl}-bexpall'
8614 # It seems that -bexpall does not export symbols beginning with
8615 # underscore (_), so it is better to generate a list of symbols to export.
8616 always_export_symbols=yes
8617 if test "$aix_use_runtimelinking" = yes; then
8618 # Warning - without using the other runtime loading flags (-brtl),
8619 # -berok will link without error, but may produce a broken library.
8620 allow_undefined_flag='-berok'
8621 # Determine the default libpath from the value encoded in an
8622 # empty executable.
8623 if test x$gcc_no_link = xyes; then
8624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8625 fi
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628
8629 int
8630 main ()
8631 {
8632
8633 ;
8634 return 0;
8635 }
8636 _ACEOF
8637 if ac_fn_c_try_link "$LINENO"; then :
8638
8639 lt_aix_libpath_sed='
8640 /Import File Strings/,/^$/ {
8641 /^0/ {
8642 s/^0 *\(.*\)$/\1/
8643 p
8644 }
8645 }'
8646 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8647 # Check for a 64-bit object if we didn't find anything.
8648 if test -z "$aix_libpath"; then
8649 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8650 fi
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8655
8656 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8657 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"
8658 else
8659 if test "$host_cpu" = ia64; then
8660 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8661 allow_undefined_flag="-z nodefs"
8662 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"
8663 else
8664 # Determine the default libpath from the value encoded in an
8665 # empty executable.
8666 if test x$gcc_no_link = xyes; then
8667 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8668 fi
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8671
8672 int
8673 main ()
8674 {
8675
8676 ;
8677 return 0;
8678 }
8679 _ACEOF
8680 if ac_fn_c_try_link "$LINENO"; then :
8681
8682 lt_aix_libpath_sed='
8683 /Import File Strings/,/^$/ {
8684 /^0/ {
8685 s/^0 *\(.*\)$/\1/
8686 p
8687 }
8688 }'
8689 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8690 # Check for a 64-bit object if we didn't find anything.
8691 if test -z "$aix_libpath"; then
8692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8693 fi
8694 fi
8695 rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8698
8699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8700 # Warning - without using the other run time loading flags,
8701 # -berok will link without error, but may produce a broken library.
8702 no_undefined_flag=' ${wl}-bernotok'
8703 allow_undefined_flag=' ${wl}-berok'
8704 if test "$with_gnu_ld" = yes; then
8705 # We only use this code for GNU lds that support --whole-archive.
8706 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8707 else
8708 # Exported symbols can be pulled into shared objects from archives
8709 whole_archive_flag_spec='$convenience'
8710 fi
8711 archive_cmds_need_lc=yes
8712 # This is similar to how AIX traditionally builds its shared libraries.
8713 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'
8714 fi
8715 fi
8716 ;;
8717
8718 amigaos*)
8719 case $host_cpu in
8720 powerpc)
8721 # see comment about AmigaOS4 .so support
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds=''
8724 ;;
8725 m68k)
8726 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)'
8727 hardcode_libdir_flag_spec='-L$libdir'
8728 hardcode_minus_L=yes
8729 ;;
8730 esac
8731 ;;
8732
8733 bsdi[45]*)
8734 export_dynamic_flag_spec=-rdynamic
8735 ;;
8736
8737 cygwin* | mingw* | pw32* | cegcc*)
8738 # When not using gcc, we currently assume that we are using
8739 # Microsoft Visual C++.
8740 # hardcode_libdir_flag_spec is actually meaningless, as there is
8741 # no search path for DLLs.
8742 hardcode_libdir_flag_spec=' '
8743 allow_undefined_flag=unsupported
8744 # Tell ltmain to make .lib files, not .a files.
8745 libext=lib
8746 # Tell ltmain to make .dll files, not .so files.
8747 shrext_cmds=".dll"
8748 # FIXME: Setting linknames here is a bad hack.
8749 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8750 # The linker will automatically build a .lib file if we build a DLL.
8751 old_archive_from_new_cmds='true'
8752 # FIXME: Should let the user specify the lib program.
8753 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8754 fix_srcfile_path='`cygpath -w "$srcfile"`'
8755 enable_shared_with_static_runtimes=yes
8756 ;;
8757
8758 darwin* | rhapsody*)
8759
8760
8761 archive_cmds_need_lc=no
8762 hardcode_direct=no
8763 hardcode_automatic=yes
8764 hardcode_shlibpath_var=unsupported
8765 if test "$lt_cv_ld_force_load" = "yes"; then
8766 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\"`'
8767 else
8768 whole_archive_flag_spec=''
8769 fi
8770 link_all_deplibs=yes
8771 allow_undefined_flag="$_lt_dar_allow_undefined"
8772 case $cc_basename in
8773 ifort*) _lt_dar_can_shared=yes ;;
8774 *) _lt_dar_can_shared=$GCC ;;
8775 esac
8776 if test "$_lt_dar_can_shared" = "yes"; then
8777 output_verbose_link_cmd=func_echo_all
8778 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8779 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8780 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}"
8781 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}"
8782
8783 else
8784 ld_shlibs=no
8785 fi
8786
8787 ;;
8788
8789 dgux*)
8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_libdir_flag_spec='-L$libdir'
8792 hardcode_shlibpath_var=no
8793 ;;
8794
8795 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8796 # support. Future versions do this automatically, but an explicit c++rt0.o
8797 # does not break anything, and helps significantly (at the cost of a little
8798 # extra space).
8799 freebsd2.2*)
8800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8801 hardcode_libdir_flag_spec='-R$libdir'
8802 hardcode_direct=yes
8803 hardcode_shlibpath_var=no
8804 ;;
8805
8806 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8807 freebsd2.*)
8808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_direct=yes
8810 hardcode_minus_L=yes
8811 hardcode_shlibpath_var=no
8812 ;;
8813
8814 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8815 freebsd* | dragonfly*)
8816 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8817 hardcode_libdir_flag_spec='-R$libdir'
8818 hardcode_direct=yes
8819 hardcode_shlibpath_var=no
8820 ;;
8821
8822 hpux9*)
8823 if test "$GCC" = yes; then
8824 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'
8825 else
8826 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'
8827 fi
8828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8829 hardcode_libdir_separator=:
8830 hardcode_direct=yes
8831
8832 # hardcode_minus_L: Not really in the search PATH,
8833 # but as the default location of the library.
8834 hardcode_minus_L=yes
8835 export_dynamic_flag_spec='${wl}-E'
8836 ;;
8837
8838 hpux10*)
8839 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8840 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841 else
8842 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8843 fi
8844 if test "$with_gnu_ld" = no; then
8845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8846 hardcode_libdir_flag_spec_ld='+b $libdir'
8847 hardcode_libdir_separator=:
8848 hardcode_direct=yes
8849 hardcode_direct_absolute=yes
8850 export_dynamic_flag_spec='${wl}-E'
8851 # hardcode_minus_L: Not really in the search PATH,
8852 # but as the default location of the library.
8853 hardcode_minus_L=yes
8854 fi
8855 ;;
8856
8857 hpux11*)
8858 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8859 case $host_cpu in
8860 hppa*64*)
8861 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862 ;;
8863 ia64*)
8864 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8865 ;;
8866 *)
8867 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8868 ;;
8869 esac
8870 else
8871 case $host_cpu in
8872 hppa*64*)
8873 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8874 ;;
8875 ia64*)
8876 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8877 ;;
8878 *)
8879
8880 # Older versions of the 11.00 compiler do not understand -b yet
8881 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8883 $as_echo_n "checking if $CC understands -b... " >&6; }
8884 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 lt_cv_prog_compiler__b=no
8888 save_LDFLAGS="$LDFLAGS"
8889 LDFLAGS="$LDFLAGS -b"
8890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8892 # The linker can only warn and ignore the option if not recognized
8893 # So say no if there are warnings
8894 if test -s conftest.err; then
8895 # Append any errors to the config.log.
8896 cat conftest.err 1>&5
8897 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8899 if diff conftest.exp conftest.er2 >/dev/null; then
8900 lt_cv_prog_compiler__b=yes
8901 fi
8902 else
8903 lt_cv_prog_compiler__b=yes
8904 fi
8905 fi
8906 $RM -r conftest*
8907 LDFLAGS="$save_LDFLAGS"
8908
8909 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8911 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8912
8913 if test x"$lt_cv_prog_compiler__b" = xyes; then
8914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8915 else
8916 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8917 fi
8918
8919 ;;
8920 esac
8921 fi
8922 if test "$with_gnu_ld" = no; then
8923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8924 hardcode_libdir_separator=:
8925
8926 case $host_cpu in
8927 hppa*64*|ia64*)
8928 hardcode_direct=no
8929 hardcode_shlibpath_var=no
8930 ;;
8931 *)
8932 hardcode_direct=yes
8933 hardcode_direct_absolute=yes
8934 export_dynamic_flag_spec='${wl}-E'
8935
8936 # hardcode_minus_L: Not really in the search PATH,
8937 # but as the default location of the library.
8938 hardcode_minus_L=yes
8939 ;;
8940 esac
8941 fi
8942 ;;
8943
8944 irix5* | irix6* | nonstopux*)
8945 if test "$GCC" = yes; then
8946 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'
8947 # Try to use the -exported_symbol ld option, if it does not
8948 # work, assume that -exports_file does not work either and
8949 # implicitly export all symbols.
8950 save_LDFLAGS="$LDFLAGS"
8951 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8952 if test x$gcc_no_link = xyes; then
8953 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8954 fi
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8957 int foo(void) {}
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 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'
8961
8962 fi
8963 rm -f core conftest.err conftest.$ac_objext \
8964 conftest$ac_exeext conftest.$ac_ext
8965 LDFLAGS="$save_LDFLAGS"
8966 else
8967 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'
8968 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'
8969 fi
8970 archive_cmds_need_lc='no'
8971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8972 hardcode_libdir_separator=:
8973 inherit_rpath=yes
8974 link_all_deplibs=yes
8975 ;;
8976
8977 netbsd*)
8978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8980 else
8981 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8982 fi
8983 hardcode_libdir_flag_spec='-R$libdir'
8984 hardcode_direct=yes
8985 hardcode_shlibpath_var=no
8986 ;;
8987
8988 newsos6)
8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8990 hardcode_direct=yes
8991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992 hardcode_libdir_separator=:
8993 hardcode_shlibpath_var=no
8994 ;;
8995
8996 *nto* | *qnx*)
8997 ;;
8998
8999 openbsd*)
9000 if test -f /usr/libexec/ld.so; then
9001 hardcode_direct=yes
9002 hardcode_shlibpath_var=no
9003 hardcode_direct_absolute=yes
9004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9008 export_dynamic_flag_spec='${wl}-E'
9009 else
9010 case $host_os in
9011 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_libdir_flag_spec='-R$libdir'
9014 ;;
9015 *)
9016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9018 ;;
9019 esac
9020 fi
9021 else
9022 ld_shlibs=no
9023 fi
9024 ;;
9025
9026 os2*)
9027 hardcode_libdir_flag_spec='-L$libdir'
9028 hardcode_minus_L=yes
9029 allow_undefined_flag=unsupported
9030 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'
9031 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9032 ;;
9033
9034 osf3*)
9035 if test "$GCC" = yes; then
9036 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9037 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'
9038 else
9039 allow_undefined_flag=' -expect_unresolved \*'
9040 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'
9041 fi
9042 archive_cmds_need_lc='no'
9043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9044 hardcode_libdir_separator=:
9045 ;;
9046
9047 osf4* | osf5*) # as osf3* with the addition of -msym flag
9048 if test "$GCC" = yes; then
9049 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9050 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'
9051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052 else
9053 allow_undefined_flag=' -expect_unresolved \*'
9054 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'
9055 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~
9056 $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'
9057
9058 # Both c and cxx compiler support -rpath directly
9059 hardcode_libdir_flag_spec='-rpath $libdir'
9060 fi
9061 archive_cmds_need_lc='no'
9062 hardcode_libdir_separator=:
9063 ;;
9064
9065 solaris*)
9066 no_undefined_flag=' -z defs'
9067 if test "$GCC" = yes; then
9068 wlarc='${wl}'
9069 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9071 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9072 else
9073 case `$CC -V 2>&1` in
9074 *"Compilers 5.0"*)
9075 wlarc=''
9076 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9079 ;;
9080 *)
9081 wlarc='${wl}'
9082 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9084 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9085 ;;
9086 esac
9087 fi
9088 hardcode_libdir_flag_spec='-R$libdir'
9089 hardcode_shlibpath_var=no
9090 case $host_os in
9091 solaris2.[0-5] | solaris2.[0-5].*) ;;
9092 *)
9093 # The compiler driver will combine and reorder linker options,
9094 # but understands `-z linker_flag'. GCC discards it without `$wl',
9095 # but is careful enough not to reorder.
9096 # Supported since Solaris 2.6 (maybe 2.5.1?)
9097 if test "$GCC" = yes; then
9098 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9099 else
9100 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9101 fi
9102 ;;
9103 esac
9104 link_all_deplibs=yes
9105 ;;
9106
9107 sunos4*)
9108 if test "x$host_vendor" = xsequent; then
9109 # Use $CC to link under sequent, because it throws in some extra .o
9110 # files that make .init and .fini sections work.
9111 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9112 else
9113 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9114 fi
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 hardcode_direct=yes
9117 hardcode_minus_L=yes
9118 hardcode_shlibpath_var=no
9119 ;;
9120
9121 sysv4)
9122 case $host_vendor in
9123 sni)
9124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_direct=yes # is this really true???
9126 ;;
9127 siemens)
9128 ## LD is ld it makes a PLAMLIB
9129 ## CC just makes a GrossModule.
9130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9131 reload_cmds='$CC -r -o $output$reload_objs'
9132 hardcode_direct=no
9133 ;;
9134 motorola)
9135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9137 ;;
9138 esac
9139 runpath_var='LD_RUN_PATH'
9140 hardcode_shlibpath_var=no
9141 ;;
9142
9143 sysv4.3*)
9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_shlibpath_var=no
9146 export_dynamic_flag_spec='-Bexport'
9147 ;;
9148
9149 sysv4*MP*)
9150 if test -d /usr/nec; then
9151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_shlibpath_var=no
9153 runpath_var=LD_RUN_PATH
9154 hardcode_runpath_var=yes
9155 ld_shlibs=yes
9156 fi
9157 ;;
9158
9159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9160 no_undefined_flag='${wl}-z,text'
9161 archive_cmds_need_lc=no
9162 hardcode_shlibpath_var=no
9163 runpath_var='LD_RUN_PATH'
9164
9165 if test "$GCC" = yes; then
9166 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9168 else
9169 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9170 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 fi
9172 ;;
9173
9174 sysv5* | sco3.2v5* | sco5v6*)
9175 # Note: We can NOT use -z defs as we might desire, because we do not
9176 # link with -lc, and that would cause any symbols used from libc to
9177 # always be unresolved, which means just about no library would
9178 # ever link correctly. If we're not using GNU ld we use -z text
9179 # though, which does catch some bad symbols but isn't as heavy-handed
9180 # as -z defs.
9181 no_undefined_flag='${wl}-z,text'
9182 allow_undefined_flag='${wl}-z,nodefs'
9183 archive_cmds_need_lc=no
9184 hardcode_shlibpath_var=no
9185 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9186 hardcode_libdir_separator=':'
9187 link_all_deplibs=yes
9188 export_dynamic_flag_spec='${wl}-Bexport'
9189 runpath_var='LD_RUN_PATH'
9190
9191 if test "$GCC" = yes; then
9192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9194 else
9195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 fi
9198 ;;
9199
9200 uts4*)
9201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9202 hardcode_libdir_flag_spec='-L$libdir'
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 *)
9207 ld_shlibs=no
9208 ;;
9209 esac
9210
9211 if test x$host_vendor = xsni; then
9212 case $host in
9213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9214 export_dynamic_flag_spec='${wl}-Blargedynsym'
9215 ;;
9216 esac
9217 fi
9218 fi
9219
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9221 $as_echo "$ld_shlibs" >&6; }
9222 test "$ld_shlibs" = no && can_build_shared=no
9223
9224 with_gnu_ld=$with_gnu_ld
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240 #
9241 # Do we need to explicitly link libc?
9242 #
9243 case "x$archive_cmds_need_lc" in
9244 x|xyes)
9245 # Assume -lc should be added
9246 archive_cmds_need_lc=yes
9247
9248 if test "$enable_shared" = yes && test "$GCC" = yes; then
9249 case $archive_cmds in
9250 *'~'*)
9251 # FIXME: we may have to deal with multi-command sequences.
9252 ;;
9253 '$CC '*)
9254 # Test whether the compiler implicitly links with -lc since on some
9255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9256 # to ld, don't add -lc before -lgcc.
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9258 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9259 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9261 else
9262 $RM conftest*
9263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9264
9265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9266 (eval $ac_compile) 2>&5
9267 ac_status=$?
9268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9269 test $ac_status = 0; } 2>conftest.err; then
9270 soname=conftest
9271 lib=conftest
9272 libobjs=conftest.$ac_objext
9273 deplibs=
9274 wl=$lt_prog_compiler_wl
9275 pic_flag=$lt_prog_compiler_pic
9276 compiler_flags=-v
9277 linker_flags=-v
9278 verstring=
9279 output_objdir=.
9280 libname=conftest
9281 lt_save_allow_undefined_flag=$allow_undefined_flag
9282 allow_undefined_flag=
9283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9284 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9285 ac_status=$?
9286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9287 test $ac_status = 0; }
9288 then
9289 lt_cv_archive_cmds_need_lc=no
9290 else
9291 lt_cv_archive_cmds_need_lc=yes
9292 fi
9293 allow_undefined_flag=$lt_save_allow_undefined_flag
9294 else
9295 cat conftest.err 1>&5
9296 fi
9297 $RM conftest*
9298
9299 fi
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9301 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9302 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9303 ;;
9304 esac
9305 fi
9306 ;;
9307 esac
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9467
9468 if test "$GCC" = yes; then
9469 case $host_os in
9470 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9471 *) lt_awk_arg="/^libraries:/" ;;
9472 esac
9473 case $host_os in
9474 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9475 *) lt_sed_strip_eq="s,=/,/,g" ;;
9476 esac
9477 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9478 case $lt_search_path_spec in
9479 *\;*)
9480 # if the path contains ";" then we assume it to be the separator
9481 # otherwise default to the standard path separator (i.e. ":") - it is
9482 # assumed that no part of a normal pathname contains ";" but that should
9483 # okay in the real world where ";" in dirpaths is itself problematic.
9484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9485 ;;
9486 *)
9487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9488 ;;
9489 esac
9490 # Ok, now we have the path, separated by spaces, we can step through it
9491 # and add multilib dir if necessary.
9492 lt_tmp_lt_search_path_spec=
9493 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9494 for lt_sys_path in $lt_search_path_spec; do
9495 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9496 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9497 else
9498 test -d "$lt_sys_path" && \
9499 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9500 fi
9501 done
9502 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9503 BEGIN {RS=" "; FS="/|\n";} {
9504 lt_foo="";
9505 lt_count=0;
9506 for (lt_i = NF; lt_i > 0; lt_i--) {
9507 if ($lt_i != "" && $lt_i != ".") {
9508 if ($lt_i == "..") {
9509 lt_count++;
9510 } else {
9511 if (lt_count == 0) {
9512 lt_foo="/" $lt_i lt_foo;
9513 } else {
9514 lt_count--;
9515 }
9516 }
9517 }
9518 }
9519 if (lt_foo != "") { lt_freq[lt_foo]++; }
9520 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9521 }'`
9522 # AWK program above erroneously prepends '/' to C:/dos/paths
9523 # for these hosts.
9524 case $host_os in
9525 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9526 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9527 esac
9528 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9529 else
9530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9531 fi
9532 library_names_spec=
9533 libname_spec='lib$name'
9534 soname_spec=
9535 shrext_cmds=".so"
9536 postinstall_cmds=
9537 postuninstall_cmds=
9538 finish_cmds=
9539 finish_eval=
9540 shlibpath_var=
9541 shlibpath_overrides_runpath=unknown
9542 version_type=none
9543 dynamic_linker="$host_os ld.so"
9544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9545 need_lib_prefix=unknown
9546 hardcode_into_libs=no
9547
9548 # when you set need_version to no, make sure it does not cause -set_version
9549 # flags to be left without arguments
9550 need_version=unknown
9551
9552 case $host_os in
9553 aix3*)
9554 version_type=linux
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9556 shlibpath_var=LIBPATH
9557
9558 # AIX 3 has no versioning support, so we append a major version to the name.
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 ;;
9561
9562 aix[4-9]*)
9563 version_type=linux
9564 need_lib_prefix=no
9565 need_version=no
9566 hardcode_into_libs=yes
9567 if test "$host_cpu" = ia64; then
9568 # AIX 5 supports IA64
9569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9570 shlibpath_var=LD_LIBRARY_PATH
9571 else
9572 # With GCC up to 2.95.x, collect2 would create an import file
9573 # for dependence libraries. The import file would start with
9574 # the line `#! .'. This would cause the generated library to
9575 # depend on `.', always an invalid library. This was fixed in
9576 # development snapshots of GCC prior to 3.0.
9577 case $host_os in
9578 aix4 | aix4.[01] | aix4.[01].*)
9579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9580 echo ' yes '
9581 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9582 :
9583 else
9584 can_build_shared=no
9585 fi
9586 ;;
9587 esac
9588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9589 # soname into executable. Probably we can add versioning support to
9590 # collect2, so additional links can be useful in future.
9591 if test "$aix_use_runtimelinking" = yes; then
9592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9593 # instead of lib<name>.a to let people know that these are not
9594 # typical AIX shared libraries.
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596 else
9597 # We preserve .a as extension for shared libraries through AIX4.2
9598 # and later when we are not doing run time linking.
9599 library_names_spec='${libname}${release}.a $libname.a'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 fi
9602 shlibpath_var=LIBPATH
9603 fi
9604 ;;
9605
9606 amigaos*)
9607 case $host_cpu in
9608 powerpc)
9609 # Since July 2007 AmigaOS4 officially supports .so libraries.
9610 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 ;;
9613 m68k)
9614 library_names_spec='$libname.ixlibrary $libname.a'
9615 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9616 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'
9617 ;;
9618 esac
9619 ;;
9620
9621 beos*)
9622 library_names_spec='${libname}${shared_ext}'
9623 dynamic_linker="$host_os ld.so"
9624 shlibpath_var=LIBRARY_PATH
9625 ;;
9626
9627 bsdi[45]*)
9628 version_type=linux
9629 need_version=no
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9635 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9636 # the default ld.so.conf also contains /usr/contrib/lib and
9637 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9638 # libtool to hard-code these into programs
9639 ;;
9640
9641 cygwin* | mingw* | pw32* | cegcc*)
9642 version_type=windows
9643 shrext_cmds=".dll"
9644 need_version=no
9645 need_lib_prefix=no
9646
9647 case $GCC,$host_os in
9648 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9649 library_names_spec='$libname.dll.a'
9650 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9651 postinstall_cmds='base_file=`basename \${file}`~
9652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9653 dldir=$destdir/`dirname \$dlpath`~
9654 test -d \$dldir || mkdir -p \$dldir~
9655 $install_prog $dir/$dlname \$dldir/$dlname~
9656 chmod a+x \$dldir/$dlname~
9657 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9658 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9659 fi'
9660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9661 dlpath=$dir/\$dldll~
9662 $RM \$dlpath'
9663 shlibpath_overrides_runpath=yes
9664
9665 case $host_os in
9666 cygwin*)
9667 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9668 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9669
9670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9671 ;;
9672 mingw* | cegcc*)
9673 # MinGW DLLs use traditional 'lib' prefix
9674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9675 ;;
9676 pw32*)
9677 # pw32 DLLs use 'pw' prefix rather than 'lib'
9678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9679 ;;
9680 esac
9681 ;;
9682
9683 *)
9684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9685 ;;
9686 esac
9687 dynamic_linker='Win32 ld.exe'
9688 # FIXME: first we should search . and the directory the executable is in
9689 shlibpath_var=PATH
9690 ;;
9691
9692 darwin* | rhapsody*)
9693 dynamic_linker="$host_os dyld"
9694 version_type=darwin
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9698 soname_spec='${libname}${release}${major}$shared_ext'
9699 shlibpath_overrides_runpath=yes
9700 shlibpath_var=DYLD_LIBRARY_PATH
9701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9702
9703 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9704 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9705 ;;
9706
9707 dgux*)
9708 version_type=linux
9709 need_lib_prefix=no
9710 need_version=no
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9712 soname_spec='${libname}${release}${shared_ext}$major'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 ;;
9715
9716 freebsd* | dragonfly*)
9717 # DragonFly does not have aout. When/if they implement a new
9718 # versioning mechanism, adjust this.
9719 if test -x /usr/bin/objformat; then
9720 objformat=`/usr/bin/objformat`
9721 else
9722 case $host_os in
9723 freebsd[23].*) objformat=aout ;;
9724 *) objformat=elf ;;
9725 esac
9726 fi
9727 version_type=freebsd-$objformat
9728 case $version_type in
9729 freebsd-elf*)
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9731 need_version=no
9732 need_lib_prefix=no
9733 ;;
9734 freebsd-*)
9735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9736 need_version=yes
9737 ;;
9738 esac
9739 shlibpath_var=LD_LIBRARY_PATH
9740 case $host_os in
9741 freebsd2.*)
9742 shlibpath_overrides_runpath=yes
9743 ;;
9744 freebsd3.[01]* | freebsdelf3.[01]*)
9745 shlibpath_overrides_runpath=yes
9746 hardcode_into_libs=yes
9747 ;;
9748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9750 shlibpath_overrides_runpath=no
9751 hardcode_into_libs=yes
9752 ;;
9753 *) # from 4.6 on, and DragonFly
9754 shlibpath_overrides_runpath=yes
9755 hardcode_into_libs=yes
9756 ;;
9757 esac
9758 ;;
9759
9760 gnu*)
9761 version_type=linux
9762 need_lib_prefix=no
9763 need_version=no
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 hardcode_into_libs=yes
9768 ;;
9769
9770 haiku*)
9771 version_type=linux
9772 need_lib_prefix=no
9773 need_version=no
9774 dynamic_linker="$host_os runtime_loader"
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 shlibpath_var=LIBRARY_PATH
9778 shlibpath_overrides_runpath=yes
9779 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9780 hardcode_into_libs=yes
9781 ;;
9782
9783 hpux9* | hpux10* | hpux11*)
9784 # Give a soname corresponding to the major version so that dld.sl refuses to
9785 # link against other versions.
9786 version_type=sunos
9787 need_lib_prefix=no
9788 need_version=no
9789 case $host_cpu in
9790 ia64*)
9791 shrext_cmds='.so'
9792 hardcode_into_libs=yes
9793 dynamic_linker="$host_os dld.so"
9794 shlibpath_var=LD_LIBRARY_PATH
9795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 if test "X$HPUX_IA64_MODE" = X32; then
9799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9800 else
9801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9802 fi
9803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9804 ;;
9805 hppa*64*)
9806 shrext_cmds='.sl'
9807 hardcode_into_libs=yes
9808 dynamic_linker="$host_os dld.sl"
9809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 soname_spec='${libname}${release}${shared_ext}$major'
9813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9815 ;;
9816 *)
9817 shrext_cmds='.sl'
9818 dynamic_linker="$host_os dld.sl"
9819 shlibpath_var=SHLIB_PATH
9820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 ;;
9824 esac
9825 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9826 postinstall_cmds='chmod 555 $lib'
9827 # or fails outright, so override atomically:
9828 install_override_mode=555
9829 ;;
9830
9831 interix[3-9]*)
9832 version_type=linux
9833 need_lib_prefix=no
9834 need_version=no
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9836 soname_spec='${libname}${release}${shared_ext}$major'
9837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9838 shlibpath_var=LD_LIBRARY_PATH
9839 shlibpath_overrides_runpath=no
9840 hardcode_into_libs=yes
9841 ;;
9842
9843 irix5* | irix6* | nonstopux*)
9844 case $host_os in
9845 nonstopux*) version_type=nonstopux ;;
9846 *)
9847 if test "$lt_cv_prog_gnu_ld" = yes; then
9848 version_type=linux
9849 else
9850 version_type=irix
9851 fi ;;
9852 esac
9853 need_lib_prefix=no
9854 need_version=no
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9857 case $host_os in
9858 irix5* | nonstopux*)
9859 libsuff= shlibsuff=
9860 ;;
9861 *)
9862 case $LD in # libtool.m4 will add one of these switches to LD
9863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9864 libsuff= shlibsuff= libmagic=32-bit;;
9865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9866 libsuff=32 shlibsuff=N32 libmagic=N32;;
9867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9869 *) libsuff= shlibsuff= libmagic=never-match;;
9870 esac
9871 ;;
9872 esac
9873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9874 shlibpath_overrides_runpath=no
9875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9877 hardcode_into_libs=yes
9878 ;;
9879
9880 # No shared lib support for Linux oldld, aout, or coff.
9881 linux*oldld* | linux*aout* | linux*coff*)
9882 dynamic_linker=no
9883 ;;
9884
9885 # This must be Linux ELF.
9886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9887 version_type=linux
9888 need_lib_prefix=no
9889 need_version=no
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9893 shlibpath_var=LD_LIBRARY_PATH
9894 shlibpath_overrides_runpath=no
9895
9896 # Some binutils ld are patched to set DT_RUNPATH
9897 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 lt_cv_shlibpath_overrides_runpath=no
9901 save_LDFLAGS=$LDFLAGS
9902 save_libdir=$libdir
9903 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9904 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9905 if test x$gcc_no_link = xyes; then
9906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9907 fi
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910
9911 int
9912 main ()
9913 {
9914
9915 ;
9916 return 0;
9917 }
9918 _ACEOF
9919 if ac_fn_c_try_link "$LINENO"; then :
9920 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9921 lt_cv_shlibpath_overrides_runpath=yes
9922 fi
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext \
9925 conftest$ac_exeext conftest.$ac_ext
9926 LDFLAGS=$save_LDFLAGS
9927 libdir=$save_libdir
9928
9929 fi
9930
9931 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9932
9933 # This implies no fast_install, which is unacceptable.
9934 # Some rework will be needed to allow for fast_install
9935 # before this can be enabled.
9936 hardcode_into_libs=yes
9937
9938 # Append ld.so.conf contents to the search path
9939 if test -f /etc/ld.so.conf; then
9940 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' ' '`
9941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9942 fi
9943
9944 # We used to test for /lib/ld.so.1 and disable shared libraries on
9945 # powerpc, because MkLinux only supported shared libraries with the
9946 # GNU dynamic linker. Since this was broken with cross compilers,
9947 # most powerpc-linux boxes support dynamic linking these days and
9948 # people can always --disable-shared, the test was removed, and we
9949 # assume the GNU/Linux dynamic linker is in use.
9950 dynamic_linker='GNU/Linux ld.so'
9951 ;;
9952
9953 netbsd*)
9954 version_type=sunos
9955 need_lib_prefix=no
9956 need_version=no
9957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9960 dynamic_linker='NetBSD (a.out) ld.so'
9961 else
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 dynamic_linker='NetBSD ld.elf_so'
9965 fi
9966 shlibpath_var=LD_LIBRARY_PATH
9967 shlibpath_overrides_runpath=yes
9968 hardcode_into_libs=yes
9969 ;;
9970
9971 newsos6)
9972 version_type=linux
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath=yes
9976 ;;
9977
9978 *nto* | *qnx*)
9979 version_type=qnx
9980 need_lib_prefix=no
9981 need_version=no
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9987 dynamic_linker='ldqnx.so'
9988 ;;
9989
9990 openbsd*)
9991 version_type=sunos
9992 sys_lib_dlsearch_path_spec="/usr/lib"
9993 need_lib_prefix=no
9994 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9995 case $host_os in
9996 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9997 *) need_version=no ;;
9998 esac
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10003 case $host_os in
10004 openbsd2.[89] | openbsd2.[89].*)
10005 shlibpath_overrides_runpath=no
10006 ;;
10007 *)
10008 shlibpath_overrides_runpath=yes
10009 ;;
10010 esac
10011 else
10012 shlibpath_overrides_runpath=yes
10013 fi
10014 ;;
10015
10016 os2*)
10017 libname_spec='$name'
10018 shrext_cmds=".dll"
10019 need_lib_prefix=no
10020 library_names_spec='$libname${shared_ext} $libname.a'
10021 dynamic_linker='OS/2 ld.exe'
10022 shlibpath_var=LIBPATH
10023 ;;
10024
10025 osf3* | osf4* | osf5*)
10026 version_type=osf
10027 need_lib_prefix=no
10028 need_version=no
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10034 ;;
10035
10036 rdos*)
10037 dynamic_linker=no
10038 ;;
10039
10040 solaris*)
10041 version_type=linux
10042 need_lib_prefix=no
10043 need_version=no
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=yes
10048 hardcode_into_libs=yes
10049 # ldd complains unless libraries are executable
10050 postinstall_cmds='chmod +x $lib'
10051 ;;
10052
10053 sunos4*)
10054 version_type=sunos
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10057 shlibpath_var=LD_LIBRARY_PATH
10058 shlibpath_overrides_runpath=yes
10059 if test "$with_gnu_ld" = yes; then
10060 need_lib_prefix=no
10061 fi
10062 need_version=yes
10063 ;;
10064
10065 sysv4 | sysv4.3*)
10066 version_type=linux
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 case $host_vendor in
10071 sni)
10072 shlibpath_overrides_runpath=no
10073 need_lib_prefix=no
10074 runpath_var=LD_RUN_PATH
10075 ;;
10076 siemens)
10077 need_lib_prefix=no
10078 ;;
10079 motorola)
10080 need_lib_prefix=no
10081 need_version=no
10082 shlibpath_overrides_runpath=no
10083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10084 ;;
10085 esac
10086 ;;
10087
10088 sysv4*MP*)
10089 if test -d /usr/nec ;then
10090 version_type=linux
10091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10092 soname_spec='$libname${shared_ext}.$major'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 fi
10095 ;;
10096
10097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10098 version_type=freebsd-elf
10099 need_lib_prefix=no
10100 need_version=no
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 shlibpath_overrides_runpath=yes
10105 hardcode_into_libs=yes
10106 if test "$with_gnu_ld" = yes; then
10107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10108 else
10109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10110 case $host_os in
10111 sco3.2v5*)
10112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10113 ;;
10114 esac
10115 fi
10116 sys_lib_dlsearch_path_spec='/usr/lib'
10117 ;;
10118
10119 tpf*)
10120 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=no
10127 hardcode_into_libs=yes
10128 ;;
10129
10130 uts4*)
10131 version_type=linux
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 ;;
10136
10137 *)
10138 dynamic_linker=no
10139 ;;
10140 esac
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10142 $as_echo "$dynamic_linker" >&6; }
10143 test "$dynamic_linker" = no && can_build_shared=no
10144
10145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10146 if test "$GCC" = yes; then
10147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10148 fi
10149
10150 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10151 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10152 fi
10153 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10154 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10249 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10250 hardcode_action=
10251 if test -n "$hardcode_libdir_flag_spec" ||
10252 test -n "$runpath_var" ||
10253 test "X$hardcode_automatic" = "Xyes" ; then
10254
10255 # We can hardcode non-existent directories.
10256 if test "$hardcode_direct" != no &&
10257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10258 # have to relink, otherwise we might link with an installed library
10259 # when we should be linking with a yet-to-be-installed one
10260 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10261 test "$hardcode_minus_L" != no; then
10262 # Linking always hardcodes the temporary library directory.
10263 hardcode_action=relink
10264 else
10265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10266 hardcode_action=immediate
10267 fi
10268 else
10269 # We cannot hardcode anything, or else we can only hardcode existing
10270 # directories.
10271 hardcode_action=unsupported
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10274 $as_echo "$hardcode_action" >&6; }
10275
10276 if test "$hardcode_action" = relink ||
10277 test "$inherit_rpath" = yes; then
10278 # Fast installation is not supported
10279 enable_fast_install=no
10280 elif test "$shlibpath_overrides_runpath" = yes ||
10281 test "$enable_shared" = no; then
10282 # Fast installation is not necessary
10283 enable_fast_install=needless
10284 fi
10285
10286
10287
10288
10289
10290
10291 if test "x$enable_dlopen" != xyes; then
10292 enable_dlopen=unknown
10293 enable_dlopen_self=unknown
10294 enable_dlopen_self_static=unknown
10295 else
10296 lt_cv_dlopen=no
10297 lt_cv_dlopen_libs=
10298
10299 case $host_os in
10300 beos*)
10301 lt_cv_dlopen="load_add_on"
10302 lt_cv_dlopen_libs=
10303 lt_cv_dlopen_self=yes
10304 ;;
10305
10306 mingw* | pw32* | cegcc*)
10307 lt_cv_dlopen="LoadLibrary"
10308 lt_cv_dlopen_libs=
10309 ;;
10310
10311 cygwin*)
10312 lt_cv_dlopen="dlopen"
10313 lt_cv_dlopen_libs=
10314 ;;
10315
10316 darwin*)
10317 # if libdl is installed we need to link against it
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 ac_check_lib_save_LIBS=$LIBS
10324 LIBS="-ldl $LIBS"
10325 if test x$gcc_no_link = xyes; then
10326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10327 fi
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330
10331 /* Override any GCC internal prototype to avoid an error.
10332 Use char because int might match the return type of a GCC
10333 builtin and then its argument prototype would still apply. */
10334 #ifdef __cplusplus
10335 extern "C"
10336 #endif
10337 char dlopen ();
10338 int
10339 main ()
10340 {
10341 return dlopen ();
10342 ;
10343 return 0;
10344 }
10345 _ACEOF
10346 if ac_fn_c_try_link "$LINENO"; then :
10347 ac_cv_lib_dl_dlopen=yes
10348 else
10349 ac_cv_lib_dl_dlopen=no
10350 fi
10351 rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10356 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10357 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10359 else
10360
10361 lt_cv_dlopen="dyld"
10362 lt_cv_dlopen_libs=
10363 lt_cv_dlopen_self=yes
10364
10365 fi
10366
10367 ;;
10368
10369 *)
10370 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10371 if test "x$ac_cv_func_shl_load" = x""yes; then :
10372 lt_cv_dlopen="shl_load"
10373 else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10375 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 ac_check_lib_save_LIBS=$LIBS
10380 LIBS="-ldld $LIBS"
10381 if test x$gcc_no_link = xyes; then
10382 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10383 fi
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386
10387 /* Override any GCC internal prototype to avoid an error.
10388 Use char because int might match the return type of a GCC
10389 builtin and then its argument prototype would still apply. */
10390 #ifdef __cplusplus
10391 extern "C"
10392 #endif
10393 char shl_load ();
10394 int
10395 main ()
10396 {
10397 return shl_load ();
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 ac_cv_lib_dld_shl_load=yes
10404 else
10405 ac_cv_lib_dld_shl_load=no
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_lib_save_LIBS
10410 fi
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10412 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10413 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10415 else
10416 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10417 if test "x$ac_cv_func_dlopen" = x""yes; then :
10418 lt_cv_dlopen="dlopen"
10419 else
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10421 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10422 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 ac_check_lib_save_LIBS=$LIBS
10426 LIBS="-ldl $LIBS"
10427 if test x$gcc_no_link = xyes; then
10428 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10429 fi
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432
10433 /* Override any GCC internal prototype to avoid an error.
10434 Use char because int might match the return type of a GCC
10435 builtin and then its argument prototype would still apply. */
10436 #ifdef __cplusplus
10437 extern "C"
10438 #endif
10439 char dlopen ();
10440 int
10441 main ()
10442 {
10443 return dlopen ();
10444 ;
10445 return 0;
10446 }
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 ac_cv_lib_dl_dlopen=yes
10450 else
10451 ac_cv_lib_dl_dlopen=no
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10456 fi
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10458 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10459 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10461 else
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10463 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10464 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 ac_check_lib_save_LIBS=$LIBS
10468 LIBS="-lsvld $LIBS"
10469 if test x$gcc_no_link = xyes; then
10470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10471 fi
10472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473 /* end confdefs.h. */
10474
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char dlopen ();
10482 int
10483 main ()
10484 {
10485 return dlopen ();
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 if ac_fn_c_try_link "$LINENO"; then :
10491 ac_cv_lib_svld_dlopen=yes
10492 else
10493 ac_cv_lib_svld_dlopen=no
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LIBS=$ac_check_lib_save_LIBS
10498 fi
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10500 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10501 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10505 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10506 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 ac_check_lib_save_LIBS=$LIBS
10510 LIBS="-ldld $LIBS"
10511 if test x$gcc_no_link = xyes; then
10512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10513 fi
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516
10517 /* Override any GCC internal prototype to avoid an error.
10518 Use char because int might match the return type of a GCC
10519 builtin and then its argument prototype would still apply. */
10520 #ifdef __cplusplus
10521 extern "C"
10522 #endif
10523 char dld_link ();
10524 int
10525 main ()
10526 {
10527 return dld_link ();
10528 ;
10529 return 0;
10530 }
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 ac_cv_lib_dld_dld_link=yes
10534 else
10535 ac_cv_lib_dld_dld_link=no
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext \
10538 conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10542 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10543 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10545 fi
10546
10547
10548 fi
10549
10550
10551 fi
10552
10553
10554 fi
10555
10556
10557 fi
10558
10559
10560 fi
10561
10562 ;;
10563 esac
10564
10565 if test "x$lt_cv_dlopen" != xno; then
10566 enable_dlopen=yes
10567 else
10568 enable_dlopen=no
10569 fi
10570
10571 case $lt_cv_dlopen in
10572 dlopen)
10573 save_CPPFLAGS="$CPPFLAGS"
10574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10575
10576 save_LDFLAGS="$LDFLAGS"
10577 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10578
10579 save_LIBS="$LIBS"
10580 LIBS="$lt_cv_dlopen_libs $LIBS"
10581
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10583 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10584 if test "${lt_cv_dlopen_self+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test "$cross_compiling" = yes; then :
10588 lt_cv_dlopen_self=cross
10589 else
10590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10591 lt_status=$lt_dlunknown
10592 cat > conftest.$ac_ext <<_LT_EOF
10593 #line 10593 "configure"
10594 #include "confdefs.h"
10595
10596 #if HAVE_DLFCN_H
10597 #include <dlfcn.h>
10598 #endif
10599
10600 #include <stdio.h>
10601
10602 #ifdef RTLD_GLOBAL
10603 # define LT_DLGLOBAL RTLD_GLOBAL
10604 #else
10605 # ifdef DL_GLOBAL
10606 # define LT_DLGLOBAL DL_GLOBAL
10607 # else
10608 # define LT_DLGLOBAL 0
10609 # endif
10610 #endif
10611
10612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10613 find out it does not work in some platform. */
10614 #ifndef LT_DLLAZY_OR_NOW
10615 # ifdef RTLD_LAZY
10616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10617 # else
10618 # ifdef DL_LAZY
10619 # define LT_DLLAZY_OR_NOW DL_LAZY
10620 # else
10621 # ifdef RTLD_NOW
10622 # define LT_DLLAZY_OR_NOW RTLD_NOW
10623 # else
10624 # ifdef DL_NOW
10625 # define LT_DLLAZY_OR_NOW DL_NOW
10626 # else
10627 # define LT_DLLAZY_OR_NOW 0
10628 # endif
10629 # endif
10630 # endif
10631 # endif
10632 #endif
10633
10634 /* When -fvisbility=hidden is used, assume the code has been annotated
10635 correspondingly for the symbols needed. */
10636 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10637 void fnord () __attribute__((visibility("default")));
10638 #endif
10639
10640 void fnord () { int i=42; }
10641 int main ()
10642 {
10643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10644 int status = $lt_dlunknown;
10645
10646 if (self)
10647 {
10648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10649 else
10650 {
10651 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10652 else puts (dlerror ());
10653 }
10654 /* dlclose (self); */
10655 }
10656 else
10657 puts (dlerror ());
10658
10659 return status;
10660 }
10661 _LT_EOF
10662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10663 (eval $ac_link) 2>&5
10664 ac_status=$?
10665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10666 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10667 (./conftest; exit; ) >&5 2>/dev/null
10668 lt_status=$?
10669 case x$lt_status in
10670 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10671 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10672 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10673 esac
10674 else :
10675 # compilation failed
10676 lt_cv_dlopen_self=no
10677 fi
10678 fi
10679 rm -fr conftest*
10680
10681
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10684 $as_echo "$lt_cv_dlopen_self" >&6; }
10685
10686 if test "x$lt_cv_dlopen_self" = xyes; then
10687 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10689 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10690 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 if test "$cross_compiling" = yes; then :
10694 lt_cv_dlopen_self_static=cross
10695 else
10696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10697 lt_status=$lt_dlunknown
10698 cat > conftest.$ac_ext <<_LT_EOF
10699 #line 10699 "configure"
10700 #include "confdefs.h"
10701
10702 #if HAVE_DLFCN_H
10703 #include <dlfcn.h>
10704 #endif
10705
10706 #include <stdio.h>
10707
10708 #ifdef RTLD_GLOBAL
10709 # define LT_DLGLOBAL RTLD_GLOBAL
10710 #else
10711 # ifdef DL_GLOBAL
10712 # define LT_DLGLOBAL DL_GLOBAL
10713 # else
10714 # define LT_DLGLOBAL 0
10715 # endif
10716 #endif
10717
10718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10719 find out it does not work in some platform. */
10720 #ifndef LT_DLLAZY_OR_NOW
10721 # ifdef RTLD_LAZY
10722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10723 # else
10724 # ifdef DL_LAZY
10725 # define LT_DLLAZY_OR_NOW DL_LAZY
10726 # else
10727 # ifdef RTLD_NOW
10728 # define LT_DLLAZY_OR_NOW RTLD_NOW
10729 # else
10730 # ifdef DL_NOW
10731 # define LT_DLLAZY_OR_NOW DL_NOW
10732 # else
10733 # define LT_DLLAZY_OR_NOW 0
10734 # endif
10735 # endif
10736 # endif
10737 # endif
10738 #endif
10739
10740 /* When -fvisbility=hidden is used, assume the code has been annotated
10741 correspondingly for the symbols needed. */
10742 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10743 void fnord () __attribute__((visibility("default")));
10744 #endif
10745
10746 void fnord () { int i=42; }
10747 int main ()
10748 {
10749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10750 int status = $lt_dlunknown;
10751
10752 if (self)
10753 {
10754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10755 else
10756 {
10757 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10758 else puts (dlerror ());
10759 }
10760 /* dlclose (self); */
10761 }
10762 else
10763 puts (dlerror ());
10764
10765 return status;
10766 }
10767 _LT_EOF
10768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10769 (eval $ac_link) 2>&5
10770 ac_status=$?
10771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10772 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10773 (./conftest; exit; ) >&5 2>/dev/null
10774 lt_status=$?
10775 case x$lt_status in
10776 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10777 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10778 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10779 esac
10780 else :
10781 # compilation failed
10782 lt_cv_dlopen_self_static=no
10783 fi
10784 fi
10785 rm -fr conftest*
10786
10787
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10790 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10791 fi
10792
10793 CPPFLAGS="$save_CPPFLAGS"
10794 LDFLAGS="$save_LDFLAGS"
10795 LIBS="$save_LIBS"
10796 ;;
10797 esac
10798
10799 case $lt_cv_dlopen_self in
10800 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10801 *) enable_dlopen_self=unknown ;;
10802 esac
10803
10804 case $lt_cv_dlopen_self_static in
10805 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10806 *) enable_dlopen_self_static=unknown ;;
10807 esac
10808 fi
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826 striplib=
10827 old_striplib=
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10829 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10830 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10831 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10832 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10834 $as_echo "yes" >&6; }
10835 else
10836 # FIXME - insert some real tests, host_os isn't really good enough
10837 case $host_os in
10838 darwin*)
10839 if test -n "$STRIP" ; then
10840 striplib="$STRIP -x"
10841 old_striplib="$STRIP -S"
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10843 $as_echo "yes" >&6; }
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10847 fi
10848 ;;
10849 *)
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10852 ;;
10853 esac
10854 fi
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867 # Report which library types will actually be built
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10869 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10871 $as_echo "$can_build_shared" >&6; }
10872
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10874 $as_echo_n "checking whether to build shared libraries... " >&6; }
10875 test "$can_build_shared" = "no" && enable_shared=no
10876
10877 # On AIX, shared libraries and static libraries use the same namespace, and
10878 # are all built from PIC.
10879 case $host_os in
10880 aix3*)
10881 test "$enable_shared" = yes && enable_static=no
10882 if test -n "$RANLIB"; then
10883 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10884 postinstall_cmds='$RANLIB $lib'
10885 fi
10886 ;;
10887
10888 aix[4-9]*)
10889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10890 test "$enable_shared" = yes && enable_static=no
10891 fi
10892 ;;
10893 esac
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10895 $as_echo "$enable_shared" >&6; }
10896
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10898 $as_echo_n "checking whether to build static libraries... " >&6; }
10899 # Make sure either enable_shared or enable_static is yes.
10900 test "$enable_shared" = yes || enable_static=yes
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10902 $as_echo "$enable_static" >&6; }
10903
10904
10905
10906
10907 fi
10908 ac_ext=c
10909 ac_cpp='$CPP $CPPFLAGS'
10910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10913
10914 CC="$lt_save_CC"
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928 ac_config_commands="$ac_config_commands libtool"
10929
10930
10931
10932
10933 # Only expand once:
10934
10935
10936
10937 if test "x$CC" != xcc; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
10939 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
10942 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
10943 fi
10944 set dummy $CC; ac_cc=`$as_echo "$2" |
10945 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10946 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951
10952 int
10953 main ()
10954 {
10955
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 # Make sure it works both with $CC and with simple cc.
10961 # We do the test twice because some compilers refuse to overwrite an
10962 # existing .o file with -o, though they will create one.
10963 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10964 rm -f conftest2.*
10965 if { { case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968 esac
10969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10970 $as_echo "$ac_try_echo"; } >&5
10971 (eval "$ac_try") 2>&5
10972 ac_status=$?
10973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10974 test $ac_status = 0; } &&
10975 test -f conftest2.$ac_objext && { { case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978 esac
10979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10980 $as_echo "$ac_try_echo"; } >&5
10981 (eval "$ac_try") 2>&5
10982 ac_status=$?
10983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10984 test $ac_status = 0; };
10985 then
10986 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10987 if test "x$CC" != xcc; then
10988 # Test first that cc exists at all.
10989 if { ac_try='cc -c conftest.$ac_ext >&5'
10990 { { case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993 esac
10994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10995 $as_echo "$ac_try_echo"; } >&5
10996 (eval "$ac_try") 2>&5
10997 ac_status=$?
10998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999 test $ac_status = 0; }; }; then
11000 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11001 rm -f conftest2.*
11002 if { { case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11005 esac
11006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11007 $as_echo "$ac_try_echo"; } >&5
11008 (eval "$ac_try") 2>&5
11009 ac_status=$?
11010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11011 test $ac_status = 0; } &&
11012 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11017 $as_echo "$ac_try_echo"; } >&5
11018 (eval "$ac_try") 2>&5
11019 ac_status=$?
11020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11021 test $ac_status = 0; };
11022 then
11023 # cc works too.
11024 :
11025 else
11026 # cc exists but doesn't like -o.
11027 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11028 fi
11029 fi
11030 fi
11031 else
11032 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11033 fi
11034 rm -f core conftest*
11035
11036 fi
11037 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11039 $as_echo "yes" >&6; }
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11043
11044 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11045
11046 fi
11047
11048 # expand $ac_aux_dir to an absolute path
11049 am_aux_dir=`cd $ac_aux_dir && pwd`
11050
11051 # FIXME: we rely on the cache variable name because
11052 # there is no other way.
11053 set dummy $CC
11054 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11055 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11056 if test "$am_t" != yes; then
11057 # Losing compiler, so override with the script.
11058 # FIXME: It is wrong to rewrite CC.
11059 # But if we don't then we get into trouble of one sort or another.
11060 # A longer-term fix would be to have automake use am__CC in this case,
11061 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11062 CC="$am_aux_dir/compile $CC"
11063 fi
11064
11065
11066
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11068 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11069 set x ${MAKE-make}
11070 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11071 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 cat >conftest.make <<\_ACEOF
11075 SHELL = /bin/sh
11076 all:
11077 @echo '@@@%%%=$(MAKE)=@@@%%%'
11078 _ACEOF
11079 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11080 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11081 *@@@%%%=?*=@@@%%%*)
11082 eval ac_cv_prog_make_${ac_make}_set=yes;;
11083 *)
11084 eval ac_cv_prog_make_${ac_make}_set=no;;
11085 esac
11086 rm -f conftest.make
11087 fi
11088 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11090 $as_echo "yes" >&6; }
11091 SET_MAKE=
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 SET_MAKE="MAKE=${MAKE-make}"
11096 fi
11097
11098
11099 # -------
11100 # Headers
11101 # -------
11102
11103 # Sanity check for the cross-compilation case:
11104 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11105 if test "x$ac_cv_header_stdio_h" = x""yes; then :
11106 :
11107 else
11108 as_fn_error "Can't find stdio.h.
11109 You must have a usable C system for the target already installed, at least
11110 including headers and, preferably, the library, before you can configure
11111 the Objective C runtime system. If necessary, install gcc now with
11112 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
11113 fi
11114
11115
11116
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11118 $as_echo_n "checking for ANSI C header files... " >&6; }
11119 if test "${ac_cv_header_stdc+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124 #include <stdlib.h>
11125 #include <stdarg.h>
11126 #include <string.h>
11127 #include <float.h>
11128
11129 int
11130 main ()
11131 {
11132
11133 ;
11134 return 0;
11135 }
11136 _ACEOF
11137 if ac_fn_c_try_compile "$LINENO"; then :
11138 ac_cv_header_stdc=yes
11139 else
11140 ac_cv_header_stdc=no
11141 fi
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143
11144 if test $ac_cv_header_stdc = yes; then
11145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148 #include <string.h>
11149
11150 _ACEOF
11151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11152 $EGREP "memchr" >/dev/null 2>&1; then :
11153
11154 else
11155 ac_cv_header_stdc=no
11156 fi
11157 rm -f conftest*
11158
11159 fi
11160
11161 if test $ac_cv_header_stdc = yes; then
11162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11165 #include <stdlib.h>
11166
11167 _ACEOF
11168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11169 $EGREP "free" >/dev/null 2>&1; then :
11170
11171 else
11172 ac_cv_header_stdc=no
11173 fi
11174 rm -f conftest*
11175
11176 fi
11177
11178 if test $ac_cv_header_stdc = yes; then
11179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11180 if test "$cross_compiling" = yes; then :
11181 :
11182 else
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11185 #include <ctype.h>
11186 #include <stdlib.h>
11187 #if ((' ' & 0x0FF) == 0x020)
11188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11190 #else
11191 # define ISLOWER(c) \
11192 (('a' <= (c) && (c) <= 'i') \
11193 || ('j' <= (c) && (c) <= 'r') \
11194 || ('s' <= (c) && (c) <= 'z'))
11195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11196 #endif
11197
11198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11199 int
11200 main ()
11201 {
11202 int i;
11203 for (i = 0; i < 256; i++)
11204 if (XOR (islower (i), ISLOWER (i))
11205 || toupper (i) != TOUPPER (i))
11206 return 2;
11207 return 0;
11208 }
11209 _ACEOF
11210 if ac_fn_c_try_run "$LINENO"; then :
11211
11212 else
11213 ac_cv_header_stdc=no
11214 fi
11215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11216 conftest.$ac_objext conftest.beam conftest.$ac_ext
11217 fi
11218
11219 fi
11220 fi
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11222 $as_echo "$ac_cv_header_stdc" >&6; }
11223 if test $ac_cv_header_stdc = yes; then
11224
11225 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11226
11227 fi
11228
11229
11230 for ac_header in sched.h
11231 do :
11232 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11233 if test "x$ac_cv_header_sched_h" = x""yes; then :
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE_SCHED_H 1
11236 _ACEOF
11237
11238 fi
11239
11240 done
11241
11242
11243 # -----------
11244 # Miscellanea
11245 # -----------
11246
11247 # Check if we have thread-local storage
11248
11249
11250 # Check whether --enable-tls was given.
11251 if test "${enable_tls+set}" = set; then :
11252 enableval=$enable_tls;
11253 case "$enableval" in
11254 yes|no) ;;
11255 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11256 esac
11257
11258 else
11259 enable_tls=yes
11260 fi
11261
11262
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11264 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11265 if test "${gcc_cv_have_tls+set}" = set; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268
11269 if test "$cross_compiling" = yes; then :
11270 if test x$gcc_no_link = xyes; then
11271 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11272 fi
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275 __thread int a; int b; int main() { return a = b; }
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11278 chktls_save_LDFLAGS="$LDFLAGS"
11279 case $host in
11280 *-*-linux*)
11281 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11282 ;;
11283 esac
11284 chktls_save_CFLAGS="$CFLAGS"
11285 CFLAGS="-fPIC $CFLAGS"
11286 if test x$gcc_no_link = xyes; then
11287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11288 fi
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11291 int f() { return 0; }
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 if test x$gcc_no_link = xyes; then
11295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11296 fi
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11299 __thread int a; int b; int f() { return a = b; }
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 gcc_cv_have_tls=yes
11303 else
11304 gcc_cv_have_tls=no
11305 fi
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 else
11309 gcc_cv_have_tls=yes
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313 CFLAGS="$chktls_save_CFLAGS"
11314 LDFLAGS="$chktls_save_LDFLAGS"
11315 else
11316 gcc_cv_have_tls=no
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320
11321
11322 else
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325 __thread int a; int b; int main() { return a = b; }
11326 _ACEOF
11327 if ac_fn_c_try_run "$LINENO"; then :
11328 chktls_save_LDFLAGS="$LDFLAGS"
11329 LDFLAGS="-static $LDFLAGS"
11330 if test x$gcc_no_link = xyes; then
11331 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11332 fi
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11335 int main() { return 0; }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 if test "$cross_compiling" = yes; then :
11339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11341 as_fn_error "cannot run test program while cross compiling
11342 See \`config.log' for more details." "$LINENO" 5; }
11343 else
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 __thread int a; int b; int main() { return a = b; }
11347 _ACEOF
11348 if ac_fn_c_try_run "$LINENO"; then :
11349 gcc_cv_have_tls=yes
11350 else
11351 gcc_cv_have_tls=no
11352 fi
11353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11354 conftest.$ac_objext conftest.beam conftest.$ac_ext
11355 fi
11356
11357 else
11358 gcc_cv_have_tls=yes
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 LDFLAGS="$chktls_save_LDFLAGS"
11363 if test $gcc_cv_have_tls = yes; then
11364 chktls_save_CFLAGS="$CFLAGS"
11365 thread_CFLAGS=failed
11366 for flag in '' '-pthread' '-lpthread'; do
11367 CFLAGS="$flag $chktls_save_CFLAGS"
11368 if test x$gcc_no_link = xyes; then
11369 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11370 fi
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373 #include <pthread.h>
11374 void *g(void *d) { return NULL; }
11375 int
11376 main ()
11377 {
11378 pthread_t t; pthread_create(&t,NULL,g,NULL);
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 thread_CFLAGS="$flag"
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext \
11387 conftest$ac_exeext conftest.$ac_ext
11388 if test "X$thread_CFLAGS" != Xfailed; then
11389 break
11390 fi
11391 done
11392 CFLAGS="$chktls_save_CFLAGS"
11393 if test "X$thread_CFLAGS" != Xfailed; then
11394 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11395 if test "$cross_compiling" = yes; then :
11396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11398 as_fn_error "cannot run test program while cross compiling
11399 See \`config.log' for more details." "$LINENO" 5; }
11400 else
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403 #include <pthread.h>
11404 __thread int a;
11405 static int *volatile a_in_other_thread;
11406 static void *
11407 thread_func (void *arg)
11408 {
11409 a_in_other_thread = &a;
11410 return (void *)0;
11411 }
11412 int
11413 main ()
11414 {
11415 pthread_t thread;
11416 void *thread_retval;
11417 int *volatile a_in_main_thread;
11418 a_in_main_thread = &a;
11419 if (pthread_create (&thread, (pthread_attr_t *)0,
11420 thread_func, (void *)0))
11421 return 0;
11422 if (pthread_join (thread, &thread_retval))
11423 return 0;
11424 return (a_in_other_thread == a_in_main_thread);
11425 ;
11426 return 0;
11427 }
11428 _ACEOF
11429 if ac_fn_c_try_run "$LINENO"; then :
11430 gcc_cv_have_tls=yes
11431 else
11432 gcc_cv_have_tls=no
11433 fi
11434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11435 conftest.$ac_objext conftest.beam conftest.$ac_ext
11436 fi
11437
11438 CFLAGS="$chktls_save_CFLAGS"
11439 fi
11440 fi
11441 else
11442 gcc_cv_have_tls=no
11443 fi
11444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11445 conftest.$ac_objext conftest.beam conftest.$ac_ext
11446 fi
11447
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11450 $as_echo "$gcc_cv_have_tls" >&6; }
11451 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11452
11453 $as_echo "#define HAVE_TLS 1" >>confdefs.h
11454
11455 fi
11456
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
11459 $as_echo_n "checking if the type of bitfields matters... " >&6; }
11460 if test "${gt_cv_bitfield_type_matters+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 struct foo1 { char x; char y:1; char z; };
11467 struct foo2 { char x; long long int y:1; char z; };
11468 int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
11469 int
11470 main ()
11471 {
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_compile "$LINENO"; then :
11478 gt_cv_bitfield_type_matters=yes
11479 else
11480 gt_cv_bitfield_type_matters=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
11486 $as_echo "$gt_cv_bitfield_type_matters" >&6; }
11487 if test $gt_cv_bitfield_type_matters = yes; then
11488
11489 $as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
11490
11491 fi
11492
11493
11494 # -----------
11495 # boehm-gc
11496 # -----------
11497
11498 # Check whether --enable-objc-gc was given.
11499 if test "${enable_objc_gc+set}" = set; then :
11500 enableval=$enable_objc_gc;
11501 else
11502 enable_objc_gc=no
11503 fi
11504
11505
11506 # Check whether --with-target-bdw-gc was given.
11507 if test "${with_target_bdw_gc+set}" = set; then :
11508 withval=$with_target_bdw_gc;
11509 fi
11510
11511
11512 # Check whether --with-target-bdw-gc-include was given.
11513 if test "${with_target_bdw_gc_include+set}" = set; then :
11514 withval=$with_target_bdw_gc_include;
11515 fi
11516
11517
11518 # Check whether --with-target-bdw-gc-lib was given.
11519 if test "${with_target_bdw_gc_lib+set}" = set; then :
11520 withval=$with_target_bdw_gc_lib;
11521 fi
11522
11523
11524 case "$enable_objc_gc" in
11525 no)
11526 use_bdw_gc=no
11527 ;;
11528 *)
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
11530 $as_echo_n "checking for bdw garbage collector... " >&6; }
11531 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
11532 BDW_GC_CFLAGS=
11533 BDW_GC_LIBS="-lgc"
11534 else
11535 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
11536 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
11537 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
11538 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
11541 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
11542 fi
11543 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null`
11544 bdw_val=
11545 if test "x$with_target_bdw_gc" != x; then
11546 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do
11547 case "$i" in
11548 *=*) sd=${i%%=*}; d=${i#*=} ;;
11549 *) sd=.; d=$i ;;
11550 esac
11551 if test "$mldir" = "$sd"; then
11552 bdw_val=$d
11553 fi
11554 done
11555 if test "x$bdw_val" = x; then
11556 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5
11557 fi
11558 bdw_inc_dir="$bdw_val/include"
11559 bdw_lib_dir="$bdw_val/lib"
11560 fi
11561 bdw_val=
11562 if test "x$with_target_bdw_gc_include" != x; then
11563 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do
11564 case "$i" in
11565 *=*) sd=${i%%=*}; d=${i#*=} ;;
11566 *) sd=.; d=$i ;;
11567 esac
11568 if test "$mldir" = "$sd"; then
11569 bdw_val=$d
11570 fi
11571 done
11572 if test "x$bdw_val" = x; then
11573 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11574 fi
11575 bdw_inc_dir="$bdw_val"
11576 fi
11577 bdw_val=
11578 if test "x$with_target_bdw_gc_lib" != x; then
11579 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do
11580 case "$i" in
11581 *=*) sd=${i%%=*}; d=${i#*=} ;;
11582 *) sd=.; d=$i ;;
11583 esac
11584 if test "$mldir" = "$sd"; then
11585 bdw_val=$d
11586 fi
11587 done
11588 if test "x$bdw_val" = x; then
11589 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11590 fi
11591 bdw_lib_dir="$bdw_val"
11592 fi
11593 if test "x$bdw_inc_dir" = x; then
11594 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11595 fi
11596 if test "x$bdw_lib_dir" = x; then
11597 as_fn_error "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11598 fi
11599 BDW_GC_CFLAGS="-I$bdw_inc_dir"
11600 BDW_GC_LIBS="-L$bdw_lib_dir -lgc"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11602 $as_echo "found" >&6; }
11603 fi
11604
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5
11606 $as_echo_n "checking for system boehm-gc... " >&6; }
11607 save_CFLAGS=$CFLAGS
11608 save_LIBS=$LIBS
11609 CFLAGS="$CFLAGS $BDW_GC_CFLAGS"
11610 LIBS="$LIBS $BDW_GC_LIBS"
11611 if test x$gcc_no_link = xyes; then
11612 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11613 fi
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11616 #include <gc/gc.h>
11617 int
11618 main ()
11619 {
11620 GC_init()
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"; then :
11626
11627 if test "$cross_compiling" = yes; then :
11628 system_bdw_gc_found=no
11629
11630 else
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633
11634 #include <gc/gc.h>
11635 int main() {
11636 GC_init();
11637 return 0;
11638 }
11639
11640 _ACEOF
11641 if ac_fn_c_try_run "$LINENO"; then :
11642 system_bdw_gc_found=yes
11643 else
11644 system_bdw_gc_found=no
11645 fi
11646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11647 conftest.$ac_objext conftest.beam conftest.$ac_ext
11648 fi
11649
11650
11651 else
11652 system_bdw_gc_found=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 CFLAGS=$save_CFLAGS
11657 LIBS=$save_LIBS
11658 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5
11660 $as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;}
11661 use_bdw_gc=no
11662 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then
11663 as_fn_error "system bdw-gc required but not found" "$LINENO" 5
11664 else
11665 use_bdw_gc=yes
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11667 $as_echo "found" >&6; }
11668 fi
11669 esac
11670
11671 if test "$use_bdw_gc" = no; then
11672 OBJC_GCFLAGS=''
11673 OBJC_BOEHM_GC=''
11674 OBJC_BOEHM_GC_INCLUDES=''
11675 OBJC_BOEHM_GC_LIBS=''
11676 else
11677 OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
11678 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
11679 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS
11680 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS
11681 fi
11682
11683
11684
11685
11686
11687 # ------
11688 # Output
11689 # ------
11690
11691 if test ${multilib} = yes; then
11692 multilib_arg="--enable-multilib"
11693 else
11694 multilib_arg=
11695 fi
11696
11697 ac_config_files="$ac_config_files Makefile"
11698
11699 cat >confcache <<\_ACEOF
11700 # This file is a shell script that caches the results of configure
11701 # tests run on this system so they can be shared between configure
11702 # scripts and configure runs, see configure's option --config-cache.
11703 # It is not useful on other systems. If it contains results you don't
11704 # want to keep, you may remove or edit it.
11705 #
11706 # config.status only pays attention to the cache file if you give it
11707 # the --recheck option to rerun configure.
11708 #
11709 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11710 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11711 # following values.
11712
11713 _ACEOF
11714
11715 # The following way of writing the cache mishandles newlines in values,
11716 # but we know of no workaround that is simple, portable, and efficient.
11717 # So, we kill variables containing newlines.
11718 # Ultrix sh set writes to stderr and can't be redirected directly,
11719 # and sets the high bit in the cache file unless we assign to the vars.
11720 (
11721 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11722 eval ac_val=\$$ac_var
11723 case $ac_val in #(
11724 *${as_nl}*)
11725 case $ac_var in #(
11726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11728 esac
11729 case $ac_var in #(
11730 _ | IFS | as_nl) ;; #(
11731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11732 *) { eval $ac_var=; unset $ac_var;} ;;
11733 esac ;;
11734 esac
11735 done
11736
11737 (set) 2>&1 |
11738 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11739 *${as_nl}ac_space=\ *)
11740 # `set' does not quote correctly, so add quotes: double-quote
11741 # substitution turns \\\\ into \\, and sed turns \\ into \.
11742 sed -n \
11743 "s/'/'\\\\''/g;
11744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11745 ;; #(
11746 *)
11747 # `set' quotes correctly as required by POSIX, so do not add quotes.
11748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11749 ;;
11750 esac |
11751 sort
11752 ) |
11753 sed '
11754 /^ac_cv_env_/b end
11755 t clear
11756 :clear
11757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11758 t end
11759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11760 :end' >>confcache
11761 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11762 if test -w "$cache_file"; then
11763 test "x$cache_file" != "x/dev/null" &&
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11765 $as_echo "$as_me: updating cache $cache_file" >&6;}
11766 cat confcache >$cache_file
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11769 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11770 fi
11771 fi
11772 rm -f confcache
11773
11774 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11775 # Let make expand exec_prefix.
11776 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11777
11778 DEFS=-DHAVE_CONFIG_H
11779
11780 ac_libobjs=
11781 ac_ltlibobjs=
11782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11783 # 1. Remove the extension, and $U if already installed.
11784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11785 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11787 # will be set to the directory where LIBOBJS objects are built.
11788 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11789 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11790 done
11791 LIBOBJS=$ac_libobjs
11792
11793 LTLIBOBJS=$ac_ltlibobjs
11794
11795
11796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11797 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11799 fi
11800
11801 : ${CONFIG_STATUS=./config.status}
11802 ac_write_fail=0
11803 ac_clean_files_save=$ac_clean_files
11804 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11806 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11807 as_write_fail=0
11808 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11809 #! $SHELL
11810 # Generated by $as_me.
11811 # Run this file to recreate the current configuration.
11812 # Compiler output produced by configure, useful for debugging
11813 # configure, is in config.log if it exists.
11814
11815 debug=false
11816 ac_cs_recheck=false
11817 ac_cs_silent=false
11818
11819 SHELL=\${CONFIG_SHELL-$SHELL}
11820 export SHELL
11821 _ASEOF
11822 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11823 ## -------------------- ##
11824 ## M4sh Initialization. ##
11825 ## -------------------- ##
11826
11827 # Be more Bourne compatible
11828 DUALCASE=1; export DUALCASE # for MKS sh
11829 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11830 emulate sh
11831 NULLCMD=:
11832 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11833 # is contrary to our usage. Disable this feature.
11834 alias -g '${1+"$@"}'='"$@"'
11835 setopt NO_GLOB_SUBST
11836 else
11837 case `(set -o) 2>/dev/null` in #(
11838 *posix*) :
11839 set -o posix ;; #(
11840 *) :
11841 ;;
11842 esac
11843 fi
11844
11845
11846 as_nl='
11847 '
11848 export as_nl
11849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11850 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11853 # Prefer a ksh shell builtin over an external printf program on Solaris,
11854 # but without wasting forks for bash or zsh.
11855 if test -z "$BASH_VERSION$ZSH_VERSION" \
11856 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11857 as_echo='print -r --'
11858 as_echo_n='print -rn --'
11859 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11860 as_echo='printf %s\n'
11861 as_echo_n='printf %s'
11862 else
11863 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11864 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11865 as_echo_n='/usr/ucb/echo -n'
11866 else
11867 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11868 as_echo_n_body='eval
11869 arg=$1;
11870 case $arg in #(
11871 *"$as_nl"*)
11872 expr "X$arg" : "X\\(.*\\)$as_nl";
11873 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11874 esac;
11875 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11876 '
11877 export as_echo_n_body
11878 as_echo_n='sh -c $as_echo_n_body as_echo'
11879 fi
11880 export as_echo_body
11881 as_echo='sh -c $as_echo_body as_echo'
11882 fi
11883
11884 # The user is always right.
11885 if test "${PATH_SEPARATOR+set}" != set; then
11886 PATH_SEPARATOR=:
11887 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11888 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11889 PATH_SEPARATOR=';'
11890 }
11891 fi
11892
11893
11894 # IFS
11895 # We need space, tab and new line, in precisely that order. Quoting is
11896 # there to prevent editors from complaining about space-tab.
11897 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11898 # splitting by setting IFS to empty value.)
11899 IFS=" "" $as_nl"
11900
11901 # Find who we are. Look in the path if we contain no directory separator.
11902 case $0 in #((
11903 *[\\/]* ) as_myself=$0 ;;
11904 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11906 do
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11910 done
11911 IFS=$as_save_IFS
11912
11913 ;;
11914 esac
11915 # We did not find ourselves, most probably we were run as `sh COMMAND'
11916 # in which case we are not to be found in the path.
11917 if test "x$as_myself" = x; then
11918 as_myself=$0
11919 fi
11920 if test ! -f "$as_myself"; then
11921 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11922 exit 1
11923 fi
11924
11925 # Unset variables that we do not need and which cause bugs (e.g. in
11926 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11927 # suppresses any "Segmentation fault" message there. '((' could
11928 # trigger a bug in pdksh 5.2.14.
11929 for as_var in BASH_ENV ENV MAIL MAILPATH
11930 do eval test x\${$as_var+set} = xset \
11931 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11932 done
11933 PS1='$ '
11934 PS2='> '
11935 PS4='+ '
11936
11937 # NLS nuisances.
11938 LC_ALL=C
11939 export LC_ALL
11940 LANGUAGE=C
11941 export LANGUAGE
11942
11943 # CDPATH.
11944 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11945
11946
11947 # as_fn_error ERROR [LINENO LOG_FD]
11948 # ---------------------------------
11949 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11950 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11951 # script with status $?, using 1 if that was 0.
11952 as_fn_error ()
11953 {
11954 as_status=$?; test $as_status -eq 0 && as_status=1
11955 if test "$3"; then
11956 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11957 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11958 fi
11959 $as_echo "$as_me: error: $1" >&2
11960 as_fn_exit $as_status
11961 } # as_fn_error
11962
11963
11964 # as_fn_set_status STATUS
11965 # -----------------------
11966 # Set $? to STATUS, without forking.
11967 as_fn_set_status ()
11968 {
11969 return $1
11970 } # as_fn_set_status
11971
11972 # as_fn_exit STATUS
11973 # -----------------
11974 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11975 as_fn_exit ()
11976 {
11977 set +e
11978 as_fn_set_status $1
11979 exit $1
11980 } # as_fn_exit
11981
11982 # as_fn_unset VAR
11983 # ---------------
11984 # Portably unset VAR.
11985 as_fn_unset ()
11986 {
11987 { eval $1=; unset $1;}
11988 }
11989 as_unset=as_fn_unset
11990 # as_fn_append VAR VALUE
11991 # ----------------------
11992 # Append the text in VALUE to the end of the definition contained in VAR. Take
11993 # advantage of any shell optimizations that allow amortized linear growth over
11994 # repeated appends, instead of the typical quadratic growth present in naive
11995 # implementations.
11996 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11997 eval 'as_fn_append ()
11998 {
11999 eval $1+=\$2
12000 }'
12001 else
12002 as_fn_append ()
12003 {
12004 eval $1=\$$1\$2
12005 }
12006 fi # as_fn_append
12007
12008 # as_fn_arith ARG...
12009 # ------------------
12010 # Perform arithmetic evaluation on the ARGs, and store the result in the
12011 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12012 # must be portable across $(()) and expr.
12013 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12014 eval 'as_fn_arith ()
12015 {
12016 as_val=$(( $* ))
12017 }'
12018 else
12019 as_fn_arith ()
12020 {
12021 as_val=`expr "$@" || test $? -eq 1`
12022 }
12023 fi # as_fn_arith
12024
12025
12026 if expr a : '\(a\)' >/dev/null 2>&1 &&
12027 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12028 as_expr=expr
12029 else
12030 as_expr=false
12031 fi
12032
12033 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12034 as_basename=basename
12035 else
12036 as_basename=false
12037 fi
12038
12039 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12040 as_dirname=dirname
12041 else
12042 as_dirname=false
12043 fi
12044
12045 as_me=`$as_basename -- "$0" ||
12046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12047 X"$0" : 'X\(//\)$' \| \
12048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12049 $as_echo X/"$0" |
12050 sed '/^.*\/\([^/][^/]*\)\/*$/{
12051 s//\1/
12052 q
12053 }
12054 /^X\/\(\/\/\)$/{
12055 s//\1/
12056 q
12057 }
12058 /^X\/\(\/\).*/{
12059 s//\1/
12060 q
12061 }
12062 s/.*/./; q'`
12063
12064 # Avoid depending upon Character Ranges.
12065 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12066 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12067 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12068 as_cr_digits='0123456789'
12069 as_cr_alnum=$as_cr_Letters$as_cr_digits
12070
12071 ECHO_C= ECHO_N= ECHO_T=
12072 case `echo -n x` in #(((((
12073 -n*)
12074 case `echo 'xy\c'` in
12075 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12076 xy) ECHO_C='\c';;
12077 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12078 ECHO_T=' ';;
12079 esac;;
12080 *)
12081 ECHO_N='-n';;
12082 esac
12083
12084 rm -f conf$$ conf$$.exe conf$$.file
12085 if test -d conf$$.dir; then
12086 rm -f conf$$.dir/conf$$.file
12087 else
12088 rm -f conf$$.dir
12089 mkdir conf$$.dir 2>/dev/null
12090 fi
12091 if (echo >conf$$.file) 2>/dev/null; then
12092 if ln -s conf$$.file conf$$ 2>/dev/null; then
12093 as_ln_s='ln -s'
12094 # ... but there are two gotchas:
12095 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12096 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12097 # In both cases, we have to default to `cp -p'.
12098 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12099 as_ln_s='cp -p'
12100 elif ln conf$$.file conf$$ 2>/dev/null; then
12101 as_ln_s=ln
12102 else
12103 as_ln_s='cp -p'
12104 fi
12105 else
12106 as_ln_s='cp -p'
12107 fi
12108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12109 rmdir conf$$.dir 2>/dev/null
12110
12111
12112 # as_fn_mkdir_p
12113 # -------------
12114 # Create "$as_dir" as a directory, including parents if necessary.
12115 as_fn_mkdir_p ()
12116 {
12117
12118 case $as_dir in #(
12119 -*) as_dir=./$as_dir;;
12120 esac
12121 test -d "$as_dir" || eval $as_mkdir_p || {
12122 as_dirs=
12123 while :; do
12124 case $as_dir in #(
12125 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12126 *) as_qdir=$as_dir;;
12127 esac
12128 as_dirs="'$as_qdir' $as_dirs"
12129 as_dir=`$as_dirname -- "$as_dir" ||
12130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12131 X"$as_dir" : 'X\(//\)[^/]' \| \
12132 X"$as_dir" : 'X\(//\)$' \| \
12133 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12134 $as_echo X"$as_dir" |
12135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12136 s//\1/
12137 q
12138 }
12139 /^X\(\/\/\)[^/].*/{
12140 s//\1/
12141 q
12142 }
12143 /^X\(\/\/\)$/{
12144 s//\1/
12145 q
12146 }
12147 /^X\(\/\).*/{
12148 s//\1/
12149 q
12150 }
12151 s/.*/./; q'`
12152 test -d "$as_dir" && break
12153 done
12154 test -z "$as_dirs" || eval "mkdir $as_dirs"
12155 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12156
12157
12158 } # as_fn_mkdir_p
12159 if mkdir -p . 2>/dev/null; then
12160 as_mkdir_p='mkdir -p "$as_dir"'
12161 else
12162 test -d ./-p && rmdir ./-p
12163 as_mkdir_p=false
12164 fi
12165
12166 if test -x / >/dev/null 2>&1; then
12167 as_test_x='test -x'
12168 else
12169 if ls -dL / >/dev/null 2>&1; then
12170 as_ls_L_option=L
12171 else
12172 as_ls_L_option=
12173 fi
12174 as_test_x='
12175 eval sh -c '\''
12176 if test -d "$1"; then
12177 test -d "$1/.";
12178 else
12179 case $1 in #(
12180 -*)set "./$1";;
12181 esac;
12182 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12183 ???[sx]*):;;*)false;;esac;fi
12184 '\'' sh
12185 '
12186 fi
12187 as_executable_p=$as_test_x
12188
12189 # Sed expression to map a string onto a valid CPP name.
12190 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12191
12192 # Sed expression to map a string onto a valid variable name.
12193 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12194
12195
12196 exec 6>&1
12197 ## ----------------------------------- ##
12198 ## Main body of $CONFIG_STATUS script. ##
12199 ## ----------------------------------- ##
12200 _ASEOF
12201 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12202
12203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12204 # Save the log message, to keep $0 and so on meaningful, and to
12205 # report actual input values of CONFIG_FILES etc. instead of their
12206 # values after options handling.
12207 ac_log="
12208 This file was extended by package-unused $as_me version-unused, which was
12209 generated by GNU Autoconf 2.64. Invocation command line was
12210
12211 CONFIG_FILES = $CONFIG_FILES
12212 CONFIG_HEADERS = $CONFIG_HEADERS
12213 CONFIG_LINKS = $CONFIG_LINKS
12214 CONFIG_COMMANDS = $CONFIG_COMMANDS
12215 $ $0 $@
12216
12217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12218 "
12219
12220 _ACEOF
12221
12222 case $ac_config_files in *"
12223 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12224 esac
12225
12226 case $ac_config_headers in *"
12227 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12228 esac
12229
12230
12231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12232 # Files that config.status was made for.
12233 config_files="$ac_config_files"
12234 config_headers="$ac_config_headers"
12235 config_commands="$ac_config_commands"
12236
12237 _ACEOF
12238
12239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12240 ac_cs_usage="\
12241 \`$as_me' instantiates files and other configuration actions
12242 from templates according to the current configuration. Unless the files
12243 and actions are specified as TAGs, all are instantiated by default.
12244
12245 Usage: $0 [OPTION]... [TAG]...
12246
12247 -h, --help print this help, then exit
12248 -V, --version print version number and configuration settings, then exit
12249 -q, --quiet, --silent
12250 do not print progress messages
12251 -d, --debug don't remove temporary files
12252 --recheck update $as_me by reconfiguring in the same conditions
12253 --file=FILE[:TEMPLATE]
12254 instantiate the configuration file FILE
12255 --header=FILE[:TEMPLATE]
12256 instantiate the configuration header FILE
12257
12258 Configuration files:
12259 $config_files
12260
12261 Configuration headers:
12262 $config_headers
12263
12264 Configuration commands:
12265 $config_commands
12266
12267 Report bugs to the package provider."
12268
12269 _ACEOF
12270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12271 ac_cs_version="\\
12272 package-unused config.status version-unused
12273 configured by $0, generated by GNU Autoconf 2.64,
12274 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12275
12276 Copyright (C) 2009 Free Software Foundation, Inc.
12277 This config.status script is free software; the Free Software Foundation
12278 gives unlimited permission to copy, distribute and modify it."
12279
12280 ac_pwd='$ac_pwd'
12281 srcdir='$srcdir'
12282 INSTALL='$INSTALL'
12283 AWK='$AWK'
12284 test -n "\$AWK" || AWK=awk
12285 _ACEOF
12286
12287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12288 # The default lists apply if the user does not specify any file.
12289 ac_need_defaults=:
12290 while test $# != 0
12291 do
12292 case $1 in
12293 --*=*)
12294 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12295 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12296 ac_shift=:
12297 ;;
12298 *)
12299 ac_option=$1
12300 ac_optarg=$2
12301 ac_shift=shift
12302 ;;
12303 esac
12304
12305 case $ac_option in
12306 # Handling of the options.
12307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12308 ac_cs_recheck=: ;;
12309 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12310 $as_echo "$ac_cs_version"; exit ;;
12311 --debug | --debu | --deb | --de | --d | -d )
12312 debug=: ;;
12313 --file | --fil | --fi | --f )
12314 $ac_shift
12315 case $ac_optarg in
12316 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12317 esac
12318 as_fn_append CONFIG_FILES " '$ac_optarg'"
12319 ac_need_defaults=false;;
12320 --header | --heade | --head | --hea )
12321 $ac_shift
12322 case $ac_optarg in
12323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12324 esac
12325 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12326 ac_need_defaults=false;;
12327 --he | --h)
12328 # Conflict between --help and --header
12329 as_fn_error "ambiguous option: \`$1'
12330 Try \`$0 --help' for more information.";;
12331 --help | --hel | -h )
12332 $as_echo "$ac_cs_usage"; exit ;;
12333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12334 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12335 ac_cs_silent=: ;;
12336
12337 # This is an error.
12338 -*) as_fn_error "unrecognized option: \`$1'
12339 Try \`$0 --help' for more information." ;;
12340
12341 *) as_fn_append ac_config_targets " $1"
12342 ac_need_defaults=false ;;
12343
12344 esac
12345 shift
12346 done
12347
12348 ac_configure_extra_args=
12349
12350 if $ac_cs_silent; then
12351 exec 6>/dev/null
12352 ac_configure_extra_args="$ac_configure_extra_args --silent"
12353 fi
12354
12355 _ACEOF
12356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12357 if \$ac_cs_recheck; then
12358 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12359 shift
12360 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12361 CONFIG_SHELL='$SHELL'
12362 export CONFIG_SHELL
12363 exec "\$@"
12364 fi
12365
12366 _ACEOF
12367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12368 exec 5>>config.log
12369 {
12370 echo
12371 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12372 ## Running $as_me. ##
12373 _ASBOX
12374 $as_echo "$ac_log"
12375 } >&5
12376
12377 _ACEOF
12378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12379 #
12380 # INIT-COMMANDS
12381 #
12382
12383 srcdir="$srcdir"
12384 host="$host"
12385 target="$target"
12386 with_multisubdir="$with_multisubdir"
12387 with_multisrctop="$with_multisrctop"
12388 with_target_subdir="$with_target_subdir"
12389 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12390 multi_basedir="$multi_basedir"
12391 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12392 CC="$CC"
12393 CXX="$CXX"
12394 GFORTRAN="$GFORTRAN"
12395
12396
12397 # The HP-UX ksh and POSIX shell print the target directory to stdout
12398 # if CDPATH is set.
12399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12400
12401 sed_quote_subst='$sed_quote_subst'
12402 double_quote_subst='$double_quote_subst'
12403 delay_variable_subst='$delay_variable_subst'
12404 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12405 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12406 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12407 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12408 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12409 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12410 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12411 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12412 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12413 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12414 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12415 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12416 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12417 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12418 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12419 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12420 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12421 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12422 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12423 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12424 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12425 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12426 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12427 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12428 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12429 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12430 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12431 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12432 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12433 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12434 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12435 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12436 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12437 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12438 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12439 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12440 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12441 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12442 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12443 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12444 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12445 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12446 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12447 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12448 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12449 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12450 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12451 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12452 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12453 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12454 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"`'
12455 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12456 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12457 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12458 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12459 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12460 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12461 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12462 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12463 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12464 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12465 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12466 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12467 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12468 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12469 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12470 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12471 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12472 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12473 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12474 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12475 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12476 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12477 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12478 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12479 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12480 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12481 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12482 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12483 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12484 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12485 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12486 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12487 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12488 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12489 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12490 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12491 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12492 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12493 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12494 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12495 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12496 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12497 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12498 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12499 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12500 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12501 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12502 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12503 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12504 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12505 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12506 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12507 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12508 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12509 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12510 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12511 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12512 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12513 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12514 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12515 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12516 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12517 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12518 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12519 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12520 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12521 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12522 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12523 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12524 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12525 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12526
12527 LTCC='$LTCC'
12528 LTCFLAGS='$LTCFLAGS'
12529 compiler='$compiler_DEFAULT'
12530
12531 # A function that is used when there is no print builtin or printf.
12532 func_fallback_echo ()
12533 {
12534 eval 'cat <<_LTECHO_EOF
12535 \$1
12536 _LTECHO_EOF'
12537 }
12538
12539 # Quote evaled strings.
12540 for var in AS \
12541 DLLTOOL \
12542 OBJDUMP \
12543 SHELL \
12544 ECHO \
12545 SED \
12546 GREP \
12547 EGREP \
12548 FGREP \
12549 LD \
12550 NM \
12551 LN_S \
12552 lt_SP2NL \
12553 lt_NL2SP \
12554 reload_flag \
12555 deplibs_check_method \
12556 file_magic_cmd \
12557 AR \
12558 AR_FLAGS \
12559 STRIP \
12560 RANLIB \
12561 CC \
12562 CFLAGS \
12563 compiler \
12564 lt_cv_sys_global_symbol_pipe \
12565 lt_cv_sys_global_symbol_to_cdecl \
12566 lt_cv_sys_global_symbol_to_c_name_address \
12567 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12568 lt_prog_compiler_no_builtin_flag \
12569 lt_prog_compiler_wl \
12570 lt_prog_compiler_pic \
12571 lt_prog_compiler_static \
12572 lt_cv_prog_compiler_c_o \
12573 need_locks \
12574 DSYMUTIL \
12575 NMEDIT \
12576 LIPO \
12577 OTOOL \
12578 OTOOL64 \
12579 shrext_cmds \
12580 export_dynamic_flag_spec \
12581 whole_archive_flag_spec \
12582 compiler_needs_object \
12583 with_gnu_ld \
12584 allow_undefined_flag \
12585 no_undefined_flag \
12586 hardcode_libdir_flag_spec \
12587 hardcode_libdir_flag_spec_ld \
12588 hardcode_libdir_separator \
12589 fix_srcfile_path \
12590 exclude_expsyms \
12591 include_expsyms \
12592 file_list_spec \
12593 variables_saved_for_relink \
12594 libname_spec \
12595 library_names_spec \
12596 soname_spec \
12597 install_override_mode \
12598 finish_eval \
12599 old_striplib \
12600 striplib; do
12601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12602 *[\\\\\\\`\\"\\\$]*)
12603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12604 ;;
12605 *)
12606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12607 ;;
12608 esac
12609 done
12610
12611 # Double-quote double-evaled strings.
12612 for var in reload_cmds \
12613 old_postinstall_cmds \
12614 old_postuninstall_cmds \
12615 old_archive_cmds \
12616 extract_expsyms_cmds \
12617 old_archive_from_new_cmds \
12618 old_archive_from_expsyms_cmds \
12619 archive_cmds \
12620 archive_expsym_cmds \
12621 module_cmds \
12622 module_expsym_cmds \
12623 export_symbols_cmds \
12624 prelink_cmds \
12625 postinstall_cmds \
12626 postuninstall_cmds \
12627 finish_cmds \
12628 sys_lib_search_path_spec \
12629 sys_lib_dlsearch_path_spec; do
12630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12631 *[\\\\\\\`\\"\\\$]*)
12632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12633 ;;
12634 *)
12635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12636 ;;
12637 esac
12638 done
12639
12640 ac_aux_dir='$ac_aux_dir'
12641 xsi_shell='$xsi_shell'
12642 lt_shell_append='$lt_shell_append'
12643
12644 # See if we are running on zsh, and set the options which allow our
12645 # commands through without removal of \ escapes INIT.
12646 if test -n "\${ZSH_VERSION+set}" ; then
12647 setopt NO_GLOB_SUBST
12648 fi
12649
12650
12651 PACKAGE='$PACKAGE'
12652 VERSION='$VERSION'
12653 TIMESTAMP='$TIMESTAMP'
12654 RM='$RM'
12655 ofile='$ofile'
12656
12657
12658
12659
12660 _ACEOF
12661
12662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12663
12664 # Handling of arguments.
12665 for ac_config_target in $ac_config_targets
12666 do
12667 case $ac_config_target in
12668 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12669 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12670 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12671 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12672
12673 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12674 esac
12675 done
12676
12677
12678 # If the user did not use the arguments to specify the items to instantiate,
12679 # then the envvar interface is used. Set only those that are not.
12680 # We use the long form for the default assignment because of an extremely
12681 # bizarre bug on SunOS 4.1.3.
12682 if $ac_need_defaults; then
12683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12686 fi
12687
12688 # Have a temporary directory for convenience. Make it in the build tree
12689 # simply because there is no reason against having it here, and in addition,
12690 # creating and moving files from /tmp can sometimes cause problems.
12691 # Hook for its removal unless debugging.
12692 # Note that there is a small window in which the directory will not be cleaned:
12693 # after its creation but before its name has been assigned to `$tmp'.
12694 $debug ||
12695 {
12696 tmp=
12697 trap 'exit_status=$?
12698 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12699 ' 0
12700 trap 'as_fn_exit 1' 1 2 13 15
12701 }
12702 # Create a (secure) tmp directory for tmp files.
12703
12704 {
12705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12706 test -n "$tmp" && test -d "$tmp"
12707 } ||
12708 {
12709 tmp=./conf$$-$RANDOM
12710 (umask 077 && mkdir "$tmp")
12711 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12712
12713 # Set up the scripts for CONFIG_FILES section.
12714 # No need to generate them if there are no CONFIG_FILES.
12715 # This happens for instance with `./config.status config.h'.
12716 if test -n "$CONFIG_FILES"; then
12717
12718
12719 ac_cr=`echo X | tr X '\015'`
12720 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12721 # But we know of no other shell where ac_cr would be empty at this
12722 # point, so we can use a bashism as a fallback.
12723 if test "x$ac_cr" = x; then
12724 eval ac_cr=\$\'\\r\'
12725 fi
12726 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12727 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12728 ac_cs_awk_cr='\r'
12729 else
12730 ac_cs_awk_cr=$ac_cr
12731 fi
12732
12733 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12734 _ACEOF
12735
12736
12737 {
12738 echo "cat >conf$$subs.awk <<_ACEOF" &&
12739 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12740 echo "_ACEOF"
12741 } >conf$$subs.sh ||
12742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12743 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12744 ac_delim='%!_!# '
12745 for ac_last_try in false false false false false :; do
12746 . ./conf$$subs.sh ||
12747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12748
12749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12750 if test $ac_delim_n = $ac_delim_num; then
12751 break
12752 elif $ac_last_try; then
12753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12754 else
12755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12756 fi
12757 done
12758 rm -f conf$$subs.sh
12759
12760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12761 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12762 _ACEOF
12763 sed -n '
12764 h
12765 s/^/S["/; s/!.*/"]=/
12766 p
12767 g
12768 s/^[^!]*!//
12769 :repl
12770 t repl
12771 s/'"$ac_delim"'$//
12772 t delim
12773 :nl
12774 h
12775 s/\(.\{148\}\).*/\1/
12776 t more1
12777 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12778 p
12779 n
12780 b repl
12781 :more1
12782 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12783 p
12784 g
12785 s/.\{148\}//
12786 t nl
12787 :delim
12788 h
12789 s/\(.\{148\}\).*/\1/
12790 t more2
12791 s/["\\]/\\&/g; s/^/"/; s/$/"/
12792 p
12793 b
12794 :more2
12795 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12796 p
12797 g
12798 s/.\{148\}//
12799 t delim
12800 ' <conf$$subs.awk | sed '
12801 /^[^""]/{
12802 N
12803 s/\n//
12804 }
12805 ' >>$CONFIG_STATUS || ac_write_fail=1
12806 rm -f conf$$subs.awk
12807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12808 _ACAWK
12809 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12810 for (key in S) S_is_set[key] = 1
12811 FS = "\a"
12812
12813 }
12814 {
12815 line = $ 0
12816 nfields = split(line, field, "@")
12817 substed = 0
12818 len = length(field[1])
12819 for (i = 2; i < nfields; i++) {
12820 key = field[i]
12821 keylen = length(key)
12822 if (S_is_set[key]) {
12823 value = S[key]
12824 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12825 len += length(value) + length(field[++i])
12826 substed = 1
12827 } else
12828 len += 1 + keylen
12829 }
12830
12831 print line
12832 }
12833
12834 _ACAWK
12835 _ACEOF
12836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12837 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12838 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12839 else
12840 cat
12841 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12842 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12843 _ACEOF
12844
12845 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12846 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12847 # trailing colons and then remove the whole line if VPATH becomes empty
12848 # (actually we leave an empty line to preserve line numbers).
12849 if test "x$srcdir" = x.; then
12850 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12851 s/:*\$(srcdir):*/:/
12852 s/:*\${srcdir}:*/:/
12853 s/:*@srcdir@:*/:/
12854 s/^\([^=]*=[ ]*\):*/\1/
12855 s/:*$//
12856 s/^[^=]*=[ ]*$//
12857 }'
12858 fi
12859
12860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12861 fi # test -n "$CONFIG_FILES"
12862
12863 # Set up the scripts for CONFIG_HEADERS section.
12864 # No need to generate them if there are no CONFIG_HEADERS.
12865 # This happens for instance with `./config.status Makefile'.
12866 if test -n "$CONFIG_HEADERS"; then
12867 cat >"$tmp/defines.awk" <<\_ACAWK ||
12868 BEGIN {
12869 _ACEOF
12870
12871 # Transform confdefs.h into an awk script `defines.awk', embedded as
12872 # here-document in config.status, that substitutes the proper values into
12873 # config.h.in to produce config.h.
12874
12875 # Create a delimiter string that does not exist in confdefs.h, to ease
12876 # handling of long lines.
12877 ac_delim='%!_!# '
12878 for ac_last_try in false false :; do
12879 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12880 if test -z "$ac_t"; then
12881 break
12882 elif $ac_last_try; then
12883 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12884 else
12885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12886 fi
12887 done
12888
12889 # For the awk script, D is an array of macro values keyed by name,
12890 # likewise P contains macro parameters if any. Preserve backslash
12891 # newline sequences.
12892
12893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12894 sed -n '
12895 s/.\{148\}/&'"$ac_delim"'/g
12896 t rset
12897 :rset
12898 s/^[ ]*#[ ]*define[ ][ ]*/ /
12899 t def
12900 d
12901 :def
12902 s/\\$//
12903 t bsnl
12904 s/["\\]/\\&/g
12905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12906 D["\1"]=" \3"/p
12907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12908 d
12909 :bsnl
12910 s/["\\]/\\&/g
12911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12912 D["\1"]=" \3\\\\\\n"\\/p
12913 t cont
12914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12915 t cont
12916 d
12917 :cont
12918 n
12919 s/.\{148\}/&'"$ac_delim"'/g
12920 t clear
12921 :clear
12922 s/\\$//
12923 t bsnlc
12924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12925 d
12926 :bsnlc
12927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12928 b cont
12929 ' <confdefs.h | sed '
12930 s/'"$ac_delim"'/"\\\
12931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12932
12933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12934 for (key in D) D_is_set[key] = 1
12935 FS = "\a"
12936 }
12937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12938 line = \$ 0
12939 split(line, arg, " ")
12940 if (arg[1] == "#") {
12941 defundef = arg[2]
12942 mac1 = arg[3]
12943 } else {
12944 defundef = substr(arg[1], 2)
12945 mac1 = arg[2]
12946 }
12947 split(mac1, mac2, "(") #)
12948 macro = mac2[1]
12949 prefix = substr(line, 1, index(line, defundef) - 1)
12950 if (D_is_set[macro]) {
12951 # Preserve the white space surrounding the "#".
12952 print prefix "define", macro P[macro] D[macro]
12953 next
12954 } else {
12955 # Replace #undef with comments. This is necessary, for example,
12956 # in the case of _POSIX_SOURCE, which is predefined and required
12957 # on some systems where configure will not decide to define it.
12958 if (defundef == "undef") {
12959 print "/*", prefix defundef, macro, "*/"
12960 next
12961 }
12962 }
12963 }
12964 { print }
12965 _ACAWK
12966 _ACEOF
12967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12969 fi # test -n "$CONFIG_HEADERS"
12970
12971
12972 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12973 shift
12974 for ac_tag
12975 do
12976 case $ac_tag in
12977 :[FHLC]) ac_mode=$ac_tag; continue;;
12978 esac
12979 case $ac_mode$ac_tag in
12980 :[FHL]*:*);;
12981 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12982 :[FH]-) ac_tag=-:-;;
12983 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12984 esac
12985 ac_save_IFS=$IFS
12986 IFS=:
12987 set x $ac_tag
12988 IFS=$ac_save_IFS
12989 shift
12990 ac_file=$1
12991 shift
12992
12993 case $ac_mode in
12994 :L) ac_source=$1;;
12995 :[FH])
12996 ac_file_inputs=
12997 for ac_f
12998 do
12999 case $ac_f in
13000 -) ac_f="$tmp/stdin";;
13001 *) # Look for the file first in the build tree, then in the source tree
13002 # (if the path is not absolute). The absolute path cannot be DOS-style,
13003 # because $ac_f cannot contain `:'.
13004 test -f "$ac_f" ||
13005 case $ac_f in
13006 [\\/$]*) false;;
13007 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13008 esac ||
13009 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13010 esac
13011 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13012 as_fn_append ac_file_inputs " '$ac_f'"
13013 done
13014
13015 # Let's still pretend it is `configure' which instantiates (i.e., don't
13016 # use $as_me), people would be surprised to read:
13017 # /* config.h. Generated by config.status. */
13018 configure_input='Generated from '`
13019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13020 `' by configure.'
13021 if test x"$ac_file" != x-; then
13022 configure_input="$ac_file. $configure_input"
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13024 $as_echo "$as_me: creating $ac_file" >&6;}
13025 fi
13026 # Neutralize special characters interpreted by sed in replacement strings.
13027 case $configure_input in #(
13028 *\&* | *\|* | *\\* )
13029 ac_sed_conf_input=`$as_echo "$configure_input" |
13030 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13031 *) ac_sed_conf_input=$configure_input;;
13032 esac
13033
13034 case $ac_tag in
13035 *:-:* | *:-) cat >"$tmp/stdin" \
13036 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13037 esac
13038 ;;
13039 esac
13040
13041 ac_dir=`$as_dirname -- "$ac_file" ||
13042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13043 X"$ac_file" : 'X\(//\)[^/]' \| \
13044 X"$ac_file" : 'X\(//\)$' \| \
13045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13046 $as_echo X"$ac_file" |
13047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13048 s//\1/
13049 q
13050 }
13051 /^X\(\/\/\)[^/].*/{
13052 s//\1/
13053 q
13054 }
13055 /^X\(\/\/\)$/{
13056 s//\1/
13057 q
13058 }
13059 /^X\(\/\).*/{
13060 s//\1/
13061 q
13062 }
13063 s/.*/./; q'`
13064 as_dir="$ac_dir"; as_fn_mkdir_p
13065 ac_builddir=.
13066
13067 case "$ac_dir" in
13068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13069 *)
13070 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13071 # A ".." for each directory in $ac_dir_suffix.
13072 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13073 case $ac_top_builddir_sub in
13074 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13075 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13076 esac ;;
13077 esac
13078 ac_abs_top_builddir=$ac_pwd
13079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13080 # for backward compatibility:
13081 ac_top_builddir=$ac_top_build_prefix
13082
13083 case $srcdir in
13084 .) # We are building in place.
13085 ac_srcdir=.
13086 ac_top_srcdir=$ac_top_builddir_sub
13087 ac_abs_top_srcdir=$ac_pwd ;;
13088 [\\/]* | ?:[\\/]* ) # Absolute name.
13089 ac_srcdir=$srcdir$ac_dir_suffix;
13090 ac_top_srcdir=$srcdir
13091 ac_abs_top_srcdir=$srcdir ;;
13092 *) # Relative name.
13093 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13094 ac_top_srcdir=$ac_top_build_prefix$srcdir
13095 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13096 esac
13097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13098
13099
13100 case $ac_mode in
13101 :F)
13102 #
13103 # CONFIG_FILE
13104 #
13105
13106 case $INSTALL in
13107 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13109 esac
13110 _ACEOF
13111
13112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13113 # If the template does not know about datarootdir, expand it.
13114 # FIXME: This hack should be removed a few years after 2.60.
13115 ac_datarootdir_hack=; ac_datarootdir_seen=
13116 ac_sed_dataroot='
13117 /datarootdir/ {
13118 p
13119 q
13120 }
13121 /@datadir@/p
13122 /@docdir@/p
13123 /@infodir@/p
13124 /@localedir@/p
13125 /@mandir@/p'
13126 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13127 *datarootdir*) ac_datarootdir_seen=yes;;
13128 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13130 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13131 _ACEOF
13132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13133 ac_datarootdir_hack='
13134 s&@datadir@&$datadir&g
13135 s&@docdir@&$docdir&g
13136 s&@infodir@&$infodir&g
13137 s&@localedir@&$localedir&g
13138 s&@mandir@&$mandir&g
13139 s&\\\${datarootdir}&$datarootdir&g' ;;
13140 esac
13141 _ACEOF
13142
13143 # Neutralize VPATH when `$srcdir' = `.'.
13144 # Shell code in configure.ac might set extrasub.
13145 # FIXME: do we really want to maintain this feature?
13146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13147 ac_sed_extra="$ac_vpsub
13148 $extrasub
13149 _ACEOF
13150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13151 :t
13152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13153 s|@configure_input@|$ac_sed_conf_input|;t t
13154 s&@top_builddir@&$ac_top_builddir_sub&;t t
13155 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13156 s&@srcdir@&$ac_srcdir&;t t
13157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13158 s&@top_srcdir@&$ac_top_srcdir&;t t
13159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13160 s&@builddir@&$ac_builddir&;t t
13161 s&@abs_builddir@&$ac_abs_builddir&;t t
13162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13163 s&@INSTALL@&$ac_INSTALL&;t t
13164 $ac_datarootdir_hack
13165 "
13166 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13167 || as_fn_error "could not create $ac_file" "$LINENO" 5
13168
13169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13170 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13173 which seems to be undefined. Please make sure it is defined." >&5
13174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13175 which seems to be undefined. Please make sure it is defined." >&2;}
13176
13177 rm -f "$tmp/stdin"
13178 case $ac_file in
13179 -) cat "$tmp/out" && rm -f "$tmp/out";;
13180 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13181 esac \
13182 || as_fn_error "could not create $ac_file" "$LINENO" 5
13183 ;;
13184 :H)
13185 #
13186 # CONFIG_HEADER
13187 #
13188 if test x"$ac_file" != x-; then
13189 {
13190 $as_echo "/* $configure_input */" \
13191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13192 } >"$tmp/config.h" \
13193 || as_fn_error "could not create $ac_file" "$LINENO" 5
13194 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13197 else
13198 rm -f "$ac_file"
13199 mv "$tmp/config.h" "$ac_file" \
13200 || as_fn_error "could not create $ac_file" "$LINENO" 5
13201 fi
13202 else
13203 $as_echo "/* $configure_input */" \
13204 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13205 || as_fn_error "could not create -" "$LINENO" 5
13206 fi
13207 ;;
13208
13209 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13210 $as_echo "$as_me: executing $ac_file commands" >&6;}
13211 ;;
13212 esac
13213
13214
13215 case $ac_file$ac_mode in
13216 "default-1":C)
13217 # Only add multilib support code if we just rebuilt the top-level
13218 # Makefile.
13219 case " $CONFIG_FILES " in
13220 *" Makefile "*)
13221 ac_file=Makefile . ${multi_basedir}/config-ml.in
13222 ;;
13223 esac ;;
13224 "libtool":C)
13225
13226 # See if we are running on zsh, and set the options which allow our
13227 # commands through without removal of \ escapes.
13228 if test -n "${ZSH_VERSION+set}" ; then
13229 setopt NO_GLOB_SUBST
13230 fi
13231
13232 cfgfile="${ofile}T"
13233 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13234 $RM "$cfgfile"
13235
13236 cat <<_LT_EOF >> "$cfgfile"
13237 #! $SHELL
13238
13239 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13240 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13241 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13242 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13243 #
13244 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13245 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13246 # Written by Gordon Matzigkeit, 1996
13247 #
13248 # This file is part of GNU Libtool.
13249 #
13250 # GNU Libtool is free software; you can redistribute it and/or
13251 # modify it under the terms of the GNU General Public License as
13252 # published by the Free Software Foundation; either version 2 of
13253 # the License, or (at your option) any later version.
13254 #
13255 # As a special exception to the GNU General Public License,
13256 # if you distribute this file as part of a program or library that
13257 # is built using GNU Libtool, you may include this file under the
13258 # same distribution terms that you use for the rest of that program.
13259 #
13260 # GNU Libtool is distributed in the hope that it will be useful,
13261 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13263 # GNU General Public License for more details.
13264 #
13265 # You should have received a copy of the GNU General Public License
13266 # along with GNU Libtool; see the file COPYING. If not, a copy
13267 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13268 # obtained by writing to the Free Software Foundation, Inc.,
13269 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13270
13271
13272 # The names of the tagged configurations supported by this script.
13273 available_tags=""
13274
13275 # ### BEGIN LIBTOOL CONFIG
13276
13277 # Assembler program.
13278 AS=$lt_AS
13279
13280 # DLL creation program.
13281 DLLTOOL=$lt_DLLTOOL
13282
13283 # Object dumper program.
13284 OBJDUMP=$lt_OBJDUMP
13285
13286 # Which release of libtool.m4 was used?
13287 macro_version=$macro_version
13288 macro_revision=$macro_revision
13289
13290 # Whether or not to build shared libraries.
13291 build_libtool_libs=$enable_shared
13292
13293 # Whether or not to build static libraries.
13294 build_old_libs=$enable_static
13295
13296 # What type of objects to build.
13297 pic_mode=$pic_mode
13298
13299 # Whether or not to optimize for fast installation.
13300 fast_install=$enable_fast_install
13301
13302 # Shell to use when invoking shell scripts.
13303 SHELL=$lt_SHELL
13304
13305 # An echo program that protects backslashes.
13306 ECHO=$lt_ECHO
13307
13308 # The host system.
13309 host_alias=$host_alias
13310 host=$host
13311 host_os=$host_os
13312
13313 # The build system.
13314 build_alias=$build_alias
13315 build=$build
13316 build_os=$build_os
13317
13318 # A sed program that does not truncate output.
13319 SED=$lt_SED
13320
13321 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13322 Xsed="\$SED -e 1s/^X//"
13323
13324 # A grep program that handles long lines.
13325 GREP=$lt_GREP
13326
13327 # An ERE matcher.
13328 EGREP=$lt_EGREP
13329
13330 # A literal string matcher.
13331 FGREP=$lt_FGREP
13332
13333 # A BSD- or MS-compatible name lister.
13334 NM=$lt_NM
13335
13336 # Whether we need soft or hard links.
13337 LN_S=$lt_LN_S
13338
13339 # What is the maximum length of a command?
13340 max_cmd_len=$max_cmd_len
13341
13342 # Object file suffix (normally "o").
13343 objext=$ac_objext
13344
13345 # Executable file suffix (normally "").
13346 exeext=$exeext
13347
13348 # whether the shell understands "unset".
13349 lt_unset=$lt_unset
13350
13351 # turn spaces into newlines.
13352 SP2NL=$lt_lt_SP2NL
13353
13354 # turn newlines into spaces.
13355 NL2SP=$lt_lt_NL2SP
13356
13357 # Method to check whether dependent libraries are shared objects.
13358 deplibs_check_method=$lt_deplibs_check_method
13359
13360 # Command to use when deplibs_check_method == "file_magic".
13361 file_magic_cmd=$lt_file_magic_cmd
13362
13363 # The archiver.
13364 AR=$lt_AR
13365 AR_FLAGS=$lt_AR_FLAGS
13366
13367 # A symbol stripping program.
13368 STRIP=$lt_STRIP
13369
13370 # Commands used to install an old-style archive.
13371 RANLIB=$lt_RANLIB
13372 old_postinstall_cmds=$lt_old_postinstall_cmds
13373 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13374
13375 # Whether to use a lock for old archive extraction.
13376 lock_old_archive_extraction=$lock_old_archive_extraction
13377
13378 # A C compiler.
13379 LTCC=$lt_CC
13380
13381 # LTCC compiler flags.
13382 LTCFLAGS=$lt_CFLAGS
13383
13384 # Take the output of nm and produce a listing of raw symbols and C names.
13385 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13386
13387 # Transform the output of nm in a proper C declaration.
13388 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13389
13390 # Transform the output of nm in a C name address pair.
13391 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13392
13393 # Transform the output of nm in a C name address pair when lib prefix is needed.
13394 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13395
13396 # The name of the directory that contains temporary libtool files.
13397 objdir=$objdir
13398
13399 # Used to examine libraries when file_magic_cmd begins with "file".
13400 MAGIC_CMD=$MAGIC_CMD
13401
13402 # Must we lock files when doing compilation?
13403 need_locks=$lt_need_locks
13404
13405 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13406 DSYMUTIL=$lt_DSYMUTIL
13407
13408 # Tool to change global to local symbols on Mac OS X.
13409 NMEDIT=$lt_NMEDIT
13410
13411 # Tool to manipulate fat objects and archives on Mac OS X.
13412 LIPO=$lt_LIPO
13413
13414 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13415 OTOOL=$lt_OTOOL
13416
13417 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13418 OTOOL64=$lt_OTOOL64
13419
13420 # Old archive suffix (normally "a").
13421 libext=$libext
13422
13423 # Shared library suffix (normally ".so").
13424 shrext_cmds=$lt_shrext_cmds
13425
13426 # The commands to extract the exported symbol list from a shared archive.
13427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13428
13429 # Variables whose values should be saved in libtool wrapper scripts and
13430 # restored at link time.
13431 variables_saved_for_relink=$lt_variables_saved_for_relink
13432
13433 # Do we need the "lib" prefix for modules?
13434 need_lib_prefix=$need_lib_prefix
13435
13436 # Do we need a version for libraries?
13437 need_version=$need_version
13438
13439 # Library versioning type.
13440 version_type=$version_type
13441
13442 # Shared library runtime path variable.
13443 runpath_var=$runpath_var
13444
13445 # Shared library path variable.
13446 shlibpath_var=$shlibpath_var
13447
13448 # Is shlibpath searched before the hard-coded library search path?
13449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13450
13451 # Format of library name prefix.
13452 libname_spec=$lt_libname_spec
13453
13454 # List of archive names. First name is the real one, the rest are links.
13455 # The last name is the one that the linker finds with -lNAME
13456 library_names_spec=$lt_library_names_spec
13457
13458 # The coded name of the library, if different from the real name.
13459 soname_spec=$lt_soname_spec
13460
13461 # Permission mode override for installation of shared libraries.
13462 install_override_mode=$lt_install_override_mode
13463
13464 # Command to use after installation of a shared archive.
13465 postinstall_cmds=$lt_postinstall_cmds
13466
13467 # Command to use after uninstallation of a shared archive.
13468 postuninstall_cmds=$lt_postuninstall_cmds
13469
13470 # Commands used to finish a libtool library installation in a directory.
13471 finish_cmds=$lt_finish_cmds
13472
13473 # As "finish_cmds", except a single script fragment to be evaled but
13474 # not shown.
13475 finish_eval=$lt_finish_eval
13476
13477 # Whether we should hardcode library paths into libraries.
13478 hardcode_into_libs=$hardcode_into_libs
13479
13480 # Compile-time system search path for libraries.
13481 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13482
13483 # Run-time system search path for libraries.
13484 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13485
13486 # Whether dlopen is supported.
13487 dlopen_support=$enable_dlopen
13488
13489 # Whether dlopen of programs is supported.
13490 dlopen_self=$enable_dlopen_self
13491
13492 # Whether dlopen of statically linked programs is supported.
13493 dlopen_self_static=$enable_dlopen_self_static
13494
13495 # Commands to strip libraries.
13496 old_striplib=$lt_old_striplib
13497 striplib=$lt_striplib
13498
13499
13500 # The linker used to build libraries.
13501 LD=$lt_LD
13502
13503 # How to create reloadable object files.
13504 reload_flag=$lt_reload_flag
13505 reload_cmds=$lt_reload_cmds
13506
13507 # Commands used to build an old-style archive.
13508 old_archive_cmds=$lt_old_archive_cmds
13509
13510 # A language specific compiler.
13511 CC=$lt_compiler
13512
13513 # Is the compiler the GNU compiler?
13514 with_gcc=$GCC
13515
13516 # Compiler flag to turn off builtin functions.
13517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13518
13519 # How to pass a linker flag through the compiler.
13520 wl=$lt_lt_prog_compiler_wl
13521
13522 # Additional compiler flags for building library objects.
13523 pic_flag=$lt_lt_prog_compiler_pic
13524
13525 # Compiler flag to prevent dynamic linking.
13526 link_static_flag=$lt_lt_prog_compiler_static
13527
13528 # Does compiler simultaneously support -c and -o options?
13529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13530
13531 # Whether or not to add -lc for building shared libraries.
13532 build_libtool_need_lc=$archive_cmds_need_lc
13533
13534 # Whether or not to disallow shared libs when runtime libs are static.
13535 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13536
13537 # Compiler flag to allow reflexive dlopens.
13538 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13539
13540 # Compiler flag to generate shared objects directly from archives.
13541 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13542
13543 # Whether the compiler copes with passing no objects directly.
13544 compiler_needs_object=$lt_compiler_needs_object
13545
13546 # Create an old-style archive from a shared archive.
13547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13548
13549 # Create a temporary old-style archive to link instead of a shared archive.
13550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13551
13552 # Commands used to build a shared archive.
13553 archive_cmds=$lt_archive_cmds
13554 archive_expsym_cmds=$lt_archive_expsym_cmds
13555
13556 # Commands used to build a loadable module if different from building
13557 # a shared archive.
13558 module_cmds=$lt_module_cmds
13559 module_expsym_cmds=$lt_module_expsym_cmds
13560
13561 # Whether we are building with GNU ld or not.
13562 with_gnu_ld=$lt_with_gnu_ld
13563
13564 # Flag that allows shared libraries with undefined symbols to be built.
13565 allow_undefined_flag=$lt_allow_undefined_flag
13566
13567 # Flag that enforces no undefined symbols.
13568 no_undefined_flag=$lt_no_undefined_flag
13569
13570 # Flag to hardcode \$libdir into a binary during linking.
13571 # This must work even if \$libdir does not exist
13572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13573
13574 # If ld is used when linking, flag to hardcode \$libdir into a binary
13575 # during linking. This must work even if \$libdir does not exist.
13576 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13577
13578 # Whether we need a single "-rpath" flag with a separated argument.
13579 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13580
13581 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13582 # DIR into the resulting binary.
13583 hardcode_direct=$hardcode_direct
13584
13585 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13586 # DIR into the resulting binary and the resulting library dependency is
13587 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13588 # library is relocated.
13589 hardcode_direct_absolute=$hardcode_direct_absolute
13590
13591 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13592 # into the resulting binary.
13593 hardcode_minus_L=$hardcode_minus_L
13594
13595 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13596 # into the resulting binary.
13597 hardcode_shlibpath_var=$hardcode_shlibpath_var
13598
13599 # Set to "yes" if building a shared library automatically hardcodes DIR
13600 # into the library and all subsequent libraries and executables linked
13601 # against it.
13602 hardcode_automatic=$hardcode_automatic
13603
13604 # Set to yes if linker adds runtime paths of dependent libraries
13605 # to runtime path list.
13606 inherit_rpath=$inherit_rpath
13607
13608 # Whether libtool must link a program against all its dependency libraries.
13609 link_all_deplibs=$link_all_deplibs
13610
13611 # Fix the shell variable \$srcfile for the compiler.
13612 fix_srcfile_path=$lt_fix_srcfile_path
13613
13614 # Set to "yes" if exported symbols are required.
13615 always_export_symbols=$always_export_symbols
13616
13617 # The commands to list exported symbols.
13618 export_symbols_cmds=$lt_export_symbols_cmds
13619
13620 # Symbols that should not be listed in the preloaded symbols.
13621 exclude_expsyms=$lt_exclude_expsyms
13622
13623 # Symbols that must always be exported.
13624 include_expsyms=$lt_include_expsyms
13625
13626 # Commands necessary for linking programs (against libraries) with templates.
13627 prelink_cmds=$lt_prelink_cmds
13628
13629 # Specify filename containing input files.
13630 file_list_spec=$lt_file_list_spec
13631
13632 # How to hardcode a shared library path into an executable.
13633 hardcode_action=$hardcode_action
13634
13635 # ### END LIBTOOL CONFIG
13636
13637 _LT_EOF
13638
13639 case $host_os in
13640 aix3*)
13641 cat <<\_LT_EOF >> "$cfgfile"
13642 # AIX sometimes has problems with the GCC collect2 program. For some
13643 # reason, if we set the COLLECT_NAMES environment variable, the problems
13644 # vanish in a puff of smoke.
13645 if test "X${COLLECT_NAMES+set}" != Xset; then
13646 COLLECT_NAMES=
13647 export COLLECT_NAMES
13648 fi
13649 _LT_EOF
13650 ;;
13651 esac
13652
13653
13654 ltmain="$ac_aux_dir/ltmain.sh"
13655
13656
13657 # We use sed instead of cat because bash on DJGPP gets confused if
13658 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13659 # text mode, it properly converts lines to CR/LF. This bash problem
13660 # is reportedly fixed, but why not run on old versions too?
13661 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13662 || (rm -f "$cfgfile"; exit 1)
13663
13664 case $xsi_shell in
13665 yes)
13666 cat << \_LT_EOF >> "$cfgfile"
13667
13668 # func_dirname file append nondir_replacement
13669 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13670 # otherwise set result to NONDIR_REPLACEMENT.
13671 func_dirname ()
13672 {
13673 case ${1} in
13674 */*) func_dirname_result="${1%/*}${2}" ;;
13675 * ) func_dirname_result="${3}" ;;
13676 esac
13677 }
13678
13679 # func_basename file
13680 func_basename ()
13681 {
13682 func_basename_result="${1##*/}"
13683 }
13684
13685 # func_dirname_and_basename file append nondir_replacement
13686 # perform func_basename and func_dirname in a single function
13687 # call:
13688 # dirname: Compute the dirname of FILE. If nonempty,
13689 # add APPEND to the result, otherwise set result
13690 # to NONDIR_REPLACEMENT.
13691 # value returned in "$func_dirname_result"
13692 # basename: Compute filename of FILE.
13693 # value retuned in "$func_basename_result"
13694 # Implementation must be kept synchronized with func_dirname
13695 # and func_basename. For efficiency, we do not delegate to
13696 # those functions but instead duplicate the functionality here.
13697 func_dirname_and_basename ()
13698 {
13699 case ${1} in
13700 */*) func_dirname_result="${1%/*}${2}" ;;
13701 * ) func_dirname_result="${3}" ;;
13702 esac
13703 func_basename_result="${1##*/}"
13704 }
13705
13706 # func_stripname prefix suffix name
13707 # strip PREFIX and SUFFIX off of NAME.
13708 # PREFIX and SUFFIX must not contain globbing or regex special
13709 # characters, hashes, percent signs, but SUFFIX may contain a leading
13710 # dot (in which case that matches only a dot).
13711 func_stripname ()
13712 {
13713 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13714 # positional parameters, so assign one to ordinary parameter first.
13715 func_stripname_result=${3}
13716 func_stripname_result=${func_stripname_result#"${1}"}
13717 func_stripname_result=${func_stripname_result%"${2}"}
13718 }
13719
13720 # func_opt_split
13721 func_opt_split ()
13722 {
13723 func_opt_split_opt=${1%%=*}
13724 func_opt_split_arg=${1#*=}
13725 }
13726
13727 # func_lo2o object
13728 func_lo2o ()
13729 {
13730 case ${1} in
13731 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13732 *) func_lo2o_result=${1} ;;
13733 esac
13734 }
13735
13736 # func_xform libobj-or-source
13737 func_xform ()
13738 {
13739 func_xform_result=${1%.*}.lo
13740 }
13741
13742 # func_arith arithmetic-term...
13743 func_arith ()
13744 {
13745 func_arith_result=$(( $* ))
13746 }
13747
13748 # func_len string
13749 # STRING may not start with a hyphen.
13750 func_len ()
13751 {
13752 func_len_result=${#1}
13753 }
13754
13755 _LT_EOF
13756 ;;
13757 *) # Bourne compatible functions.
13758 cat << \_LT_EOF >> "$cfgfile"
13759
13760 # func_dirname file append nondir_replacement
13761 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13762 # otherwise set result to NONDIR_REPLACEMENT.
13763 func_dirname ()
13764 {
13765 # Extract subdirectory from the argument.
13766 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13767 if test "X$func_dirname_result" = "X${1}"; then
13768 func_dirname_result="${3}"
13769 else
13770 func_dirname_result="$func_dirname_result${2}"
13771 fi
13772 }
13773
13774 # func_basename file
13775 func_basename ()
13776 {
13777 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13778 }
13779
13780
13781 # func_stripname prefix suffix name
13782 # strip PREFIX and SUFFIX off of NAME.
13783 # PREFIX and SUFFIX must not contain globbing or regex special
13784 # characters, hashes, percent signs, but SUFFIX may contain a leading
13785 # dot (in which case that matches only a dot).
13786 # func_strip_suffix prefix name
13787 func_stripname ()
13788 {
13789 case ${2} in
13790 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13791 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13792 esac
13793 }
13794
13795 # sed scripts:
13796 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13797 my_sed_long_arg='1s/^-[^=]*=//'
13798
13799 # func_opt_split
13800 func_opt_split ()
13801 {
13802 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13803 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13804 }
13805
13806 # func_lo2o object
13807 func_lo2o ()
13808 {
13809 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13810 }
13811
13812 # func_xform libobj-or-source
13813 func_xform ()
13814 {
13815 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13816 }
13817
13818 # func_arith arithmetic-term...
13819 func_arith ()
13820 {
13821 func_arith_result=`expr "$@"`
13822 }
13823
13824 # func_len string
13825 # STRING may not start with a hyphen.
13826 func_len ()
13827 {
13828 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13829 }
13830
13831 _LT_EOF
13832 esac
13833
13834 case $lt_shell_append in
13835 yes)
13836 cat << \_LT_EOF >> "$cfgfile"
13837
13838 # func_append var value
13839 # Append VALUE to the end of shell variable VAR.
13840 func_append ()
13841 {
13842 eval "$1+=\$2"
13843 }
13844 _LT_EOF
13845 ;;
13846 *)
13847 cat << \_LT_EOF >> "$cfgfile"
13848
13849 # func_append var value
13850 # Append VALUE to the end of shell variable VAR.
13851 func_append ()
13852 {
13853 eval "$1=\$$1\$2"
13854 }
13855
13856 _LT_EOF
13857 ;;
13858 esac
13859
13860
13861 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13862 || (rm -f "$cfgfile"; exit 1)
13863
13864 mv -f "$cfgfile" "$ofile" ||
13865 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13866 chmod +x "$ofile"
13867
13868 ;;
13869
13870 esac
13871 done # for ac_tag
13872
13873
13874 as_fn_exit 0
13875 _ACEOF
13876 ac_clean_files=$ac_clean_files_save
13877
13878 test $ac_write_fail = 0 ||
13879 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13880
13881
13882 # configure is writing to config.log, and then calls config.status.
13883 # config.status does its own redirection, appending to config.log.
13884 # Unfortunately, on DOS this fails, as config.log is still kept open
13885 # by configure, so config.status won't be able to write to it; its
13886 # output is simply discarded. So we exec the FD to /dev/null,
13887 # effectively closing config.log, so it can be properly (re)opened and
13888 # appended to by config.status. When coming back to configure, we
13889 # need to make the FD available again.
13890 if test "$no_create" != yes; then
13891 ac_cs_success=:
13892 ac_config_status_args=
13893 test "$silent" = yes &&
13894 ac_config_status_args="$ac_config_status_args --quiet"
13895 exec 5>/dev/null
13896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13897 exec 5>>config.log
13898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13899 # would make configure fail if this is the last instruction.
13900 $ac_cs_success || as_fn_exit $?
13901 fi
13902 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13904 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13905 fi
13906