2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / lto-plugin / configure
blob6c36dfb5657c1be84c89c95dad235e903b797cba
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
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
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
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
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
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+"$@"}
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."
242 exit 1
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
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
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 ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
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/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
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"
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 ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
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 ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
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 ()
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
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
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
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
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
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/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
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
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 '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
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; }
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
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;;
468 ECHO_N='-n';;
469 esac
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
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'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
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
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=
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
526 as_executable_p=$as_test_x
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'"
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'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
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`
545 # Initializations.
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=
556 # Identity of this package.
557 PACKAGE_NAME='LTO plugin for ld'
558 PACKAGE_TARNAME='lto-plugin'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='LTO plugin for ld 0.1'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 target_noncanonical
605 lt_host_flags
607 OTOOL64
608 OTOOL
609 LIPO
610 NMEDIT
611 DSYMUTIL
612 RANLIB
614 OBJDUMP
615 LN_S
617 ac_ct_DUMPBIN
618 DUMPBIN
620 FGREP
621 EGREP
622 GREP
624 LIBTOOL
625 ac_lto_plugin_ldflags
626 ac_lto_plugin_warn_cflags
627 am__fastdepCC_FALSE
628 am__fastdepCC_TRUE
629 CCDEPMODE
630 AMDEPBACKSLASH
631 AMDEP_FALSE
632 AMDEP_TRUE
633 am__quote
634 am__include
635 DEPDIR
636 OBJEXT
637 EXEEXT
638 ac_ct_CC
639 CPPFLAGS
640 LDFLAGS
641 CFLAGS
643 with_libiberty
644 MAINT
645 MAINTAINER_MODE_FALSE
646 MAINTAINER_MODE_TRUE
647 am__untar
648 am__tar
649 AMTAR
650 am__leading_dot
651 SET_MAKE
653 mkdir_p
654 MKDIR_P
655 INSTALL_STRIP_PROGRAM
656 STRIP
657 install_sh
658 MAKEINFO
659 AUTOHEADER
660 AUTOMAKE
661 AUTOCONF
662 ACLOCAL
663 VERSION
664 PACKAGE
665 CYGPATH_W
666 am__isrc
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 target_subdir
671 host_subdir
672 build_subdir
673 build_libsubdir
674 target_os
675 target_vendor
676 target_cpu
677 target
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 target_alias
687 host_alias
688 build_alias
689 LIBS
690 ECHO_T
691 ECHO_N
692 ECHO_C
693 DEFS
694 mandir
695 localedir
696 libdir
697 psdir
698 pdfdir
699 dvidir
700 htmldir
701 infodir
702 docdir
703 oldincludedir
704 includedir
705 localstatedir
706 sharedstatedir
707 sysconfdir
708 datadir
709 datarootdir
710 libexecdir
711 sbindir
712 bindir
713 program_transform_name
714 prefix
715 exec_prefix
716 PACKAGE_URL
717 PACKAGE_BUGREPORT
718 PACKAGE_STRING
719 PACKAGE_VERSION
720 PACKAGE_TARNAME
721 PACKAGE_NAME
722 PATH_SEPARATOR
723 SHELL'
724 ac_subst_files=''
725 ac_user_opts='
726 enable_option_checking
727 with_build_libsubdir
728 enable_maintainer_mode
729 with_libiberty
730 enable_dependency_tracking
731 enable_largefile
732 enable_shared
733 enable_static
734 with_pic
735 enable_fast_install
736 with_gnu_ld
737 enable_libtool_lock
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP'
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
861 "enable_$ac_useropt"
862 "*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) as_fn_error "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information."
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error "missing argument to $ac_option"
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212 test "$silent" = yes && exec 6>/dev/null
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error "working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error "pwd does not report name of working directory"
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1241 /^X\(\/\/\)$/{
1242 s//\1/
1245 /^X\(\/\).*/{
1246 s//\1/
1249 s/.*/./; q'`
1250 srcdir=$ac_confdir
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 srcdir=..
1254 else
1255 ac_srcdir_defaulted=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264 pwd)`
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1272 case $srcdir in
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 esac
1275 for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 done
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
1289 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1298 Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 [PREFIX]
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1342 _ACEOF
1344 cat <<\_ACEOF
1346 Program names:
1347 --program-prefix=PREFIX prepend PREFIX to installed program names
1348 --program-suffix=SUFFIX append SUFFIX to installed program names
1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351 System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 --target=TARGET configure for building compilers for TARGET [HOST]
1355 _ACEOF
1358 if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1361 esac
1362 cat <<\_ACEOF
1364 Optional Features:
1365 --disable-option-checking ignore unrecognized --enable/--with options
1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1368 --enable-maintainer-mode enable make rules and dependencies not useful
1369 (and sometimes confusing) to the casual installer
1370 --disable-dependency-tracking speeds up one-time build
1371 --enable-dependency-tracking do not reject slow dependency extractors
1372 --disable-largefile omit support for large files
1373 --enable-shared[=PKGS] build shared libraries [default=yes]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-libtool-lock avoid locking (might break parallel builds)
1379 Optional Packages:
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-build-libsubdir=DIR Directory where to find libraries for build system
1383 --with-libiberty=PATH specify the directory where to find libiberty
1384 [../libiberty]
1385 --with-pic try to use only PIC/non-PIC objects [default=use
1386 both]
1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1402 Report bugs to the package provider.
1403 _ACEOF
1404 ac_status=$?
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
1413 ac_builddir=.
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 LTO plugin for ld configure 0.1
1466 generated by GNU Autoconf 2.64
1468 Copyright (C) 2009 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472 exit
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile ()
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1487 case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1505 ac_retval=0
1506 else
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1510 ac_retval=1
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1515 } # ac_fn_c_try_compile
1517 # ac_fn_c_try_link LINENO
1518 # -----------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_link ()
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext conftest$ac_exeext
1524 if { { ac_try="$ac_link"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_link") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest$ac_exeext && {
1543 test "$cross_compiling" = yes ||
1544 $as_test_x conftest$ac_exeext
1545 }; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1551 ac_retval=1
1553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555 # interfere with the next link command; also delete a directory that is
1556 # left behind by Apple's compiler. We do this before executing the actions.
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 return $ac_retval
1561 } # ac_fn_c_try_link
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1574 else
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1578 #include <$2>
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"; then :
1581 eval "$3=yes"
1582 else
1583 eval "$3=no"
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 } # ac_fn_c_check_header_compile
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } >/dev/null && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627 return $ac_retval
1629 } # ac_fn_c_try_cpp
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=$ac_status
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1671 } # ac_fn_c_try_run
1673 # ac_fn_c_check_func LINENO FUNC VAR
1674 # ----------------------------------
1675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1676 ac_fn_c_check_func ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1688 #define $2 innocuous_$2
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char $2 (); below.
1692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1693 <limits.h> exists even on freestanding compilers. */
1695 #ifdef __STDC__
1696 # include <limits.h>
1697 #else
1698 # include <assert.h>
1699 #endif
1701 #undef $2
1703 /* Override any GCC internal prototype to avoid an error.
1704 Use char because int might match the return type of a GCC
1705 builtin and then its argument prototype would still apply. */
1706 #ifdef __cplusplus
1707 extern "C"
1708 #endif
1709 char $2 ();
1710 /* The GNU C library defines this for functions which it implements
1711 to always fail with ENOSYS. Some functions are actually named
1712 something starting with __ and the normal name is an alias. */
1713 #if defined __stub_$2 || defined __stub___$2
1714 choke me
1715 #endif
1718 main ()
1720 return $2 ();
1722 return 0;
1724 _ACEOF
1725 if ac_fn_c_try_link "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1730 rm -f core conftest.err conftest.$ac_objext \
1731 conftest$ac_exeext conftest.$ac_ext
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 } # ac_fn_c_check_func
1740 # ac_fn_c_find_intX_t LINENO BITS VAR
1741 # -----------------------------------
1742 # Finds a signed integer type with width BITS, setting cache variable VAR
1743 # accordingly.
1744 ac_fn_c_find_intX_t ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1748 $as_echo_n "checking for int$2_t... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 eval "$3=no"
1753 for ac_type in int$2_t 'int' 'long int' \
1754 'long long int' 'short int' 'signed char'; do
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 $ac_includes_default
1759 main ()
1761 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
1762 test_array [0] = 0
1765 return 0;
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 $ac_includes_default
1773 main ()
1775 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1776 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
1777 test_array [0] = 0
1780 return 0;
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1785 else
1786 case $ac_type in #(
1787 int$2_t) :
1788 eval "$3=yes" ;; #(
1789 *) :
1790 eval "$3=\$ac_type" ;;
1791 esac
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 eval as_val=\$$3
1797 if test "x$as_val" = x""no; then :
1799 else
1800 break
1802 done
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 } # ac_fn_c_find_intX_t
1811 # ac_fn_c_find_uintX_t LINENO BITS VAR
1812 # ------------------------------------
1813 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1814 # accordingly.
1815 ac_fn_c_find_uintX_t ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1819 $as_echo_n "checking for uint$2_t... " >&6; }
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 eval "$3=no"
1824 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1825 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $ac_includes_default
1830 main ()
1832 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1833 test_array [0] = 0
1836 return 0;
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 case $ac_type in #(
1841 uint$2_t) :
1842 eval "$3=yes" ;; #(
1843 *) :
1844 eval "$3=\$ac_type" ;;
1845 esac
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 eval as_val=\$$3
1849 if test "x$as_val" = x""no; then :
1851 else
1852 break
1854 done
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_c_find_uintX_t
1862 cat >config.log <<_ACEOF
1863 This file contains any messages produced by compilers while
1864 running configure, to aid debugging if configure makes a mistake.
1866 It was created by LTO plugin for ld $as_me 0.1, which was
1867 generated by GNU Autoconf 2.64. Invocation command line was
1869 $ $0 $@
1871 _ACEOF
1872 exec 5>>config.log
1874 cat <<_ASUNAME
1875 ## --------- ##
1876 ## Platform. ##
1877 ## --------- ##
1879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1891 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 _ASUNAME
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 $as_echo "PATH: $as_dir"
1904 done
1905 IFS=$as_save_IFS
1907 } >&5
1909 cat >&5 <<_ACEOF
1912 ## ----------- ##
1913 ## Core tests. ##
1914 ## ----------- ##
1916 _ACEOF
1919 # Keep a trace of the command line.
1920 # Strip out --no-create and --no-recursion so they do not pile up.
1921 # Strip out --silent because we don't want to record it for future runs.
1922 # Also quote any args containing shell meta-characters.
1923 # Make two passes to allow for proper duplicate-argument suppression.
1924 ac_configure_args=
1925 ac_configure_args0=
1926 ac_configure_args1=
1927 ac_must_keep_next=false
1928 for ac_pass in 1 2
1930 for ac_arg
1932 case $ac_arg in
1933 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1935 | -silent | --silent | --silen | --sile | --sil)
1936 continue ;;
1937 *\'*)
1938 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 esac
1940 case $ac_pass in
1941 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 as_fn_append ac_configure_args1 " '$ac_arg'"
1944 if test $ac_must_keep_next = true; then
1945 ac_must_keep_next=false # Got value, back to normal.
1946 else
1947 case $ac_arg in
1948 *=* | --config-cache | -C | -disable-* | --disable-* \
1949 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1950 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1951 | -with-* | --with-* | -without-* | --without-* | --x)
1952 case "$ac_configure_args0 " in
1953 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 esac
1956 -* ) ac_must_keep_next=true ;;
1957 esac
1959 as_fn_append ac_configure_args " '$ac_arg'"
1961 esac
1962 done
1963 done
1964 { ac_configure_args0=; unset ac_configure_args0;}
1965 { ac_configure_args1=; unset ac_configure_args1;}
1967 # When interrupted or exit'd, cleanup temporary files, and complete
1968 # config.log. We remove comments because anyway the quotes in there
1969 # would cause problems or look ugly.
1970 # WARNING: Use '\'' to represent an apostrophe within the trap.
1971 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1972 trap 'exit_status=$?
1973 # Save into config.log some information that might help in debugging.
1975 echo
1977 cat <<\_ASBOX
1978 ## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##
1981 _ASBOX
1982 echo
1983 # The following way of writing the cache mishandles newlines in values,
1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in #(
1988 *${as_nl}*)
1989 case $ac_var in #(
1990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992 esac
1993 case $ac_var in #(
1994 _ | IFS | as_nl) ;; #(
1995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996 *) { eval $ac_var=; unset $ac_var;} ;;
1997 esac ;;
1998 esac
1999 done
2000 (set) 2>&1 |
2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002 *${as_nl}ac_space=\ *)
2003 sed -n \
2004 "s/'\''/'\''\\\\'\'''\''/g;
2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006 ;; #(
2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 esac |
2011 sort
2013 echo
2015 cat <<\_ASBOX
2016 ## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##
2019 _ASBOX
2020 echo
2021 for ac_var in $ac_subst_vars
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2031 if test -n "$ac_subst_files"; then
2032 cat <<\_ASBOX
2033 ## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_files
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2049 if test -s confdefs.h; then
2050 cat <<\_ASBOX
2051 ## ----------- ##
2052 ## confdefs.h. ##
2053 ## ----------- ##
2054 _ASBOX
2055 echo
2056 cat confdefs.h
2057 echo
2059 test "$ac_signal" != 0 &&
2060 $as_echo "$as_me: caught signal $ac_signal"
2061 $as_echo "$as_me: exit $exit_status"
2062 } >&5
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 exit $exit_status
2067 for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 done
2070 ac_signal=0
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2075 $as_echo "/* confdefs.h */" > confdefs.h
2077 # Predefined preprocessor variables.
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_STRING "$PACKAGE_STRING"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_URL "$PACKAGE_URL"
2101 _ACEOF
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2106 ac_site_file1=NONE
2107 ac_site_file2=NONE
2108 if test -n "$CONFIG_SITE"; then
2109 ac_site_file1=$CONFIG_SITE
2110 elif test "x$prefix" != xNONE; then
2111 ac_site_file1=$prefix/share/config.site
2112 ac_site_file2=$prefix/etc/config.site
2113 else
2114 ac_site_file1=$ac_default_prefix/share/config.site
2115 ac_site_file2=$ac_default_prefix/etc/config.site
2117 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2119 test "x$ac_site_file" = xNONE && continue
2120 if test -r "$ac_site_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2123 sed 's/^/| /' "$ac_site_file" >&5
2124 . "$ac_site_file"
2126 done
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special
2130 # files actually), so we avoid doing that.
2131 if test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134 case $cache_file in
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2137 esac
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 >$cache_file
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2154 set,)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,set)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,);;
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2181 fi;;
2182 esac
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2185 case $ac_new_val in
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2188 esac
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192 esac
2194 done
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 for ac_t in install-sh install.sh shtool; do
2219 if test -f "$ac_dir/$ac_t"; then
2220 ac_aux_dir=$ac_dir
2221 ac_install_sh="$ac_aux_dir/$ac_t -c"
2222 break 2
2224 done
2225 done
2226 if test -z "$ac_aux_dir"; then
2227 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2230 # These three variables are undocumented and unsupported,
2231 # and are intended to be withdrawn in a future Autoconf release.
2232 # They can cause serious problems if a builder's source tree is in a directory
2233 # whose full name contains unusual characters.
2234 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2235 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2236 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2239 # Make sure we can run config.sub.
2240 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2241 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2244 $as_echo_n "checking build system type... " >&6; }
2245 if test "${ac_cv_build+set}" = set; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 ac_build_alias=$build_alias
2249 test "x$ac_build_alias" = x &&
2250 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2251 test "x$ac_build_alias" = x &&
2252 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2253 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2254 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2258 $as_echo "$ac_cv_build" >&6; }
2259 case $ac_cv_build in
2260 *-*-*) ;;
2261 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2262 esac
2263 build=$ac_cv_build
2264 ac_save_IFS=$IFS; IFS='-'
2265 set x $ac_cv_build
2266 shift
2267 build_cpu=$1
2268 build_vendor=$2
2269 shift; shift
2270 # Remember, the first character of IFS is used to create $*,
2271 # except with old shells:
2272 build_os=$*
2273 IFS=$ac_save_IFS
2274 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2278 $as_echo_n "checking host system type... " >&6; }
2279 if test "${ac_cv_host+set}" = set; then :
2280 $as_echo_n "(cached) " >&6
2281 else
2282 if test "x$host_alias" = x; then
2283 ac_cv_host=$ac_cv_build
2284 else
2285 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2286 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2291 $as_echo "$ac_cv_host" >&6; }
2292 case $ac_cv_host in
2293 *-*-*) ;;
2294 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2295 esac
2296 host=$ac_cv_host
2297 ac_save_IFS=$IFS; IFS='-'
2298 set x $ac_cv_host
2299 shift
2300 host_cpu=$1
2301 host_vendor=$2
2302 shift; shift
2303 # Remember, the first character of IFS is used to create $*,
2304 # except with old shells:
2305 host_os=$*
2306 IFS=$ac_save_IFS
2307 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2311 $as_echo_n "checking target system type... " >&6; }
2312 if test "${ac_cv_target+set}" = set; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 if test "x$target_alias" = x; then
2316 ac_cv_target=$ac_cv_host
2317 else
2318 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2319 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2324 $as_echo "$ac_cv_target" >&6; }
2325 case $ac_cv_target in
2326 *-*-*) ;;
2327 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2328 esac
2329 target=$ac_cv_target
2330 ac_save_IFS=$IFS; IFS='-'
2331 set x $ac_cv_target
2332 shift
2333 target_cpu=$1
2334 target_vendor=$2
2335 shift; shift
2336 # Remember, the first character of IFS is used to create $*,
2337 # except with old shells:
2338 target_os=$*
2339 IFS=$ac_save_IFS
2340 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2343 # The aliases save the names the user supplied, while $host etc.
2344 # will get canonicalized.
2345 test -n "$target_alias" &&
2346 test "$program_prefix$program_suffix$program_transform_name" = \
2347 NONENONEs,x,x, &&
2348 program_prefix=${target_alias}-
2350 case ${build_alias} in
2351 "") build_noncanonical=${build} ;;
2352 *) build_noncanonical=${build_alias} ;;
2353 esac
2355 case ${host_alias} in
2356 "") host_noncanonical=${build_noncanonical} ;;
2357 *) host_noncanonical=${host_alias} ;;
2358 esac
2360 case ${target_alias} in
2361 "") target_noncanonical=${host_noncanonical} ;;
2362 *) target_noncanonical=${target_alias} ;;
2363 esac
2366 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2367 # have matching libraries, they should use host libraries: Makefile.tpl
2368 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2369 # However, they still use the build modules, because the corresponding
2370 # host modules (e.g. bison) are only built for the host when bootstrap
2371 # finishes. So:
2372 # - build_subdir is where we find build modules, and never changes.
2373 # - build_libsubdir is where we find build libraries, and can be overridden.
2375 # Prefix 'build-' so this never conflicts with target_subdir.
2376 build_subdir="build-${build_noncanonical}"
2378 # Check whether --with-build-libsubdir was given.
2379 if test "${with_build_libsubdir+set}" = set; then :
2380 withval=$with_build_libsubdir; build_libsubdir="$withval"
2381 else
2382 build_libsubdir="$build_subdir"
2385 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2386 if ( test $srcdir = . && test -d gcc ) \
2387 || test -d $srcdir/../host-${host_noncanonical}; then
2388 host_subdir="host-${host_noncanonical}"
2389 else
2390 host_subdir=.
2392 # No prefix.
2393 target_subdir=${target_noncanonical}
2395 am__api_version='1.11'
2397 # Find a good install program. We prefer a C program (faster),
2398 # so one script is as good as another. But avoid the broken or
2399 # incompatible versions:
2400 # SysV /etc/install, /usr/sbin/install
2401 # SunOS /usr/etc/install
2402 # IRIX /sbin/install
2403 # AIX /bin/install
2404 # AmigaOS /C/install, which installs bootblocks on floppy discs
2405 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2406 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2407 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2408 # OS/2's system install, which has a completely different semantic
2409 # ./install, which can be erroneously created by make from ./install.sh.
2410 # Reject install programs that cannot install multiple files.
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2412 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2413 if test -z "$INSTALL"; then
2414 if test "${ac_cv_path_install+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 # Account for people who put trailing slashes in PATH elements.
2423 case $as_dir/ in #((
2424 ./ | .// | /[cC]/* | \
2425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2426 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2427 /usr/ucb/* ) ;;
2429 # OSF1 and SCO ODT 3.0 have their own names for install.
2430 # Don't use installbsd from OSF since it installs stuff as root
2431 # by default.
2432 for ac_prog in ginstall scoinst install; do
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2435 if test $ac_prog = install &&
2436 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2437 # AIX install. It has an incompatible calling convention.
2439 elif test $ac_prog = install &&
2440 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441 # program-specific install script used by HP pwplus--don't use.
2443 else
2444 rm -rf conftest.one conftest.two conftest.dir
2445 echo one > conftest.one
2446 echo two > conftest.two
2447 mkdir conftest.dir
2448 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2449 test -s conftest.one && test -s conftest.two &&
2450 test -s conftest.dir/conftest.one &&
2451 test -s conftest.dir/conftest.two
2452 then
2453 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2454 break 3
2458 done
2459 done
2461 esac
2463 done
2464 IFS=$as_save_IFS
2466 rm -rf conftest.one conftest.two conftest.dir
2469 if test "${ac_cv_path_install+set}" = set; then
2470 INSTALL=$ac_cv_path_install
2471 else
2472 # As a last resort, use the slow shell script. Don't cache a
2473 # value for INSTALL within a source directory, because that will
2474 # break other packages using the cache if that directory is
2475 # removed, or if the value is a relative name.
2476 INSTALL=$ac_install_sh
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2480 $as_echo "$INSTALL" >&6; }
2482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2483 # It thinks the first close brace ends the variable substitution.
2484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2491 $as_echo_n "checking whether build environment is sane... " >&6; }
2492 # Just in case
2493 sleep 1
2494 echo timestamp > conftest.file
2495 # Reject unsafe characters in $srcdir or the absolute working directory
2496 # name. Accept space and tab only in the latter.
2497 am_lf='
2499 case `pwd` in
2500 *[\\\"\#\$\&\'\`$am_lf]*)
2501 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2502 esac
2503 case $srcdir in
2504 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2505 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2506 esac
2508 # Do `set' in a subshell so we don't clobber the current shell's
2509 # arguments. Must try -L first in case configure is actually a
2510 # symlink; some systems play weird games with the mod time of symlinks
2511 # (eg FreeBSD returns the mod time of the symlink's containing
2512 # directory).
2513 if (
2514 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2515 if test "$*" = "X"; then
2516 # -L didn't work.
2517 set X `ls -t "$srcdir/configure" conftest.file`
2519 rm -f conftest.file
2520 if test "$*" != "X $srcdir/configure conftest.file" \
2521 && test "$*" != "X conftest.file $srcdir/configure"; then
2523 # If neither matched, then we have a broken ls. This can happen
2524 # if, for instance, CONFIG_SHELL is bash and it inherits a
2525 # broken ls alias from the environment. This has actually
2526 # happened. Such a system could not be considered "sane".
2527 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2528 alias in your environment" "$LINENO" 5
2531 test "$2" = conftest.file
2533 then
2534 # Ok.
2536 else
2537 as_fn_error "newly created file is older than distributed files!
2538 Check your system clock" "$LINENO" 5
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2541 $as_echo "yes" >&6; }
2542 test "$program_prefix" != NONE &&
2543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2544 # Use a double $ so make ignores it.
2545 test "$program_suffix" != NONE &&
2546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2547 # Double any \ or $.
2548 # By default was `s,x,x', remove it if useless.
2549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552 # expand $ac_aux_dir to an absolute path
2553 am_aux_dir=`cd $ac_aux_dir && pwd`
2555 if test x"${MISSING+set}" != xset; then
2556 case $am_aux_dir in
2557 *\ * | *\ *)
2558 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2560 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2561 esac
2563 # Use eval to expand $SHELL
2564 if eval "$MISSING --run true"; then
2565 am_missing_run="$MISSING --run "
2566 else
2567 am_missing_run=
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2569 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2572 if test x"${install_sh}" != xset; then
2573 case $am_aux_dir in
2574 *\ * | *\ *)
2575 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2577 install_sh="\${SHELL} $am_aux_dir/install-sh"
2578 esac
2581 # Installed binaries are usually stripped using `strip' when the user
2582 # run `make install-strip'. However `strip' might not be the right
2583 # tool to use in cross-compilation environments, therefore Automake
2584 # will honor the `STRIP' environment variable to overrule this program.
2585 if test "$cross_compiling" != no; then
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}strip; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if test "${ac_cv_prog_STRIP+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$STRIP"; then
2595 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2608 done
2609 done
2610 IFS=$as_save_IFS
2614 STRIP=$ac_cv_prog_STRIP
2615 if test -n "$STRIP"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2617 $as_echo "$STRIP" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2625 if test -z "$ac_cv_prog_STRIP"; then
2626 ac_ct_STRIP=$STRIP
2627 # Extract the first word of "strip", so it can be a program name with args.
2628 set dummy strip; ac_word=$2
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$ac_ct_STRIP"; then
2635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_STRIP="strip"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2650 IFS=$as_save_IFS
2654 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2655 if test -n "$ac_ct_STRIP"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2657 $as_echo "$ac_ct_STRIP" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2663 if test "x$ac_ct_STRIP" = x; then
2664 STRIP=":"
2665 else
2666 case $cross_compiling:$ac_tool_warned in
2667 yes:)
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672 STRIP=$ac_ct_STRIP
2674 else
2675 STRIP="$ac_cv_prog_STRIP"
2679 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2682 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2683 if test -z "$MKDIR_P"; then
2684 if test "${ac_cv_path_mkdir+set}" = set; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_prog in mkdir gmkdir; do
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2695 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2696 'mkdir (GNU coreutils) '* | \
2697 'mkdir (coreutils) '* | \
2698 'mkdir (fileutils) '4.1*)
2699 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2700 break 3;;
2701 esac
2702 done
2703 done
2704 done
2705 IFS=$as_save_IFS
2709 if test "${ac_cv_path_mkdir+set}" = set; then
2710 MKDIR_P="$ac_cv_path_mkdir -p"
2711 else
2712 # As a last resort, use the slow shell script. Don't cache a
2713 # value for MKDIR_P within a source directory, because that will
2714 # break other packages using the cache if that directory is
2715 # removed, or if the value is a relative name.
2716 test -d ./--version && rmdir ./--version
2717 MKDIR_P="$ac_install_sh -d"
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2721 $as_echo "$MKDIR_P" >&6; }
2723 mkdir_p="$MKDIR_P"
2724 case $mkdir_p in
2725 [\\/$]* | ?:[\\/]*) ;;
2726 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2727 esac
2729 for ac_prog in gawk mawk nawk awk
2731 # Extract the first word of "$ac_prog", so it can be a program name with args.
2732 set dummy $ac_prog; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_AWK+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$AWK"; then
2739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_AWK="$ac_prog"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 AWK=$ac_cv_prog_AWK
2759 if test -n "$AWK"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2761 $as_echo "$AWK" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2768 test -n "$AWK" && break
2769 done
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2772 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2773 set x ${MAKE-make}
2774 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2775 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat >conftest.make <<\_ACEOF
2779 SHELL = /bin/sh
2780 all:
2781 @echo '@@@%%%=$(MAKE)=@@@%%%'
2782 _ACEOF
2783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2784 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2785 *@@@%%%=?*=@@@%%%*)
2786 eval ac_cv_prog_make_${ac_make}_set=yes;;
2788 eval ac_cv_prog_make_${ac_make}_set=no;;
2789 esac
2790 rm -f conftest.make
2792 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2794 $as_echo "yes" >&6; }
2795 SET_MAKE=
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 SET_MAKE="MAKE=${MAKE-make}"
2802 rm -rf .tst 2>/dev/null
2803 mkdir .tst 2>/dev/null
2804 if test -d .tst; then
2805 am__leading_dot=.
2806 else
2807 am__leading_dot=_
2809 rmdir .tst 2>/dev/null
2811 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2812 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2813 # is not polluted with repeated "-I."
2814 am__isrc=' -I$(srcdir)'
2815 # test to see if srcdir already configured
2816 if test -f $srcdir/config.status; then
2817 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2821 # test whether we have cygpath
2822 if test -z "$CYGPATH_W"; then
2823 if (cygpath --version) >/dev/null 2>/dev/null; then
2824 CYGPATH_W='cygpath -w'
2825 else
2826 CYGPATH_W=echo
2831 # Define the identity of the package.
2832 PACKAGE='lto-plugin'
2833 VERSION='0.1'
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE "$PACKAGE"
2838 _ACEOF
2841 cat >>confdefs.h <<_ACEOF
2842 #define VERSION "$VERSION"
2843 _ACEOF
2845 # Some tools Automake needs.
2847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861 # We need awk for the "check" target. The system "awk" is bad on
2862 # some platforms.
2863 # Always define AMTAR for backward compatibility.
2865 AMTAR=${AMTAR-"${am_missing_run}tar"}
2867 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2876 # Check whether --enable-maintainer-mode was given.
2877 if test "${enable_maintainer_mode+set}" = set; then :
2878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2879 else
2880 USE_MAINTAINER_MODE=no
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2885 if test $USE_MAINTAINER_MODE = yes; then
2886 MAINTAINER_MODE_TRUE=
2887 MAINTAINER_MODE_FALSE='#'
2888 else
2889 MAINTAINER_MODE_TRUE='#'
2890 MAINTAINER_MODE_FALSE=
2893 MAINT=$MAINTAINER_MODE_TRUE
2897 # Check whether --with-libiberty was given.
2898 if test "${with_libiberty+set}" = set; then :
2899 withval=$with_libiberty;
2900 else
2901 with_libiberty=../libiberty
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_CC+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2934 IFS=$as_save_IFS
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2949 if test -z "$ac_cv_prog_CC"; then
2950 ac_ct_CC=$CC
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952 set dummy gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC="gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2987 if test "x$ac_ct_CC" = x; then
2988 CC=""
2989 else
2990 case $cross_compiling:$ac_tool_warned in
2991 yes:)
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
2995 esac
2996 CC=$ac_ct_CC
2998 else
2999 CC="$ac_cv_prog_CC"
3002 if test -z "$CC"; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}cc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_CC+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_CC="${ac_tool_prefix}cc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3025 done
3026 done
3027 IFS=$as_save_IFS
3031 CC=$ac_cv_prog_CC
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045 set dummy cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 ac_prog_rejected=no
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3064 continue
3066 ac_cv_prog_CC="cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3070 done
3071 done
3072 IFS=$as_save_IFS
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3077 shift
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3082 shift
3083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog in cl.exe
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3124 done
3125 done
3126 IFS=$as_save_IFS
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$CC" && break
3141 done
3143 if test -z "$CC"; then
3144 ac_ct_CC=$CC
3145 for ac_prog in cl.exe
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_ac_ct_CC="$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3168 done
3169 done
3170 IFS=$as_save_IFS
3174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3184 test -n "$ac_ct_CC" && break
3185 done
3187 if test "x$ac_ct_CC" = x; then
3188 CC=""
3189 else
3190 case $cross_compiling:$ac_tool_warned in
3191 yes:)
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194 ac_tool_warned=yes ;;
3195 esac
3196 CC=$ac_ct_CC
3203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error "no acceptable C compiler found in \$PATH
3206 See \`config.log' for more details." "$LINENO" 5; }
3208 # Provide some information about the compiler.
3209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210 set X $ac_compile
3211 ac_compiler=$2
3212 for ac_option in --version -v -V -qversion; do
3213 { { ac_try="$ac_compiler $ac_option >&5"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3221 ac_status=$?
3222 if test -s conftest.err; then
3223 sed '10a\
3224 ... rest of stderr output deleted ...
3225 10q' conftest.err >conftest.er1
3226 cat conftest.er1 >&5
3227 rm -f conftest.er1 conftest.err
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 done
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3237 main ()
3241 return 0;
3243 _ACEOF
3244 ac_clean_files_save=$ac_clean_files
3245 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3246 # Try to create an executable without -o first, disregard a.out.
3247 # It will help us diagnose broken compilers, and finding out an intuition
3248 # of exeext.
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3250 $as_echo_n "checking for C compiler default output file name... " >&6; }
3251 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253 # The possible output files:
3254 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3256 ac_rmfiles=
3257 for ac_file in $ac_files
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3261 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 esac
3263 done
3264 rm -f $ac_rmfiles
3266 if { { ac_try="$ac_link_default"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link_default") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3278 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3279 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3280 # so that the user can short-circuit this test for compilers unknown to
3281 # Autoconf.
3282 for ac_file in $ac_files ''
3284 test -f "$ac_file" || continue
3285 case $ac_file in
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288 [ab].out )
3289 # We found the default executable, but exeext='' is most
3290 # certainly right.
3291 break;;
3292 *.* )
3293 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3294 then :; else
3295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 # We set ac_cv_exeext here because the later test for it is not
3298 # safe: cross compilers may not add the suffix if given an `-o'
3299 # argument, so we may need to know it at that point already.
3300 # Even if this section looks crufty: it has the advantage of
3301 # actually working.
3302 break;;
3304 break;;
3305 esac
3306 done
3307 test "$ac_cv_exeext" = no && ac_cv_exeext=
3309 else
3310 ac_file=''
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3313 $as_echo "$ac_file" >&6; }
3314 if test -z "$ac_file"; then :
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 { as_fn_set_status 77
3321 as_fn_error "C compiler cannot create executables
3322 See \`config.log' for more details." "$LINENO" 5; }; }
3324 ac_exeext=$ac_cv_exeext
3326 # Check that the compiler produces executables we can run. If not, either
3327 # the compiler is broken, or we cross compile.
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3329 $as_echo_n "checking whether the C compiler works... " >&6; }
3330 # If not cross compiling, check that we can run a simple program.
3331 if test "$cross_compiling" != yes; then
3332 if { ac_try='./$ac_file'
3333 { { case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; }; then
3343 cross_compiling=no
3344 else
3345 if test "$cross_compiling" = maybe; then
3346 cross_compiling=yes
3347 else
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error "cannot run C compiled programs.
3351 If you meant to cross compile, use \`--host'.
3352 See \`config.log' for more details." "$LINENO" 5; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3357 $as_echo "yes" >&6; }
3359 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3360 ac_clean_files=$ac_clean_files_save
3361 # Check that the compiler produces executables we can run. If not, either
3362 # the compiler is broken, or we cross compile.
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3364 $as_echo_n "checking whether we are cross compiling... " >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366 $as_echo "$cross_compiling" >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3369 $as_echo_n "checking for suffix of executables... " >&6; }
3370 if { { ac_try="$ac_link"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3384 # `rm'.
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 break;;
3391 * ) break;;
3392 esac
3393 done
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error "cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details." "$LINENO" 5; }
3400 rm -f conftest$ac_cv_exeext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3402 $as_echo "$ac_cv_exeext" >&6; }
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3406 ac_exeext=$EXEEXT
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408 $as_echo_n "checking for suffix of object files... " >&6; }
3409 if test "${ac_cv_objext+set}" = set; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3416 main ()
3420 return 0;
3422 _ACEOF
3423 rm -f conftest.o conftest.obj
3424 if { { ac_try="$ac_compile"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_compile") 2>&5
3432 ac_status=$?
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; then :
3435 for ac_file in conftest.o conftest.obj conftest.*; do
3436 test -f "$ac_file" || continue;
3437 case $ac_file in
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3439 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3440 break;;
3441 esac
3442 done
3443 else
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error "cannot compute suffix of object files: cannot compile
3450 See \`config.log' for more details." "$LINENO" 5; }
3452 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3455 $as_echo "$ac_cv_objext" >&6; }
3456 OBJEXT=$ac_cv_objext
3457 ac_objext=$OBJEXT
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3459 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3460 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3467 main ()
3469 #ifndef __GNUC__
3470 choke me
3471 #endif
3474 return 0;
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478 ac_compiler_gnu=yes
3479 else
3480 ac_compiler_gnu=no
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3487 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3489 GCC=yes
3490 else
3491 GCC=
3493 ac_test_CFLAGS=${CFLAGS+set}
3494 ac_save_CFLAGS=$CFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3496 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3497 if test "${ac_cv_prog_cc_g+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 ac_save_c_werror_flag=$ac_c_werror_flag
3501 ac_c_werror_flag=yes
3502 ac_cv_prog_cc_g=no
3503 CFLAGS="-g"
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_cv_prog_cc_g=yes
3517 else
3518 CFLAGS=""
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3523 main ()
3527 return 0;
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3532 else
3533 ac_c_werror_flag=$ac_save_c_werror_flag
3534 CFLAGS="-g"
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3539 main ()
3543 return 0;
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_cv_prog_cc_g=yes
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3557 $as_echo "$ac_cv_prog_cc_g" >&6; }
3558 if test "$ac_test_CFLAGS" = set; then
3559 CFLAGS=$ac_save_CFLAGS
3560 elif test $ac_cv_prog_cc_g = yes; then
3561 if test "$GCC" = yes; then
3562 CFLAGS="-g -O2"
3563 else
3564 CFLAGS="-g"
3566 else
3567 if test "$GCC" = yes; then
3568 CFLAGS="-O2"
3569 else
3570 CFLAGS=
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3574 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3575 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 ac_cv_prog_cc_c89=no
3579 ac_save_CC=$CC
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #include <stdarg.h>
3583 #include <stdio.h>
3584 #include <sys/types.h>
3585 #include <sys/stat.h>
3586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587 struct buf { int x; };
3588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589 static char *e (p, i)
3590 char **p;
3591 int i;
3593 return p[i];
3595 static char *f (char * (*g) (char **, int), char **p, ...)
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
3608 as 'x'. The following induces an error, until -std is added to get
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
3611 that's true only with -std. */
3612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3614 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616 #define FOO(x) 'x'
3617 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3619 int test (int i, double x);
3620 struct s1 {int (*f) (int a);};
3621 struct s2 {int (*f) (double a);};
3622 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623 int argc;
3624 char **argv;
3626 main ()
3628 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3630 return 0;
3632 _ACEOF
3633 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3636 CC="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_cv_prog_cc_c89=$ac_arg
3640 rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
3642 done
3643 rm -f conftest.$ac_ext
3644 CC=$ac_save_CC
3647 # AC_CACHE_VAL
3648 case "x$ac_cv_prog_cc_c89" in
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 $as_echo "none needed" >&6; } ;;
3652 xno)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3654 $as_echo "unsupported" >&6; } ;;
3656 CC="$CC $ac_cv_prog_cc_c89"
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3658 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3659 esac
3660 if test "x$ac_cv_prog_cc_c89" != xno; then :
3664 ac_ext=c
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 DEPDIR="${am__leading_dot}deps"
3671 ac_config_commands="$ac_config_commands depfiles"
3674 am_make=${MAKE-make}
3675 cat > confinc << 'END'
3676 am__doit:
3677 @echo this is the am__doit target
3678 .PHONY: am__doit
3680 # If we don't find an include directive, just comment out the code.
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3682 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3683 am__include="#"
3684 am__quote=
3685 _am_result=none
3686 # First try GNU make style include.
3687 echo "include confinc" > confmf
3688 # Ignore all kinds of additional output from `make'.
3689 case `$am_make -s -f confmf 2> /dev/null` in #(
3690 *the\ am__doit\ target*)
3691 am__include=include
3692 am__quote=
3693 _am_result=GNU
3695 esac
3696 # Now try BSD make style include.
3697 if test "$am__include" = "#"; then
3698 echo '.include "confinc"' > confmf
3699 case `$am_make -s -f confmf 2> /dev/null` in #(
3700 *the\ am__doit\ target*)
3701 am__include=.include
3702 am__quote="\""
3703 _am_result=BSD
3705 esac
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3710 $as_echo "$_am_result" >&6; }
3711 rm -f confinc confmf
3713 # Check whether --enable-dependency-tracking was given.
3714 if test "${enable_dependency_tracking+set}" = set; then :
3715 enableval=$enable_dependency_tracking;
3718 if test "x$enable_dependency_tracking" != xno; then
3719 am_depcomp="$ac_aux_dir/depcomp"
3720 AMDEPBACKSLASH='\'
3722 if test "x$enable_dependency_tracking" != xno; then
3723 AMDEP_TRUE=
3724 AMDEP_FALSE='#'
3725 else
3726 AMDEP_TRUE='#'
3727 AMDEP_FALSE=
3732 depcc="$CC" am_compiler_list=
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3735 $as_echo_n "checking dependency style of $depcc... " >&6; }
3736 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3740 # We make a subdir and do the tests there. Otherwise we can end up
3741 # making bogus files that we don't know about and never remove. For
3742 # instance it was reported that on HP-UX the gcc test will end up
3743 # making a dummy file named `D' -- because `-MD' means `put the output
3744 # in D'.
3745 mkdir conftest.dir
3746 # Copy depcomp to subdir because otherwise we won't find it if we're
3747 # using a relative directory.
3748 cp "$am_depcomp" conftest.dir
3749 cd conftest.dir
3750 # We will build objects and dependencies in a subdirectory because
3751 # it helps to detect inapplicable dependency modes. For instance
3752 # both Tru64's cc and ICC support -MD to output dependencies as a
3753 # side effect of compilation, but ICC will put the dependencies in
3754 # the current directory while Tru64 will put them in the object
3755 # directory.
3756 mkdir sub
3758 am_cv_CC_dependencies_compiler_type=none
3759 if test "$am_compiler_list" = ""; then
3760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3762 am__universal=false
3763 case " $depcc " in #(
3764 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3765 esac
3767 for depmode in $am_compiler_list; do
3768 # Setup a source with many dependencies, because some compilers
3769 # like to wrap large dependency lists on column 80 (with \), and
3770 # we should not choose a depcomp mode which is confused by this.
3772 # We need to recreate these files for each test, as the compiler may
3773 # overwrite some of them when testing with obscure command lines.
3774 # This happens at least with the AIX C compiler.
3775 : > sub/conftest.c
3776 for i in 1 2 3 4 5 6; do
3777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3778 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3779 # Solaris 8's {/usr,}/bin/sh.
3780 touch sub/conftst$i.h
3781 done
3782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3784 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3785 # mode. It turns out that the SunPro C++ compiler does not properly
3786 # handle `-M -o', and we need to detect this. Also, some Intel
3787 # versions had trouble with output in subdirs
3788 am__obj=sub/conftest.${OBJEXT-o}
3789 am__minus_obj="-o $am__obj"
3790 case $depmode in
3791 gcc)
3792 # This depmode causes a compiler race in universal mode.
3793 test "$am__universal" = false || continue
3795 nosideeffect)
3796 # after this tag, mechanisms are not by side-effect, so they'll
3797 # only be used when explicitly requested
3798 if test "x$enable_dependency_tracking" = xyes; then
3799 continue
3800 else
3801 break
3804 msvisualcpp | msvcmsys)
3805 # This compiler won't grok `-c -o', but also, the minuso test has
3806 # not run yet. These depmodes are late enough in the game, and
3807 # so weak that their functioning should not be impacted.
3808 am__obj=conftest.${OBJEXT-o}
3809 am__minus_obj=
3811 none) break ;;
3812 esac
3813 if depmode=$depmode \
3814 source=sub/conftest.c object=$am__obj \
3815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3816 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3817 >/dev/null 2>conftest.err &&
3818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3820 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3822 # icc doesn't choke on unknown options, it will just issue warnings
3823 # or remarks (even with -Werror). So we grep stderr for any message
3824 # that says an option was ignored or not supported.
3825 # When given -MP, icc 7.0 and 7.1 complain thusly:
3826 # icc: Command line warning: ignoring option '-M'; no argument required
3827 # The diagnosis changed in icc 8.0:
3828 # icc: Command line remark: option '-MP' not supported
3829 if (grep 'ignoring option' conftest.err ||
3830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3831 am_cv_CC_dependencies_compiler_type=$depmode
3832 break
3835 done
3837 cd ..
3838 rm -rf conftest.dir
3839 else
3840 am_cv_CC_dependencies_compiler_type=none
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3845 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3849 test "x$enable_dependency_tracking" != xno \
3850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3851 am__fastdepCC_TRUE=
3852 am__fastdepCC_FALSE='#'
3853 else
3854 am__fastdepCC_TRUE='#'
3855 am__fastdepCC_FALSE=
3860 # Check whether --enable-largefile was given.
3861 if test "${enable_largefile+set}" = set; then :
3862 enableval=$enable_largefile;
3865 if test "$enable_largefile" != no; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3868 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3869 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_cv_sys_largefile_CC=no
3873 if test "$GCC" != yes; then
3874 ac_save_CC=$CC
3875 while :; do
3876 # IRIX 6.2 and later do not support large files by default,
3877 # so use the C compiler's -n32 option if that helps.
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3880 #include <sys/types.h>
3881 /* Check that off_t can represent 2**63 - 1 correctly.
3882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3883 since some C++ compilers masquerading as C compilers
3884 incorrectly reject 9223372036854775807. */
3885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3887 && LARGE_OFF_T % 2147483647 == 1)
3888 ? 1 : -1];
3890 main ()
3894 return 0;
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 break
3900 rm -f core conftest.err conftest.$ac_objext
3901 CC="$CC -n32"
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_sys_largefile_CC=' -n32'; break
3905 rm -f core conftest.err conftest.$ac_objext
3906 break
3907 done
3908 CC=$ac_save_CC
3909 rm -f conftest.$ac_ext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3913 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3914 if test "$ac_cv_sys_largefile_CC" != no; then
3915 CC=$CC$ac_cv_sys_largefile_CC
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3919 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3920 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 while :; do
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <sys/types.h>
3927 /* Check that off_t can represent 2**63 - 1 correctly.
3928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3929 since some C++ compilers masquerading as C compilers
3930 incorrectly reject 9223372036854775807. */
3931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3933 && LARGE_OFF_T % 2147483647 == 1)
3934 ? 1 : -1];
3936 main ()
3940 return 0;
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944 ac_cv_sys_file_offset_bits=no; break
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949 #define _FILE_OFFSET_BITS 64
3950 #include <sys/types.h>
3951 /* Check that off_t can represent 2**63 - 1 correctly.
3952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3953 since some C++ compilers masquerading as C compilers
3954 incorrectly reject 9223372036854775807. */
3955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3957 && LARGE_OFF_T % 2147483647 == 1)
3958 ? 1 : -1];
3960 main ()
3964 return 0;
3966 _ACEOF
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968 ac_cv_sys_file_offset_bits=64; break
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_cv_sys_file_offset_bits=unknown
3972 break
3973 done
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3976 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3977 case $ac_cv_sys_file_offset_bits in #(
3978 no | unknown) ;;
3980 cat >>confdefs.h <<_ACEOF
3981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3982 _ACEOF
3984 esac
3985 rm -rf conftest*
3986 if test $ac_cv_sys_file_offset_bits = unknown; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3988 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3989 if test "${ac_cv_sys_large_files+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 while :; do
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <sys/types.h>
3996 /* Check that off_t can represent 2**63 - 1 correctly.
3997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3998 since some C++ compilers masquerading as C compilers
3999 incorrectly reject 9223372036854775807. */
4000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4002 && LARGE_OFF_T % 2147483647 == 1)
4003 ? 1 : -1];
4005 main ()
4009 return 0;
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_cv_sys_large_files=no; break
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #define _LARGE_FILES 1
4019 #include <sys/types.h>
4020 /* Check that off_t can represent 2**63 - 1 correctly.
4021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4022 since some C++ compilers masquerading as C compilers
4023 incorrectly reject 9223372036854775807. */
4024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4026 && LARGE_OFF_T % 2147483647 == 1)
4027 ? 1 : -1];
4029 main ()
4033 return 0;
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_sys_large_files=1; break
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 ac_cv_sys_large_files=unknown
4041 break
4042 done
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4045 $as_echo "$ac_cv_sys_large_files" >&6; }
4046 case $ac_cv_sys_large_files in #(
4047 no | unknown) ;;
4049 cat >>confdefs.h <<_ACEOF
4050 #define _LARGE_FILES $ac_cv_sys_large_files
4051 _ACEOF
4053 esac
4054 rm -rf conftest*
4058 ac_lto_plugin_warn_cflags=
4059 save_CFLAGS="$CFLAGS"
4060 for real_option in -Wall; do
4061 # Do the check with the no- prefix removed since gcc silently
4062 # accepts any -Wno-* option on purpose
4063 case $real_option in
4064 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4065 *) option=$real_option ;;
4066 esac
4067 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4070 $as_echo_n "checking whether $CC supports $option... " >&6; }
4071 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 CFLAGS="$option"
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4079 main ()
4083 return 0;
4085 _ACEOF
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 eval "$as_acx_Woption=yes"
4088 else
4089 eval "$as_acx_Woption=no"
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 eval ac_res=\$$as_acx_Woption
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4096 $as_echo "$ac_res" >&6; }
4097 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4098 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
4100 done
4101 CFLAGS="$save_CFLAGS"
4104 # Check whether -static-libgcc is supported.
4105 saved_LDFLAGS="$LDFLAGS"
4106 LDFLAGS="$LDFLAGS -static-libgcc"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
4108 $as_echo_n "checking for -static-libgcc... " >&6; }
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4112 int main() {}
4113 _ACEOF
4114 if ac_fn_c_try_link "$LINENO"; then :
4115 have_static_libgcc=yes
4116 else
4117 have_static_libgcc=no
4119 rm -f core conftest.err conftest.$ac_objext \
4120 conftest$ac_exeext conftest.$ac_ext
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
4122 $as_echo "$have_static_libgcc" >&6; };
4123 LDFLAGS="$saved_LDFLAGS"
4124 # Need -Wc to get it through libtool.
4125 if test "x$have_static_libgcc" = xyes; then
4126 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
4130 case `pwd` in
4131 *\ * | *\ *)
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4133 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4134 esac
4138 macro_version='2.2.7a'
4139 macro_revision='1.3134'
4153 ltmain="$ac_aux_dir/ltmain.sh"
4155 # Backslashify metacharacters that are still active within
4156 # double-quoted strings.
4157 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4159 # Same as above, but do not quote variable references.
4160 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4162 # Sed substitution to delay expansion of an escaped shell variable in a
4163 # double_quote_subst'ed string.
4164 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4166 # Sed substitution to delay expansion of an escaped single quote.
4167 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4169 # Sed substitution to avoid accidental globbing in evaled expressions
4170 no_glob_subst='s/\*/\\\*/g'
4172 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4177 $as_echo_n "checking how to print strings... " >&6; }
4178 # Test print first, because it will be a builtin if present.
4179 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4180 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4181 ECHO='print -r --'
4182 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4183 ECHO='printf %s\n'
4184 else
4185 # Use this function as a fallback that always works.
4186 func_fallback_echo ()
4188 eval 'cat <<_LTECHO_EOF
4190 _LTECHO_EOF'
4192 ECHO='func_fallback_echo'
4195 # func_echo_all arg...
4196 # Invoke $ECHO with all args, space-separated.
4197 func_echo_all ()
4199 $ECHO ""
4202 case "$ECHO" in
4203 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4204 $as_echo "printf" >&6; } ;;
4205 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4206 $as_echo "print -r" >&6; } ;;
4207 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4208 $as_echo "cat" >&6; } ;;
4209 esac
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4225 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4226 if test "${ac_cv_path_SED+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4230 for ac_i in 1 2 3 4 5 6 7; do
4231 ac_script="$ac_script$as_nl$ac_script"
4232 done
4233 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4234 { ac_script=; unset ac_script;}
4235 if test -z "$SED"; then
4236 ac_path_SED_found=false
4237 # Loop through the user's path and test for each of PROGNAME-LIST
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_prog in sed gsed; do
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4246 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4247 # Check for GNU ac_path_SED and select it if it is found.
4248 # Check for GNU $ac_path_SED
4249 case `"$ac_path_SED" --version 2>&1` in
4250 *GNU*)
4251 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4253 ac_count=0
4254 $as_echo_n 0123456789 >"conftest.in"
4255 while :
4257 cat "conftest.in" "conftest.in" >"conftest.tmp"
4258 mv "conftest.tmp" "conftest.in"
4259 cp "conftest.in" "conftest.nl"
4260 $as_echo '' >> "conftest.nl"
4261 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263 as_fn_arith $ac_count + 1 && ac_count=$as_val
4264 if test $ac_count -gt ${ac_path_SED_max-0}; then
4265 # Best one so far, save it but keep looking for a better one
4266 ac_cv_path_SED="$ac_path_SED"
4267 ac_path_SED_max=$ac_count
4269 # 10*(2^10) chars as input seems more than enough
4270 test $ac_count -gt 10 && break
4271 done
4272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273 esac
4275 $ac_path_SED_found && break 3
4276 done
4277 done
4278 done
4279 IFS=$as_save_IFS
4280 if test -z "$ac_cv_path_SED"; then
4281 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4283 else
4284 ac_cv_path_SED=$SED
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4289 $as_echo "$ac_cv_path_SED" >&6; }
4290 SED="$ac_cv_path_SED"
4291 rm -f conftest.sed
4293 test -z "$SED" && SED=sed
4294 Xsed="$SED -e 1s/^X//"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4307 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4308 if test "${ac_cv_path_GREP+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -z "$GREP"; then
4312 ac_path_GREP_found=false
4313 # Loop through the user's path and test for each of PROGNAME-LIST
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_prog in grep ggrep; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4322 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4323 # Check for GNU ac_path_GREP and select it if it is found.
4324 # Check for GNU $ac_path_GREP
4325 case `"$ac_path_GREP" --version 2>&1` in
4326 *GNU*)
4327 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4329 ac_count=0
4330 $as_echo_n 0123456789 >"conftest.in"
4331 while :
4333 cat "conftest.in" "conftest.in" >"conftest.tmp"
4334 mv "conftest.tmp" "conftest.in"
4335 cp "conftest.in" "conftest.nl"
4336 $as_echo 'GREP' >> "conftest.nl"
4337 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4339 as_fn_arith $ac_count + 1 && ac_count=$as_val
4340 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4341 # Best one so far, save it but keep looking for a better one
4342 ac_cv_path_GREP="$ac_path_GREP"
4343 ac_path_GREP_max=$ac_count
4345 # 10*(2^10) chars as input seems more than enough
4346 test $ac_count -gt 10 && break
4347 done
4348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4349 esac
4351 $ac_path_GREP_found && break 3
4352 done
4353 done
4354 done
4355 IFS=$as_save_IFS
4356 if test -z "$ac_cv_path_GREP"; then
4357 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359 else
4360 ac_cv_path_GREP=$GREP
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4365 $as_echo "$ac_cv_path_GREP" >&6; }
4366 GREP="$ac_cv_path_GREP"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4370 $as_echo_n "checking for egrep... " >&6; }
4371 if test "${ac_cv_path_EGREP+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4375 then ac_cv_path_EGREP="$GREP -E"
4376 else
4377 if test -z "$EGREP"; then
4378 ac_path_EGREP_found=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_prog in egrep; do
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4389 # Check for GNU ac_path_EGREP and select it if it is found.
4390 # Check for GNU $ac_path_EGREP
4391 case `"$ac_path_EGREP" --version 2>&1` in
4392 *GNU*)
4393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4395 ac_count=0
4396 $as_echo_n 0123456789 >"conftest.in"
4397 while :
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'EGREP' >> "conftest.nl"
4403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405 as_fn_arith $ac_count + 1 && ac_count=$as_val
4406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_EGREP="$ac_path_EGREP"
4409 ac_path_EGREP_max=$ac_count
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4413 done
4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 esac
4417 $ac_path_EGREP_found && break 3
4418 done
4419 done
4420 done
4421 IFS=$as_save_IFS
4422 if test -z "$ac_cv_path_EGREP"; then
4423 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425 else
4426 ac_cv_path_EGREP=$EGREP
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4432 $as_echo "$ac_cv_path_EGREP" >&6; }
4433 EGREP="$ac_cv_path_EGREP"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4437 $as_echo_n "checking for fgrep... " >&6; }
4438 if test "${ac_cv_path_FGREP+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4442 then ac_cv_path_FGREP="$GREP -F"
4443 else
4444 if test -z "$FGREP"; then
4445 ac_path_FGREP_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in fgrep; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4455 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4456 # Check for GNU ac_path_FGREP and select it if it is found.
4457 # Check for GNU $ac_path_FGREP
4458 case `"$ac_path_FGREP" --version 2>&1` in
4459 *GNU*)
4460 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4462 ac_count=0
4463 $as_echo_n 0123456789 >"conftest.in"
4464 while :
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 $as_echo 'FGREP' >> "conftest.nl"
4470 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_FGREP="$ac_path_FGREP"
4476 ac_path_FGREP_max=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4480 done
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 esac
4484 $ac_path_FGREP_found && break 3
4485 done
4486 done
4487 done
4488 IFS=$as_save_IFS
4489 if test -z "$ac_cv_path_FGREP"; then
4490 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 else
4493 ac_cv_path_FGREP=$FGREP
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4499 $as_echo "$ac_cv_path_FGREP" >&6; }
4500 FGREP="$ac_cv_path_FGREP"
4503 test -z "$GREP" && GREP=grep
4523 # Check whether --with-gnu-ld was given.
4524 if test "${with_gnu_ld+set}" = set; then :
4525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4526 else
4527 with_gnu_ld=no
4530 ac_prog=ld
4531 if test "$GCC" = yes; then
4532 # Check if gcc -print-prog-name=ld gives a path.
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4534 $as_echo_n "checking for ld used by $CC... " >&6; }
4535 case $host in
4536 *-*-mingw*)
4537 # gcc leaves a trailing carriage return which upsets mingw
4538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4541 esac
4542 case $ac_prog in
4543 # Accept absolute paths.
4544 [\\/]* | ?:[\\/]*)
4545 re_direlt='/[^/][^/]*/\.\./'
4546 # Canonicalize the pathname of ld
4547 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4548 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4549 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4550 done
4551 test -z "$LD" && LD="$ac_prog"
4554 # If it fails, then pretend we aren't using GCC.
4555 ac_prog=ld
4558 # If it is relative, then search for the first ld in PATH.
4559 with_gnu_ld=unknown
4561 esac
4562 elif test "$with_gnu_ld" = yes; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4564 $as_echo_n "checking for GNU ld... " >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4567 $as_echo_n "checking for non-GNU ld... " >&6; }
4569 if test "${lt_cv_path_LD+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -z "$LD"; then
4573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4574 for ac_dir in $PATH; do
4575 IFS="$lt_save_ifs"
4576 test -z "$ac_dir" && ac_dir=.
4577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4578 lt_cv_path_LD="$ac_dir/$ac_prog"
4579 # Check to see if the program is GNU ld. I'd rather use --version,
4580 # but apparently some variants of GNU ld only accept -v.
4581 # Break only if it was the GNU/non-GNU ld that we prefer.
4582 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4583 *GNU* | *'with BFD'*)
4584 test "$with_gnu_ld" != no && break
4587 test "$with_gnu_ld" != yes && break
4589 esac
4591 done
4592 IFS="$lt_save_ifs"
4593 else
4594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4598 LD="$lt_cv_path_LD"
4599 if test -n "$LD"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4601 $as_echo "$LD" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4606 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4608 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4609 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4613 case `$LD -v 2>&1 </dev/null` in
4614 *GNU* | *'with BFD'*)
4615 lt_cv_prog_gnu_ld=yes
4618 lt_cv_prog_gnu_ld=no
4620 esac
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4623 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4624 with_gnu_ld=$lt_cv_prog_gnu_ld
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4635 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4636 if test "${lt_cv_path_NM+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$NM"; then
4640 # Let the user override the test.
4641 lt_cv_path_NM="$NM"
4642 else
4643 lt_nm_to_check="${ac_tool_prefix}nm"
4644 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4645 lt_nm_to_check="$lt_nm_to_check nm"
4647 for lt_tmp_nm in $lt_nm_to_check; do
4648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4649 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4650 IFS="$lt_save_ifs"
4651 test -z "$ac_dir" && ac_dir=.
4652 tmp_nm="$ac_dir/$lt_tmp_nm"
4653 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4654 # Check to see if the nm accepts a BSD-compat flag.
4655 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4656 # nm: unknown option "B" ignored
4657 # Tru64's nm complains that /dev/null is an invalid object file
4658 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4659 */dev/null* | *'Invalid file or object type'*)
4660 lt_cv_path_NM="$tmp_nm -B"
4661 break
4664 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4665 */dev/null*)
4666 lt_cv_path_NM="$tmp_nm -p"
4667 break
4670 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4671 continue # so that we can try to find one that supports BSD flags
4673 esac
4675 esac
4677 done
4678 IFS="$lt_save_ifs"
4679 done
4680 : ${lt_cv_path_NM=no}
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4684 $as_echo "$lt_cv_path_NM" >&6; }
4685 if test "$lt_cv_path_NM" != "no"; then
4686 NM="$lt_cv_path_NM"
4687 else
4688 # Didn't find any BSD compatible name lister, look for dumpbin.
4689 if test -n "$DUMPBIN"; then :
4690 # Let the user override the test.
4691 else
4692 if test -n "$ac_tool_prefix"; then
4693 for ac_prog in dumpbin "link -dump"
4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$DUMPBIN"; then
4703 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 DUMPBIN=$ac_cv_prog_DUMPBIN
4723 if test -n "$DUMPBIN"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4725 $as_echo "$DUMPBIN" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4732 test -n "$DUMPBIN" && break
4733 done
4735 if test -z "$DUMPBIN"; then
4736 ac_ct_DUMPBIN=$DUMPBIN
4737 for ac_prog in dumpbin "link -dump"
4739 # Extract the first word of "$ac_prog", so it can be a program name with args.
4740 set dummy $ac_prog; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$ac_ct_DUMPBIN"; then
4747 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4766 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4767 if test -n "$ac_ct_DUMPBIN"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4769 $as_echo "$ac_ct_DUMPBIN" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4776 test -n "$ac_ct_DUMPBIN" && break
4777 done
4779 if test "x$ac_ct_DUMPBIN" = x; then
4780 DUMPBIN=":"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783 yes:)
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786 ac_tool_warned=yes ;;
4787 esac
4788 DUMPBIN=$ac_ct_DUMPBIN
4792 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4793 *COFF*)
4794 DUMPBIN="$DUMPBIN -symbols"
4797 DUMPBIN=:
4799 esac
4802 if test "$DUMPBIN" != ":"; then
4803 NM="$DUMPBIN"
4806 test -z "$NM" && NM=nm
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4814 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4815 if test "${lt_cv_nm_interface+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 lt_cv_nm_interface="BSD nm"
4819 echo "int some_variable = 0;" > conftest.$ac_ext
4820 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4821 (eval "$ac_compile" 2>conftest.err)
4822 cat conftest.err >&5
4823 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4824 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4825 cat conftest.err >&5
4826 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4827 cat conftest.out >&5
4828 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4829 lt_cv_nm_interface="MS dumpbin"
4831 rm -f conftest*
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4834 $as_echo "$lt_cv_nm_interface" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4837 $as_echo_n "checking whether ln -s works... " >&6; }
4838 LN_S=$as_ln_s
4839 if test "$LN_S" = "ln -s"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841 $as_echo "yes" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4844 $as_echo "no, using $LN_S" >&6; }
4847 # find the maximum length of command line arguments
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4849 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4850 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4854 teststring="ABCD"
4856 case $build_os in
4857 msdosdjgpp*)
4858 # On DJGPP, this test can blow up pretty badly due to problems in libc
4859 # (any single argument exceeding 2000 bytes causes a buffer overrun
4860 # during glob expansion). Even if it were fixed, the result of this
4861 # check would be larger than it should be.
4862 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4865 gnu*)
4866 # Under GNU Hurd, this test is not required because there is
4867 # no limit to the length of command line arguments.
4868 # Libtool will interpret -1 as no limit whatsoever
4869 lt_cv_sys_max_cmd_len=-1;
4872 cygwin* | mingw* | cegcc*)
4873 # On Win9x/ME, this test blows up -- it succeeds, but takes
4874 # about 5 minutes as the teststring grows exponentially.
4875 # Worse, since 9x/ME are not pre-emptively multitasking,
4876 # you end up with a "frozen" computer, even though with patience
4877 # the test eventually succeeds (with a max line length of 256k).
4878 # Instead, let's just punt: use the minimum linelength reported by
4879 # all of the supported platforms: 8192 (on NT/2K/XP).
4880 lt_cv_sys_max_cmd_len=8192;
4883 mint*)
4884 # On MiNT this can take a long time and run out of memory.
4885 lt_cv_sys_max_cmd_len=8192;
4888 amigaos*)
4889 # On AmigaOS with pdksh, this test takes hours, literally.
4890 # So we just punt and use a minimum line length of 8192.
4891 lt_cv_sys_max_cmd_len=8192;
4894 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4895 # This has been around since 386BSD, at least. Likely further.
4896 if test -x /sbin/sysctl; then
4897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4898 elif test -x /usr/sbin/sysctl; then
4899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4900 else
4901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4903 # And add a safety zone
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4908 interix*)
4909 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4910 lt_cv_sys_max_cmd_len=196608
4913 osf*)
4914 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4915 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4916 # nice to cause kernel panics so lets avoid the loop below.
4917 # First set a reasonable default.
4918 lt_cv_sys_max_cmd_len=16384
4920 if test -x /sbin/sysconfig; then
4921 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4922 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4923 esac
4926 sco3.2v5*)
4927 lt_cv_sys_max_cmd_len=102400
4929 sysv5* | sco5v6* | sysv4.2uw2*)
4930 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4931 if test -n "$kargmax"; then
4932 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4933 else
4934 lt_cv_sys_max_cmd_len=32768
4938 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4939 if test -n "$lt_cv_sys_max_cmd_len"; then
4940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4942 else
4943 # Make teststring a little bigger before we do anything with it.
4944 # a 1K string should be a reasonable start.
4945 for i in 1 2 3 4 5 6 7 8 ; do
4946 teststring=$teststring$teststring
4947 done
4948 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4949 # If test is not a shell built-in, we'll probably end up computing a
4950 # maximum length that is only half of the actual maximum length, but
4951 # we can't tell.
4952 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4953 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4954 test $i != 17 # 1/2 MB should be enough
4956 i=`expr $i + 1`
4957 teststring=$teststring$teststring
4958 done
4959 # Only check the string length outside the loop.
4960 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4961 teststring=
4962 # Add a significant safety factor because C++ compilers can tack on
4963 # massive amounts of additional arguments before passing them to the
4964 # linker. It appears as though 1/2 is a usable value.
4965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4968 esac
4972 if test -n $lt_cv_sys_max_cmd_len ; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4974 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4977 $as_echo "none" >&6; }
4979 max_cmd_len=$lt_cv_sys_max_cmd_len
4986 : ${CP="cp -f"}
4987 : ${MV="mv -f"}
4988 : ${RM="rm -f"}
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4991 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4992 # Try some XSI features
4993 xsi_shell=no
4994 ( _lt_dummy="a/b/c"
4995 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4996 = c,a/b,, \
4997 && eval 'test $(( 1 + 1 )) -eq 2 \
4998 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4999 && xsi_shell=yes
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5001 $as_echo "$xsi_shell" >&6; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5005 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5006 lt_shell_append=no
5007 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5008 >/dev/null 2>&1 \
5009 && lt_shell_append=yes
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5011 $as_echo "$lt_shell_append" >&6; }
5014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5015 lt_unset=unset
5016 else
5017 lt_unset=false
5024 # test EBCDIC or ASCII
5025 case `echo X|tr X '\101'` in
5026 A) # ASCII based system
5027 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5028 lt_SP2NL='tr \040 \012'
5029 lt_NL2SP='tr \015\012 \040\040'
5031 *) # EBCDIC based system
5032 lt_SP2NL='tr \100 \n'
5033 lt_NL2SP='tr \r\n \100\100'
5035 esac
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5046 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5047 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 lt_cv_ld_reload_flag='-r'
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5053 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5054 reload_flag=$lt_cv_ld_reload_flag
5055 case $reload_flag in
5056 "" | " "*) ;;
5057 *) reload_flag=" $reload_flag" ;;
5058 esac
5059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5060 case $host_os in
5061 darwin*)
5062 if test "$GCC" = yes; then
5063 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5064 else
5065 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5068 esac
5078 if test -n "$ac_tool_prefix"; then
5079 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5080 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$OBJDUMP"; then
5087 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5102 IFS=$as_save_IFS
5106 OBJDUMP=$ac_cv_prog_OBJDUMP
5107 if test -n "$OBJDUMP"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5109 $as_echo "$OBJDUMP" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5117 if test -z "$ac_cv_prog_OBJDUMP"; then
5118 ac_ct_OBJDUMP=$OBJDUMP
5119 # Extract the first word of "objdump", so it can be a program name with args.
5120 set dummy objdump; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -n "$ac_ct_OBJDUMP"; then
5127 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5142 IFS=$as_save_IFS
5146 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5147 if test -n "$ac_ct_OBJDUMP"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5149 $as_echo "$ac_ct_OBJDUMP" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5155 if test "x$ac_ct_OBJDUMP" = x; then
5156 OBJDUMP="false"
5157 else
5158 case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164 OBJDUMP=$ac_ct_OBJDUMP
5166 else
5167 OBJDUMP="$ac_cv_prog_OBJDUMP"
5170 test -z "$OBJDUMP" && OBJDUMP=objdump
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5181 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5182 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 lt_cv_file_magic_cmd='$MAGIC_CMD'
5186 lt_cv_file_magic_test_file=
5187 lt_cv_deplibs_check_method='unknown'
5188 # Need to set the preceding variable on all platforms that support
5189 # interlibrary dependencies.
5190 # 'none' -- dependencies not supported.
5191 # `unknown' -- same as none, but documents that we really don't know.
5192 # 'pass_all' -- all dependencies passed with no checks.
5193 # 'test_compile' -- check by making test program.
5194 # 'file_magic [[regex]]' -- check by looking for files in library path
5195 # which responds to the $file_magic_cmd with a given extended regex.
5196 # If you have `file' or equivalent on your system and you're not sure
5197 # whether `pass_all' will *always* work, you probably want this one.
5199 case $host_os in
5200 aix[4-9]*)
5201 lt_cv_deplibs_check_method=pass_all
5204 beos*)
5205 lt_cv_deplibs_check_method=pass_all
5208 bsdi[45]*)
5209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5210 lt_cv_file_magic_cmd='/usr/bin/file -L'
5211 lt_cv_file_magic_test_file=/shlib/libc.so
5214 cygwin*)
5215 # func_win32_libid is a shell function defined in ltmain.sh
5216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5217 lt_cv_file_magic_cmd='func_win32_libid'
5220 mingw* | pw32*)
5221 # Base MSYS/MinGW do not provide the 'file' command needed by
5222 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5223 # unless we find 'file', for example because we are cross-compiling.
5224 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5225 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5227 lt_cv_file_magic_cmd='func_win32_libid'
5228 else
5229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5230 lt_cv_file_magic_cmd='$OBJDUMP -f'
5234 cegcc*)
5235 # use the weaker test based on 'objdump'. See mingw*.
5236 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5237 lt_cv_file_magic_cmd='$OBJDUMP -f'
5240 darwin* | rhapsody*)
5241 lt_cv_deplibs_check_method=pass_all
5244 freebsd* | dragonfly*)
5245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5246 case $host_cpu in
5247 i*86 )
5248 # Not sure whether the presence of OpenBSD here was a mistake.
5249 # Let's accept both of them until this is cleared up.
5250 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5251 lt_cv_file_magic_cmd=/usr/bin/file
5252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5254 esac
5255 else
5256 lt_cv_deplibs_check_method=pass_all
5260 gnu*)
5261 lt_cv_deplibs_check_method=pass_all
5264 haiku*)
5265 lt_cv_deplibs_check_method=pass_all
5268 hpux10.20* | hpux11*)
5269 lt_cv_file_magic_cmd=/usr/bin/file
5270 case $host_cpu in
5271 ia64*)
5272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5273 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5275 hppa*64*)
5276 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]'
5277 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5281 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5283 esac
5286 interix[3-9]*)
5287 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5291 irix5* | irix6* | nonstopux*)
5292 case $LD in
5293 *-32|*"-32 ") libmagic=32-bit;;
5294 *-n32|*"-n32 ") libmagic=N32;;
5295 *-64|*"-64 ") libmagic=64-bit;;
5296 *) libmagic=never-match;;
5297 esac
5298 lt_cv_deplibs_check_method=pass_all
5301 # This must be Linux ELF.
5302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5303 lt_cv_deplibs_check_method=pass_all
5306 netbsd*)
5307 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5309 else
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5314 newos6*)
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5316 lt_cv_file_magic_cmd=/usr/bin/file
5317 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5320 *nto* | *qnx*)
5321 lt_cv_deplibs_check_method=pass_all
5324 openbsd*)
5325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5327 else
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5332 osf3* | osf4* | osf5*)
5333 lt_cv_deplibs_check_method=pass_all
5336 rdos*)
5337 lt_cv_deplibs_check_method=pass_all
5340 solaris*)
5341 lt_cv_deplibs_check_method=pass_all
5344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5345 lt_cv_deplibs_check_method=pass_all
5348 sysv4 | sysv4.3*)
5349 case $host_vendor in
5350 motorola)
5351 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]'
5352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5354 ncr)
5355 lt_cv_deplibs_check_method=pass_all
5357 sequent)
5358 lt_cv_file_magic_cmd='/bin/file'
5359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5361 sni)
5362 lt_cv_file_magic_cmd='/bin/file'
5363 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5364 lt_cv_file_magic_test_file=/lib/libc.so
5366 siemens)
5367 lt_cv_deplibs_check_method=pass_all
5370 lt_cv_deplibs_check_method=pass_all
5372 esac
5375 tpf*)
5376 lt_cv_deplibs_check_method=pass_all
5378 esac
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5382 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5383 file_magic_cmd=$lt_cv_file_magic_cmd
5384 deplibs_check_method=$lt_cv_deplibs_check_method
5385 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5398 if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5400 set dummy ${ac_tool_prefix}ar; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if test "${ac_cv_prog_AR+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 if test -n "$AR"; then
5407 ac_cv_prog_AR="$AR" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_AR="${ac_tool_prefix}ar"
5417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5420 done
5421 done
5422 IFS=$as_save_IFS
5426 AR=$ac_cv_prog_AR
5427 if test -n "$AR"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5429 $as_echo "$AR" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5437 if test -z "$ac_cv_prog_AR"; then
5438 ac_ct_AR=$AR
5439 # Extract the first word of "ar", so it can be a program name with args.
5440 set dummy ar; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 if test -n "$ac_ct_AR"; then
5447 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5448 else
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5456 ac_cv_prog_ac_ct_AR="ar"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5460 done
5461 done
5462 IFS=$as_save_IFS
5466 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5467 if test -n "$ac_ct_AR"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5469 $as_echo "$ac_ct_AR" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5475 if test "x$ac_ct_AR" = x; then
5476 AR="false"
5477 else
5478 case $cross_compiling:$ac_tool_warned in
5479 yes:)
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5482 ac_tool_warned=yes ;;
5483 esac
5484 AR=$ac_ct_AR
5486 else
5487 AR="$ac_cv_prog_AR"
5490 test -z "$AR" && AR=ar
5491 test -z "$AR_FLAGS" && AR_FLAGS=cru
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5505 set dummy ${ac_tool_prefix}strip; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if test "${ac_cv_prog_STRIP+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 if test -n "$STRIP"; then
5512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5531 STRIP=$ac_cv_prog_STRIP
5532 if test -n "$STRIP"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5534 $as_echo "$STRIP" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5542 if test -z "$ac_cv_prog_STRIP"; then
5543 ac_ct_STRIP=$STRIP
5544 # Extract the first word of "strip", so it can be a program name with args.
5545 set dummy strip; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$ac_ct_STRIP"; then
5552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_ac_ct_STRIP="strip"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5572 if test -n "$ac_ct_STRIP"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5574 $as_echo "$ac_ct_STRIP" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5580 if test "x$ac_ct_STRIP" = x; then
5581 STRIP=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 STRIP=$ac_ct_STRIP
5591 else
5592 STRIP="$ac_cv_prog_STRIP"
5595 test -z "$STRIP" && STRIP=:
5602 if test -n "$ac_tool_prefix"; then
5603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$RANLIB"; then
5611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5624 done
5625 done
5626 IFS=$as_save_IFS
5630 RANLIB=$ac_cv_prog_RANLIB
5631 if test -n "$RANLIB"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5633 $as_echo "$RANLIB" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5641 if test -z "$ac_cv_prog_RANLIB"; then
5642 ac_ct_RANLIB=$RANLIB
5643 # Extract the first word of "ranlib", so it can be a program name with args.
5644 set dummy ranlib; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 if test -n "$ac_ct_RANLIB"; then
5651 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_ac_ct_RANLIB="ranlib"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5666 IFS=$as_save_IFS
5670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5671 if test -n "$ac_ct_RANLIB"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5673 $as_echo "$ac_ct_RANLIB" >&6; }
5674 else
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5679 if test "x$ac_ct_RANLIB" = x; then
5680 RANLIB=":"
5681 else
5682 case $cross_compiling:$ac_tool_warned in
5683 yes:)
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5686 ac_tool_warned=yes ;;
5687 esac
5688 RANLIB=$ac_ct_RANLIB
5690 else
5691 RANLIB="$ac_cv_prog_RANLIB"
5694 test -z "$RANLIB" && RANLIB=:
5701 # Determine commands to create old-style static archives.
5702 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5703 old_postinstall_cmds='chmod 644 $oldlib'
5704 old_postuninstall_cmds=
5706 if test -n "$RANLIB"; then
5707 case $host_os in
5708 openbsd*)
5709 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5712 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5714 esac
5715 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5718 case $host_os in
5719 darwin*)
5720 lock_old_archive_extraction=yes ;;
5722 lock_old_archive_extraction=no ;;
5723 esac
5763 # If no C compiler was specified, use CC.
5764 LTCC=${LTCC-"$CC"}
5766 # If no C compiler flags were specified, use CFLAGS.
5767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5769 # Allow CC to be a program name with arguments.
5770 compiler=$CC
5773 # Check for command to grab the raw symbol name followed by C symbol from nm.
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5775 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5776 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5780 # These are sane defaults that work on at least a few old systems.
5781 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5783 # Character class describing NM global symbol codes.
5784 symcode='[BCDEGRST]'
5786 # Regexp to match symbols that can be accessed directly from C.
5787 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5789 # Define system-specific variables.
5790 case $host_os in
5791 aix*)
5792 symcode='[BCDT]'
5794 cygwin* | mingw* | pw32* | cegcc*)
5795 symcode='[ABCDGISTW]'
5797 hpux*)
5798 if test "$host_cpu" = ia64; then
5799 symcode='[ABCDEGRST]'
5802 irix* | nonstopux*)
5803 symcode='[BCDEGRST]'
5805 osf*)
5806 symcode='[BCDEGQRST]'
5808 solaris*)
5809 symcode='[BDRT]'
5811 sco3.2v5*)
5812 symcode='[DT]'
5814 sysv4.2uw2*)
5815 symcode='[DT]'
5817 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5818 symcode='[ABDT]'
5820 sysv4)
5821 symcode='[DFNSTU]'
5823 esac
5825 # If we're using GNU nm, then use its standard symbol codes.
5826 case `$NM -V 2>&1` in
5827 *GNU* | *'with BFD'*)
5828 symcode='[ABCDGIRSTW]' ;;
5829 esac
5831 # Transform an extracted symbol line into a proper C declaration.
5832 # Some systems (esp. on ia64) link data and code symbols differently,
5833 # so use this general approach.
5834 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5836 # Transform an extracted symbol line into symbol name and symbol address
5837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5838 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'"
5840 # Handle CRLF in mingw tool chain
5841 opt_cr=
5842 case $build_os in
5843 mingw*)
5844 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5846 esac
5848 # Try without a prefix underscore, then with it.
5849 for ac_symprfx in "" "_"; do
5851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5852 symxfrm="\\1 $ac_symprfx\\2 \\2"
5854 # Write the raw and C identifiers.
5855 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5856 # Fake it for dumpbin and say T for any non-static function
5857 # and D for any global variable.
5858 # Also find C++ and __fastcall symbols from MSVC++,
5859 # which start with @ or ?.
5860 lt_cv_sys_global_symbol_pipe="$AWK '"\
5861 " {last_section=section; section=\$ 3};"\
5862 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5863 " \$ 0!~/External *\|/{next};"\
5864 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5865 " {if(hide[section]) next};"\
5866 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5867 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5868 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5869 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5870 " ' prfx=^$ac_symprfx"
5871 else
5872 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5875 # Check to see that the pipe works correctly.
5876 pipe_works=no
5878 rm -f conftest*
5879 cat > conftest.$ac_ext <<_LT_EOF
5880 #ifdef __cplusplus
5881 extern "C" {
5882 #endif
5883 char nm_test_var;
5884 void nm_test_func(void);
5885 void nm_test_func(void){}
5886 #ifdef __cplusplus
5888 #endif
5889 int main(){nm_test_var='a';nm_test_func();return(0);}
5890 _LT_EOF
5892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5893 (eval $ac_compile) 2>&5
5894 ac_status=$?
5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; }; then
5897 # Now try to grab the symbols.
5898 nlist=conftest.nm
5899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5900 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5901 ac_status=$?
5902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903 test $ac_status = 0; } && test -s "$nlist"; then
5904 # Try sorting and uniquifying the output.
5905 if sort "$nlist" | uniq > "$nlist"T; then
5906 mv -f "$nlist"T "$nlist"
5907 else
5908 rm -f "$nlist"T
5911 # Make sure that we snagged all the symbols we need.
5912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5914 cat <<_LT_EOF > conftest.$ac_ext
5915 #ifdef __cplusplus
5916 extern "C" {
5917 #endif
5919 _LT_EOF
5920 # Now generate the symbol file.
5921 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5923 cat <<_LT_EOF >> conftest.$ac_ext
5925 /* The mapping between symbol names and symbols. */
5926 const struct {
5927 const char *name;
5928 void *address;
5930 lt__PROGRAM__LTX_preloaded_symbols[] =
5932 { "@PROGRAM@", (void *) 0 },
5933 _LT_EOF
5934 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5935 cat <<\_LT_EOF >> conftest.$ac_ext
5936 {0, (void *) 0}
5939 /* This works around a problem in FreeBSD linker */
5940 #ifdef FREEBSD_WORKAROUND
5941 static const void *lt_preloaded_setup() {
5942 return lt__PROGRAM__LTX_preloaded_symbols;
5944 #endif
5946 #ifdef __cplusplus
5948 #endif
5949 _LT_EOF
5950 # Now try linking the two files.
5951 mv conftest.$ac_objext conftstm.$ac_objext
5952 lt_save_LIBS="$LIBS"
5953 lt_save_CFLAGS="$CFLAGS"
5954 LIBS="conftstm.$ac_objext"
5955 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5957 (eval $ac_link) 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5961 pipe_works=yes
5963 LIBS="$lt_save_LIBS"
5964 CFLAGS="$lt_save_CFLAGS"
5965 else
5966 echo "cannot find nm_test_func in $nlist" >&5
5968 else
5969 echo "cannot find nm_test_var in $nlist" >&5
5971 else
5972 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5974 else
5975 echo "$progname: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5978 rm -rf conftest* conftst*
5980 # Do not use the global_symbol_pipe unless it works.
5981 if test "$pipe_works" = yes; then
5982 break
5983 else
5984 lt_cv_sys_global_symbol_pipe=
5986 done
5990 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5991 lt_cv_sys_global_symbol_to_cdecl=
5993 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5995 $as_echo "failed" >&6; }
5996 else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5998 $as_echo "ok" >&6; }
6022 # Check whether --enable-libtool-lock was given.
6023 if test "${enable_libtool_lock+set}" = set; then :
6024 enableval=$enable_libtool_lock;
6027 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6029 # Some flags need to be propagated to the compiler or linker for good
6030 # libtool support.
6031 case $host in
6032 ia64-*-hpux*)
6033 # Find out which ABI we are using.
6034 echo 'int i;' > conftest.$ac_ext
6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }; then
6040 case `/usr/bin/file conftest.$ac_objext` in
6041 *ELF-32*)
6042 HPUX_IA64_MODE="32"
6044 *ELF-64*)
6045 HPUX_IA64_MODE="64"
6047 esac
6049 rm -rf conftest*
6051 *-*-irix6*)
6052 # Find out which ABI we are using.
6053 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6055 (eval $ac_compile) 2>&5
6056 ac_status=$?
6057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6058 test $ac_status = 0; }; then
6059 if test "$lt_cv_prog_gnu_ld" = yes; then
6060 case `/usr/bin/file conftest.$ac_objext` in
6061 *32-bit*)
6062 LD="${LD-ld} -melf32bsmip"
6064 *N32*)
6065 LD="${LD-ld} -melf32bmipn32"
6067 *64-bit*)
6068 LD="${LD-ld} -melf64bmip"
6070 esac
6071 else
6072 case `/usr/bin/file conftest.$ac_objext` in
6073 *32-bit*)
6074 LD="${LD-ld} -32"
6076 *N32*)
6077 LD="${LD-ld} -n32"
6079 *64-bit*)
6080 LD="${LD-ld} -64"
6082 esac
6085 rm -rf conftest*
6088 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6089 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6090 # Find out which ABI we are using.
6091 echo 'int i;' > conftest.$ac_ext
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6093 (eval $ac_compile) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }; then
6097 case `/usr/bin/file conftest.o` in
6098 *32-bit*)
6099 case $host in
6100 x86_64-*kfreebsd*-gnu)
6101 LD="${LD-ld} -m elf_i386_fbsd"
6103 x86_64-*linux*)
6104 case `/usr/bin/file conftest.o` in
6105 *x86-64*)
6106 LD="${LD-ld} -m elf32_x86_64"
6109 LD="${LD-ld} -m elf_i386"
6111 esac
6113 powerpc64le-*linux*)
6114 LD="${LD-ld} -m elf32lppclinux"
6116 powerpc64-*linux*)
6117 LD="${LD-ld} -m elf32ppclinux"
6119 s390x-*linux*)
6120 LD="${LD-ld} -m elf_s390"
6122 sparc64-*linux*)
6123 LD="${LD-ld} -m elf32_sparc"
6125 esac
6127 *64-bit*)
6128 case $host in
6129 x86_64-*kfreebsd*-gnu)
6130 LD="${LD-ld} -m elf_x86_64_fbsd"
6132 x86_64-*linux*)
6133 LD="${LD-ld} -m elf_x86_64"
6135 powerpcle-*linux*)
6136 LD="${LD-ld} -m elf64lppc"
6138 powerpc-*linux*)
6139 LD="${LD-ld} -m elf64ppc"
6141 s390*-*linux*|s390*-*tpf*)
6142 LD="${LD-ld} -m elf64_s390"
6144 sparc*-*linux*)
6145 LD="${LD-ld} -m elf64_sparc"
6147 esac
6149 esac
6151 rm -rf conftest*
6154 *-*-sco3.2v5*)
6155 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6156 SAVE_CFLAGS="$CFLAGS"
6157 CFLAGS="$CFLAGS -belf"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6159 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6160 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 ac_ext=c
6164 ac_cpp='$CPP $CPPFLAGS'
6165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6173 main ()
6177 return 0;
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 lt_cv_cc_needs_belf=yes
6182 else
6183 lt_cv_cc_needs_belf=no
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6195 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6196 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6197 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6198 CFLAGS="$SAVE_CFLAGS"
6201 sparc*-*solaris*)
6202 # Find out which ABI we are using.
6203 echo 'int i;' > conftest.$ac_ext
6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6205 (eval $ac_compile) 2>&5
6206 ac_status=$?
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; }; then
6209 case `/usr/bin/file conftest.o` in
6210 *64-bit*)
6211 case $lt_cv_prog_gnu_ld in
6212 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6214 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6215 LD="${LD-ld} -64"
6218 esac
6220 esac
6222 rm -rf conftest*
6224 esac
6226 need_locks="$enable_libtool_lock"
6229 case $host_os in
6230 rhapsody* | darwin*)
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if test -n "$DSYMUTIL"; then
6240 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6253 done
6254 done
6255 IFS=$as_save_IFS
6259 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6260 if test -n "$DSYMUTIL"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6262 $as_echo "$DSYMUTIL" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6270 if test -z "$ac_cv_prog_DSYMUTIL"; then
6271 ac_ct_DSYMUTIL=$DSYMUTIL
6272 # Extract the first word of "dsymutil", so it can be a program name with args.
6273 set dummy dsymutil; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$ac_ct_DSYMUTIL"; then
6280 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6300 if test -n "$ac_ct_DSYMUTIL"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6302 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6308 if test "x$ac_ct_DSYMUTIL" = x; then
6309 DSYMUTIL=":"
6310 else
6311 case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317 DSYMUTIL=$ac_ct_DSYMUTIL
6319 else
6320 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6323 if test -n "$ac_tool_prefix"; then
6324 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6325 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 if test -n "$NMEDIT"; then
6332 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6345 done
6346 done
6347 IFS=$as_save_IFS
6351 NMEDIT=$ac_cv_prog_NMEDIT
6352 if test -n "$NMEDIT"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6354 $as_echo "$NMEDIT" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6362 if test -z "$ac_cv_prog_NMEDIT"; then
6363 ac_ct_NMEDIT=$NMEDIT
6364 # Extract the first word of "nmedit", so it can be a program name with args.
6365 set dummy nmedit; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$ac_ct_NMEDIT"; then
6372 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6385 done
6386 done
6387 IFS=$as_save_IFS
6391 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6392 if test -n "$ac_ct_NMEDIT"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6394 $as_echo "$ac_ct_NMEDIT" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6400 if test "x$ac_ct_NMEDIT" = x; then
6401 NMEDIT=":"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409 NMEDIT=$ac_ct_NMEDIT
6411 else
6412 NMEDIT="$ac_cv_prog_NMEDIT"
6415 if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if test "${ac_cv_prog_LIPO+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 if test -n "$LIPO"; then
6424 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6437 done
6438 done
6439 IFS=$as_save_IFS
6443 LIPO=$ac_cv_prog_LIPO
6444 if test -n "$LIPO"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6446 $as_echo "$LIPO" >&6; }
6447 else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6454 if test -z "$ac_cv_prog_LIPO"; then
6455 ac_ct_LIPO=$LIPO
6456 # Extract the first word of "lipo", so it can be a program name with args.
6457 set dummy lipo; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$ac_ct_LIPO"; then
6464 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_ac_ct_LIPO="lipo"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6479 IFS=$as_save_IFS
6483 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6484 if test -n "$ac_ct_LIPO"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6486 $as_echo "$ac_ct_LIPO" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6492 if test "x$ac_ct_LIPO" = x; then
6493 LIPO=":"
6494 else
6495 case $cross_compiling:$ac_tool_warned in
6496 yes:)
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6500 esac
6501 LIPO=$ac_ct_LIPO
6503 else
6504 LIPO="$ac_cv_prog_LIPO"
6507 if test -n "$ac_tool_prefix"; then
6508 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6509 set dummy ${ac_tool_prefix}otool; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 if test -n "$OTOOL"; then
6516 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6517 else
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 for as_dir in $PATH
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6529 done
6530 done
6531 IFS=$as_save_IFS
6535 OTOOL=$ac_cv_prog_OTOOL
6536 if test -n "$OTOOL"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6538 $as_echo "$OTOOL" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6546 if test -z "$ac_cv_prog_OTOOL"; then
6547 ac_ct_OTOOL=$OTOOL
6548 # Extract the first word of "otool", so it can be a program name with args.
6549 set dummy otool; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$ac_ct_OTOOL"; then
6556 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_ac_ct_OTOOL="otool"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6571 IFS=$as_save_IFS
6575 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6576 if test -n "$ac_ct_OTOOL"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6578 $as_echo "$ac_ct_OTOOL" >&6; }
6579 else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6584 if test "x$ac_ct_OTOOL" = x; then
6585 OTOOL=":"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593 OTOOL=$ac_ct_OTOOL
6595 else
6596 OTOOL="$ac_cv_prog_OTOOL"
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 if test -n "$OTOOL64"; then
6608 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6621 done
6622 done
6623 IFS=$as_save_IFS
6627 OTOOL64=$ac_cv_prog_OTOOL64
6628 if test -n "$OTOOL64"; then
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6630 $as_echo "$OTOOL64" >&6; }
6631 else
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633 $as_echo "no" >&6; }
6638 if test -z "$ac_cv_prog_OTOOL64"; then
6639 ac_ct_OTOOL64=$OTOOL64
6640 # Extract the first word of "otool64", so it can be a program name with args.
6641 set dummy otool64; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 if test -n "$ac_ct_OTOOL64"; then
6648 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6653 IFS=$as_save_IFS
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_ac_ct_OTOOL64="otool64"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 break 2
6661 done
6662 done
6663 IFS=$as_save_IFS
6667 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6668 if test -n "$ac_ct_OTOOL64"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6670 $as_echo "$ac_ct_OTOOL64" >&6; }
6671 else
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6676 if test "x$ac_ct_OTOOL64" = x; then
6677 OTOOL64=":"
6678 else
6679 case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685 OTOOL64=$ac_ct_OTOOL64
6687 else
6688 OTOOL64="$ac_cv_prog_OTOOL64"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6718 $as_echo_n "checking for -single_module linker flag... " >&6; }
6719 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 lt_cv_apple_cc_single_mod=no
6723 if test -z "${LT_MULTI_MODULE}"; then
6724 # By default we will add the -single_module flag. You can override
6725 # by either setting the environment variable LT_MULTI_MODULE
6726 # non-empty at configure time, or by adding -multi_module to the
6727 # link flags.
6728 rm -rf libconftest.dylib*
6729 echo "int foo(void){return 1;}" > conftest.c
6730 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6731 -dynamiclib -Wl,-single_module conftest.c" >&5
6732 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6733 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6734 _lt_result=$?
6735 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6736 lt_cv_apple_cc_single_mod=yes
6737 else
6738 cat conftest.err >&5
6740 rm -rf libconftest.dylib*
6741 rm -f conftest.*
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6745 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6747 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6748 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 lt_cv_ld_exported_symbols_list=no
6752 save_LDFLAGS=$LDFLAGS
6753 echo "_main" > conftest.sym
6754 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6759 main ()
6763 return 0;
6765 _ACEOF
6766 if ac_fn_c_try_link "$LINENO"; then :
6767 lt_cv_ld_exported_symbols_list=yes
6768 else
6769 lt_cv_ld_exported_symbols_list=no
6771 rm -f core conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6773 LDFLAGS="$save_LDFLAGS"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6777 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6779 $as_echo_n "checking for -force_load linker flag... " >&6; }
6780 if test "${lt_cv_ld_force_load+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 lt_cv_ld_force_load=no
6784 cat > conftest.c << _LT_EOF
6785 int forced_loaded() { return 2;}
6786 _LT_EOF
6787 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6788 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6789 echo "$AR cru libconftest.a conftest.o" >&5
6790 $AR cru libconftest.a conftest.o 2>&5
6791 cat > conftest.c << _LT_EOF
6792 int main() { return 0;}
6793 _LT_EOF
6794 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6795 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6796 _lt_result=$?
6797 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6798 lt_cv_ld_force_load=yes
6799 else
6800 cat conftest.err >&5
6802 rm -f conftest.err libconftest.a conftest conftest.c
6803 rm -rf conftest.dSYM
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6807 $as_echo "$lt_cv_ld_force_load" >&6; }
6808 case $host_os in
6809 rhapsody* | darwin1.[012])
6810 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6811 darwin1.*)
6812 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6813 darwin*) # darwin 5.x on
6814 # if running on 10.5 or later, the deployment target defaults
6815 # to the OS version, if on x86, and 10.4, the deployment
6816 # target defaults to 10.4. Don't you love it?
6817 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6818 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6819 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6820 10.[012]*)
6821 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6822 10.*)
6823 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6824 esac
6826 esac
6827 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6828 _lt_dar_single_mod='$single_module'
6830 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6831 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6832 else
6833 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6835 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6836 _lt_dsymutil='~$DSYMUTIL $lib || :'
6837 else
6838 _lt_dsymutil=
6841 esac
6843 ac_ext=c
6844 ac_cpp='$CPP $CPPFLAGS'
6845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6849 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6850 # On Suns, sometimes $CPP names a directory.
6851 if test -n "$CPP" && test -d "$CPP"; then
6852 CPP=
6854 if test -z "$CPP"; then
6855 if test "${ac_cv_prog_CPP+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 # Double quotes because CPP needs to be expanded
6859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6861 ac_preproc_ok=false
6862 for ac_c_preproc_warn_flag in '' yes
6864 # Use a header file that comes with gcc, so configuring glibc
6865 # with a fresh cross-compiler works.
6866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867 # <limits.h> exists even on freestanding compilers.
6868 # On the NeXT, cc -E runs the code through the compiler's parser,
6869 # not just through cpp. "Syntax error" is here to catch this case.
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #ifdef __STDC__
6873 # include <limits.h>
6874 #else
6875 # include <assert.h>
6876 #endif
6877 Syntax error
6878 _ACEOF
6879 if ac_fn_c_try_cpp "$LINENO"; then :
6881 else
6882 # Broken: fails on valid input.
6883 continue
6885 rm -f conftest.err conftest.$ac_ext
6887 # OK, works on sane cases. Now check whether nonexistent headers
6888 # can be detected and how.
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 #include <ac_nonexistent.h>
6892 _ACEOF
6893 if ac_fn_c_try_cpp "$LINENO"; then :
6894 # Broken: success on invalid input.
6895 continue
6896 else
6897 # Passes both tests.
6898 ac_preproc_ok=:
6899 break
6901 rm -f conftest.err conftest.$ac_ext
6903 done
6904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6905 rm -f conftest.err conftest.$ac_ext
6906 if $ac_preproc_ok; then :
6907 break
6910 done
6911 ac_cv_prog_CPP=$CPP
6914 CPP=$ac_cv_prog_CPP
6915 else
6916 ac_cv_prog_CPP=$CPP
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6919 $as_echo "$CPP" >&6; }
6920 ac_preproc_ok=false
6921 for ac_c_preproc_warn_flag in '' yes
6923 # Use a header file that comes with gcc, so configuring glibc
6924 # with a fresh cross-compiler works.
6925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6926 # <limits.h> exists even on freestanding compilers.
6927 # On the NeXT, cc -E runs the code through the compiler's parser,
6928 # not just through cpp. "Syntax error" is here to catch this case.
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 #ifdef __STDC__
6932 # include <limits.h>
6933 #else
6934 # include <assert.h>
6935 #endif
6936 Syntax error
6937 _ACEOF
6938 if ac_fn_c_try_cpp "$LINENO"; then :
6940 else
6941 # Broken: fails on valid input.
6942 continue
6944 rm -f conftest.err conftest.$ac_ext
6946 # OK, works on sane cases. Now check whether nonexistent headers
6947 # can be detected and how.
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 #include <ac_nonexistent.h>
6951 _ACEOF
6952 if ac_fn_c_try_cpp "$LINENO"; then :
6953 # Broken: success on invalid input.
6954 continue
6955 else
6956 # Passes both tests.
6957 ac_preproc_ok=:
6958 break
6960 rm -f conftest.err conftest.$ac_ext
6962 done
6963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6964 rm -f conftest.err conftest.$ac_ext
6965 if $ac_preproc_ok; then :
6967 else
6968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6970 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6971 See \`config.log' for more details." "$LINENO" 5; }
6974 ac_ext=c
6975 ac_cpp='$CPP $CPPFLAGS'
6976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6982 $as_echo_n "checking for ANSI C header files... " >&6; }
6983 if test "${ac_cv_header_stdc+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 #include <stdlib.h>
6989 #include <stdarg.h>
6990 #include <string.h>
6991 #include <float.h>
6994 main ()
6998 return 0;
7000 _ACEOF
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002 ac_cv_header_stdc=yes
7003 else
7004 ac_cv_header_stdc=no
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 if test $ac_cv_header_stdc = yes; then
7009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012 #include <string.h>
7014 _ACEOF
7015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016 $EGREP "memchr" >/dev/null 2>&1; then :
7018 else
7019 ac_cv_header_stdc=no
7021 rm -f conftest*
7025 if test $ac_cv_header_stdc = yes; then
7026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 #include <stdlib.h>
7031 _ACEOF
7032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7033 $EGREP "free" >/dev/null 2>&1; then :
7035 else
7036 ac_cv_header_stdc=no
7038 rm -f conftest*
7042 if test $ac_cv_header_stdc = yes; then
7043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7044 if test "$cross_compiling" = yes; then :
7046 else
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #include <ctype.h>
7050 #include <stdlib.h>
7051 #if ((' ' & 0x0FF) == 0x020)
7052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7054 #else
7055 # define ISLOWER(c) \
7056 (('a' <= (c) && (c) <= 'i') \
7057 || ('j' <= (c) && (c) <= 'r') \
7058 || ('s' <= (c) && (c) <= 'z'))
7059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7060 #endif
7062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7064 main ()
7066 int i;
7067 for (i = 0; i < 256; i++)
7068 if (XOR (islower (i), ISLOWER (i))
7069 || toupper (i) != TOUPPER (i))
7070 return 2;
7071 return 0;
7073 _ACEOF
7074 if ac_fn_c_try_run "$LINENO"; then :
7076 else
7077 ac_cv_header_stdc=no
7079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7080 conftest.$ac_objext conftest.beam conftest.$ac_ext
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7086 $as_echo "$ac_cv_header_stdc" >&6; }
7087 if test $ac_cv_header_stdc = yes; then
7089 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7093 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7095 inttypes.h stdint.h unistd.h
7096 do :
7097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7098 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7100 eval as_val=\$$as_ac_Header
7101 if test "x$as_val" = x""yes; then :
7102 cat >>confdefs.h <<_ACEOF
7103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7104 _ACEOF
7108 done
7111 for ac_header in dlfcn.h
7112 do :
7113 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7115 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7116 cat >>confdefs.h <<_ACEOF
7117 #define HAVE_DLFCN_H 1
7118 _ACEOF
7122 done
7128 # Set options
7132 enable_dlopen=no
7135 enable_win32_dll=no
7138 # Check whether --enable-shared was given.
7139 if test "${enable_shared+set}" = set; then :
7140 enableval=$enable_shared; p=${PACKAGE-default}
7141 case $enableval in
7142 yes) enable_shared=yes ;;
7143 no) enable_shared=no ;;
7145 enable_shared=no
7146 # Look at the argument we got. We use all the common list separators.
7147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7148 for pkg in $enableval; do
7149 IFS="$lt_save_ifs"
7150 if test "X$pkg" = "X$p"; then
7151 enable_shared=yes
7153 done
7154 IFS="$lt_save_ifs"
7156 esac
7157 else
7158 enable_shared=yes
7169 # Check whether --enable-static was given.
7170 if test "${enable_static+set}" = set; then :
7171 enableval=$enable_static; p=${PACKAGE-default}
7172 case $enableval in
7173 yes) enable_static=yes ;;
7174 no) enable_static=no ;;
7176 enable_static=no
7177 # Look at the argument we got. We use all the common list separators.
7178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7179 for pkg in $enableval; do
7180 IFS="$lt_save_ifs"
7181 if test "X$pkg" = "X$p"; then
7182 enable_static=yes
7184 done
7185 IFS="$lt_save_ifs"
7187 esac
7188 else
7189 enable_static=yes
7201 # Check whether --with-pic was given.
7202 if test "${with_pic+set}" = set; then :
7203 withval=$with_pic; pic_mode="$withval"
7204 else
7205 pic_mode=default
7209 test -z "$pic_mode" && pic_mode=default
7217 # Check whether --enable-fast-install was given.
7218 if test "${enable_fast_install+set}" = set; then :
7219 enableval=$enable_fast_install; p=${PACKAGE-default}
7220 case $enableval in
7221 yes) enable_fast_install=yes ;;
7222 no) enable_fast_install=no ;;
7224 enable_fast_install=no
7225 # Look at the argument we got. We use all the common list separators.
7226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7227 for pkg in $enableval; do
7228 IFS="$lt_save_ifs"
7229 if test "X$pkg" = "X$p"; then
7230 enable_fast_install=yes
7232 done
7233 IFS="$lt_save_ifs"
7235 esac
7236 else
7237 enable_fast_install=yes
7250 # This can be used to rebuild libtool when needed
7251 LIBTOOL_DEPS="$ltmain"
7253 # Always use our own libtool.
7254 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7281 test -z "$LN_S" && LN_S="ln -s"
7296 if test -n "${ZSH_VERSION+set}" ; then
7297 setopt NO_GLOB_SUBST
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7301 $as_echo_n "checking for objdir... " >&6; }
7302 if test "${lt_cv_objdir+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 rm -f .libs 2>/dev/null
7306 mkdir .libs 2>/dev/null
7307 if test -d .libs; then
7308 lt_cv_objdir=.libs
7309 else
7310 # MS-DOS does not allow filenames that begin with a dot.
7311 lt_cv_objdir=_libs
7313 rmdir .libs 2>/dev/null
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7316 $as_echo "$lt_cv_objdir" >&6; }
7317 objdir=$lt_cv_objdir
7323 cat >>confdefs.h <<_ACEOF
7324 #define LT_OBJDIR "$lt_cv_objdir/"
7325 _ACEOF
7330 case $host_os in
7331 aix3*)
7332 # AIX sometimes has problems with the GCC collect2 program. For some
7333 # reason, if we set the COLLECT_NAMES environment variable, the problems
7334 # vanish in a puff of smoke.
7335 if test "X${COLLECT_NAMES+set}" != Xset; then
7336 COLLECT_NAMES=
7337 export COLLECT_NAMES
7340 esac
7342 # Global variables:
7343 ofile=libtool
7344 can_build_shared=yes
7346 # All known linkers require a `.a' archive for static linking (except MSVC,
7347 # which needs '.lib').
7348 libext=a
7350 with_gnu_ld="$lt_cv_prog_gnu_ld"
7352 old_CC="$CC"
7353 old_CFLAGS="$CFLAGS"
7355 # Set sane defaults for various variables
7356 test -z "$CC" && CC=cc
7357 test -z "$LTCC" && LTCC=$CC
7358 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7359 test -z "$LD" && LD=ld
7360 test -z "$ac_objext" && ac_objext=o
7362 for cc_temp in $compiler""; do
7363 case $cc_temp in
7364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7366 \-*) ;;
7367 *) break;;
7368 esac
7369 done
7370 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7373 # Only perform the check for file, if the check method requires it
7374 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7375 case $deplibs_check_method in
7376 file_magic*)
7377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7379 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7380 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 case $MAGIC_CMD in
7384 [\\/*] | ?:[\\/]*)
7385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7388 lt_save_MAGIC_CMD="$MAGIC_CMD"
7389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7391 for ac_dir in $ac_dummy; do
7392 IFS="$lt_save_ifs"
7393 test -z "$ac_dir" && ac_dir=.
7394 if test -f $ac_dir/${ac_tool_prefix}file; then
7395 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7396 if test -n "$file_magic_test_file"; then
7397 case $deplibs_check_method in
7398 "file_magic "*)
7399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7402 $EGREP "$file_magic_regex" > /dev/null; then
7404 else
7405 cat <<_LT_EOF 1>&2
7407 *** Warning: the command libtool uses to detect shared libraries,
7408 *** $file_magic_cmd, produces output that libtool cannot recognize.
7409 *** The result is that libtool may fail to recognize shared libraries
7410 *** as such. This will affect the creation of libtool libraries that
7411 *** depend on shared libraries, but programs linked with such libtool
7412 *** libraries will work regardless of this problem. Nevertheless, you
7413 *** may want to report the problem to your system manager and/or to
7414 *** bug-libtool@gnu.org
7416 _LT_EOF
7417 fi ;;
7418 esac
7420 break
7422 done
7423 IFS="$lt_save_ifs"
7424 MAGIC_CMD="$lt_save_MAGIC_CMD"
7426 esac
7429 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7430 if test -n "$MAGIC_CMD"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7432 $as_echo "$MAGIC_CMD" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7442 if test -z "$lt_cv_path_MAGIC_CMD"; then
7443 if test -n "$ac_tool_prefix"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7445 $as_echo_n "checking for file... " >&6; }
7446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 case $MAGIC_CMD in
7450 [\\/*] | ?:[\\/]*)
7451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7454 lt_save_MAGIC_CMD="$MAGIC_CMD"
7455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457 for ac_dir in $ac_dummy; do
7458 IFS="$lt_save_ifs"
7459 test -z "$ac_dir" && ac_dir=.
7460 if test -f $ac_dir/file; then
7461 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7462 if test -n "$file_magic_test_file"; then
7463 case $deplibs_check_method in
7464 "file_magic "*)
7465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468 $EGREP "$file_magic_regex" > /dev/null; then
7470 else
7471 cat <<_LT_EOF 1>&2
7473 *** Warning: the command libtool uses to detect shared libraries,
7474 *** $file_magic_cmd, produces output that libtool cannot recognize.
7475 *** The result is that libtool may fail to recognize shared libraries
7476 *** as such. This will affect the creation of libtool libraries that
7477 *** depend on shared libraries, but programs linked with such libtool
7478 *** libraries will work regardless of this problem. Nevertheless, you
7479 *** may want to report the problem to your system manager and/or to
7480 *** bug-libtool@gnu.org
7482 _LT_EOF
7483 fi ;;
7484 esac
7486 break
7488 done
7489 IFS="$lt_save_ifs"
7490 MAGIC_CMD="$lt_save_MAGIC_CMD"
7492 esac
7495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496 if test -n "$MAGIC_CMD"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7498 $as_echo "$MAGIC_CMD" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 else
7506 MAGIC_CMD=:
7512 esac
7514 # Use C for the default configuration in the libtool script
7516 lt_save_CC="$CC"
7517 ac_ext=c
7518 ac_cpp='$CPP $CPPFLAGS'
7519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 # Source file extension for C test sources.
7525 ac_ext=c
7527 # Object file extension for compiled C test sources.
7528 objext=o
7529 objext=$objext
7531 # Code to be used in simple compile tests
7532 lt_simple_compile_test_code="int some_variable = 0;"
7534 # Code to be used in simple link tests
7535 lt_simple_link_test_code='int main(){return(0);}'
7543 # If no C compiler was specified, use CC.
7544 LTCC=${LTCC-"$CC"}
7546 # If no C compiler flags were specified, use CFLAGS.
7547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7549 # Allow CC to be a program name with arguments.
7550 compiler=$CC
7552 # Save the default compiler, since it gets overwritten when the other
7553 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7554 compiler_DEFAULT=$CC
7556 # save warnings/boilerplate of simple test code
7557 ac_outfile=conftest.$ac_objext
7558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7560 _lt_compiler_boilerplate=`cat conftest.err`
7561 $RM conftest*
7563 ac_outfile=conftest.$ac_objext
7564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7566 _lt_linker_boilerplate=`cat conftest.err`
7567 $RM -r conftest*
7570 ## CAVEAT EMPTOR:
7571 ## There is no encapsulation within the following macros, do not change
7572 ## the running order or otherwise move them around unless you know exactly
7573 ## what you are doing...
7574 if test -n "$compiler"; then
7576 lt_prog_compiler_no_builtin_flag=
7578 if test "$GCC" = yes; then
7579 case $cc_basename in
7580 nvcc*)
7581 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7583 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7584 esac
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7587 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7588 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 lt_cv_prog_compiler_rtti_exceptions=no
7592 ac_outfile=conftest.$ac_objext
7593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7594 lt_compiler_flag="-fno-rtti -fno-exceptions"
7595 # Insert the option either (1) after the last *FLAGS variable, or
7596 # (2) before a word containing "conftest.", or (3) at the end.
7597 # Note that $ac_compile itself does not contain backslashes and begins
7598 # with a dollar sign (not a hyphen), so the echo should work correctly.
7599 # The option is referenced via a variable to avoid confusing sed.
7600 lt_compile=`echo "$ac_compile" | $SED \
7601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7603 -e 's:$: $lt_compiler_flag:'`
7604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7605 (eval "$lt_compile" 2>conftest.err)
7606 ac_status=$?
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 if (exit $ac_status) && test -s "$ac_outfile"; then
7610 # The compiler can only warn and ignore the option if not recognized
7611 # So say no if there are warnings other than the usual output.
7612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7615 lt_cv_prog_compiler_rtti_exceptions=yes
7618 $RM conftest*
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7622 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7624 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7625 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7626 else
7637 lt_prog_compiler_wl=
7638 lt_prog_compiler_pic=
7639 lt_prog_compiler_static=
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7642 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7644 if test "$GCC" = yes; then
7645 lt_prog_compiler_wl='-Wl,'
7646 lt_prog_compiler_static='-static'
7648 case $host_os in
7649 aix*)
7650 # All AIX code is PIC.
7651 if test "$host_cpu" = ia64; then
7652 # AIX 5 now supports IA64 processor
7653 lt_prog_compiler_static='-Bstatic'
7655 lt_prog_compiler_pic='-fPIC'
7658 amigaos*)
7659 case $host_cpu in
7660 powerpc)
7661 # see comment about AmigaOS4 .so support
7662 lt_prog_compiler_pic='-fPIC'
7664 m68k)
7665 # FIXME: we need at least 68020 code to build shared libraries, but
7666 # adding the `-m68020' flag to GCC prevents building anything better,
7667 # like `-m68040'.
7668 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7670 esac
7673 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7674 # PIC is the default for these OSes.
7677 mingw* | cygwin* | pw32* | os2* | cegcc*)
7678 # This hack is so that the source file can tell whether it is being
7679 # built for inclusion in a dll (and should export symbols for example).
7680 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7681 # (--disable-auto-import) libraries
7682 lt_prog_compiler_pic='-DDLL_EXPORT'
7685 darwin* | rhapsody*)
7686 # PIC is the default on this platform
7687 # Common symbols not allowed in MH_DYLIB files
7688 lt_prog_compiler_pic='-fno-common'
7691 haiku*)
7692 # PIC is the default for Haiku.
7693 # The "-static" flag exists, but is broken.
7694 lt_prog_compiler_static=
7697 hpux*)
7698 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7699 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7700 # sets the default TLS model and affects inlining.
7701 case $host_cpu in
7702 hppa*64*)
7703 # +Z the default
7706 lt_prog_compiler_pic='-fPIC'
7708 esac
7711 interix[3-9]*)
7712 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7713 # Instead, we relocate shared libraries at runtime.
7716 msdosdjgpp*)
7717 # Just because we use GCC doesn't mean we suddenly get shared libraries
7718 # on systems that don't support them.
7719 lt_prog_compiler_can_build_shared=no
7720 enable_shared=no
7723 *nto* | *qnx*)
7724 # QNX uses GNU C++, but need to define -shared option too, otherwise
7725 # it will coredump.
7726 lt_prog_compiler_pic='-fPIC -shared'
7729 sysv4*MP*)
7730 if test -d /usr/nec; then
7731 lt_prog_compiler_pic=-Kconform_pic
7736 lt_prog_compiler_pic='-fPIC'
7738 esac
7740 case $cc_basename in
7741 nvcc*) # Cuda Compiler Driver 2.2
7742 lt_prog_compiler_wl='-Xlinker '
7743 lt_prog_compiler_pic='-Xcompiler -fPIC'
7745 esac
7746 else
7747 # PORTME Check for flag to pass linker flags through the system compiler.
7748 case $host_os in
7749 aix*)
7750 lt_prog_compiler_wl='-Wl,'
7751 if test "$host_cpu" = ia64; then
7752 # AIX 5 now supports IA64 processor
7753 lt_prog_compiler_static='-Bstatic'
7754 else
7755 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7759 mingw* | cygwin* | pw32* | os2* | cegcc*)
7760 # This hack is so that the source file can tell whether it is being
7761 # built for inclusion in a dll (and should export symbols for example).
7762 lt_prog_compiler_pic='-DDLL_EXPORT'
7765 hpux9* | hpux10* | hpux11*)
7766 lt_prog_compiler_wl='-Wl,'
7767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7768 # not for PA HP-UX.
7769 case $host_cpu in
7770 hppa*64*|ia64*)
7771 # +Z the default
7774 lt_prog_compiler_pic='+Z'
7776 esac
7777 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7778 lt_prog_compiler_static='${wl}-a ${wl}archive'
7781 irix5* | irix6* | nonstopux*)
7782 lt_prog_compiler_wl='-Wl,'
7783 # PIC (with -KPIC) is the default.
7784 lt_prog_compiler_static='-non_shared'
7787 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7788 case $cc_basename in
7789 # old Intel for x86_64 which still supported -KPIC.
7790 ecc*)
7791 lt_prog_compiler_wl='-Wl,'
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-static'
7795 # icc used to be incompatible with GCC.
7796 # ICC 10 doesn't accept -KPIC any more.
7797 icc* | ifort*)
7798 lt_prog_compiler_wl='-Wl,'
7799 lt_prog_compiler_pic='-fPIC'
7800 lt_prog_compiler_static='-static'
7802 # Lahey Fortran 8.1.
7803 lf95*)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='--shared'
7806 lt_prog_compiler_static='--static'
7808 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7809 # Portland Group compilers (*not* the Pentium gcc compiler,
7810 # which looks to be a dead project)
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-fpic'
7813 lt_prog_compiler_static='-Bstatic'
7815 ccc*)
7816 lt_prog_compiler_wl='-Wl,'
7817 # All Alpha code is PIC.
7818 lt_prog_compiler_static='-non_shared'
7820 xl* | bgxl* | bgf* | mpixl*)
7821 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7822 lt_prog_compiler_wl='-Wl,'
7823 lt_prog_compiler_pic='-qpic'
7824 lt_prog_compiler_static='-qstaticlink'
7827 case `$CC -V 2>&1 | sed 5q` in
7828 *Sun\ F* | *Sun*Fortran*)
7829 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7830 lt_prog_compiler_pic='-KPIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 lt_prog_compiler_wl=''
7834 *Sun\ C*)
7835 # Sun C 5.9
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 lt_prog_compiler_wl='-Wl,'
7840 esac
7842 esac
7845 newsos6)
7846 lt_prog_compiler_pic='-KPIC'
7847 lt_prog_compiler_static='-Bstatic'
7850 *nto* | *qnx*)
7851 # QNX uses GNU C++, but need to define -shared option too, otherwise
7852 # it will coredump.
7853 lt_prog_compiler_pic='-fPIC -shared'
7856 osf3* | osf4* | osf5*)
7857 lt_prog_compiler_wl='-Wl,'
7858 # All OSF/1 code is PIC.
7859 lt_prog_compiler_static='-non_shared'
7862 rdos*)
7863 lt_prog_compiler_static='-non_shared'
7866 solaris*)
7867 lt_prog_compiler_pic='-KPIC'
7868 lt_prog_compiler_static='-Bstatic'
7869 case $cc_basename in
7870 f77* | f90* | f95*)
7871 lt_prog_compiler_wl='-Qoption ld ';;
7873 lt_prog_compiler_wl='-Wl,';;
7874 esac
7877 sunos4*)
7878 lt_prog_compiler_wl='-Qoption ld '
7879 lt_prog_compiler_pic='-PIC'
7880 lt_prog_compiler_static='-Bstatic'
7883 sysv4 | sysv4.2uw2* | sysv4.3*)
7884 lt_prog_compiler_wl='-Wl,'
7885 lt_prog_compiler_pic='-KPIC'
7886 lt_prog_compiler_static='-Bstatic'
7889 sysv4*MP*)
7890 if test -d /usr/nec ;then
7891 lt_prog_compiler_pic='-Kconform_pic'
7892 lt_prog_compiler_static='-Bstatic'
7896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7897 lt_prog_compiler_wl='-Wl,'
7898 lt_prog_compiler_pic='-KPIC'
7899 lt_prog_compiler_static='-Bstatic'
7902 unicos*)
7903 lt_prog_compiler_wl='-Wl,'
7904 lt_prog_compiler_can_build_shared=no
7907 uts4*)
7908 lt_prog_compiler_pic='-pic'
7909 lt_prog_compiler_static='-Bstatic'
7913 lt_prog_compiler_can_build_shared=no
7915 esac
7918 case $host_os in
7919 # For platforms which do not support PIC, -DPIC is meaningless:
7920 *djgpp*)
7921 lt_prog_compiler_pic=
7924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7926 esac
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7928 $as_echo "$lt_prog_compiler_pic" >&6; }
7936 # Check to make sure the PIC flag actually works.
7938 if test -n "$lt_prog_compiler_pic"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7940 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7941 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 lt_cv_prog_compiler_pic_works=no
7945 ac_outfile=conftest.$ac_objext
7946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7947 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7948 # Insert the option either (1) after the last *FLAGS variable, or
7949 # (2) before a word containing "conftest.", or (3) at the end.
7950 # Note that $ac_compile itself does not contain backslashes and begins
7951 # with a dollar sign (not a hyphen), so the echo should work correctly.
7952 # The option is referenced via a variable to avoid confusing sed.
7953 lt_compile=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>conftest.err)
7959 ac_status=$?
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s "$ac_outfile"; then
7963 # The compiler can only warn and ignore the option if not recognized
7964 # So say no if there are warnings other than the usual output.
7965 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7968 lt_cv_prog_compiler_pic_works=yes
7971 $RM conftest*
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7975 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7977 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7978 case $lt_prog_compiler_pic in
7979 "" | " "*) ;;
7980 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7981 esac
7982 else
7983 lt_prog_compiler_pic=
7984 lt_prog_compiler_can_build_shared=no
7995 # Check to make sure the static flag actually works.
7997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8000 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8002 else
8003 lt_cv_prog_compiler_static_works=no
8004 save_LDFLAGS="$LDFLAGS"
8005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8008 # The linker can only warn and ignore the option if not recognized
8009 # So say no if there are warnings
8010 if test -s conftest.err; then
8011 # Append any errors to the config.log.
8012 cat conftest.err 1>&5
8013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8015 if diff conftest.exp conftest.er2 >/dev/null; then
8016 lt_cv_prog_compiler_static_works=yes
8018 else
8019 lt_cv_prog_compiler_static_works=yes
8022 $RM -r conftest*
8023 LDFLAGS="$save_LDFLAGS"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8029 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8031 else
8032 lt_prog_compiler_static=
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 lt_cv_prog_compiler_c_o=no
8047 $RM -r conftest 2>/dev/null
8048 mkdir conftest
8049 cd conftest
8050 mkdir out
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8053 lt_compiler_flag="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out/conftest.err)
8064 ac_status=$?
8065 cat out/conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068 then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_c_o=yes
8077 chmod u+w . 2>&5
8078 $RM conftest*
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082 $RM out/* && rmdir out
8083 cd ..
8084 $RM -r conftest
8085 $RM conftest*
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8098 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 lt_cv_prog_compiler_c_o=no
8102 $RM -r conftest 2>/dev/null
8103 mkdir conftest
8104 cd conftest
8105 mkdir out
8106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8108 lt_compiler_flag="-o out/conftest2.$ac_objext"
8109 # Insert the option either (1) after the last *FLAGS variable, or
8110 # (2) before a word containing "conftest.", or (3) at the end.
8111 # Note that $ac_compile itself does not contain backslashes and begins
8112 # with a dollar sign (not a hyphen), so the echo should work correctly.
8113 lt_compile=`echo "$ac_compile" | $SED \
8114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8116 -e 's:$: $lt_compiler_flag:'`
8117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8118 (eval "$lt_compile" 2>out/conftest.err)
8119 ac_status=$?
8120 cat out/conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8123 then
8124 # The compiler can only warn and ignore the option if not recognized
8125 # So say no if there are warnings
8126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8129 lt_cv_prog_compiler_c_o=yes
8132 chmod u+w . 2>&5
8133 $RM conftest*
8134 # SGI C++ compiler will create directory out/ii_files/ for
8135 # template instantiation
8136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8137 $RM out/* && rmdir out
8138 cd ..
8139 $RM -r conftest
8140 $RM conftest*
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8149 hard_links="nottested"
8150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8151 # do not overwrite the value of need_locks provided by the user
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8153 $as_echo_n "checking if we can lock with hard links... " >&6; }
8154 hard_links=yes
8155 $RM conftest*
8156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8157 touch conftest.a
8158 ln conftest.a conftest.b 2>&5 || hard_links=no
8159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8161 $as_echo "$hard_links" >&6; }
8162 if test "$hard_links" = no; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8164 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8165 need_locks=warn
8167 else
8168 need_locks=no
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8179 runpath_var=
8180 allow_undefined_flag=
8181 always_export_symbols=no
8182 archive_cmds=
8183 archive_expsym_cmds=
8184 compiler_needs_object=no
8185 enable_shared_with_static_runtimes=no
8186 export_dynamic_flag_spec=
8187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188 hardcode_automatic=no
8189 hardcode_direct=no
8190 hardcode_direct_absolute=no
8191 hardcode_libdir_flag_spec=
8192 hardcode_libdir_flag_spec_ld=
8193 hardcode_libdir_separator=
8194 hardcode_minus_L=no
8195 hardcode_shlibpath_var=unsupported
8196 inherit_rpath=no
8197 link_all_deplibs=unknown
8198 module_cmds=
8199 module_expsym_cmds=
8200 old_archive_from_new_cmds=
8201 old_archive_from_expsyms_cmds=
8202 thread_safe_flag_spec=
8203 whole_archive_flag_spec=
8204 # include_expsyms should be a list of space-separated symbols to be *always*
8205 # included in the symbol list
8206 include_expsyms=
8207 # exclude_expsyms can be an extended regexp of symbols to exclude
8208 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8209 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8210 # as well as any symbol that contains `d'.
8211 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8212 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8213 # platforms (ab)use it in PIC code, but their linkers get confused if
8214 # the symbol is explicitly referenced. Since portable code cannot
8215 # rely on this symbol name, it's probably fine to never include it in
8216 # preloaded symbol tables.
8217 # Exclude shared library initialization/finalization symbols.
8218 extract_expsyms_cmds=
8220 case $host_os in
8221 cygwin* | mingw* | pw32* | cegcc*)
8222 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8223 # When not using gcc, we currently assume that we are using
8224 # Microsoft Visual C++.
8225 if test "$GCC" != yes; then
8226 with_gnu_ld=no
8229 interix*)
8230 # we just hope/assume this is gcc and not c89 (= MSVC++)
8231 with_gnu_ld=yes
8233 openbsd*)
8234 with_gnu_ld=no
8236 esac
8238 ld_shlibs=yes
8240 # On some targets, GNU ld is compatible enough with the native linker
8241 # that we're better off using the native interface for both.
8242 lt_use_gnu_ld_interface=no
8243 if test "$with_gnu_ld" = yes; then
8244 case $host_os in
8245 aix*)
8246 # The AIX port of GNU ld has always aspired to compatibility
8247 # with the native linker. However, as the warning in the GNU ld
8248 # block says, versions before 2.19.5* couldn't really create working
8249 # shared libraries, regardless of the interface used.
8250 case `$LD -v 2>&1` in
8251 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8252 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8253 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8255 lt_use_gnu_ld_interface=yes
8257 esac
8260 lt_use_gnu_ld_interface=yes
8262 esac
8265 if test "$lt_use_gnu_ld_interface" = yes; then
8266 # If archive_cmds runs LD, not CC, wlarc should be empty
8267 wlarc='${wl}'
8269 # Set some defaults for GNU ld with shared library support. These
8270 # are reset later if shared libraries are not supported. Putting them
8271 # here allows them to be overridden if necessary.
8272 runpath_var=LD_RUN_PATH
8273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8274 export_dynamic_flag_spec='${wl}--export-dynamic'
8275 # ancient GNU ld didn't support --whole-archive et. al.
8276 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8277 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8278 else
8279 whole_archive_flag_spec=
8281 supports_anon_versioning=no
8282 case `$LD -v 2>&1` in
8283 *GNU\ gold*) supports_anon_versioning=yes ;;
8284 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8285 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8286 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8287 *\ 2.11.*) ;; # other 2.11 versions
8288 *) supports_anon_versioning=yes ;;
8289 esac
8291 # See if GNU ld supports shared libraries.
8292 case $host_os in
8293 aix[3-9]*)
8294 # On AIX/PPC, the GNU linker is very broken
8295 if test "$host_cpu" != ia64; then
8296 ld_shlibs=no
8297 cat <<_LT_EOF 1>&2
8299 *** Warning: the GNU linker, at least up to release 2.19, is reported
8300 *** to be unable to reliably create shared libraries on AIX.
8301 *** Therefore, libtool is disabling shared libraries support. If you
8302 *** really care for shared libraries, you may want to install binutils
8303 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8304 *** You will then need to restart the configuration process.
8306 _LT_EOF
8310 amigaos*)
8311 case $host_cpu in
8312 powerpc)
8313 # see comment about AmigaOS4 .so support
8314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315 archive_expsym_cmds=''
8317 m68k)
8318 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)'
8319 hardcode_libdir_flag_spec='-L$libdir'
8320 hardcode_minus_L=yes
8322 esac
8325 beos*)
8326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8327 allow_undefined_flag=unsupported
8328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8329 # support --undefined. This deserves some investigation. FIXME
8330 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8331 else
8332 ld_shlibs=no
8336 cygwin* | mingw* | pw32* | cegcc*)
8337 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8338 # as there is no search path for DLLs.
8339 hardcode_libdir_flag_spec='-L$libdir'
8340 export_dynamic_flag_spec='${wl}--export-all-symbols'
8341 allow_undefined_flag=unsupported
8342 always_export_symbols=no
8343 enable_shared_with_static_runtimes=yes
8344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8346 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8348 # If the export-symbols file already is a .def file (1st line
8349 # is EXPORTS), use it as is; otherwise, prepend...
8350 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8351 cp $export_symbols $output_objdir/$soname.def;
8352 else
8353 echo EXPORTS > $output_objdir/$soname.def;
8354 cat $export_symbols >> $output_objdir/$soname.def;
8356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8357 else
8358 ld_shlibs=no
8362 haiku*)
8363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 link_all_deplibs=yes
8367 interix[3-9]*)
8368 hardcode_direct=no
8369 hardcode_shlibpath_var=no
8370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8371 export_dynamic_flag_spec='${wl}-E'
8372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8373 # Instead, shared libraries are loaded at an image base (0x10000000 by
8374 # default) and relocated if they conflict, which is a slow very memory
8375 # consuming and fragmenting process. To avoid this, we pick a random,
8376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8379 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'
8382 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8383 tmp_diet=no
8384 if test "$host_os" = linux-dietlibc; then
8385 case $cc_basename in
8386 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8387 esac
8389 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8390 && test "$tmp_diet" = no
8391 then
8392 tmp_addflag=
8393 tmp_sharedflag='-shared'
8394 case $cc_basename,$host_cpu in
8395 pgcc*) # Portland Group C compiler
8396 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'
8397 tmp_addflag=' $pic_flag'
8399 pgf77* | pgf90* | pgf95* | pgfortran*)
8400 # Portland Group f77 and f90 compilers
8401 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'
8402 tmp_addflag=' $pic_flag -Mnomain' ;;
8403 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8404 tmp_addflag=' -i_dynamic' ;;
8405 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8406 tmp_addflag=' -i_dynamic -nofor_main' ;;
8407 ifc* | ifort*) # Intel Fortran compiler
8408 tmp_addflag=' -nofor_main' ;;
8409 lf95*) # Lahey Fortran 8.1
8410 whole_archive_flag_spec=
8411 tmp_sharedflag='--shared' ;;
8412 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8413 tmp_sharedflag='-qmkshrobj'
8414 tmp_addflag= ;;
8415 nvcc*) # Cuda Compiler Driver 2.2
8416 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'
8417 compiler_needs_object=yes
8419 esac
8420 case `$CC -V 2>&1 | sed 5q` in
8421 *Sun\ C*) # Sun C 5.9
8422 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'
8423 compiler_needs_object=yes
8424 tmp_sharedflag='-G' ;;
8425 *Sun\ F*) # Sun Fortran 8.3
8426 tmp_sharedflag='-G' ;;
8427 esac
8428 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430 if test "x$supports_anon_versioning" = xyes; then
8431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8433 echo "local: *; };" >> $output_objdir/$libname.ver~
8434 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8437 case $cc_basename in
8438 xlf* | bgf* | bgxlf* | mpixlf*)
8439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8440 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8441 hardcode_libdir_flag_spec=
8442 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8443 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8444 if test "x$supports_anon_versioning" = xyes; then
8445 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8446 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8447 echo "local: *; };" >> $output_objdir/$libname.ver~
8448 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8451 esac
8452 else
8453 ld_shlibs=no
8457 netbsd*)
8458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8459 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8460 wlarc=
8461 else
8462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8467 solaris*)
8468 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8469 ld_shlibs=no
8470 cat <<_LT_EOF 1>&2
8472 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8473 *** create shared libraries on Solaris systems. Therefore, libtool
8474 *** is disabling shared libraries support. We urge you to upgrade GNU
8475 *** binutils to release 2.9.1 or newer. Another option is to modify
8476 *** your PATH or compiler configuration so that the native linker is
8477 *** used, and then restart.
8479 _LT_EOF
8480 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8483 else
8484 ld_shlibs=no
8488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8489 case `$LD -v 2>&1` in
8490 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8491 ld_shlibs=no
8492 cat <<_LT_EOF 1>&2
8494 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8495 *** reliably create shared libraries on SCO systems. Therefore, libtool
8496 *** is disabling shared libraries support. We urge you to upgrade GNU
8497 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8498 *** your PATH or compiler configuration so that the native linker is
8499 *** used, and then restart.
8501 _LT_EOF
8504 # For security reasons, it is highly recommended that you always
8505 # use absolute paths for naming shared libraries, and exclude the
8506 # DT_RUNPATH tag from executables and libraries. But doing so
8507 # requires that you compile everything twice, which is a pain.
8508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8512 else
8513 ld_shlibs=no
8516 esac
8519 sunos4*)
8520 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8521 wlarc=
8522 hardcode_direct=yes
8523 hardcode_shlibpath_var=no
8527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8530 else
8531 ld_shlibs=no
8534 esac
8536 if test "$ld_shlibs" = no; then
8537 runpath_var=
8538 hardcode_libdir_flag_spec=
8539 export_dynamic_flag_spec=
8540 whole_archive_flag_spec=
8542 else
8543 # PORTME fill in a description of your system's linker (not GNU ld)
8544 case $host_os in
8545 aix3*)
8546 allow_undefined_flag=unsupported
8547 always_export_symbols=yes
8548 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'
8549 # Note: this linker hardcodes the directories in LIBPATH if there
8550 # are no directories specified by -L.
8551 hardcode_minus_L=yes
8552 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8553 # Neither direct hardcoding nor static linking is supported with a
8554 # broken collect2.
8555 hardcode_direct=unsupported
8559 aix[4-9]*)
8560 if test "$host_cpu" = ia64; then
8561 # On IA64, the linker does run time linking by default, so we don't
8562 # have to do anything special.
8563 aix_use_runtimelinking=no
8564 exp_sym_flag='-Bexport'
8565 no_entry_flag=""
8566 else
8567 # If we're using GNU nm, then we don't want the "-C" option.
8568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8569 # Also, AIX nm treats weak defined symbols like other global
8570 # defined symbols, whereas GNU nm marks them as "W".
8571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8572 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'
8573 else
8574 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8576 aix_use_runtimelinking=no
8578 # Test if we are trying to use run time linking or normal
8579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8580 # need to do runtime linking.
8581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8582 for ld_flag in $LDFLAGS; do
8583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8584 aix_use_runtimelinking=yes
8585 break
8587 done
8589 esac
8591 exp_sym_flag='-bexport'
8592 no_entry_flag='-bnoentry'
8595 # When large executables or shared objects are built, AIX ld can
8596 # have problems creating the table of contents. If linking a library
8597 # or program results in "error TOC overflow" add -mminimal-toc to
8598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8601 archive_cmds=''
8602 hardcode_direct=yes
8603 hardcode_direct_absolute=yes
8604 hardcode_libdir_separator=':'
8605 link_all_deplibs=yes
8606 file_list_spec='${wl}-f,'
8608 if test "$GCC" = yes; then
8609 case $host_os in aix4.[012]|aix4.[012].*)
8610 # We only want to do this on AIX 4.2 and lower, the check
8611 # below for broken collect2 doesn't work under 4.3+
8612 collect2name=`${CC} -print-prog-name=collect2`
8613 if test -f "$collect2name" &&
8614 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8615 then
8616 # We have reworked collect2
8618 else
8619 # We have old collect2
8620 hardcode_direct=unsupported
8621 # It fails to find uninstalled libraries when the uninstalled
8622 # path is not listed in the libpath. Setting hardcode_minus_L
8623 # to unsupported forces relinking
8624 hardcode_minus_L=yes
8625 hardcode_libdir_flag_spec='-L$libdir'
8626 hardcode_libdir_separator=
8629 esac
8630 shared_flag='-shared'
8631 if test "$aix_use_runtimelinking" = yes; then
8632 shared_flag="$shared_flag "'${wl}-G'
8634 else
8635 # not using gcc
8636 if test "$host_cpu" = ia64; then
8637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8638 # chokes on -Wl,-G. The following line is correct:
8639 shared_flag='-G'
8640 else
8641 if test "$aix_use_runtimelinking" = yes; then
8642 shared_flag='${wl}-G'
8643 else
8644 shared_flag='${wl}-bM:SRE'
8649 export_dynamic_flag_spec='${wl}-bexpall'
8650 # It seems that -bexpall does not export symbols beginning with
8651 # underscore (_), so it is better to generate a list of symbols to export.
8652 always_export_symbols=yes
8653 if test "$aix_use_runtimelinking" = yes; then
8654 # Warning - without using the other runtime loading flags (-brtl),
8655 # -berok will link without error, but may produce a broken library.
8656 allow_undefined_flag='-berok'
8657 # Determine the default libpath from the value encoded in an
8658 # empty executable.
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8663 main ()
8667 return 0;
8669 _ACEOF
8670 if ac_fn_c_try_link "$LINENO"; then :
8672 lt_aix_libpath_sed='
8673 /Import File Strings/,/^$/ {
8674 /^0/ {
8675 s/^0 *\(.*\)$/\1/
8679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8680 # Check for a 64-bit object if we didn't find anything.
8681 if test -z "$aix_libpath"; then
8682 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8685 rm -f core conftest.err conftest.$ac_objext \
8686 conftest$ac_exeext conftest.$ac_ext
8687 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8689 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8690 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"
8691 else
8692 if test "$host_cpu" = ia64; then
8693 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8694 allow_undefined_flag="-z nodefs"
8695 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"
8696 else
8697 # Determine the default libpath from the value encoded in an
8698 # empty executable.
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8703 main ()
8707 return 0;
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8712 lt_aix_libpath_sed='
8713 /Import File Strings/,/^$/ {
8714 /^0/ {
8715 s/^0 *\(.*\)$/\1/
8719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8720 # Check for a 64-bit object if we didn't find anything.
8721 if test -z "$aix_libpath"; then
8722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725 rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8729 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8730 # Warning - without using the other run time loading flags,
8731 # -berok will link without error, but may produce a broken library.
8732 no_undefined_flag=' ${wl}-bernotok'
8733 allow_undefined_flag=' ${wl}-berok'
8734 if test "$with_gnu_ld" = yes; then
8735 # We only use this code for GNU lds that support --whole-archive.
8736 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8737 else
8738 # Exported symbols can be pulled into shared objects from archives
8739 whole_archive_flag_spec='$convenience'
8741 archive_cmds_need_lc=yes
8742 # This is similar to how AIX traditionally builds its shared libraries.
8743 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'
8748 amigaos*)
8749 case $host_cpu in
8750 powerpc)
8751 # see comment about AmigaOS4 .so support
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753 archive_expsym_cmds=''
8755 m68k)
8756 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)'
8757 hardcode_libdir_flag_spec='-L$libdir'
8758 hardcode_minus_L=yes
8760 esac
8763 bsdi[45]*)
8764 export_dynamic_flag_spec=-rdynamic
8767 cygwin* | mingw* | pw32* | cegcc*)
8768 # When not using gcc, we currently assume that we are using
8769 # Microsoft Visual C++.
8770 # hardcode_libdir_flag_spec is actually meaningless, as there is
8771 # no search path for DLLs.
8772 hardcode_libdir_flag_spec=' '
8773 allow_undefined_flag=unsupported
8774 # Tell ltmain to make .lib files, not .a files.
8775 libext=lib
8776 # Tell ltmain to make .dll files, not .so files.
8777 shrext_cmds=".dll"
8778 # FIXME: Setting linknames here is a bad hack.
8779 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8780 # The linker will automatically build a .lib file if we build a DLL.
8781 old_archive_from_new_cmds='true'
8782 # FIXME: Should let the user specify the lib program.
8783 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8784 fix_srcfile_path='`cygpath -w "$srcfile"`'
8785 enable_shared_with_static_runtimes=yes
8788 darwin* | rhapsody*)
8791 archive_cmds_need_lc=no
8792 hardcode_direct=no
8793 hardcode_automatic=yes
8794 hardcode_shlibpath_var=unsupported
8795 if test "$lt_cv_ld_force_load" = "yes"; then
8796 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\"`'
8797 else
8798 whole_archive_flag_spec=''
8800 link_all_deplibs=yes
8801 allow_undefined_flag="$_lt_dar_allow_undefined"
8802 case $cc_basename in
8803 ifort*) _lt_dar_can_shared=yes ;;
8804 *) _lt_dar_can_shared=$GCC ;;
8805 esac
8806 if test "$_lt_dar_can_shared" = "yes"; then
8807 output_verbose_link_cmd=func_echo_all
8808 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8809 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8810 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}"
8811 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}"
8813 else
8814 ld_shlibs=no
8819 dgux*)
8820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_shlibpath_var=no
8825 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8826 # support. Future versions do this automatically, but an explicit c++rt0.o
8827 # does not break anything, and helps significantly (at the cost of a little
8828 # extra space).
8829 freebsd2.2*)
8830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8831 hardcode_libdir_flag_spec='-R$libdir'
8832 hardcode_direct=yes
8833 hardcode_shlibpath_var=no
8836 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8837 freebsd2.*)
8838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8839 hardcode_direct=yes
8840 hardcode_minus_L=yes
8841 hardcode_shlibpath_var=no
8844 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8845 freebsd* | dragonfly*)
8846 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8847 hardcode_libdir_flag_spec='-R$libdir'
8848 hardcode_direct=yes
8849 hardcode_shlibpath_var=no
8852 hpux9*)
8853 if test "$GCC" = yes; then
8854 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'
8855 else
8856 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'
8858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8859 hardcode_libdir_separator=:
8860 hardcode_direct=yes
8862 # hardcode_minus_L: Not really in the search PATH,
8863 # but as the default location of the library.
8864 hardcode_minus_L=yes
8865 export_dynamic_flag_spec='${wl}-E'
8868 hpux10*)
8869 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8870 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8871 else
8872 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8874 if test "$with_gnu_ld" = no; then
8875 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8876 hardcode_libdir_flag_spec_ld='+b $libdir'
8877 hardcode_libdir_separator=:
8878 hardcode_direct=yes
8879 hardcode_direct_absolute=yes
8880 export_dynamic_flag_spec='${wl}-E'
8881 # hardcode_minus_L: Not really in the search PATH,
8882 # but as the default location of the library.
8883 hardcode_minus_L=yes
8887 hpux11*)
8888 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8889 case $host_cpu in
8890 hppa*64*)
8891 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893 ia64*)
8894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8897 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8899 esac
8900 else
8901 case $host_cpu in
8902 hppa*64*)
8903 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8905 ia64*)
8906 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8910 # Older versions of the 11.00 compiler do not understand -b yet
8911 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8913 $as_echo_n "checking if $CC understands -b... " >&6; }
8914 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 lt_cv_prog_compiler__b=no
8918 save_LDFLAGS="$LDFLAGS"
8919 LDFLAGS="$LDFLAGS -b"
8920 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8921 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8922 # The linker can only warn and ignore the option if not recognized
8923 # So say no if there are warnings
8924 if test -s conftest.err; then
8925 # Append any errors to the config.log.
8926 cat conftest.err 1>&5
8927 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8929 if diff conftest.exp conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler__b=yes
8932 else
8933 lt_cv_prog_compiler__b=yes
8936 $RM -r conftest*
8937 LDFLAGS="$save_LDFLAGS"
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8941 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8943 if test x"$lt_cv_prog_compiler__b" = xyes; then
8944 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8945 else
8946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8950 esac
8952 if test "$with_gnu_ld" = no; then
8953 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8954 hardcode_libdir_separator=:
8956 case $host_cpu in
8957 hppa*64*|ia64*)
8958 hardcode_direct=no
8959 hardcode_shlibpath_var=no
8962 hardcode_direct=yes
8963 hardcode_direct_absolute=yes
8964 export_dynamic_flag_spec='${wl}-E'
8966 # hardcode_minus_L: Not really in the search PATH,
8967 # but as the default location of the library.
8968 hardcode_minus_L=yes
8970 esac
8974 irix5* | irix6* | nonstopux*)
8975 if test "$GCC" = yes; then
8976 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'
8977 # Try to use the -exported_symbol ld option, if it does not
8978 # work, assume that -exports_file does not work either and
8979 # implicitly export all symbols.
8980 save_LDFLAGS="$LDFLAGS"
8981 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 int foo(void) {}
8985 _ACEOF
8986 if ac_fn_c_try_link "$LINENO"; then :
8987 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'
8990 rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992 LDFLAGS="$save_LDFLAGS"
8993 else
8994 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'
8995 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'
8997 archive_cmds_need_lc='no'
8998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8999 hardcode_libdir_separator=:
9000 inherit_rpath=yes
9001 link_all_deplibs=yes
9004 netbsd*)
9005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9007 else
9008 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9010 hardcode_libdir_flag_spec='-R$libdir'
9011 hardcode_direct=yes
9012 hardcode_shlibpath_var=no
9015 newsos6)
9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_direct=yes
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 hardcode_libdir_separator=:
9020 hardcode_shlibpath_var=no
9023 *nto* | *qnx*)
9026 openbsd*)
9027 if test -f /usr/libexec/ld.so; then
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9030 hardcode_direct_absolute=yes
9031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9033 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9035 export_dynamic_flag_spec='${wl}-E'
9036 else
9037 case $host_os in
9038 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040 hardcode_libdir_flag_spec='-R$libdir'
9043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9046 esac
9048 else
9049 ld_shlibs=no
9053 os2*)
9054 hardcode_libdir_flag_spec='-L$libdir'
9055 hardcode_minus_L=yes
9056 allow_undefined_flag=unsupported
9057 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'
9058 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9061 osf3*)
9062 if test "$GCC" = yes; then
9063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9064 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'
9065 else
9066 allow_undefined_flag=' -expect_unresolved \*'
9067 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'
9069 archive_cmds_need_lc='no'
9070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9071 hardcode_libdir_separator=:
9074 osf4* | osf5*) # as osf3* with the addition of -msym flag
9075 if test "$GCC" = yes; then
9076 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9077 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'
9078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9079 else
9080 allow_undefined_flag=' -expect_unresolved \*'
9081 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'
9082 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~
9083 $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'
9085 # Both c and cxx compiler support -rpath directly
9086 hardcode_libdir_flag_spec='-rpath $libdir'
9088 archive_cmds_need_lc='no'
9089 hardcode_libdir_separator=:
9092 solaris*)
9093 no_undefined_flag=' -z defs'
9094 if test "$GCC" = yes; then
9095 wlarc='${wl}'
9096 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9098 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9099 else
9100 case `$CC -V 2>&1` in
9101 *"Compilers 5.0"*)
9102 wlarc=''
9103 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9105 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9108 wlarc='${wl}'
9109 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9111 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9113 esac
9115 hardcode_libdir_flag_spec='-R$libdir'
9116 hardcode_shlibpath_var=no
9117 case $host_os in
9118 solaris2.[0-5] | solaris2.[0-5].*) ;;
9120 # The compiler driver will combine and reorder linker options,
9121 # but understands `-z linker_flag'. GCC discards it without `$wl',
9122 # but is careful enough not to reorder.
9123 # Supported since Solaris 2.6 (maybe 2.5.1?)
9124 if test "$GCC" = yes; then
9125 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9126 else
9127 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9130 esac
9131 link_all_deplibs=yes
9134 sunos4*)
9135 if test "x$host_vendor" = xsequent; then
9136 # Use $CC to link under sequent, because it throws in some extra .o
9137 # files that make .init and .fini sections work.
9138 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9139 else
9140 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9142 hardcode_libdir_flag_spec='-L$libdir'
9143 hardcode_direct=yes
9144 hardcode_minus_L=yes
9145 hardcode_shlibpath_var=no
9148 sysv4)
9149 case $host_vendor in
9150 sni)
9151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_direct=yes # is this really true???
9154 siemens)
9155 ## LD is ld it makes a PLAMLIB
9156 ## CC just makes a GrossModule.
9157 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9158 reload_cmds='$CC -r -o $output$reload_objs'
9159 hardcode_direct=no
9161 motorola)
9162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9165 esac
9166 runpath_var='LD_RUN_PATH'
9167 hardcode_shlibpath_var=no
9170 sysv4.3*)
9171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9172 hardcode_shlibpath_var=no
9173 export_dynamic_flag_spec='-Bexport'
9176 sysv4*MP*)
9177 if test -d /usr/nec; then
9178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9179 hardcode_shlibpath_var=no
9180 runpath_var=LD_RUN_PATH
9181 hardcode_runpath_var=yes
9182 ld_shlibs=yes
9186 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9187 no_undefined_flag='${wl}-z,text'
9188 archive_cmds_need_lc=no
9189 hardcode_shlibpath_var=no
9190 runpath_var='LD_RUN_PATH'
9192 if test "$GCC" = yes; then
9193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 else
9196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9201 sysv5* | sco3.2v5* | sco5v6*)
9202 # Note: We can NOT use -z defs as we might desire, because we do not
9203 # link with -lc, and that would cause any symbols used from libc to
9204 # always be unresolved, which means just about no library would
9205 # ever link correctly. If we're not using GNU ld we use -z text
9206 # though, which does catch some bad symbols but isn't as heavy-handed
9207 # as -z defs.
9208 no_undefined_flag='${wl}-z,text'
9209 allow_undefined_flag='${wl}-z,nodefs'
9210 archive_cmds_need_lc=no
9211 hardcode_shlibpath_var=no
9212 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9213 hardcode_libdir_separator=':'
9214 link_all_deplibs=yes
9215 export_dynamic_flag_spec='${wl}-Bexport'
9216 runpath_var='LD_RUN_PATH'
9218 if test "$GCC" = yes; then
9219 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9221 else
9222 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9227 uts4*)
9228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_libdir_flag_spec='-L$libdir'
9230 hardcode_shlibpath_var=no
9234 ld_shlibs=no
9236 esac
9238 if test x$host_vendor = xsni; then
9239 case $host in
9240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9241 export_dynamic_flag_spec='${wl}-Blargedynsym'
9243 esac
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9248 $as_echo "$ld_shlibs" >&6; }
9249 test "$ld_shlibs" = no && can_build_shared=no
9251 with_gnu_ld=$with_gnu_ld
9268 # Do we need to explicitly link libc?
9270 case "x$archive_cmds_need_lc" in
9271 x|xyes)
9272 # Assume -lc should be added
9273 archive_cmds_need_lc=yes
9275 if test "$enable_shared" = yes && test "$GCC" = yes; then
9276 case $archive_cmds in
9277 *'~'*)
9278 # FIXME: we may have to deal with multi-command sequences.
9280 '$CC '*)
9281 # Test whether the compiler implicitly links with -lc since on some
9282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9283 # to ld, don't add -lc before -lgcc.
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9285 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9286 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 $RM conftest*
9290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9293 (eval $ac_compile) 2>&5
9294 ac_status=$?
9295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9296 test $ac_status = 0; } 2>conftest.err; then
9297 soname=conftest
9298 lib=conftest
9299 libobjs=conftest.$ac_objext
9300 deplibs=
9301 wl=$lt_prog_compiler_wl
9302 pic_flag=$lt_prog_compiler_pic
9303 compiler_flags=-v
9304 linker_flags=-v
9305 verstring=
9306 output_objdir=.
9307 libname=conftest
9308 lt_save_allow_undefined_flag=$allow_undefined_flag
9309 allow_undefined_flag=
9310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9311 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9312 ac_status=$?
9313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9314 test $ac_status = 0; }
9315 then
9316 lt_cv_archive_cmds_need_lc=no
9317 else
9318 lt_cv_archive_cmds_need_lc=yes
9320 allow_undefined_flag=$lt_save_allow_undefined_flag
9321 else
9322 cat conftest.err 1>&5
9324 $RM conftest*
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9328 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9329 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9331 esac
9334 esac
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9493 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9495 if test "$GCC" = yes; then
9496 case $host_os in
9497 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9498 *) lt_awk_arg="/^libraries:/" ;;
9499 esac
9500 case $host_os in
9501 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9502 *) lt_sed_strip_eq="s,=/,/,g" ;;
9503 esac
9504 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9505 case $lt_search_path_spec in
9506 *\;*)
9507 # if the path contains ";" then we assume it to be the separator
9508 # otherwise default to the standard path separator (i.e. ":") - it is
9509 # assumed that no part of a normal pathname contains ";" but that should
9510 # okay in the real world where ";" in dirpaths is itself problematic.
9511 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9514 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9516 esac
9517 # Ok, now we have the path, separated by spaces, we can step through it
9518 # and add multilib dir if necessary.
9519 lt_tmp_lt_search_path_spec=
9520 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9521 for lt_sys_path in $lt_search_path_spec; do
9522 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9523 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9524 else
9525 test -d "$lt_sys_path" && \
9526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9528 done
9529 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9530 BEGIN {RS=" "; FS="/|\n";} {
9531 lt_foo="";
9532 lt_count=0;
9533 for (lt_i = NF; lt_i > 0; lt_i--) {
9534 if ($lt_i != "" && $lt_i != ".") {
9535 if ($lt_i == "..") {
9536 lt_count++;
9537 } else {
9538 if (lt_count == 0) {
9539 lt_foo="/" $lt_i lt_foo;
9540 } else {
9541 lt_count--;
9546 if (lt_foo != "") { lt_freq[lt_foo]++; }
9547 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9549 # AWK program above erroneously prepends '/' to C:/dos/paths
9550 # for these hosts.
9551 case $host_os in
9552 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9553 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9554 esac
9555 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9556 else
9557 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9559 library_names_spec=
9560 libname_spec='lib$name'
9561 soname_spec=
9562 shrext_cmds=".so"
9563 postinstall_cmds=
9564 postuninstall_cmds=
9565 finish_cmds=
9566 finish_eval=
9567 shlibpath_var=
9568 shlibpath_overrides_runpath=unknown
9569 version_type=none
9570 dynamic_linker="$host_os ld.so"
9571 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9572 need_lib_prefix=unknown
9573 hardcode_into_libs=no
9575 # when you set need_version to no, make sure it does not cause -set_version
9576 # flags to be left without arguments
9577 need_version=unknown
9579 case $host_os in
9580 aix3*)
9581 version_type=linux
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9583 shlibpath_var=LIBPATH
9585 # AIX 3 has no versioning support, so we append a major version to the name.
9586 soname_spec='${libname}${release}${shared_ext}$major'
9589 aix[4-9]*)
9590 version_type=linux
9591 need_lib_prefix=no
9592 need_version=no
9593 hardcode_into_libs=yes
9594 if test "$host_cpu" = ia64; then
9595 # AIX 5 supports IA64
9596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 else
9599 # With GCC up to 2.95.x, collect2 would create an import file
9600 # for dependence libraries. The import file would start with
9601 # the line `#! .'. This would cause the generated library to
9602 # depend on `.', always an invalid library. This was fixed in
9603 # development snapshots of GCC prior to 3.0.
9604 case $host_os in
9605 aix4 | aix4.[01] | aix4.[01].*)
9606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9607 echo ' yes '
9608 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9610 else
9611 can_build_shared=no
9614 esac
9615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9616 # soname into executable. Probably we can add versioning support to
9617 # collect2, so additional links can be useful in future.
9618 if test "$aix_use_runtimelinking" = yes; then
9619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9620 # instead of lib<name>.a to let people know that these are not
9621 # typical AIX shared libraries.
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623 else
9624 # We preserve .a as extension for shared libraries through AIX4.2
9625 # and later when we are not doing run time linking.
9626 library_names_spec='${libname}${release}.a $libname.a'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9629 shlibpath_var=LIBPATH
9633 amigaos*)
9634 case $host_cpu in
9635 powerpc)
9636 # Since July 2007 AmigaOS4 officially supports .so libraries.
9637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640 m68k)
9641 library_names_spec='$libname.ixlibrary $libname.a'
9642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9643 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'
9645 esac
9648 beos*)
9649 library_names_spec='${libname}${shared_ext}'
9650 dynamic_linker="$host_os ld.so"
9651 shlibpath_var=LIBRARY_PATH
9654 bsdi[45]*)
9655 version_type=linux
9656 need_version=no
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9663 # the default ld.so.conf also contains /usr/contrib/lib and
9664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9665 # libtool to hard-code these into programs
9668 cygwin* | mingw* | pw32* | cegcc*)
9669 version_type=windows
9670 shrext_cmds=".dll"
9671 need_version=no
9672 need_lib_prefix=no
9674 case $GCC,$host_os in
9675 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9676 library_names_spec='$libname.dll.a'
9677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9678 postinstall_cmds='base_file=`basename \${file}`~
9679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9680 dldir=$destdir/`dirname \$dlpath`~
9681 test -d \$dldir || mkdir -p \$dldir~
9682 $install_prog $dir/$dlname \$dldir/$dlname~
9683 chmod a+x \$dldir/$dlname~
9684 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9685 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9687 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9688 dlpath=$dir/\$dldll~
9689 $RM \$dlpath'
9690 shlibpath_overrides_runpath=yes
9692 case $host_os in
9693 cygwin*)
9694 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9695 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9697 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9699 mingw* | cegcc*)
9700 # MinGW DLLs use traditional 'lib' prefix
9701 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9703 pw32*)
9704 # pw32 DLLs use 'pw' prefix rather than 'lib'
9705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9707 esac
9711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9713 esac
9714 dynamic_linker='Win32 ld.exe'
9715 # FIXME: first we should search . and the directory the executable is in
9716 shlibpath_var=PATH
9719 darwin* | rhapsody*)
9720 dynamic_linker="$host_os dyld"
9721 version_type=darwin
9722 need_lib_prefix=no
9723 need_version=no
9724 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9725 soname_spec='${libname}${release}${major}$shared_ext'
9726 shlibpath_overrides_runpath=yes
9727 shlibpath_var=DYLD_LIBRARY_PATH
9728 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9730 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9731 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9734 dgux*)
9735 version_type=linux
9736 need_lib_prefix=no
9737 need_version=no
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 shlibpath_var=LD_LIBRARY_PATH
9743 freebsd* | dragonfly*)
9744 # DragonFly does not have aout. When/if they implement a new
9745 # versioning mechanism, adjust this.
9746 if test -x /usr/bin/objformat; then
9747 objformat=`/usr/bin/objformat`
9748 else
9749 case $host_os in
9750 freebsd[23].*) objformat=aout ;;
9751 *) objformat=elf ;;
9752 esac
9754 version_type=freebsd-$objformat
9755 case $version_type in
9756 freebsd-elf*)
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9758 need_version=no
9759 need_lib_prefix=no
9761 freebsd-*)
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9763 need_version=yes
9765 esac
9766 shlibpath_var=LD_LIBRARY_PATH
9767 case $host_os in
9768 freebsd2.*)
9769 shlibpath_overrides_runpath=yes
9771 freebsd3.[01]* | freebsdelf3.[01]*)
9772 shlibpath_overrides_runpath=yes
9773 hardcode_into_libs=yes
9775 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9776 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9777 shlibpath_overrides_runpath=no
9778 hardcode_into_libs=yes
9780 *) # from 4.6 on, and DragonFly
9781 shlibpath_overrides_runpath=yes
9782 hardcode_into_libs=yes
9784 esac
9787 gnu*)
9788 version_type=linux
9789 need_lib_prefix=no
9790 need_version=no
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 hardcode_into_libs=yes
9797 haiku*)
9798 version_type=linux
9799 need_lib_prefix=no
9800 need_version=no
9801 dynamic_linker="$host_os runtime_loader"
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 shlibpath_var=LIBRARY_PATH
9805 shlibpath_overrides_runpath=yes
9806 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9807 hardcode_into_libs=yes
9810 hpux9* | hpux10* | hpux11*)
9811 # Give a soname corresponding to the major version so that dld.sl refuses to
9812 # link against other versions.
9813 version_type=sunos
9814 need_lib_prefix=no
9815 need_version=no
9816 case $host_cpu in
9817 ia64*)
9818 shrext_cmds='.so'
9819 hardcode_into_libs=yes
9820 dynamic_linker="$host_os dld.so"
9821 shlibpath_var=LD_LIBRARY_PATH
9822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824 soname_spec='${libname}${release}${shared_ext}$major'
9825 if test "X$HPUX_IA64_MODE" = X32; then
9826 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9827 else
9828 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9832 hppa*64*)
9833 shrext_cmds='.sl'
9834 hardcode_into_libs=yes
9835 dynamic_linker="$host_os dld.sl"
9836 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9841 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9844 shrext_cmds='.sl'
9845 dynamic_linker="$host_os dld.sl"
9846 shlibpath_var=SHLIB_PATH
9847 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9851 esac
9852 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9853 postinstall_cmds='chmod 555 $lib'
9854 # or fails outright, so override atomically:
9855 install_override_mode=555
9858 interix[3-9]*)
9859 version_type=linux
9860 need_lib_prefix=no
9861 need_version=no
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9865 shlibpath_var=LD_LIBRARY_PATH
9866 shlibpath_overrides_runpath=no
9867 hardcode_into_libs=yes
9870 irix5* | irix6* | nonstopux*)
9871 case $host_os in
9872 nonstopux*) version_type=nonstopux ;;
9874 if test "$lt_cv_prog_gnu_ld" = yes; then
9875 version_type=linux
9876 else
9877 version_type=irix
9878 fi ;;
9879 esac
9880 need_lib_prefix=no
9881 need_version=no
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9884 case $host_os in
9885 irix5* | nonstopux*)
9886 libsuff= shlibsuff=
9889 case $LD in # libtool.m4 will add one of these switches to LD
9890 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9891 libsuff= shlibsuff= libmagic=32-bit;;
9892 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9893 libsuff=32 shlibsuff=N32 libmagic=N32;;
9894 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9895 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9896 *) libsuff= shlibsuff= libmagic=never-match;;
9897 esac
9899 esac
9900 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9901 shlibpath_overrides_runpath=no
9902 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9903 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9904 hardcode_into_libs=yes
9907 # No shared lib support for Linux oldld, aout, or coff.
9908 linux*oldld* | linux*aout* | linux*coff*)
9909 dynamic_linker=no
9912 # This must be Linux ELF.
9913 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9920 shlibpath_var=LD_LIBRARY_PATH
9921 shlibpath_overrides_runpath=no
9923 # Some binutils ld are patched to set DT_RUNPATH
9924 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 lt_cv_shlibpath_overrides_runpath=no
9928 save_LDFLAGS=$LDFLAGS
9929 save_libdir=$libdir
9930 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9931 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9936 main ()
9940 return 0;
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9945 lt_cv_shlibpath_overrides_runpath=yes
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LDFLAGS=$save_LDFLAGS
9951 libdir=$save_libdir
9955 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9957 # This implies no fast_install, which is unacceptable.
9958 # Some rework will be needed to allow for fast_install
9959 # before this can be enabled.
9960 hardcode_into_libs=yes
9962 # Append ld.so.conf contents to the search path
9963 if test -f /etc/ld.so.conf; then
9964 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' ' '`
9965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9968 # We used to test for /lib/ld.so.1 and disable shared libraries on
9969 # powerpc, because MkLinux only supported shared libraries with the
9970 # GNU dynamic linker. Since this was broken with cross compilers,
9971 # most powerpc-linux boxes support dynamic linking these days and
9972 # people can always --disable-shared, the test was removed, and we
9973 # assume the GNU/Linux dynamic linker is in use.
9974 dynamic_linker='GNU/Linux ld.so'
9977 netbsd*)
9978 version_type=sunos
9979 need_lib_prefix=no
9980 need_version=no
9981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9984 dynamic_linker='NetBSD (a.out) ld.so'
9985 else
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9987 soname_spec='${libname}${release}${shared_ext}$major'
9988 dynamic_linker='NetBSD ld.elf_so'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9995 newsos6)
9996 version_type=linux
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 shlibpath_var=LD_LIBRARY_PATH
9999 shlibpath_overrides_runpath=yes
10002 *nto* | *qnx*)
10003 version_type=qnx
10004 need_lib_prefix=no
10005 need_version=no
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10011 dynamic_linker='ldqnx.so'
10014 openbsd*)
10015 version_type=sunos
10016 sys_lib_dlsearch_path_spec="/usr/lib"
10017 need_lib_prefix=no
10018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10019 case $host_os in
10020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10021 *) need_version=no ;;
10022 esac
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10027 case $host_os in
10028 openbsd2.[89] | openbsd2.[89].*)
10029 shlibpath_overrides_runpath=no
10032 shlibpath_overrides_runpath=yes
10034 esac
10035 else
10036 shlibpath_overrides_runpath=yes
10040 os2*)
10041 libname_spec='$name'
10042 shrext_cmds=".dll"
10043 need_lib_prefix=no
10044 library_names_spec='$libname${shared_ext} $libname.a'
10045 dynamic_linker='OS/2 ld.exe'
10046 shlibpath_var=LIBPATH
10049 osf3* | osf4* | osf5*)
10050 version_type=osf
10051 need_lib_prefix=no
10052 need_version=no
10053 soname_spec='${libname}${release}${shared_ext}$major'
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10060 rdos*)
10061 dynamic_linker=no
10064 solaris*)
10065 version_type=linux
10066 need_lib_prefix=no
10067 need_version=no
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=yes
10072 hardcode_into_libs=yes
10073 # ldd complains unless libraries are executable
10074 postinstall_cmds='chmod +x $lib'
10077 sunos4*)
10078 version_type=sunos
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 shlibpath_overrides_runpath=yes
10083 if test "$with_gnu_ld" = yes; then
10084 need_lib_prefix=no
10086 need_version=yes
10089 sysv4 | sysv4.3*)
10090 version_type=linux
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 case $host_vendor in
10095 sni)
10096 shlibpath_overrides_runpath=no
10097 need_lib_prefix=no
10098 runpath_var=LD_RUN_PATH
10100 siemens)
10101 need_lib_prefix=no
10103 motorola)
10104 need_lib_prefix=no
10105 need_version=no
10106 shlibpath_overrides_runpath=no
10107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10109 esac
10112 sysv4*MP*)
10113 if test -d /usr/nec ;then
10114 version_type=linux
10115 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10116 soname_spec='$libname${shared_ext}.$major'
10117 shlibpath_var=LD_LIBRARY_PATH
10121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10122 version_type=freebsd-elf
10123 need_lib_prefix=no
10124 need_version=no
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=yes
10129 hardcode_into_libs=yes
10130 if test "$with_gnu_ld" = yes; then
10131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10132 else
10133 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10134 case $host_os in
10135 sco3.2v5*)
10136 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10138 esac
10140 sys_lib_dlsearch_path_spec='/usr/lib'
10143 tpf*)
10144 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10145 version_type=linux
10146 need_lib_prefix=no
10147 need_version=no
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=no
10151 hardcode_into_libs=yes
10154 uts4*)
10155 version_type=linux
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 shlibpath_var=LD_LIBRARY_PATH
10162 dynamic_linker=no
10164 esac
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10166 $as_echo "$dynamic_linker" >&6; }
10167 test "$dynamic_linker" = no && can_build_shared=no
10169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10170 if test "$GCC" = yes; then
10171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10174 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10177 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10178 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10273 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10274 hardcode_action=
10275 if test -n "$hardcode_libdir_flag_spec" ||
10276 test -n "$runpath_var" ||
10277 test "X$hardcode_automatic" = "Xyes" ; then
10279 # We can hardcode non-existent directories.
10280 if test "$hardcode_direct" != no &&
10281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10282 # have to relink, otherwise we might link with an installed library
10283 # when we should be linking with a yet-to-be-installed one
10284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10285 test "$hardcode_minus_L" != no; then
10286 # Linking always hardcodes the temporary library directory.
10287 hardcode_action=relink
10288 else
10289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10290 hardcode_action=immediate
10292 else
10293 # We cannot hardcode anything, or else we can only hardcode existing
10294 # directories.
10295 hardcode_action=unsupported
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10298 $as_echo "$hardcode_action" >&6; }
10300 if test "$hardcode_action" = relink ||
10301 test "$inherit_rpath" = yes; then
10302 # Fast installation is not supported
10303 enable_fast_install=no
10304 elif test "$shlibpath_overrides_runpath" = yes ||
10305 test "$enable_shared" = no; then
10306 # Fast installation is not necessary
10307 enable_fast_install=needless
10315 if test "x$enable_dlopen" != xyes; then
10316 enable_dlopen=unknown
10317 enable_dlopen_self=unknown
10318 enable_dlopen_self_static=unknown
10319 else
10320 lt_cv_dlopen=no
10321 lt_cv_dlopen_libs=
10323 case $host_os in
10324 beos*)
10325 lt_cv_dlopen="load_add_on"
10326 lt_cv_dlopen_libs=
10327 lt_cv_dlopen_self=yes
10330 mingw* | pw32* | cegcc*)
10331 lt_cv_dlopen="LoadLibrary"
10332 lt_cv_dlopen_libs=
10335 cygwin*)
10336 lt_cv_dlopen="dlopen"
10337 lt_cv_dlopen_libs=
10340 darwin*)
10341 # if libdl is installed we need to link against it
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 ac_check_lib_save_LIBS=$LIBS
10348 LIBS="-ldl $LIBS"
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char dlopen ();
10360 main ()
10362 return dlopen ();
10364 return 0;
10366 _ACEOF
10367 if ac_fn_c_try_link "$LINENO"; then :
10368 ac_cv_lib_dl_dlopen=yes
10369 else
10370 ac_cv_lib_dl_dlopen=no
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10380 else
10382 lt_cv_dlopen="dyld"
10383 lt_cv_dlopen_libs=
10384 lt_cv_dlopen_self=yes
10391 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10392 if test "x$ac_cv_func_shl_load" = x""yes; then :
10393 lt_cv_dlopen="shl_load"
10394 else
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10396 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10397 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-ldld $LIBS"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10405 /* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10408 #ifdef __cplusplus
10409 extern "C"
10410 #endif
10411 char shl_load ();
10413 main ()
10415 return shl_load ();
10417 return 0;
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421 ac_cv_lib_dld_shl_load=yes
10422 else
10423 ac_cv_lib_dld_shl_load=no
10425 rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10430 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10431 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10433 else
10434 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10435 if test "x$ac_cv_func_dlopen" = x""yes; then :
10436 lt_cv_dlopen="dlopen"
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10439 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10441 $as_echo_n "(cached) " >&6
10442 else
10443 ac_check_lib_save_LIBS=$LIBS
10444 LIBS="-ldl $LIBS"
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 /* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 char dlopen ();
10456 main ()
10458 return dlopen ();
10460 return 0;
10462 _ACEOF
10463 if ac_fn_c_try_link "$LINENO"; then :
10464 ac_cv_lib_dl_dlopen=yes
10465 else
10466 ac_cv_lib_dl_dlopen=no
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 LIBS=$ac_check_lib_save_LIBS
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10473 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10474 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10475 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10479 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10480 $as_echo_n "(cached) " >&6
10481 else
10482 ac_check_lib_save_LIBS=$LIBS
10483 LIBS="-lsvld $LIBS"
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10487 /* Override any GCC internal prototype to avoid an error.
10488 Use char because int might match the return type of a GCC
10489 builtin and then its argument prototype would still apply. */
10490 #ifdef __cplusplus
10491 extern "C"
10492 #endif
10493 char dlopen ();
10495 main ()
10497 return dlopen ();
10499 return 0;
10501 _ACEOF
10502 if ac_fn_c_try_link "$LINENO"; then :
10503 ac_cv_lib_svld_dlopen=yes
10504 else
10505 ac_cv_lib_svld_dlopen=no
10507 rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LIBS=$ac_check_lib_save_LIBS
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10513 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10517 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10518 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521 ac_check_lib_save_LIBS=$LIBS
10522 LIBS="-ldld $LIBS"
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 char dld_link ();
10534 main ()
10536 return dld_link ();
10538 return 0;
10540 _ACEOF
10541 if ac_fn_c_try_link "$LINENO"; then :
10542 ac_cv_lib_dld_dld_link=yes
10543 else
10544 ac_cv_lib_dld_dld_link=no
10546 rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10551 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10552 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10572 esac
10574 if test "x$lt_cv_dlopen" != xno; then
10575 enable_dlopen=yes
10576 else
10577 enable_dlopen=no
10580 case $lt_cv_dlopen in
10581 dlopen)
10582 save_CPPFLAGS="$CPPFLAGS"
10583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10585 save_LDFLAGS="$LDFLAGS"
10586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10588 save_LIBS="$LIBS"
10589 LIBS="$lt_cv_dlopen_libs $LIBS"
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10592 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10593 if test "${lt_cv_dlopen_self+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 if test "$cross_compiling" = yes; then :
10597 lt_cv_dlopen_self=cross
10598 else
10599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10600 lt_status=$lt_dlunknown
10601 cat > conftest.$ac_ext <<_LT_EOF
10602 #line 10602 "configure"
10603 #include "confdefs.h"
10605 #if HAVE_DLFCN_H
10606 #include <dlfcn.h>
10607 #endif
10609 #include <stdio.h>
10611 #ifdef RTLD_GLOBAL
10612 # define LT_DLGLOBAL RTLD_GLOBAL
10613 #else
10614 # ifdef DL_GLOBAL
10615 # define LT_DLGLOBAL DL_GLOBAL
10616 # else
10617 # define LT_DLGLOBAL 0
10618 # endif
10619 #endif
10621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10622 find out it does not work in some platform. */
10623 #ifndef LT_DLLAZY_OR_NOW
10624 # ifdef RTLD_LAZY
10625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10626 # else
10627 # ifdef DL_LAZY
10628 # define LT_DLLAZY_OR_NOW DL_LAZY
10629 # else
10630 # ifdef RTLD_NOW
10631 # define LT_DLLAZY_OR_NOW RTLD_NOW
10632 # else
10633 # ifdef DL_NOW
10634 # define LT_DLLAZY_OR_NOW DL_NOW
10635 # else
10636 # define LT_DLLAZY_OR_NOW 0
10637 # endif
10638 # endif
10639 # endif
10640 # endif
10641 #endif
10643 /* When -fvisbility=hidden is used, assume the code has been annotated
10644 correspondingly for the symbols needed. */
10645 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10646 void fnord () __attribute__((visibility("default")));
10647 #endif
10649 void fnord () { int i=42; }
10650 int main ()
10652 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10653 int status = $lt_dlunknown;
10655 if (self)
10657 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10658 else
10660 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10661 else puts (dlerror ());
10663 /* dlclose (self); */
10665 else
10666 puts (dlerror ());
10668 return status;
10670 _LT_EOF
10671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10672 (eval $ac_link) 2>&5
10673 ac_status=$?
10674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10675 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10676 (./conftest; exit; ) >&5 2>/dev/null
10677 lt_status=$?
10678 case x$lt_status in
10679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10681 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10682 esac
10683 else :
10684 # compilation failed
10685 lt_cv_dlopen_self=no
10688 rm -fr conftest*
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10693 $as_echo "$lt_cv_dlopen_self" >&6; }
10695 if test "x$lt_cv_dlopen_self" = xyes; then
10696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10698 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10699 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 if test "$cross_compiling" = yes; then :
10703 lt_cv_dlopen_self_static=cross
10704 else
10705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10706 lt_status=$lt_dlunknown
10707 cat > conftest.$ac_ext <<_LT_EOF
10708 #line 10708 "configure"
10709 #include "confdefs.h"
10711 #if HAVE_DLFCN_H
10712 #include <dlfcn.h>
10713 #endif
10715 #include <stdio.h>
10717 #ifdef RTLD_GLOBAL
10718 # define LT_DLGLOBAL RTLD_GLOBAL
10719 #else
10720 # ifdef DL_GLOBAL
10721 # define LT_DLGLOBAL DL_GLOBAL
10722 # else
10723 # define LT_DLGLOBAL 0
10724 # endif
10725 #endif
10727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10728 find out it does not work in some platform. */
10729 #ifndef LT_DLLAZY_OR_NOW
10730 # ifdef RTLD_LAZY
10731 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10732 # else
10733 # ifdef DL_LAZY
10734 # define LT_DLLAZY_OR_NOW DL_LAZY
10735 # else
10736 # ifdef RTLD_NOW
10737 # define LT_DLLAZY_OR_NOW RTLD_NOW
10738 # else
10739 # ifdef DL_NOW
10740 # define LT_DLLAZY_OR_NOW DL_NOW
10741 # else
10742 # define LT_DLLAZY_OR_NOW 0
10743 # endif
10744 # endif
10745 # endif
10746 # endif
10747 #endif
10749 /* When -fvisbility=hidden is used, assume the code has been annotated
10750 correspondingly for the symbols needed. */
10751 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10752 void fnord () __attribute__((visibility("default")));
10753 #endif
10755 void fnord () { int i=42; }
10756 int main ()
10758 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10759 int status = $lt_dlunknown;
10761 if (self)
10763 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10764 else
10766 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10767 else puts (dlerror ());
10769 /* dlclose (self); */
10771 else
10772 puts (dlerror ());
10774 return status;
10776 _LT_EOF
10777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10778 (eval $ac_link) 2>&5
10779 ac_status=$?
10780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10781 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10782 (./conftest; exit; ) >&5 2>/dev/null
10783 lt_status=$?
10784 case x$lt_status in
10785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10787 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10788 esac
10789 else :
10790 # compilation failed
10791 lt_cv_dlopen_self_static=no
10794 rm -fr conftest*
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10799 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10802 CPPFLAGS="$save_CPPFLAGS"
10803 LDFLAGS="$save_LDFLAGS"
10804 LIBS="$save_LIBS"
10806 esac
10808 case $lt_cv_dlopen_self in
10809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10810 *) enable_dlopen_self=unknown ;;
10811 esac
10813 case $lt_cv_dlopen_self_static in
10814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10815 *) enable_dlopen_self_static=unknown ;;
10816 esac
10835 striplib=
10836 old_striplib=
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10838 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10843 $as_echo "yes" >&6; }
10844 else
10845 # FIXME - insert some real tests, host_os isn't really good enough
10846 case $host_os in
10847 darwin*)
10848 if test -n "$STRIP" ; then
10849 striplib="$STRIP -x"
10850 old_striplib="$STRIP -S"
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10852 $as_echo "yes" >&6; }
10853 else
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10862 esac
10876 # Report which library types will actually be built
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10878 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10880 $as_echo "$can_build_shared" >&6; }
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10883 $as_echo_n "checking whether to build shared libraries... " >&6; }
10884 test "$can_build_shared" = "no" && enable_shared=no
10886 # On AIX, shared libraries and static libraries use the same namespace, and
10887 # are all built from PIC.
10888 case $host_os in
10889 aix3*)
10890 test "$enable_shared" = yes && enable_static=no
10891 if test -n "$RANLIB"; then
10892 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10893 postinstall_cmds='$RANLIB $lib'
10897 aix[4-9]*)
10898 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10899 test "$enable_shared" = yes && enable_static=no
10902 esac
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10904 $as_echo "$enable_shared" >&6; }
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10907 $as_echo_n "checking whether to build static libraries... " >&6; }
10908 # Make sure either enable_shared or enable_static is yes.
10909 test "$enable_shared" = yes || enable_static=yes
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10911 $as_echo "$enable_static" >&6; }
10917 ac_ext=c
10918 ac_cpp='$CPP $CPPFLAGS'
10919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10923 CC="$lt_save_CC"
10937 ac_config_commands="$ac_config_commands libtool"
10942 # Only expand once:
10948 case $host in
10949 *-cygwin* | *-mingw*)
10950 # 'host' will be top-level target in the case of a target lib,
10951 # we must compare to with_cross_host to decide if this is a native
10952 # or cross-compiler and select where to install dlls appropriately.
10953 if test -n "$with_cross_host" &&
10954 test x"$with_cross_host" != x"no"; then
10955 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10956 else
10957 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10961 lt_host_flags=
10963 esac
10968 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
10969 case $ac_cv_c_int64_t in #(
10970 no|yes) ;; #(
10973 cat >>confdefs.h <<_ACEOF
10974 #define int64_t $ac_cv_c_int64_t
10975 _ACEOF
10977 esac
10979 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10980 case $ac_cv_c_uint64_t in #(
10981 no|yes) ;; #(
10984 $as_echo "#define _UINT64_T 1" >>confdefs.h
10987 cat >>confdefs.h <<_ACEOF
10988 #define uint64_t $ac_cv_c_uint64_t
10989 _ACEOF
10991 esac
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10994 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10995 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #include <sys/types.h>
11001 #include <sys/wait.h>
11002 #ifndef WEXITSTATUS
11003 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11004 #endif
11005 #ifndef WIFEXITED
11006 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11007 #endif
11010 main ()
11012 int s;
11013 wait (&s);
11014 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_compile "$LINENO"; then :
11020 ac_cv_header_sys_wait_h=yes
11021 else
11022 ac_cv_header_sys_wait_h=no
11024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11027 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11028 if test $ac_cv_header_sys_wait_h = yes; then
11030 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11034 ac_config_files="$ac_config_files Makefile"
11036 ac_config_headers="$ac_config_headers config.h"
11038 cat >confcache <<\_ACEOF
11039 # This file is a shell script that caches the results of configure
11040 # tests run on this system so they can be shared between configure
11041 # scripts and configure runs, see configure's option --config-cache.
11042 # It is not useful on other systems. If it contains results you don't
11043 # want to keep, you may remove or edit it.
11045 # config.status only pays attention to the cache file if you give it
11046 # the --recheck option to rerun configure.
11048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11050 # following values.
11052 _ACEOF
11054 # The following way of writing the cache mishandles newlines in values,
11055 # but we know of no workaround that is simple, portable, and efficient.
11056 # So, we kill variables containing newlines.
11057 # Ultrix sh set writes to stderr and can't be redirected directly,
11058 # and sets the high bit in the cache file unless we assign to the vars.
11060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11061 eval ac_val=\$$ac_var
11062 case $ac_val in #(
11063 *${as_nl}*)
11064 case $ac_var in #(
11065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11067 esac
11068 case $ac_var in #(
11069 _ | IFS | as_nl) ;; #(
11070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11071 *) { eval $ac_var=; unset $ac_var;} ;;
11072 esac ;;
11073 esac
11074 done
11076 (set) 2>&1 |
11077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11078 *${as_nl}ac_space=\ *)
11079 # `set' does not quote correctly, so add quotes: double-quote
11080 # substitution turns \\\\ into \\, and sed turns \\ into \.
11081 sed -n \
11082 "s/'/'\\\\''/g;
11083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11084 ;; #(
11086 # `set' quotes correctly as required by POSIX, so do not add quotes.
11087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11089 esac |
11090 sort
11092 sed '
11093 /^ac_cv_env_/b end
11094 t clear
11095 :clear
11096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11097 t end
11098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11099 :end' >>confcache
11100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11101 if test -w "$cache_file"; then
11102 test "x$cache_file" != "x/dev/null" &&
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11104 $as_echo "$as_me: updating cache $cache_file" >&6;}
11105 cat confcache >$cache_file
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11111 rm -f confcache
11113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11114 # Let make expand exec_prefix.
11115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11117 DEFS=-DHAVE_CONFIG_H
11119 ac_libobjs=
11120 ac_ltlibobjs=
11121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11122 # 1. Remove the extension, and $U if already installed.
11123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11126 # will be set to the directory where LIBOBJS objects are built.
11127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11129 done
11130 LIBOBJS=$ac_libobjs
11132 LTLIBOBJS=$ac_ltlibobjs
11135 if test -n "$EXEEXT"; then
11136 am__EXEEXT_TRUE=
11137 am__EXEEXT_FALSE='#'
11138 else
11139 am__EXEEXT_TRUE='#'
11140 am__EXEEXT_FALSE=
11143 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11144 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11147 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11148 as_fn_error "conditional \"AMDEP\" was never defined.
11149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11151 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11152 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11156 : ${CONFIG_STATUS=./config.status}
11157 ac_write_fail=0
11158 ac_clean_files_save=$ac_clean_files
11159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11162 as_write_fail=0
11163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11164 #! $SHELL
11165 # Generated by $as_me.
11166 # Run this file to recreate the current configuration.
11167 # Compiler output produced by configure, useful for debugging
11168 # configure, is in config.log if it exists.
11170 debug=false
11171 ac_cs_recheck=false
11172 ac_cs_silent=false
11174 SHELL=\${CONFIG_SHELL-$SHELL}
11175 export SHELL
11176 _ASEOF
11177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11178 ## -------------------- ##
11179 ## M4sh Initialization. ##
11180 ## -------------------- ##
11182 # Be more Bourne compatible
11183 DUALCASE=1; export DUALCASE # for MKS sh
11184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11185 emulate sh
11186 NULLCMD=:
11187 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11188 # is contrary to our usage. Disable this feature.
11189 alias -g '${1+"$@"}'='"$@"'
11190 setopt NO_GLOB_SUBST
11191 else
11192 case `(set -o) 2>/dev/null` in #(
11193 *posix*) :
11194 set -o posix ;; #(
11195 *) :
11197 esac
11201 as_nl='
11203 export as_nl
11204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11205 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11208 # Prefer a ksh shell builtin over an external printf program on Solaris,
11209 # but without wasting forks for bash or zsh.
11210 if test -z "$BASH_VERSION$ZSH_VERSION" \
11211 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11212 as_echo='print -r --'
11213 as_echo_n='print -rn --'
11214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11215 as_echo='printf %s\n'
11216 as_echo_n='printf %s'
11217 else
11218 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11219 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11220 as_echo_n='/usr/ucb/echo -n'
11221 else
11222 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11223 as_echo_n_body='eval
11224 arg=$1;
11225 case $arg in #(
11226 *"$as_nl"*)
11227 expr "X$arg" : "X\\(.*\\)$as_nl";
11228 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11229 esac;
11230 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11232 export as_echo_n_body
11233 as_echo_n='sh -c $as_echo_n_body as_echo'
11235 export as_echo_body
11236 as_echo='sh -c $as_echo_body as_echo'
11239 # The user is always right.
11240 if test "${PATH_SEPARATOR+set}" != set; then
11241 PATH_SEPARATOR=:
11242 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11243 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11244 PATH_SEPARATOR=';'
11249 # IFS
11250 # We need space, tab and new line, in precisely that order. Quoting is
11251 # there to prevent editors from complaining about space-tab.
11252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11253 # splitting by setting IFS to empty value.)
11254 IFS=" "" $as_nl"
11256 # Find who we are. Look in the path if we contain no directory separator.
11257 case $0 in #((
11258 *[\\/]* ) as_myself=$0 ;;
11259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
11264 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11265 done
11266 IFS=$as_save_IFS
11269 esac
11270 # We did not find ourselves, most probably we were run as `sh COMMAND'
11271 # in which case we are not to be found in the path.
11272 if test "x$as_myself" = x; then
11273 as_myself=$0
11275 if test ! -f "$as_myself"; then
11276 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11277 exit 1
11280 # Unset variables that we do not need and which cause bugs (e.g. in
11281 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11282 # suppresses any "Segmentation fault" message there. '((' could
11283 # trigger a bug in pdksh 5.2.14.
11284 for as_var in BASH_ENV ENV MAIL MAILPATH
11285 do eval test x\${$as_var+set} = xset \
11286 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11287 done
11288 PS1='$ '
11289 PS2='> '
11290 PS4='+ '
11292 # NLS nuisances.
11293 LC_ALL=C
11294 export LC_ALL
11295 LANGUAGE=C
11296 export LANGUAGE
11298 # CDPATH.
11299 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11302 # as_fn_error ERROR [LINENO LOG_FD]
11303 # ---------------------------------
11304 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11305 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11306 # script with status $?, using 1 if that was 0.
11307 as_fn_error ()
11309 as_status=$?; test $as_status -eq 0 && as_status=1
11310 if test "$3"; then
11311 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11312 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11314 $as_echo "$as_me: error: $1" >&2
11315 as_fn_exit $as_status
11316 } # as_fn_error
11319 # as_fn_set_status STATUS
11320 # -----------------------
11321 # Set $? to STATUS, without forking.
11322 as_fn_set_status ()
11324 return $1
11325 } # as_fn_set_status
11327 # as_fn_exit STATUS
11328 # -----------------
11329 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11330 as_fn_exit ()
11332 set +e
11333 as_fn_set_status $1
11334 exit $1
11335 } # as_fn_exit
11337 # as_fn_unset VAR
11338 # ---------------
11339 # Portably unset VAR.
11340 as_fn_unset ()
11342 { eval $1=; unset $1;}
11344 as_unset=as_fn_unset
11345 # as_fn_append VAR VALUE
11346 # ----------------------
11347 # Append the text in VALUE to the end of the definition contained in VAR. Take
11348 # advantage of any shell optimizations that allow amortized linear growth over
11349 # repeated appends, instead of the typical quadratic growth present in naive
11350 # implementations.
11351 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11352 eval 'as_fn_append ()
11354 eval $1+=\$2
11356 else
11357 as_fn_append ()
11359 eval $1=\$$1\$2
11361 fi # as_fn_append
11363 # as_fn_arith ARG...
11364 # ------------------
11365 # Perform arithmetic evaluation on the ARGs, and store the result in the
11366 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11367 # must be portable across $(()) and expr.
11368 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11369 eval 'as_fn_arith ()
11371 as_val=$(( $* ))
11373 else
11374 as_fn_arith ()
11376 as_val=`expr "$@" || test $? -eq 1`
11378 fi # as_fn_arith
11381 if expr a : '\(a\)' >/dev/null 2>&1 &&
11382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11383 as_expr=expr
11384 else
11385 as_expr=false
11388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11389 as_basename=basename
11390 else
11391 as_basename=false
11394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11395 as_dirname=dirname
11396 else
11397 as_dirname=false
11400 as_me=`$as_basename -- "$0" ||
11401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11402 X"$0" : 'X\(//\)$' \| \
11403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11404 $as_echo X/"$0" |
11405 sed '/^.*\/\([^/][^/]*\)\/*$/{
11406 s//\1/
11409 /^X\/\(\/\/\)$/{
11410 s//\1/
11413 /^X\/\(\/\).*/{
11414 s//\1/
11417 s/.*/./; q'`
11419 # Avoid depending upon Character Ranges.
11420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11423 as_cr_digits='0123456789'
11424 as_cr_alnum=$as_cr_Letters$as_cr_digits
11426 ECHO_C= ECHO_N= ECHO_T=
11427 case `echo -n x` in #(((((
11428 -n*)
11429 case `echo 'xy\c'` in
11430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11431 xy) ECHO_C='\c';;
11432 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11433 ECHO_T=' ';;
11434 esac;;
11436 ECHO_N='-n';;
11437 esac
11439 rm -f conf$$ conf$$.exe conf$$.file
11440 if test -d conf$$.dir; then
11441 rm -f conf$$.dir/conf$$.file
11442 else
11443 rm -f conf$$.dir
11444 mkdir conf$$.dir 2>/dev/null
11446 if (echo >conf$$.file) 2>/dev/null; then
11447 if ln -s conf$$.file conf$$ 2>/dev/null; then
11448 as_ln_s='ln -s'
11449 # ... but there are two gotchas:
11450 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11451 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11452 # In both cases, we have to default to `cp -p'.
11453 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11454 as_ln_s='cp -p'
11455 elif ln conf$$.file conf$$ 2>/dev/null; then
11456 as_ln_s=ln
11457 else
11458 as_ln_s='cp -p'
11460 else
11461 as_ln_s='cp -p'
11463 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11464 rmdir conf$$.dir 2>/dev/null
11467 # as_fn_mkdir_p
11468 # -------------
11469 # Create "$as_dir" as a directory, including parents if necessary.
11470 as_fn_mkdir_p ()
11473 case $as_dir in #(
11474 -*) as_dir=./$as_dir;;
11475 esac
11476 test -d "$as_dir" || eval $as_mkdir_p || {
11477 as_dirs=
11478 while :; do
11479 case $as_dir in #(
11480 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11481 *) as_qdir=$as_dir;;
11482 esac
11483 as_dirs="'$as_qdir' $as_dirs"
11484 as_dir=`$as_dirname -- "$as_dir" ||
11485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11486 X"$as_dir" : 'X\(//\)[^/]' \| \
11487 X"$as_dir" : 'X\(//\)$' \| \
11488 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11489 $as_echo X"$as_dir" |
11490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11491 s//\1/
11494 /^X\(\/\/\)[^/].*/{
11495 s//\1/
11498 /^X\(\/\/\)$/{
11499 s//\1/
11502 /^X\(\/\).*/{
11503 s//\1/
11506 s/.*/./; q'`
11507 test -d "$as_dir" && break
11508 done
11509 test -z "$as_dirs" || eval "mkdir $as_dirs"
11510 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11513 } # as_fn_mkdir_p
11514 if mkdir -p . 2>/dev/null; then
11515 as_mkdir_p='mkdir -p "$as_dir"'
11516 else
11517 test -d ./-p && rmdir ./-p
11518 as_mkdir_p=false
11521 if test -x / >/dev/null 2>&1; then
11522 as_test_x='test -x'
11523 else
11524 if ls -dL / >/dev/null 2>&1; then
11525 as_ls_L_option=L
11526 else
11527 as_ls_L_option=
11529 as_test_x='
11530 eval sh -c '\''
11531 if test -d "$1"; then
11532 test -d "$1/.";
11533 else
11534 case $1 in #(
11535 -*)set "./$1";;
11536 esac;
11537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11538 ???[sx]*):;;*)false;;esac;fi
11539 '\'' sh
11542 as_executable_p=$as_test_x
11544 # Sed expression to map a string onto a valid CPP name.
11545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11547 # Sed expression to map a string onto a valid variable name.
11548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11551 exec 6>&1
11552 ## ----------------------------------- ##
11553 ## Main body of $CONFIG_STATUS script. ##
11554 ## ----------------------------------- ##
11555 _ASEOF
11556 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11559 # Save the log message, to keep $0 and so on meaningful, and to
11560 # report actual input values of CONFIG_FILES etc. instead of their
11561 # values after options handling.
11562 ac_log="
11563 This file was extended by LTO plugin for ld $as_me 0.1, which was
11564 generated by GNU Autoconf 2.64. Invocation command line was
11566 CONFIG_FILES = $CONFIG_FILES
11567 CONFIG_HEADERS = $CONFIG_HEADERS
11568 CONFIG_LINKS = $CONFIG_LINKS
11569 CONFIG_COMMANDS = $CONFIG_COMMANDS
11570 $ $0 $@
11572 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11575 _ACEOF
11577 case $ac_config_files in *"
11578 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11579 esac
11581 case $ac_config_headers in *"
11582 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11583 esac
11586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11587 # Files that config.status was made for.
11588 config_files="$ac_config_files"
11589 config_headers="$ac_config_headers"
11590 config_commands="$ac_config_commands"
11592 _ACEOF
11594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11595 ac_cs_usage="\
11596 \`$as_me' instantiates files and other configuration actions
11597 from templates according to the current configuration. Unless the files
11598 and actions are specified as TAGs, all are instantiated by default.
11600 Usage: $0 [OPTION]... [TAG]...
11602 -h, --help print this help, then exit
11603 -V, --version print version number and configuration settings, then exit
11604 -q, --quiet, --silent
11605 do not print progress messages
11606 -d, --debug don't remove temporary files
11607 --recheck update $as_me by reconfiguring in the same conditions
11608 --file=FILE[:TEMPLATE]
11609 instantiate the configuration file FILE
11610 --header=FILE[:TEMPLATE]
11611 instantiate the configuration header FILE
11613 Configuration files:
11614 $config_files
11616 Configuration headers:
11617 $config_headers
11619 Configuration commands:
11620 $config_commands
11622 Report bugs to the package provider."
11624 _ACEOF
11625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11626 ac_cs_version="\\
11627 LTO plugin for ld config.status 0.1
11628 configured by $0, generated by GNU Autoconf 2.64,
11629 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11631 Copyright (C) 2009 Free Software Foundation, Inc.
11632 This config.status script is free software; the Free Software Foundation
11633 gives unlimited permission to copy, distribute and modify it."
11635 ac_pwd='$ac_pwd'
11636 srcdir='$srcdir'
11637 INSTALL='$INSTALL'
11638 MKDIR_P='$MKDIR_P'
11639 AWK='$AWK'
11640 test -n "\$AWK" || AWK=awk
11641 _ACEOF
11643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11644 # The default lists apply if the user does not specify any file.
11645 ac_need_defaults=:
11646 while test $# != 0
11648 case $1 in
11649 --*=*)
11650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11652 ac_shift=:
11655 ac_option=$1
11656 ac_optarg=$2
11657 ac_shift=shift
11659 esac
11661 case $ac_option in
11662 # Handling of the options.
11663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11664 ac_cs_recheck=: ;;
11665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11666 $as_echo "$ac_cs_version"; exit ;;
11667 --debug | --debu | --deb | --de | --d | -d )
11668 debug=: ;;
11669 --file | --fil | --fi | --f )
11670 $ac_shift
11671 case $ac_optarg in
11672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11673 esac
11674 as_fn_append CONFIG_FILES " '$ac_optarg'"
11675 ac_need_defaults=false;;
11676 --header | --heade | --head | --hea )
11677 $ac_shift
11678 case $ac_optarg in
11679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11680 esac
11681 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11682 ac_need_defaults=false;;
11683 --he | --h)
11684 # Conflict between --help and --header
11685 as_fn_error "ambiguous option: \`$1'
11686 Try \`$0 --help' for more information.";;
11687 --help | --hel | -h )
11688 $as_echo "$ac_cs_usage"; exit ;;
11689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11691 ac_cs_silent=: ;;
11693 # This is an error.
11694 -*) as_fn_error "unrecognized option: \`$1'
11695 Try \`$0 --help' for more information." ;;
11697 *) as_fn_append ac_config_targets " $1"
11698 ac_need_defaults=false ;;
11700 esac
11701 shift
11702 done
11704 ac_configure_extra_args=
11706 if $ac_cs_silent; then
11707 exec 6>/dev/null
11708 ac_configure_extra_args="$ac_configure_extra_args --silent"
11711 _ACEOF
11712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11713 if \$ac_cs_recheck; then
11714 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11715 shift
11716 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11717 CONFIG_SHELL='$SHELL'
11718 export CONFIG_SHELL
11719 exec "\$@"
11722 _ACEOF
11723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11724 exec 5>>config.log
11726 echo
11727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11728 ## Running $as_me. ##
11729 _ASBOX
11730 $as_echo "$ac_log"
11731 } >&5
11733 _ACEOF
11734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11736 # INIT-COMMANDS
11738 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11741 # The HP-UX ksh and POSIX shell print the target directory to stdout
11742 # if CDPATH is set.
11743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11745 sed_quote_subst='$sed_quote_subst'
11746 double_quote_subst='$double_quote_subst'
11747 delay_variable_subst='$delay_variable_subst'
11748 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11749 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11750 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11751 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11752 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11753 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11754 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11755 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11756 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11757 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11758 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11759 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11760 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11761 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11762 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11763 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11764 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11765 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11766 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11767 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11768 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11769 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11770 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11771 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11772 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11773 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11774 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11775 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11776 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11777 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11778 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11779 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11780 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11781 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11782 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11783 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11784 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11785 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11786 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11787 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11788 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11789 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11790 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11791 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11792 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11793 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11794 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11795 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11796 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"`'
11797 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11798 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11799 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11800 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11801 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11802 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11803 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11804 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11805 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11806 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11807 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11808 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11809 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11810 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11811 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11812 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11813 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11814 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11815 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11816 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11817 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11818 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11819 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11820 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11821 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11822 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11823 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11824 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11825 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11826 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11827 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11828 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11829 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11830 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11831 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11832 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11833 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11834 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11835 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11836 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11837 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11838 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11839 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11840 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11841 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11842 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11843 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11844 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11845 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11846 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11847 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11848 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11849 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11850 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11851 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11852 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11853 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11854 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11855 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11856 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11857 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11858 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11859 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11860 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11861 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11862 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11863 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11864 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11865 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11866 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11867 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11869 LTCC='$LTCC'
11870 LTCFLAGS='$LTCFLAGS'
11871 compiler='$compiler_DEFAULT'
11873 # A function that is used when there is no print builtin or printf.
11874 func_fallback_echo ()
11876 eval 'cat <<_LTECHO_EOF
11878 _LTECHO_EOF'
11881 # Quote evaled strings.
11882 for var in SHELL \
11883 ECHO \
11884 SED \
11885 GREP \
11886 EGREP \
11887 FGREP \
11888 LD \
11889 NM \
11890 LN_S \
11891 lt_SP2NL \
11892 lt_NL2SP \
11893 reload_flag \
11894 OBJDUMP \
11895 deplibs_check_method \
11896 file_magic_cmd \
11897 AR \
11898 AR_FLAGS \
11899 STRIP \
11900 RANLIB \
11901 CC \
11902 CFLAGS \
11903 compiler \
11904 lt_cv_sys_global_symbol_pipe \
11905 lt_cv_sys_global_symbol_to_cdecl \
11906 lt_cv_sys_global_symbol_to_c_name_address \
11907 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11908 lt_prog_compiler_no_builtin_flag \
11909 lt_prog_compiler_wl \
11910 lt_prog_compiler_pic \
11911 lt_prog_compiler_static \
11912 lt_cv_prog_compiler_c_o \
11913 need_locks \
11914 DSYMUTIL \
11915 NMEDIT \
11916 LIPO \
11917 OTOOL \
11918 OTOOL64 \
11919 shrext_cmds \
11920 export_dynamic_flag_spec \
11921 whole_archive_flag_spec \
11922 compiler_needs_object \
11923 with_gnu_ld \
11924 allow_undefined_flag \
11925 no_undefined_flag \
11926 hardcode_libdir_flag_spec \
11927 hardcode_libdir_flag_spec_ld \
11928 hardcode_libdir_separator \
11929 fix_srcfile_path \
11930 exclude_expsyms \
11931 include_expsyms \
11932 file_list_spec \
11933 variables_saved_for_relink \
11934 libname_spec \
11935 library_names_spec \
11936 soname_spec \
11937 install_override_mode \
11938 finish_eval \
11939 old_striplib \
11940 striplib; do
11941 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11942 *[\\\\\\\`\\"\\\$]*)
11943 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11946 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11948 esac
11949 done
11951 # Double-quote double-evaled strings.
11952 for var in reload_cmds \
11953 old_postinstall_cmds \
11954 old_postuninstall_cmds \
11955 old_archive_cmds \
11956 extract_expsyms_cmds \
11957 old_archive_from_new_cmds \
11958 old_archive_from_expsyms_cmds \
11959 archive_cmds \
11960 archive_expsym_cmds \
11961 module_cmds \
11962 module_expsym_cmds \
11963 export_symbols_cmds \
11964 prelink_cmds \
11965 postinstall_cmds \
11966 postuninstall_cmds \
11967 finish_cmds \
11968 sys_lib_search_path_spec \
11969 sys_lib_dlsearch_path_spec; do
11970 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11971 *[\\\\\\\`\\"\\\$]*)
11972 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11975 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11977 esac
11978 done
11980 ac_aux_dir='$ac_aux_dir'
11981 xsi_shell='$xsi_shell'
11982 lt_shell_append='$lt_shell_append'
11984 # See if we are running on zsh, and set the options which allow our
11985 # commands through without removal of \ escapes INIT.
11986 if test -n "\${ZSH_VERSION+set}" ; then
11987 setopt NO_GLOB_SUBST
11991 PACKAGE='$PACKAGE'
11992 VERSION='$VERSION'
11993 TIMESTAMP='$TIMESTAMP'
11994 RM='$RM'
11995 ofile='$ofile'
12000 _ACEOF
12002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12004 # Handling of arguments.
12005 for ac_config_target in $ac_config_targets
12007 case $ac_config_target in
12008 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12009 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12010 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12011 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12013 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12014 esac
12015 done
12018 # If the user did not use the arguments to specify the items to instantiate,
12019 # then the envvar interface is used. Set only those that are not.
12020 # We use the long form for the default assignment because of an extremely
12021 # bizarre bug on SunOS 4.1.3.
12022 if $ac_need_defaults; then
12023 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12024 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12025 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12028 # Have a temporary directory for convenience. Make it in the build tree
12029 # simply because there is no reason against having it here, and in addition,
12030 # creating and moving files from /tmp can sometimes cause problems.
12031 # Hook for its removal unless debugging.
12032 # Note that there is a small window in which the directory will not be cleaned:
12033 # after its creation but before its name has been assigned to `$tmp'.
12034 $debug ||
12036 tmp=
12037 trap 'exit_status=$?
12038 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12040 trap 'as_fn_exit 1' 1 2 13 15
12042 # Create a (secure) tmp directory for tmp files.
12045 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12046 test -n "$tmp" && test -d "$tmp"
12047 } ||
12049 tmp=./conf$$-$RANDOM
12050 (umask 077 && mkdir "$tmp")
12051 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12053 # Set up the scripts for CONFIG_FILES section.
12054 # No need to generate them if there are no CONFIG_FILES.
12055 # This happens for instance with `./config.status config.h'.
12056 if test -n "$CONFIG_FILES"; then
12059 ac_cr=`echo X | tr X '\015'`
12060 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12061 # But we know of no other shell where ac_cr would be empty at this
12062 # point, so we can use a bashism as a fallback.
12063 if test "x$ac_cr" = x; then
12064 eval ac_cr=\$\'\\r\'
12066 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12067 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12068 ac_cs_awk_cr='\r'
12069 else
12070 ac_cs_awk_cr=$ac_cr
12073 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12074 _ACEOF
12078 echo "cat >conf$$subs.awk <<_ACEOF" &&
12079 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12080 echo "_ACEOF"
12081 } >conf$$subs.sh ||
12082 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12083 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12084 ac_delim='%!_!# '
12085 for ac_last_try in false false false false false :; do
12086 . ./conf$$subs.sh ||
12087 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12089 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12090 if test $ac_delim_n = $ac_delim_num; then
12091 break
12092 elif $ac_last_try; then
12093 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12094 else
12095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12097 done
12098 rm -f conf$$subs.sh
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12102 _ACEOF
12103 sed -n '
12105 s/^/S["/; s/!.*/"]=/
12108 s/^[^!]*!//
12109 :repl
12110 t repl
12111 s/'"$ac_delim"'$//
12112 t delim
12115 s/\(.\{148\}\).*/\1/
12116 t more1
12117 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12120 b repl
12121 :more1
12122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12125 s/.\{148\}//
12126 t nl
12127 :delim
12129 s/\(.\{148\}\).*/\1/
12130 t more2
12131 s/["\\]/\\&/g; s/^/"/; s/$/"/
12134 :more2
12135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12138 s/.\{148\}//
12139 t delim
12140 ' <conf$$subs.awk | sed '
12141 /^[^""]/{
12143 s/\n//
12145 ' >>$CONFIG_STATUS || ac_write_fail=1
12146 rm -f conf$$subs.awk
12147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12148 _ACAWK
12149 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12150 for (key in S) S_is_set[key] = 1
12151 FS = "\a"
12155 line = $ 0
12156 nfields = split(line, field, "@")
12157 substed = 0
12158 len = length(field[1])
12159 for (i = 2; i < nfields; i++) {
12160 key = field[i]
12161 keylen = length(key)
12162 if (S_is_set[key]) {
12163 value = S[key]
12164 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12165 len += length(value) + length(field[++i])
12166 substed = 1
12167 } else
12168 len += 1 + keylen
12171 print line
12174 _ACAWK
12175 _ACEOF
12176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12177 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12178 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12179 else
12181 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12182 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12183 _ACEOF
12185 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12186 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12187 # trailing colons and then remove the whole line if VPATH becomes empty
12188 # (actually we leave an empty line to preserve line numbers).
12189 if test "x$srcdir" = x.; then
12190 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12191 s/:*\$(srcdir):*/:/
12192 s/:*\${srcdir}:*/:/
12193 s/:*@srcdir@:*/:/
12194 s/^\([^=]*=[ ]*\):*/\1/
12195 s/:*$//
12196 s/^[^=]*=[ ]*$//
12200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12201 fi # test -n "$CONFIG_FILES"
12203 # Set up the scripts for CONFIG_HEADERS section.
12204 # No need to generate them if there are no CONFIG_HEADERS.
12205 # This happens for instance with `./config.status Makefile'.
12206 if test -n "$CONFIG_HEADERS"; then
12207 cat >"$tmp/defines.awk" <<\_ACAWK ||
12208 BEGIN {
12209 _ACEOF
12211 # Transform confdefs.h into an awk script `defines.awk', embedded as
12212 # here-document in config.status, that substitutes the proper values into
12213 # config.h.in to produce config.h.
12215 # Create a delimiter string that does not exist in confdefs.h, to ease
12216 # handling of long lines.
12217 ac_delim='%!_!# '
12218 for ac_last_try in false false :; do
12219 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12220 if test -z "$ac_t"; then
12221 break
12222 elif $ac_last_try; then
12223 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12224 else
12225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12227 done
12229 # For the awk script, D is an array of macro values keyed by name,
12230 # likewise P contains macro parameters if any. Preserve backslash
12231 # newline sequences.
12233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12234 sed -n '
12235 s/.\{148\}/&'"$ac_delim"'/g
12236 t rset
12237 :rset
12238 s/^[ ]*#[ ]*define[ ][ ]*/ /
12239 t def
12241 :def
12242 s/\\$//
12243 t bsnl
12244 s/["\\]/\\&/g
12245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12246 D["\1"]=" \3"/p
12247 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12249 :bsnl
12250 s/["\\]/\\&/g
12251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12252 D["\1"]=" \3\\\\\\n"\\/p
12253 t cont
12254 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12255 t cont
12257 :cont
12259 s/.\{148\}/&'"$ac_delim"'/g
12260 t clear
12261 :clear
12262 s/\\$//
12263 t bsnlc
12264 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12266 :bsnlc
12267 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12268 b cont
12269 ' <confdefs.h | sed '
12270 s/'"$ac_delim"'/"\\\
12271 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12274 for (key in D) D_is_set[key] = 1
12275 FS = "\a"
12277 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12278 line = \$ 0
12279 split(line, arg, " ")
12280 if (arg[1] == "#") {
12281 defundef = arg[2]
12282 mac1 = arg[3]
12283 } else {
12284 defundef = substr(arg[1], 2)
12285 mac1 = arg[2]
12287 split(mac1, mac2, "(") #)
12288 macro = mac2[1]
12289 prefix = substr(line, 1, index(line, defundef) - 1)
12290 if (D_is_set[macro]) {
12291 # Preserve the white space surrounding the "#".
12292 print prefix "define", macro P[macro] D[macro]
12293 next
12294 } else {
12295 # Replace #undef with comments. This is necessary, for example,
12296 # in the case of _POSIX_SOURCE, which is predefined and required
12297 # on some systems where configure will not decide to define it.
12298 if (defundef == "undef") {
12299 print "/*", prefix defundef, macro, "*/"
12300 next
12304 { print }
12305 _ACAWK
12306 _ACEOF
12307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12308 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12309 fi # test -n "$CONFIG_HEADERS"
12312 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12313 shift
12314 for ac_tag
12316 case $ac_tag in
12317 :[FHLC]) ac_mode=$ac_tag; continue;;
12318 esac
12319 case $ac_mode$ac_tag in
12320 :[FHL]*:*);;
12321 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12322 :[FH]-) ac_tag=-:-;;
12323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12324 esac
12325 ac_save_IFS=$IFS
12326 IFS=:
12327 set x $ac_tag
12328 IFS=$ac_save_IFS
12329 shift
12330 ac_file=$1
12331 shift
12333 case $ac_mode in
12334 :L) ac_source=$1;;
12335 :[FH])
12336 ac_file_inputs=
12337 for ac_f
12339 case $ac_f in
12340 -) ac_f="$tmp/stdin";;
12341 *) # Look for the file first in the build tree, then in the source tree
12342 # (if the path is not absolute). The absolute path cannot be DOS-style,
12343 # because $ac_f cannot contain `:'.
12344 test -f "$ac_f" ||
12345 case $ac_f in
12346 [\\/$]*) false;;
12347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12348 esac ||
12349 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12350 esac
12351 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12352 as_fn_append ac_file_inputs " '$ac_f'"
12353 done
12355 # Let's still pretend it is `configure' which instantiates (i.e., don't
12356 # use $as_me), people would be surprised to read:
12357 # /* config.h. Generated by config.status. */
12358 configure_input='Generated from '`
12359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12360 `' by configure.'
12361 if test x"$ac_file" != x-; then
12362 configure_input="$ac_file. $configure_input"
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12364 $as_echo "$as_me: creating $ac_file" >&6;}
12366 # Neutralize special characters interpreted by sed in replacement strings.
12367 case $configure_input in #(
12368 *\&* | *\|* | *\\* )
12369 ac_sed_conf_input=`$as_echo "$configure_input" |
12370 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12371 *) ac_sed_conf_input=$configure_input;;
12372 esac
12374 case $ac_tag in
12375 *:-:* | *:-) cat >"$tmp/stdin" \
12376 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12377 esac
12379 esac
12381 ac_dir=`$as_dirname -- "$ac_file" ||
12382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12383 X"$ac_file" : 'X\(//\)[^/]' \| \
12384 X"$ac_file" : 'X\(//\)$' \| \
12385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12386 $as_echo X"$ac_file" |
12387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12388 s//\1/
12391 /^X\(\/\/\)[^/].*/{
12392 s//\1/
12395 /^X\(\/\/\)$/{
12396 s//\1/
12399 /^X\(\/\).*/{
12400 s//\1/
12403 s/.*/./; q'`
12404 as_dir="$ac_dir"; as_fn_mkdir_p
12405 ac_builddir=.
12407 case "$ac_dir" in
12408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12411 # A ".." for each directory in $ac_dir_suffix.
12412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12413 case $ac_top_builddir_sub in
12414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12416 esac ;;
12417 esac
12418 ac_abs_top_builddir=$ac_pwd
12419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12420 # for backward compatibility:
12421 ac_top_builddir=$ac_top_build_prefix
12423 case $srcdir in
12424 .) # We are building in place.
12425 ac_srcdir=.
12426 ac_top_srcdir=$ac_top_builddir_sub
12427 ac_abs_top_srcdir=$ac_pwd ;;
12428 [\\/]* | ?:[\\/]* ) # Absolute name.
12429 ac_srcdir=$srcdir$ac_dir_suffix;
12430 ac_top_srcdir=$srcdir
12431 ac_abs_top_srcdir=$srcdir ;;
12432 *) # Relative name.
12433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12434 ac_top_srcdir=$ac_top_build_prefix$srcdir
12435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12436 esac
12437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12440 case $ac_mode in
12443 # CONFIG_FILE
12446 case $INSTALL in
12447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12449 esac
12450 ac_MKDIR_P=$MKDIR_P
12451 case $MKDIR_P in
12452 [\\/$]* | ?:[\\/]* ) ;;
12453 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12454 esac
12455 _ACEOF
12457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12458 # If the template does not know about datarootdir, expand it.
12459 # FIXME: This hack should be removed a few years after 2.60.
12460 ac_datarootdir_hack=; ac_datarootdir_seen=
12461 ac_sed_dataroot='
12462 /datarootdir/ {
12466 /@datadir@/p
12467 /@docdir@/p
12468 /@infodir@/p
12469 /@localedir@/p
12470 /@mandir@/p'
12471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12472 *datarootdir*) ac_datarootdir_seen=yes;;
12473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12476 _ACEOF
12477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12478 ac_datarootdir_hack='
12479 s&@datadir@&$datadir&g
12480 s&@docdir@&$docdir&g
12481 s&@infodir@&$infodir&g
12482 s&@localedir@&$localedir&g
12483 s&@mandir@&$mandir&g
12484 s&\\\${datarootdir}&$datarootdir&g' ;;
12485 esac
12486 _ACEOF
12488 # Neutralize VPATH when `$srcdir' = `.'.
12489 # Shell code in configure.ac might set extrasub.
12490 # FIXME: do we really want to maintain this feature?
12491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492 ac_sed_extra="$ac_vpsub
12493 $extrasub
12494 _ACEOF
12495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12498 s|@configure_input@|$ac_sed_conf_input|;t t
12499 s&@top_builddir@&$ac_top_builddir_sub&;t t
12500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12501 s&@srcdir@&$ac_srcdir&;t t
12502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12503 s&@top_srcdir@&$ac_top_srcdir&;t t
12504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12505 s&@builddir@&$ac_builddir&;t t
12506 s&@abs_builddir@&$ac_abs_builddir&;t t
12507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12508 s&@INSTALL@&$ac_INSTALL&;t t
12509 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12510 $ac_datarootdir_hack
12512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12513 || as_fn_error "could not create $ac_file" "$LINENO" 5
12515 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12516 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12519 which seems to be undefined. Please make sure it is defined." >&5
12520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12521 which seems to be undefined. Please make sure it is defined." >&2;}
12523 rm -f "$tmp/stdin"
12524 case $ac_file in
12525 -) cat "$tmp/out" && rm -f "$tmp/out";;
12526 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12527 esac \
12528 || as_fn_error "could not create $ac_file" "$LINENO" 5
12532 # CONFIG_HEADER
12534 if test x"$ac_file" != x-; then
12536 $as_echo "/* $configure_input */" \
12537 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12538 } >"$tmp/config.h" \
12539 || as_fn_error "could not create $ac_file" "$LINENO" 5
12540 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12542 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12543 else
12544 rm -f "$ac_file"
12545 mv "$tmp/config.h" "$ac_file" \
12546 || as_fn_error "could not create $ac_file" "$LINENO" 5
12548 else
12549 $as_echo "/* $configure_input */" \
12550 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12551 || as_fn_error "could not create -" "$LINENO" 5
12553 # Compute "$ac_file"'s index in $config_headers.
12554 _am_arg="$ac_file"
12555 _am_stamp_count=1
12556 for _am_header in $config_headers :; do
12557 case $_am_header in
12558 $_am_arg | $_am_arg:* )
12559 break ;;
12561 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12562 esac
12563 done
12564 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12565 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12566 X"$_am_arg" : 'X\(//\)[^/]' \| \
12567 X"$_am_arg" : 'X\(//\)$' \| \
12568 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12569 $as_echo X"$_am_arg" |
12570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12571 s//\1/
12574 /^X\(\/\/\)[^/].*/{
12575 s//\1/
12578 /^X\(\/\/\)$/{
12579 s//\1/
12582 /^X\(\/\).*/{
12583 s//\1/
12586 s/.*/./; q'`/stamp-h$_am_stamp_count
12589 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12590 $as_echo "$as_me: executing $ac_file commands" >&6;}
12592 esac
12595 case $ac_file$ac_mode in
12596 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12597 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12598 # are listed without --file. Let's play safe and only enable the eval
12599 # if we detect the quoting.
12600 case $CONFIG_FILES in
12601 *\'*) eval set x "$CONFIG_FILES" ;;
12602 *) set x $CONFIG_FILES ;;
12603 esac
12604 shift
12605 for mf
12607 # Strip MF so we end up with the name of the file.
12608 mf=`echo "$mf" | sed -e 's/:.*$//'`
12609 # Check whether this is an Automake generated Makefile or not.
12610 # We used to match only the files named `Makefile.in', but
12611 # some people rename them; so instead we look at the file content.
12612 # Grep'ing the first line is not enough: some people post-process
12613 # each Makefile.in and add a new line on top of each file to say so.
12614 # Grep'ing the whole file is not good either: AIX grep has a line
12615 # limit of 2048, but all sed's we know have understand at least 4000.
12616 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12617 dirpart=`$as_dirname -- "$mf" ||
12618 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12619 X"$mf" : 'X\(//\)[^/]' \| \
12620 X"$mf" : 'X\(//\)$' \| \
12621 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12622 $as_echo X"$mf" |
12623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12624 s//\1/
12627 /^X\(\/\/\)[^/].*/{
12628 s//\1/
12631 /^X\(\/\/\)$/{
12632 s//\1/
12635 /^X\(\/\).*/{
12636 s//\1/
12639 s/.*/./; q'`
12640 else
12641 continue
12643 # Extract the definition of DEPDIR, am__include, and am__quote
12644 # from the Makefile without running `make'.
12645 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12646 test -z "$DEPDIR" && continue
12647 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12648 test -z "am__include" && continue
12649 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12650 # When using ansi2knr, U may be empty or an underscore; expand it
12651 U=`sed -n 's/^U = //p' < "$mf"`
12652 # Find all dependency output files, they are included files with
12653 # $(DEPDIR) in their names. We invoke sed twice because it is the
12654 # simplest approach to changing $(DEPDIR) to its actual value in the
12655 # expansion.
12656 for file in `sed -n "
12657 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12658 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12659 # Make sure the directory exists.
12660 test -f "$dirpart/$file" && continue
12661 fdir=`$as_dirname -- "$file" ||
12662 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12663 X"$file" : 'X\(//\)[^/]' \| \
12664 X"$file" : 'X\(//\)$' \| \
12665 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12666 $as_echo X"$file" |
12667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12668 s//\1/
12671 /^X\(\/\/\)[^/].*/{
12672 s//\1/
12675 /^X\(\/\/\)$/{
12676 s//\1/
12679 /^X\(\/\).*/{
12680 s//\1/
12683 s/.*/./; q'`
12684 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12685 # echo "creating $dirpart/$file"
12686 echo '# dummy' > "$dirpart/$file"
12687 done
12688 done
12691 "libtool":C)
12693 # See if we are running on zsh, and set the options which allow our
12694 # commands through without removal of \ escapes.
12695 if test -n "${ZSH_VERSION+set}" ; then
12696 setopt NO_GLOB_SUBST
12699 cfgfile="${ofile}T"
12700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12701 $RM "$cfgfile"
12703 cat <<_LT_EOF >> "$cfgfile"
12704 #! $SHELL
12706 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12707 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12711 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12712 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12713 # Written by Gordon Matzigkeit, 1996
12715 # This file is part of GNU Libtool.
12717 # GNU Libtool is free software; you can redistribute it and/or
12718 # modify it under the terms of the GNU General Public License as
12719 # published by the Free Software Foundation; either version 2 of
12720 # the License, or (at your option) any later version.
12722 # As a special exception to the GNU General Public License,
12723 # if you distribute this file as part of a program or library that
12724 # is built using GNU Libtool, you may include this file under the
12725 # same distribution terms that you use for the rest of that program.
12727 # GNU Libtool is distributed in the hope that it will be useful,
12728 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12730 # GNU General Public License for more details.
12732 # You should have received a copy of the GNU General Public License
12733 # along with GNU Libtool; see the file COPYING. If not, a copy
12734 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12735 # obtained by writing to the Free Software Foundation, Inc.,
12736 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12739 # The names of the tagged configurations supported by this script.
12740 available_tags=""
12742 # ### BEGIN LIBTOOL CONFIG
12744 # Which release of libtool.m4 was used?
12745 macro_version=$macro_version
12746 macro_revision=$macro_revision
12748 # Whether or not to build shared libraries.
12749 build_libtool_libs=$enable_shared
12751 # Whether or not to build static libraries.
12752 build_old_libs=$enable_static
12754 # What type of objects to build.
12755 pic_mode=$pic_mode
12757 # Whether or not to optimize for fast installation.
12758 fast_install=$enable_fast_install
12760 # Shell to use when invoking shell scripts.
12761 SHELL=$lt_SHELL
12763 # An echo program that protects backslashes.
12764 ECHO=$lt_ECHO
12766 # The host system.
12767 host_alias=$host_alias
12768 host=$host
12769 host_os=$host_os
12771 # The build system.
12772 build_alias=$build_alias
12773 build=$build
12774 build_os=$build_os
12776 # A sed program that does not truncate output.
12777 SED=$lt_SED
12779 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12780 Xsed="\$SED -e 1s/^X//"
12782 # A grep program that handles long lines.
12783 GREP=$lt_GREP
12785 # An ERE matcher.
12786 EGREP=$lt_EGREP
12788 # A literal string matcher.
12789 FGREP=$lt_FGREP
12791 # A BSD- or MS-compatible name lister.
12792 NM=$lt_NM
12794 # Whether we need soft or hard links.
12795 LN_S=$lt_LN_S
12797 # What is the maximum length of a command?
12798 max_cmd_len=$max_cmd_len
12800 # Object file suffix (normally "o").
12801 objext=$ac_objext
12803 # Executable file suffix (normally "").
12804 exeext=$exeext
12806 # whether the shell understands "unset".
12807 lt_unset=$lt_unset
12809 # turn spaces into newlines.
12810 SP2NL=$lt_lt_SP2NL
12812 # turn newlines into spaces.
12813 NL2SP=$lt_lt_NL2SP
12815 # An object symbol dumper.
12816 OBJDUMP=$lt_OBJDUMP
12818 # Method to check whether dependent libraries are shared objects.
12819 deplibs_check_method=$lt_deplibs_check_method
12821 # Command to use when deplibs_check_method == "file_magic".
12822 file_magic_cmd=$lt_file_magic_cmd
12824 # The archiver.
12825 AR=$lt_AR
12826 AR_FLAGS=$lt_AR_FLAGS
12828 # A symbol stripping program.
12829 STRIP=$lt_STRIP
12831 # Commands used to install an old-style archive.
12832 RANLIB=$lt_RANLIB
12833 old_postinstall_cmds=$lt_old_postinstall_cmds
12834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12836 # Whether to use a lock for old archive extraction.
12837 lock_old_archive_extraction=$lock_old_archive_extraction
12839 # A C compiler.
12840 LTCC=$lt_CC
12842 # LTCC compiler flags.
12843 LTCFLAGS=$lt_CFLAGS
12845 # Take the output of nm and produce a listing of raw symbols and C names.
12846 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12848 # Transform the output of nm in a proper C declaration.
12849 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12851 # Transform the output of nm in a C name address pair.
12852 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12854 # Transform the output of nm in a C name address pair when lib prefix is needed.
12855 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12857 # The name of the directory that contains temporary libtool files.
12858 objdir=$objdir
12860 # Used to examine libraries when file_magic_cmd begins with "file".
12861 MAGIC_CMD=$MAGIC_CMD
12863 # Must we lock files when doing compilation?
12864 need_locks=$lt_need_locks
12866 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12867 DSYMUTIL=$lt_DSYMUTIL
12869 # Tool to change global to local symbols on Mac OS X.
12870 NMEDIT=$lt_NMEDIT
12872 # Tool to manipulate fat objects and archives on Mac OS X.
12873 LIPO=$lt_LIPO
12875 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12876 OTOOL=$lt_OTOOL
12878 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12879 OTOOL64=$lt_OTOOL64
12881 # Old archive suffix (normally "a").
12882 libext=$libext
12884 # Shared library suffix (normally ".so").
12885 shrext_cmds=$lt_shrext_cmds
12887 # The commands to extract the exported symbol list from a shared archive.
12888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12890 # Variables whose values should be saved in libtool wrapper scripts and
12891 # restored at link time.
12892 variables_saved_for_relink=$lt_variables_saved_for_relink
12894 # Do we need the "lib" prefix for modules?
12895 need_lib_prefix=$need_lib_prefix
12897 # Do we need a version for libraries?
12898 need_version=$need_version
12900 # Library versioning type.
12901 version_type=$version_type
12903 # Shared library runtime path variable.
12904 runpath_var=$runpath_var
12906 # Shared library path variable.
12907 shlibpath_var=$shlibpath_var
12909 # Is shlibpath searched before the hard-coded library search path?
12910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12912 # Format of library name prefix.
12913 libname_spec=$lt_libname_spec
12915 # List of archive names. First name is the real one, the rest are links.
12916 # The last name is the one that the linker finds with -lNAME
12917 library_names_spec=$lt_library_names_spec
12919 # The coded name of the library, if different from the real name.
12920 soname_spec=$lt_soname_spec
12922 # Permission mode override for installation of shared libraries.
12923 install_override_mode=$lt_install_override_mode
12925 # Command to use after installation of a shared archive.
12926 postinstall_cmds=$lt_postinstall_cmds
12928 # Command to use after uninstallation of a shared archive.
12929 postuninstall_cmds=$lt_postuninstall_cmds
12931 # Commands used to finish a libtool library installation in a directory.
12932 finish_cmds=$lt_finish_cmds
12934 # As "finish_cmds", except a single script fragment to be evaled but
12935 # not shown.
12936 finish_eval=$lt_finish_eval
12938 # Whether we should hardcode library paths into libraries.
12939 hardcode_into_libs=$hardcode_into_libs
12941 # Compile-time system search path for libraries.
12942 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12944 # Run-time system search path for libraries.
12945 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12947 # Whether dlopen is supported.
12948 dlopen_support=$enable_dlopen
12950 # Whether dlopen of programs is supported.
12951 dlopen_self=$enable_dlopen_self
12953 # Whether dlopen of statically linked programs is supported.
12954 dlopen_self_static=$enable_dlopen_self_static
12956 # Commands to strip libraries.
12957 old_striplib=$lt_old_striplib
12958 striplib=$lt_striplib
12961 # The linker used to build libraries.
12962 LD=$lt_LD
12964 # How to create reloadable object files.
12965 reload_flag=$lt_reload_flag
12966 reload_cmds=$lt_reload_cmds
12968 # Commands used to build an old-style archive.
12969 old_archive_cmds=$lt_old_archive_cmds
12971 # A language specific compiler.
12972 CC=$lt_compiler
12974 # Is the compiler the GNU compiler?
12975 with_gcc=$GCC
12977 # Compiler flag to turn off builtin functions.
12978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12980 # How to pass a linker flag through the compiler.
12981 wl=$lt_lt_prog_compiler_wl
12983 # Additional compiler flags for building library objects.
12984 pic_flag=$lt_lt_prog_compiler_pic
12986 # Compiler flag to prevent dynamic linking.
12987 link_static_flag=$lt_lt_prog_compiler_static
12989 # Does compiler simultaneously support -c and -o options?
12990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12992 # Whether or not to add -lc for building shared libraries.
12993 build_libtool_need_lc=$archive_cmds_need_lc
12995 # Whether or not to disallow shared libs when runtime libs are static.
12996 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12998 # Compiler flag to allow reflexive dlopens.
12999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13001 # Compiler flag to generate shared objects directly from archives.
13002 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13004 # Whether the compiler copes with passing no objects directly.
13005 compiler_needs_object=$lt_compiler_needs_object
13007 # Create an old-style archive from a shared archive.
13008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13010 # Create a temporary old-style archive to link instead of a shared archive.
13011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13013 # Commands used to build a shared archive.
13014 archive_cmds=$lt_archive_cmds
13015 archive_expsym_cmds=$lt_archive_expsym_cmds
13017 # Commands used to build a loadable module if different from building
13018 # a shared archive.
13019 module_cmds=$lt_module_cmds
13020 module_expsym_cmds=$lt_module_expsym_cmds
13022 # Whether we are building with GNU ld or not.
13023 with_gnu_ld=$lt_with_gnu_ld
13025 # Flag that allows shared libraries with undefined symbols to be built.
13026 allow_undefined_flag=$lt_allow_undefined_flag
13028 # Flag that enforces no undefined symbols.
13029 no_undefined_flag=$lt_no_undefined_flag
13031 # Flag to hardcode \$libdir into a binary during linking.
13032 # This must work even if \$libdir does not exist
13033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13035 # If ld is used when linking, flag to hardcode \$libdir into a binary
13036 # during linking. This must work even if \$libdir does not exist.
13037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13039 # Whether we need a single "-rpath" flag with a separated argument.
13040 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13042 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13043 # DIR into the resulting binary.
13044 hardcode_direct=$hardcode_direct
13046 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13047 # DIR into the resulting binary and the resulting library dependency is
13048 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13049 # library is relocated.
13050 hardcode_direct_absolute=$hardcode_direct_absolute
13052 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13053 # into the resulting binary.
13054 hardcode_minus_L=$hardcode_minus_L
13056 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13057 # into the resulting binary.
13058 hardcode_shlibpath_var=$hardcode_shlibpath_var
13060 # Set to "yes" if building a shared library automatically hardcodes DIR
13061 # into the library and all subsequent libraries and executables linked
13062 # against it.
13063 hardcode_automatic=$hardcode_automatic
13065 # Set to yes if linker adds runtime paths of dependent libraries
13066 # to runtime path list.
13067 inherit_rpath=$inherit_rpath
13069 # Whether libtool must link a program against all its dependency libraries.
13070 link_all_deplibs=$link_all_deplibs
13072 # Fix the shell variable \$srcfile for the compiler.
13073 fix_srcfile_path=$lt_fix_srcfile_path
13075 # Set to "yes" if exported symbols are required.
13076 always_export_symbols=$always_export_symbols
13078 # The commands to list exported symbols.
13079 export_symbols_cmds=$lt_export_symbols_cmds
13081 # Symbols that should not be listed in the preloaded symbols.
13082 exclude_expsyms=$lt_exclude_expsyms
13084 # Symbols that must always be exported.
13085 include_expsyms=$lt_include_expsyms
13087 # Commands necessary for linking programs (against libraries) with templates.
13088 prelink_cmds=$lt_prelink_cmds
13090 # Specify filename containing input files.
13091 file_list_spec=$lt_file_list_spec
13093 # How to hardcode a shared library path into an executable.
13094 hardcode_action=$hardcode_action
13096 # ### END LIBTOOL CONFIG
13098 _LT_EOF
13100 case $host_os in
13101 aix3*)
13102 cat <<\_LT_EOF >> "$cfgfile"
13103 # AIX sometimes has problems with the GCC collect2 program. For some
13104 # reason, if we set the COLLECT_NAMES environment variable, the problems
13105 # vanish in a puff of smoke.
13106 if test "X${COLLECT_NAMES+set}" != Xset; then
13107 COLLECT_NAMES=
13108 export COLLECT_NAMES
13110 _LT_EOF
13112 esac
13115 ltmain="$ac_aux_dir/ltmain.sh"
13118 # We use sed instead of cat because bash on DJGPP gets confused if
13119 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13120 # text mode, it properly converts lines to CR/LF. This bash problem
13121 # is reportedly fixed, but why not run on old versions too?
13122 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13123 || (rm -f "$cfgfile"; exit 1)
13125 case $xsi_shell in
13126 yes)
13127 cat << \_LT_EOF >> "$cfgfile"
13129 # func_dirname file append nondir_replacement
13130 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13131 # otherwise set result to NONDIR_REPLACEMENT.
13132 func_dirname ()
13134 case ${1} in
13135 */*) func_dirname_result="${1%/*}${2}" ;;
13136 * ) func_dirname_result="${3}" ;;
13137 esac
13140 # func_basename file
13141 func_basename ()
13143 func_basename_result="${1##*/}"
13146 # func_dirname_and_basename file append nondir_replacement
13147 # perform func_basename and func_dirname in a single function
13148 # call:
13149 # dirname: Compute the dirname of FILE. If nonempty,
13150 # add APPEND to the result, otherwise set result
13151 # to NONDIR_REPLACEMENT.
13152 # value returned in "$func_dirname_result"
13153 # basename: Compute filename of FILE.
13154 # value retuned in "$func_basename_result"
13155 # Implementation must be kept synchronized with func_dirname
13156 # and func_basename. For efficiency, we do not delegate to
13157 # those functions but instead duplicate the functionality here.
13158 func_dirname_and_basename ()
13160 case ${1} in
13161 */*) func_dirname_result="${1%/*}${2}" ;;
13162 * ) func_dirname_result="${3}" ;;
13163 esac
13164 func_basename_result="${1##*/}"
13167 # func_stripname prefix suffix name
13168 # strip PREFIX and SUFFIX off of NAME.
13169 # PREFIX and SUFFIX must not contain globbing or regex special
13170 # characters, hashes, percent signs, but SUFFIX may contain a leading
13171 # dot (in which case that matches only a dot).
13172 func_stripname ()
13174 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13175 # positional parameters, so assign one to ordinary parameter first.
13176 func_stripname_result=${3}
13177 func_stripname_result=${func_stripname_result#"${1}"}
13178 func_stripname_result=${func_stripname_result%"${2}"}
13181 # func_opt_split
13182 func_opt_split ()
13184 func_opt_split_opt=${1%%=*}
13185 func_opt_split_arg=${1#*=}
13188 # func_lo2o object
13189 func_lo2o ()
13191 case ${1} in
13192 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13193 *) func_lo2o_result=${1} ;;
13194 esac
13197 # func_xform libobj-or-source
13198 func_xform ()
13200 func_xform_result=${1%.*}.lo
13203 # func_arith arithmetic-term...
13204 func_arith ()
13206 func_arith_result=$(( $* ))
13209 # func_len string
13210 # STRING may not start with a hyphen.
13211 func_len ()
13213 func_len_result=${#1}
13216 _LT_EOF
13218 *) # Bourne compatible functions.
13219 cat << \_LT_EOF >> "$cfgfile"
13221 # func_dirname file append nondir_replacement
13222 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13223 # otherwise set result to NONDIR_REPLACEMENT.
13224 func_dirname ()
13226 # Extract subdirectory from the argument.
13227 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13228 if test "X$func_dirname_result" = "X${1}"; then
13229 func_dirname_result="${3}"
13230 else
13231 func_dirname_result="$func_dirname_result${2}"
13235 # func_basename file
13236 func_basename ()
13238 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13242 # func_stripname prefix suffix name
13243 # strip PREFIX and SUFFIX off of NAME.
13244 # PREFIX and SUFFIX must not contain globbing or regex special
13245 # characters, hashes, percent signs, but SUFFIX may contain a leading
13246 # dot (in which case that matches only a dot).
13247 # func_strip_suffix prefix name
13248 func_stripname ()
13250 case ${2} in
13251 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13252 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13253 esac
13256 # sed scripts:
13257 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13258 my_sed_long_arg='1s/^-[^=]*=//'
13260 # func_opt_split
13261 func_opt_split ()
13263 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13264 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13267 # func_lo2o object
13268 func_lo2o ()
13270 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13273 # func_xform libobj-or-source
13274 func_xform ()
13276 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13279 # func_arith arithmetic-term...
13280 func_arith ()
13282 func_arith_result=`expr "$@"`
13285 # func_len string
13286 # STRING may not start with a hyphen.
13287 func_len ()
13289 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13292 _LT_EOF
13293 esac
13295 case $lt_shell_append in
13296 yes)
13297 cat << \_LT_EOF >> "$cfgfile"
13299 # func_append var value
13300 # Append VALUE to the end of shell variable VAR.
13301 func_append ()
13303 eval "$1+=\$2"
13305 _LT_EOF
13308 cat << \_LT_EOF >> "$cfgfile"
13310 # func_append var value
13311 # Append VALUE to the end of shell variable VAR.
13312 func_append ()
13314 eval "$1=\$$1\$2"
13317 _LT_EOF
13319 esac
13322 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13323 || (rm -f "$cfgfile"; exit 1)
13325 mv -f "$cfgfile" "$ofile" ||
13326 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13327 chmod +x "$ofile"
13331 esac
13332 done # for ac_tag
13335 as_fn_exit 0
13336 _ACEOF
13337 ac_clean_files=$ac_clean_files_save
13339 test $ac_write_fail = 0 ||
13340 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13343 # configure is writing to config.log, and then calls config.status.
13344 # config.status does its own redirection, appending to config.log.
13345 # Unfortunately, on DOS this fails, as config.log is still kept open
13346 # by configure, so config.status won't be able to write to it; its
13347 # output is simply discarded. So we exec the FD to /dev/null,
13348 # effectively closing config.log, so it can be properly (re)opened and
13349 # appended to by config.status. When coming back to configure, we
13350 # need to make the FD available again.
13351 if test "$no_create" != yes; then
13352 ac_cs_success=:
13353 ac_config_status_args=
13354 test "$silent" = yes &&
13355 ac_config_status_args="$ac_config_status_args --quiet"
13356 exec 5>/dev/null
13357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13358 exec 5>>config.log
13359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13360 # would make configure fail if this is the last instruction.
13361 $ac_cs_success || as_fn_exit $?
13363 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13365 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}