Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / lto-plugin / configure
blob154c5bf23dab212e1ee628adaade8347eaf235b6
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
606 OTOOL64
607 OTOOL
608 LIPO
609 NMEDIT
610 DSYMUTIL
611 RANLIB
613 OBJDUMP
614 LN_S
616 ac_ct_DUMPBIN
617 DUMPBIN
619 FGREP
620 EGREP
621 GREP
623 LIBTOOL
624 am__fastdepCC_FALSE
625 am__fastdepCC_TRUE
626 CCDEPMODE
627 AMDEPBACKSLASH
628 AMDEP_FALSE
629 AMDEP_TRUE
630 am__quote
631 am__include
632 DEPDIR
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
640 MAINT
641 MAINTAINER_MODE_FALSE
642 MAINTAINER_MODE_TRUE
643 am__untar
644 am__tar
645 AMTAR
646 am__leading_dot
647 SET_MAKE
649 mkdir_p
650 MKDIR_P
651 INSTALL_STRIP_PROGRAM
652 STRIP
653 install_sh
654 MAKEINFO
655 AUTOHEADER
656 AUTOMAKE
657 AUTOCONF
658 ACLOCAL
659 VERSION
660 PACKAGE
661 CYGPATH_W
662 am__isrc
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 target_subdir
667 host_subdir
668 build_subdir
669 build_libsubdir
670 target_os
671 target_vendor
672 target_cpu
673 target
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 target_alias
683 host_alias
684 build_alias
685 LIBS
686 ECHO_T
687 ECHO_N
688 ECHO_C
689 DEFS
690 mandir
691 localedir
692 libdir
693 psdir
694 pdfdir
695 dvidir
696 htmldir
697 infodir
698 docdir
699 oldincludedir
700 includedir
701 localstatedir
702 sharedstatedir
703 sysconfdir
704 datadir
705 datarootdir
706 libexecdir
707 sbindir
708 bindir
709 program_transform_name
710 prefix
711 exec_prefix
712 PACKAGE_URL
713 PACKAGE_BUGREPORT
714 PACKAGE_STRING
715 PACKAGE_VERSION
716 PACKAGE_TARNAME
717 PACKAGE_NAME
718 PATH_SEPARATOR
719 SHELL'
720 ac_subst_files=''
721 ac_user_opts='
722 enable_option_checking
723 with_build_libsubdir
724 enable_maintainer_mode
725 enable_dependency_tracking
726 enable_largefile
727 enable_shared
728 enable_static
729 with_pic
730 enable_fast_install
731 with_gnu_ld
732 enable_libtool_lock
734 ac_precious_vars='build_alias
735 host_alias
736 target_alias
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP'
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 ac_unrecognized_opts=
749 ac_unrecognized_sep=
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
793 ac_prev=
794 ac_dashdash=
795 for ac_option
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
800 ac_prev=
801 continue
804 case $ac_option in
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 *) ac_optarg=yes ;;
807 esac
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
813 ac_dashdash=yes ;;
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
816 ac_prev=bindir ;;
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 bindir=$ac_optarg ;;
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
832 --config-cache | -C)
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
836 ac_prev=datadir ;;
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
856 "enable_$ac_useropt"
857 "*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
861 eval enable_$ac_useropt=no ;;
863 -docdir | --docdir | --docdi | --doc | --do)
864 ac_prev=docdir ;;
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 docdir=$ac_optarg ;;
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869 ac_prev=dvidir ;;
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 dvidir=$ac_optarg ;;
873 -enable-* | --enable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
882 "enable_$ac_useropt"
883 "*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=\$ac_optarg ;;
889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891 | --exec | --exe | --ex)
892 ac_prev=exec_prefix ;;
893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895 | --exec=* | --exe=* | --ex=*)
896 exec_prefix=$ac_optarg ;;
898 -gas | --gas | --ga | --g)
899 # Obsolete; use --with-gas.
900 with_gas=yes ;;
902 -help | --help | --hel | --he | -h)
903 ac_init_help=long ;;
904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905 ac_init_help=recursive ;;
906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907 ac_init_help=short ;;
909 -host | --host | --hos | --ho)
910 ac_prev=host_alias ;;
911 -host=* | --host=* | --hos=* | --ho=*)
912 host_alias=$ac_optarg ;;
914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915 ac_prev=htmldir ;;
916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917 | --ht=*)
918 htmldir=$ac_optarg ;;
920 -includedir | --includedir | --includedi | --included | --include \
921 | --includ | --inclu | --incl | --inc)
922 ac_prev=includedir ;;
923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924 | --includ=* | --inclu=* | --incl=* | --inc=*)
925 includedir=$ac_optarg ;;
927 -infodir | --infodir | --infodi | --infod | --info | --inf)
928 ac_prev=infodir ;;
929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930 infodir=$ac_optarg ;;
932 -libdir | --libdir | --libdi | --libd)
933 ac_prev=libdir ;;
934 -libdir=* | --libdir=* | --libdi=* | --libd=*)
935 libdir=$ac_optarg ;;
937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938 | --libexe | --libex | --libe)
939 ac_prev=libexecdir ;;
940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941 | --libexe=* | --libex=* | --libe=*)
942 libexecdir=$ac_optarg ;;
944 -localedir | --localedir | --localedi | --localed | --locale)
945 ac_prev=localedir ;;
946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947 localedir=$ac_optarg ;;
949 -localstatedir | --localstatedir | --localstatedi | --localstated \
950 | --localstate | --localstat | --localsta | --localst | --locals)
951 ac_prev=localstatedir ;;
952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954 localstatedir=$ac_optarg ;;
956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957 ac_prev=mandir ;;
958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959 mandir=$ac_optarg ;;
961 -nfp | --nfp | --nf)
962 # Obsolete; use --without-fp.
963 with_fp=no ;;
965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966 | --no-cr | --no-c | -n)
967 no_create=yes ;;
969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971 no_recursion=yes ;;
973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975 | --oldin | --oldi | --old | --ol | --o)
976 ac_prev=oldincludedir ;;
977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980 oldincludedir=$ac_optarg ;;
982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983 ac_prev=prefix ;;
984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985 prefix=$ac_optarg ;;
987 -program-prefix | --program-prefix | --program-prefi | --program-pref \
988 | --program-pre | --program-pr | --program-p)
989 ac_prev=program_prefix ;;
990 -program-prefix=* | --program-prefix=* | --program-prefi=* \
991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992 program_prefix=$ac_optarg ;;
994 -program-suffix | --program-suffix | --program-suffi | --program-suff \
995 | --program-suf | --program-su | --program-s)
996 ac_prev=program_suffix ;;
997 -program-suffix=* | --program-suffix=* | --program-suffi=* \
998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999 program_suffix=$ac_optarg ;;
1001 -program-transform-name | --program-transform-name \
1002 | --program-transform-nam | --program-transform-na \
1003 | --program-transform-n | --program-transform- \
1004 | --program-transform | --program-transfor \
1005 | --program-transfo | --program-transf \
1006 | --program-trans | --program-tran \
1007 | --progr-tra | --program-tr | --program-t)
1008 ac_prev=program_transform_name ;;
1009 -program-transform-name=* | --program-transform-name=* \
1010 | --program-transform-nam=* | --program-transform-na=* \
1011 | --program-transform-n=* | --program-transform-=* \
1012 | --program-transform=* | --program-transfor=* \
1013 | --program-transfo=* | --program-transf=* \
1014 | --program-trans=* | --program-tran=* \
1015 | --progr-tra=* | --program-tr=* | --program-t=*)
1016 program_transform_name=$ac_optarg ;;
1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019 ac_prev=pdfdir ;;
1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021 pdfdir=$ac_optarg ;;
1023 -psdir | --psdir | --psdi | --psd | --ps)
1024 ac_prev=psdir ;;
1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026 psdir=$ac_optarg ;;
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1030 silent=yes ;;
1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033 ac_prev=sbindir ;;
1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035 | --sbi=* | --sb=*)
1036 sbindir=$ac_optarg ;;
1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040 | --sharedst | --shareds | --shared | --share | --shar \
1041 | --sha | --sh)
1042 ac_prev=sharedstatedir ;;
1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046 | --sha=* | --sh=*)
1047 sharedstatedir=$ac_optarg ;;
1049 -site | --site | --sit)
1050 ac_prev=site ;;
1051 -site=* | --site=* | --sit=*)
1052 site=$ac_optarg ;;
1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055 ac_prev=srcdir ;;
1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057 srcdir=$ac_optarg ;;
1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060 | --syscon | --sysco | --sysc | --sys | --sy)
1061 ac_prev=sysconfdir ;;
1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064 sysconfdir=$ac_optarg ;;
1066 -target | --target | --targe | --targ | --tar | --ta | --t)
1067 ac_prev=target_alias ;;
1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069 target_alias=$ac_optarg ;;
1071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072 verbose=yes ;;
1074 -version | --version | --versio | --versi | --vers | -V)
1075 ac_init_version=: ;;
1077 -with-* | --with-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid package name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "with_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval with_$ac_useropt=\$ac_optarg ;;
1093 -without-* | --without-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "with_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval with_$ac_useropt=no ;;
1109 --x)
1110 # Obsolete; use --with-x.
1111 with_x=yes ;;
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1127 -*) as_fn_error "unrecognized option: \`$ac_option'
1128 Try \`$0 --help' for more information."
1131 *=*)
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 case $ac_envvar in #(
1135 '' | [0-9]* | *[!_$as_cr_alnum]* )
1136 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137 esac
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1142 # FIXME: should be removed in autoconf 3.0.
1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1149 esac
1150 done
1152 if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 as_fn_error "missing argument to $ac_option"
1157 if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1159 no) ;;
1160 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 esac
1165 # Check all directory arguments for consistency.
1166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1173 case $ac_val in
1174 */ )
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1177 esac
1178 # Be sure to have absolute directory names.
1179 case $ac_val in
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182 esac
1183 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184 done
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1189 build=$build_alias
1190 host=$host_alias
1191 target=$target_alias
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198 If a cross compiler is detected then cross compile mode will be used." >&2
1199 elif test "x$build_alias" != "x$host_alias"; then
1200 cross_compiling=yes
1204 ac_tool_prefix=
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 test "$silent" = yes && exec 6>/dev/null
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 as_fn_error "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 as_fn_error "pwd does not report name of working directory"
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1225 X"$as_myself" : 'X\(//\)$' \| \
1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 s//\1/
1232 /^X\(\/\/\)[^/].*/{
1233 s//\1/
1236 /^X\(\/\/\)$/{
1237 s//\1/
1240 /^X\(\/\).*/{
1241 s//\1/
1244 s/.*/./; q'`
1245 srcdir=$ac_confdir
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 srcdir=..
1249 else
1250 ac_srcdir_defaulted=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259 pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 srcdir=.
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1283 cat <<_ACEOF
1284 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1293 Configuration:
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 [PREFIX]
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1337 _ACEOF
1339 cat <<\_ACEOF
1341 Program names:
1342 --program-prefix=PREFIX prepend PREFIX to installed program names
1343 --program-suffix=SUFFIX append SUFFIX to installed program names
1344 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1346 System types:
1347 --build=BUILD configure for building on BUILD [guessed]
1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1349 --target=TARGET configure for building compilers for TARGET [HOST]
1350 _ACEOF
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1356 esac
1357 cat <<\_ACEOF
1359 Optional Features:
1360 --disable-option-checking ignore unrecognized --enable/--with options
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --enable-maintainer-mode enable make rules and dependencies not useful
1364 (and sometimes confusing) to the casual installer
1365 --disable-dependency-tracking speeds up one-time build
1366 --enable-dependency-tracking do not reject slow dependency extractors
1367 --disable-largefile omit support for large files
1368 --enable-shared[=PKGS] build shared libraries [default=yes]
1369 --enable-static[=PKGS] build static libraries [default=yes]
1370 --enable-fast-install[=PKGS]
1371 optimize for fast installation [default=yes]
1372 --disable-libtool-lock avoid locking (might break parallel builds)
1374 Optional Packages:
1375 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1376 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1377 --with-build-libsubdir=DIR Directory where to find libraries for build system
1378 --with-pic try to use only PIC/non-PIC objects [default=use
1379 both]
1380 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 CPP C preprocessor
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1395 Report bugs to the package provider.
1396 _ACEOF
1397 ac_status=$?
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" ||
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405 continue
1406 ac_builddir=.
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1424 case $srcdir in
1425 .) # We are building in place.
1426 ac_srcdir=.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1433 *) # Relative name.
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1446 echo &&
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1448 else
1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 fi || ac_status=$?
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1452 done
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457 cat <<\_ACEOF
1458 LTO plugin for ld configure 0.1
1459 generated by GNU Autoconf 2.64
1461 Copyright (C) 2009 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1464 _ACEOF
1465 exit
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 rm -f conftest.$ac_objext
1479 if { { ac_try="$ac_compile"
1480 case "(($ac_try" in
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_compile") 2>conftest.err
1487 ac_status=$?
1488 if test -s conftest.err; then
1489 grep -v '^ *+' conftest.err >conftest.er1
1490 cat conftest.er1 >&5
1491 mv -f conftest.er1 conftest.err
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } && {
1495 test -z "$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 } && test -s conftest.$ac_objext; then :
1498 ac_retval=0
1499 else
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1503 ac_retval=1
1505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1506 return $ac_retval
1508 } # ac_fn_c_try_compile
1510 # ac_fn_c_try_link LINENO
1511 # -----------------------
1512 # Try to link conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_link ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext conftest$ac_exeext
1517 if { { ac_try="$ac_link"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_link") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest$ac_exeext && {
1536 test "$cross_compiling" = yes ||
1537 $as_test_x conftest$ac_exeext
1538 }; then :
1539 ac_retval=0
1540 else
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1544 ac_retval=1
1546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1548 # interfere with the next link command; also delete a directory that is
1549 # left behind by Apple's compiler. We do this before executing the actions.
1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 return $ac_retval
1554 } # ac_fn_c_try_link
1556 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists and can be compiled using the include files in
1559 # INCLUDES, setting the cache variable VAR accordingly.
1560 ac_fn_c_check_header_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1564 $as_echo_n "checking for $2... " >&6; }
1565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1566 $as_echo_n "(cached) " >&6
1567 else
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1571 #include <$2>
1572 _ACEOF
1573 if ac_fn_c_try_compile "$LINENO"; then :
1574 eval "$3=yes"
1575 else
1576 eval "$3=no"
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580 eval ac_res=\$$3
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 } # ac_fn_c_check_header_compile
1587 # ac_fn_c_try_cpp LINENO
1588 # ----------------------
1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_cpp ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 if { { ac_try="$ac_cpp conftest.$ac_ext"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } >/dev/null && {
1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 }; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1617 ac_retval=1
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 return $ac_retval
1622 } # ac_fn_c_try_cpp
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1628 ac_fn_c_try_run ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>&5
1639 ac_status=$?
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642 { { case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_try") 2>&5
1649 ac_status=$?
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; }; }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: program exited with status $ac_status" >&5
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=$ac_status
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 return $ac_retval
1664 } # ac_fn_c_try_run
1666 # ac_fn_c_check_func LINENO FUNC VAR
1667 # ----------------------------------
1668 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1669 ac_fn_c_check_func ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1681 #define $2 innocuous_$2
1683 /* System header to define __stub macros and hopefully few prototypes,
1684 which can conflict with char $2 (); below.
1685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1686 <limits.h> exists even on freestanding compilers. */
1688 #ifdef __STDC__
1689 # include <limits.h>
1690 #else
1691 # include <assert.h>
1692 #endif
1694 #undef $2
1696 /* Override any GCC internal prototype to avoid an error.
1697 Use char because int might match the return type of a GCC
1698 builtin and then its argument prototype would still apply. */
1699 #ifdef __cplusplus
1700 extern "C"
1701 #endif
1702 char $2 ();
1703 /* The GNU C library defines this for functions which it implements
1704 to always fail with ENOSYS. Some functions are actually named
1705 something starting with __ and the normal name is an alias. */
1706 #if defined __stub_$2 || defined __stub___$2
1707 choke me
1708 #endif
1711 main ()
1713 return $2 ();
1715 return 0;
1717 _ACEOF
1718 if ac_fn_c_try_link "$LINENO"; then :
1719 eval "$3=yes"
1720 else
1721 eval "$3=no"
1723 rm -f core conftest.err conftest.$ac_objext \
1724 conftest$ac_exeext conftest.$ac_ext
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 } # ac_fn_c_check_func
1733 # ac_fn_c_find_intX_t LINENO BITS VAR
1734 # -----------------------------------
1735 # Finds a signed integer type with width BITS, setting cache variable VAR
1736 # accordingly.
1737 ac_fn_c_find_intX_t ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1741 $as_echo_n "checking for int$2_t... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1744 else
1745 eval "$3=no"
1746 for ac_type in int$2_t 'int' 'long int' \
1747 'long long int' 'short int' 'signed char'; do
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $ac_includes_default
1752 main ()
1754 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
1755 test_array [0] = 0
1758 return 0;
1760 _ACEOF
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 $ac_includes_default
1766 main ()
1768 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1769 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
1770 test_array [0] = 0
1773 return 0;
1775 _ACEOF
1776 if ac_fn_c_try_compile "$LINENO"; then :
1778 else
1779 case $ac_type in #(
1780 int$2_t) :
1781 eval "$3=yes" ;; #(
1782 *) :
1783 eval "$3=\$ac_type" ;;
1784 esac
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 eval as_val=\$$3
1790 if test "x$as_val" = x""no; then :
1792 else
1793 break
1795 done
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802 } # ac_fn_c_find_intX_t
1804 # ac_fn_c_find_uintX_t LINENO BITS VAR
1805 # ------------------------------------
1806 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1807 # accordingly.
1808 ac_fn_c_find_uintX_t ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1812 $as_echo_n "checking for uint$2_t... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 eval "$3=no"
1817 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1818 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $ac_includes_default
1823 main ()
1825 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1826 test_array [0] = 0
1829 return 0;
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833 case $ac_type in #(
1834 uint$2_t) :
1835 eval "$3=yes" ;; #(
1836 *) :
1837 eval "$3=\$ac_type" ;;
1838 esac
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 eval as_val=\$$3
1842 if test "x$as_val" = x""no; then :
1844 else
1845 break
1847 done
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 } # ac_fn_c_find_uintX_t
1855 cat >config.log <<_ACEOF
1856 This file contains any messages produced by compilers while
1857 running configure, to aid debugging if configure makes a mistake.
1859 It was created by LTO plugin for ld $as_me 0.1, which was
1860 generated by GNU Autoconf 2.64. Invocation command line was
1862 $ $0 $@
1864 _ACEOF
1865 exec 5>>config.log
1867 cat <<_ASUNAME
1868 ## --------- ##
1869 ## Platform. ##
1870 ## --------- ##
1872 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1873 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1874 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1875 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1876 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1878 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1879 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1881 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1882 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1883 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1884 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1885 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1886 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1887 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889 _ASUNAME
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 $as_echo "PATH: $as_dir"
1897 done
1898 IFS=$as_save_IFS
1900 } >&5
1902 cat >&5 <<_ACEOF
1905 ## ----------- ##
1906 ## Core tests. ##
1907 ## ----------- ##
1909 _ACEOF
1912 # Keep a trace of the command line.
1913 # Strip out --no-create and --no-recursion so they do not pile up.
1914 # Strip out --silent because we don't want to record it for future runs.
1915 # Also quote any args containing shell meta-characters.
1916 # Make two passes to allow for proper duplicate-argument suppression.
1917 ac_configure_args=
1918 ac_configure_args0=
1919 ac_configure_args1=
1920 ac_must_keep_next=false
1921 for ac_pass in 1 2
1923 for ac_arg
1925 case $ac_arg in
1926 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1928 | -silent | --silent | --silen | --sile | --sil)
1929 continue ;;
1930 *\'*)
1931 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 esac
1933 case $ac_pass in
1934 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1936 as_fn_append ac_configure_args1 " '$ac_arg'"
1937 if test $ac_must_keep_next = true; then
1938 ac_must_keep_next=false # Got value, back to normal.
1939 else
1940 case $ac_arg in
1941 *=* | --config-cache | -C | -disable-* | --disable-* \
1942 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1943 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1944 | -with-* | --with-* | -without-* | --without-* | --x)
1945 case "$ac_configure_args0 " in
1946 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 esac
1949 -* ) ac_must_keep_next=true ;;
1950 esac
1952 as_fn_append ac_configure_args " '$ac_arg'"
1954 esac
1955 done
1956 done
1957 { ac_configure_args0=; unset ac_configure_args0;}
1958 { ac_configure_args1=; unset ac_configure_args1;}
1960 # When interrupted or exit'd, cleanup temporary files, and complete
1961 # config.log. We remove comments because anyway the quotes in there
1962 # would cause problems or look ugly.
1963 # WARNING: Use '\'' to represent an apostrophe within the trap.
1964 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1965 trap 'exit_status=$?
1966 # Save into config.log some information that might help in debugging.
1968 echo
1970 cat <<\_ASBOX
1971 ## ---------------- ##
1972 ## Cache variables. ##
1973 ## ---------------- ##
1974 _ASBOX
1975 echo
1976 # The following way of writing the cache mishandles newlines in values,
1978 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in #(
1981 *${as_nl}*)
1982 case $ac_var in #(
1983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985 esac
1986 case $ac_var in #(
1987 _ | IFS | as_nl) ;; #(
1988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989 *) { eval $ac_var=; unset $ac_var;} ;;
1990 esac ;;
1991 esac
1992 done
1993 (set) 2>&1 |
1994 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995 *${as_nl}ac_space=\ *)
1996 sed -n \
1997 "s/'\''/'\''\\\\'\'''\''/g;
1998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999 ;; #(
2001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 esac |
2004 sort
2006 echo
2008 cat <<\_ASBOX
2009 ## ----------------- ##
2010 ## Output variables. ##
2011 ## ----------------- ##
2012 _ASBOX
2013 echo
2014 for ac_var in $ac_subst_vars
2016 eval ac_val=\$$ac_var
2017 case $ac_val in
2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019 esac
2020 $as_echo "$ac_var='\''$ac_val'\''"
2021 done | sort
2022 echo
2024 if test -n "$ac_subst_files"; then
2025 cat <<\_ASBOX
2026 ## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##
2029 _ASBOX
2030 echo
2031 for ac_var in $ac_subst_files
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2042 if test -s confdefs.h; then
2043 cat <<\_ASBOX
2044 ## ----------- ##
2045 ## confdefs.h. ##
2046 ## ----------- ##
2047 _ASBOX
2048 echo
2049 cat confdefs.h
2050 echo
2052 test "$ac_signal" != 0 &&
2053 $as_echo "$as_me: caught signal $ac_signal"
2054 $as_echo "$as_me: exit $exit_status"
2055 } >&5
2056 rm -f core *.core core.conftest.* &&
2057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058 exit $exit_status
2060 for ac_signal in 1 2 13 15; do
2061 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 done
2063 ac_signal=0
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2068 $as_echo "/* confdefs.h */" > confdefs.h
2070 # Predefined preprocessor variables.
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 _ACEOF
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2094 _ACEOF
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 ac_site_file1=NONE
2100 ac_site_file2=NONE
2101 if test -n "$CONFIG_SITE"; then
2102 ac_site_file1=$CONFIG_SITE
2103 elif test "x$prefix" != xNONE; then
2104 ac_site_file1=$prefix/share/config.site
2105 ac_site_file2=$prefix/etc/config.site
2106 else
2107 ac_site_file1=$ac_default_prefix/share/config.site
2108 ac_site_file2=$ac_default_prefix/etc/config.site
2110 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112 test "x$ac_site_file" = xNONE && continue
2113 if test -r "$ac_site_file"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2117 . "$ac_site_file"
2119 done
2121 if test -r "$cache_file"; then
2122 # Some versions of bash will fail to source /dev/null (special
2123 # files actually), so we avoid doing that.
2124 if test -f "$cache_file"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2126 $as_echo "$as_me: loading cache $cache_file" >&6;}
2127 case $cache_file in
2128 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2129 *) . "./$cache_file";;
2130 esac
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2134 $as_echo "$as_me: creating cache $cache_file" >&6;}
2135 >$cache_file
2138 # Check that the precious variables saved in the cache have kept the same
2139 # value.
2140 ac_cache_corrupted=false
2141 for ac_var in $ac_precious_vars; do
2142 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2143 eval ac_new_set=\$ac_env_${ac_var}_set
2144 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2145 eval ac_new_val=\$ac_env_${ac_var}_value
2146 case $ac_old_set,$ac_new_set in
2147 set,)
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2151 ,set)
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2153 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2154 ac_cache_corrupted=: ;;
2155 ,);;
2157 if test "x$ac_old_val" != "x$ac_new_val"; then
2158 # differences in whitespace do not lead to failure.
2159 ac_old_val_w=`echo x $ac_old_val`
2160 ac_new_val_w=`echo x $ac_new_val`
2161 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2163 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164 ac_cache_corrupted=:
2165 else
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2167 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2168 eval $ac_var=\$ac_old_val
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2171 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2173 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2174 fi;;
2175 esac
2176 # Pass precious variables to config.status.
2177 if test "$ac_new_set" = set; then
2178 case $ac_new_val in
2179 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 *) ac_arg=$ac_var=$ac_new_val ;;
2181 esac
2182 case " $ac_configure_args " in
2183 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2184 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2185 esac
2187 done
2188 if $ac_cache_corrupted; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2192 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2193 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2195 ## -------------------- ##
2196 ## Main body of script. ##
2197 ## -------------------- ##
2199 ac_ext=c
2200 ac_cpp='$CPP $CPPFLAGS'
2201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209 ac_aux_dir=
2210 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2211 for ac_t in install-sh install.sh shtool; do
2212 if test -f "$ac_dir/$ac_t"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/$ac_t -c"
2215 break 2
2217 done
2218 done
2219 if test -z "$ac_aux_dir"; then
2220 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2232 # Make sure we can run config.sub.
2233 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2234 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2237 $as_echo_n "checking build system type... " >&6; }
2238 if test "${ac_cv_build+set}" = set; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 ac_build_alias=$build_alias
2242 test "x$ac_build_alias" = x &&
2243 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2244 test "x$ac_build_alias" = x &&
2245 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2246 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2247 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2251 $as_echo "$ac_cv_build" >&6; }
2252 case $ac_cv_build in
2253 *-*-*) ;;
2254 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2255 esac
2256 build=$ac_cv_build
2257 ac_save_IFS=$IFS; IFS='-'
2258 set x $ac_cv_build
2259 shift
2260 build_cpu=$1
2261 build_vendor=$2
2262 shift; shift
2263 # Remember, the first character of IFS is used to create $*,
2264 # except with old shells:
2265 build_os=$*
2266 IFS=$ac_save_IFS
2267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2271 $as_echo_n "checking host system type... " >&6; }
2272 if test "${ac_cv_host+set}" = set; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 if test "x$host_alias" = x; then
2276 ac_cv_host=$ac_cv_build
2277 else
2278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2279 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2284 $as_echo "$ac_cv_host" >&6; }
2285 case $ac_cv_host in
2286 *-*-*) ;;
2287 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2288 esac
2289 host=$ac_cv_host
2290 ac_save_IFS=$IFS; IFS='-'
2291 set x $ac_cv_host
2292 shift
2293 host_cpu=$1
2294 host_vendor=$2
2295 shift; shift
2296 # Remember, the first character of IFS is used to create $*,
2297 # except with old shells:
2298 host_os=$*
2299 IFS=$ac_save_IFS
2300 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2304 $as_echo_n "checking target system type... " >&6; }
2305 if test "${ac_cv_target+set}" = set; then :
2306 $as_echo_n "(cached) " >&6
2307 else
2308 if test "x$target_alias" = x; then
2309 ac_cv_target=$ac_cv_host
2310 else
2311 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2317 $as_echo "$ac_cv_target" >&6; }
2318 case $ac_cv_target in
2319 *-*-*) ;;
2320 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2321 esac
2322 target=$ac_cv_target
2323 ac_save_IFS=$IFS; IFS='-'
2324 set x $ac_cv_target
2325 shift
2326 target_cpu=$1
2327 target_vendor=$2
2328 shift; shift
2329 # Remember, the first character of IFS is used to create $*,
2330 # except with old shells:
2331 target_os=$*
2332 IFS=$ac_save_IFS
2333 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2336 # The aliases save the names the user supplied, while $host etc.
2337 # will get canonicalized.
2338 test -n "$target_alias" &&
2339 test "$program_prefix$program_suffix$program_transform_name" = \
2340 NONENONEs,x,x, &&
2341 program_prefix=${target_alias}-
2343 case ${build_alias} in
2344 "") build_noncanonical=${build} ;;
2345 *) build_noncanonical=${build_alias} ;;
2346 esac
2348 case ${host_alias} in
2349 "") host_noncanonical=${build_noncanonical} ;;
2350 *) host_noncanonical=${host_alias} ;;
2351 esac
2353 case ${target_alias} in
2354 "") target_noncanonical=${host_noncanonical} ;;
2355 *) target_noncanonical=${target_alias} ;;
2356 esac
2359 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2360 # have matching libraries, they should use host libraries: Makefile.tpl
2361 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2362 # However, they still use the build modules, because the corresponding
2363 # host modules (e.g. bison) are only built for the host when bootstrap
2364 # finishes. So:
2365 # - build_subdir is where we find build modules, and never changes.
2366 # - build_libsubdir is where we find build libraries, and can be overridden.
2368 # Prefix 'build-' so this never conflicts with target_subdir.
2369 build_subdir="build-${build_noncanonical}"
2371 # Check whether --with-build-libsubdir was given.
2372 if test "${with_build_libsubdir+set}" = set; then :
2373 withval=$with_build_libsubdir; build_libsubdir="$withval"
2374 else
2375 build_libsubdir="$build_subdir"
2378 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2379 if ( test $srcdir = . && test -d gcc ) \
2380 || test -d $srcdir/../host-${host_noncanonical}; then
2381 host_subdir="host-${host_noncanonical}"
2382 else
2383 host_subdir=.
2385 # No prefix.
2386 target_subdir=${target_noncanonical}
2388 am__api_version='1.11'
2390 # Find a good install program. We prefer a C program (faster),
2391 # so one script is as good as another. But avoid the broken or
2392 # incompatible versions:
2393 # SysV /etc/install, /usr/sbin/install
2394 # SunOS /usr/etc/install
2395 # IRIX /sbin/install
2396 # AIX /bin/install
2397 # AmigaOS /C/install, which installs bootblocks on floppy discs
2398 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2399 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2400 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2401 # OS/2's system install, which has a completely different semantic
2402 # ./install, which can be erroneously created by make from ./install.sh.
2403 # Reject install programs that cannot install multiple files.
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2405 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2406 if test -z "$INSTALL"; then
2407 if test "${ac_cv_path_install+set}" = set; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
2415 # Account for people who put trailing slashes in PATH elements.
2416 case $as_dir/ in #((
2417 ./ | .// | /[cC]/* | \
2418 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2419 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2420 /usr/ucb/* ) ;;
2422 # OSF1 and SCO ODT 3.0 have their own names for install.
2423 # Don't use installbsd from OSF since it installs stuff as root
2424 # by default.
2425 for ac_prog in ginstall scoinst install; do
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2428 if test $ac_prog = install &&
2429 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430 # AIX install. It has an incompatible calling convention.
2432 elif test $ac_prog = install &&
2433 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434 # program-specific install script used by HP pwplus--don't use.
2436 else
2437 rm -rf conftest.one conftest.two conftest.dir
2438 echo one > conftest.one
2439 echo two > conftest.two
2440 mkdir conftest.dir
2441 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2442 test -s conftest.one && test -s conftest.two &&
2443 test -s conftest.dir/conftest.one &&
2444 test -s conftest.dir/conftest.two
2445 then
2446 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2447 break 3
2451 done
2452 done
2454 esac
2456 done
2457 IFS=$as_save_IFS
2459 rm -rf conftest.one conftest.two conftest.dir
2462 if test "${ac_cv_path_install+set}" = set; then
2463 INSTALL=$ac_cv_path_install
2464 else
2465 # As a last resort, use the slow shell script. Don't cache a
2466 # value for INSTALL within a source directory, because that will
2467 # break other packages using the cache if that directory is
2468 # removed, or if the value is a relative name.
2469 INSTALL=$ac_install_sh
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2473 $as_echo "$INSTALL" >&6; }
2475 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2476 # It thinks the first close brace ends the variable substitution.
2477 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2479 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2481 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2484 $as_echo_n "checking whether build environment is sane... " >&6; }
2485 # Just in case
2486 sleep 1
2487 echo timestamp > conftest.file
2488 # Reject unsafe characters in $srcdir or the absolute working directory
2489 # name. Accept space and tab only in the latter.
2490 am_lf='
2492 case `pwd` in
2493 *[\\\"\#\$\&\'\`$am_lf]*)
2494 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2495 esac
2496 case $srcdir in
2497 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2498 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2499 esac
2501 # Do `set' in a subshell so we don't clobber the current shell's
2502 # arguments. Must try -L first in case configure is actually a
2503 # symlink; some systems play weird games with the mod time of symlinks
2504 # (eg FreeBSD returns the mod time of the symlink's containing
2505 # directory).
2506 if (
2507 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2508 if test "$*" = "X"; then
2509 # -L didn't work.
2510 set X `ls -t "$srcdir/configure" conftest.file`
2512 rm -f conftest.file
2513 if test "$*" != "X $srcdir/configure conftest.file" \
2514 && test "$*" != "X conftest.file $srcdir/configure"; then
2516 # If neither matched, then we have a broken ls. This can happen
2517 # if, for instance, CONFIG_SHELL is bash and it inherits a
2518 # broken ls alias from the environment. This has actually
2519 # happened. Such a system could not be considered "sane".
2520 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2521 alias in your environment" "$LINENO" 5
2524 test "$2" = conftest.file
2526 then
2527 # Ok.
2529 else
2530 as_fn_error "newly created file is older than distributed files!
2531 Check your system clock" "$LINENO" 5
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2534 $as_echo "yes" >&6; }
2535 test "$program_prefix" != NONE &&
2536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s,x,x', remove it if useless.
2542 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2543 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2545 # expand $ac_aux_dir to an absolute path
2546 am_aux_dir=`cd $ac_aux_dir && pwd`
2548 if test x"${MISSING+set}" != xset; then
2549 case $am_aux_dir in
2550 *\ * | *\ *)
2551 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2553 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2554 esac
2556 # Use eval to expand $SHELL
2557 if eval "$MISSING --run true"; then
2558 am_missing_run="$MISSING --run "
2559 else
2560 am_missing_run=
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2562 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2565 if test x"${install_sh}" != xset; then
2566 case $am_aux_dir in
2567 *\ * | *\ *)
2568 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2570 install_sh="\${SHELL} $am_aux_dir/install-sh"
2571 esac
2574 # Installed binaries are usually stripped using `strip' when the user
2575 # run `make install-strip'. However `strip' might not be the right
2576 # tool to use in cross-compilation environments, therefore Automake
2577 # will honor the `STRIP' environment variable to overrule this program.
2578 if test "$cross_compiling" != no; then
2579 if test -n "$ac_tool_prefix"; then
2580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2581 set dummy ${ac_tool_prefix}strip; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if test "${ac_cv_prog_STRIP+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 if test -n "$STRIP"; then
2588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2603 IFS=$as_save_IFS
2607 STRIP=$ac_cv_prog_STRIP
2608 if test -n "$STRIP"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2610 $as_echo "$STRIP" >&6; }
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2618 if test -z "$ac_cv_prog_STRIP"; then
2619 ac_ct_STRIP=$STRIP
2620 # Extract the first word of "strip", so it can be a program name with args.
2621 set dummy strip; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$ac_ct_STRIP"; then
2628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_ac_ct_STRIP="strip"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2648 if test -n "$ac_ct_STRIP"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2650 $as_echo "$ac_ct_STRIP" >&6; }
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2656 if test "x$ac_ct_STRIP" = x; then
2657 STRIP=":"
2658 else
2659 case $cross_compiling:$ac_tool_warned in
2660 yes:)
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2663 ac_tool_warned=yes ;;
2664 esac
2665 STRIP=$ac_ct_STRIP
2667 else
2668 STRIP="$ac_cv_prog_STRIP"
2672 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2675 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2676 if test -z "$MKDIR_P"; then
2677 if test "${ac_cv_path_mkdir+set}" = set; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_prog in mkdir gmkdir; do
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2688 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2689 'mkdir (GNU coreutils) '* | \
2690 'mkdir (coreutils) '* | \
2691 'mkdir (fileutils) '4.1*)
2692 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2693 break 3;;
2694 esac
2695 done
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 if test "${ac_cv_path_mkdir+set}" = set; then
2703 MKDIR_P="$ac_cv_path_mkdir -p"
2704 else
2705 # As a last resort, use the slow shell script. Don't cache a
2706 # value for MKDIR_P within a source directory, because that will
2707 # break other packages using the cache if that directory is
2708 # removed, or if the value is a relative name.
2709 test -d ./--version && rmdir ./--version
2710 MKDIR_P="$ac_install_sh -d"
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2714 $as_echo "$MKDIR_P" >&6; }
2716 mkdir_p="$MKDIR_P"
2717 case $mkdir_p in
2718 [\\/$]* | ?:[\\/]*) ;;
2719 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2720 esac
2722 for ac_prog in gawk mawk nawk awk
2724 # Extract the first word of "$ac_prog", so it can be a program name with args.
2725 set dummy $ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_AWK+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$AWK"; then
2732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_AWK="$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 AWK=$ac_cv_prog_AWK
2752 if test -n "$AWK"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2754 $as_echo "$AWK" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$AWK" && break
2762 done
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2765 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2766 set x ${MAKE-make}
2767 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2768 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 cat >conftest.make <<\_ACEOF
2772 SHELL = /bin/sh
2773 all:
2774 @echo '@@@%%%=$(MAKE)=@@@%%%'
2775 _ACEOF
2776 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2777 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2778 *@@@%%%=?*=@@@%%%*)
2779 eval ac_cv_prog_make_${ac_make}_set=yes;;
2781 eval ac_cv_prog_make_${ac_make}_set=no;;
2782 esac
2783 rm -f conftest.make
2785 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787 $as_echo "yes" >&6; }
2788 SET_MAKE=
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 SET_MAKE="MAKE=${MAKE-make}"
2795 rm -rf .tst 2>/dev/null
2796 mkdir .tst 2>/dev/null
2797 if test -d .tst; then
2798 am__leading_dot=.
2799 else
2800 am__leading_dot=_
2802 rmdir .tst 2>/dev/null
2804 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2805 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2806 # is not polluted with repeated "-I."
2807 am__isrc=' -I$(srcdir)'
2808 # test to see if srcdir already configured
2809 if test -f $srcdir/config.status; then
2810 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2814 # test whether we have cygpath
2815 if test -z "$CYGPATH_W"; then
2816 if (cygpath --version) >/dev/null 2>/dev/null; then
2817 CYGPATH_W='cygpath -w'
2818 else
2819 CYGPATH_W=echo
2824 # Define the identity of the package.
2825 PACKAGE='lto-plugin'
2826 VERSION='0.1'
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE "$PACKAGE"
2831 _ACEOF
2834 cat >>confdefs.h <<_ACEOF
2835 #define VERSION "$VERSION"
2836 _ACEOF
2838 # Some tools Automake needs.
2840 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2843 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2846 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2852 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2854 # We need awk for the "check" target. The system "awk" is bad on
2855 # some platforms.
2856 # Always define AMTAR for backward compatibility.
2858 AMTAR=${AMTAR-"${am_missing_run}tar"}
2860 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2868 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2869 # Check whether --enable-maintainer-mode was given.
2870 if test "${enable_maintainer_mode+set}" = set; then :
2871 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2872 else
2873 USE_MAINTAINER_MODE=no
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2877 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2878 if test $USE_MAINTAINER_MODE = yes; then
2879 MAINTAINER_MODE_TRUE=
2880 MAINTAINER_MODE_FALSE='#'
2881 else
2882 MAINTAINER_MODE_TRUE='#'
2883 MAINTAINER_MODE_FALSE=
2886 MAINT=$MAINTAINER_MODE_TRUE
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_CC+set}" = set; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2933 if test -z "$ac_cv_prog_CC"; then
2934 ac_ct_CC=$CC
2935 # Extract the first word of "gcc", so it can be a program name with args.
2936 set dummy gcc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$ac_ct_CC"; then
2943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_CC="gcc"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2956 done
2957 done
2958 IFS=$as_save_IFS
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 $as_echo "$ac_ct_CC" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2971 if test "x$ac_ct_CC" = x; then
2972 CC=""
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 CC=$ac_ct_CC
2982 else
2983 CC="$ac_cv_prog_CC"
2986 if test -z "$CC"; then
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_CC+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_CC="${ac_tool_prefix}cc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3027 if test -z "$CC"; then
3028 # Extract the first word of "cc", so it can be a program name with args.
3029 set dummy cc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 ac_prog_rejected=no
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3047 ac_prog_rejected=yes
3048 continue
3050 ac_cv_prog_CC="cc"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3054 done
3055 done
3056 IFS=$as_save_IFS
3058 if test $ac_prog_rejected = yes; then
3059 # We found a bogon in the path, so make sure we never use it.
3060 set dummy $ac_cv_prog_CC
3061 shift
3062 if test $# != 0; then
3063 # We chose a different compiler from the bogus one.
3064 # However, it has the same basename, so the bogon will be chosen
3065 # first if we set CC to just the basename; use the full file name.
3066 shift
3067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3083 if test -z "$CC"; then
3084 if test -n "$ac_tool_prefix"; then
3085 for ac_prog in cl.exe
3087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3108 done
3109 done
3110 IFS=$as_save_IFS
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3124 test -n "$CC" && break
3125 done
3127 if test -z "$CC"; then
3128 ac_ct_CC=$CC
3129 for ac_prog in cl.exe
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_ac_ct_CC="$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$ac_ct_CC" && break
3169 done
3171 if test "x$ac_ct_CC" = x; then
3172 CC=""
3173 else
3174 case $cross_compiling:$ac_tool_warned in
3175 yes:)
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3179 esac
3180 CC=$ac_ct_CC
3187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "no acceptable C compiler found in \$PATH
3190 See \`config.log' for more details." "$LINENO" 5; }
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3194 set X $ac_compile
3195 ac_compiler=$2
3196 for ac_option in --version -v -V -qversion; do
3197 { { ac_try="$ac_compiler $ac_option >&5"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3205 ac_status=$?
3206 if test -s conftest.err; then
3207 sed '10a\
3208 ... rest of stderr output deleted ...
3209 10q' conftest.err >conftest.er1
3210 cat conftest.er1 >&5
3211 rm -f conftest.er1 conftest.err
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }
3215 done
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 ac_clean_files_save=$ac_clean_files
3229 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3230 # Try to create an executable without -o first, disregard a.out.
3231 # It will help us diagnose broken compilers, and finding out an intuition
3232 # of exeext.
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3234 $as_echo_n "checking for C compiler default output file name... " >&6; }
3235 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3237 # The possible output files:
3238 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3240 ac_rmfiles=
3241 for ac_file in $ac_files
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3246 esac
3247 done
3248 rm -f $ac_rmfiles
3250 if { { ac_try="$ac_link_default"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_link_default") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; then :
3261 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3263 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3264 # so that the user can short-circuit this test for compilers unknown to
3265 # Autoconf.
3266 for ac_file in $ac_files ''
3268 test -f "$ac_file" || continue
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3272 [ab].out )
3273 # We found the default executable, but exeext='' is most
3274 # certainly right.
3275 break;;
3276 *.* )
3277 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3278 then :; else
3279 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 # We set ac_cv_exeext here because the later test for it is not
3282 # safe: cross compilers may not add the suffix if given an `-o'
3283 # argument, so we may need to know it at that point already.
3284 # Even if this section looks crufty: it has the advantage of
3285 # actually working.
3286 break;;
3288 break;;
3289 esac
3290 done
3291 test "$ac_cv_exeext" = no && ac_cv_exeext=
3293 else
3294 ac_file=''
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3297 $as_echo "$ac_file" >&6; }
3298 if test -z "$ac_file"; then :
3299 $as_echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 { as_fn_set_status 77
3305 as_fn_error "C compiler cannot create executables
3306 See \`config.log' for more details." "$LINENO" 5; }; }
3308 ac_exeext=$ac_cv_exeext
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3313 $as_echo_n "checking whether the C compiler works... " >&6; }
3314 # If not cross compiling, check that we can run a simple program.
3315 if test "$cross_compiling" != yes; then
3316 if { ac_try='./$ac_file'
3317 { { case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_try") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; }; then
3327 cross_compiling=no
3328 else
3329 if test "$cross_compiling" = maybe; then
3330 cross_compiling=yes
3331 else
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error "cannot run C compiled programs.
3335 If you meant to cross compile, use \`--host'.
3336 See \`config.log' for more details." "$LINENO" 5; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3343 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3344 ac_clean_files=$ac_clean_files_save
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3350 $as_echo "$cross_compiling" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353 $as_echo_n "checking for suffix of executables... " >&6; }
3354 if { { ac_try="$ac_link"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361 (eval "$ac_link") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }; then :
3365 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3366 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3367 # work properly (i.e., refer to `conftest.exe'), while it won't with
3368 # `rm'.
3369 for ac_file in conftest.exe conftest conftest.*; do
3370 test -f "$ac_file" || continue
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374 break;;
3375 * ) break;;
3376 esac
3377 done
3378 else
3379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error "cannot compute suffix of executables: cannot compile and link
3382 See \`config.log' for more details." "$LINENO" 5; }
3384 rm -f conftest$ac_cv_exeext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3386 $as_echo "$ac_cv_exeext" >&6; }
3388 rm -f conftest.$ac_ext
3389 EXEEXT=$ac_cv_exeext
3390 ac_exeext=$EXEEXT
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392 $as_echo_n "checking for suffix of object files... " >&6; }
3393 if test "${ac_cv_objext+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3400 main ()
3404 return 0;
3406 _ACEOF
3407 rm -f conftest.o conftest.obj
3408 if { { ac_try="$ac_compile"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compile") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424 break;;
3425 esac
3426 done
3427 else
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error "cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details." "$LINENO" 5; }
3436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439 $as_echo "$ac_cv_objext" >&6; }
3440 OBJEXT=$ac_cv_objext
3441 ac_objext=$OBJEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3451 main ()
3453 #ifndef __GNUC__
3454 choke me
3455 #endif
3458 return 0;
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 ac_compiler_gnu=yes
3463 else
3464 ac_compiler_gnu=no
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3473 GCC=yes
3474 else
3475 GCC=
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if test "${ac_cv_prog_cc_g+set}" = set; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_save_c_werror_flag=$ac_c_werror_flag
3485 ac_c_werror_flag=yes
3486 ac_cv_prog_cc_g=no
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3492 main ()
3496 return 0;
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 else
3502 CFLAGS=""
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3507 main ()
3511 return 0;
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3516 else
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 CFLAGS="-g"
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 :
3531 ac_cv_prog_cc_g=yes
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541 $as_echo "$ac_cv_prog_cc_g" >&6; }
3542 if test "$ac_test_CFLAGS" = set; then
3543 CFLAGS=$ac_save_CFLAGS
3544 elif test $ac_cv_prog_cc_g = yes; then
3545 if test "$GCC" = yes; then
3546 CFLAGS="-g -O2"
3547 else
3548 CFLAGS="-g"
3550 else
3551 if test "$GCC" = yes; then
3552 CFLAGS="-O2"
3553 else
3554 CFLAGS=
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 ac_cv_prog_cc_c89=no
3563 ac_save_CC=$CC
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <stdarg.h>
3567 #include <stdio.h>
3568 #include <sys/types.h>
3569 #include <sys/stat.h>
3570 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3571 struct buf { int x; };
3572 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3573 static char *e (p, i)
3574 char **p;
3575 int i;
3577 return p[i];
3579 static char *f (char * (*g) (char **, int), char **p, ...)
3581 char *s;
3582 va_list v;
3583 va_start (v,p);
3584 s = g (p, va_arg (v,int));
3585 va_end (v);
3586 return s;
3589 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3590 function prototypes and stuff, but not '\xHH' hex character constants.
3591 These don't provoke an error unfortunately, instead are silently treated
3592 as 'x'. The following induces an error, until -std is added to get
3593 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3594 array size at least. It's necessary to write '\x00'==0 to get something
3595 that's true only with -std. */
3596 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3598 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3599 inside strings and character constants. */
3600 #define FOO(x) 'x'
3601 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3603 int test (int i, double x);
3604 struct s1 {int (*f) (int a);};
3605 struct s2 {int (*f) (double a);};
3606 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3607 int argc;
3608 char **argv;
3610 main ()
3612 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3614 return 0;
3616 _ACEOF
3617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3618 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3620 CC="$ac_save_CC $ac_arg"
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622 ac_cv_prog_cc_c89=$ac_arg
3624 rm -f core conftest.err conftest.$ac_objext
3625 test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC
3631 # AC_CACHE_VAL
3632 case "x$ac_cv_prog_cc_c89" in
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3635 $as_echo "none needed" >&6; } ;;
3636 xno)
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3638 $as_echo "unsupported" >&6; } ;;
3640 CC="$CC $ac_cv_prog_cc_c89"
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3642 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3643 esac
3644 if test "x$ac_cv_prog_cc_c89" != xno; then :
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 DEPDIR="${am__leading_dot}deps"
3655 ac_config_commands="$ac_config_commands depfiles"
3658 am_make=${MAKE-make}
3659 cat > confinc << 'END'
3660 am__doit:
3661 @echo this is the am__doit target
3662 .PHONY: am__doit
3664 # If we don't find an include directive, just comment out the code.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3666 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3667 am__include="#"
3668 am__quote=
3669 _am_result=none
3670 # First try GNU make style include.
3671 echo "include confinc" > confmf
3672 # Ignore all kinds of additional output from `make'.
3673 case `$am_make -s -f confmf 2> /dev/null` in #(
3674 *the\ am__doit\ target*)
3675 am__include=include
3676 am__quote=
3677 _am_result=GNU
3679 esac
3680 # Now try BSD make style include.
3681 if test "$am__include" = "#"; then
3682 echo '.include "confinc"' > confmf
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3685 am__include=.include
3686 am__quote="\""
3687 _am_result=BSD
3689 esac
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3694 $as_echo "$_am_result" >&6; }
3695 rm -f confinc confmf
3697 # Check whether --enable-dependency-tracking was given.
3698 if test "${enable_dependency_tracking+set}" = set; then :
3699 enableval=$enable_dependency_tracking;
3702 if test "x$enable_dependency_tracking" != xno; then
3703 am_depcomp="$ac_aux_dir/depcomp"
3704 AMDEPBACKSLASH='\'
3706 if test "x$enable_dependency_tracking" != xno; then
3707 AMDEP_TRUE=
3708 AMDEP_FALSE='#'
3709 else
3710 AMDEP_TRUE='#'
3711 AMDEP_FALSE=
3716 depcc="$CC" am_compiler_list=
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3719 $as_echo_n "checking dependency style of $depcc... " >&6; }
3720 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3724 # We make a subdir and do the tests there. Otherwise we can end up
3725 # making bogus files that we don't know about and never remove. For
3726 # instance it was reported that on HP-UX the gcc test will end up
3727 # making a dummy file named `D' -- because `-MD' means `put the output
3728 # in D'.
3729 mkdir conftest.dir
3730 # Copy depcomp to subdir because otherwise we won't find it if we're
3731 # using a relative directory.
3732 cp "$am_depcomp" conftest.dir
3733 cd conftest.dir
3734 # We will build objects and dependencies in a subdirectory because
3735 # it helps to detect inapplicable dependency modes. For instance
3736 # both Tru64's cc and ICC support -MD to output dependencies as a
3737 # side effect of compilation, but ICC will put the dependencies in
3738 # the current directory while Tru64 will put them in the object
3739 # directory.
3740 mkdir sub
3742 am_cv_CC_dependencies_compiler_type=none
3743 if test "$am_compiler_list" = ""; then
3744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3746 am__universal=false
3747 case " $depcc " in #(
3748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3749 esac
3751 for depmode in $am_compiler_list; do
3752 # Setup a source with many dependencies, because some compilers
3753 # like to wrap large dependency lists on column 80 (with \), and
3754 # we should not choose a depcomp mode which is confused by this.
3756 # We need to recreate these files for each test, as the compiler may
3757 # overwrite some of them when testing with obscure command lines.
3758 # This happens at least with the AIX C compiler.
3759 : > sub/conftest.c
3760 for i in 1 2 3 4 5 6; do
3761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3762 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3763 # Solaris 8's {/usr,}/bin/sh.
3764 touch sub/conftst$i.h
3765 done
3766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3769 # mode. It turns out that the SunPro C++ compiler does not properly
3770 # handle `-M -o', and we need to detect this. Also, some Intel
3771 # versions had trouble with output in subdirs
3772 am__obj=sub/conftest.${OBJEXT-o}
3773 am__minus_obj="-o $am__obj"
3774 case $depmode in
3775 gcc)
3776 # This depmode causes a compiler race in universal mode.
3777 test "$am__universal" = false || continue
3779 nosideeffect)
3780 # after this tag, mechanisms are not by side-effect, so they'll
3781 # only be used when explicitly requested
3782 if test "x$enable_dependency_tracking" = xyes; then
3783 continue
3784 else
3785 break
3788 msvisualcpp | msvcmsys)
3789 # This compiler won't grok `-c -o', but also, the minuso test has
3790 # not run yet. These depmodes are late enough in the game, and
3791 # so weak that their functioning should not be impacted.
3792 am__obj=conftest.${OBJEXT-o}
3793 am__minus_obj=
3795 none) break ;;
3796 esac
3797 if depmode=$depmode \
3798 source=sub/conftest.c object=$am__obj \
3799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3801 >/dev/null 2>conftest.err &&
3802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3806 # icc doesn't choke on unknown options, it will just issue warnings
3807 # or remarks (even with -Werror). So we grep stderr for any message
3808 # that says an option was ignored or not supported.
3809 # When given -MP, icc 7.0 and 7.1 complain thusly:
3810 # icc: Command line warning: ignoring option '-M'; no argument required
3811 # The diagnosis changed in icc 8.0:
3812 # icc: Command line remark: option '-MP' not supported
3813 if (grep 'ignoring option' conftest.err ||
3814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3815 am_cv_CC_dependencies_compiler_type=$depmode
3816 break
3819 done
3821 cd ..
3822 rm -rf conftest.dir
3823 else
3824 am_cv_CC_dependencies_compiler_type=none
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3829 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3833 test "x$enable_dependency_tracking" != xno \
3834 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3835 am__fastdepCC_TRUE=
3836 am__fastdepCC_FALSE='#'
3837 else
3838 am__fastdepCC_TRUE='#'
3839 am__fastdepCC_FALSE=
3844 # Check whether --enable-largefile was given.
3845 if test "${enable_largefile+set}" = set; then :
3846 enableval=$enable_largefile;
3849 if test "$enable_largefile" != no; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3852 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3853 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_cv_sys_largefile_CC=no
3857 if test "$GCC" != yes; then
3858 ac_save_CC=$CC
3859 while :; do
3860 # IRIX 6.2 and later do not support large files by default,
3861 # so use the C compiler's -n32 option if that helps.
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864 #include <sys/types.h>
3865 /* Check that off_t can represent 2**63 - 1 correctly.
3866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3867 since some C++ compilers masquerading as C compilers
3868 incorrectly reject 9223372036854775807. */
3869 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3871 && LARGE_OFF_T % 2147483647 == 1)
3872 ? 1 : -1];
3874 main ()
3878 return 0;
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 break
3884 rm -f core conftest.err conftest.$ac_objext
3885 CC="$CC -n32"
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_sys_largefile_CC=' -n32'; break
3889 rm -f core conftest.err conftest.$ac_objext
3890 break
3891 done
3892 CC=$ac_save_CC
3893 rm -f conftest.$ac_ext
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3897 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3898 if test "$ac_cv_sys_largefile_CC" != no; then
3899 CC=$CC$ac_cv_sys_largefile_CC
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3903 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3904 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 while :; do
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910 #include <sys/types.h>
3911 /* Check that off_t can represent 2**63 - 1 correctly.
3912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3913 since some C++ compilers masquerading as C compilers
3914 incorrectly reject 9223372036854775807. */
3915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3917 && LARGE_OFF_T % 2147483647 == 1)
3918 ? 1 : -1];
3920 main ()
3924 return 0;
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928 ac_cv_sys_file_offset_bits=no; break
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #define _FILE_OFFSET_BITS 64
3934 #include <sys/types.h>
3935 /* Check that off_t can represent 2**63 - 1 correctly.
3936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3937 since some C++ compilers masquerading as C compilers
3938 incorrectly reject 9223372036854775807. */
3939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3941 && LARGE_OFF_T % 2147483647 == 1)
3942 ? 1 : -1];
3944 main ()
3948 return 0;
3950 _ACEOF
3951 if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_cv_sys_file_offset_bits=64; break
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cv_sys_file_offset_bits=unknown
3956 break
3957 done
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3960 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3961 case $ac_cv_sys_file_offset_bits in #(
3962 no | unknown) ;;
3964 cat >>confdefs.h <<_ACEOF
3965 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3966 _ACEOF
3968 esac
3969 rm -rf conftest*
3970 if test $ac_cv_sys_file_offset_bits = unknown; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3972 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3973 if test "${ac_cv_sys_large_files+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 while :; do
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979 #include <sys/types.h>
3980 /* Check that off_t can represent 2**63 - 1 correctly.
3981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3982 since some C++ compilers masquerading as C compilers
3983 incorrectly reject 9223372036854775807. */
3984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3986 && LARGE_OFF_T % 2147483647 == 1)
3987 ? 1 : -1];
3989 main ()
3993 return 0;
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997 ac_cv_sys_large_files=no; break
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #define _LARGE_FILES 1
4003 #include <sys/types.h>
4004 /* Check that off_t can represent 2**63 - 1 correctly.
4005 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4006 since some C++ compilers masquerading as C compilers
4007 incorrectly reject 9223372036854775807. */
4008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4009 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4010 && LARGE_OFF_T % 2147483647 == 1)
4011 ? 1 : -1];
4013 main ()
4017 return 0;
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_sys_large_files=1; break
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_sys_large_files=unknown
4025 break
4026 done
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4029 $as_echo "$ac_cv_sys_large_files" >&6; }
4030 case $ac_cv_sys_large_files in #(
4031 no | unknown) ;;
4033 cat >>confdefs.h <<_ACEOF
4034 #define _LARGE_FILES $ac_cv_sys_large_files
4035 _ACEOF
4037 esac
4038 rm -rf conftest*
4042 case `pwd` in
4043 *\ * | *\ *)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4045 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4046 esac
4050 macro_version='2.2.7a'
4051 macro_revision='1.3134'
4065 ltmain="$ac_aux_dir/ltmain.sh"
4067 # Backslashify metacharacters that are still active within
4068 # double-quoted strings.
4069 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4071 # Same as above, but do not quote variable references.
4072 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4074 # Sed substitution to delay expansion of an escaped shell variable in a
4075 # double_quote_subst'ed string.
4076 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4078 # Sed substitution to delay expansion of an escaped single quote.
4079 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4081 # Sed substitution to avoid accidental globbing in evaled expressions
4082 no_glob_subst='s/\*/\\\*/g'
4084 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4085 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4089 $as_echo_n "checking how to print strings... " >&6; }
4090 # Test print first, because it will be a builtin if present.
4091 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4092 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4093 ECHO='print -r --'
4094 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4095 ECHO='printf %s\n'
4096 else
4097 # Use this function as a fallback that always works.
4098 func_fallback_echo ()
4100 eval 'cat <<_LTECHO_EOF
4102 _LTECHO_EOF'
4104 ECHO='func_fallback_echo'
4107 # func_echo_all arg...
4108 # Invoke $ECHO with all args, space-separated.
4109 func_echo_all ()
4111 $ECHO ""
4114 case "$ECHO" in
4115 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4116 $as_echo "printf" >&6; } ;;
4117 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4118 $as_echo "print -r" >&6; } ;;
4119 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4120 $as_echo "cat" >&6; } ;;
4121 esac
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4137 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4138 if test "${ac_cv_path_SED+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4142 for ac_i in 1 2 3 4 5 6 7; do
4143 ac_script="$ac_script$as_nl$ac_script"
4144 done
4145 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4146 { ac_script=; unset ac_script;}
4147 if test -z "$SED"; then
4148 ac_path_SED_found=false
4149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_prog in sed gsed; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4158 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4159 # Check for GNU ac_path_SED and select it if it is found.
4160 # Check for GNU $ac_path_SED
4161 case `"$ac_path_SED" --version 2>&1` in
4162 *GNU*)
4163 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4165 ac_count=0
4166 $as_echo_n 0123456789 >"conftest.in"
4167 while :
4169 cat "conftest.in" "conftest.in" >"conftest.tmp"
4170 mv "conftest.tmp" "conftest.in"
4171 cp "conftest.in" "conftest.nl"
4172 $as_echo '' >> "conftest.nl"
4173 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175 as_fn_arith $ac_count + 1 && ac_count=$as_val
4176 if test $ac_count -gt ${ac_path_SED_max-0}; then
4177 # Best one so far, save it but keep looking for a better one
4178 ac_cv_path_SED="$ac_path_SED"
4179 ac_path_SED_max=$ac_count
4181 # 10*(2^10) chars as input seems more than enough
4182 test $ac_count -gt 10 && break
4183 done
4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 esac
4187 $ac_path_SED_found && break 3
4188 done
4189 done
4190 done
4191 IFS=$as_save_IFS
4192 if test -z "$ac_cv_path_SED"; then
4193 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4195 else
4196 ac_cv_path_SED=$SED
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4201 $as_echo "$ac_cv_path_SED" >&6; }
4202 SED="$ac_cv_path_SED"
4203 rm -f conftest.sed
4205 test -z "$SED" && SED=sed
4206 Xsed="$SED -e 1s/^X//"
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4219 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4220 if test "${ac_cv_path_GREP+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -z "$GREP"; then
4224 ac_path_GREP_found=false
4225 # Loop through the user's path and test for each of PROGNAME-LIST
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_prog in grep ggrep; do
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4235 # Check for GNU ac_path_GREP and select it if it is found.
4236 # Check for GNU $ac_path_GREP
4237 case `"$ac_path_GREP" --version 2>&1` in
4238 *GNU*)
4239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4241 ac_count=0
4242 $as_echo_n 0123456789 >"conftest.in"
4243 while :
4245 cat "conftest.in" "conftest.in" >"conftest.tmp"
4246 mv "conftest.tmp" "conftest.in"
4247 cp "conftest.in" "conftest.nl"
4248 $as_echo 'GREP' >> "conftest.nl"
4249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4251 as_fn_arith $ac_count + 1 && ac_count=$as_val
4252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4253 # Best one so far, save it but keep looking for a better one
4254 ac_cv_path_GREP="$ac_path_GREP"
4255 ac_path_GREP_max=$ac_count
4257 # 10*(2^10) chars as input seems more than enough
4258 test $ac_count -gt 10 && break
4259 done
4260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261 esac
4263 $ac_path_GREP_found && break 3
4264 done
4265 done
4266 done
4267 IFS=$as_save_IFS
4268 if test -z "$ac_cv_path_GREP"; then
4269 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4271 else
4272 ac_cv_path_GREP=$GREP
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4277 $as_echo "$ac_cv_path_GREP" >&6; }
4278 GREP="$ac_cv_path_GREP"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4282 $as_echo_n "checking for egrep... " >&6; }
4283 if test "${ac_cv_path_EGREP+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4287 then ac_cv_path_EGREP="$GREP -E"
4288 else
4289 if test -z "$EGREP"; then
4290 ac_path_EGREP_found=false
4291 # Loop through the user's path and test for each of PROGNAME-LIST
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_prog in egrep; do
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4301 # Check for GNU ac_path_EGREP and select it if it is found.
4302 # Check for GNU $ac_path_EGREP
4303 case `"$ac_path_EGREP" --version 2>&1` in
4304 *GNU*)
4305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4307 ac_count=0
4308 $as_echo_n 0123456789 >"conftest.in"
4309 while :
4311 cat "conftest.in" "conftest.in" >"conftest.tmp"
4312 mv "conftest.tmp" "conftest.in"
4313 cp "conftest.in" "conftest.nl"
4314 $as_echo 'EGREP' >> "conftest.nl"
4315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4317 as_fn_arith $ac_count + 1 && ac_count=$as_val
4318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4319 # Best one so far, save it but keep looking for a better one
4320 ac_cv_path_EGREP="$ac_path_EGREP"
4321 ac_path_EGREP_max=$ac_count
4323 # 10*(2^10) chars as input seems more than enough
4324 test $ac_count -gt 10 && break
4325 done
4326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327 esac
4329 $ac_path_EGREP_found && break 3
4330 done
4331 done
4332 done
4333 IFS=$as_save_IFS
4334 if test -z "$ac_cv_path_EGREP"; then
4335 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4337 else
4338 ac_cv_path_EGREP=$EGREP
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4344 $as_echo "$ac_cv_path_EGREP" >&6; }
4345 EGREP="$ac_cv_path_EGREP"
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4349 $as_echo_n "checking for fgrep... " >&6; }
4350 if test "${ac_cv_path_FGREP+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4354 then ac_cv_path_FGREP="$GREP -F"
4355 else
4356 if test -z "$FGREP"; then
4357 ac_path_FGREP_found=false
4358 # Loop through the user's path and test for each of PROGNAME-LIST
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_prog in fgrep; do
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4367 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4368 # Check for GNU ac_path_FGREP and select it if it is found.
4369 # Check for GNU $ac_path_FGREP
4370 case `"$ac_path_FGREP" --version 2>&1` in
4371 *GNU*)
4372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4374 ac_count=0
4375 $as_echo_n 0123456789 >"conftest.in"
4376 while :
4378 cat "conftest.in" "conftest.in" >"conftest.tmp"
4379 mv "conftest.tmp" "conftest.in"
4380 cp "conftest.in" "conftest.nl"
4381 $as_echo 'FGREP' >> "conftest.nl"
4382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4384 as_fn_arith $ac_count + 1 && ac_count=$as_val
4385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4386 # Best one so far, save it but keep looking for a better one
4387 ac_cv_path_FGREP="$ac_path_FGREP"
4388 ac_path_FGREP_max=$ac_count
4390 # 10*(2^10) chars as input seems more than enough
4391 test $ac_count -gt 10 && break
4392 done
4393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4394 esac
4396 $ac_path_FGREP_found && break 3
4397 done
4398 done
4399 done
4400 IFS=$as_save_IFS
4401 if test -z "$ac_cv_path_FGREP"; then
4402 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4404 else
4405 ac_cv_path_FGREP=$FGREP
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4411 $as_echo "$ac_cv_path_FGREP" >&6; }
4412 FGREP="$ac_cv_path_FGREP"
4415 test -z "$GREP" && GREP=grep
4435 # Check whether --with-gnu-ld was given.
4436 if test "${with_gnu_ld+set}" = set; then :
4437 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4438 else
4439 with_gnu_ld=no
4442 ac_prog=ld
4443 if test "$GCC" = yes; then
4444 # Check if gcc -print-prog-name=ld gives a path.
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4446 $as_echo_n "checking for ld used by $CC... " >&6; }
4447 case $host in
4448 *-*-mingw*)
4449 # gcc leaves a trailing carriage return which upsets mingw
4450 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4452 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4453 esac
4454 case $ac_prog in
4455 # Accept absolute paths.
4456 [\\/]* | ?:[\\/]*)
4457 re_direlt='/[^/][^/]*/\.\./'
4458 # Canonicalize the pathname of ld
4459 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4460 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4461 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4462 done
4463 test -z "$LD" && LD="$ac_prog"
4466 # If it fails, then pretend we aren't using GCC.
4467 ac_prog=ld
4470 # If it is relative, then search for the first ld in PATH.
4471 with_gnu_ld=unknown
4473 esac
4474 elif test "$with_gnu_ld" = yes; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4476 $as_echo_n "checking for GNU ld... " >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4479 $as_echo_n "checking for non-GNU ld... " >&6; }
4481 if test "${lt_cv_path_LD+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if test -z "$LD"; then
4485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4486 for ac_dir in $PATH; do
4487 IFS="$lt_save_ifs"
4488 test -z "$ac_dir" && ac_dir=.
4489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4490 lt_cv_path_LD="$ac_dir/$ac_prog"
4491 # Check to see if the program is GNU ld. I'd rather use --version,
4492 # but apparently some variants of GNU ld only accept -v.
4493 # Break only if it was the GNU/non-GNU ld that we prefer.
4494 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4495 *GNU* | *'with BFD'*)
4496 test "$with_gnu_ld" != no && break
4499 test "$with_gnu_ld" != yes && break
4501 esac
4503 done
4504 IFS="$lt_save_ifs"
4505 else
4506 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4510 LD="$lt_cv_path_LD"
4511 if test -n "$LD"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4513 $as_echo "$LD" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4518 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4520 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4521 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4525 case `$LD -v 2>&1 </dev/null` in
4526 *GNU* | *'with BFD'*)
4527 lt_cv_prog_gnu_ld=yes
4530 lt_cv_prog_gnu_ld=no
4532 esac
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4535 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4536 with_gnu_ld=$lt_cv_prog_gnu_ld
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4547 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4548 if test "${lt_cv_path_NM+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$NM"; then
4552 # Let the user override the test.
4553 lt_cv_path_NM="$NM"
4554 else
4555 lt_nm_to_check="${ac_tool_prefix}nm"
4556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4557 lt_nm_to_check="$lt_nm_to_check nm"
4559 for lt_tmp_nm in $lt_nm_to_check; do
4560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4562 IFS="$lt_save_ifs"
4563 test -z "$ac_dir" && ac_dir=.
4564 tmp_nm="$ac_dir/$lt_tmp_nm"
4565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4566 # Check to see if the nm accepts a BSD-compat flag.
4567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4568 # nm: unknown option "B" ignored
4569 # Tru64's nm complains that /dev/null is an invalid object file
4570 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4571 */dev/null* | *'Invalid file or object type'*)
4572 lt_cv_path_NM="$tmp_nm -B"
4573 break
4576 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4577 */dev/null*)
4578 lt_cv_path_NM="$tmp_nm -p"
4579 break
4582 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4583 continue # so that we can try to find one that supports BSD flags
4585 esac
4587 esac
4589 done
4590 IFS="$lt_save_ifs"
4591 done
4592 : ${lt_cv_path_NM=no}
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4596 $as_echo "$lt_cv_path_NM" >&6; }
4597 if test "$lt_cv_path_NM" != "no"; then
4598 NM="$lt_cv_path_NM"
4599 else
4600 # Didn't find any BSD compatible name lister, look for dumpbin.
4601 if test -n "$DUMPBIN"; then :
4602 # Let the user override the test.
4603 else
4604 if test -n "$ac_tool_prefix"; then
4605 for ac_prog in dumpbin "link -dump"
4607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$DUMPBIN"; then
4615 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 DUMPBIN=$ac_cv_prog_DUMPBIN
4635 if test -n "$DUMPBIN"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4637 $as_echo "$DUMPBIN" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 test -n "$DUMPBIN" && break
4645 done
4647 if test -z "$DUMPBIN"; then
4648 ac_ct_DUMPBIN=$DUMPBIN
4649 for ac_prog in dumpbin "link -dump"
4651 # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$ac_ct_DUMPBIN"; then
4659 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4679 if test -n "$ac_ct_DUMPBIN"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4681 $as_echo "$ac_ct_DUMPBIN" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 test -n "$ac_ct_DUMPBIN" && break
4689 done
4691 if test "x$ac_ct_DUMPBIN" = x; then
4692 DUMPBIN=":"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 DUMPBIN=$ac_ct_DUMPBIN
4704 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4705 *COFF*)
4706 DUMPBIN="$DUMPBIN -symbols"
4709 DUMPBIN=:
4711 esac
4714 if test "$DUMPBIN" != ":"; then
4715 NM="$DUMPBIN"
4718 test -z "$NM" && NM=nm
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4726 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4727 if test "${lt_cv_nm_interface+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 lt_cv_nm_interface="BSD nm"
4731 echo "int some_variable = 0;" > conftest.$ac_ext
4732 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4733 (eval "$ac_compile" 2>conftest.err)
4734 cat conftest.err >&5
4735 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4736 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4737 cat conftest.err >&5
4738 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4739 cat conftest.out >&5
4740 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4741 lt_cv_nm_interface="MS dumpbin"
4743 rm -f conftest*
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4746 $as_echo "$lt_cv_nm_interface" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4749 $as_echo_n "checking whether ln -s works... " >&6; }
4750 LN_S=$as_ln_s
4751 if test "$LN_S" = "ln -s"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4753 $as_echo "yes" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4756 $as_echo "no, using $LN_S" >&6; }
4759 # find the maximum length of command line arguments
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4761 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4762 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4766 teststring="ABCD"
4768 case $build_os in
4769 msdosdjgpp*)
4770 # On DJGPP, this test can blow up pretty badly due to problems in libc
4771 # (any single argument exceeding 2000 bytes causes a buffer overrun
4772 # during glob expansion). Even if it were fixed, the result of this
4773 # check would be larger than it should be.
4774 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4777 gnu*)
4778 # Under GNU Hurd, this test is not required because there is
4779 # no limit to the length of command line arguments.
4780 # Libtool will interpret -1 as no limit whatsoever
4781 lt_cv_sys_max_cmd_len=-1;
4784 cygwin* | mingw* | cegcc*)
4785 # On Win9x/ME, this test blows up -- it succeeds, but takes
4786 # about 5 minutes as the teststring grows exponentially.
4787 # Worse, since 9x/ME are not pre-emptively multitasking,
4788 # you end up with a "frozen" computer, even though with patience
4789 # the test eventually succeeds (with a max line length of 256k).
4790 # Instead, let's just punt: use the minimum linelength reported by
4791 # all of the supported platforms: 8192 (on NT/2K/XP).
4792 lt_cv_sys_max_cmd_len=8192;
4795 mint*)
4796 # On MiNT this can take a long time and run out of memory.
4797 lt_cv_sys_max_cmd_len=8192;
4800 amigaos*)
4801 # On AmigaOS with pdksh, this test takes hours, literally.
4802 # So we just punt and use a minimum line length of 8192.
4803 lt_cv_sys_max_cmd_len=8192;
4806 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4807 # This has been around since 386BSD, at least. Likely further.
4808 if test -x /sbin/sysctl; then
4809 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4810 elif test -x /usr/sbin/sysctl; then
4811 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4812 else
4813 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4815 # And add a safety zone
4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4820 interix*)
4821 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4822 lt_cv_sys_max_cmd_len=196608
4825 osf*)
4826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4828 # nice to cause kernel panics so lets avoid the loop below.
4829 # First set a reasonable default.
4830 lt_cv_sys_max_cmd_len=16384
4832 if test -x /sbin/sysconfig; then
4833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4835 esac
4838 sco3.2v5*)
4839 lt_cv_sys_max_cmd_len=102400
4841 sysv5* | sco5v6* | sysv4.2uw2*)
4842 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4843 if test -n "$kargmax"; then
4844 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4845 else
4846 lt_cv_sys_max_cmd_len=32768
4850 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4851 if test -n "$lt_cv_sys_max_cmd_len"; then
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4854 else
4855 # Make teststring a little bigger before we do anything with it.
4856 # a 1K string should be a reasonable start.
4857 for i in 1 2 3 4 5 6 7 8 ; do
4858 teststring=$teststring$teststring
4859 done
4860 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4861 # If test is not a shell built-in, we'll probably end up computing a
4862 # maximum length that is only half of the actual maximum length, but
4863 # we can't tell.
4864 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4865 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4866 test $i != 17 # 1/2 MB should be enough
4868 i=`expr $i + 1`
4869 teststring=$teststring$teststring
4870 done
4871 # Only check the string length outside the loop.
4872 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4873 teststring=
4874 # Add a significant safety factor because C++ compilers can tack on
4875 # massive amounts of additional arguments before passing them to the
4876 # linker. It appears as though 1/2 is a usable value.
4877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4880 esac
4884 if test -n $lt_cv_sys_max_cmd_len ; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4886 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4889 $as_echo "none" >&6; }
4891 max_cmd_len=$lt_cv_sys_max_cmd_len
4898 : ${CP="cp -f"}
4899 : ${MV="mv -f"}
4900 : ${RM="rm -f"}
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4903 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4904 # Try some XSI features
4905 xsi_shell=no
4906 ( _lt_dummy="a/b/c"
4907 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4908 = c,a/b,, \
4909 && eval 'test $(( 1 + 1 )) -eq 2 \
4910 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4911 && xsi_shell=yes
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4913 $as_echo "$xsi_shell" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4917 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4918 lt_shell_append=no
4919 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4920 >/dev/null 2>&1 \
4921 && lt_shell_append=yes
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4923 $as_echo "$lt_shell_append" >&6; }
4926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4927 lt_unset=unset
4928 else
4929 lt_unset=false
4936 # test EBCDIC or ASCII
4937 case `echo X|tr X '\101'` in
4938 A) # ASCII based system
4939 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4940 lt_SP2NL='tr \040 \012'
4941 lt_NL2SP='tr \015\012 \040\040'
4943 *) # EBCDIC based system
4944 lt_SP2NL='tr \100 \n'
4945 lt_NL2SP='tr \r\n \100\100'
4947 esac
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4958 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4959 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 lt_cv_ld_reload_flag='-r'
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4965 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4966 reload_flag=$lt_cv_ld_reload_flag
4967 case $reload_flag in
4968 "" | " "*) ;;
4969 *) reload_flag=" $reload_flag" ;;
4970 esac
4971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4972 case $host_os in
4973 darwin*)
4974 if test "$GCC" = yes; then
4975 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4976 else
4977 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4980 esac
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$OBJDUMP"; then
4999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5018 OBJDUMP=$ac_cv_prog_OBJDUMP
5019 if test -n "$OBJDUMP"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5021 $as_echo "$OBJDUMP" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5029 if test -z "$ac_cv_prog_OBJDUMP"; then
5030 ac_ct_OBJDUMP=$OBJDUMP
5031 # Extract the first word of "objdump", so it can be a program name with args.
5032 set dummy objdump; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_OBJDUMP"; then
5039 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5059 if test -n "$ac_ct_OBJDUMP"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5061 $as_echo "$ac_ct_OBJDUMP" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5067 if test "x$ac_ct_OBJDUMP" = x; then
5068 OBJDUMP="false"
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 OBJDUMP=$ac_ct_OBJDUMP
5078 else
5079 OBJDUMP="$ac_cv_prog_OBJDUMP"
5082 test -z "$OBJDUMP" && OBJDUMP=objdump
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5093 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5094 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 lt_cv_file_magic_cmd='$MAGIC_CMD'
5098 lt_cv_file_magic_test_file=
5099 lt_cv_deplibs_check_method='unknown'
5100 # Need to set the preceding variable on all platforms that support
5101 # interlibrary dependencies.
5102 # 'none' -- dependencies not supported.
5103 # `unknown' -- same as none, but documents that we really don't know.
5104 # 'pass_all' -- all dependencies passed with no checks.
5105 # 'test_compile' -- check by making test program.
5106 # 'file_magic [[regex]]' -- check by looking for files in library path
5107 # which responds to the $file_magic_cmd with a given extended regex.
5108 # If you have `file' or equivalent on your system and you're not sure
5109 # whether `pass_all' will *always* work, you probably want this one.
5111 case $host_os in
5112 aix[4-9]*)
5113 lt_cv_deplibs_check_method=pass_all
5116 beos*)
5117 lt_cv_deplibs_check_method=pass_all
5120 bsdi[45]*)
5121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5122 lt_cv_file_magic_cmd='/usr/bin/file -L'
5123 lt_cv_file_magic_test_file=/shlib/libc.so
5126 cygwin*)
5127 # func_win32_libid is a shell function defined in ltmain.sh
5128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5129 lt_cv_file_magic_cmd='func_win32_libid'
5132 mingw* | pw32*)
5133 # Base MSYS/MinGW do not provide the 'file' command needed by
5134 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5135 # unless we find 'file', for example because we are cross-compiling.
5136 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5137 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5138 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5139 lt_cv_file_magic_cmd='func_win32_libid'
5140 else
5141 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5142 lt_cv_file_magic_cmd='$OBJDUMP -f'
5146 cegcc*)
5147 # use the weaker test based on 'objdump'. See mingw*.
5148 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5149 lt_cv_file_magic_cmd='$OBJDUMP -f'
5152 darwin* | rhapsody*)
5153 lt_cv_deplibs_check_method=pass_all
5156 freebsd* | dragonfly*)
5157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5158 case $host_cpu in
5159 i*86 )
5160 # Not sure whether the presence of OpenBSD here was a mistake.
5161 # Let's accept both of them until this is cleared up.
5162 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5163 lt_cv_file_magic_cmd=/usr/bin/file
5164 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5166 esac
5167 else
5168 lt_cv_deplibs_check_method=pass_all
5172 gnu*)
5173 lt_cv_deplibs_check_method=pass_all
5176 haiku*)
5177 lt_cv_deplibs_check_method=pass_all
5180 hpux10.20* | hpux11*)
5181 lt_cv_file_magic_cmd=/usr/bin/file
5182 case $host_cpu in
5183 ia64*)
5184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5185 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5187 hppa*64*)
5188 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]'
5189 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5192 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5193 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5195 esac
5198 interix[3-9]*)
5199 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5203 irix5* | irix6* | nonstopux*)
5204 case $LD in
5205 *-32|*"-32 ") libmagic=32-bit;;
5206 *-n32|*"-n32 ") libmagic=N32;;
5207 *-64|*"-64 ") libmagic=64-bit;;
5208 *) libmagic=never-match;;
5209 esac
5210 lt_cv_deplibs_check_method=pass_all
5213 # This must be Linux ELF.
5214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5215 lt_cv_deplibs_check_method=pass_all
5218 netbsd*)
5219 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5221 else
5222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5226 newos6*)
5227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5228 lt_cv_file_magic_cmd=/usr/bin/file
5229 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5232 *nto* | *qnx*)
5233 lt_cv_deplibs_check_method=pass_all
5236 openbsd*)
5237 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5239 else
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5244 osf3* | osf4* | osf5*)
5245 lt_cv_deplibs_check_method=pass_all
5248 rdos*)
5249 lt_cv_deplibs_check_method=pass_all
5252 solaris*)
5253 lt_cv_deplibs_check_method=pass_all
5256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5257 lt_cv_deplibs_check_method=pass_all
5260 sysv4 | sysv4.3*)
5261 case $host_vendor in
5262 motorola)
5263 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]'
5264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5266 ncr)
5267 lt_cv_deplibs_check_method=pass_all
5269 sequent)
5270 lt_cv_file_magic_cmd='/bin/file'
5271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5273 sni)
5274 lt_cv_file_magic_cmd='/bin/file'
5275 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5276 lt_cv_file_magic_test_file=/lib/libc.so
5278 siemens)
5279 lt_cv_deplibs_check_method=pass_all
5282 lt_cv_deplibs_check_method=pass_all
5284 esac
5287 tpf*)
5288 lt_cv_deplibs_check_method=pass_all
5290 esac
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5294 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5295 file_magic_cmd=$lt_cv_file_magic_cmd
5296 deplibs_check_method=$lt_cv_deplibs_check_method
5297 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5310 if test -n "$ac_tool_prefix"; then
5311 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5312 set dummy ${ac_tool_prefix}ar; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_AR+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$AR"; then
5319 ac_cv_prog_AR="$AR" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_AR="${ac_tool_prefix}ar"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 AR=$ac_cv_prog_AR
5339 if test -n "$AR"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5341 $as_echo "$AR" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5349 if test -z "$ac_cv_prog_AR"; then
5350 ac_ct_AR=$AR
5351 # Extract the first word of "ar", so it can be a program name with args.
5352 set dummy ar; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$ac_ct_AR"; then
5359 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_ac_ct_AR="ar"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5379 if test -n "$ac_ct_AR"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5381 $as_echo "$ac_ct_AR" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5387 if test "x$ac_ct_AR" = x; then
5388 AR="false"
5389 else
5390 case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396 AR=$ac_ct_AR
5398 else
5399 AR="$ac_cv_prog_AR"
5402 test -z "$AR" && AR=ar
5403 test -z "$AR_FLAGS" && AR_FLAGS=cru
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}strip; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if test "${ac_cv_prog_STRIP+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$STRIP"; then
5424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5437 done
5438 done
5439 IFS=$as_save_IFS
5443 STRIP=$ac_cv_prog_STRIP
5444 if test -n "$STRIP"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5446 $as_echo "$STRIP" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5454 if test -z "$ac_cv_prog_STRIP"; then
5455 ac_ct_STRIP=$STRIP
5456 # Extract the first word of "strip", so it can be a program name with args.
5457 set dummy strip; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 if test -n "$ac_ct_STRIP"; then
5464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5465 else
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_ac_ct_STRIP="strip"
5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5477 done
5478 done
5479 IFS=$as_save_IFS
5483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5484 if test -n "$ac_ct_STRIP"; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5486 $as_echo "$ac_ct_STRIP" >&6; }
5487 else
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5489 $as_echo "no" >&6; }
5492 if test "x$ac_ct_STRIP" = x; then
5493 STRIP=":"
5494 else
5495 case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501 STRIP=$ac_ct_STRIP
5503 else
5504 STRIP="$ac_cv_prog_STRIP"
5507 test -z "$STRIP" && STRIP=:
5514 if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$RANLIB"; then
5523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 RANLIB=$ac_cv_prog_RANLIB
5543 if test -n "$RANLIB"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5545 $as_echo "$RANLIB" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5553 if test -z "$ac_cv_prog_RANLIB"; then
5554 ac_ct_RANLIB=$RANLIB
5555 # Extract the first word of "ranlib", so it can be a program name with args.
5556 set dummy ranlib; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$ac_ct_RANLIB"; then
5563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_ac_ct_RANLIB="ranlib"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5576 done
5577 done
5578 IFS=$as_save_IFS
5582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5583 if test -n "$ac_ct_RANLIB"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5585 $as_echo "$ac_ct_RANLIB" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5591 if test "x$ac_ct_RANLIB" = x; then
5592 RANLIB=":"
5593 else
5594 case $cross_compiling:$ac_tool_warned in
5595 yes:)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned=yes ;;
5599 esac
5600 RANLIB=$ac_ct_RANLIB
5602 else
5603 RANLIB="$ac_cv_prog_RANLIB"
5606 test -z "$RANLIB" && RANLIB=:
5613 # Determine commands to create old-style static archives.
5614 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5615 old_postinstall_cmds='chmod 644 $oldlib'
5616 old_postuninstall_cmds=
5618 if test -n "$RANLIB"; then
5619 case $host_os in
5620 openbsd*)
5621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5626 esac
5627 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5630 case $host_os in
5631 darwin*)
5632 lock_old_archive_extraction=yes ;;
5634 lock_old_archive_extraction=no ;;
5635 esac
5675 # If no C compiler was specified, use CC.
5676 LTCC=${LTCC-"$CC"}
5678 # If no C compiler flags were specified, use CFLAGS.
5679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5681 # Allow CC to be a program name with arguments.
5682 compiler=$CC
5685 # Check for command to grab the raw symbol name followed by C symbol from nm.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5687 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5688 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5692 # These are sane defaults that work on at least a few old systems.
5693 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5695 # Character class describing NM global symbol codes.
5696 symcode='[BCDEGRST]'
5698 # Regexp to match symbols that can be accessed directly from C.
5699 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5701 # Define system-specific variables.
5702 case $host_os in
5703 aix*)
5704 symcode='[BCDT]'
5706 cygwin* | mingw* | pw32* | cegcc*)
5707 symcode='[ABCDGISTW]'
5709 hpux*)
5710 if test "$host_cpu" = ia64; then
5711 symcode='[ABCDEGRST]'
5714 irix* | nonstopux*)
5715 symcode='[BCDEGRST]'
5717 osf*)
5718 symcode='[BCDEGQRST]'
5720 solaris*)
5721 symcode='[BDRT]'
5723 sco3.2v5*)
5724 symcode='[DT]'
5726 sysv4.2uw2*)
5727 symcode='[DT]'
5729 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5730 symcode='[ABDT]'
5732 sysv4)
5733 symcode='[DFNSTU]'
5735 esac
5737 # If we're using GNU nm, then use its standard symbol codes.
5738 case `$NM -V 2>&1` in
5739 *GNU* | *'with BFD'*)
5740 symcode='[ABCDGIRSTW]' ;;
5741 esac
5743 # Transform an extracted symbol line into a proper C declaration.
5744 # Some systems (esp. on ia64) link data and code symbols differently,
5745 # so use this general approach.
5746 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5748 # Transform an extracted symbol line into symbol name and symbol address
5749 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5750 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'"
5752 # Handle CRLF in mingw tool chain
5753 opt_cr=
5754 case $build_os in
5755 mingw*)
5756 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5758 esac
5760 # Try without a prefix underscore, then with it.
5761 for ac_symprfx in "" "_"; do
5763 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5764 symxfrm="\\1 $ac_symprfx\\2 \\2"
5766 # Write the raw and C identifiers.
5767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5768 # Fake it for dumpbin and say T for any non-static function
5769 # and D for any global variable.
5770 # Also find C++ and __fastcall symbols from MSVC++,
5771 # which start with @ or ?.
5772 lt_cv_sys_global_symbol_pipe="$AWK '"\
5773 " {last_section=section; section=\$ 3};"\
5774 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5775 " \$ 0!~/External *\|/{next};"\
5776 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5777 " {if(hide[section]) next};"\
5778 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5779 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5780 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5781 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5782 " ' prfx=^$ac_symprfx"
5783 else
5784 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5787 # Check to see that the pipe works correctly.
5788 pipe_works=no
5790 rm -f conftest*
5791 cat > conftest.$ac_ext <<_LT_EOF
5792 #ifdef __cplusplus
5793 extern "C" {
5794 #endif
5795 char nm_test_var;
5796 void nm_test_func(void);
5797 void nm_test_func(void){}
5798 #ifdef __cplusplus
5800 #endif
5801 int main(){nm_test_var='a';nm_test_func();return(0);}
5802 _LT_EOF
5804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5805 (eval $ac_compile) 2>&5
5806 ac_status=$?
5807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5808 test $ac_status = 0; }; then
5809 # Now try to grab the symbols.
5810 nlist=conftest.nm
5811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5812 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5813 ac_status=$?
5814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5815 test $ac_status = 0; } && test -s "$nlist"; then
5816 # Try sorting and uniquifying the output.
5817 if sort "$nlist" | uniq > "$nlist"T; then
5818 mv -f "$nlist"T "$nlist"
5819 else
5820 rm -f "$nlist"T
5823 # Make sure that we snagged all the symbols we need.
5824 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5825 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5826 cat <<_LT_EOF > conftest.$ac_ext
5827 #ifdef __cplusplus
5828 extern "C" {
5829 #endif
5831 _LT_EOF
5832 # Now generate the symbol file.
5833 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5835 cat <<_LT_EOF >> conftest.$ac_ext
5837 /* The mapping between symbol names and symbols. */
5838 const struct {
5839 const char *name;
5840 void *address;
5842 lt__PROGRAM__LTX_preloaded_symbols[] =
5844 { "@PROGRAM@", (void *) 0 },
5845 _LT_EOF
5846 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5847 cat <<\_LT_EOF >> conftest.$ac_ext
5848 {0, (void *) 0}
5851 /* This works around a problem in FreeBSD linker */
5852 #ifdef FREEBSD_WORKAROUND
5853 static const void *lt_preloaded_setup() {
5854 return lt__PROGRAM__LTX_preloaded_symbols;
5856 #endif
5858 #ifdef __cplusplus
5860 #endif
5861 _LT_EOF
5862 # Now try linking the two files.
5863 mv conftest.$ac_objext conftstm.$ac_objext
5864 lt_save_LIBS="$LIBS"
5865 lt_save_CFLAGS="$CFLAGS"
5866 LIBS="conftstm.$ac_objext"
5867 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5869 (eval $ac_link) 2>&5
5870 ac_status=$?
5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5872 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5873 pipe_works=yes
5875 LIBS="$lt_save_LIBS"
5876 CFLAGS="$lt_save_CFLAGS"
5877 else
5878 echo "cannot find nm_test_func in $nlist" >&5
5880 else
5881 echo "cannot find nm_test_var in $nlist" >&5
5883 else
5884 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5886 else
5887 echo "$progname: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 rm -rf conftest* conftst*
5892 # Do not use the global_symbol_pipe unless it works.
5893 if test "$pipe_works" = yes; then
5894 break
5895 else
5896 lt_cv_sys_global_symbol_pipe=
5898 done
5902 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5903 lt_cv_sys_global_symbol_to_cdecl=
5905 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5907 $as_echo "failed" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5910 $as_echo "ok" >&6; }
5934 # Check whether --enable-libtool-lock was given.
5935 if test "${enable_libtool_lock+set}" = set; then :
5936 enableval=$enable_libtool_lock;
5939 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5941 # Some flags need to be propagated to the compiler or linker for good
5942 # libtool support.
5943 case $host in
5944 ia64-*-hpux*)
5945 # Find out which ABI we are using.
5946 echo 'int i;' > conftest.$ac_ext
5947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5948 (eval $ac_compile) 2>&5
5949 ac_status=$?
5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5951 test $ac_status = 0; }; then
5952 case `/usr/bin/file conftest.$ac_objext` in
5953 *ELF-32*)
5954 HPUX_IA64_MODE="32"
5956 *ELF-64*)
5957 HPUX_IA64_MODE="64"
5959 esac
5961 rm -rf conftest*
5963 *-*-irix6*)
5964 # Find out which ABI we are using.
5965 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5967 (eval $ac_compile) 2>&5
5968 ac_status=$?
5969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970 test $ac_status = 0; }; then
5971 if test "$lt_cv_prog_gnu_ld" = yes; then
5972 case `/usr/bin/file conftest.$ac_objext` in
5973 *32-bit*)
5974 LD="${LD-ld} -melf32bsmip"
5976 *N32*)
5977 LD="${LD-ld} -melf32bmipn32"
5979 *64-bit*)
5980 LD="${LD-ld} -melf64bmip"
5982 esac
5983 else
5984 case `/usr/bin/file conftest.$ac_objext` in
5985 *32-bit*)
5986 LD="${LD-ld} -32"
5988 *N32*)
5989 LD="${LD-ld} -n32"
5991 *64-bit*)
5992 LD="${LD-ld} -64"
5994 esac
5997 rm -rf conftest*
6000 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6001 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6002 # Find out which ABI we are using.
6003 echo 'int i;' > conftest.$ac_ext
6004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6005 (eval $ac_compile) 2>&5
6006 ac_status=$?
6007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008 test $ac_status = 0; }; then
6009 case `/usr/bin/file conftest.o` in
6010 *32-bit*)
6011 case $host in
6012 x86_64-*kfreebsd*-gnu)
6013 LD="${LD-ld} -m elf_i386_fbsd"
6015 x86_64-*linux*)
6016 LD="${LD-ld} -m elf_i386"
6018 ppc64-*linux*|powerpc64-*linux*)
6019 LD="${LD-ld} -m elf32ppclinux"
6021 s390x-*linux*)
6022 LD="${LD-ld} -m elf_s390"
6024 sparc64-*linux*)
6025 LD="${LD-ld} -m elf32_sparc"
6027 esac
6029 *64-bit*)
6030 case $host in
6031 x86_64-*kfreebsd*-gnu)
6032 LD="${LD-ld} -m elf_x86_64_fbsd"
6034 x86_64-*linux*)
6035 LD="${LD-ld} -m elf_x86_64"
6037 ppc*-*linux*|powerpc*-*linux*)
6038 LD="${LD-ld} -m elf64ppc"
6040 s390*-*linux*|s390*-*tpf*)
6041 LD="${LD-ld} -m elf64_s390"
6043 sparc*-*linux*)
6044 LD="${LD-ld} -m elf64_sparc"
6046 esac
6048 esac
6050 rm -rf conftest*
6053 *-*-sco3.2v5*)
6054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6055 SAVE_CFLAGS="$CFLAGS"
6056 CFLAGS="$CFLAGS -belf"
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6058 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6059 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 ac_ext=c
6063 ac_cpp='$CPP $CPPFLAGS'
6064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6072 main ()
6076 return 0;
6078 _ACEOF
6079 if ac_fn_c_try_link "$LINENO"; then :
6080 lt_cv_cc_needs_belf=yes
6081 else
6082 lt_cv_cc_needs_belf=no
6084 rm -f core conftest.err conftest.$ac_objext \
6085 conftest$ac_exeext conftest.$ac_ext
6086 ac_ext=c
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6094 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6097 CFLAGS="$SAVE_CFLAGS"
6100 sparc*-*solaris*)
6101 # Find out which ABI we are using.
6102 echo 'int i;' > conftest.$ac_ext
6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6104 (eval $ac_compile) 2>&5
6105 ac_status=$?
6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6107 test $ac_status = 0; }; then
6108 case `/usr/bin/file conftest.o` in
6109 *64-bit*)
6110 case $lt_cv_prog_gnu_ld in
6111 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6113 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6114 LD="${LD-ld} -64"
6117 esac
6119 esac
6121 rm -rf conftest*
6123 esac
6125 need_locks="$enable_libtool_lock"
6128 case $host_os in
6129 rhapsody* | darwin*)
6130 if test -n "$ac_tool_prefix"; then
6131 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6132 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$DSYMUTIL"; then
6139 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6148 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6154 IFS=$as_save_IFS
6158 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6159 if test -n "$DSYMUTIL"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6161 $as_echo "$DSYMUTIL" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6169 if test -z "$ac_cv_prog_DSYMUTIL"; then
6170 ac_ct_DSYMUTIL=$DSYMUTIL
6171 # Extract the first word of "dsymutil", so it can be a program name with args.
6172 set dummy dsymutil; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if test -n "$ac_ct_DSYMUTIL"; then
6179 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6192 done
6193 done
6194 IFS=$as_save_IFS
6198 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6199 if test -n "$ac_ct_DSYMUTIL"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6201 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6207 if test "x$ac_ct_DSYMUTIL" = x; then
6208 DSYMUTIL=":"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216 DSYMUTIL=$ac_ct_DSYMUTIL
6218 else
6219 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6222 if test -n "$ac_tool_prefix"; then
6223 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6224 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if test -n "$NMEDIT"; then
6231 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 break 2
6244 done
6245 done
6246 IFS=$as_save_IFS
6250 NMEDIT=$ac_cv_prog_NMEDIT
6251 if test -n "$NMEDIT"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6253 $as_echo "$NMEDIT" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6261 if test -z "$ac_cv_prog_NMEDIT"; then
6262 ac_ct_NMEDIT=$NMEDIT
6263 # Extract the first word of "nmedit", so it can be a program name with args.
6264 set dummy nmedit; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$ac_ct_NMEDIT"; then
6271 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6284 done
6285 done
6286 IFS=$as_save_IFS
6290 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6291 if test -n "$ac_ct_NMEDIT"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6293 $as_echo "$ac_ct_NMEDIT" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6299 if test "x$ac_ct_NMEDIT" = x; then
6300 NMEDIT=":"
6301 else
6302 case $cross_compiling:$ac_tool_warned in
6303 yes:)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6306 ac_tool_warned=yes ;;
6307 esac
6308 NMEDIT=$ac_ct_NMEDIT
6310 else
6311 NMEDIT="$ac_cv_prog_NMEDIT"
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if test "${ac_cv_prog_LIPO+set}" = set; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$LIPO"; then
6323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6338 IFS=$as_save_IFS
6342 LIPO=$ac_cv_prog_LIPO
6343 if test -n "$LIPO"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6345 $as_echo "$LIPO" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6353 if test -z "$ac_cv_prog_LIPO"; then
6354 ac_ct_LIPO=$LIPO
6355 # Extract the first word of "lipo", so it can be a program name with args.
6356 set dummy lipo; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$ac_ct_LIPO"; then
6363 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_prog_ac_ct_LIPO="lipo"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6376 done
6377 done
6378 IFS=$as_save_IFS
6382 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6383 if test -n "$ac_ct_LIPO"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6385 $as_echo "$ac_ct_LIPO" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6391 if test "x$ac_ct_LIPO" = x; then
6392 LIPO=":"
6393 else
6394 case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400 LIPO=$ac_ct_LIPO
6402 else
6403 LIPO="$ac_cv_prog_LIPO"
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}otool; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$OTOOL"; then
6415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6428 done
6429 done
6430 IFS=$as_save_IFS
6434 OTOOL=$ac_cv_prog_OTOOL
6435 if test -n "$OTOOL"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6437 $as_echo "$OTOOL" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6445 if test -z "$ac_cv_prog_OTOOL"; then
6446 ac_ct_OTOOL=$OTOOL
6447 # Extract the first word of "otool", so it can be a program name with args.
6448 set dummy otool; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_OTOOL"; then
6455 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_ac_ct_OTOOL="otool"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6474 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6475 if test -n "$ac_ct_OTOOL"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6477 $as_echo "$ac_ct_OTOOL" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6483 if test "x$ac_ct_OTOOL" = x; then
6484 OTOOL=":"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 OTOOL=$ac_ct_OTOOL
6494 else
6495 OTOOL="$ac_cv_prog_OTOOL"
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test -n "$OTOOL64"; then
6507 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6520 done
6521 done
6522 IFS=$as_save_IFS
6526 OTOOL64=$ac_cv_prog_OTOOL64
6527 if test -n "$OTOOL64"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6529 $as_echo "$OTOOL64" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6537 if test -z "$ac_cv_prog_OTOOL64"; then
6538 ac_ct_OTOOL64=$OTOOL64
6539 # Extract the first word of "otool64", so it can be a program name with args.
6540 set dummy otool64; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$ac_ct_OTOOL64"; then
6547 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_ac_ct_OTOOL64="otool64"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6560 done
6561 done
6562 IFS=$as_save_IFS
6566 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6567 if test -n "$ac_ct_OTOOL64"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6569 $as_echo "$ac_ct_OTOOL64" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6575 if test "x$ac_ct_OTOOL64" = x; then
6576 OTOOL64=":"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584 OTOOL64=$ac_ct_OTOOL64
6586 else
6587 OTOOL64="$ac_cv_prog_OTOOL64"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6617 $as_echo_n "checking for -single_module linker flag... " >&6; }
6618 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 lt_cv_apple_cc_single_mod=no
6622 if test -z "${LT_MULTI_MODULE}"; then
6623 # By default we will add the -single_module flag. You can override
6624 # by either setting the environment variable LT_MULTI_MODULE
6625 # non-empty at configure time, or by adding -multi_module to the
6626 # link flags.
6627 rm -rf libconftest.dylib*
6628 echo "int foo(void){return 1;}" > conftest.c
6629 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6630 -dynamiclib -Wl,-single_module conftest.c" >&5
6631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6632 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6633 _lt_result=$?
6634 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6635 lt_cv_apple_cc_single_mod=yes
6636 else
6637 cat conftest.err >&5
6639 rm -rf libconftest.dylib*
6640 rm -f conftest.*
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6644 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6646 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6647 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 lt_cv_ld_exported_symbols_list=no
6651 save_LDFLAGS=$LDFLAGS
6652 echo "_main" > conftest.sym
6653 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6658 main ()
6662 return 0;
6664 _ACEOF
6665 if ac_fn_c_try_link "$LINENO"; then :
6666 lt_cv_ld_exported_symbols_list=yes
6667 else
6668 lt_cv_ld_exported_symbols_list=no
6670 rm -f core conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 LDFLAGS="$save_LDFLAGS"
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6676 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6678 $as_echo_n "checking for -force_load linker flag... " >&6; }
6679 if test "${lt_cv_ld_force_load+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 lt_cv_ld_force_load=no
6683 cat > conftest.c << _LT_EOF
6684 int forced_loaded() { return 2;}
6685 _LT_EOF
6686 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6687 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6688 echo "$AR cru libconftest.a conftest.o" >&5
6689 $AR cru libconftest.a conftest.o 2>&5
6690 cat > conftest.c << _LT_EOF
6691 int main() { return 0;}
6692 _LT_EOF
6693 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6694 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6695 _lt_result=$?
6696 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6697 lt_cv_ld_force_load=yes
6698 else
6699 cat conftest.err >&5
6701 rm -f conftest.err libconftest.a conftest conftest.c
6702 rm -rf conftest.dSYM
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6706 $as_echo "$lt_cv_ld_force_load" >&6; }
6707 case $host_os in
6708 rhapsody* | darwin1.[012])
6709 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6710 darwin1.*)
6711 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6712 darwin*) # darwin 5.x on
6713 # if running on 10.5 or later, the deployment target defaults
6714 # to the OS version, if on x86, and 10.4, the deployment
6715 # target defaults to 10.4. Don't you love it?
6716 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6717 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6718 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6719 10.[012]*)
6720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6721 10.*)
6722 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6723 esac
6725 esac
6726 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6727 _lt_dar_single_mod='$single_module'
6729 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6730 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6731 else
6732 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6734 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6735 _lt_dsymutil='~$DSYMUTIL $lib || :'
6736 else
6737 _lt_dsymutil=
6740 esac
6742 ac_ext=c
6743 ac_cpp='$CPP $CPPFLAGS'
6744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6748 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6749 # On Suns, sometimes $CPP names a directory.
6750 if test -n "$CPP" && test -d "$CPP"; then
6751 CPP=
6753 if test -z "$CPP"; then
6754 if test "${ac_cv_prog_CPP+set}" = set; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 # Double quotes because CPP needs to be expanded
6758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6760 ac_preproc_ok=false
6761 for ac_c_preproc_warn_flag in '' yes
6763 # Use a header file that comes with gcc, so configuring glibc
6764 # with a fresh cross-compiler works.
6765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6766 # <limits.h> exists even on freestanding compilers.
6767 # On the NeXT, cc -E runs the code through the compiler's parser,
6768 # not just through cpp. "Syntax error" is here to catch this case.
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 #ifdef __STDC__
6772 # include <limits.h>
6773 #else
6774 # include <assert.h>
6775 #endif
6776 Syntax error
6777 _ACEOF
6778 if ac_fn_c_try_cpp "$LINENO"; then :
6780 else
6781 # Broken: fails on valid input.
6782 continue
6784 rm -f conftest.err conftest.$ac_ext
6786 # OK, works on sane cases. Now check whether nonexistent headers
6787 # can be detected and how.
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <ac_nonexistent.h>
6791 _ACEOF
6792 if ac_fn_c_try_cpp "$LINENO"; then :
6793 # Broken: success on invalid input.
6794 continue
6795 else
6796 # Passes both tests.
6797 ac_preproc_ok=:
6798 break
6800 rm -f conftest.err conftest.$ac_ext
6802 done
6803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6804 rm -f conftest.err conftest.$ac_ext
6805 if $ac_preproc_ok; then :
6806 break
6809 done
6810 ac_cv_prog_CPP=$CPP
6813 CPP=$ac_cv_prog_CPP
6814 else
6815 ac_cv_prog_CPP=$CPP
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6818 $as_echo "$CPP" >&6; }
6819 ac_preproc_ok=false
6820 for ac_c_preproc_warn_flag in '' yes
6822 # Use a header file that comes with gcc, so configuring glibc
6823 # with a fresh cross-compiler works.
6824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6825 # <limits.h> exists even on freestanding compilers.
6826 # On the NeXT, cc -E runs the code through the compiler's parser,
6827 # not just through cpp. "Syntax error" is here to catch this case.
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #ifdef __STDC__
6831 # include <limits.h>
6832 #else
6833 # include <assert.h>
6834 #endif
6835 Syntax error
6836 _ACEOF
6837 if ac_fn_c_try_cpp "$LINENO"; then :
6839 else
6840 # Broken: fails on valid input.
6841 continue
6843 rm -f conftest.err conftest.$ac_ext
6845 # OK, works on sane cases. Now check whether nonexistent headers
6846 # can be detected and how.
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <ac_nonexistent.h>
6850 _ACEOF
6851 if ac_fn_c_try_cpp "$LINENO"; then :
6852 # Broken: success on invalid input.
6853 continue
6854 else
6855 # Passes both tests.
6856 ac_preproc_ok=:
6857 break
6859 rm -f conftest.err conftest.$ac_ext
6861 done
6862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6863 rm -f conftest.err conftest.$ac_ext
6864 if $ac_preproc_ok; then :
6866 else
6867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6869 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6870 See \`config.log' for more details." "$LINENO" 5; }
6873 ac_ext=c
6874 ac_cpp='$CPP $CPPFLAGS'
6875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6881 $as_echo_n "checking for ANSI C header files... " >&6; }
6882 if test "${ac_cv_header_stdc+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #include <stdlib.h>
6888 #include <stdarg.h>
6889 #include <string.h>
6890 #include <float.h>
6893 main ()
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 ac_cv_header_stdc=yes
6902 else
6903 ac_cv_header_stdc=no
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 if test $ac_cv_header_stdc = yes; then
6908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #include <string.h>
6913 _ACEOF
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "memchr" >/dev/null 2>&1; then :
6917 else
6918 ac_cv_header_stdc=no
6920 rm -f conftest*
6924 if test $ac_cv_header_stdc = yes; then
6925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #include <stdlib.h>
6930 _ACEOF
6931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932 $EGREP "free" >/dev/null 2>&1; then :
6934 else
6935 ac_cv_header_stdc=no
6937 rm -f conftest*
6941 if test $ac_cv_header_stdc = yes; then
6942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6943 if test "$cross_compiling" = yes; then :
6945 else
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 #include <ctype.h>
6949 #include <stdlib.h>
6950 #if ((' ' & 0x0FF) == 0x020)
6951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6953 #else
6954 # define ISLOWER(c) \
6955 (('a' <= (c) && (c) <= 'i') \
6956 || ('j' <= (c) && (c) <= 'r') \
6957 || ('s' <= (c) && (c) <= 'z'))
6958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6959 #endif
6961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6963 main ()
6965 int i;
6966 for (i = 0; i < 256; i++)
6967 if (XOR (islower (i), ISLOWER (i))
6968 || toupper (i) != TOUPPER (i))
6969 return 2;
6970 return 0;
6972 _ACEOF
6973 if ac_fn_c_try_run "$LINENO"; then :
6975 else
6976 ac_cv_header_stdc=no
6978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6979 conftest.$ac_objext conftest.beam conftest.$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6985 $as_echo "$ac_cv_header_stdc" >&6; }
6986 if test $ac_cv_header_stdc = yes; then
6988 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6994 inttypes.h stdint.h unistd.h
6995 do :
6996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6999 eval as_val=\$$as_ac_Header
7000 if test "x$as_val" = x""yes; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7003 _ACEOF
7007 done
7010 for ac_header in dlfcn.h
7011 do :
7012 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7014 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_DLFCN_H 1
7017 _ACEOF
7021 done
7027 # Set options
7031 enable_dlopen=no
7034 enable_win32_dll=no
7037 # Check whether --enable-shared was given.
7038 if test "${enable_shared+set}" = set; then :
7039 enableval=$enable_shared; p=${PACKAGE-default}
7040 case $enableval in
7041 yes) enable_shared=yes ;;
7042 no) enable_shared=no ;;
7044 enable_shared=no
7045 # Look at the argument we got. We use all the common list separators.
7046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7047 for pkg in $enableval; do
7048 IFS="$lt_save_ifs"
7049 if test "X$pkg" = "X$p"; then
7050 enable_shared=yes
7052 done
7053 IFS="$lt_save_ifs"
7055 esac
7056 else
7057 enable_shared=yes
7068 # Check whether --enable-static was given.
7069 if test "${enable_static+set}" = set; then :
7070 enableval=$enable_static; p=${PACKAGE-default}
7071 case $enableval in
7072 yes) enable_static=yes ;;
7073 no) enable_static=no ;;
7075 enable_static=no
7076 # Look at the argument we got. We use all the common list separators.
7077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7078 for pkg in $enableval; do
7079 IFS="$lt_save_ifs"
7080 if test "X$pkg" = "X$p"; then
7081 enable_static=yes
7083 done
7084 IFS="$lt_save_ifs"
7086 esac
7087 else
7088 enable_static=yes
7100 # Check whether --with-pic was given.
7101 if test "${with_pic+set}" = set; then :
7102 withval=$with_pic; pic_mode="$withval"
7103 else
7104 pic_mode=default
7108 test -z "$pic_mode" && pic_mode=default
7116 # Check whether --enable-fast-install was given.
7117 if test "${enable_fast_install+set}" = set; then :
7118 enableval=$enable_fast_install; p=${PACKAGE-default}
7119 case $enableval in
7120 yes) enable_fast_install=yes ;;
7121 no) enable_fast_install=no ;;
7123 enable_fast_install=no
7124 # Look at the argument we got. We use all the common list separators.
7125 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7126 for pkg in $enableval; do
7127 IFS="$lt_save_ifs"
7128 if test "X$pkg" = "X$p"; then
7129 enable_fast_install=yes
7131 done
7132 IFS="$lt_save_ifs"
7134 esac
7135 else
7136 enable_fast_install=yes
7149 # This can be used to rebuild libtool when needed
7150 LIBTOOL_DEPS="$ltmain"
7152 # Always use our own libtool.
7153 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7180 test -z "$LN_S" && LN_S="ln -s"
7195 if test -n "${ZSH_VERSION+set}" ; then
7196 setopt NO_GLOB_SUBST
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7200 $as_echo_n "checking for objdir... " >&6; }
7201 if test "${lt_cv_objdir+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 rm -f .libs 2>/dev/null
7205 mkdir .libs 2>/dev/null
7206 if test -d .libs; then
7207 lt_cv_objdir=.libs
7208 else
7209 # MS-DOS does not allow filenames that begin with a dot.
7210 lt_cv_objdir=_libs
7212 rmdir .libs 2>/dev/null
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7215 $as_echo "$lt_cv_objdir" >&6; }
7216 objdir=$lt_cv_objdir
7222 cat >>confdefs.h <<_ACEOF
7223 #define LT_OBJDIR "$lt_cv_objdir/"
7224 _ACEOF
7229 case $host_os in
7230 aix3*)
7231 # AIX sometimes has problems with the GCC collect2 program. For some
7232 # reason, if we set the COLLECT_NAMES environment variable, the problems
7233 # vanish in a puff of smoke.
7234 if test "X${COLLECT_NAMES+set}" != Xset; then
7235 COLLECT_NAMES=
7236 export COLLECT_NAMES
7239 esac
7241 # Global variables:
7242 ofile=libtool
7243 can_build_shared=yes
7245 # All known linkers require a `.a' archive for static linking (except MSVC,
7246 # which needs '.lib').
7247 libext=a
7249 with_gnu_ld="$lt_cv_prog_gnu_ld"
7251 old_CC="$CC"
7252 old_CFLAGS="$CFLAGS"
7254 # Set sane defaults for various variables
7255 test -z "$CC" && CC=cc
7256 test -z "$LTCC" && LTCC=$CC
7257 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7258 test -z "$LD" && LD=ld
7259 test -z "$ac_objext" && ac_objext=o
7261 for cc_temp in $compiler""; do
7262 case $cc_temp in
7263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7265 \-*) ;;
7266 *) break;;
7267 esac
7268 done
7269 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7272 # Only perform the check for file, if the check method requires it
7273 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7274 case $deplibs_check_method in
7275 file_magic*)
7276 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7278 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7279 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7281 else
7282 case $MAGIC_CMD in
7283 [\\/*] | ?:[\\/]*)
7284 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7287 lt_save_MAGIC_CMD="$MAGIC_CMD"
7288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7290 for ac_dir in $ac_dummy; do
7291 IFS="$lt_save_ifs"
7292 test -z "$ac_dir" && ac_dir=.
7293 if test -f $ac_dir/${ac_tool_prefix}file; then
7294 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7295 if test -n "$file_magic_test_file"; then
7296 case $deplibs_check_method in
7297 "file_magic "*)
7298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7301 $EGREP "$file_magic_regex" > /dev/null; then
7303 else
7304 cat <<_LT_EOF 1>&2
7306 *** Warning: the command libtool uses to detect shared libraries,
7307 *** $file_magic_cmd, produces output that libtool cannot recognize.
7308 *** The result is that libtool may fail to recognize shared libraries
7309 *** as such. This will affect the creation of libtool libraries that
7310 *** depend on shared libraries, but programs linked with such libtool
7311 *** libraries will work regardless of this problem. Nevertheless, you
7312 *** may want to report the problem to your system manager and/or to
7313 *** bug-libtool@gnu.org
7315 _LT_EOF
7316 fi ;;
7317 esac
7319 break
7321 done
7322 IFS="$lt_save_ifs"
7323 MAGIC_CMD="$lt_save_MAGIC_CMD"
7325 esac
7328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7329 if test -n "$MAGIC_CMD"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7331 $as_echo "$MAGIC_CMD" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7341 if test -z "$lt_cv_path_MAGIC_CMD"; then
7342 if test -n "$ac_tool_prefix"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7344 $as_echo_n "checking for file... " >&6; }
7345 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7346 $as_echo_n "(cached) " >&6
7347 else
7348 case $MAGIC_CMD in
7349 [\\/*] | ?:[\\/]*)
7350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7353 lt_save_MAGIC_CMD="$MAGIC_CMD"
7354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7356 for ac_dir in $ac_dummy; do
7357 IFS="$lt_save_ifs"
7358 test -z "$ac_dir" && ac_dir=.
7359 if test -f $ac_dir/file; then
7360 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7361 if test -n "$file_magic_test_file"; then
7362 case $deplibs_check_method in
7363 "file_magic "*)
7364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7367 $EGREP "$file_magic_regex" > /dev/null; then
7369 else
7370 cat <<_LT_EOF 1>&2
7372 *** Warning: the command libtool uses to detect shared libraries,
7373 *** $file_magic_cmd, produces output that libtool cannot recognize.
7374 *** The result is that libtool may fail to recognize shared libraries
7375 *** as such. This will affect the creation of libtool libraries that
7376 *** depend on shared libraries, but programs linked with such libtool
7377 *** libraries will work regardless of this problem. Nevertheless, you
7378 *** may want to report the problem to your system manager and/or to
7379 *** bug-libtool@gnu.org
7381 _LT_EOF
7382 fi ;;
7383 esac
7385 break
7387 done
7388 IFS="$lt_save_ifs"
7389 MAGIC_CMD="$lt_save_MAGIC_CMD"
7391 esac
7394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7395 if test -n "$MAGIC_CMD"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7397 $as_echo "$MAGIC_CMD" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7404 else
7405 MAGIC_CMD=:
7411 esac
7413 # Use C for the default configuration in the libtool script
7415 lt_save_CC="$CC"
7416 ac_ext=c
7417 ac_cpp='$CPP $CPPFLAGS'
7418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423 # Source file extension for C test sources.
7424 ac_ext=c
7426 # Object file extension for compiled C test sources.
7427 objext=o
7428 objext=$objext
7430 # Code to be used in simple compile tests
7431 lt_simple_compile_test_code="int some_variable = 0;"
7433 # Code to be used in simple link tests
7434 lt_simple_link_test_code='int main(){return(0);}'
7442 # If no C compiler was specified, use CC.
7443 LTCC=${LTCC-"$CC"}
7445 # If no C compiler flags were specified, use CFLAGS.
7446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7448 # Allow CC to be a program name with arguments.
7449 compiler=$CC
7451 # Save the default compiler, since it gets overwritten when the other
7452 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7453 compiler_DEFAULT=$CC
7455 # save warnings/boilerplate of simple test code
7456 ac_outfile=conftest.$ac_objext
7457 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7458 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7459 _lt_compiler_boilerplate=`cat conftest.err`
7460 $RM conftest*
7462 ac_outfile=conftest.$ac_objext
7463 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7464 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7465 _lt_linker_boilerplate=`cat conftest.err`
7466 $RM -r conftest*
7469 ## CAVEAT EMPTOR:
7470 ## There is no encapsulation within the following macros, do not change
7471 ## the running order or otherwise move them around unless you know exactly
7472 ## what you are doing...
7473 if test -n "$compiler"; then
7475 lt_prog_compiler_no_builtin_flag=
7477 if test "$GCC" = yes; then
7478 case $cc_basename in
7479 nvcc*)
7480 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7482 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7483 esac
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7486 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7487 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 lt_cv_prog_compiler_rtti_exceptions=no
7491 ac_outfile=conftest.$ac_objext
7492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7493 lt_compiler_flag="-fno-rtti -fno-exceptions"
7494 # Insert the option either (1) after the last *FLAGS variable, or
7495 # (2) before a word containing "conftest.", or (3) at the end.
7496 # Note that $ac_compile itself does not contain backslashes and begins
7497 # with a dollar sign (not a hyphen), so the echo should work correctly.
7498 # The option is referenced via a variable to avoid confusing sed.
7499 lt_compile=`echo "$ac_compile" | $SED \
7500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7502 -e 's:$: $lt_compiler_flag:'`
7503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7504 (eval "$lt_compile" 2>conftest.err)
7505 ac_status=$?
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 if (exit $ac_status) && test -s "$ac_outfile"; then
7509 # The compiler can only warn and ignore the option if not recognized
7510 # So say no if there are warnings other than the usual output.
7511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7514 lt_cv_prog_compiler_rtti_exceptions=yes
7517 $RM conftest*
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7521 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7523 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7524 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7525 else
7536 lt_prog_compiler_wl=
7537 lt_prog_compiler_pic=
7538 lt_prog_compiler_static=
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7541 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7543 if test "$GCC" = yes; then
7544 lt_prog_compiler_wl='-Wl,'
7545 lt_prog_compiler_static='-static'
7547 case $host_os in
7548 aix*)
7549 # All AIX code is PIC.
7550 if test "$host_cpu" = ia64; then
7551 # AIX 5 now supports IA64 processor
7552 lt_prog_compiler_static='-Bstatic'
7556 amigaos*)
7557 case $host_cpu in
7558 powerpc)
7559 # see comment about AmigaOS4 .so support
7560 lt_prog_compiler_pic='-fPIC'
7562 m68k)
7563 # FIXME: we need at least 68020 code to build shared libraries, but
7564 # adding the `-m68020' flag to GCC prevents building anything better,
7565 # like `-m68040'.
7566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7568 esac
7571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7572 # PIC is the default for these OSes.
7575 mingw* | cygwin* | pw32* | os2* | cegcc*)
7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7579 # (--disable-auto-import) libraries
7580 lt_prog_compiler_pic='-DDLL_EXPORT'
7583 darwin* | rhapsody*)
7584 # PIC is the default on this platform
7585 # Common symbols not allowed in MH_DYLIB files
7586 lt_prog_compiler_pic='-fno-common'
7589 haiku*)
7590 # PIC is the default for Haiku.
7591 # The "-static" flag exists, but is broken.
7592 lt_prog_compiler_static=
7595 hpux*)
7596 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7597 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7598 # sets the default TLS model and affects inlining.
7599 case $host_cpu in
7600 hppa*64*)
7601 # +Z the default
7604 lt_prog_compiler_pic='-fPIC'
7606 esac
7609 interix[3-9]*)
7610 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7611 # Instead, we relocate shared libraries at runtime.
7614 msdosdjgpp*)
7615 # Just because we use GCC doesn't mean we suddenly get shared libraries
7616 # on systems that don't support them.
7617 lt_prog_compiler_can_build_shared=no
7618 enable_shared=no
7621 *nto* | *qnx*)
7622 # QNX uses GNU C++, but need to define -shared option too, otherwise
7623 # it will coredump.
7624 lt_prog_compiler_pic='-fPIC -shared'
7627 sysv4*MP*)
7628 if test -d /usr/nec; then
7629 lt_prog_compiler_pic=-Kconform_pic
7634 lt_prog_compiler_pic='-fPIC'
7636 esac
7638 case $cc_basename in
7639 nvcc*) # Cuda Compiler Driver 2.2
7640 lt_prog_compiler_wl='-Xlinker '
7641 lt_prog_compiler_pic='-Xcompiler -fPIC'
7643 esac
7644 else
7645 # PORTME Check for flag to pass linker flags through the system compiler.
7646 case $host_os in
7647 aix*)
7648 lt_prog_compiler_wl='-Wl,'
7649 if test "$host_cpu" = ia64; then
7650 # AIX 5 now supports IA64 processor
7651 lt_prog_compiler_static='-Bstatic'
7652 else
7653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7657 mingw* | cygwin* | pw32* | os2* | cegcc*)
7658 # This hack is so that the source file can tell whether it is being
7659 # built for inclusion in a dll (and should export symbols for example).
7660 lt_prog_compiler_pic='-DDLL_EXPORT'
7663 hpux9* | hpux10* | hpux11*)
7664 lt_prog_compiler_wl='-Wl,'
7665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7666 # not for PA HP-UX.
7667 case $host_cpu in
7668 hppa*64*|ia64*)
7669 # +Z the default
7672 lt_prog_compiler_pic='+Z'
7674 esac
7675 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7676 lt_prog_compiler_static='${wl}-a ${wl}archive'
7679 irix5* | irix6* | nonstopux*)
7680 lt_prog_compiler_wl='-Wl,'
7681 # PIC (with -KPIC) is the default.
7682 lt_prog_compiler_static='-non_shared'
7685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7686 case $cc_basename in
7687 # old Intel for x86_64 which still supported -KPIC.
7688 ecc*)
7689 lt_prog_compiler_wl='-Wl,'
7690 lt_prog_compiler_pic='-KPIC'
7691 lt_prog_compiler_static='-static'
7693 # icc used to be incompatible with GCC.
7694 # ICC 10 doesn't accept -KPIC any more.
7695 icc* | ifort*)
7696 lt_prog_compiler_wl='-Wl,'
7697 lt_prog_compiler_pic='-fPIC'
7698 lt_prog_compiler_static='-static'
7700 # Lahey Fortran 8.1.
7701 lf95*)
7702 lt_prog_compiler_wl='-Wl,'
7703 lt_prog_compiler_pic='--shared'
7704 lt_prog_compiler_static='--static'
7706 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7707 # Portland Group compilers (*not* the Pentium gcc compiler,
7708 # which looks to be a dead project)
7709 lt_prog_compiler_wl='-Wl,'
7710 lt_prog_compiler_pic='-fpic'
7711 lt_prog_compiler_static='-Bstatic'
7713 ccc*)
7714 lt_prog_compiler_wl='-Wl,'
7715 # All Alpha code is PIC.
7716 lt_prog_compiler_static='-non_shared'
7718 xl* | bgxl* | bgf* | mpixl*)
7719 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-qpic'
7722 lt_prog_compiler_static='-qstaticlink'
7725 case `$CC -V 2>&1 | sed 5q` in
7726 *Sun\ F* | *Sun*Fortran*)
7727 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7730 lt_prog_compiler_wl=''
7732 *Sun\ C*)
7733 # Sun C 5.9
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7736 lt_prog_compiler_wl='-Wl,'
7738 esac
7740 esac
7743 newsos6)
7744 lt_prog_compiler_pic='-KPIC'
7745 lt_prog_compiler_static='-Bstatic'
7748 *nto* | *qnx*)
7749 # QNX uses GNU C++, but need to define -shared option too, otherwise
7750 # it will coredump.
7751 lt_prog_compiler_pic='-fPIC -shared'
7754 osf3* | osf4* | osf5*)
7755 lt_prog_compiler_wl='-Wl,'
7756 # All OSF/1 code is PIC.
7757 lt_prog_compiler_static='-non_shared'
7760 rdos*)
7761 lt_prog_compiler_static='-non_shared'
7764 solaris*)
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7767 case $cc_basename in
7768 f77* | f90* | f95*)
7769 lt_prog_compiler_wl='-Qoption ld ';;
7771 lt_prog_compiler_wl='-Wl,';;
7772 esac
7775 sunos4*)
7776 lt_prog_compiler_wl='-Qoption ld '
7777 lt_prog_compiler_pic='-PIC'
7778 lt_prog_compiler_static='-Bstatic'
7781 sysv4 | sysv4.2uw2* | sysv4.3*)
7782 lt_prog_compiler_wl='-Wl,'
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7787 sysv4*MP*)
7788 if test -d /usr/nec ;then
7789 lt_prog_compiler_pic='-Kconform_pic'
7790 lt_prog_compiler_static='-Bstatic'
7794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7795 lt_prog_compiler_wl='-Wl,'
7796 lt_prog_compiler_pic='-KPIC'
7797 lt_prog_compiler_static='-Bstatic'
7800 unicos*)
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_can_build_shared=no
7805 uts4*)
7806 lt_prog_compiler_pic='-pic'
7807 lt_prog_compiler_static='-Bstatic'
7811 lt_prog_compiler_can_build_shared=no
7813 esac
7816 case $host_os in
7817 # For platforms which do not support PIC, -DPIC is meaningless:
7818 *djgpp*)
7819 lt_prog_compiler_pic=
7822 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7824 esac
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7826 $as_echo "$lt_prog_compiler_pic" >&6; }
7834 # Check to make sure the PIC flag actually works.
7836 if test -n "$lt_prog_compiler_pic"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7838 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7839 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 lt_cv_prog_compiler_pic_works=no
7843 ac_outfile=conftest.$ac_objext
7844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7845 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7846 # Insert the option either (1) after the last *FLAGS variable, or
7847 # (2) before a word containing "conftest.", or (3) at the end.
7848 # Note that $ac_compile itself does not contain backslashes and begins
7849 # with a dollar sign (not a hyphen), so the echo should work correctly.
7850 # The option is referenced via a variable to avoid confusing sed.
7851 lt_compile=`echo "$ac_compile" | $SED \
7852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7854 -e 's:$: $lt_compiler_flag:'`
7855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7856 (eval "$lt_compile" 2>conftest.err)
7857 ac_status=$?
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 if (exit $ac_status) && test -s "$ac_outfile"; then
7861 # The compiler can only warn and ignore the option if not recognized
7862 # So say no if there are warnings other than the usual output.
7863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7866 lt_cv_prog_compiler_pic_works=yes
7869 $RM conftest*
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7873 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7875 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7876 case $lt_prog_compiler_pic in
7877 "" | " "*) ;;
7878 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7879 esac
7880 else
7881 lt_prog_compiler_pic=
7882 lt_prog_compiler_can_build_shared=no
7893 # Check to make sure the static flag actually works.
7895 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7897 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7898 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 lt_cv_prog_compiler_static_works=no
7902 save_LDFLAGS="$LDFLAGS"
7903 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7906 # The linker can only warn and ignore the option if not recognized
7907 # So say no if there are warnings
7908 if test -s conftest.err; then
7909 # Append any errors to the config.log.
7910 cat conftest.err 1>&5
7911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7913 if diff conftest.exp conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_static_works=yes
7916 else
7917 lt_cv_prog_compiler_static_works=yes
7920 $RM -r conftest*
7921 LDFLAGS="$save_LDFLAGS"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7925 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7927 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7929 else
7930 lt_prog_compiler_static=
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7940 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7941 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 lt_cv_prog_compiler_c_o=no
7945 $RM -r conftest 2>/dev/null
7946 mkdir conftest
7947 cd conftest
7948 mkdir out
7949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7951 lt_compiler_flag="-o out/conftest2.$ac_objext"
7952 # Insert the option either (1) after the last *FLAGS variable, or
7953 # (2) before a word containing "conftest.", or (3) at the end.
7954 # Note that $ac_compile itself does not contain backslashes and begins
7955 # with a dollar sign (not a hyphen), so the echo should work correctly.
7956 lt_compile=`echo "$ac_compile" | $SED \
7957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7959 -e 's:$: $lt_compiler_flag:'`
7960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7961 (eval "$lt_compile" 2>out/conftest.err)
7962 ac_status=$?
7963 cat out/conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7966 then
7967 # The compiler can only warn and ignore the option if not recognized
7968 # So say no if there are warnings
7969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7972 lt_cv_prog_compiler_c_o=yes
7975 chmod u+w . 2>&5
7976 $RM conftest*
7977 # SGI C++ compiler will create directory out/ii_files/ for
7978 # template instantiation
7979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7980 $RM out/* && rmdir out
7981 cd ..
7982 $RM -r conftest
7983 $RM conftest*
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7987 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7996 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 lt_cv_prog_compiler_c_o=no
8000 $RM -r conftest 2>/dev/null
8001 mkdir conftest
8002 cd conftest
8003 mkdir out
8004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8006 lt_compiler_flag="-o out/conftest2.$ac_objext"
8007 # Insert the option either (1) after the last *FLAGS variable, or
8008 # (2) before a word containing "conftest.", or (3) at the end.
8009 # Note that $ac_compile itself does not contain backslashes and begins
8010 # with a dollar sign (not a hyphen), so the echo should work correctly.
8011 lt_compile=`echo "$ac_compile" | $SED \
8012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8014 -e 's:$: $lt_compiler_flag:'`
8015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8016 (eval "$lt_compile" 2>out/conftest.err)
8017 ac_status=$?
8018 cat out/conftest.err >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8021 then
8022 # The compiler can only warn and ignore the option if not recognized
8023 # So say no if there are warnings
8024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8027 lt_cv_prog_compiler_c_o=yes
8030 chmod u+w . 2>&5
8031 $RM conftest*
8032 # SGI C++ compiler will create directory out/ii_files/ for
8033 # template instantiation
8034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8035 $RM out/* && rmdir out
8036 cd ..
8037 $RM -r conftest
8038 $RM conftest*
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8042 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8047 hard_links="nottested"
8048 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8049 # do not overwrite the value of need_locks provided by the user
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8051 $as_echo_n "checking if we can lock with hard links... " >&6; }
8052 hard_links=yes
8053 $RM conftest*
8054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8055 touch conftest.a
8056 ln conftest.a conftest.b 2>&5 || hard_links=no
8057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8059 $as_echo "$hard_links" >&6; }
8060 if test "$hard_links" = no; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8062 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8063 need_locks=warn
8065 else
8066 need_locks=no
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8075 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8077 runpath_var=
8078 allow_undefined_flag=
8079 always_export_symbols=no
8080 archive_cmds=
8081 archive_expsym_cmds=
8082 compiler_needs_object=no
8083 enable_shared_with_static_runtimes=no
8084 export_dynamic_flag_spec=
8085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8086 hardcode_automatic=no
8087 hardcode_direct=no
8088 hardcode_direct_absolute=no
8089 hardcode_libdir_flag_spec=
8090 hardcode_libdir_flag_spec_ld=
8091 hardcode_libdir_separator=
8092 hardcode_minus_L=no
8093 hardcode_shlibpath_var=unsupported
8094 inherit_rpath=no
8095 link_all_deplibs=unknown
8096 module_cmds=
8097 module_expsym_cmds=
8098 old_archive_from_new_cmds=
8099 old_archive_from_expsyms_cmds=
8100 thread_safe_flag_spec=
8101 whole_archive_flag_spec=
8102 # include_expsyms should be a list of space-separated symbols to be *always*
8103 # included in the symbol list
8104 include_expsyms=
8105 # exclude_expsyms can be an extended regexp of symbols to exclude
8106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8108 # as well as any symbol that contains `d'.
8109 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8111 # platforms (ab)use it in PIC code, but their linkers get confused if
8112 # the symbol is explicitly referenced. Since portable code cannot
8113 # rely on this symbol name, it's probably fine to never include it in
8114 # preloaded symbol tables.
8115 # Exclude shared library initialization/finalization symbols.
8116 extract_expsyms_cmds=
8118 case $host_os in
8119 cygwin* | mingw* | pw32* | cegcc*)
8120 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8121 # When not using gcc, we currently assume that we are using
8122 # Microsoft Visual C++.
8123 if test "$GCC" != yes; then
8124 with_gnu_ld=no
8127 interix*)
8128 # we just hope/assume this is gcc and not c89 (= MSVC++)
8129 with_gnu_ld=yes
8131 openbsd*)
8132 with_gnu_ld=no
8134 esac
8136 ld_shlibs=yes
8138 # On some targets, GNU ld is compatible enough with the native linker
8139 # that we're better off using the native interface for both.
8140 lt_use_gnu_ld_interface=no
8141 if test "$with_gnu_ld" = yes; then
8142 case $host_os in
8143 aix*)
8144 # The AIX port of GNU ld has always aspired to compatibility
8145 # with the native linker. However, as the warning in the GNU ld
8146 # block says, versions before 2.19.5* couldn't really create working
8147 # shared libraries, regardless of the interface used.
8148 case `$LD -v 2>&1` in
8149 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8150 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8151 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8153 lt_use_gnu_ld_interface=yes
8155 esac
8158 lt_use_gnu_ld_interface=yes
8160 esac
8163 if test "$lt_use_gnu_ld_interface" = yes; then
8164 # If archive_cmds runs LD, not CC, wlarc should be empty
8165 wlarc='${wl}'
8167 # Set some defaults for GNU ld with shared library support. These
8168 # are reset later if shared libraries are not supported. Putting them
8169 # here allows them to be overridden if necessary.
8170 runpath_var=LD_RUN_PATH
8171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8172 export_dynamic_flag_spec='${wl}--export-dynamic'
8173 # ancient GNU ld didn't support --whole-archive et. al.
8174 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8176 else
8177 whole_archive_flag_spec=
8179 supports_anon_versioning=no
8180 case `$LD -v 2>&1` in
8181 *GNU\ gold*) supports_anon_versioning=yes ;;
8182 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8183 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8184 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8185 *\ 2.11.*) ;; # other 2.11 versions
8186 *) supports_anon_versioning=yes ;;
8187 esac
8189 # See if GNU ld supports shared libraries.
8190 case $host_os in
8191 aix[3-9]*)
8192 # On AIX/PPC, the GNU linker is very broken
8193 if test "$host_cpu" != ia64; then
8194 ld_shlibs=no
8195 cat <<_LT_EOF 1>&2
8197 *** Warning: the GNU linker, at least up to release 2.19, is reported
8198 *** to be unable to reliably create shared libraries on AIX.
8199 *** Therefore, libtool is disabling shared libraries support. If you
8200 *** really care for shared libraries, you may want to install binutils
8201 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8202 *** You will then need to restart the configuration process.
8204 _LT_EOF
8208 amigaos*)
8209 case $host_cpu in
8210 powerpc)
8211 # see comment about AmigaOS4 .so support
8212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213 archive_expsym_cmds=''
8215 m68k)
8216 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)'
8217 hardcode_libdir_flag_spec='-L$libdir'
8218 hardcode_minus_L=yes
8220 esac
8223 beos*)
8224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8225 allow_undefined_flag=unsupported
8226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8227 # support --undefined. This deserves some investigation. FIXME
8228 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229 else
8230 ld_shlibs=no
8234 cygwin* | mingw* | pw32* | cegcc*)
8235 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8236 # as there is no search path for DLLs.
8237 hardcode_libdir_flag_spec='-L$libdir'
8238 export_dynamic_flag_spec='${wl}--export-all-symbols'
8239 allow_undefined_flag=unsupported
8240 always_export_symbols=no
8241 enable_shared_with_static_runtimes=yes
8242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8244 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8246 # If the export-symbols file already is a .def file (1st line
8247 # is EXPORTS), use it as is; otherwise, prepend...
8248 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8249 cp $export_symbols $output_objdir/$soname.def;
8250 else
8251 echo EXPORTS > $output_objdir/$soname.def;
8252 cat $export_symbols >> $output_objdir/$soname.def;
8254 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8255 else
8256 ld_shlibs=no
8260 haiku*)
8261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262 link_all_deplibs=yes
8265 interix[3-9]*)
8266 hardcode_direct=no
8267 hardcode_shlibpath_var=no
8268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8269 export_dynamic_flag_spec='${wl}-E'
8270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8271 # Instead, shared libraries are loaded at an image base (0x10000000 by
8272 # default) and relocated if they conflict, which is a slow very memory
8273 # consuming and fragmenting process. To avoid this, we pick a random,
8274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8277 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'
8280 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8281 tmp_diet=no
8282 if test "$host_os" = linux-dietlibc; then
8283 case $cc_basename in
8284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8285 esac
8287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8288 && test "$tmp_diet" = no
8289 then
8290 tmp_addflag=
8291 tmp_sharedflag='-shared'
8292 case $cc_basename,$host_cpu in
8293 pgcc*) # Portland Group C compiler
8294 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'
8295 tmp_addflag=' $pic_flag'
8297 pgf77* | pgf90* | pgf95* | pgfortran*)
8298 # Portland Group f77 and f90 compilers
8299 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'
8300 tmp_addflag=' $pic_flag -Mnomain' ;;
8301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8302 tmp_addflag=' -i_dynamic' ;;
8303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8304 tmp_addflag=' -i_dynamic -nofor_main' ;;
8305 ifc* | ifort*) # Intel Fortran compiler
8306 tmp_addflag=' -nofor_main' ;;
8307 lf95*) # Lahey Fortran 8.1
8308 whole_archive_flag_spec=
8309 tmp_sharedflag='--shared' ;;
8310 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8311 tmp_sharedflag='-qmkshrobj'
8312 tmp_addflag= ;;
8313 nvcc*) # Cuda Compiler Driver 2.2
8314 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'
8315 compiler_needs_object=yes
8317 esac
8318 case `$CC -V 2>&1 | sed 5q` in
8319 *Sun\ C*) # Sun C 5.9
8320 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'
8321 compiler_needs_object=yes
8322 tmp_sharedflag='-G' ;;
8323 *Sun\ F*) # Sun Fortran 8.3
8324 tmp_sharedflag='-G' ;;
8325 esac
8326 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328 if test "x$supports_anon_versioning" = xyes; then
8329 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8331 echo "local: *; };" >> $output_objdir/$libname.ver~
8332 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8335 case $cc_basename in
8336 xlf* | bgf* | bgxlf* | mpixlf*)
8337 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8338 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8339 hardcode_libdir_flag_spec=
8340 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8341 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8342 if test "x$supports_anon_versioning" = xyes; then
8343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8345 echo "local: *; };" >> $output_objdir/$libname.ver~
8346 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8349 esac
8350 else
8351 ld_shlibs=no
8355 netbsd*)
8356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8357 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8358 wlarc=
8359 else
8360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8365 solaris*)
8366 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8367 ld_shlibs=no
8368 cat <<_LT_EOF 1>&2
8370 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8371 *** create shared libraries on Solaris systems. Therefore, libtool
8372 *** is disabling shared libraries support. We urge you to upgrade GNU
8373 *** binutils to release 2.9.1 or newer. Another option is to modify
8374 *** your PATH or compiler configuration so that the native linker is
8375 *** used, and then restart.
8377 _LT_EOF
8378 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8381 else
8382 ld_shlibs=no
8386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8387 case `$LD -v 2>&1` in
8388 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8389 ld_shlibs=no
8390 cat <<_LT_EOF 1>&2
8392 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8393 *** reliably create shared libraries on SCO systems. Therefore, libtool
8394 *** is disabling shared libraries support. We urge you to upgrade GNU
8395 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8396 *** your PATH or compiler configuration so that the native linker is
8397 *** used, and then restart.
8399 _LT_EOF
8402 # For security reasons, it is highly recommended that you always
8403 # use absolute paths for naming shared libraries, and exclude the
8404 # DT_RUNPATH tag from executables and libraries. But doing so
8405 # requires that you compile everything twice, which is a pain.
8406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410 else
8411 ld_shlibs=no
8414 esac
8417 sunos4*)
8418 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8419 wlarc=
8420 hardcode_direct=yes
8421 hardcode_shlibpath_var=no
8425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 else
8429 ld_shlibs=no
8432 esac
8434 if test "$ld_shlibs" = no; then
8435 runpath_var=
8436 hardcode_libdir_flag_spec=
8437 export_dynamic_flag_spec=
8438 whole_archive_flag_spec=
8440 else
8441 # PORTME fill in a description of your system's linker (not GNU ld)
8442 case $host_os in
8443 aix3*)
8444 allow_undefined_flag=unsupported
8445 always_export_symbols=yes
8446 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'
8447 # Note: this linker hardcodes the directories in LIBPATH if there
8448 # are no directories specified by -L.
8449 hardcode_minus_L=yes
8450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8451 # Neither direct hardcoding nor static linking is supported with a
8452 # broken collect2.
8453 hardcode_direct=unsupported
8457 aix[4-9]*)
8458 if test "$host_cpu" = ia64; then
8459 # On IA64, the linker does run time linking by default, so we don't
8460 # have to do anything special.
8461 aix_use_runtimelinking=no
8462 exp_sym_flag='-Bexport'
8463 no_entry_flag=""
8464 else
8465 # If we're using GNU nm, then we don't want the "-C" option.
8466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8467 # Also, AIX nm treats weak defined symbols like other global
8468 # defined symbols, whereas GNU nm marks them as "W".
8469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8470 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'
8471 else
8472 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'
8474 aix_use_runtimelinking=no
8476 # Test if we are trying to use run time linking or normal
8477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8478 # need to do runtime linking.
8479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8480 for ld_flag in $LDFLAGS; do
8481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8482 aix_use_runtimelinking=yes
8483 break
8485 done
8487 esac
8489 exp_sym_flag='-bexport'
8490 no_entry_flag='-bnoentry'
8493 # When large executables or shared objects are built, AIX ld can
8494 # have problems creating the table of contents. If linking a library
8495 # or program results in "error TOC overflow" add -mminimal-toc to
8496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8499 archive_cmds=''
8500 hardcode_direct=yes
8501 hardcode_direct_absolute=yes
8502 hardcode_libdir_separator=':'
8503 link_all_deplibs=yes
8504 file_list_spec='${wl}-f,'
8506 if test "$GCC" = yes; then
8507 case $host_os in aix4.[012]|aix4.[012].*)
8508 # We only want to do this on AIX 4.2 and lower, the check
8509 # below for broken collect2 doesn't work under 4.3+
8510 collect2name=`${CC} -print-prog-name=collect2`
8511 if test -f "$collect2name" &&
8512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8513 then
8514 # We have reworked collect2
8516 else
8517 # We have old collect2
8518 hardcode_direct=unsupported
8519 # It fails to find uninstalled libraries when the uninstalled
8520 # path is not listed in the libpath. Setting hardcode_minus_L
8521 # to unsupported forces relinking
8522 hardcode_minus_L=yes
8523 hardcode_libdir_flag_spec='-L$libdir'
8524 hardcode_libdir_separator=
8527 esac
8528 shared_flag='-shared'
8529 if test "$aix_use_runtimelinking" = yes; then
8530 shared_flag="$shared_flag "'${wl}-G'
8532 else
8533 # not using gcc
8534 if test "$host_cpu" = ia64; then
8535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8536 # chokes on -Wl,-G. The following line is correct:
8537 shared_flag='-G'
8538 else
8539 if test "$aix_use_runtimelinking" = yes; then
8540 shared_flag='${wl}-G'
8541 else
8542 shared_flag='${wl}-bM:SRE'
8547 export_dynamic_flag_spec='${wl}-bexpall'
8548 # It seems that -bexpall does not export symbols beginning with
8549 # underscore (_), so it is better to generate a list of symbols to export.
8550 always_export_symbols=yes
8551 if test "$aix_use_runtimelinking" = yes; then
8552 # Warning - without using the other runtime loading flags (-brtl),
8553 # -berok will link without error, but may produce a broken library.
8554 allow_undefined_flag='-berok'
8555 # Determine the default libpath from the value encoded in an
8556 # empty executable.
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8561 main ()
8565 return 0;
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"; then :
8570 lt_aix_libpath_sed='
8571 /Import File Strings/,/^$/ {
8572 /^0/ {
8573 s/^0 *\(.*\)$/\1/
8577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8578 # Check for a 64-bit object if we didn't find anything.
8579 if test -z "$aix_libpath"; then
8580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8583 rm -f core conftest.err conftest.$ac_objext \
8584 conftest$ac_exeext conftest.$ac_ext
8585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8588 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"
8589 else
8590 if test "$host_cpu" = ia64; then
8591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8592 allow_undefined_flag="-z nodefs"
8593 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"
8594 else
8595 # Determine the default libpath from the value encoded in an
8596 # empty executable.
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8601 main ()
8605 return 0;
8607 _ACEOF
8608 if ac_fn_c_try_link "$LINENO"; then :
8610 lt_aix_libpath_sed='
8611 /Import File Strings/,/^$/ {
8612 /^0/ {
8613 s/^0 *\(.*\)$/\1/
8617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618 # Check for a 64-bit object if we didn't find anything.
8619 if test -z "$aix_libpath"; then
8620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628 # Warning - without using the other run time loading flags,
8629 # -berok will link without error, but may produce a broken library.
8630 no_undefined_flag=' ${wl}-bernotok'
8631 allow_undefined_flag=' ${wl}-berok'
8632 if test "$with_gnu_ld" = yes; then
8633 # We only use this code for GNU lds that support --whole-archive.
8634 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8635 else
8636 # Exported symbols can be pulled into shared objects from archives
8637 whole_archive_flag_spec='$convenience'
8639 archive_cmds_need_lc=yes
8640 # This is similar to how AIX traditionally builds its shared libraries.
8641 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'
8646 amigaos*)
8647 case $host_cpu in
8648 powerpc)
8649 # see comment about AmigaOS4 .so support
8650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651 archive_expsym_cmds=''
8653 m68k)
8654 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)'
8655 hardcode_libdir_flag_spec='-L$libdir'
8656 hardcode_minus_L=yes
8658 esac
8661 bsdi[45]*)
8662 export_dynamic_flag_spec=-rdynamic
8665 cygwin* | mingw* | pw32* | cegcc*)
8666 # When not using gcc, we currently assume that we are using
8667 # Microsoft Visual C++.
8668 # hardcode_libdir_flag_spec is actually meaningless, as there is
8669 # no search path for DLLs.
8670 hardcode_libdir_flag_spec=' '
8671 allow_undefined_flag=unsupported
8672 # Tell ltmain to make .lib files, not .a files.
8673 libext=lib
8674 # Tell ltmain to make .dll files, not .so files.
8675 shrext_cmds=".dll"
8676 # FIXME: Setting linknames here is a bad hack.
8677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8678 # The linker will automatically build a .lib file if we build a DLL.
8679 old_archive_from_new_cmds='true'
8680 # FIXME: Should let the user specify the lib program.
8681 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8682 fix_srcfile_path='`cygpath -w "$srcfile"`'
8683 enable_shared_with_static_runtimes=yes
8686 darwin* | rhapsody*)
8689 archive_cmds_need_lc=no
8690 hardcode_direct=no
8691 hardcode_automatic=yes
8692 hardcode_shlibpath_var=unsupported
8693 if test "$lt_cv_ld_force_load" = "yes"; then
8694 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\"`'
8695 else
8696 whole_archive_flag_spec=''
8698 link_all_deplibs=yes
8699 allow_undefined_flag="$_lt_dar_allow_undefined"
8700 case $cc_basename in
8701 ifort*) _lt_dar_can_shared=yes ;;
8702 *) _lt_dar_can_shared=$GCC ;;
8703 esac
8704 if test "$_lt_dar_can_shared" = "yes"; then
8705 output_verbose_link_cmd=func_echo_all
8706 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8707 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8708 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}"
8709 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}"
8711 else
8712 ld_shlibs=no
8717 dgux*)
8718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8719 hardcode_libdir_flag_spec='-L$libdir'
8720 hardcode_shlibpath_var=no
8723 freebsd1*)
8724 ld_shlibs=no
8727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8728 # support. Future versions do this automatically, but an explicit c++rt0.o
8729 # does not break anything, and helps significantly (at the cost of a little
8730 # extra space).
8731 freebsd2.2*)
8732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8733 hardcode_libdir_flag_spec='-R$libdir'
8734 hardcode_direct=yes
8735 hardcode_shlibpath_var=no
8738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8739 freebsd2*)
8740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8741 hardcode_direct=yes
8742 hardcode_minus_L=yes
8743 hardcode_shlibpath_var=no
8746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8747 freebsd* | dragonfly*)
8748 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8749 hardcode_libdir_flag_spec='-R$libdir'
8750 hardcode_direct=yes
8751 hardcode_shlibpath_var=no
8754 hpux9*)
8755 if test "$GCC" = yes; then
8756 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'
8757 else
8758 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'
8760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761 hardcode_libdir_separator=:
8762 hardcode_direct=yes
8764 # hardcode_minus_L: Not really in the search PATH,
8765 # but as the default location of the library.
8766 hardcode_minus_L=yes
8767 export_dynamic_flag_spec='${wl}-E'
8770 hpux10*)
8771 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8772 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8773 else
8774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8776 if test "$with_gnu_ld" = no; then
8777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778 hardcode_libdir_flag_spec_ld='+b $libdir'
8779 hardcode_libdir_separator=:
8780 hardcode_direct=yes
8781 hardcode_direct_absolute=yes
8782 export_dynamic_flag_spec='${wl}-E'
8783 # hardcode_minus_L: Not really in the search PATH,
8784 # but as the default location of the library.
8785 hardcode_minus_L=yes
8789 hpux11*)
8790 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8791 case $host_cpu in
8792 hppa*64*)
8793 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8795 ia64*)
8796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8799 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8801 esac
8802 else
8803 case $host_cpu in
8804 hppa*64*)
8805 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8807 ia64*)
8808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8812 # Older versions of the 11.00 compiler do not understand -b yet
8813 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8815 $as_echo_n "checking if $CC understands -b... " >&6; }
8816 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 lt_cv_prog_compiler__b=no
8820 save_LDFLAGS="$LDFLAGS"
8821 LDFLAGS="$LDFLAGS -b"
8822 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8823 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8824 # The linker can only warn and ignore the option if not recognized
8825 # So say no if there are warnings
8826 if test -s conftest.err; then
8827 # Append any errors to the config.log.
8828 cat conftest.err 1>&5
8829 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8831 if diff conftest.exp conftest.er2 >/dev/null; then
8832 lt_cv_prog_compiler__b=yes
8834 else
8835 lt_cv_prog_compiler__b=yes
8838 $RM -r conftest*
8839 LDFLAGS="$save_LDFLAGS"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8843 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8845 if test x"$lt_cv_prog_compiler__b" = xyes; then
8846 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8847 else
8848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8852 esac
8854 if test "$with_gnu_ld" = no; then
8855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8856 hardcode_libdir_separator=:
8858 case $host_cpu in
8859 hppa*64*|ia64*)
8860 hardcode_direct=no
8861 hardcode_shlibpath_var=no
8864 hardcode_direct=yes
8865 hardcode_direct_absolute=yes
8866 export_dynamic_flag_spec='${wl}-E'
8868 # hardcode_minus_L: Not really in the search PATH,
8869 # but as the default location of the library.
8870 hardcode_minus_L=yes
8872 esac
8876 irix5* | irix6* | nonstopux*)
8877 if test "$GCC" = yes; then
8878 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'
8879 # Try to use the -exported_symbol ld option, if it does not
8880 # work, assume that -exports_file does not work either and
8881 # implicitly export all symbols.
8882 save_LDFLAGS="$LDFLAGS"
8883 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 int foo(void) {}
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"; then :
8889 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'
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8894 LDFLAGS="$save_LDFLAGS"
8895 else
8896 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'
8897 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'
8899 archive_cmds_need_lc='no'
8900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901 hardcode_libdir_separator=:
8902 inherit_rpath=yes
8903 link_all_deplibs=yes
8906 netbsd*)
8907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8909 else
8910 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8912 hardcode_libdir_flag_spec='-R$libdir'
8913 hardcode_direct=yes
8914 hardcode_shlibpath_var=no
8917 newsos6)
8918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919 hardcode_direct=yes
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 hardcode_libdir_separator=:
8922 hardcode_shlibpath_var=no
8925 *nto* | *qnx*)
8928 openbsd*)
8929 if test -f /usr/libexec/ld.so; then
8930 hardcode_direct=yes
8931 hardcode_shlibpath_var=no
8932 hardcode_direct_absolute=yes
8933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8937 export_dynamic_flag_spec='${wl}-E'
8938 else
8939 case $host_os in
8940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_libdir_flag_spec='-R$libdir'
8945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8948 esac
8950 else
8951 ld_shlibs=no
8955 os2*)
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 hardcode_minus_L=yes
8958 allow_undefined_flag=unsupported
8959 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'
8960 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8963 osf3*)
8964 if test "$GCC" = yes; then
8965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8966 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'
8967 else
8968 allow_undefined_flag=' -expect_unresolved \*'
8969 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'
8971 archive_cmds_need_lc='no'
8972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973 hardcode_libdir_separator=:
8976 osf4* | osf5*) # as osf3* with the addition of -msym flag
8977 if test "$GCC" = yes; then
8978 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8979 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'
8980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981 else
8982 allow_undefined_flag=' -expect_unresolved \*'
8983 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'
8984 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~
8985 $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'
8987 # Both c and cxx compiler support -rpath directly
8988 hardcode_libdir_flag_spec='-rpath $libdir'
8990 archive_cmds_need_lc='no'
8991 hardcode_libdir_separator=:
8994 solaris*)
8995 no_undefined_flag=' -z defs'
8996 if test "$GCC" = yes; then
8997 wlarc='${wl}'
8998 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9000 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9001 else
9002 case `$CC -V 2>&1` in
9003 *"Compilers 5.0"*)
9004 wlarc=''
9005 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9010 wlarc='${wl}'
9011 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9015 esac
9017 hardcode_libdir_flag_spec='-R$libdir'
9018 hardcode_shlibpath_var=no
9019 case $host_os in
9020 solaris2.[0-5] | solaris2.[0-5].*) ;;
9022 # The compiler driver will combine and reorder linker options,
9023 # but understands `-z linker_flag'. GCC discards it without `$wl',
9024 # but is careful enough not to reorder.
9025 # Supported since Solaris 2.6 (maybe 2.5.1?)
9026 if test "$GCC" = yes; then
9027 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9028 else
9029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9032 esac
9033 link_all_deplibs=yes
9036 sunos4*)
9037 if test "x$host_vendor" = xsequent; then
9038 # Use $CC to link under sequent, because it throws in some extra .o
9039 # files that make .init and .fini sections work.
9040 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9041 else
9042 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 hardcode_direct=yes
9046 hardcode_minus_L=yes
9047 hardcode_shlibpath_var=no
9050 sysv4)
9051 case $host_vendor in
9052 sni)
9053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054 hardcode_direct=yes # is this really true???
9056 siemens)
9057 ## LD is ld it makes a PLAMLIB
9058 ## CC just makes a GrossModule.
9059 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9060 reload_cmds='$CC -r -o $output$reload_objs'
9061 hardcode_direct=no
9063 motorola)
9064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9067 esac
9068 runpath_var='LD_RUN_PATH'
9069 hardcode_shlibpath_var=no
9072 sysv4.3*)
9073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074 hardcode_shlibpath_var=no
9075 export_dynamic_flag_spec='-Bexport'
9078 sysv4*MP*)
9079 if test -d /usr/nec; then
9080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081 hardcode_shlibpath_var=no
9082 runpath_var=LD_RUN_PATH
9083 hardcode_runpath_var=yes
9084 ld_shlibs=yes
9088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9089 no_undefined_flag='${wl}-z,text'
9090 archive_cmds_need_lc=no
9091 hardcode_shlibpath_var=no
9092 runpath_var='LD_RUN_PATH'
9094 if test "$GCC" = yes; then
9095 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 else
9098 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 sysv5* | sco3.2v5* | sco5v6*)
9104 # Note: We can NOT use -z defs as we might desire, because we do not
9105 # link with -lc, and that would cause any symbols used from libc to
9106 # always be unresolved, which means just about no library would
9107 # ever link correctly. If we're not using GNU ld we use -z text
9108 # though, which does catch some bad symbols but isn't as heavy-handed
9109 # as -z defs.
9110 no_undefined_flag='${wl}-z,text'
9111 allow_undefined_flag='${wl}-z,nodefs'
9112 archive_cmds_need_lc=no
9113 hardcode_shlibpath_var=no
9114 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9115 hardcode_libdir_separator=':'
9116 link_all_deplibs=yes
9117 export_dynamic_flag_spec='${wl}-Bexport'
9118 runpath_var='LD_RUN_PATH'
9120 if test "$GCC" = yes; then
9121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 else
9124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 uts4*)
9130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131 hardcode_libdir_flag_spec='-L$libdir'
9132 hardcode_shlibpath_var=no
9136 ld_shlibs=no
9138 esac
9140 if test x$host_vendor = xsni; then
9141 case $host in
9142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9143 export_dynamic_flag_spec='${wl}-Blargedynsym'
9145 esac
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9150 $as_echo "$ld_shlibs" >&6; }
9151 test "$ld_shlibs" = no && can_build_shared=no
9153 with_gnu_ld=$with_gnu_ld
9170 # Do we need to explicitly link libc?
9172 case "x$archive_cmds_need_lc" in
9173 x|xyes)
9174 # Assume -lc should be added
9175 archive_cmds_need_lc=yes
9177 if test "$enable_shared" = yes && test "$GCC" = yes; then
9178 case $archive_cmds in
9179 *'~'*)
9180 # FIXME: we may have to deal with multi-command sequences.
9182 '$CC '*)
9183 # Test whether the compiler implicitly links with -lc since on some
9184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9185 # to ld, don't add -lc before -lgcc.
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9188 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 $RM conftest*
9192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9195 (eval $ac_compile) 2>&5
9196 ac_status=$?
9197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9198 test $ac_status = 0; } 2>conftest.err; then
9199 soname=conftest
9200 lib=conftest
9201 libobjs=conftest.$ac_objext
9202 deplibs=
9203 wl=$lt_prog_compiler_wl
9204 pic_flag=$lt_prog_compiler_pic
9205 compiler_flags=-v
9206 linker_flags=-v
9207 verstring=
9208 output_objdir=.
9209 libname=conftest
9210 lt_save_allow_undefined_flag=$allow_undefined_flag
9211 allow_undefined_flag=
9212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9213 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9214 ac_status=$?
9215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9216 test $ac_status = 0; }
9217 then
9218 lt_cv_archive_cmds_need_lc=no
9219 else
9220 lt_cv_archive_cmds_need_lc=yes
9222 allow_undefined_flag=$lt_save_allow_undefined_flag
9223 else
9224 cat conftest.err 1>&5
9226 $RM conftest*
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9230 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9231 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9233 esac
9236 esac
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9395 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9397 if test "$GCC" = yes; then
9398 case $host_os in
9399 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9400 *) lt_awk_arg="/^libraries:/" ;;
9401 esac
9402 case $host_os in
9403 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9404 *) lt_sed_strip_eq="s,=/,/,g" ;;
9405 esac
9406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9407 case $lt_search_path_spec in
9408 *\;*)
9409 # if the path contains ";" then we assume it to be the separator
9410 # otherwise default to the standard path separator (i.e. ":") - it is
9411 # assumed that no part of a normal pathname contains ";" but that should
9412 # okay in the real world where ";" in dirpaths is itself problematic.
9413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9418 esac
9419 # Ok, now we have the path, separated by spaces, we can step through it
9420 # and add multilib dir if necessary.
9421 lt_tmp_lt_search_path_spec=
9422 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9423 for lt_sys_path in $lt_search_path_spec; do
9424 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9425 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9426 else
9427 test -d "$lt_sys_path" && \
9428 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9430 done
9431 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9432 BEGIN {RS=" "; FS="/|\n";} {
9433 lt_foo="";
9434 lt_count=0;
9435 for (lt_i = NF; lt_i > 0; lt_i--) {
9436 if ($lt_i != "" && $lt_i != ".") {
9437 if ($lt_i == "..") {
9438 lt_count++;
9439 } else {
9440 if (lt_count == 0) {
9441 lt_foo="/" $lt_i lt_foo;
9442 } else {
9443 lt_count--;
9448 if (lt_foo != "") { lt_freq[lt_foo]++; }
9449 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9451 # AWK program above erroneously prepends '/' to C:/dos/paths
9452 # for these hosts.
9453 case $host_os in
9454 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9455 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9456 esac
9457 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9458 else
9459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9461 library_names_spec=
9462 libname_spec='lib$name'
9463 soname_spec=
9464 shrext_cmds=".so"
9465 postinstall_cmds=
9466 postuninstall_cmds=
9467 finish_cmds=
9468 finish_eval=
9469 shlibpath_var=
9470 shlibpath_overrides_runpath=unknown
9471 version_type=none
9472 dynamic_linker="$host_os ld.so"
9473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9474 need_lib_prefix=unknown
9475 hardcode_into_libs=no
9477 # when you set need_version to no, make sure it does not cause -set_version
9478 # flags to be left without arguments
9479 need_version=unknown
9481 case $host_os in
9482 aix3*)
9483 version_type=linux
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9485 shlibpath_var=LIBPATH
9487 # AIX 3 has no versioning support, so we append a major version to the name.
9488 soname_spec='${libname}${release}${shared_ext}$major'
9491 aix[4-9]*)
9492 version_type=linux
9493 need_lib_prefix=no
9494 need_version=no
9495 hardcode_into_libs=yes
9496 if test "$host_cpu" = ia64; then
9497 # AIX 5 supports IA64
9498 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9499 shlibpath_var=LD_LIBRARY_PATH
9500 else
9501 # With GCC up to 2.95.x, collect2 would create an import file
9502 # for dependence libraries. The import file would start with
9503 # the line `#! .'. This would cause the generated library to
9504 # depend on `.', always an invalid library. This was fixed in
9505 # development snapshots of GCC prior to 3.0.
9506 case $host_os in
9507 aix4 | aix4.[01] | aix4.[01].*)
9508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9509 echo ' yes '
9510 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9512 else
9513 can_build_shared=no
9516 esac
9517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9518 # soname into executable. Probably we can add versioning support to
9519 # collect2, so additional links can be useful in future.
9520 if test "$aix_use_runtimelinking" = yes; then
9521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9522 # instead of lib<name>.a to let people know that these are not
9523 # typical AIX shared libraries.
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 else
9526 # We preserve .a as extension for shared libraries through AIX4.2
9527 # and later when we are not doing run time linking.
9528 library_names_spec='${libname}${release}.a $libname.a'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9531 shlibpath_var=LIBPATH
9535 amigaos*)
9536 case $host_cpu in
9537 powerpc)
9538 # Since July 2007 AmigaOS4 officially supports .so libraries.
9539 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 m68k)
9543 library_names_spec='$libname.ixlibrary $libname.a'
9544 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9545 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'
9547 esac
9550 beos*)
9551 library_names_spec='${libname}${shared_ext}'
9552 dynamic_linker="$host_os ld.so"
9553 shlibpath_var=LIBRARY_PATH
9556 bsdi[45]*)
9557 version_type=linux
9558 need_version=no
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9564 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9565 # the default ld.so.conf also contains /usr/contrib/lib and
9566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9567 # libtool to hard-code these into programs
9570 cygwin* | mingw* | pw32* | cegcc*)
9571 version_type=windows
9572 shrext_cmds=".dll"
9573 need_version=no
9574 need_lib_prefix=no
9576 case $GCC,$host_os in
9577 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9578 library_names_spec='$libname.dll.a'
9579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9580 postinstall_cmds='base_file=`basename \${file}`~
9581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9582 dldir=$destdir/`dirname \$dlpath`~
9583 test -d \$dldir || mkdir -p \$dldir~
9584 $install_prog $dir/$dlname \$dldir/$dlname~
9585 chmod a+x \$dldir/$dlname~
9586 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9587 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9590 dlpath=$dir/\$dldll~
9591 $RM \$dlpath'
9592 shlibpath_overrides_runpath=yes
9594 case $host_os in
9595 cygwin*)
9596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9599 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9601 mingw* | cegcc*)
9602 # MinGW DLLs use traditional 'lib' prefix
9603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605 pw32*)
9606 # pw32 DLLs use 'pw' prefix rather than 'lib'
9607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9609 esac
9613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9615 esac
9616 dynamic_linker='Win32 ld.exe'
9617 # FIXME: first we should search . and the directory the executable is in
9618 shlibpath_var=PATH
9621 darwin* | rhapsody*)
9622 dynamic_linker="$host_os dyld"
9623 version_type=darwin
9624 need_lib_prefix=no
9625 need_version=no
9626 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9627 soname_spec='${libname}${release}${major}$shared_ext'
9628 shlibpath_overrides_runpath=yes
9629 shlibpath_var=DYLD_LIBRARY_PATH
9630 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9632 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9636 dgux*)
9637 version_type=linux
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9645 freebsd1*)
9646 dynamic_linker=no
9649 freebsd* | dragonfly*)
9650 # DragonFly does not have aout. When/if they implement a new
9651 # versioning mechanism, adjust this.
9652 if test -x /usr/bin/objformat; then
9653 objformat=`/usr/bin/objformat`
9654 else
9655 case $host_os in
9656 freebsd[123]*) objformat=aout ;;
9657 *) objformat=elf ;;
9658 esac
9660 version_type=freebsd-$objformat
9661 case $version_type in
9662 freebsd-elf*)
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9664 need_version=no
9665 need_lib_prefix=no
9667 freebsd-*)
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9669 need_version=yes
9671 esac
9672 shlibpath_var=LD_LIBRARY_PATH
9673 case $host_os in
9674 freebsd2*)
9675 shlibpath_overrides_runpath=yes
9677 freebsd3.[01]* | freebsdelf3.[01]*)
9678 shlibpath_overrides_runpath=yes
9679 hardcode_into_libs=yes
9681 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9682 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9683 shlibpath_overrides_runpath=no
9684 hardcode_into_libs=yes
9686 *) # from 4.6 on, and DragonFly
9687 shlibpath_overrides_runpath=yes
9688 hardcode_into_libs=yes
9690 esac
9693 gnu*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 hardcode_into_libs=yes
9703 haiku*)
9704 version_type=linux
9705 need_lib_prefix=no
9706 need_version=no
9707 dynamic_linker="$host_os runtime_loader"
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 shlibpath_var=LIBRARY_PATH
9711 shlibpath_overrides_runpath=yes
9712 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9713 hardcode_into_libs=yes
9716 hpux9* | hpux10* | hpux11*)
9717 # Give a soname corresponding to the major version so that dld.sl refuses to
9718 # link against other versions.
9719 version_type=sunos
9720 need_lib_prefix=no
9721 need_version=no
9722 case $host_cpu in
9723 ia64*)
9724 shrext_cmds='.so'
9725 hardcode_into_libs=yes
9726 dynamic_linker="$host_os dld.so"
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 if test "X$HPUX_IA64_MODE" = X32; then
9732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9733 else
9734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9738 hppa*64*)
9739 shrext_cmds='.sl'
9740 hardcode_into_libs=yes
9741 dynamic_linker="$host_os dld.sl"
9742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9750 shrext_cmds='.sl'
9751 dynamic_linker="$host_os dld.sl"
9752 shlibpath_var=SHLIB_PATH
9753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 soname_spec='${libname}${release}${shared_ext}$major'
9757 esac
9758 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9759 postinstall_cmds='chmod 555 $lib'
9760 # or fails outright, so override atomically:
9761 install_override_mode=555
9764 interix[3-9]*)
9765 version_type=linux
9766 need_lib_prefix=no
9767 need_version=no
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 shlibpath_overrides_runpath=no
9773 hardcode_into_libs=yes
9776 irix5* | irix6* | nonstopux*)
9777 case $host_os in
9778 nonstopux*) version_type=nonstopux ;;
9780 if test "$lt_cv_prog_gnu_ld" = yes; then
9781 version_type=linux
9782 else
9783 version_type=irix
9784 fi ;;
9785 esac
9786 need_lib_prefix=no
9787 need_version=no
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9790 case $host_os in
9791 irix5* | nonstopux*)
9792 libsuff= shlibsuff=
9795 case $LD in # libtool.m4 will add one of these switches to LD
9796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9797 libsuff= shlibsuff= libmagic=32-bit;;
9798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9799 libsuff=32 shlibsuff=N32 libmagic=N32;;
9800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9802 *) libsuff= shlibsuff= libmagic=never-match;;
9803 esac
9805 esac
9806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9807 shlibpath_overrides_runpath=no
9808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9810 hardcode_into_libs=yes
9813 # No shared lib support for Linux oldld, aout, or coff.
9814 linux*oldld* | linux*aout* | linux*coff*)
9815 dynamic_linker=no
9818 # This must be Linux ELF.
9819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9820 version_type=linux
9821 need_lib_prefix=no
9822 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 shlibpath_overrides_runpath=no
9829 # Some binutils ld are patched to set DT_RUNPATH
9830 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 lt_cv_shlibpath_overrides_runpath=no
9834 save_LDFLAGS=$LDFLAGS
9835 save_libdir=$libdir
9836 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9837 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9842 main ()
9846 return 0;
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9851 lt_cv_shlibpath_overrides_runpath=yes
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LDFLAGS=$save_LDFLAGS
9857 libdir=$save_libdir
9861 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9863 # This implies no fast_install, which is unacceptable.
9864 # Some rework will be needed to allow for fast_install
9865 # before this can be enabled.
9866 hardcode_into_libs=yes
9868 # Append ld.so.conf contents to the search path
9869 if test -f /etc/ld.so.conf; then
9870 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' ' '`
9871 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9874 # We used to test for /lib/ld.so.1 and disable shared libraries on
9875 # powerpc, because MkLinux only supported shared libraries with the
9876 # GNU dynamic linker. Since this was broken with cross compilers,
9877 # most powerpc-linux boxes support dynamic linking these days and
9878 # people can always --disable-shared, the test was removed, and we
9879 # assume the GNU/Linux dynamic linker is in use.
9880 dynamic_linker='GNU/Linux ld.so'
9883 netbsd*)
9884 version_type=sunos
9885 need_lib_prefix=no
9886 need_version=no
9887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9890 dynamic_linker='NetBSD (a.out) ld.so'
9891 else
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 dynamic_linker='NetBSD ld.elf_so'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 shlibpath_overrides_runpath=yes
9898 hardcode_into_libs=yes
9901 newsos6)
9902 version_type=linux
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=yes
9908 *nto* | *qnx*)
9909 version_type=qnx
9910 need_lib_prefix=no
9911 need_version=no
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=no
9916 hardcode_into_libs=yes
9917 dynamic_linker='ldqnx.so'
9920 openbsd*)
9921 version_type=sunos
9922 sys_lib_dlsearch_path_spec="/usr/lib"
9923 need_lib_prefix=no
9924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9925 case $host_os in
9926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9927 *) need_version=no ;;
9928 esac
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9933 case $host_os in
9934 openbsd2.[89] | openbsd2.[89].*)
9935 shlibpath_overrides_runpath=no
9938 shlibpath_overrides_runpath=yes
9940 esac
9941 else
9942 shlibpath_overrides_runpath=yes
9946 os2*)
9947 libname_spec='$name'
9948 shrext_cmds=".dll"
9949 need_lib_prefix=no
9950 library_names_spec='$libname${shared_ext} $libname.a'
9951 dynamic_linker='OS/2 ld.exe'
9952 shlibpath_var=LIBPATH
9955 osf3* | osf4* | osf5*)
9956 version_type=osf
9957 need_lib_prefix=no
9958 need_version=no
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9966 rdos*)
9967 dynamic_linker=no
9970 solaris*)
9971 version_type=linux
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9978 hardcode_into_libs=yes
9979 # ldd complains unless libraries are executable
9980 postinstall_cmds='chmod +x $lib'
9983 sunos4*)
9984 version_type=sunos
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=yes
9989 if test "$with_gnu_ld" = yes; then
9990 need_lib_prefix=no
9992 need_version=yes
9995 sysv4 | sysv4.3*)
9996 version_type=linux
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 case $host_vendor in
10001 sni)
10002 shlibpath_overrides_runpath=no
10003 need_lib_prefix=no
10004 runpath_var=LD_RUN_PATH
10006 siemens)
10007 need_lib_prefix=no
10009 motorola)
10010 need_lib_prefix=no
10011 need_version=no
10012 shlibpath_overrides_runpath=no
10013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10015 esac
10018 sysv4*MP*)
10019 if test -d /usr/nec ;then
10020 version_type=linux
10021 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10022 soname_spec='$libname${shared_ext}.$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10028 version_type=freebsd-elf
10029 need_lib_prefix=no
10030 need_version=no
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=yes
10035 hardcode_into_libs=yes
10036 if test "$with_gnu_ld" = yes; then
10037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10038 else
10039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10040 case $host_os in
10041 sco3.2v5*)
10042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10044 esac
10046 sys_lib_dlsearch_path_spec='/usr/lib'
10049 tpf*)
10050 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10051 version_type=linux
10052 need_lib_prefix=no
10053 need_version=no
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 shlibpath_overrides_runpath=no
10057 hardcode_into_libs=yes
10060 uts4*)
10061 version_type=linux
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10068 dynamic_linker=no
10070 esac
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10072 $as_echo "$dynamic_linker" >&6; }
10073 test "$dynamic_linker" = no && can_build_shared=no
10075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10076 if test "$GCC" = yes; then
10077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10080 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10081 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10083 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10084 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10180 hardcode_action=
10181 if test -n "$hardcode_libdir_flag_spec" ||
10182 test -n "$runpath_var" ||
10183 test "X$hardcode_automatic" = "Xyes" ; then
10185 # We can hardcode non-existent directories.
10186 if test "$hardcode_direct" != no &&
10187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10188 # have to relink, otherwise we might link with an installed library
10189 # when we should be linking with a yet-to-be-installed one
10190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10191 test "$hardcode_minus_L" != no; then
10192 # Linking always hardcodes the temporary library directory.
10193 hardcode_action=relink
10194 else
10195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10196 hardcode_action=immediate
10198 else
10199 # We cannot hardcode anything, or else we can only hardcode existing
10200 # directories.
10201 hardcode_action=unsupported
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10204 $as_echo "$hardcode_action" >&6; }
10206 if test "$hardcode_action" = relink ||
10207 test "$inherit_rpath" = yes; then
10208 # Fast installation is not supported
10209 enable_fast_install=no
10210 elif test "$shlibpath_overrides_runpath" = yes ||
10211 test "$enable_shared" = no; then
10212 # Fast installation is not necessary
10213 enable_fast_install=needless
10221 if test "x$enable_dlopen" != xyes; then
10222 enable_dlopen=unknown
10223 enable_dlopen_self=unknown
10224 enable_dlopen_self_static=unknown
10225 else
10226 lt_cv_dlopen=no
10227 lt_cv_dlopen_libs=
10229 case $host_os in
10230 beos*)
10231 lt_cv_dlopen="load_add_on"
10232 lt_cv_dlopen_libs=
10233 lt_cv_dlopen_self=yes
10236 mingw* | pw32* | cegcc*)
10237 lt_cv_dlopen="LoadLibrary"
10238 lt_cv_dlopen_libs=
10241 cygwin*)
10242 lt_cv_dlopen="dlopen"
10243 lt_cv_dlopen_libs=
10246 darwin*)
10247 # if libdl is installed we need to link against it
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 ac_check_lib_save_LIBS=$LIBS
10254 LIBS="-ldl $LIBS"
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10258 /* Override any GCC internal prototype to avoid an error.
10259 Use char because int might match the return type of a GCC
10260 builtin and then its argument prototype would still apply. */
10261 #ifdef __cplusplus
10262 extern "C"
10263 #endif
10264 char dlopen ();
10266 main ()
10268 return dlopen ();
10270 return 0;
10272 _ACEOF
10273 if ac_fn_c_try_link "$LINENO"; then :
10274 ac_cv_lib_dl_dlopen=yes
10275 else
10276 ac_cv_lib_dl_dlopen=no
10278 rm -f core conftest.err conftest.$ac_objext \
10279 conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10284 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10286 else
10288 lt_cv_dlopen="dyld"
10289 lt_cv_dlopen_libs=
10290 lt_cv_dlopen_self=yes
10297 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10298 if test "x$ac_cv_func_shl_load" = x""yes; then :
10299 lt_cv_dlopen="shl_load"
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10302 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-ldld $LIBS"
10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 char shl_load ();
10319 main ()
10321 return shl_load ();
10323 return 0;
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"; then :
10327 ac_cv_lib_dld_shl_load=yes
10328 else
10329 ac_cv_lib_dld_shl_load=no
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 LIBS=$ac_check_lib_save_LIBS
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10337 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10339 else
10340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10341 if test "x$ac_cv_func_dlopen" = x""yes; then :
10342 lt_cv_dlopen="dlopen"
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 ac_check_lib_save_LIBS=$LIBS
10350 LIBS="-ldl $LIBS"
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10354 /* Override any GCC internal prototype to avoid an error.
10355 Use char because int might match the return type of a GCC
10356 builtin and then its argument prototype would still apply. */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 char dlopen ();
10362 main ()
10364 return dlopen ();
10366 return 0;
10368 _ACEOF
10369 if ac_fn_c_try_link "$LINENO"; then :
10370 ac_cv_lib_dl_dlopen=yes
10371 else
10372 ac_cv_lib_dl_dlopen=no
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10380 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10385 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10387 else
10388 ac_check_lib_save_LIBS=$LIBS
10389 LIBS="-lsvld $LIBS"
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10393 /* Override any GCC internal prototype to avoid an error.
10394 Use char because int might match the return type of a GCC
10395 builtin and then its argument prototype would still apply. */
10396 #ifdef __cplusplus
10397 extern "C"
10398 #endif
10399 char dlopen ();
10401 main ()
10403 return dlopen ();
10405 return 0;
10407 _ACEOF
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 ac_cv_lib_svld_dlopen=yes
10410 else
10411 ac_cv_lib_svld_dlopen=no
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10418 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10419 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10421 else
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10423 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10424 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-ldld $LIBS"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10435 #ifdef __cplusplus
10436 extern "C"
10437 #endif
10438 char dld_link ();
10440 main ()
10442 return dld_link ();
10444 return 0;
10446 _ACEOF
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 ac_cv_lib_dld_dld_link=yes
10449 else
10450 ac_cv_lib_dld_dld_link=no
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10458 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10478 esac
10480 if test "x$lt_cv_dlopen" != xno; then
10481 enable_dlopen=yes
10482 else
10483 enable_dlopen=no
10486 case $lt_cv_dlopen in
10487 dlopen)
10488 save_CPPFLAGS="$CPPFLAGS"
10489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10491 save_LDFLAGS="$LDFLAGS"
10492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10494 save_LIBS="$LIBS"
10495 LIBS="$lt_cv_dlopen_libs $LIBS"
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10499 if test "${lt_cv_dlopen_self+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 if test "$cross_compiling" = yes; then :
10503 lt_cv_dlopen_self=cross
10504 else
10505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10506 lt_status=$lt_dlunknown
10507 cat > conftest.$ac_ext <<_LT_EOF
10508 #line 10508 "configure"
10509 #include "confdefs.h"
10511 #if HAVE_DLFCN_H
10512 #include <dlfcn.h>
10513 #endif
10515 #include <stdio.h>
10517 #ifdef RTLD_GLOBAL
10518 # define LT_DLGLOBAL RTLD_GLOBAL
10519 #else
10520 # ifdef DL_GLOBAL
10521 # define LT_DLGLOBAL DL_GLOBAL
10522 # else
10523 # define LT_DLGLOBAL 0
10524 # endif
10525 #endif
10527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10528 find out it does not work in some platform. */
10529 #ifndef LT_DLLAZY_OR_NOW
10530 # ifdef RTLD_LAZY
10531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10532 # else
10533 # ifdef DL_LAZY
10534 # define LT_DLLAZY_OR_NOW DL_LAZY
10535 # else
10536 # ifdef RTLD_NOW
10537 # define LT_DLLAZY_OR_NOW RTLD_NOW
10538 # else
10539 # ifdef DL_NOW
10540 # define LT_DLLAZY_OR_NOW DL_NOW
10541 # else
10542 # define LT_DLLAZY_OR_NOW 0
10543 # endif
10544 # endif
10545 # endif
10546 # endif
10547 #endif
10549 /* When -fvisbility=hidden is used, assume the code has been annotated
10550 correspondingly for the symbols needed. */
10551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10552 void fnord () __attribute__((visibility("default")));
10553 #endif
10555 void fnord () { int i=42; }
10556 int main ()
10558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10559 int status = $lt_dlunknown;
10561 if (self)
10563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10564 else
10566 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10567 else puts (dlerror ());
10569 /* dlclose (self); */
10571 else
10572 puts (dlerror ());
10574 return status;
10576 _LT_EOF
10577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10578 (eval $ac_link) 2>&5
10579 ac_status=$?
10580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10581 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10582 (./conftest; exit; ) >&5 2>/dev/null
10583 lt_status=$?
10584 case x$lt_status in
10585 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10586 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10587 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10588 esac
10589 else :
10590 # compilation failed
10591 lt_cv_dlopen_self=no
10594 rm -fr conftest*
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10599 $as_echo "$lt_cv_dlopen_self" >&6; }
10601 if test "x$lt_cv_dlopen_self" = xyes; then
10602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10604 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10605 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 if test "$cross_compiling" = yes; then :
10609 lt_cv_dlopen_self_static=cross
10610 else
10611 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10612 lt_status=$lt_dlunknown
10613 cat > conftest.$ac_ext <<_LT_EOF
10614 #line 10614 "configure"
10615 #include "confdefs.h"
10617 #if HAVE_DLFCN_H
10618 #include <dlfcn.h>
10619 #endif
10621 #include <stdio.h>
10623 #ifdef RTLD_GLOBAL
10624 # define LT_DLGLOBAL RTLD_GLOBAL
10625 #else
10626 # ifdef DL_GLOBAL
10627 # define LT_DLGLOBAL DL_GLOBAL
10628 # else
10629 # define LT_DLGLOBAL 0
10630 # endif
10631 #endif
10633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10634 find out it does not work in some platform. */
10635 #ifndef LT_DLLAZY_OR_NOW
10636 # ifdef RTLD_LAZY
10637 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10638 # else
10639 # ifdef DL_LAZY
10640 # define LT_DLLAZY_OR_NOW DL_LAZY
10641 # else
10642 # ifdef RTLD_NOW
10643 # define LT_DLLAZY_OR_NOW RTLD_NOW
10644 # else
10645 # ifdef DL_NOW
10646 # define LT_DLLAZY_OR_NOW DL_NOW
10647 # else
10648 # define LT_DLLAZY_OR_NOW 0
10649 # endif
10650 # endif
10651 # endif
10652 # endif
10653 #endif
10655 /* When -fvisbility=hidden is used, assume the code has been annotated
10656 correspondingly for the symbols needed. */
10657 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10658 void fnord () __attribute__((visibility("default")));
10659 #endif
10661 void fnord () { int i=42; }
10662 int main ()
10664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10665 int status = $lt_dlunknown;
10667 if (self)
10669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10670 else
10672 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10673 else puts (dlerror ());
10675 /* dlclose (self); */
10677 else
10678 puts (dlerror ());
10680 return status;
10682 _LT_EOF
10683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10684 (eval $ac_link) 2>&5
10685 ac_status=$?
10686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10687 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10688 (./conftest; exit; ) >&5 2>/dev/null
10689 lt_status=$?
10690 case x$lt_status in
10691 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10692 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10693 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10694 esac
10695 else :
10696 # compilation failed
10697 lt_cv_dlopen_self_static=no
10700 rm -fr conftest*
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10705 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10708 CPPFLAGS="$save_CPPFLAGS"
10709 LDFLAGS="$save_LDFLAGS"
10710 LIBS="$save_LIBS"
10712 esac
10714 case $lt_cv_dlopen_self in
10715 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10716 *) enable_dlopen_self=unknown ;;
10717 esac
10719 case $lt_cv_dlopen_self_static in
10720 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10721 *) enable_dlopen_self_static=unknown ;;
10722 esac
10741 striplib=
10742 old_striplib=
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10744 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10745 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10746 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10747 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10749 $as_echo "yes" >&6; }
10750 else
10751 # FIXME - insert some real tests, host_os isn't really good enough
10752 case $host_os in
10753 darwin*)
10754 if test -n "$STRIP" ; then
10755 striplib="$STRIP -x"
10756 old_striplib="$STRIP -S"
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10758 $as_echo "yes" >&6; }
10759 else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10768 esac
10782 # Report which library types will actually be built
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10786 $as_echo "$can_build_shared" >&6; }
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10789 $as_echo_n "checking whether to build shared libraries... " >&6; }
10790 test "$can_build_shared" = "no" && enable_shared=no
10792 # On AIX, shared libraries and static libraries use the same namespace, and
10793 # are all built from PIC.
10794 case $host_os in
10795 aix3*)
10796 test "$enable_shared" = yes && enable_static=no
10797 if test -n "$RANLIB"; then
10798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10799 postinstall_cmds='$RANLIB $lib'
10803 aix[4-9]*)
10804 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10805 test "$enable_shared" = yes && enable_static=no
10808 esac
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10810 $as_echo "$enable_shared" >&6; }
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10813 $as_echo_n "checking whether to build static libraries... " >&6; }
10814 # Make sure either enable_shared or enable_static is yes.
10815 test "$enable_shared" = yes || enable_static=yes
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10817 $as_echo "$enable_static" >&6; }
10823 ac_ext=c
10824 ac_cpp='$CPP $CPPFLAGS'
10825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10829 CC="$lt_save_CC"
10843 ac_config_commands="$ac_config_commands libtool"
10848 # Only expand once:
10852 # Trying to get this information from gcc's config is tricky.
10853 case $target in
10854 x86_64*-mingw*)
10856 $as_echo "#define SYM_STYLE ss_none" >>confdefs.h
10859 *-cygwin* | i?86*-mingw* )
10861 $as_echo "#define SYM_STYLE ss_win32" >>confdefs.h
10866 $as_echo "#define SYM_STYLE ss_none" >>confdefs.h
10869 esac
10870 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
10871 case $ac_cv_c_int64_t in #(
10872 no|yes) ;; #(
10875 cat >>confdefs.h <<_ACEOF
10876 #define int64_t $ac_cv_c_int64_t
10877 _ACEOF
10879 esac
10881 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10882 case $ac_cv_c_uint64_t in #(
10883 no|yes) ;; #(
10886 $as_echo "#define _UINT64_T 1" >>confdefs.h
10889 cat >>confdefs.h <<_ACEOF
10890 #define uint64_t $ac_cv_c_uint64_t
10891 _ACEOF
10893 esac
10895 ac_config_files="$ac_config_files Makefile"
10897 ac_config_headers="$ac_config_headers config.h"
10899 cat >confcache <<\_ACEOF
10900 # This file is a shell script that caches the results of configure
10901 # tests run on this system so they can be shared between configure
10902 # scripts and configure runs, see configure's option --config-cache.
10903 # It is not useful on other systems. If it contains results you don't
10904 # want to keep, you may remove or edit it.
10906 # config.status only pays attention to the cache file if you give it
10907 # the --recheck option to rerun configure.
10909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10911 # following values.
10913 _ACEOF
10915 # The following way of writing the cache mishandles newlines in values,
10916 # but we know of no workaround that is simple, portable, and efficient.
10917 # So, we kill variables containing newlines.
10918 # Ultrix sh set writes to stderr and can't be redirected directly,
10919 # and sets the high bit in the cache file unless we assign to the vars.
10921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10922 eval ac_val=\$$ac_var
10923 case $ac_val in #(
10924 *${as_nl}*)
10925 case $ac_var in #(
10926 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10928 esac
10929 case $ac_var in #(
10930 _ | IFS | as_nl) ;; #(
10931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10932 *) { eval $ac_var=; unset $ac_var;} ;;
10933 esac ;;
10934 esac
10935 done
10937 (set) 2>&1 |
10938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10939 *${as_nl}ac_space=\ *)
10940 # `set' does not quote correctly, so add quotes: double-quote
10941 # substitution turns \\\\ into \\, and sed turns \\ into \.
10942 sed -n \
10943 "s/'/'\\\\''/g;
10944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10945 ;; #(
10947 # `set' quotes correctly as required by POSIX, so do not add quotes.
10948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10950 esac |
10951 sort
10953 sed '
10954 /^ac_cv_env_/b end
10955 t clear
10956 :clear
10957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10958 t end
10959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10960 :end' >>confcache
10961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10962 if test -w "$cache_file"; then
10963 test "x$cache_file" != "x/dev/null" &&
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10965 $as_echo "$as_me: updating cache $cache_file" >&6;}
10966 cat confcache >$cache_file
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10972 rm -f confcache
10974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10975 # Let make expand exec_prefix.
10976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10978 DEFS=-DHAVE_CONFIG_H
10980 ac_libobjs=
10981 ac_ltlibobjs=
10982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10983 # 1. Remove the extension, and $U if already installed.
10984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10987 # will be set to the directory where LIBOBJS objects are built.
10988 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10989 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10990 done
10991 LIBOBJS=$ac_libobjs
10993 LTLIBOBJS=$ac_ltlibobjs
10996 if test -n "$EXEEXT"; then
10997 am__EXEEXT_TRUE=
10998 am__EXEEXT_FALSE='#'
10999 else
11000 am__EXEEXT_TRUE='#'
11001 am__EXEEXT_FALSE=
11004 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11005 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11008 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11009 as_fn_error "conditional \"AMDEP\" was never defined.
11010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11012 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11013 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11017 : ${CONFIG_STATUS=./config.status}
11018 ac_write_fail=0
11019 ac_clean_files_save=$ac_clean_files
11020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11023 as_write_fail=0
11024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11025 #! $SHELL
11026 # Generated by $as_me.
11027 # Run this file to recreate the current configuration.
11028 # Compiler output produced by configure, useful for debugging
11029 # configure, is in config.log if it exists.
11031 debug=false
11032 ac_cs_recheck=false
11033 ac_cs_silent=false
11035 SHELL=\${CONFIG_SHELL-$SHELL}
11036 export SHELL
11037 _ASEOF
11038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11039 ## -------------------- ##
11040 ## M4sh Initialization. ##
11041 ## -------------------- ##
11043 # Be more Bourne compatible
11044 DUALCASE=1; export DUALCASE # for MKS sh
11045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11046 emulate sh
11047 NULLCMD=:
11048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11049 # is contrary to our usage. Disable this feature.
11050 alias -g '${1+"$@"}'='"$@"'
11051 setopt NO_GLOB_SUBST
11052 else
11053 case `(set -o) 2>/dev/null` in #(
11054 *posix*) :
11055 set -o posix ;; #(
11056 *) :
11058 esac
11062 as_nl='
11064 export as_nl
11065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11069 # Prefer a ksh shell builtin over an external printf program on Solaris,
11070 # but without wasting forks for bash or zsh.
11071 if test -z "$BASH_VERSION$ZSH_VERSION" \
11072 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11073 as_echo='print -r --'
11074 as_echo_n='print -rn --'
11075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11076 as_echo='printf %s\n'
11077 as_echo_n='printf %s'
11078 else
11079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11081 as_echo_n='/usr/ucb/echo -n'
11082 else
11083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11084 as_echo_n_body='eval
11085 arg=$1;
11086 case $arg in #(
11087 *"$as_nl"*)
11088 expr "X$arg" : "X\\(.*\\)$as_nl";
11089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11090 esac;
11091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11093 export as_echo_n_body
11094 as_echo_n='sh -c $as_echo_n_body as_echo'
11096 export as_echo_body
11097 as_echo='sh -c $as_echo_body as_echo'
11100 # The user is always right.
11101 if test "${PATH_SEPARATOR+set}" != set; then
11102 PATH_SEPARATOR=:
11103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11105 PATH_SEPARATOR=';'
11110 # IFS
11111 # We need space, tab and new line, in precisely that order. Quoting is
11112 # there to prevent editors from complaining about space-tab.
11113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11114 # splitting by setting IFS to empty value.)
11115 IFS=" "" $as_nl"
11117 # Find who we are. Look in the path if we contain no directory separator.
11118 case $0 in #((
11119 *[\\/]* ) as_myself=$0 ;;
11120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121 for as_dir in $PATH
11123 IFS=$as_save_IFS
11124 test -z "$as_dir" && as_dir=.
11125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11126 done
11127 IFS=$as_save_IFS
11130 esac
11131 # We did not find ourselves, most probably we were run as `sh COMMAND'
11132 # in which case we are not to be found in the path.
11133 if test "x$as_myself" = x; then
11134 as_myself=$0
11136 if test ! -f "$as_myself"; then
11137 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11138 exit 1
11141 # Unset variables that we do not need and which cause bugs (e.g. in
11142 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11143 # suppresses any "Segmentation fault" message there. '((' could
11144 # trigger a bug in pdksh 5.2.14.
11145 for as_var in BASH_ENV ENV MAIL MAILPATH
11146 do eval test x\${$as_var+set} = xset \
11147 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11148 done
11149 PS1='$ '
11150 PS2='> '
11151 PS4='+ '
11153 # NLS nuisances.
11154 LC_ALL=C
11155 export LC_ALL
11156 LANGUAGE=C
11157 export LANGUAGE
11159 # CDPATH.
11160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11163 # as_fn_error ERROR [LINENO LOG_FD]
11164 # ---------------------------------
11165 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11166 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11167 # script with status $?, using 1 if that was 0.
11168 as_fn_error ()
11170 as_status=$?; test $as_status -eq 0 && as_status=1
11171 if test "$3"; then
11172 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11173 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11175 $as_echo "$as_me: error: $1" >&2
11176 as_fn_exit $as_status
11177 } # as_fn_error
11180 # as_fn_set_status STATUS
11181 # -----------------------
11182 # Set $? to STATUS, without forking.
11183 as_fn_set_status ()
11185 return $1
11186 } # as_fn_set_status
11188 # as_fn_exit STATUS
11189 # -----------------
11190 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11191 as_fn_exit ()
11193 set +e
11194 as_fn_set_status $1
11195 exit $1
11196 } # as_fn_exit
11198 # as_fn_unset VAR
11199 # ---------------
11200 # Portably unset VAR.
11201 as_fn_unset ()
11203 { eval $1=; unset $1;}
11205 as_unset=as_fn_unset
11206 # as_fn_append VAR VALUE
11207 # ----------------------
11208 # Append the text in VALUE to the end of the definition contained in VAR. Take
11209 # advantage of any shell optimizations that allow amortized linear growth over
11210 # repeated appends, instead of the typical quadratic growth present in naive
11211 # implementations.
11212 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11213 eval 'as_fn_append ()
11215 eval $1+=\$2
11217 else
11218 as_fn_append ()
11220 eval $1=\$$1\$2
11222 fi # as_fn_append
11224 # as_fn_arith ARG...
11225 # ------------------
11226 # Perform arithmetic evaluation on the ARGs, and store the result in the
11227 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11228 # must be portable across $(()) and expr.
11229 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11230 eval 'as_fn_arith ()
11232 as_val=$(( $* ))
11234 else
11235 as_fn_arith ()
11237 as_val=`expr "$@" || test $? -eq 1`
11239 fi # as_fn_arith
11242 if expr a : '\(a\)' >/dev/null 2>&1 &&
11243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11244 as_expr=expr
11245 else
11246 as_expr=false
11249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11250 as_basename=basename
11251 else
11252 as_basename=false
11255 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11256 as_dirname=dirname
11257 else
11258 as_dirname=false
11261 as_me=`$as_basename -- "$0" ||
11262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11263 X"$0" : 'X\(//\)$' \| \
11264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11265 $as_echo X/"$0" |
11266 sed '/^.*\/\([^/][^/]*\)\/*$/{
11267 s//\1/
11270 /^X\/\(\/\/\)$/{
11271 s//\1/
11274 /^X\/\(\/\).*/{
11275 s//\1/
11278 s/.*/./; q'`
11280 # Avoid depending upon Character Ranges.
11281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11284 as_cr_digits='0123456789'
11285 as_cr_alnum=$as_cr_Letters$as_cr_digits
11287 ECHO_C= ECHO_N= ECHO_T=
11288 case `echo -n x` in #(((((
11289 -n*)
11290 case `echo 'xy\c'` in
11291 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11292 xy) ECHO_C='\c';;
11293 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11294 ECHO_T=' ';;
11295 esac;;
11297 ECHO_N='-n';;
11298 esac
11300 rm -f conf$$ conf$$.exe conf$$.file
11301 if test -d conf$$.dir; then
11302 rm -f conf$$.dir/conf$$.file
11303 else
11304 rm -f conf$$.dir
11305 mkdir conf$$.dir 2>/dev/null
11307 if (echo >conf$$.file) 2>/dev/null; then
11308 if ln -s conf$$.file conf$$ 2>/dev/null; then
11309 as_ln_s='ln -s'
11310 # ... but there are two gotchas:
11311 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11312 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11313 # In both cases, we have to default to `cp -p'.
11314 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11315 as_ln_s='cp -p'
11316 elif ln conf$$.file conf$$ 2>/dev/null; then
11317 as_ln_s=ln
11318 else
11319 as_ln_s='cp -p'
11321 else
11322 as_ln_s='cp -p'
11324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11325 rmdir conf$$.dir 2>/dev/null
11328 # as_fn_mkdir_p
11329 # -------------
11330 # Create "$as_dir" as a directory, including parents if necessary.
11331 as_fn_mkdir_p ()
11334 case $as_dir in #(
11335 -*) as_dir=./$as_dir;;
11336 esac
11337 test -d "$as_dir" || eval $as_mkdir_p || {
11338 as_dirs=
11339 while :; do
11340 case $as_dir in #(
11341 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11342 *) as_qdir=$as_dir;;
11343 esac
11344 as_dirs="'$as_qdir' $as_dirs"
11345 as_dir=`$as_dirname -- "$as_dir" ||
11346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11347 X"$as_dir" : 'X\(//\)[^/]' \| \
11348 X"$as_dir" : 'X\(//\)$' \| \
11349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11350 $as_echo X"$as_dir" |
11351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11352 s//\1/
11355 /^X\(\/\/\)[^/].*/{
11356 s//\1/
11359 /^X\(\/\/\)$/{
11360 s//\1/
11363 /^X\(\/\).*/{
11364 s//\1/
11367 s/.*/./; q'`
11368 test -d "$as_dir" && break
11369 done
11370 test -z "$as_dirs" || eval "mkdir $as_dirs"
11371 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11374 } # as_fn_mkdir_p
11375 if mkdir -p . 2>/dev/null; then
11376 as_mkdir_p='mkdir -p "$as_dir"'
11377 else
11378 test -d ./-p && rmdir ./-p
11379 as_mkdir_p=false
11382 if test -x / >/dev/null 2>&1; then
11383 as_test_x='test -x'
11384 else
11385 if ls -dL / >/dev/null 2>&1; then
11386 as_ls_L_option=L
11387 else
11388 as_ls_L_option=
11390 as_test_x='
11391 eval sh -c '\''
11392 if test -d "$1"; then
11393 test -d "$1/.";
11394 else
11395 case $1 in #(
11396 -*)set "./$1";;
11397 esac;
11398 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11399 ???[sx]*):;;*)false;;esac;fi
11400 '\'' sh
11403 as_executable_p=$as_test_x
11405 # Sed expression to map a string onto a valid CPP name.
11406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11408 # Sed expression to map a string onto a valid variable name.
11409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11412 exec 6>&1
11413 ## ----------------------------------- ##
11414 ## Main body of $CONFIG_STATUS script. ##
11415 ## ----------------------------------- ##
11416 _ASEOF
11417 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11420 # Save the log message, to keep $0 and so on meaningful, and to
11421 # report actual input values of CONFIG_FILES etc. instead of their
11422 # values after options handling.
11423 ac_log="
11424 This file was extended by LTO plugin for ld $as_me 0.1, which was
11425 generated by GNU Autoconf 2.64. Invocation command line was
11427 CONFIG_FILES = $CONFIG_FILES
11428 CONFIG_HEADERS = $CONFIG_HEADERS
11429 CONFIG_LINKS = $CONFIG_LINKS
11430 CONFIG_COMMANDS = $CONFIG_COMMANDS
11431 $ $0 $@
11433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11436 _ACEOF
11438 case $ac_config_files in *"
11439 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11440 esac
11442 case $ac_config_headers in *"
11443 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11444 esac
11447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11448 # Files that config.status was made for.
11449 config_files="$ac_config_files"
11450 config_headers="$ac_config_headers"
11451 config_commands="$ac_config_commands"
11453 _ACEOF
11455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11456 ac_cs_usage="\
11457 \`$as_me' instantiates files and other configuration actions
11458 from templates according to the current configuration. Unless the files
11459 and actions are specified as TAGs, all are instantiated by default.
11461 Usage: $0 [OPTION]... [TAG]...
11463 -h, --help print this help, then exit
11464 -V, --version print version number and configuration settings, then exit
11465 -q, --quiet, --silent
11466 do not print progress messages
11467 -d, --debug don't remove temporary files
11468 --recheck update $as_me by reconfiguring in the same conditions
11469 --file=FILE[:TEMPLATE]
11470 instantiate the configuration file FILE
11471 --header=FILE[:TEMPLATE]
11472 instantiate the configuration header FILE
11474 Configuration files:
11475 $config_files
11477 Configuration headers:
11478 $config_headers
11480 Configuration commands:
11481 $config_commands
11483 Report bugs to the package provider."
11485 _ACEOF
11486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11487 ac_cs_version="\\
11488 LTO plugin for ld config.status 0.1
11489 configured by $0, generated by GNU Autoconf 2.64,
11490 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11492 Copyright (C) 2009 Free Software Foundation, Inc.
11493 This config.status script is free software; the Free Software Foundation
11494 gives unlimited permission to copy, distribute and modify it."
11496 ac_pwd='$ac_pwd'
11497 srcdir='$srcdir'
11498 INSTALL='$INSTALL'
11499 MKDIR_P='$MKDIR_P'
11500 AWK='$AWK'
11501 test -n "\$AWK" || AWK=awk
11502 _ACEOF
11504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11505 # The default lists apply if the user does not specify any file.
11506 ac_need_defaults=:
11507 while test $# != 0
11509 case $1 in
11510 --*=*)
11511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11513 ac_shift=:
11516 ac_option=$1
11517 ac_optarg=$2
11518 ac_shift=shift
11520 esac
11522 case $ac_option in
11523 # Handling of the options.
11524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11525 ac_cs_recheck=: ;;
11526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11527 $as_echo "$ac_cs_version"; exit ;;
11528 --debug | --debu | --deb | --de | --d | -d )
11529 debug=: ;;
11530 --file | --fil | --fi | --f )
11531 $ac_shift
11532 case $ac_optarg in
11533 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11534 esac
11535 as_fn_append CONFIG_FILES " '$ac_optarg'"
11536 ac_need_defaults=false;;
11537 --header | --heade | --head | --hea )
11538 $ac_shift
11539 case $ac_optarg in
11540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11541 esac
11542 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11543 ac_need_defaults=false;;
11544 --he | --h)
11545 # Conflict between --help and --header
11546 as_fn_error "ambiguous option: \`$1'
11547 Try \`$0 --help' for more information.";;
11548 --help | --hel | -h )
11549 $as_echo "$ac_cs_usage"; exit ;;
11550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11551 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11552 ac_cs_silent=: ;;
11554 # This is an error.
11555 -*) as_fn_error "unrecognized option: \`$1'
11556 Try \`$0 --help' for more information." ;;
11558 *) as_fn_append ac_config_targets " $1"
11559 ac_need_defaults=false ;;
11561 esac
11562 shift
11563 done
11565 ac_configure_extra_args=
11567 if $ac_cs_silent; then
11568 exec 6>/dev/null
11569 ac_configure_extra_args="$ac_configure_extra_args --silent"
11572 _ACEOF
11573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11574 if \$ac_cs_recheck; then
11575 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11576 shift
11577 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11578 CONFIG_SHELL='$SHELL'
11579 export CONFIG_SHELL
11580 exec "\$@"
11583 _ACEOF
11584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11585 exec 5>>config.log
11587 echo
11588 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11589 ## Running $as_me. ##
11590 _ASBOX
11591 $as_echo "$ac_log"
11592 } >&5
11594 _ACEOF
11595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11597 # INIT-COMMANDS
11599 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11602 # The HP-UX ksh and POSIX shell print the target directory to stdout
11603 # if CDPATH is set.
11604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11606 sed_quote_subst='$sed_quote_subst'
11607 double_quote_subst='$double_quote_subst'
11608 delay_variable_subst='$delay_variable_subst'
11609 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11610 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11611 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11612 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11613 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11614 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11615 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11616 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11617 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11618 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11619 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11620 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11621 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11622 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11623 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11624 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11625 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11626 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11627 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11628 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11629 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11630 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11631 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11632 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11633 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11634 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11635 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11636 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11637 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11638 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11639 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11642 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11643 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11644 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11645 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11646 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11647 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11648 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11649 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11650 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11651 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11652 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11653 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11654 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11655 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11656 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11657 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"`'
11658 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11659 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11660 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11661 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11662 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11663 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11664 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11665 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11666 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11667 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11668 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11669 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11670 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11671 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11672 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11673 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11674 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11675 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11676 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11677 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11678 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11679 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11680 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11681 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11682 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11683 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11684 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11685 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11686 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11687 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11688 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11689 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11690 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11691 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11692 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11693 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11694 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11695 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11696 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11697 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11698 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11699 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11700 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11701 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11702 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11703 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11704 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11705 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11706 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11707 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11708 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11709 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11710 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11711 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11712 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11713 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11714 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11715 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11716 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11717 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11718 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11719 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11720 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11721 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11722 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11723 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11724 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11725 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11726 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11727 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11728 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11730 LTCC='$LTCC'
11731 LTCFLAGS='$LTCFLAGS'
11732 compiler='$compiler_DEFAULT'
11734 # A function that is used when there is no print builtin or printf.
11735 func_fallback_echo ()
11737 eval 'cat <<_LTECHO_EOF
11739 _LTECHO_EOF'
11742 # Quote evaled strings.
11743 for var in SHELL \
11744 ECHO \
11745 SED \
11746 GREP \
11747 EGREP \
11748 FGREP \
11749 LD \
11750 NM \
11751 LN_S \
11752 lt_SP2NL \
11753 lt_NL2SP \
11754 reload_flag \
11755 OBJDUMP \
11756 deplibs_check_method \
11757 file_magic_cmd \
11758 AR \
11759 AR_FLAGS \
11760 STRIP \
11761 RANLIB \
11762 CC \
11763 CFLAGS \
11764 compiler \
11765 lt_cv_sys_global_symbol_pipe \
11766 lt_cv_sys_global_symbol_to_cdecl \
11767 lt_cv_sys_global_symbol_to_c_name_address \
11768 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11769 lt_prog_compiler_no_builtin_flag \
11770 lt_prog_compiler_wl \
11771 lt_prog_compiler_pic \
11772 lt_prog_compiler_static \
11773 lt_cv_prog_compiler_c_o \
11774 need_locks \
11775 DSYMUTIL \
11776 NMEDIT \
11777 LIPO \
11778 OTOOL \
11779 OTOOL64 \
11780 shrext_cmds \
11781 export_dynamic_flag_spec \
11782 whole_archive_flag_spec \
11783 compiler_needs_object \
11784 with_gnu_ld \
11785 allow_undefined_flag \
11786 no_undefined_flag \
11787 hardcode_libdir_flag_spec \
11788 hardcode_libdir_flag_spec_ld \
11789 hardcode_libdir_separator \
11790 fix_srcfile_path \
11791 exclude_expsyms \
11792 include_expsyms \
11793 file_list_spec \
11794 variables_saved_for_relink \
11795 libname_spec \
11796 library_names_spec \
11797 soname_spec \
11798 install_override_mode \
11799 finish_eval \
11800 old_striplib \
11801 striplib; do
11802 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11803 *[\\\\\\\`\\"\\\$]*)
11804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11809 esac
11810 done
11812 # Double-quote double-evaled strings.
11813 for var in reload_cmds \
11814 old_postinstall_cmds \
11815 old_postuninstall_cmds \
11816 old_archive_cmds \
11817 extract_expsyms_cmds \
11818 old_archive_from_new_cmds \
11819 old_archive_from_expsyms_cmds \
11820 archive_cmds \
11821 archive_expsym_cmds \
11822 module_cmds \
11823 module_expsym_cmds \
11824 export_symbols_cmds \
11825 prelink_cmds \
11826 postinstall_cmds \
11827 postuninstall_cmds \
11828 finish_cmds \
11829 sys_lib_search_path_spec \
11830 sys_lib_dlsearch_path_spec; do
11831 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11832 *[\\\\\\\`\\"\\\$]*)
11833 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11836 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11838 esac
11839 done
11841 ac_aux_dir='$ac_aux_dir'
11842 xsi_shell='$xsi_shell'
11843 lt_shell_append='$lt_shell_append'
11845 # See if we are running on zsh, and set the options which allow our
11846 # commands through without removal of \ escapes INIT.
11847 if test -n "\${ZSH_VERSION+set}" ; then
11848 setopt NO_GLOB_SUBST
11852 PACKAGE='$PACKAGE'
11853 VERSION='$VERSION'
11854 TIMESTAMP='$TIMESTAMP'
11855 RM='$RM'
11856 ofile='$ofile'
11861 _ACEOF
11863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11865 # Handling of arguments.
11866 for ac_config_target in $ac_config_targets
11868 case $ac_config_target in
11869 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11870 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11871 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11872 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11874 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11875 esac
11876 done
11879 # If the user did not use the arguments to specify the items to instantiate,
11880 # then the envvar interface is used. Set only those that are not.
11881 # We use the long form for the default assignment because of an extremely
11882 # bizarre bug on SunOS 4.1.3.
11883 if $ac_need_defaults; then
11884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11889 # Have a temporary directory for convenience. Make it in the build tree
11890 # simply because there is no reason against having it here, and in addition,
11891 # creating and moving files from /tmp can sometimes cause problems.
11892 # Hook for its removal unless debugging.
11893 # Note that there is a small window in which the directory will not be cleaned:
11894 # after its creation but before its name has been assigned to `$tmp'.
11895 $debug ||
11897 tmp=
11898 trap 'exit_status=$?
11899 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11901 trap 'as_fn_exit 1' 1 2 13 15
11903 # Create a (secure) tmp directory for tmp files.
11906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11907 test -n "$tmp" && test -d "$tmp"
11908 } ||
11910 tmp=./conf$$-$RANDOM
11911 (umask 077 && mkdir "$tmp")
11912 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11914 # Set up the scripts for CONFIG_FILES section.
11915 # No need to generate them if there are no CONFIG_FILES.
11916 # This happens for instance with `./config.status config.h'.
11917 if test -n "$CONFIG_FILES"; then
11920 ac_cr=`echo X | tr X '\015'`
11921 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11922 # But we know of no other shell where ac_cr would be empty at this
11923 # point, so we can use a bashism as a fallback.
11924 if test "x$ac_cr" = x; then
11925 eval ac_cr=\$\'\\r\'
11927 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11928 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11929 ac_cs_awk_cr='\r'
11930 else
11931 ac_cs_awk_cr=$ac_cr
11934 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11935 _ACEOF
11939 echo "cat >conf$$subs.awk <<_ACEOF" &&
11940 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11941 echo "_ACEOF"
11942 } >conf$$subs.sh ||
11943 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11944 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11945 ac_delim='%!_!# '
11946 for ac_last_try in false false false false false :; do
11947 . ./conf$$subs.sh ||
11948 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11950 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11951 if test $ac_delim_n = $ac_delim_num; then
11952 break
11953 elif $ac_last_try; then
11954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11955 else
11956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11958 done
11959 rm -f conf$$subs.sh
11961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11962 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11963 _ACEOF
11964 sed -n '
11966 s/^/S["/; s/!.*/"]=/
11969 s/^[^!]*!//
11970 :repl
11971 t repl
11972 s/'"$ac_delim"'$//
11973 t delim
11976 s/\(.\{148\}\).*/\1/
11977 t more1
11978 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11981 b repl
11982 :more1
11983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11986 s/.\{148\}//
11987 t nl
11988 :delim
11990 s/\(.\{148\}\).*/\1/
11991 t more2
11992 s/["\\]/\\&/g; s/^/"/; s/$/"/
11995 :more2
11996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11999 s/.\{148\}//
12000 t delim
12001 ' <conf$$subs.awk | sed '
12002 /^[^""]/{
12004 s/\n//
12006 ' >>$CONFIG_STATUS || ac_write_fail=1
12007 rm -f conf$$subs.awk
12008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12009 _ACAWK
12010 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12011 for (key in S) S_is_set[key] = 1
12012 FS = "\a"
12016 line = $ 0
12017 nfields = split(line, field, "@")
12018 substed = 0
12019 len = length(field[1])
12020 for (i = 2; i < nfields; i++) {
12021 key = field[i]
12022 keylen = length(key)
12023 if (S_is_set[key]) {
12024 value = S[key]
12025 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12026 len += length(value) + length(field[++i])
12027 substed = 1
12028 } else
12029 len += 1 + keylen
12032 print line
12035 _ACAWK
12036 _ACEOF
12037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12039 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12040 else
12042 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12043 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12044 _ACEOF
12046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12048 # trailing colons and then remove the whole line if VPATH becomes empty
12049 # (actually we leave an empty line to preserve line numbers).
12050 if test "x$srcdir" = x.; then
12051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12052 s/:*\$(srcdir):*/:/
12053 s/:*\${srcdir}:*/:/
12054 s/:*@srcdir@:*/:/
12055 s/^\([^=]*=[ ]*\):*/\1/
12056 s/:*$//
12057 s/^[^=]*=[ ]*$//
12061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12062 fi # test -n "$CONFIG_FILES"
12064 # Set up the scripts for CONFIG_HEADERS section.
12065 # No need to generate them if there are no CONFIG_HEADERS.
12066 # This happens for instance with `./config.status Makefile'.
12067 if test -n "$CONFIG_HEADERS"; then
12068 cat >"$tmp/defines.awk" <<\_ACAWK ||
12069 BEGIN {
12070 _ACEOF
12072 # Transform confdefs.h into an awk script `defines.awk', embedded as
12073 # here-document in config.status, that substitutes the proper values into
12074 # config.h.in to produce config.h.
12076 # Create a delimiter string that does not exist in confdefs.h, to ease
12077 # handling of long lines.
12078 ac_delim='%!_!# '
12079 for ac_last_try in false false :; do
12080 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12081 if test -z "$ac_t"; then
12082 break
12083 elif $ac_last_try; then
12084 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12085 else
12086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12088 done
12090 # For the awk script, D is an array of macro values keyed by name,
12091 # likewise P contains macro parameters if any. Preserve backslash
12092 # newline sequences.
12094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12095 sed -n '
12096 s/.\{148\}/&'"$ac_delim"'/g
12097 t rset
12098 :rset
12099 s/^[ ]*#[ ]*define[ ][ ]*/ /
12100 t def
12102 :def
12103 s/\\$//
12104 t bsnl
12105 s/["\\]/\\&/g
12106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12107 D["\1"]=" \3"/p
12108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12110 :bsnl
12111 s/["\\]/\\&/g
12112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12113 D["\1"]=" \3\\\\\\n"\\/p
12114 t cont
12115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12116 t cont
12118 :cont
12120 s/.\{148\}/&'"$ac_delim"'/g
12121 t clear
12122 :clear
12123 s/\\$//
12124 t bsnlc
12125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12127 :bsnlc
12128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12129 b cont
12130 ' <confdefs.h | sed '
12131 s/'"$ac_delim"'/"\\\
12132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12135 for (key in D) D_is_set[key] = 1
12136 FS = "\a"
12138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12139 line = \$ 0
12140 split(line, arg, " ")
12141 if (arg[1] == "#") {
12142 defundef = arg[2]
12143 mac1 = arg[3]
12144 } else {
12145 defundef = substr(arg[1], 2)
12146 mac1 = arg[2]
12148 split(mac1, mac2, "(") #)
12149 macro = mac2[1]
12150 prefix = substr(line, 1, index(line, defundef) - 1)
12151 if (D_is_set[macro]) {
12152 # Preserve the white space surrounding the "#".
12153 print prefix "define", macro P[macro] D[macro]
12154 next
12155 } else {
12156 # Replace #undef with comments. This is necessary, for example,
12157 # in the case of _POSIX_SOURCE, which is predefined and required
12158 # on some systems where configure will not decide to define it.
12159 if (defundef == "undef") {
12160 print "/*", prefix defundef, macro, "*/"
12161 next
12165 { print }
12166 _ACAWK
12167 _ACEOF
12168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12169 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12170 fi # test -n "$CONFIG_HEADERS"
12173 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12174 shift
12175 for ac_tag
12177 case $ac_tag in
12178 :[FHLC]) ac_mode=$ac_tag; continue;;
12179 esac
12180 case $ac_mode$ac_tag in
12181 :[FHL]*:*);;
12182 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12183 :[FH]-) ac_tag=-:-;;
12184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12185 esac
12186 ac_save_IFS=$IFS
12187 IFS=:
12188 set x $ac_tag
12189 IFS=$ac_save_IFS
12190 shift
12191 ac_file=$1
12192 shift
12194 case $ac_mode in
12195 :L) ac_source=$1;;
12196 :[FH])
12197 ac_file_inputs=
12198 for ac_f
12200 case $ac_f in
12201 -) ac_f="$tmp/stdin";;
12202 *) # Look for the file first in the build tree, then in the source tree
12203 # (if the path is not absolute). The absolute path cannot be DOS-style,
12204 # because $ac_f cannot contain `:'.
12205 test -f "$ac_f" ||
12206 case $ac_f in
12207 [\\/$]*) false;;
12208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12209 esac ||
12210 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12211 esac
12212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12213 as_fn_append ac_file_inputs " '$ac_f'"
12214 done
12216 # Let's still pretend it is `configure' which instantiates (i.e., don't
12217 # use $as_me), people would be surprised to read:
12218 # /* config.h. Generated by config.status. */
12219 configure_input='Generated from '`
12220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12221 `' by configure.'
12222 if test x"$ac_file" != x-; then
12223 configure_input="$ac_file. $configure_input"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12225 $as_echo "$as_me: creating $ac_file" >&6;}
12227 # Neutralize special characters interpreted by sed in replacement strings.
12228 case $configure_input in #(
12229 *\&* | *\|* | *\\* )
12230 ac_sed_conf_input=`$as_echo "$configure_input" |
12231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12232 *) ac_sed_conf_input=$configure_input;;
12233 esac
12235 case $ac_tag in
12236 *:-:* | *:-) cat >"$tmp/stdin" \
12237 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12238 esac
12240 esac
12242 ac_dir=`$as_dirname -- "$ac_file" ||
12243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12244 X"$ac_file" : 'X\(//\)[^/]' \| \
12245 X"$ac_file" : 'X\(//\)$' \| \
12246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12247 $as_echo X"$ac_file" |
12248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12249 s//\1/
12252 /^X\(\/\/\)[^/].*/{
12253 s//\1/
12256 /^X\(\/\/\)$/{
12257 s//\1/
12260 /^X\(\/\).*/{
12261 s//\1/
12264 s/.*/./; q'`
12265 as_dir="$ac_dir"; as_fn_mkdir_p
12266 ac_builddir=.
12268 case "$ac_dir" in
12269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12272 # A ".." for each directory in $ac_dir_suffix.
12273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12274 case $ac_top_builddir_sub in
12275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12277 esac ;;
12278 esac
12279 ac_abs_top_builddir=$ac_pwd
12280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12281 # for backward compatibility:
12282 ac_top_builddir=$ac_top_build_prefix
12284 case $srcdir in
12285 .) # We are building in place.
12286 ac_srcdir=.
12287 ac_top_srcdir=$ac_top_builddir_sub
12288 ac_abs_top_srcdir=$ac_pwd ;;
12289 [\\/]* | ?:[\\/]* ) # Absolute name.
12290 ac_srcdir=$srcdir$ac_dir_suffix;
12291 ac_top_srcdir=$srcdir
12292 ac_abs_top_srcdir=$srcdir ;;
12293 *) # Relative name.
12294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12295 ac_top_srcdir=$ac_top_build_prefix$srcdir
12296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12297 esac
12298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12301 case $ac_mode in
12304 # CONFIG_FILE
12307 case $INSTALL in
12308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12310 esac
12311 ac_MKDIR_P=$MKDIR_P
12312 case $MKDIR_P in
12313 [\\/$]* | ?:[\\/]* ) ;;
12314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12315 esac
12316 _ACEOF
12318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12319 # If the template does not know about datarootdir, expand it.
12320 # FIXME: This hack should be removed a few years after 2.60.
12321 ac_datarootdir_hack=; ac_datarootdir_seen=
12322 ac_sed_dataroot='
12323 /datarootdir/ {
12327 /@datadir@/p
12328 /@docdir@/p
12329 /@infodir@/p
12330 /@localedir@/p
12331 /@mandir@/p'
12332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12333 *datarootdir*) ac_datarootdir_seen=yes;;
12334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12337 _ACEOF
12338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12339 ac_datarootdir_hack='
12340 s&@datadir@&$datadir&g
12341 s&@docdir@&$docdir&g
12342 s&@infodir@&$infodir&g
12343 s&@localedir@&$localedir&g
12344 s&@mandir@&$mandir&g
12345 s&\\\${datarootdir}&$datarootdir&g' ;;
12346 esac
12347 _ACEOF
12349 # Neutralize VPATH when `$srcdir' = `.'.
12350 # Shell code in configure.ac might set extrasub.
12351 # FIXME: do we really want to maintain this feature?
12352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353 ac_sed_extra="$ac_vpsub
12354 $extrasub
12355 _ACEOF
12356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12359 s|@configure_input@|$ac_sed_conf_input|;t t
12360 s&@top_builddir@&$ac_top_builddir_sub&;t t
12361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12362 s&@srcdir@&$ac_srcdir&;t t
12363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12364 s&@top_srcdir@&$ac_top_srcdir&;t t
12365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12366 s&@builddir@&$ac_builddir&;t t
12367 s&@abs_builddir@&$ac_abs_builddir&;t t
12368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12369 s&@INSTALL@&$ac_INSTALL&;t t
12370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12371 $ac_datarootdir_hack
12373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12374 || as_fn_error "could not create $ac_file" "$LINENO" 5
12376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12377 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12380 which seems to be undefined. Please make sure it is defined." >&5
12381 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12382 which seems to be undefined. Please make sure it is defined." >&2;}
12384 rm -f "$tmp/stdin"
12385 case $ac_file in
12386 -) cat "$tmp/out" && rm -f "$tmp/out";;
12387 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12388 esac \
12389 || as_fn_error "could not create $ac_file" "$LINENO" 5
12393 # CONFIG_HEADER
12395 if test x"$ac_file" != x-; then
12397 $as_echo "/* $configure_input */" \
12398 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12399 } >"$tmp/config.h" \
12400 || as_fn_error "could not create $ac_file" "$LINENO" 5
12401 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12403 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12404 else
12405 rm -f "$ac_file"
12406 mv "$tmp/config.h" "$ac_file" \
12407 || as_fn_error "could not create $ac_file" "$LINENO" 5
12409 else
12410 $as_echo "/* $configure_input */" \
12411 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12412 || as_fn_error "could not create -" "$LINENO" 5
12414 # Compute "$ac_file"'s index in $config_headers.
12415 _am_arg="$ac_file"
12416 _am_stamp_count=1
12417 for _am_header in $config_headers :; do
12418 case $_am_header in
12419 $_am_arg | $_am_arg:* )
12420 break ;;
12422 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12423 esac
12424 done
12425 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12426 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12427 X"$_am_arg" : 'X\(//\)[^/]' \| \
12428 X"$_am_arg" : 'X\(//\)$' \| \
12429 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12430 $as_echo X"$_am_arg" |
12431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12432 s//\1/
12435 /^X\(\/\/\)[^/].*/{
12436 s//\1/
12439 /^X\(\/\/\)$/{
12440 s//\1/
12443 /^X\(\/\).*/{
12444 s//\1/
12447 s/.*/./; q'`/stamp-h$_am_stamp_count
12450 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12451 $as_echo "$as_me: executing $ac_file commands" >&6;}
12453 esac
12456 case $ac_file$ac_mode in
12457 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12458 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12459 # are listed without --file. Let's play safe and only enable the eval
12460 # if we detect the quoting.
12461 case $CONFIG_FILES in
12462 *\'*) eval set x "$CONFIG_FILES" ;;
12463 *) set x $CONFIG_FILES ;;
12464 esac
12465 shift
12466 for mf
12468 # Strip MF so we end up with the name of the file.
12469 mf=`echo "$mf" | sed -e 's/:.*$//'`
12470 # Check whether this is an Automake generated Makefile or not.
12471 # We used to match only the files named `Makefile.in', but
12472 # some people rename them; so instead we look at the file content.
12473 # Grep'ing the first line is not enough: some people post-process
12474 # each Makefile.in and add a new line on top of each file to say so.
12475 # Grep'ing the whole file is not good either: AIX grep has a line
12476 # limit of 2048, but all sed's we know have understand at least 4000.
12477 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12478 dirpart=`$as_dirname -- "$mf" ||
12479 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12480 X"$mf" : 'X\(//\)[^/]' \| \
12481 X"$mf" : 'X\(//\)$' \| \
12482 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12483 $as_echo X"$mf" |
12484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12485 s//\1/
12488 /^X\(\/\/\)[^/].*/{
12489 s//\1/
12492 /^X\(\/\/\)$/{
12493 s//\1/
12496 /^X\(\/\).*/{
12497 s//\1/
12500 s/.*/./; q'`
12501 else
12502 continue
12504 # Extract the definition of DEPDIR, am__include, and am__quote
12505 # from the Makefile without running `make'.
12506 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12507 test -z "$DEPDIR" && continue
12508 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12509 test -z "am__include" && continue
12510 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12511 # When using ansi2knr, U may be empty or an underscore; expand it
12512 U=`sed -n 's/^U = //p' < "$mf"`
12513 # Find all dependency output files, they are included files with
12514 # $(DEPDIR) in their names. We invoke sed twice because it is the
12515 # simplest approach to changing $(DEPDIR) to its actual value in the
12516 # expansion.
12517 for file in `sed -n "
12518 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12519 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12520 # Make sure the directory exists.
12521 test -f "$dirpart/$file" && continue
12522 fdir=`$as_dirname -- "$file" ||
12523 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12524 X"$file" : 'X\(//\)[^/]' \| \
12525 X"$file" : 'X\(//\)$' \| \
12526 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12527 $as_echo X"$file" |
12528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12529 s//\1/
12532 /^X\(\/\/\)[^/].*/{
12533 s//\1/
12536 /^X\(\/\/\)$/{
12537 s//\1/
12540 /^X\(\/\).*/{
12541 s//\1/
12544 s/.*/./; q'`
12545 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12546 # echo "creating $dirpart/$file"
12547 echo '# dummy' > "$dirpart/$file"
12548 done
12549 done
12552 "libtool":C)
12554 # See if we are running on zsh, and set the options which allow our
12555 # commands through without removal of \ escapes.
12556 if test -n "${ZSH_VERSION+set}" ; then
12557 setopt NO_GLOB_SUBST
12560 cfgfile="${ofile}T"
12561 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12562 $RM "$cfgfile"
12564 cat <<_LT_EOF >> "$cfgfile"
12565 #! $SHELL
12567 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12568 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12569 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12570 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12572 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12573 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12574 # Written by Gordon Matzigkeit, 1996
12576 # This file is part of GNU Libtool.
12578 # GNU Libtool is free software; you can redistribute it and/or
12579 # modify it under the terms of the GNU General Public License as
12580 # published by the Free Software Foundation; either version 2 of
12581 # the License, or (at your option) any later version.
12583 # As a special exception to the GNU General Public License,
12584 # if you distribute this file as part of a program or library that
12585 # is built using GNU Libtool, you may include this file under the
12586 # same distribution terms that you use for the rest of that program.
12588 # GNU Libtool is distributed in the hope that it will be useful,
12589 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12591 # GNU General Public License for more details.
12593 # You should have received a copy of the GNU General Public License
12594 # along with GNU Libtool; see the file COPYING. If not, a copy
12595 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12596 # obtained by writing to the Free Software Foundation, Inc.,
12597 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12600 # The names of the tagged configurations supported by this script.
12601 available_tags=""
12603 # ### BEGIN LIBTOOL CONFIG
12605 # Which release of libtool.m4 was used?
12606 macro_version=$macro_version
12607 macro_revision=$macro_revision
12609 # Whether or not to build shared libraries.
12610 build_libtool_libs=$enable_shared
12612 # Whether or not to build static libraries.
12613 build_old_libs=$enable_static
12615 # What type of objects to build.
12616 pic_mode=$pic_mode
12618 # Whether or not to optimize for fast installation.
12619 fast_install=$enable_fast_install
12621 # Shell to use when invoking shell scripts.
12622 SHELL=$lt_SHELL
12624 # An echo program that protects backslashes.
12625 ECHO=$lt_ECHO
12627 # The host system.
12628 host_alias=$host_alias
12629 host=$host
12630 host_os=$host_os
12632 # The build system.
12633 build_alias=$build_alias
12634 build=$build
12635 build_os=$build_os
12637 # A sed program that does not truncate output.
12638 SED=$lt_SED
12640 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12641 Xsed="\$SED -e 1s/^X//"
12643 # A grep program that handles long lines.
12644 GREP=$lt_GREP
12646 # An ERE matcher.
12647 EGREP=$lt_EGREP
12649 # A literal string matcher.
12650 FGREP=$lt_FGREP
12652 # A BSD- or MS-compatible name lister.
12653 NM=$lt_NM
12655 # Whether we need soft or hard links.
12656 LN_S=$lt_LN_S
12658 # What is the maximum length of a command?
12659 max_cmd_len=$max_cmd_len
12661 # Object file suffix (normally "o").
12662 objext=$ac_objext
12664 # Executable file suffix (normally "").
12665 exeext=$exeext
12667 # whether the shell understands "unset".
12668 lt_unset=$lt_unset
12670 # turn spaces into newlines.
12671 SP2NL=$lt_lt_SP2NL
12673 # turn newlines into spaces.
12674 NL2SP=$lt_lt_NL2SP
12676 # An object symbol dumper.
12677 OBJDUMP=$lt_OBJDUMP
12679 # Method to check whether dependent libraries are shared objects.
12680 deplibs_check_method=$lt_deplibs_check_method
12682 # Command to use when deplibs_check_method == "file_magic".
12683 file_magic_cmd=$lt_file_magic_cmd
12685 # The archiver.
12686 AR=$lt_AR
12687 AR_FLAGS=$lt_AR_FLAGS
12689 # A symbol stripping program.
12690 STRIP=$lt_STRIP
12692 # Commands used to install an old-style archive.
12693 RANLIB=$lt_RANLIB
12694 old_postinstall_cmds=$lt_old_postinstall_cmds
12695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12697 # Whether to use a lock for old archive extraction.
12698 lock_old_archive_extraction=$lock_old_archive_extraction
12700 # A C compiler.
12701 LTCC=$lt_CC
12703 # LTCC compiler flags.
12704 LTCFLAGS=$lt_CFLAGS
12706 # Take the output of nm and produce a listing of raw symbols and C names.
12707 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12709 # Transform the output of nm in a proper C declaration.
12710 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12712 # Transform the output of nm in a C name address pair.
12713 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12715 # Transform the output of nm in a C name address pair when lib prefix is needed.
12716 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12718 # The name of the directory that contains temporary libtool files.
12719 objdir=$objdir
12721 # Used to examine libraries when file_magic_cmd begins with "file".
12722 MAGIC_CMD=$MAGIC_CMD
12724 # Must we lock files when doing compilation?
12725 need_locks=$lt_need_locks
12727 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12728 DSYMUTIL=$lt_DSYMUTIL
12730 # Tool to change global to local symbols on Mac OS X.
12731 NMEDIT=$lt_NMEDIT
12733 # Tool to manipulate fat objects and archives on Mac OS X.
12734 LIPO=$lt_LIPO
12736 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12737 OTOOL=$lt_OTOOL
12739 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12740 OTOOL64=$lt_OTOOL64
12742 # Old archive suffix (normally "a").
12743 libext=$libext
12745 # Shared library suffix (normally ".so").
12746 shrext_cmds=$lt_shrext_cmds
12748 # The commands to extract the exported symbol list from a shared archive.
12749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12751 # Variables whose values should be saved in libtool wrapper scripts and
12752 # restored at link time.
12753 variables_saved_for_relink=$lt_variables_saved_for_relink
12755 # Do we need the "lib" prefix for modules?
12756 need_lib_prefix=$need_lib_prefix
12758 # Do we need a version for libraries?
12759 need_version=$need_version
12761 # Library versioning type.
12762 version_type=$version_type
12764 # Shared library runtime path variable.
12765 runpath_var=$runpath_var
12767 # Shared library path variable.
12768 shlibpath_var=$shlibpath_var
12770 # Is shlibpath searched before the hard-coded library search path?
12771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12773 # Format of library name prefix.
12774 libname_spec=$lt_libname_spec
12776 # List of archive names. First name is the real one, the rest are links.
12777 # The last name is the one that the linker finds with -lNAME
12778 library_names_spec=$lt_library_names_spec
12780 # The coded name of the library, if different from the real name.
12781 soname_spec=$lt_soname_spec
12783 # Permission mode override for installation of shared libraries.
12784 install_override_mode=$lt_install_override_mode
12786 # Command to use after installation of a shared archive.
12787 postinstall_cmds=$lt_postinstall_cmds
12789 # Command to use after uninstallation of a shared archive.
12790 postuninstall_cmds=$lt_postuninstall_cmds
12792 # Commands used to finish a libtool library installation in a directory.
12793 finish_cmds=$lt_finish_cmds
12795 # As "finish_cmds", except a single script fragment to be evaled but
12796 # not shown.
12797 finish_eval=$lt_finish_eval
12799 # Whether we should hardcode library paths into libraries.
12800 hardcode_into_libs=$hardcode_into_libs
12802 # Compile-time system search path for libraries.
12803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12805 # Run-time system search path for libraries.
12806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12808 # Whether dlopen is supported.
12809 dlopen_support=$enable_dlopen
12811 # Whether dlopen of programs is supported.
12812 dlopen_self=$enable_dlopen_self
12814 # Whether dlopen of statically linked programs is supported.
12815 dlopen_self_static=$enable_dlopen_self_static
12817 # Commands to strip libraries.
12818 old_striplib=$lt_old_striplib
12819 striplib=$lt_striplib
12822 # The linker used to build libraries.
12823 LD=$lt_LD
12825 # How to create reloadable object files.
12826 reload_flag=$lt_reload_flag
12827 reload_cmds=$lt_reload_cmds
12829 # Commands used to build an old-style archive.
12830 old_archive_cmds=$lt_old_archive_cmds
12832 # A language specific compiler.
12833 CC=$lt_compiler
12835 # Is the compiler the GNU compiler?
12836 with_gcc=$GCC
12838 # Compiler flag to turn off builtin functions.
12839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12841 # How to pass a linker flag through the compiler.
12842 wl=$lt_lt_prog_compiler_wl
12844 # Additional compiler flags for building library objects.
12845 pic_flag=$lt_lt_prog_compiler_pic
12847 # Compiler flag to prevent dynamic linking.
12848 link_static_flag=$lt_lt_prog_compiler_static
12850 # Does compiler simultaneously support -c and -o options?
12851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12853 # Whether or not to add -lc for building shared libraries.
12854 build_libtool_need_lc=$archive_cmds_need_lc
12856 # Whether or not to disallow shared libs when runtime libs are static.
12857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12859 # Compiler flag to allow reflexive dlopens.
12860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12862 # Compiler flag to generate shared objects directly from archives.
12863 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12865 # Whether the compiler copes with passing no objects directly.
12866 compiler_needs_object=$lt_compiler_needs_object
12868 # Create an old-style archive from a shared archive.
12869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12871 # Create a temporary old-style archive to link instead of a shared archive.
12872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12874 # Commands used to build a shared archive.
12875 archive_cmds=$lt_archive_cmds
12876 archive_expsym_cmds=$lt_archive_expsym_cmds
12878 # Commands used to build a loadable module if different from building
12879 # a shared archive.
12880 module_cmds=$lt_module_cmds
12881 module_expsym_cmds=$lt_module_expsym_cmds
12883 # Whether we are building with GNU ld or not.
12884 with_gnu_ld=$lt_with_gnu_ld
12886 # Flag that allows shared libraries with undefined symbols to be built.
12887 allow_undefined_flag=$lt_allow_undefined_flag
12889 # Flag that enforces no undefined symbols.
12890 no_undefined_flag=$lt_no_undefined_flag
12892 # Flag to hardcode \$libdir into a binary during linking.
12893 # This must work even if \$libdir does not exist
12894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12896 # If ld is used when linking, flag to hardcode \$libdir into a binary
12897 # during linking. This must work even if \$libdir does not exist.
12898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12900 # Whether we need a single "-rpath" flag with a separated argument.
12901 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12904 # DIR into the resulting binary.
12905 hardcode_direct=$hardcode_direct
12907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12908 # DIR into the resulting binary and the resulting library dependency is
12909 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12910 # library is relocated.
12911 hardcode_direct_absolute=$hardcode_direct_absolute
12913 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12914 # into the resulting binary.
12915 hardcode_minus_L=$hardcode_minus_L
12917 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12918 # into the resulting binary.
12919 hardcode_shlibpath_var=$hardcode_shlibpath_var
12921 # Set to "yes" if building a shared library automatically hardcodes DIR
12922 # into the library and all subsequent libraries and executables linked
12923 # against it.
12924 hardcode_automatic=$hardcode_automatic
12926 # Set to yes if linker adds runtime paths of dependent libraries
12927 # to runtime path list.
12928 inherit_rpath=$inherit_rpath
12930 # Whether libtool must link a program against all its dependency libraries.
12931 link_all_deplibs=$link_all_deplibs
12933 # Fix the shell variable \$srcfile for the compiler.
12934 fix_srcfile_path=$lt_fix_srcfile_path
12936 # Set to "yes" if exported symbols are required.
12937 always_export_symbols=$always_export_symbols
12939 # The commands to list exported symbols.
12940 export_symbols_cmds=$lt_export_symbols_cmds
12942 # Symbols that should not be listed in the preloaded symbols.
12943 exclude_expsyms=$lt_exclude_expsyms
12945 # Symbols that must always be exported.
12946 include_expsyms=$lt_include_expsyms
12948 # Commands necessary for linking programs (against libraries) with templates.
12949 prelink_cmds=$lt_prelink_cmds
12951 # Specify filename containing input files.
12952 file_list_spec=$lt_file_list_spec
12954 # How to hardcode a shared library path into an executable.
12955 hardcode_action=$hardcode_action
12957 # ### END LIBTOOL CONFIG
12959 _LT_EOF
12961 case $host_os in
12962 aix3*)
12963 cat <<\_LT_EOF >> "$cfgfile"
12964 # AIX sometimes has problems with the GCC collect2 program. For some
12965 # reason, if we set the COLLECT_NAMES environment variable, the problems
12966 # vanish in a puff of smoke.
12967 if test "X${COLLECT_NAMES+set}" != Xset; then
12968 COLLECT_NAMES=
12969 export COLLECT_NAMES
12971 _LT_EOF
12973 esac
12976 ltmain="$ac_aux_dir/ltmain.sh"
12979 # We use sed instead of cat because bash on DJGPP gets confused if
12980 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12981 # text mode, it properly converts lines to CR/LF. This bash problem
12982 # is reportedly fixed, but why not run on old versions too?
12983 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12984 || (rm -f "$cfgfile"; exit 1)
12986 case $xsi_shell in
12987 yes)
12988 cat << \_LT_EOF >> "$cfgfile"
12990 # func_dirname file append nondir_replacement
12991 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12992 # otherwise set result to NONDIR_REPLACEMENT.
12993 func_dirname ()
12995 case ${1} in
12996 */*) func_dirname_result="${1%/*}${2}" ;;
12997 * ) func_dirname_result="${3}" ;;
12998 esac
13001 # func_basename file
13002 func_basename ()
13004 func_basename_result="${1##*/}"
13007 # func_dirname_and_basename file append nondir_replacement
13008 # perform func_basename and func_dirname in a single function
13009 # call:
13010 # dirname: Compute the dirname of FILE. If nonempty,
13011 # add APPEND to the result, otherwise set result
13012 # to NONDIR_REPLACEMENT.
13013 # value returned in "$func_dirname_result"
13014 # basename: Compute filename of FILE.
13015 # value retuned in "$func_basename_result"
13016 # Implementation must be kept synchronized with func_dirname
13017 # and func_basename. For efficiency, we do not delegate to
13018 # those functions but instead duplicate the functionality here.
13019 func_dirname_and_basename ()
13021 case ${1} in
13022 */*) func_dirname_result="${1%/*}${2}" ;;
13023 * ) func_dirname_result="${3}" ;;
13024 esac
13025 func_basename_result="${1##*/}"
13028 # func_stripname prefix suffix name
13029 # strip PREFIX and SUFFIX off of NAME.
13030 # PREFIX and SUFFIX must not contain globbing or regex special
13031 # characters, hashes, percent signs, but SUFFIX may contain a leading
13032 # dot (in which case that matches only a dot).
13033 func_stripname ()
13035 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13036 # positional parameters, so assign one to ordinary parameter first.
13037 func_stripname_result=${3}
13038 func_stripname_result=${func_stripname_result#"${1}"}
13039 func_stripname_result=${func_stripname_result%"${2}"}
13042 # func_opt_split
13043 func_opt_split ()
13045 func_opt_split_opt=${1%%=*}
13046 func_opt_split_arg=${1#*=}
13049 # func_lo2o object
13050 func_lo2o ()
13052 case ${1} in
13053 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13054 *) func_lo2o_result=${1} ;;
13055 esac
13058 # func_xform libobj-or-source
13059 func_xform ()
13061 func_xform_result=${1%.*}.lo
13064 # func_arith arithmetic-term...
13065 func_arith ()
13067 func_arith_result=$(( $* ))
13070 # func_len string
13071 # STRING may not start with a hyphen.
13072 func_len ()
13074 func_len_result=${#1}
13077 _LT_EOF
13079 *) # Bourne compatible functions.
13080 cat << \_LT_EOF >> "$cfgfile"
13082 # func_dirname file append nondir_replacement
13083 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13084 # otherwise set result to NONDIR_REPLACEMENT.
13085 func_dirname ()
13087 # Extract subdirectory from the argument.
13088 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13089 if test "X$func_dirname_result" = "X${1}"; then
13090 func_dirname_result="${3}"
13091 else
13092 func_dirname_result="$func_dirname_result${2}"
13096 # func_basename file
13097 func_basename ()
13099 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13103 # func_stripname prefix suffix name
13104 # strip PREFIX and SUFFIX off of NAME.
13105 # PREFIX and SUFFIX must not contain globbing or regex special
13106 # characters, hashes, percent signs, but SUFFIX may contain a leading
13107 # dot (in which case that matches only a dot).
13108 # func_strip_suffix prefix name
13109 func_stripname ()
13111 case ${2} in
13112 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13113 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13114 esac
13117 # sed scripts:
13118 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13119 my_sed_long_arg='1s/^-[^=]*=//'
13121 # func_opt_split
13122 func_opt_split ()
13124 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13125 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13128 # func_lo2o object
13129 func_lo2o ()
13131 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13134 # func_xform libobj-or-source
13135 func_xform ()
13137 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13140 # func_arith arithmetic-term...
13141 func_arith ()
13143 func_arith_result=`expr "$@"`
13146 # func_len string
13147 # STRING may not start with a hyphen.
13148 func_len ()
13150 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13153 _LT_EOF
13154 esac
13156 case $lt_shell_append in
13157 yes)
13158 cat << \_LT_EOF >> "$cfgfile"
13160 # func_append var value
13161 # Append VALUE to the end of shell variable VAR.
13162 func_append ()
13164 eval "$1+=\$2"
13166 _LT_EOF
13169 cat << \_LT_EOF >> "$cfgfile"
13171 # func_append var value
13172 # Append VALUE to the end of shell variable VAR.
13173 func_append ()
13175 eval "$1=\$$1\$2"
13178 _LT_EOF
13180 esac
13183 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13184 || (rm -f "$cfgfile"; exit 1)
13186 mv -f "$cfgfile" "$ofile" ||
13187 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13188 chmod +x "$ofile"
13192 esac
13193 done # for ac_tag
13196 as_fn_exit 0
13197 _ACEOF
13198 ac_clean_files=$ac_clean_files_save
13200 test $ac_write_fail = 0 ||
13201 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13204 # configure is writing to config.log, and then calls config.status.
13205 # config.status does its own redirection, appending to config.log.
13206 # Unfortunately, on DOS this fails, as config.log is still kept open
13207 # by configure, so config.status won't be able to write to it; its
13208 # output is simply discarded. So we exec the FD to /dev/null,
13209 # effectively closing config.log, so it can be properly (re)opened and
13210 # appended to by config.status. When coming back to configure, we
13211 # need to make the FD available again.
13212 if test "$no_create" != yes; then
13213 ac_cs_success=:
13214 ac_config_status_args=
13215 test "$silent" = yes &&
13216 ac_config_status_args="$ac_config_status_args --quiet"
13217 exec 5>/dev/null
13218 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13219 exec 5>>config.log
13220 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13221 # would make configure fail if this is the last instruction.
13222 $ac_cs_success || as_fn_exit $?
13224 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13226 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}