Fix change log
[official-gcc.git] / lto-plugin / configure
blob9a53cea2c78785fdac4832317515bc1e91312d1c
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 LTO_FORMAT
605 target_noncanonical
607 OTOOL64
608 OTOOL
609 LIPO
610 NMEDIT
611 DSYMUTIL
612 RANLIB
614 OBJDUMP
615 LN_S
617 ac_ct_DUMPBIN
618 DUMPBIN
620 FGREP
621 EGREP
622 GREP
624 LIBTOOL
625 LIBELFINC
626 LIBELFLIBS
627 am__fastdepCC_FALSE
628 am__fastdepCC_TRUE
629 CCDEPMODE
630 AMDEPBACKSLASH
631 AMDEP_FALSE
632 AMDEP_TRUE
633 am__quote
634 am__include
635 DEPDIR
636 OBJEXT
637 EXEEXT
638 ac_ct_CC
639 CPPFLAGS
640 LDFLAGS
641 CFLAGS
643 MAINT
644 MAINTAINER_MODE_FALSE
645 MAINTAINER_MODE_TRUE
646 am__untar
647 am__tar
648 AMTAR
649 am__leading_dot
650 SET_MAKE
652 mkdir_p
653 MKDIR_P
654 INSTALL_STRIP_PROGRAM
655 STRIP
656 install_sh
657 MAKEINFO
658 AUTOHEADER
659 AUTOMAKE
660 AUTOCONF
661 ACLOCAL
662 VERSION
663 PACKAGE
664 CYGPATH_W
665 am__isrc
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 target_subdir
670 host_subdir
671 build_subdir
672 build_libsubdir
673 target_os
674 target_vendor
675 target_cpu
676 target
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 target_alias
686 host_alias
687 build_alias
688 LIBS
689 ECHO_T
690 ECHO_N
691 ECHO_C
692 DEFS
693 mandir
694 localedir
695 libdir
696 psdir
697 pdfdir
698 dvidir
699 htmldir
700 infodir
701 docdir
702 oldincludedir
703 includedir
704 localstatedir
705 sharedstatedir
706 sysconfdir
707 datadir
708 datarootdir
709 libexecdir
710 sbindir
711 bindir
712 program_transform_name
713 prefix
714 exec_prefix
715 PACKAGE_URL
716 PACKAGE_BUGREPORT
717 PACKAGE_STRING
718 PACKAGE_VERSION
719 PACKAGE_TARNAME
720 PACKAGE_NAME
721 PATH_SEPARATOR
722 SHELL'
723 ac_subst_files=''
724 ac_user_opts='
725 enable_option_checking
726 with_build_libsubdir
727 enable_maintainer_mode
728 enable_dependency_tracking
729 enable_largefile
730 enable_shared
731 enable_static
732 with_pic
733 enable_fast_install
734 with_gnu_ld
735 enable_libtool_lock
737 ac_precious_vars='build_alias
738 host_alias
739 target_alias
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 LIBELFLIBS
746 LIBELFINC
747 CPP'
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
798 ac_prev=
799 ac_dashdash=
800 for ac_option
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
809 case $ac_option in
810 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *) ac_optarg=yes ;;
812 esac
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
818 ac_dashdash=yes ;;
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 ac_prev=bindir ;;
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823 bindir=$ac_optarg ;;
825 -build | --build | --buil | --bui | --bu)
826 ac_prev=build_alias ;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev=cache_file ;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file=$ac_optarg ;;
837 --config-cache | -C)
838 cache_file=config.cache ;;
840 -datadir | --datadir | --datadi | --datad)
841 ac_prev=datadir ;;
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev=datarootdir ;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856 as_fn_error "invalid feature name: $ac_useropt"
857 ac_useropt_orig=$ac_useropt
858 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
861 "enable_$ac_useropt"
862 "*) ;;
863 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep=', ';;
865 esac
866 eval enable_$ac_useropt=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
878 -enable-* | --enable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=\$ac_optarg ;;
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev=exec_prefix ;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix=$ac_optarg ;;
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
905 with_gas=yes ;;
907 -help | --help | --hel | --he | -h)
908 ac_init_help=long ;;
909 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910 ac_init_help=recursive ;;
911 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912 ac_init_help=short ;;
914 -host | --host | --hos | --ho)
915 ac_prev=host_alias ;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias=$ac_optarg ;;
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920 ac_prev=htmldir ;;
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922 | --ht=*)
923 htmldir=$ac_optarg ;;
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev=includedir ;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir=$ac_optarg ;;
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
933 ac_prev=infodir ;;
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir=$ac_optarg ;;
937 -libdir | --libdir | --libdi | --libd)
938 ac_prev=libdir ;;
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
940 libdir=$ac_optarg ;;
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev=libexecdir ;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir=$ac_optarg ;;
949 -localedir | --localedir | --localedi | --localed | --locale)
950 ac_prev=localedir ;;
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir=$ac_optarg ;;
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev=localstatedir ;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir=$ac_optarg ;;
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962 ac_prev=mandir ;;
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 mandir=$ac_optarg ;;
966 -nfp | --nfp | --nf)
967 # Obsolete; use --without-fp.
968 with_fp=no ;;
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
972 no_create=yes ;;
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976 no_recursion=yes ;;
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev=oldincludedir ;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir=$ac_optarg ;;
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988 ac_prev=prefix ;;
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990 prefix=$ac_optarg ;;
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev=program_prefix ;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix=$ac_optarg ;;
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev=program_suffix ;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix=$ac_optarg ;;
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev=program_transform_name ;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name=$ac_optarg ;;
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024 ac_prev=pdfdir ;;
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir=$ac_optarg ;;
1028 -psdir | --psdir | --psdi | --psd | --ps)
1029 ac_prev=psdir ;;
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031 psdir=$ac_optarg ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1035 silent=yes ;;
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1132 -*) as_fn_error "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information."
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 esac
1155 done
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error "missing argument to $ac_option"
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212 test "$silent" = yes && exec 6>/dev/null
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error "working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error "pwd does not report name of working directory"
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1241 /^X\(\/\/\)$/{
1242 s//\1/
1245 /^X\(\/\).*/{
1246 s//\1/
1249 s/.*/./; q'`
1250 srcdir=$ac_confdir
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 srcdir=..
1254 else
1255 ac_srcdir_defaulted=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264 pwd)`
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 srcdir=.
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1272 case $srcdir in
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 esac
1275 for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280 done
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1288 cat <<_ACEOF
1289 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1298 Configuration:
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 [PREFIX]
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1342 _ACEOF
1344 cat <<\_ACEOF
1346 Program names:
1347 --program-prefix=PREFIX prepend PREFIX to installed program names
1348 --program-suffix=SUFFIX append SUFFIX to installed program names
1349 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351 System types:
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 --target=TARGET configure for building compilers for TARGET [HOST]
1355 _ACEOF
1358 if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1361 esac
1362 cat <<\_ACEOF
1364 Optional Features:
1365 --disable-option-checking ignore unrecognized --enable/--with options
1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1368 --enable-maintainer-mode enable make rules and dependencies not useful
1369 (and sometimes confusing) to the casual installer
1370 --disable-dependency-tracking speeds up one-time build
1371 --enable-dependency-tracking do not reject slow dependency extractors
1372 --disable-largefile omit support for large files
1373 --enable-shared[=PKGS] build shared libraries [default=yes]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-libtool-lock avoid locking (might break parallel builds)
1379 Optional Packages:
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-build-libsubdir=DIR Directory where to find libraries for build system
1383 --with-pic try to use only PIC/non-PIC objects [default=use
1384 both]
1385 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1387 Some influential environment variables:
1388 CC C compiler command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1391 nonstandard directory <lib dir>
1392 LIBS libraries to pass to the linker, e.g. -l<library>
1393 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1394 you have headers in a nonstandard directory <include dir>
1395 LIBELFLIBS How to link libelf
1396 LIBELFINC How to find libelf include files
1397 CPP C preprocessor
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1402 Report bugs to the package provider.
1403 _ACEOF
1404 ac_status=$?
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
1413 ac_builddir=.
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 LTO plugin for ld configure 0.1
1466 generated by GNU Autoconf 2.64
1468 Copyright (C) 2009 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472 exit
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile ()
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1487 case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1505 ac_retval=0
1506 else
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1510 ac_retval=1
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1515 } # ac_fn_c_try_compile
1517 # ac_fn_c_try_link LINENO
1518 # -----------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_link ()
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext conftest$ac_exeext
1524 if { { ac_try="$ac_link"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_link") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest$ac_exeext && {
1543 test "$cross_compiling" = yes ||
1544 $as_test_x conftest$ac_exeext
1545 }; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1551 ac_retval=1
1553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555 # interfere with the next link command; also delete a directory that is
1556 # left behind by Apple's compiler. We do this before executing the actions.
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 return $ac_retval
1561 } # ac_fn_c_try_link
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1574 else
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1578 #include <$2>
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"; then :
1581 eval "$3=yes"
1582 else
1583 eval "$3=no"
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 } # ac_fn_c_check_header_compile
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } >/dev/null && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627 return $ac_retval
1629 } # ac_fn_c_try_cpp
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1665 ac_retval=$ac_status
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1671 } # ac_fn_c_try_run
1673 # ac_fn_c_check_func LINENO FUNC VAR
1674 # ----------------------------------
1675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1676 ac_fn_c_check_func ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1688 #define $2 innocuous_$2
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char $2 (); below.
1692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1693 <limits.h> exists even on freestanding compilers. */
1695 #ifdef __STDC__
1696 # include <limits.h>
1697 #else
1698 # include <assert.h>
1699 #endif
1701 #undef $2
1703 /* Override any GCC internal prototype to avoid an error.
1704 Use char because int might match the return type of a GCC
1705 builtin and then its argument prototype would still apply. */
1706 #ifdef __cplusplus
1707 extern "C"
1708 #endif
1709 char $2 ();
1710 /* The GNU C library defines this for functions which it implements
1711 to always fail with ENOSYS. Some functions are actually named
1712 something starting with __ and the normal name is an alias. */
1713 #if defined __stub_$2 || defined __stub___$2
1714 choke me
1715 #endif
1718 main ()
1720 return $2 ();
1722 return 0;
1724 _ACEOF
1725 if ac_fn_c_try_link "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1730 rm -f core conftest.err conftest.$ac_objext \
1731 conftest$ac_exeext conftest.$ac_ext
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738 } # ac_fn_c_check_func
1740 # ac_fn_c_find_uintX_t LINENO BITS VAR
1741 # ------------------------------------
1742 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1743 # accordingly.
1744 ac_fn_c_find_uintX_t ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1748 $as_echo_n "checking for uint$2_t... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1751 else
1752 eval "$3=no"
1753 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1754 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 $ac_includes_default
1759 main ()
1761 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1762 test_array [0] = 0
1765 return 0;
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 case $ac_type in #(
1770 uint$2_t) :
1771 eval "$3=yes" ;; #(
1772 *) :
1773 eval "$3=\$ac_type" ;;
1774 esac
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 eval as_val=\$$3
1778 if test "x$as_val" = x""no; then :
1780 else
1781 break
1783 done
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 } # ac_fn_c_find_uintX_t
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1795 It was created by LTO plugin for ld $as_me 0.1, which was
1796 generated by GNU Autoconf 2.64. Invocation command line was
1798 $ $0 $@
1800 _ACEOF
1801 exec 5>>config.log
1803 cat <<_ASUNAME
1804 ## --------- ##
1805 ## Platform. ##
1806 ## --------- ##
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1825 _ASUNAME
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 $as_echo "PATH: $as_dir"
1833 done
1834 IFS=$as_save_IFS
1836 } >&5
1838 cat >&5 <<_ACEOF
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1845 _ACEOF
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1859 for ac_arg
1861 case $ac_arg in
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1865 continue ;;
1866 *\'*)
1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 case $ac_pass in
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1875 else
1876 case $ac_arg in
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883 esac
1885 -* ) ac_must_keep_next=true ;;
1886 esac
1888 as_fn_append ac_configure_args " '$ac_arg'"
1890 esac
1891 done
1892 done
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Save into config.log some information that might help in debugging.
1904 echo
1906 cat <<\_ASBOX
1907 ## ---------------- ##
1908 ## Cache variables. ##
1909 ## ---------------- ##
1910 _ASBOX
1911 echo
1912 # The following way of writing the cache mishandles newlines in values,
1914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1915 eval ac_val=\$$ac_var
1916 case $ac_val in #(
1917 *${as_nl}*)
1918 case $ac_var in #(
1919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 esac
1922 case $ac_var in #(
1923 _ | IFS | as_nl) ;; #(
1924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1925 *) { eval $ac_var=; unset $ac_var;} ;;
1926 esac ;;
1927 esac
1928 done
1929 (set) 2>&1 |
1930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1931 *${as_nl}ac_space=\ *)
1932 sed -n \
1933 "s/'\''/'\''\\\\'\'''\''/g;
1934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 ;; #(
1937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939 esac |
1940 sort
1942 echo
1944 cat <<\_ASBOX
1945 ## ----------------- ##
1946 ## Output variables. ##
1947 ## ----------------- ##
1948 _ASBOX
1949 echo
1950 for ac_var in $ac_subst_vars
1952 eval ac_val=\$$ac_var
1953 case $ac_val in
1954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955 esac
1956 $as_echo "$ac_var='\''$ac_val'\''"
1957 done | sort
1958 echo
1960 if test -n "$ac_subst_files"; then
1961 cat <<\_ASBOX
1962 ## ------------------- ##
1963 ## File substitutions. ##
1964 ## ------------------- ##
1965 _ASBOX
1966 echo
1967 for ac_var in $ac_subst_files
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
1974 done | sort
1975 echo
1978 if test -s confdefs.h; then
1979 cat <<\_ASBOX
1980 ## ----------- ##
1981 ## confdefs.h. ##
1982 ## ----------- ##
1983 _ASBOX
1984 echo
1985 cat confdefs.h
1986 echo
1988 test "$ac_signal" != 0 &&
1989 $as_echo "$as_me: caught signal $ac_signal"
1990 $as_echo "$as_me: exit $exit_status"
1991 } >&5
1992 rm -f core *.core core.conftest.* &&
1993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1994 exit $exit_status
1996 for ac_signal in 1 2 13 15; do
1997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1998 done
1999 ac_signal=0
2001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2002 rm -f -r conftest* confdefs.h
2004 $as_echo "/* confdefs.h */" > confdefs.h
2006 # Predefined preprocessor variables.
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_NAME "$PACKAGE_NAME"
2010 _ACEOF
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2014 _ACEOF
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2018 _ACEOF
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_STRING "$PACKAGE_STRING"
2022 _ACEOF
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2026 _ACEOF
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_URL "$PACKAGE_URL"
2030 _ACEOF
2033 # Let the site file select an alternate cache file if it wants to.
2034 # Prefer an explicitly selected file to automatically selected ones.
2035 ac_site_file1=NONE
2036 ac_site_file2=NONE
2037 if test -n "$CONFIG_SITE"; then
2038 ac_site_file1=$CONFIG_SITE
2039 elif test "x$prefix" != xNONE; then
2040 ac_site_file1=$prefix/share/config.site
2041 ac_site_file2=$prefix/etc/config.site
2042 else
2043 ac_site_file1=$ac_default_prefix/share/config.site
2044 ac_site_file2=$ac_default_prefix/etc/config.site
2046 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2048 test "x$ac_site_file" = xNONE && continue
2049 if test -r "$ac_site_file"; then
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2052 sed 's/^/| /' "$ac_site_file" >&5
2053 . "$ac_site_file"
2055 done
2057 if test -r "$cache_file"; then
2058 # Some versions of bash will fail to source /dev/null (special
2059 # files actually), so we avoid doing that.
2060 if test -f "$cache_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2062 $as_echo "$as_me: loading cache $cache_file" >&6;}
2063 case $cache_file in
2064 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2065 *) . "./$cache_file";;
2066 esac
2068 else
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2070 $as_echo "$as_me: creating cache $cache_file" >&6;}
2071 >$cache_file
2074 # Check that the precious variables saved in the cache have kept the same
2075 # value.
2076 ac_cache_corrupted=false
2077 for ac_var in $ac_precious_vars; do
2078 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2079 eval ac_new_set=\$ac_env_${ac_var}_set
2080 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2081 eval ac_new_val=\$ac_env_${ac_var}_value
2082 case $ac_old_set,$ac_new_set in
2083 set,)
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2085 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2086 ac_cache_corrupted=: ;;
2087 ,set)
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2089 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2090 ac_cache_corrupted=: ;;
2091 ,);;
2093 if test "x$ac_old_val" != "x$ac_new_val"; then
2094 # differences in whitespace do not lead to failure.
2095 ac_old_val_w=`echo x $ac_old_val`
2096 ac_new_val_w=`echo x $ac_new_val`
2097 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2099 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2100 ac_cache_corrupted=:
2101 else
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2103 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2104 eval $ac_var=\$ac_old_val
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2107 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2109 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2110 fi;;
2111 esac
2112 # Pass precious variables to config.status.
2113 if test "$ac_new_set" = set; then
2114 case $ac_new_val in
2115 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2116 *) ac_arg=$ac_var=$ac_new_val ;;
2117 esac
2118 case " $ac_configure_args " in
2119 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2120 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2121 esac
2123 done
2124 if $ac_cache_corrupted; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2128 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2129 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2131 ## -------------------- ##
2132 ## Main body of script. ##
2133 ## -------------------- ##
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 ac_aux_dir=
2146 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2147 for ac_t in install-sh install.sh shtool; do
2148 if test -f "$ac_dir/$ac_t"; then
2149 ac_aux_dir=$ac_dir
2150 ac_install_sh="$ac_aux_dir/$ac_t -c"
2151 break 2
2153 done
2154 done
2155 if test -z "$ac_aux_dir"; then
2156 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2159 # These three variables are undocumented and unsupported,
2160 # and are intended to be withdrawn in a future Autoconf release.
2161 # They can cause serious problems if a builder's source tree is in a directory
2162 # whose full name contains unusual characters.
2163 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2164 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2165 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2168 # Make sure we can run config.sub.
2169 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2170 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2173 $as_echo_n "checking build system type... " >&6; }
2174 if test "${ac_cv_build+set}" = set; then :
2175 $as_echo_n "(cached) " >&6
2176 else
2177 ac_build_alias=$build_alias
2178 test "x$ac_build_alias" = x &&
2179 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2180 test "x$ac_build_alias" = x &&
2181 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2182 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2183 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2187 $as_echo "$ac_cv_build" >&6; }
2188 case $ac_cv_build in
2189 *-*-*) ;;
2190 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2191 esac
2192 build=$ac_cv_build
2193 ac_save_IFS=$IFS; IFS='-'
2194 set x $ac_cv_build
2195 shift
2196 build_cpu=$1
2197 build_vendor=$2
2198 shift; shift
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2201 build_os=$*
2202 IFS=$ac_save_IFS
2203 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2207 $as_echo_n "checking host system type... " >&6; }
2208 if test "${ac_cv_host+set}" = set; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 if test "x$host_alias" = x; then
2212 ac_cv_host=$ac_cv_build
2213 else
2214 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2215 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2220 $as_echo "$ac_cv_host" >&6; }
2221 case $ac_cv_host in
2222 *-*-*) ;;
2223 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2224 esac
2225 host=$ac_cv_host
2226 ac_save_IFS=$IFS; IFS='-'
2227 set x $ac_cv_host
2228 shift
2229 host_cpu=$1
2230 host_vendor=$2
2231 shift; shift
2232 # Remember, the first character of IFS is used to create $*,
2233 # except with old shells:
2234 host_os=$*
2235 IFS=$ac_save_IFS
2236 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2240 $as_echo_n "checking target system type... " >&6; }
2241 if test "${ac_cv_target+set}" = set; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 if test "x$target_alias" = x; then
2245 ac_cv_target=$ac_cv_host
2246 else
2247 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2253 $as_echo "$ac_cv_target" >&6; }
2254 case $ac_cv_target in
2255 *-*-*) ;;
2256 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2257 esac
2258 target=$ac_cv_target
2259 ac_save_IFS=$IFS; IFS='-'
2260 set x $ac_cv_target
2261 shift
2262 target_cpu=$1
2263 target_vendor=$2
2264 shift; shift
2265 # Remember, the first character of IFS is used to create $*,
2266 # except with old shells:
2267 target_os=$*
2268 IFS=$ac_save_IFS
2269 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2272 # The aliases save the names the user supplied, while $host etc.
2273 # will get canonicalized.
2274 test -n "$target_alias" &&
2275 test "$program_prefix$program_suffix$program_transform_name" = \
2276 NONENONEs,x,x, &&
2277 program_prefix=${target_alias}-
2279 case ${build_alias} in
2280 "") build_noncanonical=${build} ;;
2281 *) build_noncanonical=${build_alias} ;;
2282 esac
2284 case ${host_alias} in
2285 "") host_noncanonical=${build_noncanonical} ;;
2286 *) host_noncanonical=${host_alias} ;;
2287 esac
2289 case ${target_alias} in
2290 "") target_noncanonical=${host_noncanonical} ;;
2291 *) target_noncanonical=${target_alias} ;;
2292 esac
2295 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2296 # have matching libraries, they should use host libraries: Makefile.tpl
2297 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2298 # However, they still use the build modules, because the corresponding
2299 # host modules (e.g. bison) are only built for the host when bootstrap
2300 # finishes. So:
2301 # - build_subdir is where we find build modules, and never changes.
2302 # - build_libsubdir is where we find build libraries, and can be overridden.
2304 # Prefix 'build-' so this never conflicts with target_subdir.
2305 build_subdir="build-${build_noncanonical}"
2307 # Check whether --with-build-libsubdir was given.
2308 if test "${with_build_libsubdir+set}" = set; then :
2309 withval=$with_build_libsubdir; build_libsubdir="$withval"
2310 else
2311 build_libsubdir="$build_subdir"
2314 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2315 if ( test $srcdir = . && test -d gcc ) \
2316 || test -d $srcdir/../host-${host_noncanonical}; then
2317 host_subdir="host-${host_noncanonical}"
2318 else
2319 host_subdir=.
2321 # No prefix.
2322 target_subdir=${target_noncanonical}
2324 am__api_version='1.11'
2326 # Find a good install program. We prefer a C program (faster),
2327 # so one script is as good as another. But avoid the broken or
2328 # incompatible versions:
2329 # SysV /etc/install, /usr/sbin/install
2330 # SunOS /usr/etc/install
2331 # IRIX /sbin/install
2332 # AIX /bin/install
2333 # AmigaOS /C/install, which installs bootblocks on floppy discs
2334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337 # OS/2's system install, which has a completely different semantic
2338 # ./install, which can be erroneously created by make from ./install.sh.
2339 # Reject install programs that cannot install multiple files.
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2342 if test -z "$INSTALL"; then
2343 if test "${ac_cv_path_install+set}" = set; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 # Account for people who put trailing slashes in PATH elements.
2352 case $as_dir/ in #((
2353 ./ | .// | /[cC]/* | \
2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356 /usr/ucb/* ) ;;
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2372 else
2373 rm -rf conftest.one conftest.two conftest.dir
2374 echo one > conftest.one
2375 echo two > conftest.two
2376 mkdir conftest.dir
2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378 test -s conftest.one && test -s conftest.two &&
2379 test -s conftest.dir/conftest.one &&
2380 test -s conftest.dir/conftest.two
2381 then
2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383 break 3
2387 done
2388 done
2390 esac
2392 done
2393 IFS=$as_save_IFS
2395 rm -rf conftest.one conftest.two conftest.dir
2398 if test "${ac_cv_path_install+set}" = set; then
2399 INSTALL=$ac_cv_path_install
2400 else
2401 # As a last resort, use the slow shell script. Don't cache a
2402 # value for INSTALL within a source directory, because that will
2403 # break other packages using the cache if that directory is
2404 # removed, or if the value is a relative name.
2405 INSTALL=$ac_install_sh
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2409 $as_echo "$INSTALL" >&6; }
2411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412 # It thinks the first close brace ends the variable substitution.
2413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2420 $as_echo_n "checking whether build environment is sane... " >&6; }
2421 # Just in case
2422 sleep 1
2423 echo timestamp > conftest.file
2424 # Reject unsafe characters in $srcdir or the absolute working directory
2425 # name. Accept space and tab only in the latter.
2426 am_lf='
2428 case `pwd` in
2429 *[\\\"\#\$\&\'\`$am_lf]*)
2430 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2431 esac
2432 case $srcdir in
2433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2434 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2435 esac
2437 # Do `set' in a subshell so we don't clobber the current shell's
2438 # arguments. Must try -L first in case configure is actually a
2439 # symlink; some systems play weird games with the mod time of symlinks
2440 # (eg FreeBSD returns the mod time of the symlink's containing
2441 # directory).
2442 if (
2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444 if test "$*" = "X"; then
2445 # -L didn't work.
2446 set X `ls -t "$srcdir/configure" conftest.file`
2448 rm -f conftest.file
2449 if test "$*" != "X $srcdir/configure conftest.file" \
2450 && test "$*" != "X conftest.file $srcdir/configure"; then
2452 # If neither matched, then we have a broken ls. This can happen
2453 # if, for instance, CONFIG_SHELL is bash and it inherits a
2454 # broken ls alias from the environment. This has actually
2455 # happened. Such a system could not be considered "sane".
2456 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2457 alias in your environment" "$LINENO" 5
2460 test "$2" = conftest.file
2462 then
2463 # Ok.
2465 else
2466 as_fn_error "newly created file is older than distributed files!
2467 Check your system clock" "$LINENO" 5
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2470 $as_echo "yes" >&6; }
2471 test "$program_prefix" != NONE &&
2472 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2473 # Use a double $ so make ignores it.
2474 test "$program_suffix" != NONE &&
2475 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2476 # Double any \ or $.
2477 # By default was `s,x,x', remove it if useless.
2478 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2479 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2481 # expand $ac_aux_dir to an absolute path
2482 am_aux_dir=`cd $ac_aux_dir && pwd`
2484 if test x"${MISSING+set}" != xset; then
2485 case $am_aux_dir in
2486 *\ * | *\ *)
2487 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2489 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2490 esac
2492 # Use eval to expand $SHELL
2493 if eval "$MISSING --run true"; then
2494 am_missing_run="$MISSING --run "
2495 else
2496 am_missing_run=
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2498 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2501 if test x"${install_sh}" != xset; then
2502 case $am_aux_dir in
2503 *\ * | *\ *)
2504 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2506 install_sh="\${SHELL} $am_aux_dir/install-sh"
2507 esac
2510 # Installed binaries are usually stripped using `strip' when the user
2511 # run `make install-strip'. However `strip' might not be the right
2512 # tool to use in cross-compilation environments, therefore Automake
2513 # will honor the `STRIP' environment variable to overrule this program.
2514 if test "$cross_compiling" != no; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}strip; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if test "${ac_cv_prog_STRIP+set}" = set; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test -n "$STRIP"; then
2524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 STRIP=$ac_cv_prog_STRIP
2544 if test -n "$STRIP"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2546 $as_echo "$STRIP" >&6; }
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2554 if test -z "$ac_cv_prog_STRIP"; then
2555 ac_ct_STRIP=$STRIP
2556 # Extract the first word of "strip", so it can be a program name with args.
2557 set dummy strip; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test -n "$ac_ct_STRIP"; then
2564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_ac_ct_STRIP="strip"
2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2577 done
2578 done
2579 IFS=$as_save_IFS
2583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2584 if test -n "$ac_ct_STRIP"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2586 $as_echo "$ac_ct_STRIP" >&6; }
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589 $as_echo "no" >&6; }
2592 if test "x$ac_ct_STRIP" = x; then
2593 STRIP=":"
2594 else
2595 case $cross_compiling:$ac_tool_warned in
2596 yes:)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599 ac_tool_warned=yes ;;
2600 esac
2601 STRIP=$ac_ct_STRIP
2603 else
2604 STRIP="$ac_cv_prog_STRIP"
2608 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2611 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2612 if test -z "$MKDIR_P"; then
2613 if test "${ac_cv_path_mkdir+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_prog in mkdir gmkdir; do
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2625 'mkdir (GNU coreutils) '* | \
2626 'mkdir (coreutils) '* | \
2627 'mkdir (fileutils) '4.1*)
2628 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2629 break 3;;
2630 esac
2631 done
2632 done
2633 done
2634 IFS=$as_save_IFS
2638 if test "${ac_cv_path_mkdir+set}" = set; then
2639 MKDIR_P="$ac_cv_path_mkdir -p"
2640 else
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for MKDIR_P within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 test -d ./--version && rmdir ./--version
2646 MKDIR_P="$ac_install_sh -d"
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2650 $as_echo "$MKDIR_P" >&6; }
2652 mkdir_p="$MKDIR_P"
2653 case $mkdir_p in
2654 [\\/$]* | ?:[\\/]*) ;;
2655 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2656 esac
2658 for ac_prog in gawk mawk nawk awk
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2663 $as_echo_n "checking for $ac_word... " >&6; }
2664 if test "${ac_cv_prog_AWK+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test -n "$AWK"; then
2668 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2673 IFS=$as_save_IFS
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_AWK="$ac_prog"
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 break 2
2681 done
2682 done
2683 IFS=$as_save_IFS
2687 AWK=$ac_cv_prog_AWK
2688 if test -n "$AWK"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2690 $as_echo "$AWK" >&6; }
2691 else
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693 $as_echo "no" >&6; }
2697 test -n "$AWK" && break
2698 done
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2701 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2702 set x ${MAKE-make}
2703 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2704 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 cat >conftest.make <<\_ACEOF
2708 SHELL = /bin/sh
2709 all:
2710 @echo '@@@%%%=$(MAKE)=@@@%%%'
2711 _ACEOF
2712 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2713 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2714 *@@@%%%=?*=@@@%%%*)
2715 eval ac_cv_prog_make_${ac_make}_set=yes;;
2717 eval ac_cv_prog_make_${ac_make}_set=no;;
2718 esac
2719 rm -f conftest.make
2721 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2723 $as_echo "yes" >&6; }
2724 SET_MAKE=
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 SET_MAKE="MAKE=${MAKE-make}"
2731 rm -rf .tst 2>/dev/null
2732 mkdir .tst 2>/dev/null
2733 if test -d .tst; then
2734 am__leading_dot=.
2735 else
2736 am__leading_dot=_
2738 rmdir .tst 2>/dev/null
2740 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2742 # is not polluted with repeated "-I."
2743 am__isrc=' -I$(srcdir)'
2744 # test to see if srcdir already configured
2745 if test -f $srcdir/config.status; then
2746 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2750 # test whether we have cygpath
2751 if test -z "$CYGPATH_W"; then
2752 if (cygpath --version) >/dev/null 2>/dev/null; then
2753 CYGPATH_W='cygpath -w'
2754 else
2755 CYGPATH_W=echo
2760 # Define the identity of the package.
2761 PACKAGE='lto-plugin'
2762 VERSION='0.1'
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE "$PACKAGE"
2767 _ACEOF
2770 cat >>confdefs.h <<_ACEOF
2771 #define VERSION "$VERSION"
2772 _ACEOF
2774 # Some tools Automake needs.
2776 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2779 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2782 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2785 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2788 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2790 # We need awk for the "check" target. The system "awk" is bad on
2791 # some platforms.
2792 # Always define AMTAR for backward compatibility.
2794 AMTAR=${AMTAR-"${am_missing_run}tar"}
2796 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2804 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2805 # Check whether --enable-maintainer-mode was given.
2806 if test "${enable_maintainer_mode+set}" = set; then :
2807 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2808 else
2809 USE_MAINTAINER_MODE=no
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2813 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2814 if test $USE_MAINTAINER_MODE = yes; then
2815 MAINTAINER_MODE_TRUE=
2816 MAINTAINER_MODE_FALSE='#'
2817 else
2818 MAINTAINER_MODE_TRUE='#'
2819 MAINTAINER_MODE_FALSE=
2822 MAINT=$MAINTAINER_MODE_TRUE
2825 ac_ext=c
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2852 done
2853 done
2854 IFS=$as_save_IFS
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2869 if test -z "$ac_cv_prog_CC"; then
2870 ac_ct_CC=$CC
2871 # Extract the first word of "gcc", so it can be a program name with args.
2872 set dummy gcc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 ac_cv_prog_ac_ct_CC="gcc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2892 done
2893 done
2894 IFS=$as_save_IFS
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911 yes:)
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916 CC=$ac_ct_CC
2918 else
2919 CC="$ac_cv_prog_CC"
2922 if test -z "$CC"; then
2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}cc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_CC="${ac_tool_prefix}cc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2963 if test -z "$CC"; then
2964 # Extract the first word of "cc", so it can be a program name with args.
2965 set dummy cc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 ac_prog_rejected=no
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2984 continue
2986 ac_cv_prog_CC="cc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2990 done
2991 done
2992 IFS=$as_save_IFS
2994 if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2997 shift
2998 if test $# != 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3002 shift
3003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 for ac_prog in cl.exe
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_CC+set}" = set; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3044 done
3045 done
3046 IFS=$as_save_IFS
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$CC" && break
3061 done
3063 if test -z "$CC"; then
3064 ac_ct_CC=$CC
3065 for ac_prog in cl.exe
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068 set dummy $ac_prog; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_CC="$ac_prog"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3088 done
3089 done
3090 IFS=$as_save_IFS
3094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095 if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3097 $as_echo "$ac_ct_CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3104 test -n "$ac_ct_CC" && break
3105 done
3107 if test "x$ac_ct_CC" = x; then
3108 CC=""
3109 else
3110 case $cross_compiling:$ac_tool_warned in
3111 yes:)
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3115 esac
3116 CC=$ac_ct_CC
3123 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error "no acceptable C compiler found in \$PATH
3126 See \`config.log' for more details." "$LINENO" 5; }
3128 # Provide some information about the compiler.
3129 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3130 set X $ac_compile
3131 ac_compiler=$2
3132 for ac_option in --version -v -V -qversion; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141 ac_status=$?
3142 if test -s conftest.err; then
3143 sed '10a\
3144 ... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
3147 rm -f conftest.er1 conftest.err
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151 done
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3157 main ()
3161 return 0;
3163 _ACEOF
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3168 # of exeext.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3170 $as_echo_n "checking for C compiler default output file name... " >&6; }
3171 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3173 # The possible output files:
3174 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3176 ac_rmfiles=
3177 for ac_file in $ac_files
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 esac
3183 done
3184 rm -f $ac_rmfiles
3186 if { { ac_try="$ac_link_default"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link_default") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3200 # so that the user can short-circuit this test for compilers unknown to
3201 # Autoconf.
3202 for ac_file in $ac_files ''
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3208 [ab].out )
3209 # We found the default executable, but exeext='' is most
3210 # certainly right.
3211 break;;
3212 *.* )
3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3214 then :; else
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3221 # actually working.
3222 break;;
3224 break;;
3225 esac
3226 done
3227 test "$ac_cv_exeext" = no && ac_cv_exeext=
3229 else
3230 ac_file=''
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3233 $as_echo "$ac_file" >&6; }
3234 if test -z "$ac_file"; then :
3235 $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 { as_fn_set_status 77
3241 as_fn_error "C compiler cannot create executables
3242 See \`config.log' for more details." "$LINENO" 5; }; }
3244 ac_exeext=$ac_cv_exeext
3246 # Check that the compiler produces executables we can run. If not, either
3247 # the compiler is broken, or we cross compile.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249 $as_echo_n "checking whether the C compiler works... " >&6; }
3250 # If not cross compiling, check that we can run a simple program.
3251 if test "$cross_compiling" != yes; then
3252 if { ac_try='./$ac_file'
3253 { { case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_try") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; }; then
3263 cross_compiling=no
3264 else
3265 if test "$cross_compiling" = maybe; then
3266 cross_compiling=yes
3267 else
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error "cannot run C compiled programs.
3271 If you meant to cross compile, use \`--host'.
3272 See \`config.log' for more details." "$LINENO" 5; }
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3279 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3280 ac_clean_files=$ac_clean_files_save
3281 # Check that the compiler produces executables we can run. If not, either
3282 # the compiler is broken, or we cross compile.
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3284 $as_echo_n "checking whether we are cross compiling... " >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3286 $as_echo "$cross_compiling" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3289 $as_echo_n "checking for suffix of executables... " >&6; }
3290 if { { ac_try="$ac_link"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_link") 2>&5
3298 ac_status=$?
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }; then :
3301 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3302 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3303 # work properly (i.e., refer to `conftest.exe'), while it won't with
3304 # `rm'.
3305 for ac_file in conftest.exe conftest conftest.*; do
3306 test -f "$ac_file" || continue
3307 case $ac_file in
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3310 break;;
3311 * ) break;;
3312 esac
3313 done
3314 else
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error "cannot compute suffix of executables: cannot compile and link
3318 See \`config.log' for more details." "$LINENO" 5; }
3320 rm -f conftest$ac_cv_exeext
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3322 $as_echo "$ac_cv_exeext" >&6; }
3324 rm -f conftest.$ac_ext
3325 EXEEXT=$ac_cv_exeext
3326 ac_exeext=$EXEEXT
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3328 $as_echo_n "checking for suffix of object files... " >&6; }
3329 if test "${ac_cv_objext+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 rm -f conftest.o conftest.obj
3344 if { { ac_try="$ac_compile"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_compile") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; then :
3355 for ac_file in conftest.o conftest.obj conftest.*; do
3356 test -f "$ac_file" || continue;
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3360 break;;
3361 esac
3362 done
3363 else
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error "cannot compute suffix of object files: cannot compile
3370 See \`config.log' for more details." "$LINENO" 5; }
3372 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3375 $as_echo "$ac_cv_objext" >&6; }
3376 OBJEXT=$ac_cv_objext
3377 ac_objext=$OBJEXT
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3379 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3380 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3387 main ()
3389 #ifndef __GNUC__
3390 choke me
3391 #endif
3394 return 0;
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_compiler_gnu=yes
3399 else
3400 ac_compiler_gnu=no
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3407 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3408 if test $ac_compiler_gnu = yes; then
3409 GCC=yes
3410 else
3411 GCC=
3413 ac_test_CFLAGS=${CFLAGS+set}
3414 ac_save_CFLAGS=$CFLAGS
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3416 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3417 if test "${ac_cv_prog_cc_g+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 ac_save_c_werror_flag=$ac_c_werror_flag
3421 ac_c_werror_flag=yes
3422 ac_cv_prog_cc_g=no
3423 CFLAGS="-g"
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 if ac_fn_c_try_compile "$LINENO"; then :
3436 ac_cv_prog_cc_g=yes
3437 else
3438 CFLAGS=""
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3443 main ()
3447 return 0;
3449 _ACEOF
3450 if ac_fn_c_try_compile "$LINENO"; then :
3452 else
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3454 CFLAGS="-g"
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3459 main ()
3463 return 0;
3465 _ACEOF
3466 if ac_fn_c_try_compile "$LINENO"; then :
3467 ac_cv_prog_cc_g=yes
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3477 $as_echo "$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479 CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481 if test "$GCC" = yes; then
3482 CFLAGS="-g -O2"
3483 else
3484 CFLAGS="-g"
3486 else
3487 if test "$GCC" = yes; then
3488 CFLAGS="-O2"
3489 else
3490 CFLAGS=
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3494 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 ac_cv_prog_cc_c89=no
3499 ac_save_CC=$CC
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502 #include <stdarg.h>
3503 #include <stdio.h>
3504 #include <sys/types.h>
3505 #include <sys/stat.h>
3506 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3507 struct buf { int x; };
3508 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3509 static char *e (p, i)
3510 char **p;
3511 int i;
3513 return p[i];
3515 static char *f (char * (*g) (char **, int), char **p, ...)
3517 char *s;
3518 va_list v;
3519 va_start (v,p);
3520 s = g (p, va_arg (v,int));
3521 va_end (v);
3522 return s;
3525 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3526 function prototypes and stuff, but not '\xHH' hex character constants.
3527 These don't provoke an error unfortunately, instead are silently treated
3528 as 'x'. The following induces an error, until -std is added to get
3529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3530 array size at least. It's necessary to write '\x00'==0 to get something
3531 that's true only with -std. */
3532 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3535 inside strings and character constants. */
3536 #define FOO(x) 'x'
3537 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3539 int test (int i, double x);
3540 struct s1 {int (*f) (int a);};
3541 struct s2 {int (*f) (double a);};
3542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3543 int argc;
3544 char **argv;
3546 main ()
3548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550 return 0;
3552 _ACEOF
3553 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3554 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3556 CC="$ac_save_CC $ac_arg"
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_c89=$ac_arg
3560 rm -f core conftest.err conftest.$ac_objext
3561 test "x$ac_cv_prog_cc_c89" != "xno" && break
3562 done
3563 rm -f conftest.$ac_ext
3564 CC=$ac_save_CC
3567 # AC_CACHE_VAL
3568 case "x$ac_cv_prog_cc_c89" in
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571 $as_echo "none needed" >&6; } ;;
3572 xno)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3574 $as_echo "unsupported" >&6; } ;;
3576 CC="$CC $ac_cv_prog_cc_c89"
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3578 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3579 esac
3580 if test "x$ac_cv_prog_cc_c89" != xno; then :
3584 ac_ext=c
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589 DEPDIR="${am__leading_dot}deps"
3591 ac_config_commands="$ac_config_commands depfiles"
3594 am_make=${MAKE-make}
3595 cat > confinc << 'END'
3596 am__doit:
3597 @echo this is the am__doit target
3598 .PHONY: am__doit
3600 # If we don't find an include directive, just comment out the code.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3602 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3603 am__include="#"
3604 am__quote=
3605 _am_result=none
3606 # First try GNU make style include.
3607 echo "include confinc" > confmf
3608 # Ignore all kinds of additional output from `make'.
3609 case `$am_make -s -f confmf 2> /dev/null` in #(
3610 *the\ am__doit\ target*)
3611 am__include=include
3612 am__quote=
3613 _am_result=GNU
3615 esac
3616 # Now try BSD make style include.
3617 if test "$am__include" = "#"; then
3618 echo '.include "confinc"' > confmf
3619 case `$am_make -s -f confmf 2> /dev/null` in #(
3620 *the\ am__doit\ target*)
3621 am__include=.include
3622 am__quote="\""
3623 _am_result=BSD
3625 esac
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3630 $as_echo "$_am_result" >&6; }
3631 rm -f confinc confmf
3633 # Check whether --enable-dependency-tracking was given.
3634 if test "${enable_dependency_tracking+set}" = set; then :
3635 enableval=$enable_dependency_tracking;
3638 if test "x$enable_dependency_tracking" != xno; then
3639 am_depcomp="$ac_aux_dir/depcomp"
3640 AMDEPBACKSLASH='\'
3642 if test "x$enable_dependency_tracking" != xno; then
3643 AMDEP_TRUE=
3644 AMDEP_FALSE='#'
3645 else
3646 AMDEP_TRUE='#'
3647 AMDEP_FALSE=
3652 depcc="$CC" am_compiler_list=
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655 $as_echo_n "checking dependency style of $depcc... " >&6; }
3656 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660 # We make a subdir and do the tests there. Otherwise we can end up
3661 # making bogus files that we don't know about and never remove. For
3662 # instance it was reported that on HP-UX the gcc test will end up
3663 # making a dummy file named `D' -- because `-MD' means `put the output
3664 # in D'.
3665 mkdir conftest.dir
3666 # Copy depcomp to subdir because otherwise we won't find it if we're
3667 # using a relative directory.
3668 cp "$am_depcomp" conftest.dir
3669 cd conftest.dir
3670 # We will build objects and dependencies in a subdirectory because
3671 # it helps to detect inapplicable dependency modes. For instance
3672 # both Tru64's cc and ICC support -MD to output dependencies as a
3673 # side effect of compilation, but ICC will put the dependencies in
3674 # the current directory while Tru64 will put them in the object
3675 # directory.
3676 mkdir sub
3678 am_cv_CC_dependencies_compiler_type=none
3679 if test "$am_compiler_list" = ""; then
3680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682 am__universal=false
3683 case " $depcc " in #(
3684 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3685 esac
3687 for depmode in $am_compiler_list; do
3688 # Setup a source with many dependencies, because some compilers
3689 # like to wrap large dependency lists on column 80 (with \), and
3690 # we should not choose a depcomp mode which is confused by this.
3692 # We need to recreate these files for each test, as the compiler may
3693 # overwrite some of them when testing with obscure command lines.
3694 # This happens at least with the AIX C compiler.
3695 : > sub/conftest.c
3696 for i in 1 2 3 4 5 6; do
3697 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3698 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3699 # Solaris 8's {/usr,}/bin/sh.
3700 touch sub/conftst$i.h
3701 done
3702 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3705 # mode. It turns out that the SunPro C++ compiler does not properly
3706 # handle `-M -o', and we need to detect this. Also, some Intel
3707 # versions had trouble with output in subdirs
3708 am__obj=sub/conftest.${OBJEXT-o}
3709 am__minus_obj="-o $am__obj"
3710 case $depmode in
3711 gcc)
3712 # This depmode causes a compiler race in universal mode.
3713 test "$am__universal" = false || continue
3715 nosideeffect)
3716 # after this tag, mechanisms are not by side-effect, so they'll
3717 # only be used when explicitly requested
3718 if test "x$enable_dependency_tracking" = xyes; then
3719 continue
3720 else
3721 break
3724 msvisualcpp | msvcmsys)
3725 # This compiler won't grok `-c -o', but also, the minuso test has
3726 # not run yet. These depmodes are late enough in the game, and
3727 # so weak that their functioning should not be impacted.
3728 am__obj=conftest.${OBJEXT-o}
3729 am__minus_obj=
3731 none) break ;;
3732 esac
3733 if depmode=$depmode \
3734 source=sub/conftest.c object=$am__obj \
3735 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3736 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3737 >/dev/null 2>conftest.err &&
3738 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3739 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3740 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3741 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3742 # icc doesn't choke on unknown options, it will just issue warnings
3743 # or remarks (even with -Werror). So we grep stderr for any message
3744 # that says an option was ignored or not supported.
3745 # When given -MP, icc 7.0 and 7.1 complain thusly:
3746 # icc: Command line warning: ignoring option '-M'; no argument required
3747 # The diagnosis changed in icc 8.0:
3748 # icc: Command line remark: option '-MP' not supported
3749 if (grep 'ignoring option' conftest.err ||
3750 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3751 am_cv_CC_dependencies_compiler_type=$depmode
3752 break
3755 done
3757 cd ..
3758 rm -rf conftest.dir
3759 else
3760 am_cv_CC_dependencies_compiler_type=none
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3765 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3766 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3769 test "x$enable_dependency_tracking" != xno \
3770 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3771 am__fastdepCC_TRUE=
3772 am__fastdepCC_FALSE='#'
3773 else
3774 am__fastdepCC_TRUE='#'
3775 am__fastdepCC_FALSE=
3780 # Check whether --enable-largefile was given.
3781 if test "${enable_largefile+set}" = set; then :
3782 enableval=$enable_largefile;
3785 if test "$enable_largefile" != no; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3788 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3789 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 ac_cv_sys_largefile_CC=no
3793 if test "$GCC" != yes; then
3794 ac_save_CC=$CC
3795 while :; do
3796 # IRIX 6.2 and later do not support large files by default,
3797 # so use the C compiler's -n32 option if that helps.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 #include <sys/types.h>
3801 /* Check that off_t can represent 2**63 - 1 correctly.
3802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3803 since some C++ compilers masquerading as C compilers
3804 incorrectly reject 9223372036854775807. */
3805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3807 && LARGE_OFF_T % 2147483647 == 1)
3808 ? 1 : -1];
3810 main ()
3814 return 0;
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 break
3820 rm -f core conftest.err conftest.$ac_objext
3821 CC="$CC -n32"
3822 if ac_fn_c_try_compile "$LINENO"; then :
3823 ac_cv_sys_largefile_CC=' -n32'; break
3825 rm -f core conftest.err conftest.$ac_objext
3826 break
3827 done
3828 CC=$ac_save_CC
3829 rm -f conftest.$ac_ext
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3833 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3834 if test "$ac_cv_sys_largefile_CC" != no; then
3835 CC=$CC$ac_cv_sys_largefile_CC
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3839 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3840 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 while :; do
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #include <sys/types.h>
3847 /* Check that off_t can represent 2**63 - 1 correctly.
3848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3849 since some C++ compilers masquerading as C compilers
3850 incorrectly reject 9223372036854775807. */
3851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3853 && LARGE_OFF_T % 2147483647 == 1)
3854 ? 1 : -1];
3856 main ()
3860 return 0;
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_sys_file_offset_bits=no; break
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869 #define _FILE_OFFSET_BITS 64
3870 #include <sys/types.h>
3871 /* Check that off_t can represent 2**63 - 1 correctly.
3872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3873 since some C++ compilers masquerading as C compilers
3874 incorrectly reject 9223372036854775807. */
3875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3877 && LARGE_OFF_T % 2147483647 == 1)
3878 ? 1 : -1];
3880 main ()
3884 return 0;
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888 ac_cv_sys_file_offset_bits=64; break
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 ac_cv_sys_file_offset_bits=unknown
3892 break
3893 done
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3896 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3897 case $ac_cv_sys_file_offset_bits in #(
3898 no | unknown) ;;
3900 cat >>confdefs.h <<_ACEOF
3901 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3902 _ACEOF
3904 esac
3905 rm -rf conftest*
3906 if test $ac_cv_sys_file_offset_bits = unknown; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3908 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3909 if test "${ac_cv_sys_large_files+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 while :; do
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #include <sys/types.h>
3916 /* Check that off_t can represent 2**63 - 1 correctly.
3917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3918 since some C++ compilers masquerading as C compilers
3919 incorrectly reject 9223372036854775807. */
3920 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3922 && LARGE_OFF_T % 2147483647 == 1)
3923 ? 1 : -1];
3925 main ()
3929 return 0;
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_sys_large_files=no; break
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 #define _LARGE_FILES 1
3939 #include <sys/types.h>
3940 /* Check that off_t can represent 2**63 - 1 correctly.
3941 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3942 since some C++ compilers masquerading as C compilers
3943 incorrectly reject 9223372036854775807. */
3944 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3945 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3946 && LARGE_OFF_T % 2147483647 == 1)
3947 ? 1 : -1];
3949 main ()
3953 return 0;
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_cv_sys_large_files=1; break
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_cv_sys_large_files=unknown
3961 break
3962 done
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3965 $as_echo "$ac_cv_sys_large_files" >&6; }
3966 case $ac_cv_sys_large_files in #(
3967 no | unknown) ;;
3969 cat >>confdefs.h <<_ACEOF
3970 #define _LARGE_FILES $ac_cv_sys_large_files
3971 _ACEOF
3973 esac
3974 rm -rf conftest*
3980 case `pwd` in
3981 *\ * | *\ *)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3983 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3984 esac
3988 macro_version='2.2.7a'
3989 macro_revision='1.3134'
4003 ltmain="$ac_aux_dir/ltmain.sh"
4005 # Backslashify metacharacters that are still active within
4006 # double-quoted strings.
4007 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4009 # Same as above, but do not quote variable references.
4010 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4012 # Sed substitution to delay expansion of an escaped shell variable in a
4013 # double_quote_subst'ed string.
4014 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4016 # Sed substitution to delay expansion of an escaped single quote.
4017 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4019 # Sed substitution to avoid accidental globbing in evaled expressions
4020 no_glob_subst='s/\*/\\\*/g'
4022 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4023 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4027 $as_echo_n "checking how to print strings... " >&6; }
4028 # Test print first, because it will be a builtin if present.
4029 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4030 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4031 ECHO='print -r --'
4032 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4033 ECHO='printf %s\n'
4034 else
4035 # Use this function as a fallback that always works.
4036 func_fallback_echo ()
4038 eval 'cat <<_LTECHO_EOF
4040 _LTECHO_EOF'
4042 ECHO='func_fallback_echo'
4045 # func_echo_all arg...
4046 # Invoke $ECHO with all args, space-separated.
4047 func_echo_all ()
4049 $ECHO ""
4052 case "$ECHO" in
4053 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4054 $as_echo "printf" >&6; } ;;
4055 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4056 $as_echo "print -r" >&6; } ;;
4057 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4058 $as_echo "cat" >&6; } ;;
4059 esac
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4075 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4076 if test "${ac_cv_path_SED+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4080 for ac_i in 1 2 3 4 5 6 7; do
4081 ac_script="$ac_script$as_nl$ac_script"
4082 done
4083 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4084 { ac_script=; unset ac_script;}
4085 if test -z "$SED"; then
4086 ac_path_SED_found=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_prog in sed gsed; do
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4096 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4097 # Check for GNU ac_path_SED and select it if it is found.
4098 # Check for GNU $ac_path_SED
4099 case `"$ac_path_SED" --version 2>&1` in
4100 *GNU*)
4101 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4103 ac_count=0
4104 $as_echo_n 0123456789 >"conftest.in"
4105 while :
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo '' >> "conftest.nl"
4111 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113 as_fn_arith $ac_count + 1 && ac_count=$as_val
4114 if test $ac_count -gt ${ac_path_SED_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_SED="$ac_path_SED"
4117 ac_path_SED_max=$ac_count
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4121 done
4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123 esac
4125 $ac_path_SED_found && break 3
4126 done
4127 done
4128 done
4129 IFS=$as_save_IFS
4130 if test -z "$ac_cv_path_SED"; then
4131 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4133 else
4134 ac_cv_path_SED=$SED
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4139 $as_echo "$ac_cv_path_SED" >&6; }
4140 SED="$ac_cv_path_SED"
4141 rm -f conftest.sed
4143 test -z "$SED" && SED=sed
4144 Xsed="$SED -e 1s/^X//"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4157 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158 if test "${ac_cv_path_GREP+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -z "$GREP"; then
4162 ac_path_GREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in grep ggrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4173 # Check for GNU ac_path_GREP and select it if it is found.
4174 # Check for GNU $ac_path_GREP
4175 case `"$ac_path_GREP" --version 2>&1` in
4176 *GNU*)
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'GREP' >> "conftest.nl"
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 as_fn_arith $ac_count + 1 && ac_count=$as_val
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_GREP="$ac_path_GREP"
4193 ac_path_GREP_max=$ac_count
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 esac
4201 $ac_path_GREP_found && break 3
4202 done
4203 done
4204 done
4205 IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_GREP"; then
4207 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4209 else
4210 ac_cv_path_GREP=$GREP
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4215 $as_echo "$ac_cv_path_GREP" >&6; }
4216 GREP="$ac_cv_path_GREP"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4220 $as_echo_n "checking for egrep... " >&6; }
4221 if test "${ac_cv_path_EGREP+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4225 then ac_cv_path_EGREP="$GREP -E"
4226 else
4227 if test -z "$EGREP"; then
4228 ac_path_EGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in egrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4239 # Check for GNU ac_path_EGREP and select it if it is found.
4240 # Check for GNU $ac_path_EGREP
4241 case `"$ac_path_EGREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4245 ac_count=0
4246 $as_echo_n 0123456789 >"conftest.in"
4247 while :
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'EGREP' >> "conftest.nl"
4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_EGREP="$ac_path_EGREP"
4259 ac_path_EGREP_max=$ac_count
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4267 $ac_path_EGREP_found && break 3
4268 done
4269 done
4270 done
4271 IFS=$as_save_IFS
4272 if test -z "$ac_cv_path_EGREP"; then
4273 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275 else
4276 ac_cv_path_EGREP=$EGREP
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4282 $as_echo "$ac_cv_path_EGREP" >&6; }
4283 EGREP="$ac_cv_path_EGREP"
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4287 $as_echo_n "checking for fgrep... " >&6; }
4288 if test "${ac_cv_path_FGREP+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4292 then ac_cv_path_FGREP="$GREP -F"
4293 else
4294 if test -z "$FGREP"; then
4295 ac_path_FGREP_found=false
4296 # Loop through the user's path and test for each of PROGNAME-LIST
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_prog in fgrep; do
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4305 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4306 # Check for GNU ac_path_FGREP and select it if it is found.
4307 # Check for GNU $ac_path_FGREP
4308 case `"$ac_path_FGREP" --version 2>&1` in
4309 *GNU*)
4310 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4312 ac_count=0
4313 $as_echo_n 0123456789 >"conftest.in"
4314 while :
4316 cat "conftest.in" "conftest.in" >"conftest.tmp"
4317 mv "conftest.tmp" "conftest.in"
4318 cp "conftest.in" "conftest.nl"
4319 $as_echo 'FGREP' >> "conftest.nl"
4320 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322 as_fn_arith $ac_count + 1 && ac_count=$as_val
4323 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4324 # Best one so far, save it but keep looking for a better one
4325 ac_cv_path_FGREP="$ac_path_FGREP"
4326 ac_path_FGREP_max=$ac_count
4328 # 10*(2^10) chars as input seems more than enough
4329 test $ac_count -gt 10 && break
4330 done
4331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332 esac
4334 $ac_path_FGREP_found && break 3
4335 done
4336 done
4337 done
4338 IFS=$as_save_IFS
4339 if test -z "$ac_cv_path_FGREP"; then
4340 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4342 else
4343 ac_cv_path_FGREP=$FGREP
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4349 $as_echo "$ac_cv_path_FGREP" >&6; }
4350 FGREP="$ac_cv_path_FGREP"
4353 test -z "$GREP" && GREP=grep
4373 # Check whether --with-gnu-ld was given.
4374 if test "${with_gnu_ld+set}" = set; then :
4375 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4376 else
4377 with_gnu_ld=no
4380 ac_prog=ld
4381 if test "$GCC" = yes; then
4382 # Check if gcc -print-prog-name=ld gives a path.
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4384 $as_echo_n "checking for ld used by $CC... " >&6; }
4385 case $host in
4386 *-*-mingw*)
4387 # gcc leaves a trailing carriage return which upsets mingw
4388 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4390 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4391 esac
4392 case $ac_prog in
4393 # Accept absolute paths.
4394 [\\/]* | ?:[\\/]*)
4395 re_direlt='/[^/][^/]*/\.\./'
4396 # Canonicalize the pathname of ld
4397 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4398 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4399 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4400 done
4401 test -z "$LD" && LD="$ac_prog"
4404 # If it fails, then pretend we aren't using GCC.
4405 ac_prog=ld
4408 # If it is relative, then search for the first ld in PATH.
4409 with_gnu_ld=unknown
4411 esac
4412 elif test "$with_gnu_ld" = yes; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4414 $as_echo_n "checking for GNU ld... " >&6; }
4415 else
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4417 $as_echo_n "checking for non-GNU ld... " >&6; }
4419 if test "${lt_cv_path_LD+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -z "$LD"; then
4423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4424 for ac_dir in $PATH; do
4425 IFS="$lt_save_ifs"
4426 test -z "$ac_dir" && ac_dir=.
4427 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4428 lt_cv_path_LD="$ac_dir/$ac_prog"
4429 # Check to see if the program is GNU ld. I'd rather use --version,
4430 # but apparently some variants of GNU ld only accept -v.
4431 # Break only if it was the GNU/non-GNU ld that we prefer.
4432 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4433 *GNU* | *'with BFD'*)
4434 test "$with_gnu_ld" != no && break
4437 test "$with_gnu_ld" != yes && break
4439 esac
4441 done
4442 IFS="$lt_save_ifs"
4443 else
4444 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4448 LD="$lt_cv_path_LD"
4449 if test -n "$LD"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4451 $as_echo "$LD" >&6; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4456 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4458 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4459 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4463 case `$LD -v 2>&1 </dev/null` in
4464 *GNU* | *'with BFD'*)
4465 lt_cv_prog_gnu_ld=yes
4468 lt_cv_prog_gnu_ld=no
4470 esac
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4473 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4474 with_gnu_ld=$lt_cv_prog_gnu_ld
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4485 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4486 if test "${lt_cv_path_NM+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -n "$NM"; then
4490 # Let the user override the test.
4491 lt_cv_path_NM="$NM"
4492 else
4493 lt_nm_to_check="${ac_tool_prefix}nm"
4494 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4495 lt_nm_to_check="$lt_nm_to_check nm"
4497 for lt_tmp_nm in $lt_nm_to_check; do
4498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4499 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4500 IFS="$lt_save_ifs"
4501 test -z "$ac_dir" && ac_dir=.
4502 tmp_nm="$ac_dir/$lt_tmp_nm"
4503 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4504 # Check to see if the nm accepts a BSD-compat flag.
4505 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4506 # nm: unknown option "B" ignored
4507 # Tru64's nm complains that /dev/null is an invalid object file
4508 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4509 */dev/null* | *'Invalid file or object type'*)
4510 lt_cv_path_NM="$tmp_nm -B"
4511 break
4514 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4515 */dev/null*)
4516 lt_cv_path_NM="$tmp_nm -p"
4517 break
4520 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4521 continue # so that we can try to find one that supports BSD flags
4523 esac
4525 esac
4527 done
4528 IFS="$lt_save_ifs"
4529 done
4530 : ${lt_cv_path_NM=no}
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4534 $as_echo "$lt_cv_path_NM" >&6; }
4535 if test "$lt_cv_path_NM" != "no"; then
4536 NM="$lt_cv_path_NM"
4537 else
4538 # Didn't find any BSD compatible name lister, look for dumpbin.
4539 if test -n "$DUMPBIN"; then :
4540 # Let the user override the test.
4541 else
4542 if test -n "$ac_tool_prefix"; then
4543 for ac_prog in dumpbin "link -dump"
4545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if test -n "$DUMPBIN"; then
4553 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4568 IFS=$as_save_IFS
4572 DUMPBIN=$ac_cv_prog_DUMPBIN
4573 if test -n "$DUMPBIN"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4575 $as_echo "$DUMPBIN" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4582 test -n "$DUMPBIN" && break
4583 done
4585 if test -z "$DUMPBIN"; then
4586 ac_ct_DUMPBIN=$DUMPBIN
4587 for ac_prog in dumpbin "link -dump"
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$ac_ct_DUMPBIN"; then
4597 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4617 if test -n "$ac_ct_DUMPBIN"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4619 $as_echo "$ac_ct_DUMPBIN" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 test -n "$ac_ct_DUMPBIN" && break
4627 done
4629 if test "x$ac_ct_DUMPBIN" = x; then
4630 DUMPBIN=":"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 DUMPBIN=$ac_ct_DUMPBIN
4642 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4643 *COFF*)
4644 DUMPBIN="$DUMPBIN -symbols"
4647 DUMPBIN=:
4649 esac
4652 if test "$DUMPBIN" != ":"; then
4653 NM="$DUMPBIN"
4656 test -z "$NM" && NM=nm
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4664 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4665 if test "${lt_cv_nm_interface+set}" = set; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 lt_cv_nm_interface="BSD nm"
4669 echo "int some_variable = 0;" > conftest.$ac_ext
4670 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4671 (eval "$ac_compile" 2>conftest.err)
4672 cat conftest.err >&5
4673 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4674 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4675 cat conftest.err >&5
4676 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4677 cat conftest.out >&5
4678 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4679 lt_cv_nm_interface="MS dumpbin"
4681 rm -f conftest*
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4684 $as_echo "$lt_cv_nm_interface" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4687 $as_echo_n "checking whether ln -s works... " >&6; }
4688 LN_S=$as_ln_s
4689 if test "$LN_S" = "ln -s"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691 $as_echo "yes" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4694 $as_echo "no, using $LN_S" >&6; }
4697 # find the maximum length of command line arguments
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4699 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4700 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4704 teststring="ABCD"
4706 case $build_os in
4707 msdosdjgpp*)
4708 # On DJGPP, this test can blow up pretty badly due to problems in libc
4709 # (any single argument exceeding 2000 bytes causes a buffer overrun
4710 # during glob expansion). Even if it were fixed, the result of this
4711 # check would be larger than it should be.
4712 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4715 gnu*)
4716 # Under GNU Hurd, this test is not required because there is
4717 # no limit to the length of command line arguments.
4718 # Libtool will interpret -1 as no limit whatsoever
4719 lt_cv_sys_max_cmd_len=-1;
4722 cygwin* | mingw* | cegcc*)
4723 # On Win9x/ME, this test blows up -- it succeeds, but takes
4724 # about 5 minutes as the teststring grows exponentially.
4725 # Worse, since 9x/ME are not pre-emptively multitasking,
4726 # you end up with a "frozen" computer, even though with patience
4727 # the test eventually succeeds (with a max line length of 256k).
4728 # Instead, let's just punt: use the minimum linelength reported by
4729 # all of the supported platforms: 8192 (on NT/2K/XP).
4730 lt_cv_sys_max_cmd_len=8192;
4733 mint*)
4734 # On MiNT this can take a long time and run out of memory.
4735 lt_cv_sys_max_cmd_len=8192;
4738 amigaos*)
4739 # On AmigaOS with pdksh, this test takes hours, literally.
4740 # So we just punt and use a minimum line length of 8192.
4741 lt_cv_sys_max_cmd_len=8192;
4744 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4745 # This has been around since 386BSD, at least. Likely further.
4746 if test -x /sbin/sysctl; then
4747 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4748 elif test -x /usr/sbin/sysctl; then
4749 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4750 else
4751 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4753 # And add a safety zone
4754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4758 interix*)
4759 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4760 lt_cv_sys_max_cmd_len=196608
4763 osf*)
4764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4766 # nice to cause kernel panics so lets avoid the loop below.
4767 # First set a reasonable default.
4768 lt_cv_sys_max_cmd_len=16384
4770 if test -x /sbin/sysconfig; then
4771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4772 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4773 esac
4776 sco3.2v5*)
4777 lt_cv_sys_max_cmd_len=102400
4779 sysv5* | sco5v6* | sysv4.2uw2*)
4780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4781 if test -n "$kargmax"; then
4782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4783 else
4784 lt_cv_sys_max_cmd_len=32768
4788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4789 if test -n "$lt_cv_sys_max_cmd_len"; then
4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4792 else
4793 # Make teststring a little bigger before we do anything with it.
4794 # a 1K string should be a reasonable start.
4795 for i in 1 2 3 4 5 6 7 8 ; do
4796 teststring=$teststring$teststring
4797 done
4798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4799 # If test is not a shell built-in, we'll probably end up computing a
4800 # maximum length that is only half of the actual maximum length, but
4801 # we can't tell.
4802 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4803 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4804 test $i != 17 # 1/2 MB should be enough
4806 i=`expr $i + 1`
4807 teststring=$teststring$teststring
4808 done
4809 # Only check the string length outside the loop.
4810 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4811 teststring=
4812 # Add a significant safety factor because C++ compilers can tack on
4813 # massive amounts of additional arguments before passing them to the
4814 # linker. It appears as though 1/2 is a usable value.
4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4818 esac
4822 if test -n $lt_cv_sys_max_cmd_len ; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4824 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4825 else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4827 $as_echo "none" >&6; }
4829 max_cmd_len=$lt_cv_sys_max_cmd_len
4836 : ${CP="cp -f"}
4837 : ${MV="mv -f"}
4838 : ${RM="rm -f"}
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4841 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4842 # Try some XSI features
4843 xsi_shell=no
4844 ( _lt_dummy="a/b/c"
4845 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4846 = c,a/b,, \
4847 && eval 'test $(( 1 + 1 )) -eq 2 \
4848 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4849 && xsi_shell=yes
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4851 $as_echo "$xsi_shell" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4855 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4856 lt_shell_append=no
4857 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4858 >/dev/null 2>&1 \
4859 && lt_shell_append=yes
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4861 $as_echo "$lt_shell_append" >&6; }
4864 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4865 lt_unset=unset
4866 else
4867 lt_unset=false
4874 # test EBCDIC or ASCII
4875 case `echo X|tr X '\101'` in
4876 A) # ASCII based system
4877 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4878 lt_SP2NL='tr \040 \012'
4879 lt_NL2SP='tr \015\012 \040\040'
4881 *) # EBCDIC based system
4882 lt_SP2NL='tr \100 \n'
4883 lt_NL2SP='tr \r\n \100\100'
4885 esac
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4896 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4897 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 lt_cv_ld_reload_flag='-r'
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4903 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4904 reload_flag=$lt_cv_ld_reload_flag
4905 case $reload_flag in
4906 "" | " "*) ;;
4907 *) reload_flag=" $reload_flag" ;;
4908 esac
4909 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4910 case $host_os in
4911 darwin*)
4912 if test "$GCC" = yes; then
4913 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4914 else
4915 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4918 esac
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$OBJDUMP"; then
4937 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 OBJDUMP=$ac_cv_prog_OBJDUMP
4957 if test -n "$OBJDUMP"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4959 $as_echo "$OBJDUMP" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4967 if test -z "$ac_cv_prog_OBJDUMP"; then
4968 ac_ct_OBJDUMP=$OBJDUMP
4969 # Extract the first word of "objdump", so it can be a program name with args.
4970 set dummy objdump; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$ac_ct_OBJDUMP"; then
4977 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4997 if test -n "$ac_ct_OBJDUMP"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4999 $as_echo "$ac_ct_OBJDUMP" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5005 if test "x$ac_ct_OBJDUMP" = x; then
5006 OBJDUMP="false"
5007 else
5008 case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014 OBJDUMP=$ac_ct_OBJDUMP
5016 else
5017 OBJDUMP="$ac_cv_prog_OBJDUMP"
5020 test -z "$OBJDUMP" && OBJDUMP=objdump
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5031 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5032 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 lt_cv_file_magic_cmd='$MAGIC_CMD'
5036 lt_cv_file_magic_test_file=
5037 lt_cv_deplibs_check_method='unknown'
5038 # Need to set the preceding variable on all platforms that support
5039 # interlibrary dependencies.
5040 # 'none' -- dependencies not supported.
5041 # `unknown' -- same as none, but documents that we really don't know.
5042 # 'pass_all' -- all dependencies passed with no checks.
5043 # 'test_compile' -- check by making test program.
5044 # 'file_magic [[regex]]' -- check by looking for files in library path
5045 # which responds to the $file_magic_cmd with a given extended regex.
5046 # If you have `file' or equivalent on your system and you're not sure
5047 # whether `pass_all' will *always* work, you probably want this one.
5049 case $host_os in
5050 aix[4-9]*)
5051 lt_cv_deplibs_check_method=pass_all
5054 beos*)
5055 lt_cv_deplibs_check_method=pass_all
5058 bsdi[45]*)
5059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5060 lt_cv_file_magic_cmd='/usr/bin/file -L'
5061 lt_cv_file_magic_test_file=/shlib/libc.so
5064 cygwin*)
5065 # func_win32_libid is a shell function defined in ltmain.sh
5066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5067 lt_cv_file_magic_cmd='func_win32_libid'
5070 mingw* | pw32*)
5071 # Base MSYS/MinGW do not provide the 'file' command needed by
5072 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5073 # unless we find 'file', for example because we are cross-compiling.
5074 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5075 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5077 lt_cv_file_magic_cmd='func_win32_libid'
5078 else
5079 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5080 lt_cv_file_magic_cmd='$OBJDUMP -f'
5084 cegcc*)
5085 # use the weaker test based on 'objdump'. See mingw*.
5086 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5087 lt_cv_file_magic_cmd='$OBJDUMP -f'
5090 darwin* | rhapsody*)
5091 lt_cv_deplibs_check_method=pass_all
5094 freebsd* | dragonfly*)
5095 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5096 case $host_cpu in
5097 i*86 )
5098 # Not sure whether the presence of OpenBSD here was a mistake.
5099 # Let's accept both of them until this is cleared up.
5100 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5101 lt_cv_file_magic_cmd=/usr/bin/file
5102 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5104 esac
5105 else
5106 lt_cv_deplibs_check_method=pass_all
5110 gnu*)
5111 lt_cv_deplibs_check_method=pass_all
5114 haiku*)
5115 lt_cv_deplibs_check_method=pass_all
5118 hpux10.20* | hpux11*)
5119 lt_cv_file_magic_cmd=/usr/bin/file
5120 case $host_cpu in
5121 ia64*)
5122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5123 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5125 hppa*64*)
5126 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]'
5127 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5131 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5133 esac
5136 interix[3-9]*)
5137 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5141 irix5* | irix6* | nonstopux*)
5142 case $LD in
5143 *-32|*"-32 ") libmagic=32-bit;;
5144 *-n32|*"-n32 ") libmagic=N32;;
5145 *-64|*"-64 ") libmagic=64-bit;;
5146 *) libmagic=never-match;;
5147 esac
5148 lt_cv_deplibs_check_method=pass_all
5151 # This must be Linux ELF.
5152 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5153 lt_cv_deplibs_check_method=pass_all
5156 netbsd*)
5157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5159 else
5160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5164 newos6*)
5165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5166 lt_cv_file_magic_cmd=/usr/bin/file
5167 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5170 *nto* | *qnx*)
5171 lt_cv_deplibs_check_method=pass_all
5174 openbsd*)
5175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5177 else
5178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5182 osf3* | osf4* | osf5*)
5183 lt_cv_deplibs_check_method=pass_all
5186 rdos*)
5187 lt_cv_deplibs_check_method=pass_all
5190 solaris*)
5191 lt_cv_deplibs_check_method=pass_all
5194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5195 lt_cv_deplibs_check_method=pass_all
5198 sysv4 | sysv4.3*)
5199 case $host_vendor in
5200 motorola)
5201 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]'
5202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5204 ncr)
5205 lt_cv_deplibs_check_method=pass_all
5207 sequent)
5208 lt_cv_file_magic_cmd='/bin/file'
5209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5211 sni)
5212 lt_cv_file_magic_cmd='/bin/file'
5213 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5214 lt_cv_file_magic_test_file=/lib/libc.so
5216 siemens)
5217 lt_cv_deplibs_check_method=pass_all
5220 lt_cv_deplibs_check_method=pass_all
5222 esac
5225 tpf*)
5226 lt_cv_deplibs_check_method=pass_all
5228 esac
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5232 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5233 file_magic_cmd=$lt_cv_file_magic_cmd
5234 deplibs_check_method=$lt_cv_deplibs_check_method
5235 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}ar; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_AR+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$AR"; then
5257 ac_cv_prog_AR="$AR" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_AR="${ac_tool_prefix}ar"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5270 done
5271 done
5272 IFS=$as_save_IFS
5276 AR=$ac_cv_prog_AR
5277 if test -n "$AR"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5279 $as_echo "$AR" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5287 if test -z "$ac_cv_prog_AR"; then
5288 ac_ct_AR=$AR
5289 # Extract the first word of "ar", so it can be a program name with args.
5290 set dummy ar; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 if test -n "$ac_ct_AR"; then
5297 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_ac_ct_AR="ar"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5316 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5317 if test -n "$ac_ct_AR"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5319 $as_echo "$ac_ct_AR" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5325 if test "x$ac_ct_AR" = x; then
5326 AR="false"
5327 else
5328 case $cross_compiling:$ac_tool_warned in
5329 yes:)
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332 ac_tool_warned=yes ;;
5333 esac
5334 AR=$ac_ct_AR
5336 else
5337 AR="$ac_cv_prog_AR"
5340 test -z "$AR" && AR=ar
5341 test -z "$AR_FLAGS" && AR_FLAGS=cru
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}strip; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_prog_STRIP+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$STRIP"; then
5362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5375 done
5376 done
5377 IFS=$as_save_IFS
5381 STRIP=$ac_cv_prog_STRIP
5382 if test -n "$STRIP"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5384 $as_echo "$STRIP" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5392 if test -z "$ac_cv_prog_STRIP"; then
5393 ac_ct_STRIP=$STRIP
5394 # Extract the first word of "strip", so it can be a program name with args.
5395 set dummy strip; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$ac_ct_STRIP"; then
5402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_STRIP="strip"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5415 done
5416 done
5417 IFS=$as_save_IFS
5421 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5422 if test -n "$ac_ct_STRIP"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5424 $as_echo "$ac_ct_STRIP" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5430 if test "x$ac_ct_STRIP" = x; then
5431 STRIP=":"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434 yes:)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5438 esac
5439 STRIP=$ac_ct_STRIP
5441 else
5442 STRIP="$ac_cv_prog_STRIP"
5445 test -z "$STRIP" && STRIP=:
5452 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$RANLIB"; then
5461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5480 RANLIB=$ac_cv_prog_RANLIB
5481 if test -n "$RANLIB"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5483 $as_echo "$RANLIB" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5491 if test -z "$ac_cv_prog_RANLIB"; then
5492 ac_ct_RANLIB=$RANLIB
5493 # Extract the first word of "ranlib", so it can be a program name with args.
5494 set dummy ranlib; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$ac_ct_RANLIB"; then
5501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_ac_ct_RANLIB="ranlib"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5521 if test -n "$ac_ct_RANLIB"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5523 $as_echo "$ac_ct_RANLIB" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5529 if test "x$ac_ct_RANLIB" = x; then
5530 RANLIB=":"
5531 else
5532 case $cross_compiling:$ac_tool_warned in
5533 yes:)
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536 ac_tool_warned=yes ;;
5537 esac
5538 RANLIB=$ac_ct_RANLIB
5540 else
5541 RANLIB="$ac_cv_prog_RANLIB"
5544 test -z "$RANLIB" && RANLIB=:
5551 # Determine commands to create old-style static archives.
5552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5553 old_postinstall_cmds='chmod 644 $oldlib'
5554 old_postuninstall_cmds=
5556 if test -n "$RANLIB"; then
5557 case $host_os in
5558 openbsd*)
5559 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5562 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5564 esac
5565 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5568 case $host_os in
5569 darwin*)
5570 lock_old_archive_extraction=yes ;;
5572 lock_old_archive_extraction=no ;;
5573 esac
5613 # If no C compiler was specified, use CC.
5614 LTCC=${LTCC-"$CC"}
5616 # If no C compiler flags were specified, use CFLAGS.
5617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5619 # Allow CC to be a program name with arguments.
5620 compiler=$CC
5623 # Check for command to grab the raw symbol name followed by C symbol from nm.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5625 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5626 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5630 # These are sane defaults that work on at least a few old systems.
5631 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5633 # Character class describing NM global symbol codes.
5634 symcode='[BCDEGRST]'
5636 # Regexp to match symbols that can be accessed directly from C.
5637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5639 # Define system-specific variables.
5640 case $host_os in
5641 aix*)
5642 symcode='[BCDT]'
5644 cygwin* | mingw* | pw32* | cegcc*)
5645 symcode='[ABCDGISTW]'
5647 hpux*)
5648 if test "$host_cpu" = ia64; then
5649 symcode='[ABCDEGRST]'
5652 irix* | nonstopux*)
5653 symcode='[BCDEGRST]'
5655 osf*)
5656 symcode='[BCDEGQRST]'
5658 solaris*)
5659 symcode='[BDRT]'
5661 sco3.2v5*)
5662 symcode='[DT]'
5664 sysv4.2uw2*)
5665 symcode='[DT]'
5667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5668 symcode='[ABDT]'
5670 sysv4)
5671 symcode='[DFNSTU]'
5673 esac
5675 # If we're using GNU nm, then use its standard symbol codes.
5676 case `$NM -V 2>&1` in
5677 *GNU* | *'with BFD'*)
5678 symcode='[ABCDGIRSTW]' ;;
5679 esac
5681 # Transform an extracted symbol line into a proper C declaration.
5682 # Some systems (esp. on ia64) link data and code symbols differently,
5683 # so use this general approach.
5684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5686 # Transform an extracted symbol line into symbol name and symbol address
5687 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5688 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'"
5690 # Handle CRLF in mingw tool chain
5691 opt_cr=
5692 case $build_os in
5693 mingw*)
5694 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5696 esac
5698 # Try without a prefix underscore, then with it.
5699 for ac_symprfx in "" "_"; do
5701 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5702 symxfrm="\\1 $ac_symprfx\\2 \\2"
5704 # Write the raw and C identifiers.
5705 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5706 # Fake it for dumpbin and say T for any non-static function
5707 # and D for any global variable.
5708 # Also find C++ and __fastcall symbols from MSVC++,
5709 # which start with @ or ?.
5710 lt_cv_sys_global_symbol_pipe="$AWK '"\
5711 " {last_section=section; section=\$ 3};"\
5712 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5713 " \$ 0!~/External *\|/{next};"\
5714 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5715 " {if(hide[section]) next};"\
5716 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5717 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5718 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5719 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5720 " ' prfx=^$ac_symprfx"
5721 else
5722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5725 # Check to see that the pipe works correctly.
5726 pipe_works=no
5728 rm -f conftest*
5729 cat > conftest.$ac_ext <<_LT_EOF
5730 #ifdef __cplusplus
5731 extern "C" {
5732 #endif
5733 char nm_test_var;
5734 void nm_test_func(void);
5735 void nm_test_func(void){}
5736 #ifdef __cplusplus
5738 #endif
5739 int main(){nm_test_var='a';nm_test_func();return(0);}
5740 _LT_EOF
5742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5743 (eval $ac_compile) 2>&5
5744 ac_status=$?
5745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5746 test $ac_status = 0; }; then
5747 # Now try to grab the symbols.
5748 nlist=conftest.nm
5749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5750 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5751 ac_status=$?
5752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5753 test $ac_status = 0; } && test -s "$nlist"; then
5754 # Try sorting and uniquifying the output.
5755 if sort "$nlist" | uniq > "$nlist"T; then
5756 mv -f "$nlist"T "$nlist"
5757 else
5758 rm -f "$nlist"T
5761 # Make sure that we snagged all the symbols we need.
5762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5764 cat <<_LT_EOF > conftest.$ac_ext
5765 #ifdef __cplusplus
5766 extern "C" {
5767 #endif
5769 _LT_EOF
5770 # Now generate the symbol file.
5771 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5773 cat <<_LT_EOF >> conftest.$ac_ext
5775 /* The mapping between symbol names and symbols. */
5776 const struct {
5777 const char *name;
5778 void *address;
5780 lt__PROGRAM__LTX_preloaded_symbols[] =
5782 { "@PROGRAM@", (void *) 0 },
5783 _LT_EOF
5784 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5785 cat <<\_LT_EOF >> conftest.$ac_ext
5786 {0, (void *) 0}
5789 /* This works around a problem in FreeBSD linker */
5790 #ifdef FREEBSD_WORKAROUND
5791 static const void *lt_preloaded_setup() {
5792 return lt__PROGRAM__LTX_preloaded_symbols;
5794 #endif
5796 #ifdef __cplusplus
5798 #endif
5799 _LT_EOF
5800 # Now try linking the two files.
5801 mv conftest.$ac_objext conftstm.$ac_objext
5802 lt_save_LIBS="$LIBS"
5803 lt_save_CFLAGS="$CFLAGS"
5804 LIBS="conftstm.$ac_objext"
5805 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5807 (eval $ac_link) 2>&5
5808 ac_status=$?
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5811 pipe_works=yes
5813 LIBS="$lt_save_LIBS"
5814 CFLAGS="$lt_save_CFLAGS"
5815 else
5816 echo "cannot find nm_test_func in $nlist" >&5
5818 else
5819 echo "cannot find nm_test_var in $nlist" >&5
5821 else
5822 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5824 else
5825 echo "$progname: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5828 rm -rf conftest* conftst*
5830 # Do not use the global_symbol_pipe unless it works.
5831 if test "$pipe_works" = yes; then
5832 break
5833 else
5834 lt_cv_sys_global_symbol_pipe=
5836 done
5840 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5841 lt_cv_sys_global_symbol_to_cdecl=
5843 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5845 $as_echo "failed" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5848 $as_echo "ok" >&6; }
5872 # Check whether --enable-libtool-lock was given.
5873 if test "${enable_libtool_lock+set}" = set; then :
5874 enableval=$enable_libtool_lock;
5877 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5879 # Some flags need to be propagated to the compiler or linker for good
5880 # libtool support.
5881 case $host in
5882 ia64-*-hpux*)
5883 # Find out which ABI we are using.
5884 echo 'int i;' > conftest.$ac_ext
5885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5886 (eval $ac_compile) 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; }; then
5890 case `/usr/bin/file conftest.$ac_objext` in
5891 *ELF-32*)
5892 HPUX_IA64_MODE="32"
5894 *ELF-64*)
5895 HPUX_IA64_MODE="64"
5897 esac
5899 rm -rf conftest*
5901 *-*-irix6*)
5902 # Find out which ABI we are using.
5903 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5905 (eval $ac_compile) 2>&5
5906 ac_status=$?
5907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5908 test $ac_status = 0; }; then
5909 if test "$lt_cv_prog_gnu_ld" = yes; then
5910 case `/usr/bin/file conftest.$ac_objext` in
5911 *32-bit*)
5912 LD="${LD-ld} -melf32bsmip"
5914 *N32*)
5915 LD="${LD-ld} -melf32bmipn32"
5917 *64-bit*)
5918 LD="${LD-ld} -melf64bmip"
5920 esac
5921 else
5922 case `/usr/bin/file conftest.$ac_objext` in
5923 *32-bit*)
5924 LD="${LD-ld} -32"
5926 *N32*)
5927 LD="${LD-ld} -n32"
5929 *64-bit*)
5930 LD="${LD-ld} -64"
5932 esac
5935 rm -rf conftest*
5938 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5939 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5940 # Find out which ABI we are using.
5941 echo 'int i;' > conftest.$ac_ext
5942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }; then
5947 case `/usr/bin/file conftest.o` in
5948 *32-bit*)
5949 case $host in
5950 x86_64-*kfreebsd*-gnu)
5951 LD="${LD-ld} -m elf_i386_fbsd"
5953 x86_64-*linux*)
5954 LD="${LD-ld} -m elf_i386"
5956 ppc64-*linux*|powerpc64-*linux*)
5957 LD="${LD-ld} -m elf32ppclinux"
5959 s390x-*linux*)
5960 LD="${LD-ld} -m elf_s390"
5962 sparc64-*linux*)
5963 LD="${LD-ld} -m elf32_sparc"
5965 esac
5967 *64-bit*)
5968 case $host in
5969 x86_64-*kfreebsd*-gnu)
5970 LD="${LD-ld} -m elf_x86_64_fbsd"
5972 x86_64-*linux*)
5973 LD="${LD-ld} -m elf_x86_64"
5975 ppc*-*linux*|powerpc*-*linux*)
5976 LD="${LD-ld} -m elf64ppc"
5978 s390*-*linux*|s390*-*tpf*)
5979 LD="${LD-ld} -m elf64_s390"
5981 sparc*-*linux*)
5982 LD="${LD-ld} -m elf64_sparc"
5984 esac
5986 esac
5988 rm -rf conftest*
5991 *-*-sco3.2v5*)
5992 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5993 SAVE_CFLAGS="$CFLAGS"
5994 CFLAGS="$CFLAGS -belf"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5996 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5997 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 ac_ext=c
6001 ac_cpp='$CPP $CPPFLAGS'
6002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6010 main ()
6014 return 0;
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"; then :
6018 lt_cv_cc_needs_belf=yes
6019 else
6020 lt_cv_cc_needs_belf=no
6022 rm -f core conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024 ac_ext=c
6025 ac_cpp='$CPP $CPPFLAGS'
6026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6032 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6034 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6035 CFLAGS="$SAVE_CFLAGS"
6038 sparc*-*solaris*)
6039 # Find out which ABI we are using.
6040 echo 'int i;' > conftest.$ac_ext
6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6042 (eval $ac_compile) 2>&5
6043 ac_status=$?
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; }; then
6046 case `/usr/bin/file conftest.o` in
6047 *64-bit*)
6048 case $lt_cv_prog_gnu_ld in
6049 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6051 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6052 LD="${LD-ld} -64"
6055 esac
6057 esac
6059 rm -rf conftest*
6061 esac
6063 need_locks="$enable_libtool_lock"
6066 case $host_os in
6067 rhapsody* | darwin*)
6068 if test -n "$ac_tool_prefix"; then
6069 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6070 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$DSYMUTIL"; then
6077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6090 done
6091 done
6092 IFS=$as_save_IFS
6096 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6097 if test -n "$DSYMUTIL"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6099 $as_echo "$DSYMUTIL" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6107 if test -z "$ac_cv_prog_DSYMUTIL"; then
6108 ac_ct_DSYMUTIL=$DSYMUTIL
6109 # Extract the first word of "dsymutil", so it can be a program name with args.
6110 set dummy dsymutil; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$ac_ct_DSYMUTIL"; then
6117 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6130 done
6131 done
6132 IFS=$as_save_IFS
6136 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6137 if test -n "$ac_ct_DSYMUTIL"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6139 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6145 if test "x$ac_ct_DSYMUTIL" = x; then
6146 DSYMUTIL=":"
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned=yes ;;
6153 esac
6154 DSYMUTIL=$ac_ct_DSYMUTIL
6156 else
6157 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$NMEDIT"; then
6169 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6182 done
6183 done
6184 IFS=$as_save_IFS
6188 NMEDIT=$ac_cv_prog_NMEDIT
6189 if test -n "$NMEDIT"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6191 $as_echo "$NMEDIT" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6199 if test -z "$ac_cv_prog_NMEDIT"; then
6200 ac_ct_NMEDIT=$NMEDIT
6201 # Extract the first word of "nmedit", so it can be a program name with args.
6202 set dummy nmedit; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 if test -n "$ac_ct_NMEDIT"; then
6209 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6210 else
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6222 done
6223 done
6224 IFS=$as_save_IFS
6228 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6229 if test -n "$ac_ct_NMEDIT"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6231 $as_echo "$ac_ct_NMEDIT" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6237 if test "x$ac_ct_NMEDIT" = x; then
6238 NMEDIT=":"
6239 else
6240 case $cross_compiling:$ac_tool_warned in
6241 yes:)
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6245 esac
6246 NMEDIT=$ac_ct_NMEDIT
6248 else
6249 NMEDIT="$ac_cv_prog_NMEDIT"
6252 if test -n "$ac_tool_prefix"; then
6253 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6254 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if test "${ac_cv_prog_LIPO+set}" = set; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$LIPO"; then
6261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6274 done
6275 done
6276 IFS=$as_save_IFS
6280 LIPO=$ac_cv_prog_LIPO
6281 if test -n "$LIPO"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6283 $as_echo "$LIPO" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6291 if test -z "$ac_cv_prog_LIPO"; then
6292 ac_ct_LIPO=$LIPO
6293 # Extract the first word of "lipo", so it can be a program name with args.
6294 set dummy lipo; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$ac_ct_LIPO"; then
6301 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_ac_ct_LIPO="lipo"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6321 if test -n "$ac_ct_LIPO"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6323 $as_echo "$ac_ct_LIPO" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6329 if test "x$ac_ct_LIPO" = x; then
6330 LIPO=":"
6331 else
6332 case $cross_compiling:$ac_tool_warned in
6333 yes:)
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336 ac_tool_warned=yes ;;
6337 esac
6338 LIPO=$ac_ct_LIPO
6340 else
6341 LIPO="$ac_cv_prog_LIPO"
6344 if test -n "$ac_tool_prefix"; then
6345 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6346 set dummy ${ac_tool_prefix}otool; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$OTOOL"; then
6353 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6366 done
6367 done
6368 IFS=$as_save_IFS
6372 OTOOL=$ac_cv_prog_OTOOL
6373 if test -n "$OTOOL"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6375 $as_echo "$OTOOL" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6383 if test -z "$ac_cv_prog_OTOOL"; then
6384 ac_ct_OTOOL=$OTOOL
6385 # Extract the first word of "otool", so it can be a program name with args.
6386 set dummy otool; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -n "$ac_ct_OTOOL"; then
6393 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6394 else
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_prog_ac_ct_OTOOL="otool"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 break 2
6406 done
6407 done
6408 IFS=$as_save_IFS
6412 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6413 if test -n "$ac_ct_OTOOL"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6415 $as_echo "$ac_ct_OTOOL" >&6; }
6416 else
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6421 if test "x$ac_ct_OTOOL" = x; then
6422 OTOOL=":"
6423 else
6424 case $cross_compiling:$ac_tool_warned in
6425 yes:)
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428 ac_tool_warned=yes ;;
6429 esac
6430 OTOOL=$ac_ct_OTOOL
6432 else
6433 OTOOL="$ac_cv_prog_OTOOL"
6436 if test -n "$ac_tool_prefix"; then
6437 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6438 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$OTOOL64"; then
6445 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6460 IFS=$as_save_IFS
6464 OTOOL64=$ac_cv_prog_OTOOL64
6465 if test -n "$OTOOL64"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6467 $as_echo "$OTOOL64" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6475 if test -z "$ac_cv_prog_OTOOL64"; then
6476 ac_ct_OTOOL64=$OTOOL64
6477 # Extract the first word of "otool64", so it can be a program name with args.
6478 set dummy otool64; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 if test -n "$ac_ct_OTOOL64"; then
6485 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_ac_ct_OTOOL64="otool64"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6498 done
6499 done
6500 IFS=$as_save_IFS
6504 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6505 if test -n "$ac_ct_OTOOL64"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6507 $as_echo "$ac_ct_OTOOL64" >&6; }
6508 else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6513 if test "x$ac_ct_OTOOL64" = x; then
6514 OTOOL64=":"
6515 else
6516 case $cross_compiling:$ac_tool_warned in
6517 yes:)
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520 ac_tool_warned=yes ;;
6521 esac
6522 OTOOL64=$ac_ct_OTOOL64
6524 else
6525 OTOOL64="$ac_cv_prog_OTOOL64"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6555 $as_echo_n "checking for -single_module linker flag... " >&6; }
6556 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 lt_cv_apple_cc_single_mod=no
6560 if test -z "${LT_MULTI_MODULE}"; then
6561 # By default we will add the -single_module flag. You can override
6562 # by either setting the environment variable LT_MULTI_MODULE
6563 # non-empty at configure time, or by adding -multi_module to the
6564 # link flags.
6565 rm -rf libconftest.dylib*
6566 echo "int foo(void){return 1;}" > conftest.c
6567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6568 -dynamiclib -Wl,-single_module conftest.c" >&5
6569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6571 _lt_result=$?
6572 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6573 lt_cv_apple_cc_single_mod=yes
6574 else
6575 cat conftest.err >&5
6577 rm -rf libconftest.dylib*
6578 rm -f conftest.*
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6582 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6584 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6585 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 lt_cv_ld_exported_symbols_list=no
6589 save_LDFLAGS=$LDFLAGS
6590 echo "_main" > conftest.sym
6591 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6596 main ()
6600 return 0;
6602 _ACEOF
6603 if ac_fn_c_try_link "$LINENO"; then :
6604 lt_cv_ld_exported_symbols_list=yes
6605 else
6606 lt_cv_ld_exported_symbols_list=no
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 LDFLAGS="$save_LDFLAGS"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6614 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6616 $as_echo_n "checking for -force_load linker flag... " >&6; }
6617 if test "${lt_cv_ld_force_load+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 lt_cv_ld_force_load=no
6621 cat > conftest.c << _LT_EOF
6622 int forced_loaded() { return 2;}
6623 _LT_EOF
6624 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6625 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6626 echo "$AR cru libconftest.a conftest.o" >&5
6627 $AR cru libconftest.a conftest.o 2>&5
6628 cat > conftest.c << _LT_EOF
6629 int main() { return 0;}
6630 _LT_EOF
6631 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6632 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6633 _lt_result=$?
6634 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6635 lt_cv_ld_force_load=yes
6636 else
6637 cat conftest.err >&5
6639 rm -f conftest.err libconftest.a conftest conftest.c
6640 rm -rf conftest.dSYM
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6644 $as_echo "$lt_cv_ld_force_load" >&6; }
6645 case $host_os in
6646 rhapsody* | darwin1.[012])
6647 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6648 darwin1.*)
6649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6650 darwin*) # darwin 5.x on
6651 # if running on 10.5 or later, the deployment target defaults
6652 # to the OS version, if on x86, and 10.4, the deployment
6653 # target defaults to 10.4. Don't you love it?
6654 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6655 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6656 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6657 10.[012]*)
6658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6659 10.*)
6660 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6661 esac
6663 esac
6664 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6665 _lt_dar_single_mod='$single_module'
6667 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6668 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6669 else
6670 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6672 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6673 _lt_dsymutil='~$DSYMUTIL $lib || :'
6674 else
6675 _lt_dsymutil=
6678 esac
6680 ac_ext=c
6681 ac_cpp='$CPP $CPPFLAGS'
6682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6686 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6687 # On Suns, sometimes $CPP names a directory.
6688 if test -n "$CPP" && test -d "$CPP"; then
6689 CPP=
6691 if test -z "$CPP"; then
6692 if test "${ac_cv_prog_CPP+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 # Double quotes because CPP needs to be expanded
6696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6698 ac_preproc_ok=false
6699 for ac_c_preproc_warn_flag in '' yes
6701 # Use a header file that comes with gcc, so configuring glibc
6702 # with a fresh cross-compiler works.
6703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6704 # <limits.h> exists even on freestanding compilers.
6705 # On the NeXT, cc -E runs the code through the compiler's parser,
6706 # not just through cpp. "Syntax error" is here to catch this case.
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 #ifdef __STDC__
6710 # include <limits.h>
6711 #else
6712 # include <assert.h>
6713 #endif
6714 Syntax error
6715 _ACEOF
6716 if ac_fn_c_try_cpp "$LINENO"; then :
6718 else
6719 # Broken: fails on valid input.
6720 continue
6722 rm -f conftest.err conftest.$ac_ext
6724 # OK, works on sane cases. Now check whether nonexistent headers
6725 # can be detected and how.
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 #include <ac_nonexistent.h>
6729 _ACEOF
6730 if ac_fn_c_try_cpp "$LINENO"; then :
6731 # Broken: success on invalid input.
6732 continue
6733 else
6734 # Passes both tests.
6735 ac_preproc_ok=:
6736 break
6738 rm -f conftest.err conftest.$ac_ext
6740 done
6741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6742 rm -f conftest.err conftest.$ac_ext
6743 if $ac_preproc_ok; then :
6744 break
6747 done
6748 ac_cv_prog_CPP=$CPP
6751 CPP=$ac_cv_prog_CPP
6752 else
6753 ac_cv_prog_CPP=$CPP
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6756 $as_echo "$CPP" >&6; }
6757 ac_preproc_ok=false
6758 for ac_c_preproc_warn_flag in '' yes
6760 # Use a header file that comes with gcc, so configuring glibc
6761 # with a fresh cross-compiler works.
6762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6763 # <limits.h> exists even on freestanding compilers.
6764 # On the NeXT, cc -E runs the code through the compiler's parser,
6765 # not just through cpp. "Syntax error" is here to catch this case.
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #ifdef __STDC__
6769 # include <limits.h>
6770 #else
6771 # include <assert.h>
6772 #endif
6773 Syntax error
6774 _ACEOF
6775 if ac_fn_c_try_cpp "$LINENO"; then :
6777 else
6778 # Broken: fails on valid input.
6779 continue
6781 rm -f conftest.err conftest.$ac_ext
6783 # OK, works on sane cases. Now check whether nonexistent headers
6784 # can be detected and how.
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <ac_nonexistent.h>
6788 _ACEOF
6789 if ac_fn_c_try_cpp "$LINENO"; then :
6790 # Broken: success on invalid input.
6791 continue
6792 else
6793 # Passes both tests.
6794 ac_preproc_ok=:
6795 break
6797 rm -f conftest.err conftest.$ac_ext
6799 done
6800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6801 rm -f conftest.err conftest.$ac_ext
6802 if $ac_preproc_ok; then :
6804 else
6805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6807 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6808 See \`config.log' for more details." "$LINENO" 5; }
6811 ac_ext=c
6812 ac_cpp='$CPP $CPPFLAGS'
6813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6819 $as_echo_n "checking for ANSI C header files... " >&6; }
6820 if test "${ac_cv_header_stdc+set}" = set; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <stdlib.h>
6826 #include <stdarg.h>
6827 #include <string.h>
6828 #include <float.h>
6831 main ()
6835 return 0;
6837 _ACEOF
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839 ac_cv_header_stdc=yes
6840 else
6841 ac_cv_header_stdc=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 if test $ac_cv_header_stdc = yes; then
6846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <string.h>
6851 _ACEOF
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "memchr" >/dev/null 2>&1; then :
6855 else
6856 ac_cv_header_stdc=no
6858 rm -f conftest*
6862 if test $ac_cv_header_stdc = yes; then
6863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <stdlib.h>
6868 _ACEOF
6869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6870 $EGREP "free" >/dev/null 2>&1; then :
6872 else
6873 ac_cv_header_stdc=no
6875 rm -f conftest*
6879 if test $ac_cv_header_stdc = yes; then
6880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6881 if test "$cross_compiling" = yes; then :
6883 else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #include <ctype.h>
6887 #include <stdlib.h>
6888 #if ((' ' & 0x0FF) == 0x020)
6889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6891 #else
6892 # define ISLOWER(c) \
6893 (('a' <= (c) && (c) <= 'i') \
6894 || ('j' <= (c) && (c) <= 'r') \
6895 || ('s' <= (c) && (c) <= 'z'))
6896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6897 #endif
6899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6901 main ()
6903 int i;
6904 for (i = 0; i < 256; i++)
6905 if (XOR (islower (i), ISLOWER (i))
6906 || toupper (i) != TOUPPER (i))
6907 return 2;
6908 return 0;
6910 _ACEOF
6911 if ac_fn_c_try_run "$LINENO"; then :
6913 else
6914 ac_cv_header_stdc=no
6916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6917 conftest.$ac_objext conftest.beam conftest.$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6923 $as_echo "$ac_cv_header_stdc" >&6; }
6924 if test $ac_cv_header_stdc = yes; then
6926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6930 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6932 inttypes.h stdint.h unistd.h
6933 do :
6934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6937 eval as_val=\$$as_ac_Header
6938 if test "x$as_val" = x""yes; then :
6939 cat >>confdefs.h <<_ACEOF
6940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941 _ACEOF
6945 done
6948 for ac_header in dlfcn.h
6949 do :
6950 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6952 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6953 cat >>confdefs.h <<_ACEOF
6954 #define HAVE_DLFCN_H 1
6955 _ACEOF
6959 done
6965 # Set options
6969 enable_dlopen=no
6972 enable_win32_dll=no
6975 # Check whether --enable-shared was given.
6976 if test "${enable_shared+set}" = set; then :
6977 enableval=$enable_shared; p=${PACKAGE-default}
6978 case $enableval in
6979 yes) enable_shared=yes ;;
6980 no) enable_shared=no ;;
6982 enable_shared=no
6983 # Look at the argument we got. We use all the common list separators.
6984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6985 for pkg in $enableval; do
6986 IFS="$lt_save_ifs"
6987 if test "X$pkg" = "X$p"; then
6988 enable_shared=yes
6990 done
6991 IFS="$lt_save_ifs"
6993 esac
6994 else
6995 enable_shared=yes
7006 # Check whether --enable-static was given.
7007 if test "${enable_static+set}" = set; then :
7008 enableval=$enable_static; p=${PACKAGE-default}
7009 case $enableval in
7010 yes) enable_static=yes ;;
7011 no) enable_static=no ;;
7013 enable_static=no
7014 # Look at the argument we got. We use all the common list separators.
7015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7016 for pkg in $enableval; do
7017 IFS="$lt_save_ifs"
7018 if test "X$pkg" = "X$p"; then
7019 enable_static=yes
7021 done
7022 IFS="$lt_save_ifs"
7024 esac
7025 else
7026 enable_static=yes
7038 # Check whether --with-pic was given.
7039 if test "${with_pic+set}" = set; then :
7040 withval=$with_pic; pic_mode="$withval"
7041 else
7042 pic_mode=default
7046 test -z "$pic_mode" && pic_mode=default
7054 # Check whether --enable-fast-install was given.
7055 if test "${enable_fast_install+set}" = set; then :
7056 enableval=$enable_fast_install; p=${PACKAGE-default}
7057 case $enableval in
7058 yes) enable_fast_install=yes ;;
7059 no) enable_fast_install=no ;;
7061 enable_fast_install=no
7062 # Look at the argument we got. We use all the common list separators.
7063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7064 for pkg in $enableval; do
7065 IFS="$lt_save_ifs"
7066 if test "X$pkg" = "X$p"; then
7067 enable_fast_install=yes
7069 done
7070 IFS="$lt_save_ifs"
7072 esac
7073 else
7074 enable_fast_install=yes
7087 # This can be used to rebuild libtool when needed
7088 LIBTOOL_DEPS="$ltmain"
7090 # Always use our own libtool.
7091 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7118 test -z "$LN_S" && LN_S="ln -s"
7133 if test -n "${ZSH_VERSION+set}" ; then
7134 setopt NO_GLOB_SUBST
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7138 $as_echo_n "checking for objdir... " >&6; }
7139 if test "${lt_cv_objdir+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 rm -f .libs 2>/dev/null
7143 mkdir .libs 2>/dev/null
7144 if test -d .libs; then
7145 lt_cv_objdir=.libs
7146 else
7147 # MS-DOS does not allow filenames that begin with a dot.
7148 lt_cv_objdir=_libs
7150 rmdir .libs 2>/dev/null
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7153 $as_echo "$lt_cv_objdir" >&6; }
7154 objdir=$lt_cv_objdir
7160 cat >>confdefs.h <<_ACEOF
7161 #define LT_OBJDIR "$lt_cv_objdir/"
7162 _ACEOF
7167 case $host_os in
7168 aix3*)
7169 # AIX sometimes has problems with the GCC collect2 program. For some
7170 # reason, if we set the COLLECT_NAMES environment variable, the problems
7171 # vanish in a puff of smoke.
7172 if test "X${COLLECT_NAMES+set}" != Xset; then
7173 COLLECT_NAMES=
7174 export COLLECT_NAMES
7177 esac
7179 # Global variables:
7180 ofile=libtool
7181 can_build_shared=yes
7183 # All known linkers require a `.a' archive for static linking (except MSVC,
7184 # which needs '.lib').
7185 libext=a
7187 with_gnu_ld="$lt_cv_prog_gnu_ld"
7189 old_CC="$CC"
7190 old_CFLAGS="$CFLAGS"
7192 # Set sane defaults for various variables
7193 test -z "$CC" && CC=cc
7194 test -z "$LTCC" && LTCC=$CC
7195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7196 test -z "$LD" && LD=ld
7197 test -z "$ac_objext" && ac_objext=o
7199 for cc_temp in $compiler""; do
7200 case $cc_temp in
7201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7203 \-*) ;;
7204 *) break;;
7205 esac
7206 done
7207 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7210 # Only perform the check for file, if the check method requires it
7211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7212 case $deplibs_check_method in
7213 file_magic*)
7214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7216 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 case $MAGIC_CMD in
7221 [\\/*] | ?:[\\/]*)
7222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7225 lt_save_MAGIC_CMD="$MAGIC_CMD"
7226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7228 for ac_dir in $ac_dummy; do
7229 IFS="$lt_save_ifs"
7230 test -z "$ac_dir" && ac_dir=.
7231 if test -f $ac_dir/${ac_tool_prefix}file; then
7232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7233 if test -n "$file_magic_test_file"; then
7234 case $deplibs_check_method in
7235 "file_magic "*)
7236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7239 $EGREP "$file_magic_regex" > /dev/null; then
7241 else
7242 cat <<_LT_EOF 1>&2
7244 *** Warning: the command libtool uses to detect shared libraries,
7245 *** $file_magic_cmd, produces output that libtool cannot recognize.
7246 *** The result is that libtool may fail to recognize shared libraries
7247 *** as such. This will affect the creation of libtool libraries that
7248 *** depend on shared libraries, but programs linked with such libtool
7249 *** libraries will work regardless of this problem. Nevertheless, you
7250 *** may want to report the problem to your system manager and/or to
7251 *** bug-libtool@gnu.org
7253 _LT_EOF
7254 fi ;;
7255 esac
7257 break
7259 done
7260 IFS="$lt_save_ifs"
7261 MAGIC_CMD="$lt_save_MAGIC_CMD"
7263 esac
7266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7267 if test -n "$MAGIC_CMD"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7269 $as_echo "$MAGIC_CMD" >&6; }
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7279 if test -z "$lt_cv_path_MAGIC_CMD"; then
7280 if test -n "$ac_tool_prefix"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7282 $as_echo_n "checking for file... " >&6; }
7283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 case $MAGIC_CMD in
7287 [\\/*] | ?:[\\/]*)
7288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7291 lt_save_MAGIC_CMD="$MAGIC_CMD"
7292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7294 for ac_dir in $ac_dummy; do
7295 IFS="$lt_save_ifs"
7296 test -z "$ac_dir" && ac_dir=.
7297 if test -f $ac_dir/file; then
7298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7299 if test -n "$file_magic_test_file"; then
7300 case $deplibs_check_method in
7301 "file_magic "*)
7302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7305 $EGREP "$file_magic_regex" > /dev/null; then
7307 else
7308 cat <<_LT_EOF 1>&2
7310 *** Warning: the command libtool uses to detect shared libraries,
7311 *** $file_magic_cmd, produces output that libtool cannot recognize.
7312 *** The result is that libtool may fail to recognize shared libraries
7313 *** as such. This will affect the creation of libtool libraries that
7314 *** depend on shared libraries, but programs linked with such libtool
7315 *** libraries will work regardless of this problem. Nevertheless, you
7316 *** may want to report the problem to your system manager and/or to
7317 *** bug-libtool@gnu.org
7319 _LT_EOF
7320 fi ;;
7321 esac
7323 break
7325 done
7326 IFS="$lt_save_ifs"
7327 MAGIC_CMD="$lt_save_MAGIC_CMD"
7329 esac
7332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333 if test -n "$MAGIC_CMD"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7335 $as_echo "$MAGIC_CMD" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7342 else
7343 MAGIC_CMD=:
7349 esac
7351 # Use C for the default configuration in the libtool script
7353 lt_save_CC="$CC"
7354 ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361 # Source file extension for C test sources.
7362 ac_ext=c
7364 # Object file extension for compiled C test sources.
7365 objext=o
7366 objext=$objext
7368 # Code to be used in simple compile tests
7369 lt_simple_compile_test_code="int some_variable = 0;"
7371 # Code to be used in simple link tests
7372 lt_simple_link_test_code='int main(){return(0);}'
7380 # If no C compiler was specified, use CC.
7381 LTCC=${LTCC-"$CC"}
7383 # If no C compiler flags were specified, use CFLAGS.
7384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7386 # Allow CC to be a program name with arguments.
7387 compiler=$CC
7389 # Save the default compiler, since it gets overwritten when the other
7390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7391 compiler_DEFAULT=$CC
7393 # save warnings/boilerplate of simple test code
7394 ac_outfile=conftest.$ac_objext
7395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7397 _lt_compiler_boilerplate=`cat conftest.err`
7398 $RM conftest*
7400 ac_outfile=conftest.$ac_objext
7401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7403 _lt_linker_boilerplate=`cat conftest.err`
7404 $RM -r conftest*
7407 ## CAVEAT EMPTOR:
7408 ## There is no encapsulation within the following macros, do not change
7409 ## the running order or otherwise move them around unless you know exactly
7410 ## what you are doing...
7411 if test -n "$compiler"; then
7413 lt_prog_compiler_no_builtin_flag=
7415 if test "$GCC" = yes; then
7416 case $cc_basename in
7417 nvcc*)
7418 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7420 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7421 esac
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7424 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7425 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 lt_cv_prog_compiler_rtti_exceptions=no
7429 ac_outfile=conftest.$ac_objext
7430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7431 lt_compiler_flag="-fno-rtti -fno-exceptions"
7432 # Insert the option either (1) after the last *FLAGS variable, or
7433 # (2) before a word containing "conftest.", or (3) at the end.
7434 # Note that $ac_compile itself does not contain backslashes and begins
7435 # with a dollar sign (not a hyphen), so the echo should work correctly.
7436 # The option is referenced via a variable to avoid confusing sed.
7437 lt_compile=`echo "$ac_compile" | $SED \
7438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7440 -e 's:$: $lt_compiler_flag:'`
7441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7442 (eval "$lt_compile" 2>conftest.err)
7443 ac_status=$?
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 if (exit $ac_status) && test -s "$ac_outfile"; then
7447 # The compiler can only warn and ignore the option if not recognized
7448 # So say no if there are warnings other than the usual output.
7449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7452 lt_cv_prog_compiler_rtti_exceptions=yes
7455 $RM conftest*
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7459 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7462 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7463 else
7474 lt_prog_compiler_wl=
7475 lt_prog_compiler_pic=
7476 lt_prog_compiler_static=
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7479 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7481 if test "$GCC" = yes; then
7482 lt_prog_compiler_wl='-Wl,'
7483 lt_prog_compiler_static='-static'
7485 case $host_os in
7486 aix*)
7487 # All AIX code is PIC.
7488 if test "$host_cpu" = ia64; then
7489 # AIX 5 now supports IA64 processor
7490 lt_prog_compiler_static='-Bstatic'
7494 amigaos*)
7495 case $host_cpu in
7496 powerpc)
7497 # see comment about AmigaOS4 .so support
7498 lt_prog_compiler_pic='-fPIC'
7500 m68k)
7501 # FIXME: we need at least 68020 code to build shared libraries, but
7502 # adding the `-m68020' flag to GCC prevents building anything better,
7503 # like `-m68040'.
7504 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7506 esac
7509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7510 # PIC is the default for these OSes.
7513 mingw* | cygwin* | pw32* | os2* | cegcc*)
7514 # This hack is so that the source file can tell whether it is being
7515 # built for inclusion in a dll (and should export symbols for example).
7516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7517 # (--disable-auto-import) libraries
7518 lt_prog_compiler_pic='-DDLL_EXPORT'
7521 darwin* | rhapsody*)
7522 # PIC is the default on this platform
7523 # Common symbols not allowed in MH_DYLIB files
7524 lt_prog_compiler_pic='-fno-common'
7527 haiku*)
7528 # PIC is the default for Haiku.
7529 # The "-static" flag exists, but is broken.
7530 lt_prog_compiler_static=
7533 hpux*)
7534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7536 # sets the default TLS model and affects inlining.
7537 case $host_cpu in
7538 hppa*64*)
7539 # +Z the default
7542 lt_prog_compiler_pic='-fPIC'
7544 esac
7547 interix[3-9]*)
7548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7549 # Instead, we relocate shared libraries at runtime.
7552 msdosdjgpp*)
7553 # Just because we use GCC doesn't mean we suddenly get shared libraries
7554 # on systems that don't support them.
7555 lt_prog_compiler_can_build_shared=no
7556 enable_shared=no
7559 *nto* | *qnx*)
7560 # QNX uses GNU C++, but need to define -shared option too, otherwise
7561 # it will coredump.
7562 lt_prog_compiler_pic='-fPIC -shared'
7565 sysv4*MP*)
7566 if test -d /usr/nec; then
7567 lt_prog_compiler_pic=-Kconform_pic
7572 lt_prog_compiler_pic='-fPIC'
7574 esac
7576 case $cc_basename in
7577 nvcc*) # Cuda Compiler Driver 2.2
7578 lt_prog_compiler_wl='-Xlinker '
7579 lt_prog_compiler_pic='-Xcompiler -fPIC'
7581 esac
7582 else
7583 # PORTME Check for flag to pass linker flags through the system compiler.
7584 case $host_os in
7585 aix*)
7586 lt_prog_compiler_wl='-Wl,'
7587 if test "$host_cpu" = ia64; then
7588 # AIX 5 now supports IA64 processor
7589 lt_prog_compiler_static='-Bstatic'
7590 else
7591 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7595 mingw* | cygwin* | pw32* | os2* | cegcc*)
7596 # This hack is so that the source file can tell whether it is being
7597 # built for inclusion in a dll (and should export symbols for example).
7598 lt_prog_compiler_pic='-DDLL_EXPORT'
7601 hpux9* | hpux10* | hpux11*)
7602 lt_prog_compiler_wl='-Wl,'
7603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7604 # not for PA HP-UX.
7605 case $host_cpu in
7606 hppa*64*|ia64*)
7607 # +Z the default
7610 lt_prog_compiler_pic='+Z'
7612 esac
7613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7614 lt_prog_compiler_static='${wl}-a ${wl}archive'
7617 irix5* | irix6* | nonstopux*)
7618 lt_prog_compiler_wl='-Wl,'
7619 # PIC (with -KPIC) is the default.
7620 lt_prog_compiler_static='-non_shared'
7623 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7624 case $cc_basename in
7625 # old Intel for x86_64 which still supported -KPIC.
7626 ecc*)
7627 lt_prog_compiler_wl='-Wl,'
7628 lt_prog_compiler_pic='-KPIC'
7629 lt_prog_compiler_static='-static'
7631 # icc used to be incompatible with GCC.
7632 # ICC 10 doesn't accept -KPIC any more.
7633 icc* | ifort*)
7634 lt_prog_compiler_wl='-Wl,'
7635 lt_prog_compiler_pic='-fPIC'
7636 lt_prog_compiler_static='-static'
7638 # Lahey Fortran 8.1.
7639 lf95*)
7640 lt_prog_compiler_wl='-Wl,'
7641 lt_prog_compiler_pic='--shared'
7642 lt_prog_compiler_static='--static'
7644 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7645 # Portland Group compilers (*not* the Pentium gcc compiler,
7646 # which looks to be a dead project)
7647 lt_prog_compiler_wl='-Wl,'
7648 lt_prog_compiler_pic='-fpic'
7649 lt_prog_compiler_static='-Bstatic'
7651 ccc*)
7652 lt_prog_compiler_wl='-Wl,'
7653 # All Alpha code is PIC.
7654 lt_prog_compiler_static='-non_shared'
7656 xl* | bgxl* | bgf* | mpixl*)
7657 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7658 lt_prog_compiler_wl='-Wl,'
7659 lt_prog_compiler_pic='-qpic'
7660 lt_prog_compiler_static='-qstaticlink'
7663 case `$CC -V 2>&1 | sed 5q` in
7664 *Sun\ F* | *Sun*Fortran*)
7665 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7666 lt_prog_compiler_pic='-KPIC'
7667 lt_prog_compiler_static='-Bstatic'
7668 lt_prog_compiler_wl=''
7670 *Sun\ C*)
7671 # Sun C 5.9
7672 lt_prog_compiler_pic='-KPIC'
7673 lt_prog_compiler_static='-Bstatic'
7674 lt_prog_compiler_wl='-Wl,'
7676 esac
7678 esac
7681 newsos6)
7682 lt_prog_compiler_pic='-KPIC'
7683 lt_prog_compiler_static='-Bstatic'
7686 *nto* | *qnx*)
7687 # QNX uses GNU C++, but need to define -shared option too, otherwise
7688 # it will coredump.
7689 lt_prog_compiler_pic='-fPIC -shared'
7692 osf3* | osf4* | osf5*)
7693 lt_prog_compiler_wl='-Wl,'
7694 # All OSF/1 code is PIC.
7695 lt_prog_compiler_static='-non_shared'
7698 rdos*)
7699 lt_prog_compiler_static='-non_shared'
7702 solaris*)
7703 lt_prog_compiler_pic='-KPIC'
7704 lt_prog_compiler_static='-Bstatic'
7705 case $cc_basename in
7706 f77* | f90* | f95*)
7707 lt_prog_compiler_wl='-Qoption ld ';;
7709 lt_prog_compiler_wl='-Wl,';;
7710 esac
7713 sunos4*)
7714 lt_prog_compiler_wl='-Qoption ld '
7715 lt_prog_compiler_pic='-PIC'
7716 lt_prog_compiler_static='-Bstatic'
7719 sysv4 | sysv4.2uw2* | sysv4.3*)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-Bstatic'
7725 sysv4*MP*)
7726 if test -d /usr/nec ;then
7727 lt_prog_compiler_pic='-Kconform_pic'
7728 lt_prog_compiler_static='-Bstatic'
7732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7733 lt_prog_compiler_wl='-Wl,'
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7738 unicos*)
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_can_build_shared=no
7743 uts4*)
7744 lt_prog_compiler_pic='-pic'
7745 lt_prog_compiler_static='-Bstatic'
7749 lt_prog_compiler_can_build_shared=no
7751 esac
7754 case $host_os in
7755 # For platforms which do not support PIC, -DPIC is meaningless:
7756 *djgpp*)
7757 lt_prog_compiler_pic=
7760 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7762 esac
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7764 $as_echo "$lt_prog_compiler_pic" >&6; }
7772 # Check to make sure the PIC flag actually works.
7774 if test -n "$lt_prog_compiler_pic"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7776 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7777 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 lt_cv_prog_compiler_pic_works=no
7781 ac_outfile=conftest.$ac_objext
7782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7783 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7784 # Insert the option either (1) after the last *FLAGS variable, or
7785 # (2) before a word containing "conftest.", or (3) at the end.
7786 # Note that $ac_compile itself does not contain backslashes and begins
7787 # with a dollar sign (not a hyphen), so the echo should work correctly.
7788 # The option is referenced via a variable to avoid confusing sed.
7789 lt_compile=`echo "$ac_compile" | $SED \
7790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7792 -e 's:$: $lt_compiler_flag:'`
7793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7794 (eval "$lt_compile" 2>conftest.err)
7795 ac_status=$?
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 if (exit $ac_status) && test -s "$ac_outfile"; then
7799 # The compiler can only warn and ignore the option if not recognized
7800 # So say no if there are warnings other than the usual output.
7801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7804 lt_cv_prog_compiler_pic_works=yes
7807 $RM conftest*
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7811 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7813 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7814 case $lt_prog_compiler_pic in
7815 "" | " "*) ;;
7816 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7817 esac
7818 else
7819 lt_prog_compiler_pic=
7820 lt_prog_compiler_can_build_shared=no
7831 # Check to make sure the static flag actually works.
7833 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7835 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7836 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 lt_cv_prog_compiler_static_works=no
7840 save_LDFLAGS="$LDFLAGS"
7841 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7844 # The linker can only warn and ignore the option if not recognized
7845 # So say no if there are warnings
7846 if test -s conftest.err; then
7847 # Append any errors to the config.log.
7848 cat conftest.err 1>&5
7849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7851 if diff conftest.exp conftest.er2 >/dev/null; then
7852 lt_cv_prog_compiler_static_works=yes
7854 else
7855 lt_cv_prog_compiler_static_works=yes
7858 $RM -r conftest*
7859 LDFLAGS="$save_LDFLAGS"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7863 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7865 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7867 else
7868 lt_prog_compiler_static=
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7878 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7879 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 lt_cv_prog_compiler_c_o=no
7883 $RM -r conftest 2>/dev/null
7884 mkdir conftest
7885 cd conftest
7886 mkdir out
7887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7889 lt_compiler_flag="-o out/conftest2.$ac_objext"
7890 # Insert the option either (1) after the last *FLAGS variable, or
7891 # (2) before a word containing "conftest.", or (3) at the end.
7892 # Note that $ac_compile itself does not contain backslashes and begins
7893 # with a dollar sign (not a hyphen), so the echo should work correctly.
7894 lt_compile=`echo "$ac_compile" | $SED \
7895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7897 -e 's:$: $lt_compiler_flag:'`
7898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7899 (eval "$lt_compile" 2>out/conftest.err)
7900 ac_status=$?
7901 cat out/conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7904 then
7905 # The compiler can only warn and ignore the option if not recognized
7906 # So say no if there are warnings
7907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7910 lt_cv_prog_compiler_c_o=yes
7913 chmod u+w . 2>&5
7914 $RM conftest*
7915 # SGI C++ compiler will create directory out/ii_files/ for
7916 # template instantiation
7917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7918 $RM out/* && rmdir out
7919 cd ..
7920 $RM -r conftest
7921 $RM conftest*
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7925 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7933 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7934 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 lt_cv_prog_compiler_c_o=no
7938 $RM -r conftest 2>/dev/null
7939 mkdir conftest
7940 cd conftest
7941 mkdir out
7942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7944 lt_compiler_flag="-o out/conftest2.$ac_objext"
7945 # Insert the option either (1) after the last *FLAGS variable, or
7946 # (2) before a word containing "conftest.", or (3) at the end.
7947 # Note that $ac_compile itself does not contain backslashes and begins
7948 # with a dollar sign (not a hyphen), so the echo should work correctly.
7949 lt_compile=`echo "$ac_compile" | $SED \
7950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7952 -e 's:$: $lt_compiler_flag:'`
7953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7954 (eval "$lt_compile" 2>out/conftest.err)
7955 ac_status=$?
7956 cat out/conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7959 then
7960 # The compiler can only warn and ignore the option if not recognized
7961 # So say no if there are warnings
7962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_c_o=yes
7968 chmod u+w . 2>&5
7969 $RM conftest*
7970 # SGI C++ compiler will create directory out/ii_files/ for
7971 # template instantiation
7972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7973 $RM out/* && rmdir out
7974 cd ..
7975 $RM -r conftest
7976 $RM conftest*
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7980 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7985 hard_links="nottested"
7986 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7987 # do not overwrite the value of need_locks provided by the user
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7989 $as_echo_n "checking if we can lock with hard links... " >&6; }
7990 hard_links=yes
7991 $RM conftest*
7992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7993 touch conftest.a
7994 ln conftest.a conftest.b 2>&5 || hard_links=no
7995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7997 $as_echo "$hard_links" >&6; }
7998 if test "$hard_links" = no; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8000 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8001 need_locks=warn
8003 else
8004 need_locks=no
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8013 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8015 runpath_var=
8016 allow_undefined_flag=
8017 always_export_symbols=no
8018 archive_cmds=
8019 archive_expsym_cmds=
8020 compiler_needs_object=no
8021 enable_shared_with_static_runtimes=no
8022 export_dynamic_flag_spec=
8023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8024 hardcode_automatic=no
8025 hardcode_direct=no
8026 hardcode_direct_absolute=no
8027 hardcode_libdir_flag_spec=
8028 hardcode_libdir_flag_spec_ld=
8029 hardcode_libdir_separator=
8030 hardcode_minus_L=no
8031 hardcode_shlibpath_var=unsupported
8032 inherit_rpath=no
8033 link_all_deplibs=unknown
8034 module_cmds=
8035 module_expsym_cmds=
8036 old_archive_from_new_cmds=
8037 old_archive_from_expsyms_cmds=
8038 thread_safe_flag_spec=
8039 whole_archive_flag_spec=
8040 # include_expsyms should be a list of space-separated symbols to be *always*
8041 # included in the symbol list
8042 include_expsyms=
8043 # exclude_expsyms can be an extended regexp of symbols to exclude
8044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8046 # as well as any symbol that contains `d'.
8047 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8049 # platforms (ab)use it in PIC code, but their linkers get confused if
8050 # the symbol is explicitly referenced. Since portable code cannot
8051 # rely on this symbol name, it's probably fine to never include it in
8052 # preloaded symbol tables.
8053 # Exclude shared library initialization/finalization symbols.
8054 extract_expsyms_cmds=
8056 case $host_os in
8057 cygwin* | mingw* | pw32* | cegcc*)
8058 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8059 # When not using gcc, we currently assume that we are using
8060 # Microsoft Visual C++.
8061 if test "$GCC" != yes; then
8062 with_gnu_ld=no
8065 interix*)
8066 # we just hope/assume this is gcc and not c89 (= MSVC++)
8067 with_gnu_ld=yes
8069 openbsd*)
8070 with_gnu_ld=no
8072 esac
8074 ld_shlibs=yes
8076 # On some targets, GNU ld is compatible enough with the native linker
8077 # that we're better off using the native interface for both.
8078 lt_use_gnu_ld_interface=no
8079 if test "$with_gnu_ld" = yes; then
8080 case $host_os in
8081 aix*)
8082 # The AIX port of GNU ld has always aspired to compatibility
8083 # with the native linker. However, as the warning in the GNU ld
8084 # block says, versions before 2.19.5* couldn't really create working
8085 # shared libraries, regardless of the interface used.
8086 case `$LD -v 2>&1` in
8087 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8088 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8089 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8091 lt_use_gnu_ld_interface=yes
8093 esac
8096 lt_use_gnu_ld_interface=yes
8098 esac
8101 if test "$lt_use_gnu_ld_interface" = yes; then
8102 # If archive_cmds runs LD, not CC, wlarc should be empty
8103 wlarc='${wl}'
8105 # Set some defaults for GNU ld with shared library support. These
8106 # are reset later if shared libraries are not supported. Putting them
8107 # here allows them to be overridden if necessary.
8108 runpath_var=LD_RUN_PATH
8109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8110 export_dynamic_flag_spec='${wl}--export-dynamic'
8111 # ancient GNU ld didn't support --whole-archive et. al.
8112 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8113 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8114 else
8115 whole_archive_flag_spec=
8117 supports_anon_versioning=no
8118 case `$LD -v 2>&1` in
8119 *GNU\ gold*) supports_anon_versioning=yes ;;
8120 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8121 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8122 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8123 *\ 2.11.*) ;; # other 2.11 versions
8124 *) supports_anon_versioning=yes ;;
8125 esac
8127 # See if GNU ld supports shared libraries.
8128 case $host_os in
8129 aix[3-9]*)
8130 # On AIX/PPC, the GNU linker is very broken
8131 if test "$host_cpu" != ia64; then
8132 ld_shlibs=no
8133 cat <<_LT_EOF 1>&2
8135 *** Warning: the GNU linker, at least up to release 2.19, is reported
8136 *** to be unable to reliably create shared libraries on AIX.
8137 *** Therefore, libtool is disabling shared libraries support. If you
8138 *** really care for shared libraries, you may want to install binutils
8139 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8140 *** You will then need to restart the configuration process.
8142 _LT_EOF
8146 amigaos*)
8147 case $host_cpu in
8148 powerpc)
8149 # see comment about AmigaOS4 .so support
8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8151 archive_expsym_cmds=''
8153 m68k)
8154 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)'
8155 hardcode_libdir_flag_spec='-L$libdir'
8156 hardcode_minus_L=yes
8158 esac
8161 beos*)
8162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8163 allow_undefined_flag=unsupported
8164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8165 # support --undefined. This deserves some investigation. FIXME
8166 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167 else
8168 ld_shlibs=no
8172 cygwin* | mingw* | pw32* | cegcc*)
8173 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8174 # as there is no search path for DLLs.
8175 hardcode_libdir_flag_spec='-L$libdir'
8176 export_dynamic_flag_spec='${wl}--export-all-symbols'
8177 allow_undefined_flag=unsupported
8178 always_export_symbols=no
8179 enable_shared_with_static_runtimes=yes
8180 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8182 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8184 # If the export-symbols file already is a .def file (1st line
8185 # is EXPORTS), use it as is; otherwise, prepend...
8186 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8187 cp $export_symbols $output_objdir/$soname.def;
8188 else
8189 echo EXPORTS > $output_objdir/$soname.def;
8190 cat $export_symbols >> $output_objdir/$soname.def;
8192 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8193 else
8194 ld_shlibs=no
8198 haiku*)
8199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 link_all_deplibs=yes
8203 interix[3-9]*)
8204 hardcode_direct=no
8205 hardcode_shlibpath_var=no
8206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8207 export_dynamic_flag_spec='${wl}-E'
8208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8209 # Instead, shared libraries are loaded at an image base (0x10000000 by
8210 # default) and relocated if they conflict, which is a slow very memory
8211 # consuming and fragmenting process. To avoid this, we pick a random,
8212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8215 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'
8218 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8219 tmp_diet=no
8220 if test "$host_os" = linux-dietlibc; then
8221 case $cc_basename in
8222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8223 esac
8225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8226 && test "$tmp_diet" = no
8227 then
8228 tmp_addflag=
8229 tmp_sharedflag='-shared'
8230 case $cc_basename,$host_cpu in
8231 pgcc*) # Portland Group C compiler
8232 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'
8233 tmp_addflag=' $pic_flag'
8235 pgf77* | pgf90* | pgf95* | pgfortran*)
8236 # Portland Group f77 and f90 compilers
8237 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'
8238 tmp_addflag=' $pic_flag -Mnomain' ;;
8239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8240 tmp_addflag=' -i_dynamic' ;;
8241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8242 tmp_addflag=' -i_dynamic -nofor_main' ;;
8243 ifc* | ifort*) # Intel Fortran compiler
8244 tmp_addflag=' -nofor_main' ;;
8245 lf95*) # Lahey Fortran 8.1
8246 whole_archive_flag_spec=
8247 tmp_sharedflag='--shared' ;;
8248 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8249 tmp_sharedflag='-qmkshrobj'
8250 tmp_addflag= ;;
8251 nvcc*) # Cuda Compiler Driver 2.2
8252 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'
8253 compiler_needs_object=yes
8255 esac
8256 case `$CC -V 2>&1 | sed 5q` in
8257 *Sun\ C*) # Sun C 5.9
8258 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'
8259 compiler_needs_object=yes
8260 tmp_sharedflag='-G' ;;
8261 *Sun\ F*) # Sun Fortran 8.3
8262 tmp_sharedflag='-G' ;;
8263 esac
8264 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 if test "x$supports_anon_versioning" = xyes; then
8267 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8269 echo "local: *; };" >> $output_objdir/$libname.ver~
8270 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8273 case $cc_basename in
8274 xlf* | bgf* | bgxlf* | mpixlf*)
8275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8277 hardcode_libdir_flag_spec=
8278 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8279 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8280 if test "x$supports_anon_versioning" = xyes; then
8281 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8283 echo "local: *; };" >> $output_objdir/$libname.ver~
8284 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8287 esac
8288 else
8289 ld_shlibs=no
8293 netbsd*)
8294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8295 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8296 wlarc=
8297 else
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8303 solaris*)
8304 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8305 ld_shlibs=no
8306 cat <<_LT_EOF 1>&2
8308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8309 *** create shared libraries on Solaris systems. Therefore, libtool
8310 *** is disabling shared libraries support. We urge you to upgrade GNU
8311 *** binutils to release 2.9.1 or newer. Another option is to modify
8312 *** your PATH or compiler configuration so that the native linker is
8313 *** used, and then restart.
8315 _LT_EOF
8316 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8319 else
8320 ld_shlibs=no
8324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8325 case `$LD -v 2>&1` in
8326 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8327 ld_shlibs=no
8328 cat <<_LT_EOF 1>&2
8330 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8331 *** reliably create shared libraries on SCO systems. Therefore, libtool
8332 *** is disabling shared libraries support. We urge you to upgrade GNU
8333 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8334 *** your PATH or compiler configuration so that the native linker is
8335 *** used, and then restart.
8337 _LT_EOF
8340 # For security reasons, it is highly recommended that you always
8341 # use absolute paths for naming shared libraries, and exclude the
8342 # DT_RUNPATH tag from executables and libraries. But doing so
8343 # requires that you compile everything twice, which is a pain.
8344 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8348 else
8349 ld_shlibs=no
8352 esac
8355 sunos4*)
8356 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8357 wlarc=
8358 hardcode_direct=yes
8359 hardcode_shlibpath_var=no
8363 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8366 else
8367 ld_shlibs=no
8370 esac
8372 if test "$ld_shlibs" = no; then
8373 runpath_var=
8374 hardcode_libdir_flag_spec=
8375 export_dynamic_flag_spec=
8376 whole_archive_flag_spec=
8378 else
8379 # PORTME fill in a description of your system's linker (not GNU ld)
8380 case $host_os in
8381 aix3*)
8382 allow_undefined_flag=unsupported
8383 always_export_symbols=yes
8384 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'
8385 # Note: this linker hardcodes the directories in LIBPATH if there
8386 # are no directories specified by -L.
8387 hardcode_minus_L=yes
8388 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8389 # Neither direct hardcoding nor static linking is supported with a
8390 # broken collect2.
8391 hardcode_direct=unsupported
8395 aix[4-9]*)
8396 if test "$host_cpu" = ia64; then
8397 # On IA64, the linker does run time linking by default, so we don't
8398 # have to do anything special.
8399 aix_use_runtimelinking=no
8400 exp_sym_flag='-Bexport'
8401 no_entry_flag=""
8402 else
8403 # If we're using GNU nm, then we don't want the "-C" option.
8404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8405 # Also, AIX nm treats weak defined symbols like other global
8406 # defined symbols, whereas GNU nm marks them as "W".
8407 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8408 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'
8409 else
8410 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'
8412 aix_use_runtimelinking=no
8414 # Test if we are trying to use run time linking or normal
8415 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8416 # need to do runtime linking.
8417 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8418 for ld_flag in $LDFLAGS; do
8419 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8420 aix_use_runtimelinking=yes
8421 break
8423 done
8425 esac
8427 exp_sym_flag='-bexport'
8428 no_entry_flag='-bnoentry'
8431 # When large executables or shared objects are built, AIX ld can
8432 # have problems creating the table of contents. If linking a library
8433 # or program results in "error TOC overflow" add -mminimal-toc to
8434 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8435 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8437 archive_cmds=''
8438 hardcode_direct=yes
8439 hardcode_direct_absolute=yes
8440 hardcode_libdir_separator=':'
8441 link_all_deplibs=yes
8442 file_list_spec='${wl}-f,'
8444 if test "$GCC" = yes; then
8445 case $host_os in aix4.[012]|aix4.[012].*)
8446 # We only want to do this on AIX 4.2 and lower, the check
8447 # below for broken collect2 doesn't work under 4.3+
8448 collect2name=`${CC} -print-prog-name=collect2`
8449 if test -f "$collect2name" &&
8450 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8451 then
8452 # We have reworked collect2
8454 else
8455 # We have old collect2
8456 hardcode_direct=unsupported
8457 # It fails to find uninstalled libraries when the uninstalled
8458 # path is not listed in the libpath. Setting hardcode_minus_L
8459 # to unsupported forces relinking
8460 hardcode_minus_L=yes
8461 hardcode_libdir_flag_spec='-L$libdir'
8462 hardcode_libdir_separator=
8465 esac
8466 shared_flag='-shared'
8467 if test "$aix_use_runtimelinking" = yes; then
8468 shared_flag="$shared_flag "'${wl}-G'
8470 else
8471 # not using gcc
8472 if test "$host_cpu" = ia64; then
8473 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8474 # chokes on -Wl,-G. The following line is correct:
8475 shared_flag='-G'
8476 else
8477 if test "$aix_use_runtimelinking" = yes; then
8478 shared_flag='${wl}-G'
8479 else
8480 shared_flag='${wl}-bM:SRE'
8485 export_dynamic_flag_spec='${wl}-bexpall'
8486 # It seems that -bexpall does not export symbols beginning with
8487 # underscore (_), so it is better to generate a list of symbols to export.
8488 always_export_symbols=yes
8489 if test "$aix_use_runtimelinking" = yes; then
8490 # Warning - without using the other runtime loading flags (-brtl),
8491 # -berok will link without error, but may produce a broken library.
8492 allow_undefined_flag='-berok'
8493 # Determine the default libpath from the value encoded in an
8494 # empty executable.
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8499 main ()
8503 return 0;
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"; then :
8508 lt_aix_libpath_sed='
8509 /Import File Strings/,/^$/ {
8510 /^0/ {
8511 s/^0 *\(.*\)$/\1/
8515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8516 # Check for a 64-bit object if we didn't find anything.
8517 if test -z "$aix_libpath"; then
8518 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8521 rm -f core conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8526 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"
8527 else
8528 if test "$host_cpu" = ia64; then
8529 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8530 allow_undefined_flag="-z nodefs"
8531 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"
8532 else
8533 # Determine the default libpath from the value encoded in an
8534 # empty executable.
8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8539 main ()
8543 return 0;
8545 _ACEOF
8546 if ac_fn_c_try_link "$LINENO"; then :
8548 lt_aix_libpath_sed='
8549 /Import File Strings/,/^$/ {
8550 /^0/ {
8551 s/^0 *\(.*\)$/\1/
8555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8556 # Check for a 64-bit object if we didn't find anything.
8557 if test -z "$aix_libpath"; then
8558 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561 rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8566 # Warning - without using the other run time loading flags,
8567 # -berok will link without error, but may produce a broken library.
8568 no_undefined_flag=' ${wl}-bernotok'
8569 allow_undefined_flag=' ${wl}-berok'
8570 if test "$with_gnu_ld" = yes; then
8571 # We only use this code for GNU lds that support --whole-archive.
8572 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8573 else
8574 # Exported symbols can be pulled into shared objects from archives
8575 whole_archive_flag_spec='$convenience'
8577 archive_cmds_need_lc=yes
8578 # This is similar to how AIX traditionally builds its shared libraries.
8579 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'
8584 amigaos*)
8585 case $host_cpu in
8586 powerpc)
8587 # see comment about AmigaOS4 .so support
8588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589 archive_expsym_cmds=''
8591 m68k)
8592 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)'
8593 hardcode_libdir_flag_spec='-L$libdir'
8594 hardcode_minus_L=yes
8596 esac
8599 bsdi[45]*)
8600 export_dynamic_flag_spec=-rdynamic
8603 cygwin* | mingw* | pw32* | cegcc*)
8604 # When not using gcc, we currently assume that we are using
8605 # Microsoft Visual C++.
8606 # hardcode_libdir_flag_spec is actually meaningless, as there is
8607 # no search path for DLLs.
8608 hardcode_libdir_flag_spec=' '
8609 allow_undefined_flag=unsupported
8610 # Tell ltmain to make .lib files, not .a files.
8611 libext=lib
8612 # Tell ltmain to make .dll files, not .so files.
8613 shrext_cmds=".dll"
8614 # FIXME: Setting linknames here is a bad hack.
8615 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8616 # The linker will automatically build a .lib file if we build a DLL.
8617 old_archive_from_new_cmds='true'
8618 # FIXME: Should let the user specify the lib program.
8619 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8620 fix_srcfile_path='`cygpath -w "$srcfile"`'
8621 enable_shared_with_static_runtimes=yes
8624 darwin* | rhapsody*)
8627 archive_cmds_need_lc=no
8628 hardcode_direct=no
8629 hardcode_automatic=yes
8630 hardcode_shlibpath_var=unsupported
8631 if test "$lt_cv_ld_force_load" = "yes"; then
8632 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\"`'
8633 else
8634 whole_archive_flag_spec=''
8636 link_all_deplibs=yes
8637 allow_undefined_flag="$_lt_dar_allow_undefined"
8638 case $cc_basename in
8639 ifort*) _lt_dar_can_shared=yes ;;
8640 *) _lt_dar_can_shared=$GCC ;;
8641 esac
8642 if test "$_lt_dar_can_shared" = "yes"; then
8643 output_verbose_link_cmd=func_echo_all
8644 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8645 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8646 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}"
8647 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}"
8649 else
8650 ld_shlibs=no
8655 dgux*)
8656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_libdir_flag_spec='-L$libdir'
8658 hardcode_shlibpath_var=no
8661 freebsd1*)
8662 ld_shlibs=no
8665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8666 # support. Future versions do this automatically, but an explicit c++rt0.o
8667 # does not break anything, and helps significantly (at the cost of a little
8668 # extra space).
8669 freebsd2.2*)
8670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8671 hardcode_libdir_flag_spec='-R$libdir'
8672 hardcode_direct=yes
8673 hardcode_shlibpath_var=no
8676 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8677 freebsd2*)
8678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679 hardcode_direct=yes
8680 hardcode_minus_L=yes
8681 hardcode_shlibpath_var=no
8684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8685 freebsd* | dragonfly*)
8686 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8687 hardcode_libdir_flag_spec='-R$libdir'
8688 hardcode_direct=yes
8689 hardcode_shlibpath_var=no
8692 hpux9*)
8693 if test "$GCC" = yes; then
8694 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'
8695 else
8696 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'
8698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8699 hardcode_libdir_separator=:
8700 hardcode_direct=yes
8702 # hardcode_minus_L: Not really in the search PATH,
8703 # but as the default location of the library.
8704 hardcode_minus_L=yes
8705 export_dynamic_flag_spec='${wl}-E'
8708 hpux10*)
8709 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8711 else
8712 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8714 if test "$with_gnu_ld" = no; then
8715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8716 hardcode_libdir_flag_spec_ld='+b $libdir'
8717 hardcode_libdir_separator=:
8718 hardcode_direct=yes
8719 hardcode_direct_absolute=yes
8720 export_dynamic_flag_spec='${wl}-E'
8721 # hardcode_minus_L: Not really in the search PATH,
8722 # but as the default location of the library.
8723 hardcode_minus_L=yes
8727 hpux11*)
8728 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8729 case $host_cpu in
8730 hppa*64*)
8731 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 ia64*)
8734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739 esac
8740 else
8741 case $host_cpu in
8742 hppa*64*)
8743 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8745 ia64*)
8746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8750 # Older versions of the 11.00 compiler do not understand -b yet
8751 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8753 $as_echo_n "checking if $CC understands -b... " >&6; }
8754 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 lt_cv_prog_compiler__b=no
8758 save_LDFLAGS="$LDFLAGS"
8759 LDFLAGS="$LDFLAGS -b"
8760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8762 # The linker can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 if test -s conftest.err; then
8765 # Append any errors to the config.log.
8766 cat conftest.err 1>&5
8767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769 if diff conftest.exp conftest.er2 >/dev/null; then
8770 lt_cv_prog_compiler__b=yes
8772 else
8773 lt_cv_prog_compiler__b=yes
8776 $RM -r conftest*
8777 LDFLAGS="$save_LDFLAGS"
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8781 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8783 if test x"$lt_cv_prog_compiler__b" = xyes; then
8784 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8785 else
8786 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8790 esac
8792 if test "$with_gnu_ld" = no; then
8793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8794 hardcode_libdir_separator=:
8796 case $host_cpu in
8797 hppa*64*|ia64*)
8798 hardcode_direct=no
8799 hardcode_shlibpath_var=no
8802 hardcode_direct=yes
8803 hardcode_direct_absolute=yes
8804 export_dynamic_flag_spec='${wl}-E'
8806 # hardcode_minus_L: Not really in the search PATH,
8807 # but as the default location of the library.
8808 hardcode_minus_L=yes
8810 esac
8814 irix5* | irix6* | nonstopux*)
8815 if test "$GCC" = yes; then
8816 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'
8817 # Try to use the -exported_symbol ld option, if it does not
8818 # work, assume that -exports_file does not work either and
8819 # implicitly export all symbols.
8820 save_LDFLAGS="$LDFLAGS"
8821 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823 /* end confdefs.h. */
8824 int foo(void) {}
8825 _ACEOF
8826 if ac_fn_c_try_link "$LINENO"; then :
8827 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'
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 LDFLAGS="$save_LDFLAGS"
8833 else
8834 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'
8835 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'
8837 archive_cmds_need_lc='no'
8838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839 hardcode_libdir_separator=:
8840 inherit_rpath=yes
8841 link_all_deplibs=yes
8844 netbsd*)
8845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8847 else
8848 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8850 hardcode_libdir_flag_spec='-R$libdir'
8851 hardcode_direct=yes
8852 hardcode_shlibpath_var=no
8855 newsos6)
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_direct=yes
8858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8859 hardcode_libdir_separator=:
8860 hardcode_shlibpath_var=no
8863 *nto* | *qnx*)
8866 openbsd*)
8867 if test -f /usr/libexec/ld.so; then
8868 hardcode_direct=yes
8869 hardcode_shlibpath_var=no
8870 hardcode_direct_absolute=yes
8871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8873 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8875 export_dynamic_flag_spec='${wl}-E'
8876 else
8877 case $host_os in
8878 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8880 hardcode_libdir_flag_spec='-R$libdir'
8883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 esac
8888 else
8889 ld_shlibs=no
8893 os2*)
8894 hardcode_libdir_flag_spec='-L$libdir'
8895 hardcode_minus_L=yes
8896 allow_undefined_flag=unsupported
8897 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'
8898 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8901 osf3*)
8902 if test "$GCC" = yes; then
8903 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8904 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'
8905 else
8906 allow_undefined_flag=' -expect_unresolved \*'
8907 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'
8909 archive_cmds_need_lc='no'
8910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8911 hardcode_libdir_separator=:
8914 osf4* | osf5*) # as osf3* with the addition of -msym flag
8915 if test "$GCC" = yes; then
8916 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8917 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'
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 else
8920 allow_undefined_flag=' -expect_unresolved \*'
8921 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'
8922 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~
8923 $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'
8925 # Both c and cxx compiler support -rpath directly
8926 hardcode_libdir_flag_spec='-rpath $libdir'
8928 archive_cmds_need_lc='no'
8929 hardcode_libdir_separator=:
8932 solaris*)
8933 no_undefined_flag=' -z defs'
8934 if test "$GCC" = yes; then
8935 wlarc='${wl}'
8936 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8937 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8938 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8939 else
8940 case `$CC -V 2>&1` in
8941 *"Compilers 5.0"*)
8942 wlarc=''
8943 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8945 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8948 wlarc='${wl}'
8949 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8950 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8951 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8953 esac
8955 hardcode_libdir_flag_spec='-R$libdir'
8956 hardcode_shlibpath_var=no
8957 case $host_os in
8958 solaris2.[0-5] | solaris2.[0-5].*) ;;
8960 # The compiler driver will combine and reorder linker options,
8961 # but understands `-z linker_flag'. GCC discards it without `$wl',
8962 # but is careful enough not to reorder.
8963 # Supported since Solaris 2.6 (maybe 2.5.1?)
8964 if test "$GCC" = yes; then
8965 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8966 else
8967 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8970 esac
8971 link_all_deplibs=yes
8974 sunos4*)
8975 if test "x$host_vendor" = xsequent; then
8976 # Use $CC to link under sequent, because it throws in some extra .o
8977 # files that make .init and .fini sections work.
8978 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8979 else
8980 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8982 hardcode_libdir_flag_spec='-L$libdir'
8983 hardcode_direct=yes
8984 hardcode_minus_L=yes
8985 hardcode_shlibpath_var=no
8988 sysv4)
8989 case $host_vendor in
8990 sni)
8991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992 hardcode_direct=yes # is this really true???
8994 siemens)
8995 ## LD is ld it makes a PLAMLIB
8996 ## CC just makes a GrossModule.
8997 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8998 reload_cmds='$CC -r -o $output$reload_objs'
8999 hardcode_direct=no
9001 motorola)
9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9005 esac
9006 runpath_var='LD_RUN_PATH'
9007 hardcode_shlibpath_var=no
9010 sysv4.3*)
9011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9012 hardcode_shlibpath_var=no
9013 export_dynamic_flag_spec='-Bexport'
9016 sysv4*MP*)
9017 if test -d /usr/nec; then
9018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019 hardcode_shlibpath_var=no
9020 runpath_var=LD_RUN_PATH
9021 hardcode_runpath_var=yes
9022 ld_shlibs=yes
9026 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9027 no_undefined_flag='${wl}-z,text'
9028 archive_cmds_need_lc=no
9029 hardcode_shlibpath_var=no
9030 runpath_var='LD_RUN_PATH'
9032 if test "$GCC" = yes; then
9033 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9034 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9035 else
9036 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 sysv5* | sco3.2v5* | sco5v6*)
9042 # Note: We can NOT use -z defs as we might desire, because we do not
9043 # link with -lc, and that would cause any symbols used from libc to
9044 # always be unresolved, which means just about no library would
9045 # ever link correctly. If we're not using GNU ld we use -z text
9046 # though, which does catch some bad symbols but isn't as heavy-handed
9047 # as -z defs.
9048 no_undefined_flag='${wl}-z,text'
9049 allow_undefined_flag='${wl}-z,nodefs'
9050 archive_cmds_need_lc=no
9051 hardcode_shlibpath_var=no
9052 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9053 hardcode_libdir_separator=':'
9054 link_all_deplibs=yes
9055 export_dynamic_flag_spec='${wl}-Bexport'
9056 runpath_var='LD_RUN_PATH'
9058 if test "$GCC" = yes; then
9059 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 else
9062 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067 uts4*)
9068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_shlibpath_var=no
9074 ld_shlibs=no
9076 esac
9078 if test x$host_vendor = xsni; then
9079 case $host in
9080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9081 export_dynamic_flag_spec='${wl}-Blargedynsym'
9083 esac
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9088 $as_echo "$ld_shlibs" >&6; }
9089 test "$ld_shlibs" = no && can_build_shared=no
9091 with_gnu_ld=$with_gnu_ld
9108 # Do we need to explicitly link libc?
9110 case "x$archive_cmds_need_lc" in
9111 x|xyes)
9112 # Assume -lc should be added
9113 archive_cmds_need_lc=yes
9115 if test "$enable_shared" = yes && test "$GCC" = yes; then
9116 case $archive_cmds in
9117 *'~'*)
9118 # FIXME: we may have to deal with multi-command sequences.
9120 '$CC '*)
9121 # Test whether the compiler implicitly links with -lc since on some
9122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9123 # to ld, don't add -lc before -lgcc.
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9125 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9126 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 $RM conftest*
9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9133 (eval $ac_compile) 2>&5
9134 ac_status=$?
9135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9136 test $ac_status = 0; } 2>conftest.err; then
9137 soname=conftest
9138 lib=conftest
9139 libobjs=conftest.$ac_objext
9140 deplibs=
9141 wl=$lt_prog_compiler_wl
9142 pic_flag=$lt_prog_compiler_pic
9143 compiler_flags=-v
9144 linker_flags=-v
9145 verstring=
9146 output_objdir=.
9147 libname=conftest
9148 lt_save_allow_undefined_flag=$allow_undefined_flag
9149 allow_undefined_flag=
9150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9151 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9152 ac_status=$?
9153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9154 test $ac_status = 0; }
9155 then
9156 lt_cv_archive_cmds_need_lc=no
9157 else
9158 lt_cv_archive_cmds_need_lc=yes
9160 allow_undefined_flag=$lt_save_allow_undefined_flag
9161 else
9162 cat conftest.err 1>&5
9164 $RM conftest*
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9168 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9169 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9171 esac
9174 esac
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9333 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9335 if test "$GCC" = yes; then
9336 case $host_os in
9337 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9338 *) lt_awk_arg="/^libraries:/" ;;
9339 esac
9340 case $host_os in
9341 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9342 *) lt_sed_strip_eq="s,=/,/,g" ;;
9343 esac
9344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9345 case $lt_search_path_spec in
9346 *\;*)
9347 # if the path contains ";" then we assume it to be the separator
9348 # otherwise default to the standard path separator (i.e. ":") - it is
9349 # assumed that no part of a normal pathname contains ";" but that should
9350 # okay in the real world where ";" in dirpaths is itself problematic.
9351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9356 esac
9357 # Ok, now we have the path, separated by spaces, we can step through it
9358 # and add multilib dir if necessary.
9359 lt_tmp_lt_search_path_spec=
9360 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9361 for lt_sys_path in $lt_search_path_spec; do
9362 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9364 else
9365 test -d "$lt_sys_path" && \
9366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9368 done
9369 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9370 BEGIN {RS=" "; FS="/|\n";} {
9371 lt_foo="";
9372 lt_count=0;
9373 for (lt_i = NF; lt_i > 0; lt_i--) {
9374 if ($lt_i != "" && $lt_i != ".") {
9375 if ($lt_i == "..") {
9376 lt_count++;
9377 } else {
9378 if (lt_count == 0) {
9379 lt_foo="/" $lt_i lt_foo;
9380 } else {
9381 lt_count--;
9386 if (lt_foo != "") { lt_freq[lt_foo]++; }
9387 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9389 # AWK program above erroneously prepends '/' to C:/dos/paths
9390 # for these hosts.
9391 case $host_os in
9392 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9393 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9394 esac
9395 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9396 else
9397 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9399 library_names_spec=
9400 libname_spec='lib$name'
9401 soname_spec=
9402 shrext_cmds=".so"
9403 postinstall_cmds=
9404 postuninstall_cmds=
9405 finish_cmds=
9406 finish_eval=
9407 shlibpath_var=
9408 shlibpath_overrides_runpath=unknown
9409 version_type=none
9410 dynamic_linker="$host_os ld.so"
9411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9412 need_lib_prefix=unknown
9413 hardcode_into_libs=no
9415 # when you set need_version to no, make sure it does not cause -set_version
9416 # flags to be left without arguments
9417 need_version=unknown
9419 case $host_os in
9420 aix3*)
9421 version_type=linux
9422 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9423 shlibpath_var=LIBPATH
9425 # AIX 3 has no versioning support, so we append a major version to the name.
9426 soname_spec='${libname}${release}${shared_ext}$major'
9429 aix[4-9]*)
9430 version_type=linux
9431 need_lib_prefix=no
9432 need_version=no
9433 hardcode_into_libs=yes
9434 if test "$host_cpu" = ia64; then
9435 # AIX 5 supports IA64
9436 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 else
9439 # With GCC up to 2.95.x, collect2 would create an import file
9440 # for dependence libraries. The import file would start with
9441 # the line `#! .'. This would cause the generated library to
9442 # depend on `.', always an invalid library. This was fixed in
9443 # development snapshots of GCC prior to 3.0.
9444 case $host_os in
9445 aix4 | aix4.[01] | aix4.[01].*)
9446 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9447 echo ' yes '
9448 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9450 else
9451 can_build_shared=no
9454 esac
9455 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9456 # soname into executable. Probably we can add versioning support to
9457 # collect2, so additional links can be useful in future.
9458 if test "$aix_use_runtimelinking" = yes; then
9459 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9460 # instead of lib<name>.a to let people know that these are not
9461 # typical AIX shared libraries.
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 else
9464 # We preserve .a as extension for shared libraries through AIX4.2
9465 # and later when we are not doing run time linking.
9466 library_names_spec='${libname}${release}.a $libname.a'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9469 shlibpath_var=LIBPATH
9473 amigaos*)
9474 case $host_cpu in
9475 powerpc)
9476 # Since July 2007 AmigaOS4 officially supports .so libraries.
9477 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480 m68k)
9481 library_names_spec='$libname.ixlibrary $libname.a'
9482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9483 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'
9485 esac
9488 beos*)
9489 library_names_spec='${libname}${shared_ext}'
9490 dynamic_linker="$host_os ld.so"
9491 shlibpath_var=LIBRARY_PATH
9494 bsdi[45]*)
9495 version_type=linux
9496 need_version=no
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9503 # the default ld.so.conf also contains /usr/contrib/lib and
9504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9505 # libtool to hard-code these into programs
9508 cygwin* | mingw* | pw32* | cegcc*)
9509 version_type=windows
9510 shrext_cmds=".dll"
9511 need_version=no
9512 need_lib_prefix=no
9514 case $GCC,$host_os in
9515 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9516 library_names_spec='$libname.dll.a'
9517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9518 postinstall_cmds='base_file=`basename \${file}`~
9519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9520 dldir=$destdir/`dirname \$dlpath`~
9521 test -d \$dldir || mkdir -p \$dldir~
9522 $install_prog $dir/$dlname \$dldir/$dlname~
9523 chmod a+x \$dldir/$dlname~
9524 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9525 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9528 dlpath=$dir/\$dldll~
9529 $RM \$dlpath'
9530 shlibpath_overrides_runpath=yes
9532 case $host_os in
9533 cygwin*)
9534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9539 mingw* | cegcc*)
9540 # MinGW DLLs use traditional 'lib' prefix
9541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9543 pw32*)
9544 # pw32 DLLs use 'pw' prefix rather than 'lib'
9545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9547 esac
9551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9553 esac
9554 dynamic_linker='Win32 ld.exe'
9555 # FIXME: first we should search . and the directory the executable is in
9556 shlibpath_var=PATH
9559 darwin* | rhapsody*)
9560 dynamic_linker="$host_os dyld"
9561 version_type=darwin
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9565 soname_spec='${libname}${release}${major}$shared_ext'
9566 shlibpath_overrides_runpath=yes
9567 shlibpath_var=DYLD_LIBRARY_PATH
9568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9574 dgux*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9583 freebsd1*)
9584 dynamic_linker=no
9587 freebsd* | dragonfly*)
9588 # DragonFly does not have aout. When/if they implement a new
9589 # versioning mechanism, adjust this.
9590 if test -x /usr/bin/objformat; then
9591 objformat=`/usr/bin/objformat`
9592 else
9593 case $host_os in
9594 freebsd[123]*) objformat=aout ;;
9595 *) objformat=elf ;;
9596 esac
9598 version_type=freebsd-$objformat
9599 case $version_type in
9600 freebsd-elf*)
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9602 need_version=no
9603 need_lib_prefix=no
9605 freebsd-*)
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9607 need_version=yes
9609 esac
9610 shlibpath_var=LD_LIBRARY_PATH
9611 case $host_os in
9612 freebsd2*)
9613 shlibpath_overrides_runpath=yes
9615 freebsd3.[01]* | freebsdelf3.[01]*)
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9621 shlibpath_overrides_runpath=no
9622 hardcode_into_libs=yes
9624 *) # from 4.6 on, and DragonFly
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9628 esac
9631 gnu*)
9632 version_type=linux
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9641 haiku*)
9642 version_type=linux
9643 need_lib_prefix=no
9644 need_version=no
9645 dynamic_linker="$host_os runtime_loader"
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'
9648 shlibpath_var=LIBRARY_PATH
9649 shlibpath_overrides_runpath=yes
9650 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9651 hardcode_into_libs=yes
9654 hpux9* | hpux10* | hpux11*)
9655 # Give a soname corresponding to the major version so that dld.sl refuses to
9656 # link against other versions.
9657 version_type=sunos
9658 need_lib_prefix=no
9659 need_version=no
9660 case $host_cpu in
9661 ia64*)
9662 shrext_cmds='.so'
9663 hardcode_into_libs=yes
9664 dynamic_linker="$host_os dld.so"
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 if test "X$HPUX_IA64_MODE" = X32; then
9670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9671 else
9672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9676 hppa*64*)
9677 shrext_cmds='.sl'
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.sl"
9680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9688 shrext_cmds='.sl'
9689 dynamic_linker="$host_os dld.sl"
9690 shlibpath_var=SHLIB_PATH
9691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9695 esac
9696 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9697 postinstall_cmds='chmod 555 $lib'
9698 # or fails outright, so override atomically:
9699 install_override_mode=555
9702 interix[3-9]*)
9703 version_type=linux
9704 need_lib_prefix=no
9705 need_version=no
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=no
9711 hardcode_into_libs=yes
9714 irix5* | irix6* | nonstopux*)
9715 case $host_os in
9716 nonstopux*) version_type=nonstopux ;;
9718 if test "$lt_cv_prog_gnu_ld" = yes; then
9719 version_type=linux
9720 else
9721 version_type=irix
9722 fi ;;
9723 esac
9724 need_lib_prefix=no
9725 need_version=no
9726 soname_spec='${libname}${release}${shared_ext}$major'
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9728 case $host_os in
9729 irix5* | nonstopux*)
9730 libsuff= shlibsuff=
9733 case $LD in # libtool.m4 will add one of these switches to LD
9734 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9735 libsuff= shlibsuff= libmagic=32-bit;;
9736 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9737 libsuff=32 shlibsuff=N32 libmagic=N32;;
9738 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9739 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9740 *) libsuff= shlibsuff= libmagic=never-match;;
9741 esac
9743 esac
9744 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9745 shlibpath_overrides_runpath=no
9746 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9747 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9748 hardcode_into_libs=yes
9751 # No shared lib support for Linux oldld, aout, or coff.
9752 linux*oldld* | linux*aout* | linux*coff*)
9753 dynamic_linker=no
9756 # This must be Linux ELF.
9757 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9758 version_type=linux
9759 need_lib_prefix=no
9760 need_version=no
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=no
9767 # Some binutils ld are patched to set DT_RUNPATH
9768 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 lt_cv_shlibpath_overrides_runpath=no
9772 save_LDFLAGS=$LDFLAGS
9773 save_libdir=$libdir
9774 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9775 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9780 main ()
9784 return 0;
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"; then :
9788 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9789 lt_cv_shlibpath_overrides_runpath=yes
9792 rm -f core conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LDFLAGS=$save_LDFLAGS
9795 libdir=$save_libdir
9799 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9801 # This implies no fast_install, which is unacceptable.
9802 # Some rework will be needed to allow for fast_install
9803 # before this can be enabled.
9804 hardcode_into_libs=yes
9806 # Append ld.so.conf contents to the search path
9807 if test -f /etc/ld.so.conf; then
9808 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' ' '`
9809 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9812 # We used to test for /lib/ld.so.1 and disable shared libraries on
9813 # powerpc, because MkLinux only supported shared libraries with the
9814 # GNU dynamic linker. Since this was broken with cross compilers,
9815 # most powerpc-linux boxes support dynamic linking these days and
9816 # people can always --disable-shared, the test was removed, and we
9817 # assume the GNU/Linux dynamic linker is in use.
9818 dynamic_linker='GNU/Linux ld.so'
9821 netbsd*)
9822 version_type=sunos
9823 need_lib_prefix=no
9824 need_version=no
9825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9828 dynamic_linker='NetBSD (a.out) ld.so'
9829 else
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 dynamic_linker='NetBSD ld.elf_so'
9834 shlibpath_var=LD_LIBRARY_PATH
9835 shlibpath_overrides_runpath=yes
9836 hardcode_into_libs=yes
9839 newsos6)
9840 version_type=linux
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 shlibpath_overrides_runpath=yes
9846 *nto* | *qnx*)
9847 version_type=qnx
9848 need_lib_prefix=no
9849 need_version=no
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 hardcode_into_libs=yes
9855 dynamic_linker='ldqnx.so'
9858 openbsd*)
9859 version_type=sunos
9860 sys_lib_dlsearch_path_spec="/usr/lib"
9861 need_lib_prefix=no
9862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9863 case $host_os in
9864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9865 *) need_version=no ;;
9866 esac
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9871 case $host_os in
9872 openbsd2.[89] | openbsd2.[89].*)
9873 shlibpath_overrides_runpath=no
9876 shlibpath_overrides_runpath=yes
9878 esac
9879 else
9880 shlibpath_overrides_runpath=yes
9884 os2*)
9885 libname_spec='$name'
9886 shrext_cmds=".dll"
9887 need_lib_prefix=no
9888 library_names_spec='$libname${shared_ext} $libname.a'
9889 dynamic_linker='OS/2 ld.exe'
9890 shlibpath_var=LIBPATH
9893 osf3* | osf4* | osf5*)
9894 version_type=osf
9895 need_lib_prefix=no
9896 need_version=no
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9904 rdos*)
9905 dynamic_linker=no
9908 solaris*)
9909 version_type=linux
9910 need_lib_prefix=no
9911 need_version=no
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=yes
9916 hardcode_into_libs=yes
9917 # ldd complains unless libraries are executable
9918 postinstall_cmds='chmod +x $lib'
9921 sunos4*)
9922 version_type=sunos
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9924 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 shlibpath_overrides_runpath=yes
9927 if test "$with_gnu_ld" = yes; then
9928 need_lib_prefix=no
9930 need_version=yes
9933 sysv4 | sysv4.3*)
9934 version_type=linux
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec='${libname}${release}${shared_ext}$major'
9937 shlibpath_var=LD_LIBRARY_PATH
9938 case $host_vendor in
9939 sni)
9940 shlibpath_overrides_runpath=no
9941 need_lib_prefix=no
9942 runpath_var=LD_RUN_PATH
9944 siemens)
9945 need_lib_prefix=no
9947 motorola)
9948 need_lib_prefix=no
9949 need_version=no
9950 shlibpath_overrides_runpath=no
9951 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9953 esac
9956 sysv4*MP*)
9957 if test -d /usr/nec ;then
9958 version_type=linux
9959 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9960 soname_spec='$libname${shared_ext}.$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9966 version_type=freebsd-elf
9967 need_lib_prefix=no
9968 need_version=no
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 shlibpath_var=LD_LIBRARY_PATH
9972 shlibpath_overrides_runpath=yes
9973 hardcode_into_libs=yes
9974 if test "$with_gnu_ld" = yes; then
9975 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9976 else
9977 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9978 case $host_os in
9979 sco3.2v5*)
9980 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9982 esac
9984 sys_lib_dlsearch_path_spec='/usr/lib'
9987 tpf*)
9988 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9989 version_type=linux
9990 need_lib_prefix=no
9991 need_version=no
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 shlibpath_overrides_runpath=no
9995 hardcode_into_libs=yes
9998 uts4*)
9999 version_type=linux
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10006 dynamic_linker=no
10008 esac
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10010 $as_echo "$dynamic_linker" >&6; }
10011 test "$dynamic_linker" = no && can_build_shared=no
10013 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10014 if test "$GCC" = yes; then
10015 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10018 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10019 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10021 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10022 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10117 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10118 hardcode_action=
10119 if test -n "$hardcode_libdir_flag_spec" ||
10120 test -n "$runpath_var" ||
10121 test "X$hardcode_automatic" = "Xyes" ; then
10123 # We can hardcode non-existent directories.
10124 if test "$hardcode_direct" != no &&
10125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10126 # have to relink, otherwise we might link with an installed library
10127 # when we should be linking with a yet-to-be-installed one
10128 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10129 test "$hardcode_minus_L" != no; then
10130 # Linking always hardcodes the temporary library directory.
10131 hardcode_action=relink
10132 else
10133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10134 hardcode_action=immediate
10136 else
10137 # We cannot hardcode anything, or else we can only hardcode existing
10138 # directories.
10139 hardcode_action=unsupported
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10142 $as_echo "$hardcode_action" >&6; }
10144 if test "$hardcode_action" = relink ||
10145 test "$inherit_rpath" = yes; then
10146 # Fast installation is not supported
10147 enable_fast_install=no
10148 elif test "$shlibpath_overrides_runpath" = yes ||
10149 test "$enable_shared" = no; then
10150 # Fast installation is not necessary
10151 enable_fast_install=needless
10159 if test "x$enable_dlopen" != xyes; then
10160 enable_dlopen=unknown
10161 enable_dlopen_self=unknown
10162 enable_dlopen_self_static=unknown
10163 else
10164 lt_cv_dlopen=no
10165 lt_cv_dlopen_libs=
10167 case $host_os in
10168 beos*)
10169 lt_cv_dlopen="load_add_on"
10170 lt_cv_dlopen_libs=
10171 lt_cv_dlopen_self=yes
10174 mingw* | pw32* | cegcc*)
10175 lt_cv_dlopen="LoadLibrary"
10176 lt_cv_dlopen_libs=
10179 cygwin*)
10180 lt_cv_dlopen="dlopen"
10181 lt_cv_dlopen_libs=
10184 darwin*)
10185 # if libdl is installed we need to link against it
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10187 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-ldl $LIBS"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char dlopen ();
10204 main ()
10206 return dlopen ();
10208 return 0;
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_dl_dlopen=yes
10213 else
10214 ac_cv_lib_dl_dlopen=no
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10221 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10222 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10224 else
10226 lt_cv_dlopen="dyld"
10227 lt_cv_dlopen_libs=
10228 lt_cv_dlopen_self=yes
10235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10236 if test "x$ac_cv_func_shl_load" = x""yes; then :
10237 lt_cv_dlopen="shl_load"
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10240 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10241 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ldld $LIBS"
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char shl_load ();
10257 main ()
10259 return shl_load ();
10261 return 0;
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 ac_cv_lib_dld_shl_load=yes
10266 else
10267 ac_cv_lib_dld_shl_load=no
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10274 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10275 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10277 else
10278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10279 if test "x$ac_cv_func_dlopen" = x""yes; then :
10280 lt_cv_dlopen="dlopen"
10281 else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10284 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 ac_check_lib_save_LIBS=$LIBS
10288 LIBS="-ldl $LIBS"
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10292 /* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10295 #ifdef __cplusplus
10296 extern "C"
10297 #endif
10298 char dlopen ();
10300 main ()
10302 return dlopen ();
10304 return 0;
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308 ac_cv_lib_dl_dlopen=yes
10309 else
10310 ac_cv_lib_dl_dlopen=no
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314 LIBS=$ac_check_lib_save_LIBS
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10318 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10322 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10323 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10324 $as_echo_n "(cached) " >&6
10325 else
10326 ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lsvld $LIBS"
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10331 /* Override any GCC internal prototype to avoid an error.
10332 Use char because int might match the return type of a GCC
10333 builtin and then its argument prototype would still apply. */
10334 #ifdef __cplusplus
10335 extern "C"
10336 #endif
10337 char dlopen ();
10339 main ()
10341 return dlopen ();
10343 return 0;
10345 _ACEOF
10346 if ac_fn_c_try_link "$LINENO"; then :
10347 ac_cv_lib_svld_dlopen=yes
10348 else
10349 ac_cv_lib_svld_dlopen=no
10351 rm -f core conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10356 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10357 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10359 else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10361 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10362 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-ldld $LIBS"
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10370 /* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 char dld_link ();
10378 main ()
10380 return dld_link ();
10382 return 0;
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 ac_cv_lib_dld_dld_link=yes
10387 else
10388 ac_cv_lib_dld_dld_link=no
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10395 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10396 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10397 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10416 esac
10418 if test "x$lt_cv_dlopen" != xno; then
10419 enable_dlopen=yes
10420 else
10421 enable_dlopen=no
10424 case $lt_cv_dlopen in
10425 dlopen)
10426 save_CPPFLAGS="$CPPFLAGS"
10427 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10429 save_LDFLAGS="$LDFLAGS"
10430 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10432 save_LIBS="$LIBS"
10433 LIBS="$lt_cv_dlopen_libs $LIBS"
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10436 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10437 if test "${lt_cv_dlopen_self+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10440 if test "$cross_compiling" = yes; then :
10441 lt_cv_dlopen_self=cross
10442 else
10443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10444 lt_status=$lt_dlunknown
10445 cat > conftest.$ac_ext <<_LT_EOF
10446 #line 10446 "configure"
10447 #include "confdefs.h"
10449 #if HAVE_DLFCN_H
10450 #include <dlfcn.h>
10451 #endif
10453 #include <stdio.h>
10455 #ifdef RTLD_GLOBAL
10456 # define LT_DLGLOBAL RTLD_GLOBAL
10457 #else
10458 # ifdef DL_GLOBAL
10459 # define LT_DLGLOBAL DL_GLOBAL
10460 # else
10461 # define LT_DLGLOBAL 0
10462 # endif
10463 #endif
10465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10466 find out it does not work in some platform. */
10467 #ifndef LT_DLLAZY_OR_NOW
10468 # ifdef RTLD_LAZY
10469 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10470 # else
10471 # ifdef DL_LAZY
10472 # define LT_DLLAZY_OR_NOW DL_LAZY
10473 # else
10474 # ifdef RTLD_NOW
10475 # define LT_DLLAZY_OR_NOW RTLD_NOW
10476 # else
10477 # ifdef DL_NOW
10478 # define LT_DLLAZY_OR_NOW DL_NOW
10479 # else
10480 # define LT_DLLAZY_OR_NOW 0
10481 # endif
10482 # endif
10483 # endif
10484 # endif
10485 #endif
10487 /* When -fvisbility=hidden is used, assume the code has been annotated
10488 correspondingly for the symbols needed. */
10489 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10490 void fnord () __attribute__((visibility("default")));
10491 #endif
10493 void fnord () { int i=42; }
10494 int main ()
10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497 int status = $lt_dlunknown;
10499 if (self)
10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10502 else
10504 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10505 else puts (dlerror ());
10507 /* dlclose (self); */
10509 else
10510 puts (dlerror ());
10512 return status;
10514 _LT_EOF
10515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10520 (./conftest; exit; ) >&5 2>/dev/null
10521 lt_status=$?
10522 case x$lt_status in
10523 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10524 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10525 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10526 esac
10527 else :
10528 # compilation failed
10529 lt_cv_dlopen_self=no
10532 rm -fr conftest*
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10537 $as_echo "$lt_cv_dlopen_self" >&6; }
10539 if test "x$lt_cv_dlopen_self" = xyes; then
10540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10542 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10543 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 if test "$cross_compiling" = yes; then :
10547 lt_cv_dlopen_self_static=cross
10548 else
10549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10550 lt_status=$lt_dlunknown
10551 cat > conftest.$ac_ext <<_LT_EOF
10552 #line 10552 "configure"
10553 #include "confdefs.h"
10555 #if HAVE_DLFCN_H
10556 #include <dlfcn.h>
10557 #endif
10559 #include <stdio.h>
10561 #ifdef RTLD_GLOBAL
10562 # define LT_DLGLOBAL RTLD_GLOBAL
10563 #else
10564 # ifdef DL_GLOBAL
10565 # define LT_DLGLOBAL DL_GLOBAL
10566 # else
10567 # define LT_DLGLOBAL 0
10568 # endif
10569 #endif
10571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10572 find out it does not work in some platform. */
10573 #ifndef LT_DLLAZY_OR_NOW
10574 # ifdef RTLD_LAZY
10575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10576 # else
10577 # ifdef DL_LAZY
10578 # define LT_DLLAZY_OR_NOW DL_LAZY
10579 # else
10580 # ifdef RTLD_NOW
10581 # define LT_DLLAZY_OR_NOW RTLD_NOW
10582 # else
10583 # ifdef DL_NOW
10584 # define LT_DLLAZY_OR_NOW DL_NOW
10585 # else
10586 # define LT_DLLAZY_OR_NOW 0
10587 # endif
10588 # endif
10589 # endif
10590 # endif
10591 #endif
10593 /* When -fvisbility=hidden is used, assume the code has been annotated
10594 correspondingly for the symbols needed. */
10595 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10596 void fnord () __attribute__((visibility("default")));
10597 #endif
10599 void fnord () { int i=42; }
10600 int main ()
10602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603 int status = $lt_dlunknown;
10605 if (self)
10607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10608 else
10610 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10611 else puts (dlerror ());
10613 /* dlclose (self); */
10615 else
10616 puts (dlerror ());
10618 return status;
10620 _LT_EOF
10621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10622 (eval $ac_link) 2>&5
10623 ac_status=$?
10624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10625 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10626 (./conftest; exit; ) >&5 2>/dev/null
10627 lt_status=$?
10628 case x$lt_status in
10629 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10630 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10631 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10632 esac
10633 else :
10634 # compilation failed
10635 lt_cv_dlopen_self_static=no
10638 rm -fr conftest*
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10643 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10646 CPPFLAGS="$save_CPPFLAGS"
10647 LDFLAGS="$save_LDFLAGS"
10648 LIBS="$save_LIBS"
10650 esac
10652 case $lt_cv_dlopen_self in
10653 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10654 *) enable_dlopen_self=unknown ;;
10655 esac
10657 case $lt_cv_dlopen_self_static in
10658 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10659 *) enable_dlopen_self_static=unknown ;;
10660 esac
10679 striplib=
10680 old_striplib=
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10682 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10683 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10684 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10685 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; }
10688 else
10689 # FIXME - insert some real tests, host_os isn't really good enough
10690 case $host_os in
10691 darwin*)
10692 if test -n "$STRIP" ; then
10693 striplib="$STRIP -x"
10694 old_striplib="$STRIP -S"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10696 $as_echo "yes" >&6; }
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699 $as_echo "no" >&6; }
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10706 esac
10720 # Report which library types will actually be built
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10722 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10724 $as_echo "$can_build_shared" >&6; }
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10727 $as_echo_n "checking whether to build shared libraries... " >&6; }
10728 test "$can_build_shared" = "no" && enable_shared=no
10730 # On AIX, shared libraries and static libraries use the same namespace, and
10731 # are all built from PIC.
10732 case $host_os in
10733 aix3*)
10734 test "$enable_shared" = yes && enable_static=no
10735 if test -n "$RANLIB"; then
10736 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10737 postinstall_cmds='$RANLIB $lib'
10741 aix[4-9]*)
10742 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10743 test "$enable_shared" = yes && enable_static=no
10746 esac
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10748 $as_echo "$enable_shared" >&6; }
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10751 $as_echo_n "checking whether to build static libraries... " >&6; }
10752 # Make sure either enable_shared or enable_static is yes.
10753 test "$enable_shared" = yes || enable_static=yes
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10755 $as_echo "$enable_static" >&6; }
10761 ac_ext=c
10762 ac_cpp='$CPP $CPPFLAGS'
10763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10767 CC="$lt_save_CC"
10781 ac_config_commands="$ac_config_commands libtool"
10786 # Only expand once:
10790 . ${srcdir}/../gcc/config.gcc
10791 case ${lto_binary_reader} in
10792 *coff*) LTO_FORMAT=coff ;;
10793 *elf*) LTO_FORMAT=elf ;;
10794 *) as_fn_error "LTO plugin is not supported on this target." "$LINENO" 5 ;;
10795 esac
10798 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10799 case $ac_cv_c_uint64_t in #(
10800 no|yes) ;; #(
10803 $as_echo "#define _UINT64_T 1" >>confdefs.h
10806 cat >>confdefs.h <<_ACEOF
10807 #define uint64_t $ac_cv_c_uint64_t
10808 _ACEOF
10810 esac
10812 ac_config_files="$ac_config_files Makefile"
10814 cat >confcache <<\_ACEOF
10815 # This file is a shell script that caches the results of configure
10816 # tests run on this system so they can be shared between configure
10817 # scripts and configure runs, see configure's option --config-cache.
10818 # It is not useful on other systems. If it contains results you don't
10819 # want to keep, you may remove or edit it.
10821 # config.status only pays attention to the cache file if you give it
10822 # the --recheck option to rerun configure.
10824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10826 # following values.
10828 _ACEOF
10830 # The following way of writing the cache mishandles newlines in values,
10831 # but we know of no workaround that is simple, portable, and efficient.
10832 # So, we kill variables containing newlines.
10833 # Ultrix sh set writes to stderr and can't be redirected directly,
10834 # and sets the high bit in the cache file unless we assign to the vars.
10836 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10837 eval ac_val=\$$ac_var
10838 case $ac_val in #(
10839 *${as_nl}*)
10840 case $ac_var in #(
10841 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10842 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10843 esac
10844 case $ac_var in #(
10845 _ | IFS | as_nl) ;; #(
10846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10847 *) { eval $ac_var=; unset $ac_var;} ;;
10848 esac ;;
10849 esac
10850 done
10852 (set) 2>&1 |
10853 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10854 *${as_nl}ac_space=\ *)
10855 # `set' does not quote correctly, so add quotes: double-quote
10856 # substitution turns \\\\ into \\, and sed turns \\ into \.
10857 sed -n \
10858 "s/'/'\\\\''/g;
10859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10860 ;; #(
10862 # `set' quotes correctly as required by POSIX, so do not add quotes.
10863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10865 esac |
10866 sort
10868 sed '
10869 /^ac_cv_env_/b end
10870 t clear
10871 :clear
10872 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10873 t end
10874 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10875 :end' >>confcache
10876 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10877 if test -w "$cache_file"; then
10878 test "x$cache_file" != "x/dev/null" &&
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10880 $as_echo "$as_me: updating cache $cache_file" >&6;}
10881 cat confcache >$cache_file
10882 else
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10884 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10887 rm -f confcache
10889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10890 # Let make expand exec_prefix.
10891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10893 # Transform confdefs.h into DEFS.
10894 # Protect against shell expansion while executing Makefile rules.
10895 # Protect against Makefile macro expansion.
10897 # If the first sed substitution is executed (which looks for macros that
10898 # take arguments), then branch to the quote section. Otherwise,
10899 # look for a macro that doesn't take arguments.
10900 ac_script='
10901 :mline
10902 /\\$/{
10904 s,\\\n,,
10905 b mline
10907 t clear
10908 :clear
10909 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10910 t quote
10911 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10912 t quote
10913 b any
10914 :quote
10915 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10916 s/\[/\\&/g
10917 s/\]/\\&/g
10918 s/\$/$$/g
10920 :any
10923 s/^\n//
10924 s/\n/ /g
10928 DEFS=`sed -n "$ac_script" confdefs.h`
10931 ac_libobjs=
10932 ac_ltlibobjs=
10933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10934 # 1. Remove the extension, and $U if already installed.
10935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10938 # will be set to the directory where LIBOBJS objects are built.
10939 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10940 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10941 done
10942 LIBOBJS=$ac_libobjs
10944 LTLIBOBJS=$ac_ltlibobjs
10947 if test -n "$EXEEXT"; then
10948 am__EXEEXT_TRUE=
10949 am__EXEEXT_FALSE='#'
10950 else
10951 am__EXEEXT_TRUE='#'
10952 am__EXEEXT_FALSE=
10955 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10956 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10959 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10960 as_fn_error "conditional \"AMDEP\" was never defined.
10961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10963 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10964 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10968 : ${CONFIG_STATUS=./config.status}
10969 ac_write_fail=0
10970 ac_clean_files_save=$ac_clean_files
10971 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10973 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10974 as_write_fail=0
10975 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10976 #! $SHELL
10977 # Generated by $as_me.
10978 # Run this file to recreate the current configuration.
10979 # Compiler output produced by configure, useful for debugging
10980 # configure, is in config.log if it exists.
10982 debug=false
10983 ac_cs_recheck=false
10984 ac_cs_silent=false
10986 SHELL=\${CONFIG_SHELL-$SHELL}
10987 export SHELL
10988 _ASEOF
10989 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10990 ## -------------------- ##
10991 ## M4sh Initialization. ##
10992 ## -------------------- ##
10994 # Be more Bourne compatible
10995 DUALCASE=1; export DUALCASE # for MKS sh
10996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10997 emulate sh
10998 NULLCMD=:
10999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11000 # is contrary to our usage. Disable this feature.
11001 alias -g '${1+"$@"}'='"$@"'
11002 setopt NO_GLOB_SUBST
11003 else
11004 case `(set -o) 2>/dev/null` in #(
11005 *posix*) :
11006 set -o posix ;; #(
11007 *) :
11009 esac
11013 as_nl='
11015 export as_nl
11016 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11017 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11018 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11020 # Prefer a ksh shell builtin over an external printf program on Solaris,
11021 # but without wasting forks for bash or zsh.
11022 if test -z "$BASH_VERSION$ZSH_VERSION" \
11023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11024 as_echo='print -r --'
11025 as_echo_n='print -rn --'
11026 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11027 as_echo='printf %s\n'
11028 as_echo_n='printf %s'
11029 else
11030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11032 as_echo_n='/usr/ucb/echo -n'
11033 else
11034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11035 as_echo_n_body='eval
11036 arg=$1;
11037 case $arg in #(
11038 *"$as_nl"*)
11039 expr "X$arg" : "X\\(.*\\)$as_nl";
11040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11041 esac;
11042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11044 export as_echo_n_body
11045 as_echo_n='sh -c $as_echo_n_body as_echo'
11047 export as_echo_body
11048 as_echo='sh -c $as_echo_body as_echo'
11051 # The user is always right.
11052 if test "${PATH_SEPARATOR+set}" != set; then
11053 PATH_SEPARATOR=:
11054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11056 PATH_SEPARATOR=';'
11061 # IFS
11062 # We need space, tab and new line, in precisely that order. Quoting is
11063 # there to prevent editors from complaining about space-tab.
11064 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11065 # splitting by setting IFS to empty value.)
11066 IFS=" "" $as_nl"
11068 # Find who we are. Look in the path if we contain no directory separator.
11069 case $0 in #((
11070 *[\\/]* ) as_myself=$0 ;;
11071 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
11076 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11077 done
11078 IFS=$as_save_IFS
11081 esac
11082 # We did not find ourselves, most probably we were run as `sh COMMAND'
11083 # in which case we are not to be found in the path.
11084 if test "x$as_myself" = x; then
11085 as_myself=$0
11087 if test ! -f "$as_myself"; then
11088 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11089 exit 1
11092 # Unset variables that we do not need and which cause bugs (e.g. in
11093 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11094 # suppresses any "Segmentation fault" message there. '((' could
11095 # trigger a bug in pdksh 5.2.14.
11096 for as_var in BASH_ENV ENV MAIL MAILPATH
11097 do eval test x\${$as_var+set} = xset \
11098 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11099 done
11100 PS1='$ '
11101 PS2='> '
11102 PS4='+ '
11104 # NLS nuisances.
11105 LC_ALL=C
11106 export LC_ALL
11107 LANGUAGE=C
11108 export LANGUAGE
11110 # CDPATH.
11111 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11114 # as_fn_error ERROR [LINENO LOG_FD]
11115 # ---------------------------------
11116 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11117 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11118 # script with status $?, using 1 if that was 0.
11119 as_fn_error ()
11121 as_status=$?; test $as_status -eq 0 && as_status=1
11122 if test "$3"; then
11123 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11124 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11126 $as_echo "$as_me: error: $1" >&2
11127 as_fn_exit $as_status
11128 } # as_fn_error
11131 # as_fn_set_status STATUS
11132 # -----------------------
11133 # Set $? to STATUS, without forking.
11134 as_fn_set_status ()
11136 return $1
11137 } # as_fn_set_status
11139 # as_fn_exit STATUS
11140 # -----------------
11141 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11142 as_fn_exit ()
11144 set +e
11145 as_fn_set_status $1
11146 exit $1
11147 } # as_fn_exit
11149 # as_fn_unset VAR
11150 # ---------------
11151 # Portably unset VAR.
11152 as_fn_unset ()
11154 { eval $1=; unset $1;}
11156 as_unset=as_fn_unset
11157 # as_fn_append VAR VALUE
11158 # ----------------------
11159 # Append the text in VALUE to the end of the definition contained in VAR. Take
11160 # advantage of any shell optimizations that allow amortized linear growth over
11161 # repeated appends, instead of the typical quadratic growth present in naive
11162 # implementations.
11163 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11164 eval 'as_fn_append ()
11166 eval $1+=\$2
11168 else
11169 as_fn_append ()
11171 eval $1=\$$1\$2
11173 fi # as_fn_append
11175 # as_fn_arith ARG...
11176 # ------------------
11177 # Perform arithmetic evaluation on the ARGs, and store the result in the
11178 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11179 # must be portable across $(()) and expr.
11180 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11181 eval 'as_fn_arith ()
11183 as_val=$(( $* ))
11185 else
11186 as_fn_arith ()
11188 as_val=`expr "$@" || test $? -eq 1`
11190 fi # as_fn_arith
11193 if expr a : '\(a\)' >/dev/null 2>&1 &&
11194 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11195 as_expr=expr
11196 else
11197 as_expr=false
11200 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11201 as_basename=basename
11202 else
11203 as_basename=false
11206 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11207 as_dirname=dirname
11208 else
11209 as_dirname=false
11212 as_me=`$as_basename -- "$0" ||
11213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11214 X"$0" : 'X\(//\)$' \| \
11215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11216 $as_echo X/"$0" |
11217 sed '/^.*\/\([^/][^/]*\)\/*$/{
11218 s//\1/
11221 /^X\/\(\/\/\)$/{
11222 s//\1/
11225 /^X\/\(\/\).*/{
11226 s//\1/
11229 s/.*/./; q'`
11231 # Avoid depending upon Character Ranges.
11232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11235 as_cr_digits='0123456789'
11236 as_cr_alnum=$as_cr_Letters$as_cr_digits
11238 ECHO_C= ECHO_N= ECHO_T=
11239 case `echo -n x` in #(((((
11240 -n*)
11241 case `echo 'xy\c'` in
11242 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11243 xy) ECHO_C='\c';;
11244 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11245 ECHO_T=' ';;
11246 esac;;
11248 ECHO_N='-n';;
11249 esac
11251 rm -f conf$$ conf$$.exe conf$$.file
11252 if test -d conf$$.dir; then
11253 rm -f conf$$.dir/conf$$.file
11254 else
11255 rm -f conf$$.dir
11256 mkdir conf$$.dir 2>/dev/null
11258 if (echo >conf$$.file) 2>/dev/null; then
11259 if ln -s conf$$.file conf$$ 2>/dev/null; then
11260 as_ln_s='ln -s'
11261 # ... but there are two gotchas:
11262 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11263 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11264 # In both cases, we have to default to `cp -p'.
11265 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11266 as_ln_s='cp -p'
11267 elif ln conf$$.file conf$$ 2>/dev/null; then
11268 as_ln_s=ln
11269 else
11270 as_ln_s='cp -p'
11272 else
11273 as_ln_s='cp -p'
11275 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11276 rmdir conf$$.dir 2>/dev/null
11279 # as_fn_mkdir_p
11280 # -------------
11281 # Create "$as_dir" as a directory, including parents if necessary.
11282 as_fn_mkdir_p ()
11285 case $as_dir in #(
11286 -*) as_dir=./$as_dir;;
11287 esac
11288 test -d "$as_dir" || eval $as_mkdir_p || {
11289 as_dirs=
11290 while :; do
11291 case $as_dir in #(
11292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11293 *) as_qdir=$as_dir;;
11294 esac
11295 as_dirs="'$as_qdir' $as_dirs"
11296 as_dir=`$as_dirname -- "$as_dir" ||
11297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11298 X"$as_dir" : 'X\(//\)[^/]' \| \
11299 X"$as_dir" : 'X\(//\)$' \| \
11300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11301 $as_echo X"$as_dir" |
11302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11303 s//\1/
11306 /^X\(\/\/\)[^/].*/{
11307 s//\1/
11310 /^X\(\/\/\)$/{
11311 s//\1/
11314 /^X\(\/\).*/{
11315 s//\1/
11318 s/.*/./; q'`
11319 test -d "$as_dir" && break
11320 done
11321 test -z "$as_dirs" || eval "mkdir $as_dirs"
11322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11325 } # as_fn_mkdir_p
11326 if mkdir -p . 2>/dev/null; then
11327 as_mkdir_p='mkdir -p "$as_dir"'
11328 else
11329 test -d ./-p && rmdir ./-p
11330 as_mkdir_p=false
11333 if test -x / >/dev/null 2>&1; then
11334 as_test_x='test -x'
11335 else
11336 if ls -dL / >/dev/null 2>&1; then
11337 as_ls_L_option=L
11338 else
11339 as_ls_L_option=
11341 as_test_x='
11342 eval sh -c '\''
11343 if test -d "$1"; then
11344 test -d "$1/.";
11345 else
11346 case $1 in #(
11347 -*)set "./$1";;
11348 esac;
11349 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11350 ???[sx]*):;;*)false;;esac;fi
11351 '\'' sh
11354 as_executable_p=$as_test_x
11356 # Sed expression to map a string onto a valid CPP name.
11357 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11359 # Sed expression to map a string onto a valid variable name.
11360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11363 exec 6>&1
11364 ## ----------------------------------- ##
11365 ## Main body of $CONFIG_STATUS script. ##
11366 ## ----------------------------------- ##
11367 _ASEOF
11368 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11371 # Save the log message, to keep $0 and so on meaningful, and to
11372 # report actual input values of CONFIG_FILES etc. instead of their
11373 # values after options handling.
11374 ac_log="
11375 This file was extended by LTO plugin for ld $as_me 0.1, which was
11376 generated by GNU Autoconf 2.64. Invocation command line was
11378 CONFIG_FILES = $CONFIG_FILES
11379 CONFIG_HEADERS = $CONFIG_HEADERS
11380 CONFIG_LINKS = $CONFIG_LINKS
11381 CONFIG_COMMANDS = $CONFIG_COMMANDS
11382 $ $0 $@
11384 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11387 _ACEOF
11389 case $ac_config_files in *"
11390 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11391 esac
11395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11396 # Files that config.status was made for.
11397 config_files="$ac_config_files"
11398 config_commands="$ac_config_commands"
11400 _ACEOF
11402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11403 ac_cs_usage="\
11404 \`$as_me' instantiates files and other configuration actions
11405 from templates according to the current configuration. Unless the files
11406 and actions are specified as TAGs, all are instantiated by default.
11408 Usage: $0 [OPTION]... [TAG]...
11410 -h, --help print this help, then exit
11411 -V, --version print version number and configuration settings, then exit
11412 -q, --quiet, --silent
11413 do not print progress messages
11414 -d, --debug don't remove temporary files
11415 --recheck update $as_me by reconfiguring in the same conditions
11416 --file=FILE[:TEMPLATE]
11417 instantiate the configuration file FILE
11419 Configuration files:
11420 $config_files
11422 Configuration commands:
11423 $config_commands
11425 Report bugs to the package provider."
11427 _ACEOF
11428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11429 ac_cs_version="\\
11430 LTO plugin for ld config.status 0.1
11431 configured by $0, generated by GNU Autoconf 2.64,
11432 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11434 Copyright (C) 2009 Free Software Foundation, Inc.
11435 This config.status script is free software; the Free Software Foundation
11436 gives unlimited permission to copy, distribute and modify it."
11438 ac_pwd='$ac_pwd'
11439 srcdir='$srcdir'
11440 INSTALL='$INSTALL'
11441 MKDIR_P='$MKDIR_P'
11442 AWK='$AWK'
11443 test -n "\$AWK" || AWK=awk
11444 _ACEOF
11446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11447 # The default lists apply if the user does not specify any file.
11448 ac_need_defaults=:
11449 while test $# != 0
11451 case $1 in
11452 --*=*)
11453 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11454 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11455 ac_shift=:
11458 ac_option=$1
11459 ac_optarg=$2
11460 ac_shift=shift
11462 esac
11464 case $ac_option in
11465 # Handling of the options.
11466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11467 ac_cs_recheck=: ;;
11468 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11469 $as_echo "$ac_cs_version"; exit ;;
11470 --debug | --debu | --deb | --de | --d | -d )
11471 debug=: ;;
11472 --file | --fil | --fi | --f )
11473 $ac_shift
11474 case $ac_optarg in
11475 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11476 esac
11477 as_fn_append CONFIG_FILES " '$ac_optarg'"
11478 ac_need_defaults=false;;
11479 --he | --h | --help | --hel | -h )
11480 $as_echo "$ac_cs_usage"; exit ;;
11481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11483 ac_cs_silent=: ;;
11485 # This is an error.
11486 -*) as_fn_error "unrecognized option: \`$1'
11487 Try \`$0 --help' for more information." ;;
11489 *) as_fn_append ac_config_targets " $1"
11490 ac_need_defaults=false ;;
11492 esac
11493 shift
11494 done
11496 ac_configure_extra_args=
11498 if $ac_cs_silent; then
11499 exec 6>/dev/null
11500 ac_configure_extra_args="$ac_configure_extra_args --silent"
11503 _ACEOF
11504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11505 if \$ac_cs_recheck; then
11506 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11507 shift
11508 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11509 CONFIG_SHELL='$SHELL'
11510 export CONFIG_SHELL
11511 exec "\$@"
11514 _ACEOF
11515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11516 exec 5>>config.log
11518 echo
11519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11520 ## Running $as_me. ##
11521 _ASBOX
11522 $as_echo "$ac_log"
11523 } >&5
11525 _ACEOF
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11528 # INIT-COMMANDS
11530 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11533 # The HP-UX ksh and POSIX shell print the target directory to stdout
11534 # if CDPATH is set.
11535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11537 sed_quote_subst='$sed_quote_subst'
11538 double_quote_subst='$double_quote_subst'
11539 delay_variable_subst='$delay_variable_subst'
11540 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11541 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11542 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11543 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11544 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11545 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11546 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11547 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11548 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11549 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11550 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11551 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11552 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11553 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11554 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11555 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11556 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11557 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11558 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11559 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11560 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11561 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11562 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11563 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11564 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11565 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11566 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11567 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11568 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11569 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11570 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11571 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11572 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11573 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11574 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11575 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11576 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11577 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11578 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11579 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11580 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11581 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11582 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11583 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11584 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11585 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11586 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11587 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11588 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"`'
11589 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11590 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11591 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11592 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11593 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11594 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11595 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11596 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11597 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11598 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11599 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11600 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11601 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11602 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11603 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11604 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11605 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11606 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11607 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11608 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11609 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11610 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11611 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11612 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11613 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11614 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11615 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11616 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11617 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11618 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11619 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11620 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11621 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11622 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11623 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11624 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11625 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11626 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11627 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11628 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11629 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11630 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11631 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11632 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11633 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11634 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11635 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11636 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11637 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11638 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11639 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11640 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11641 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11642 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11643 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11644 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11645 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11646 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11647 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11648 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11649 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11650 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11651 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11652 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11653 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11654 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11655 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11656 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11657 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11658 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11659 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11661 LTCC='$LTCC'
11662 LTCFLAGS='$LTCFLAGS'
11663 compiler='$compiler_DEFAULT'
11665 # A function that is used when there is no print builtin or printf.
11666 func_fallback_echo ()
11668 eval 'cat <<_LTECHO_EOF
11670 _LTECHO_EOF'
11673 # Quote evaled strings.
11674 for var in SHELL \
11675 ECHO \
11676 SED \
11677 GREP \
11678 EGREP \
11679 FGREP \
11680 LD \
11681 NM \
11682 LN_S \
11683 lt_SP2NL \
11684 lt_NL2SP \
11685 reload_flag \
11686 OBJDUMP \
11687 deplibs_check_method \
11688 file_magic_cmd \
11689 AR \
11690 AR_FLAGS \
11691 STRIP \
11692 RANLIB \
11693 CC \
11694 CFLAGS \
11695 compiler \
11696 lt_cv_sys_global_symbol_pipe \
11697 lt_cv_sys_global_symbol_to_cdecl \
11698 lt_cv_sys_global_symbol_to_c_name_address \
11699 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11700 lt_prog_compiler_no_builtin_flag \
11701 lt_prog_compiler_wl \
11702 lt_prog_compiler_pic \
11703 lt_prog_compiler_static \
11704 lt_cv_prog_compiler_c_o \
11705 need_locks \
11706 DSYMUTIL \
11707 NMEDIT \
11708 LIPO \
11709 OTOOL \
11710 OTOOL64 \
11711 shrext_cmds \
11712 export_dynamic_flag_spec \
11713 whole_archive_flag_spec \
11714 compiler_needs_object \
11715 with_gnu_ld \
11716 allow_undefined_flag \
11717 no_undefined_flag \
11718 hardcode_libdir_flag_spec \
11719 hardcode_libdir_flag_spec_ld \
11720 hardcode_libdir_separator \
11721 fix_srcfile_path \
11722 exclude_expsyms \
11723 include_expsyms \
11724 file_list_spec \
11725 variables_saved_for_relink \
11726 libname_spec \
11727 library_names_spec \
11728 soname_spec \
11729 install_override_mode \
11730 finish_eval \
11731 old_striplib \
11732 striplib; do
11733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11734 *[\\\\\\\`\\"\\\$]*)
11735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11740 esac
11741 done
11743 # Double-quote double-evaled strings.
11744 for var in reload_cmds \
11745 old_postinstall_cmds \
11746 old_postuninstall_cmds \
11747 old_archive_cmds \
11748 extract_expsyms_cmds \
11749 old_archive_from_new_cmds \
11750 old_archive_from_expsyms_cmds \
11751 archive_cmds \
11752 archive_expsym_cmds \
11753 module_cmds \
11754 module_expsym_cmds \
11755 export_symbols_cmds \
11756 prelink_cmds \
11757 postinstall_cmds \
11758 postuninstall_cmds \
11759 finish_cmds \
11760 sys_lib_search_path_spec \
11761 sys_lib_dlsearch_path_spec; do
11762 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11763 *[\\\\\\\`\\"\\\$]*)
11764 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11767 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11769 esac
11770 done
11772 ac_aux_dir='$ac_aux_dir'
11773 xsi_shell='$xsi_shell'
11774 lt_shell_append='$lt_shell_append'
11776 # See if we are running on zsh, and set the options which allow our
11777 # commands through without removal of \ escapes INIT.
11778 if test -n "\${ZSH_VERSION+set}" ; then
11779 setopt NO_GLOB_SUBST
11783 PACKAGE='$PACKAGE'
11784 VERSION='$VERSION'
11785 TIMESTAMP='$TIMESTAMP'
11786 RM='$RM'
11787 ofile='$ofile'
11792 _ACEOF
11794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11796 # Handling of arguments.
11797 for ac_config_target in $ac_config_targets
11799 case $ac_config_target in
11800 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11801 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11802 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11804 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11805 esac
11806 done
11809 # If the user did not use the arguments to specify the items to instantiate,
11810 # then the envvar interface is used. Set only those that are not.
11811 # We use the long form for the default assignment because of an extremely
11812 # bizarre bug on SunOS 4.1.3.
11813 if $ac_need_defaults; then
11814 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11815 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11818 # Have a temporary directory for convenience. Make it in the build tree
11819 # simply because there is no reason against having it here, and in addition,
11820 # creating and moving files from /tmp can sometimes cause problems.
11821 # Hook for its removal unless debugging.
11822 # Note that there is a small window in which the directory will not be cleaned:
11823 # after its creation but before its name has been assigned to `$tmp'.
11824 $debug ||
11826 tmp=
11827 trap 'exit_status=$?
11828 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11830 trap 'as_fn_exit 1' 1 2 13 15
11832 # Create a (secure) tmp directory for tmp files.
11835 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11836 test -n "$tmp" && test -d "$tmp"
11837 } ||
11839 tmp=./conf$$-$RANDOM
11840 (umask 077 && mkdir "$tmp")
11841 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11843 # Set up the scripts for CONFIG_FILES section.
11844 # No need to generate them if there are no CONFIG_FILES.
11845 # This happens for instance with `./config.status config.h'.
11846 if test -n "$CONFIG_FILES"; then
11849 ac_cr=`echo X | tr X '\015'`
11850 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11851 # But we know of no other shell where ac_cr would be empty at this
11852 # point, so we can use a bashism as a fallback.
11853 if test "x$ac_cr" = x; then
11854 eval ac_cr=\$\'\\r\'
11856 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11857 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11858 ac_cs_awk_cr='\r'
11859 else
11860 ac_cs_awk_cr=$ac_cr
11863 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11864 _ACEOF
11868 echo "cat >conf$$subs.awk <<_ACEOF" &&
11869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11870 echo "_ACEOF"
11871 } >conf$$subs.sh ||
11872 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11874 ac_delim='%!_!# '
11875 for ac_last_try in false false false false false :; do
11876 . ./conf$$subs.sh ||
11877 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11879 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11880 if test $ac_delim_n = $ac_delim_num; then
11881 break
11882 elif $ac_last_try; then
11883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11884 else
11885 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11887 done
11888 rm -f conf$$subs.sh
11890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11891 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11892 _ACEOF
11893 sed -n '
11895 s/^/S["/; s/!.*/"]=/
11898 s/^[^!]*!//
11899 :repl
11900 t repl
11901 s/'"$ac_delim"'$//
11902 t delim
11905 s/\(.\{148\}\).*/\1/
11906 t more1
11907 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11910 b repl
11911 :more1
11912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11915 s/.\{148\}//
11916 t nl
11917 :delim
11919 s/\(.\{148\}\).*/\1/
11920 t more2
11921 s/["\\]/\\&/g; s/^/"/; s/$/"/
11924 :more2
11925 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11928 s/.\{148\}//
11929 t delim
11930 ' <conf$$subs.awk | sed '
11931 /^[^""]/{
11933 s/\n//
11935 ' >>$CONFIG_STATUS || ac_write_fail=1
11936 rm -f conf$$subs.awk
11937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11938 _ACAWK
11939 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11940 for (key in S) S_is_set[key] = 1
11941 FS = "\a"
11945 line = $ 0
11946 nfields = split(line, field, "@")
11947 substed = 0
11948 len = length(field[1])
11949 for (i = 2; i < nfields; i++) {
11950 key = field[i]
11951 keylen = length(key)
11952 if (S_is_set[key]) {
11953 value = S[key]
11954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11955 len += length(value) + length(field[++i])
11956 substed = 1
11957 } else
11958 len += 1 + keylen
11961 print line
11964 _ACAWK
11965 _ACEOF
11966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11967 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11968 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11969 else
11971 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11972 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11973 _ACEOF
11975 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11976 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11977 # trailing colons and then remove the whole line if VPATH becomes empty
11978 # (actually we leave an empty line to preserve line numbers).
11979 if test "x$srcdir" = x.; then
11980 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11981 s/:*\$(srcdir):*/:/
11982 s/:*\${srcdir}:*/:/
11983 s/:*@srcdir@:*/:/
11984 s/^\([^=]*=[ ]*\):*/\1/
11985 s/:*$//
11986 s/^[^=]*=[ ]*$//
11990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11991 fi # test -n "$CONFIG_FILES"
11994 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11995 shift
11996 for ac_tag
11998 case $ac_tag in
11999 :[FHLC]) ac_mode=$ac_tag; continue;;
12000 esac
12001 case $ac_mode$ac_tag in
12002 :[FHL]*:*);;
12003 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12004 :[FH]-) ac_tag=-:-;;
12005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12006 esac
12007 ac_save_IFS=$IFS
12008 IFS=:
12009 set x $ac_tag
12010 IFS=$ac_save_IFS
12011 shift
12012 ac_file=$1
12013 shift
12015 case $ac_mode in
12016 :L) ac_source=$1;;
12017 :[FH])
12018 ac_file_inputs=
12019 for ac_f
12021 case $ac_f in
12022 -) ac_f="$tmp/stdin";;
12023 *) # Look for the file first in the build tree, then in the source tree
12024 # (if the path is not absolute). The absolute path cannot be DOS-style,
12025 # because $ac_f cannot contain `:'.
12026 test -f "$ac_f" ||
12027 case $ac_f in
12028 [\\/$]*) false;;
12029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12030 esac ||
12031 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12032 esac
12033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12034 as_fn_append ac_file_inputs " '$ac_f'"
12035 done
12037 # Let's still pretend it is `configure' which instantiates (i.e., don't
12038 # use $as_me), people would be surprised to read:
12039 # /* config.h. Generated by config.status. */
12040 configure_input='Generated from '`
12041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12042 `' by configure.'
12043 if test x"$ac_file" != x-; then
12044 configure_input="$ac_file. $configure_input"
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12046 $as_echo "$as_me: creating $ac_file" >&6;}
12048 # Neutralize special characters interpreted by sed in replacement strings.
12049 case $configure_input in #(
12050 *\&* | *\|* | *\\* )
12051 ac_sed_conf_input=`$as_echo "$configure_input" |
12052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12053 *) ac_sed_conf_input=$configure_input;;
12054 esac
12056 case $ac_tag in
12057 *:-:* | *:-) cat >"$tmp/stdin" \
12058 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12059 esac
12061 esac
12063 ac_dir=`$as_dirname -- "$ac_file" ||
12064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12065 X"$ac_file" : 'X\(//\)[^/]' \| \
12066 X"$ac_file" : 'X\(//\)$' \| \
12067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12068 $as_echo X"$ac_file" |
12069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12070 s//\1/
12073 /^X\(\/\/\)[^/].*/{
12074 s//\1/
12077 /^X\(\/\/\)$/{
12078 s//\1/
12081 /^X\(\/\).*/{
12082 s//\1/
12085 s/.*/./; q'`
12086 as_dir="$ac_dir"; as_fn_mkdir_p
12087 ac_builddir=.
12089 case "$ac_dir" in
12090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12093 # A ".." for each directory in $ac_dir_suffix.
12094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12095 case $ac_top_builddir_sub in
12096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12098 esac ;;
12099 esac
12100 ac_abs_top_builddir=$ac_pwd
12101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12102 # for backward compatibility:
12103 ac_top_builddir=$ac_top_build_prefix
12105 case $srcdir in
12106 .) # We are building in place.
12107 ac_srcdir=.
12108 ac_top_srcdir=$ac_top_builddir_sub
12109 ac_abs_top_srcdir=$ac_pwd ;;
12110 [\\/]* | ?:[\\/]* ) # Absolute name.
12111 ac_srcdir=$srcdir$ac_dir_suffix;
12112 ac_top_srcdir=$srcdir
12113 ac_abs_top_srcdir=$srcdir ;;
12114 *) # Relative name.
12115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12116 ac_top_srcdir=$ac_top_build_prefix$srcdir
12117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12118 esac
12119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12122 case $ac_mode in
12125 # CONFIG_FILE
12128 case $INSTALL in
12129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12131 esac
12132 ac_MKDIR_P=$MKDIR_P
12133 case $MKDIR_P in
12134 [\\/$]* | ?:[\\/]* ) ;;
12135 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12136 esac
12137 _ACEOF
12139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140 # If the template does not know about datarootdir, expand it.
12141 # FIXME: This hack should be removed a few years after 2.60.
12142 ac_datarootdir_hack=; ac_datarootdir_seen=
12143 ac_sed_dataroot='
12144 /datarootdir/ {
12148 /@datadir@/p
12149 /@docdir@/p
12150 /@infodir@/p
12151 /@localedir@/p
12152 /@mandir@/p'
12153 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12154 *datarootdir*) ac_datarootdir_seen=yes;;
12155 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12157 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12158 _ACEOF
12159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12160 ac_datarootdir_hack='
12161 s&@datadir@&$datadir&g
12162 s&@docdir@&$docdir&g
12163 s&@infodir@&$infodir&g
12164 s&@localedir@&$localedir&g
12165 s&@mandir@&$mandir&g
12166 s&\\\${datarootdir}&$datarootdir&g' ;;
12167 esac
12168 _ACEOF
12170 # Neutralize VPATH when `$srcdir' = `.'.
12171 # Shell code in configure.ac might set extrasub.
12172 # FIXME: do we really want to maintain this feature?
12173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12174 ac_sed_extra="$ac_vpsub
12175 $extrasub
12176 _ACEOF
12177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12180 s|@configure_input@|$ac_sed_conf_input|;t t
12181 s&@top_builddir@&$ac_top_builddir_sub&;t t
12182 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12183 s&@srcdir@&$ac_srcdir&;t t
12184 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12185 s&@top_srcdir@&$ac_top_srcdir&;t t
12186 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12187 s&@builddir@&$ac_builddir&;t t
12188 s&@abs_builddir@&$ac_abs_builddir&;t t
12189 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12190 s&@INSTALL@&$ac_INSTALL&;t t
12191 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12192 $ac_datarootdir_hack
12194 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12195 || as_fn_error "could not create $ac_file" "$LINENO" 5
12197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12201 which seems to be undefined. Please make sure it is defined." >&5
12202 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12203 which seems to be undefined. Please make sure it is defined." >&2;}
12205 rm -f "$tmp/stdin"
12206 case $ac_file in
12207 -) cat "$tmp/out" && rm -f "$tmp/out";;
12208 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12209 esac \
12210 || as_fn_error "could not create $ac_file" "$LINENO" 5
12214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12215 $as_echo "$as_me: executing $ac_file commands" >&6;}
12217 esac
12220 case $ac_file$ac_mode in
12221 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12222 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12223 # are listed without --file. Let's play safe and only enable the eval
12224 # if we detect the quoting.
12225 case $CONFIG_FILES in
12226 *\'*) eval set x "$CONFIG_FILES" ;;
12227 *) set x $CONFIG_FILES ;;
12228 esac
12229 shift
12230 for mf
12232 # Strip MF so we end up with the name of the file.
12233 mf=`echo "$mf" | sed -e 's/:.*$//'`
12234 # Check whether this is an Automake generated Makefile or not.
12235 # We used to match only the files named `Makefile.in', but
12236 # some people rename them; so instead we look at the file content.
12237 # Grep'ing the first line is not enough: some people post-process
12238 # each Makefile.in and add a new line on top of each file to say so.
12239 # Grep'ing the whole file is not good either: AIX grep has a line
12240 # limit of 2048, but all sed's we know have understand at least 4000.
12241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12242 dirpart=`$as_dirname -- "$mf" ||
12243 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12244 X"$mf" : 'X\(//\)[^/]' \| \
12245 X"$mf" : 'X\(//\)$' \| \
12246 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12247 $as_echo X"$mf" |
12248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12249 s//\1/
12252 /^X\(\/\/\)[^/].*/{
12253 s//\1/
12256 /^X\(\/\/\)$/{
12257 s//\1/
12260 /^X\(\/\).*/{
12261 s//\1/
12264 s/.*/./; q'`
12265 else
12266 continue
12268 # Extract the definition of DEPDIR, am__include, and am__quote
12269 # from the Makefile without running `make'.
12270 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12271 test -z "$DEPDIR" && continue
12272 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12273 test -z "am__include" && continue
12274 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12275 # When using ansi2knr, U may be empty or an underscore; expand it
12276 U=`sed -n 's/^U = //p' < "$mf"`
12277 # Find all dependency output files, they are included files with
12278 # $(DEPDIR) in their names. We invoke sed twice because it is the
12279 # simplest approach to changing $(DEPDIR) to its actual value in the
12280 # expansion.
12281 for file in `sed -n "
12282 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12283 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12284 # Make sure the directory exists.
12285 test -f "$dirpart/$file" && continue
12286 fdir=`$as_dirname -- "$file" ||
12287 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12288 X"$file" : 'X\(//\)[^/]' \| \
12289 X"$file" : 'X\(//\)$' \| \
12290 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12291 $as_echo X"$file" |
12292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12293 s//\1/
12296 /^X\(\/\/\)[^/].*/{
12297 s//\1/
12300 /^X\(\/\/\)$/{
12301 s//\1/
12304 /^X\(\/\).*/{
12305 s//\1/
12308 s/.*/./; q'`
12309 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12310 # echo "creating $dirpart/$file"
12311 echo '# dummy' > "$dirpart/$file"
12312 done
12313 done
12316 "libtool":C)
12318 # See if we are running on zsh, and set the options which allow our
12319 # commands through without removal of \ escapes.
12320 if test -n "${ZSH_VERSION+set}" ; then
12321 setopt NO_GLOB_SUBST
12324 cfgfile="${ofile}T"
12325 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12326 $RM "$cfgfile"
12328 cat <<_LT_EOF >> "$cfgfile"
12329 #! $SHELL
12331 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12332 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12333 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12334 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12336 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12337 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12338 # Written by Gordon Matzigkeit, 1996
12340 # This file is part of GNU Libtool.
12342 # GNU Libtool is free software; you can redistribute it and/or
12343 # modify it under the terms of the GNU General Public License as
12344 # published by the Free Software Foundation; either version 2 of
12345 # the License, or (at your option) any later version.
12347 # As a special exception to the GNU General Public License,
12348 # if you distribute this file as part of a program or library that
12349 # is built using GNU Libtool, you may include this file under the
12350 # same distribution terms that you use for the rest of that program.
12352 # GNU Libtool is distributed in the hope that it will be useful,
12353 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12354 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12355 # GNU General Public License for more details.
12357 # You should have received a copy of the GNU General Public License
12358 # along with GNU Libtool; see the file COPYING. If not, a copy
12359 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12360 # obtained by writing to the Free Software Foundation, Inc.,
12361 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12364 # The names of the tagged configurations supported by this script.
12365 available_tags=""
12367 # ### BEGIN LIBTOOL CONFIG
12369 # Which release of libtool.m4 was used?
12370 macro_version=$macro_version
12371 macro_revision=$macro_revision
12373 # Whether or not to build shared libraries.
12374 build_libtool_libs=$enable_shared
12376 # Whether or not to build static libraries.
12377 build_old_libs=$enable_static
12379 # What type of objects to build.
12380 pic_mode=$pic_mode
12382 # Whether or not to optimize for fast installation.
12383 fast_install=$enable_fast_install
12385 # Shell to use when invoking shell scripts.
12386 SHELL=$lt_SHELL
12388 # An echo program that protects backslashes.
12389 ECHO=$lt_ECHO
12391 # The host system.
12392 host_alias=$host_alias
12393 host=$host
12394 host_os=$host_os
12396 # The build system.
12397 build_alias=$build_alias
12398 build=$build
12399 build_os=$build_os
12401 # A sed program that does not truncate output.
12402 SED=$lt_SED
12404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12405 Xsed="\$SED -e 1s/^X//"
12407 # A grep program that handles long lines.
12408 GREP=$lt_GREP
12410 # An ERE matcher.
12411 EGREP=$lt_EGREP
12413 # A literal string matcher.
12414 FGREP=$lt_FGREP
12416 # A BSD- or MS-compatible name lister.
12417 NM=$lt_NM
12419 # Whether we need soft or hard links.
12420 LN_S=$lt_LN_S
12422 # What is the maximum length of a command?
12423 max_cmd_len=$max_cmd_len
12425 # Object file suffix (normally "o").
12426 objext=$ac_objext
12428 # Executable file suffix (normally "").
12429 exeext=$exeext
12431 # whether the shell understands "unset".
12432 lt_unset=$lt_unset
12434 # turn spaces into newlines.
12435 SP2NL=$lt_lt_SP2NL
12437 # turn newlines into spaces.
12438 NL2SP=$lt_lt_NL2SP
12440 # An object symbol dumper.
12441 OBJDUMP=$lt_OBJDUMP
12443 # Method to check whether dependent libraries are shared objects.
12444 deplibs_check_method=$lt_deplibs_check_method
12446 # Command to use when deplibs_check_method == "file_magic".
12447 file_magic_cmd=$lt_file_magic_cmd
12449 # The archiver.
12450 AR=$lt_AR
12451 AR_FLAGS=$lt_AR_FLAGS
12453 # A symbol stripping program.
12454 STRIP=$lt_STRIP
12456 # Commands used to install an old-style archive.
12457 RANLIB=$lt_RANLIB
12458 old_postinstall_cmds=$lt_old_postinstall_cmds
12459 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12461 # Whether to use a lock for old archive extraction.
12462 lock_old_archive_extraction=$lock_old_archive_extraction
12464 # A C compiler.
12465 LTCC=$lt_CC
12467 # LTCC compiler flags.
12468 LTCFLAGS=$lt_CFLAGS
12470 # Take the output of nm and produce a listing of raw symbols and C names.
12471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12473 # Transform the output of nm in a proper C declaration.
12474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12476 # Transform the output of nm in a C name address pair.
12477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12479 # Transform the output of nm in a C name address pair when lib prefix is needed.
12480 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12482 # The name of the directory that contains temporary libtool files.
12483 objdir=$objdir
12485 # Used to examine libraries when file_magic_cmd begins with "file".
12486 MAGIC_CMD=$MAGIC_CMD
12488 # Must we lock files when doing compilation?
12489 need_locks=$lt_need_locks
12491 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12492 DSYMUTIL=$lt_DSYMUTIL
12494 # Tool to change global to local symbols on Mac OS X.
12495 NMEDIT=$lt_NMEDIT
12497 # Tool to manipulate fat objects and archives on Mac OS X.
12498 LIPO=$lt_LIPO
12500 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12501 OTOOL=$lt_OTOOL
12503 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12504 OTOOL64=$lt_OTOOL64
12506 # Old archive suffix (normally "a").
12507 libext=$libext
12509 # Shared library suffix (normally ".so").
12510 shrext_cmds=$lt_shrext_cmds
12512 # The commands to extract the exported symbol list from a shared archive.
12513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12515 # Variables whose values should be saved in libtool wrapper scripts and
12516 # restored at link time.
12517 variables_saved_for_relink=$lt_variables_saved_for_relink
12519 # Do we need the "lib" prefix for modules?
12520 need_lib_prefix=$need_lib_prefix
12522 # Do we need a version for libraries?
12523 need_version=$need_version
12525 # Library versioning type.
12526 version_type=$version_type
12528 # Shared library runtime path variable.
12529 runpath_var=$runpath_var
12531 # Shared library path variable.
12532 shlibpath_var=$shlibpath_var
12534 # Is shlibpath searched before the hard-coded library search path?
12535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12537 # Format of library name prefix.
12538 libname_spec=$lt_libname_spec
12540 # List of archive names. First name is the real one, the rest are links.
12541 # The last name is the one that the linker finds with -lNAME
12542 library_names_spec=$lt_library_names_spec
12544 # The coded name of the library, if different from the real name.
12545 soname_spec=$lt_soname_spec
12547 # Permission mode override for installation of shared libraries.
12548 install_override_mode=$lt_install_override_mode
12550 # Command to use after installation of a shared archive.
12551 postinstall_cmds=$lt_postinstall_cmds
12553 # Command to use after uninstallation of a shared archive.
12554 postuninstall_cmds=$lt_postuninstall_cmds
12556 # Commands used to finish a libtool library installation in a directory.
12557 finish_cmds=$lt_finish_cmds
12559 # As "finish_cmds", except a single script fragment to be evaled but
12560 # not shown.
12561 finish_eval=$lt_finish_eval
12563 # Whether we should hardcode library paths into libraries.
12564 hardcode_into_libs=$hardcode_into_libs
12566 # Compile-time system search path for libraries.
12567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12569 # Run-time system search path for libraries.
12570 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12572 # Whether dlopen is supported.
12573 dlopen_support=$enable_dlopen
12575 # Whether dlopen of programs is supported.
12576 dlopen_self=$enable_dlopen_self
12578 # Whether dlopen of statically linked programs is supported.
12579 dlopen_self_static=$enable_dlopen_self_static
12581 # Commands to strip libraries.
12582 old_striplib=$lt_old_striplib
12583 striplib=$lt_striplib
12586 # The linker used to build libraries.
12587 LD=$lt_LD
12589 # How to create reloadable object files.
12590 reload_flag=$lt_reload_flag
12591 reload_cmds=$lt_reload_cmds
12593 # Commands used to build an old-style archive.
12594 old_archive_cmds=$lt_old_archive_cmds
12596 # A language specific compiler.
12597 CC=$lt_compiler
12599 # Is the compiler the GNU compiler?
12600 with_gcc=$GCC
12602 # Compiler flag to turn off builtin functions.
12603 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12605 # How to pass a linker flag through the compiler.
12606 wl=$lt_lt_prog_compiler_wl
12608 # Additional compiler flags for building library objects.
12609 pic_flag=$lt_lt_prog_compiler_pic
12611 # Compiler flag to prevent dynamic linking.
12612 link_static_flag=$lt_lt_prog_compiler_static
12614 # Does compiler simultaneously support -c and -o options?
12615 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12617 # Whether or not to add -lc for building shared libraries.
12618 build_libtool_need_lc=$archive_cmds_need_lc
12620 # Whether or not to disallow shared libs when runtime libs are static.
12621 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12623 # Compiler flag to allow reflexive dlopens.
12624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12626 # Compiler flag to generate shared objects directly from archives.
12627 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12629 # Whether the compiler copes with passing no objects directly.
12630 compiler_needs_object=$lt_compiler_needs_object
12632 # Create an old-style archive from a shared archive.
12633 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12635 # Create a temporary old-style archive to link instead of a shared archive.
12636 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12638 # Commands used to build a shared archive.
12639 archive_cmds=$lt_archive_cmds
12640 archive_expsym_cmds=$lt_archive_expsym_cmds
12642 # Commands used to build a loadable module if different from building
12643 # a shared archive.
12644 module_cmds=$lt_module_cmds
12645 module_expsym_cmds=$lt_module_expsym_cmds
12647 # Whether we are building with GNU ld or not.
12648 with_gnu_ld=$lt_with_gnu_ld
12650 # Flag that allows shared libraries with undefined symbols to be built.
12651 allow_undefined_flag=$lt_allow_undefined_flag
12653 # Flag that enforces no undefined symbols.
12654 no_undefined_flag=$lt_no_undefined_flag
12656 # Flag to hardcode \$libdir into a binary during linking.
12657 # This must work even if \$libdir does not exist
12658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12660 # If ld is used when linking, flag to hardcode \$libdir into a binary
12661 # during linking. This must work even if \$libdir does not exist.
12662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12664 # Whether we need a single "-rpath" flag with a separated argument.
12665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12667 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12668 # DIR into the resulting binary.
12669 hardcode_direct=$hardcode_direct
12671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12672 # DIR into the resulting binary and the resulting library dependency is
12673 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12674 # library is relocated.
12675 hardcode_direct_absolute=$hardcode_direct_absolute
12677 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12678 # into the resulting binary.
12679 hardcode_minus_L=$hardcode_minus_L
12681 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12682 # into the resulting binary.
12683 hardcode_shlibpath_var=$hardcode_shlibpath_var
12685 # Set to "yes" if building a shared library automatically hardcodes DIR
12686 # into the library and all subsequent libraries and executables linked
12687 # against it.
12688 hardcode_automatic=$hardcode_automatic
12690 # Set to yes if linker adds runtime paths of dependent libraries
12691 # to runtime path list.
12692 inherit_rpath=$inherit_rpath
12694 # Whether libtool must link a program against all its dependency libraries.
12695 link_all_deplibs=$link_all_deplibs
12697 # Fix the shell variable \$srcfile for the compiler.
12698 fix_srcfile_path=$lt_fix_srcfile_path
12700 # Set to "yes" if exported symbols are required.
12701 always_export_symbols=$always_export_symbols
12703 # The commands to list exported symbols.
12704 export_symbols_cmds=$lt_export_symbols_cmds
12706 # Symbols that should not be listed in the preloaded symbols.
12707 exclude_expsyms=$lt_exclude_expsyms
12709 # Symbols that must always be exported.
12710 include_expsyms=$lt_include_expsyms
12712 # Commands necessary for linking programs (against libraries) with templates.
12713 prelink_cmds=$lt_prelink_cmds
12715 # Specify filename containing input files.
12716 file_list_spec=$lt_file_list_spec
12718 # How to hardcode a shared library path into an executable.
12719 hardcode_action=$hardcode_action
12721 # ### END LIBTOOL CONFIG
12723 _LT_EOF
12725 case $host_os in
12726 aix3*)
12727 cat <<\_LT_EOF >> "$cfgfile"
12728 # AIX sometimes has problems with the GCC collect2 program. For some
12729 # reason, if we set the COLLECT_NAMES environment variable, the problems
12730 # vanish in a puff of smoke.
12731 if test "X${COLLECT_NAMES+set}" != Xset; then
12732 COLLECT_NAMES=
12733 export COLLECT_NAMES
12735 _LT_EOF
12737 esac
12740 ltmain="$ac_aux_dir/ltmain.sh"
12743 # We use sed instead of cat because bash on DJGPP gets confused if
12744 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12745 # text mode, it properly converts lines to CR/LF. This bash problem
12746 # is reportedly fixed, but why not run on old versions too?
12747 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12748 || (rm -f "$cfgfile"; exit 1)
12750 case $xsi_shell in
12751 yes)
12752 cat << \_LT_EOF >> "$cfgfile"
12754 # func_dirname file append nondir_replacement
12755 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12756 # otherwise set result to NONDIR_REPLACEMENT.
12757 func_dirname ()
12759 case ${1} in
12760 */*) func_dirname_result="${1%/*}${2}" ;;
12761 * ) func_dirname_result="${3}" ;;
12762 esac
12765 # func_basename file
12766 func_basename ()
12768 func_basename_result="${1##*/}"
12771 # func_dirname_and_basename file append nondir_replacement
12772 # perform func_basename and func_dirname in a single function
12773 # call:
12774 # dirname: Compute the dirname of FILE. If nonempty,
12775 # add APPEND to the result, otherwise set result
12776 # to NONDIR_REPLACEMENT.
12777 # value returned in "$func_dirname_result"
12778 # basename: Compute filename of FILE.
12779 # value retuned in "$func_basename_result"
12780 # Implementation must be kept synchronized with func_dirname
12781 # and func_basename. For efficiency, we do not delegate to
12782 # those functions but instead duplicate the functionality here.
12783 func_dirname_and_basename ()
12785 case ${1} in
12786 */*) func_dirname_result="${1%/*}${2}" ;;
12787 * ) func_dirname_result="${3}" ;;
12788 esac
12789 func_basename_result="${1##*/}"
12792 # func_stripname prefix suffix name
12793 # strip PREFIX and SUFFIX off of NAME.
12794 # PREFIX and SUFFIX must not contain globbing or regex special
12795 # characters, hashes, percent signs, but SUFFIX may contain a leading
12796 # dot (in which case that matches only a dot).
12797 func_stripname ()
12799 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12800 # positional parameters, so assign one to ordinary parameter first.
12801 func_stripname_result=${3}
12802 func_stripname_result=${func_stripname_result#"${1}"}
12803 func_stripname_result=${func_stripname_result%"${2}"}
12806 # func_opt_split
12807 func_opt_split ()
12809 func_opt_split_opt=${1%%=*}
12810 func_opt_split_arg=${1#*=}
12813 # func_lo2o object
12814 func_lo2o ()
12816 case ${1} in
12817 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12818 *) func_lo2o_result=${1} ;;
12819 esac
12822 # func_xform libobj-or-source
12823 func_xform ()
12825 func_xform_result=${1%.*}.lo
12828 # func_arith arithmetic-term...
12829 func_arith ()
12831 func_arith_result=$(( $* ))
12834 # func_len string
12835 # STRING may not start with a hyphen.
12836 func_len ()
12838 func_len_result=${#1}
12841 _LT_EOF
12843 *) # Bourne compatible functions.
12844 cat << \_LT_EOF >> "$cfgfile"
12846 # func_dirname file append nondir_replacement
12847 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12848 # otherwise set result to NONDIR_REPLACEMENT.
12849 func_dirname ()
12851 # Extract subdirectory from the argument.
12852 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
12853 if test "X$func_dirname_result" = "X${1}"; then
12854 func_dirname_result="${3}"
12855 else
12856 func_dirname_result="$func_dirname_result${2}"
12860 # func_basename file
12861 func_basename ()
12863 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
12867 # func_stripname prefix suffix name
12868 # strip PREFIX and SUFFIX off of NAME.
12869 # PREFIX and SUFFIX must not contain globbing or regex special
12870 # characters, hashes, percent signs, but SUFFIX may contain a leading
12871 # dot (in which case that matches only a dot).
12872 # func_strip_suffix prefix name
12873 func_stripname ()
12875 case ${2} in
12876 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12877 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12878 esac
12881 # sed scripts:
12882 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12883 my_sed_long_arg='1s/^-[^=]*=//'
12885 # func_opt_split
12886 func_opt_split ()
12888 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12889 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
12892 # func_lo2o object
12893 func_lo2o ()
12895 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
12898 # func_xform libobj-or-source
12899 func_xform ()
12901 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
12904 # func_arith arithmetic-term...
12905 func_arith ()
12907 func_arith_result=`expr "$@"`
12910 # func_len string
12911 # STRING may not start with a hyphen.
12912 func_len ()
12914 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12917 _LT_EOF
12918 esac
12920 case $lt_shell_append in
12921 yes)
12922 cat << \_LT_EOF >> "$cfgfile"
12924 # func_append var value
12925 # Append VALUE to the end of shell variable VAR.
12926 func_append ()
12928 eval "$1+=\$2"
12930 _LT_EOF
12933 cat << \_LT_EOF >> "$cfgfile"
12935 # func_append var value
12936 # Append VALUE to the end of shell variable VAR.
12937 func_append ()
12939 eval "$1=\$$1\$2"
12942 _LT_EOF
12944 esac
12947 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12948 || (rm -f "$cfgfile"; exit 1)
12950 mv -f "$cfgfile" "$ofile" ||
12951 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12952 chmod +x "$ofile"
12956 esac
12957 done # for ac_tag
12960 as_fn_exit 0
12961 _ACEOF
12962 ac_clean_files=$ac_clean_files_save
12964 test $ac_write_fail = 0 ||
12965 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12968 # configure is writing to config.log, and then calls config.status.
12969 # config.status does its own redirection, appending to config.log.
12970 # Unfortunately, on DOS this fails, as config.log is still kept open
12971 # by configure, so config.status won't be able to write to it; its
12972 # output is simply discarded. So we exec the FD to /dev/null,
12973 # effectively closing config.log, so it can be properly (re)opened and
12974 # appended to by config.status. When coming back to configure, we
12975 # need to make the FD available again.
12976 if test "$no_create" != yes; then
12977 ac_cs_success=:
12978 ac_config_status_args=
12979 test "$silent" = yes &&
12980 ac_config_status_args="$ac_config_status_args --quiet"
12981 exec 5>/dev/null
12982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12983 exec 5>>config.log
12984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12985 # would make configure fail if this is the last instruction.
12986 $ac_cs_success || as_fn_exit $?
12988 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12990 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}