* common.opt (o): Add MissingArgError.
[official-gcc/alias-decl.git] / lto-plugin / configure
blob234ff90a055696665d8102d0fa5d8884191a5c45
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 host_os
624 host_vendor
625 host_cpu
626 host
627 LIBTOOL
628 LIBELFINC
629 LIBELFLIBS
630 am__fastdepCC_FALSE
631 am__fastdepCC_TRUE
632 CCDEPMODE
633 AMDEPBACKSLASH
634 AMDEP_FALSE
635 AMDEP_TRUE
636 am__quote
637 am__include
638 DEPDIR
639 OBJEXT
640 EXEEXT
641 ac_ct_CC
642 CPPFLAGS
643 LDFLAGS
644 CFLAGS
646 MAINT
647 MAINTAINER_MODE_FALSE
648 MAINTAINER_MODE_TRUE
649 am__untar
650 am__tar
651 AMTAR
652 am__leading_dot
653 SET_MAKE
655 mkdir_p
656 MKDIR_P
657 INSTALL_STRIP_PROGRAM
658 STRIP
659 install_sh
660 MAKEINFO
661 AUTOHEADER
662 AUTOMAKE
663 AUTOCONF
664 ACLOCAL
665 VERSION
666 PACKAGE
667 CYGPATH_W
668 am__isrc
669 INSTALL_DATA
670 INSTALL_SCRIPT
671 INSTALL_PROGRAM
672 target_subdir
673 host_subdir
674 build_subdir
675 build_libsubdir
676 build_os
677 build_vendor
678 build_cpu
679 build
680 target_alias
681 host_alias
682 build_alias
683 LIBS
684 ECHO_T
685 ECHO_N
686 ECHO_C
687 DEFS
688 mandir
689 localedir
690 libdir
691 psdir
692 pdfdir
693 dvidir
694 htmldir
695 infodir
696 docdir
697 oldincludedir
698 includedir
699 localstatedir
700 sharedstatedir
701 sysconfdir
702 datadir
703 datarootdir
704 libexecdir
705 sbindir
706 bindir
707 program_transform_name
708 prefix
709 exec_prefix
710 PACKAGE_URL
711 PACKAGE_BUGREPORT
712 PACKAGE_STRING
713 PACKAGE_VERSION
714 PACKAGE_TARNAME
715 PACKAGE_NAME
716 PATH_SEPARATOR
717 SHELL'
718 ac_subst_files=''
719 ac_user_opts='
720 enable_option_checking
721 with_build_libsubdir
722 enable_maintainer_mode
723 enable_dependency_tracking
724 enable_largefile
725 enable_shared
726 enable_static
727 with_pic
728 enable_fast_install
729 with_gnu_ld
730 enable_libtool_lock
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
740 LIBELFLIBS
741 LIBELFINC
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 _ACEOF
1352 if test -n "$ac_init_help"; then
1353 case $ac_init_help in
1354 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1355 esac
1356 cat <<\_ACEOF
1358 Optional Features:
1359 --disable-option-checking ignore unrecognized --enable/--with options
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --enable-maintainer-mode enable make rules and dependencies not useful
1363 (and sometimes confusing) to the casual installer
1364 --disable-dependency-tracking speeds up one-time build
1365 --enable-dependency-tracking do not reject slow dependency extractors
1366 --disable-largefile omit support for large files
1367 --enable-shared[=PKGS] build shared libraries [default=yes]
1368 --enable-static[=PKGS] build static libraries [default=yes]
1369 --enable-fast-install[=PKGS]
1370 optimize for fast installation [default=yes]
1371 --disable-libtool-lock avoid locking (might break parallel builds)
1373 Optional Packages:
1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1376 --with-build-libsubdir=DIR Directory where to find libraries for build system
1377 --with-pic try to use only PIC/non-PIC objects [default=use
1378 both]
1379 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1381 Some influential environment variables:
1382 CC C compiler command
1383 CFLAGS C compiler flags
1384 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1385 nonstandard directory <lib dir>
1386 LIBS libraries to pass to the linker, e.g. -l<library>
1387 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388 you have headers in a nonstandard directory <include dir>
1389 LIBELFLIBS How to link libelf
1390 LIBELFINC How to find libelf include files
1391 CPP C preprocessor
1393 Use these variables to override the choices made by `configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1396 Report bugs to the package provider.
1397 _ACEOF
1398 ac_status=$?
1401 if test "$ac_init_help" = "recursive"; then
1402 # If there are subdirs, report their specific --help.
1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404 test -d "$ac_dir" ||
1405 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1406 continue
1407 ac_builddir=.
1409 case "$ac_dir" in
1410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1413 # A ".." for each directory in $ac_dir_suffix.
1414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1415 case $ac_top_builddir_sub in
1416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418 esac ;;
1419 esac
1420 ac_abs_top_builddir=$ac_pwd
1421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422 # for backward compatibility:
1423 ac_top_builddir=$ac_top_build_prefix
1425 case $srcdir in
1426 .) # We are building in place.
1427 ac_srcdir=.
1428 ac_top_srcdir=$ac_top_builddir_sub
1429 ac_abs_top_srcdir=$ac_pwd ;;
1430 [\\/]* | ?:[\\/]* ) # Absolute name.
1431 ac_srcdir=$srcdir$ac_dir_suffix;
1432 ac_top_srcdir=$srcdir
1433 ac_abs_top_srcdir=$srcdir ;;
1434 *) # Relative name.
1435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436 ac_top_srcdir=$ac_top_build_prefix$srcdir
1437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 esac
1439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1441 cd "$ac_dir" || { ac_status=$?; continue; }
1442 # Check for guested configure.
1443 if test -f "$ac_srcdir/configure.gnu"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446 elif test -f "$ac_srcdir/configure"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure" --help=recursive
1449 else
1450 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 fi || ac_status=$?
1452 cd "$ac_pwd" || { ac_status=$?; break; }
1453 done
1456 test -n "$ac_init_help" && exit $ac_status
1457 if $ac_init_version; then
1458 cat <<\_ACEOF
1459 LTO plugin for ld configure 0.1
1460 generated by GNU Autoconf 2.64
1462 Copyright (C) 2009 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1465 _ACEOF
1466 exit
1469 ## ------------------------ ##
1470 ## Autoconf initialization. ##
1471 ## ------------------------ ##
1473 # ac_fn_c_try_compile LINENO
1474 # --------------------------
1475 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_compile ()
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 rm -f conftest.$ac_objext
1480 if { { ac_try="$ac_compile"
1481 case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_compile") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && {
1496 test -z "$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 } && test -s conftest.$ac_objext; then :
1499 ac_retval=0
1500 else
1501 $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1504 ac_retval=1
1506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1507 return $ac_retval
1509 } # ac_fn_c_try_compile
1511 # ac_fn_c_try_link LINENO
1512 # -----------------------
1513 # Try to link conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_link ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext conftest$ac_exeext
1518 if { { ac_try="$ac_link"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_link") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest$ac_exeext && {
1537 test "$cross_compiling" = yes ||
1538 $as_test_x conftest$ac_exeext
1539 }; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1545 ac_retval=1
1547 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1548 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1549 # interfere with the next link command; also delete a directory that is
1550 # left behind by Apple's compiler. We do this before executing the actions.
1551 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553 return $ac_retval
1555 } # ac_fn_c_try_link
1557 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1558 # -------------------------------------------------------
1559 # Tests whether HEADER exists and can be compiled using the include files in
1560 # INCLUDES, setting the cache variable VAR accordingly.
1561 ac_fn_c_check_header_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 $as_echo_n "(cached) " >&6
1568 else
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1572 #include <$2>
1573 _ACEOF
1574 if ac_fn_c_try_compile "$LINENO"; then :
1575 eval "$3=yes"
1576 else
1577 eval "$3=no"
1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1581 eval ac_res=\$$3
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583 $as_echo "$ac_res" >&6; }
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 } # ac_fn_c_check_header_compile
1588 # ac_fn_c_try_cpp LINENO
1589 # ----------------------
1590 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_cpp ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { { ac_try="$ac_cpp conftest.$ac_ext"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } >/dev/null && {
1610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 }; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1618 ac_retval=1
1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621 return $ac_retval
1623 } # ac_fn_c_try_cpp
1625 # ac_fn_c_try_run LINENO
1626 # ----------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1628 # that executables *can* be run.
1629 ac_fn_c_try_run ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_link"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>&5
1640 ac_status=$?
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1643 { { case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_try") 2>&5
1650 ac_status=$?
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; }; }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: program exited with status $ac_status" >&5
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1659 ac_retval=$ac_status
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 return $ac_retval
1665 } # ac_fn_c_try_run
1667 # ac_fn_c_check_func LINENO FUNC VAR
1668 # ----------------------------------
1669 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1670 ac_fn_c_check_func ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676 $as_echo_n "(cached) " >&6
1677 else
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1680 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1682 #define $2 innocuous_$2
1684 /* System header to define __stub macros and hopefully few prototypes,
1685 which can conflict with char $2 (); below.
1686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1687 <limits.h> exists even on freestanding compilers. */
1689 #ifdef __STDC__
1690 # include <limits.h>
1691 #else
1692 # include <assert.h>
1693 #endif
1695 #undef $2
1697 /* Override any GCC internal prototype to avoid an error.
1698 Use char because int might match the return type of a GCC
1699 builtin and then its argument prototype would still apply. */
1700 #ifdef __cplusplus
1701 extern "C"
1702 #endif
1703 char $2 ();
1704 /* The GNU C library defines this for functions which it implements
1705 to always fail with ENOSYS. Some functions are actually named
1706 something starting with __ and the normal name is an alias. */
1707 #if defined __stub_$2 || defined __stub___$2
1708 choke me
1709 #endif
1712 main ()
1714 return $2 ();
1716 return 0;
1718 _ACEOF
1719 if ac_fn_c_try_link "$LINENO"; then :
1720 eval "$3=yes"
1721 else
1722 eval "$3=no"
1724 rm -f core conftest.err conftest.$ac_objext \
1725 conftest$ac_exeext conftest.$ac_ext
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 } # ac_fn_c_check_func
1734 # ac_fn_c_find_uintX_t LINENO BITS VAR
1735 # ------------------------------------
1736 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1737 # accordingly.
1738 ac_fn_c_find_uintX_t ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1742 $as_echo_n "checking for uint$2_t... " >&6; }
1743 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744 $as_echo_n "(cached) " >&6
1745 else
1746 eval "$3=no"
1747 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1748 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $ac_includes_default
1753 main ()
1755 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1756 test_array [0] = 0
1759 return 0;
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 case $ac_type in #(
1764 uint$2_t) :
1765 eval "$3=yes" ;; #(
1766 *) :
1767 eval "$3=\$ac_type" ;;
1768 esac
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 eval as_val=\$$3
1772 if test "x$as_val" = x""no; then :
1774 else
1775 break
1777 done
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 } # ac_fn_c_find_uintX_t
1785 cat >config.log <<_ACEOF
1786 This file contains any messages produced by compilers while
1787 running configure, to aid debugging if configure makes a mistake.
1789 It was created by LTO plugin for ld $as_me 0.1, which was
1790 generated by GNU Autoconf 2.64. Invocation command line was
1792 $ $0 $@
1794 _ACEOF
1795 exec 5>>config.log
1797 cat <<_ASUNAME
1798 ## --------- ##
1799 ## Platform. ##
1800 ## --------- ##
1802 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1808 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1811 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1812 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1813 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1815 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1816 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1817 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1819 _ASUNAME
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 $as_echo "PATH: $as_dir"
1827 done
1828 IFS=$as_save_IFS
1830 } >&5
1832 cat >&5 <<_ACEOF
1835 ## ----------- ##
1836 ## Core tests. ##
1837 ## ----------- ##
1839 _ACEOF
1842 # Keep a trace of the command line.
1843 # Strip out --no-create and --no-recursion so they do not pile up.
1844 # Strip out --silent because we don't want to record it for future runs.
1845 # Also quote any args containing shell meta-characters.
1846 # Make two passes to allow for proper duplicate-argument suppression.
1847 ac_configure_args=
1848 ac_configure_args0=
1849 ac_configure_args1=
1850 ac_must_keep_next=false
1851 for ac_pass in 1 2
1853 for ac_arg
1855 case $ac_arg in
1856 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858 | -silent | --silent | --silen | --sile | --sil)
1859 continue ;;
1860 *\'*)
1861 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862 esac
1863 case $ac_pass in
1864 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1866 as_fn_append ac_configure_args1 " '$ac_arg'"
1867 if test $ac_must_keep_next = true; then
1868 ac_must_keep_next=false # Got value, back to normal.
1869 else
1870 case $ac_arg in
1871 *=* | --config-cache | -C | -disable-* | --disable-* \
1872 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874 | -with-* | --with-* | -without-* | --without-* | --x)
1875 case "$ac_configure_args0 " in
1876 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1877 esac
1879 -* ) ac_must_keep_next=true ;;
1880 esac
1882 as_fn_append ac_configure_args " '$ac_arg'"
1884 esac
1885 done
1886 done
1887 { ac_configure_args0=; unset ac_configure_args0;}
1888 { ac_configure_args1=; unset ac_configure_args1;}
1890 # When interrupted or exit'd, cleanup temporary files, and complete
1891 # config.log. We remove comments because anyway the quotes in there
1892 # would cause problems or look ugly.
1893 # WARNING: Use '\'' to represent an apostrophe within the trap.
1894 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895 trap 'exit_status=$?
1896 # Save into config.log some information that might help in debugging.
1898 echo
1900 cat <<\_ASBOX
1901 ## ---------------- ##
1902 ## Cache variables. ##
1903 ## ---------------- ##
1904 _ASBOX
1905 echo
1906 # The following way of writing the cache mishandles newlines in values,
1908 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909 eval ac_val=\$$ac_var
1910 case $ac_val in #(
1911 *${as_nl}*)
1912 case $ac_var in #(
1913 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1915 esac
1916 case $ac_var in #(
1917 _ | IFS | as_nl) ;; #(
1918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919 *) { eval $ac_var=; unset $ac_var;} ;;
1920 esac ;;
1921 esac
1922 done
1923 (set) 2>&1 |
1924 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925 *${as_nl}ac_space=\ *)
1926 sed -n \
1927 "s/'\''/'\''\\\\'\'''\''/g;
1928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929 ;; #(
1931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1933 esac |
1934 sort
1936 echo
1938 cat <<\_ASBOX
1939 ## ----------------- ##
1940 ## Output variables. ##
1941 ## ----------------- ##
1942 _ASBOX
1943 echo
1944 for ac_var in $ac_subst_vars
1946 eval ac_val=\$$ac_var
1947 case $ac_val in
1948 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949 esac
1950 $as_echo "$ac_var='\''$ac_val'\''"
1951 done | sort
1952 echo
1954 if test -n "$ac_subst_files"; then
1955 cat <<\_ASBOX
1956 ## ------------------- ##
1957 ## File substitutions. ##
1958 ## ------------------- ##
1959 _ASBOX
1960 echo
1961 for ac_var in $ac_subst_files
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1972 if test -s confdefs.h; then
1973 cat <<\_ASBOX
1974 ## ----------- ##
1975 ## confdefs.h. ##
1976 ## ----------- ##
1977 _ASBOX
1978 echo
1979 cat confdefs.h
1980 echo
1982 test "$ac_signal" != 0 &&
1983 $as_echo "$as_me: caught signal $ac_signal"
1984 $as_echo "$as_me: exit $exit_status"
1985 } >&5
1986 rm -f core *.core core.conftest.* &&
1987 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988 exit $exit_status
1990 for ac_signal in 1 2 13 15; do
1991 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992 done
1993 ac_signal=0
1995 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1996 rm -f -r conftest* confdefs.h
1998 $as_echo "/* confdefs.h */" > confdefs.h
2000 # Predefined preprocessor variables.
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_NAME "$PACKAGE_NAME"
2004 _ACEOF
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008 _ACEOF
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2012 _ACEOF
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_STRING "$PACKAGE_STRING"
2016 _ACEOF
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020 _ACEOF
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_URL "$PACKAGE_URL"
2024 _ACEOF
2027 # Let the site file select an alternate cache file if it wants to.
2028 # Prefer an explicitly selected file to automatically selected ones.
2029 ac_site_file1=NONE
2030 ac_site_file2=NONE
2031 if test -n "$CONFIG_SITE"; then
2032 ac_site_file1=$CONFIG_SITE
2033 elif test "x$prefix" != xNONE; then
2034 ac_site_file1=$prefix/share/config.site
2035 ac_site_file2=$prefix/etc/config.site
2036 else
2037 ac_site_file1=$ac_default_prefix/share/config.site
2038 ac_site_file2=$ac_default_prefix/etc/config.site
2040 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2042 test "x$ac_site_file" = xNONE && continue
2043 if test -r "$ac_site_file"; then
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046 sed 's/^/| /' "$ac_site_file" >&5
2047 . "$ac_site_file"
2049 done
2051 if test -r "$cache_file"; then
2052 # Some versions of bash will fail to source /dev/null (special
2053 # files actually), so we avoid doing that.
2054 if test -f "$cache_file"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056 $as_echo "$as_me: loading cache $cache_file" >&6;}
2057 case $cache_file in
2058 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059 *) . "./$cache_file";;
2060 esac
2062 else
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064 $as_echo "$as_me: creating cache $cache_file" >&6;}
2065 >$cache_file
2068 # Check that the precious variables saved in the cache have kept the same
2069 # value.
2070 ac_cache_corrupted=false
2071 for ac_var in $ac_precious_vars; do
2072 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073 eval ac_new_set=\$ac_env_${ac_var}_set
2074 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075 eval ac_new_val=\$ac_env_${ac_var}_value
2076 case $ac_old_set,$ac_new_set in
2077 set,)
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2080 ac_cache_corrupted=: ;;
2081 ,set)
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2084 ac_cache_corrupted=: ;;
2085 ,);;
2087 if test "x$ac_old_val" != "x$ac_new_val"; then
2088 # differences in whitespace do not lead to failure.
2089 ac_old_val_w=`echo x $ac_old_val`
2090 ac_new_val_w=`echo x $ac_new_val`
2091 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094 ac_cache_corrupted=:
2095 else
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098 eval $ac_var=\$ac_old_val
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2101 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2103 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2104 fi;;
2105 esac
2106 # Pass precious variables to config.status.
2107 if test "$ac_new_set" = set; then
2108 case $ac_new_val in
2109 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2110 *) ac_arg=$ac_var=$ac_new_val ;;
2111 esac
2112 case " $ac_configure_args " in
2113 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2114 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2115 esac
2117 done
2118 if $ac_cache_corrupted; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2123 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2125 ## -------------------- ##
2126 ## Main body of script. ##
2127 ## -------------------- ##
2129 ac_ext=c
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 ac_aux_dir=
2140 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2141 for ac_t in install-sh install.sh shtool; do
2142 if test -f "$ac_dir/$ac_t"; then
2143 ac_aux_dir=$ac_dir
2144 ac_install_sh="$ac_aux_dir/$ac_t -c"
2145 break 2
2147 done
2148 done
2149 if test -z "$ac_aux_dir"; then
2150 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2153 # These three variables are undocumented and unsupported,
2154 # and are intended to be withdrawn in a future Autoconf release.
2155 # They can cause serious problems if a builder's source tree is in a directory
2156 # whose full name contains unusual characters.
2157 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2158 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2159 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2162 # Make sure we can run config.sub.
2163 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2164 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2167 $as_echo_n "checking build system type... " >&6; }
2168 if test "${ac_cv_build+set}" = set; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 ac_build_alias=$build_alias
2172 test "x$ac_build_alias" = x &&
2173 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2174 test "x$ac_build_alias" = x &&
2175 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2176 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2177 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2181 $as_echo "$ac_cv_build" >&6; }
2182 case $ac_cv_build in
2183 *-*-*) ;;
2184 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2185 esac
2186 build=$ac_cv_build
2187 ac_save_IFS=$IFS; IFS='-'
2188 set x $ac_cv_build
2189 shift
2190 build_cpu=$1
2191 build_vendor=$2
2192 shift; shift
2193 # Remember, the first character of IFS is used to create $*,
2194 # except with old shells:
2195 build_os=$*
2196 IFS=$ac_save_IFS
2197 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2200 case ${build_alias} in
2201 "") build_noncanonical=${build} ;;
2202 *) build_noncanonical=${build_alias} ;;
2203 esac
2205 case ${host_alias} in
2206 "") host_noncanonical=${build_noncanonical} ;;
2207 *) host_noncanonical=${host_alias} ;;
2208 esac
2210 case ${target_alias} in
2211 "") target_noncanonical=${host_noncanonical} ;;
2212 *) target_noncanonical=${target_alias} ;;
2213 esac
2216 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2217 # have matching libraries, they should use host libraries: Makefile.tpl
2218 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2219 # However, they still use the build modules, because the corresponding
2220 # host modules (e.g. bison) are only built for the host when bootstrap
2221 # finishes. So:
2222 # - build_subdir is where we find build modules, and never changes.
2223 # - build_libsubdir is where we find build libraries, and can be overridden.
2225 # Prefix 'build-' so this never conflicts with target_subdir.
2226 build_subdir="build-${build_noncanonical}"
2228 # Check whether --with-build-libsubdir was given.
2229 if test "${with_build_libsubdir+set}" = set; then :
2230 withval=$with_build_libsubdir; build_libsubdir="$withval"
2231 else
2232 build_libsubdir="$build_subdir"
2235 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2236 if ( test $srcdir = . && test -d gcc ) \
2237 || test -d $srcdir/../host-${host_noncanonical}; then
2238 host_subdir="host-${host_noncanonical}"
2239 else
2240 host_subdir=.
2242 # No prefix.
2243 target_subdir=${target_noncanonical}
2245 am__api_version='1.11'
2247 # Find a good install program. We prefer a C program (faster),
2248 # so one script is as good as another. But avoid the broken or
2249 # incompatible versions:
2250 # SysV /etc/install, /usr/sbin/install
2251 # SunOS /usr/etc/install
2252 # IRIX /sbin/install
2253 # AIX /bin/install
2254 # AmigaOS /C/install, which installs bootblocks on floppy discs
2255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2258 # OS/2's system install, which has a completely different semantic
2259 # ./install, which can be erroneously created by make from ./install.sh.
2260 # Reject install programs that cannot install multiple files.
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2262 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2263 if test -z "$INSTALL"; then
2264 if test "${ac_cv_path_install+set}" = set; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 # Account for people who put trailing slashes in PATH elements.
2273 case $as_dir/ in #((
2274 ./ | .// | /[cC]/* | \
2275 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2276 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2277 /usr/ucb/* ) ;;
2279 # OSF1 and SCO ODT 3.0 have their own names for install.
2280 # Don't use installbsd from OSF since it installs stuff as root
2281 # by default.
2282 for ac_prog in ginstall scoinst install; do
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2285 if test $ac_prog = install &&
2286 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2287 # AIX install. It has an incompatible calling convention.
2289 elif test $ac_prog = install &&
2290 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # program-specific install script used by HP pwplus--don't use.
2293 else
2294 rm -rf conftest.one conftest.two conftest.dir
2295 echo one > conftest.one
2296 echo two > conftest.two
2297 mkdir conftest.dir
2298 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2299 test -s conftest.one && test -s conftest.two &&
2300 test -s conftest.dir/conftest.one &&
2301 test -s conftest.dir/conftest.two
2302 then
2303 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304 break 3
2308 done
2309 done
2311 esac
2313 done
2314 IFS=$as_save_IFS
2316 rm -rf conftest.one conftest.two conftest.dir
2319 if test "${ac_cv_path_install+set}" = set; then
2320 INSTALL=$ac_cv_path_install
2321 else
2322 # As a last resort, use the slow shell script. Don't cache a
2323 # value for INSTALL within a source directory, because that will
2324 # break other packages using the cache if that directory is
2325 # removed, or if the value is a relative name.
2326 INSTALL=$ac_install_sh
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2330 $as_echo "$INSTALL" >&6; }
2332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2333 # It thinks the first close brace ends the variable substitution.
2334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2341 $as_echo_n "checking whether build environment is sane... " >&6; }
2342 # Just in case
2343 sleep 1
2344 echo timestamp > conftest.file
2345 # Reject unsafe characters in $srcdir or the absolute working directory
2346 # name. Accept space and tab only in the latter.
2347 am_lf='
2349 case `pwd` in
2350 *[\\\"\#\$\&\'\`$am_lf]*)
2351 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2352 esac
2353 case $srcdir in
2354 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2355 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2356 esac
2358 # Do `set' in a subshell so we don't clobber the current shell's
2359 # arguments. Must try -L first in case configure is actually a
2360 # symlink; some systems play weird games with the mod time of symlinks
2361 # (eg FreeBSD returns the mod time of the symlink's containing
2362 # directory).
2363 if (
2364 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2365 if test "$*" = "X"; then
2366 # -L didn't work.
2367 set X `ls -t "$srcdir/configure" conftest.file`
2369 rm -f conftest.file
2370 if test "$*" != "X $srcdir/configure conftest.file" \
2371 && test "$*" != "X conftest.file $srcdir/configure"; then
2373 # If neither matched, then we have a broken ls. This can happen
2374 # if, for instance, CONFIG_SHELL is bash and it inherits a
2375 # broken ls alias from the environment. This has actually
2376 # happened. Such a system could not be considered "sane".
2377 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2378 alias in your environment" "$LINENO" 5
2381 test "$2" = conftest.file
2383 then
2384 # Ok.
2386 else
2387 as_fn_error "newly created file is older than distributed files!
2388 Check your system clock" "$LINENO" 5
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2391 $as_echo "yes" >&6; }
2392 test "$program_prefix" != NONE &&
2393 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2394 # Use a double $ so make ignores it.
2395 test "$program_suffix" != NONE &&
2396 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2397 # Double any \ or $.
2398 # By default was `s,x,x', remove it if useless.
2399 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2400 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2402 # expand $ac_aux_dir to an absolute path
2403 am_aux_dir=`cd $ac_aux_dir && pwd`
2405 if test x"${MISSING+set}" != xset; then
2406 case $am_aux_dir in
2407 *\ * | *\ *)
2408 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2410 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2411 esac
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415 am_missing_run="$MISSING --run "
2416 else
2417 am_missing_run=
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2419 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2422 if test x"${install_sh}" != xset; then
2423 case $am_aux_dir in
2424 *\ * | *\ *)
2425 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2427 install_sh="\${SHELL} $am_aux_dir/install-sh"
2428 esac
2431 # Installed binaries are usually stripped using `strip' when the user
2432 # run `make install-strip'. However `strip' might not be the right
2433 # tool to use in cross-compilation environments, therefore Automake
2434 # will honor the `STRIP' environment variable to overrule this program.
2435 if test "$cross_compiling" != no; then
2436 if test -n "$ac_tool_prefix"; then
2437 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2438 set dummy ${ac_tool_prefix}strip; ac_word=$2
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440 $as_echo_n "checking for $ac_word... " >&6; }
2441 if test "${ac_cv_prog_STRIP+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test -n "$STRIP"; then
2445 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2446 else
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2458 done
2459 done
2460 IFS=$as_save_IFS
2464 STRIP=$ac_cv_prog_STRIP
2465 if test -n "$STRIP"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2467 $as_echo "$STRIP" >&6; }
2468 else
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470 $as_echo "no" >&6; }
2475 if test -z "$ac_cv_prog_STRIP"; then
2476 ac_ct_STRIP=$STRIP
2477 # Extract the first word of "strip", so it can be a program name with args.
2478 set dummy strip; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test -n "$ac_ct_STRIP"; then
2485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_ac_ct_STRIP="strip"
2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2505 if test -n "$ac_ct_STRIP"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2507 $as_echo "$ac_ct_STRIP" >&6; }
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2513 if test "x$ac_ct_STRIP" = x; then
2514 STRIP=":"
2515 else
2516 case $cross_compiling:$ac_tool_warned in
2517 yes:)
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2520 ac_tool_warned=yes ;;
2521 esac
2522 STRIP=$ac_ct_STRIP
2524 else
2525 STRIP="$ac_cv_prog_STRIP"
2529 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2532 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2533 if test -z "$MKDIR_P"; then
2534 if test "${ac_cv_path_mkdir+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_prog in mkdir gmkdir; do
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2545 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2546 'mkdir (GNU coreutils) '* | \
2547 'mkdir (coreutils) '* | \
2548 'mkdir (fileutils) '4.1*)
2549 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2550 break 3;;
2551 esac
2552 done
2553 done
2554 done
2555 IFS=$as_save_IFS
2559 if test "${ac_cv_path_mkdir+set}" = set; then
2560 MKDIR_P="$ac_cv_path_mkdir -p"
2561 else
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for MKDIR_P within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 test -d ./--version && rmdir ./--version
2567 MKDIR_P="$ac_install_sh -d"
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2571 $as_echo "$MKDIR_P" >&6; }
2573 mkdir_p="$MKDIR_P"
2574 case $mkdir_p in
2575 [\\/$]* | ?:[\\/]*) ;;
2576 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2577 esac
2579 for ac_prog in gawk mawk nawk awk
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_AWK+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test -n "$AWK"; then
2589 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_AWK="$ac_prog"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 AWK=$ac_cv_prog_AWK
2609 if test -n "$AWK"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2611 $as_echo "$AWK" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2618 test -n "$AWK" && break
2619 done
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2622 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2623 set x ${MAKE-make}
2624 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2625 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 cat >conftest.make <<\_ACEOF
2629 SHELL = /bin/sh
2630 all:
2631 @echo '@@@%%%=$(MAKE)=@@@%%%'
2632 _ACEOF
2633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2634 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2635 *@@@%%%=?*=@@@%%%*)
2636 eval ac_cv_prog_make_${ac_make}_set=yes;;
2638 eval ac_cv_prog_make_${ac_make}_set=no;;
2639 esac
2640 rm -f conftest.make
2642 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644 $as_echo "yes" >&6; }
2645 SET_MAKE=
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 SET_MAKE="MAKE=${MAKE-make}"
2652 rm -rf .tst 2>/dev/null
2653 mkdir .tst 2>/dev/null
2654 if test -d .tst; then
2655 am__leading_dot=.
2656 else
2657 am__leading_dot=_
2659 rmdir .tst 2>/dev/null
2661 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2662 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2663 # is not polluted with repeated "-I."
2664 am__isrc=' -I$(srcdir)'
2665 # test to see if srcdir already configured
2666 if test -f $srcdir/config.status; then
2667 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2671 # test whether we have cygpath
2672 if test -z "$CYGPATH_W"; then
2673 if (cygpath --version) >/dev/null 2>/dev/null; then
2674 CYGPATH_W='cygpath -w'
2675 else
2676 CYGPATH_W=echo
2681 # Define the identity of the package.
2682 PACKAGE='lto-plugin'
2683 VERSION='0.1'
2686 cat >>confdefs.h <<_ACEOF
2687 #define PACKAGE "$PACKAGE"
2688 _ACEOF
2691 cat >>confdefs.h <<_ACEOF
2692 #define VERSION "$VERSION"
2693 _ACEOF
2695 # Some tools Automake needs.
2697 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2700 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2703 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2706 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2709 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2711 # We need awk for the "check" target. The system "awk" is bad on
2712 # some platforms.
2713 # Always define AMTAR for backward compatibility.
2715 AMTAR=${AMTAR-"${am_missing_run}tar"}
2717 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2725 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2726 # Check whether --enable-maintainer-mode was given.
2727 if test "${enable_maintainer_mode+set}" = set; then :
2728 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2729 else
2730 USE_MAINTAINER_MODE=no
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2734 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2735 if test $USE_MAINTAINER_MODE = yes; then
2736 MAINTAINER_MODE_TRUE=
2737 MAINTAINER_MODE_FALSE='#'
2738 else
2739 MAINTAINER_MODE_TRUE='#'
2740 MAINTAINER_MODE_FALSE=
2743 MAINT=$MAINTAINER_MODE_TRUE
2746 ac_ext=c
2747 ac_cpp='$CPP $CPPFLAGS'
2748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755 $as_echo_n "checking for $ac_word... " >&6; }
2756 if test "${ac_cv_prog_CC+set}" = set; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 if test -n "$CC"; then
2760 ac_cv_prog_CC="$CC" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2773 done
2774 done
2775 IFS=$as_save_IFS
2779 CC=$ac_cv_prog_CC
2780 if test -n "$CC"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782 $as_echo "$CC" >&6; }
2783 else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2790 if test -z "$ac_cv_prog_CC"; then
2791 ac_ct_CC=$CC
2792 # Extract the first word of "gcc", so it can be a program name with args.
2793 set dummy gcc; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$ac_ct_CC"; then
2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_ac_ct_CC="gcc"
2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2813 done
2814 done
2815 IFS=$as_save_IFS
2819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820 if test -n "$ac_ct_CC"; then
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822 $as_echo "$ac_ct_CC" >&6; }
2823 else
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2828 if test "x$ac_ct_CC" = x; then
2829 CC=""
2830 else
2831 case $cross_compiling:$ac_tool_warned in
2832 yes:)
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835 ac_tool_warned=yes ;;
2836 esac
2837 CC=$ac_ct_CC
2839 else
2840 CC="$ac_cv_prog_CC"
2843 if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}cc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="${ac_tool_prefix}cc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2866 done
2867 done
2868 IFS=$as_save_IFS
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2884 if test -z "$CC"; then
2885 # Extract the first word of "cc", so it can be a program name with args.
2886 set dummy cc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 ac_prog_rejected=no
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904 ac_prog_rejected=yes
2905 continue
2907 ac_cv_prog_CC="cc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 break 2
2911 done
2912 done
2913 IFS=$as_save_IFS
2915 if test $ac_prog_rejected = yes; then
2916 # We found a bogon in the path, so make sure we never use it.
2917 set dummy $ac_cv_prog_CC
2918 shift
2919 if test $# != 0; then
2920 # We chose a different compiler from the bogus one.
2921 # However, it has the same basename, so the bogon will be chosen
2922 # first if we set CC to just the basename; use the full file name.
2923 shift
2924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2940 if test -z "$CC"; then
2941 if test -n "$ac_tool_prefix"; then
2942 for ac_prog in cl.exe
2944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_CC+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 CC=$ac_cv_prog_CC
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$CC" && break
2982 done
2984 if test -z "$CC"; then
2985 ac_ct_CC=$CC
2986 for ac_prog in cl.exe
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016 if test -n "$ac_ct_CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018 $as_echo "$ac_ct_CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$ac_ct_CC" && break
3026 done
3028 if test "x$ac_ct_CC" = x; then
3029 CC=""
3030 else
3031 case $cross_compiling:$ac_tool_warned in
3032 yes:)
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037 CC=$ac_ct_CC
3044 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error "no acceptable C compiler found in \$PATH
3047 See \`config.log' for more details." "$LINENO" 5; }
3049 # Provide some information about the compiler.
3050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051 set X $ac_compile
3052 ac_compiler=$2
3053 for ac_option in --version -v -V -qversion; do
3054 { { ac_try="$ac_compiler $ac_option >&5"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3062 ac_status=$?
3063 if test -s conftest.err; then
3064 sed '10a\
3065 ... rest of stderr output deleted ...
3066 10q' conftest.err >conftest.er1
3067 cat conftest.er1 >&5
3068 rm -f conftest.er1 conftest.err
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }
3072 done
3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075 /* end confdefs.h. */
3078 main ()
3082 return 0;
3084 _ACEOF
3085 ac_clean_files_save=$ac_clean_files
3086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3087 # Try to create an executable without -o first, disregard a.out.
3088 # It will help us diagnose broken compilers, and finding out an intuition
3089 # of exeext.
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3091 $as_echo_n "checking for C compiler default output file name... " >&6; }
3092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094 # The possible output files:
3095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097 ac_rmfiles=
3098 for ac_file in $ac_files
3100 case $ac_file in
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103 esac
3104 done
3105 rm -f $ac_rmfiles
3107 if { { ac_try="$ac_link_default"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link_default") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3120 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3121 # so that the user can short-circuit this test for compilers unknown to
3122 # Autoconf.
3123 for ac_file in $ac_files ''
3125 test -f "$ac_file" || continue
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3129 [ab].out )
3130 # We found the default executable, but exeext='' is most
3131 # certainly right.
3132 break;;
3133 *.* )
3134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3135 then :; else
3136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 # We set ac_cv_exeext here because the later test for it is not
3139 # safe: cross compilers may not add the suffix if given an `-o'
3140 # argument, so we may need to know it at that point already.
3141 # Even if this section looks crufty: it has the advantage of
3142 # actually working.
3143 break;;
3145 break;;
3146 esac
3147 done
3148 test "$ac_cv_exeext" = no && ac_cv_exeext=
3150 else
3151 ac_file=''
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3154 $as_echo "$ac_file" >&6; }
3155 if test -z "$ac_file"; then :
3156 $as_echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { as_fn_set_status 77
3162 as_fn_error "C compiler cannot create executables
3163 See \`config.log' for more details." "$LINENO" 5; }; }
3165 ac_exeext=$ac_cv_exeext
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170 $as_echo_n "checking whether the C compiler works... " >&6; }
3171 # If not cross compiling, check that we can run a simple program.
3172 if test "$cross_compiling" != yes; then
3173 if { ac_try='./$ac_file'
3174 { { case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; }; then
3184 cross_compiling=no
3185 else
3186 if test "$cross_compiling" = maybe; then
3187 cross_compiling=yes
3188 else
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error "cannot run C compiled programs.
3192 If you meant to cross compile, use \`--host'.
3193 See \`config.log' for more details." "$LINENO" 5; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198 $as_echo "yes" >&6; }
3200 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3201 ac_clean_files=$ac_clean_files_save
3202 # Check that the compiler produces executables we can run. If not, either
3203 # the compiler is broken, or we cross compile.
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205 $as_echo_n "checking whether we are cross compiling... " >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3207 $as_echo "$cross_compiling" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3210 $as_echo_n "checking for suffix of executables... " >&6; }
3211 if { { ac_try="$ac_link"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_link") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3224 # work properly (i.e., refer to `conftest.exe'), while it won't with
3225 # `rm'.
3226 for ac_file in conftest.exe conftest conftest.*; do
3227 test -f "$ac_file" || continue
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231 break;;
3232 * ) break;;
3233 esac
3234 done
3235 else
3236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 as_fn_error "cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details." "$LINENO" 5; }
3241 rm -f conftest$ac_cv_exeext
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3243 $as_echo "$ac_cv_exeext" >&6; }
3245 rm -f conftest.$ac_ext
3246 EXEEXT=$ac_cv_exeext
3247 ac_exeext=$EXEEXT
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3249 $as_echo_n "checking for suffix of object files... " >&6; }
3250 if test "${ac_cv_objext+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.o conftest.obj
3265 if { { ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_compile") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; then :
3276 for ac_file in conftest.o conftest.obj conftest.*; do
3277 test -f "$ac_file" || continue;
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3280 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3281 break;;
3282 esac
3283 done
3284 else
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error "cannot compute suffix of object files: cannot compile
3291 See \`config.log' for more details." "$LINENO" 5; }
3293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3296 $as_echo "$ac_cv_objext" >&6; }
3297 OBJEXT=$ac_cv_objext
3298 ac_objext=$OBJEXT
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3300 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3301 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3308 main ()
3310 #ifndef __GNUC__
3311 choke me
3312 #endif
3315 return 0;
3317 _ACEOF
3318 if ac_fn_c_try_compile "$LINENO"; then :
3319 ac_compiler_gnu=yes
3320 else
3321 ac_compiler_gnu=no
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3328 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3329 if test $ac_compiler_gnu = yes; then
3330 GCC=yes
3331 else
3332 GCC=
3334 ac_test_CFLAGS=${CFLAGS+set}
3335 ac_save_CFLAGS=$CFLAGS
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3337 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3338 if test "${ac_cv_prog_cc_g+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 ac_save_c_werror_flag=$ac_c_werror_flag
3342 ac_c_werror_flag=yes
3343 ac_cv_prog_cc_g=no
3344 CFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3349 main ()
3353 return 0;
3355 _ACEOF
3356 if ac_fn_c_try_compile "$LINENO"; then :
3357 ac_cv_prog_cc_g=yes
3358 else
3359 CFLAGS=""
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3368 return 0;
3370 _ACEOF
3371 if ac_fn_c_try_compile "$LINENO"; then :
3373 else
3374 ac_c_werror_flag=$ac_save_c_werror_flag
3375 CFLAGS="-g"
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_cv_prog_cc_g=yes
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 ac_c_werror_flag=$ac_save_c_werror_flag
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3398 $as_echo "$ac_cv_prog_cc_g" >&6; }
3399 if test "$ac_test_CFLAGS" = set; then
3400 CFLAGS=$ac_save_CFLAGS
3401 elif test $ac_cv_prog_cc_g = yes; then
3402 if test "$GCC" = yes; then
3403 CFLAGS="-g -O2"
3404 else
3405 CFLAGS="-g"
3407 else
3408 if test "$GCC" = yes; then
3409 CFLAGS="-O2"
3410 else
3411 CFLAGS=
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3415 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3416 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 ac_cv_prog_cc_c89=no
3420 ac_save_CC=$CC
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423 #include <stdarg.h>
3424 #include <stdio.h>
3425 #include <sys/types.h>
3426 #include <sys/stat.h>
3427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3428 struct buf { int x; };
3429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3430 static char *e (p, i)
3431 char **p;
3432 int i;
3434 return p[i];
3436 static char *f (char * (*g) (char **, int), char **p, ...)
3438 char *s;
3439 va_list v;
3440 va_start (v,p);
3441 s = g (p, va_arg (v,int));
3442 va_end (v);
3443 return s;
3446 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3447 function prototypes and stuff, but not '\xHH' hex character constants.
3448 These don't provoke an error unfortunately, instead are silently treated
3449 as 'x'. The following induces an error, until -std is added to get
3450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3451 array size at least. It's necessary to write '\x00'==0 to get something
3452 that's true only with -std. */
3453 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3456 inside strings and character constants. */
3457 #define FOO(x) 'x'
3458 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460 int test (int i, double x);
3461 struct s1 {int (*f) (int a);};
3462 struct s2 {int (*f) (double a);};
3463 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3464 int argc;
3465 char **argv;
3467 main ()
3469 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 return 0;
3473 _ACEOF
3474 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3475 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477 CC="$ac_save_CC $ac_arg"
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_c89=$ac_arg
3481 rm -f core conftest.err conftest.$ac_objext
3482 test "x$ac_cv_prog_cc_c89" != "xno" && break
3483 done
3484 rm -f conftest.$ac_ext
3485 CC=$ac_save_CC
3488 # AC_CACHE_VAL
3489 case "x$ac_cv_prog_cc_c89" in
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3492 $as_echo "none needed" >&6; } ;;
3493 xno)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3495 $as_echo "unsupported" >&6; } ;;
3497 CC="$CC $ac_cv_prog_cc_c89"
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3499 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3500 esac
3501 if test "x$ac_cv_prog_cc_c89" != xno; then :
3505 ac_ext=c
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 DEPDIR="${am__leading_dot}deps"
3512 ac_config_commands="$ac_config_commands depfiles"
3515 am_make=${MAKE-make}
3516 cat > confinc << 'END'
3517 am__doit:
3518 @echo this is the am__doit target
3519 .PHONY: am__doit
3521 # If we don't find an include directive, just comment out the code.
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3523 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3524 am__include="#"
3525 am__quote=
3526 _am_result=none
3527 # First try GNU make style include.
3528 echo "include confinc" > confmf
3529 # Ignore all kinds of additional output from `make'.
3530 case `$am_make -s -f confmf 2> /dev/null` in #(
3531 *the\ am__doit\ target*)
3532 am__include=include
3533 am__quote=
3534 _am_result=GNU
3536 esac
3537 # Now try BSD make style include.
3538 if test "$am__include" = "#"; then
3539 echo '.include "confinc"' > confmf
3540 case `$am_make -s -f confmf 2> /dev/null` in #(
3541 *the\ am__doit\ target*)
3542 am__include=.include
3543 am__quote="\""
3544 _am_result=BSD
3546 esac
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3551 $as_echo "$_am_result" >&6; }
3552 rm -f confinc confmf
3554 # Check whether --enable-dependency-tracking was given.
3555 if test "${enable_dependency_tracking+set}" = set; then :
3556 enableval=$enable_dependency_tracking;
3559 if test "x$enable_dependency_tracking" != xno; then
3560 am_depcomp="$ac_aux_dir/depcomp"
3561 AMDEPBACKSLASH='\'
3563 if test "x$enable_dependency_tracking" != xno; then
3564 AMDEP_TRUE=
3565 AMDEP_FALSE='#'
3566 else
3567 AMDEP_TRUE='#'
3568 AMDEP_FALSE=
3573 depcc="$CC" am_compiler_list=
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3576 $as_echo_n "checking dependency style of $depcc... " >&6; }
3577 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3585 # in D'.
3586 mkdir conftest.dir
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3590 cd conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3596 # directory.
3597 mkdir sub
3599 am_cv_CC_dependencies_compiler_type=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 am__universal=false
3604 case " $depcc " in #(
3605 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3606 esac
3608 for depmode in $am_compiler_list; do
3609 # Setup a source with many dependencies, because some compilers
3610 # like to wrap large dependency lists on column 80 (with \), and
3611 # we should not choose a depcomp mode which is confused by this.
3613 # We need to recreate these files for each test, as the compiler may
3614 # overwrite some of them when testing with obscure command lines.
3615 # This happens at least with the AIX C compiler.
3616 : > sub/conftest.c
3617 for i in 1 2 3 4 5 6; do
3618 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620 # Solaris 8's {/usr,}/bin/sh.
3621 touch sub/conftst$i.h
3622 done
3623 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3625 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626 # mode. It turns out that the SunPro C++ compiler does not properly
3627 # handle `-M -o', and we need to detect this. Also, some Intel
3628 # versions had trouble with output in subdirs
3629 am__obj=sub/conftest.${OBJEXT-o}
3630 am__minus_obj="-o $am__obj"
3631 case $depmode in
3632 gcc)
3633 # This depmode causes a compiler race in universal mode.
3634 test "$am__universal" = false || continue
3636 nosideeffect)
3637 # after this tag, mechanisms are not by side-effect, so they'll
3638 # only be used when explicitly requested
3639 if test "x$enable_dependency_tracking" = xyes; then
3640 continue
3641 else
3642 break
3645 msvisualcpp | msvcmsys)
3646 # This compiler won't grok `-c -o', but also, the minuso test has
3647 # not run yet. These depmodes are late enough in the game, and
3648 # so weak that their functioning should not be impacted.
3649 am__obj=conftest.${OBJEXT-o}
3650 am__minus_obj=
3652 none) break ;;
3653 esac
3654 if depmode=$depmode \
3655 source=sub/conftest.c object=$am__obj \
3656 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3657 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3658 >/dev/null 2>conftest.err &&
3659 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3660 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3661 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3662 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663 # icc doesn't choke on unknown options, it will just issue warnings
3664 # or remarks (even with -Werror). So we grep stderr for any message
3665 # that says an option was ignored or not supported.
3666 # When given -MP, icc 7.0 and 7.1 complain thusly:
3667 # icc: Command line warning: ignoring option '-M'; no argument required
3668 # The diagnosis changed in icc 8.0:
3669 # icc: Command line remark: option '-MP' not supported
3670 if (grep 'ignoring option' conftest.err ||
3671 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672 am_cv_CC_dependencies_compiler_type=$depmode
3673 break
3676 done
3678 cd ..
3679 rm -rf conftest.dir
3680 else
3681 am_cv_CC_dependencies_compiler_type=none
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3686 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3687 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3690 test "x$enable_dependency_tracking" != xno \
3691 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3692 am__fastdepCC_TRUE=
3693 am__fastdepCC_FALSE='#'
3694 else
3695 am__fastdepCC_TRUE='#'
3696 am__fastdepCC_FALSE=
3701 # Check whether --enable-largefile was given.
3702 if test "${enable_largefile+set}" = set; then :
3703 enableval=$enable_largefile;
3706 if test "$enable_largefile" != no; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3709 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3710 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_cv_sys_largefile_CC=no
3714 if test "$GCC" != yes; then
3715 ac_save_CC=$CC
3716 while :; do
3717 # IRIX 6.2 and later do not support large files by default,
3718 # so use the C compiler's -n32 option if that helps.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 #include <sys/types.h>
3722 /* Check that off_t can represent 2**63 - 1 correctly.
3723 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3724 since some C++ compilers masquerading as C compilers
3725 incorrectly reject 9223372036854775807. */
3726 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3727 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3728 && LARGE_OFF_T % 2147483647 == 1)
3729 ? 1 : -1];
3731 main ()
3735 return 0;
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 break
3741 rm -f core conftest.err conftest.$ac_objext
3742 CC="$CC -n32"
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_sys_largefile_CC=' -n32'; break
3746 rm -f core conftest.err conftest.$ac_objext
3747 break
3748 done
3749 CC=$ac_save_CC
3750 rm -f conftest.$ac_ext
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3754 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3755 if test "$ac_cv_sys_largefile_CC" != no; then
3756 CC=$CC$ac_cv_sys_largefile_CC
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3760 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3761 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 while :; do
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767 #include <sys/types.h>
3768 /* Check that off_t can represent 2**63 - 1 correctly.
3769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3770 since some C++ compilers masquerading as C compilers
3771 incorrectly reject 9223372036854775807. */
3772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3774 && LARGE_OFF_T % 2147483647 == 1)
3775 ? 1 : -1];
3777 main ()
3781 return 0;
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_sys_file_offset_bits=no; break
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3790 #define _FILE_OFFSET_BITS 64
3791 #include <sys/types.h>
3792 /* Check that off_t can represent 2**63 - 1 correctly.
3793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3794 since some C++ compilers masquerading as C compilers
3795 incorrectly reject 9223372036854775807. */
3796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3798 && LARGE_OFF_T % 2147483647 == 1)
3799 ? 1 : -1];
3801 main ()
3805 return 0;
3807 _ACEOF
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_sys_file_offset_bits=64; break
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 ac_cv_sys_file_offset_bits=unknown
3813 break
3814 done
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3817 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3818 case $ac_cv_sys_file_offset_bits in #(
3819 no | unknown) ;;
3821 cat >>confdefs.h <<_ACEOF
3822 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3823 _ACEOF
3825 esac
3826 rm -rf conftest*
3827 if test $ac_cv_sys_file_offset_bits = unknown; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3829 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3830 if test "${ac_cv_sys_large_files+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 while :; do
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <sys/types.h>
3837 /* Check that off_t can represent 2**63 - 1 correctly.
3838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3839 since some C++ compilers masquerading as C compilers
3840 incorrectly reject 9223372036854775807. */
3841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3843 && LARGE_OFF_T % 2147483647 == 1)
3844 ? 1 : -1];
3846 main ()
3850 return 0;
3852 _ACEOF
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_sys_large_files=no; break
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #define _LARGE_FILES 1
3860 #include <sys/types.h>
3861 /* Check that off_t can represent 2**63 - 1 correctly.
3862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3863 since some C++ compilers masquerading as C compilers
3864 incorrectly reject 9223372036854775807. */
3865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3867 && LARGE_OFF_T % 2147483647 == 1)
3868 ? 1 : -1];
3870 main ()
3874 return 0;
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878 ac_cv_sys_large_files=1; break
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_cv_sys_large_files=unknown
3882 break
3883 done
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3886 $as_echo "$ac_cv_sys_large_files" >&6; }
3887 case $ac_cv_sys_large_files in #(
3888 no | unknown) ;;
3890 cat >>confdefs.h <<_ACEOF
3891 #define _LARGE_FILES $ac_cv_sys_large_files
3892 _ACEOF
3894 esac
3895 rm -rf conftest*
3901 case `pwd` in
3902 *\ * | *\ *)
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3904 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3905 esac
3909 macro_version='2.2.7a'
3910 macro_revision='1.3134'
3924 ltmain="$ac_aux_dir/ltmain.sh"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3927 $as_echo_n "checking host system type... " >&6; }
3928 if test "${ac_cv_host+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test "x$host_alias" = x; then
3932 ac_cv_host=$ac_cv_build
3933 else
3934 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3935 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3940 $as_echo "$ac_cv_host" >&6; }
3941 case $ac_cv_host in
3942 *-*-*) ;;
3943 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3944 esac
3945 host=$ac_cv_host
3946 ac_save_IFS=$IFS; IFS='-'
3947 set x $ac_cv_host
3948 shift
3949 host_cpu=$1
3950 host_vendor=$2
3951 shift; shift
3952 # Remember, the first character of IFS is used to create $*,
3953 # except with old shells:
3954 host_os=$*
3955 IFS=$ac_save_IFS
3956 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3959 # Backslashify metacharacters that are still active within
3960 # double-quoted strings.
3961 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3963 # Same as above, but do not quote variable references.
3964 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3966 # Sed substitution to delay expansion of an escaped shell variable in a
3967 # double_quote_subst'ed string.
3968 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3970 # Sed substitution to delay expansion of an escaped single quote.
3971 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3973 # Sed substitution to avoid accidental globbing in evaled expressions
3974 no_glob_subst='s/\*/\\\*/g'
3976 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3977 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3978 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3981 $as_echo_n "checking how to print strings... " >&6; }
3982 # Test print first, because it will be a builtin if present.
3983 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3984 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3985 ECHO='print -r --'
3986 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3987 ECHO='printf %s\n'
3988 else
3989 # Use this function as a fallback that always works.
3990 func_fallback_echo ()
3992 eval 'cat <<_LTECHO_EOF
3994 _LTECHO_EOF'
3996 ECHO='func_fallback_echo'
3999 # func_echo_all arg...
4000 # Invoke $ECHO with all args, space-separated.
4001 func_echo_all ()
4003 $ECHO ""
4006 case "$ECHO" in
4007 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4008 $as_echo "printf" >&6; } ;;
4009 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4010 $as_echo "print -r" >&6; } ;;
4011 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4012 $as_echo "cat" >&6; } ;;
4013 esac
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4029 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4030 if test "${ac_cv_path_SED+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4034 for ac_i in 1 2 3 4 5 6 7; do
4035 ac_script="$ac_script$as_nl$ac_script"
4036 done
4037 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4038 { ac_script=; unset ac_script;}
4039 if test -z "$SED"; then
4040 ac_path_SED_found=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_prog in sed gsed; do
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4050 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4051 # Check for GNU ac_path_SED and select it if it is found.
4052 # Check for GNU $ac_path_SED
4053 case `"$ac_path_SED" --version 2>&1` in
4054 *GNU*)
4055 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4057 ac_count=0
4058 $as_echo_n 0123456789 >"conftest.in"
4059 while :
4061 cat "conftest.in" "conftest.in" >"conftest.tmp"
4062 mv "conftest.tmp" "conftest.in"
4063 cp "conftest.in" "conftest.nl"
4064 $as_echo '' >> "conftest.nl"
4065 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067 as_fn_arith $ac_count + 1 && ac_count=$as_val
4068 if test $ac_count -gt ${ac_path_SED_max-0}; then
4069 # Best one so far, save it but keep looking for a better one
4070 ac_cv_path_SED="$ac_path_SED"
4071 ac_path_SED_max=$ac_count
4073 # 10*(2^10) chars as input seems more than enough
4074 test $ac_count -gt 10 && break
4075 done
4076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077 esac
4079 $ac_path_SED_found && break 3
4080 done
4081 done
4082 done
4083 IFS=$as_save_IFS
4084 if test -z "$ac_cv_path_SED"; then
4085 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4087 else
4088 ac_cv_path_SED=$SED
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4093 $as_echo "$ac_cv_path_SED" >&6; }
4094 SED="$ac_cv_path_SED"
4095 rm -f conftest.sed
4097 test -z "$SED" && SED=sed
4098 Xsed="$SED -e 1s/^X//"
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112 if test "${ac_cv_path_GREP+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 if test -z "$GREP"; then
4116 ac_path_GREP_found=false
4117 # Loop through the user's path and test for each of PROGNAME-LIST
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_prog in grep ggrep; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4127 # Check for GNU ac_path_GREP and select it if it is found.
4128 # Check for GNU $ac_path_GREP
4129 case `"$ac_path_GREP" --version 2>&1` in
4130 *GNU*)
4131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4133 ac_count=0
4134 $as_echo_n 0123456789 >"conftest.in"
4135 while :
4137 cat "conftest.in" "conftest.in" >"conftest.tmp"
4138 mv "conftest.tmp" "conftest.in"
4139 cp "conftest.in" "conftest.nl"
4140 $as_echo 'GREP' >> "conftest.nl"
4141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143 as_fn_arith $ac_count + 1 && ac_count=$as_val
4144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145 # Best one so far, save it but keep looking for a better one
4146 ac_cv_path_GREP="$ac_path_GREP"
4147 ac_path_GREP_max=$ac_count
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4151 done
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153 esac
4155 $ac_path_GREP_found && break 3
4156 done
4157 done
4158 done
4159 IFS=$as_save_IFS
4160 if test -z "$ac_cv_path_GREP"; then
4161 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4163 else
4164 ac_cv_path_GREP=$GREP
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169 $as_echo "$ac_cv_path_GREP" >&6; }
4170 GREP="$ac_cv_path_GREP"
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174 $as_echo_n "checking for egrep... " >&6; }
4175 if test "${ac_cv_path_EGREP+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179 then ac_cv_path_EGREP="$GREP -E"
4180 else
4181 if test -z "$EGREP"; then
4182 ac_path_EGREP_found=false
4183 # Loop through the user's path and test for each of PROGNAME-LIST
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_prog in egrep; do
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4193 # Check for GNU ac_path_EGREP and select it if it is found.
4194 # Check for GNU $ac_path_EGREP
4195 case `"$ac_path_EGREP" --version 2>&1` in
4196 *GNU*)
4197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4199 ac_count=0
4200 $as_echo_n 0123456789 >"conftest.in"
4201 while :
4203 cat "conftest.in" "conftest.in" >"conftest.tmp"
4204 mv "conftest.tmp" "conftest.in"
4205 cp "conftest.in" "conftest.nl"
4206 $as_echo 'EGREP' >> "conftest.nl"
4207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209 as_fn_arith $ac_count + 1 && ac_count=$as_val
4210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211 # Best one so far, save it but keep looking for a better one
4212 ac_cv_path_EGREP="$ac_path_EGREP"
4213 ac_path_EGREP_max=$ac_count
4215 # 10*(2^10) chars as input seems more than enough
4216 test $ac_count -gt 10 && break
4217 done
4218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 esac
4221 $ac_path_EGREP_found && break 3
4222 done
4223 done
4224 done
4225 IFS=$as_save_IFS
4226 if test -z "$ac_cv_path_EGREP"; then
4227 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4229 else
4230 ac_cv_path_EGREP=$EGREP
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236 $as_echo "$ac_cv_path_EGREP" >&6; }
4237 EGREP="$ac_cv_path_EGREP"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4241 $as_echo_n "checking for fgrep... " >&6; }
4242 if test "${ac_cv_path_FGREP+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4246 then ac_cv_path_FGREP="$GREP -F"
4247 else
4248 if test -z "$FGREP"; then
4249 ac_path_FGREP_found=false
4250 # Loop through the user's path and test for each of PROGNAME-LIST
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_prog in fgrep; do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4259 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4260 # Check for GNU ac_path_FGREP and select it if it is found.
4261 # Check for GNU $ac_path_FGREP
4262 case `"$ac_path_FGREP" --version 2>&1` in
4263 *GNU*)
4264 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4266 ac_count=0
4267 $as_echo_n 0123456789 >"conftest.in"
4268 while :
4270 cat "conftest.in" "conftest.in" >"conftest.tmp"
4271 mv "conftest.tmp" "conftest.in"
4272 cp "conftest.in" "conftest.nl"
4273 $as_echo 'FGREP' >> "conftest.nl"
4274 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276 as_fn_arith $ac_count + 1 && ac_count=$as_val
4277 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4278 # Best one so far, save it but keep looking for a better one
4279 ac_cv_path_FGREP="$ac_path_FGREP"
4280 ac_path_FGREP_max=$ac_count
4282 # 10*(2^10) chars as input seems more than enough
4283 test $ac_count -gt 10 && break
4284 done
4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286 esac
4288 $ac_path_FGREP_found && break 3
4289 done
4290 done
4291 done
4292 IFS=$as_save_IFS
4293 if test -z "$ac_cv_path_FGREP"; then
4294 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296 else
4297 ac_cv_path_FGREP=$FGREP
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4303 $as_echo "$ac_cv_path_FGREP" >&6; }
4304 FGREP="$ac_cv_path_FGREP"
4307 test -z "$GREP" && GREP=grep
4327 # Check whether --with-gnu-ld was given.
4328 if test "${with_gnu_ld+set}" = set; then :
4329 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4330 else
4331 with_gnu_ld=no
4334 ac_prog=ld
4335 if test "$GCC" = yes; then
4336 # Check if gcc -print-prog-name=ld gives a path.
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4338 $as_echo_n "checking for ld used by $CC... " >&6; }
4339 case $host in
4340 *-*-mingw*)
4341 # gcc leaves a trailing carriage return which upsets mingw
4342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4345 esac
4346 case $ac_prog in
4347 # Accept absolute paths.
4348 [\\/]* | ?:[\\/]*)
4349 re_direlt='/[^/][^/]*/\.\./'
4350 # Canonicalize the pathname of ld
4351 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4352 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4353 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4354 done
4355 test -z "$LD" && LD="$ac_prog"
4358 # If it fails, then pretend we aren't using GCC.
4359 ac_prog=ld
4362 # If it is relative, then search for the first ld in PATH.
4363 with_gnu_ld=unknown
4365 esac
4366 elif test "$with_gnu_ld" = yes; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4368 $as_echo_n "checking for GNU ld... " >&6; }
4369 else
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4371 $as_echo_n "checking for non-GNU ld... " >&6; }
4373 if test "${lt_cv_path_LD+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 if test -z "$LD"; then
4377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378 for ac_dir in $PATH; do
4379 IFS="$lt_save_ifs"
4380 test -z "$ac_dir" && ac_dir=.
4381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4382 lt_cv_path_LD="$ac_dir/$ac_prog"
4383 # Check to see if the program is GNU ld. I'd rather use --version,
4384 # but apparently some variants of GNU ld only accept -v.
4385 # Break only if it was the GNU/non-GNU ld that we prefer.
4386 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4387 *GNU* | *'with BFD'*)
4388 test "$with_gnu_ld" != no && break
4391 test "$with_gnu_ld" != yes && break
4393 esac
4395 done
4396 IFS="$lt_save_ifs"
4397 else
4398 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4402 LD="$lt_cv_path_LD"
4403 if test -n "$LD"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4405 $as_echo "$LD" >&6; }
4406 else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4410 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4412 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4413 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4417 case `$LD -v 2>&1 </dev/null` in
4418 *GNU* | *'with BFD'*)
4419 lt_cv_prog_gnu_ld=yes
4422 lt_cv_prog_gnu_ld=no
4424 esac
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4427 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4428 with_gnu_ld=$lt_cv_prog_gnu_ld
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4439 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4440 if test "${lt_cv_path_NM+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$NM"; then
4444 # Let the user override the test.
4445 lt_cv_path_NM="$NM"
4446 else
4447 lt_nm_to_check="${ac_tool_prefix}nm"
4448 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4449 lt_nm_to_check="$lt_nm_to_check nm"
4451 for lt_tmp_nm in $lt_nm_to_check; do
4452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4454 IFS="$lt_save_ifs"
4455 test -z "$ac_dir" && ac_dir=.
4456 tmp_nm="$ac_dir/$lt_tmp_nm"
4457 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4458 # Check to see if the nm accepts a BSD-compat flag.
4459 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4460 # nm: unknown option "B" ignored
4461 # Tru64's nm complains that /dev/null is an invalid object file
4462 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4463 */dev/null* | *'Invalid file or object type'*)
4464 lt_cv_path_NM="$tmp_nm -B"
4465 break
4468 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4469 */dev/null*)
4470 lt_cv_path_NM="$tmp_nm -p"
4471 break
4474 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4475 continue # so that we can try to find one that supports BSD flags
4477 esac
4479 esac
4481 done
4482 IFS="$lt_save_ifs"
4483 done
4484 : ${lt_cv_path_NM=no}
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4488 $as_echo "$lt_cv_path_NM" >&6; }
4489 if test "$lt_cv_path_NM" != "no"; then
4490 NM="$lt_cv_path_NM"
4491 else
4492 # Didn't find any BSD compatible name lister, look for dumpbin.
4493 if test -n "$DUMPBIN"; then :
4494 # Let the user override the test.
4495 else
4496 if test -n "$ac_tool_prefix"; then
4497 for ac_prog in dumpbin "link -dump"
4499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -n "$DUMPBIN"; then
4507 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4520 done
4521 done
4522 IFS=$as_save_IFS
4526 DUMPBIN=$ac_cv_prog_DUMPBIN
4527 if test -n "$DUMPBIN"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4529 $as_echo "$DUMPBIN" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4536 test -n "$DUMPBIN" && break
4537 done
4539 if test -z "$DUMPBIN"; then
4540 ac_ct_DUMPBIN=$DUMPBIN
4541 for ac_prog in dumpbin "link -dump"
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$ac_ct_DUMPBIN"; then
4551 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4571 if test -n "$ac_ct_DUMPBIN"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4573 $as_echo "$ac_ct_DUMPBIN" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4580 test -n "$ac_ct_DUMPBIN" && break
4581 done
4583 if test "x$ac_ct_DUMPBIN" = x; then
4584 DUMPBIN=":"
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587 yes:)
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590 ac_tool_warned=yes ;;
4591 esac
4592 DUMPBIN=$ac_ct_DUMPBIN
4596 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4597 *COFF*)
4598 DUMPBIN="$DUMPBIN -symbols"
4601 DUMPBIN=:
4603 esac
4606 if test "$DUMPBIN" != ":"; then
4607 NM="$DUMPBIN"
4610 test -z "$NM" && NM=nm
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4618 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4619 if test "${lt_cv_nm_interface+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 lt_cv_nm_interface="BSD nm"
4623 echo "int some_variable = 0;" > conftest.$ac_ext
4624 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4625 (eval "$ac_compile" 2>conftest.err)
4626 cat conftest.err >&5
4627 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4628 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4629 cat conftest.err >&5
4630 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4631 cat conftest.out >&5
4632 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4633 lt_cv_nm_interface="MS dumpbin"
4635 rm -f conftest*
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4638 $as_echo "$lt_cv_nm_interface" >&6; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4641 $as_echo_n "checking whether ln -s works... " >&6; }
4642 LN_S=$as_ln_s
4643 if test "$LN_S" = "ln -s"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645 $as_echo "yes" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4648 $as_echo "no, using $LN_S" >&6; }
4651 # find the maximum length of command line arguments
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4653 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4654 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4658 teststring="ABCD"
4660 case $build_os in
4661 msdosdjgpp*)
4662 # On DJGPP, this test can blow up pretty badly due to problems in libc
4663 # (any single argument exceeding 2000 bytes causes a buffer overrun
4664 # during glob expansion). Even if it were fixed, the result of this
4665 # check would be larger than it should be.
4666 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4669 gnu*)
4670 # Under GNU Hurd, this test is not required because there is
4671 # no limit to the length of command line arguments.
4672 # Libtool will interpret -1 as no limit whatsoever
4673 lt_cv_sys_max_cmd_len=-1;
4676 cygwin* | mingw* | cegcc*)
4677 # On Win9x/ME, this test blows up -- it succeeds, but takes
4678 # about 5 minutes as the teststring grows exponentially.
4679 # Worse, since 9x/ME are not pre-emptively multitasking,
4680 # you end up with a "frozen" computer, even though with patience
4681 # the test eventually succeeds (with a max line length of 256k).
4682 # Instead, let's just punt: use the minimum linelength reported by
4683 # all of the supported platforms: 8192 (on NT/2K/XP).
4684 lt_cv_sys_max_cmd_len=8192;
4687 mint*)
4688 # On MiNT this can take a long time and run out of memory.
4689 lt_cv_sys_max_cmd_len=8192;
4692 amigaos*)
4693 # On AmigaOS with pdksh, this test takes hours, literally.
4694 # So we just punt and use a minimum line length of 8192.
4695 lt_cv_sys_max_cmd_len=8192;
4698 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4699 # This has been around since 386BSD, at least. Likely further.
4700 if test -x /sbin/sysctl; then
4701 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4702 elif test -x /usr/sbin/sysctl; then
4703 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4704 else
4705 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4707 # And add a safety zone
4708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4712 interix*)
4713 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4714 lt_cv_sys_max_cmd_len=196608
4717 osf*)
4718 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4719 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4720 # nice to cause kernel panics so lets avoid the loop below.
4721 # First set a reasonable default.
4722 lt_cv_sys_max_cmd_len=16384
4724 if test -x /sbin/sysconfig; then
4725 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4726 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4727 esac
4730 sco3.2v5*)
4731 lt_cv_sys_max_cmd_len=102400
4733 sysv5* | sco5v6* | sysv4.2uw2*)
4734 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4735 if test -n "$kargmax"; then
4736 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4737 else
4738 lt_cv_sys_max_cmd_len=32768
4742 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4743 if test -n "$lt_cv_sys_max_cmd_len"; then
4744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746 else
4747 # Make teststring a little bigger before we do anything with it.
4748 # a 1K string should be a reasonable start.
4749 for i in 1 2 3 4 5 6 7 8 ; do
4750 teststring=$teststring$teststring
4751 done
4752 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4753 # If test is not a shell built-in, we'll probably end up computing a
4754 # maximum length that is only half of the actual maximum length, but
4755 # we can't tell.
4756 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4757 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4758 test $i != 17 # 1/2 MB should be enough
4760 i=`expr $i + 1`
4761 teststring=$teststring$teststring
4762 done
4763 # Only check the string length outside the loop.
4764 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4765 teststring=
4766 # Add a significant safety factor because C++ compilers can tack on
4767 # massive amounts of additional arguments before passing them to the
4768 # linker. It appears as though 1/2 is a usable value.
4769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4772 esac
4776 if test -n $lt_cv_sys_max_cmd_len ; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4778 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4781 $as_echo "none" >&6; }
4783 max_cmd_len=$lt_cv_sys_max_cmd_len
4790 : ${CP="cp -f"}
4791 : ${MV="mv -f"}
4792 : ${RM="rm -f"}
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4795 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4796 # Try some XSI features
4797 xsi_shell=no
4798 ( _lt_dummy="a/b/c"
4799 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4800 = c,a/b,, \
4801 && eval 'test $(( 1 + 1 )) -eq 2 \
4802 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4803 && xsi_shell=yes
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4805 $as_echo "$xsi_shell" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4809 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4810 lt_shell_append=no
4811 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4812 >/dev/null 2>&1 \
4813 && lt_shell_append=yes
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4815 $as_echo "$lt_shell_append" >&6; }
4818 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4819 lt_unset=unset
4820 else
4821 lt_unset=false
4828 # test EBCDIC or ASCII
4829 case `echo X|tr X '\101'` in
4830 A) # ASCII based system
4831 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4832 lt_SP2NL='tr \040 \012'
4833 lt_NL2SP='tr \015\012 \040\040'
4835 *) # EBCDIC based system
4836 lt_SP2NL='tr \100 \n'
4837 lt_NL2SP='tr \r\n \100\100'
4839 esac
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4850 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4851 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 lt_cv_ld_reload_flag='-r'
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4857 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4858 reload_flag=$lt_cv_ld_reload_flag
4859 case $reload_flag in
4860 "" | " "*) ;;
4861 *) reload_flag=" $reload_flag" ;;
4862 esac
4863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4864 case $host_os in
4865 darwin*)
4866 if test "$GCC" = yes; then
4867 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4868 else
4869 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4872 esac
4882 if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4884 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 if test -n "$OBJDUMP"; then
4891 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4904 done
4905 done
4906 IFS=$as_save_IFS
4910 OBJDUMP=$ac_cv_prog_OBJDUMP
4911 if test -n "$OBJDUMP"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4913 $as_echo "$OBJDUMP" >&6; }
4914 else
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4921 if test -z "$ac_cv_prog_OBJDUMP"; then
4922 ac_ct_OBJDUMP=$OBJDUMP
4923 # Extract the first word of "objdump", so it can be a program name with args.
4924 set dummy objdump; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$ac_ct_OBJDUMP"; then
4931 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4951 if test -n "$ac_ct_OBJDUMP"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4953 $as_echo "$ac_ct_OBJDUMP" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4959 if test "x$ac_ct_OBJDUMP" = x; then
4960 OBJDUMP="false"
4961 else
4962 case $cross_compiling:$ac_tool_warned in
4963 yes:)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966 ac_tool_warned=yes ;;
4967 esac
4968 OBJDUMP=$ac_ct_OBJDUMP
4970 else
4971 OBJDUMP="$ac_cv_prog_OBJDUMP"
4974 test -z "$OBJDUMP" && OBJDUMP=objdump
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4985 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4986 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 lt_cv_file_magic_cmd='$MAGIC_CMD'
4990 lt_cv_file_magic_test_file=
4991 lt_cv_deplibs_check_method='unknown'
4992 # Need to set the preceding variable on all platforms that support
4993 # interlibrary dependencies.
4994 # 'none' -- dependencies not supported.
4995 # `unknown' -- same as none, but documents that we really don't know.
4996 # 'pass_all' -- all dependencies passed with no checks.
4997 # 'test_compile' -- check by making test program.
4998 # 'file_magic [[regex]]' -- check by looking for files in library path
4999 # which responds to the $file_magic_cmd with a given extended regex.
5000 # If you have `file' or equivalent on your system and you're not sure
5001 # whether `pass_all' will *always* work, you probably want this one.
5003 case $host_os in
5004 aix[4-9]*)
5005 lt_cv_deplibs_check_method=pass_all
5008 beos*)
5009 lt_cv_deplibs_check_method=pass_all
5012 bsdi[45]*)
5013 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5014 lt_cv_file_magic_cmd='/usr/bin/file -L'
5015 lt_cv_file_magic_test_file=/shlib/libc.so
5018 cygwin*)
5019 # func_win32_libid is a shell function defined in ltmain.sh
5020 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5021 lt_cv_file_magic_cmd='func_win32_libid'
5024 mingw* | pw32*)
5025 # Base MSYS/MinGW do not provide the 'file' command needed by
5026 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5027 # unless we find 'file', for example because we are cross-compiling.
5028 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5029 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5031 lt_cv_file_magic_cmd='func_win32_libid'
5032 else
5033 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5034 lt_cv_file_magic_cmd='$OBJDUMP -f'
5038 cegcc*)
5039 # use the weaker test based on 'objdump'. See mingw*.
5040 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5041 lt_cv_file_magic_cmd='$OBJDUMP -f'
5044 darwin* | rhapsody*)
5045 lt_cv_deplibs_check_method=pass_all
5048 freebsd* | dragonfly*)
5049 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5050 case $host_cpu in
5051 i*86 )
5052 # Not sure whether the presence of OpenBSD here was a mistake.
5053 # Let's accept both of them until this is cleared up.
5054 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5055 lt_cv_file_magic_cmd=/usr/bin/file
5056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5058 esac
5059 else
5060 lt_cv_deplibs_check_method=pass_all
5064 gnu*)
5065 lt_cv_deplibs_check_method=pass_all
5068 haiku*)
5069 lt_cv_deplibs_check_method=pass_all
5072 hpux10.20* | hpux11*)
5073 lt_cv_file_magic_cmd=/usr/bin/file
5074 case $host_cpu in
5075 ia64*)
5076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5077 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5079 hppa*64*)
5080 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]'
5081 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5084 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5085 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5087 esac
5090 interix[3-9]*)
5091 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5095 irix5* | irix6* | nonstopux*)
5096 case $LD in
5097 *-32|*"-32 ") libmagic=32-bit;;
5098 *-n32|*"-n32 ") libmagic=N32;;
5099 *-64|*"-64 ") libmagic=64-bit;;
5100 *) libmagic=never-match;;
5101 esac
5102 lt_cv_deplibs_check_method=pass_all
5105 # This must be Linux ELF.
5106 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5107 lt_cv_deplibs_check_method=pass_all
5110 netbsd*)
5111 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5113 else
5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5118 newos6*)
5119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5120 lt_cv_file_magic_cmd=/usr/bin/file
5121 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5124 *nto* | *qnx*)
5125 lt_cv_deplibs_check_method=pass_all
5128 openbsd*)
5129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5131 else
5132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5136 osf3* | osf4* | osf5*)
5137 lt_cv_deplibs_check_method=pass_all
5140 rdos*)
5141 lt_cv_deplibs_check_method=pass_all
5144 solaris*)
5145 lt_cv_deplibs_check_method=pass_all
5148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5149 lt_cv_deplibs_check_method=pass_all
5152 sysv4 | sysv4.3*)
5153 case $host_vendor in
5154 motorola)
5155 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]'
5156 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5158 ncr)
5159 lt_cv_deplibs_check_method=pass_all
5161 sequent)
5162 lt_cv_file_magic_cmd='/bin/file'
5163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5165 sni)
5166 lt_cv_file_magic_cmd='/bin/file'
5167 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5168 lt_cv_file_magic_test_file=/lib/libc.so
5170 siemens)
5171 lt_cv_deplibs_check_method=pass_all
5174 lt_cv_deplibs_check_method=pass_all
5176 esac
5179 tpf*)
5180 lt_cv_deplibs_check_method=pass_all
5182 esac
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5186 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5187 file_magic_cmd=$lt_cv_file_magic_cmd
5188 deplibs_check_method=$lt_cv_deplibs_check_method
5189 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}ar; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_AR+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$AR"; then
5211 ac_cv_prog_AR="$AR" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_AR="${ac_tool_prefix}ar"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 AR=$ac_cv_prog_AR
5231 if test -n "$AR"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5233 $as_echo "$AR" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5241 if test -z "$ac_cv_prog_AR"; then
5242 ac_ct_AR=$AR
5243 # Extract the first word of "ar", so it can be a program name with args.
5244 set dummy ar; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$ac_ct_AR"; then
5251 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_ac_ct_AR="ar"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5266 IFS=$as_save_IFS
5270 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5271 if test -n "$ac_ct_AR"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5273 $as_echo "$ac_ct_AR" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5279 if test "x$ac_ct_AR" = x; then
5280 AR="false"
5281 else
5282 case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288 AR=$ac_ct_AR
5290 else
5291 AR="$ac_cv_prog_AR"
5294 test -z "$AR" && AR=ar
5295 test -z "$AR_FLAGS" && AR_FLAGS=cru
5307 if test -n "$ac_tool_prefix"; then
5308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5309 set dummy ${ac_tool_prefix}strip; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_prog_STRIP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$STRIP"; then
5316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5335 STRIP=$ac_cv_prog_STRIP
5336 if test -n "$STRIP"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5338 $as_echo "$STRIP" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5346 if test -z "$ac_cv_prog_STRIP"; then
5347 ac_ct_STRIP=$STRIP
5348 # Extract the first word of "strip", so it can be a program name with args.
5349 set dummy strip; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$ac_ct_STRIP"; then
5356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_ac_ct_STRIP="strip"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5369 done
5370 done
5371 IFS=$as_save_IFS
5375 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5376 if test -n "$ac_ct_STRIP"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5378 $as_echo "$ac_ct_STRIP" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5384 if test "x$ac_ct_STRIP" = x; then
5385 STRIP=":"
5386 else
5387 case $cross_compiling:$ac_tool_warned in
5388 yes:)
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5391 ac_tool_warned=yes ;;
5392 esac
5393 STRIP=$ac_ct_STRIP
5395 else
5396 STRIP="$ac_cv_prog_STRIP"
5399 test -z "$STRIP" && STRIP=:
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$RANLIB"; then
5415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 RANLIB=$ac_cv_prog_RANLIB
5435 if test -n "$RANLIB"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5437 $as_echo "$RANLIB" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5445 if test -z "$ac_cv_prog_RANLIB"; then
5446 ac_ct_RANLIB=$RANLIB
5447 # Extract the first word of "ranlib", so it can be a program name with args.
5448 set dummy ranlib; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_RANLIB"; then
5455 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_ac_ct_RANLIB="ranlib"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5475 if test -n "$ac_ct_RANLIB"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5477 $as_echo "$ac_ct_RANLIB" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5483 if test "x$ac_ct_RANLIB" = x; then
5484 RANLIB=":"
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487 yes:)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned=yes ;;
5491 esac
5492 RANLIB=$ac_ct_RANLIB
5494 else
5495 RANLIB="$ac_cv_prog_RANLIB"
5498 test -z "$RANLIB" && RANLIB=:
5505 # Determine commands to create old-style static archives.
5506 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5507 old_postinstall_cmds='chmod 644 $oldlib'
5508 old_postuninstall_cmds=
5510 if test -n "$RANLIB"; then
5511 case $host_os in
5512 openbsd*)
5513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5518 esac
5519 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5522 case $host_os in
5523 darwin*)
5524 lock_old_archive_extraction=yes ;;
5526 lock_old_archive_extraction=no ;;
5527 esac
5567 # If no C compiler was specified, use CC.
5568 LTCC=${LTCC-"$CC"}
5570 # If no C compiler flags were specified, use CFLAGS.
5571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5573 # Allow CC to be a program name with arguments.
5574 compiler=$CC
5577 # Check for command to grab the raw symbol name followed by C symbol from nm.
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5579 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5580 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5584 # These are sane defaults that work on at least a few old systems.
5585 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5587 # Character class describing NM global symbol codes.
5588 symcode='[BCDEGRST]'
5590 # Regexp to match symbols that can be accessed directly from C.
5591 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5593 # Define system-specific variables.
5594 case $host_os in
5595 aix*)
5596 symcode='[BCDT]'
5598 cygwin* | mingw* | pw32* | cegcc*)
5599 symcode='[ABCDGISTW]'
5601 hpux*)
5602 if test "$host_cpu" = ia64; then
5603 symcode='[ABCDEGRST]'
5606 irix* | nonstopux*)
5607 symcode='[BCDEGRST]'
5609 osf*)
5610 symcode='[BCDEGQRST]'
5612 solaris*)
5613 symcode='[BDRT]'
5615 sco3.2v5*)
5616 symcode='[DT]'
5618 sysv4.2uw2*)
5619 symcode='[DT]'
5621 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5622 symcode='[ABDT]'
5624 sysv4)
5625 symcode='[DFNSTU]'
5627 esac
5629 # If we're using GNU nm, then use its standard symbol codes.
5630 case `$NM -V 2>&1` in
5631 *GNU* | *'with BFD'*)
5632 symcode='[ABCDGIRSTW]' ;;
5633 esac
5635 # Transform an extracted symbol line into a proper C declaration.
5636 # Some systems (esp. on ia64) link data and code symbols differently,
5637 # so use this general approach.
5638 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5640 # Transform an extracted symbol line into symbol name and symbol address
5641 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5642 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'"
5644 # Handle CRLF in mingw tool chain
5645 opt_cr=
5646 case $build_os in
5647 mingw*)
5648 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5650 esac
5652 # Try without a prefix underscore, then with it.
5653 for ac_symprfx in "" "_"; do
5655 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5656 symxfrm="\\1 $ac_symprfx\\2 \\2"
5658 # Write the raw and C identifiers.
5659 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5660 # Fake it for dumpbin and say T for any non-static function
5661 # and D for any global variable.
5662 # Also find C++ and __fastcall symbols from MSVC++,
5663 # which start with @ or ?.
5664 lt_cv_sys_global_symbol_pipe="$AWK '"\
5665 " {last_section=section; section=\$ 3};"\
5666 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5667 " \$ 0!~/External *\|/{next};"\
5668 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5669 " {if(hide[section]) next};"\
5670 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5671 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5672 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5673 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5674 " ' prfx=^$ac_symprfx"
5675 else
5676 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5679 # Check to see that the pipe works correctly.
5680 pipe_works=no
5682 rm -f conftest*
5683 cat > conftest.$ac_ext <<_LT_EOF
5684 #ifdef __cplusplus
5685 extern "C" {
5686 #endif
5687 char nm_test_var;
5688 void nm_test_func(void);
5689 void nm_test_func(void){}
5690 #ifdef __cplusplus
5692 #endif
5693 int main(){nm_test_var='a';nm_test_func();return(0);}
5694 _LT_EOF
5696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5697 (eval $ac_compile) 2>&5
5698 ac_status=$?
5699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700 test $ac_status = 0; }; then
5701 # Now try to grab the symbols.
5702 nlist=conftest.nm
5703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5704 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5705 ac_status=$?
5706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707 test $ac_status = 0; } && test -s "$nlist"; then
5708 # Try sorting and uniquifying the output.
5709 if sort "$nlist" | uniq > "$nlist"T; then
5710 mv -f "$nlist"T "$nlist"
5711 else
5712 rm -f "$nlist"T
5715 # Make sure that we snagged all the symbols we need.
5716 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5717 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5718 cat <<_LT_EOF > conftest.$ac_ext
5719 #ifdef __cplusplus
5720 extern "C" {
5721 #endif
5723 _LT_EOF
5724 # Now generate the symbol file.
5725 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5727 cat <<_LT_EOF >> conftest.$ac_ext
5729 /* The mapping between symbol names and symbols. */
5730 const struct {
5731 const char *name;
5732 void *address;
5734 lt__PROGRAM__LTX_preloaded_symbols[] =
5736 { "@PROGRAM@", (void *) 0 },
5737 _LT_EOF
5738 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5739 cat <<\_LT_EOF >> conftest.$ac_ext
5740 {0, (void *) 0}
5743 /* This works around a problem in FreeBSD linker */
5744 #ifdef FREEBSD_WORKAROUND
5745 static const void *lt_preloaded_setup() {
5746 return lt__PROGRAM__LTX_preloaded_symbols;
5748 #endif
5750 #ifdef __cplusplus
5752 #endif
5753 _LT_EOF
5754 # Now try linking the two files.
5755 mv conftest.$ac_objext conftstm.$ac_objext
5756 lt_save_LIBS="$LIBS"
5757 lt_save_CFLAGS="$CFLAGS"
5758 LIBS="conftstm.$ac_objext"
5759 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5761 (eval $ac_link) 2>&5
5762 ac_status=$?
5763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5765 pipe_works=yes
5767 LIBS="$lt_save_LIBS"
5768 CFLAGS="$lt_save_CFLAGS"
5769 else
5770 echo "cannot find nm_test_func in $nlist" >&5
5772 else
5773 echo "cannot find nm_test_var in $nlist" >&5
5775 else
5776 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5778 else
5779 echo "$progname: failed program was:" >&5
5780 cat conftest.$ac_ext >&5
5782 rm -rf conftest* conftst*
5784 # Do not use the global_symbol_pipe unless it works.
5785 if test "$pipe_works" = yes; then
5786 break
5787 else
5788 lt_cv_sys_global_symbol_pipe=
5790 done
5794 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5795 lt_cv_sys_global_symbol_to_cdecl=
5797 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5799 $as_echo "failed" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5802 $as_echo "ok" >&6; }
5826 # Check whether --enable-libtool-lock was given.
5827 if test "${enable_libtool_lock+set}" = set; then :
5828 enableval=$enable_libtool_lock;
5831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5833 # Some flags need to be propagated to the compiler or linker for good
5834 # libtool support.
5835 case $host in
5836 ia64-*-hpux*)
5837 # Find out which ABI we are using.
5838 echo 'int i;' > conftest.$ac_ext
5839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5840 (eval $ac_compile) 2>&5
5841 ac_status=$?
5842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843 test $ac_status = 0; }; then
5844 case `/usr/bin/file conftest.$ac_objext` in
5845 *ELF-32*)
5846 HPUX_IA64_MODE="32"
5848 *ELF-64*)
5849 HPUX_IA64_MODE="64"
5851 esac
5853 rm -rf conftest*
5855 *-*-irix6*)
5856 # Find out which ABI we are using.
5857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5859 (eval $ac_compile) 2>&5
5860 ac_status=$?
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; }; then
5863 if test "$lt_cv_prog_gnu_ld" = yes; then
5864 case `/usr/bin/file conftest.$ac_objext` in
5865 *32-bit*)
5866 LD="${LD-ld} -melf32bsmip"
5868 *N32*)
5869 LD="${LD-ld} -melf32bmipn32"
5871 *64-bit*)
5872 LD="${LD-ld} -melf64bmip"
5874 esac
5875 else
5876 case `/usr/bin/file conftest.$ac_objext` in
5877 *32-bit*)
5878 LD="${LD-ld} -32"
5880 *N32*)
5881 LD="${LD-ld} -n32"
5883 *64-bit*)
5884 LD="${LD-ld} -64"
5886 esac
5889 rm -rf conftest*
5892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5893 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5894 # Find out which ABI we are using.
5895 echo 'int i;' > conftest.$ac_ext
5896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5897 (eval $ac_compile) 2>&5
5898 ac_status=$?
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; }; then
5901 case `/usr/bin/file conftest.o` in
5902 *32-bit*)
5903 case $host in
5904 x86_64-*kfreebsd*-gnu)
5905 LD="${LD-ld} -m elf_i386_fbsd"
5907 x86_64-*linux*)
5908 LD="${LD-ld} -m elf_i386"
5910 ppc64-*linux*|powerpc64-*linux*)
5911 LD="${LD-ld} -m elf32ppclinux"
5913 s390x-*linux*)
5914 LD="${LD-ld} -m elf_s390"
5916 sparc64-*linux*)
5917 LD="${LD-ld} -m elf32_sparc"
5919 esac
5921 *64-bit*)
5922 case $host in
5923 x86_64-*kfreebsd*-gnu)
5924 LD="${LD-ld} -m elf_x86_64_fbsd"
5926 x86_64-*linux*)
5927 LD="${LD-ld} -m elf_x86_64"
5929 ppc*-*linux*|powerpc*-*linux*)
5930 LD="${LD-ld} -m elf64ppc"
5932 s390*-*linux*|s390*-*tpf*)
5933 LD="${LD-ld} -m elf64_s390"
5935 sparc*-*linux*)
5936 LD="${LD-ld} -m elf64_sparc"
5938 esac
5940 esac
5942 rm -rf conftest*
5945 *-*-sco3.2v5*)
5946 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5947 SAVE_CFLAGS="$CFLAGS"
5948 CFLAGS="$CFLAGS -belf"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5950 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5951 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 ac_ext=c
5955 ac_cpp='$CPP $CPPFLAGS'
5956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 main ()
5968 return 0;
5970 _ACEOF
5971 if ac_fn_c_try_link "$LINENO"; then :
5972 lt_cv_cc_needs_belf=yes
5973 else
5974 lt_cv_cc_needs_belf=no
5976 rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
5978 ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5986 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5987 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5988 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5989 CFLAGS="$SAVE_CFLAGS"
5992 sparc*-*solaris*)
5993 # Find out which ABI we are using.
5994 echo 'int i;' > conftest.$ac_ext
5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996 (eval $ac_compile) 2>&5
5997 ac_status=$?
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; then
6000 case `/usr/bin/file conftest.o` in
6001 *64-bit*)
6002 case $lt_cv_prog_gnu_ld in
6003 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6006 LD="${LD-ld} -64"
6009 esac
6011 esac
6013 rm -rf conftest*
6015 esac
6017 need_locks="$enable_libtool_lock"
6020 case $host_os in
6021 rhapsody* | darwin*)
6022 if test -n "$ac_tool_prefix"; then
6023 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6024 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test -n "$DSYMUTIL"; then
6031 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6044 done
6045 done
6046 IFS=$as_save_IFS
6050 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6051 if test -n "$DSYMUTIL"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6053 $as_echo "$DSYMUTIL" >&6; }
6054 else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6061 if test -z "$ac_cv_prog_DSYMUTIL"; then
6062 ac_ct_DSYMUTIL=$DSYMUTIL
6063 # Extract the first word of "dsymutil", so it can be a program name with args.
6064 set dummy dsymutil; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$ac_ct_DSYMUTIL"; then
6071 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6084 done
6085 done
6086 IFS=$as_save_IFS
6090 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6091 if test -n "$ac_ct_DSYMUTIL"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6093 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6099 if test "x$ac_ct_DSYMUTIL" = x; then
6100 DSYMUTIL=":"
6101 else
6102 case $cross_compiling:$ac_tool_warned in
6103 yes:)
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106 ac_tool_warned=yes ;;
6107 esac
6108 DSYMUTIL=$ac_ct_DSYMUTIL
6110 else
6111 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if test -n "$NMEDIT"; then
6123 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6136 done
6137 done
6138 IFS=$as_save_IFS
6142 NMEDIT=$ac_cv_prog_NMEDIT
6143 if test -n "$NMEDIT"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6145 $as_echo "$NMEDIT" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6153 if test -z "$ac_cv_prog_NMEDIT"; then
6154 ac_ct_NMEDIT=$NMEDIT
6155 # Extract the first word of "nmedit", so it can be a program name with args.
6156 set dummy nmedit; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$ac_ct_NMEDIT"; then
6163 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6176 done
6177 done
6178 IFS=$as_save_IFS
6182 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6183 if test -n "$ac_ct_NMEDIT"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6185 $as_echo "$ac_ct_NMEDIT" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6191 if test "x$ac_ct_NMEDIT" = x; then
6192 NMEDIT=":"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195 yes:)
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198 ac_tool_warned=yes ;;
6199 esac
6200 NMEDIT=$ac_ct_NMEDIT
6202 else
6203 NMEDIT="$ac_cv_prog_NMEDIT"
6206 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if test "${ac_cv_prog_LIPO+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if test -n "$LIPO"; then
6215 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6228 done
6229 done
6230 IFS=$as_save_IFS
6234 LIPO=$ac_cv_prog_LIPO
6235 if test -n "$LIPO"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6237 $as_echo "$LIPO" >&6; }
6238 else
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6245 if test -z "$ac_cv_prog_LIPO"; then
6246 ac_ct_LIPO=$LIPO
6247 # Extract the first word of "lipo", so it can be a program name with args.
6248 set dummy lipo; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$ac_ct_LIPO"; then
6255 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_ac_ct_LIPO="lipo"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6268 done
6269 done
6270 IFS=$as_save_IFS
6274 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6275 if test -n "$ac_ct_LIPO"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6277 $as_echo "$ac_ct_LIPO" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6283 if test "x$ac_ct_LIPO" = x; then
6284 LIPO=":"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287 yes:)
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290 ac_tool_warned=yes ;;
6291 esac
6292 LIPO=$ac_ct_LIPO
6294 else
6295 LIPO="$ac_cv_prog_LIPO"
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}otool; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 if test -n "$OTOOL"; then
6307 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6320 done
6321 done
6322 IFS=$as_save_IFS
6326 OTOOL=$ac_cv_prog_OTOOL
6327 if test -n "$OTOOL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6329 $as_echo "$OTOOL" >&6; }
6330 else
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6337 if test -z "$ac_cv_prog_OTOOL"; then
6338 ac_ct_OTOOL=$OTOOL
6339 # Extract the first word of "otool", so it can be a program name with args.
6340 set dummy otool; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$ac_ct_OTOOL"; then
6347 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_ac_ct_OTOOL="otool"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6367 if test -n "$ac_ct_OTOOL"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6369 $as_echo "$ac_ct_OTOOL" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6375 if test "x$ac_ct_OTOOL" = x; then
6376 OTOOL=":"
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 OTOOL=$ac_ct_OTOOL
6386 else
6387 OTOOL="$ac_cv_prog_OTOOL"
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$OTOOL64"; then
6399 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6412 done
6413 done
6414 IFS=$as_save_IFS
6418 OTOOL64=$ac_cv_prog_OTOOL64
6419 if test -n "$OTOOL64"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6421 $as_echo "$OTOOL64" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6429 if test -z "$ac_cv_prog_OTOOL64"; then
6430 ac_ct_OTOOL64=$OTOOL64
6431 # Extract the first word of "otool64", so it can be a program name with args.
6432 set dummy otool64; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$ac_ct_OTOOL64"; then
6439 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_prog_ac_ct_OTOOL64="otool64"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6454 IFS=$as_save_IFS
6458 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6459 if test -n "$ac_ct_OTOOL64"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6461 $as_echo "$ac_ct_OTOOL64" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6467 if test "x$ac_ct_OTOOL64" = x; then
6468 OTOOL64=":"
6469 else
6470 case $cross_compiling:$ac_tool_warned in
6471 yes:)
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 ac_tool_warned=yes ;;
6475 esac
6476 OTOOL64=$ac_ct_OTOOL64
6478 else
6479 OTOOL64="$ac_cv_prog_OTOOL64"
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6509 $as_echo_n "checking for -single_module linker flag... " >&6; }
6510 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 lt_cv_apple_cc_single_mod=no
6514 if test -z "${LT_MULTI_MODULE}"; then
6515 # By default we will add the -single_module flag. You can override
6516 # by either setting the environment variable LT_MULTI_MODULE
6517 # non-empty at configure time, or by adding -multi_module to the
6518 # link flags.
6519 rm -rf libconftest.dylib*
6520 echo "int foo(void){return 1;}" > conftest.c
6521 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6522 -dynamiclib -Wl,-single_module conftest.c" >&5
6523 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6524 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6525 _lt_result=$?
6526 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6527 lt_cv_apple_cc_single_mod=yes
6528 else
6529 cat conftest.err >&5
6531 rm -rf libconftest.dylib*
6532 rm -f conftest.*
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6536 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6538 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6539 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 lt_cv_ld_exported_symbols_list=no
6543 save_LDFLAGS=$LDFLAGS
6544 echo "_main" > conftest.sym
6545 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6550 main ()
6554 return 0;
6556 _ACEOF
6557 if ac_fn_c_try_link "$LINENO"; then :
6558 lt_cv_ld_exported_symbols_list=yes
6559 else
6560 lt_cv_ld_exported_symbols_list=no
6562 rm -f core conftest.err conftest.$ac_objext \
6563 conftest$ac_exeext conftest.$ac_ext
6564 LDFLAGS="$save_LDFLAGS"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6568 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6570 $as_echo_n "checking for -force_load linker flag... " >&6; }
6571 if test "${lt_cv_ld_force_load+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 lt_cv_ld_force_load=no
6575 cat > conftest.c << _LT_EOF
6576 int forced_loaded() { return 2;}
6577 _LT_EOF
6578 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6579 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6580 echo "$AR cru libconftest.a conftest.o" >&5
6581 $AR cru libconftest.a conftest.o 2>&5
6582 cat > conftest.c << _LT_EOF
6583 int main() { return 0;}
6584 _LT_EOF
6585 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6586 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6587 _lt_result=$?
6588 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6589 lt_cv_ld_force_load=yes
6590 else
6591 cat conftest.err >&5
6593 rm -f conftest.err libconftest.a conftest conftest.c
6594 rm -rf conftest.dSYM
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6598 $as_echo "$lt_cv_ld_force_load" >&6; }
6599 case $host_os in
6600 rhapsody* | darwin1.[012])
6601 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6602 darwin1.*)
6603 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6604 darwin*) # darwin 5.x on
6605 # if running on 10.5 or later, the deployment target defaults
6606 # to the OS version, if on x86, and 10.4, the deployment
6607 # target defaults to 10.4. Don't you love it?
6608 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6609 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6610 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6611 10.[012]*)
6612 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6613 10.*)
6614 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6615 esac
6617 esac
6618 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6619 _lt_dar_single_mod='$single_module'
6621 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6622 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6623 else
6624 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6626 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6627 _lt_dsymutil='~$DSYMUTIL $lib || :'
6628 else
6629 _lt_dsymutil=
6632 esac
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6640 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6641 # On Suns, sometimes $CPP names a directory.
6642 if test -n "$CPP" && test -d "$CPP"; then
6643 CPP=
6645 if test -z "$CPP"; then
6646 if test "${ac_cv_prog_CPP+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6648 else
6649 # Double quotes because CPP needs to be expanded
6650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6652 ac_preproc_ok=false
6653 for ac_c_preproc_warn_flag in '' yes
6655 # Use a header file that comes with gcc, so configuring glibc
6656 # with a fresh cross-compiler works.
6657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6658 # <limits.h> exists even on freestanding compilers.
6659 # On the NeXT, cc -E runs the code through the compiler's parser,
6660 # not just through cpp. "Syntax error" is here to catch this case.
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 #ifdef __STDC__
6664 # include <limits.h>
6665 #else
6666 # include <assert.h>
6667 #endif
6668 Syntax error
6669 _ACEOF
6670 if ac_fn_c_try_cpp "$LINENO"; then :
6672 else
6673 # Broken: fails on valid input.
6674 continue
6676 rm -f conftest.err conftest.$ac_ext
6678 # OK, works on sane cases. Now check whether nonexistent headers
6679 # can be detected and how.
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682 #include <ac_nonexistent.h>
6683 _ACEOF
6684 if ac_fn_c_try_cpp "$LINENO"; then :
6685 # Broken: success on invalid input.
6686 continue
6687 else
6688 # Passes both tests.
6689 ac_preproc_ok=:
6690 break
6692 rm -f conftest.err conftest.$ac_ext
6694 done
6695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6696 rm -f conftest.err conftest.$ac_ext
6697 if $ac_preproc_ok; then :
6698 break
6701 done
6702 ac_cv_prog_CPP=$CPP
6705 CPP=$ac_cv_prog_CPP
6706 else
6707 ac_cv_prog_CPP=$CPP
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6710 $as_echo "$CPP" >&6; }
6711 ac_preproc_ok=false
6712 for ac_c_preproc_warn_flag in '' yes
6714 # Use a header file that comes with gcc, so configuring glibc
6715 # with a fresh cross-compiler works.
6716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6717 # <limits.h> exists even on freestanding compilers.
6718 # On the NeXT, cc -E runs the code through the compiler's parser,
6719 # not just through cpp. "Syntax error" is here to catch this case.
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 #ifdef __STDC__
6723 # include <limits.h>
6724 #else
6725 # include <assert.h>
6726 #endif
6727 Syntax error
6728 _ACEOF
6729 if ac_fn_c_try_cpp "$LINENO"; then :
6731 else
6732 # Broken: fails on valid input.
6733 continue
6735 rm -f conftest.err conftest.$ac_ext
6737 # OK, works on sane cases. Now check whether nonexistent headers
6738 # can be detected and how.
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #include <ac_nonexistent.h>
6742 _ACEOF
6743 if ac_fn_c_try_cpp "$LINENO"; then :
6744 # Broken: success on invalid input.
6745 continue
6746 else
6747 # Passes both tests.
6748 ac_preproc_ok=:
6749 break
6751 rm -f conftest.err conftest.$ac_ext
6753 done
6754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6755 rm -f conftest.err conftest.$ac_ext
6756 if $ac_preproc_ok; then :
6758 else
6759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6761 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6762 See \`config.log' for more details." "$LINENO" 5; }
6765 ac_ext=c
6766 ac_cpp='$CPP $CPPFLAGS'
6767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6773 $as_echo_n "checking for ANSI C header files... " >&6; }
6774 if test "${ac_cv_header_stdc+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <stdlib.h>
6780 #include <stdarg.h>
6781 #include <string.h>
6782 #include <float.h>
6785 main ()
6789 return 0;
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 ac_cv_header_stdc=yes
6794 else
6795 ac_cv_header_stdc=no
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 if test $ac_cv_header_stdc = yes; then
6800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 #include <string.h>
6805 _ACEOF
6806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807 $EGREP "memchr" >/dev/null 2>&1; then :
6809 else
6810 ac_cv_header_stdc=no
6812 rm -f conftest*
6816 if test $ac_cv_header_stdc = yes; then
6817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 #include <stdlib.h>
6822 _ACEOF
6823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6824 $EGREP "free" >/dev/null 2>&1; then :
6826 else
6827 ac_cv_header_stdc=no
6829 rm -f conftest*
6833 if test $ac_cv_header_stdc = yes; then
6834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6835 if test "$cross_compiling" = yes; then :
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 #include <ctype.h>
6841 #include <stdlib.h>
6842 #if ((' ' & 0x0FF) == 0x020)
6843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6845 #else
6846 # define ISLOWER(c) \
6847 (('a' <= (c) && (c) <= 'i') \
6848 || ('j' <= (c) && (c) <= 'r') \
6849 || ('s' <= (c) && (c) <= 'z'))
6850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6851 #endif
6853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6855 main ()
6857 int i;
6858 for (i = 0; i < 256; i++)
6859 if (XOR (islower (i), ISLOWER (i))
6860 || toupper (i) != TOUPPER (i))
6861 return 2;
6862 return 0;
6864 _ACEOF
6865 if ac_fn_c_try_run "$LINENO"; then :
6867 else
6868 ac_cv_header_stdc=no
6870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6871 conftest.$ac_objext conftest.beam conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6877 $as_echo "$ac_cv_header_stdc" >&6; }
6878 if test $ac_cv_header_stdc = yes; then
6880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6884 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6885 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6886 inttypes.h stdint.h unistd.h
6887 do :
6888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6889 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6891 eval as_val=\$$as_ac_Header
6892 if test "x$as_val" = x""yes; then :
6893 cat >>confdefs.h <<_ACEOF
6894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895 _ACEOF
6899 done
6902 for ac_header in dlfcn.h
6903 do :
6904 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6906 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_DLFCN_H 1
6909 _ACEOF
6913 done
6919 # Set options
6923 enable_dlopen=no
6926 enable_win32_dll=no
6929 # Check whether --enable-shared was given.
6930 if test "${enable_shared+set}" = set; then :
6931 enableval=$enable_shared; p=${PACKAGE-default}
6932 case $enableval in
6933 yes) enable_shared=yes ;;
6934 no) enable_shared=no ;;
6936 enable_shared=no
6937 # Look at the argument we got. We use all the common list separators.
6938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939 for pkg in $enableval; do
6940 IFS="$lt_save_ifs"
6941 if test "X$pkg" = "X$p"; then
6942 enable_shared=yes
6944 done
6945 IFS="$lt_save_ifs"
6947 esac
6948 else
6949 enable_shared=yes
6960 # Check whether --enable-static was given.
6961 if test "${enable_static+set}" = set; then :
6962 enableval=$enable_static; p=${PACKAGE-default}
6963 case $enableval in
6964 yes) enable_static=yes ;;
6965 no) enable_static=no ;;
6967 enable_static=no
6968 # Look at the argument we got. We use all the common list separators.
6969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6970 for pkg in $enableval; do
6971 IFS="$lt_save_ifs"
6972 if test "X$pkg" = "X$p"; then
6973 enable_static=yes
6975 done
6976 IFS="$lt_save_ifs"
6978 esac
6979 else
6980 enable_static=yes
6992 # Check whether --with-pic was given.
6993 if test "${with_pic+set}" = set; then :
6994 withval=$with_pic; pic_mode="$withval"
6995 else
6996 pic_mode=default
7000 test -z "$pic_mode" && pic_mode=default
7008 # Check whether --enable-fast-install was given.
7009 if test "${enable_fast_install+set}" = set; then :
7010 enableval=$enable_fast_install; p=${PACKAGE-default}
7011 case $enableval in
7012 yes) enable_fast_install=yes ;;
7013 no) enable_fast_install=no ;;
7015 enable_fast_install=no
7016 # Look at the argument we got. We use all the common list separators.
7017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7018 for pkg in $enableval; do
7019 IFS="$lt_save_ifs"
7020 if test "X$pkg" = "X$p"; then
7021 enable_fast_install=yes
7023 done
7024 IFS="$lt_save_ifs"
7026 esac
7027 else
7028 enable_fast_install=yes
7041 # This can be used to rebuild libtool when needed
7042 LIBTOOL_DEPS="$ltmain"
7044 # Always use our own libtool.
7045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7072 test -z "$LN_S" && LN_S="ln -s"
7087 if test -n "${ZSH_VERSION+set}" ; then
7088 setopt NO_GLOB_SUBST
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7092 $as_echo_n "checking for objdir... " >&6; }
7093 if test "${lt_cv_objdir+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 rm -f .libs 2>/dev/null
7097 mkdir .libs 2>/dev/null
7098 if test -d .libs; then
7099 lt_cv_objdir=.libs
7100 else
7101 # MS-DOS does not allow filenames that begin with a dot.
7102 lt_cv_objdir=_libs
7104 rmdir .libs 2>/dev/null
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7107 $as_echo "$lt_cv_objdir" >&6; }
7108 objdir=$lt_cv_objdir
7114 cat >>confdefs.h <<_ACEOF
7115 #define LT_OBJDIR "$lt_cv_objdir/"
7116 _ACEOF
7121 case $host_os in
7122 aix3*)
7123 # AIX sometimes has problems with the GCC collect2 program. For some
7124 # reason, if we set the COLLECT_NAMES environment variable, the problems
7125 # vanish in a puff of smoke.
7126 if test "X${COLLECT_NAMES+set}" != Xset; then
7127 COLLECT_NAMES=
7128 export COLLECT_NAMES
7131 esac
7133 # Global variables:
7134 ofile=libtool
7135 can_build_shared=yes
7137 # All known linkers require a `.a' archive for static linking (except MSVC,
7138 # which needs '.lib').
7139 libext=a
7141 with_gnu_ld="$lt_cv_prog_gnu_ld"
7143 old_CC="$CC"
7144 old_CFLAGS="$CFLAGS"
7146 # Set sane defaults for various variables
7147 test -z "$CC" && CC=cc
7148 test -z "$LTCC" && LTCC=$CC
7149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7150 test -z "$LD" && LD=ld
7151 test -z "$ac_objext" && ac_objext=o
7153 for cc_temp in $compiler""; do
7154 case $cc_temp in
7155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7157 \-*) ;;
7158 *) break;;
7159 esac
7160 done
7161 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7164 # Only perform the check for file, if the check method requires it
7165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7166 case $deplibs_check_method in
7167 file_magic*)
7168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7170 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 case $MAGIC_CMD in
7175 [\\/*] | ?:[\\/]*)
7176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7179 lt_save_MAGIC_CMD="$MAGIC_CMD"
7180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7182 for ac_dir in $ac_dummy; do
7183 IFS="$lt_save_ifs"
7184 test -z "$ac_dir" && ac_dir=.
7185 if test -f $ac_dir/${ac_tool_prefix}file; then
7186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7187 if test -n "$file_magic_test_file"; then
7188 case $deplibs_check_method in
7189 "file_magic "*)
7190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7193 $EGREP "$file_magic_regex" > /dev/null; then
7195 else
7196 cat <<_LT_EOF 1>&2
7198 *** Warning: the command libtool uses to detect shared libraries,
7199 *** $file_magic_cmd, produces output that libtool cannot recognize.
7200 *** The result is that libtool may fail to recognize shared libraries
7201 *** as such. This will affect the creation of libtool libraries that
7202 *** depend on shared libraries, but programs linked with such libtool
7203 *** libraries will work regardless of this problem. Nevertheless, you
7204 *** may want to report the problem to your system manager and/or to
7205 *** bug-libtool@gnu.org
7207 _LT_EOF
7208 fi ;;
7209 esac
7211 break
7213 done
7214 IFS="$lt_save_ifs"
7215 MAGIC_CMD="$lt_save_MAGIC_CMD"
7217 esac
7220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7221 if test -n "$MAGIC_CMD"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7223 $as_echo "$MAGIC_CMD" >&6; }
7224 else
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7233 if test -z "$lt_cv_path_MAGIC_CMD"; then
7234 if test -n "$ac_tool_prefix"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7236 $as_echo_n "checking for file... " >&6; }
7237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 case $MAGIC_CMD in
7241 [\\/*] | ?:[\\/]*)
7242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7245 lt_save_MAGIC_CMD="$MAGIC_CMD"
7246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7248 for ac_dir in $ac_dummy; do
7249 IFS="$lt_save_ifs"
7250 test -z "$ac_dir" && ac_dir=.
7251 if test -f $ac_dir/file; then
7252 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7253 if test -n "$file_magic_test_file"; then
7254 case $deplibs_check_method in
7255 "file_magic "*)
7256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7259 $EGREP "$file_magic_regex" > /dev/null; then
7261 else
7262 cat <<_LT_EOF 1>&2
7264 *** Warning: the command libtool uses to detect shared libraries,
7265 *** $file_magic_cmd, produces output that libtool cannot recognize.
7266 *** The result is that libtool may fail to recognize shared libraries
7267 *** as such. This will affect the creation of libtool libraries that
7268 *** depend on shared libraries, but programs linked with such libtool
7269 *** libraries will work regardless of this problem. Nevertheless, you
7270 *** may want to report the problem to your system manager and/or to
7271 *** bug-libtool@gnu.org
7273 _LT_EOF
7274 fi ;;
7275 esac
7277 break
7279 done
7280 IFS="$lt_save_ifs"
7281 MAGIC_CMD="$lt_save_MAGIC_CMD"
7283 esac
7286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287 if test -n "$MAGIC_CMD"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7289 $as_echo "$MAGIC_CMD" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7296 else
7297 MAGIC_CMD=:
7303 esac
7305 # Use C for the default configuration in the libtool script
7307 lt_save_CC="$CC"
7308 ac_ext=c
7309 ac_cpp='$CPP $CPPFLAGS'
7310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315 # Source file extension for C test sources.
7316 ac_ext=c
7318 # Object file extension for compiled C test sources.
7319 objext=o
7320 objext=$objext
7322 # Code to be used in simple compile tests
7323 lt_simple_compile_test_code="int some_variable = 0;"
7325 # Code to be used in simple link tests
7326 lt_simple_link_test_code='int main(){return(0);}'
7334 # If no C compiler was specified, use CC.
7335 LTCC=${LTCC-"$CC"}
7337 # If no C compiler flags were specified, use CFLAGS.
7338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7340 # Allow CC to be a program name with arguments.
7341 compiler=$CC
7343 # Save the default compiler, since it gets overwritten when the other
7344 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7345 compiler_DEFAULT=$CC
7347 # save warnings/boilerplate of simple test code
7348 ac_outfile=conftest.$ac_objext
7349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7351 _lt_compiler_boilerplate=`cat conftest.err`
7352 $RM conftest*
7354 ac_outfile=conftest.$ac_objext
7355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7357 _lt_linker_boilerplate=`cat conftest.err`
7358 $RM -r conftest*
7361 ## CAVEAT EMPTOR:
7362 ## There is no encapsulation within the following macros, do not change
7363 ## the running order or otherwise move them around unless you know exactly
7364 ## what you are doing...
7365 if test -n "$compiler"; then
7367 lt_prog_compiler_no_builtin_flag=
7369 if test "$GCC" = yes; then
7370 case $cc_basename in
7371 nvcc*)
7372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7375 esac
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 lt_cv_prog_compiler_rtti_exceptions=no
7383 ac_outfile=conftest.$ac_objext
7384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7385 lt_compiler_flag="-fno-rtti -fno-exceptions"
7386 # Insert the option either (1) after the last *FLAGS variable, or
7387 # (2) before a word containing "conftest.", or (3) at the end.
7388 # Note that $ac_compile itself does not contain backslashes and begins
7389 # with a dollar sign (not a hyphen), so the echo should work correctly.
7390 # The option is referenced via a variable to avoid confusing sed.
7391 lt_compile=`echo "$ac_compile" | $SED \
7392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7394 -e 's:$: $lt_compiler_flag:'`
7395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7396 (eval "$lt_compile" 2>conftest.err)
7397 ac_status=$?
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 if (exit $ac_status) && test -s "$ac_outfile"; then
7401 # The compiler can only warn and ignore the option if not recognized
7402 # So say no if there are warnings other than the usual output.
7403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7406 lt_cv_prog_compiler_rtti_exceptions=yes
7409 $RM conftest*
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7413 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7417 else
7428 lt_prog_compiler_wl=
7429 lt_prog_compiler_pic=
7430 lt_prog_compiler_static=
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7433 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7435 if test "$GCC" = yes; then
7436 lt_prog_compiler_wl='-Wl,'
7437 lt_prog_compiler_static='-static'
7439 case $host_os in
7440 aix*)
7441 # All AIX code is PIC.
7442 if test "$host_cpu" = ia64; then
7443 # AIX 5 now supports IA64 processor
7444 lt_prog_compiler_static='-Bstatic'
7448 amigaos*)
7449 case $host_cpu in
7450 powerpc)
7451 # see comment about AmigaOS4 .so support
7452 lt_prog_compiler_pic='-fPIC'
7454 m68k)
7455 # FIXME: we need at least 68020 code to build shared libraries, but
7456 # adding the `-m68020' flag to GCC prevents building anything better,
7457 # like `-m68040'.
7458 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7460 esac
7463 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7464 # PIC is the default for these OSes.
7467 mingw* | cygwin* | pw32* | os2* | cegcc*)
7468 # This hack is so that the source file can tell whether it is being
7469 # built for inclusion in a dll (and should export symbols for example).
7470 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7471 # (--disable-auto-import) libraries
7472 lt_prog_compiler_pic='-DDLL_EXPORT'
7475 darwin* | rhapsody*)
7476 # PIC is the default on this platform
7477 # Common symbols not allowed in MH_DYLIB files
7478 lt_prog_compiler_pic='-fno-common'
7481 haiku*)
7482 # PIC is the default for Haiku.
7483 # The "-static" flag exists, but is broken.
7484 lt_prog_compiler_static=
7487 hpux*)
7488 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7489 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7490 # sets the default TLS model and affects inlining.
7491 case $host_cpu in
7492 hppa*64*)
7493 # +Z the default
7496 lt_prog_compiler_pic='-fPIC'
7498 esac
7501 interix[3-9]*)
7502 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7503 # Instead, we relocate shared libraries at runtime.
7506 msdosdjgpp*)
7507 # Just because we use GCC doesn't mean we suddenly get shared libraries
7508 # on systems that don't support them.
7509 lt_prog_compiler_can_build_shared=no
7510 enable_shared=no
7513 *nto* | *qnx*)
7514 # QNX uses GNU C++, but need to define -shared option too, otherwise
7515 # it will coredump.
7516 lt_prog_compiler_pic='-fPIC -shared'
7519 sysv4*MP*)
7520 if test -d /usr/nec; then
7521 lt_prog_compiler_pic=-Kconform_pic
7526 lt_prog_compiler_pic='-fPIC'
7528 esac
7530 case $cc_basename in
7531 nvcc*) # Cuda Compiler Driver 2.2
7532 lt_prog_compiler_wl='-Xlinker '
7533 lt_prog_compiler_pic='-Xcompiler -fPIC'
7535 esac
7536 else
7537 # PORTME Check for flag to pass linker flags through the system compiler.
7538 case $host_os in
7539 aix*)
7540 lt_prog_compiler_wl='-Wl,'
7541 if test "$host_cpu" = ia64; then
7542 # AIX 5 now supports IA64 processor
7543 lt_prog_compiler_static='-Bstatic'
7544 else
7545 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7549 mingw* | cygwin* | pw32* | os2* | cegcc*)
7550 # This hack is so that the source file can tell whether it is being
7551 # built for inclusion in a dll (and should export symbols for example).
7552 lt_prog_compiler_pic='-DDLL_EXPORT'
7555 hpux9* | hpux10* | hpux11*)
7556 lt_prog_compiler_wl='-Wl,'
7557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7558 # not for PA HP-UX.
7559 case $host_cpu in
7560 hppa*64*|ia64*)
7561 # +Z the default
7564 lt_prog_compiler_pic='+Z'
7566 esac
7567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7568 lt_prog_compiler_static='${wl}-a ${wl}archive'
7571 irix5* | irix6* | nonstopux*)
7572 lt_prog_compiler_wl='-Wl,'
7573 # PIC (with -KPIC) is the default.
7574 lt_prog_compiler_static='-non_shared'
7577 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7578 case $cc_basename in
7579 # old Intel for x86_64 which still supported -KPIC.
7580 ecc*)
7581 lt_prog_compiler_wl='-Wl,'
7582 lt_prog_compiler_pic='-KPIC'
7583 lt_prog_compiler_static='-static'
7585 # icc used to be incompatible with GCC.
7586 # ICC 10 doesn't accept -KPIC any more.
7587 icc* | ifort*)
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_pic='-fPIC'
7590 lt_prog_compiler_static='-static'
7592 # Lahey Fortran 8.1.
7593 lf95*)
7594 lt_prog_compiler_wl='-Wl,'
7595 lt_prog_compiler_pic='--shared'
7596 lt_prog_compiler_static='--static'
7598 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7599 # Portland Group compilers (*not* the Pentium gcc compiler,
7600 # which looks to be a dead project)
7601 lt_prog_compiler_wl='-Wl,'
7602 lt_prog_compiler_pic='-fpic'
7603 lt_prog_compiler_static='-Bstatic'
7605 ccc*)
7606 lt_prog_compiler_wl='-Wl,'
7607 # All Alpha code is PIC.
7608 lt_prog_compiler_static='-non_shared'
7610 xl* | bgxl* | bgf* | mpixl*)
7611 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7612 lt_prog_compiler_wl='-Wl,'
7613 lt_prog_compiler_pic='-qpic'
7614 lt_prog_compiler_static='-qstaticlink'
7617 case `$CC -V 2>&1 | sed 5q` in
7618 *Sun\ F* | *Sun*Fortran*)
7619 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7620 lt_prog_compiler_pic='-KPIC'
7621 lt_prog_compiler_static='-Bstatic'
7622 lt_prog_compiler_wl=''
7624 *Sun\ C*)
7625 # Sun C 5.9
7626 lt_prog_compiler_pic='-KPIC'
7627 lt_prog_compiler_static='-Bstatic'
7628 lt_prog_compiler_wl='-Wl,'
7630 esac
7632 esac
7635 newsos6)
7636 lt_prog_compiler_pic='-KPIC'
7637 lt_prog_compiler_static='-Bstatic'
7640 *nto* | *qnx*)
7641 # QNX uses GNU C++, but need to define -shared option too, otherwise
7642 # it will coredump.
7643 lt_prog_compiler_pic='-fPIC -shared'
7646 osf3* | osf4* | osf5*)
7647 lt_prog_compiler_wl='-Wl,'
7648 # All OSF/1 code is PIC.
7649 lt_prog_compiler_static='-non_shared'
7652 rdos*)
7653 lt_prog_compiler_static='-non_shared'
7656 solaris*)
7657 lt_prog_compiler_pic='-KPIC'
7658 lt_prog_compiler_static='-Bstatic'
7659 case $cc_basename in
7660 f77* | f90* | f95*)
7661 lt_prog_compiler_wl='-Qoption ld ';;
7663 lt_prog_compiler_wl='-Wl,';;
7664 esac
7667 sunos4*)
7668 lt_prog_compiler_wl='-Qoption ld '
7669 lt_prog_compiler_pic='-PIC'
7670 lt_prog_compiler_static='-Bstatic'
7673 sysv4 | sysv4.2uw2* | sysv4.3*)
7674 lt_prog_compiler_wl='-Wl,'
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7679 sysv4*MP*)
7680 if test -d /usr/nec ;then
7681 lt_prog_compiler_pic='-Kconform_pic'
7682 lt_prog_compiler_static='-Bstatic'
7686 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7687 lt_prog_compiler_wl='-Wl,'
7688 lt_prog_compiler_pic='-KPIC'
7689 lt_prog_compiler_static='-Bstatic'
7692 unicos*)
7693 lt_prog_compiler_wl='-Wl,'
7694 lt_prog_compiler_can_build_shared=no
7697 uts4*)
7698 lt_prog_compiler_pic='-pic'
7699 lt_prog_compiler_static='-Bstatic'
7703 lt_prog_compiler_can_build_shared=no
7705 esac
7708 case $host_os in
7709 # For platforms which do not support PIC, -DPIC is meaningless:
7710 *djgpp*)
7711 lt_prog_compiler_pic=
7714 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7716 esac
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7718 $as_echo "$lt_prog_compiler_pic" >&6; }
7726 # Check to make sure the PIC flag actually works.
7728 if test -n "$lt_prog_compiler_pic"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7730 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7731 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 lt_cv_prog_compiler_pic_works=no
7735 ac_outfile=conftest.$ac_objext
7736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7737 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7738 # Insert the option either (1) after the last *FLAGS variable, or
7739 # (2) before a word containing "conftest.", or (3) at the end.
7740 # Note that $ac_compile itself does not contain backslashes and begins
7741 # with a dollar sign (not a hyphen), so the echo should work correctly.
7742 # The option is referenced via a variable to avoid confusing sed.
7743 lt_compile=`echo "$ac_compile" | $SED \
7744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7746 -e 's:$: $lt_compiler_flag:'`
7747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7748 (eval "$lt_compile" 2>conftest.err)
7749 ac_status=$?
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 if (exit $ac_status) && test -s "$ac_outfile"; then
7753 # The compiler can only warn and ignore the option if not recognized
7754 # So say no if there are warnings other than the usual output.
7755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7757 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7758 lt_cv_prog_compiler_pic_works=yes
7761 $RM conftest*
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7765 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7767 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7768 case $lt_prog_compiler_pic in
7769 "" | " "*) ;;
7770 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7771 esac
7772 else
7773 lt_prog_compiler_pic=
7774 lt_prog_compiler_can_build_shared=no
7785 # Check to make sure the static flag actually works.
7787 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7789 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7790 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 lt_cv_prog_compiler_static_works=no
7794 save_LDFLAGS="$LDFLAGS"
7795 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7798 # The linker can only warn and ignore the option if not recognized
7799 # So say no if there are warnings
7800 if test -s conftest.err; then
7801 # Append any errors to the config.log.
7802 cat conftest.err 1>&5
7803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7805 if diff conftest.exp conftest.er2 >/dev/null; then
7806 lt_cv_prog_compiler_static_works=yes
7808 else
7809 lt_cv_prog_compiler_static_works=yes
7812 $RM -r conftest*
7813 LDFLAGS="$save_LDFLAGS"
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7817 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7819 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7821 else
7822 lt_prog_compiler_static=
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7832 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7833 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 lt_cv_prog_compiler_c_o=no
7837 $RM -r conftest 2>/dev/null
7838 mkdir conftest
7839 cd conftest
7840 mkdir out
7841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7843 lt_compiler_flag="-o out/conftest2.$ac_objext"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 lt_compile=`echo "$ac_compile" | $SED \
7849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851 -e 's:$: $lt_compiler_flag:'`
7852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7853 (eval "$lt_compile" 2>out/conftest.err)
7854 ac_status=$?
7855 cat out/conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7858 then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings
7861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_c_o=yes
7867 chmod u+w . 2>&5
7868 $RM conftest*
7869 # SGI C++ compiler will create directory out/ii_files/ for
7870 # template instantiation
7871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7872 $RM out/* && rmdir out
7873 cd ..
7874 $RM -r conftest
7875 $RM conftest*
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7879 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7887 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7888 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 lt_cv_prog_compiler_c_o=no
7892 $RM -r conftest 2>/dev/null
7893 mkdir conftest
7894 cd conftest
7895 mkdir out
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7898 lt_compiler_flag="-o out/conftest2.$ac_objext"
7899 # Insert the option either (1) after the last *FLAGS variable, or
7900 # (2) before a word containing "conftest.", or (3) at the end.
7901 # Note that $ac_compile itself does not contain backslashes and begins
7902 # with a dollar sign (not a hyphen), so the echo should work correctly.
7903 lt_compile=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
7907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7908 (eval "$lt_compile" 2>out/conftest.err)
7909 ac_status=$?
7910 cat out/conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7913 then
7914 # The compiler can only warn and ignore the option if not recognized
7915 # So say no if there are warnings
7916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7919 lt_cv_prog_compiler_c_o=yes
7922 chmod u+w . 2>&5
7923 $RM conftest*
7924 # SGI C++ compiler will create directory out/ii_files/ for
7925 # template instantiation
7926 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7927 $RM out/* && rmdir out
7928 cd ..
7929 $RM -r conftest
7930 $RM conftest*
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7934 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7939 hard_links="nottested"
7940 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7941 # do not overwrite the value of need_locks provided by the user
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7943 $as_echo_n "checking if we can lock with hard links... " >&6; }
7944 hard_links=yes
7945 $RM conftest*
7946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7947 touch conftest.a
7948 ln conftest.a conftest.b 2>&5 || hard_links=no
7949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7951 $as_echo "$hard_links" >&6; }
7952 if test "$hard_links" = no; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7954 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7955 need_locks=warn
7957 else
7958 need_locks=no
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7967 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7969 runpath_var=
7970 allow_undefined_flag=
7971 always_export_symbols=no
7972 archive_cmds=
7973 archive_expsym_cmds=
7974 compiler_needs_object=no
7975 enable_shared_with_static_runtimes=no
7976 export_dynamic_flag_spec=
7977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7978 hardcode_automatic=no
7979 hardcode_direct=no
7980 hardcode_direct_absolute=no
7981 hardcode_libdir_flag_spec=
7982 hardcode_libdir_flag_spec_ld=
7983 hardcode_libdir_separator=
7984 hardcode_minus_L=no
7985 hardcode_shlibpath_var=unsupported
7986 inherit_rpath=no
7987 link_all_deplibs=unknown
7988 module_cmds=
7989 module_expsym_cmds=
7990 old_archive_from_new_cmds=
7991 old_archive_from_expsyms_cmds=
7992 thread_safe_flag_spec=
7993 whole_archive_flag_spec=
7994 # include_expsyms should be a list of space-separated symbols to be *always*
7995 # included in the symbol list
7996 include_expsyms=
7997 # exclude_expsyms can be an extended regexp of symbols to exclude
7998 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7999 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8000 # as well as any symbol that contains `d'.
8001 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8002 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8003 # platforms (ab)use it in PIC code, but their linkers get confused if
8004 # the symbol is explicitly referenced. Since portable code cannot
8005 # rely on this symbol name, it's probably fine to never include it in
8006 # preloaded symbol tables.
8007 # Exclude shared library initialization/finalization symbols.
8008 extract_expsyms_cmds=
8010 case $host_os in
8011 cygwin* | mingw* | pw32* | cegcc*)
8012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8013 # When not using gcc, we currently assume that we are using
8014 # Microsoft Visual C++.
8015 if test "$GCC" != yes; then
8016 with_gnu_ld=no
8019 interix*)
8020 # we just hope/assume this is gcc and not c89 (= MSVC++)
8021 with_gnu_ld=yes
8023 openbsd*)
8024 with_gnu_ld=no
8026 esac
8028 ld_shlibs=yes
8030 # On some targets, GNU ld is compatible enough with the native linker
8031 # that we're better off using the native interface for both.
8032 lt_use_gnu_ld_interface=no
8033 if test "$with_gnu_ld" = yes; then
8034 case $host_os in
8035 aix*)
8036 # The AIX port of GNU ld has always aspired to compatibility
8037 # with the native linker. However, as the warning in the GNU ld
8038 # block says, versions before 2.19.5* couldn't really create working
8039 # shared libraries, regardless of the interface used.
8040 case `$LD -v 2>&1` in
8041 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8042 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8043 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8045 lt_use_gnu_ld_interface=yes
8047 esac
8050 lt_use_gnu_ld_interface=yes
8052 esac
8055 if test "$lt_use_gnu_ld_interface" = yes; then
8056 # If archive_cmds runs LD, not CC, wlarc should be empty
8057 wlarc='${wl}'
8059 # Set some defaults for GNU ld with shared library support. These
8060 # are reset later if shared libraries are not supported. Putting them
8061 # here allows them to be overridden if necessary.
8062 runpath_var=LD_RUN_PATH
8063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8064 export_dynamic_flag_spec='${wl}--export-dynamic'
8065 # ancient GNU ld didn't support --whole-archive et. al.
8066 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8067 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8068 else
8069 whole_archive_flag_spec=
8071 supports_anon_versioning=no
8072 case `$LD -v 2>&1` in
8073 *GNU\ gold*) supports_anon_versioning=yes ;;
8074 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8075 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8076 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8077 *\ 2.11.*) ;; # other 2.11 versions
8078 *) supports_anon_versioning=yes ;;
8079 esac
8081 # See if GNU ld supports shared libraries.
8082 case $host_os in
8083 aix[3-9]*)
8084 # On AIX/PPC, the GNU linker is very broken
8085 if test "$host_cpu" != ia64; then
8086 ld_shlibs=no
8087 cat <<_LT_EOF 1>&2
8089 *** Warning: the GNU linker, at least up to release 2.19, is reported
8090 *** to be unable to reliably create shared libraries on AIX.
8091 *** Therefore, libtool is disabling shared libraries support. If you
8092 *** really care for shared libraries, you may want to install binutils
8093 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8094 *** You will then need to restart the configuration process.
8096 _LT_EOF
8100 amigaos*)
8101 case $host_cpu in
8102 powerpc)
8103 # see comment about AmigaOS4 .so support
8104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105 archive_expsym_cmds=''
8107 m68k)
8108 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)'
8109 hardcode_libdir_flag_spec='-L$libdir'
8110 hardcode_minus_L=yes
8112 esac
8115 beos*)
8116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8117 allow_undefined_flag=unsupported
8118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8119 # support --undefined. This deserves some investigation. FIXME
8120 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121 else
8122 ld_shlibs=no
8126 cygwin* | mingw* | pw32* | cegcc*)
8127 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8128 # as there is no search path for DLLs.
8129 hardcode_libdir_flag_spec='-L$libdir'
8130 export_dynamic_flag_spec='${wl}--export-all-symbols'
8131 allow_undefined_flag=unsupported
8132 always_export_symbols=no
8133 enable_shared_with_static_runtimes=yes
8134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8136 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8138 # If the export-symbols file already is a .def file (1st line
8139 # is EXPORTS), use it as is; otherwise, prepend...
8140 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8141 cp $export_symbols $output_objdir/$soname.def;
8142 else
8143 echo EXPORTS > $output_objdir/$soname.def;
8144 cat $export_symbols >> $output_objdir/$soname.def;
8146 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8147 else
8148 ld_shlibs=no
8152 haiku*)
8153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154 link_all_deplibs=yes
8157 interix[3-9]*)
8158 hardcode_direct=no
8159 hardcode_shlibpath_var=no
8160 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8161 export_dynamic_flag_spec='${wl}-E'
8162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8163 # Instead, shared libraries are loaded at an image base (0x10000000 by
8164 # default) and relocated if they conflict, which is a slow very memory
8165 # consuming and fragmenting process. To avoid this, we pick a random,
8166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8169 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'
8172 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8173 tmp_diet=no
8174 if test "$host_os" = linux-dietlibc; then
8175 case $cc_basename in
8176 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8177 esac
8179 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8180 && test "$tmp_diet" = no
8181 then
8182 tmp_addflag=
8183 tmp_sharedflag='-shared'
8184 case $cc_basename,$host_cpu in
8185 pgcc*) # Portland Group C compiler
8186 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'
8187 tmp_addflag=' $pic_flag'
8189 pgf77* | pgf90* | pgf95* | pgfortran*)
8190 # Portland Group f77 and f90 compilers
8191 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'
8192 tmp_addflag=' $pic_flag -Mnomain' ;;
8193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8194 tmp_addflag=' -i_dynamic' ;;
8195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8196 tmp_addflag=' -i_dynamic -nofor_main' ;;
8197 ifc* | ifort*) # Intel Fortran compiler
8198 tmp_addflag=' -nofor_main' ;;
8199 lf95*) # Lahey Fortran 8.1
8200 whole_archive_flag_spec=
8201 tmp_sharedflag='--shared' ;;
8202 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8203 tmp_sharedflag='-qmkshrobj'
8204 tmp_addflag= ;;
8205 nvcc*) # Cuda Compiler Driver 2.2
8206 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'
8207 compiler_needs_object=yes
8209 esac
8210 case `$CC -V 2>&1 | sed 5q` in
8211 *Sun\ C*) # Sun C 5.9
8212 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'
8213 compiler_needs_object=yes
8214 tmp_sharedflag='-G' ;;
8215 *Sun\ F*) # Sun Fortran 8.3
8216 tmp_sharedflag='-G' ;;
8217 esac
8218 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220 if test "x$supports_anon_versioning" = xyes; then
8221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8223 echo "local: *; };" >> $output_objdir/$libname.ver~
8224 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8227 case $cc_basename in
8228 xlf* | bgf* | bgxlf* | mpixlf*)
8229 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8230 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8231 hardcode_libdir_flag_spec=
8232 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8233 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8234 if test "x$supports_anon_versioning" = xyes; then
8235 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8237 echo "local: *; };" >> $output_objdir/$libname.ver~
8238 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8241 esac
8242 else
8243 ld_shlibs=no
8247 netbsd*)
8248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8249 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8250 wlarc=
8251 else
8252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8257 solaris*)
8258 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8259 ld_shlibs=no
8260 cat <<_LT_EOF 1>&2
8262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8263 *** create shared libraries on Solaris systems. Therefore, libtool
8264 *** is disabling shared libraries support. We urge you to upgrade GNU
8265 *** binutils to release 2.9.1 or newer. Another option is to modify
8266 *** your PATH or compiler configuration so that the native linker is
8267 *** used, and then restart.
8269 _LT_EOF
8270 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273 else
8274 ld_shlibs=no
8278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8279 case `$LD -v 2>&1` in
8280 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8281 ld_shlibs=no
8282 cat <<_LT_EOF 1>&2
8284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8285 *** reliably create shared libraries on SCO systems. Therefore, libtool
8286 *** is disabling shared libraries support. We urge you to upgrade GNU
8287 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8288 *** your PATH or compiler configuration so that the native linker is
8289 *** used, and then restart.
8291 _LT_EOF
8294 # For security reasons, it is highly recommended that you always
8295 # use absolute paths for naming shared libraries, and exclude the
8296 # DT_RUNPATH tag from executables and libraries. But doing so
8297 # requires that you compile everything twice, which is a pain.
8298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302 else
8303 ld_shlibs=no
8306 esac
8309 sunos4*)
8310 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311 wlarc=
8312 hardcode_direct=yes
8313 hardcode_shlibpath_var=no
8317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320 else
8321 ld_shlibs=no
8324 esac
8326 if test "$ld_shlibs" = no; then
8327 runpath_var=
8328 hardcode_libdir_flag_spec=
8329 export_dynamic_flag_spec=
8330 whole_archive_flag_spec=
8332 else
8333 # PORTME fill in a description of your system's linker (not GNU ld)
8334 case $host_os in
8335 aix3*)
8336 allow_undefined_flag=unsupported
8337 always_export_symbols=yes
8338 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'
8339 # Note: this linker hardcodes the directories in LIBPATH if there
8340 # are no directories specified by -L.
8341 hardcode_minus_L=yes
8342 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8343 # Neither direct hardcoding nor static linking is supported with a
8344 # broken collect2.
8345 hardcode_direct=unsupported
8349 aix[4-9]*)
8350 if test "$host_cpu" = ia64; then
8351 # On IA64, the linker does run time linking by default, so we don't
8352 # have to do anything special.
8353 aix_use_runtimelinking=no
8354 exp_sym_flag='-Bexport'
8355 no_entry_flag=""
8356 else
8357 # If we're using GNU nm, then we don't want the "-C" option.
8358 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8359 # Also, AIX nm treats weak defined symbols like other global
8360 # defined symbols, whereas GNU nm marks them as "W".
8361 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8362 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'
8363 else
8364 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'
8366 aix_use_runtimelinking=no
8368 # Test if we are trying to use run time linking or normal
8369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8370 # need to do runtime linking.
8371 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8372 for ld_flag in $LDFLAGS; do
8373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8374 aix_use_runtimelinking=yes
8375 break
8377 done
8379 esac
8381 exp_sym_flag='-bexport'
8382 no_entry_flag='-bnoentry'
8385 # When large executables or shared objects are built, AIX ld can
8386 # have problems creating the table of contents. If linking a library
8387 # or program results in "error TOC overflow" add -mminimal-toc to
8388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8391 archive_cmds=''
8392 hardcode_direct=yes
8393 hardcode_direct_absolute=yes
8394 hardcode_libdir_separator=':'
8395 link_all_deplibs=yes
8396 file_list_spec='${wl}-f,'
8398 if test "$GCC" = yes; then
8399 case $host_os in aix4.[012]|aix4.[012].*)
8400 # We only want to do this on AIX 4.2 and lower, the check
8401 # below for broken collect2 doesn't work under 4.3+
8402 collect2name=`${CC} -print-prog-name=collect2`
8403 if test -f "$collect2name" &&
8404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8405 then
8406 # We have reworked collect2
8408 else
8409 # We have old collect2
8410 hardcode_direct=unsupported
8411 # It fails to find uninstalled libraries when the uninstalled
8412 # path is not listed in the libpath. Setting hardcode_minus_L
8413 # to unsupported forces relinking
8414 hardcode_minus_L=yes
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 hardcode_libdir_separator=
8419 esac
8420 shared_flag='-shared'
8421 if test "$aix_use_runtimelinking" = yes; then
8422 shared_flag="$shared_flag "'${wl}-G'
8424 else
8425 # not using gcc
8426 if test "$host_cpu" = ia64; then
8427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8428 # chokes on -Wl,-G. The following line is correct:
8429 shared_flag='-G'
8430 else
8431 if test "$aix_use_runtimelinking" = yes; then
8432 shared_flag='${wl}-G'
8433 else
8434 shared_flag='${wl}-bM:SRE'
8439 export_dynamic_flag_spec='${wl}-bexpall'
8440 # It seems that -bexpall does not export symbols beginning with
8441 # underscore (_), so it is better to generate a list of symbols to export.
8442 always_export_symbols=yes
8443 if test "$aix_use_runtimelinking" = yes; then
8444 # Warning - without using the other runtime loading flags (-brtl),
8445 # -berok will link without error, but may produce a broken library.
8446 allow_undefined_flag='-berok'
8447 # Determine the default libpath from the value encoded in an
8448 # empty executable.
8449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450 /* end confdefs.h. */
8453 main ()
8457 return 0;
8459 _ACEOF
8460 if ac_fn_c_try_link "$LINENO"; then :
8462 lt_aix_libpath_sed='
8463 /Import File Strings/,/^$/ {
8464 /^0/ {
8465 s/^0 *\(.*\)$/\1/
8469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8470 # Check for a 64-bit object if we didn't find anything.
8471 if test -z "$aix_libpath"; then
8472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8475 rm -f core conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480 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"
8481 else
8482 if test "$host_cpu" = ia64; then
8483 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484 allow_undefined_flag="-z nodefs"
8485 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"
8486 else
8487 # Determine the default libpath from the value encoded in an
8488 # empty executable.
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8493 main ()
8497 return 0;
8499 _ACEOF
8500 if ac_fn_c_try_link "$LINENO"; then :
8502 lt_aix_libpath_sed='
8503 /Import File Strings/,/^$/ {
8504 /^0/ {
8505 s/^0 *\(.*\)$/\1/
8509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 # Check for a 64-bit object if we didn't find anything.
8511 if test -z "$aix_libpath"; then
8512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520 # Warning - without using the other run time loading flags,
8521 # -berok will link without error, but may produce a broken library.
8522 no_undefined_flag=' ${wl}-bernotok'
8523 allow_undefined_flag=' ${wl}-berok'
8524 if test "$with_gnu_ld" = yes; then
8525 # We only use this code for GNU lds that support --whole-archive.
8526 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8527 else
8528 # Exported symbols can be pulled into shared objects from archives
8529 whole_archive_flag_spec='$convenience'
8531 archive_cmds_need_lc=yes
8532 # This is similar to how AIX traditionally builds its shared libraries.
8533 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'
8538 amigaos*)
8539 case $host_cpu in
8540 powerpc)
8541 # see comment about AmigaOS4 .so support
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 archive_expsym_cmds=''
8545 m68k)
8546 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)'
8547 hardcode_libdir_flag_spec='-L$libdir'
8548 hardcode_minus_L=yes
8550 esac
8553 bsdi[45]*)
8554 export_dynamic_flag_spec=-rdynamic
8557 cygwin* | mingw* | pw32* | cegcc*)
8558 # When not using gcc, we currently assume that we are using
8559 # Microsoft Visual C++.
8560 # hardcode_libdir_flag_spec is actually meaningless, as there is
8561 # no search path for DLLs.
8562 hardcode_libdir_flag_spec=' '
8563 allow_undefined_flag=unsupported
8564 # Tell ltmain to make .lib files, not .a files.
8565 libext=lib
8566 # Tell ltmain to make .dll files, not .so files.
8567 shrext_cmds=".dll"
8568 # FIXME: Setting linknames here is a bad hack.
8569 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8570 # The linker will automatically build a .lib file if we build a DLL.
8571 old_archive_from_new_cmds='true'
8572 # FIXME: Should let the user specify the lib program.
8573 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8574 fix_srcfile_path='`cygpath -w "$srcfile"`'
8575 enable_shared_with_static_runtimes=yes
8578 darwin* | rhapsody*)
8581 archive_cmds_need_lc=no
8582 hardcode_direct=no
8583 hardcode_automatic=yes
8584 hardcode_shlibpath_var=unsupported
8585 if test "$lt_cv_ld_force_load" = "yes"; then
8586 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\"`'
8587 else
8588 whole_archive_flag_spec=''
8590 link_all_deplibs=yes
8591 allow_undefined_flag="$_lt_dar_allow_undefined"
8592 case $cc_basename in
8593 ifort*) _lt_dar_can_shared=yes ;;
8594 *) _lt_dar_can_shared=$GCC ;;
8595 esac
8596 if test "$_lt_dar_can_shared" = "yes"; then
8597 output_verbose_link_cmd=func_echo_all
8598 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8599 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8600 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}"
8601 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}"
8603 else
8604 ld_shlibs=no
8609 dgux*)
8610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-L$libdir'
8612 hardcode_shlibpath_var=no
8615 freebsd1*)
8616 ld_shlibs=no
8619 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620 # support. Future versions do this automatically, but an explicit c++rt0.o
8621 # does not break anything, and helps significantly (at the cost of a little
8622 # extra space).
8623 freebsd2.2*)
8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625 hardcode_libdir_flag_spec='-R$libdir'
8626 hardcode_direct=yes
8627 hardcode_shlibpath_var=no
8630 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631 freebsd2*)
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_direct=yes
8634 hardcode_minus_L=yes
8635 hardcode_shlibpath_var=no
8638 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639 freebsd* | dragonfly*)
8640 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641 hardcode_libdir_flag_spec='-R$libdir'
8642 hardcode_direct=yes
8643 hardcode_shlibpath_var=no
8646 hpux9*)
8647 if test "$GCC" = yes; then
8648 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'
8649 else
8650 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'
8652 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653 hardcode_libdir_separator=:
8654 hardcode_direct=yes
8656 # hardcode_minus_L: Not really in the search PATH,
8657 # but as the default location of the library.
8658 hardcode_minus_L=yes
8659 export_dynamic_flag_spec='${wl}-E'
8662 hpux10*)
8663 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8665 else
8666 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8668 if test "$with_gnu_ld" = no; then
8669 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8670 hardcode_libdir_flag_spec_ld='+b $libdir'
8671 hardcode_libdir_separator=:
8672 hardcode_direct=yes
8673 hardcode_direct_absolute=yes
8674 export_dynamic_flag_spec='${wl}-E'
8675 # hardcode_minus_L: Not really in the search PATH,
8676 # but as the default location of the library.
8677 hardcode_minus_L=yes
8681 hpux11*)
8682 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8683 case $host_cpu in
8684 hppa*64*)
8685 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 ia64*)
8688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693 esac
8694 else
8695 case $host_cpu in
8696 hppa*64*)
8697 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8699 ia64*)
8700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8704 # Older versions of the 11.00 compiler do not understand -b yet
8705 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8707 $as_echo_n "checking if $CC understands -b... " >&6; }
8708 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 lt_cv_prog_compiler__b=no
8712 save_LDFLAGS="$LDFLAGS"
8713 LDFLAGS="$LDFLAGS -b"
8714 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8716 # The linker can only warn and ignore the option if not recognized
8717 # So say no if there are warnings
8718 if test -s conftest.err; then
8719 # Append any errors to the config.log.
8720 cat conftest.err 1>&5
8721 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8723 if diff conftest.exp conftest.er2 >/dev/null; then
8724 lt_cv_prog_compiler__b=yes
8726 else
8727 lt_cv_prog_compiler__b=yes
8730 $RM -r conftest*
8731 LDFLAGS="$save_LDFLAGS"
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8735 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8737 if test x"$lt_cv_prog_compiler__b" = xyes; then
8738 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739 else
8740 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8744 esac
8746 if test "$with_gnu_ld" = no; then
8747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8748 hardcode_libdir_separator=:
8750 case $host_cpu in
8751 hppa*64*|ia64*)
8752 hardcode_direct=no
8753 hardcode_shlibpath_var=no
8756 hardcode_direct=yes
8757 hardcode_direct_absolute=yes
8758 export_dynamic_flag_spec='${wl}-E'
8760 # hardcode_minus_L: Not really in the search PATH,
8761 # but as the default location of the library.
8762 hardcode_minus_L=yes
8764 esac
8768 irix5* | irix6* | nonstopux*)
8769 if test "$GCC" = yes; then
8770 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'
8771 # Try to use the -exported_symbol ld option, if it does not
8772 # work, assume that -exports_file does not work either and
8773 # implicitly export all symbols.
8774 save_LDFLAGS="$LDFLAGS"
8775 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 int foo(void) {}
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 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'
8784 rm -f core conftest.err conftest.$ac_objext \
8785 conftest$ac_exeext conftest.$ac_ext
8786 LDFLAGS="$save_LDFLAGS"
8787 else
8788 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'
8789 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'
8791 archive_cmds_need_lc='no'
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 hardcode_libdir_separator=:
8794 inherit_rpath=yes
8795 link_all_deplibs=yes
8798 netbsd*)
8799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8801 else
8802 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8804 hardcode_libdir_flag_spec='-R$libdir'
8805 hardcode_direct=yes
8806 hardcode_shlibpath_var=no
8809 newsos6)
8810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811 hardcode_direct=yes
8812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8813 hardcode_libdir_separator=:
8814 hardcode_shlibpath_var=no
8817 *nto* | *qnx*)
8820 openbsd*)
8821 if test -f /usr/libexec/ld.so; then
8822 hardcode_direct=yes
8823 hardcode_shlibpath_var=no
8824 hardcode_direct_absolute=yes
8825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8829 export_dynamic_flag_spec='${wl}-E'
8830 else
8831 case $host_os in
8832 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8834 hardcode_libdir_flag_spec='-R$libdir'
8837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8840 esac
8842 else
8843 ld_shlibs=no
8847 os2*)
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_minus_L=yes
8850 allow_undefined_flag=unsupported
8851 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'
8852 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8855 osf3*)
8856 if test "$GCC" = yes; then
8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858 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'
8859 else
8860 allow_undefined_flag=' -expect_unresolved \*'
8861 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'
8863 archive_cmds_need_lc='no'
8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865 hardcode_libdir_separator=:
8868 osf4* | osf5*) # as osf3* with the addition of -msym flag
8869 if test "$GCC" = yes; then
8870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8871 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'
8872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873 else
8874 allow_undefined_flag=' -expect_unresolved \*'
8875 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'
8876 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~
8877 $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'
8879 # Both c and cxx compiler support -rpath directly
8880 hardcode_libdir_flag_spec='-rpath $libdir'
8882 archive_cmds_need_lc='no'
8883 hardcode_libdir_separator=:
8886 solaris*)
8887 no_undefined_flag=' -z defs'
8888 if test "$GCC" = yes; then
8889 wlarc='${wl}'
8890 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8893 else
8894 case `$CC -V 2>&1` in
8895 *"Compilers 5.0"*)
8896 wlarc=''
8897 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8902 wlarc='${wl}'
8903 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8905 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8907 esac
8909 hardcode_libdir_flag_spec='-R$libdir'
8910 hardcode_shlibpath_var=no
8911 case $host_os in
8912 solaris2.[0-5] | solaris2.[0-5].*) ;;
8914 # The compiler driver will combine and reorder linker options,
8915 # but understands `-z linker_flag'. GCC discards it without `$wl',
8916 # but is careful enough not to reorder.
8917 # Supported since Solaris 2.6 (maybe 2.5.1?)
8918 if test "$GCC" = yes; then
8919 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8920 else
8921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8924 esac
8925 link_all_deplibs=yes
8928 sunos4*)
8929 if test "x$host_vendor" = xsequent; then
8930 # Use $CC to link under sequent, because it throws in some extra .o
8931 # files that make .init and .fini sections work.
8932 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8933 else
8934 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_libdir_flag_spec='-L$libdir'
8937 hardcode_direct=yes
8938 hardcode_minus_L=yes
8939 hardcode_shlibpath_var=no
8942 sysv4)
8943 case $host_vendor in
8944 sni)
8945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946 hardcode_direct=yes # is this really true???
8948 siemens)
8949 ## LD is ld it makes a PLAMLIB
8950 ## CC just makes a GrossModule.
8951 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8952 reload_cmds='$CC -r -o $output$reload_objs'
8953 hardcode_direct=no
8955 motorola)
8956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8959 esac
8960 runpath_var='LD_RUN_PATH'
8961 hardcode_shlibpath_var=no
8964 sysv4.3*)
8965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966 hardcode_shlibpath_var=no
8967 export_dynamic_flag_spec='-Bexport'
8970 sysv4*MP*)
8971 if test -d /usr/nec; then
8972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973 hardcode_shlibpath_var=no
8974 runpath_var=LD_RUN_PATH
8975 hardcode_runpath_var=yes
8976 ld_shlibs=yes
8980 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8981 no_undefined_flag='${wl}-z,text'
8982 archive_cmds_need_lc=no
8983 hardcode_shlibpath_var=no
8984 runpath_var='LD_RUN_PATH'
8986 if test "$GCC" = yes; then
8987 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8988 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989 else
8990 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8995 sysv5* | sco3.2v5* | sco5v6*)
8996 # Note: We can NOT use -z defs as we might desire, because we do not
8997 # link with -lc, and that would cause any symbols used from libc to
8998 # always be unresolved, which means just about no library would
8999 # ever link correctly. If we're not using GNU ld we use -z text
9000 # though, which does catch some bad symbols but isn't as heavy-handed
9001 # as -z defs.
9002 no_undefined_flag='${wl}-z,text'
9003 allow_undefined_flag='${wl}-z,nodefs'
9004 archive_cmds_need_lc=no
9005 hardcode_shlibpath_var=no
9006 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9007 hardcode_libdir_separator=':'
9008 link_all_deplibs=yes
9009 export_dynamic_flag_spec='${wl}-Bexport'
9010 runpath_var='LD_RUN_PATH'
9012 if test "$GCC" = yes; then
9013 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 else
9016 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9021 uts4*)
9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_libdir_flag_spec='-L$libdir'
9024 hardcode_shlibpath_var=no
9028 ld_shlibs=no
9030 esac
9032 if test x$host_vendor = xsni; then
9033 case $host in
9034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9035 export_dynamic_flag_spec='${wl}-Blargedynsym'
9037 esac
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9042 $as_echo "$ld_shlibs" >&6; }
9043 test "$ld_shlibs" = no && can_build_shared=no
9045 with_gnu_ld=$with_gnu_ld
9062 # Do we need to explicitly link libc?
9064 case "x$archive_cmds_need_lc" in
9065 x|xyes)
9066 # Assume -lc should be added
9067 archive_cmds_need_lc=yes
9069 if test "$enable_shared" = yes && test "$GCC" = yes; then
9070 case $archive_cmds in
9071 *'~'*)
9072 # FIXME: we may have to deal with multi-command sequences.
9074 '$CC '*)
9075 # Test whether the compiler implicitly links with -lc since on some
9076 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9077 # to ld, don't add -lc before -lgcc.
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9079 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9080 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 $RM conftest*
9084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9087 (eval $ac_compile) 2>&5
9088 ac_status=$?
9089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9090 test $ac_status = 0; } 2>conftest.err; then
9091 soname=conftest
9092 lib=conftest
9093 libobjs=conftest.$ac_objext
9094 deplibs=
9095 wl=$lt_prog_compiler_wl
9096 pic_flag=$lt_prog_compiler_pic
9097 compiler_flags=-v
9098 linker_flags=-v
9099 verstring=
9100 output_objdir=.
9101 libname=conftest
9102 lt_save_allow_undefined_flag=$allow_undefined_flag
9103 allow_undefined_flag=
9104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9105 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9106 ac_status=$?
9107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9108 test $ac_status = 0; }
9109 then
9110 lt_cv_archive_cmds_need_lc=no
9111 else
9112 lt_cv_archive_cmds_need_lc=yes
9114 allow_undefined_flag=$lt_save_allow_undefined_flag
9115 else
9116 cat conftest.err 1>&5
9118 $RM conftest*
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9122 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9123 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9125 esac
9128 esac
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9287 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9289 if test "$GCC" = yes; then
9290 case $host_os in
9291 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9292 *) lt_awk_arg="/^libraries:/" ;;
9293 esac
9294 case $host_os in
9295 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9296 *) lt_sed_strip_eq="s,=/,/,g" ;;
9297 esac
9298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9299 case $lt_search_path_spec in
9300 *\;*)
9301 # if the path contains ";" then we assume it to be the separator
9302 # otherwise default to the standard path separator (i.e. ":") - it is
9303 # assumed that no part of a normal pathname contains ";" but that should
9304 # okay in the real world where ";" in dirpaths is itself problematic.
9305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9310 esac
9311 # Ok, now we have the path, separated by spaces, we can step through it
9312 # and add multilib dir if necessary.
9313 lt_tmp_lt_search_path_spec=
9314 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9315 for lt_sys_path in $lt_search_path_spec; do
9316 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9318 else
9319 test -d "$lt_sys_path" && \
9320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9322 done
9323 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9324 BEGIN {RS=" "; FS="/|\n";} {
9325 lt_foo="";
9326 lt_count=0;
9327 for (lt_i = NF; lt_i > 0; lt_i--) {
9328 if ($lt_i != "" && $lt_i != ".") {
9329 if ($lt_i == "..") {
9330 lt_count++;
9331 } else {
9332 if (lt_count == 0) {
9333 lt_foo="/" $lt_i lt_foo;
9334 } else {
9335 lt_count--;
9340 if (lt_foo != "") { lt_freq[lt_foo]++; }
9341 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9343 # AWK program above erroneously prepends '/' to C:/dos/paths
9344 # for these hosts.
9345 case $host_os in
9346 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9347 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9348 esac
9349 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9350 else
9351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9353 library_names_spec=
9354 libname_spec='lib$name'
9355 soname_spec=
9356 shrext_cmds=".so"
9357 postinstall_cmds=
9358 postuninstall_cmds=
9359 finish_cmds=
9360 finish_eval=
9361 shlibpath_var=
9362 shlibpath_overrides_runpath=unknown
9363 version_type=none
9364 dynamic_linker="$host_os ld.so"
9365 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9366 need_lib_prefix=unknown
9367 hardcode_into_libs=no
9369 # when you set need_version to no, make sure it does not cause -set_version
9370 # flags to be left without arguments
9371 need_version=unknown
9373 case $host_os in
9374 aix3*)
9375 version_type=linux
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9377 shlibpath_var=LIBPATH
9379 # AIX 3 has no versioning support, so we append a major version to the name.
9380 soname_spec='${libname}${release}${shared_ext}$major'
9383 aix[4-9]*)
9384 version_type=linux
9385 need_lib_prefix=no
9386 need_version=no
9387 hardcode_into_libs=yes
9388 if test "$host_cpu" = ia64; then
9389 # AIX 5 supports IA64
9390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 else
9393 # With GCC up to 2.95.x, collect2 would create an import file
9394 # for dependence libraries. The import file would start with
9395 # the line `#! .'. This would cause the generated library to
9396 # depend on `.', always an invalid library. This was fixed in
9397 # development snapshots of GCC prior to 3.0.
9398 case $host_os in
9399 aix4 | aix4.[01] | aix4.[01].*)
9400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9401 echo ' yes '
9402 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9404 else
9405 can_build_shared=no
9408 esac
9409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9410 # soname into executable. Probably we can add versioning support to
9411 # collect2, so additional links can be useful in future.
9412 if test "$aix_use_runtimelinking" = yes; then
9413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9414 # instead of lib<name>.a to let people know that these are not
9415 # typical AIX shared libraries.
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 else
9418 # We preserve .a as extension for shared libraries through AIX4.2
9419 # and later when we are not doing run time linking.
9420 library_names_spec='${libname}${release}.a $libname.a'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LIBPATH
9427 amigaos*)
9428 case $host_cpu in
9429 powerpc)
9430 # Since July 2007 AmigaOS4 officially supports .so libraries.
9431 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 m68k)
9435 library_names_spec='$libname.ixlibrary $libname.a'
9436 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9437 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'
9439 esac
9442 beos*)
9443 library_names_spec='${libname}${shared_ext}'
9444 dynamic_linker="$host_os ld.so"
9445 shlibpath_var=LIBRARY_PATH
9448 bsdi[45]*)
9449 version_type=linux
9450 need_version=no
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9457 # the default ld.so.conf also contains /usr/contrib/lib and
9458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9459 # libtool to hard-code these into programs
9462 cygwin* | mingw* | pw32* | cegcc*)
9463 version_type=windows
9464 shrext_cmds=".dll"
9465 need_version=no
9466 need_lib_prefix=no
9468 case $GCC,$host_os in
9469 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9470 library_names_spec='$libname.dll.a'
9471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9472 postinstall_cmds='base_file=`basename \${file}`~
9473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9474 dldir=$destdir/`dirname \$dlpath`~
9475 test -d \$dldir || mkdir -p \$dldir~
9476 $install_prog $dir/$dlname \$dldir/$dlname~
9477 chmod a+x \$dldir/$dlname~
9478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9479 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9482 dlpath=$dir/\$dldll~
9483 $RM \$dlpath'
9484 shlibpath_overrides_runpath=yes
9486 case $host_os in
9487 cygwin*)
9488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9493 mingw* | cegcc*)
9494 # MinGW DLLs use traditional 'lib' prefix
9495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9497 pw32*)
9498 # pw32 DLLs use 'pw' prefix rather than 'lib'
9499 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9501 esac
9505 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9507 esac
9508 dynamic_linker='Win32 ld.exe'
9509 # FIXME: first we should search . and the directory the executable is in
9510 shlibpath_var=PATH
9513 darwin* | rhapsody*)
9514 dynamic_linker="$host_os dyld"
9515 version_type=darwin
9516 need_lib_prefix=no
9517 need_version=no
9518 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9519 soname_spec='${libname}${release}${major}$shared_ext'
9520 shlibpath_overrides_runpath=yes
9521 shlibpath_var=DYLD_LIBRARY_PATH
9522 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9528 dgux*)
9529 version_type=linux
9530 need_lib_prefix=no
9531 need_version=no
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 shlibpath_var=LD_LIBRARY_PATH
9537 freebsd1*)
9538 dynamic_linker=no
9541 freebsd* | dragonfly*)
9542 # DragonFly does not have aout. When/if they implement a new
9543 # versioning mechanism, adjust this.
9544 if test -x /usr/bin/objformat; then
9545 objformat=`/usr/bin/objformat`
9546 else
9547 case $host_os in
9548 freebsd[123]*) objformat=aout ;;
9549 *) objformat=elf ;;
9550 esac
9552 version_type=freebsd-$objformat
9553 case $version_type in
9554 freebsd-elf*)
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9556 need_version=no
9557 need_lib_prefix=no
9559 freebsd-*)
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9561 need_version=yes
9563 esac
9564 shlibpath_var=LD_LIBRARY_PATH
9565 case $host_os in
9566 freebsd2*)
9567 shlibpath_overrides_runpath=yes
9569 freebsd3.[01]* | freebsdelf3.[01]*)
9570 shlibpath_overrides_runpath=yes
9571 hardcode_into_libs=yes
9573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9575 shlibpath_overrides_runpath=no
9576 hardcode_into_libs=yes
9578 *) # from 4.6 on, and DragonFly
9579 shlibpath_overrides_runpath=yes
9580 hardcode_into_libs=yes
9582 esac
9585 gnu*)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 hardcode_into_libs=yes
9595 haiku*)
9596 version_type=linux
9597 need_lib_prefix=no
9598 need_version=no
9599 dynamic_linker="$host_os runtime_loader"
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LIBRARY_PATH
9603 shlibpath_overrides_runpath=yes
9604 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9605 hardcode_into_libs=yes
9608 hpux9* | hpux10* | hpux11*)
9609 # Give a soname corresponding to the major version so that dld.sl refuses to
9610 # link against other versions.
9611 version_type=sunos
9612 need_lib_prefix=no
9613 need_version=no
9614 case $host_cpu in
9615 ia64*)
9616 shrext_cmds='.so'
9617 hardcode_into_libs=yes
9618 dynamic_linker="$host_os dld.so"
9619 shlibpath_var=LD_LIBRARY_PATH
9620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 if test "X$HPUX_IA64_MODE" = X32; then
9624 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9625 else
9626 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9630 hppa*64*)
9631 shrext_cmds='.sl'
9632 hardcode_into_libs=yes
9633 dynamic_linker="$host_os dld.sl"
9634 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9642 shrext_cmds='.sl'
9643 dynamic_linker="$host_os dld.sl"
9644 shlibpath_var=SHLIB_PATH
9645 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9649 esac
9650 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9651 postinstall_cmds='chmod 555 $lib'
9652 # or fails outright, so override atomically:
9653 install_override_mode=555
9656 interix[3-9]*)
9657 version_type=linux
9658 need_lib_prefix=no
9659 need_version=no
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9661 soname_spec='${libname}${release}${shared_ext}$major'
9662 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=no
9665 hardcode_into_libs=yes
9668 irix5* | irix6* | nonstopux*)
9669 case $host_os in
9670 nonstopux*) version_type=nonstopux ;;
9672 if test "$lt_cv_prog_gnu_ld" = yes; then
9673 version_type=linux
9674 else
9675 version_type=irix
9676 fi ;;
9677 esac
9678 need_lib_prefix=no
9679 need_version=no
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9682 case $host_os in
9683 irix5* | nonstopux*)
9684 libsuff= shlibsuff=
9687 case $LD in # libtool.m4 will add one of these switches to LD
9688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9689 libsuff= shlibsuff= libmagic=32-bit;;
9690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9691 libsuff=32 shlibsuff=N32 libmagic=N32;;
9692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9693 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9694 *) libsuff= shlibsuff= libmagic=never-match;;
9695 esac
9697 esac
9698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9699 shlibpath_overrides_runpath=no
9700 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9701 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9702 hardcode_into_libs=yes
9705 # No shared lib support for Linux oldld, aout, or coff.
9706 linux*oldld* | linux*aout* | linux*coff*)
9707 dynamic_linker=no
9710 # This must be Linux ELF.
9711 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9712 version_type=linux
9713 need_lib_prefix=no
9714 need_version=no
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9718 shlibpath_var=LD_LIBRARY_PATH
9719 shlibpath_overrides_runpath=no
9721 # Some binutils ld are patched to set DT_RUNPATH
9722 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 lt_cv_shlibpath_overrides_runpath=no
9726 save_LDFLAGS=$LDFLAGS
9727 save_libdir=$libdir
9728 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9729 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9734 main ()
9738 return 0;
9740 _ACEOF
9741 if ac_fn_c_try_link "$LINENO"; then :
9742 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9743 lt_cv_shlibpath_overrides_runpath=yes
9746 rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 LDFLAGS=$save_LDFLAGS
9749 libdir=$save_libdir
9753 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9755 # This implies no fast_install, which is unacceptable.
9756 # Some rework will be needed to allow for fast_install
9757 # before this can be enabled.
9758 hardcode_into_libs=yes
9760 # Append ld.so.conf contents to the search path
9761 if test -f /etc/ld.so.conf; then
9762 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' ' '`
9763 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9766 # We used to test for /lib/ld.so.1 and disable shared libraries on
9767 # powerpc, because MkLinux only supported shared libraries with the
9768 # GNU dynamic linker. Since this was broken with cross compilers,
9769 # most powerpc-linux boxes support dynamic linking these days and
9770 # people can always --disable-shared, the test was removed, and we
9771 # assume the GNU/Linux dynamic linker is in use.
9772 dynamic_linker='GNU/Linux ld.so'
9775 netbsd*)
9776 version_type=sunos
9777 need_lib_prefix=no
9778 need_version=no
9779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9782 dynamic_linker='NetBSD (a.out) ld.so'
9783 else
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 dynamic_linker='NetBSD ld.elf_so'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 shlibpath_overrides_runpath=yes
9790 hardcode_into_libs=yes
9793 newsos6)
9794 version_type=linux
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 shlibpath_overrides_runpath=yes
9800 *nto* | *qnx*)
9801 version_type=qnx
9802 need_lib_prefix=no
9803 need_version=no
9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 shlibpath_var=LD_LIBRARY_PATH
9807 shlibpath_overrides_runpath=no
9808 hardcode_into_libs=yes
9809 dynamic_linker='ldqnx.so'
9812 openbsd*)
9813 version_type=sunos
9814 sys_lib_dlsearch_path_spec="/usr/lib"
9815 need_lib_prefix=no
9816 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9817 case $host_os in
9818 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9819 *) need_version=no ;;
9820 esac
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9825 case $host_os in
9826 openbsd2.[89] | openbsd2.[89].*)
9827 shlibpath_overrides_runpath=no
9830 shlibpath_overrides_runpath=yes
9832 esac
9833 else
9834 shlibpath_overrides_runpath=yes
9838 os2*)
9839 libname_spec='$name'
9840 shrext_cmds=".dll"
9841 need_lib_prefix=no
9842 library_names_spec='$libname${shared_ext} $libname.a'
9843 dynamic_linker='OS/2 ld.exe'
9844 shlibpath_var=LIBPATH
9847 osf3* | osf4* | osf5*)
9848 version_type=osf
9849 need_lib_prefix=no
9850 need_version=no
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9855 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9858 rdos*)
9859 dynamic_linker=no
9862 solaris*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 shlibpath_overrides_runpath=yes
9870 hardcode_into_libs=yes
9871 # ldd complains unless libraries are executable
9872 postinstall_cmds='chmod +x $lib'
9875 sunos4*)
9876 version_type=sunos
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 shlibpath_overrides_runpath=yes
9881 if test "$with_gnu_ld" = yes; then
9882 need_lib_prefix=no
9884 need_version=yes
9887 sysv4 | sysv4.3*)
9888 version_type=linux
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 case $host_vendor in
9893 sni)
9894 shlibpath_overrides_runpath=no
9895 need_lib_prefix=no
9896 runpath_var=LD_RUN_PATH
9898 siemens)
9899 need_lib_prefix=no
9901 motorola)
9902 need_lib_prefix=no
9903 need_version=no
9904 shlibpath_overrides_runpath=no
9905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9907 esac
9910 sysv4*MP*)
9911 if test -d /usr/nec ;then
9912 version_type=linux
9913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9914 soname_spec='$libname${shared_ext}.$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9920 version_type=freebsd-elf
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 shlibpath_overrides_runpath=yes
9927 hardcode_into_libs=yes
9928 if test "$with_gnu_ld" = yes; then
9929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9930 else
9931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9932 case $host_os in
9933 sco3.2v5*)
9934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9936 esac
9938 sys_lib_dlsearch_path_spec='/usr/lib'
9941 tpf*)
9942 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9943 version_type=linux
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 shlibpath_overrides_runpath=no
9949 hardcode_into_libs=yes
9952 uts4*)
9953 version_type=linux
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9960 dynamic_linker=no
9962 esac
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9964 $as_echo "$dynamic_linker" >&6; }
9965 test "$dynamic_linker" = no && can_build_shared=no
9967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9968 if test "$GCC" = yes; then
9969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9972 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9973 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9975 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9976 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10071 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10072 hardcode_action=
10073 if test -n "$hardcode_libdir_flag_spec" ||
10074 test -n "$runpath_var" ||
10075 test "X$hardcode_automatic" = "Xyes" ; then
10077 # We can hardcode non-existent directories.
10078 if test "$hardcode_direct" != no &&
10079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10080 # have to relink, otherwise we might link with an installed library
10081 # when we should be linking with a yet-to-be-installed one
10082 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10083 test "$hardcode_minus_L" != no; then
10084 # Linking always hardcodes the temporary library directory.
10085 hardcode_action=relink
10086 else
10087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10088 hardcode_action=immediate
10090 else
10091 # We cannot hardcode anything, or else we can only hardcode existing
10092 # directories.
10093 hardcode_action=unsupported
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10096 $as_echo "$hardcode_action" >&6; }
10098 if test "$hardcode_action" = relink ||
10099 test "$inherit_rpath" = yes; then
10100 # Fast installation is not supported
10101 enable_fast_install=no
10102 elif test "$shlibpath_overrides_runpath" = yes ||
10103 test "$enable_shared" = no; then
10104 # Fast installation is not necessary
10105 enable_fast_install=needless
10113 if test "x$enable_dlopen" != xyes; then
10114 enable_dlopen=unknown
10115 enable_dlopen_self=unknown
10116 enable_dlopen_self_static=unknown
10117 else
10118 lt_cv_dlopen=no
10119 lt_cv_dlopen_libs=
10121 case $host_os in
10122 beos*)
10123 lt_cv_dlopen="load_add_on"
10124 lt_cv_dlopen_libs=
10125 lt_cv_dlopen_self=yes
10128 mingw* | pw32* | cegcc*)
10129 lt_cv_dlopen="LoadLibrary"
10130 lt_cv_dlopen_libs=
10133 cygwin*)
10134 lt_cv_dlopen="dlopen"
10135 lt_cv_dlopen_libs=
10138 darwin*)
10139 # if libdl is installed we need to link against it
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10141 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
10144 else
10145 ac_check_lib_save_LIBS=$LIBS
10146 LIBS="-ldl $LIBS"
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char dlopen ();
10158 main ()
10160 return dlopen ();
10162 return 0;
10164 _ACEOF
10165 if ac_fn_c_try_link "$LINENO"; then :
10166 ac_cv_lib_dl_dlopen=yes
10167 else
10168 ac_cv_lib_dl_dlopen=no
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LIBS=$ac_check_lib_save_LIBS
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10175 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10176 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10178 else
10180 lt_cv_dlopen="dyld"
10181 lt_cv_dlopen_libs=
10182 lt_cv_dlopen_self=yes
10189 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10190 if test "x$ac_cv_func_shl_load" = x""yes; then :
10191 lt_cv_dlopen="shl_load"
10192 else
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10194 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10195 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-ldld $LIBS"
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char shl_load ();
10211 main ()
10213 return shl_load ();
10215 return 0;
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 ac_cv_lib_dld_shl_load=yes
10220 else
10221 ac_cv_lib_dld_shl_load=no
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 LIBS=$ac_check_lib_save_LIBS
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10228 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10229 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10230 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10231 else
10232 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10233 if test "x$ac_cv_func_dlopen" = x""yes; then :
10234 lt_cv_dlopen="dlopen"
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10237 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-ldl $LIBS"
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char dlopen ();
10254 main ()
10256 return dlopen ();
10258 return 0;
10260 _ACEOF
10261 if ac_fn_c_try_link "$LINENO"; then :
10262 ac_cv_lib_dl_dlopen=yes
10263 else
10264 ac_cv_lib_dl_dlopen=no
10266 rm -f core conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_check_lib_save_LIBS
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10272 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10276 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10277 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-lsvld $LIBS"
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10285 /* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
10288 #ifdef __cplusplus
10289 extern "C"
10290 #endif
10291 char dlopen ();
10293 main ()
10295 return dlopen ();
10297 return 0;
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
10301 ac_cv_lib_svld_dlopen=yes
10302 else
10303 ac_cv_lib_svld_dlopen=no
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 LIBS=$ac_check_lib_save_LIBS
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10310 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10311 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10313 else
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10315 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10316 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 ac_check_lib_save_LIBS=$LIBS
10320 LIBS="-ldld $LIBS"
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10327 #ifdef __cplusplus
10328 extern "C"
10329 #endif
10330 char dld_link ();
10332 main ()
10334 return dld_link ();
10336 return 0;
10338 _ACEOF
10339 if ac_fn_c_try_link "$LINENO"; then :
10340 ac_cv_lib_dld_dld_link=yes
10341 else
10342 ac_cv_lib_dld_dld_link=no
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10349 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10350 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10351 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10370 esac
10372 if test "x$lt_cv_dlopen" != xno; then
10373 enable_dlopen=yes
10374 else
10375 enable_dlopen=no
10378 case $lt_cv_dlopen in
10379 dlopen)
10380 save_CPPFLAGS="$CPPFLAGS"
10381 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10383 save_LDFLAGS="$LDFLAGS"
10384 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10386 save_LIBS="$LIBS"
10387 LIBS="$lt_cv_dlopen_libs $LIBS"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10390 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10391 if test "${lt_cv_dlopen_self+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 if test "$cross_compiling" = yes; then :
10395 lt_cv_dlopen_self=cross
10396 else
10397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10398 lt_status=$lt_dlunknown
10399 cat > conftest.$ac_ext <<_LT_EOF
10400 #line 10400 "configure"
10401 #include "confdefs.h"
10403 #if HAVE_DLFCN_H
10404 #include <dlfcn.h>
10405 #endif
10407 #include <stdio.h>
10409 #ifdef RTLD_GLOBAL
10410 # define LT_DLGLOBAL RTLD_GLOBAL
10411 #else
10412 # ifdef DL_GLOBAL
10413 # define LT_DLGLOBAL DL_GLOBAL
10414 # else
10415 # define LT_DLGLOBAL 0
10416 # endif
10417 #endif
10419 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10420 find out it does not work in some platform. */
10421 #ifndef LT_DLLAZY_OR_NOW
10422 # ifdef RTLD_LAZY
10423 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10424 # else
10425 # ifdef DL_LAZY
10426 # define LT_DLLAZY_OR_NOW DL_LAZY
10427 # else
10428 # ifdef RTLD_NOW
10429 # define LT_DLLAZY_OR_NOW RTLD_NOW
10430 # else
10431 # ifdef DL_NOW
10432 # define LT_DLLAZY_OR_NOW DL_NOW
10433 # else
10434 # define LT_DLLAZY_OR_NOW 0
10435 # endif
10436 # endif
10437 # endif
10438 # endif
10439 #endif
10441 /* When -fvisbility=hidden is used, assume the code has been annotated
10442 correspondingly for the symbols needed. */
10443 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10444 void fnord () __attribute__((visibility("default")));
10445 #endif
10447 void fnord () { int i=42; }
10448 int main ()
10450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10451 int status = $lt_dlunknown;
10453 if (self)
10455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10456 else
10458 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10459 else puts (dlerror ());
10461 /* dlclose (self); */
10463 else
10464 puts (dlerror ());
10466 return status;
10468 _LT_EOF
10469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10470 (eval $ac_link) 2>&5
10471 ac_status=$?
10472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10473 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10474 (./conftest; exit; ) >&5 2>/dev/null
10475 lt_status=$?
10476 case x$lt_status in
10477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10479 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10480 esac
10481 else :
10482 # compilation failed
10483 lt_cv_dlopen_self=no
10486 rm -fr conftest*
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10491 $as_echo "$lt_cv_dlopen_self" >&6; }
10493 if test "x$lt_cv_dlopen_self" = xyes; then
10494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10496 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10497 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 if test "$cross_compiling" = yes; then :
10501 lt_cv_dlopen_self_static=cross
10502 else
10503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10504 lt_status=$lt_dlunknown
10505 cat > conftest.$ac_ext <<_LT_EOF
10506 #line 10506 "configure"
10507 #include "confdefs.h"
10509 #if HAVE_DLFCN_H
10510 #include <dlfcn.h>
10511 #endif
10513 #include <stdio.h>
10515 #ifdef RTLD_GLOBAL
10516 # define LT_DLGLOBAL RTLD_GLOBAL
10517 #else
10518 # ifdef DL_GLOBAL
10519 # define LT_DLGLOBAL DL_GLOBAL
10520 # else
10521 # define LT_DLGLOBAL 0
10522 # endif
10523 #endif
10525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10526 find out it does not work in some platform. */
10527 #ifndef LT_DLLAZY_OR_NOW
10528 # ifdef RTLD_LAZY
10529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10530 # else
10531 # ifdef DL_LAZY
10532 # define LT_DLLAZY_OR_NOW DL_LAZY
10533 # else
10534 # ifdef RTLD_NOW
10535 # define LT_DLLAZY_OR_NOW RTLD_NOW
10536 # else
10537 # ifdef DL_NOW
10538 # define LT_DLLAZY_OR_NOW DL_NOW
10539 # else
10540 # define LT_DLLAZY_OR_NOW 0
10541 # endif
10542 # endif
10543 # endif
10544 # endif
10545 #endif
10547 /* When -fvisbility=hidden is used, assume the code has been annotated
10548 correspondingly for the symbols needed. */
10549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10550 void fnord () __attribute__((visibility("default")));
10551 #endif
10553 void fnord () { int i=42; }
10554 int main ()
10556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10557 int status = $lt_dlunknown;
10559 if (self)
10561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10562 else
10564 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10565 else puts (dlerror ());
10567 /* dlclose (self); */
10569 else
10570 puts (dlerror ());
10572 return status;
10574 _LT_EOF
10575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10576 (eval $ac_link) 2>&5
10577 ac_status=$?
10578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10580 (./conftest; exit; ) >&5 2>/dev/null
10581 lt_status=$?
10582 case x$lt_status in
10583 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10584 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10585 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10586 esac
10587 else :
10588 # compilation failed
10589 lt_cv_dlopen_self_static=no
10592 rm -fr conftest*
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10597 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10600 CPPFLAGS="$save_CPPFLAGS"
10601 LDFLAGS="$save_LDFLAGS"
10602 LIBS="$save_LIBS"
10604 esac
10606 case $lt_cv_dlopen_self in
10607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10608 *) enable_dlopen_self=unknown ;;
10609 esac
10611 case $lt_cv_dlopen_self_static in
10612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10613 *) enable_dlopen_self_static=unknown ;;
10614 esac
10633 striplib=
10634 old_striplib=
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10636 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10637 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10638 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10639 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 $as_echo "yes" >&6; }
10642 else
10643 # FIXME - insert some real tests, host_os isn't really good enough
10644 case $host_os in
10645 darwin*)
10646 if test -n "$STRIP" ; then
10647 striplib="$STRIP -x"
10648 old_striplib="$STRIP -S"
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650 $as_echo "yes" >&6; }
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10660 esac
10674 # Report which library types will actually be built
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10676 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10678 $as_echo "$can_build_shared" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10681 $as_echo_n "checking whether to build shared libraries... " >&6; }
10682 test "$can_build_shared" = "no" && enable_shared=no
10684 # On AIX, shared libraries and static libraries use the same namespace, and
10685 # are all built from PIC.
10686 case $host_os in
10687 aix3*)
10688 test "$enable_shared" = yes && enable_static=no
10689 if test -n "$RANLIB"; then
10690 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10691 postinstall_cmds='$RANLIB $lib'
10695 aix[4-9]*)
10696 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10697 test "$enable_shared" = yes && enable_static=no
10700 esac
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10702 $as_echo "$enable_shared" >&6; }
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10705 $as_echo_n "checking whether to build static libraries... " >&6; }
10706 # Make sure either enable_shared or enable_static is yes.
10707 test "$enable_shared" = yes || enable_static=yes
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10709 $as_echo "$enable_static" >&6; }
10715 ac_ext=c
10716 ac_cpp='$CPP $CPPFLAGS'
10717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10721 CC="$lt_save_CC"
10735 ac_config_commands="$ac_config_commands libtool"
10740 # Only expand once:
10744 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10745 case $ac_cv_c_uint64_t in #(
10746 no|yes) ;; #(
10749 $as_echo "#define _UINT64_T 1" >>confdefs.h
10752 cat >>confdefs.h <<_ACEOF
10753 #define uint64_t $ac_cv_c_uint64_t
10754 _ACEOF
10756 esac
10758 ac_config_files="$ac_config_files Makefile"
10760 cat >confcache <<\_ACEOF
10761 # This file is a shell script that caches the results of configure
10762 # tests run on this system so they can be shared between configure
10763 # scripts and configure runs, see configure's option --config-cache.
10764 # It is not useful on other systems. If it contains results you don't
10765 # want to keep, you may remove or edit it.
10767 # config.status only pays attention to the cache file if you give it
10768 # the --recheck option to rerun configure.
10770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10772 # following values.
10774 _ACEOF
10776 # The following way of writing the cache mishandles newlines in values,
10777 # but we know of no workaround that is simple, portable, and efficient.
10778 # So, we kill variables containing newlines.
10779 # Ultrix sh set writes to stderr and can't be redirected directly,
10780 # and sets the high bit in the cache file unless we assign to the vars.
10782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10783 eval ac_val=\$$ac_var
10784 case $ac_val in #(
10785 *${as_nl}*)
10786 case $ac_var in #(
10787 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10789 esac
10790 case $ac_var in #(
10791 _ | IFS | as_nl) ;; #(
10792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10793 *) { eval $ac_var=; unset $ac_var;} ;;
10794 esac ;;
10795 esac
10796 done
10798 (set) 2>&1 |
10799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10800 *${as_nl}ac_space=\ *)
10801 # `set' does not quote correctly, so add quotes: double-quote
10802 # substitution turns \\\\ into \\, and sed turns \\ into \.
10803 sed -n \
10804 "s/'/'\\\\''/g;
10805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10806 ;; #(
10808 # `set' quotes correctly as required by POSIX, so do not add quotes.
10809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10811 esac |
10812 sort
10814 sed '
10815 /^ac_cv_env_/b end
10816 t clear
10817 :clear
10818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10819 t end
10820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10821 :end' >>confcache
10822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10823 if test -w "$cache_file"; then
10824 test "x$cache_file" != "x/dev/null" &&
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10826 $as_echo "$as_me: updating cache $cache_file" >&6;}
10827 cat confcache >$cache_file
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10830 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10833 rm -f confcache
10835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10836 # Let make expand exec_prefix.
10837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10839 # Transform confdefs.h into DEFS.
10840 # Protect against shell expansion while executing Makefile rules.
10841 # Protect against Makefile macro expansion.
10843 # If the first sed substitution is executed (which looks for macros that
10844 # take arguments), then branch to the quote section. Otherwise,
10845 # look for a macro that doesn't take arguments.
10846 ac_script='
10847 :mline
10848 /\\$/{
10850 s,\\\n,,
10851 b mline
10853 t clear
10854 :clear
10855 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10856 t quote
10857 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10858 t quote
10859 b any
10860 :quote
10861 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10862 s/\[/\\&/g
10863 s/\]/\\&/g
10864 s/\$/$$/g
10866 :any
10869 s/^\n//
10870 s/\n/ /g
10874 DEFS=`sed -n "$ac_script" confdefs.h`
10877 ac_libobjs=
10878 ac_ltlibobjs=
10879 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10880 # 1. Remove the extension, and $U if already installed.
10881 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10882 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10883 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10884 # will be set to the directory where LIBOBJS objects are built.
10885 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10886 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10887 done
10888 LIBOBJS=$ac_libobjs
10890 LTLIBOBJS=$ac_ltlibobjs
10893 if test -n "$EXEEXT"; then
10894 am__EXEEXT_TRUE=
10895 am__EXEEXT_FALSE='#'
10896 else
10897 am__EXEEXT_TRUE='#'
10898 am__EXEEXT_FALSE=
10901 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10902 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10905 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10906 as_fn_error "conditional \"AMDEP\" was never defined.
10907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10909 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10910 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10914 : ${CONFIG_STATUS=./config.status}
10915 ac_write_fail=0
10916 ac_clean_files_save=$ac_clean_files
10917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10919 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10920 as_write_fail=0
10921 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10922 #! $SHELL
10923 # Generated by $as_me.
10924 # Run this file to recreate the current configuration.
10925 # Compiler output produced by configure, useful for debugging
10926 # configure, is in config.log if it exists.
10928 debug=false
10929 ac_cs_recheck=false
10930 ac_cs_silent=false
10932 SHELL=\${CONFIG_SHELL-$SHELL}
10933 export SHELL
10934 _ASEOF
10935 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10936 ## -------------------- ##
10937 ## M4sh Initialization. ##
10938 ## -------------------- ##
10940 # Be more Bourne compatible
10941 DUALCASE=1; export DUALCASE # for MKS sh
10942 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10943 emulate sh
10944 NULLCMD=:
10945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10946 # is contrary to our usage. Disable this feature.
10947 alias -g '${1+"$@"}'='"$@"'
10948 setopt NO_GLOB_SUBST
10949 else
10950 case `(set -o) 2>/dev/null` in #(
10951 *posix*) :
10952 set -o posix ;; #(
10953 *) :
10955 esac
10959 as_nl='
10961 export as_nl
10962 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10963 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10966 # Prefer a ksh shell builtin over an external printf program on Solaris,
10967 # but without wasting forks for bash or zsh.
10968 if test -z "$BASH_VERSION$ZSH_VERSION" \
10969 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10970 as_echo='print -r --'
10971 as_echo_n='print -rn --'
10972 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10973 as_echo='printf %s\n'
10974 as_echo_n='printf %s'
10975 else
10976 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10977 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10978 as_echo_n='/usr/ucb/echo -n'
10979 else
10980 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10981 as_echo_n_body='eval
10982 arg=$1;
10983 case $arg in #(
10984 *"$as_nl"*)
10985 expr "X$arg" : "X\\(.*\\)$as_nl";
10986 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10987 esac;
10988 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10990 export as_echo_n_body
10991 as_echo_n='sh -c $as_echo_n_body as_echo'
10993 export as_echo_body
10994 as_echo='sh -c $as_echo_body as_echo'
10997 # The user is always right.
10998 if test "${PATH_SEPARATOR+set}" != set; then
10999 PATH_SEPARATOR=:
11000 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11001 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11002 PATH_SEPARATOR=';'
11007 # IFS
11008 # We need space, tab and new line, in precisely that order. Quoting is
11009 # there to prevent editors from complaining about space-tab.
11010 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11011 # splitting by setting IFS to empty value.)
11012 IFS=" "" $as_nl"
11014 # Find who we are. Look in the path if we contain no directory separator.
11015 case $0 in #((
11016 *[\\/]* ) as_myself=$0 ;;
11017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
11022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11023 done
11024 IFS=$as_save_IFS
11027 esac
11028 # We did not find ourselves, most probably we were run as `sh COMMAND'
11029 # in which case we are not to be found in the path.
11030 if test "x$as_myself" = x; then
11031 as_myself=$0
11033 if test ! -f "$as_myself"; then
11034 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11035 exit 1
11038 # Unset variables that we do not need and which cause bugs (e.g. in
11039 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11040 # suppresses any "Segmentation fault" message there. '((' could
11041 # trigger a bug in pdksh 5.2.14.
11042 for as_var in BASH_ENV ENV MAIL MAILPATH
11043 do eval test x\${$as_var+set} = xset \
11044 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11045 done
11046 PS1='$ '
11047 PS2='> '
11048 PS4='+ '
11050 # NLS nuisances.
11051 LC_ALL=C
11052 export LC_ALL
11053 LANGUAGE=C
11054 export LANGUAGE
11056 # CDPATH.
11057 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11060 # as_fn_error ERROR [LINENO LOG_FD]
11061 # ---------------------------------
11062 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11063 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11064 # script with status $?, using 1 if that was 0.
11065 as_fn_error ()
11067 as_status=$?; test $as_status -eq 0 && as_status=1
11068 if test "$3"; then
11069 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11070 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11072 $as_echo "$as_me: error: $1" >&2
11073 as_fn_exit $as_status
11074 } # as_fn_error
11077 # as_fn_set_status STATUS
11078 # -----------------------
11079 # Set $? to STATUS, without forking.
11080 as_fn_set_status ()
11082 return $1
11083 } # as_fn_set_status
11085 # as_fn_exit STATUS
11086 # -----------------
11087 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11088 as_fn_exit ()
11090 set +e
11091 as_fn_set_status $1
11092 exit $1
11093 } # as_fn_exit
11095 # as_fn_unset VAR
11096 # ---------------
11097 # Portably unset VAR.
11098 as_fn_unset ()
11100 { eval $1=; unset $1;}
11102 as_unset=as_fn_unset
11103 # as_fn_append VAR VALUE
11104 # ----------------------
11105 # Append the text in VALUE to the end of the definition contained in VAR. Take
11106 # advantage of any shell optimizations that allow amortized linear growth over
11107 # repeated appends, instead of the typical quadratic growth present in naive
11108 # implementations.
11109 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11110 eval 'as_fn_append ()
11112 eval $1+=\$2
11114 else
11115 as_fn_append ()
11117 eval $1=\$$1\$2
11119 fi # as_fn_append
11121 # as_fn_arith ARG...
11122 # ------------------
11123 # Perform arithmetic evaluation on the ARGs, and store the result in the
11124 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11125 # must be portable across $(()) and expr.
11126 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11127 eval 'as_fn_arith ()
11129 as_val=$(( $* ))
11131 else
11132 as_fn_arith ()
11134 as_val=`expr "$@" || test $? -eq 1`
11136 fi # as_fn_arith
11139 if expr a : '\(a\)' >/dev/null 2>&1 &&
11140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11141 as_expr=expr
11142 else
11143 as_expr=false
11146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11147 as_basename=basename
11148 else
11149 as_basename=false
11152 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11153 as_dirname=dirname
11154 else
11155 as_dirname=false
11158 as_me=`$as_basename -- "$0" ||
11159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11160 X"$0" : 'X\(//\)$' \| \
11161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11162 $as_echo X/"$0" |
11163 sed '/^.*\/\([^/][^/]*\)\/*$/{
11164 s//\1/
11167 /^X\/\(\/\/\)$/{
11168 s//\1/
11171 /^X\/\(\/\).*/{
11172 s//\1/
11175 s/.*/./; q'`
11177 # Avoid depending upon Character Ranges.
11178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11181 as_cr_digits='0123456789'
11182 as_cr_alnum=$as_cr_Letters$as_cr_digits
11184 ECHO_C= ECHO_N= ECHO_T=
11185 case `echo -n x` in #(((((
11186 -n*)
11187 case `echo 'xy\c'` in
11188 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11189 xy) ECHO_C='\c';;
11190 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11191 ECHO_T=' ';;
11192 esac;;
11194 ECHO_N='-n';;
11195 esac
11197 rm -f conf$$ conf$$.exe conf$$.file
11198 if test -d conf$$.dir; then
11199 rm -f conf$$.dir/conf$$.file
11200 else
11201 rm -f conf$$.dir
11202 mkdir conf$$.dir 2>/dev/null
11204 if (echo >conf$$.file) 2>/dev/null; then
11205 if ln -s conf$$.file conf$$ 2>/dev/null; then
11206 as_ln_s='ln -s'
11207 # ... but there are two gotchas:
11208 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11209 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11210 # In both cases, we have to default to `cp -p'.
11211 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11212 as_ln_s='cp -p'
11213 elif ln conf$$.file conf$$ 2>/dev/null; then
11214 as_ln_s=ln
11215 else
11216 as_ln_s='cp -p'
11218 else
11219 as_ln_s='cp -p'
11221 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11222 rmdir conf$$.dir 2>/dev/null
11225 # as_fn_mkdir_p
11226 # -------------
11227 # Create "$as_dir" as a directory, including parents if necessary.
11228 as_fn_mkdir_p ()
11231 case $as_dir in #(
11232 -*) as_dir=./$as_dir;;
11233 esac
11234 test -d "$as_dir" || eval $as_mkdir_p || {
11235 as_dirs=
11236 while :; do
11237 case $as_dir in #(
11238 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11239 *) as_qdir=$as_dir;;
11240 esac
11241 as_dirs="'$as_qdir' $as_dirs"
11242 as_dir=`$as_dirname -- "$as_dir" ||
11243 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11244 X"$as_dir" : 'X\(//\)[^/]' \| \
11245 X"$as_dir" : 'X\(//\)$' \| \
11246 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11247 $as_echo X"$as_dir" |
11248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11249 s//\1/
11252 /^X\(\/\/\)[^/].*/{
11253 s//\1/
11256 /^X\(\/\/\)$/{
11257 s//\1/
11260 /^X\(\/\).*/{
11261 s//\1/
11264 s/.*/./; q'`
11265 test -d "$as_dir" && break
11266 done
11267 test -z "$as_dirs" || eval "mkdir $as_dirs"
11268 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11271 } # as_fn_mkdir_p
11272 if mkdir -p . 2>/dev/null; then
11273 as_mkdir_p='mkdir -p "$as_dir"'
11274 else
11275 test -d ./-p && rmdir ./-p
11276 as_mkdir_p=false
11279 if test -x / >/dev/null 2>&1; then
11280 as_test_x='test -x'
11281 else
11282 if ls -dL / >/dev/null 2>&1; then
11283 as_ls_L_option=L
11284 else
11285 as_ls_L_option=
11287 as_test_x='
11288 eval sh -c '\''
11289 if test -d "$1"; then
11290 test -d "$1/.";
11291 else
11292 case $1 in #(
11293 -*)set "./$1";;
11294 esac;
11295 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11296 ???[sx]*):;;*)false;;esac;fi
11297 '\'' sh
11300 as_executable_p=$as_test_x
11302 # Sed expression to map a string onto a valid CPP name.
11303 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11305 # Sed expression to map a string onto a valid variable name.
11306 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11309 exec 6>&1
11310 ## ----------------------------------- ##
11311 ## Main body of $CONFIG_STATUS script. ##
11312 ## ----------------------------------- ##
11313 _ASEOF
11314 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11317 # Save the log message, to keep $0 and so on meaningful, and to
11318 # report actual input values of CONFIG_FILES etc. instead of their
11319 # values after options handling.
11320 ac_log="
11321 This file was extended by LTO plugin for ld $as_me 0.1, which was
11322 generated by GNU Autoconf 2.64. Invocation command line was
11324 CONFIG_FILES = $CONFIG_FILES
11325 CONFIG_HEADERS = $CONFIG_HEADERS
11326 CONFIG_LINKS = $CONFIG_LINKS
11327 CONFIG_COMMANDS = $CONFIG_COMMANDS
11328 $ $0 $@
11330 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11333 _ACEOF
11335 case $ac_config_files in *"
11336 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11337 esac
11341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11342 # Files that config.status was made for.
11343 config_files="$ac_config_files"
11344 config_commands="$ac_config_commands"
11346 _ACEOF
11348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11349 ac_cs_usage="\
11350 \`$as_me' instantiates files and other configuration actions
11351 from templates according to the current configuration. Unless the files
11352 and actions are specified as TAGs, all are instantiated by default.
11354 Usage: $0 [OPTION]... [TAG]...
11356 -h, --help print this help, then exit
11357 -V, --version print version number and configuration settings, then exit
11358 -q, --quiet, --silent
11359 do not print progress messages
11360 -d, --debug don't remove temporary files
11361 --recheck update $as_me by reconfiguring in the same conditions
11362 --file=FILE[:TEMPLATE]
11363 instantiate the configuration file FILE
11365 Configuration files:
11366 $config_files
11368 Configuration commands:
11369 $config_commands
11371 Report bugs to the package provider."
11373 _ACEOF
11374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11375 ac_cs_version="\\
11376 LTO plugin for ld config.status 0.1
11377 configured by $0, generated by GNU Autoconf 2.64,
11378 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11380 Copyright (C) 2009 Free Software Foundation, Inc.
11381 This config.status script is free software; the Free Software Foundation
11382 gives unlimited permission to copy, distribute and modify it."
11384 ac_pwd='$ac_pwd'
11385 srcdir='$srcdir'
11386 INSTALL='$INSTALL'
11387 MKDIR_P='$MKDIR_P'
11388 AWK='$AWK'
11389 test -n "\$AWK" || AWK=awk
11390 _ACEOF
11392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11393 # The default lists apply if the user does not specify any file.
11394 ac_need_defaults=:
11395 while test $# != 0
11397 case $1 in
11398 --*=*)
11399 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11400 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11401 ac_shift=:
11404 ac_option=$1
11405 ac_optarg=$2
11406 ac_shift=shift
11408 esac
11410 case $ac_option in
11411 # Handling of the options.
11412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11413 ac_cs_recheck=: ;;
11414 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11415 $as_echo "$ac_cs_version"; exit ;;
11416 --debug | --debu | --deb | --de | --d | -d )
11417 debug=: ;;
11418 --file | --fil | --fi | --f )
11419 $ac_shift
11420 case $ac_optarg in
11421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11422 esac
11423 as_fn_append CONFIG_FILES " '$ac_optarg'"
11424 ac_need_defaults=false;;
11425 --he | --h | --help | --hel | -h )
11426 $as_echo "$ac_cs_usage"; exit ;;
11427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11429 ac_cs_silent=: ;;
11431 # This is an error.
11432 -*) as_fn_error "unrecognized option: \`$1'
11433 Try \`$0 --help' for more information." ;;
11435 *) as_fn_append ac_config_targets " $1"
11436 ac_need_defaults=false ;;
11438 esac
11439 shift
11440 done
11442 ac_configure_extra_args=
11444 if $ac_cs_silent; then
11445 exec 6>/dev/null
11446 ac_configure_extra_args="$ac_configure_extra_args --silent"
11449 _ACEOF
11450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11451 if \$ac_cs_recheck; then
11452 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11453 shift
11454 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11455 CONFIG_SHELL='$SHELL'
11456 export CONFIG_SHELL
11457 exec "\$@"
11460 _ACEOF
11461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11462 exec 5>>config.log
11464 echo
11465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11466 ## Running $as_me. ##
11467 _ASBOX
11468 $as_echo "$ac_log"
11469 } >&5
11471 _ACEOF
11472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11474 # INIT-COMMANDS
11476 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11479 # The HP-UX ksh and POSIX shell print the target directory to stdout
11480 # if CDPATH is set.
11481 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11483 sed_quote_subst='$sed_quote_subst'
11484 double_quote_subst='$double_quote_subst'
11485 delay_variable_subst='$delay_variable_subst'
11486 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11487 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11488 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11489 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11490 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11491 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11492 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11493 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11494 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11495 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11496 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11497 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11498 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11499 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11500 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11501 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11502 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11503 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11504 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11505 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11506 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11507 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11508 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11509 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11510 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11511 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11512 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11513 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11514 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11515 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11519 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11520 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11521 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11522 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11523 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11524 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11525 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11526 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11527 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11528 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11529 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11530 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11531 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11532 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11533 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11534 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"`'
11535 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11536 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11537 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11538 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11539 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11540 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11541 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11542 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11543 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11544 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11545 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11546 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11547 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11548 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11549 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11550 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11551 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11552 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11553 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11554 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11555 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11556 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11557 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11558 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11559 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11560 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11561 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11562 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11563 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11564 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11565 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11566 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11567 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11568 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11569 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11570 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11571 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11572 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11573 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11574 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11575 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11576 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11577 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11578 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11579 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11580 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11581 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11582 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11583 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11584 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11585 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11586 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11587 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11588 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11589 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11590 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11591 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11592 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11593 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11594 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11595 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11596 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11597 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11598 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11599 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11600 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11601 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11602 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11603 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11604 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11605 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11607 LTCC='$LTCC'
11608 LTCFLAGS='$LTCFLAGS'
11609 compiler='$compiler_DEFAULT'
11611 # A function that is used when there is no print builtin or printf.
11612 func_fallback_echo ()
11614 eval 'cat <<_LTECHO_EOF
11616 _LTECHO_EOF'
11619 # Quote evaled strings.
11620 for var in SHELL \
11621 ECHO \
11622 SED \
11623 GREP \
11624 EGREP \
11625 FGREP \
11626 LD \
11627 NM \
11628 LN_S \
11629 lt_SP2NL \
11630 lt_NL2SP \
11631 reload_flag \
11632 OBJDUMP \
11633 deplibs_check_method \
11634 file_magic_cmd \
11635 AR \
11636 AR_FLAGS \
11637 STRIP \
11638 RANLIB \
11639 CC \
11640 CFLAGS \
11641 compiler \
11642 lt_cv_sys_global_symbol_pipe \
11643 lt_cv_sys_global_symbol_to_cdecl \
11644 lt_cv_sys_global_symbol_to_c_name_address \
11645 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11646 lt_prog_compiler_no_builtin_flag \
11647 lt_prog_compiler_wl \
11648 lt_prog_compiler_pic \
11649 lt_prog_compiler_static \
11650 lt_cv_prog_compiler_c_o \
11651 need_locks \
11652 DSYMUTIL \
11653 NMEDIT \
11654 LIPO \
11655 OTOOL \
11656 OTOOL64 \
11657 shrext_cmds \
11658 export_dynamic_flag_spec \
11659 whole_archive_flag_spec \
11660 compiler_needs_object \
11661 with_gnu_ld \
11662 allow_undefined_flag \
11663 no_undefined_flag \
11664 hardcode_libdir_flag_spec \
11665 hardcode_libdir_flag_spec_ld \
11666 hardcode_libdir_separator \
11667 fix_srcfile_path \
11668 exclude_expsyms \
11669 include_expsyms \
11670 file_list_spec \
11671 variables_saved_for_relink \
11672 libname_spec \
11673 library_names_spec \
11674 soname_spec \
11675 install_override_mode \
11676 finish_eval \
11677 old_striplib \
11678 striplib; do
11679 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11680 *[\\\\\\\`\\"\\\$]*)
11681 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11684 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11686 esac
11687 done
11689 # Double-quote double-evaled strings.
11690 for var in reload_cmds \
11691 old_postinstall_cmds \
11692 old_postuninstall_cmds \
11693 old_archive_cmds \
11694 extract_expsyms_cmds \
11695 old_archive_from_new_cmds \
11696 old_archive_from_expsyms_cmds \
11697 archive_cmds \
11698 archive_expsym_cmds \
11699 module_cmds \
11700 module_expsym_cmds \
11701 export_symbols_cmds \
11702 prelink_cmds \
11703 postinstall_cmds \
11704 postuninstall_cmds \
11705 finish_cmds \
11706 sys_lib_search_path_spec \
11707 sys_lib_dlsearch_path_spec; do
11708 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11709 *[\\\\\\\`\\"\\\$]*)
11710 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11713 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11715 esac
11716 done
11718 ac_aux_dir='$ac_aux_dir'
11719 xsi_shell='$xsi_shell'
11720 lt_shell_append='$lt_shell_append'
11722 # See if we are running on zsh, and set the options which allow our
11723 # commands through without removal of \ escapes INIT.
11724 if test -n "\${ZSH_VERSION+set}" ; then
11725 setopt NO_GLOB_SUBST
11729 PACKAGE='$PACKAGE'
11730 VERSION='$VERSION'
11731 TIMESTAMP='$TIMESTAMP'
11732 RM='$RM'
11733 ofile='$ofile'
11738 _ACEOF
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742 # Handling of arguments.
11743 for ac_config_target in $ac_config_targets
11745 case $ac_config_target in
11746 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11747 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11748 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11750 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11751 esac
11752 done
11755 # If the user did not use the arguments to specify the items to instantiate,
11756 # then the envvar interface is used. Set only those that are not.
11757 # We use the long form for the default assignment because of an extremely
11758 # bizarre bug on SunOS 4.1.3.
11759 if $ac_need_defaults; then
11760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11764 # Have a temporary directory for convenience. Make it in the build tree
11765 # simply because there is no reason against having it here, and in addition,
11766 # creating and moving files from /tmp can sometimes cause problems.
11767 # Hook for its removal unless debugging.
11768 # Note that there is a small window in which the directory will not be cleaned:
11769 # after its creation but before its name has been assigned to `$tmp'.
11770 $debug ||
11772 tmp=
11773 trap 'exit_status=$?
11774 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11776 trap 'as_fn_exit 1' 1 2 13 15
11778 # Create a (secure) tmp directory for tmp files.
11781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11782 test -n "$tmp" && test -d "$tmp"
11783 } ||
11785 tmp=./conf$$-$RANDOM
11786 (umask 077 && mkdir "$tmp")
11787 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11789 # Set up the scripts for CONFIG_FILES section.
11790 # No need to generate them if there are no CONFIG_FILES.
11791 # This happens for instance with `./config.status config.h'.
11792 if test -n "$CONFIG_FILES"; then
11795 ac_cr=`echo X | tr X '\015'`
11796 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11797 # But we know of no other shell where ac_cr would be empty at this
11798 # point, so we can use a bashism as a fallback.
11799 if test "x$ac_cr" = x; then
11800 eval ac_cr=\$\'\\r\'
11802 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11803 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11804 ac_cs_awk_cr='\r'
11805 else
11806 ac_cs_awk_cr=$ac_cr
11809 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11810 _ACEOF
11814 echo "cat >conf$$subs.awk <<_ACEOF" &&
11815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11816 echo "_ACEOF"
11817 } >conf$$subs.sh ||
11818 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11819 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11820 ac_delim='%!_!# '
11821 for ac_last_try in false false false false false :; do
11822 . ./conf$$subs.sh ||
11823 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11825 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11826 if test $ac_delim_n = $ac_delim_num; then
11827 break
11828 elif $ac_last_try; then
11829 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11830 else
11831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11833 done
11834 rm -f conf$$subs.sh
11836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11837 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11838 _ACEOF
11839 sed -n '
11841 s/^/S["/; s/!.*/"]=/
11844 s/^[^!]*!//
11845 :repl
11846 t repl
11847 s/'"$ac_delim"'$//
11848 t delim
11851 s/\(.\{148\}\).*/\1/
11852 t more1
11853 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11856 b repl
11857 :more1
11858 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11861 s/.\{148\}//
11862 t nl
11863 :delim
11865 s/\(.\{148\}\).*/\1/
11866 t more2
11867 s/["\\]/\\&/g; s/^/"/; s/$/"/
11870 :more2
11871 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11874 s/.\{148\}//
11875 t delim
11876 ' <conf$$subs.awk | sed '
11877 /^[^""]/{
11879 s/\n//
11881 ' >>$CONFIG_STATUS || ac_write_fail=1
11882 rm -f conf$$subs.awk
11883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11884 _ACAWK
11885 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11886 for (key in S) S_is_set[key] = 1
11887 FS = "\a"
11891 line = $ 0
11892 nfields = split(line, field, "@")
11893 substed = 0
11894 len = length(field[1])
11895 for (i = 2; i < nfields; i++) {
11896 key = field[i]
11897 keylen = length(key)
11898 if (S_is_set[key]) {
11899 value = S[key]
11900 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11901 len += length(value) + length(field[++i])
11902 substed = 1
11903 } else
11904 len += 1 + keylen
11907 print line
11910 _ACAWK
11911 _ACEOF
11912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11913 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11914 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11915 else
11917 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11918 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11919 _ACEOF
11921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11923 # trailing colons and then remove the whole line if VPATH becomes empty
11924 # (actually we leave an empty line to preserve line numbers).
11925 if test "x$srcdir" = x.; then
11926 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11927 s/:*\$(srcdir):*/:/
11928 s/:*\${srcdir}:*/:/
11929 s/:*@srcdir@:*/:/
11930 s/^\([^=]*=[ ]*\):*/\1/
11931 s/:*$//
11932 s/^[^=]*=[ ]*$//
11936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11937 fi # test -n "$CONFIG_FILES"
11940 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11941 shift
11942 for ac_tag
11944 case $ac_tag in
11945 :[FHLC]) ac_mode=$ac_tag; continue;;
11946 esac
11947 case $ac_mode$ac_tag in
11948 :[FHL]*:*);;
11949 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11950 :[FH]-) ac_tag=-:-;;
11951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11952 esac
11953 ac_save_IFS=$IFS
11954 IFS=:
11955 set x $ac_tag
11956 IFS=$ac_save_IFS
11957 shift
11958 ac_file=$1
11959 shift
11961 case $ac_mode in
11962 :L) ac_source=$1;;
11963 :[FH])
11964 ac_file_inputs=
11965 for ac_f
11967 case $ac_f in
11968 -) ac_f="$tmp/stdin";;
11969 *) # Look for the file first in the build tree, then in the source tree
11970 # (if the path is not absolute). The absolute path cannot be DOS-style,
11971 # because $ac_f cannot contain `:'.
11972 test -f "$ac_f" ||
11973 case $ac_f in
11974 [\\/$]*) false;;
11975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11976 esac ||
11977 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11978 esac
11979 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11980 as_fn_append ac_file_inputs " '$ac_f'"
11981 done
11983 # Let's still pretend it is `configure' which instantiates (i.e., don't
11984 # use $as_me), people would be surprised to read:
11985 # /* config.h. Generated by config.status. */
11986 configure_input='Generated from '`
11987 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11988 `' by configure.'
11989 if test x"$ac_file" != x-; then
11990 configure_input="$ac_file. $configure_input"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11992 $as_echo "$as_me: creating $ac_file" >&6;}
11994 # Neutralize special characters interpreted by sed in replacement strings.
11995 case $configure_input in #(
11996 *\&* | *\|* | *\\* )
11997 ac_sed_conf_input=`$as_echo "$configure_input" |
11998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11999 *) ac_sed_conf_input=$configure_input;;
12000 esac
12002 case $ac_tag in
12003 *:-:* | *:-) cat >"$tmp/stdin" \
12004 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12005 esac
12007 esac
12009 ac_dir=`$as_dirname -- "$ac_file" ||
12010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12011 X"$ac_file" : 'X\(//\)[^/]' \| \
12012 X"$ac_file" : 'X\(//\)$' \| \
12013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12014 $as_echo X"$ac_file" |
12015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12016 s//\1/
12019 /^X\(\/\/\)[^/].*/{
12020 s//\1/
12023 /^X\(\/\/\)$/{
12024 s//\1/
12027 /^X\(\/\).*/{
12028 s//\1/
12031 s/.*/./; q'`
12032 as_dir="$ac_dir"; as_fn_mkdir_p
12033 ac_builddir=.
12035 case "$ac_dir" in
12036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12039 # A ".." for each directory in $ac_dir_suffix.
12040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12041 case $ac_top_builddir_sub in
12042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12044 esac ;;
12045 esac
12046 ac_abs_top_builddir=$ac_pwd
12047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12048 # for backward compatibility:
12049 ac_top_builddir=$ac_top_build_prefix
12051 case $srcdir in
12052 .) # We are building in place.
12053 ac_srcdir=.
12054 ac_top_srcdir=$ac_top_builddir_sub
12055 ac_abs_top_srcdir=$ac_pwd ;;
12056 [\\/]* | ?:[\\/]* ) # Absolute name.
12057 ac_srcdir=$srcdir$ac_dir_suffix;
12058 ac_top_srcdir=$srcdir
12059 ac_abs_top_srcdir=$srcdir ;;
12060 *) # Relative name.
12061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12062 ac_top_srcdir=$ac_top_build_prefix$srcdir
12063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12064 esac
12065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12068 case $ac_mode in
12071 # CONFIG_FILE
12074 case $INSTALL in
12075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12076 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12077 esac
12078 ac_MKDIR_P=$MKDIR_P
12079 case $MKDIR_P in
12080 [\\/$]* | ?:[\\/]* ) ;;
12081 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12082 esac
12083 _ACEOF
12085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12086 # If the template does not know about datarootdir, expand it.
12087 # FIXME: This hack should be removed a few years after 2.60.
12088 ac_datarootdir_hack=; ac_datarootdir_seen=
12089 ac_sed_dataroot='
12090 /datarootdir/ {
12094 /@datadir@/p
12095 /@docdir@/p
12096 /@infodir@/p
12097 /@localedir@/p
12098 /@mandir@/p'
12099 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12100 *datarootdir*) ac_datarootdir_seen=yes;;
12101 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12103 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12104 _ACEOF
12105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106 ac_datarootdir_hack='
12107 s&@datadir@&$datadir&g
12108 s&@docdir@&$docdir&g
12109 s&@infodir@&$infodir&g
12110 s&@localedir@&$localedir&g
12111 s&@mandir@&$mandir&g
12112 s&\\\${datarootdir}&$datarootdir&g' ;;
12113 esac
12114 _ACEOF
12116 # Neutralize VPATH when `$srcdir' = `.'.
12117 # Shell code in configure.ac might set extrasub.
12118 # FIXME: do we really want to maintain this feature?
12119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12120 ac_sed_extra="$ac_vpsub
12121 $extrasub
12122 _ACEOF
12123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12126 s|@configure_input@|$ac_sed_conf_input|;t t
12127 s&@top_builddir@&$ac_top_builddir_sub&;t t
12128 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12129 s&@srcdir@&$ac_srcdir&;t t
12130 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12131 s&@top_srcdir@&$ac_top_srcdir&;t t
12132 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12133 s&@builddir@&$ac_builddir&;t t
12134 s&@abs_builddir@&$ac_abs_builddir&;t t
12135 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12136 s&@INSTALL@&$ac_INSTALL&;t t
12137 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12138 $ac_datarootdir_hack
12140 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12141 || as_fn_error "could not create $ac_file" "$LINENO" 5
12143 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12144 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12145 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12147 which seems to be undefined. Please make sure it is defined." >&5
12148 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12149 which seems to be undefined. Please make sure it is defined." >&2;}
12151 rm -f "$tmp/stdin"
12152 case $ac_file in
12153 -) cat "$tmp/out" && rm -f "$tmp/out";;
12154 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12155 esac \
12156 || as_fn_error "could not create $ac_file" "$LINENO" 5
12160 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12161 $as_echo "$as_me: executing $ac_file commands" >&6;}
12163 esac
12166 case $ac_file$ac_mode in
12167 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12168 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12169 # are listed without --file. Let's play safe and only enable the eval
12170 # if we detect the quoting.
12171 case $CONFIG_FILES in
12172 *\'*) eval set x "$CONFIG_FILES" ;;
12173 *) set x $CONFIG_FILES ;;
12174 esac
12175 shift
12176 for mf
12178 # Strip MF so we end up with the name of the file.
12179 mf=`echo "$mf" | sed -e 's/:.*$//'`
12180 # Check whether this is an Automake generated Makefile or not.
12181 # We used to match only the files named `Makefile.in', but
12182 # some people rename them; so instead we look at the file content.
12183 # Grep'ing the first line is not enough: some people post-process
12184 # each Makefile.in and add a new line on top of each file to say so.
12185 # Grep'ing the whole file is not good either: AIX grep has a line
12186 # limit of 2048, but all sed's we know have understand at least 4000.
12187 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12188 dirpart=`$as_dirname -- "$mf" ||
12189 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12190 X"$mf" : 'X\(//\)[^/]' \| \
12191 X"$mf" : 'X\(//\)$' \| \
12192 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12193 $as_echo X"$mf" |
12194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12195 s//\1/
12198 /^X\(\/\/\)[^/].*/{
12199 s//\1/
12202 /^X\(\/\/\)$/{
12203 s//\1/
12206 /^X\(\/\).*/{
12207 s//\1/
12210 s/.*/./; q'`
12211 else
12212 continue
12214 # Extract the definition of DEPDIR, am__include, and am__quote
12215 # from the Makefile without running `make'.
12216 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12217 test -z "$DEPDIR" && continue
12218 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12219 test -z "am__include" && continue
12220 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12221 # When using ansi2knr, U may be empty or an underscore; expand it
12222 U=`sed -n 's/^U = //p' < "$mf"`
12223 # Find all dependency output files, they are included files with
12224 # $(DEPDIR) in their names. We invoke sed twice because it is the
12225 # simplest approach to changing $(DEPDIR) to its actual value in the
12226 # expansion.
12227 for file in `sed -n "
12228 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12229 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12230 # Make sure the directory exists.
12231 test -f "$dirpart/$file" && continue
12232 fdir=`$as_dirname -- "$file" ||
12233 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12234 X"$file" : 'X\(//\)[^/]' \| \
12235 X"$file" : 'X\(//\)$' \| \
12236 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12237 $as_echo X"$file" |
12238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12239 s//\1/
12242 /^X\(\/\/\)[^/].*/{
12243 s//\1/
12246 /^X\(\/\/\)$/{
12247 s//\1/
12250 /^X\(\/\).*/{
12251 s//\1/
12254 s/.*/./; q'`
12255 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12256 # echo "creating $dirpart/$file"
12257 echo '# dummy' > "$dirpart/$file"
12258 done
12259 done
12262 "libtool":C)
12264 # See if we are running on zsh, and set the options which allow our
12265 # commands through without removal of \ escapes.
12266 if test -n "${ZSH_VERSION+set}" ; then
12267 setopt NO_GLOB_SUBST
12270 cfgfile="${ofile}T"
12271 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12272 $RM "$cfgfile"
12274 cat <<_LT_EOF >> "$cfgfile"
12275 #! $SHELL
12277 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12278 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12279 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12280 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12282 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12283 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12284 # Written by Gordon Matzigkeit, 1996
12286 # This file is part of GNU Libtool.
12288 # GNU Libtool is free software; you can redistribute it and/or
12289 # modify it under the terms of the GNU General Public License as
12290 # published by the Free Software Foundation; either version 2 of
12291 # the License, or (at your option) any later version.
12293 # As a special exception to the GNU General Public License,
12294 # if you distribute this file as part of a program or library that
12295 # is built using GNU Libtool, you may include this file under the
12296 # same distribution terms that you use for the rest of that program.
12298 # GNU Libtool is distributed in the hope that it will be useful,
12299 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12300 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12301 # GNU General Public License for more details.
12303 # You should have received a copy of the GNU General Public License
12304 # along with GNU Libtool; see the file COPYING. If not, a copy
12305 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12306 # obtained by writing to the Free Software Foundation, Inc.,
12307 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12310 # The names of the tagged configurations supported by this script.
12311 available_tags=""
12313 # ### BEGIN LIBTOOL CONFIG
12315 # Which release of libtool.m4 was used?
12316 macro_version=$macro_version
12317 macro_revision=$macro_revision
12319 # Whether or not to build shared libraries.
12320 build_libtool_libs=$enable_shared
12322 # Whether or not to build static libraries.
12323 build_old_libs=$enable_static
12325 # What type of objects to build.
12326 pic_mode=$pic_mode
12328 # Whether or not to optimize for fast installation.
12329 fast_install=$enable_fast_install
12331 # Shell to use when invoking shell scripts.
12332 SHELL=$lt_SHELL
12334 # An echo program that protects backslashes.
12335 ECHO=$lt_ECHO
12337 # The host system.
12338 host_alias=$host_alias
12339 host=$host
12340 host_os=$host_os
12342 # The build system.
12343 build_alias=$build_alias
12344 build=$build
12345 build_os=$build_os
12347 # A sed program that does not truncate output.
12348 SED=$lt_SED
12350 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12351 Xsed="\$SED -e 1s/^X//"
12353 # A grep program that handles long lines.
12354 GREP=$lt_GREP
12356 # An ERE matcher.
12357 EGREP=$lt_EGREP
12359 # A literal string matcher.
12360 FGREP=$lt_FGREP
12362 # A BSD- or MS-compatible name lister.
12363 NM=$lt_NM
12365 # Whether we need soft or hard links.
12366 LN_S=$lt_LN_S
12368 # What is the maximum length of a command?
12369 max_cmd_len=$max_cmd_len
12371 # Object file suffix (normally "o").
12372 objext=$ac_objext
12374 # Executable file suffix (normally "").
12375 exeext=$exeext
12377 # whether the shell understands "unset".
12378 lt_unset=$lt_unset
12380 # turn spaces into newlines.
12381 SP2NL=$lt_lt_SP2NL
12383 # turn newlines into spaces.
12384 NL2SP=$lt_lt_NL2SP
12386 # An object symbol dumper.
12387 OBJDUMP=$lt_OBJDUMP
12389 # Method to check whether dependent libraries are shared objects.
12390 deplibs_check_method=$lt_deplibs_check_method
12392 # Command to use when deplibs_check_method == "file_magic".
12393 file_magic_cmd=$lt_file_magic_cmd
12395 # The archiver.
12396 AR=$lt_AR
12397 AR_FLAGS=$lt_AR_FLAGS
12399 # A symbol stripping program.
12400 STRIP=$lt_STRIP
12402 # Commands used to install an old-style archive.
12403 RANLIB=$lt_RANLIB
12404 old_postinstall_cmds=$lt_old_postinstall_cmds
12405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12407 # Whether to use a lock for old archive extraction.
12408 lock_old_archive_extraction=$lock_old_archive_extraction
12410 # A C compiler.
12411 LTCC=$lt_CC
12413 # LTCC compiler flags.
12414 LTCFLAGS=$lt_CFLAGS
12416 # Take the output of nm and produce a listing of raw symbols and C names.
12417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12419 # Transform the output of nm in a proper C declaration.
12420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12422 # Transform the output of nm in a C name address pair.
12423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12425 # Transform the output of nm in a C name address pair when lib prefix is needed.
12426 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12428 # The name of the directory that contains temporary libtool files.
12429 objdir=$objdir
12431 # Used to examine libraries when file_magic_cmd begins with "file".
12432 MAGIC_CMD=$MAGIC_CMD
12434 # Must we lock files when doing compilation?
12435 need_locks=$lt_need_locks
12437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12438 DSYMUTIL=$lt_DSYMUTIL
12440 # Tool to change global to local symbols on Mac OS X.
12441 NMEDIT=$lt_NMEDIT
12443 # Tool to manipulate fat objects and archives on Mac OS X.
12444 LIPO=$lt_LIPO
12446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12447 OTOOL=$lt_OTOOL
12449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12450 OTOOL64=$lt_OTOOL64
12452 # Old archive suffix (normally "a").
12453 libext=$libext
12455 # Shared library suffix (normally ".so").
12456 shrext_cmds=$lt_shrext_cmds
12458 # The commands to extract the exported symbol list from a shared archive.
12459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12461 # Variables whose values should be saved in libtool wrapper scripts and
12462 # restored at link time.
12463 variables_saved_for_relink=$lt_variables_saved_for_relink
12465 # Do we need the "lib" prefix for modules?
12466 need_lib_prefix=$need_lib_prefix
12468 # Do we need a version for libraries?
12469 need_version=$need_version
12471 # Library versioning type.
12472 version_type=$version_type
12474 # Shared library runtime path variable.
12475 runpath_var=$runpath_var
12477 # Shared library path variable.
12478 shlibpath_var=$shlibpath_var
12480 # Is shlibpath searched before the hard-coded library search path?
12481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12483 # Format of library name prefix.
12484 libname_spec=$lt_libname_spec
12486 # List of archive names. First name is the real one, the rest are links.
12487 # The last name is the one that the linker finds with -lNAME
12488 library_names_spec=$lt_library_names_spec
12490 # The coded name of the library, if different from the real name.
12491 soname_spec=$lt_soname_spec
12493 # Permission mode override for installation of shared libraries.
12494 install_override_mode=$lt_install_override_mode
12496 # Command to use after installation of a shared archive.
12497 postinstall_cmds=$lt_postinstall_cmds
12499 # Command to use after uninstallation of a shared archive.
12500 postuninstall_cmds=$lt_postuninstall_cmds
12502 # Commands used to finish a libtool library installation in a directory.
12503 finish_cmds=$lt_finish_cmds
12505 # As "finish_cmds", except a single script fragment to be evaled but
12506 # not shown.
12507 finish_eval=$lt_finish_eval
12509 # Whether we should hardcode library paths into libraries.
12510 hardcode_into_libs=$hardcode_into_libs
12512 # Compile-time system search path for libraries.
12513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12515 # Run-time system search path for libraries.
12516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12518 # Whether dlopen is supported.
12519 dlopen_support=$enable_dlopen
12521 # Whether dlopen of programs is supported.
12522 dlopen_self=$enable_dlopen_self
12524 # Whether dlopen of statically linked programs is supported.
12525 dlopen_self_static=$enable_dlopen_self_static
12527 # Commands to strip libraries.
12528 old_striplib=$lt_old_striplib
12529 striplib=$lt_striplib
12532 # The linker used to build libraries.
12533 LD=$lt_LD
12535 # How to create reloadable object files.
12536 reload_flag=$lt_reload_flag
12537 reload_cmds=$lt_reload_cmds
12539 # Commands used to build an old-style archive.
12540 old_archive_cmds=$lt_old_archive_cmds
12542 # A language specific compiler.
12543 CC=$lt_compiler
12545 # Is the compiler the GNU compiler?
12546 with_gcc=$GCC
12548 # Compiler flag to turn off builtin functions.
12549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12551 # How to pass a linker flag through the compiler.
12552 wl=$lt_lt_prog_compiler_wl
12554 # Additional compiler flags for building library objects.
12555 pic_flag=$lt_lt_prog_compiler_pic
12557 # Compiler flag to prevent dynamic linking.
12558 link_static_flag=$lt_lt_prog_compiler_static
12560 # Does compiler simultaneously support -c and -o options?
12561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12563 # Whether or not to add -lc for building shared libraries.
12564 build_libtool_need_lc=$archive_cmds_need_lc
12566 # Whether or not to disallow shared libs when runtime libs are static.
12567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12569 # Compiler flag to allow reflexive dlopens.
12570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12572 # Compiler flag to generate shared objects directly from archives.
12573 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12575 # Whether the compiler copes with passing no objects directly.
12576 compiler_needs_object=$lt_compiler_needs_object
12578 # Create an old-style archive from a shared archive.
12579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12581 # Create a temporary old-style archive to link instead of a shared archive.
12582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12584 # Commands used to build a shared archive.
12585 archive_cmds=$lt_archive_cmds
12586 archive_expsym_cmds=$lt_archive_expsym_cmds
12588 # Commands used to build a loadable module if different from building
12589 # a shared archive.
12590 module_cmds=$lt_module_cmds
12591 module_expsym_cmds=$lt_module_expsym_cmds
12593 # Whether we are building with GNU ld or not.
12594 with_gnu_ld=$lt_with_gnu_ld
12596 # Flag that allows shared libraries with undefined symbols to be built.
12597 allow_undefined_flag=$lt_allow_undefined_flag
12599 # Flag that enforces no undefined symbols.
12600 no_undefined_flag=$lt_no_undefined_flag
12602 # Flag to hardcode \$libdir into a binary during linking.
12603 # This must work even if \$libdir does not exist
12604 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12606 # If ld is used when linking, flag to hardcode \$libdir into a binary
12607 # during linking. This must work even if \$libdir does not exist.
12608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12610 # Whether we need a single "-rpath" flag with a separated argument.
12611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12613 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12614 # DIR into the resulting binary.
12615 hardcode_direct=$hardcode_direct
12617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12618 # DIR into the resulting binary and the resulting library dependency is
12619 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12620 # library is relocated.
12621 hardcode_direct_absolute=$hardcode_direct_absolute
12623 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12624 # into the resulting binary.
12625 hardcode_minus_L=$hardcode_minus_L
12627 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12628 # into the resulting binary.
12629 hardcode_shlibpath_var=$hardcode_shlibpath_var
12631 # Set to "yes" if building a shared library automatically hardcodes DIR
12632 # into the library and all subsequent libraries and executables linked
12633 # against it.
12634 hardcode_automatic=$hardcode_automatic
12636 # Set to yes if linker adds runtime paths of dependent libraries
12637 # to runtime path list.
12638 inherit_rpath=$inherit_rpath
12640 # Whether libtool must link a program against all its dependency libraries.
12641 link_all_deplibs=$link_all_deplibs
12643 # Fix the shell variable \$srcfile for the compiler.
12644 fix_srcfile_path=$lt_fix_srcfile_path
12646 # Set to "yes" if exported symbols are required.
12647 always_export_symbols=$always_export_symbols
12649 # The commands to list exported symbols.
12650 export_symbols_cmds=$lt_export_symbols_cmds
12652 # Symbols that should not be listed in the preloaded symbols.
12653 exclude_expsyms=$lt_exclude_expsyms
12655 # Symbols that must always be exported.
12656 include_expsyms=$lt_include_expsyms
12658 # Commands necessary for linking programs (against libraries) with templates.
12659 prelink_cmds=$lt_prelink_cmds
12661 # Specify filename containing input files.
12662 file_list_spec=$lt_file_list_spec
12664 # How to hardcode a shared library path into an executable.
12665 hardcode_action=$hardcode_action
12667 # ### END LIBTOOL CONFIG
12669 _LT_EOF
12671 case $host_os in
12672 aix3*)
12673 cat <<\_LT_EOF >> "$cfgfile"
12674 # AIX sometimes has problems with the GCC collect2 program. For some
12675 # reason, if we set the COLLECT_NAMES environment variable, the problems
12676 # vanish in a puff of smoke.
12677 if test "X${COLLECT_NAMES+set}" != Xset; then
12678 COLLECT_NAMES=
12679 export COLLECT_NAMES
12681 _LT_EOF
12683 esac
12686 ltmain="$ac_aux_dir/ltmain.sh"
12689 # We use sed instead of cat because bash on DJGPP gets confused if
12690 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12691 # text mode, it properly converts lines to CR/LF. This bash problem
12692 # is reportedly fixed, but why not run on old versions too?
12693 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12694 || (rm -f "$cfgfile"; exit 1)
12696 case $xsi_shell in
12697 yes)
12698 cat << \_LT_EOF >> "$cfgfile"
12700 # func_dirname file append nondir_replacement
12701 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12702 # otherwise set result to NONDIR_REPLACEMENT.
12703 func_dirname ()
12705 case ${1} in
12706 */*) func_dirname_result="${1%/*}${2}" ;;
12707 * ) func_dirname_result="${3}" ;;
12708 esac
12711 # func_basename file
12712 func_basename ()
12714 func_basename_result="${1##*/}"
12717 # func_dirname_and_basename file append nondir_replacement
12718 # perform func_basename and func_dirname in a single function
12719 # call:
12720 # dirname: Compute the dirname of FILE. If nonempty,
12721 # add APPEND to the result, otherwise set result
12722 # to NONDIR_REPLACEMENT.
12723 # value returned in "$func_dirname_result"
12724 # basename: Compute filename of FILE.
12725 # value retuned in "$func_basename_result"
12726 # Implementation must be kept synchronized with func_dirname
12727 # and func_basename. For efficiency, we do not delegate to
12728 # those functions but instead duplicate the functionality here.
12729 func_dirname_and_basename ()
12731 case ${1} in
12732 */*) func_dirname_result="${1%/*}${2}" ;;
12733 * ) func_dirname_result="${3}" ;;
12734 esac
12735 func_basename_result="${1##*/}"
12738 # func_stripname prefix suffix name
12739 # strip PREFIX and SUFFIX off of NAME.
12740 # PREFIX and SUFFIX must not contain globbing or regex special
12741 # characters, hashes, percent signs, but SUFFIX may contain a leading
12742 # dot (in which case that matches only a dot).
12743 func_stripname ()
12745 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12746 # positional parameters, so assign one to ordinary parameter first.
12747 func_stripname_result=${3}
12748 func_stripname_result=${func_stripname_result#"${1}"}
12749 func_stripname_result=${func_stripname_result%"${2}"}
12752 # func_opt_split
12753 func_opt_split ()
12755 func_opt_split_opt=${1%%=*}
12756 func_opt_split_arg=${1#*=}
12759 # func_lo2o object
12760 func_lo2o ()
12762 case ${1} in
12763 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12764 *) func_lo2o_result=${1} ;;
12765 esac
12768 # func_xform libobj-or-source
12769 func_xform ()
12771 func_xform_result=${1%.*}.lo
12774 # func_arith arithmetic-term...
12775 func_arith ()
12777 func_arith_result=$(( $* ))
12780 # func_len string
12781 # STRING may not start with a hyphen.
12782 func_len ()
12784 func_len_result=${#1}
12787 _LT_EOF
12789 *) # Bourne compatible functions.
12790 cat << \_LT_EOF >> "$cfgfile"
12792 # func_dirname file append nondir_replacement
12793 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12794 # otherwise set result to NONDIR_REPLACEMENT.
12795 func_dirname ()
12797 # Extract subdirectory from the argument.
12798 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
12799 if test "X$func_dirname_result" = "X${1}"; then
12800 func_dirname_result="${3}"
12801 else
12802 func_dirname_result="$func_dirname_result${2}"
12806 # func_basename file
12807 func_basename ()
12809 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
12813 # func_stripname prefix suffix name
12814 # strip PREFIX and SUFFIX off of NAME.
12815 # PREFIX and SUFFIX must not contain globbing or regex special
12816 # characters, hashes, percent signs, but SUFFIX may contain a leading
12817 # dot (in which case that matches only a dot).
12818 # func_strip_suffix prefix name
12819 func_stripname ()
12821 case ${2} in
12822 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12823 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12824 esac
12827 # sed scripts:
12828 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12829 my_sed_long_arg='1s/^-[^=]*=//'
12831 # func_opt_split
12832 func_opt_split ()
12834 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12835 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
12838 # func_lo2o object
12839 func_lo2o ()
12841 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
12844 # func_xform libobj-or-source
12845 func_xform ()
12847 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
12850 # func_arith arithmetic-term...
12851 func_arith ()
12853 func_arith_result=`expr "$@"`
12856 # func_len string
12857 # STRING may not start with a hyphen.
12858 func_len ()
12860 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12863 _LT_EOF
12864 esac
12866 case $lt_shell_append in
12867 yes)
12868 cat << \_LT_EOF >> "$cfgfile"
12870 # func_append var value
12871 # Append VALUE to the end of shell variable VAR.
12872 func_append ()
12874 eval "$1+=\$2"
12876 _LT_EOF
12879 cat << \_LT_EOF >> "$cfgfile"
12881 # func_append var value
12882 # Append VALUE to the end of shell variable VAR.
12883 func_append ()
12885 eval "$1=\$$1\$2"
12888 _LT_EOF
12890 esac
12893 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12894 || (rm -f "$cfgfile"; exit 1)
12896 mv -f "$cfgfile" "$ofile" ||
12897 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12898 chmod +x "$ofile"
12902 esac
12903 done # for ac_tag
12906 as_fn_exit 0
12907 _ACEOF
12908 ac_clean_files=$ac_clean_files_save
12910 test $ac_write_fail = 0 ||
12911 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12914 # configure is writing to config.log, and then calls config.status.
12915 # config.status does its own redirection, appending to config.log.
12916 # Unfortunately, on DOS this fails, as config.log is still kept open
12917 # by configure, so config.status won't be able to write to it; its
12918 # output is simply discarded. So we exec the FD to /dev/null,
12919 # effectively closing config.log, so it can be properly (re)opened and
12920 # appended to by config.status. When coming back to configure, we
12921 # need to make the FD available again.
12922 if test "$no_create" != yes; then
12923 ac_cs_success=:
12924 ac_config_status_args=
12925 test "$silent" = yes &&
12926 ac_config_status_args="$ac_config_status_args --quiet"
12927 exec 5>/dev/null
12928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12929 exec 5>>config.log
12930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12931 # would make configure fail if this is the last instruction.
12932 $ac_cs_success || as_fn_exit $?
12934 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12936 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}