2018-02-17 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / zlib / configure
blobee5527c4a404543a3f7270fc73887d0d5f5ee85e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="zlib.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 PICFLAG
606 TARGET_LIBRARY_FALSE
607 TARGET_LIBRARY_TRUE
608 toolexeclibdir
609 toolexecdir
610 target_all
612 OTOOL64
613 OTOOL
614 LIPO
615 NMEDIT
616 DSYMUTIL
617 RANLIB
619 OBJDUMP
620 LN_S
622 ac_ct_DUMPBIN
623 DUMPBIN
625 FGREP
626 EGREP
627 GREP
629 LIBTOOL
630 am__fastdepCC_FALSE
631 am__fastdepCC_TRUE
632 CCDEPMODE
633 am__nodep
634 AMDEPBACKSLASH
635 AMDEP_FALSE
636 AMDEP_TRUE
637 am__quote
638 am__include
639 DEPDIR
640 OBJEXT
641 EXEEXT
642 ac_ct_CC
643 CPPFLAGS
644 LDFLAGS
645 CFLAGS
647 COMPPATH
648 MAINT
649 MAINTAINER_MODE_FALSE
650 MAINTAINER_MODE_TRUE
651 am__untar
652 am__tar
653 AMTAR
654 am__leading_dot
655 SET_MAKE
657 mkdir_p
658 MKDIR_P
659 INSTALL_STRIP_PROGRAM
660 STRIP
661 install_sh
662 MAKEINFO
663 AUTOHEADER
664 AUTOMAKE
665 AUTOCONF
666 ACLOCAL
667 VERSION
668 PACKAGE
669 CYGPATH_W
670 am__isrc
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
674 mkinstalldirs
675 target_os
676 target_vendor
677 target_cpu
678 target
679 host_os
680 host_vendor
681 host_cpu
682 host
683 build_os
684 build_vendor
685 build_cpu
686 build
687 multi_basedir
688 target_alias
689 host_alias
690 build_alias
691 LIBS
692 ECHO_T
693 ECHO_N
694 ECHO_C
695 DEFS
696 mandir
697 localedir
698 libdir
699 psdir
700 pdfdir
701 dvidir
702 htmldir
703 infodir
704 docdir
705 oldincludedir
706 includedir
707 localstatedir
708 sharedstatedir
709 sysconfdir
710 datadir
711 datarootdir
712 libexecdir
713 sbindir
714 bindir
715 program_transform_name
716 prefix
717 exec_prefix
718 PACKAGE_URL
719 PACKAGE_BUGREPORT
720 PACKAGE_STRING
721 PACKAGE_VERSION
722 PACKAGE_TARNAME
723 PACKAGE_NAME
724 PATH_SEPARATOR
725 SHELL'
726 ac_subst_files=''
727 ac_user_opts='
728 enable_option_checking
729 enable_multilib
730 enable_maintainer_mode
731 with_target_subdir
732 with_cross_host
733 with_system_zlib
734 enable_dependency_tracking
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 enable_libtool_lock
741 enable_host_shared
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CPPFLAGS'
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}'
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 this package 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/PACKAGE]
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
1360 cat <<\_ACEOF
1362 Optional Features:
1363 --disable-option-checking ignore unrecognized --enable/--with options
1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1366 --enable-multilib build many library versions (default)
1367 --enable-maintainer-mode enable make rules and dependencies not useful
1368 (and sometimes confusing) to the casual installer
1369 --disable-dependency-tracking speeds up one-time build
1370 --enable-dependency-tracking do not reject slow dependency extractors
1371 --enable-shared[=PKGS] build shared libraries [default=yes]
1372 --enable-static[=PKGS] build static libraries [default=yes]
1373 --enable-fast-install[=PKGS]
1374 optimize for fast installation [default=yes]
1375 --disable-libtool-lock avoid locking (might break parallel builds)
1376 --enable-host-shared build host code as shared libraries
1378 Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-target-subdir=SUBDIR
1382 configuring in a subdirectory
1383 --with-cross-host=HOST configuring with a cross compiler
1384 --with-system-zlib use installed libz
1385 --with-pic try to use only PIC/non-PIC objects [default=use
1386 both]
1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1402 Report bugs to the package provider.
1403 _ACEOF
1404 ac_status=$?
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
1413 ac_builddir=.
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 configure
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 if test x$gcc_no_link = xyes; then
1685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1691 #define $2 innocuous_$2
1693 /* System header to define __stub macros and hopefully few prototypes,
1694 which can conflict with char $2 (); below.
1695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1696 <limits.h> exists even on freestanding compilers. */
1698 #ifdef __STDC__
1699 # include <limits.h>
1700 #else
1701 # include <assert.h>
1702 #endif
1704 #undef $2
1706 /* Override any GCC internal prototype to avoid an error.
1707 Use char because int might match the return type of a GCC
1708 builtin and then its argument prototype would still apply. */
1709 #ifdef __cplusplus
1710 extern "C"
1711 #endif
1712 char $2 ();
1713 /* The GNU C library defines this for functions which it implements
1714 to always fail with ENOSYS. Some functions are actually named
1715 something starting with __ and the normal name is an alias. */
1716 #if defined __stub_$2 || defined __stub___$2
1717 choke me
1718 #endif
1721 main ()
1723 return $2 ();
1725 return 0;
1727 _ACEOF
1728 if ac_fn_c_try_link "$LINENO"; then :
1729 eval "$3=yes"
1730 else
1731 eval "$3=no"
1733 rm -f core conftest.err conftest.$ac_objext \
1734 conftest$ac_exeext conftest.$ac_ext
1736 eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 } # ac_fn_c_check_func
1743 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1744 # -------------------------------------------------------
1745 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1746 # the include files in INCLUDES and setting the cache variable VAR
1747 # accordingly.
1748 ac_fn_c_check_header_mongrel ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1757 eval ac_res=\$$3
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759 $as_echo "$ac_res" >&6; }
1760 else
1761 # Is the header compilable?
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1763 $as_echo_n "checking $2 usability... " >&6; }
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 ac_header_compiler=yes
1771 else
1772 ac_header_compiler=no
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1776 $as_echo "$ac_header_compiler" >&6; }
1778 # Is the header present?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1780 $as_echo_n "checking $2 presence... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_cpp "$LINENO"; then :
1786 ac_header_preproc=yes
1787 else
1788 ac_header_preproc=no
1790 rm -f conftest.err conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1792 $as_echo "$ac_header_preproc" >&6; }
1794 # So? What about this header?
1795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796 yes:no: )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1798 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1802 no:yes:* )
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1804 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1806 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1808 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1810 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 esac
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 eval "$3=\$ac_header_compiler"
1822 eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 } # ac_fn_c_check_header_mongrel
1829 cat >config.log <<_ACEOF
1830 This file contains any messages produced by compilers while
1831 running configure, to aid debugging if configure makes a mistake.
1833 It was created by $as_me, which was
1834 generated by GNU Autoconf 2.64. Invocation command line was
1836 $ $0 $@
1838 _ACEOF
1839 exec 5>>config.log
1841 cat <<_ASUNAME
1842 ## --------- ##
1843 ## Platform. ##
1844 ## --------- ##
1846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1863 _ASUNAME
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 $as_echo "PATH: $as_dir"
1871 done
1872 IFS=$as_save_IFS
1874 } >&5
1876 cat >&5 <<_ACEOF
1879 ## ----------- ##
1880 ## Core tests. ##
1881 ## ----------- ##
1883 _ACEOF
1886 # Keep a trace of the command line.
1887 # Strip out --no-create and --no-recursion so they do not pile up.
1888 # Strip out --silent because we don't want to record it for future runs.
1889 # Also quote any args containing shell meta-characters.
1890 # Make two passes to allow for proper duplicate-argument suppression.
1891 ac_configure_args=
1892 ac_configure_args0=
1893 ac_configure_args1=
1894 ac_must_keep_next=false
1895 for ac_pass in 1 2
1897 for ac_arg
1899 case $ac_arg in
1900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1902 | -silent | --silent | --silen | --sile | --sil)
1903 continue ;;
1904 *\'*)
1905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 esac
1907 case $ac_pass in
1908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1910 as_fn_append ac_configure_args1 " '$ac_arg'"
1911 if test $ac_must_keep_next = true; then
1912 ac_must_keep_next=false # Got value, back to normal.
1913 else
1914 case $ac_arg in
1915 *=* | --config-cache | -C | -disable-* | --disable-* \
1916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1918 | -with-* | --with-* | -without-* | --without-* | --x)
1919 case "$ac_configure_args0 " in
1920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1921 esac
1923 -* ) ac_must_keep_next=true ;;
1924 esac
1926 as_fn_append ac_configure_args " '$ac_arg'"
1928 esac
1929 done
1930 done
1931 { ac_configure_args0=; unset ac_configure_args0;}
1932 { ac_configure_args1=; unset ac_configure_args1;}
1934 # When interrupted or exit'd, cleanup temporary files, and complete
1935 # config.log. We remove comments because anyway the quotes in there
1936 # would cause problems or look ugly.
1937 # WARNING: Use '\'' to represent an apostrophe within the trap.
1938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1939 trap 'exit_status=$?
1940 # Save into config.log some information that might help in debugging.
1942 echo
1944 cat <<\_ASBOX
1945 ## ---------------- ##
1946 ## Cache variables. ##
1947 ## ---------------- ##
1948 _ASBOX
1949 echo
1950 # The following way of writing the cache mishandles newlines in values,
1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in #(
1955 *${as_nl}*)
1956 case $ac_var in #(
1957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959 esac
1960 case $ac_var in #(
1961 _ | IFS | as_nl) ;; #(
1962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963 *) { eval $ac_var=; unset $ac_var;} ;;
1964 esac ;;
1965 esac
1966 done
1967 (set) 2>&1 |
1968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969 *${as_nl}ac_space=\ *)
1970 sed -n \
1971 "s/'\''/'\''\\\\'\'''\''/g;
1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973 ;; #(
1975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1977 esac |
1978 sort
1980 echo
1982 cat <<\_ASBOX
1983 ## ----------------- ##
1984 ## Output variables. ##
1985 ## ----------------- ##
1986 _ASBOX
1987 echo
1988 for ac_var in $ac_subst_vars
1990 eval ac_val=\$$ac_var
1991 case $ac_val in
1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993 esac
1994 $as_echo "$ac_var='\''$ac_val'\''"
1995 done | sort
1996 echo
1998 if test -n "$ac_subst_files"; then
1999 cat <<\_ASBOX
2000 ## ------------------- ##
2001 ## File substitutions. ##
2002 ## ------------------- ##
2003 _ASBOX
2004 echo
2005 for ac_var in $ac_subst_files
2007 eval ac_val=\$$ac_var
2008 case $ac_val in
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 esac
2011 $as_echo "$ac_var='\''$ac_val'\''"
2012 done | sort
2013 echo
2016 if test -s confdefs.h; then
2017 cat <<\_ASBOX
2018 ## ----------- ##
2019 ## confdefs.h. ##
2020 ## ----------- ##
2021 _ASBOX
2022 echo
2023 cat confdefs.h
2024 echo
2026 test "$ac_signal" != 0 &&
2027 $as_echo "$as_me: caught signal $ac_signal"
2028 $as_echo "$as_me: exit $exit_status"
2029 } >&5
2030 rm -f core *.core core.conftest.* &&
2031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032 exit $exit_status
2034 for ac_signal in 1 2 13 15; do
2035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036 done
2037 ac_signal=0
2039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2040 rm -f -r conftest* confdefs.h
2042 $as_echo "/* confdefs.h */" > confdefs.h
2044 # Predefined preprocessor variables.
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_NAME "$PACKAGE_NAME"
2048 _ACEOF
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052 _ACEOF
2054 cat >>confdefs.h <<_ACEOF
2055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2056 _ACEOF
2058 cat >>confdefs.h <<_ACEOF
2059 #define PACKAGE_STRING "$PACKAGE_STRING"
2060 _ACEOF
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064 _ACEOF
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_URL "$PACKAGE_URL"
2068 _ACEOF
2071 # Let the site file select an alternate cache file if it wants to.
2072 # Prefer an explicitly selected file to automatically selected ones.
2073 ac_site_file1=NONE
2074 ac_site_file2=NONE
2075 if test -n "$CONFIG_SITE"; then
2076 ac_site_file1=$CONFIG_SITE
2077 elif test "x$prefix" != xNONE; then
2078 ac_site_file1=$prefix/share/config.site
2079 ac_site_file2=$prefix/etc/config.site
2080 else
2081 ac_site_file1=$ac_default_prefix/share/config.site
2082 ac_site_file2=$ac_default_prefix/etc/config.site
2084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2086 test "x$ac_site_file" = xNONE && continue
2087 if test -r "$ac_site_file"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2090 sed 's/^/| /' "$ac_site_file" >&5
2091 . "$ac_site_file"
2093 done
2095 if test -r "$cache_file"; then
2096 # Some versions of bash will fail to source /dev/null (special
2097 # files actually), so we avoid doing that.
2098 if test -f "$cache_file"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2100 $as_echo "$as_me: loading cache $cache_file" >&6;}
2101 case $cache_file in
2102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103 *) . "./$cache_file";;
2104 esac
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2108 $as_echo "$as_me: creating cache $cache_file" >&6;}
2109 >$cache_file
2112 # Check that the precious variables saved in the cache have kept the same
2113 # value.
2114 ac_cache_corrupted=false
2115 for ac_var in $ac_precious_vars; do
2116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117 eval ac_new_set=\$ac_env_${ac_var}_set
2118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119 eval ac_new_val=\$ac_env_${ac_var}_value
2120 case $ac_old_set,$ac_new_set in
2121 set,)
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124 ac_cache_corrupted=: ;;
2125 ,set)
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128 ac_cache_corrupted=: ;;
2129 ,);;
2131 if test "x$ac_old_val" != "x$ac_new_val"; then
2132 # differences in whitespace do not lead to failure.
2133 ac_old_val_w=`echo x $ac_old_val`
2134 ac_new_val_w=`echo x $ac_new_val`
2135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138 ac_cache_corrupted=:
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2142 eval $ac_var=\$ac_old_val
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2148 fi;;
2149 esac
2150 # Pass precious variables to config.status.
2151 if test "$ac_new_set" = set; then
2152 case $ac_new_val in
2153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154 *) ac_arg=$ac_var=$ac_new_val ;;
2155 esac
2156 case " $ac_configure_args " in
2157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2159 esac
2161 done
2162 if $ac_cache_corrupted; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2169 ## -------------------- ##
2170 ## Main body of script. ##
2171 ## -------------------- ##
2173 ac_ext=c
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185 # Default to --enable-multilib
2186 # Check whether --enable-multilib was given.
2187 if test "${enable_multilib+set}" = set; then :
2188 enableval=$enable_multilib; case "$enableval" in
2189 yes) multilib=yes ;;
2190 no) multilib=no ;;
2191 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2192 esac
2193 else
2194 multilib=yes
2198 # We may get other options which we leave undocumented:
2199 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2200 # See config-ml.in if you want the gory details.
2202 if test "$srcdir" = "."; then
2203 if test "$with_target_subdir" != "."; then
2204 multi_basedir="$srcdir/$with_multisrctop../.."
2205 else
2206 multi_basedir="$srcdir/$with_multisrctop.."
2208 else
2209 multi_basedir="$srcdir/.."
2213 # Even if the default multilib is not a cross compilation,
2214 # it may be that some of the other multilibs are.
2215 if test $cross_compiling = no && test $multilib = yes \
2216 && test "x${with_multisubdir}" != x ; then
2217 cross_compiling=maybe
2220 ac_config_commands="$ac_config_commands default-1"
2223 ac_aux_dir=
2224 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2225 for ac_t in install-sh install.sh shtool; do
2226 if test -f "$ac_dir/$ac_t"; then
2227 ac_aux_dir=$ac_dir
2228 ac_install_sh="$ac_aux_dir/$ac_t -c"
2229 break 2
2231 done
2232 done
2233 if test -z "$ac_aux_dir"; then
2234 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246 # Make sure we can run config.sub.
2247 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2248 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2251 $as_echo_n "checking build system type... " >&6; }
2252 if test "${ac_cv_build+set}" = set; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 ac_build_alias=$build_alias
2256 test "x$ac_build_alias" = x &&
2257 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2258 test "x$ac_build_alias" = x &&
2259 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2260 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2261 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2265 $as_echo "$ac_cv_build" >&6; }
2266 case $ac_cv_build in
2267 *-*-*) ;;
2268 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2269 esac
2270 build=$ac_cv_build
2271 ac_save_IFS=$IFS; IFS='-'
2272 set x $ac_cv_build
2273 shift
2274 build_cpu=$1
2275 build_vendor=$2
2276 shift; shift
2277 # Remember, the first character of IFS is used to create $*,
2278 # except with old shells:
2279 build_os=$*
2280 IFS=$ac_save_IFS
2281 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2285 $as_echo_n "checking host system type... " >&6; }
2286 if test "${ac_cv_host+set}" = set; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 if test "x$host_alias" = x; then
2290 ac_cv_host=$ac_cv_build
2291 else
2292 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2293 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2298 $as_echo "$ac_cv_host" >&6; }
2299 case $ac_cv_host in
2300 *-*-*) ;;
2301 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2302 esac
2303 host=$ac_cv_host
2304 ac_save_IFS=$IFS; IFS='-'
2305 set x $ac_cv_host
2306 shift
2307 host_cpu=$1
2308 host_vendor=$2
2309 shift; shift
2310 # Remember, the first character of IFS is used to create $*,
2311 # except with old shells:
2312 host_os=$*
2313 IFS=$ac_save_IFS
2314 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2318 $as_echo_n "checking target system type... " >&6; }
2319 if test "${ac_cv_target+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 if test "x$target_alias" = x; then
2323 ac_cv_target=$ac_cv_host
2324 else
2325 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2326 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2331 $as_echo "$ac_cv_target" >&6; }
2332 case $ac_cv_target in
2333 *-*-*) ;;
2334 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2335 esac
2336 target=$ac_cv_target
2337 ac_save_IFS=$IFS; IFS='-'
2338 set x $ac_cv_target
2339 shift
2340 target_cpu=$1
2341 target_vendor=$2
2342 shift; shift
2343 # Remember, the first character of IFS is used to create $*,
2344 # except with old shells:
2345 target_os=$*
2346 IFS=$ac_save_IFS
2347 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2350 # The aliases save the names the user supplied, while $host etc.
2351 # will get canonicalized.
2352 test -n "$target_alias" &&
2353 test "$program_prefix$program_suffix$program_transform_name" = \
2354 NONENONEs,x,x, &&
2355 program_prefix=${target_alias}-
2358 # This works around an automake problem.
2359 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2362 am__api_version='1.11'
2364 # Find a good install program. We prefer a C program (faster),
2365 # so one script is as good as another. But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2370 # AIX /bin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 # Reject install programs that cannot install multiple files.
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2380 if test -z "$INSTALL"; then
2381 if test "${ac_cv_path_install+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 # Account for people who put trailing slashes in PATH elements.
2390 case $as_dir/ in #((
2391 ./ | .// | /[cC]/* | \
2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394 /usr/ucb/* ) ;;
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2398 # by default.
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2410 else
2411 rm -rf conftest.one conftest.two conftest.dir
2412 echo one > conftest.one
2413 echo two > conftest.two
2414 mkdir conftest.dir
2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416 test -s conftest.one && test -s conftest.two &&
2417 test -s conftest.dir/conftest.one &&
2418 test -s conftest.dir/conftest.two
2419 then
2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421 break 3
2425 done
2426 done
2428 esac
2430 done
2431 IFS=$as_save_IFS
2433 rm -rf conftest.one conftest.two conftest.dir
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2438 else
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 INSTALL=$ac_install_sh
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447 $as_echo "$INSTALL" >&6; }
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458 $as_echo_n "checking whether build environment is sane... " >&6; }
2459 # Just in case
2460 sleep 1
2461 echo timestamp > conftest.file
2462 # Reject unsafe characters in $srcdir or the absolute working directory
2463 # name. Accept space and tab only in the latter.
2464 am_lf='
2466 case `pwd` in
2467 *[\\\"\#\$\&\'\`$am_lf]*)
2468 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2469 esac
2470 case $srcdir in
2471 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2472 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2473 esac
2475 # Do `set' in a subshell so we don't clobber the current shell's
2476 # arguments. Must try -L first in case configure is actually a
2477 # symlink; some systems play weird games with the mod time of symlinks
2478 # (eg FreeBSD returns the mod time of the symlink's containing
2479 # directory).
2480 if (
2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482 if test "$*" = "X"; then
2483 # -L didn't work.
2484 set X `ls -t "$srcdir/configure" conftest.file`
2486 rm -f conftest.file
2487 if test "$*" != "X $srcdir/configure conftest.file" \
2488 && test "$*" != "X conftest.file $srcdir/configure"; then
2490 # If neither matched, then we have a broken ls. This can happen
2491 # if, for instance, CONFIG_SHELL is bash and it inherits a
2492 # broken ls alias from the environment. This has actually
2493 # happened. Such a system could not be considered "sane".
2494 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2495 alias in your environment" "$LINENO" 5
2498 test "$2" = conftest.file
2500 then
2501 # Ok.
2503 else
2504 as_fn_error "newly created file is older than distributed files!
2505 Check your system clock" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 test "$program_prefix" != NONE &&
2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE &&
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2519 # expand $ac_aux_dir to an absolute path
2520 am_aux_dir=`cd $ac_aux_dir && pwd`
2522 if test x"${MISSING+set}" != xset; then
2523 case $am_aux_dir in
2524 *\ * | *\ *)
2525 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2527 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528 esac
2530 # Use eval to expand $SHELL
2531 if eval "$MISSING --run true"; then
2532 am_missing_run="$MISSING --run "
2533 else
2534 am_missing_run=
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2536 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2539 if test x"${install_sh}" != xset; then
2540 case $am_aux_dir in
2541 *\ * | *\ *)
2542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2544 install_sh="\${SHELL} $am_aux_dir/install-sh"
2545 esac
2548 # Installed binaries are usually stripped using `strip' when the user
2549 # run `make install-strip'. However `strip' might not be the right
2550 # tool to use in cross-compilation environments, therefore Automake
2551 # will honor the `STRIP' environment variable to overrule this program.
2552 if test "$cross_compiling" != no; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}strip; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if test "${ac_cv_prog_STRIP+set}" = set; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$STRIP"; then
2562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2575 done
2576 done
2577 IFS=$as_save_IFS
2581 STRIP=$ac_cv_prog_STRIP
2582 if test -n "$STRIP"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584 $as_echo "$STRIP" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2592 if test -z "$ac_cv_prog_STRIP"; then
2593 ac_ct_STRIP=$STRIP
2594 # Extract the first word of "strip", so it can be a program name with args.
2595 set dummy strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$ac_ct_STRIP"; then
2602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_ac_ct_STRIP="strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2615 done
2616 done
2617 IFS=$as_save_IFS
2621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622 if test -n "$ac_ct_STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624 $as_echo "$ac_ct_STRIP" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2630 if test "x$ac_ct_STRIP" = x; then
2631 STRIP=":"
2632 else
2633 case $cross_compiling:$ac_tool_warned in
2634 yes:)
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637 ac_tool_warned=yes ;;
2638 esac
2639 STRIP=$ac_ct_STRIP
2641 else
2642 STRIP="$ac_cv_prog_STRIP"
2646 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650 if test -z "$MKDIR_P"; then
2651 if test "${ac_cv_path_mkdir+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_prog in mkdir gmkdir; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663 'mkdir (GNU coreutils) '* | \
2664 'mkdir (coreutils) '* | \
2665 'mkdir (fileutils) '4.1*)
2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667 break 3;;
2668 esac
2669 done
2670 done
2671 done
2672 IFS=$as_save_IFS
2676 if test "${ac_cv_path_mkdir+set}" = set; then
2677 MKDIR_P="$ac_cv_path_mkdir -p"
2678 else
2679 # As a last resort, use the slow shell script. Don't cache a
2680 # value for MKDIR_P within a source directory, because that will
2681 # break other packages using the cache if that directory is
2682 # removed, or if the value is a relative name.
2683 test -d ./--version && rmdir ./--version
2684 MKDIR_P="$ac_install_sh -d"
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688 $as_echo "$MKDIR_P" >&6; }
2690 mkdir_p="$MKDIR_P"
2691 case $mkdir_p in
2692 [\\/$]* | ?:[\\/]*) ;;
2693 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2694 esac
2696 for ac_prog in gawk mawk nawk awk
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_AWK+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 if test -n "$AWK"; then
2706 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_AWK="$ac_prog"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2719 done
2720 done
2721 IFS=$as_save_IFS
2725 AWK=$ac_cv_prog_AWK
2726 if test -n "$AWK"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728 $as_echo "$AWK" >&6; }
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2735 test -n "$AWK" && break
2736 done
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740 set x ${MAKE-make}
2741 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat >conftest.make <<\_ACEOF
2746 SHELL = /bin/sh
2747 all:
2748 @echo '@@@%%%=$(MAKE)=@@@%%%'
2749 _ACEOF
2750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752 *@@@%%%=?*=@@@%%%*)
2753 eval ac_cv_prog_make_${ac_make}_set=yes;;
2755 eval ac_cv_prog_make_${ac_make}_set=no;;
2756 esac
2757 rm -f conftest.make
2759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2762 SET_MAKE=
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 SET_MAKE="MAKE=${MAKE-make}"
2769 rm -rf .tst 2>/dev/null
2770 mkdir .tst 2>/dev/null
2771 if test -d .tst; then
2772 am__leading_dot=.
2773 else
2774 am__leading_dot=_
2776 rmdir .tst 2>/dev/null
2778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780 # is not polluted with repeated "-I."
2781 am__isrc=' -I$(srcdir)'
2782 # test to see if srcdir already configured
2783 if test -f $srcdir/config.status; then
2784 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2788 # test whether we have cygpath
2789 if test -z "$CYGPATH_W"; then
2790 if (cygpath --version) >/dev/null 2>/dev/null; then
2791 CYGPATH_W='cygpath -w'
2792 else
2793 CYGPATH_W=echo
2798 # Define the identity of the package.
2799 PACKAGE=zlib
2800 VERSION=1.1.4
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE "$PACKAGE"
2805 _ACEOF
2808 cat >>confdefs.h <<_ACEOF
2809 #define VERSION "$VERSION"
2810 _ACEOF
2812 # Some tools Automake needs.
2814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828 # We need awk for the "check" target. The system "awk" is bad on
2829 # some platforms.
2830 # Always define AMTAR for backward compatibility. Yes, it's still used
2831 # in the wild :-( We should find a proper way to deprecate it ...
2832 AMTAR='$${TAR-tar}'
2834 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2843 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2844 # Check whether --enable-maintainer-mode was given.
2845 if test "${enable_maintainer_mode+set}" = set; then :
2846 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2847 else
2848 USE_MAINTAINER_MODE=no
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2852 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2853 if test $USE_MAINTAINER_MODE = yes; then
2854 MAINTAINER_MODE_TRUE=
2855 MAINTAINER_MODE_FALSE='#'
2856 else
2857 MAINTAINER_MODE_TRUE='#'
2858 MAINTAINER_MODE_FALSE=
2861 MAINT=$MAINTAINER_MODE_TRUE
2866 # Check whether --with-target-subdir was given.
2867 if test "${with_target_subdir+set}" = set; then :
2868 withval=$with_target_subdir;
2872 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2873 COMPPATH=.
2874 else
2875 COMPPATH=..
2880 # Check whether --with-cross-host was given.
2881 if test "${with_cross_host+set}" = set; then :
2882 withval=$with_cross_host;
2886 # Check whether --enable-multilib was given.
2887 if test "${enable_multilib+set}" = set; then :
2888 enableval=$enable_multilib; case "${enableval}" in
2889 yes) multilib=yes ;;
2890 no) multilib=no ;;
2891 *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2892 esac
2893 else
2894 test -z "$with_target_subdir" && multilib=no || multilib=yes
2898 # Check whether --with-system-zlib was given.
2899 if test "${with_system_zlib+set}" = set; then :
2900 withval=$with_system_zlib;
2904 # Make sure we don't test executables when making cross-tools.
2907 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2908 # We must force CC to /not/ be precious variables; otherwise
2909 # the wrong, non-multilib-adjusted value will be used in multilibs.
2910 # As a side effect, we have to subst CFLAGS ourselves.
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2958 if test -z "$ac_cv_prog_CC"; then
2959 ac_ct_CC=$CC
2960 # Extract the first word of "gcc", so it can be a program name with args.
2961 set dummy gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC="gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2981 done
2982 done
2983 IFS=$as_save_IFS
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990 $as_echo "$ac_ct_CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2996 if test "x$ac_ct_CC" = x; then
2997 CC=""
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 CC=$ac_ct_CC
3007 else
3008 CC="$ac_cv_prog_CC"
3011 if test -z "$CC"; then
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030 ac_cv_prog_CC="${ac_tool_prefix}cc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3034 done
3035 done
3036 IFS=$as_save_IFS
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3052 if test -z "$CC"; then
3053 # Extract the first word of "cc", so it can be a program name with args.
3054 set dummy cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 ac_prog_rejected=no
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072 ac_prog_rejected=yes
3073 continue
3075 ac_cv_prog_CC="cc"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3079 done
3080 done
3081 IFS=$as_save_IFS
3083 if test $ac_prog_rejected = yes; then
3084 # We found a bogon in the path, so make sure we never use it.
3085 set dummy $ac_cv_prog_CC
3086 shift
3087 if test $# != 0; then
3088 # We chose a different compiler from the bogus one.
3089 # However, it has the same basename, so the bogon will be chosen
3090 # first if we set CC to just the basename; use the full file name.
3091 shift
3092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3108 if test -z "$CC"; then
3109 if test -n "$ac_tool_prefix"; then
3110 for ac_prog in cl.exe
3112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3135 IFS=$as_save_IFS
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3149 test -n "$CC" && break
3150 done
3152 if test -z "$CC"; then
3153 ac_ct_CC=$CC
3154 for ac_prog in cl.exe
3156 # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$ac_ct_CC"; then
3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_ac_ct_CC="$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3177 done
3178 done
3179 IFS=$as_save_IFS
3183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184 if test -n "$ac_ct_CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186 $as_echo "$ac_ct_CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3193 test -n "$ac_ct_CC" && break
3194 done
3196 if test "x$ac_ct_CC" = x; then
3197 CC=""
3198 else
3199 case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205 CC=$ac_ct_CC
3212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error "no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." "$LINENO" 5; }
3217 # Provide some information about the compiler.
3218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3219 set X $ac_compile
3220 ac_compiler=$2
3221 for ac_option in --version -v -V -qversion; do
3222 { { ac_try="$ac_compiler $ac_option >&5"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3230 ac_status=$?
3231 if test -s conftest.err; then
3232 sed '10a\
3233 ... rest of stderr output deleted ...
3234 10q' conftest.err >conftest.er1
3235 cat conftest.er1 >&5
3236 rm -f conftest.er1 conftest.err
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 done
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3246 main ()
3250 return 0;
3252 _ACEOF
3253 # FIXME: Cleanup?
3254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3255 (eval $ac_link) 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 gcc_no_link=no
3260 else
3261 gcc_no_link=yes
3263 if test x$gcc_no_link = xyes; then
3264 # Setting cross_compile will disable run tests; it will
3265 # also disable AC_CHECK_FILE but that's generally
3266 # correct if we can't link.
3267 cross_compiling=yes
3268 EXEEXT=
3269 else
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3274 main ()
3278 return 0;
3280 _ACEOF
3281 ac_clean_files_save=$ac_clean_files
3282 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3283 # Try to create an executable without -o first, disregard a.out.
3284 # It will help us diagnose broken compilers, and finding out an intuition
3285 # of exeext.
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3287 $as_echo_n "checking for C compiler default output file name... " >&6; }
3288 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290 # The possible output files:
3291 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293 ac_rmfiles=
3294 for ac_file in $ac_files
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3299 esac
3300 done
3301 rm -f $ac_rmfiles
3303 if { { ac_try="$ac_link_default"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_link_default") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3316 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3317 # so that the user can short-circuit this test for compilers unknown to
3318 # Autoconf.
3319 for ac_file in $ac_files ''
3321 test -f "$ac_file" || continue
3322 case $ac_file in
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 [ab].out )
3326 # We found the default executable, but exeext='' is most
3327 # certainly right.
3328 break;;
3329 *.* )
3330 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3331 then :; else
3332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 # We set ac_cv_exeext here because the later test for it is not
3335 # safe: cross compilers may not add the suffix if given an `-o'
3336 # argument, so we may need to know it at that point already.
3337 # Even if this section looks crufty: it has the advantage of
3338 # actually working.
3339 break;;
3341 break;;
3342 esac
3343 done
3344 test "$ac_cv_exeext" = no && ac_cv_exeext=
3346 else
3347 ac_file=''
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3350 $as_echo "$ac_file" >&6; }
3351 if test -z "$ac_file"; then :
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 { as_fn_set_status 77
3358 as_fn_error "C compiler cannot create executables
3359 See \`config.log' for more details." "$LINENO" 5; }; }
3361 ac_exeext=$ac_cv_exeext
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3366 $as_echo_n "checking whether the C compiler works... " >&6; }
3367 # If not cross compiling, check that we can run a simple program.
3368 if test "$cross_compiling" != yes; then
3369 if { ac_try='./$ac_file'
3370 { { case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_try") 2>&5
3377 ac_status=$?
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; }; then
3380 cross_compiling=no
3381 else
3382 if test "$cross_compiling" = maybe; then
3383 cross_compiling=yes
3384 else
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error "cannot run C compiled programs.
3388 If you meant to cross compile, use \`--host'.
3389 See \`config.log' for more details." "$LINENO" 5; }
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3394 $as_echo "yes" >&6; }
3396 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3397 ac_clean_files=$ac_clean_files_save
3398 # Check that the compiler produces executables we can run. If not, either
3399 # the compiler is broken, or we cross compile.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401 $as_echo_n "checking whether we are cross compiling... " >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403 $as_echo "$cross_compiling" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3406 $as_echo_n "checking for suffix of executables... " >&6; }
3407 if { { ac_try="$ac_link"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3421 # `rm'.
3422 for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 break;;
3428 * ) break;;
3429 esac
3430 done
3431 else
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error "cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details." "$LINENO" 5; }
3437 rm -f conftest$ac_cv_exeext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3439 $as_echo "$ac_cv_exeext" >&6; }
3441 rm -f conftest.$ac_ext
3442 EXEEXT=$ac_cv_exeext
3443 ac_exeext=$EXEEXT
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3446 $as_echo_n "checking for suffix of object files... " >&6; }
3447 if test "${ac_cv_objext+set}" = set; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3454 main ()
3458 return 0;
3460 _ACEOF
3461 rm -f conftest.o conftest.obj
3462 if { { ac_try="$ac_compile"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compile") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 for ac_file in conftest.o conftest.obj conftest.*; do
3474 test -f "$ac_file" || continue;
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3478 break;;
3479 esac
3480 done
3481 else
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error "cannot compute suffix of object files: cannot compile
3488 See \`config.log' for more details." "$LINENO" 5; }
3490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3493 $as_echo "$ac_cv_objext" >&6; }
3494 OBJEXT=$ac_cv_objext
3495 ac_objext=$OBJEXT
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3498 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3505 main ()
3507 #ifndef __GNUC__
3508 choke me
3509 #endif
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_compiler_gnu=yes
3517 else
3518 ac_compiler_gnu=no
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3525 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3526 if test $ac_compiler_gnu = yes; then
3527 GCC=yes
3528 else
3529 GCC=
3531 ac_test_CFLAGS=${CFLAGS+set}
3532 ac_save_CFLAGS=$CFLAGS
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3534 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3535 if test "${ac_cv_prog_cc_g+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 ac_save_c_werror_flag=$ac_c_werror_flag
3539 ac_c_werror_flag=yes
3540 ac_cv_prog_cc_g=no
3541 CFLAGS="-g"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 main ()
3550 return 0;
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_g=yes
3555 else
3556 CFLAGS=""
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3561 main ()
3565 return 0;
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3570 else
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3577 main ()
3581 return 0;
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3595 $as_echo "$ac_cv_prog_cc_g" >&6; }
3596 if test "$ac_test_CFLAGS" = set; then
3597 CFLAGS=$ac_save_CFLAGS
3598 elif test $ac_cv_prog_cc_g = yes; then
3599 if test "$GCC" = yes; then
3600 CFLAGS="-g -O2"
3601 else
3602 CFLAGS="-g"
3604 else
3605 if test "$GCC" = yes; then
3606 CFLAGS="-O2"
3607 else
3608 CFLAGS=
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3613 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 ac_cv_prog_cc_c89=no
3617 ac_save_CC=$CC
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 #include <stdarg.h>
3621 #include <stdio.h>
3622 #include <sys/types.h>
3623 #include <sys/stat.h>
3624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3625 struct buf { int x; };
3626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3627 static char *e (p, i)
3628 char **p;
3629 int i;
3631 return p[i];
3633 static char *f (char * (*g) (char **, int), char **p, ...)
3635 char *s;
3636 va_list v;
3637 va_start (v,p);
3638 s = g (p, va_arg (v,int));
3639 va_end (v);
3640 return s;
3643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3644 function prototypes and stuff, but not '\xHH' hex character constants.
3645 These don't provoke an error unfortunately, instead are silently treated
3646 as 'x'. The following induces an error, until -std is added to get
3647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3648 array size at least. It's necessary to write '\x00'==0 to get something
3649 that's true only with -std. */
3650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3653 inside strings and character constants. */
3654 #define FOO(x) 'x'
3655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657 int test (int i, double x);
3658 struct s1 {int (*f) (int a);};
3659 struct s2 {int (*f) (double a);};
3660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661 int argc;
3662 char **argv;
3664 main ()
3666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 return 0;
3670 _ACEOF
3671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3674 CC="$ac_save_CC $ac_arg"
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_c89=$ac_arg
3678 rm -f core conftest.err conftest.$ac_objext
3679 test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 done
3681 rm -f conftest.$ac_ext
3682 CC=$ac_save_CC
3685 # AC_CACHE_VAL
3686 case "x$ac_cv_prog_cc_c89" in
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689 $as_echo "none needed" >&6; } ;;
3690 xno)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3692 $as_echo "unsupported" >&6; } ;;
3694 CC="$CC $ac_cv_prog_cc_c89"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3697 esac
3698 if test "x$ac_cv_prog_cc_c89" != xno; then :
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 DEPDIR="${am__leading_dot}deps"
3709 ac_config_commands="$ac_config_commands depfiles"
3712 am_make=${MAKE-make}
3713 cat > confinc << 'END'
3714 am__doit:
3715 @echo this is the am__doit target
3716 .PHONY: am__doit
3718 # If we don't find an include directive, just comment out the code.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3721 am__include="#"
3722 am__quote=
3723 _am_result=none
3724 # First try GNU make style include.
3725 echo "include confinc" > confmf
3726 # Ignore all kinds of additional output from `make'.
3727 case `$am_make -s -f confmf 2> /dev/null` in #(
3728 *the\ am__doit\ target*)
3729 am__include=include
3730 am__quote=
3731 _am_result=GNU
3733 esac
3734 # Now try BSD make style include.
3735 if test "$am__include" = "#"; then
3736 echo '.include "confinc"' > confmf
3737 case `$am_make -s -f confmf 2> /dev/null` in #(
3738 *the\ am__doit\ target*)
3739 am__include=.include
3740 am__quote="\""
3741 _am_result=BSD
3743 esac
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748 $as_echo "$_am_result" >&6; }
3749 rm -f confinc confmf
3751 # Check whether --enable-dependency-tracking was given.
3752 if test "${enable_dependency_tracking+set}" = set; then :
3753 enableval=$enable_dependency_tracking;
3756 if test "x$enable_dependency_tracking" != xno; then
3757 am_depcomp="$ac_aux_dir/depcomp"
3758 AMDEPBACKSLASH='\'
3759 am__nodep='_no'
3761 if test "x$enable_dependency_tracking" != xno; then
3762 AMDEP_TRUE=
3763 AMDEP_FALSE='#'
3764 else
3765 AMDEP_TRUE='#'
3766 AMDEP_FALSE=
3771 depcc="$CC" am_compiler_list=
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3774 $as_echo_n "checking dependency style of $depcc... " >&6; }
3775 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3779 # We make a subdir and do the tests there. Otherwise we can end up
3780 # making bogus files that we don't know about and never remove. For
3781 # instance it was reported that on HP-UX the gcc test will end up
3782 # making a dummy file named `D' -- because `-MD' means `put the output
3783 # in D'.
3784 rm -rf conftest.dir
3785 mkdir conftest.dir
3786 # Copy depcomp to subdir because otherwise we won't find it if we're
3787 # using a relative directory.
3788 cp "$am_depcomp" conftest.dir
3789 cd conftest.dir
3790 # We will build objects and dependencies in a subdirectory because
3791 # it helps to detect inapplicable dependency modes. For instance
3792 # both Tru64's cc and ICC support -MD to output dependencies as a
3793 # side effect of compilation, but ICC will put the dependencies in
3794 # the current directory while Tru64 will put them in the object
3795 # directory.
3796 mkdir sub
3798 am_cv_CC_dependencies_compiler_type=none
3799 if test "$am_compiler_list" = ""; then
3800 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3802 am__universal=false
3803 case " $depcc " in #(
3804 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3805 esac
3807 for depmode in $am_compiler_list; do
3808 # Setup a source with many dependencies, because some compilers
3809 # like to wrap large dependency lists on column 80 (with \), and
3810 # we should not choose a depcomp mode which is confused by this.
3812 # We need to recreate these files for each test, as the compiler may
3813 # overwrite some of them when testing with obscure command lines.
3814 # This happens at least with the AIX C compiler.
3815 : > sub/conftest.c
3816 for i in 1 2 3 4 5 6; do
3817 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3818 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3819 # Solaris 8's {/usr,}/bin/sh.
3820 touch sub/conftst$i.h
3821 done
3822 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825 # mode. It turns out that the SunPro C++ compiler does not properly
3826 # handle `-M -o', and we need to detect this. Also, some Intel
3827 # versions had trouble with output in subdirs
3828 am__obj=sub/conftest.${OBJEXT-o}
3829 am__minus_obj="-o $am__obj"
3830 case $depmode in
3831 gcc)
3832 # This depmode causes a compiler race in universal mode.
3833 test "$am__universal" = false || continue
3835 nosideeffect)
3836 # after this tag, mechanisms are not by side-effect, so they'll
3837 # only be used when explicitly requested
3838 if test "x$enable_dependency_tracking" = xyes; then
3839 continue
3840 else
3841 break
3844 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3845 # This compiler won't grok `-c -o', but also, the minuso test has
3846 # not run yet. These depmodes are late enough in the game, and
3847 # so weak that their functioning should not be impacted.
3848 am__obj=conftest.${OBJEXT-o}
3849 am__minus_obj=
3851 none) break ;;
3852 esac
3853 if depmode=$depmode \
3854 source=sub/conftest.c object=$am__obj \
3855 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3856 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3857 >/dev/null 2>conftest.err &&
3858 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3859 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3861 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862 # icc doesn't choke on unknown options, it will just issue warnings
3863 # or remarks (even with -Werror). So we grep stderr for any message
3864 # that says an option was ignored or not supported.
3865 # When given -MP, icc 7.0 and 7.1 complain thusly:
3866 # icc: Command line warning: ignoring option '-M'; no argument required
3867 # The diagnosis changed in icc 8.0:
3868 # icc: Command line remark: option '-MP' not supported
3869 if (grep 'ignoring option' conftest.err ||
3870 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871 am_cv_CC_dependencies_compiler_type=$depmode
3872 break
3875 done
3877 cd ..
3878 rm -rf conftest.dir
3879 else
3880 am_cv_CC_dependencies_compiler_type=none
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3885 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3886 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3889 test "x$enable_dependency_tracking" != xno \
3890 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3891 am__fastdepCC_TRUE=
3892 am__fastdepCC_FALSE='#'
3893 else
3894 am__fastdepCC_TRUE='#'
3895 am__fastdepCC_FALSE=
3903 case `pwd` in
3904 *\ * | *\ *)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3906 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3907 esac
3911 macro_version='2.2.7a'
3912 macro_revision='1.3134'
3926 ltmain="$ac_aux_dir/ltmain.sh"
3928 # Backslashify metacharacters that are still active within
3929 # double-quoted strings.
3930 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3932 # Same as above, but do not quote variable references.
3933 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3935 # Sed substitution to delay expansion of an escaped shell variable in a
3936 # double_quote_subst'ed string.
3937 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3939 # Sed substitution to delay expansion of an escaped single quote.
3940 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3942 # Sed substitution to avoid accidental globbing in evaled expressions
3943 no_glob_subst='s/\*/\\\*/g'
3945 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3946 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3947 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3950 $as_echo_n "checking how to print strings... " >&6; }
3951 # Test print first, because it will be a builtin if present.
3952 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3953 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3954 ECHO='print -r --'
3955 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3956 ECHO='printf %s\n'
3957 else
3958 # Use this function as a fallback that always works.
3959 func_fallback_echo ()
3961 eval 'cat <<_LTECHO_EOF
3963 _LTECHO_EOF'
3965 ECHO='func_fallback_echo'
3968 # func_echo_all arg...
3969 # Invoke $ECHO with all args, space-separated.
3970 func_echo_all ()
3972 $ECHO ""
3975 case "$ECHO" in
3976 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3977 $as_echo "printf" >&6; } ;;
3978 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3979 $as_echo "print -r" >&6; } ;;
3980 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3981 $as_echo "cat" >&6; } ;;
3982 esac
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3998 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3999 if test "${ac_cv_path_SED+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4003 for ac_i in 1 2 3 4 5 6 7; do
4004 ac_script="$ac_script$as_nl$ac_script"
4005 done
4006 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4007 { ac_script=; unset ac_script;}
4008 if test -z "$SED"; then
4009 ac_path_SED_found=false
4010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
4016 for ac_prog in sed gsed; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4019 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4020 # Check for GNU ac_path_SED and select it if it is found.
4021 # Check for GNU $ac_path_SED
4022 case `"$ac_path_SED" --version 2>&1` in
4023 *GNU*)
4024 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4026 ac_count=0
4027 $as_echo_n 0123456789 >"conftest.in"
4028 while :
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
4033 $as_echo '' >> "conftest.nl"
4034 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036 as_fn_arith $ac_count + 1 && ac_count=$as_val
4037 if test $ac_count -gt ${ac_path_SED_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_SED="$ac_path_SED"
4040 ac_path_SED_max=$ac_count
4042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4044 done
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046 esac
4048 $ac_path_SED_found && break 3
4049 done
4050 done
4051 done
4052 IFS=$as_save_IFS
4053 if test -z "$ac_cv_path_SED"; then
4054 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4056 else
4057 ac_cv_path_SED=$SED
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4062 $as_echo "$ac_cv_path_SED" >&6; }
4063 SED="$ac_cv_path_SED"
4064 rm -f conftest.sed
4066 test -z "$SED" && SED=sed
4067 Xsed="$SED -e 1s/^X//"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4080 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4081 if test "${ac_cv_path_GREP+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -z "$GREP"; then
4085 ac_path_GREP_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in grep ggrep; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4095 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4096 # Check for GNU ac_path_GREP and select it if it is found.
4097 # Check for GNU $ac_path_GREP
4098 case `"$ac_path_GREP" --version 2>&1` in
4099 *GNU*)
4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4102 ac_count=0
4103 $as_echo_n 0123456789 >"conftest.in"
4104 while :
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 $as_echo 'GREP' >> "conftest.nl"
4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 as_fn_arith $ac_count + 1 && ac_count=$as_val
4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_GREP="$ac_path_GREP"
4116 ac_path_GREP_max=$ac_count
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4120 done
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 esac
4124 $ac_path_GREP_found && break 3
4125 done
4126 done
4127 done
4128 IFS=$as_save_IFS
4129 if test -z "$ac_cv_path_GREP"; then
4130 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132 else
4133 ac_cv_path_GREP=$GREP
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4138 $as_echo "$ac_cv_path_GREP" >&6; }
4139 GREP="$ac_cv_path_GREP"
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4143 $as_echo_n "checking for egrep... " >&6; }
4144 if test "${ac_cv_path_EGREP+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148 then ac_cv_path_EGREP="$GREP -E"
4149 else
4150 if test -z "$EGREP"; then
4151 ac_path_EGREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in egrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4161 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4162 # Check for GNU ac_path_EGREP and select it if it is found.
4163 # Check for GNU $ac_path_EGREP
4164 case `"$ac_path_EGREP" --version 2>&1` in
4165 *GNU*)
4166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4168 ac_count=0
4169 $as_echo_n 0123456789 >"conftest.in"
4170 while :
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'EGREP' >> "conftest.nl"
4176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_EGREP="$ac_path_EGREP"
4182 ac_path_EGREP_max=$ac_count
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 esac
4190 $ac_path_EGREP_found && break 3
4191 done
4192 done
4193 done
4194 IFS=$as_save_IFS
4195 if test -z "$ac_cv_path_EGREP"; then
4196 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 else
4199 ac_cv_path_EGREP=$EGREP
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4205 $as_echo "$ac_cv_path_EGREP" >&6; }
4206 EGREP="$ac_cv_path_EGREP"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4210 $as_echo_n "checking for fgrep... " >&6; }
4211 if test "${ac_cv_path_FGREP+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4215 then ac_cv_path_FGREP="$GREP -F"
4216 else
4217 if test -z "$FGREP"; then
4218 ac_path_FGREP_found=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_prog in fgrep; do
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4229 # Check for GNU ac_path_FGREP and select it if it is found.
4230 # Check for GNU $ac_path_FGREP
4231 case `"$ac_path_FGREP" --version 2>&1` in
4232 *GNU*)
4233 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4235 ac_count=0
4236 $as_echo_n 0123456789 >"conftest.in"
4237 while :
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'FGREP' >> "conftest.nl"
4243 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245 as_fn_arith $ac_count + 1 && ac_count=$as_val
4246 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_FGREP="$ac_path_FGREP"
4249 ac_path_FGREP_max=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4253 done
4254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255 esac
4257 $ac_path_FGREP_found && break 3
4258 done
4259 done
4260 done
4261 IFS=$as_save_IFS
4262 if test -z "$ac_cv_path_FGREP"; then
4263 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 else
4266 ac_cv_path_FGREP=$FGREP
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4272 $as_echo "$ac_cv_path_FGREP" >&6; }
4273 FGREP="$ac_cv_path_FGREP"
4276 test -z "$GREP" && GREP=grep
4296 # Check whether --with-gnu-ld was given.
4297 if test "${with_gnu_ld+set}" = set; then :
4298 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4299 else
4300 with_gnu_ld=no
4303 ac_prog=ld
4304 if test "$GCC" = yes; then
4305 # Check if gcc -print-prog-name=ld gives a path.
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4307 $as_echo_n "checking for ld used by $CC... " >&6; }
4308 case $host in
4309 *-*-mingw*)
4310 # gcc leaves a trailing carriage return which upsets mingw
4311 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4313 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4314 esac
4315 case $ac_prog in
4316 # Accept absolute paths.
4317 [\\/]* | ?:[\\/]*)
4318 re_direlt='/[^/][^/]*/\.\./'
4319 # Canonicalize the pathname of ld
4320 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4321 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4322 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4323 done
4324 test -z "$LD" && LD="$ac_prog"
4327 # If it fails, then pretend we aren't using GCC.
4328 ac_prog=ld
4331 # If it is relative, then search for the first ld in PATH.
4332 with_gnu_ld=unknown
4334 esac
4335 elif test "$with_gnu_ld" = yes; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4337 $as_echo_n "checking for GNU ld... " >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4340 $as_echo_n "checking for non-GNU ld... " >&6; }
4342 if test "${lt_cv_path_LD+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -z "$LD"; then
4346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4347 for ac_dir in $PATH; do
4348 IFS="$lt_save_ifs"
4349 test -z "$ac_dir" && ac_dir=.
4350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4351 lt_cv_path_LD="$ac_dir/$ac_prog"
4352 # Check to see if the program is GNU ld. I'd rather use --version,
4353 # but apparently some variants of GNU ld only accept -v.
4354 # Break only if it was the GNU/non-GNU ld that we prefer.
4355 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4356 *GNU* | *'with BFD'*)
4357 test "$with_gnu_ld" != no && break
4360 test "$with_gnu_ld" != yes && break
4362 esac
4364 done
4365 IFS="$lt_save_ifs"
4366 else
4367 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4371 LD="$lt_cv_path_LD"
4372 if test -n "$LD"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4374 $as_echo "$LD" >&6; }
4375 else
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4379 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4381 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4382 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4384 else
4385 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4386 case `$LD -v 2>&1 </dev/null` in
4387 *GNU* | *'with BFD'*)
4388 lt_cv_prog_gnu_ld=yes
4391 lt_cv_prog_gnu_ld=no
4393 esac
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4396 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4397 with_gnu_ld=$lt_cv_prog_gnu_ld
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4408 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4409 if test "${lt_cv_path_NM+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$NM"; then
4413 # Let the user override the test.
4414 lt_cv_path_NM="$NM"
4415 else
4416 lt_nm_to_check="${ac_tool_prefix}nm"
4417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4418 lt_nm_to_check="$lt_nm_to_check nm"
4420 for lt_tmp_nm in $lt_nm_to_check; do
4421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4423 IFS="$lt_save_ifs"
4424 test -z "$ac_dir" && ac_dir=.
4425 tmp_nm="$ac_dir/$lt_tmp_nm"
4426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4427 # Check to see if the nm accepts a BSD-compat flag.
4428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4429 # nm: unknown option "B" ignored
4430 # Tru64's nm complains that /dev/null is an invalid object file
4431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4432 */dev/null* | *'Invalid file or object type'*)
4433 lt_cv_path_NM="$tmp_nm -B"
4434 break
4437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4438 */dev/null*)
4439 lt_cv_path_NM="$tmp_nm -p"
4440 break
4443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4444 continue # so that we can try to find one that supports BSD flags
4446 esac
4448 esac
4450 done
4451 IFS="$lt_save_ifs"
4452 done
4453 : ${lt_cv_path_NM=no}
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4457 $as_echo "$lt_cv_path_NM" >&6; }
4458 if test "$lt_cv_path_NM" != "no"; then
4459 NM="$lt_cv_path_NM"
4460 else
4461 # Didn't find any BSD compatible name lister, look for dumpbin.
4462 if test -n "$DUMPBIN"; then :
4463 # Let the user override the test.
4464 else
4465 if test -n "$ac_tool_prefix"; then
4466 for ac_prog in dumpbin "link -dump"
4468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -n "$DUMPBIN"; then
4476 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 DUMPBIN=$ac_cv_prog_DUMPBIN
4496 if test -n "$DUMPBIN"; then
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4498 $as_echo "$DUMPBIN" >&6; }
4499 else
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4505 test -n "$DUMPBIN" && break
4506 done
4508 if test -z "$DUMPBIN"; then
4509 ac_ct_DUMPBIN=$DUMPBIN
4510 for ac_prog in dumpbin "link -dump"
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -n "$ac_ct_DUMPBIN"; then
4520 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4533 done
4534 done
4535 IFS=$as_save_IFS
4539 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4540 if test -n "$ac_ct_DUMPBIN"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4542 $as_echo "$ac_ct_DUMPBIN" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4549 test -n "$ac_ct_DUMPBIN" && break
4550 done
4552 if test "x$ac_ct_DUMPBIN" = x; then
4553 DUMPBIN=":"
4554 else
4555 case $cross_compiling:$ac_tool_warned in
4556 yes:)
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4559 ac_tool_warned=yes ;;
4560 esac
4561 DUMPBIN=$ac_ct_DUMPBIN
4565 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4566 *COFF*)
4567 DUMPBIN="$DUMPBIN -symbols"
4570 DUMPBIN=:
4572 esac
4575 if test "$DUMPBIN" != ":"; then
4576 NM="$DUMPBIN"
4579 test -z "$NM" && NM=nm
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4587 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4588 if test "${lt_cv_nm_interface+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 lt_cv_nm_interface="BSD nm"
4592 echo "int some_variable = 0;" > conftest.$ac_ext
4593 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4594 (eval "$ac_compile" 2>conftest.err)
4595 cat conftest.err >&5
4596 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4597 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4598 cat conftest.err >&5
4599 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4600 cat conftest.out >&5
4601 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4602 lt_cv_nm_interface="MS dumpbin"
4604 rm -f conftest*
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4607 $as_echo "$lt_cv_nm_interface" >&6; }
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4610 $as_echo_n "checking whether ln -s works... " >&6; }
4611 LN_S=$as_ln_s
4612 if test "$LN_S" = "ln -s"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4614 $as_echo "yes" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4617 $as_echo "no, using $LN_S" >&6; }
4620 # find the maximum length of command line arguments
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4622 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4623 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4627 teststring="ABCD"
4629 case $build_os in
4630 msdosdjgpp*)
4631 # On DJGPP, this test can blow up pretty badly due to problems in libc
4632 # (any single argument exceeding 2000 bytes causes a buffer overrun
4633 # during glob expansion). Even if it were fixed, the result of this
4634 # check would be larger than it should be.
4635 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4638 gnu*)
4639 # Under GNU Hurd, this test is not required because there is
4640 # no limit to the length of command line arguments.
4641 # Libtool will interpret -1 as no limit whatsoever
4642 lt_cv_sys_max_cmd_len=-1;
4645 cygwin* | mingw* | cegcc*)
4646 # On Win9x/ME, this test blows up -- it succeeds, but takes
4647 # about 5 minutes as the teststring grows exponentially.
4648 # Worse, since 9x/ME are not pre-emptively multitasking,
4649 # you end up with a "frozen" computer, even though with patience
4650 # the test eventually succeeds (with a max line length of 256k).
4651 # Instead, let's just punt: use the minimum linelength reported by
4652 # all of the supported platforms: 8192 (on NT/2K/XP).
4653 lt_cv_sys_max_cmd_len=8192;
4656 mint*)
4657 # On MiNT this can take a long time and run out of memory.
4658 lt_cv_sys_max_cmd_len=8192;
4661 amigaos*)
4662 # On AmigaOS with pdksh, this test takes hours, literally.
4663 # So we just punt and use a minimum line length of 8192.
4664 lt_cv_sys_max_cmd_len=8192;
4667 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4668 # This has been around since 386BSD, at least. Likely further.
4669 if test -x /sbin/sysctl; then
4670 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4671 elif test -x /usr/sbin/sysctl; then
4672 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4673 else
4674 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4676 # And add a safety zone
4677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4681 interix*)
4682 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4683 lt_cv_sys_max_cmd_len=196608
4686 osf*)
4687 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4688 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4689 # nice to cause kernel panics so lets avoid the loop below.
4690 # First set a reasonable default.
4691 lt_cv_sys_max_cmd_len=16384
4693 if test -x /sbin/sysconfig; then
4694 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4695 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4696 esac
4699 sco3.2v5*)
4700 lt_cv_sys_max_cmd_len=102400
4702 sysv5* | sco5v6* | sysv4.2uw2*)
4703 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4704 if test -n "$kargmax"; then
4705 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4706 else
4707 lt_cv_sys_max_cmd_len=32768
4711 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4712 if test -n "$lt_cv_sys_max_cmd_len"; then
4713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4715 else
4716 # Make teststring a little bigger before we do anything with it.
4717 # a 1K string should be a reasonable start.
4718 for i in 1 2 3 4 5 6 7 8 ; do
4719 teststring=$teststring$teststring
4720 done
4721 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4722 # If test is not a shell built-in, we'll probably end up computing a
4723 # maximum length that is only half of the actual maximum length, but
4724 # we can't tell.
4725 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4726 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4727 test $i != 17 # 1/2 MB should be enough
4729 i=`expr $i + 1`
4730 teststring=$teststring$teststring
4731 done
4732 # Only check the string length outside the loop.
4733 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4734 teststring=
4735 # Add a significant safety factor because C++ compilers can tack on
4736 # massive amounts of additional arguments before passing them to the
4737 # linker. It appears as though 1/2 is a usable value.
4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4741 esac
4745 if test -n $lt_cv_sys_max_cmd_len ; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4747 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4748 else
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4750 $as_echo "none" >&6; }
4752 max_cmd_len=$lt_cv_sys_max_cmd_len
4759 : ${CP="cp -f"}
4760 : ${MV="mv -f"}
4761 : ${RM="rm -f"}
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4764 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4765 # Try some XSI features
4766 xsi_shell=no
4767 ( _lt_dummy="a/b/c"
4768 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4769 = c,a/b,, \
4770 && eval 'test $(( 1 + 1 )) -eq 2 \
4771 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4772 && xsi_shell=yes
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4774 $as_echo "$xsi_shell" >&6; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4778 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4779 lt_shell_append=no
4780 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4781 >/dev/null 2>&1 \
4782 && lt_shell_append=yes
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4784 $as_echo "$lt_shell_append" >&6; }
4787 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4788 lt_unset=unset
4789 else
4790 lt_unset=false
4797 # test EBCDIC or ASCII
4798 case `echo X|tr X '\101'` in
4799 A) # ASCII based system
4800 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4801 lt_SP2NL='tr \040 \012'
4802 lt_NL2SP='tr \015\012 \040\040'
4804 *) # EBCDIC based system
4805 lt_SP2NL='tr \100 \n'
4806 lt_NL2SP='tr \r\n \100\100'
4808 esac
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4819 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4820 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 lt_cv_ld_reload_flag='-r'
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4826 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4827 reload_flag=$lt_cv_ld_reload_flag
4828 case $reload_flag in
4829 "" | " "*) ;;
4830 *) reload_flag=" $reload_flag" ;;
4831 esac
4832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4833 case $host_os in
4834 darwin*)
4835 if test "$GCC" = yes; then
4836 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4837 else
4838 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4841 esac
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$OBJDUMP"; then
4860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 OBJDUMP=$ac_cv_prog_OBJDUMP
4880 if test -n "$OBJDUMP"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4882 $as_echo "$OBJDUMP" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4890 if test -z "$ac_cv_prog_OBJDUMP"; then
4891 ac_ct_OBJDUMP=$OBJDUMP
4892 # Extract the first word of "objdump", so it can be a program name with args.
4893 set dummy objdump; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_OBJDUMP"; then
4900 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4920 if test -n "$ac_ct_OBJDUMP"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4922 $as_echo "$ac_ct_OBJDUMP" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4928 if test "x$ac_ct_OBJDUMP" = x; then
4929 OBJDUMP="false"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937 OBJDUMP=$ac_ct_OBJDUMP
4939 else
4940 OBJDUMP="$ac_cv_prog_OBJDUMP"
4943 test -z "$OBJDUMP" && OBJDUMP=objdump
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4954 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4955 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 lt_cv_file_magic_cmd='$MAGIC_CMD'
4959 lt_cv_file_magic_test_file=
4960 lt_cv_deplibs_check_method='unknown'
4961 # Need to set the preceding variable on all platforms that support
4962 # interlibrary dependencies.
4963 # 'none' -- dependencies not supported.
4964 # `unknown' -- same as none, but documents that we really don't know.
4965 # 'pass_all' -- all dependencies passed with no checks.
4966 # 'test_compile' -- check by making test program.
4967 # 'file_magic [[regex]]' -- check by looking for files in library path
4968 # which responds to the $file_magic_cmd with a given extended regex.
4969 # If you have `file' or equivalent on your system and you're not sure
4970 # whether `pass_all' will *always* work, you probably want this one.
4972 case $host_os in
4973 aix[4-9]*)
4974 lt_cv_deplibs_check_method=pass_all
4977 beos*)
4978 lt_cv_deplibs_check_method=pass_all
4981 bsdi[45]*)
4982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4983 lt_cv_file_magic_cmd='/usr/bin/file -L'
4984 lt_cv_file_magic_test_file=/shlib/libc.so
4987 cygwin*)
4988 # func_win32_libid is a shell function defined in ltmain.sh
4989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990 lt_cv_file_magic_cmd='func_win32_libid'
4993 mingw* | pw32*)
4994 # Base MSYS/MinGW do not provide the 'file' command needed by
4995 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4996 # unless we find 'file', for example because we are cross-compiling.
4997 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4998 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000 lt_cv_file_magic_cmd='func_win32_libid'
5001 else
5002 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5003 lt_cv_file_magic_cmd='$OBJDUMP -f'
5007 cegcc*)
5008 # use the weaker test based on 'objdump'. See mingw*.
5009 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5010 lt_cv_file_magic_cmd='$OBJDUMP -f'
5013 darwin* | rhapsody*)
5014 lt_cv_deplibs_check_method=pass_all
5017 freebsd* | dragonfly*)
5018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5019 case $host_cpu in
5020 i*86 )
5021 # Not sure whether the presence of OpenBSD here was a mistake.
5022 # Let's accept both of them until this is cleared up.
5023 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5024 lt_cv_file_magic_cmd=/usr/bin/file
5025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5027 esac
5028 else
5029 lt_cv_deplibs_check_method=pass_all
5033 gnu*)
5034 lt_cv_deplibs_check_method=pass_all
5037 haiku*)
5038 lt_cv_deplibs_check_method=pass_all
5041 hpux10.20* | hpux11*)
5042 lt_cv_file_magic_cmd=/usr/bin/file
5043 case $host_cpu in
5044 ia64*)
5045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5046 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5048 hppa*64*)
5049 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]'
5050 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5054 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5056 esac
5059 interix[3-9]*)
5060 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5064 irix5* | irix6* | nonstopux*)
5065 case $LD in
5066 *-32|*"-32 ") libmagic=32-bit;;
5067 *-n32|*"-n32 ") libmagic=N32;;
5068 *-64|*"-64 ") libmagic=64-bit;;
5069 *) libmagic=never-match;;
5070 esac
5071 lt_cv_deplibs_check_method=pass_all
5074 # This must be Linux ELF.
5075 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5076 lt_cv_deplibs_check_method=pass_all
5079 netbsd*)
5080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5082 else
5083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5087 newos6*)
5088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5089 lt_cv_file_magic_cmd=/usr/bin/file
5090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5093 *nto* | *qnx*)
5094 lt_cv_deplibs_check_method=pass_all
5097 openbsd*)
5098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5100 else
5101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5105 osf3* | osf4* | osf5*)
5106 lt_cv_deplibs_check_method=pass_all
5109 rdos*)
5110 lt_cv_deplibs_check_method=pass_all
5113 solaris*)
5114 lt_cv_deplibs_check_method=pass_all
5117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5118 lt_cv_deplibs_check_method=pass_all
5121 sysv4 | sysv4.3*)
5122 case $host_vendor in
5123 motorola)
5124 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]'
5125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5127 ncr)
5128 lt_cv_deplibs_check_method=pass_all
5130 sequent)
5131 lt_cv_file_magic_cmd='/bin/file'
5132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5134 sni)
5135 lt_cv_file_magic_cmd='/bin/file'
5136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5137 lt_cv_file_magic_test_file=/lib/libc.so
5139 siemens)
5140 lt_cv_deplibs_check_method=pass_all
5143 lt_cv_deplibs_check_method=pass_all
5145 esac
5148 tpf*)
5149 lt_cv_deplibs_check_method=pass_all
5151 esac
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5155 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5156 file_magic_cmd=$lt_cv_file_magic_cmd
5157 deplibs_check_method=$lt_cv_deplibs_check_method
5158 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5171 if test -n "$ac_tool_prefix"; then
5172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5173 set dummy ${ac_tool_prefix}ar; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_AR+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$AR"; then
5180 ac_cv_prog_AR="$AR" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_AR="${ac_tool_prefix}ar"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 AR=$ac_cv_prog_AR
5200 if test -n "$AR"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5202 $as_echo "$AR" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5210 if test -z "$ac_cv_prog_AR"; then
5211 ac_ct_AR=$AR
5212 # Extract the first word of "ar", so it can be a program name with args.
5213 set dummy ar; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 if test -n "$ac_ct_AR"; then
5220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_prog_ac_ct_AR="ar"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5239 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5240 if test -n "$ac_ct_AR"; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5242 $as_echo "$ac_ct_AR" >&6; }
5243 else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5248 if test "x$ac_ct_AR" = x; then
5249 AR="false"
5250 else
5251 case $cross_compiling:$ac_tool_warned in
5252 yes:)
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255 ac_tool_warned=yes ;;
5256 esac
5257 AR=$ac_ct_AR
5259 else
5260 AR="$ac_cv_prog_AR"
5263 test -z "$AR" && AR=ar
5264 test -z "$AR_FLAGS" && AR_FLAGS=cru
5276 if test -n "$ac_tool_prefix"; then
5277 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5278 set dummy ${ac_tool_prefix}strip; ac_word=$2
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 $as_echo_n "checking for $ac_word... " >&6; }
5281 if test "${ac_cv_prog_STRIP+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 if test -n "$STRIP"; then
5285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5298 done
5299 done
5300 IFS=$as_save_IFS
5304 STRIP=$ac_cv_prog_STRIP
5305 if test -n "$STRIP"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5307 $as_echo "$STRIP" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5315 if test -z "$ac_cv_prog_STRIP"; then
5316 ac_ct_STRIP=$STRIP
5317 # Extract the first word of "strip", so it can be a program name with args.
5318 set dummy strip; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 if test -n "$ac_ct_STRIP"; then
5325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_prog_ac_ct_STRIP="strip"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5340 IFS=$as_save_IFS
5344 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5345 if test -n "$ac_ct_STRIP"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5347 $as_echo "$ac_ct_STRIP" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5353 if test "x$ac_ct_STRIP" = x; then
5354 STRIP=":"
5355 else
5356 case $cross_compiling:$ac_tool_warned in
5357 yes:)
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5360 ac_tool_warned=yes ;;
5361 esac
5362 STRIP=$ac_ct_STRIP
5364 else
5365 STRIP="$ac_cv_prog_STRIP"
5368 test -z "$STRIP" && STRIP=:
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$RANLIB"; then
5384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5403 RANLIB=$ac_cv_prog_RANLIB
5404 if test -n "$RANLIB"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5406 $as_echo "$RANLIB" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5414 if test -z "$ac_cv_prog_RANLIB"; then
5415 ac_ct_RANLIB=$RANLIB
5416 # Extract the first word of "ranlib", so it can be a program name with args.
5417 set dummy ranlib; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$ac_ct_RANLIB"; then
5424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_prog_ac_ct_RANLIB="ranlib"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5437 done
5438 done
5439 IFS=$as_save_IFS
5443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5444 if test -n "$ac_ct_RANLIB"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5446 $as_echo "$ac_ct_RANLIB" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5452 if test "x$ac_ct_RANLIB" = x; then
5453 RANLIB=":"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456 yes:)
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned=yes ;;
5460 esac
5461 RANLIB=$ac_ct_RANLIB
5463 else
5464 RANLIB="$ac_cv_prog_RANLIB"
5467 test -z "$RANLIB" && RANLIB=:
5474 # Determine commands to create old-style static archives.
5475 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5476 old_postinstall_cmds='chmod 644 $oldlib'
5477 old_postuninstall_cmds=
5479 if test -n "$RANLIB"; then
5480 case $host_os in
5481 openbsd*)
5482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5487 esac
5488 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5491 case $host_os in
5492 darwin*)
5493 lock_old_archive_extraction=yes ;;
5495 lock_old_archive_extraction=no ;;
5496 esac
5536 # If no C compiler was specified, use CC.
5537 LTCC=${LTCC-"$CC"}
5539 # If no C compiler flags were specified, use CFLAGS.
5540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5542 # Allow CC to be a program name with arguments.
5543 compiler=$CC
5546 # Check for command to grab the raw symbol name followed by C symbol from nm.
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5553 # These are sane defaults that work on at least a few old systems.
5554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5556 # Character class describing NM global symbol codes.
5557 symcode='[BCDEGRST]'
5559 # Regexp to match symbols that can be accessed directly from C.
5560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5562 # Define system-specific variables.
5563 case $host_os in
5564 aix*)
5565 symcode='[BCDT]'
5567 cygwin* | mingw* | pw32* | cegcc*)
5568 symcode='[ABCDGISTW]'
5570 hpux*)
5571 if test "$host_cpu" = ia64; then
5572 symcode='[ABCDEGRST]'
5575 irix* | nonstopux*)
5576 symcode='[BCDEGRST]'
5578 osf*)
5579 symcode='[BCDEGQRST]'
5581 solaris*)
5582 symcode='[BDRT]'
5584 sco3.2v5*)
5585 symcode='[DT]'
5587 sysv4.2uw2*)
5588 symcode='[DT]'
5590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5591 symcode='[ABDT]'
5593 sysv4)
5594 symcode='[DFNSTU]'
5596 esac
5598 # If we're using GNU nm, then use its standard symbol codes.
5599 case `$NM -V 2>&1` in
5600 *GNU* | *'with BFD'*)
5601 symcode='[ABCDGIRSTW]' ;;
5602 esac
5604 # Transform an extracted symbol line into a proper C declaration.
5605 # Some systems (esp. on ia64) link data and code symbols differently,
5606 # so use this general approach.
5607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5609 # Transform an extracted symbol line into symbol name and symbol address
5610 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5611 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'"
5613 # Handle CRLF in mingw tool chain
5614 opt_cr=
5615 case $build_os in
5616 mingw*)
5617 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5619 esac
5621 # Try without a prefix underscore, then with it.
5622 for ac_symprfx in "" "_"; do
5624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5625 symxfrm="\\1 $ac_symprfx\\2 \\2"
5627 # Write the raw and C identifiers.
5628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5629 # Fake it for dumpbin and say T for any non-static function
5630 # and D for any global variable.
5631 # Also find C++ and __fastcall symbols from MSVC++,
5632 # which start with @ or ?.
5633 lt_cv_sys_global_symbol_pipe="$AWK '"\
5634 " {last_section=section; section=\$ 3};"\
5635 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5636 " \$ 0!~/External *\|/{next};"\
5637 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5638 " {if(hide[section]) next};"\
5639 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5640 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5641 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5642 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5643 " ' prfx=^$ac_symprfx"
5644 else
5645 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5648 # Check to see that the pipe works correctly.
5649 pipe_works=no
5651 rm -f conftest*
5652 cat > conftest.$ac_ext <<_LT_EOF
5653 #ifdef __cplusplus
5654 extern "C" {
5655 #endif
5656 char nm_test_var;
5657 void nm_test_func(void);
5658 void nm_test_func(void){}
5659 #ifdef __cplusplus
5661 #endif
5662 int main(){nm_test_var='a';nm_test_func();return(0);}
5663 _LT_EOF
5665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5666 (eval $ac_compile) 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }; then
5670 # Now try to grab the symbols.
5671 nlist=conftest.nm
5672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5673 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; } && test -s "$nlist"; then
5677 # Try sorting and uniquifying the output.
5678 if sort "$nlist" | uniq > "$nlist"T; then
5679 mv -f "$nlist"T "$nlist"
5680 else
5681 rm -f "$nlist"T
5684 # Make sure that we snagged all the symbols we need.
5685 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5686 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5687 cat <<_LT_EOF > conftest.$ac_ext
5688 #ifdef __cplusplus
5689 extern "C" {
5690 #endif
5692 _LT_EOF
5693 # Now generate the symbol file.
5694 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5696 cat <<_LT_EOF >> conftest.$ac_ext
5698 /* The mapping between symbol names and symbols. */
5699 const struct {
5700 const char *name;
5701 void *address;
5703 lt__PROGRAM__LTX_preloaded_symbols[] =
5705 { "@PROGRAM@", (void *) 0 },
5706 _LT_EOF
5707 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5708 cat <<\_LT_EOF >> conftest.$ac_ext
5709 {0, (void *) 0}
5712 /* This works around a problem in FreeBSD linker */
5713 #ifdef FREEBSD_WORKAROUND
5714 static const void *lt_preloaded_setup() {
5715 return lt__PROGRAM__LTX_preloaded_symbols;
5717 #endif
5719 #ifdef __cplusplus
5721 #endif
5722 _LT_EOF
5723 # Now try linking the two files.
5724 mv conftest.$ac_objext conftstm.$ac_objext
5725 lt_save_LIBS="$LIBS"
5726 lt_save_CFLAGS="$CFLAGS"
5727 LIBS="conftstm.$ac_objext"
5728 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5730 (eval $ac_link) 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5734 pipe_works=yes
5736 LIBS="$lt_save_LIBS"
5737 CFLAGS="$lt_save_CFLAGS"
5738 else
5739 echo "cannot find nm_test_func in $nlist" >&5
5741 else
5742 echo "cannot find nm_test_var in $nlist" >&5
5744 else
5745 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5747 else
5748 echo "$progname: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5751 rm -rf conftest* conftst*
5753 # Do not use the global_symbol_pipe unless it works.
5754 if test "$pipe_works" = yes; then
5755 break
5756 else
5757 lt_cv_sys_global_symbol_pipe=
5759 done
5763 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5764 lt_cv_sys_global_symbol_to_cdecl=
5766 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5768 $as_echo "failed" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5771 $as_echo "ok" >&6; }
5796 # Check whether --enable-libtool-lock was given.
5797 if test "${enable_libtool_lock+set}" = set; then :
5798 enableval=$enable_libtool_lock;
5801 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5803 # Some flags need to be propagated to the compiler or linker for good
5804 # libtool support.
5805 case $host in
5806 ia64-*-hpux*)
5807 # Find out which ABI we are using.
5808 echo 'int i;' > conftest.$ac_ext
5809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5810 (eval $ac_compile) 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; }; then
5814 case `/usr/bin/file conftest.$ac_objext` in
5815 *ELF-32*)
5816 HPUX_IA64_MODE="32"
5818 *ELF-64*)
5819 HPUX_IA64_MODE="64"
5821 esac
5823 rm -rf conftest*
5825 *-*-irix6*)
5826 # Find out which ABI we are using.
5827 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5829 (eval $ac_compile) 2>&5
5830 ac_status=$?
5831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5832 test $ac_status = 0; }; then
5833 if test "$lt_cv_prog_gnu_ld" = yes; then
5834 case `/usr/bin/file conftest.$ac_objext` in
5835 *32-bit*)
5836 LD="${LD-ld} -melf32bsmip"
5838 *N32*)
5839 LD="${LD-ld} -melf32bmipn32"
5841 *64-bit*)
5842 LD="${LD-ld} -melf64bmip"
5844 esac
5845 else
5846 case `/usr/bin/file conftest.$ac_objext` in
5847 *32-bit*)
5848 LD="${LD-ld} -32"
5850 *N32*)
5851 LD="${LD-ld} -n32"
5853 *64-bit*)
5854 LD="${LD-ld} -64"
5856 esac
5859 rm -rf conftest*
5862 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5863 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5864 # Find out which ABI we are using.
5865 echo 'int i;' > conftest.$ac_ext
5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5867 (eval $ac_compile) 2>&5
5868 ac_status=$?
5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870 test $ac_status = 0; }; then
5871 case `/usr/bin/file conftest.o` in
5872 *32-bit*)
5873 case $host in
5874 x86_64-*kfreebsd*-gnu)
5875 LD="${LD-ld} -m elf_i386_fbsd"
5877 x86_64-*linux*)
5878 case `/usr/bin/file conftest.o` in
5879 *x86-64*)
5880 LD="${LD-ld} -m elf32_x86_64"
5883 LD="${LD-ld} -m elf_i386"
5885 esac
5887 powerpc64le-*linux*)
5888 LD="${LD-ld} -m elf32lppclinux"
5890 powerpc64-*linux*)
5891 LD="${LD-ld} -m elf32ppclinux"
5893 s390x-*linux*)
5894 LD="${LD-ld} -m elf_s390"
5896 sparc64-*linux*)
5897 LD="${LD-ld} -m elf32_sparc"
5899 esac
5901 *64-bit*)
5902 case $host in
5903 x86_64-*kfreebsd*-gnu)
5904 LD="${LD-ld} -m elf_x86_64_fbsd"
5906 x86_64-*linux*)
5907 LD="${LD-ld} -m elf_x86_64"
5909 powerpcle-*linux*)
5910 LD="${LD-ld} -m elf64lppc"
5912 powerpc-*linux*)
5913 LD="${LD-ld} -m elf64ppc"
5915 s390*-*linux*|s390*-*tpf*)
5916 LD="${LD-ld} -m elf64_s390"
5918 sparc*-*linux*)
5919 LD="${LD-ld} -m elf64_sparc"
5921 esac
5923 esac
5925 rm -rf conftest*
5928 *-*-sco3.2v5*)
5929 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5930 SAVE_CFLAGS="$CFLAGS"
5931 CFLAGS="$CFLAGS -belf"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5933 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5934 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 ac_ext=c
5938 ac_cpp='$CPP $CPPFLAGS'
5939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5943 if test x$gcc_no_link = xyes; then
5944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5950 main ()
5954 return 0;
5956 _ACEOF
5957 if ac_fn_c_try_link "$LINENO"; then :
5958 lt_cv_cc_needs_belf=yes
5959 else
5960 lt_cv_cc_needs_belf=no
5962 rm -f core conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5964 ac_ext=c
5965 ac_cpp='$CPP $CPPFLAGS'
5966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5972 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5973 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5974 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5975 CFLAGS="$SAVE_CFLAGS"
5978 sparc*-*solaris*)
5979 # Find out which ABI we are using.
5980 echo 'int i;' > conftest.$ac_ext
5981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5982 (eval $ac_compile) 2>&5
5983 ac_status=$?
5984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985 test $ac_status = 0; }; then
5986 case `/usr/bin/file conftest.o` in
5987 *64-bit*)
5988 case $lt_cv_prog_gnu_ld in
5989 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5991 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5992 LD="${LD-ld} -64"
5995 esac
5997 esac
5999 rm -rf conftest*
6001 esac
6003 need_locks="$enable_libtool_lock"
6006 case $host_os in
6007 rhapsody* | darwin*)
6008 if test -n "$ac_tool_prefix"; then
6009 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if test -n "$DSYMUTIL"; then
6017 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6022 IFS=$as_save_IFS
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028 break 2
6030 done
6031 done
6032 IFS=$as_save_IFS
6036 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6037 if test -n "$DSYMUTIL"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6039 $as_echo "$DSYMUTIL" >&6; }
6040 else
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6047 if test -z "$ac_cv_prog_DSYMUTIL"; then
6048 ac_ct_DSYMUTIL=$DSYMUTIL
6049 # Extract the first word of "dsymutil", so it can be a program name with args.
6050 set dummy dsymutil; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$ac_ct_DSYMUTIL"; then
6057 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6070 done
6071 done
6072 IFS=$as_save_IFS
6076 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6077 if test -n "$ac_ct_DSYMUTIL"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6079 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6085 if test "x$ac_ct_DSYMUTIL" = x; then
6086 DSYMUTIL=":"
6087 else
6088 case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094 DSYMUTIL=$ac_ct_DSYMUTIL
6096 else
6097 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6100 if test -n "$ac_tool_prefix"; then
6101 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6102 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if test -n "$NMEDIT"; then
6109 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
6116 for ac_exec_ext in '' $ac_executable_extensions; do
6117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 break 2
6122 done
6123 done
6124 IFS=$as_save_IFS
6128 NMEDIT=$ac_cv_prog_NMEDIT
6129 if test -n "$NMEDIT"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6131 $as_echo "$NMEDIT" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6139 if test -z "$ac_cv_prog_NMEDIT"; then
6140 ac_ct_NMEDIT=$NMEDIT
6141 # Extract the first word of "nmedit", so it can be a program name with args.
6142 set dummy nmedit; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$ac_ct_NMEDIT"; then
6149 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6162 done
6163 done
6164 IFS=$as_save_IFS
6168 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6169 if test -n "$ac_ct_NMEDIT"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6171 $as_echo "$ac_ct_NMEDIT" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6177 if test "x$ac_ct_NMEDIT" = x; then
6178 NMEDIT=":"
6179 else
6180 case $cross_compiling:$ac_tool_warned in
6181 yes:)
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184 ac_tool_warned=yes ;;
6185 esac
6186 NMEDIT=$ac_ct_NMEDIT
6188 else
6189 NMEDIT="$ac_cv_prog_NMEDIT"
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_LIPO+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$LIPO"; then
6201 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6214 done
6215 done
6216 IFS=$as_save_IFS
6220 LIPO=$ac_cv_prog_LIPO
6221 if test -n "$LIPO"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6223 $as_echo "$LIPO" >&6; }
6224 else
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6231 if test -z "$ac_cv_prog_LIPO"; then
6232 ac_ct_LIPO=$LIPO
6233 # Extract the first word of "lipo", so it can be a program name with args.
6234 set dummy lipo; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$ac_ct_LIPO"; then
6241 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_LIPO="lipo"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6254 done
6255 done
6256 IFS=$as_save_IFS
6260 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6261 if test -n "$ac_ct_LIPO"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6263 $as_echo "$ac_ct_LIPO" >&6; }
6264 else
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6269 if test "x$ac_ct_LIPO" = x; then
6270 LIPO=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 LIPO=$ac_ct_LIPO
6280 else
6281 LIPO="$ac_cv_prog_LIPO"
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}otool; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$OTOOL"; then
6293 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6306 done
6307 done
6308 IFS=$as_save_IFS
6312 OTOOL=$ac_cv_prog_OTOOL
6313 if test -n "$OTOOL"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6315 $as_echo "$OTOOL" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6323 if test -z "$ac_cv_prog_OTOOL"; then
6324 ac_ct_OTOOL=$OTOOL
6325 # Extract the first word of "otool", so it can be a program name with args.
6326 set dummy otool; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$ac_ct_OTOOL"; then
6333 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_OTOOL="otool"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6346 done
6347 done
6348 IFS=$as_save_IFS
6352 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6353 if test -n "$ac_ct_OTOOL"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6355 $as_echo "$ac_ct_OTOOL" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6361 if test "x$ac_ct_OTOOL" = x; then
6362 OTOOL=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370 OTOOL=$ac_ct_OTOOL
6372 else
6373 OTOOL="$ac_cv_prog_OTOOL"
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$OTOOL64"; then
6385 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6398 done
6399 done
6400 IFS=$as_save_IFS
6404 OTOOL64=$ac_cv_prog_OTOOL64
6405 if test -n "$OTOOL64"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6407 $as_echo "$OTOOL64" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6415 if test -z "$ac_cv_prog_OTOOL64"; then
6416 ac_ct_OTOOL64=$OTOOL64
6417 # Extract the first word of "otool64", so it can be a program name with args.
6418 set dummy otool64; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_OTOOL64"; then
6425 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_OTOOL64="otool64"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6438 done
6439 done
6440 IFS=$as_save_IFS
6444 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6445 if test -n "$ac_ct_OTOOL64"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6447 $as_echo "$ac_ct_OTOOL64" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6453 if test "x$ac_ct_OTOOL64" = x; then
6454 OTOOL64=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 OTOOL64=$ac_ct_OTOOL64
6464 else
6465 OTOOL64="$ac_cv_prog_OTOOL64"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6495 $as_echo_n "checking for -single_module linker flag... " >&6; }
6496 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 lt_cv_apple_cc_single_mod=no
6500 if test -z "${LT_MULTI_MODULE}"; then
6501 # By default we will add the -single_module flag. You can override
6502 # by either setting the environment variable LT_MULTI_MODULE
6503 # non-empty at configure time, or by adding -multi_module to the
6504 # link flags.
6505 rm -rf libconftest.dylib*
6506 echo "int foo(void){return 1;}" > conftest.c
6507 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6508 -dynamiclib -Wl,-single_module conftest.c" >&5
6509 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6510 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6511 _lt_result=$?
6512 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6513 lt_cv_apple_cc_single_mod=yes
6514 else
6515 cat conftest.err >&5
6517 rm -rf libconftest.dylib*
6518 rm -f conftest.*
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6522 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6524 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6525 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 lt_cv_ld_exported_symbols_list=no
6529 save_LDFLAGS=$LDFLAGS
6530 echo "_main" > conftest.sym
6531 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6532 if test x$gcc_no_link = xyes; then
6533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6539 main ()
6543 return 0;
6545 _ACEOF
6546 if ac_fn_c_try_link "$LINENO"; then :
6547 lt_cv_ld_exported_symbols_list=yes
6548 else
6549 lt_cv_ld_exported_symbols_list=no
6551 rm -f core conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553 LDFLAGS="$save_LDFLAGS"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6557 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6559 $as_echo_n "checking for -force_load linker flag... " >&6; }
6560 if test "${lt_cv_ld_force_load+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 lt_cv_ld_force_load=no
6564 cat > conftest.c << _LT_EOF
6565 int forced_loaded() { return 2;}
6566 _LT_EOF
6567 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6568 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6569 echo "$AR cru libconftest.a conftest.o" >&5
6570 $AR cru libconftest.a conftest.o 2>&5
6571 cat > conftest.c << _LT_EOF
6572 int main() { return 0;}
6573 _LT_EOF
6574 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6575 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6576 _lt_result=$?
6577 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6578 lt_cv_ld_force_load=yes
6579 else
6580 cat conftest.err >&5
6582 rm -f conftest.err libconftest.a conftest conftest.c
6583 rm -rf conftest.dSYM
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6587 $as_echo "$lt_cv_ld_force_load" >&6; }
6588 case $host_os in
6589 rhapsody* | darwin1.[012])
6590 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6591 darwin1.*)
6592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6593 darwin*) # darwin 5.x on
6594 # if running on 10.5 or later, the deployment target defaults
6595 # to the OS version, if on x86, and 10.4, the deployment
6596 # target defaults to 10.4. Don't you love it?
6597 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6598 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6599 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6600 10.[012][,.]*)
6601 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6602 10.*)
6603 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6604 esac
6606 esac
6607 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6608 _lt_dar_single_mod='$single_module'
6610 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6611 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6612 else
6613 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6615 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6616 _lt_dsymutil='~$DSYMUTIL $lib || :'
6617 else
6618 _lt_dsymutil=
6621 esac
6623 ac_ext=c
6624 ac_cpp='$CPP $CPPFLAGS'
6625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6629 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6630 # On Suns, sometimes $CPP names a directory.
6631 if test -n "$CPP" && test -d "$CPP"; then
6632 CPP=
6634 if test -z "$CPP"; then
6635 if test "${ac_cv_prog_CPP+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 # Double quotes because CPP needs to be expanded
6639 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6641 ac_preproc_ok=false
6642 for ac_c_preproc_warn_flag in '' yes
6644 # Use a header file that comes with gcc, so configuring glibc
6645 # with a fresh cross-compiler works.
6646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6647 # <limits.h> exists even on freestanding compilers.
6648 # On the NeXT, cc -E runs the code through the compiler's parser,
6649 # not just through cpp. "Syntax error" is here to catch this case.
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6652 #ifdef __STDC__
6653 # include <limits.h>
6654 #else
6655 # include <assert.h>
6656 #endif
6657 Syntax error
6658 _ACEOF
6659 if ac_fn_c_try_cpp "$LINENO"; then :
6661 else
6662 # Broken: fails on valid input.
6663 continue
6665 rm -f conftest.err conftest.$ac_ext
6667 # OK, works on sane cases. Now check whether nonexistent headers
6668 # can be detected and how.
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 #include <ac_nonexistent.h>
6672 _ACEOF
6673 if ac_fn_c_try_cpp "$LINENO"; then :
6674 # Broken: success on invalid input.
6675 continue
6676 else
6677 # Passes both tests.
6678 ac_preproc_ok=:
6679 break
6681 rm -f conftest.err conftest.$ac_ext
6683 done
6684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6685 rm -f conftest.err conftest.$ac_ext
6686 if $ac_preproc_ok; then :
6687 break
6690 done
6691 ac_cv_prog_CPP=$CPP
6694 CPP=$ac_cv_prog_CPP
6695 else
6696 ac_cv_prog_CPP=$CPP
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6699 $as_echo "$CPP" >&6; }
6700 ac_preproc_ok=false
6701 for ac_c_preproc_warn_flag in '' yes
6703 # Use a header file that comes with gcc, so configuring glibc
6704 # with a fresh cross-compiler works.
6705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6706 # <limits.h> exists even on freestanding compilers.
6707 # On the NeXT, cc -E runs the code through the compiler's parser,
6708 # not just through cpp. "Syntax error" is here to catch this case.
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 #ifdef __STDC__
6712 # include <limits.h>
6713 #else
6714 # include <assert.h>
6715 #endif
6716 Syntax error
6717 _ACEOF
6718 if ac_fn_c_try_cpp "$LINENO"; then :
6720 else
6721 # Broken: fails on valid input.
6722 continue
6724 rm -f conftest.err conftest.$ac_ext
6726 # OK, works on sane cases. Now check whether nonexistent headers
6727 # can be detected and how.
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6730 #include <ac_nonexistent.h>
6731 _ACEOF
6732 if ac_fn_c_try_cpp "$LINENO"; then :
6733 # Broken: success on invalid input.
6734 continue
6735 else
6736 # Passes both tests.
6737 ac_preproc_ok=:
6738 break
6740 rm -f conftest.err conftest.$ac_ext
6742 done
6743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6744 rm -f conftest.err conftest.$ac_ext
6745 if $ac_preproc_ok; then :
6747 else
6748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6750 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6751 See \`config.log' for more details." "$LINENO" 5; }
6754 ac_ext=c
6755 ac_cpp='$CPP $CPPFLAGS'
6756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6762 $as_echo_n "checking for ANSI C header files... " >&6; }
6763 if test "${ac_cv_header_stdc+set}" = set; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <stdlib.h>
6769 #include <stdarg.h>
6770 #include <string.h>
6771 #include <float.h>
6774 main ()
6778 return 0;
6780 _ACEOF
6781 if ac_fn_c_try_compile "$LINENO"; then :
6782 ac_cv_header_stdc=yes
6783 else
6784 ac_cv_header_stdc=no
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 if test $ac_cv_header_stdc = yes; then
6789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 #include <string.h>
6794 _ACEOF
6795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6796 $EGREP "memchr" >/dev/null 2>&1; then :
6798 else
6799 ac_cv_header_stdc=no
6801 rm -f conftest*
6805 if test $ac_cv_header_stdc = yes; then
6806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 #include <stdlib.h>
6811 _ACEOF
6812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6813 $EGREP "free" >/dev/null 2>&1; then :
6815 else
6816 ac_cv_header_stdc=no
6818 rm -f conftest*
6822 if test $ac_cv_header_stdc = yes; then
6823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6824 if test "$cross_compiling" = yes; then :
6826 else
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 #include <ctype.h>
6830 #include <stdlib.h>
6831 #if ((' ' & 0x0FF) == 0x020)
6832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6834 #else
6835 # define ISLOWER(c) \
6836 (('a' <= (c) && (c) <= 'i') \
6837 || ('j' <= (c) && (c) <= 'r') \
6838 || ('s' <= (c) && (c) <= 'z'))
6839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6840 #endif
6842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6844 main ()
6846 int i;
6847 for (i = 0; i < 256; i++)
6848 if (XOR (islower (i), ISLOWER (i))
6849 || toupper (i) != TOUPPER (i))
6850 return 2;
6851 return 0;
6853 _ACEOF
6854 if ac_fn_c_try_run "$LINENO"; then :
6856 else
6857 ac_cv_header_stdc=no
6859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6860 conftest.$ac_objext conftest.beam conftest.$ac_ext
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6866 $as_echo "$ac_cv_header_stdc" >&6; }
6867 if test $ac_cv_header_stdc = yes; then
6869 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6874 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6875 inttypes.h stdint.h unistd.h
6876 do :
6877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6878 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6880 eval as_val=\$$as_ac_Header
6881 if test "x$as_val" = x""yes; then :
6882 cat >>confdefs.h <<_ACEOF
6883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6884 _ACEOF
6888 done
6891 for ac_header in dlfcn.h
6892 do :
6893 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6895 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6896 cat >>confdefs.h <<_ACEOF
6897 #define HAVE_DLFCN_H 1
6898 _ACEOF
6902 done
6908 # Set options
6912 enable_dlopen=no
6915 enable_win32_dll=no
6918 # Check whether --enable-shared was given.
6919 if test "${enable_shared+set}" = set; then :
6920 enableval=$enable_shared; p=${PACKAGE-default}
6921 case $enableval in
6922 yes) enable_shared=yes ;;
6923 no) enable_shared=no ;;
6925 enable_shared=no
6926 # Look at the argument we got. We use all the common list separators.
6927 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6928 for pkg in $enableval; do
6929 IFS="$lt_save_ifs"
6930 if test "X$pkg" = "X$p"; then
6931 enable_shared=yes
6933 done
6934 IFS="$lt_save_ifs"
6936 esac
6937 else
6938 enable_shared=yes
6949 # Check whether --enable-static was given.
6950 if test "${enable_static+set}" = set; then :
6951 enableval=$enable_static; p=${PACKAGE-default}
6952 case $enableval in
6953 yes) enable_static=yes ;;
6954 no) enable_static=no ;;
6956 enable_static=no
6957 # Look at the argument we got. We use all the common list separators.
6958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6959 for pkg in $enableval; do
6960 IFS="$lt_save_ifs"
6961 if test "X$pkg" = "X$p"; then
6962 enable_static=yes
6964 done
6965 IFS="$lt_save_ifs"
6967 esac
6968 else
6969 enable_static=yes
6981 # Check whether --with-pic was given.
6982 if test "${with_pic+set}" = set; then :
6983 withval=$with_pic; pic_mode="$withval"
6984 else
6985 pic_mode=default
6989 test -z "$pic_mode" && pic_mode=default
6997 # Check whether --enable-fast-install was given.
6998 if test "${enable_fast_install+set}" = set; then :
6999 enableval=$enable_fast_install; p=${PACKAGE-default}
7000 case $enableval in
7001 yes) enable_fast_install=yes ;;
7002 no) enable_fast_install=no ;;
7004 enable_fast_install=no
7005 # Look at the argument we got. We use all the common list separators.
7006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7007 for pkg in $enableval; do
7008 IFS="$lt_save_ifs"
7009 if test "X$pkg" = "X$p"; then
7010 enable_fast_install=yes
7012 done
7013 IFS="$lt_save_ifs"
7015 esac
7016 else
7017 enable_fast_install=yes
7030 # This can be used to rebuild libtool when needed
7031 LIBTOOL_DEPS="$ltmain"
7033 # Always use our own libtool.
7034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7061 test -z "$LN_S" && LN_S="ln -s"
7076 if test -n "${ZSH_VERSION+set}" ; then
7077 setopt NO_GLOB_SUBST
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7081 $as_echo_n "checking for objdir... " >&6; }
7082 if test "${lt_cv_objdir+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 rm -f .libs 2>/dev/null
7086 mkdir .libs 2>/dev/null
7087 if test -d .libs; then
7088 lt_cv_objdir=.libs
7089 else
7090 # MS-DOS does not allow filenames that begin with a dot.
7091 lt_cv_objdir=_libs
7093 rmdir .libs 2>/dev/null
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7096 $as_echo "$lt_cv_objdir" >&6; }
7097 objdir=$lt_cv_objdir
7103 cat >>confdefs.h <<_ACEOF
7104 #define LT_OBJDIR "$lt_cv_objdir/"
7105 _ACEOF
7110 case $host_os in
7111 aix3*)
7112 # AIX sometimes has problems with the GCC collect2 program. For some
7113 # reason, if we set the COLLECT_NAMES environment variable, the problems
7114 # vanish in a puff of smoke.
7115 if test "X${COLLECT_NAMES+set}" != Xset; then
7116 COLLECT_NAMES=
7117 export COLLECT_NAMES
7120 esac
7122 # Global variables:
7123 ofile=libtool
7124 can_build_shared=yes
7126 # All known linkers require a `.a' archive for static linking (except MSVC,
7127 # which needs '.lib').
7128 libext=a
7130 with_gnu_ld="$lt_cv_prog_gnu_ld"
7132 old_CC="$CC"
7133 old_CFLAGS="$CFLAGS"
7135 # Set sane defaults for various variables
7136 test -z "$CC" && CC=cc
7137 test -z "$LTCC" && LTCC=$CC
7138 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7139 test -z "$LD" && LD=ld
7140 test -z "$ac_objext" && ac_objext=o
7142 for cc_temp in $compiler""; do
7143 case $cc_temp in
7144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7146 \-*) ;;
7147 *) break;;
7148 esac
7149 done
7150 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7153 # Only perform the check for file, if the check method requires it
7154 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7155 case $deplibs_check_method in
7156 file_magic*)
7157 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7159 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7160 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 case $MAGIC_CMD in
7164 [\\/*] | ?:[\\/]*)
7165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7168 lt_save_MAGIC_CMD="$MAGIC_CMD"
7169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7170 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7171 for ac_dir in $ac_dummy; do
7172 IFS="$lt_save_ifs"
7173 test -z "$ac_dir" && ac_dir=.
7174 if test -f $ac_dir/${ac_tool_prefix}file; then
7175 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7176 if test -n "$file_magic_test_file"; then
7177 case $deplibs_check_method in
7178 "file_magic "*)
7179 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7182 $EGREP "$file_magic_regex" > /dev/null; then
7184 else
7185 cat <<_LT_EOF 1>&2
7187 *** Warning: the command libtool uses to detect shared libraries,
7188 *** $file_magic_cmd, produces output that libtool cannot recognize.
7189 *** The result is that libtool may fail to recognize shared libraries
7190 *** as such. This will affect the creation of libtool libraries that
7191 *** depend on shared libraries, but programs linked with such libtool
7192 *** libraries will work regardless of this problem. Nevertheless, you
7193 *** may want to report the problem to your system manager and/or to
7194 *** bug-libtool@gnu.org
7196 _LT_EOF
7197 fi ;;
7198 esac
7200 break
7202 done
7203 IFS="$lt_save_ifs"
7204 MAGIC_CMD="$lt_save_MAGIC_CMD"
7206 esac
7209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7210 if test -n "$MAGIC_CMD"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7212 $as_echo "$MAGIC_CMD" >&6; }
7213 else
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7222 if test -z "$lt_cv_path_MAGIC_CMD"; then
7223 if test -n "$ac_tool_prefix"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7225 $as_echo_n "checking for file... " >&6; }
7226 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 case $MAGIC_CMD in
7230 [\\/*] | ?:[\\/]*)
7231 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7234 lt_save_MAGIC_CMD="$MAGIC_CMD"
7235 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7236 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7237 for ac_dir in $ac_dummy; do
7238 IFS="$lt_save_ifs"
7239 test -z "$ac_dir" && ac_dir=.
7240 if test -f $ac_dir/file; then
7241 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7242 if test -n "$file_magic_test_file"; then
7243 case $deplibs_check_method in
7244 "file_magic "*)
7245 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7248 $EGREP "$file_magic_regex" > /dev/null; then
7250 else
7251 cat <<_LT_EOF 1>&2
7253 *** Warning: the command libtool uses to detect shared libraries,
7254 *** $file_magic_cmd, produces output that libtool cannot recognize.
7255 *** The result is that libtool may fail to recognize shared libraries
7256 *** as such. This will affect the creation of libtool libraries that
7257 *** depend on shared libraries, but programs linked with such libtool
7258 *** libraries will work regardless of this problem. Nevertheless, you
7259 *** may want to report the problem to your system manager and/or to
7260 *** bug-libtool@gnu.org
7262 _LT_EOF
7263 fi ;;
7264 esac
7266 break
7268 done
7269 IFS="$lt_save_ifs"
7270 MAGIC_CMD="$lt_save_MAGIC_CMD"
7272 esac
7275 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7276 if test -n "$MAGIC_CMD"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7278 $as_echo "$MAGIC_CMD" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7285 else
7286 MAGIC_CMD=:
7292 esac
7294 # Use C for the default configuration in the libtool script
7296 lt_save_CC="$CC"
7297 ac_ext=c
7298 ac_cpp='$CPP $CPPFLAGS'
7299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7304 # Source file extension for C test sources.
7305 ac_ext=c
7307 # Object file extension for compiled C test sources.
7308 objext=o
7309 objext=$objext
7311 # Code to be used in simple compile tests
7312 lt_simple_compile_test_code="int some_variable = 0;"
7314 # Code to be used in simple link tests
7315 lt_simple_link_test_code='int main(){return(0);}'
7323 # If no C compiler was specified, use CC.
7324 LTCC=${LTCC-"$CC"}
7326 # If no C compiler flags were specified, use CFLAGS.
7327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7329 # Allow CC to be a program name with arguments.
7330 compiler=$CC
7332 # Save the default compiler, since it gets overwritten when the other
7333 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7334 compiler_DEFAULT=$CC
7336 # save warnings/boilerplate of simple test code
7337 ac_outfile=conftest.$ac_objext
7338 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7339 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7340 _lt_compiler_boilerplate=`cat conftest.err`
7341 $RM conftest*
7343 ac_outfile=conftest.$ac_objext
7344 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7345 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7346 _lt_linker_boilerplate=`cat conftest.err`
7347 $RM -r conftest*
7350 ## CAVEAT EMPTOR:
7351 ## There is no encapsulation within the following macros, do not change
7352 ## the running order or otherwise move them around unless you know exactly
7353 ## what you are doing...
7354 if test -n "$compiler"; then
7356 lt_prog_compiler_no_builtin_flag=
7358 if test "$GCC" = yes; then
7359 case $cc_basename in
7360 nvcc*)
7361 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7363 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7364 esac
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7367 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7368 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 lt_cv_prog_compiler_rtti_exceptions=no
7372 ac_outfile=conftest.$ac_objext
7373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374 lt_compiler_flag="-fno-rtti -fno-exceptions"
7375 # Insert the option either (1) after the last *FLAGS variable, or
7376 # (2) before a word containing "conftest.", or (3) at the end.
7377 # Note that $ac_compile itself does not contain backslashes and begins
7378 # with a dollar sign (not a hyphen), so the echo should work correctly.
7379 # The option is referenced via a variable to avoid confusing sed.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>conftest.err)
7386 ac_status=$?
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s "$ac_outfile"; then
7390 # The compiler can only warn and ignore the option if not recognized
7391 # So say no if there are warnings other than the usual output.
7392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7395 lt_cv_prog_compiler_rtti_exceptions=yes
7398 $RM conftest*
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7402 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7404 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7405 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7406 else
7417 lt_prog_compiler_wl=
7418 lt_prog_compiler_pic=
7419 lt_prog_compiler_static=
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7422 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7424 if test "$GCC" = yes; then
7425 lt_prog_compiler_wl='-Wl,'
7426 lt_prog_compiler_static='-static'
7428 case $host_os in
7429 aix*)
7430 # All AIX code is PIC.
7431 if test "$host_cpu" = ia64; then
7432 # AIX 5 now supports IA64 processor
7433 lt_prog_compiler_static='-Bstatic'
7435 lt_prog_compiler_pic='-fPIC'
7438 amigaos*)
7439 case $host_cpu in
7440 powerpc)
7441 # see comment about AmigaOS4 .so support
7442 lt_prog_compiler_pic='-fPIC'
7444 m68k)
7445 # FIXME: we need at least 68020 code to build shared libraries, but
7446 # adding the `-m68020' flag to GCC prevents building anything better,
7447 # like `-m68040'.
7448 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7450 esac
7453 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7454 # PIC is the default for these OSes.
7457 mingw* | cygwin* | pw32* | os2* | cegcc*)
7458 # This hack is so that the source file can tell whether it is being
7459 # built for inclusion in a dll (and should export symbols for example).
7460 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7461 # (--disable-auto-import) libraries
7462 lt_prog_compiler_pic='-DDLL_EXPORT'
7465 darwin* | rhapsody*)
7466 # PIC is the default on this platform
7467 # Common symbols not allowed in MH_DYLIB files
7468 lt_prog_compiler_pic='-fno-common'
7471 haiku*)
7472 # PIC is the default for Haiku.
7473 # The "-static" flag exists, but is broken.
7474 lt_prog_compiler_static=
7477 hpux*)
7478 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7479 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7480 # sets the default TLS model and affects inlining.
7481 case $host_cpu in
7482 hppa*64*)
7483 # +Z the default
7486 lt_prog_compiler_pic='-fPIC'
7488 esac
7491 interix[3-9]*)
7492 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7493 # Instead, we relocate shared libraries at runtime.
7496 msdosdjgpp*)
7497 # Just because we use GCC doesn't mean we suddenly get shared libraries
7498 # on systems that don't support them.
7499 lt_prog_compiler_can_build_shared=no
7500 enable_shared=no
7503 *nto* | *qnx*)
7504 # QNX uses GNU C++, but need to define -shared option too, otherwise
7505 # it will coredump.
7506 lt_prog_compiler_pic='-fPIC -shared'
7509 sysv4*MP*)
7510 if test -d /usr/nec; then
7511 lt_prog_compiler_pic=-Kconform_pic
7516 lt_prog_compiler_pic='-fPIC'
7518 esac
7520 case $cc_basename in
7521 nvcc*) # Cuda Compiler Driver 2.2
7522 lt_prog_compiler_wl='-Xlinker '
7523 lt_prog_compiler_pic='-Xcompiler -fPIC'
7525 esac
7526 else
7527 # PORTME Check for flag to pass linker flags through the system compiler.
7528 case $host_os in
7529 aix*)
7530 lt_prog_compiler_wl='-Wl,'
7531 if test "$host_cpu" = ia64; then
7532 # AIX 5 now supports IA64 processor
7533 lt_prog_compiler_static='-Bstatic'
7534 else
7535 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7539 mingw* | cygwin* | pw32* | os2* | cegcc*)
7540 # This hack is so that the source file can tell whether it is being
7541 # built for inclusion in a dll (and should export symbols for example).
7542 lt_prog_compiler_pic='-DDLL_EXPORT'
7545 hpux9* | hpux10* | hpux11*)
7546 lt_prog_compiler_wl='-Wl,'
7547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7548 # not for PA HP-UX.
7549 case $host_cpu in
7550 hppa*64*|ia64*)
7551 # +Z the default
7554 lt_prog_compiler_pic='+Z'
7556 esac
7557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7558 lt_prog_compiler_static='${wl}-a ${wl}archive'
7561 irix5* | irix6* | nonstopux*)
7562 lt_prog_compiler_wl='-Wl,'
7563 # PIC (with -KPIC) is the default.
7564 lt_prog_compiler_static='-non_shared'
7567 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7568 case $cc_basename in
7569 # old Intel for x86_64 which still supported -KPIC.
7570 ecc*)
7571 lt_prog_compiler_wl='-Wl,'
7572 lt_prog_compiler_pic='-KPIC'
7573 lt_prog_compiler_static='-static'
7575 # icc used to be incompatible with GCC.
7576 # ICC 10 doesn't accept -KPIC any more.
7577 icc* | ifort*)
7578 lt_prog_compiler_wl='-Wl,'
7579 lt_prog_compiler_pic='-fPIC'
7580 lt_prog_compiler_static='-static'
7582 # Lahey Fortran 8.1.
7583 lf95*)
7584 lt_prog_compiler_wl='-Wl,'
7585 lt_prog_compiler_pic='--shared'
7586 lt_prog_compiler_static='--static'
7588 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7589 # Portland Group compilers (*not* the Pentium gcc compiler,
7590 # which looks to be a dead project)
7591 lt_prog_compiler_wl='-Wl,'
7592 lt_prog_compiler_pic='-fpic'
7593 lt_prog_compiler_static='-Bstatic'
7595 ccc*)
7596 lt_prog_compiler_wl='-Wl,'
7597 # All Alpha code is PIC.
7598 lt_prog_compiler_static='-non_shared'
7600 xl* | bgxl* | bgf* | mpixl*)
7601 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7602 lt_prog_compiler_wl='-Wl,'
7603 lt_prog_compiler_pic='-qpic'
7604 lt_prog_compiler_static='-qstaticlink'
7607 case `$CC -V 2>&1 | sed 5q` in
7608 *Sun\ F* | *Sun*Fortran*)
7609 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7610 lt_prog_compiler_pic='-KPIC'
7611 lt_prog_compiler_static='-Bstatic'
7612 lt_prog_compiler_wl=''
7614 *Sun\ C*)
7615 # Sun C 5.9
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7618 lt_prog_compiler_wl='-Wl,'
7620 esac
7622 esac
7625 newsos6)
7626 lt_prog_compiler_pic='-KPIC'
7627 lt_prog_compiler_static='-Bstatic'
7630 *nto* | *qnx*)
7631 # QNX uses GNU C++, but need to define -shared option too, otherwise
7632 # it will coredump.
7633 lt_prog_compiler_pic='-fPIC -shared'
7636 osf3* | osf4* | osf5*)
7637 lt_prog_compiler_wl='-Wl,'
7638 # All OSF/1 code is PIC.
7639 lt_prog_compiler_static='-non_shared'
7642 rdos*)
7643 lt_prog_compiler_static='-non_shared'
7646 solaris*)
7647 lt_prog_compiler_pic='-KPIC'
7648 lt_prog_compiler_static='-Bstatic'
7649 case $cc_basename in
7650 f77* | f90* | f95*)
7651 lt_prog_compiler_wl='-Qoption ld ';;
7653 lt_prog_compiler_wl='-Wl,';;
7654 esac
7657 sunos4*)
7658 lt_prog_compiler_wl='-Qoption ld '
7659 lt_prog_compiler_pic='-PIC'
7660 lt_prog_compiler_static='-Bstatic'
7663 sysv4 | sysv4.2uw2* | sysv4.3*)
7664 lt_prog_compiler_wl='-Wl,'
7665 lt_prog_compiler_pic='-KPIC'
7666 lt_prog_compiler_static='-Bstatic'
7669 sysv4*MP*)
7670 if test -d /usr/nec ;then
7671 lt_prog_compiler_pic='-Kconform_pic'
7672 lt_prog_compiler_static='-Bstatic'
7676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7677 lt_prog_compiler_wl='-Wl,'
7678 lt_prog_compiler_pic='-KPIC'
7679 lt_prog_compiler_static='-Bstatic'
7682 unicos*)
7683 lt_prog_compiler_wl='-Wl,'
7684 lt_prog_compiler_can_build_shared=no
7687 uts4*)
7688 lt_prog_compiler_pic='-pic'
7689 lt_prog_compiler_static='-Bstatic'
7693 lt_prog_compiler_can_build_shared=no
7695 esac
7698 case $host_os in
7699 # For platforms which do not support PIC, -DPIC is meaningless:
7700 *djgpp*)
7701 lt_prog_compiler_pic=
7704 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7706 esac
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7708 $as_echo "$lt_prog_compiler_pic" >&6; }
7716 # Check to make sure the PIC flag actually works.
7718 if test -n "$lt_prog_compiler_pic"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7720 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7721 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 lt_cv_prog_compiler_pic_works=no
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7727 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7728 # Insert the option either (1) after the last *FLAGS variable, or
7729 # (2) before a word containing "conftest.", or (3) at the end.
7730 # Note that $ac_compile itself does not contain backslashes and begins
7731 # with a dollar sign (not a hyphen), so the echo should work correctly.
7732 # The option is referenced via a variable to avoid confusing sed.
7733 lt_compile=`echo "$ac_compile" | $SED \
7734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736 -e 's:$: $lt_compiler_flag:'`
7737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7738 (eval "$lt_compile" 2>conftest.err)
7739 ac_status=$?
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 if (exit $ac_status) && test -s "$ac_outfile"; then
7743 # The compiler can only warn and ignore the option if not recognized
7744 # So say no if there are warnings other than the usual output.
7745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748 lt_cv_prog_compiler_pic_works=yes
7751 $RM conftest*
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7755 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7757 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7758 case $lt_prog_compiler_pic in
7759 "" | " "*) ;;
7760 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7761 esac
7762 else
7763 lt_prog_compiler_pic=
7764 lt_prog_compiler_can_build_shared=no
7775 # Check to make sure the static flag actually works.
7777 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7779 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7780 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 lt_cv_prog_compiler_static_works=no
7784 save_LDFLAGS="$LDFLAGS"
7785 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7786 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7787 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7788 # The linker can only warn and ignore the option if not recognized
7789 # So say no if there are warnings
7790 if test -s conftest.err; then
7791 # Append any errors to the config.log.
7792 cat conftest.err 1>&5
7793 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7795 if diff conftest.exp conftest.er2 >/dev/null; then
7796 lt_cv_prog_compiler_static_works=yes
7798 else
7799 lt_cv_prog_compiler_static_works=yes
7802 $RM -r conftest*
7803 LDFLAGS="$save_LDFLAGS"
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7807 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7809 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7811 else
7812 lt_prog_compiler_static=
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7822 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7823 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 lt_cv_prog_compiler_c_o=no
7827 $RM -r conftest 2>/dev/null
7828 mkdir conftest
7829 cd conftest
7830 mkdir out
7831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7833 lt_compiler_flag="-o out/conftest2.$ac_objext"
7834 # Insert the option either (1) after the last *FLAGS variable, or
7835 # (2) before a word containing "conftest.", or (3) at the end.
7836 # Note that $ac_compile itself does not contain backslashes and begins
7837 # with a dollar sign (not a hyphen), so the echo should work correctly.
7838 lt_compile=`echo "$ac_compile" | $SED \
7839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841 -e 's:$: $lt_compiler_flag:'`
7842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7843 (eval "$lt_compile" 2>out/conftest.err)
7844 ac_status=$?
7845 cat out/conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7848 then
7849 # The compiler can only warn and ignore the option if not recognized
7850 # So say no if there are warnings
7851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7854 lt_cv_prog_compiler_c_o=yes
7857 chmod u+w . 2>&5
7858 $RM conftest*
7859 # SGI C++ compiler will create directory out/ii_files/ for
7860 # template instantiation
7861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7862 $RM out/* && rmdir out
7863 cd ..
7864 $RM -r conftest
7865 $RM conftest*
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7869 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7877 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7878 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 lt_cv_prog_compiler_c_o=no
7882 $RM -r conftest 2>/dev/null
7883 mkdir conftest
7884 cd conftest
7885 mkdir out
7886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7888 lt_compiler_flag="-o out/conftest2.$ac_objext"
7889 # Insert the option either (1) after the last *FLAGS variable, or
7890 # (2) before a word containing "conftest.", or (3) at the end.
7891 # Note that $ac_compile itself does not contain backslashes and begins
7892 # with a dollar sign (not a hyphen), so the echo should work correctly.
7893 lt_compile=`echo "$ac_compile" | $SED \
7894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896 -e 's:$: $lt_compiler_flag:'`
7897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7898 (eval "$lt_compile" 2>out/conftest.err)
7899 ac_status=$?
7900 cat out/conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7903 then
7904 # The compiler can only warn and ignore the option if not recognized
7905 # So say no if there are warnings
7906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7909 lt_cv_prog_compiler_c_o=yes
7912 chmod u+w . 2>&5
7913 $RM conftest*
7914 # SGI C++ compiler will create directory out/ii_files/ for
7915 # template instantiation
7916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7917 $RM out/* && rmdir out
7918 cd ..
7919 $RM -r conftest
7920 $RM conftest*
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7924 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7929 hard_links="nottested"
7930 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7931 # do not overwrite the value of need_locks provided by the user
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7933 $as_echo_n "checking if we can lock with hard links... " >&6; }
7934 hard_links=yes
7935 $RM conftest*
7936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7937 touch conftest.a
7938 ln conftest.a conftest.b 2>&5 || hard_links=no
7939 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7941 $as_echo "$hard_links" >&6; }
7942 if test "$hard_links" = no; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7944 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7945 need_locks=warn
7947 else
7948 need_locks=no
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7957 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7959 runpath_var=
7960 allow_undefined_flag=
7961 always_export_symbols=no
7962 archive_cmds=
7963 archive_expsym_cmds=
7964 compiler_needs_object=no
7965 enable_shared_with_static_runtimes=no
7966 export_dynamic_flag_spec=
7967 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7968 hardcode_automatic=no
7969 hardcode_direct=no
7970 hardcode_direct_absolute=no
7971 hardcode_libdir_flag_spec=
7972 hardcode_libdir_flag_spec_ld=
7973 hardcode_libdir_separator=
7974 hardcode_minus_L=no
7975 hardcode_shlibpath_var=unsupported
7976 inherit_rpath=no
7977 link_all_deplibs=unknown
7978 module_cmds=
7979 module_expsym_cmds=
7980 old_archive_from_new_cmds=
7981 old_archive_from_expsyms_cmds=
7982 thread_safe_flag_spec=
7983 whole_archive_flag_spec=
7984 # include_expsyms should be a list of space-separated symbols to be *always*
7985 # included in the symbol list
7986 include_expsyms=
7987 # exclude_expsyms can be an extended regexp of symbols to exclude
7988 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7989 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7990 # as well as any symbol that contains `d'.
7991 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7992 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7993 # platforms (ab)use it in PIC code, but their linkers get confused if
7994 # the symbol is explicitly referenced. Since portable code cannot
7995 # rely on this symbol name, it's probably fine to never include it in
7996 # preloaded symbol tables.
7997 # Exclude shared library initialization/finalization symbols.
7998 extract_expsyms_cmds=
8000 case $host_os in
8001 cygwin* | mingw* | pw32* | cegcc*)
8002 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8003 # When not using gcc, we currently assume that we are using
8004 # Microsoft Visual C++.
8005 if test "$GCC" != yes; then
8006 with_gnu_ld=no
8009 interix*)
8010 # we just hope/assume this is gcc and not c89 (= MSVC++)
8011 with_gnu_ld=yes
8013 openbsd*)
8014 with_gnu_ld=no
8016 esac
8018 ld_shlibs=yes
8020 # On some targets, GNU ld is compatible enough with the native linker
8021 # that we're better off using the native interface for both.
8022 lt_use_gnu_ld_interface=no
8023 if test "$with_gnu_ld" = yes; then
8024 case $host_os in
8025 aix*)
8026 # The AIX port of GNU ld has always aspired to compatibility
8027 # with the native linker. However, as the warning in the GNU ld
8028 # block says, versions before 2.19.5* couldn't really create working
8029 # shared libraries, regardless of the interface used.
8030 case `$LD -v 2>&1` in
8031 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8032 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8033 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8035 lt_use_gnu_ld_interface=yes
8037 esac
8040 lt_use_gnu_ld_interface=yes
8042 esac
8045 if test "$lt_use_gnu_ld_interface" = yes; then
8046 # If archive_cmds runs LD, not CC, wlarc should be empty
8047 wlarc='${wl}'
8049 # Set some defaults for GNU ld with shared library support. These
8050 # are reset later if shared libraries are not supported. Putting them
8051 # here allows them to be overridden if necessary.
8052 runpath_var=LD_RUN_PATH
8053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054 export_dynamic_flag_spec='${wl}--export-dynamic'
8055 # ancient GNU ld didn't support --whole-archive et. al.
8056 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8057 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058 else
8059 whole_archive_flag_spec=
8061 supports_anon_versioning=no
8062 case `$LD -v 2>&1` in
8063 *GNU\ gold*) supports_anon_versioning=yes ;;
8064 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8065 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8066 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8067 *\ 2.11.*) ;; # other 2.11 versions
8068 *) supports_anon_versioning=yes ;;
8069 esac
8071 # See if GNU ld supports shared libraries.
8072 case $host_os in
8073 aix[3-9]*)
8074 # On AIX/PPC, the GNU linker is very broken
8075 if test "$host_cpu" != ia64; then
8076 ld_shlibs=no
8077 cat <<_LT_EOF 1>&2
8079 *** Warning: the GNU linker, at least up to release 2.19, is reported
8080 *** to be unable to reliably create shared libraries on AIX.
8081 *** Therefore, libtool is disabling shared libraries support. If you
8082 *** really care for shared libraries, you may want to install binutils
8083 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8084 *** You will then need to restart the configuration process.
8086 _LT_EOF
8090 amigaos*)
8091 case $host_cpu in
8092 powerpc)
8093 # see comment about AmigaOS4 .so support
8094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8095 archive_expsym_cmds=''
8097 m68k)
8098 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)'
8099 hardcode_libdir_flag_spec='-L$libdir'
8100 hardcode_minus_L=yes
8102 esac
8105 beos*)
8106 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8107 allow_undefined_flag=unsupported
8108 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8109 # support --undefined. This deserves some investigation. FIXME
8110 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8111 else
8112 ld_shlibs=no
8116 cygwin* | mingw* | pw32* | cegcc*)
8117 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8118 # as there is no search path for DLLs.
8119 hardcode_libdir_flag_spec='-L$libdir'
8120 export_dynamic_flag_spec='${wl}--export-all-symbols'
8121 allow_undefined_flag=unsupported
8122 always_export_symbols=no
8123 enable_shared_with_static_runtimes=yes
8124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8126 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8128 # If the export-symbols file already is a .def file (1st line
8129 # is EXPORTS), use it as is; otherwise, prepend...
8130 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8131 cp $export_symbols $output_objdir/$soname.def;
8132 else
8133 echo EXPORTS > $output_objdir/$soname.def;
8134 cat $export_symbols >> $output_objdir/$soname.def;
8136 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8137 else
8138 ld_shlibs=no
8142 haiku*)
8143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144 link_all_deplibs=yes
8147 interix[3-9]*)
8148 hardcode_direct=no
8149 hardcode_shlibpath_var=no
8150 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8151 export_dynamic_flag_spec='${wl}-E'
8152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8153 # Instead, shared libraries are loaded at an image base (0x10000000 by
8154 # default) and relocated if they conflict, which is a slow very memory
8155 # consuming and fragmenting process. To avoid this, we pick a random,
8156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8158 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8159 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'
8162 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8163 tmp_diet=no
8164 if test "$host_os" = linux-dietlibc; then
8165 case $cc_basename in
8166 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8167 esac
8169 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8170 && test "$tmp_diet" = no
8171 then
8172 tmp_addflag=' $pic_flag'
8173 tmp_sharedflag='-shared'
8174 case $cc_basename,$host_cpu in
8175 pgcc*) # Portland Group C compiler
8176 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'
8177 tmp_addflag=' $pic_flag'
8179 pgf77* | pgf90* | pgf95* | pgfortran*)
8180 # Portland Group f77 and f90 compilers
8181 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'
8182 tmp_addflag=' $pic_flag -Mnomain' ;;
8183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8184 tmp_addflag=' -i_dynamic' ;;
8185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8186 tmp_addflag=' -i_dynamic -nofor_main' ;;
8187 ifc* | ifort*) # Intel Fortran compiler
8188 tmp_addflag=' -nofor_main' ;;
8189 lf95*) # Lahey Fortran 8.1
8190 whole_archive_flag_spec=
8191 tmp_sharedflag='--shared' ;;
8192 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8193 tmp_sharedflag='-qmkshrobj'
8194 tmp_addflag= ;;
8195 nvcc*) # Cuda Compiler Driver 2.2
8196 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'
8197 compiler_needs_object=yes
8199 esac
8200 case `$CC -V 2>&1 | sed 5q` in
8201 *Sun\ C*) # Sun C 5.9
8202 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'
8203 compiler_needs_object=yes
8204 tmp_sharedflag='-G' ;;
8205 *Sun\ F*) # Sun Fortran 8.3
8206 tmp_sharedflag='-G' ;;
8207 esac
8208 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210 if test "x$supports_anon_versioning" = xyes; then
8211 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8213 echo "local: *; };" >> $output_objdir/$libname.ver~
8214 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8217 case $cc_basename in
8218 xlf* | bgf* | bgxlf* | mpixlf*)
8219 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8220 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8221 hardcode_libdir_flag_spec=
8222 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8223 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8224 if test "x$supports_anon_versioning" = xyes; then
8225 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8227 echo "local: *; };" >> $output_objdir/$libname.ver~
8228 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8231 esac
8232 else
8233 ld_shlibs=no
8237 netbsd*)
8238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8239 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8240 wlarc=
8241 else
8242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8247 solaris*)
8248 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8249 ld_shlibs=no
8250 cat <<_LT_EOF 1>&2
8252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8253 *** create shared libraries on Solaris systems. Therefore, libtool
8254 *** is disabling shared libraries support. We urge you to upgrade GNU
8255 *** binutils to release 2.9.1 or newer. Another option is to modify
8256 *** your PATH or compiler configuration so that the native linker is
8257 *** used, and then restart.
8259 _LT_EOF
8260 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8263 else
8264 ld_shlibs=no
8268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8269 case `$LD -v 2>&1` in
8270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8271 ld_shlibs=no
8272 cat <<_LT_EOF 1>&2
8274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8275 *** reliably create shared libraries on SCO systems. Therefore, libtool
8276 *** is disabling shared libraries support. We urge you to upgrade GNU
8277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8278 *** your PATH or compiler configuration so that the native linker is
8279 *** used, and then restart.
8281 _LT_EOF
8284 # For security reasons, it is highly recommended that you always
8285 # use absolute paths for naming shared libraries, and exclude the
8286 # DT_RUNPATH tag from executables and libraries. But doing so
8287 # requires that you compile everything twice, which is a pain.
8288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8292 else
8293 ld_shlibs=no
8296 esac
8299 sunos4*)
8300 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8301 wlarc=
8302 hardcode_direct=yes
8303 hardcode_shlibpath_var=no
8307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8310 else
8311 ld_shlibs=no
8314 esac
8316 if test "$ld_shlibs" = no; then
8317 runpath_var=
8318 hardcode_libdir_flag_spec=
8319 export_dynamic_flag_spec=
8320 whole_archive_flag_spec=
8322 else
8323 # PORTME fill in a description of your system's linker (not GNU ld)
8324 case $host_os in
8325 aix3*)
8326 allow_undefined_flag=unsupported
8327 always_export_symbols=yes
8328 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'
8329 # Note: this linker hardcodes the directories in LIBPATH if there
8330 # are no directories specified by -L.
8331 hardcode_minus_L=yes
8332 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8333 # Neither direct hardcoding nor static linking is supported with a
8334 # broken collect2.
8335 hardcode_direct=unsupported
8339 aix[4-9]*)
8340 if test "$host_cpu" = ia64; then
8341 # On IA64, the linker does run time linking by default, so we don't
8342 # have to do anything special.
8343 aix_use_runtimelinking=no
8344 exp_sym_flag='-Bexport'
8345 no_entry_flag=""
8346 else
8347 # If we're using GNU nm, then we don't want the "-C" option.
8348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8349 # Also, AIX nm treats weak defined symbols like other global
8350 # defined symbols, whereas GNU nm marks them as "W".
8351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8352 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'
8353 else
8354 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8356 aix_use_runtimelinking=no
8358 # Test if we are trying to use run time linking or normal
8359 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8360 # need to do runtime linking.
8361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8362 for ld_flag in $LDFLAGS; do
8363 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8364 aix_use_runtimelinking=yes
8365 break
8367 done
8369 esac
8371 exp_sym_flag='-bexport'
8372 no_entry_flag='-bnoentry'
8375 # When large executables or shared objects are built, AIX ld can
8376 # have problems creating the table of contents. If linking a library
8377 # or program results in "error TOC overflow" add -mminimal-toc to
8378 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8379 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8381 archive_cmds=''
8382 hardcode_direct=yes
8383 hardcode_direct_absolute=yes
8384 hardcode_libdir_separator=':'
8385 link_all_deplibs=yes
8386 file_list_spec='${wl}-f,'
8388 if test "$GCC" = yes; then
8389 case $host_os in aix4.[012]|aix4.[012].*)
8390 # We only want to do this on AIX 4.2 and lower, the check
8391 # below for broken collect2 doesn't work under 4.3+
8392 collect2name=`${CC} -print-prog-name=collect2`
8393 if test -f "$collect2name" &&
8394 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8395 then
8396 # We have reworked collect2
8398 else
8399 # We have old collect2
8400 hardcode_direct=unsupported
8401 # It fails to find uninstalled libraries when the uninstalled
8402 # path is not listed in the libpath. Setting hardcode_minus_L
8403 # to unsupported forces relinking
8404 hardcode_minus_L=yes
8405 hardcode_libdir_flag_spec='-L$libdir'
8406 hardcode_libdir_separator=
8409 esac
8410 shared_flag='-shared'
8411 if test "$aix_use_runtimelinking" = yes; then
8412 shared_flag="$shared_flag "'${wl}-G'
8414 else
8415 # not using gcc
8416 if test "$host_cpu" = ia64; then
8417 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8418 # chokes on -Wl,-G. The following line is correct:
8419 shared_flag='-G'
8420 else
8421 if test "$aix_use_runtimelinking" = yes; then
8422 shared_flag='${wl}-G'
8423 else
8424 shared_flag='${wl}-bM:SRE'
8429 export_dynamic_flag_spec='${wl}-bexpall'
8430 # It seems that -bexpall does not export symbols beginning with
8431 # underscore (_), so it is better to generate a list of symbols to export.
8432 always_export_symbols=yes
8433 if test "$aix_use_runtimelinking" = yes; then
8434 # Warning - without using the other runtime loading flags (-brtl),
8435 # -berok will link without error, but may produce a broken library.
8436 allow_undefined_flag='-berok'
8437 # Determine the default libpath from the value encoded in an
8438 # empty executable.
8439 if test x$gcc_no_link = xyes; then
8440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8446 main ()
8450 return 0;
8452 _ACEOF
8453 if ac_fn_c_try_link "$LINENO"; then :
8455 lt_aix_libpath_sed='
8456 /Import File Strings/,/^$/ {
8457 /^0/ {
8458 s/^0 *\(.*\)$/\1/
8462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8463 # Check for a 64-bit object if we didn't find anything.
8464 if test -z "$aix_libpath"; then
8465 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8468 rm -f core conftest.err conftest.$ac_objext \
8469 conftest$ac_exeext conftest.$ac_ext
8470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8472 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8473 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"
8474 else
8475 if test "$host_cpu" = ia64; then
8476 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8477 allow_undefined_flag="-z nodefs"
8478 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"
8479 else
8480 # Determine the default libpath from the value encoded in an
8481 # empty executable.
8482 if test x$gcc_no_link = xyes; then
8483 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8489 main ()
8493 return 0;
8495 _ACEOF
8496 if ac_fn_c_try_link "$LINENO"; then :
8498 lt_aix_libpath_sed='
8499 /Import File Strings/,/^$/ {
8500 /^0/ {
8501 s/^0 *\(.*\)$/\1/
8505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506 # Check for a 64-bit object if we didn't find anything.
8507 if test -z "$aix_libpath"; then
8508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8516 # Warning - without using the other run time loading flags,
8517 # -berok will link without error, but may produce a broken library.
8518 no_undefined_flag=' ${wl}-bernotok'
8519 allow_undefined_flag=' ${wl}-berok'
8520 if test "$with_gnu_ld" = yes; then
8521 # We only use this code for GNU lds that support --whole-archive.
8522 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8523 else
8524 # Exported symbols can be pulled into shared objects from archives
8525 whole_archive_flag_spec='$convenience'
8527 archive_cmds_need_lc=yes
8528 # This is similar to how AIX traditionally builds its shared libraries.
8529 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'
8534 amigaos*)
8535 case $host_cpu in
8536 powerpc)
8537 # see comment about AmigaOS4 .so support
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539 archive_expsym_cmds=''
8541 m68k)
8542 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)'
8543 hardcode_libdir_flag_spec='-L$libdir'
8544 hardcode_minus_L=yes
8546 esac
8549 bsdi[45]*)
8550 export_dynamic_flag_spec=-rdynamic
8553 cygwin* | mingw* | pw32* | cegcc*)
8554 # When not using gcc, we currently assume that we are using
8555 # Microsoft Visual C++.
8556 # hardcode_libdir_flag_spec is actually meaningless, as there is
8557 # no search path for DLLs.
8558 hardcode_libdir_flag_spec=' '
8559 allow_undefined_flag=unsupported
8560 # Tell ltmain to make .lib files, not .a files.
8561 libext=lib
8562 # Tell ltmain to make .dll files, not .so files.
8563 shrext_cmds=".dll"
8564 # FIXME: Setting linknames here is a bad hack.
8565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8566 # The linker will automatically build a .lib file if we build a DLL.
8567 old_archive_from_new_cmds='true'
8568 # FIXME: Should let the user specify the lib program.
8569 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8570 fix_srcfile_path='`cygpath -w "$srcfile"`'
8571 enable_shared_with_static_runtimes=yes
8574 darwin* | rhapsody*)
8577 archive_cmds_need_lc=no
8578 hardcode_direct=no
8579 hardcode_automatic=yes
8580 hardcode_shlibpath_var=unsupported
8581 if test "$lt_cv_ld_force_load" = "yes"; then
8582 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\"`'
8583 else
8584 whole_archive_flag_spec=''
8586 link_all_deplibs=yes
8587 allow_undefined_flag="$_lt_dar_allow_undefined"
8588 case $cc_basename in
8589 ifort*) _lt_dar_can_shared=yes ;;
8590 *) _lt_dar_can_shared=$GCC ;;
8591 esac
8592 if test "$_lt_dar_can_shared" = "yes"; then
8593 output_verbose_link_cmd=func_echo_all
8594 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8595 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8596 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}"
8597 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}"
8599 else
8600 ld_shlibs=no
8605 dgux*)
8606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607 hardcode_libdir_flag_spec='-L$libdir'
8608 hardcode_shlibpath_var=no
8611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8612 # support. Future versions do this automatically, but an explicit c++rt0.o
8613 # does not break anything, and helps significantly (at the cost of a little
8614 # extra space).
8615 freebsd2.2*)
8616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8617 hardcode_libdir_flag_spec='-R$libdir'
8618 hardcode_direct=yes
8619 hardcode_shlibpath_var=no
8622 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8623 freebsd2.*)
8624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8625 hardcode_direct=yes
8626 hardcode_minus_L=yes
8627 hardcode_shlibpath_var=no
8630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8631 freebsd* | dragonfly*)
8632 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8633 hardcode_libdir_flag_spec='-R$libdir'
8634 hardcode_direct=yes
8635 hardcode_shlibpath_var=no
8638 hpux9*)
8639 if test "$GCC" = yes; then
8640 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'
8641 else
8642 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'
8644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8645 hardcode_libdir_separator=:
8646 hardcode_direct=yes
8648 # hardcode_minus_L: Not really in the search PATH,
8649 # but as the default location of the library.
8650 hardcode_minus_L=yes
8651 export_dynamic_flag_spec='${wl}-E'
8654 hpux10*)
8655 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8656 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8657 else
8658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8660 if test "$with_gnu_ld" = no; then
8661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8662 hardcode_libdir_flag_spec_ld='+b $libdir'
8663 hardcode_libdir_separator=:
8664 hardcode_direct=yes
8665 hardcode_direct_absolute=yes
8666 export_dynamic_flag_spec='${wl}-E'
8667 # hardcode_minus_L: Not really in the search PATH,
8668 # but as the default location of the library.
8669 hardcode_minus_L=yes
8673 hpux11*)
8674 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8675 case $host_cpu in
8676 hppa*64*)
8677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8679 ia64*)
8680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8685 esac
8686 else
8687 case $host_cpu in
8688 hppa*64*)
8689 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 ia64*)
8692 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8696 # Older versions of the 11.00 compiler do not understand -b yet
8697 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8699 $as_echo_n "checking if $CC understands -b... " >&6; }
8700 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 lt_cv_prog_compiler__b=no
8704 save_LDFLAGS="$LDFLAGS"
8705 LDFLAGS="$LDFLAGS -b"
8706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8708 # The linker can only warn and ignore the option if not recognized
8709 # So say no if there are warnings
8710 if test -s conftest.err; then
8711 # Append any errors to the config.log.
8712 cat conftest.err 1>&5
8713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if diff conftest.exp conftest.er2 >/dev/null; then
8716 lt_cv_prog_compiler__b=yes
8718 else
8719 lt_cv_prog_compiler__b=yes
8722 $RM -r conftest*
8723 LDFLAGS="$save_LDFLAGS"
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8727 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8729 if test x"$lt_cv_prog_compiler__b" = xyes; then
8730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8731 else
8732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8736 esac
8738 if test "$with_gnu_ld" = no; then
8739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8740 hardcode_libdir_separator=:
8742 case $host_cpu in
8743 hppa*64*|ia64*)
8744 hardcode_direct=no
8745 hardcode_shlibpath_var=no
8748 hardcode_direct=yes
8749 hardcode_direct_absolute=yes
8750 export_dynamic_flag_spec='${wl}-E'
8752 # hardcode_minus_L: Not really in the search PATH,
8753 # but as the default location of the library.
8754 hardcode_minus_L=yes
8756 esac
8760 irix5* | irix6* | nonstopux*)
8761 if test "$GCC" = yes; then
8762 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'
8763 # Try to use the -exported_symbol ld option, if it does not
8764 # work, assume that -exports_file does not work either and
8765 # implicitly export all symbols.
8766 save_LDFLAGS="$LDFLAGS"
8767 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8768 if test x$gcc_no_link = xyes; then
8769 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 int foo(void) {}
8774 _ACEOF
8775 if ac_fn_c_try_link "$LINENO"; then :
8776 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'
8779 rm -f core conftest.err conftest.$ac_objext \
8780 conftest$ac_exeext conftest.$ac_ext
8781 LDFLAGS="$save_LDFLAGS"
8782 else
8783 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'
8784 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'
8786 archive_cmds_need_lc='no'
8787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788 hardcode_libdir_separator=:
8789 inherit_rpath=yes
8790 link_all_deplibs=yes
8793 netbsd*)
8794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8796 else
8797 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8799 hardcode_libdir_flag_spec='-R$libdir'
8800 hardcode_direct=yes
8801 hardcode_shlibpath_var=no
8804 newsos6)
8805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806 hardcode_direct=yes
8807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808 hardcode_libdir_separator=:
8809 hardcode_shlibpath_var=no
8812 *nto* | *qnx*)
8815 openbsd*)
8816 if test -f /usr/libexec/ld.so; then
8817 hardcode_direct=yes
8818 hardcode_shlibpath_var=no
8819 hardcode_direct_absolute=yes
8820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824 export_dynamic_flag_spec='${wl}-E'
8825 else
8826 case $host_os in
8827 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8829 hardcode_libdir_flag_spec='-R$libdir'
8832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8835 esac
8837 else
8838 ld_shlibs=no
8842 os2*)
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_minus_L=yes
8845 allow_undefined_flag=unsupported
8846 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'
8847 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8850 osf3*)
8851 if test "$GCC" = yes; then
8852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8853 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'
8854 else
8855 allow_undefined_flag=' -expect_unresolved \*'
8856 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'
8858 archive_cmds_need_lc='no'
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860 hardcode_libdir_separator=:
8863 osf4* | osf5*) # as osf3* with the addition of -msym flag
8864 if test "$GCC" = yes; then
8865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8866 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'
8867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8868 else
8869 allow_undefined_flag=' -expect_unresolved \*'
8870 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'
8871 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~
8872 $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'
8874 # Both c and cxx compiler support -rpath directly
8875 hardcode_libdir_flag_spec='-rpath $libdir'
8877 archive_cmds_need_lc='no'
8878 hardcode_libdir_separator=:
8881 solaris*)
8882 no_undefined_flag=' -z defs'
8883 if test "$GCC" = yes; then
8884 wlarc='${wl}'
8885 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8887 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8888 else
8889 case `$CC -V 2>&1` in
8890 *"Compilers 5.0"*)
8891 wlarc=''
8892 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8897 wlarc='${wl}'
8898 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8900 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8902 esac
8904 hardcode_libdir_flag_spec='-R$libdir'
8905 hardcode_shlibpath_var=no
8906 case $host_os in
8907 solaris2.[0-5] | solaris2.[0-5].*) ;;
8909 # The compiler driver will combine and reorder linker options,
8910 # but understands `-z linker_flag'. GCC discards it without `$wl',
8911 # but is careful enough not to reorder.
8912 # Supported since Solaris 2.6 (maybe 2.5.1?)
8913 if test "$GCC" = yes; then
8914 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8915 else
8916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8919 esac
8920 link_all_deplibs=yes
8923 sunos4*)
8924 if test "x$host_vendor" = xsequent; then
8925 # Use $CC to link under sequent, because it throws in some extra .o
8926 # files that make .init and .fini sections work.
8927 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8928 else
8929 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_direct=yes
8933 hardcode_minus_L=yes
8934 hardcode_shlibpath_var=no
8937 sysv4)
8938 case $host_vendor in
8939 sni)
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_direct=yes # is this really true???
8943 siemens)
8944 ## LD is ld it makes a PLAMLIB
8945 ## CC just makes a GrossModule.
8946 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8947 reload_cmds='$CC -r -o $output$reload_objs'
8948 hardcode_direct=no
8950 motorola)
8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8954 esac
8955 runpath_var='LD_RUN_PATH'
8956 hardcode_shlibpath_var=no
8959 sysv4.3*)
8960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_shlibpath_var=no
8962 export_dynamic_flag_spec='-Bexport'
8965 sysv4*MP*)
8966 if test -d /usr/nec; then
8967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_shlibpath_var=no
8969 runpath_var=LD_RUN_PATH
8970 hardcode_runpath_var=yes
8971 ld_shlibs=yes
8975 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8976 no_undefined_flag='${wl}-z,text'
8977 archive_cmds_need_lc=no
8978 hardcode_shlibpath_var=no
8979 runpath_var='LD_RUN_PATH'
8981 if test "$GCC" = yes; then
8982 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8983 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984 else
8985 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8986 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 sysv5* | sco3.2v5* | sco5v6*)
8991 # Note: We can NOT use -z defs as we might desire, because we do not
8992 # link with -lc, and that would cause any symbols used from libc to
8993 # always be unresolved, which means just about no library would
8994 # ever link correctly. If we're not using GNU ld we use -z text
8995 # though, which does catch some bad symbols but isn't as heavy-handed
8996 # as -z defs.
8997 no_undefined_flag='${wl}-z,text'
8998 allow_undefined_flag='${wl}-z,nodefs'
8999 archive_cmds_need_lc=no
9000 hardcode_shlibpath_var=no
9001 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9002 hardcode_libdir_separator=':'
9003 link_all_deplibs=yes
9004 export_dynamic_flag_spec='${wl}-Bexport'
9005 runpath_var='LD_RUN_PATH'
9007 if test "$GCC" = yes; then
9008 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010 else
9011 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9016 uts4*)
9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_libdir_flag_spec='-L$libdir'
9019 hardcode_shlibpath_var=no
9023 ld_shlibs=no
9025 esac
9027 if test x$host_vendor = xsni; then
9028 case $host in
9029 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9030 export_dynamic_flag_spec='${wl}-Blargedynsym'
9032 esac
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9037 $as_echo "$ld_shlibs" >&6; }
9038 test "$ld_shlibs" = no && can_build_shared=no
9040 with_gnu_ld=$with_gnu_ld
9057 # Do we need to explicitly link libc?
9059 case "x$archive_cmds_need_lc" in
9060 x|xyes)
9061 # Assume -lc should be added
9062 archive_cmds_need_lc=yes
9064 if test "$enable_shared" = yes && test "$GCC" = yes; then
9065 case $archive_cmds in
9066 *'~'*)
9067 # FIXME: we may have to deal with multi-command sequences.
9069 '$CC '*)
9070 # Test whether the compiler implicitly links with -lc since on some
9071 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9072 # to ld, don't add -lc before -lgcc.
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9074 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9075 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 $RM conftest*
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9082 (eval $ac_compile) 2>&5
9083 ac_status=$?
9084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9085 test $ac_status = 0; } 2>conftest.err; then
9086 soname=conftest
9087 lib=conftest
9088 libobjs=conftest.$ac_objext
9089 deplibs=
9090 wl=$lt_prog_compiler_wl
9091 pic_flag=$lt_prog_compiler_pic
9092 compiler_flags=-v
9093 linker_flags=-v
9094 verstring=
9095 output_objdir=.
9096 libname=conftest
9097 lt_save_allow_undefined_flag=$allow_undefined_flag
9098 allow_undefined_flag=
9099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9100 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9101 ac_status=$?
9102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9103 test $ac_status = 0; }
9104 then
9105 lt_cv_archive_cmds_need_lc=no
9106 else
9107 lt_cv_archive_cmds_need_lc=yes
9109 allow_undefined_flag=$lt_save_allow_undefined_flag
9110 else
9111 cat conftest.err 1>&5
9113 $RM conftest*
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9117 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9118 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9120 esac
9123 esac
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9282 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9284 if test "$GCC" = yes; then
9285 case $host_os in
9286 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9287 *) lt_awk_arg="/^libraries:/" ;;
9288 esac
9289 case $host_os in
9290 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9291 *) lt_sed_strip_eq="s,=/,/,g" ;;
9292 esac
9293 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9294 case $lt_search_path_spec in
9295 *\;*)
9296 # if the path contains ";" then we assume it to be the separator
9297 # otherwise default to the standard path separator (i.e. ":") - it is
9298 # assumed that no part of a normal pathname contains ";" but that should
9299 # okay in the real world where ";" in dirpaths is itself problematic.
9300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9303 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9305 esac
9306 # Ok, now we have the path, separated by spaces, we can step through it
9307 # and add multilib dir if necessary.
9308 lt_tmp_lt_search_path_spec=
9309 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9310 for lt_sys_path in $lt_search_path_spec; do
9311 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9313 else
9314 test -d "$lt_sys_path" && \
9315 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9317 done
9318 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9319 BEGIN {RS=" "; FS="/|\n";} {
9320 lt_foo="";
9321 lt_count=0;
9322 for (lt_i = NF; lt_i > 0; lt_i--) {
9323 if ($lt_i != "" && $lt_i != ".") {
9324 if ($lt_i == "..") {
9325 lt_count++;
9326 } else {
9327 if (lt_count == 0) {
9328 lt_foo="/" $lt_i lt_foo;
9329 } else {
9330 lt_count--;
9335 if (lt_foo != "") { lt_freq[lt_foo]++; }
9336 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9338 # AWK program above erroneously prepends '/' to C:/dos/paths
9339 # for these hosts.
9340 case $host_os in
9341 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9342 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9343 esac
9344 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9345 else
9346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9348 library_names_spec=
9349 libname_spec='lib$name'
9350 soname_spec=
9351 shrext_cmds=".so"
9352 postinstall_cmds=
9353 postuninstall_cmds=
9354 finish_cmds=
9355 finish_eval=
9356 shlibpath_var=
9357 shlibpath_overrides_runpath=unknown
9358 version_type=none
9359 dynamic_linker="$host_os ld.so"
9360 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9361 need_lib_prefix=unknown
9362 hardcode_into_libs=no
9364 # when you set need_version to no, make sure it does not cause -set_version
9365 # flags to be left without arguments
9366 need_version=unknown
9368 case $host_os in
9369 aix3*)
9370 version_type=linux
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9372 shlibpath_var=LIBPATH
9374 # AIX 3 has no versioning support, so we append a major version to the name.
9375 soname_spec='${libname}${release}${shared_ext}$major'
9378 aix[4-9]*)
9379 version_type=linux
9380 need_lib_prefix=no
9381 need_version=no
9382 hardcode_into_libs=yes
9383 if test "$host_cpu" = ia64; then
9384 # AIX 5 supports IA64
9385 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 else
9388 # With GCC up to 2.95.x, collect2 would create an import file
9389 # for dependence libraries. The import file would start with
9390 # the line `#! .'. This would cause the generated library to
9391 # depend on `.', always an invalid library. This was fixed in
9392 # development snapshots of GCC prior to 3.0.
9393 case $host_os in
9394 aix4 | aix4.[01] | aix4.[01].*)
9395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9396 echo ' yes '
9397 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9399 else
9400 can_build_shared=no
9403 esac
9404 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9405 # soname into executable. Probably we can add versioning support to
9406 # collect2, so additional links can be useful in future.
9407 if test "$aix_use_runtimelinking" = yes; then
9408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9409 # instead of lib<name>.a to let people know that these are not
9410 # typical AIX shared libraries.
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412 else
9413 # We preserve .a as extension for shared libraries through AIX4.2
9414 # and later when we are not doing run time linking.
9415 library_names_spec='${libname}${release}.a $libname.a'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LIBPATH
9422 amigaos*)
9423 case $host_cpu in
9424 powerpc)
9425 # Since July 2007 AmigaOS4 officially supports .so libraries.
9426 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429 m68k)
9430 library_names_spec='$libname.ixlibrary $libname.a'
9431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9432 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'
9434 esac
9437 beos*)
9438 library_names_spec='${libname}${shared_ext}'
9439 dynamic_linker="$host_os ld.so"
9440 shlibpath_var=LIBRARY_PATH
9443 bsdi[45]*)
9444 version_type=linux
9445 need_version=no
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9449 shlibpath_var=LD_LIBRARY_PATH
9450 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9451 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9452 # the default ld.so.conf also contains /usr/contrib/lib and
9453 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9454 # libtool to hard-code these into programs
9457 cygwin* | mingw* | pw32* | cegcc*)
9458 version_type=windows
9459 shrext_cmds=".dll"
9460 need_version=no
9461 need_lib_prefix=no
9463 case $GCC,$host_os in
9464 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9465 library_names_spec='$libname.dll.a'
9466 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9467 postinstall_cmds='base_file=`basename \${file}`~
9468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9469 dldir=$destdir/`dirname \$dlpath`~
9470 test -d \$dldir || mkdir -p \$dldir~
9471 $install_prog $dir/$dlname \$dldir/$dlname~
9472 chmod a+x \$dldir/$dlname~
9473 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9474 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9477 dlpath=$dir/\$dldll~
9478 $RM \$dlpath'
9479 shlibpath_overrides_runpath=yes
9481 case $host_os in
9482 cygwin*)
9483 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9484 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9488 mingw* | cegcc*)
9489 # MinGW DLLs use traditional 'lib' prefix
9490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9492 pw32*)
9493 # pw32 DLLs use 'pw' prefix rather than 'lib'
9494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496 esac
9500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9502 esac
9503 dynamic_linker='Win32 ld.exe'
9504 # FIXME: first we should search . and the directory the executable is in
9505 shlibpath_var=PATH
9508 darwin* | rhapsody*)
9509 dynamic_linker="$host_os dyld"
9510 version_type=darwin
9511 need_lib_prefix=no
9512 need_version=no
9513 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9514 soname_spec='${libname}${release}${major}$shared_ext'
9515 shlibpath_overrides_runpath=yes
9516 shlibpath_var=DYLD_LIBRARY_PATH
9517 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9520 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9523 dgux*)
9524 version_type=linux
9525 need_lib_prefix=no
9526 need_version=no
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 shlibpath_var=LD_LIBRARY_PATH
9532 freebsd* | dragonfly*)
9533 # DragonFly does not have aout. When/if they implement a new
9534 # versioning mechanism, adjust this.
9535 if test -x /usr/bin/objformat; then
9536 objformat=`/usr/bin/objformat`
9537 else
9538 case $host_os in
9539 freebsd[23].*) objformat=aout ;;
9540 *) objformat=elf ;;
9541 esac
9543 version_type=freebsd-$objformat
9544 case $version_type in
9545 freebsd-elf*)
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9547 need_version=no
9548 need_lib_prefix=no
9550 freebsd-*)
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9552 need_version=yes
9554 esac
9555 shlibpath_var=LD_LIBRARY_PATH
9556 case $host_os in
9557 freebsd2.*)
9558 shlibpath_overrides_runpath=yes
9560 freebsd3.[01]* | freebsdelf3.[01]*)
9561 shlibpath_overrides_runpath=yes
9562 hardcode_into_libs=yes
9564 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9565 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9566 shlibpath_overrides_runpath=no
9567 hardcode_into_libs=yes
9569 *) # from 4.6 on, and DragonFly
9570 shlibpath_overrides_runpath=yes
9571 hardcode_into_libs=yes
9573 esac
9576 gnu*)
9577 version_type=linux
9578 need_lib_prefix=no
9579 need_version=no
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 hardcode_into_libs=yes
9586 haiku*)
9587 version_type=linux
9588 need_lib_prefix=no
9589 need_version=no
9590 dynamic_linker="$host_os runtime_loader"
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9596 hardcode_into_libs=yes
9599 hpux9* | hpux10* | hpux11*)
9600 # Give a soname corresponding to the major version so that dld.sl refuses to
9601 # link against other versions.
9602 version_type=sunos
9603 need_lib_prefix=no
9604 need_version=no
9605 case $host_cpu in
9606 ia64*)
9607 shrext_cmds='.so'
9608 hardcode_into_libs=yes
9609 dynamic_linker="$host_os dld.so"
9610 shlibpath_var=LD_LIBRARY_PATH
9611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613 soname_spec='${libname}${release}${shared_ext}$major'
9614 if test "X$HPUX_IA64_MODE" = X32; then
9615 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9616 else
9617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9621 hppa*64*)
9622 shrext_cmds='.sl'
9623 hardcode_into_libs=yes
9624 dynamic_linker="$host_os dld.sl"
9625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628 soname_spec='${libname}${release}${shared_ext}$major'
9629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9633 shrext_cmds='.sl'
9634 dynamic_linker="$host_os dld.sl"
9635 shlibpath_var=SHLIB_PATH
9636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9640 esac
9641 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9642 postinstall_cmds='chmod 555 $lib'
9643 # or fails outright, so override atomically:
9644 install_override_mode=555
9647 interix[3-9]*)
9648 version_type=linux
9649 need_lib_prefix=no
9650 need_version=no
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=no
9656 hardcode_into_libs=yes
9659 irix5* | irix6* | nonstopux*)
9660 case $host_os in
9661 nonstopux*) version_type=nonstopux ;;
9663 if test "$lt_cv_prog_gnu_ld" = yes; then
9664 version_type=linux
9665 else
9666 version_type=irix
9667 fi ;;
9668 esac
9669 need_lib_prefix=no
9670 need_version=no
9671 soname_spec='${libname}${release}${shared_ext}$major'
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9673 case $host_os in
9674 irix5* | nonstopux*)
9675 libsuff= shlibsuff=
9678 case $LD in # libtool.m4 will add one of these switches to LD
9679 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9680 libsuff= shlibsuff= libmagic=32-bit;;
9681 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9682 libsuff=32 shlibsuff=N32 libmagic=N32;;
9683 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9684 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9685 *) libsuff= shlibsuff= libmagic=never-match;;
9686 esac
9688 esac
9689 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9690 shlibpath_overrides_runpath=no
9691 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9692 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9693 hardcode_into_libs=yes
9696 # No shared lib support for Linux oldld, aout, or coff.
9697 linux*oldld* | linux*aout* | linux*coff*)
9698 dynamic_linker=no
9701 # This must be Linux ELF.
9702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9709 shlibpath_var=LD_LIBRARY_PATH
9710 shlibpath_overrides_runpath=no
9712 # Some binutils ld are patched to set DT_RUNPATH
9713 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 lt_cv_shlibpath_overrides_runpath=no
9717 save_LDFLAGS=$LDFLAGS
9718 save_libdir=$libdir
9719 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9720 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9721 if test x$gcc_no_link = xyes; then
9722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9728 main ()
9732 return 0;
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9737 lt_cv_shlibpath_overrides_runpath=yes
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 LDFLAGS=$save_LDFLAGS
9743 libdir=$save_libdir
9747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9749 # This implies no fast_install, which is unacceptable.
9750 # Some rework will be needed to allow for fast_install
9751 # before this can be enabled.
9752 hardcode_into_libs=yes
9754 # Append ld.so.conf contents to the search path
9755 if test -f /etc/ld.so.conf; then
9756 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' ' '`
9757 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9760 # We used to test for /lib/ld.so.1 and disable shared libraries on
9761 # powerpc, because MkLinux only supported shared libraries with the
9762 # GNU dynamic linker. Since this was broken with cross compilers,
9763 # most powerpc-linux boxes support dynamic linking these days and
9764 # people can always --disable-shared, the test was removed, and we
9765 # assume the GNU/Linux dynamic linker is in use.
9766 dynamic_linker='GNU/Linux ld.so'
9769 netbsd*)
9770 version_type=sunos
9771 need_lib_prefix=no
9772 need_version=no
9773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9776 dynamic_linker='NetBSD (a.out) ld.so'
9777 else
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 dynamic_linker='NetBSD ld.elf_so'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=yes
9784 hardcode_into_libs=yes
9787 newsos6)
9788 version_type=linux
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=yes
9794 *nto* | *qnx*)
9795 version_type=qnx
9796 need_lib_prefix=no
9797 need_version=no
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799 soname_spec='${libname}${release}${shared_ext}$major'
9800 shlibpath_var=LD_LIBRARY_PATH
9801 shlibpath_overrides_runpath=no
9802 hardcode_into_libs=yes
9803 dynamic_linker='ldqnx.so'
9806 openbsd*)
9807 version_type=sunos
9808 sys_lib_dlsearch_path_spec="/usr/lib"
9809 need_lib_prefix=no
9810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9811 case $host_os in
9812 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9813 *) need_version=no ;;
9814 esac
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9819 case $host_os in
9820 openbsd2.[89] | openbsd2.[89].*)
9821 shlibpath_overrides_runpath=no
9824 shlibpath_overrides_runpath=yes
9826 esac
9827 else
9828 shlibpath_overrides_runpath=yes
9832 os2*)
9833 libname_spec='$name'
9834 shrext_cmds=".dll"
9835 need_lib_prefix=no
9836 library_names_spec='$libname${shared_ext} $libname.a'
9837 dynamic_linker='OS/2 ld.exe'
9838 shlibpath_var=LIBPATH
9841 osf3* | osf4* | osf5*)
9842 version_type=osf
9843 need_lib_prefix=no
9844 need_version=no
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9852 rdos*)
9853 dynamic_linker=no
9856 solaris*)
9857 version_type=linux
9858 need_lib_prefix=no
9859 need_version=no
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath=yes
9864 hardcode_into_libs=yes
9865 # ldd complains unless libraries are executable
9866 postinstall_cmds='chmod +x $lib'
9869 sunos4*)
9870 version_type=sunos
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 shlibpath_overrides_runpath=yes
9875 if test "$with_gnu_ld" = yes; then
9876 need_lib_prefix=no
9878 need_version=yes
9881 sysv4 | sysv4.3*)
9882 version_type=linux
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 case $host_vendor in
9887 sni)
9888 shlibpath_overrides_runpath=no
9889 need_lib_prefix=no
9890 runpath_var=LD_RUN_PATH
9892 siemens)
9893 need_lib_prefix=no
9895 motorola)
9896 need_lib_prefix=no
9897 need_version=no
9898 shlibpath_overrides_runpath=no
9899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9901 esac
9904 sysv4*MP*)
9905 if test -d /usr/nec ;then
9906 version_type=linux
9907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9908 soname_spec='$libname${shared_ext}.$major'
9909 shlibpath_var=LD_LIBRARY_PATH
9913 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9914 version_type=freebsd-elf
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=yes
9921 hardcode_into_libs=yes
9922 if test "$with_gnu_ld" = yes; then
9923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9924 else
9925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9926 case $host_os in
9927 sco3.2v5*)
9928 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9930 esac
9932 sys_lib_dlsearch_path_spec='/usr/lib'
9935 tpf*)
9936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9937 version_type=linux
9938 need_lib_prefix=no
9939 need_version=no
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 shlibpath_overrides_runpath=no
9943 hardcode_into_libs=yes
9946 uts4*)
9947 version_type=linux
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 shlibpath_var=LD_LIBRARY_PATH
9954 dynamic_linker=no
9956 esac
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9958 $as_echo "$dynamic_linker" >&6; }
9959 test "$dynamic_linker" = no && can_build_shared=no
9961 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9962 if test "$GCC" = yes; then
9963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9966 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9967 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9969 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9970 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10065 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10066 hardcode_action=
10067 if test -n "$hardcode_libdir_flag_spec" ||
10068 test -n "$runpath_var" ||
10069 test "X$hardcode_automatic" = "Xyes" ; then
10071 # We can hardcode non-existent directories.
10072 if test "$hardcode_direct" != no &&
10073 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10074 # have to relink, otherwise we might link with an installed library
10075 # when we should be linking with a yet-to-be-installed one
10076 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10077 test "$hardcode_minus_L" != no; then
10078 # Linking always hardcodes the temporary library directory.
10079 hardcode_action=relink
10080 else
10081 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10082 hardcode_action=immediate
10084 else
10085 # We cannot hardcode anything, or else we can only hardcode existing
10086 # directories.
10087 hardcode_action=unsupported
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10090 $as_echo "$hardcode_action" >&6; }
10092 if test "$hardcode_action" = relink ||
10093 test "$inherit_rpath" = yes; then
10094 # Fast installation is not supported
10095 enable_fast_install=no
10096 elif test "$shlibpath_overrides_runpath" = yes ||
10097 test "$enable_shared" = no; then
10098 # Fast installation is not necessary
10099 enable_fast_install=needless
10107 if test "x$enable_dlopen" != xyes; then
10108 enable_dlopen=unknown
10109 enable_dlopen_self=unknown
10110 enable_dlopen_self_static=unknown
10111 else
10112 lt_cv_dlopen=no
10113 lt_cv_dlopen_libs=
10115 case $host_os in
10116 beos*)
10117 lt_cv_dlopen="load_add_on"
10118 lt_cv_dlopen_libs=
10119 lt_cv_dlopen_self=yes
10122 mingw* | pw32* | cegcc*)
10123 lt_cv_dlopen="LoadLibrary"
10124 lt_cv_dlopen_libs=
10127 cygwin*)
10128 lt_cv_dlopen="dlopen"
10129 lt_cv_dlopen_libs=
10132 darwin*)
10133 # if libdl is installed we need to link against it
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10135 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10136 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 ac_check_lib_save_LIBS=$LIBS
10140 LIBS="-ldl $LIBS"
10141 if test x$gcc_no_link = xyes; then
10142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10147 /* Override any GCC internal prototype to avoid an error.
10148 Use char because int might match the return type of a GCC
10149 builtin and then its argument prototype would still apply. */
10150 #ifdef __cplusplus
10151 extern "C"
10152 #endif
10153 char dlopen ();
10155 main ()
10157 return dlopen ();
10159 return 0;
10161 _ACEOF
10162 if ac_fn_c_try_link "$LINENO"; then :
10163 ac_cv_lib_dl_dlopen=yes
10164 else
10165 ac_cv_lib_dl_dlopen=no
10167 rm -f core conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 LIBS=$ac_check_lib_save_LIBS
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10172 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10173 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10175 else
10177 lt_cv_dlopen="dyld"
10178 lt_cv_dlopen_libs=
10179 lt_cv_dlopen_self=yes
10186 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10187 if test "x$ac_cv_func_shl_load" = x""yes; then :
10188 lt_cv_dlopen="shl_load"
10189 else
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10191 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10192 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 ac_check_lib_save_LIBS=$LIBS
10196 LIBS="-ldld $LIBS"
10197 if test x$gcc_no_link = xyes; then
10198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char shl_load ();
10211 main ()
10213 return shl_load ();
10215 return 0;
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 ac_cv_lib_dld_shl_load=yes
10220 else
10221 ac_cv_lib_dld_shl_load=no
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 LIBS=$ac_check_lib_save_LIBS
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10228 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10229 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10230 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10231 else
10232 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10233 if test "x$ac_cv_func_dlopen" = x""yes; then :
10234 lt_cv_dlopen="dlopen"
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10237 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10238 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-ldl $LIBS"
10243 if test x$gcc_no_link = xyes; then
10244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
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 dlopen ();
10257 main ()
10259 return dlopen ();
10261 return 0;
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 ac_cv_lib_dl_dlopen=yes
10266 else
10267 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
10274 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10275 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10277 else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10279 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10280 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-lsvld $LIBS"
10285 if test x$gcc_no_link = xyes; then
10286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294 #ifdef __cplusplus
10295 extern "C"
10296 #endif
10297 char dlopen ();
10299 main ()
10301 return dlopen ();
10303 return 0;
10305 _ACEOF
10306 if ac_fn_c_try_link "$LINENO"; then :
10307 ac_cv_lib_svld_dlopen=yes
10308 else
10309 ac_cv_lib_svld_dlopen=no
10311 rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10316 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10317 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10321 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10322 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-ldld $LIBS"
10327 if test x$gcc_no_link = xyes; then
10328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 char dld_link ();
10341 main ()
10343 return dld_link ();
10345 return 0;
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349 ac_cv_lib_dld_dld_link=yes
10350 else
10351 ac_cv_lib_dld_dld_link=no
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10358 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10359 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10360 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10379 esac
10381 if test "x$lt_cv_dlopen" != xno; then
10382 enable_dlopen=yes
10383 else
10384 enable_dlopen=no
10387 case $lt_cv_dlopen in
10388 dlopen)
10389 save_CPPFLAGS="$CPPFLAGS"
10390 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10392 save_LDFLAGS="$LDFLAGS"
10393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10395 save_LIBS="$LIBS"
10396 LIBS="$lt_cv_dlopen_libs $LIBS"
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10399 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10400 if test "${lt_cv_dlopen_self+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 if test "$cross_compiling" = yes; then :
10404 lt_cv_dlopen_self=cross
10405 else
10406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10407 lt_status=$lt_dlunknown
10408 cat > conftest.$ac_ext <<_LT_EOF
10409 #line 10409 "configure"
10410 #include "confdefs.h"
10412 #if HAVE_DLFCN_H
10413 #include <dlfcn.h>
10414 #endif
10416 #include <stdio.h>
10418 #ifdef RTLD_GLOBAL
10419 # define LT_DLGLOBAL RTLD_GLOBAL
10420 #else
10421 # ifdef DL_GLOBAL
10422 # define LT_DLGLOBAL DL_GLOBAL
10423 # else
10424 # define LT_DLGLOBAL 0
10425 # endif
10426 #endif
10428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10429 find out it does not work in some platform. */
10430 #ifndef LT_DLLAZY_OR_NOW
10431 # ifdef RTLD_LAZY
10432 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10433 # else
10434 # ifdef DL_LAZY
10435 # define LT_DLLAZY_OR_NOW DL_LAZY
10436 # else
10437 # ifdef RTLD_NOW
10438 # define LT_DLLAZY_OR_NOW RTLD_NOW
10439 # else
10440 # ifdef DL_NOW
10441 # define LT_DLLAZY_OR_NOW DL_NOW
10442 # else
10443 # define LT_DLLAZY_OR_NOW 0
10444 # endif
10445 # endif
10446 # endif
10447 # endif
10448 #endif
10450 /* When -fvisbility=hidden is used, assume the code has been annotated
10451 correspondingly for the symbols needed. */
10452 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10453 void fnord () __attribute__((visibility("default")));
10454 #endif
10456 void fnord () { int i=42; }
10457 int main ()
10459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460 int status = $lt_dlunknown;
10462 if (self)
10464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10465 else
10467 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10468 else puts (dlerror ());
10470 /* dlclose (self); */
10472 else
10473 puts (dlerror ());
10475 return status;
10477 _LT_EOF
10478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10479 (eval $ac_link) 2>&5
10480 ac_status=$?
10481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10482 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10483 (./conftest; exit; ) >&5 2>/dev/null
10484 lt_status=$?
10485 case x$lt_status in
10486 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10487 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10488 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10489 esac
10490 else :
10491 # compilation failed
10492 lt_cv_dlopen_self=no
10495 rm -fr conftest*
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10500 $as_echo "$lt_cv_dlopen_self" >&6; }
10502 if test "x$lt_cv_dlopen_self" = xyes; then
10503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10505 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10506 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 if test "$cross_compiling" = yes; then :
10510 lt_cv_dlopen_self_static=cross
10511 else
10512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10513 lt_status=$lt_dlunknown
10514 cat > conftest.$ac_ext <<_LT_EOF
10515 #line 10515 "configure"
10516 #include "confdefs.h"
10518 #if HAVE_DLFCN_H
10519 #include <dlfcn.h>
10520 #endif
10522 #include <stdio.h>
10524 #ifdef RTLD_GLOBAL
10525 # define LT_DLGLOBAL RTLD_GLOBAL
10526 #else
10527 # ifdef DL_GLOBAL
10528 # define LT_DLGLOBAL DL_GLOBAL
10529 # else
10530 # define LT_DLGLOBAL 0
10531 # endif
10532 #endif
10534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10535 find out it does not work in some platform. */
10536 #ifndef LT_DLLAZY_OR_NOW
10537 # ifdef RTLD_LAZY
10538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10539 # else
10540 # ifdef DL_LAZY
10541 # define LT_DLLAZY_OR_NOW DL_LAZY
10542 # else
10543 # ifdef RTLD_NOW
10544 # define LT_DLLAZY_OR_NOW RTLD_NOW
10545 # else
10546 # ifdef DL_NOW
10547 # define LT_DLLAZY_OR_NOW DL_NOW
10548 # else
10549 # define LT_DLLAZY_OR_NOW 0
10550 # endif
10551 # endif
10552 # endif
10553 # endif
10554 #endif
10556 /* When -fvisbility=hidden is used, assume the code has been annotated
10557 correspondingly for the symbols needed. */
10558 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10559 void fnord () __attribute__((visibility("default")));
10560 #endif
10562 void fnord () { int i=42; }
10563 int main ()
10565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10566 int status = $lt_dlunknown;
10568 if (self)
10570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10571 else
10573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10574 else puts (dlerror ());
10576 /* dlclose (self); */
10578 else
10579 puts (dlerror ());
10581 return status;
10583 _LT_EOF
10584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10585 (eval $ac_link) 2>&5
10586 ac_status=$?
10587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10588 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10589 (./conftest; exit; ) >&5 2>/dev/null
10590 lt_status=$?
10591 case x$lt_status in
10592 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10593 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10594 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10595 esac
10596 else :
10597 # compilation failed
10598 lt_cv_dlopen_self_static=no
10601 rm -fr conftest*
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10606 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10609 CPPFLAGS="$save_CPPFLAGS"
10610 LDFLAGS="$save_LDFLAGS"
10611 LIBS="$save_LIBS"
10613 esac
10615 case $lt_cv_dlopen_self in
10616 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10617 *) enable_dlopen_self=unknown ;;
10618 esac
10620 case $lt_cv_dlopen_self_static in
10621 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10622 *) enable_dlopen_self_static=unknown ;;
10623 esac
10642 striplib=
10643 old_striplib=
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10645 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10646 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10647 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10648 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650 $as_echo "yes" >&6; }
10651 else
10652 # FIXME - insert some real tests, host_os isn't really good enough
10653 case $host_os in
10654 darwin*)
10655 if test -n "$STRIP" ; then
10656 striplib="$STRIP -x"
10657 old_striplib="$STRIP -S"
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10659 $as_echo "yes" >&6; }
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10669 esac
10683 # Report which library types will actually be built
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10685 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10687 $as_echo "$can_build_shared" >&6; }
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10690 $as_echo_n "checking whether to build shared libraries... " >&6; }
10691 test "$can_build_shared" = "no" && enable_shared=no
10693 # On AIX, shared libraries and static libraries use the same namespace, and
10694 # are all built from PIC.
10695 case $host_os in
10696 aix3*)
10697 test "$enable_shared" = yes && enable_static=no
10698 if test -n "$RANLIB"; then
10699 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10700 postinstall_cmds='$RANLIB $lib'
10704 aix[4-9]*)
10705 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10706 test "$enable_shared" = yes && enable_static=no
10709 esac
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10711 $as_echo "$enable_shared" >&6; }
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10714 $as_echo_n "checking whether to build static libraries... " >&6; }
10715 # Make sure either enable_shared or enable_static is yes.
10716 test "$enable_shared" = yes || enable_static=yes
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10718 $as_echo "$enable_static" >&6; }
10724 ac_ext=c
10725 ac_cpp='$CPP $CPPFLAGS'
10726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10730 CC="$lt_save_CC"
10744 ac_config_commands="$ac_config_commands libtool"
10749 # Only expand once:
10753 # Find CPP now so that any conditional tests below won't do it and
10754 # thereby make the resulting definitions conditional.
10755 ac_ext=c
10756 ac_cpp='$CPP $CPPFLAGS'
10757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10761 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10762 # On Suns, sometimes $CPP names a directory.
10763 if test -n "$CPP" && test -d "$CPP"; then
10764 CPP=
10766 if test -z "$CPP"; then
10767 if test "${ac_cv_prog_CPP+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 # Double quotes because CPP needs to be expanded
10771 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10773 ac_preproc_ok=false
10774 for ac_c_preproc_warn_flag in '' yes
10776 # Use a header file that comes with gcc, so configuring glibc
10777 # with a fresh cross-compiler works.
10778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10779 # <limits.h> exists even on freestanding compilers.
10780 # On the NeXT, cc -E runs the code through the compiler's parser,
10781 # not just through cpp. "Syntax error" is here to catch this case.
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #ifdef __STDC__
10785 # include <limits.h>
10786 #else
10787 # include <assert.h>
10788 #endif
10789 Syntax error
10790 _ACEOF
10791 if ac_fn_c_try_cpp "$LINENO"; then :
10793 else
10794 # Broken: fails on valid input.
10795 continue
10797 rm -f conftest.err conftest.$ac_ext
10799 # OK, works on sane cases. Now check whether nonexistent headers
10800 # can be detected and how.
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10803 #include <ac_nonexistent.h>
10804 _ACEOF
10805 if ac_fn_c_try_cpp "$LINENO"; then :
10806 # Broken: success on invalid input.
10807 continue
10808 else
10809 # Passes both tests.
10810 ac_preproc_ok=:
10811 break
10813 rm -f conftest.err conftest.$ac_ext
10815 done
10816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10817 rm -f conftest.err conftest.$ac_ext
10818 if $ac_preproc_ok; then :
10819 break
10822 done
10823 ac_cv_prog_CPP=$CPP
10826 CPP=$ac_cv_prog_CPP
10827 else
10828 ac_cv_prog_CPP=$CPP
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10831 $as_echo "$CPP" >&6; }
10832 ac_preproc_ok=false
10833 for ac_c_preproc_warn_flag in '' yes
10835 # Use a header file that comes with gcc, so configuring glibc
10836 # with a fresh cross-compiler works.
10837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10838 # <limits.h> exists even on freestanding compilers.
10839 # On the NeXT, cc -E runs the code through the compiler's parser,
10840 # not just through cpp. "Syntax error" is here to catch this case.
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843 #ifdef __STDC__
10844 # include <limits.h>
10845 #else
10846 # include <assert.h>
10847 #endif
10848 Syntax error
10849 _ACEOF
10850 if ac_fn_c_try_cpp "$LINENO"; then :
10852 else
10853 # Broken: fails on valid input.
10854 continue
10856 rm -f conftest.err conftest.$ac_ext
10858 # OK, works on sane cases. Now check whether nonexistent headers
10859 # can be detected and how.
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10862 #include <ac_nonexistent.h>
10863 _ACEOF
10864 if ac_fn_c_try_cpp "$LINENO"; then :
10865 # Broken: success on invalid input.
10866 continue
10867 else
10868 # Passes both tests.
10869 ac_preproc_ok=:
10870 break
10872 rm -f conftest.err conftest.$ac_ext
10874 done
10875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10876 rm -f conftest.err conftest.$ac_ext
10877 if $ac_preproc_ok; then :
10879 else
10880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10882 as_fn_error "C preprocessor \"$CPP\" fails sanity check
10883 See \`config.log' for more details." "$LINENO" 5; }
10886 ac_ext=c
10887 ac_cpp='$CPP $CPPFLAGS'
10888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10893 if test -n "$with_cross_host"; then
10894 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
10895 # may not work correctly, because the compiler may not be able to
10896 # link executables.
10898 # We assume newlib. This lets us hard-code the functions we know
10899 # we'll have.
10900 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
10902 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
10905 # We ignore --with-system-zlib in this case.
10906 target_all=libzgcj.la
10907 else
10908 if test x$gcc_no_link = xyes; then
10909 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
10910 ac_cv_func_mmap_fixed_mapped=no
10913 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
10914 for ac_header in stdlib.h unistd.h
10915 do :
10916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10917 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10918 eval as_val=\$$as_ac_Header
10919 if test "x$as_val" = x""yes; then :
10920 cat >>confdefs.h <<_ACEOF
10921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10922 _ACEOF
10926 done
10928 for ac_func in getpagesize
10929 do :
10930 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10931 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_GETPAGESIZE 1
10934 _ACEOF
10937 done
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10940 $as_echo_n "checking for working mmap... " >&6; }
10941 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 if test "$cross_compiling" = yes; then :
10945 ac_cv_func_mmap_fixed_mapped=no
10946 else
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 $ac_includes_default
10950 /* malloc might have been renamed as rpl_malloc. */
10951 #undef malloc
10953 /* Thanks to Mike Haertel and Jim Avera for this test.
10954 Here is a matrix of mmap possibilities:
10955 mmap private not fixed
10956 mmap private fixed at somewhere currently unmapped
10957 mmap private fixed at somewhere already mapped
10958 mmap shared not fixed
10959 mmap shared fixed at somewhere currently unmapped
10960 mmap shared fixed at somewhere already mapped
10961 For private mappings, we should verify that changes cannot be read()
10962 back from the file, nor mmap's back from the file at a different
10963 address. (There have been systems where private was not correctly
10964 implemented like the infamous i386 svr4.0, and systems where the
10965 VM page cache was not coherent with the file system buffer cache
10966 like early versions of FreeBSD and possibly contemporary NetBSD.)
10967 For shared mappings, we should conversely verify that changes get
10968 propagated back to all the places they're supposed to be.
10970 Grep wants private fixed already mapped.
10971 The main things grep needs to know about mmap are:
10972 * does it exist and is it safe to write into the mmap'd area
10973 * how to use it (BSD variants) */
10975 #include <fcntl.h>
10976 #include <sys/mman.h>
10978 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10979 char *malloc ();
10980 #endif
10982 /* This mess was copied from the GNU getpagesize.h. */
10983 #ifndef HAVE_GETPAGESIZE
10984 /* Assume that all systems that can run configure have sys/param.h. */
10985 # ifndef HAVE_SYS_PARAM_H
10986 # define HAVE_SYS_PARAM_H 1
10987 # endif
10989 # ifdef _SC_PAGESIZE
10990 # define getpagesize() sysconf(_SC_PAGESIZE)
10991 # else /* no _SC_PAGESIZE */
10992 # ifdef HAVE_SYS_PARAM_H
10993 # include <sys/param.h>
10994 # ifdef EXEC_PAGESIZE
10995 # define getpagesize() EXEC_PAGESIZE
10996 # else /* no EXEC_PAGESIZE */
10997 # ifdef NBPG
10998 # define getpagesize() NBPG * CLSIZE
10999 # ifndef CLSIZE
11000 # define CLSIZE 1
11001 # endif /* no CLSIZE */
11002 # else /* no NBPG */
11003 # ifdef NBPC
11004 # define getpagesize() NBPC
11005 # else /* no NBPC */
11006 # ifdef PAGESIZE
11007 # define getpagesize() PAGESIZE
11008 # endif /* PAGESIZE */
11009 # endif /* no NBPC */
11010 # endif /* no NBPG */
11011 # endif /* no EXEC_PAGESIZE */
11012 # else /* no HAVE_SYS_PARAM_H */
11013 # define getpagesize() 8192 /* punt totally */
11014 # endif /* no HAVE_SYS_PARAM_H */
11015 # endif /* no _SC_PAGESIZE */
11017 #endif /* no HAVE_GETPAGESIZE */
11020 main ()
11022 char *data, *data2, *data3;
11023 int i, pagesize;
11024 int fd;
11026 pagesize = getpagesize ();
11028 /* First, make a file with some known garbage in it. */
11029 data = (char *) malloc (pagesize);
11030 if (!data)
11031 return 1;
11032 for (i = 0; i < pagesize; ++i)
11033 *(data + i) = rand ();
11034 umask (0);
11035 fd = creat ("conftest.mmap", 0600);
11036 if (fd < 0)
11037 return 1;
11038 if (write (fd, data, pagesize) != pagesize)
11039 return 1;
11040 close (fd);
11042 /* Next, try to mmap the file at a fixed address which already has
11043 something else allocated at it. If we can, also make sure that
11044 we see the same garbage. */
11045 fd = open ("conftest.mmap", O_RDWR);
11046 if (fd < 0)
11047 return 1;
11048 data2 = (char *) malloc (2 * pagesize);
11049 if (!data2)
11050 return 1;
11051 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11052 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11053 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11054 return 1;
11055 for (i = 0; i < pagesize; ++i)
11056 if (*(data + i) != *(data2 + i))
11057 return 1;
11059 /* Finally, make sure that changes to the mapped area do not
11060 percolate back to the file as seen by read(). (This is a bug on
11061 some variants of i386 svr4.0.) */
11062 for (i = 0; i < pagesize; ++i)
11063 *(data2 + i) = *(data2 + i) + 1;
11064 data3 = (char *) malloc (pagesize);
11065 if (!data3)
11066 return 1;
11067 if (read (fd, data3, pagesize) != pagesize)
11068 return 1;
11069 for (i = 0; i < pagesize; ++i)
11070 if (*(data + i) != *(data3 + i))
11071 return 1;
11072 close (fd);
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_run "$LINENO"; then :
11077 ac_cv_func_mmap_fixed_mapped=yes
11078 else
11079 ac_cv_func_mmap_fixed_mapped=no
11081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11082 conftest.$ac_objext conftest.beam conftest.$ac_ext
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11087 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11088 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11090 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11093 rm -f conftest.mmap
11096 for ac_func in memcpy strerror
11097 do :
11098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11100 eval as_val=\$$as_ac_var
11101 if test "x$as_val" = x""yes; then :
11102 cat >>confdefs.h <<_ACEOF
11103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11104 _ACEOF
11107 done
11110 if test "$with_system_zlib" = yes; then
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
11112 $as_echo_n "checking for deflate in -lz... " >&6; }
11113 if test "${ac_cv_lib_z_deflate+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lz $LIBS"
11118 if test x$gcc_no_link = xyes; then
11119 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char deflate ();
11132 main ()
11134 return deflate ();
11136 return 0;
11138 _ACEOF
11139 if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_lib_z_deflate=yes
11141 else
11142 ac_cv_lib_z_deflate=no
11144 rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
11149 $as_echo "$ac_cv_lib_z_deflate" >&6; }
11150 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
11151 target_all=
11152 else
11153 target_all=libzgcj.la
11156 else
11157 target_all=libzgcj.la
11163 for ac_header in unistd.h
11164 do :
11165 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11166 if test "x$ac_cv_header_unistd_h" = x""yes; then :
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_UNISTD_H 1
11169 _ACEOF
11173 done
11176 if test -n "$with_cross_host" &&
11177 test x"$with_cross_host" != x"no"; then
11178 toolexecdir='$(exec_prefix)/$(target_alias)'
11179 toolexeclibdir='$(toolexecdir)/lib'
11180 else
11181 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11182 toolexeclibdir='$(libdir)'
11184 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11185 multiosdir=/`$CC -print-multi-os-directory`
11186 case $multiosdir in
11187 /.) multiosdir= ;; # Avoid trailing /.
11188 esac
11189 else
11190 multiosdir=
11192 toolexeclibdir=${toolexeclibdir}${multiosdir}
11196 if test -n "$with_target_subdir"; then
11197 TARGET_LIBRARY_TRUE=
11198 TARGET_LIBRARY_FALSE='#'
11199 else
11200 TARGET_LIBRARY_TRUE='#'
11201 TARGET_LIBRARY_FALSE=
11205 if test "${multilib}" = "yes"; then
11206 multilib_arg="--enable-multilib"
11207 else
11208 multilib_arg=
11211 # Check whether --enable-host-shared was given.
11212 if test "${enable_host_shared+set}" = set; then :
11213 enableval=$enable_host_shared; PICFLAG=-fPIC
11214 else
11215 PICFLAG=
11220 ac_config_files="$ac_config_files Makefile"
11222 cat >confcache <<\_ACEOF
11223 # This file is a shell script that caches the results of configure
11224 # tests run on this system so they can be shared between configure
11225 # scripts and configure runs, see configure's option --config-cache.
11226 # It is not useful on other systems. If it contains results you don't
11227 # want to keep, you may remove or edit it.
11229 # config.status only pays attention to the cache file if you give it
11230 # the --recheck option to rerun configure.
11232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11234 # following values.
11236 _ACEOF
11238 # The following way of writing the cache mishandles newlines in values,
11239 # but we know of no workaround that is simple, portable, and efficient.
11240 # So, we kill variables containing newlines.
11241 # Ultrix sh set writes to stderr and can't be redirected directly,
11242 # and sets the high bit in the cache file unless we assign to the vars.
11244 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11245 eval ac_val=\$$ac_var
11246 case $ac_val in #(
11247 *${as_nl}*)
11248 case $ac_var in #(
11249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11250 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11251 esac
11252 case $ac_var in #(
11253 _ | IFS | as_nl) ;; #(
11254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11255 *) { eval $ac_var=; unset $ac_var;} ;;
11256 esac ;;
11257 esac
11258 done
11260 (set) 2>&1 |
11261 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11262 *${as_nl}ac_space=\ *)
11263 # `set' does not quote correctly, so add quotes: double-quote
11264 # substitution turns \\\\ into \\, and sed turns \\ into \.
11265 sed -n \
11266 "s/'/'\\\\''/g;
11267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11268 ;; #(
11270 # `set' quotes correctly as required by POSIX, so do not add quotes.
11271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11273 esac |
11274 sort
11276 sed '
11277 /^ac_cv_env_/b end
11278 t clear
11279 :clear
11280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11281 t end
11282 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11283 :end' >>confcache
11284 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11285 if test -w "$cache_file"; then
11286 test "x$cache_file" != "x/dev/null" &&
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11288 $as_echo "$as_me: updating cache $cache_file" >&6;}
11289 cat confcache >$cache_file
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11292 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11295 rm -f confcache
11297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11298 # Let make expand exec_prefix.
11299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11301 # Transform confdefs.h into DEFS.
11302 # Protect against shell expansion while executing Makefile rules.
11303 # Protect against Makefile macro expansion.
11305 # If the first sed substitution is executed (which looks for macros that
11306 # take arguments), then branch to the quote section. Otherwise,
11307 # look for a macro that doesn't take arguments.
11308 ac_script='
11309 :mline
11310 /\\$/{
11312 s,\\\n,,
11313 b mline
11315 t clear
11316 :clear
11317 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11318 t quote
11319 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11320 t quote
11321 b any
11322 :quote
11323 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11324 s/\[/\\&/g
11325 s/\]/\\&/g
11326 s/\$/$$/g
11328 :any
11331 s/^\n//
11332 s/\n/ /g
11336 DEFS=`sed -n "$ac_script" confdefs.h`
11339 ac_libobjs=
11340 ac_ltlibobjs=
11341 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11342 # 1. Remove the extension, and $U if already installed.
11343 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11344 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11345 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11346 # will be set to the directory where LIBOBJS objects are built.
11347 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11348 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11349 done
11350 LIBOBJS=$ac_libobjs
11352 LTLIBOBJS=$ac_ltlibobjs
11355 if test -n "$EXEEXT"; then
11356 am__EXEEXT_TRUE=
11357 am__EXEEXT_FALSE='#'
11358 else
11359 am__EXEEXT_TRUE='#'
11360 am__EXEEXT_FALSE=
11363 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11364 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11367 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11368 as_fn_error "conditional \"AMDEP\" was never defined.
11369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11372 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11375 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11376 as_fn_error "conditional \"TARGET_LIBRARY\" was never defined.
11377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11380 : ${CONFIG_STATUS=./config.status}
11381 ac_write_fail=0
11382 ac_clean_files_save=$ac_clean_files
11383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11385 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11386 as_write_fail=0
11387 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11388 #! $SHELL
11389 # Generated by $as_me.
11390 # Run this file to recreate the current configuration.
11391 # Compiler output produced by configure, useful for debugging
11392 # configure, is in config.log if it exists.
11394 debug=false
11395 ac_cs_recheck=false
11396 ac_cs_silent=false
11398 SHELL=\${CONFIG_SHELL-$SHELL}
11399 export SHELL
11400 _ASEOF
11401 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11402 ## -------------------- ##
11403 ## M4sh Initialization. ##
11404 ## -------------------- ##
11406 # Be more Bourne compatible
11407 DUALCASE=1; export DUALCASE # for MKS sh
11408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11409 emulate sh
11410 NULLCMD=:
11411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11412 # is contrary to our usage. Disable this feature.
11413 alias -g '${1+"$@"}'='"$@"'
11414 setopt NO_GLOB_SUBST
11415 else
11416 case `(set -o) 2>/dev/null` in #(
11417 *posix*) :
11418 set -o posix ;; #(
11419 *) :
11421 esac
11425 as_nl='
11427 export as_nl
11428 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11429 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11432 # Prefer a ksh shell builtin over an external printf program on Solaris,
11433 # but without wasting forks for bash or zsh.
11434 if test -z "$BASH_VERSION$ZSH_VERSION" \
11435 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11436 as_echo='print -r --'
11437 as_echo_n='print -rn --'
11438 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11439 as_echo='printf %s\n'
11440 as_echo_n='printf %s'
11441 else
11442 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11443 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11444 as_echo_n='/usr/ucb/echo -n'
11445 else
11446 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11447 as_echo_n_body='eval
11448 arg=$1;
11449 case $arg in #(
11450 *"$as_nl"*)
11451 expr "X$arg" : "X\\(.*\\)$as_nl";
11452 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11453 esac;
11454 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11456 export as_echo_n_body
11457 as_echo_n='sh -c $as_echo_n_body as_echo'
11459 export as_echo_body
11460 as_echo='sh -c $as_echo_body as_echo'
11463 # The user is always right.
11464 if test "${PATH_SEPARATOR+set}" != set; then
11465 PATH_SEPARATOR=:
11466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11467 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11468 PATH_SEPARATOR=';'
11473 # IFS
11474 # We need space, tab and new line, in precisely that order. Quoting is
11475 # there to prevent editors from complaining about space-tab.
11476 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11477 # splitting by setting IFS to empty value.)
11478 IFS=" "" $as_nl"
11480 # Find who we are. Look in the path if we contain no directory separator.
11481 case $0 in #((
11482 *[\\/]* ) as_myself=$0 ;;
11483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11489 done
11490 IFS=$as_save_IFS
11493 esac
11494 # We did not find ourselves, most probably we were run as `sh COMMAND'
11495 # in which case we are not to be found in the path.
11496 if test "x$as_myself" = x; then
11497 as_myself=$0
11499 if test ! -f "$as_myself"; then
11500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11501 exit 1
11504 # Unset variables that we do not need and which cause bugs (e.g. in
11505 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11506 # suppresses any "Segmentation fault" message there. '((' could
11507 # trigger a bug in pdksh 5.2.14.
11508 for as_var in BASH_ENV ENV MAIL MAILPATH
11509 do eval test x\${$as_var+set} = xset \
11510 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11511 done
11512 PS1='$ '
11513 PS2='> '
11514 PS4='+ '
11516 # NLS nuisances.
11517 LC_ALL=C
11518 export LC_ALL
11519 LANGUAGE=C
11520 export LANGUAGE
11522 # CDPATH.
11523 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11526 # as_fn_error ERROR [LINENO LOG_FD]
11527 # ---------------------------------
11528 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11529 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11530 # script with status $?, using 1 if that was 0.
11531 as_fn_error ()
11533 as_status=$?; test $as_status -eq 0 && as_status=1
11534 if test "$3"; then
11535 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11538 $as_echo "$as_me: error: $1" >&2
11539 as_fn_exit $as_status
11540 } # as_fn_error
11543 # as_fn_set_status STATUS
11544 # -----------------------
11545 # Set $? to STATUS, without forking.
11546 as_fn_set_status ()
11548 return $1
11549 } # as_fn_set_status
11551 # as_fn_exit STATUS
11552 # -----------------
11553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11554 as_fn_exit ()
11556 set +e
11557 as_fn_set_status $1
11558 exit $1
11559 } # as_fn_exit
11561 # as_fn_unset VAR
11562 # ---------------
11563 # Portably unset VAR.
11564 as_fn_unset ()
11566 { eval $1=; unset $1;}
11568 as_unset=as_fn_unset
11569 # as_fn_append VAR VALUE
11570 # ----------------------
11571 # Append the text in VALUE to the end of the definition contained in VAR. Take
11572 # advantage of any shell optimizations that allow amortized linear growth over
11573 # repeated appends, instead of the typical quadratic growth present in naive
11574 # implementations.
11575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11576 eval 'as_fn_append ()
11578 eval $1+=\$2
11580 else
11581 as_fn_append ()
11583 eval $1=\$$1\$2
11585 fi # as_fn_append
11587 # as_fn_arith ARG...
11588 # ------------------
11589 # Perform arithmetic evaluation on the ARGs, and store the result in the
11590 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11591 # must be portable across $(()) and expr.
11592 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11593 eval 'as_fn_arith ()
11595 as_val=$(( $* ))
11597 else
11598 as_fn_arith ()
11600 as_val=`expr "$@" || test $? -eq 1`
11602 fi # as_fn_arith
11605 if expr a : '\(a\)' >/dev/null 2>&1 &&
11606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11607 as_expr=expr
11608 else
11609 as_expr=false
11612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11613 as_basename=basename
11614 else
11615 as_basename=false
11618 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11619 as_dirname=dirname
11620 else
11621 as_dirname=false
11624 as_me=`$as_basename -- "$0" ||
11625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11626 X"$0" : 'X\(//\)$' \| \
11627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11628 $as_echo X/"$0" |
11629 sed '/^.*\/\([^/][^/]*\)\/*$/{
11630 s//\1/
11633 /^X\/\(\/\/\)$/{
11634 s//\1/
11637 /^X\/\(\/\).*/{
11638 s//\1/
11641 s/.*/./; q'`
11643 # Avoid depending upon Character Ranges.
11644 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11645 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11646 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11647 as_cr_digits='0123456789'
11648 as_cr_alnum=$as_cr_Letters$as_cr_digits
11650 ECHO_C= ECHO_N= ECHO_T=
11651 case `echo -n x` in #(((((
11652 -n*)
11653 case `echo 'xy\c'` in
11654 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11655 xy) ECHO_C='\c';;
11656 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11657 ECHO_T=' ';;
11658 esac;;
11660 ECHO_N='-n';;
11661 esac
11663 rm -f conf$$ conf$$.exe conf$$.file
11664 if test -d conf$$.dir; then
11665 rm -f conf$$.dir/conf$$.file
11666 else
11667 rm -f conf$$.dir
11668 mkdir conf$$.dir 2>/dev/null
11670 if (echo >conf$$.file) 2>/dev/null; then
11671 if ln -s conf$$.file conf$$ 2>/dev/null; then
11672 as_ln_s='ln -s'
11673 # ... but there are two gotchas:
11674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11676 # In both cases, we have to default to `cp -p'.
11677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11678 as_ln_s='cp -p'
11679 elif ln conf$$.file conf$$ 2>/dev/null; then
11680 as_ln_s=ln
11681 else
11682 as_ln_s='cp -p'
11684 else
11685 as_ln_s='cp -p'
11687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11688 rmdir conf$$.dir 2>/dev/null
11691 # as_fn_mkdir_p
11692 # -------------
11693 # Create "$as_dir" as a directory, including parents if necessary.
11694 as_fn_mkdir_p ()
11697 case $as_dir in #(
11698 -*) as_dir=./$as_dir;;
11699 esac
11700 test -d "$as_dir" || eval $as_mkdir_p || {
11701 as_dirs=
11702 while :; do
11703 case $as_dir in #(
11704 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11705 *) as_qdir=$as_dir;;
11706 esac
11707 as_dirs="'$as_qdir' $as_dirs"
11708 as_dir=`$as_dirname -- "$as_dir" ||
11709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11710 X"$as_dir" : 'X\(//\)[^/]' \| \
11711 X"$as_dir" : 'X\(//\)$' \| \
11712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11713 $as_echo X"$as_dir" |
11714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11715 s//\1/
11718 /^X\(\/\/\)[^/].*/{
11719 s//\1/
11722 /^X\(\/\/\)$/{
11723 s//\1/
11726 /^X\(\/\).*/{
11727 s//\1/
11730 s/.*/./; q'`
11731 test -d "$as_dir" && break
11732 done
11733 test -z "$as_dirs" || eval "mkdir $as_dirs"
11734 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11737 } # as_fn_mkdir_p
11738 if mkdir -p . 2>/dev/null; then
11739 as_mkdir_p='mkdir -p "$as_dir"'
11740 else
11741 test -d ./-p && rmdir ./-p
11742 as_mkdir_p=false
11745 if test -x / >/dev/null 2>&1; then
11746 as_test_x='test -x'
11747 else
11748 if ls -dL / >/dev/null 2>&1; then
11749 as_ls_L_option=L
11750 else
11751 as_ls_L_option=
11753 as_test_x='
11754 eval sh -c '\''
11755 if test -d "$1"; then
11756 test -d "$1/.";
11757 else
11758 case $1 in #(
11759 -*)set "./$1";;
11760 esac;
11761 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11762 ???[sx]*):;;*)false;;esac;fi
11763 '\'' sh
11766 as_executable_p=$as_test_x
11768 # Sed expression to map a string onto a valid CPP name.
11769 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11771 # Sed expression to map a string onto a valid variable name.
11772 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11775 exec 6>&1
11776 ## ----------------------------------- ##
11777 ## Main body of $CONFIG_STATUS script. ##
11778 ## ----------------------------------- ##
11779 _ASEOF
11780 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11783 # Save the log message, to keep $0 and so on meaningful, and to
11784 # report actual input values of CONFIG_FILES etc. instead of their
11785 # values after options handling.
11786 ac_log="
11787 This file was extended by $as_me, which was
11788 generated by GNU Autoconf 2.64. Invocation command line was
11790 CONFIG_FILES = $CONFIG_FILES
11791 CONFIG_HEADERS = $CONFIG_HEADERS
11792 CONFIG_LINKS = $CONFIG_LINKS
11793 CONFIG_COMMANDS = $CONFIG_COMMANDS
11794 $ $0 $@
11796 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11799 _ACEOF
11801 case $ac_config_files in *"
11802 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11803 esac
11807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11808 # Files that config.status was made for.
11809 config_files="$ac_config_files"
11810 config_commands="$ac_config_commands"
11812 _ACEOF
11814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11815 ac_cs_usage="\
11816 \`$as_me' instantiates files and other configuration actions
11817 from templates according to the current configuration. Unless the files
11818 and actions are specified as TAGs, all are instantiated by default.
11820 Usage: $0 [OPTION]... [TAG]...
11822 -h, --help print this help, then exit
11823 -V, --version print version number and configuration settings, then exit
11824 -q, --quiet, --silent
11825 do not print progress messages
11826 -d, --debug don't remove temporary files
11827 --recheck update $as_me by reconfiguring in the same conditions
11828 --file=FILE[:TEMPLATE]
11829 instantiate the configuration file FILE
11831 Configuration files:
11832 $config_files
11834 Configuration commands:
11835 $config_commands
11837 Report bugs to the package provider."
11839 _ACEOF
11840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841 ac_cs_version="\\
11842 config.status
11843 configured by $0, generated by GNU Autoconf 2.64,
11844 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11846 Copyright (C) 2009 Free Software Foundation, Inc.
11847 This config.status script is free software; the Free Software Foundation
11848 gives unlimited permission to copy, distribute and modify it."
11850 ac_pwd='$ac_pwd'
11851 srcdir='$srcdir'
11852 INSTALL='$INSTALL'
11853 MKDIR_P='$MKDIR_P'
11854 AWK='$AWK'
11855 test -n "\$AWK" || AWK=awk
11856 _ACEOF
11858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859 # The default lists apply if the user does not specify any file.
11860 ac_need_defaults=:
11861 while test $# != 0
11863 case $1 in
11864 --*=*)
11865 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11866 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11867 ac_shift=:
11870 ac_option=$1
11871 ac_optarg=$2
11872 ac_shift=shift
11874 esac
11876 case $ac_option in
11877 # Handling of the options.
11878 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11879 ac_cs_recheck=: ;;
11880 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11881 $as_echo "$ac_cs_version"; exit ;;
11882 --debug | --debu | --deb | --de | --d | -d )
11883 debug=: ;;
11884 --file | --fil | --fi | --f )
11885 $ac_shift
11886 case $ac_optarg in
11887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11888 esac
11889 as_fn_append CONFIG_FILES " '$ac_optarg'"
11890 ac_need_defaults=false;;
11891 --he | --h | --help | --hel | -h )
11892 $as_echo "$ac_cs_usage"; exit ;;
11893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11894 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11895 ac_cs_silent=: ;;
11897 # This is an error.
11898 -*) as_fn_error "unrecognized option: \`$1'
11899 Try \`$0 --help' for more information." ;;
11901 *) as_fn_append ac_config_targets " $1"
11902 ac_need_defaults=false ;;
11904 esac
11905 shift
11906 done
11908 ac_configure_extra_args=
11910 if $ac_cs_silent; then
11911 exec 6>/dev/null
11912 ac_configure_extra_args="$ac_configure_extra_args --silent"
11915 _ACEOF
11916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11917 if \$ac_cs_recheck; then
11918 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11919 shift
11920 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11921 CONFIG_SHELL='$SHELL'
11922 export CONFIG_SHELL
11923 exec "\$@"
11926 _ACEOF
11927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11928 exec 5>>config.log
11930 echo
11931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11932 ## Running $as_me. ##
11933 _ASBOX
11934 $as_echo "$ac_log"
11935 } >&5
11937 _ACEOF
11938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11940 # INIT-COMMANDS
11943 srcdir="$srcdir"
11944 host="$host"
11945 target="$target"
11946 with_multisubdir="$with_multisubdir"
11947 with_multisrctop="$with_multisrctop"
11948 with_target_subdir="$with_target_subdir"
11949 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11950 multi_basedir="$multi_basedir"
11951 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11952 CC="$CC"
11953 CXX="$CXX"
11954 GFORTRAN="$GFORTRAN"
11955 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11958 # The HP-UX ksh and POSIX shell print the target directory to stdout
11959 # if CDPATH is set.
11960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11962 sed_quote_subst='$sed_quote_subst'
11963 double_quote_subst='$double_quote_subst'
11964 delay_variable_subst='$delay_variable_subst'
11965 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11966 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11967 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11968 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11969 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11970 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11971 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11972 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11973 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11974 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11975 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11976 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11977 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11978 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11979 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11980 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11981 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11982 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11983 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11984 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11985 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11986 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11987 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11988 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11989 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11990 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11991 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11992 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11993 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11994 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11995 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11996 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11997 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11998 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11999 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12000 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12001 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12002 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12003 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12004 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12005 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12006 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12007 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12008 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12009 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12010 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12011 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12012 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12013 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"`'
12014 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12015 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12016 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12017 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12018 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12019 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12020 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12021 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12022 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12023 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12024 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12025 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12026 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12027 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12028 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12029 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12030 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12031 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12032 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12033 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12034 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12035 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12036 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12037 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12038 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12039 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12040 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12041 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12042 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12043 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12044 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12045 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12046 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12047 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12048 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12049 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12050 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12051 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12052 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12053 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12054 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12055 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12056 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12057 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12058 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12059 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12060 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12061 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12062 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12063 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12064 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12065 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12066 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12067 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12068 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12069 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12070 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12071 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12072 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12073 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12074 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12075 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12076 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12077 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12078 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12079 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12080 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12081 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12082 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12083 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12084 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12086 LTCC='$LTCC'
12087 LTCFLAGS='$LTCFLAGS'
12088 compiler='$compiler_DEFAULT'
12090 # A function that is used when there is no print builtin or printf.
12091 func_fallback_echo ()
12093 eval 'cat <<_LTECHO_EOF
12095 _LTECHO_EOF'
12098 # Quote evaled strings.
12099 for var in SHELL \
12100 ECHO \
12101 SED \
12102 GREP \
12103 EGREP \
12104 FGREP \
12105 LD \
12106 NM \
12107 LN_S \
12108 lt_SP2NL \
12109 lt_NL2SP \
12110 reload_flag \
12111 OBJDUMP \
12112 deplibs_check_method \
12113 file_magic_cmd \
12114 AR \
12115 AR_FLAGS \
12116 STRIP \
12117 RANLIB \
12118 CC \
12119 CFLAGS \
12120 compiler \
12121 lt_cv_sys_global_symbol_pipe \
12122 lt_cv_sys_global_symbol_to_cdecl \
12123 lt_cv_sys_global_symbol_to_c_name_address \
12124 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12125 lt_prog_compiler_no_builtin_flag \
12126 lt_prog_compiler_wl \
12127 lt_prog_compiler_pic \
12128 lt_prog_compiler_static \
12129 lt_cv_prog_compiler_c_o \
12130 need_locks \
12131 DSYMUTIL \
12132 NMEDIT \
12133 LIPO \
12134 OTOOL \
12135 OTOOL64 \
12136 shrext_cmds \
12137 export_dynamic_flag_spec \
12138 whole_archive_flag_spec \
12139 compiler_needs_object \
12140 with_gnu_ld \
12141 allow_undefined_flag \
12142 no_undefined_flag \
12143 hardcode_libdir_flag_spec \
12144 hardcode_libdir_flag_spec_ld \
12145 hardcode_libdir_separator \
12146 fix_srcfile_path \
12147 exclude_expsyms \
12148 include_expsyms \
12149 file_list_spec \
12150 variables_saved_for_relink \
12151 libname_spec \
12152 library_names_spec \
12153 soname_spec \
12154 install_override_mode \
12155 finish_eval \
12156 old_striplib \
12157 striplib; do
12158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12159 *[\\\\\\\`\\"\\\$]*)
12160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12165 esac
12166 done
12168 # Double-quote double-evaled strings.
12169 for var in reload_cmds \
12170 old_postinstall_cmds \
12171 old_postuninstall_cmds \
12172 old_archive_cmds \
12173 extract_expsyms_cmds \
12174 old_archive_from_new_cmds \
12175 old_archive_from_expsyms_cmds \
12176 archive_cmds \
12177 archive_expsym_cmds \
12178 module_cmds \
12179 module_expsym_cmds \
12180 export_symbols_cmds \
12181 prelink_cmds \
12182 postinstall_cmds \
12183 postuninstall_cmds \
12184 finish_cmds \
12185 sys_lib_search_path_spec \
12186 sys_lib_dlsearch_path_spec; do
12187 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12188 *[\\\\\\\`\\"\\\$]*)
12189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12194 esac
12195 done
12197 ac_aux_dir='$ac_aux_dir'
12198 xsi_shell='$xsi_shell'
12199 lt_shell_append='$lt_shell_append'
12201 # See if we are running on zsh, and set the options which allow our
12202 # commands through without removal of \ escapes INIT.
12203 if test -n "\${ZSH_VERSION+set}" ; then
12204 setopt NO_GLOB_SUBST
12208 PACKAGE='$PACKAGE'
12209 VERSION='$VERSION'
12210 TIMESTAMP='$TIMESTAMP'
12211 RM='$RM'
12212 ofile='$ofile'
12217 _ACEOF
12219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221 # Handling of arguments.
12222 for ac_config_target in $ac_config_targets
12224 case $ac_config_target in
12225 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12226 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12227 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12228 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12230 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12231 esac
12232 done
12235 # If the user did not use the arguments to specify the items to instantiate,
12236 # then the envvar interface is used. Set only those that are not.
12237 # We use the long form for the default assignment because of an extremely
12238 # bizarre bug on SunOS 4.1.3.
12239 if $ac_need_defaults; then
12240 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12244 # Have a temporary directory for convenience. Make it in the build tree
12245 # simply because there is no reason against having it here, and in addition,
12246 # creating and moving files from /tmp can sometimes cause problems.
12247 # Hook for its removal unless debugging.
12248 # Note that there is a small window in which the directory will not be cleaned:
12249 # after its creation but before its name has been assigned to `$tmp'.
12250 $debug ||
12252 tmp=
12253 trap 'exit_status=$?
12254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12256 trap 'as_fn_exit 1' 1 2 13 15
12258 # Create a (secure) tmp directory for tmp files.
12261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12262 test -n "$tmp" && test -d "$tmp"
12263 } ||
12265 tmp=./conf$$-$RANDOM
12266 (umask 077 && mkdir "$tmp")
12267 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12269 # Set up the scripts for CONFIG_FILES section.
12270 # No need to generate them if there are no CONFIG_FILES.
12271 # This happens for instance with `./config.status config.h'.
12272 if test -n "$CONFIG_FILES"; then
12275 ac_cr=`echo X | tr X '\015'`
12276 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12277 # But we know of no other shell where ac_cr would be empty at this
12278 # point, so we can use a bashism as a fallback.
12279 if test "x$ac_cr" = x; then
12280 eval ac_cr=\$\'\\r\'
12282 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12283 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12284 ac_cs_awk_cr='\r'
12285 else
12286 ac_cs_awk_cr=$ac_cr
12289 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12290 _ACEOF
12294 echo "cat >conf$$subs.awk <<_ACEOF" &&
12295 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12296 echo "_ACEOF"
12297 } >conf$$subs.sh ||
12298 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12299 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12300 ac_delim='%!_!# '
12301 for ac_last_try in false false false false false :; do
12302 . ./conf$$subs.sh ||
12303 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12305 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12306 if test $ac_delim_n = $ac_delim_num; then
12307 break
12308 elif $ac_last_try; then
12309 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12310 else
12311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12313 done
12314 rm -f conf$$subs.sh
12316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12317 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12318 _ACEOF
12319 sed -n '
12321 s/^/S["/; s/!.*/"]=/
12324 s/^[^!]*!//
12325 :repl
12326 t repl
12327 s/'"$ac_delim"'$//
12328 t delim
12331 s/\(.\{148\}\).*/\1/
12332 t more1
12333 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12336 b repl
12337 :more1
12338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12341 s/.\{148\}//
12342 t nl
12343 :delim
12345 s/\(.\{148\}\).*/\1/
12346 t more2
12347 s/["\\]/\\&/g; s/^/"/; s/$/"/
12350 :more2
12351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12354 s/.\{148\}//
12355 t delim
12356 ' <conf$$subs.awk | sed '
12357 /^[^""]/{
12359 s/\n//
12361 ' >>$CONFIG_STATUS || ac_write_fail=1
12362 rm -f conf$$subs.awk
12363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12364 _ACAWK
12365 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12366 for (key in S) S_is_set[key] = 1
12367 FS = "\a"
12371 line = $ 0
12372 nfields = split(line, field, "@")
12373 substed = 0
12374 len = length(field[1])
12375 for (i = 2; i < nfields; i++) {
12376 key = field[i]
12377 keylen = length(key)
12378 if (S_is_set[key]) {
12379 value = S[key]
12380 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12381 len += length(value) + length(field[++i])
12382 substed = 1
12383 } else
12384 len += 1 + keylen
12387 print line
12390 _ACAWK
12391 _ACEOF
12392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12393 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12394 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12395 else
12397 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12398 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12399 _ACEOF
12401 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12402 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12403 # trailing colons and then remove the whole line if VPATH becomes empty
12404 # (actually we leave an empty line to preserve line numbers).
12405 if test "x$srcdir" = x.; then
12406 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12407 s/:*\$(srcdir):*/:/
12408 s/:*\${srcdir}:*/:/
12409 s/:*@srcdir@:*/:/
12410 s/^\([^=]*=[ ]*\):*/\1/
12411 s/:*$//
12412 s/^[^=]*=[ ]*$//
12416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12417 fi # test -n "$CONFIG_FILES"
12420 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12421 shift
12422 for ac_tag
12424 case $ac_tag in
12425 :[FHLC]) ac_mode=$ac_tag; continue;;
12426 esac
12427 case $ac_mode$ac_tag in
12428 :[FHL]*:*);;
12429 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12430 :[FH]-) ac_tag=-:-;;
12431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12432 esac
12433 ac_save_IFS=$IFS
12434 IFS=:
12435 set x $ac_tag
12436 IFS=$ac_save_IFS
12437 shift
12438 ac_file=$1
12439 shift
12441 case $ac_mode in
12442 :L) ac_source=$1;;
12443 :[FH])
12444 ac_file_inputs=
12445 for ac_f
12447 case $ac_f in
12448 -) ac_f="$tmp/stdin";;
12449 *) # Look for the file first in the build tree, then in the source tree
12450 # (if the path is not absolute). The absolute path cannot be DOS-style,
12451 # because $ac_f cannot contain `:'.
12452 test -f "$ac_f" ||
12453 case $ac_f in
12454 [\\/$]*) false;;
12455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12456 esac ||
12457 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12458 esac
12459 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12460 as_fn_append ac_file_inputs " '$ac_f'"
12461 done
12463 # Let's still pretend it is `configure' which instantiates (i.e., don't
12464 # use $as_me), people would be surprised to read:
12465 # /* config.h. Generated by config.status. */
12466 configure_input='Generated from '`
12467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12468 `' by configure.'
12469 if test x"$ac_file" != x-; then
12470 configure_input="$ac_file. $configure_input"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12472 $as_echo "$as_me: creating $ac_file" >&6;}
12474 # Neutralize special characters interpreted by sed in replacement strings.
12475 case $configure_input in #(
12476 *\&* | *\|* | *\\* )
12477 ac_sed_conf_input=`$as_echo "$configure_input" |
12478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12479 *) ac_sed_conf_input=$configure_input;;
12480 esac
12482 case $ac_tag in
12483 *:-:* | *:-) cat >"$tmp/stdin" \
12484 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12485 esac
12487 esac
12489 ac_dir=`$as_dirname -- "$ac_file" ||
12490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12491 X"$ac_file" : 'X\(//\)[^/]' \| \
12492 X"$ac_file" : 'X\(//\)$' \| \
12493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12494 $as_echo X"$ac_file" |
12495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12496 s//\1/
12499 /^X\(\/\/\)[^/].*/{
12500 s//\1/
12503 /^X\(\/\/\)$/{
12504 s//\1/
12507 /^X\(\/\).*/{
12508 s//\1/
12511 s/.*/./; q'`
12512 as_dir="$ac_dir"; as_fn_mkdir_p
12513 ac_builddir=.
12515 case "$ac_dir" in
12516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12519 # A ".." for each directory in $ac_dir_suffix.
12520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12521 case $ac_top_builddir_sub in
12522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12524 esac ;;
12525 esac
12526 ac_abs_top_builddir=$ac_pwd
12527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12528 # for backward compatibility:
12529 ac_top_builddir=$ac_top_build_prefix
12531 case $srcdir in
12532 .) # We are building in place.
12533 ac_srcdir=.
12534 ac_top_srcdir=$ac_top_builddir_sub
12535 ac_abs_top_srcdir=$ac_pwd ;;
12536 [\\/]* | ?:[\\/]* ) # Absolute name.
12537 ac_srcdir=$srcdir$ac_dir_suffix;
12538 ac_top_srcdir=$srcdir
12539 ac_abs_top_srcdir=$srcdir ;;
12540 *) # Relative name.
12541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12542 ac_top_srcdir=$ac_top_build_prefix$srcdir
12543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12544 esac
12545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12548 case $ac_mode in
12551 # CONFIG_FILE
12554 case $INSTALL in
12555 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12556 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12557 esac
12558 ac_MKDIR_P=$MKDIR_P
12559 case $MKDIR_P in
12560 [\\/$]* | ?:[\\/]* ) ;;
12561 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12562 esac
12563 _ACEOF
12565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12566 # If the template does not know about datarootdir, expand it.
12567 # FIXME: This hack should be removed a few years after 2.60.
12568 ac_datarootdir_hack=; ac_datarootdir_seen=
12569 ac_sed_dataroot='
12570 /datarootdir/ {
12574 /@datadir@/p
12575 /@docdir@/p
12576 /@infodir@/p
12577 /@localedir@/p
12578 /@mandir@/p'
12579 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12580 *datarootdir*) ac_datarootdir_seen=yes;;
12581 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12583 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12584 _ACEOF
12585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12586 ac_datarootdir_hack='
12587 s&@datadir@&$datadir&g
12588 s&@docdir@&$docdir&g
12589 s&@infodir@&$infodir&g
12590 s&@localedir@&$localedir&g
12591 s&@mandir@&$mandir&g
12592 s&\\\${datarootdir}&$datarootdir&g' ;;
12593 esac
12594 _ACEOF
12596 # Neutralize VPATH when `$srcdir' = `.'.
12597 # Shell code in configure.ac might set extrasub.
12598 # FIXME: do we really want to maintain this feature?
12599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12600 ac_sed_extra="$ac_vpsub
12601 $extrasub
12602 _ACEOF
12603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12606 s|@configure_input@|$ac_sed_conf_input|;t t
12607 s&@top_builddir@&$ac_top_builddir_sub&;t t
12608 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12609 s&@srcdir@&$ac_srcdir&;t t
12610 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12611 s&@top_srcdir@&$ac_top_srcdir&;t t
12612 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12613 s&@builddir@&$ac_builddir&;t t
12614 s&@abs_builddir@&$ac_abs_builddir&;t t
12615 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12616 s&@INSTALL@&$ac_INSTALL&;t t
12617 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12618 $ac_datarootdir_hack
12620 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12621 || as_fn_error "could not create $ac_file" "$LINENO" 5
12623 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12624 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12625 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12627 which seems to be undefined. Please make sure it is defined." >&5
12628 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12629 which seems to be undefined. Please make sure it is defined." >&2;}
12631 rm -f "$tmp/stdin"
12632 case $ac_file in
12633 -) cat "$tmp/out" && rm -f "$tmp/out";;
12634 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12635 esac \
12636 || as_fn_error "could not create $ac_file" "$LINENO" 5
12640 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12641 $as_echo "$as_me: executing $ac_file commands" >&6;}
12643 esac
12646 case $ac_file$ac_mode in
12647 "default-1":C)
12648 # Only add multilib support code if we just rebuilt the top-level
12649 # Makefile.
12650 case " $CONFIG_FILES " in
12651 *" Makefile "*)
12652 ac_file=Makefile . ${multi_basedir}/config-ml.in
12654 esac ;;
12655 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12656 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12657 # are listed without --file. Let's play safe and only enable the eval
12658 # if we detect the quoting.
12659 case $CONFIG_FILES in
12660 *\'*) eval set x "$CONFIG_FILES" ;;
12661 *) set x $CONFIG_FILES ;;
12662 esac
12663 shift
12664 for mf
12666 # Strip MF so we end up with the name of the file.
12667 mf=`echo "$mf" | sed -e 's/:.*$//'`
12668 # Check whether this is an Automake generated Makefile or not.
12669 # We used to match only the files named `Makefile.in', but
12670 # some people rename them; so instead we look at the file content.
12671 # Grep'ing the first line is not enough: some people post-process
12672 # each Makefile.in and add a new line on top of each file to say so.
12673 # Grep'ing the whole file is not good either: AIX grep has a line
12674 # limit of 2048, but all sed's we know have understand at least 4000.
12675 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12676 dirpart=`$as_dirname -- "$mf" ||
12677 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12678 X"$mf" : 'X\(//\)[^/]' \| \
12679 X"$mf" : 'X\(//\)$' \| \
12680 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12681 $as_echo X"$mf" |
12682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683 s//\1/
12686 /^X\(\/\/\)[^/].*/{
12687 s//\1/
12690 /^X\(\/\/\)$/{
12691 s//\1/
12694 /^X\(\/\).*/{
12695 s//\1/
12698 s/.*/./; q'`
12699 else
12700 continue
12702 # Extract the definition of DEPDIR, am__include, and am__quote
12703 # from the Makefile without running `make'.
12704 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12705 test -z "$DEPDIR" && continue
12706 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12707 test -z "am__include" && continue
12708 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12709 # When using ansi2knr, U may be empty or an underscore; expand it
12710 U=`sed -n 's/^U = //p' < "$mf"`
12711 # Find all dependency output files, they are included files with
12712 # $(DEPDIR) in their names. We invoke sed twice because it is the
12713 # simplest approach to changing $(DEPDIR) to its actual value in the
12714 # expansion.
12715 for file in `sed -n "
12716 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12717 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12718 # Make sure the directory exists.
12719 test -f "$dirpart/$file" && continue
12720 fdir=`$as_dirname -- "$file" ||
12721 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12722 X"$file" : 'X\(//\)[^/]' \| \
12723 X"$file" : 'X\(//\)$' \| \
12724 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12725 $as_echo X"$file" |
12726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12727 s//\1/
12730 /^X\(\/\/\)[^/].*/{
12731 s//\1/
12734 /^X\(\/\/\)$/{
12735 s//\1/
12738 /^X\(\/\).*/{
12739 s//\1/
12742 s/.*/./; q'`
12743 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12744 # echo "creating $dirpart/$file"
12745 echo '# dummy' > "$dirpart/$file"
12746 done
12747 done
12750 "libtool":C)
12752 # See if we are running on zsh, and set the options which allow our
12753 # commands through without removal of \ escapes.
12754 if test -n "${ZSH_VERSION+set}" ; then
12755 setopt NO_GLOB_SUBST
12758 cfgfile="${ofile}T"
12759 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12760 $RM "$cfgfile"
12762 cat <<_LT_EOF >> "$cfgfile"
12763 #! $SHELL
12765 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12766 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12768 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12770 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12771 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12772 # Written by Gordon Matzigkeit, 1996
12774 # This file is part of GNU Libtool.
12776 # GNU Libtool is free software; you can redistribute it and/or
12777 # modify it under the terms of the GNU General Public License as
12778 # published by the Free Software Foundation; either version 2 of
12779 # the License, or (at your option) any later version.
12781 # As a special exception to the GNU General Public License,
12782 # if you distribute this file as part of a program or library that
12783 # is built using GNU Libtool, you may include this file under the
12784 # same distribution terms that you use for the rest of that program.
12786 # GNU Libtool is distributed in the hope that it will be useful,
12787 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12788 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12789 # GNU General Public License for more details.
12791 # You should have received a copy of the GNU General Public License
12792 # along with GNU Libtool; see the file COPYING. If not, a copy
12793 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12794 # obtained by writing to the Free Software Foundation, Inc.,
12795 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12798 # The names of the tagged configurations supported by this script.
12799 available_tags=""
12801 # ### BEGIN LIBTOOL CONFIG
12803 # Which release of libtool.m4 was used?
12804 macro_version=$macro_version
12805 macro_revision=$macro_revision
12807 # Whether or not to build shared libraries.
12808 build_libtool_libs=$enable_shared
12810 # Whether or not to build static libraries.
12811 build_old_libs=$enable_static
12813 # What type of objects to build.
12814 pic_mode=$pic_mode
12816 # Whether or not to optimize for fast installation.
12817 fast_install=$enable_fast_install
12819 # Shell to use when invoking shell scripts.
12820 SHELL=$lt_SHELL
12822 # An echo program that protects backslashes.
12823 ECHO=$lt_ECHO
12825 # The host system.
12826 host_alias=$host_alias
12827 host=$host
12828 host_os=$host_os
12830 # The build system.
12831 build_alias=$build_alias
12832 build=$build
12833 build_os=$build_os
12835 # A sed program that does not truncate output.
12836 SED=$lt_SED
12838 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12839 Xsed="\$SED -e 1s/^X//"
12841 # A grep program that handles long lines.
12842 GREP=$lt_GREP
12844 # An ERE matcher.
12845 EGREP=$lt_EGREP
12847 # A literal string matcher.
12848 FGREP=$lt_FGREP
12850 # A BSD- or MS-compatible name lister.
12851 NM=$lt_NM
12853 # Whether we need soft or hard links.
12854 LN_S=$lt_LN_S
12856 # What is the maximum length of a command?
12857 max_cmd_len=$max_cmd_len
12859 # Object file suffix (normally "o").
12860 objext=$ac_objext
12862 # Executable file suffix (normally "").
12863 exeext=$exeext
12865 # whether the shell understands "unset".
12866 lt_unset=$lt_unset
12868 # turn spaces into newlines.
12869 SP2NL=$lt_lt_SP2NL
12871 # turn newlines into spaces.
12872 NL2SP=$lt_lt_NL2SP
12874 # An object symbol dumper.
12875 OBJDUMP=$lt_OBJDUMP
12877 # Method to check whether dependent libraries are shared objects.
12878 deplibs_check_method=$lt_deplibs_check_method
12880 # Command to use when deplibs_check_method == "file_magic".
12881 file_magic_cmd=$lt_file_magic_cmd
12883 # The archiver.
12884 AR=$lt_AR
12885 AR_FLAGS=$lt_AR_FLAGS
12887 # A symbol stripping program.
12888 STRIP=$lt_STRIP
12890 # Commands used to install an old-style archive.
12891 RANLIB=$lt_RANLIB
12892 old_postinstall_cmds=$lt_old_postinstall_cmds
12893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12895 # Whether to use a lock for old archive extraction.
12896 lock_old_archive_extraction=$lock_old_archive_extraction
12898 # A C compiler.
12899 LTCC=$lt_CC
12901 # LTCC compiler flags.
12902 LTCFLAGS=$lt_CFLAGS
12904 # Take the output of nm and produce a listing of raw symbols and C names.
12905 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12907 # Transform the output of nm in a proper C declaration.
12908 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12910 # Transform the output of nm in a C name address pair.
12911 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12913 # Transform the output of nm in a C name address pair when lib prefix is needed.
12914 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12916 # The name of the directory that contains temporary libtool files.
12917 objdir=$objdir
12919 # Used to examine libraries when file_magic_cmd begins with "file".
12920 MAGIC_CMD=$MAGIC_CMD
12922 # Must we lock files when doing compilation?
12923 need_locks=$lt_need_locks
12925 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12926 DSYMUTIL=$lt_DSYMUTIL
12928 # Tool to change global to local symbols on Mac OS X.
12929 NMEDIT=$lt_NMEDIT
12931 # Tool to manipulate fat objects and archives on Mac OS X.
12932 LIPO=$lt_LIPO
12934 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12935 OTOOL=$lt_OTOOL
12937 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12938 OTOOL64=$lt_OTOOL64
12940 # Old archive suffix (normally "a").
12941 libext=$libext
12943 # Shared library suffix (normally ".so").
12944 shrext_cmds=$lt_shrext_cmds
12946 # The commands to extract the exported symbol list from a shared archive.
12947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12949 # Variables whose values should be saved in libtool wrapper scripts and
12950 # restored at link time.
12951 variables_saved_for_relink=$lt_variables_saved_for_relink
12953 # Do we need the "lib" prefix for modules?
12954 need_lib_prefix=$need_lib_prefix
12956 # Do we need a version for libraries?
12957 need_version=$need_version
12959 # Library versioning type.
12960 version_type=$version_type
12962 # Shared library runtime path variable.
12963 runpath_var=$runpath_var
12965 # Shared library path variable.
12966 shlibpath_var=$shlibpath_var
12968 # Is shlibpath searched before the hard-coded library search path?
12969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12971 # Format of library name prefix.
12972 libname_spec=$lt_libname_spec
12974 # List of archive names. First name is the real one, the rest are links.
12975 # The last name is the one that the linker finds with -lNAME
12976 library_names_spec=$lt_library_names_spec
12978 # The coded name of the library, if different from the real name.
12979 soname_spec=$lt_soname_spec
12981 # Permission mode override for installation of shared libraries.
12982 install_override_mode=$lt_install_override_mode
12984 # Command to use after installation of a shared archive.
12985 postinstall_cmds=$lt_postinstall_cmds
12987 # Command to use after uninstallation of a shared archive.
12988 postuninstall_cmds=$lt_postuninstall_cmds
12990 # Commands used to finish a libtool library installation in a directory.
12991 finish_cmds=$lt_finish_cmds
12993 # As "finish_cmds", except a single script fragment to be evaled but
12994 # not shown.
12995 finish_eval=$lt_finish_eval
12997 # Whether we should hardcode library paths into libraries.
12998 hardcode_into_libs=$hardcode_into_libs
13000 # Compile-time system search path for libraries.
13001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13003 # Run-time system search path for libraries.
13004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13006 # Whether dlopen is supported.
13007 dlopen_support=$enable_dlopen
13009 # Whether dlopen of programs is supported.
13010 dlopen_self=$enable_dlopen_self
13012 # Whether dlopen of statically linked programs is supported.
13013 dlopen_self_static=$enable_dlopen_self_static
13015 # Commands to strip libraries.
13016 old_striplib=$lt_old_striplib
13017 striplib=$lt_striplib
13020 # The linker used to build libraries.
13021 LD=$lt_LD
13023 # How to create reloadable object files.
13024 reload_flag=$lt_reload_flag
13025 reload_cmds=$lt_reload_cmds
13027 # Commands used to build an old-style archive.
13028 old_archive_cmds=$lt_old_archive_cmds
13030 # A language specific compiler.
13031 CC=$lt_compiler
13033 # Is the compiler the GNU compiler?
13034 with_gcc=$GCC
13036 # Compiler flag to turn off builtin functions.
13037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13039 # How to pass a linker flag through the compiler.
13040 wl=$lt_lt_prog_compiler_wl
13042 # Additional compiler flags for building library objects.
13043 pic_flag=$lt_lt_prog_compiler_pic
13045 # Compiler flag to prevent dynamic linking.
13046 link_static_flag=$lt_lt_prog_compiler_static
13048 # Does compiler simultaneously support -c and -o options?
13049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13051 # Whether or not to add -lc for building shared libraries.
13052 build_libtool_need_lc=$archive_cmds_need_lc
13054 # Whether or not to disallow shared libs when runtime libs are static.
13055 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13057 # Compiler flag to allow reflexive dlopens.
13058 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13060 # Compiler flag to generate shared objects directly from archives.
13061 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13063 # Whether the compiler copes with passing no objects directly.
13064 compiler_needs_object=$lt_compiler_needs_object
13066 # Create an old-style archive from a shared archive.
13067 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13069 # Create a temporary old-style archive to link instead of a shared archive.
13070 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13072 # Commands used to build a shared archive.
13073 archive_cmds=$lt_archive_cmds
13074 archive_expsym_cmds=$lt_archive_expsym_cmds
13076 # Commands used to build a loadable module if different from building
13077 # a shared archive.
13078 module_cmds=$lt_module_cmds
13079 module_expsym_cmds=$lt_module_expsym_cmds
13081 # Whether we are building with GNU ld or not.
13082 with_gnu_ld=$lt_with_gnu_ld
13084 # Flag that allows shared libraries with undefined symbols to be built.
13085 allow_undefined_flag=$lt_allow_undefined_flag
13087 # Flag that enforces no undefined symbols.
13088 no_undefined_flag=$lt_no_undefined_flag
13090 # Flag to hardcode \$libdir into a binary during linking.
13091 # This must work even if \$libdir does not exist
13092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13094 # If ld is used when linking, flag to hardcode \$libdir into a binary
13095 # during linking. This must work even if \$libdir does not exist.
13096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13098 # Whether we need a single "-rpath" flag with a separated argument.
13099 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13101 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13102 # DIR into the resulting binary.
13103 hardcode_direct=$hardcode_direct
13105 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13106 # DIR into the resulting binary and the resulting library dependency is
13107 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13108 # library is relocated.
13109 hardcode_direct_absolute=$hardcode_direct_absolute
13111 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13112 # into the resulting binary.
13113 hardcode_minus_L=$hardcode_minus_L
13115 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13116 # into the resulting binary.
13117 hardcode_shlibpath_var=$hardcode_shlibpath_var
13119 # Set to "yes" if building a shared library automatically hardcodes DIR
13120 # into the library and all subsequent libraries and executables linked
13121 # against it.
13122 hardcode_automatic=$hardcode_automatic
13124 # Set to yes if linker adds runtime paths of dependent libraries
13125 # to runtime path list.
13126 inherit_rpath=$inherit_rpath
13128 # Whether libtool must link a program against all its dependency libraries.
13129 link_all_deplibs=$link_all_deplibs
13131 # Fix the shell variable \$srcfile for the compiler.
13132 fix_srcfile_path=$lt_fix_srcfile_path
13134 # Set to "yes" if exported symbols are required.
13135 always_export_symbols=$always_export_symbols
13137 # The commands to list exported symbols.
13138 export_symbols_cmds=$lt_export_symbols_cmds
13140 # Symbols that should not be listed in the preloaded symbols.
13141 exclude_expsyms=$lt_exclude_expsyms
13143 # Symbols that must always be exported.
13144 include_expsyms=$lt_include_expsyms
13146 # Commands necessary for linking programs (against libraries) with templates.
13147 prelink_cmds=$lt_prelink_cmds
13149 # Specify filename containing input files.
13150 file_list_spec=$lt_file_list_spec
13152 # How to hardcode a shared library path into an executable.
13153 hardcode_action=$hardcode_action
13155 # ### END LIBTOOL CONFIG
13157 _LT_EOF
13159 case $host_os in
13160 aix3*)
13161 cat <<\_LT_EOF >> "$cfgfile"
13162 # AIX sometimes has problems with the GCC collect2 program. For some
13163 # reason, if we set the COLLECT_NAMES environment variable, the problems
13164 # vanish in a puff of smoke.
13165 if test "X${COLLECT_NAMES+set}" != Xset; then
13166 COLLECT_NAMES=
13167 export COLLECT_NAMES
13169 _LT_EOF
13171 esac
13174 ltmain="$ac_aux_dir/ltmain.sh"
13177 # We use sed instead of cat because bash on DJGPP gets confused if
13178 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13179 # text mode, it properly converts lines to CR/LF. This bash problem
13180 # is reportedly fixed, but why not run on old versions too?
13181 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13182 || (rm -f "$cfgfile"; exit 1)
13184 case $xsi_shell in
13185 yes)
13186 cat << \_LT_EOF >> "$cfgfile"
13188 # func_dirname file append nondir_replacement
13189 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13190 # otherwise set result to NONDIR_REPLACEMENT.
13191 func_dirname ()
13193 case ${1} in
13194 */*) func_dirname_result="${1%/*}${2}" ;;
13195 * ) func_dirname_result="${3}" ;;
13196 esac
13199 # func_basename file
13200 func_basename ()
13202 func_basename_result="${1##*/}"
13205 # func_dirname_and_basename file append nondir_replacement
13206 # perform func_basename and func_dirname in a single function
13207 # call:
13208 # dirname: Compute the dirname of FILE. If nonempty,
13209 # add APPEND to the result, otherwise set result
13210 # to NONDIR_REPLACEMENT.
13211 # value returned in "$func_dirname_result"
13212 # basename: Compute filename of FILE.
13213 # value retuned in "$func_basename_result"
13214 # Implementation must be kept synchronized with func_dirname
13215 # and func_basename. For efficiency, we do not delegate to
13216 # those functions but instead duplicate the functionality here.
13217 func_dirname_and_basename ()
13219 case ${1} in
13220 */*) func_dirname_result="${1%/*}${2}" ;;
13221 * ) func_dirname_result="${3}" ;;
13222 esac
13223 func_basename_result="${1##*/}"
13226 # func_stripname prefix suffix name
13227 # strip PREFIX and SUFFIX off of NAME.
13228 # PREFIX and SUFFIX must not contain globbing or regex special
13229 # characters, hashes, percent signs, but SUFFIX may contain a leading
13230 # dot (in which case that matches only a dot).
13231 func_stripname ()
13233 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13234 # positional parameters, so assign one to ordinary parameter first.
13235 func_stripname_result=${3}
13236 func_stripname_result=${func_stripname_result#"${1}"}
13237 func_stripname_result=${func_stripname_result%"${2}"}
13240 # func_opt_split
13241 func_opt_split ()
13243 func_opt_split_opt=${1%%=*}
13244 func_opt_split_arg=${1#*=}
13247 # func_lo2o object
13248 func_lo2o ()
13250 case ${1} in
13251 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13252 *) func_lo2o_result=${1} ;;
13253 esac
13256 # func_xform libobj-or-source
13257 func_xform ()
13259 func_xform_result=${1%.*}.lo
13262 # func_arith arithmetic-term...
13263 func_arith ()
13265 func_arith_result=$(( $* ))
13268 # func_len string
13269 # STRING may not start with a hyphen.
13270 func_len ()
13272 func_len_result=${#1}
13275 _LT_EOF
13277 *) # Bourne compatible functions.
13278 cat << \_LT_EOF >> "$cfgfile"
13280 # func_dirname file append nondir_replacement
13281 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13282 # otherwise set result to NONDIR_REPLACEMENT.
13283 func_dirname ()
13285 # Extract subdirectory from the argument.
13286 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13287 if test "X$func_dirname_result" = "X${1}"; then
13288 func_dirname_result="${3}"
13289 else
13290 func_dirname_result="$func_dirname_result${2}"
13294 # func_basename file
13295 func_basename ()
13297 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13301 # func_stripname prefix suffix name
13302 # strip PREFIX and SUFFIX off of NAME.
13303 # PREFIX and SUFFIX must not contain globbing or regex special
13304 # characters, hashes, percent signs, but SUFFIX may contain a leading
13305 # dot (in which case that matches only a dot).
13306 # func_strip_suffix prefix name
13307 func_stripname ()
13309 case ${2} in
13310 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13311 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13312 esac
13315 # sed scripts:
13316 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13317 my_sed_long_arg='1s/^-[^=]*=//'
13319 # func_opt_split
13320 func_opt_split ()
13322 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13323 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13326 # func_lo2o object
13327 func_lo2o ()
13329 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13332 # func_xform libobj-or-source
13333 func_xform ()
13335 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13338 # func_arith arithmetic-term...
13339 func_arith ()
13341 func_arith_result=`expr "$@"`
13344 # func_len string
13345 # STRING may not start with a hyphen.
13346 func_len ()
13348 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13351 _LT_EOF
13352 esac
13354 case $lt_shell_append in
13355 yes)
13356 cat << \_LT_EOF >> "$cfgfile"
13358 # func_append var value
13359 # Append VALUE to the end of shell variable VAR.
13360 func_append ()
13362 eval "$1+=\$2"
13364 _LT_EOF
13367 cat << \_LT_EOF >> "$cfgfile"
13369 # func_append var value
13370 # Append VALUE to the end of shell variable VAR.
13371 func_append ()
13373 eval "$1=\$$1\$2"
13376 _LT_EOF
13378 esac
13381 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13382 || (rm -f "$cfgfile"; exit 1)
13384 mv -f "$cfgfile" "$ofile" ||
13385 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13386 chmod +x "$ofile"
13390 esac
13391 done # for ac_tag
13394 as_fn_exit 0
13395 _ACEOF
13396 ac_clean_files=$ac_clean_files_save
13398 test $ac_write_fail = 0 ||
13399 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13402 # configure is writing to config.log, and then calls config.status.
13403 # config.status does its own redirection, appending to config.log.
13404 # Unfortunately, on DOS this fails, as config.log is still kept open
13405 # by configure, so config.status won't be able to write to it; its
13406 # output is simply discarded. So we exec the FD to /dev/null,
13407 # effectively closing config.log, so it can be properly (re)opened and
13408 # appended to by config.status. When coming back to configure, we
13409 # need to make the FD available again.
13410 if test "$no_create" != yes; then
13411 ac_cs_success=:
13412 ac_config_status_args=
13413 test "$silent" = yes &&
13414 ac_config_status_args="$ac_config_status_args --quiet"
13415 exec 5>/dev/null
13416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13417 exec 5>>config.log
13418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13419 # would make configure fail if this is the last instruction.
13420 $ac_cs_success || as_fn_exit $?
13422 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13424 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}